From 69bb52c3dc5a0af01535bd828c037f7d5f1a03a2 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 23 Jan 2024 10:35:06 +0000 Subject: [PATCH] Update generated files with build 132033 --- .../item/synchronization/secrets/index.ts | 58 ++++++- src/chats/item/members/item/index.ts | 6 +- src/chats/item/messages/item/replies/index.ts | 6 +- .../calls/item/participants/invite/index.ts | 6 +- src/deviceAppManagement/index.ts | 4 +- .../managedAppPolicies/index.ts | 6 +- .../managedAppPolicies/item/index.ts | 6 +- .../item/targetApps/index.ts | 2 +- .../managedAppRegistrations/index.ts | 6 +- .../appliedPolicies/item/targetApps/index.ts | 2 +- .../managedAppRegistrations/item/index.ts | 6 +- .../intendedPolicies/item/targetApps/index.ts | 2 +- .../managedAppStatuses/item/index.ts | 6 +- .../managedEBooks/item/assignments/index.ts | 12 +- .../item/assignments/item/index.ts | 12 +- .../mobileAppConfigurations/index.ts | 6 +- .../mobileAppConfigurations/item/index.ts | 6 +- src/deviceAppManagement/mobileApps/index.ts | 12 +- .../mobileApps/item/index.ts | 18 +- .../deviceCompliancePolicies/index.ts | 6 +- .../deviceCompliancePolicies/item/index.ts | 18 +- .../deviceConfigurations/index.ts | 12 +- .../deviceConfigurations/item/index.ts | 18 +- .../deviceEnrollmentConfigurations/index.ts | 12 +- .../item/index.ts | 12 +- src/deviceManagement/index.ts | 4 +- src/deviceManagement/roleDefinitions/index.ts | 6 +- .../roleDefinitions/item/index.ts | 6 +- src/drives/item/items/item/index.ts | 6 +- .../item/workbook/names/item/range/index.ts | 6 +- .../workbook/tables/item/columns/index.ts | 2 +- .../itemAtWithIndex/dataBodyRange/index.ts | 49 ++++++ .../columns/itemAtWithIndex/filter/index.ts | 117 +++++++++++++ .../itemAtWithIndex/headerRowRange/index.ts | 49 ++++++ .../item/columns/itemAtWithIndex/index.ts | 35 ++++ .../columns/itemAtWithIndex/range/index.ts | 49 ++++++ .../itemAtWithIndex/totalRowRange/index.ts | 49 ++++++ .../item/workbook/tables/item/rows/index.ts | 2 +- .../tables/item/rows/itemAtWithIndex/index.ts | 7 + .../item/rows/itemAtWithIndex/range/index.ts | 48 ++++++ .../itemAtWithIndex/clearFilters/index.ts | 47 +++++ .../tables/itemAtWithIndex/columns/index.ts | 124 ++++++++++++++ .../itemAtWithIndex/convertToRange/index.ts | 49 ++++++ .../itemAtWithIndex/dataBodyRange/index.ts | 49 ++++++ .../itemAtWithIndex/headerRowRange/index.ts | 49 ++++++ .../workbook/tables/itemAtWithIndex/index.ts | 77 +++++++++ .../tables/itemAtWithIndex/range/index.ts | 49 ++++++ .../itemAtWithIndex/reapplyFilters/index.ts | 47 +++++ .../tables/itemAtWithIndex/rows/index.ts | 124 ++++++++++++++ .../tables/itemAtWithIndex/sort/index.ts | 118 +++++++++++++ .../itemAtWithIndex/totalRowRange/index.ts | 49 ++++++ .../tables/itemAtWithIndex/worksheet/index.ts | 62 +++++++ .../items/item/workbook/worksheets/index.ts | 2 +- .../workbook/worksheets/item/charts/index.ts | 2 +- .../item/charts/item/series/index.ts | 2 +- .../charts/item/series/item/points/index.ts | 6 +- .../points/itemAtWithIndex/format/index.ts | 117 +++++++++++++ .../item/points/itemAtWithIndex/index.ts | 7 + .../series/itemAtWithIndex/format/index.ts | 117 +++++++++++++ .../item/series/itemAtWithIndex/index.ts | 14 ++ .../series/itemAtWithIndex/points/index.ts | 124 ++++++++++++++ .../item/charts/itemAtWithIndex/axes/index.ts | 117 +++++++++++++ .../itemAtWithIndex/dataLabels/index.ts | 119 +++++++++++++ .../charts/itemAtWithIndex/format/index.ts | 117 +++++++++++++ .../charts/itemAtWithIndex/image/index.ts | 69 ++++++++ .../itemAtWithIndex/imageWithWidth/index.ts | 71 ++++++++ .../imageWithWidthWithHeight/index.ts | 73 ++++++++ .../index.ts | 75 ++++++++ .../item/charts/itemAtWithIndex/index.ts | 106 ++++++++++++ .../charts/itemAtWithIndex/legend/index.ts | 119 +++++++++++++ .../charts/itemAtWithIndex/series/index.ts | 124 ++++++++++++++ .../charts/itemAtWithIndex/setData/index.ts | 80 +++++++++ .../itemAtWithIndex/setPosition/index.ts | 80 +++++++++ .../charts/itemAtWithIndex/title/index.ts | 119 +++++++++++++ .../charts/itemAtWithIndex/worksheet/index.ts | 62 +++++++ .../item/charts/itemWithName/axes/index.ts | 117 +++++++++++++ .../charts/itemWithName/dataLabels/index.ts | 119 +++++++++++++ .../item/charts/itemWithName/format/index.ts | 117 +++++++++++++ .../item/charts/itemWithName/image/index.ts | 69 ++++++++ .../itemWithName/imageWithWidth/index.ts | 71 ++++++++ .../imageWithWidthWithHeight/index.ts | 73 ++++++++ .../index.ts | 75 ++++++++ .../item/charts/itemWithName/index.ts | 106 ++++++++++++ .../item/charts/itemWithName/legend/index.ts | 119 +++++++++++++ .../item/charts/itemWithName/series/index.ts | 124 ++++++++++++++ .../item/charts/itemWithName/setData/index.ts | 80 +++++++++ .../charts/itemWithName/setPosition/index.ts | 80 +++++++++ .../item/charts/itemWithName/title/index.ts | 119 +++++++++++++ .../charts/itemWithName/worksheet/index.ts | 62 +++++++ .../worksheets/item/names/item/range/index.ts | 6 +- .../item/tables/item/columns/index.ts | 2 +- .../itemAtWithIndex/dataBodyRange/index.ts | 49 ++++++ .../columns/itemAtWithIndex/filter/index.ts | 117 +++++++++++++ .../itemAtWithIndex/headerRowRange/index.ts | 49 ++++++ .../item/columns/itemAtWithIndex/index.ts | 35 ++++ .../columns/itemAtWithIndex/range/index.ts | 49 ++++++ .../itemAtWithIndex/totalRowRange/index.ts | 49 ++++++ .../worksheets/item/tables/item/rows/index.ts | 2 +- .../tables/item/rows/itemAtWithIndex/index.ts | 7 + .../item/rows/itemAtWithIndex/range/index.ts | 48 ++++++ .../itemAtWithIndex/clearFilters/index.ts | 47 +++++ .../tables/itemAtWithIndex/columns/index.ts | 124 ++++++++++++++ .../itemAtWithIndex/convertToRange/index.ts | 49 ++++++ .../itemAtWithIndex/dataBodyRange/index.ts | 49 ++++++ .../itemAtWithIndex/headerRowRange/index.ts | 49 ++++++ .../item/tables/itemAtWithIndex/index.ts | 77 +++++++++ .../tables/itemAtWithIndex/range/index.ts | 49 ++++++ .../itemAtWithIndex/reapplyFilters/index.ts | 47 +++++ .../item/tables/itemAtWithIndex/rows/index.ts | 124 ++++++++++++++ .../item/tables/itemAtWithIndex/sort/index.ts | 118 +++++++++++++ .../itemAtWithIndex/totalRowRange/index.ts | 49 ++++++ .../tables/itemAtWithIndex/worksheet/index.ts | 62 +++++++ src/employeeExperience/index.ts | 10 ++ .../index.ts | 120 +++++++++++++ .../learningProviders/item/index.ts | 20 +++ .../learningContentsWithExternalId/index.ts | 121 +++++++++++++ .../index.ts | 121 +++++++++++++ src/groups/item/conversations/item/index.ts | 2 +- .../item/posts/item/inReplyTo/reply/index.ts | 6 +- .../threads/item/posts/item/reply/index.ts | 6 +- .../item/threads/item/reply/index.ts | 6 +- src/groups/item/index.ts | 6 +- .../item/getByPathWithPath/analytics/index.ts | 117 +++++++++++++ .../item/getByPathWithPath/columns/index.ts | 124 ++++++++++++++ .../getByPathWithPath/contentTypes/index.ts | 124 ++++++++++++++ .../getByPathWithPath/createdByUser/index.ts | 62 +++++++ .../item/getByPathWithPath/drive/index.ts | 62 +++++++ .../item/getByPathWithPath/drives/index.ts | 92 ++++++++++ .../externalColumns/index.ts | 92 ++++++++++ .../getActivitiesByInterval/index.ts | 106 ++++++++++++ .../index.ts | 112 ++++++++++++ .../index.ts | 108 ++++++++++++ .../getByPathWithPath1/analytics/index.ts | 117 +++++++++++++ .../getByPathWithPath1/columns/index.ts | 124 ++++++++++++++ .../getByPathWithPath1/contentTypes/index.ts | 124 ++++++++++++++ .../getByPathWithPath1/createdByUser/index.ts | 62 +++++++ .../getByPathWithPath1/drive/index.ts | 62 +++++++ .../getByPathWithPath1/drives/index.ts | 92 ++++++++++ .../externalColumns/index.ts | 92 ++++++++++ .../getByPathWithPath1/index.ts | 162 ++++++++++++++++++ .../getByPathWithPath1/items/index.ts | 92 ++++++++++ .../lastModifiedByUser/index.ts | 62 +++++++ .../getByPathWithPath1/lists/index.ts | 124 ++++++++++++++ .../getByPathWithPath1/onenote/index.ts | 117 +++++++++++++ .../getByPathWithPath1/operations/index.ts | 123 +++++++++++++ .../getByPathWithPath1/permissions/index.ts | 124 ++++++++++++++ .../getByPathWithPath1/sites/index.ts | 93 ++++++++++ .../getByPathWithPath1/termStore/index.ts | 119 +++++++++++++ .../getByPathWithPath1/termStores/index.ts | 122 +++++++++++++ .../sites/item/getByPathWithPath/index.ts | 153 +++++++++++++++++ .../item/getByPathWithPath/items/index.ts | 92 ++++++++++ .../lastModifiedByUser/index.ts | 62 +++++++ .../item/getByPathWithPath/lists/index.ts | 124 ++++++++++++++ .../item/getByPathWithPath/onenote/index.ts | 117 +++++++++++++ .../getByPathWithPath/operations/index.ts | 123 +++++++++++++ .../getByPathWithPath/permissions/index.ts | 124 ++++++++++++++ .../item/getByPathWithPath/sites/index.ts | 93 ++++++++++ .../item/getByPathWithPath/termStore/index.ts | 119 +++++++++++++ .../getByPathWithPath/termStores/index.ts | 122 +++++++++++++ .../item/sites/item/lists/item/index.ts | 6 +- .../team/channels/item/members/item/index.ts | 6 +- .../item/team/channels/item/messages/index.ts | 6 +- .../item/messages/item/replies/index.ts | 6 +- .../team/primaryChannel/members/item/index.ts | 6 +- .../team/primaryChannel/messages/index.ts | 6 +- .../messages/item/replies/index.ts | 6 +- src/groups/item/team/schedule/share/index.ts | 4 +- src/groups/item/threads/item/index.ts | 8 +- .../item/posts/item/inReplyTo/reply/index.ts | 6 +- .../threads/item/posts/item/reply/index.ts | 6 +- src/groups/item/threads/item/reply/index.ts | 6 +- .../item/identityProviders/count/index.ts | 4 +- .../item/identityProviders/index.ts | 8 +- .../item/identityProviders/item/index.ts | 8 +- .../namedLocations/item/index.ts | 6 +- .../accessPackages/item/index.ts | 6 +- .../customWorkflowExtensions/item/index.ts | 12 +- .../customWorkflowExtensions/item/index.ts | 12 +- .../termsOfUse/agreements/item/index.ts | 6 +- .../riskyUsers/item/history/index.ts | 6 +- .../availableProviderTypes/index.ts | 4 +- src/identityProviders/count/index.ts | 4 +- src/identityProviders/index.ts | 14 +- src/identityProviders/item/index.ts | 12 +- src/kiota-lock.json | 2 +- src/models/index.ts | 25 +-- src/organization/index.ts | 6 +- .../subjectRightsRequests/count/index.ts | 4 +- src/privacy/subjectRightsRequests/index.ts | 12 +- .../item/approvers/count/index.ts | 4 +- .../item/approvers/index.ts | 8 +- .../item/approvers/item/index.ts | 8 +- .../approvers/item/mailboxSettings/index.ts | 8 +- .../serviceProvisioningErrors/count/index.ts | 4 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../item/collaborators/count/index.ts | 4 +- .../item/collaborators/index.ts | 8 +- .../item/collaborators/item/index.ts | 8 +- .../item/mailboxSettings/index.ts | 8 +- .../serviceProvisioningErrors/count/index.ts | 4 +- .../item/serviceProvisioningErrors/index.ts | 6 +- .../item/getFinalAttachment/index.ts | 4 +- .../item/getFinalReport/index.ts | 4 +- .../subjectRightsRequests/item/index.ts | 24 +-- .../item/notes/count/index.ts | 4 +- .../subjectRightsRequests/item/notes/index.ts | 12 +- .../item/notes/item/index.ts | 12 +- .../subjectRightsRequests/item/team/index.ts | 4 +- .../item/synchronization/secrets/index.ts | 58 ++++++- .../item/getByPathWithPath/analytics/index.ts | 117 +++++++++++++ .../item/getByPathWithPath/columns/index.ts | 124 ++++++++++++++ .../getByPathWithPath/contentTypes/index.ts | 124 ++++++++++++++ .../getByPathWithPath/createdByUser/index.ts | 62 +++++++ .../item/getByPathWithPath/drive/index.ts | 62 +++++++ .../item/getByPathWithPath/drives/index.ts | 92 ++++++++++ .../externalColumns/index.ts | 92 ++++++++++ .../getActivitiesByInterval/index.ts | 106 ++++++++++++ .../index.ts | 112 ++++++++++++ .../index.ts | 108 ++++++++++++ .../getByPathWithPath1/analytics/index.ts | 117 +++++++++++++ .../getByPathWithPath1/columns/index.ts | 124 ++++++++++++++ .../getByPathWithPath1/contentTypes/index.ts | 124 ++++++++++++++ .../getByPathWithPath1/createdByUser/index.ts | 62 +++++++ .../getByPathWithPath1/drive/index.ts | 62 +++++++ .../getByPathWithPath1/drives/index.ts | 92 ++++++++++ .../externalColumns/index.ts | 92 ++++++++++ .../getByPathWithPath1/index.ts | 162 ++++++++++++++++++ .../getByPathWithPath1/items/index.ts | 92 ++++++++++ .../lastModifiedByUser/index.ts | 62 +++++++ .../getByPathWithPath1/lists/index.ts | 124 ++++++++++++++ .../getByPathWithPath1/onenote/index.ts | 117 +++++++++++++ .../getByPathWithPath1/operations/index.ts | 123 +++++++++++++ .../getByPathWithPath1/permissions/index.ts | 124 ++++++++++++++ .../getByPathWithPath1/sites/index.ts | 93 ++++++++++ .../getByPathWithPath1/termStore/index.ts | 119 +++++++++++++ .../getByPathWithPath1/termStores/index.ts | 122 +++++++++++++ src/sites/item/getByPathWithPath/index.ts | 153 +++++++++++++++++ .../item/getByPathWithPath/items/index.ts | 92 ++++++++++ .../lastModifiedByUser/index.ts | 62 +++++++ .../item/getByPathWithPath/lists/index.ts | 124 ++++++++++++++ .../item/getByPathWithPath/onenote/index.ts | 117 +++++++++++++ .../getByPathWithPath/operations/index.ts | 123 +++++++++++++ .../getByPathWithPath/permissions/index.ts | 124 ++++++++++++++ .../item/getByPathWithPath/sites/index.ts | 93 ++++++++++ .../item/getByPathWithPath/termStore/index.ts | 119 +++++++++++++ .../getByPathWithPath/termStores/index.ts | 122 +++++++++++++ src/sites/item/lists/item/index.ts | 6 +- .../item/channels/item/members/item/index.ts | 6 +- .../item/channels/item/messages/index.ts | 6 +- .../item/messages/item/replies/index.ts | 6 +- .../item/primaryChannel/members/item/index.ts | 6 +- .../item/primaryChannel/messages/index.ts | 6 +- .../messages/item/replies/index.ts | 6 +- src/teams/item/schedule/share/index.ts | 4 +- .../item/channels/item/members/item/index.ts | 6 +- .../item/channels/item/messages/index.ts | 6 +- .../item/messages/item/replies/index.ts | 6 +- src/users/index.ts | 8 +- .../item/chats/item/members/item/index.ts | 6 +- .../chats/item/messages/item/replies/index.ts | 6 +- src/users/item/employeeExperience/index.ts | 10 ++ .../index.ts | 65 +++++++ src/users/item/events/index.ts | 6 +- src/users/item/index.ts | 12 +- .../item/channels/item/members/item/index.ts | 6 +- .../item/channels/item/messages/index.ts | 6 +- .../item/messages/item/replies/index.ts | 6 +- .../item/primaryChannel/members/item/index.ts | 6 +- .../item/primaryChannel/messages/index.ts | 6 +- .../messages/item/replies/index.ts | 6 +- .../joinedTeams/item/schedule/share/index.ts | 4 +- .../mailFolders/item/childFolders/index.ts | 6 +- .../item/messages/item/attachments/index.ts | 6 +- .../item/messages/item/attachments/index.ts | 6 +- src/users/item/messages/index.ts | 8 +- .../item/messages/item/attachments/index.ts | 6 +- src/users/item/messages/item/index.ts | 2 +- src/users/item/messages/item/value/index.ts | 2 +- src/users/item/presence/index.ts | 6 +- 279 files changed, 14399 insertions(+), 426 deletions(-) create mode 100644 src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/dataBodyRange/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/filter/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/headerRowRange/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/range/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/totalRowRange/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/item/rows/itemAtWithIndex/range/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/clearFilters/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/columns/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/convertToRange/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/dataBodyRange/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/headerRowRange/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/range/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/reapplyFilters/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/rows/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/sort/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/totalRowRange/index.ts create mode 100644 src/drives/item/items/item/workbook/tables/itemAtWithIndex/worksheet/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itemAtWithIndex/format/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/format/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/points/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/axes/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/dataLabels/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/format/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/image/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidth/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidthWithHeight/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidthWithHeightWithFittingMode/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/legend/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/series/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/setData/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/setPosition/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/title/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/worksheet/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/axes/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/dataLabels/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/format/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/image/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidth/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidthWithHeight/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidthWithHeightWithFittingMode/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/legend/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/series/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/setData/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/setPosition/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/title/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/worksheet/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/dataBodyRange/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/filter/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/headerRowRange/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/range/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/totalRowRange/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/itemAtWithIndex/range/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/clearFilters/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/columns/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/convertToRange/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/dataBodyRange/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/headerRowRange/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/range/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/reapplyFilters/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/rows/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/sort/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/totalRowRange/index.ts create mode 100644 src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/worksheet/index.ts create mode 100644 src/employeeExperience/learningCourseActivitiesWithExternalcourseActivityId/index.ts create mode 100644 src/employeeExperience/learningProviders/item/learningContentsWithExternalId/index.ts create mode 100644 src/employeeExperience/learningProviders/item/learningCourseActivitiesWithExternalcourseActivityId/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/analytics/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/columns/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/contentTypes/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/createdByUser/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/drive/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/drives/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/externalColumns/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getActivitiesByInterval/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getApplicableContentTypesForListWithListId/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/items/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/lastModifiedByUser/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/lists/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/onenote/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/operations/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/permissions/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/sites/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/termStore/index.ts create mode 100644 src/groups/item/sites/item/getByPathWithPath/termStores/index.ts create mode 100644 src/sites/item/getByPathWithPath/analytics/index.ts create mode 100644 src/sites/item/getByPathWithPath/columns/index.ts create mode 100644 src/sites/item/getByPathWithPath/contentTypes/index.ts create mode 100644 src/sites/item/getByPathWithPath/createdByUser/index.ts create mode 100644 src/sites/item/getByPathWithPath/drive/index.ts create mode 100644 src/sites/item/getByPathWithPath/drives/index.ts create mode 100644 src/sites/item/getByPathWithPath/externalColumns/index.ts create mode 100644 src/sites/item/getByPathWithPath/getActivitiesByInterval/index.ts create mode 100644 src/sites/item/getByPathWithPath/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts create mode 100644 src/sites/item/getByPathWithPath/getApplicableContentTypesForListWithListId/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts create mode 100644 src/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts create mode 100644 src/sites/item/getByPathWithPath/items/index.ts create mode 100644 src/sites/item/getByPathWithPath/lastModifiedByUser/index.ts create mode 100644 src/sites/item/getByPathWithPath/lists/index.ts create mode 100644 src/sites/item/getByPathWithPath/onenote/index.ts create mode 100644 src/sites/item/getByPathWithPath/operations/index.ts create mode 100644 src/sites/item/getByPathWithPath/permissions/index.ts create mode 100644 src/sites/item/getByPathWithPath/sites/index.ts create mode 100644 src/sites/item/getByPathWithPath/termStore/index.ts create mode 100644 src/sites/item/getByPathWithPath/termStores/index.ts create mode 100644 src/users/item/employeeExperience/learningCourseActivitiesWithExternalcourseActivityId/index.ts diff --git a/src/applications/item/synchronization/secrets/index.ts b/src/applications/item/synchronization/secrets/index.ts index 021d85ddb08..5d826260845 100644 --- a/src/applications/item/synchronization/secrets/index.ts +++ b/src/applications/item/synchronization/secrets/index.ts @@ -1,11 +1,55 @@ /* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota -import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, deserializeIntoSynchronizationSecretKeyStringValuePair, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/'; +import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; import { CountRequestBuilder } from './count/'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSecretsPutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + return deserializeIntoSecretsPutRequestBody; +} +export function createSecretsPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + return deserializeIntoSecretsPutResponse; +} +export function deserializeIntoSecretsPutRequestBody(secretsPutRequestBody: SecretsPutRequestBody | undefined = {} as SecretsPutRequestBody) : Record void> { + return { + "value": n => { secretsPutRequestBody.value = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + } +} +export function deserializeIntoSecretsPutResponse(secretsPutResponse: SecretsPutResponse | undefined = {} as SecretsPutResponse) : Record void> { + return { + "value": n => { secretsPutResponse.value = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + } +} +export interface SecretsPutRequestBody extends 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?: SynchronizationSecretKeyStringValuePair[]; +} +export interface SecretsPutResponse extends 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?: SynchronizationSecretKeyStringValuePair[]; +} +export function serializeSecretsPutRequestBody(writer: SerializationWriter, secretsPutRequestBody: SecretsPutRequestBody | undefined = {} as SecretsPutRequestBody) : void { + writer.writeCollectionOfObjectValues("value", secretsPutRequestBody.value, serializeSynchronizationSecretKeyStringValuePair); + writer.writeAdditionalData(secretsPutRequestBody.additionalData); +} +export function serializeSecretsPutResponse(writer: SerializationWriter, secretsPutResponse: SecretsPutResponse | undefined = {} as SecretsPutResponse) : void { + writer.writeCollectionOfObjectValues("value", secretsPutResponse.value, serializeSynchronizationSecretKeyStringValuePair); + writer.writeAdditionalData(secretsPutResponse.additionalData); +} /** * Builds and executes requests for operations under /applications/{application-id}/synchronization/secrets */ @@ -28,9 +72,9 @@ export class SecretsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { + public put(body: SecretsPutRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPutRequestInformation( body, requestConfiguration ); @@ -38,7 +82,7 @@ export class SecretsRequestBuilder extends BaseRequestBuilder>; - return this.requestAdapter.sendCollectionAsync(requestInfo, createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, errorMapping); + return this.requestAdapter.sendAsync(requestInfo, createSecretsPutResponseFromDiscriminatorValue, errorMapping); } /** * Update property secrets value. @@ -46,12 +90,12 @@ export class SecretsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { + public toPutRequestInformation(body: SecretsPutRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); const requestInfo = new RequestInformation(HttpMethod.PUT, this.urlTemplate, this.pathParameters); requestInfo.configure(requestConfiguration); requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSynchronizationSecretKeyStringValuePair); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSecretsPutRequestBody); return requestInfo; } } diff --git a/src/chats/item/members/item/index.ts b/src/chats/item/members/item/index.ts index 87a83ccc16d..09d2608c22a 100644 --- a/src/chats/item/members/item/index.ts +++ b/src/chats/item/members/item/index.ts @@ -43,10 +43,10 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -86,7 +86,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new reply to a chatMessage in a specified channel. + * Send 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/channel-post-messagereply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder new InviteRequestBuilder(x, y)); } /** - * 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( @@ -63,7 +63,7 @@ export class InviteRequestBuilder extends BaseRequestBuilder(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/deviceAppManagement/index.ts b/src/deviceAppManagement/index.ts index 15fc4252501..c7e0bf21604 100644 --- a/src/deviceAppManagement/index.ts +++ b/src/deviceAppManagement/index.ts @@ -136,7 +136,7 @@ export class DeviceAppManagementRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -153,7 +153,7 @@ export class DeviceAppManagementRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( diff --git a/src/deviceAppManagement/managedAppPolicies/index.ts b/src/deviceAppManagement/managedAppPolicies/index.ts index fed3918b3e8..ce924ed4c5a 100644 --- a/src/deviceAppManagement/managedAppPolicies/index.ts +++ b/src/deviceAppManagement/managedAppPolicies/index.ts @@ -71,10 +71,10 @@ export class ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder new ManagedAppPoliciesRequestBuilder(x, y)); } /** - * List properties and relationships of the managedAppConfiguration objects. + * List properties and relationships of the managedAppProtection objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedAppPolicyCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -103,7 +103,7 @@ export class ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder(requestInfo, createManagedAppPolicyFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the managedAppConfiguration objects. + * List properties and relationships of the managedAppProtection objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceAppManagement/managedAppPolicies/item/index.ts b/src/deviceAppManagement/managedAppPolicies/item/index.ts index b0ae314aa22..7543252652a 100644 --- a/src/deviceAppManagement/managedAppPolicies/item/index.ts +++ b/src/deviceAppManagement/managedAppPolicies/item/index.ts @@ -49,10 +49,10 @@ export class ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -92,7 +92,7 @@ export class ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPostRequestInformation( diff --git a/src/deviceAppManagement/managedAppRegistrations/index.ts b/src/deviceAppManagement/managedAppRegistrations/index.ts index de6f67b872c..78bc4612988 100644 --- a/src/deviceAppManagement/managedAppRegistrations/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/index.ts @@ -78,10 +78,10 @@ export class ManagedAppRegistrationsRequestBuilder extends BaseRequestBuilder new ManagedAppRegistrationsRequestBuilder(x, y)); } /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the iosManagedAppRegistration 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-androidmanagedappregistration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -111,7 +111,7 @@ export class ManagedAppRegistrationsRequestBuilder extends BaseRequestBuilder(requestInfo, createManagedAppRegistrationFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the androidManagedAppRegistration objects. + * List properties and relationships of the iosManagedAppRegistration 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/item/targetApps/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts index 285fa299a38..8aac6aafd07 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts @@ -43,7 +43,7 @@ export class TargetAppsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPostRequestInformation( diff --git a/src/deviceAppManagement/managedAppRegistrations/item/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/index.ts index e3174043b6a..92a5243517b 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/index.ts @@ -63,10 +63,10 @@ export class ManagedAppRegistrationItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the managedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedAppRegistration - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -106,7 +106,7 @@ export class ManagedAppRegistrationItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the managedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts index e7324ddcfc9..c0a7abbe22a 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts @@ -43,7 +43,7 @@ export class TargetAppsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPostRequestInformation( diff --git a/src/deviceAppManagement/managedAppStatuses/item/index.ts b/src/deviceAppManagement/managedAppStatuses/item/index.ts index 03a38b30191..8e918bfccda 100644 --- a/src/deviceAppManagement/managedAppStatuses/item/index.ts +++ b/src/deviceAppManagement/managedAppStatuses/item/index.ts @@ -42,10 +42,10 @@ export class ManagedAppStatusItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -85,7 +85,7 @@ export class ManagedAppStatusItemRequestBuilder extends BaseRequestBuilder new AssignmentsRequestBuilder(x, y)); } /** - * 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( @@ -87,11 +87,11 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createManagedEBookAssignmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new iosVppEBookAssignment object. + * Create a new managedEBookAssignment 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-iosvppebookassignment-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0|Find more info here} */ public post(body: ManagedEBookAssignment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -104,7 +104,7 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder(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 */ @@ -115,7 +115,7 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder new ManagedEBookAssignmentItemRequestBuilder(x, y)); } /** - * Deletes a iosVppEBookAssignment. + * Deletes a managedEBookAssignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -59,11 +59,11 @@ export class ManagedEBookAssignmentItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createManagedEBookAssignmentFromDiscriminatorValue, errorMapping); } /** - * Update the properties of a iosVppEBookAssignment object. + * Update the properties of a managedEBookAssignment 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-iosvppebookassignment-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-update?view=graph-rest-1.0|Find more info here} */ public patch(body: ManagedEBookAssignment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -76,7 +76,7 @@ export class ManagedEBookAssignmentItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createManagedEBookAssignmentFromDiscriminatorValue, errorMapping); } /** - * Deletes a iosVppEBookAssignment. + * Deletes a managedEBookAssignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -98,7 +98,7 @@ export class ManagedEBookAssignmentItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Update the properties of a iosVppEBookAssignment object. + * Update the properties of a managedEBookAssignment 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/mobileAppConfigurations/index.ts b/src/deviceAppManagement/mobileAppConfigurations/index.ts index 526ee2dd945..f33778f9b7d 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/index.ts @@ -71,10 +71,10 @@ export class MobileAppConfigurationsRequestBuilder extends BaseRequestBuilder new MobileAppConfigurationsRequestBuilder(x, y)); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedDeviceMobileAppConfigurationCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -104,7 +104,7 @@ export class MobileAppConfigurationsRequestBuilder extends BaseRequestBuilder(requestInfo, createManagedDeviceMobileAppConfigurationFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the iosMobileAppConfiguration objects. + * List properties and relationships of the managedDeviceMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceAppManagement/mobileAppConfigurations/item/index.ts b/src/deviceAppManagement/mobileAppConfigurations/item/index.ts index 1a61d6bc90a..1f974a9651f 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/item/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/item/index.ts @@ -85,10 +85,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( @@ -129,7 +129,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/mobileApps/index.ts b/src/deviceAppManagement/mobileApps/index.ts index 96be127b8f8..c7440df7ae6 100644 --- a/src/deviceAppManagement/mobileApps/index.ts +++ b/src/deviceAppManagement/mobileApps/index.ts @@ -183,10 +183,10 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder new MobileAppsRequestBuilder(x, y)); } /** - * List properties and relationships of the windowsAppX objects. + * List properties and relationships of the macOSLobApp 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-windowsappx-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-macoslobapp-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -199,11 +199,11 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder(requestInfo, createMobileAppCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new windowsUniversalAppX object. + * Create a new macOSMicrosoftEdgeApp 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-windowsuniversalappx-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-macosmicrosoftedgeapp-create?view=graph-rest-1.0|Find more info here} */ public post(body: MobileApp, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -216,7 +216,7 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder(requestInfo, createMobileAppFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the windowsAppX objects. + * List properties and relationships of the macOSLobApp objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -227,7 +227,7 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder new MobileAppItemRequestBuilder(x, y)); } /** - * Deletes a windowsAppX. + * Deletes a managedIOSLobApp. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-windowsappx-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managedioslobapp-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -176,10 +176,10 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -192,11 +192,11 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder(requestInfo, createMobileAppFromDiscriminatorValue, errorMapping); } /** - * Update the properties of a iosiPadOSWebClip object. + * Update the properties of a managedAndroidStoreApp 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-iosipadoswebclip-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managedandroidstoreapp-update?view=graph-rest-1.0|Find more info here} */ public patch(body: MobileApp, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -209,7 +209,7 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder(requestInfo, createMobileAppFromDiscriminatorValue, errorMapping); } /** - * Deletes a windowsAppX. + * Deletes a managedIOSLobApp. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -220,7 +220,7 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder(requestInfo, createDeviceCompliancePolicyCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new androidWorkProfileCompliancePolicy object. + * Create a new windows81CompliancePolicy 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-androidworkprofilecompliancepolicy-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-create?view=graph-rest-1.0|Find more info here} */ public post(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -115,7 +115,7 @@ export class DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuilder new DeviceCompliancePolicyItemRequestBuilder(x, y)); } /** - * Deletes a windows81CompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -106,10 +106,10 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Read properties and relationships of the windows10CompliancePolicy object. + * Read properties and relationships of the windows81CompliancePolicy 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-windows10compliancepolicy-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -122,11 +122,11 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createDeviceCompliancePolicyFromDiscriminatorValue, errorMapping); } /** - * Update the properties of a iosCompliancePolicy object. + * Update the properties of a windows10MobileCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceCompliancePolicy - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-update?view=graph-rest-1.0|Find more info here} */ public patch(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -139,7 +139,7 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createDeviceCompliancePolicyFromDiscriminatorValue, errorMapping); } /** - * Deletes a windows81CompliancePolicy. + * Deletes a androidWorkProfileCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -150,7 +150,7 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Read properties and relationships of the windows10CompliancePolicy object. + * Read properties and relationships of the windows81CompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -161,7 +161,7 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Update the properties of a iosCompliancePolicy object. + * Update the properties of a windows10MobileCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceManagement/deviceConfigurations/index.ts b/src/deviceManagement/deviceConfigurations/index.ts index 8a20de5ab97..28212585ab7 100644 --- a/src/deviceManagement/deviceConfigurations/index.ts +++ b/src/deviceManagement/deviceConfigurations/index.ts @@ -71,10 +71,10 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder new DeviceConfigurationsRequestBuilder(x, y)); } /** - * List properties and relationships of the sharedPCConfiguration objects. + * List properties and relationships of the iosCertificateProfile 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-sharedpcconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscertificateprofile-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -87,11 +87,11 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder(requestInfo, createDeviceConfigurationCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new sharedPCConfiguration object. + * Create a new windowsPhone81CustomConfiguration 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-windowsphone81customconfiguration-create?view=graph-rest-1.0|Find more info here} */ public post(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -104,7 +104,7 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder(requestInfo, createDeviceConfigurationFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the sharedPCConfiguration objects. + * List properties and relationships of the iosCertificateProfile objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -115,7 +115,7 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder new DeviceConfigurationItemRequestBuilder(x, y)); } /** - * Deletes a macOSGeneralDeviceConfiguration. + * Deletes a androidWorkProfileCustomConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macosgeneraldeviceconfiguration-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecustomconfiguration-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -93,10 +93,10 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -118,11 +118,11 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -135,7 +135,7 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder(requestInfo, createDeviceConfigurationFromDiscriminatorValue, errorMapping); } /** - * Deletes a macOSGeneralDeviceConfiguration. + * Deletes a androidWorkProfileCustomConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -146,7 +146,7 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder new DeviceEnrollmentConfigurationsRequestBuilder(x, y)); } /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentConfiguration 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-deviceenrollmentplatformrestrictionsconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentconfiguration-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -87,11 +87,11 @@ export class DeviceEnrollmentConfigurationsRequestBuilder extends BaseRequestBui return this.requestAdapter.sendAsync(requestInfo, createDeviceEnrollmentConfigurationCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Create a new 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-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-create?view=graph-rest-1.0|Find more info here} */ public post(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -104,7 +104,7 @@ export class DeviceEnrollmentConfigurationsRequestBuilder extends BaseRequestBui return this.requestAdapter.sendAsync(requestInfo, createDeviceEnrollmentConfigurationFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -115,7 +115,7 @@ export class DeviceEnrollmentConfigurationsRequestBuilder extends BaseRequestBui return requestInfo; } /** - * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Create a new 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/index.ts b/src/deviceManagement/deviceEnrollmentConfigurations/item/index.ts index 4cb33652ff8..7c15722adeb 100644 --- a/src/deviceManagement/deviceEnrollmentConfigurations/item/index.ts +++ b/src/deviceManagement/deviceEnrollmentConfigurations/item/index.ts @@ -49,9 +49,9 @@ export class DeviceEnrollmentConfigurationItemRequestBuilder extends BaseRequest super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}{?%24select,%24expand}", (x, y) => new DeviceEnrollmentConfigurationItemRequestBuilder(x, y)); } /** - * 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( @@ -64,10 +64,10 @@ export class DeviceEnrollmentConfigurationItemRequestBuilder extends BaseRequest return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @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-deviceenrollmentconfiguration-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -97,7 +97,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 */ @@ -108,7 +108,7 @@ export class DeviceEnrollmentConfigurationItemRequestBuilder extends BaseRequest return requestInfo; } /** - * Read properties and relationships of the deviceEnrollmentConfiguration object. + * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceManagement/index.ts b/src/deviceManagement/index.ts index b387c48d842..bf6877aa7c5 100644 --- a/src/deviceManagement/index.ts +++ b/src/deviceManagement/index.ts @@ -446,7 +446,7 @@ export class DeviceManagementRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -472,7 +472,7 @@ export class DeviceManagementRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( diff --git a/src/deviceManagement/roleDefinitions/index.ts b/src/deviceManagement/roleDefinitions/index.ts index cceb33d00f7..6860009b601 100644 --- a/src/deviceManagement/roleDefinitions/index.ts +++ b/src/deviceManagement/roleDefinitions/index.ts @@ -87,11 +87,11 @@ export class RoleDefinitionsRequestBuilder extends BaseRequestBuilder(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( @@ -115,7 +115,7 @@ export class RoleDefinitionsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -94,7 +94,7 @@ export class RoleDefinitionItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -327,7 +327,7 @@ export class DriveItemItemRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", (x, y) => new RangeRequestBuilder(x, y)); } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookRange - * @see {@link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -34,7 +34,7 @@ export class RangeRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createWorkbookRangeFromDiscriminatorValue, errorMapping); } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. * @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/workbook/tables/item/columns/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/index.ts index 31f72dee58c..ab206e52c9e 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 @@ -82,7 +82,7 @@ export class ColumnsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/dataBodyRange/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/dataBodyRange/index.ts new file mode 100644 index 00000000000..4b637d58f15 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/dataBodyRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the dataBodyRange method. + */ +export class DataBodyRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DataBodyRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/dataBodyRange()", (x, y) => new DataBodyRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the data body of the column. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-databodyrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the data body of the column. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/filter/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/filter/index.ts new file mode 100644 index 00000000000..337ba961213 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/filter/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookFilterFromDiscriminatorValue, deserializeIntoWorkbookFilter, serializeWorkbookFilter, type WorkbookFilter } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface FilterRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. + */ +export class FilterRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new FilterRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/filter{?%24select,%24expand}", (x, y) => new FilterRequestBuilder(x, y)); + } + /** + * Delete navigation property filter for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the filter applied to the column. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFilter + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFilterFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property filter in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFilter + */ + public patch(body: WorkbookFilter, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFilterFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property filter for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the filter applied to the column. Read-only. + * @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, filterRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property filter in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookFilter, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookFilter); + return requestInfo; + } +} +const filterRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/headerRowRange/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/headerRowRange/index.ts new file mode 100644 index 00000000000..2767daf9826 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/headerRowRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the headerRowRange method. + */ +export class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/headerRowRange()", (x, y) => new HeaderRowRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the header row of the column. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-headerrowrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the header row of the column. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ 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 0e4d26df016..f022d4960a7 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 @@ -3,12 +3,47 @@ // Generated by Microsoft Kiota import { createWorkbookTableColumnFromDiscriminatorValue, type WorkbookTableColumn } from '../../../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../models/oDataErrors/'; +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'; /** * Provides operations to call the itemAt method. */ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the dataBodyRange method. + */ + public get dataBodyRange(): DataBodyRangeRequestBuilder { + return new DataBodyRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. + */ + public get filter(): FilterRequestBuilder { + return new FilterRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the headerRowRange method. + */ + public get headerRowRange(): HeaderRowRangeRequestBuilder { + return new HeaderRowRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the range method. + */ + public get range(): RangeRequestBuilder { + return new RangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the totalRowRange method. + */ + public get totalRowRange(): TotalRowRangeRequestBuilder { + return new TotalRowRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. * @param index Usage: index={index} diff --git a/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/range/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/range/index.ts new file mode 100644 index 00000000000..a2d196b4da9 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/range/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the range method. + */ +export class RangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new RangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/range()", (x, y) => new RangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the entire column. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-range?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the entire column. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/totalRowRange/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/totalRowRange/index.ts new file mode 100644 index 00000000000..c264a25cbf2 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/item/columns/itemAtWithIndex/totalRowRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the totalRowRange method. + */ +export class TotalRowRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TotalRowRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/totalRowRange()", (x, y) => new TotalRowRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the totals row of the column. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-totalrowrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the totals row of the column. + * @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; + } +} +/* 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 29619fe130a..4669cfe27f4 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 @@ -82,7 +82,7 @@ export class RowsRequestBuilder extends BaseRequestBuilder { * Retrieve a list of tablerow objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookTableRowCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/tablerow-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/tables/item/rows/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/tables/item/rows/itemAtWithIndex/index.ts index dc34d3ea952..9ad217a2957 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 @@ -3,12 +3,19 @@ // Generated by Microsoft Kiota import { createWorkbookTableRowFromDiscriminatorValue, type WorkbookTableRow } from '../../../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../models/oDataErrors/'; +import { RangeRequestBuilder } from './range/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; /** * Provides operations to call the itemAt method. */ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the range method. + */ + public get range(): RangeRequestBuilder { + return new RangeRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. * @param index Usage: index={index} diff --git a/src/drives/item/items/item/workbook/tables/item/rows/itemAtWithIndex/range/index.ts b/src/drives/item/items/item/workbook/tables/item/rows/itemAtWithIndex/range/index.ts new file mode 100644 index 00000000000..a37d9c392c7 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/item/rows/itemAtWithIndex/range/index.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the range method. + */ +export class RangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new RangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/range()", (x, y) => new RangeRequestBuilder(x, y)); + } + /** + * Invoke function range + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function range + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/clearFilters/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/clearFilters/index.ts new file mode 100644 index 00000000000..79be1459ac6 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/clearFilters/index.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the clearFilters method. + */ +export class ClearFiltersRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ClearFiltersRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/clearFilters", (x, y) => new ClearFiltersRequestBuilder(x, y)); + } + /** + * Clears all the filters currently applied on the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @see {@link https://learn.microsoft.com/graph/api/table-clearfilters?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.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Clears all the filters currently applied on the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/columns/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/columns/index.ts new file mode 100644 index 00000000000..4a1d5d0c058 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/columns/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookTableColumnCollectionResponseFromDiscriminatorValue, createWorkbookTableColumnFromDiscriminatorValue, deserializeIntoWorkbookTableColumn, serializeWorkbookTableColumn, type WorkbookTableColumn, type WorkbookTableColumnCollectionResponse } from '../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. + */ +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/tables/itemAt(index={index})/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ColumnsRequestBuilder(x, y)); + } + /** + * 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/table-list-columns?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, createWorkbookTableColumnCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Use this API to create a new TableColumn. + * @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/table-post-columns?view=graph-rest-1.0|Find more info here} + */ + public post(body: WorkbookTableColumn, 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); + } + /** + * Retrieve a list of tablecolumn objects. + * @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, columnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Use this API to create a new TableColumn. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: WorkbookTableColumn, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookTableColumn); + return requestInfo; + } +} +const columnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/convertToRange/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/convertToRange/index.ts new file mode 100644 index 00000000000..8e7b415ff3e --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/convertToRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the convertToRange method. + */ +export class ConvertToRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ConvertToRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/convertToRange", (x, y) => new ConvertToRangeRequestBuilder(x, y)); + } + /** + * Converts the table into a normal range of cells. All data is preserved. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-converttorange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Converts the table into a normal range of cells. All data is preserved. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/dataBodyRange/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/dataBodyRange/index.ts new file mode 100644 index 00000000000..cde9dfcc7ee --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/dataBodyRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the dataBodyRange method. + */ +export class DataBodyRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DataBodyRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/dataBodyRange()", (x, y) => new DataBodyRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the data body of the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-databodyrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the data body of the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/headerRowRange/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/headerRowRange/index.ts new file mode 100644 index 00000000000..fc454a4b66c --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/headerRowRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the headerRowRange method. + */ +export class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/headerRowRange()", (x, y) => new HeaderRowRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with header row of the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-headerrowrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with header row of the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ 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 e1d9130f436..9ff13377308 100644 --- a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/index.ts +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/index.ts @@ -3,12 +3,89 @@ // Generated by Microsoft Kiota import { createWorkbookTableFromDiscriminatorValue, type WorkbookTable } from '../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +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'; /** * Provides operations to call the itemAt method. */ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the clearFilters method. + */ + public get clearFilters(): ClearFiltersRequestBuilder { + return new ClearFiltersRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. + */ + public get columns(): ColumnsRequestBuilder { + return new ColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the convertToRange method. + */ + public get convertToRange(): ConvertToRangeRequestBuilder { + return new ConvertToRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the dataBodyRange method. + */ + public get dataBodyRange(): DataBodyRangeRequestBuilder { + return new DataBodyRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the headerRowRange method. + */ + public get headerRowRange(): HeaderRowRangeRequestBuilder { + return new HeaderRowRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the range method. + */ + public get range(): RangeRequestBuilder { + return new RangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the reapplyFilters method. + */ + public get reapplyFilters(): ReapplyFiltersRequestBuilder { + return new ReapplyFiltersRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. + */ + public get rows(): RowsRequestBuilder { + return new RowsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. + */ + public get sort(): SortRequestBuilder { + return new SortRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the totalRowRange method. + */ + public get totalRowRange(): TotalRowRangeRequestBuilder { + return new TotalRowRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. + */ + public get worksheet(): WorksheetRequestBuilder { + return new WorksheetRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. * @param index Usage: index={index} diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/range/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/range/index.ts new file mode 100644 index 00000000000..15b9f20460d --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/range/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the range method. + */ +export class RangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new RangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/range()", (x, y) => new RangeRequestBuilder(x, y)); + } + /** + * Get the range object associated with the entire table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-range?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Get the range object associated with the entire table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/reapplyFilters/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/reapplyFilters/index.ts new file mode 100644 index 00000000000..a9daf64939a --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/reapplyFilters/index.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the reapplyFilters method. + */ +export class ReapplyFiltersRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ReapplyFiltersRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/reapplyFilters", (x, y) => new ReapplyFiltersRequestBuilder(x, y)); + } + /** + * Reapplies all the filters currently on the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @see {@link https://learn.microsoft.com/graph/api/table-reapplyfilters?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.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Reapplies all the filters currently on the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/rows/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/rows/index.ts new file mode 100644 index 00000000000..1b3c5b333d0 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/rows/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookTableRowCollectionResponseFromDiscriminatorValue, createWorkbookTableRowFromDiscriminatorValue, deserializeIntoWorkbookTableRow, serializeWorkbookTableRow, type WorkbookTableRow, type WorkbookTableRowCollectionResponse } from '../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface RowsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. + */ +export class RowsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new RowsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/rows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new RowsRequestBuilder(x, y)); + } + /** + * Retrieve a list of tablerow objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookTableRowCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/tablerow-list?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, createWorkbookTableRowCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + * @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/table-post-rows?view=graph-rest-1.0|Find more info here} + */ + public post(body: WorkbookTableRow, 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); + } + /** + * Retrieve a list of tablerow objects. + * @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, rowsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the 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: WorkbookTableRow, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookTableRow); + return requestInfo; + } +} +const rowsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/sort/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/sort/index.ts new file mode 100644 index 00000000000..eed0fc95e7d --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/sort/index.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookTableSortFromDiscriminatorValue, deserializeIntoWorkbookTableSort, serializeWorkbookTableSort, type WorkbookTableSort } from '../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface SortRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. + */ +export class SortRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SortRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/sort{?%24select,%24expand}", (x, y) => new SortRequestBuilder(x, y)); + } + /** + * Delete navigation property sort for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the properties and relationships of tablesort object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookTableSort + * @see {@link https://learn.microsoft.com/graph/api/tablesort-get?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, createWorkbookTableSortFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property sort in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookTableSort + */ + public patch(body: WorkbookTableSort, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableSortFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property sort for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the properties and relationships of tablesort object. + * @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, sortRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property sort in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookTableSort, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookTableSort); + return requestInfo; + } +} +const sortRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/totalRowRange/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/totalRowRange/index.ts new file mode 100644 index 00000000000..5abf4cf1080 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/totalRowRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the totalRowRange method. + */ +export class TotalRowRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TotalRowRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/totalRowRange()", (x, y) => new TotalRowRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with totals row of the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-totalrowrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with totals row of the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/tables/itemAtWithIndex/worksheet/index.ts b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/worksheet/index.ts new file mode 100644 index 00000000000..265b3c70041 --- /dev/null +++ b/src/drives/item/items/item/workbook/tables/itemAtWithIndex/worksheet/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookWorksheetFromDiscriminatorValue, type WorkbookWorksheet } from '../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface WorksheetRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. + */ +export class WorksheetRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new WorksheetRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/worksheet{?%24select,%24expand}", (x, y) => new WorksheetRequestBuilder(x, y)); + } + /** + * The worksheet containing the current table. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookWorksheet + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookWorksheetFromDiscriminatorValue, errorMapping); + } + /** + * The worksheet containing the current table. Read-only. + * @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, worksheetRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const worksheetRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/index.ts b/src/drives/item/items/item/workbook/worksheets/index.ts index c741eed1351..73288352194 100644 --- a/src/drives/item/items/item/workbook/worksheets/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/index.ts @@ -81,7 +81,7 @@ export class WorksheetsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( 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 76d38f06c07..86061cd5e61 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 @@ -83,7 +83,7 @@ export class ChartsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( 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 9c757a64111..7d447acd4af 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 @@ -75,7 +75,7 @@ export class SeriesRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( 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 1ffd883b9ab..8ffd5f0ad09 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 @@ -72,10 +72,10 @@ export class PointsRequestBuilder extends BaseRequestBuilder new PointsRequestBuilder(x, y)); } /** - * Retrieve a list of chartpoint objects. + * Retrieve a list of chartpoints objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookChartPointCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/chartpoint-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chartseries-list-points?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 PointsRequestBuilder extends BaseRequestBuilder(requestInfo, createWorkbookChartPointFromDiscriminatorValue, errorMapping); } /** - * Retrieve a list of chartpoint objects. + * Retrieve a list of chartpoints objects. * @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/workbook/worksheets/item/charts/item/series/item/points/itemAtWithIndex/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itemAtWithIndex/format/index.ts new file mode 100644 index 00000000000..d583abe4994 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itemAtWithIndex/format/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartPointFormatFromDiscriminatorValue, deserializeIntoWorkbookChartPointFormat, serializeWorkbookChartPointFormat, type WorkbookChartPointFormat } from '../../../../../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface FormatRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. + */ +export class FormatRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new FormatRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/format{?%24select,%24expand}", (x, y) => new FormatRequestBuilder(x, y)); + } + /** + * Delete navigation property format for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Encapsulates the format properties chart point. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartPointFormat + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartPointFormatFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property format in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartPointFormat + */ + public patch(body: WorkbookChartPointFormat, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartPointFormatFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property format for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Encapsulates the format properties chart point. Read-only. + * @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, formatRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property format in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartPointFormat, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartPointFormat); + return requestInfo; + } +} +const formatRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ 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 c8176e469c4..2d35d8811cc 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 @@ -3,12 +3,19 @@ // Generated by Microsoft Kiota import { createWorkbookChartPointFromDiscriminatorValue, type WorkbookChartPoint } from '../../../../../../../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../../models/oDataErrors/'; +import { FormatRequestBuilder } from './format/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; /** * Provides operations to call the itemAt method. */ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. + */ + public get format(): FormatRequestBuilder { + return new FormatRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. * @param index Usage: index={index} diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/format/index.ts new file mode 100644 index 00000000000..72fddea5d54 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/format/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartSeriesFormatFromDiscriminatorValue, deserializeIntoWorkbookChartSeriesFormat, serializeWorkbookChartSeriesFormat, type WorkbookChartSeriesFormat } from '../../../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface FormatRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. + */ +export class FormatRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new FormatRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/format{?%24select,%24expand}", (x, y) => new FormatRequestBuilder(x, y)); + } + /** + * Delete navigation property format for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartSeriesFormat + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartSeriesFormatFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property format in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartSeriesFormat + */ + public patch(body: WorkbookChartSeriesFormat, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartSeriesFormatFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property format for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * @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, formatRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property format in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartSeriesFormat, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartSeriesFormat); + return requestInfo; + } +} +const formatRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ 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 9a741b47342..31d7ca7967f 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 @@ -3,12 +3,26 @@ // Generated by Microsoft Kiota import { createWorkbookChartSeriesFromDiscriminatorValue, type WorkbookChartSeries } from '../../../../../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +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'; /** * Provides operations to call the itemAt method. */ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. + */ + public get format(): FormatRequestBuilder { + return new FormatRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. + */ + public get points(): PointsRequestBuilder { + return new PointsRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. * @param index Usage: index={index} diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/points/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/points/index.ts new file mode 100644 index 00000000000..9042adc8f46 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/itemAtWithIndex/points/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartPointCollectionResponseFromDiscriminatorValue, createWorkbookChartPointFromDiscriminatorValue, deserializeIntoWorkbookChartPoint, serializeWorkbookChartPoint, type WorkbookChartPoint, type WorkbookChartPointCollectionResponse } from '../../../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface PointsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. + */ +export class PointsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new PointsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new PointsRequestBuilder(x, y)); + } + /** + * Retrieve a list of chartpoints objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartPointCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/chartseries-list-points?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, createWorkbookChartPointCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Use this API to create a new ChartPoints. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartPoint + * @see {@link https://learn.microsoft.com/graph/api/chartseries-post-points?view=graph-rest-1.0|Find more info here} + */ + public post(body: WorkbookChartPoint, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartPointFromDiscriminatorValue, errorMapping); + } + /** + * Retrieve a list of chartpoints objects. + * @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, pointsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Use this API to create a new ChartPoints. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: WorkbookChartPoint, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartPoint); + return requestInfo; + } +} +const pointsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/axes/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/axes/index.ts new file mode 100644 index 00000000000..c7ba0df2f24 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/axes/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartAxesFromDiscriminatorValue, deserializeIntoWorkbookChartAxes, serializeWorkbookChartAxes, type WorkbookChartAxes } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface AxesRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. + */ +export class AxesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new AxesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/axes{?%24select,%24expand}", (x, y) => new AxesRequestBuilder(x, y)); + } + /** + * Delete navigation property axes for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Represents chart axes. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartAxes + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartAxesFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property axes in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartAxes + */ + public patch(body: WorkbookChartAxes, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartAxesFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property axes for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Represents chart axes. Read-only. + * @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, axesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property axes in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartAxes, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartAxes); + return requestInfo; + } +} +const axesRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/dataLabels/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/dataLabels/index.ts new file mode 100644 index 00000000000..9720f594a93 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/dataLabels/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartDataLabelsFromDiscriminatorValue, deserializeIntoWorkbookChartDataLabels, serializeWorkbookChartDataLabels, type WorkbookChartDataLabels } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DataLabelsRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. + */ +export class DataLabelsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DataLabelsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/dataLabels{?%24select,%24expand}", (x, y) => new DataLabelsRequestBuilder(x, y)); + } + /** + * Delete navigation property dataLabels for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the properties and relationships of chartdatalabels object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartDataLabels + * @see {@link https://learn.microsoft.com/graph/api/chartdatalabels-get?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, createWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of chartdatalabels object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartDataLabels + * @see {@link https://learn.microsoft.com/graph/api/chartdatalabels-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: WorkbookChartDataLabels, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property dataLabels for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the properties and relationships of chartdatalabels object. + * @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, dataLabelsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of chartdatalabels object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartDataLabels, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartDataLabels); + return requestInfo; + } +} +const dataLabelsRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/format/index.ts new file mode 100644 index 00000000000..c88446c9300 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/format/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartAreaFormatFromDiscriminatorValue, deserializeIntoWorkbookChartAreaFormat, serializeWorkbookChartAreaFormat, type WorkbookChartAreaFormat } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface FormatRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the format property of the microsoft.graph.workbookChart entity. + */ +export class FormatRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new FormatRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/format{?%24select,%24expand}", (x, y) => new FormatRequestBuilder(x, y)); + } + /** + * Delete navigation property format for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Encapsulates the format properties for the chart area. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartAreaFormat + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property format in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartAreaFormat + */ + public patch(body: WorkbookChartAreaFormat, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property format for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Encapsulates the format properties for the chart area. Read-only. + * @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, formatRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property format in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartAreaFormat, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartAreaFormat); + return requestInfo; + } +} +const formatRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/image/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/image/index.ts new file mode 100644 index 00000000000..245eb938836 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/image/index.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class ImageRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ImageRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/image()", (x, y) => new ImageRequestBuilder(x, y)); + } + /** + * Invoke function image + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ImageGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createImageGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function image + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidth/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidth/index.ts new file mode 100644 index 00000000000..79bf7a602c7 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidth/index.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class ImageWithWidthRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ImageWithWidthRequestBuilder and sets the default values. + * @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 width Usage: width={width} + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, width?: number | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width})", (x, y) => new ImageWithWidthRequestBuilder(x, y)); + this.pathParameters["width"] = width + } + /** + * Invoke function image + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ImageWithWidthGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createImageWithWidthGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function image + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidthWithHeight/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidthWithHeight/index.ts new file mode 100644 index 00000000000..787525ee11d --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidthWithHeight/index.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class ImageWithWidthWithHeightRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ImageWithWidthWithHeightRequestBuilder and sets the default values. + * @param height Usage: height={height} + * @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 width Usage: width={width} + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, height?: number | undefined, width?: number | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height})", (x, y) => new ImageWithWidthWithHeightRequestBuilder(x, y)); + this.pathParameters["height"] = height + this.pathParameters["width"] = width + } + /** + * Invoke function image + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ImageWithWidthWithHeightGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createImageWithWidthWithHeightGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function image + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidthWithHeightWithFittingMode/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidthWithHeightWithFittingMode/index.ts new file mode 100644 index 00000000000..6955a11505d --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/imageWithWidthWithHeightWithFittingMode/index.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class ImageWithWidthWithHeightWithFittingModeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. + * @param fittingMode Usage: fittingMode='{fittingMode}' + * @param height Usage: height={height} + * @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 width Usage: width={width} + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, fittingMode?: string | undefined, height?: number | undefined, width?: number | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height},fittingMode='{fittingMode}')", (x, y) => new ImageWithWidthWithHeightWithFittingModeRequestBuilder(x, y)); + this.pathParameters["fittingMode"] = fittingMode + this.pathParameters["height"] = height + this.pathParameters["width"] = width + } + /** + * Invoke function image + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ImageWithWidthWithHeightWithFittingModeGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function image + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ 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 829ae2803c2..6dcb7e7475a 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 @@ -3,12 +3,85 @@ // Generated by Microsoft Kiota import { createWorkbookChartFromDiscriminatorValue, type WorkbookChart } from '../../../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../models/oDataErrors/'; +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'; /** * Provides operations to call the itemAt method. */ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. + */ + public get axes(): AxesRequestBuilder { + return new AxesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. + */ + public get dataLabels(): DataLabelsRequestBuilder { + return new DataLabelsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the format property of the microsoft.graph.workbookChart entity. + */ + public get format(): FormatRequestBuilder { + return new FormatRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the image method. + */ + public get image(): ImageRequestBuilder { + return new ImageRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. + */ + public get legend(): LegendRequestBuilder { + return new LegendRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the series property of the microsoft.graph.workbookChart entity. + */ + public get series(): SeriesRequestBuilder { + return new SeriesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the setData method. + */ + public get setData(): SetDataRequestBuilder { + return new SetDataRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the setPosition method. + */ + public get setPosition(): SetPositionRequestBuilder { + return new SetPositionRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the title property of the microsoft.graph.workbookChart entity. + */ + public get title(): TitleRequestBuilder { + return new TitleRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. + */ + public get worksheet(): WorksheetRequestBuilder { + return new WorksheetRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. * @param index Usage: index={index} @@ -34,6 +107,39 @@ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder>; return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartFromDiscriminatorValue, errorMapping); } + /** + * Provides operations to call the image method. + * @param width Usage: width={width} + * @returns a imageWithWidthRequestBuilder + */ + public imageWithWidth(width: number | undefined) : ImageWithWidthRequestBuilder { + if(!width) throw new Error("width cannot be undefined"); + return new ImageWithWidthRequestBuilder(this.pathParameters, this.requestAdapter, width); + } + /** + * Provides operations to call the image method. + * @param height Usage: height={height} + * @param width Usage: width={width} + * @returns a imageWithWidthWithHeightRequestBuilder + */ + public imageWithWidthWithHeight(height: number | undefined, width: number | undefined) : ImageWithWidthWithHeightRequestBuilder { + if(!height) throw new Error("height cannot be undefined"); + if(!width) throw new Error("width cannot be undefined"); + return new ImageWithWidthWithHeightRequestBuilder(this.pathParameters, this.requestAdapter, height, width); + } + /** + * Provides operations to call the image method. + * @param fittingMode Usage: fittingMode='{fittingMode}' + * @param height Usage: height={height} + * @param width Usage: width={width} + * @returns a imageWithWidthWithHeightWithFittingModeRequestBuilder + */ + public imageWithWidthWithHeightWithFittingMode(fittingMode: string | undefined, height: number | undefined, width: number | undefined) : ImageWithWidthWithHeightWithFittingModeRequestBuilder { + if(!fittingMode) throw new Error("fittingMode cannot be undefined"); + if(!height) throw new Error("height cannot be undefined"); + if(!width) throw new Error("width cannot be undefined"); + return new ImageWithWidthWithHeightWithFittingModeRequestBuilder(this.pathParameters, this.requestAdapter, fittingMode, height, width); + } /** * Invoke function itemAt * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/legend/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/legend/index.ts new file mode 100644 index 00000000000..dc336ee301e --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/legend/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartLegendFromDiscriminatorValue, deserializeIntoWorkbookChartLegend, serializeWorkbookChartLegend, type WorkbookChartLegend } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LegendRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. + */ +export class LegendRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LegendRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/legend{?%24select,%24expand}", (x, y) => new LegendRequestBuilder(x, y)); + } + /** + * Delete navigation property legend for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the properties and relationships of chartlegend object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartLegend + * @see {@link https://learn.microsoft.com/graph/api/chartlegend-get?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, createWorkbookChartLegendFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of chartlegend object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartLegend + * @see {@link https://learn.microsoft.com/graph/api/chartlegend-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: WorkbookChartLegend, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartLegendFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property legend for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the properties and relationships of chartlegend object. + * @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, legendRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of chartlegend object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartLegend, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartLegend); + return requestInfo; + } +} +const legendRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/series/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/series/index.ts new file mode 100644 index 00000000000..25753081ff1 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/series/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartSeriesCollectionResponseFromDiscriminatorValue, createWorkbookChartSeriesFromDiscriminatorValue, deserializeIntoWorkbookChartSeries, serializeWorkbookChartSeries, type WorkbookChartSeries, type WorkbookChartSeriesCollectionResponse } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface SeriesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the series property of the microsoft.graph.workbookChart entity. + */ +export class SeriesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SeriesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/series{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new SeriesRequestBuilder(x, y)); + } + /** + * Retrieve a list of chartseries objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartSeriesCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/chart-list-series?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, createWorkbookChartSeriesCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Use this API to create a new ChartSeries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartSeries + * @see {@link https://learn.microsoft.com/graph/api/chart-post-series?view=graph-rest-1.0|Find more info here} + */ + public post(body: WorkbookChartSeries, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartSeriesFromDiscriminatorValue, errorMapping); + } + /** + * Retrieve a list of chartseries objects. + * @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, seriesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Use this API to create a new ChartSeries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: WorkbookChartSeries, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartSeries); + return requestInfo; + } +} +const seriesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/setData/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/setData/index.ts new file mode 100644 index 00000000000..6e0e876df17 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/setData/index.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class SetDataRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SetDataRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/setData", (x, y) => new SetDataRequestBuilder(x, y)); + } + /** + * Resets the source data for the chart. + * @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-setdata?view=graph-rest-1.0|Find more info here} + */ + public post(body: SetDataPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Resets the source data for the 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: SetDataPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSetDataPostRequestBody); + return requestInfo; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/setPosition/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/setPosition/index.ts new file mode 100644 index 00000000000..aae50b5a3ca --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/setPosition/index.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; + +export function createSetPositionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + return deserializeIntoSetPositionPostRequestBody; +} +export function deserializeIntoSetPositionPostRequestBody(setPositionPostRequestBody: SetPositionPostRequestBody | undefined = {} as SetPositionPostRequestBody) : Record void> { + return { + "endCell": n => { setPositionPostRequestBody.endCell = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startCell": n => { setPositionPostRequestBody.startCell = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSetPositionPostRequestBody(writer: SerializationWriter, setPositionPostRequestBody: SetPositionPostRequestBody | undefined = {} as SetPositionPostRequestBody) : void { + writer.writeObjectValue("endCell", setPositionPostRequestBody.endCell, serializeJson); + writer.writeObjectValue("startCell", setPositionPostRequestBody.startCell, serializeJson); + writer.writeAdditionalData(setPositionPostRequestBody.additionalData); +} +export interface SetPositionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The endCell property + */ + endCell?: Json; + /** + * The startCell property + */ + 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/itemAt(index={index})/setPosition", (x, y) => new SetPositionRequestBuilder(x, y)); + } + /** + * 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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/title/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/title/index.ts new file mode 100644 index 00000000000..124d10ec7fe --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/title/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartTitleFromDiscriminatorValue, deserializeIntoWorkbookChartTitle, serializeWorkbookChartTitle, type WorkbookChartTitle } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TitleRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the title property of the microsoft.graph.workbookChart entity. + */ +export class TitleRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TitleRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/title{?%24select,%24expand}", (x, y) => new TitleRequestBuilder(x, y)); + } + /** + * Delete navigation property title for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the properties and relationships of charttitle object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartTitle + * @see {@link https://learn.microsoft.com/graph/api/charttitle-get?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, createWorkbookChartTitleFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of charttitle object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartTitle + * @see {@link https://learn.microsoft.com/graph/api/charttitle-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: WorkbookChartTitle, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartTitleFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property title for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the properties and relationships of charttitle object. + * @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, titleRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of charttitle object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartTitle, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartTitle); + return requestInfo; + } +} +const titleRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/worksheet/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/worksheet/index.ts new file mode 100644 index 00000000000..7a4baed4b96 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemAtWithIndex/worksheet/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookWorksheetFromDiscriminatorValue, type WorkbookWorksheet } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface WorksheetRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. + */ +export class WorksheetRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new WorksheetRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/worksheet{?%24select,%24expand}", (x, y) => new WorksheetRequestBuilder(x, y)); + } + /** + * The worksheet containing the current chart. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookWorksheet + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookWorksheetFromDiscriminatorValue, errorMapping); + } + /** + * The worksheet containing the current chart. Read-only. + * @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, worksheetRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const worksheetRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/axes/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/axes/index.ts new file mode 100644 index 00000000000..bc56aa2edaa --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/axes/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartAxesFromDiscriminatorValue, deserializeIntoWorkbookChartAxes, serializeWorkbookChartAxes, type WorkbookChartAxes } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface AxesRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. + */ +export class AxesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new AxesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/item(name='{name}')/axes{?%24select,%24expand}", (x, y) => new AxesRequestBuilder(x, y)); + } + /** + * Delete navigation property axes for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Represents chart axes. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartAxes + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartAxesFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property axes in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartAxes + */ + public patch(body: WorkbookChartAxes, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartAxesFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property axes for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Represents chart axes. Read-only. + * @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, axesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property axes in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartAxes, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartAxes); + return requestInfo; + } +} +const axesRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/dataLabels/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/dataLabels/index.ts new file mode 100644 index 00000000000..6affdef335f --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/dataLabels/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartDataLabelsFromDiscriminatorValue, deserializeIntoWorkbookChartDataLabels, serializeWorkbookChartDataLabels, type WorkbookChartDataLabels } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DataLabelsRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. + */ +export class DataLabelsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DataLabelsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/item(name='{name}')/dataLabels{?%24select,%24expand}", (x, y) => new DataLabelsRequestBuilder(x, y)); + } + /** + * Delete navigation property dataLabels for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the properties and relationships of chartdatalabels object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartDataLabels + * @see {@link https://learn.microsoft.com/graph/api/chartdatalabels-get?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, createWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of chartdatalabels object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartDataLabels + * @see {@link https://learn.microsoft.com/graph/api/chartdatalabels-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: WorkbookChartDataLabels, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property dataLabels for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the properties and relationships of chartdatalabels object. + * @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, dataLabelsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of chartdatalabels object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartDataLabels, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartDataLabels); + return requestInfo; + } +} +const dataLabelsRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/format/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/format/index.ts new file mode 100644 index 00000000000..26f103b9ada --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/format/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartAreaFormatFromDiscriminatorValue, deserializeIntoWorkbookChartAreaFormat, serializeWorkbookChartAreaFormat, type WorkbookChartAreaFormat } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface FormatRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the format property of the microsoft.graph.workbookChart entity. + */ +export class FormatRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new FormatRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/item(name='{name}')/format{?%24select,%24expand}", (x, y) => new FormatRequestBuilder(x, y)); + } + /** + * Delete navigation property format for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Encapsulates the format properties for the chart area. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartAreaFormat + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property format in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartAreaFormat + */ + public patch(body: WorkbookChartAreaFormat, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property format for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Encapsulates the format properties for the chart area. Read-only. + * @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, formatRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property format in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartAreaFormat, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartAreaFormat); + return requestInfo; + } +} +const formatRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/image/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/image/index.ts new file mode 100644 index 00000000000..79adea7b82b --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/image/index.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class ImageRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ImageRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/item(name='{name}')/image()", (x, y) => new ImageRequestBuilder(x, y)); + } + /** + * Invoke function image + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ImageGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createImageGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function image + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidth/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidth/index.ts new file mode 100644 index 00000000000..f01c6298794 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidth/index.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class ImageWithWidthRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ImageWithWidthRequestBuilder and sets the default values. + * @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 width Usage: width={width} + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, width?: number | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width})", (x, y) => new ImageWithWidthRequestBuilder(x, y)); + this.pathParameters["width"] = width + } + /** + * Invoke function image + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ImageWithWidthGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createImageWithWidthGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function image + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidthWithHeight/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidthWithHeight/index.ts new file mode 100644 index 00000000000..1ffeb72eb08 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidthWithHeight/index.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class ImageWithWidthWithHeightRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ImageWithWidthWithHeightRequestBuilder and sets the default values. + * @param height Usage: height={height} + * @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 width Usage: width={width} + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, height?: number | undefined, width?: number | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height})", (x, y) => new ImageWithWidthWithHeightRequestBuilder(x, y)); + this.pathParameters["height"] = height + this.pathParameters["width"] = width + } + /** + * Invoke function image + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ImageWithWidthWithHeightGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createImageWithWidthWithHeightGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function image + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidthWithHeightWithFittingMode/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidthWithHeightWithFittingMode/index.ts new file mode 100644 index 00000000000..f7e09966201 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/imageWithWidthWithHeightWithFittingMode/index.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class ImageWithWidthWithHeightWithFittingModeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. + * @param fittingMode Usage: fittingMode='{fittingMode}' + * @param height Usage: height={height} + * @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 width Usage: width={width} + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, fittingMode?: string | undefined, height?: number | undefined, width?: number | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height},fittingMode='{fittingMode}')", (x, y) => new ImageWithWidthWithHeightWithFittingModeRequestBuilder(x, y)); + this.pathParameters["fittingMode"] = fittingMode + this.pathParameters["height"] = height + this.pathParameters["width"] = width + } + /** + * Invoke function image + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ImageWithWidthWithHeightWithFittingModeGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function image + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ 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 8ad6e0ac10f..a90bbdedd71 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 @@ -3,12 +3,85 @@ // Generated by Microsoft Kiota import { createWorkbookChartFromDiscriminatorValue, type WorkbookChart } from '../../../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../models/oDataErrors/'; +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'; /** * Provides operations to call the item method. */ export class ItemWithNameRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. + */ + public get axes(): AxesRequestBuilder { + return new AxesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. + */ + public get dataLabels(): DataLabelsRequestBuilder { + return new DataLabelsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the format property of the microsoft.graph.workbookChart entity. + */ + public get format(): FormatRequestBuilder { + return new FormatRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the image method. + */ + public get image(): ImageRequestBuilder { + return new ImageRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. + */ + public get legend(): LegendRequestBuilder { + return new LegendRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the series property of the microsoft.graph.workbookChart entity. + */ + public get series(): SeriesRequestBuilder { + return new SeriesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the setData method. + */ + public get setData(): SetDataRequestBuilder { + return new SetDataRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the setPosition method. + */ + public get setPosition(): SetPositionRequestBuilder { + return new SetPositionRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the title property of the microsoft.graph.workbookChart entity. + */ + public get title(): TitleRequestBuilder { + return new TitleRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. + */ + public get worksheet(): WorksheetRequestBuilder { + return new WorksheetRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemWithNameRequestBuilder and sets the default values. * @param name Usage: name='{name}' @@ -34,6 +107,39 @@ export class ItemWithNameRequestBuilder extends BaseRequestBuilder>; return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartFromDiscriminatorValue, errorMapping); } + /** + * Provides operations to call the image method. + * @param width Usage: width={width} + * @returns a imageWithWidthRequestBuilder + */ + public imageWithWidth(width: number | undefined) : ImageWithWidthRequestBuilder { + if(!width) throw new Error("width cannot be undefined"); + return new ImageWithWidthRequestBuilder(this.pathParameters, this.requestAdapter, width); + } + /** + * Provides operations to call the image method. + * @param height Usage: height={height} + * @param width Usage: width={width} + * @returns a imageWithWidthWithHeightRequestBuilder + */ + public imageWithWidthWithHeight(height: number | undefined, width: number | undefined) : ImageWithWidthWithHeightRequestBuilder { + if(!height) throw new Error("height cannot be undefined"); + if(!width) throw new Error("width cannot be undefined"); + return new ImageWithWidthWithHeightRequestBuilder(this.pathParameters, this.requestAdapter, height, width); + } + /** + * Provides operations to call the image method. + * @param fittingMode Usage: fittingMode='{fittingMode}' + * @param height Usage: height={height} + * @param width Usage: width={width} + * @returns a imageWithWidthWithHeightWithFittingModeRequestBuilder + */ + public imageWithWidthWithHeightWithFittingMode(fittingMode: string | undefined, height: number | undefined, width: number | undefined) : ImageWithWidthWithHeightWithFittingModeRequestBuilder { + if(!fittingMode) throw new Error("fittingMode cannot be undefined"); + if(!height) throw new Error("height cannot be undefined"); + if(!width) throw new Error("width cannot be undefined"); + return new ImageWithWidthWithHeightWithFittingModeRequestBuilder(this.pathParameters, this.requestAdapter, fittingMode, height, width); + } /** * Invoke function item * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/legend/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/legend/index.ts new file mode 100644 index 00000000000..a4a51411230 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/legend/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartLegendFromDiscriminatorValue, deserializeIntoWorkbookChartLegend, serializeWorkbookChartLegend, type WorkbookChartLegend } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LegendRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. + */ +export class LegendRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LegendRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/item(name='{name}')/legend{?%24select,%24expand}", (x, y) => new LegendRequestBuilder(x, y)); + } + /** + * Delete navigation property legend for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the properties and relationships of chartlegend object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartLegend + * @see {@link https://learn.microsoft.com/graph/api/chartlegend-get?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, createWorkbookChartLegendFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of chartlegend object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartLegend + * @see {@link https://learn.microsoft.com/graph/api/chartlegend-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: WorkbookChartLegend, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartLegendFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property legend for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the properties and relationships of chartlegend object. + * @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, legendRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of chartlegend object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartLegend, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartLegend); + return requestInfo; + } +} +const legendRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/series/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/series/index.ts new file mode 100644 index 00000000000..77330817df6 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/series/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartSeriesCollectionResponseFromDiscriminatorValue, createWorkbookChartSeriesFromDiscriminatorValue, deserializeIntoWorkbookChartSeries, serializeWorkbookChartSeries, type WorkbookChartSeries, type WorkbookChartSeriesCollectionResponse } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface SeriesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the series property of the microsoft.graph.workbookChart entity. + */ +export class SeriesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SeriesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/item(name='{name}')/series{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new SeriesRequestBuilder(x, y)); + } + /** + * Retrieve a list of chartseries objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartSeriesCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/chart-list-series?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, createWorkbookChartSeriesCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Use this API to create a new ChartSeries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartSeries + * @see {@link https://learn.microsoft.com/graph/api/chart-post-series?view=graph-rest-1.0|Find more info here} + */ + public post(body: WorkbookChartSeries, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartSeriesFromDiscriminatorValue, errorMapping); + } + /** + * Retrieve a list of chartseries objects. + * @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, seriesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Use this API to create a new ChartSeries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: WorkbookChartSeries, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartSeries); + return requestInfo; + } +} +const seriesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/setData/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/setData/index.ts new file mode 100644 index 00000000000..f08df2fa9c9 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/setData/index.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, 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) { + 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. + */ +export class SetDataRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SetDataRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/item(name='{name}')/setData", (x, y) => new SetDataRequestBuilder(x, y)); + } + /** + * Resets the source data for the chart. + * @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-setdata?view=graph-rest-1.0|Find more info here} + */ + public post(body: SetDataPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Resets the source data for the 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: SetDataPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSetDataPostRequestBody); + return requestInfo; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/setPosition/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/setPosition/index.ts new file mode 100644 index 00000000000..9ae7b4c4a02 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/setPosition/index.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createJsonFromDiscriminatorValue, serializeJson, type Json } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; + +export function createSetPositionPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + return deserializeIntoSetPositionPostRequestBody; +} +export function deserializeIntoSetPositionPostRequestBody(setPositionPostRequestBody: SetPositionPostRequestBody | undefined = {} as SetPositionPostRequestBody) : Record void> { + return { + "endCell": n => { setPositionPostRequestBody.endCell = n.getObjectValue(createJsonFromDiscriminatorValue); }, + "startCell": n => { setPositionPostRequestBody.startCell = n.getObjectValue(createJsonFromDiscriminatorValue); }, + } +} +export function serializeSetPositionPostRequestBody(writer: SerializationWriter, setPositionPostRequestBody: SetPositionPostRequestBody | undefined = {} as SetPositionPostRequestBody) : void { + writer.writeObjectValue("endCell", setPositionPostRequestBody.endCell, serializeJson); + writer.writeObjectValue("startCell", setPositionPostRequestBody.startCell, serializeJson); + writer.writeAdditionalData(setPositionPostRequestBody.additionalData); +} +export interface SetPositionPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The endCell property + */ + endCell?: Json; + /** + * The startCell property + */ + 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/item(name='{name}')/setPosition", (x, y) => new SetPositionRequestBuilder(x, y)); + } + /** + * 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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/title/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/title/index.ts new file mode 100644 index 00000000000..d3b79888aa5 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/title/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookChartTitleFromDiscriminatorValue, deserializeIntoWorkbookChartTitle, serializeWorkbookChartTitle, type WorkbookChartTitle } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TitleRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the title property of the microsoft.graph.workbookChart entity. + */ +export class TitleRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TitleRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/item(name='{name}')/title{?%24select,%24expand}", (x, y) => new TitleRequestBuilder(x, y)); + } + /** + * Delete navigation property title for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the properties and relationships of charttitle object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartTitle + * @see {@link https://learn.microsoft.com/graph/api/charttitle-get?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, createWorkbookChartTitleFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of charttitle object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookChartTitle + * @see {@link https://learn.microsoft.com/graph/api/charttitle-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: WorkbookChartTitle, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookChartTitleFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property title for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the properties and relationships of charttitle object. + * @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, titleRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of charttitle object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookChartTitle, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookChartTitle); + return requestInfo; + } +} +const titleRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/worksheet/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/worksheet/index.ts new file mode 100644 index 00000000000..44da74a4e7a --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/itemWithName/worksheet/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookWorksheetFromDiscriminatorValue, type WorkbookWorksheet } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface WorksheetRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. + */ +export class WorksheetRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new WorksheetRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/item(name='{name}')/worksheet{?%24select,%24expand}", (x, y) => new WorksheetRequestBuilder(x, y)); + } + /** + * The worksheet containing the current chart. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookWorksheet + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookWorksheetFromDiscriminatorValue, errorMapping); + } + /** + * The worksheet containing the current chart. Read-only. + * @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, worksheetRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const worksheetRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ 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 5afad283aad..3ccfbc8c568 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 @@ -18,10 +18,10 @@ export class RangeRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", (x, y) => new RangeRequestBuilder(x, y)); } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookRange - * @see {@link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -34,7 +34,7 @@ export class RangeRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createWorkbookRangeFromDiscriminatorValue, errorMapping); } /** - * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + * Retrieve the properties and relationships of range object. * @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/workbook/worksheets/item/tables/item/columns/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/index.ts index 1d15c440351..c39dd96f3e9 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 @@ -82,7 +82,7 @@ export class ColumnsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/dataBodyRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/dataBodyRange/index.ts new file mode 100644 index 00000000000..4828cb11a8d --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/dataBodyRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the dataBodyRange method. + */ +export class DataBodyRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DataBodyRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/dataBodyRange()", (x, y) => new DataBodyRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the data body of the column. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-databodyrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the data body of the column. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/filter/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/filter/index.ts new file mode 100644 index 00000000000..5ab04293bab --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/filter/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookFilterFromDiscriminatorValue, deserializeIntoWorkbookFilter, serializeWorkbookFilter, type WorkbookFilter } from '../../../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface FilterRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. + */ +export class FilterRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new FilterRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/filter{?%24select,%24expand}", (x, y) => new FilterRequestBuilder(x, y)); + } + /** + * Delete navigation property filter for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the filter applied to the column. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFilter + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFilterFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property filter in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookFilter + */ + public patch(body: WorkbookFilter, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookFilterFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property filter for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the filter applied to the column. Read-only. + * @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, filterRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property filter in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookFilter, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookFilter); + return requestInfo; + } +} +const filterRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/headerRowRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/headerRowRange/index.ts new file mode 100644 index 00000000000..5055cace454 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/headerRowRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the headerRowRange method. + */ +export class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/headerRowRange()", (x, y) => new HeaderRowRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the header row of the column. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-headerrowrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the header row of the column. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ 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 1951df99033..489b58fbcd5 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 @@ -3,12 +3,47 @@ // Generated by Microsoft Kiota import { createWorkbookTableColumnFromDiscriminatorValue, type WorkbookTableColumn } from '../../../../../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +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'; /** * Provides operations to call the itemAt method. */ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the dataBodyRange method. + */ + public get dataBodyRange(): DataBodyRangeRequestBuilder { + return new DataBodyRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. + */ + public get filter(): FilterRequestBuilder { + return new FilterRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the headerRowRange method. + */ + public get headerRowRange(): HeaderRowRangeRequestBuilder { + return new HeaderRowRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the range method. + */ + public get range(): RangeRequestBuilder { + return new RangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the totalRowRange method. + */ + public get totalRowRange(): TotalRowRangeRequestBuilder { + return new TotalRowRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. * @param index Usage: index={index} diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/range/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/range/index.ts new file mode 100644 index 00000000000..ebfb38dce98 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/range/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the range method. + */ +export class RangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new RangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/range()", (x, y) => new RangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the entire column. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-range?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the entire column. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/totalRowRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/totalRowRange/index.ts new file mode 100644 index 00000000000..6550247eae3 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itemAtWithIndex/totalRowRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the totalRowRange method. + */ +export class TotalRowRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TotalRowRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/totalRowRange()", (x, y) => new TotalRowRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the totals row of the column. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/tablecolumn-totalrowrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the totals row of the column. + * @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; + } +} +/* 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 ea5f2aed004..c624dc62036 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 @@ -82,7 +82,7 @@ export class RowsRequestBuilder extends BaseRequestBuilder { * Retrieve a list of tablerow objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookTableRowCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/tablerow-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/worksheets/item/tables/item/rows/itemAtWithIndex/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/itemAtWithIndex/index.ts index 90925ca0cca..966dc8c8b7f 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 @@ -3,12 +3,19 @@ // Generated by Microsoft Kiota import { createWorkbookTableRowFromDiscriminatorValue, type WorkbookTableRow } from '../../../../../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../models/oDataErrors/'; +import { RangeRequestBuilder } from './range/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; /** * Provides operations to call the itemAt method. */ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the range method. + */ + public get range(): RangeRequestBuilder { + return new RangeRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. * @param index Usage: index={index} diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/itemAtWithIndex/range/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/itemAtWithIndex/range/index.ts new file mode 100644 index 00000000000..e69a6368fb4 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/itemAtWithIndex/range/index.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the range method. + */ +export class RangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new RangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/range()", (x, y) => new RangeRequestBuilder(x, y)); + } + /** + * Invoke function range + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function range + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/clearFilters/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/clearFilters/index.ts new file mode 100644 index 00000000000..b2e89a4b731 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/clearFilters/index.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the clearFilters method. + */ +export class ClearFiltersRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ClearFiltersRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/clearFilters", (x, y) => new ClearFiltersRequestBuilder(x, y)); + } + /** + * Clears all the filters currently applied on the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @see {@link https://learn.microsoft.com/graph/api/table-clearfilters?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.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Clears all the filters currently applied on the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/columns/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/columns/index.ts new file mode 100644 index 00000000000..78401eb072a --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/columns/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookTableColumnCollectionResponseFromDiscriminatorValue, createWorkbookTableColumnFromDiscriminatorValue, deserializeIntoWorkbookTableColumn, serializeWorkbookTableColumn, type WorkbookTableColumn, type WorkbookTableColumnCollectionResponse } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. + */ +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/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ColumnsRequestBuilder(x, y)); + } + /** + * 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/table-list-columns?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, createWorkbookTableColumnCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Use this API to create a new TableColumn. + * @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/table-post-columns?view=graph-rest-1.0|Find more info here} + */ + public post(body: WorkbookTableColumn, 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); + } + /** + * Retrieve a list of tablecolumn objects. + * @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, columnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Use this API to create a new TableColumn. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: WorkbookTableColumn, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookTableColumn); + return requestInfo; + } +} +const columnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/convertToRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/convertToRange/index.ts new file mode 100644 index 00000000000..95c0d97109b --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/convertToRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the convertToRange method. + */ +export class ConvertToRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ConvertToRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/convertToRange", (x, y) => new ConvertToRangeRequestBuilder(x, y)); + } + /** + * Converts the table into a normal range of cells. All data is preserved. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-converttorange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Converts the table into a normal range of cells. All data is preserved. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/dataBodyRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/dataBodyRange/index.ts new file mode 100644 index 00000000000..1ce362c6492 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/dataBodyRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the dataBodyRange method. + */ +export class DataBodyRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DataBodyRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/dataBodyRange()", (x, y) => new DataBodyRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with the data body of the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-databodyrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with the data body of the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/headerRowRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/headerRowRange/index.ts new file mode 100644 index 00000000000..209fe0e0a41 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/headerRowRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the headerRowRange method. + */ +export class HeaderRowRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new HeaderRowRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/headerRowRange()", (x, y) => new HeaderRowRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with header row of the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-headerrowrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with header row of the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ 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 f74ae63a7e1..7b7d7871400 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 @@ -3,12 +3,89 @@ // Generated by Microsoft Kiota import { createWorkbookTableFromDiscriminatorValue, type WorkbookTable } from '../../../../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../models/oDataErrors/'; +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'; /** * Provides operations to call the itemAt method. */ export class ItemAtWithIndexRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the clearFilters method. + */ + public get clearFilters(): ClearFiltersRequestBuilder { + return new ClearFiltersRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. + */ + public get columns(): ColumnsRequestBuilder { + return new ColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the convertToRange method. + */ + public get convertToRange(): ConvertToRangeRequestBuilder { + return new ConvertToRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the dataBodyRange method. + */ + public get dataBodyRange(): DataBodyRangeRequestBuilder { + return new DataBodyRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the headerRowRange method. + */ + public get headerRowRange(): HeaderRowRangeRequestBuilder { + return new HeaderRowRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the range method. + */ + public get range(): RangeRequestBuilder { + return new RangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the reapplyFilters method. + */ + public get reapplyFilters(): ReapplyFiltersRequestBuilder { + return new ReapplyFiltersRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. + */ + public get rows(): RowsRequestBuilder { + return new RowsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. + */ + public get sort(): SortRequestBuilder { + return new SortRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the totalRowRange method. + */ + public get totalRowRange(): TotalRowRangeRequestBuilder { + return new TotalRowRangeRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. + */ + public get worksheet(): WorksheetRequestBuilder { + return new WorksheetRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new ItemAtWithIndexRequestBuilder and sets the default values. * @param index Usage: index={index} diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/range/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/range/index.ts new file mode 100644 index 00000000000..8d125dcdca4 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/range/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the range method. + */ +export class RangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new RangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/range()", (x, y) => new RangeRequestBuilder(x, y)); + } + /** + * Get the range object associated with the entire table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-range?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Get the range object associated with the entire table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/reapplyFilters/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/reapplyFilters/index.ts new file mode 100644 index 00000000000..2f9f6d628cf --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/reapplyFilters/index.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the reapplyFilters method. + */ +export class ReapplyFiltersRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ReapplyFiltersRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/reapplyFilters", (x, y) => new ReapplyFiltersRequestBuilder(x, y)); + } + /** + * Reapplies all the filters currently on the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @see {@link https://learn.microsoft.com/graph/api/table-reapplyfilters?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.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Reapplies all the filters currently on the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/rows/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/rows/index.ts new file mode 100644 index 00000000000..7fc5d74582c --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/rows/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookTableRowCollectionResponseFromDiscriminatorValue, createWorkbookTableRowFromDiscriminatorValue, deserializeIntoWorkbookTableRow, serializeWorkbookTableRow, type WorkbookTableRow, type WorkbookTableRowCollectionResponse } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface RowsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. + */ +export class RowsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new RowsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/rows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new RowsRequestBuilder(x, y)); + } + /** + * Retrieve a list of tablerow objects. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookTableRowCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/tablerow-list?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, createWorkbookTableRowCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the request. + * @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/table-post-rows?view=graph-rest-1.0|Find more info here} + */ + public post(body: WorkbookTableRow, 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); + } + /** + * Retrieve a list of tablerow objects. + * @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, rowsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Adds rows to the end of a table. Note that this API can accept multiple rows of data. Adding one row at a time can affect performance. The recommended approach is to batch the rows together in a single call rather than inserting single rows. For best results, collect the rows to be inserted on the application side and perform a single row add operation. Experiment with the number of rows to determine the ideal number of rows to use in a single API call. This request might occasionally result in a 504 HTTP error. The appropriate response to this error is to repeat the 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: WorkbookTableRow, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookTableRow); + return requestInfo; + } +} +const rowsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/sort/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/sort/index.ts new file mode 100644 index 00000000000..3700109ed53 --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/sort/index.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookTableSortFromDiscriminatorValue, deserializeIntoWorkbookTableSort, serializeWorkbookTableSort, type WorkbookTableSort } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface SortRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. + */ +export class SortRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SortRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/sort{?%24select,%24expand}", (x, y) => new SortRequestBuilder(x, y)); + } + /** + * Delete navigation property sort for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Retrieve the properties and relationships of tablesort object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookTableSort + * @see {@link https://learn.microsoft.com/graph/api/tablesort-get?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, createWorkbookTableSortFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property sort in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookTableSort + */ + public patch(body: WorkbookTableSort, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableSortFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property sort for drives + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Retrieve the properties and relationships of tablesort object. + * @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, sortRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property sort in drives + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: WorkbookTableSort, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeWorkbookTableSort); + return requestInfo; + } +} +const sortRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/totalRowRange/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/totalRowRange/index.ts new file mode 100644 index 00000000000..bca93f5d94d --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/totalRowRange/index.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookRangeFromDiscriminatorValue, type WorkbookRange } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +/** + * Provides operations to call the totalRowRange method. + */ +export class TotalRowRangeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TotalRowRangeRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/totalRowRange()", (x, y) => new TotalRowRangeRequestBuilder(x, y)); + } + /** + * Gets the range object associated with totals row of the table. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookRange + * @see {@link https://learn.microsoft.com/graph/api/table-totalrowrange?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, createWorkbookRangeFromDiscriminatorValue, errorMapping); + } + /** + * Gets the range object associated with totals row of the table. + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/worksheet/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/worksheet/index.ts new file mode 100644 index 00000000000..2e16105db0c --- /dev/null +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/itemAtWithIndex/worksheet/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createWorkbookWorksheetFromDiscriminatorValue, type WorkbookWorksheet } from '../../../../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface WorksheetRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. + */ +export class WorksheetRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new WorksheetRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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/itemAt(index={index})/worksheet{?%24select,%24expand}", (x, y) => new WorksheetRequestBuilder(x, y)); + } + /** + * The worksheet containing the current table. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of WorkbookWorksheet + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createWorkbookWorksheetFromDiscriminatorValue, errorMapping); + } + /** + * The worksheet containing the current table. Read-only. + * @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, worksheetRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const worksheetRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/employeeExperience/index.ts b/src/employeeExperience/index.ts index f369f95453c..b3905300400 100644 --- a/src/employeeExperience/index.ts +++ b/src/employeeExperience/index.ts @@ -4,6 +4,7 @@ import { createEmployeeExperienceFromDiscriminatorValue, deserializeIntoEmployeeExperience, serializeEmployeeExperience, type EmployeeExperience } from '../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../models/oDataErrors/'; import { LearningCourseActivitiesRequestBuilder } from './learningCourseActivities/'; +import { LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder } from './learningCourseActivitiesWithExternalcourseActivityId/'; import { LearningProvidersRequestBuilder } from './learningProviders/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; @@ -56,6 +57,15 @@ export class EmployeeExperienceRequestBuilder extends BaseRequestBuilder>; return this.requestAdapter.sendAsync(requestInfo, createEmployeeExperienceFromDiscriminatorValue, errorMapping); } + /** + * Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity. + * @param externalcourseActivityId Alternate key of learningCourseActivity + * @returns a learningCourseActivitiesWithExternalcourseActivityIdRequestBuilder + */ + public learningCourseActivitiesWithExternalcourseActivityId(externalcourseActivityId: string | undefined) : LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder { + if(!externalcourseActivityId) throw new Error("externalcourseActivityId cannot be undefined"); + return new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(this.pathParameters, this.requestAdapter, externalcourseActivityId); + } /** * Update employeeExperience * @param body The request body diff --git a/src/employeeExperience/learningCourseActivitiesWithExternalcourseActivityId/index.ts b/src/employeeExperience/learningCourseActivitiesWithExternalcourseActivityId/index.ts new file mode 100644 index 00000000000..ea5a25a69d7 --- /dev/null +++ b/src/employeeExperience/learningCourseActivitiesWithExternalcourseActivityId/index.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createLearningCourseActivityFromDiscriminatorValue, deserializeIntoLearningCourseActivity, serializeLearningCourseActivity, type LearningCourseActivity } from '../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity. + */ +export class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder and sets the default values. + * @param externalcourseActivityId Alternate key of learningCourseActivity + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, externalcourseActivityId?: string | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/employeeExperience/learningCourseActivities(externalcourseActivityId='{externalcourseActivityId}'){?%24select,%24expand}", (x, y) => new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(x, y)); + this.pathParameters["externalcourseActivityId"] = externalcourseActivityId + } + /** + * Delete navigation property learningCourseActivities for employeeExperience + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of LearningCourseActivity + * @see {@link https://learn.microsoft.com/graph/api/learningcourseactivity-get?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, createLearningCourseActivityFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property learningCourseActivities in employeeExperience + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of LearningCourseActivity + */ + public patch(body: LearningCourseActivity, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createLearningCourseActivityFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property learningCourseActivities for employeeExperience + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a 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, learningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property learningCourseActivities in employeeExperience + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: LearningCourseActivity, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLearningCourseActivity); + return requestInfo; + } +} +const learningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/employeeExperience/learningProviders/item/index.ts b/src/employeeExperience/learningProviders/item/index.ts index 81f9ca2541a..98a0836ef02 100644 --- a/src/employeeExperience/learningProviders/item/index.ts +++ b/src/employeeExperience/learningProviders/item/index.ts @@ -4,7 +4,9 @@ import { createLearningProviderFromDiscriminatorValue, deserializeIntoLearningProvider, serializeLearningProvider, type LearningProvider } from '../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../models/oDataErrors/'; import { LearningContentsRequestBuilder } from './learningContents/'; +import { LearningContentsWithExternalIdRequestBuilder } from './learningContentsWithExternalId/'; import { LearningCourseActivitiesRequestBuilder } from './learningCourseActivities/'; +import { LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder } from './learningCourseActivitiesWithExternalcourseActivityId/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface LearningProviderItemRequestBuilderGetQueryParameters { @@ -72,6 +74,24 @@ export class LearningProviderItemRequestBuilder extends BaseRequestBuilder>; return this.requestAdapter.sendAsync(requestInfo, createLearningProviderFromDiscriminatorValue, errorMapping); } + /** + * Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity. + * @param externalId Alternate key of learningContent + * @returns a learningContentsWithExternalIdRequestBuilder + */ + public learningContentsWithExternalId(externalId: string | undefined) : LearningContentsWithExternalIdRequestBuilder { + if(!externalId) throw new Error("externalId cannot be undefined"); + return new LearningContentsWithExternalIdRequestBuilder(this.pathParameters, this.requestAdapter, externalId); + } + /** + * Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity. + * @param externalcourseActivityId Alternate key of learningCourseActivity + * @returns a learningCourseActivitiesWithExternalcourseActivityIdRequestBuilder + */ + public learningCourseActivitiesWithExternalcourseActivityId(externalcourseActivityId: string | undefined) : LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder { + if(!externalcourseActivityId) throw new Error("externalcourseActivityId cannot be undefined"); + return new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(this.pathParameters, this.requestAdapter, externalcourseActivityId); + } /** * Update the properties of a learningProvider object. * @param body The request body diff --git a/src/employeeExperience/learningProviders/item/learningContentsWithExternalId/index.ts b/src/employeeExperience/learningProviders/item/learningContentsWithExternalId/index.ts new file mode 100644 index 00000000000..bd7f97fef20 --- /dev/null +++ b/src/employeeExperience/learningProviders/item/learningContentsWithExternalId/index.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createLearningContentFromDiscriminatorValue, deserializeIntoLearningContent, serializeLearningContent, type LearningContent } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LearningContentsWithExternalIdRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity. + */ +export class LearningContentsWithExternalIdRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LearningContentsWithExternalIdRequestBuilder and sets the default values. + * @param externalId Alternate key of learningContent + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, externalId?: string | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents(externalId='{externalId}'){?%24select,%24expand}", (x, y) => new LearningContentsWithExternalIdRequestBuilder(x, y)); + this.pathParameters["externalId"] = externalId + } + /** + * Delete the specified learningContent resource that represents the metadata of the specified provider's ingested content. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @see {@link https://learn.microsoft.com/graph/api/learningprovider-delete-learningcontents?view=graph-rest-1.0|Find more info here} + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of LearningContent + * @see {@link https://learn.microsoft.com/graph/api/learningcontent-get?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, createLearningContentFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property learningContents in employeeExperience + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of LearningContent + */ + public patch(body: LearningContent, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createLearningContentFromDiscriminatorValue, errorMapping); + } + /** + * Delete the specified learningContent resource that represents the metadata of the specified provider's ingested content. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. + * @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, learningContentsWithExternalIdRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property learningContents in employeeExperience + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: LearningContent, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLearningContent); + return requestInfo; + } +} +const learningContentsWithExternalIdRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/employeeExperience/learningProviders/item/learningCourseActivitiesWithExternalcourseActivityId/index.ts b/src/employeeExperience/learningProviders/item/learningCourseActivitiesWithExternalcourseActivityId/index.ts new file mode 100644 index 00000000000..3a4c73e5f23 --- /dev/null +++ b/src/employeeExperience/learningProviders/item/learningCourseActivitiesWithExternalcourseActivityId/index.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createLearningCourseActivityFromDiscriminatorValue, deserializeIntoLearningCourseActivity, serializeLearningCourseActivity, type LearningCourseActivity } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity. + */ +export class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder and sets the default values. + * @param externalcourseActivityId Alternate key of learningCourseActivity + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, externalcourseActivityId?: string | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities(externalcourseActivityId='{externalcourseActivityId}'){?%24select,%24expand}", (x, y) => new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(x, y)); + this.pathParameters["externalcourseActivityId"] = externalcourseActivityId + } + /** + * Delete a learningCourseActivity object using the course activity ID of either an assignment or a self-initiated activity. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @see {@link https://learn.microsoft.com/graph/api/learningcourseactivity-delete?view=graph-rest-1.0|Find more info here} + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Get learningCourseActivities from employeeExperience + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of LearningCourseActivity + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createLearningCourseActivityFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of a learningCourseActivity object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of LearningCourseActivity + * @see {@link https://learn.microsoft.com/graph/api/learningcourseactivity-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: LearningCourseActivity, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createLearningCourseActivityFromDiscriminatorValue, errorMapping); + } + /** + * Delete a learningCourseActivity object using the course activity ID of either an assignment or a self-initiated activity. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get learningCourseActivities from employeeExperience + * @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, learningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a learningCourseActivity object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: LearningCourseActivity, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeLearningCourseActivity); + return requestInfo; + } +} +const learningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/conversations/item/index.ts b/src/groups/item/conversations/item/index.ts index be3333923e4..f5e3be2422c 100644 --- a/src/groups/item/conversations/item/index.ts +++ b/src/groups/item/conversations/item/index.ts @@ -33,7 +33,7 @@ export class ConversationItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( 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 0bb25eece85..2c82fcfa80e 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 @@ -40,10 +40,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * 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. + * 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. * @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/opentypeextension-post-opentypeextension?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * 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. + * 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. * @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/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/reply/index.ts index 320a8382964..c0d120561f7 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 @@ -40,10 +40,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * 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. + * 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. * @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/opentypeextension-post-opentypeextension?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * 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. + * 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. * @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/index.ts b/src/groups/item/conversations/item/threads/item/reply/index.ts index 9a457eabea8..0d6528cf95b 100644 --- a/src/groups/item/conversations/item/threads/item/reply/index.ts +++ b/src/groups/item/conversations/item/threads/item/reply/index.ts @@ -40,10 +40,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * 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. + * 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. * @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-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * 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. + * 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. * @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/index.ts b/src/groups/item/index.ts index afc8730aa53..2097d70c089 100644 --- a/src/groups/item/index.ts +++ b/src/groups/item/index.ts @@ -360,11 +360,11 @@ export class GroupItemRequestBuilder extends BaseRequestBuilder(requestInfo, createGroupFromDiscriminatorValue, errorMapping); } /** - * 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. + * Update the properties of a group object. * @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-post-members?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/group-update?view=graph-rest-1.0|Find more info here} */ public patch(body: Group, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -399,7 +399,7 @@ export class GroupItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new AnalyticsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/analytics{?%24select,%24expand}", (x, y) => new AnalyticsRequestBuilder(x, y)); + } + /** + * Delete navigation property analytics for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Analytics about the view activities that took place in this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ItemAnalytics + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createItemAnalyticsFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property analytics in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ItemAnalytics + */ + public patch(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createItemAnalyticsFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property analytics for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Analytics about the view activities that took place in this site. + * @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, analyticsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property analytics in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeItemAnalytics); + return requestInfo; + } +} +const analyticsRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/columns/index.ts b/src/groups/item/sites/item/getByPathWithPath/columns/index.ts new file mode 100644 index 00000000000..fb348360950 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/columns/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition, type ColumnDefinitionCollectionResponse } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the columns property of the microsoft.graph.site entity. + */ +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}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ColumnsRequestBuilder(x, y)); + } + /** + * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinitionCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-columns?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, createColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinition + * @see {@link https://learn.microsoft.com/graph/api/site-post-columns?view=graph-rest-1.0|Find more info here} + */ + public post(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createColumnDefinitionFromDiscriminatorValue, errorMapping); + } + /** + * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * @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, columnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeColumnDefinition); + return requestInfo; + } +} +const columnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/contentTypes/index.ts b/src/groups/item/sites/item/getByPathWithPath/contentTypes/index.ts new file mode 100644 index 00000000000..2dd772d226d --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/contentTypes/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createContentTypeCollectionResponseFromDiscriminatorValue, createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType, type ContentTypeCollectionResponse } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ContentTypesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + */ +export class ContentTypesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ContentTypesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ContentTypesRequestBuilder(x, y)); + } + /** + * Get the collection of [contentType][contentType] resources in a [site][]. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ContentTypeCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-contenttypes?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, createContentTypeCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new [contentType][] in a [site][]. + * @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/site-post-contenttypes?view=graph-rest-1.0|Find more info here} + */ + public post(body: ContentType, 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); + } + /** + * Get the collection of [contentType][contentType] resources in a [site][]. + * @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, contentTypesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new [contentType][] in a [site][]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ContentType, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeContentType); + return requestInfo; + } +} +const contentTypesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/createdByUser/index.ts b/src/groups/item/sites/item/getByPathWithPath/createdByUser/index.ts new file mode 100644 index 00000000000..cf7b83082c2 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/createdByUser/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createUserFromDiscriminatorValue, type User } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface CreatedByUserRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ +export class CreatedByUserRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new CreatedByUserRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/createdByUser{?%24select,%24expand}", (x, y) => new CreatedByUserRequestBuilder(x, y)); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of User + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, createdByUserRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const createdByUserRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/drive/index.ts b/src/groups/item/sites/item/getByPathWithPath/drive/index.ts new file mode 100644 index 00000000000..c53edbc23d1 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/drive/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createDriveFromDiscriminatorValue, type Drive } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DriveRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the drive property of the microsoft.graph.site entity. + */ +export class DriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DriveRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/drive{?%24select,%24expand}", (x, y) => new DriveRequestBuilder(x, y)); + } + /** + * The default drive (document library) for this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Drive + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createDriveFromDiscriminatorValue, errorMapping); + } + /** + * The default drive (document library) for this site. + * @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, driveRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const driveRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/drives/index.ts b/src/groups/item/sites/item/getByPathWithPath/drives/index.ts new file mode 100644 index 00000000000..e8e6012ee24 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/drives/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createDriveCollectionResponseFromDiscriminatorValue, type DriveCollectionResponse } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DrivesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the drives property of the microsoft.graph.site entity. + */ +export class DrivesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DrivesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new DrivesRequestBuilder(x, y)); + } + /** + * The collection of drives (document libraries) under this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of DriveCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createDriveCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * The collection of drives (document libraries) under this site. + * @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, drivesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const drivesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/externalColumns/index.ts b/src/groups/item/sites/item/getByPathWithPath/externalColumns/index.ts new file mode 100644 index 00000000000..fc474093a4e --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/externalColumns/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, type ColumnDefinitionCollectionResponse } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ExternalColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + */ +export class ExternalColumnsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ExternalColumnsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/externalColumns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ExternalColumnsRequestBuilder(x, y)); + } + /** + * Get externalColumns from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinitionCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Get externalColumns from groups + * @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, externalColumnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const externalColumnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getActivitiesByInterval/index.ts b/src/groups/item/sites/item/getByPathWithPath/getActivitiesByInterval/index.ts new file mode 100644 index 00000000000..073c1e73b0c --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getActivitiesByInterval/index.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createItemActivityStatFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeItemActivityStat, type BaseCollectionPaginationCountResponse, type ItemActivityStat } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +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) { + 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 + */ + 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 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. + */ +export class GetActivitiesByIntervalRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new GetActivitiesByIntervalRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getActivitiesByInterval(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", (x, y) => new GetActivitiesByIntervalRequestBuilder(x, y)); + } + /** + * Invoke function getActivitiesByInterval + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of GetActivitiesByIntervalGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createGetActivitiesByIntervalGetResponseFromDiscriminatorValue, 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, getActivitiesByIntervalRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const getActivitiesByIntervalRequestBuilderGetQueryParametersMapper: 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/getByPathWithPath/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts b/src/groups/item/sites/item/getByPathWithPath/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts new file mode 100644 index 00000000000..4ea795dca42 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createItemActivityStatFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeItemActivityStat, type BaseCollectionPaginationCountResponse, type ItemActivityStat } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; + +export function createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + return deserializeIntoGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse; +} +export function deserializeIntoGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse | undefined = {} as GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse), + "value": n => { getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, + } +} +export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + 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}/getByPath(path='{path}')/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", (x, y) => new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(x, y)); + 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; + } +} +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/getByPathWithPath/getApplicableContentTypesForListWithListId/index.ts b/src/groups/item/sites/item/getByPathWithPath/getApplicableContentTypesForListWithListId/index.ts new file mode 100644 index 00000000000..d1a4afc9d78 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getApplicableContentTypesForListWithListId/index.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createContentTypeFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeContentType, type BaseCollectionPaginationCountResponse, type ContentType } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +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) { + 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 + */ + 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 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. + */ +export class GetApplicableContentTypesForListWithListIdRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new GetApplicableContentTypesForListWithListIdRequestBuilder and sets the default values. + * @param listId Usage: listId='{listId}' + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, listId?: string | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getApplicableContentTypesForList(listId='{listId}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", (x, y) => new GetApplicableContentTypesForListWithListIdRequestBuilder(x, y)); + this.pathParameters["listId"] = listId + } + /** + * Invoke function getApplicableContentTypesForList + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of GetApplicableContentTypesForListWithListIdGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createGetApplicableContentTypesForListWithListIdGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function getApplicableContentTypesForList + * @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, getApplicableContentTypesForListWithListIdRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const getApplicableContentTypesForListWithListIdRequestBuilderGetQueryParametersMapper: 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/getByPathWithPath/getByPathWithPath1/analytics/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts new file mode 100644 index 00000000000..aa941b6590e --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createItemAnalyticsFromDiscriminatorValue, deserializeIntoItemAnalytics, serializeItemAnalytics, type ItemAnalytics } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface AnalyticsRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the analytics property of the microsoft.graph.site entity. + */ +export class AnalyticsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new AnalyticsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24select,%24expand}", (x, y) => new AnalyticsRequestBuilder(x, y)); + } + /** + * Delete navigation property analytics for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Analytics about the view activities that took place in this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ItemAnalytics + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createItemAnalyticsFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property analytics in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ItemAnalytics + */ + public patch(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createItemAnalyticsFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property analytics for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Analytics about the view activities that took place in this site. + * @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, analyticsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property analytics in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeItemAnalytics); + return requestInfo; + } +} +const analyticsRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts new file mode 100644 index 00000000000..efa0fbe10c6 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition, type ColumnDefinitionCollectionResponse } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the columns property of the microsoft.graph.site entity. + */ +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}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ColumnsRequestBuilder(x, y)); + } + /** + * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinitionCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-columns?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, createColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinition + * @see {@link https://learn.microsoft.com/graph/api/site-post-columns?view=graph-rest-1.0|Find more info here} + */ + public post(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createColumnDefinitionFromDiscriminatorValue, errorMapping); + } + /** + * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * @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, columnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeColumnDefinition); + return requestInfo; + } +} +const columnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts new file mode 100644 index 00000000000..945345a4bcc --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createContentTypeCollectionResponseFromDiscriminatorValue, createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType, type ContentTypeCollectionResponse } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ContentTypesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + */ +export class ContentTypesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ContentTypesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ContentTypesRequestBuilder(x, y)); + } + /** + * Get the collection of [contentType][contentType] resources in a [site][]. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ContentTypeCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-contenttypes?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, createContentTypeCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new [contentType][] in a [site][]. + * @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/site-post-contenttypes?view=graph-rest-1.0|Find more info here} + */ + public post(body: ContentType, 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); + } + /** + * Get the collection of [contentType][contentType] resources in a [site][]. + * @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, contentTypesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new [contentType][] in a [site][]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ContentType, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeContentType); + return requestInfo; + } +} +const contentTypesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts new file mode 100644 index 00000000000..7e1cc63ebec --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createUserFromDiscriminatorValue, type User } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface CreatedByUserRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ +export class CreatedByUserRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new CreatedByUserRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24select,%24expand}", (x, y) => new CreatedByUserRequestBuilder(x, y)); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of User + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, createdByUserRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const createdByUserRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts new file mode 100644 index 00000000000..7ee7d23efa6 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createDriveFromDiscriminatorValue, type Drive } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DriveRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the drive property of the microsoft.graph.site entity. + */ +export class DriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DriveRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24select,%24expand}", (x, y) => new DriveRequestBuilder(x, y)); + } + /** + * The default drive (document library) for this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Drive + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createDriveFromDiscriminatorValue, errorMapping); + } + /** + * The default drive (document library) for this site. + * @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, driveRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const driveRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts new file mode 100644 index 00000000000..110fa14266c --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createDriveCollectionResponseFromDiscriminatorValue, type DriveCollectionResponse } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DrivesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the drives property of the microsoft.graph.site entity. + */ +export class DrivesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DrivesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new DrivesRequestBuilder(x, y)); + } + /** + * The collection of drives (document libraries) under this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of DriveCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createDriveCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * The collection of drives (document libraries) under this site. + * @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, drivesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const drivesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts new file mode 100644 index 00000000000..e796f3e8821 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, type ColumnDefinitionCollectionResponse } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ExternalColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + */ +export class ExternalColumnsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ExternalColumnsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ExternalColumnsRequestBuilder(x, y)); + } + /** + * Get externalColumns from groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinitionCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Get externalColumns from groups + * @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, externalColumnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const externalColumnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/index.ts new file mode 100644 index 00000000000..2be1347f922 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/index.ts @@ -0,0 +1,162 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createSiteFromDiscriminatorValue, type Site } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +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 { 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'; + +/** + * Provides operations to call the getByPath method. + */ +export class GetByPathWithPath1RequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the analytics property of the microsoft.graph.site entity. + */ + public get analytics(): AnalyticsRequestBuilder { + return new AnalyticsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the columns property of the microsoft.graph.site entity. + */ + public get columns(): ColumnsRequestBuilder { + return new ColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + */ + public get contentTypes(): ContentTypesRequestBuilder { + return new ContentTypesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ + public get createdByUser(): CreatedByUserRequestBuilder { + return new CreatedByUserRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the drive property of the microsoft.graph.site entity. + */ + public get drive(): DriveRequestBuilder { + return new DriveRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the drives property of the microsoft.graph.site entity. + */ + public get drives(): DrivesRequestBuilder { + return new DrivesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + */ + public get externalColumns(): ExternalColumnsRequestBuilder { + return new ExternalColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the items property of the microsoft.graph.site entity. + */ + public get items(): ItemsRequestBuilder { + return new ItemsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ + public get lastModifiedByUser(): LastModifiedByUserRequestBuilder { + return new LastModifiedByUserRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the lists property of the microsoft.graph.site entity. + */ + public get lists(): ListsRequestBuilder { + return new ListsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the onenote property of the microsoft.graph.site entity. + */ + public get onenote(): OnenoteRequestBuilder { + return new OnenoteRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the operations property of the microsoft.graph.site entity. + */ + public get operations(): OperationsRequestBuilder { + return new OperationsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the permissions property of the microsoft.graph.site entity. + */ + public get permissions(): PermissionsRequestBuilder { + return new PermissionsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the sites property of the microsoft.graph.site entity. + */ + public get sites(): SitesRequestBuilder { + return new SitesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the termStore property of the microsoft.graph.site entity. + */ + public get termStore(): TermStoreRequestBuilder { + return new TermStoreRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the termStores property of the microsoft.graph.site entity. + */ + public get termStores(): TermStoresRequestBuilder { + return new TermStoresRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Instantiates a new GetByPathWithPath1RequestBuilder and sets the default values. + * @param path1 Usage: path='{path1}' + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, path1?: string | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", (x, y) => new GetByPathWithPath1RequestBuilder(x, y)); + this.pathParameters["path1"] = path1 + } + /** + * Invoke function getByPath + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Site + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createSiteFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function getByPath + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts new file mode 100644 index 00000000000..40eed1184d5 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createBaseItemCollectionResponseFromDiscriminatorValue, type BaseItemCollectionResponse } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ItemsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the items property of the microsoft.graph.site entity. + */ +export class ItemsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ItemsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ItemsRequestBuilder(x, y)); + } + /** + * Used to address any item contained in this site. This collection can't be enumerated. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of BaseItemCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createBaseItemCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Used to address any item contained in this site. This collection can't be enumerated. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, itemsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const itemsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts new file mode 100644 index 00000000000..115e9c6b974 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createUserFromDiscriminatorValue, type User } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LastModifiedByUserRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ +export class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24select,%24expand}", (x, y) => new LastModifiedByUserRequestBuilder(x, y)); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of User + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, lastModifiedByUserRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const lastModifiedByUserRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts new file mode 100644 index 00000000000..078d2dbf69b --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createListCollectionResponseFromDiscriminatorValue, createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List, type ListCollectionResponse } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ListsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the lists property of the microsoft.graph.site entity. + */ +export class ListsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ListsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ListsRequestBuilder(x, y)); + } + /** + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ListCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/list-list?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, createListCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new [list][] in a [site][]. + * @param body The request body + * @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-create?view=graph-rest-1.0|Find more info here} + */ + public post(body: List, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createListFromDiscriminatorValue, errorMapping); + } + /** + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * @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, listsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new [list][] in a [site][]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: List, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeList); + return requestInfo; + } +} +const listsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts new file mode 100644 index 00000000000..ef83c5b9dcf --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createOnenoteFromDiscriminatorValue, deserializeIntoOnenote, serializeOnenote, type Onenote } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface OnenoteRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the onenote property of the microsoft.graph.site entity. + */ +export class OnenoteRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new OnenoteRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24select,%24expand}", (x, y) => new OnenoteRequestBuilder(x, y)); + } + /** + * Delete navigation property onenote for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Calls the OneNote service for notebook related operations. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Onenote + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createOnenoteFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property onenote in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Onenote + */ + public patch(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createOnenoteFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property onenote for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Calls the OneNote service for notebook related operations. + * @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, onenoteRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property onenote in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOnenote); + return requestInfo; + } +} +const onenoteRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts new file mode 100644 index 00000000000..3af83bbdee8 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation, type RichLongRunningOperationCollectionResponse } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface OperationsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the operations property of the microsoft.graph.site entity. + */ +export class OperationsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new OperationsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new OperationsRequestBuilder(x, y)); + } + /** + * Get a list of rich long-running operations associated with a site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of RichLongRunningOperationCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-operations?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, createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create new navigation property to operations for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of RichLongRunningOperation + */ + public post(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createRichLongRunningOperationFromDiscriminatorValue, errorMapping); + } + /** + * Get a list of rich long-running operations associated with a site. + * @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, operationsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to operations for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRichLongRunningOperation); + return requestInfo; + } +} +const operationsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts new file mode 100644 index 00000000000..8ed7067455c --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createPermissionCollectionResponseFromDiscriminatorValue, createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission, type PermissionCollectionResponse } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface PermissionsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the permissions property of the microsoft.graph.site entity. + */ +export class PermissionsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new PermissionsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new PermissionsRequestBuilder(x, y)); + } + /** + * Get the permission resources from the permissions navigation property on a site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of PermissionCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-permissions?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, createPermissionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new permission object on a site. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Permission + * @see {@link https://learn.microsoft.com/graph/api/site-post-permissions?view=graph-rest-1.0|Find more info here} + */ + public post(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createPermissionFromDiscriminatorValue, errorMapping); + } + /** + * Get the permission resources from the permissions navigation property on a site. + * @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, permissionsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new permission object on a site. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePermission); + return requestInfo; + } +} +const permissionsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts new file mode 100644 index 00000000000..3a7377f1ba5 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createSiteCollectionResponseFromDiscriminatorValue, type SiteCollectionResponse } from '../../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface SitesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the sites property of the microsoft.graph.site entity. + */ +export class SitesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SitesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new SitesRequestBuilder(x, y)); + } + /** + * Get a collection of subsites defined for a [site][]. + * @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-subsites?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, createSiteCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Get a collection of subsites defined for a [site][]. + * @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, sitesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const sitesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts new file mode 100644 index 00000000000..a2cbddf3f1d --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../../../../../models/termStore/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TermStoreRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the termStore property of the microsoft.graph.site entity. + */ +export class TermStoreRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TermStoreRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24select,%24expand}", (x, y) => new TermStoreRequestBuilder(x, y)); + } + /** + * Delete navigation property termStore for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Read the properties and relationships of a store object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + * @see {@link https://learn.microsoft.com/graph/api/termstore-store-get?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, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of a store object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + * @see {@link https://learn.microsoft.com/graph/api/termstore-store-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property termStore for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a store object. + * @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, termStoreRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a store object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStore); + return requestInfo; + } +} +const termStoreRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts new file mode 100644 index 00000000000..c5bee4b23c5 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../models/oDataErrors/'; +import { createStoreCollectionResponseFromDiscriminatorValue, createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store, type StoreCollectionResponse } from '../../../../../../../models/termStore/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TermStoresRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the termStores property of the microsoft.graph.site entity. + */ +export class TermStoresRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TermStoresRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new TermStoresRequestBuilder(x, y)); + } + /** + * The collection of termStores under this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of StoreCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create new navigation property to termStores for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + */ + public post(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * The collection of termStores under this site. + * @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, termStoresRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to termStores for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStore); + return requestInfo; + } +} +const termStoresRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/index.ts b/src/groups/item/sites/item/getByPathWithPath/index.ts index e4a3d49be37..67c092bf9db 100644 --- a/src/groups/item/sites/item/getByPathWithPath/index.ts +++ b/src/groups/item/sites/item/getByPathWithPath/index.ts @@ -3,12 +3,134 @@ // Generated by Microsoft Kiota import { createSiteFromDiscriminatorValue, type Site } from '../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +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 { GetByPathWithPath1RequestBuilder } from './getByPathWithPath1/'; +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'; /** * Provides operations to call the getByPath method. */ export class GetByPathWithPathRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the analytics property of the microsoft.graph.site entity. + */ + public get analytics(): AnalyticsRequestBuilder { + return new AnalyticsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the columns property of the microsoft.graph.site entity. + */ + public get columns(): ColumnsRequestBuilder { + return new ColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + */ + public get contentTypes(): ContentTypesRequestBuilder { + return new ContentTypesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ + public get createdByUser(): CreatedByUserRequestBuilder { + return new CreatedByUserRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the drive property of the microsoft.graph.site entity. + */ + public get drive(): DriveRequestBuilder { + return new DriveRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the drives property of the microsoft.graph.site entity. + */ + public get drives(): DrivesRequestBuilder { + return new DrivesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + */ + public get externalColumns(): ExternalColumnsRequestBuilder { + return new ExternalColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the getActivitiesByInterval method. + */ + public get getActivitiesByInterval(): GetActivitiesByIntervalRequestBuilder { + return new GetActivitiesByIntervalRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the items property of the microsoft.graph.site entity. + */ + public get items(): ItemsRequestBuilder { + return new ItemsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ + public get lastModifiedByUser(): LastModifiedByUserRequestBuilder { + return new LastModifiedByUserRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the lists property of the microsoft.graph.site entity. + */ + public get lists(): ListsRequestBuilder { + return new ListsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the onenote property of the microsoft.graph.site entity. + */ + public get onenote(): OnenoteRequestBuilder { + return new OnenoteRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the operations property of the microsoft.graph.site entity. + */ + public get operations(): OperationsRequestBuilder { + return new OperationsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the permissions property of the microsoft.graph.site entity. + */ + public get permissions(): PermissionsRequestBuilder { + return new PermissionsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the sites property of the microsoft.graph.site entity. + */ + public get sites(): SitesRequestBuilder { + return new SitesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the termStore property of the microsoft.graph.site entity. + */ + public get termStore(): TermStoreRequestBuilder { + return new TermStoreRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the termStores property of the microsoft.graph.site entity. + */ + public get termStores(): TermStoresRequestBuilder { + return new TermStoresRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new GetByPathWithPathRequestBuilder and sets the default values. * @param path Usage: path='{path}' @@ -34,6 +156,37 @@ export class GetByPathWithPathRequestBuilder extends BaseRequestBuilder>; return this.requestAdapter.sendAsync(requestInfo, createSiteFromDiscriminatorValue, errorMapping); } + /** + * Provides operations to call the getActivitiesByInterval method. + * @param endDateTime Usage: endDateTime='{endDateTime}' + * @param interval Usage: interval='{interval}' + * @param startDateTime Usage: startDateTime='{startDateTime}' + * @returns a getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder + */ + public getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval(endDateTime: string | undefined, interval: string | undefined, startDateTime: string | undefined) : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder { + if(!endDateTime) throw new Error("endDateTime cannot be undefined"); + if(!interval) throw new Error("interval cannot be undefined"); + if(!startDateTime) throw new Error("startDateTime cannot be undefined"); + return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(this.pathParameters, this.requestAdapter, endDateTime, interval, startDateTime); + } + /** + * Provides operations to call the getApplicableContentTypesForList method. + * @param listId Usage: listId='{listId}' + * @returns a getApplicableContentTypesForListWithListIdRequestBuilder + */ + public getApplicableContentTypesForListWithListId(listId: string | undefined) : GetApplicableContentTypesForListWithListIdRequestBuilder { + if(!listId) throw new Error("listId cannot be undefined"); + return new GetApplicableContentTypesForListWithListIdRequestBuilder(this.pathParameters, this.requestAdapter, listId); + } + /** + * Provides operations to call the getByPath method. + * @param path1 Usage: path='{path1}' + * @returns a getByPathWithPath1RequestBuilder + */ + public getByPathWithPath1(path1: string | undefined) : GetByPathWithPath1RequestBuilder { + if(!path1) throw new Error("path1 cannot be undefined"); + return new GetByPathWithPath1RequestBuilder(this.pathParameters, this.requestAdapter, path1); + } /** * Invoke function getByPath * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/groups/item/sites/item/getByPathWithPath/items/index.ts b/src/groups/item/sites/item/getByPathWithPath/items/index.ts new file mode 100644 index 00000000000..0090469c419 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/items/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createBaseItemCollectionResponseFromDiscriminatorValue, type BaseItemCollectionResponse } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ItemsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the items property of the microsoft.graph.site entity. + */ +export class ItemsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ItemsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ItemsRequestBuilder(x, y)); + } + /** + * Used to address any item contained in this site. This collection can't be enumerated. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of BaseItemCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createBaseItemCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Used to address any item contained in this site. This collection can't be enumerated. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, itemsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const itemsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/lastModifiedByUser/index.ts b/src/groups/item/sites/item/getByPathWithPath/lastModifiedByUser/index.ts new file mode 100644 index 00000000000..36d9f30936b --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/lastModifiedByUser/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createUserFromDiscriminatorValue, type User } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LastModifiedByUserRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ +export class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/lastModifiedByUser{?%24select,%24expand}", (x, y) => new LastModifiedByUserRequestBuilder(x, y)); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of User + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, lastModifiedByUserRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const lastModifiedByUserRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/lists/index.ts b/src/groups/item/sites/item/getByPathWithPath/lists/index.ts new file mode 100644 index 00000000000..01b6ad40b72 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/lists/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createListCollectionResponseFromDiscriminatorValue, createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List, type ListCollectionResponse } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ListsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the lists property of the microsoft.graph.site entity. + */ +export class ListsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ListsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/lists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ListsRequestBuilder(x, y)); + } + /** + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ListCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/list-list?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, createListCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new [list][] in a [site][]. + * @param body The request body + * @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-create?view=graph-rest-1.0|Find more info here} + */ + public post(body: List, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createListFromDiscriminatorValue, errorMapping); + } + /** + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * @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, listsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new [list][] in a [site][]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: List, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeList); + return requestInfo; + } +} +const listsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/onenote/index.ts b/src/groups/item/sites/item/getByPathWithPath/onenote/index.ts new file mode 100644 index 00000000000..fd94048dfee --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/onenote/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createOnenoteFromDiscriminatorValue, deserializeIntoOnenote, serializeOnenote, type Onenote } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface OnenoteRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the onenote property of the microsoft.graph.site entity. + */ +export class OnenoteRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new OnenoteRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/onenote{?%24select,%24expand}", (x, y) => new OnenoteRequestBuilder(x, y)); + } + /** + * Delete navigation property onenote for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Calls the OneNote service for notebook related operations. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Onenote + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createOnenoteFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property onenote in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Onenote + */ + public patch(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createOnenoteFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property onenote for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Calls the OneNote service for notebook related operations. + * @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, onenoteRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property onenote in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOnenote); + return requestInfo; + } +} +const onenoteRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/operations/index.ts b/src/groups/item/sites/item/getByPathWithPath/operations/index.ts new file mode 100644 index 00000000000..f9c67086e73 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/operations/index.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation, type RichLongRunningOperationCollectionResponse } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface OperationsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the operations property of the microsoft.graph.site entity. + */ +export class OperationsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new OperationsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new OperationsRequestBuilder(x, y)); + } + /** + * Get a list of rich long-running operations associated with a site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of RichLongRunningOperationCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-operations?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, createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create new navigation property to operations for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of RichLongRunningOperation + */ + public post(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createRichLongRunningOperationFromDiscriminatorValue, errorMapping); + } + /** + * Get a list of rich long-running operations associated with a site. + * @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, operationsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to operations for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRichLongRunningOperation); + return requestInfo; + } +} +const operationsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/permissions/index.ts b/src/groups/item/sites/item/getByPathWithPath/permissions/index.ts new file mode 100644 index 00000000000..f372d656c26 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/permissions/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createPermissionCollectionResponseFromDiscriminatorValue, createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission, type PermissionCollectionResponse } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface PermissionsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the permissions property of the microsoft.graph.site entity. + */ +export class PermissionsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new PermissionsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/permissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new PermissionsRequestBuilder(x, y)); + } + /** + * Get the permission resources from the permissions navigation property on a site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of PermissionCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-permissions?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, createPermissionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new permission object on a site. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Permission + * @see {@link https://learn.microsoft.com/graph/api/site-post-permissions?view=graph-rest-1.0|Find more info here} + */ + public post(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createPermissionFromDiscriminatorValue, errorMapping); + } + /** + * Get the permission resources from the permissions navigation property on a site. + * @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, permissionsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new permission object on a site. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePermission); + return requestInfo; + } +} +const permissionsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/sites/index.ts b/src/groups/item/sites/item/getByPathWithPath/sites/index.ts new file mode 100644 index 00000000000..20f3f45e5b7 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/sites/index.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createSiteCollectionResponseFromDiscriminatorValue, type SiteCollectionResponse } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface SitesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the sites property of the microsoft.graph.site entity. + */ +export class SitesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SitesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new SitesRequestBuilder(x, y)); + } + /** + * Get a collection of subsites defined for a [site][]. + * @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-subsites?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, createSiteCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Get a collection of subsites defined for a [site][]. + * @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, sitesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const sitesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/termStore/index.ts b/src/groups/item/sites/item/getByPathWithPath/termStore/index.ts new file mode 100644 index 00000000000..2bbed904ed4 --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/termStore/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../../../../models/termStore/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TermStoreRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the termStore property of the microsoft.graph.site entity. + */ +export class TermStoreRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TermStoreRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/termStore{?%24select,%24expand}", (x, y) => new TermStoreRequestBuilder(x, y)); + } + /** + * Delete navigation property termStore for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Read the properties and relationships of a store object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + * @see {@link https://learn.microsoft.com/graph/api/termstore-store-get?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, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of a store object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + * @see {@link https://learn.microsoft.com/graph/api/termstore-store-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property termStore for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a store object. + * @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, termStoreRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a store object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStore); + return requestInfo; + } +} +const termStoreRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/groups/item/sites/item/getByPathWithPath/termStores/index.ts b/src/groups/item/sites/item/getByPathWithPath/termStores/index.ts new file mode 100644 index 00000000000..c305ef09cec --- /dev/null +++ b/src/groups/item/sites/item/getByPathWithPath/termStores/index.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { createStoreCollectionResponseFromDiscriminatorValue, createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store, type StoreCollectionResponse } from '../../../../../../models/termStore/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TermStoresRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the termStores property of the microsoft.graph.site entity. + */ +export class TermStoresRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TermStoresRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/termStores{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new TermStoresRequestBuilder(x, y)); + } + /** + * The collection of termStores under this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of StoreCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create new navigation property to termStores for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + */ + public post(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * The collection of termStores under this site. + * @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, termStoresRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to termStores for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStore); + return requestInfo; + } +} +const termStoresRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "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/index.ts b/src/groups/item/sites/item/lists/item/index.ts index 19aed14c153..54386f7b400 100644 --- a/src/groups/item/sites/item/lists/item/index.ts +++ b/src/groups/item/sites/item/lists/item/index.ts @@ -98,10 +98,10 @@ export class ListItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -141,7 +141,7 @@ export class ListItemRequestBuilder extends BaseRequestBuilder new ConversationMemberItemRequestBuilder(x, y)); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -76,7 +76,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @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/index.ts b/src/groups/item/team/channels/item/messages/index.ts index 9a3c20846a6..7ea6139cbb2 100644 --- a/src/groups/item/team/channels/item/messages/index.ts +++ b/src/groups/item/team/channels/item/messages/index.ts @@ -94,11 +94,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new reply to a chatMessage in a specified channel. + * Send 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/channel-post-messagereply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder new ConversationMemberItemRequestBuilder(x, y)); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -76,7 +76,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @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/index.ts b/src/groups/item/team/primaryChannel/messages/index.ts index fe7f568a038..326ba0a3237 100644 --- a/src/groups/item/team/primaryChannel/messages/index.ts +++ b/src/groups/item/team/primaryChannel/messages/index.ts @@ -94,11 +94,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new reply to a chatMessage in a specified channel. + * Send 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/channel-post-messagereply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/share", (x, y) => new ShareRequestBuilder(x, y)); } /** - * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + * Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. * @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/schedule-share?view=graph-rest-1.0|Find more info here} @@ -67,7 +67,7 @@ export class ShareRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + * Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. * @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/index.ts b/src/groups/item/threads/item/index.ts index b9c88d1cd8a..2bc87c797fa 100644 --- a/src/groups/item/threads/item/index.ts +++ b/src/groups/item/threads/item/index.ts @@ -40,7 +40,7 @@ export class ConversationThreadItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -53,10 +53,10 @@ export class ConversationThreadItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -97,7 +97,7 @@ export class ConversationThreadItemRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * 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. + * 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. * @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/opentypeextension-post-opentypeextension?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * 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. + * 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. * @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/index.ts b/src/groups/item/threads/item/posts/item/reply/index.ts index baca02dfe79..2346b47d911 100644 --- a/src/groups/item/threads/item/posts/item/reply/index.ts +++ b/src/groups/item/threads/item/posts/item/reply/index.ts @@ -40,10 +40,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * 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. + * 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. * @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/opentypeextension-post-opentypeextension?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * 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. + * 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. * @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/index.ts b/src/groups/item/threads/item/reply/index.ts index 7b91953fc78..fc6e7857784 100644 --- a/src/groups/item/threads/item/reply/index.ts +++ b/src/groups/item/threads/item/reply/index.ts @@ -40,10 +40,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * 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. + * 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. * @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-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * 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. + * 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. * @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/identity/b2xUserFlows/item/identityProviders/count/index.ts b/src/identity/b2xUserFlows/item/identityProviders/count/index.ts index 672d4df2ce2..0e64251ff00 100644 --- a/src/identity/b2xUserFlows/item/identityProviders/count/index.ts +++ b/src/identity/b2xUserFlows/item/identityProviders/count/index.ts @@ -30,7 +30,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Integer - * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15 + * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -46,7 +46,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15 + * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/identity/b2xUserFlows/item/identityProviders/index.ts b/src/identity/b2xUserFlows/item/identityProviders/index.ts index 47c94c9545e..b421e239ef1 100644 --- a/src/identity/b2xUserFlows/item/identityProviders/index.ts +++ b/src/identity/b2xUserFlows/item/identityProviders/index.ts @@ -47,7 +47,7 @@ export interface IdentityProvidersRequestBuilderGetQueryParameters { export class IdentityProvidersRequestBuilder extends BaseRequestBuilder { /** * Provides operations to count the resources in the collection. - * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15 + * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider */ public get count(): CountRequestBuilder { return new CountRequestBuilder(this.pathParameters, this.requestAdapter); @@ -56,7 +56,7 @@ export class IdentityProvidersRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -93,7 +93,7 @@ export class IdentityProvidersRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/identity/b2xUserFlows/item/identityProviders/item/index.ts b/src/identity/b2xUserFlows/item/identityProviders/item/index.ts index c49f5f4a8f3..d515a4c4b5d 100644 --- a/src/identity/b2xUserFlows/item/identityProviders/item/index.ts +++ b/src/identity/b2xUserFlows/item/identityProviders/item/index.ts @@ -30,7 +30,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -47,7 +47,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -63,7 +63,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); @@ -75,7 +75,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/identity/conditionalAccess/namedLocations/item/index.ts b/src/identity/conditionalAccess/namedLocations/item/index.ts index 25f4fa4d5a8..2ac3e9c94f1 100644 --- a/src/identity/conditionalAccess/namedLocations/item/index.ts +++ b/src/identity/conditionalAccess/namedLocations/item/index.ts @@ -28,9 +28,9 @@ export class NamedLocationItemRequestBuilder extends BaseRequestBuilder new NamedLocationItemRequestBuilder(x, y)); } /** - * Delete a countryNamedLocation 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/countrynamedlocation-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( @@ -76,7 +76,7 @@ export class NamedLocationItemRequestBuilder extends BaseRequestBuilder(requestInfo, createNamedLocationFromDiscriminatorValue, errorMapping); } /** - * Delete a countryNamedLocation 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/identityGovernance/entitlementManagement/accessPackages/item/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/index.ts index 925d6ea66ad..8a34feb6664 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/index.ts @@ -92,10 +92,10 @@ export class AccessPackageItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -136,7 +136,7 @@ export class AccessPackageItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -59,11 +59,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( @@ -87,7 +87,7 @@ export class CustomCalloutExtensionItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -98,7 +98,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/customWorkflowExtensions/item/index.ts b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/item/index.ts index 8d010e8e8b5..611cd7493a9 100644 --- a/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/item/index.ts +++ b/src/identityGovernance/entitlementManagement/resourceRequests/item/catalog/customWorkflowExtensions/item/index.ts @@ -43,10 +43,10 @@ export class CustomCalloutExtensionItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. * @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/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -59,11 +59,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( @@ -87,7 +87,7 @@ export class CustomCalloutExtensionItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -98,7 +98,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/termsOfUse/agreements/item/index.ts b/src/identityGovernance/termsOfUse/agreements/item/index.ts index a37b85cdcb2..2ef10cc0131 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/index.ts @@ -64,10 +64,10 @@ export class AgreementItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -108,7 +108,7 @@ export class AgreementItemRequestBuilder extends BaseRequestBuilder new HistoryRequestBuilder(x, y)); } /** - * Read the properties and relationships of a riskyUserHistoryItem object. + * Get the riskyUserHistoryItems from the history navigation property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of RiskyUserHistoryItemCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/riskyuser-get-riskyuserhistoryitem?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/riskyuser-list-history?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -103,7 +103,7 @@ export class HistoryRequestBuilder extends BaseRequestBuilder(requestInfo, createRiskyUserHistoryItemFromDiscriminatorValue, errorMapping); } /** - * Read the properties and relationships of a riskyUserHistoryItem object. + * Get the riskyUserHistoryItems from the history navigation property. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/identityProviders/availableProviderTypes/index.ts b/src/identityProviders/availableProviderTypes/index.ts index af75a4b2c5a..cf7c5d18c74 100644 --- a/src/identityProviders/availableProviderTypes/index.ts +++ b/src/identityProviders/availableProviderTypes/index.ts @@ -62,7 +62,7 @@ export class AvailableProviderTypesRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -78,7 +78,7 @@ export class AvailableProviderTypesRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/identityProviders/count/index.ts b/src/identityProviders/count/index.ts index 89f56f55514..e31a23ca93c 100644 --- a/src/identityProviders/count/index.ts +++ b/src/identityProviders/count/index.ts @@ -30,7 +30,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Integer - * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15 + * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -46,7 +46,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15 + * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/identityProviders/index.ts b/src/identityProviders/index.ts index 5d5ced9265a..708a13bf6f1 100644 --- a/src/identityProviders/index.ts +++ b/src/identityProviders/index.ts @@ -48,14 +48,14 @@ export interface IdentityProvidersRequestBuilderGetQueryParameters { export class IdentityProvidersRequestBuilder extends BaseRequestBuilder { /** * Provides operations to call the availableProviderTypes method. - * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15 + * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider */ public get availableProviderTypes(): AvailableProviderTypesRequestBuilder { return new AvailableProviderTypesRequestBuilder(this.pathParameters, this.requestAdapter); } /** * Provides operations to count the resources in the collection. - * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15 + * @deprecated The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider */ public get count(): CountRequestBuilder { return new CountRequestBuilder(this.pathParameters, this.requestAdapter); @@ -64,7 +64,7 @@ export class IdentityProvidersRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -102,7 +102,7 @@ export class IdentityProvidersRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -119,7 +119,7 @@ export class IdentityProvidersRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); @@ -132,7 +132,7 @@ export class IdentityProvidersRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); diff --git a/src/identityProviders/item/index.ts b/src/identityProviders/item/index.ts index 07be335531b..6a4b0955997 100644 --- a/src/identityProviders/item/index.ts +++ b/src/identityProviders/item/index.ts @@ -30,7 +30,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -47,7 +47,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -65,7 +65,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -82,7 +82,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); @@ -94,7 +94,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); @@ -107,7 +107,7 @@ export class IdentityProviderItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); diff --git a/src/kiota-lock.json b/src/kiota-lock.json index 7858d5a1c14..f2781e131cf 100644 --- a/src/kiota-lock.json +++ b/src/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "03B9E09A741A76AAFEBA29F6D228D8A89F212F29898DFD5C399502964D5960400BB9306E2310EFE70D87BE5B6B8267C59623C0EE0B097C0D8CBFA62907EB8ECF", + "descriptionHash": "1042B532CA384A343F908790724532FFA5D274C934C7E2E746B1A187F3F3E7FBB6C6A053C3915380A4A7AB5D84B16F419222515F693387A5C79AA7A9849F5C9D", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.11.0", diff --git a/src/models/index.ts b/src/models/index.ts index c24ef7f36e0..35e1afb7962 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -702,7 +702,7 @@ export type AccessPackageRequestState = (typeof AccessPackageRequestStateObject) export type AccessPackageRequestType = (typeof AccessPackageRequestTypeObject)[keyof typeof AccessPackageRequestTypeObject]; export interface AccessPackageResource extends Entity, Parsable { /** - * The attributes property + * Contains information about the attributes to be collected from the requestor and sent to the resource application. */ attributes?: AccessPackageResourceAttribute[]; /** @@ -748,11 +748,11 @@ export interface AccessPackageResourceAttribute extends AdditionalDataHolder, Pa */ additionalData?: Record; /** - * The destination property + * Information about how to set the attribute, currently a accessPackageUserDirectoryAttributeStore type. */ destination?: AccessPackageResourceAttributeDestination; /** - * The name property + * The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension2b676109c7c74ae2b41549205f1947edpersonalTitle. */ name?: string; /** @@ -760,7 +760,7 @@ export interface AccessPackageResourceAttribute extends AdditionalDataHolder, Pa */ odataType?: string; /** - * The source property + * Information about how to populate the attribute value when an accessPackageAssignmentRequest is being fulfilled, currently a accessPackageResourceAttributeQuestion type. */ source?: AccessPackageResourceAttributeSource; } @@ -26843,6 +26843,7 @@ export function deserializeIntoEducationSubmission(educationSubmission: Educatio "submittedResources": n => { educationSubmission.submittedResources = n.getCollectionOfObjectValues(createEducationSubmissionResourceFromDiscriminatorValue); }, "unsubmittedBy": n => { educationSubmission.unsubmittedBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "unsubmittedDateTime": n => { educationSubmission.unsubmittedDateTime = n.getDateValue(); }, + "webUrl": n => { educationSubmission.webUrl = n.getStringValue(); }, } } export function deserializeIntoEducationSubmissionCollectionResponse(educationSubmissionCollectionResponse: EducationSubmissionCollectionResponse | undefined = {} as EducationSubmissionCollectionResponse) : Record void> { @@ -43244,6 +43245,10 @@ export interface EducationSubmission extends Entity, Parsable { * Moment in time when the submission was moved from submitted into the working state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z */ unsubmittedDateTime?: Date; + /** + * The webUrl property + */ + webUrl?: string; } export interface EducationSubmissionCollectionResponse extends BaseCollectionPaginationCountResponse, Parsable { /** @@ -52006,7 +52011,7 @@ export interface ObjectIdentity extends AdditionalDataHolder, Parsable { */ issuer?: string; /** - * Specifies the unique identifier assigned to the user by the issuer. The combination of issuer and issuerAssignedId must be unique within the organization. Represents the sign-in name for the user, when signInType is set to emailAddress or userName (also known as local accounts).When signInType is set to: emailAddress, (or a custom string that starts with emailAddress like emailAddress1) issuerAssignedId must be a valid email addressuserName, issuerAssignedId must begin with alphabetical character or number, and can only contain alphanumeric characters and the following symbols: - or Supports $filter. 64 character limit. + * Specifies the unique identifier assigned to the user by the issuer. The combination of issuer and issuerAssignedId must be unique within the organization. Represents the sign-in name for the user, when signInType is set to emailAddress or userName (also known as local accounts).When signInType is set to: emailAddress, (or a custom string that starts with emailAddress like emailAddress1) issuerAssignedId must be a valid email addressuserName, issuerAssignedId must begin with alphabetical character or number, and can only contain alphanumeric characters and the following symbols: - or . 64 character limit.Supports $filter. */ issuerAssignedId?: string; /** @@ -76037,7 +76042,7 @@ export interface SharingLink extends AdditionalDataHolder, Parsable { } export interface Shift extends ChangeTrackedEntity, Parsable { /** - * The draft version of this shift that is viewable by managers. Required. + * Draft changes in the shift. Draft changes are only visible to managers. The changes are visible to employees when they are shared, which copies the changes from the draftShift to the sharedShift property. */ draftShift?: ShiftItem; /** @@ -76045,7 +76050,7 @@ export interface Shift extends ChangeTrackedEntity, Parsable { */ schedulingGroupId?: string; /** - * The shared version of this shift that is viewable by both employees and managers. Required. + * The shared version of this shift that is viewable by both employees and managers. Updates to the sharedShift property send notifications to users in the Teams client. */ sharedShift?: ShiftItem; /** @@ -79602,11 +79607,11 @@ export interface TimeConstraint extends AdditionalDataHolder, Parsable { } export interface TimeOff extends ChangeTrackedEntity, Parsable { /** - * The draft version of this timeOff that is viewable by managers. Required. + * The draft version of this timeOff item that is viewable by managers. It must be shared before it is visible to team members. Required. */ draftTimeOff?: TimeOffItem; /** - * The shared version of this timeOff that is viewable by both employees and managers. Required. + * The shared version of this timeOff that is viewable by both employees and managers. Updates to the sharedTimeOff property send notifications to users in the Teams client. Required. */ sharedTimeOff?: TimeOffItem; /** @@ -81231,7 +81236,7 @@ export interface User extends DirectoryObject, Parsable { */ managedDevices?: ManagedDevice[]; /** - * The user or contact that is this user's manager. Read-only. (HTTP Methods: GET, PUT, DELETE.). Supports $expand. + * The user or contact that is this user's manager. Read-only. Supports $expand. */ manager?: DirectoryObject; /** diff --git a/src/organization/index.ts b/src/organization/index.ts index 4fd76b268c6..12a7374b37a 100644 --- a/src/organization/index.ts +++ b/src/organization/index.ts @@ -99,10 +99,10 @@ export class OrganizationRequestBuilder extends BaseRequestBuilder new OrganizationRequestBuilder(x, y)); } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @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/organization-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-organization-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 OrganizationRequestBuilder extends BaseRequestBuilder(requestInfo, createOrganizationFromDiscriminatorValue, errorMapping); } /** - * Retrieve a list of organization objects. There's only one organization object in the collection. + * List properties and relationships of the organization objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/privacy/subjectRightsRequests/count/index.ts b/src/privacy/subjectRightsRequests/count/index.ts index 54ba1eecaad..ae8feb9917d 100644 --- a/src/privacy/subjectRightsRequests/count/index.ts +++ b/src/privacy/subjectRightsRequests/count/index.ts @@ -30,7 +30,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Integer - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -46,7 +46,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/index.ts b/src/privacy/subjectRightsRequests/index.ts index 8781f57d7bf..4c2528d7aa8 100644 --- a/src/privacy/subjectRightsRequests/index.ts +++ b/src/privacy/subjectRightsRequests/index.ts @@ -47,7 +47,7 @@ export interface SubjectRightsRequestsRequestBuilderGetQueryParameters { export class SubjectRightsRequestsRequestBuilder extends BaseRequestBuilder { /** * Provides operations to count the resources in the collection. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get count(): CountRequestBuilder { return new CountRequestBuilder(this.pathParameters, this.requestAdapter); @@ -56,7 +56,7 @@ export class SubjectRightsRequestsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -94,7 +94,7 @@ export class SubjectRightsRequestsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -111,7 +111,7 @@ export class SubjectRightsRequestsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); @@ -124,7 +124,7 @@ export class SubjectRightsRequestsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); diff --git a/src/privacy/subjectRightsRequests/item/approvers/count/index.ts b/src/privacy/subjectRightsRequests/item/approvers/count/index.ts index 171d3b933ee..f1cfa4b2485 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/count/index.ts @@ -30,7 +30,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Integer - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -46,7 +46,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/approvers/index.ts b/src/privacy/subjectRightsRequests/item/approvers/index.ts index 37d5e4f424b..2054189f7b2 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/index.ts @@ -47,7 +47,7 @@ export interface ApproversRequestBuilderGetQueryParameters { export class ApproversRequestBuilder extends BaseRequestBuilder { /** * Provides operations to count the resources in the collection. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get count(): CountRequestBuilder { return new CountRequestBuilder(this.pathParameters, this.requestAdapter); @@ -56,7 +56,7 @@ export class ApproversRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -92,7 +92,7 @@ export class ApproversRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/approvers/item/index.ts b/src/privacy/subjectRightsRequests/item/approvers/item/index.ts index 7274af6d9c2..bedc7497a6c 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/item/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/item/index.ts @@ -23,14 +23,14 @@ export interface UserItemRequestBuilderGetQueryParameters { export class UserItemRequestBuilder extends BaseRequestBuilder { /** * The mailboxSettings property - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder(this.pathParameters, this.requestAdapter); } /** * The serviceProvisioningErrors property - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { return new ServiceProvisioningErrorsRequestBuilder(this.pathParameters, this.requestAdapter); @@ -47,7 +47,7 @@ export class UserItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -63,7 +63,7 @@ export class UserItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts b/src/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts index ef0eaf2a487..27b1f437594 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/item/mailboxSettings/index.ts @@ -31,7 +31,7 @@ export class MailboxSettingsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -48,7 +48,7 @@ export class MailboxSettingsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -64,7 +64,7 @@ export class MailboxSettingsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); @@ -77,7 +77,7 @@ export class MailboxSettingsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); 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 8a204fb9b4b..65b564709d7 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/count/index.ts @@ -30,7 +30,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Integer - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -46,7 +46,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts b/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts index 1fe056ddde7..4ebbd3a05a7 100644 --- a/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts +++ b/src/privacy/subjectRightsRequests/item/approvers/item/serviceProvisioningErrors/index.ts @@ -46,7 +46,7 @@ export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { export class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { /** * Provides operations to count the resources in the collection. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get count(): CountRequestBuilder { return new CountRequestBuilder(this.pathParameters, this.requestAdapter); @@ -63,7 +63,7 @@ export class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder< * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ServiceProvisioningErrorCollectionResponse - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -79,7 +79,7 @@ export class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder< * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/collaborators/count/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/count/index.ts index 766586d0497..8ce7592de48 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/count/index.ts @@ -30,7 +30,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Integer - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -46,7 +46,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/collaborators/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/index.ts index 6b71b795b83..446266b1b29 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/index.ts @@ -47,7 +47,7 @@ export interface CollaboratorsRequestBuilderGetQueryParameters { export class CollaboratorsRequestBuilder extends BaseRequestBuilder { /** * Provides operations to count the resources in the collection. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get count(): CountRequestBuilder { return new CountRequestBuilder(this.pathParameters, this.requestAdapter); @@ -56,7 +56,7 @@ export class CollaboratorsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -92,7 +92,7 @@ export class CollaboratorsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/collaborators/item/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/item/index.ts index e6274d0e769..cb394f56e2d 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/item/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/item/index.ts @@ -23,14 +23,14 @@ export interface UserItemRequestBuilderGetQueryParameters { export class UserItemRequestBuilder extends BaseRequestBuilder { /** * The mailboxSettings property - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get mailboxSettings(): MailboxSettingsRequestBuilder { return new MailboxSettingsRequestBuilder(this.pathParameters, this.requestAdapter); } /** * The serviceProvisioningErrors property - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get serviceProvisioningErrors(): ServiceProvisioningErrorsRequestBuilder { return new ServiceProvisioningErrorsRequestBuilder(this.pathParameters, this.requestAdapter); @@ -47,7 +47,7 @@ export class UserItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -63,7 +63,7 @@ export class UserItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts index d3c4b236531..915cd2f60f7 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/item/mailboxSettings/index.ts @@ -31,7 +31,7 @@ export class MailboxSettingsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -48,7 +48,7 @@ export class MailboxSettingsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -64,7 +64,7 @@ export class MailboxSettingsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); @@ -77,7 +77,7 @@ export class MailboxSettingsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); 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 9d2eef9b5c5..bd960d85297 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/count/index.ts @@ -30,7 +30,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Integer - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -46,7 +46,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts b/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts index 17e19c90839..052738d3fed 100644 --- a/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts +++ b/src/privacy/subjectRightsRequests/item/collaborators/item/serviceProvisioningErrors/index.ts @@ -46,7 +46,7 @@ export interface ServiceProvisioningErrorsRequestBuilderGetQueryParameters { export class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { /** * Provides operations to count the resources in the collection. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get count(): CountRequestBuilder { return new CountRequestBuilder(this.pathParameters, this.requestAdapter); @@ -63,7 +63,7 @@ export class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder< * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ServiceProvisioningErrorCollectionResponse - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -79,7 +79,7 @@ export class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder< * Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/getFinalAttachment/index.ts b/src/privacy/subjectRightsRequests/item/getFinalAttachment/index.ts index f131919e558..aa278bd4324 100644 --- a/src/privacy/subjectRightsRequests/item/getFinalAttachment/index.ts +++ b/src/privacy/subjectRightsRequests/item/getFinalAttachment/index.ts @@ -20,7 +20,7 @@ export class GetFinalAttachmentRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -36,7 +36,7 @@ export class GetFinalAttachmentRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/getFinalReport/index.ts b/src/privacy/subjectRightsRequests/item/getFinalReport/index.ts index 44663dea5bc..8858b2f03d8 100644 --- a/src/privacy/subjectRightsRequests/item/getFinalReport/index.ts +++ b/src/privacy/subjectRightsRequests/item/getFinalReport/index.ts @@ -20,7 +20,7 @@ export class GetFinalReportRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -36,7 +36,7 @@ export class GetFinalReportRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/index.ts b/src/privacy/subjectRightsRequests/item/index.ts index 2d3f8da6962..16b968352e4 100644 --- a/src/privacy/subjectRightsRequests/item/index.ts +++ b/src/privacy/subjectRightsRequests/item/index.ts @@ -27,42 +27,42 @@ export interface SubjectRightsRequestItemRequestBuilderGetQueryParameters { export class SubjectRightsRequestItemRequestBuilder extends BaseRequestBuilder { /** * Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get approvers(): ApproversRequestBuilder { return new ApproversRequestBuilder(this.pathParameters, this.requestAdapter); } /** * Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get collaborators(): CollaboratorsRequestBuilder { return new CollaboratorsRequestBuilder(this.pathParameters, this.requestAdapter); } /** * Provides operations to call the getFinalAttachment method. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get getFinalAttachment(): GetFinalAttachmentRequestBuilder { return new GetFinalAttachmentRequestBuilder(this.pathParameters, this.requestAdapter); } /** * Provides operations to call the getFinalReport method. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get getFinalReport(): GetFinalReportRequestBuilder { return new GetFinalReportRequestBuilder(this.pathParameters, this.requestAdapter); } /** * Provides operations to manage the notes property of the microsoft.graph.subjectRightsRequest entity. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get notes(): NotesRequestBuilder { return new NotesRequestBuilder(this.pathParameters, this.requestAdapter); } /** * Provides operations to manage the team property of the microsoft.graph.subjectRightsRequest entity. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get team(): TeamRequestBuilder { return new TeamRequestBuilder(this.pathParameters, this.requestAdapter); @@ -78,7 +78,7 @@ export class SubjectRightsRequestItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -94,7 +94,7 @@ export class SubjectRightsRequestItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -112,7 +112,7 @@ export class SubjectRightsRequestItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { @@ -129,7 +129,7 @@ export class SubjectRightsRequestItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); @@ -141,7 +141,7 @@ export class SubjectRightsRequestItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); @@ -154,7 +154,7 @@ export class SubjectRightsRequestItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); diff --git a/src/privacy/subjectRightsRequests/item/notes/count/index.ts b/src/privacy/subjectRightsRequests/item/notes/count/index.ts index 9177bfcf7c9..d2430115b09 100644 --- a/src/privacy/subjectRightsRequests/item/notes/count/index.ts +++ b/src/privacy/subjectRightsRequests/item/notes/count/index.ts @@ -30,7 +30,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Integer - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -46,7 +46,7 @@ export class CountRequestBuilder extends BaseRequestBuilder * Get the number of the resource * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/privacy/subjectRightsRequests/item/notes/index.ts b/src/privacy/subjectRightsRequests/item/notes/index.ts index e7ae929c4f3..00bb8ad55c4 100644 --- a/src/privacy/subjectRightsRequests/item/notes/index.ts +++ b/src/privacy/subjectRightsRequests/item/notes/index.ts @@ -47,7 +47,7 @@ export interface NotesRequestBuilderGetQueryParameters { export class NotesRequestBuilder extends BaseRequestBuilder { /** * Provides operations to count the resources in the collection. - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get count(): CountRequestBuilder { return new CountRequestBuilder(this.pathParameters, this.requestAdapter); @@ -56,7 +56,7 @@ export class NotesRequestBuilder extends BaseRequestBuilder * Provides operations to manage the notes property of the microsoft.graph.subjectRightsRequest entity. * @param authoredNoteId The unique identifier of authoredNote * @returns a AuthoredNoteItemRequestBuilder - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public byAuthoredNoteId(authoredNoteId: string) : AuthoredNoteItemRequestBuilder { if(!authoredNoteId) throw new Error("authoredNoteId cannot be undefined"); @@ -76,7 +76,7 @@ export class NotesRequestBuilder extends BaseRequestBuilder * Get the list of authored notes assoicated with a subject rights request. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of AuthoredNoteCollectionResponse - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate * @see {@link https://learn.microsoft.com/graph/api/subjectrightsrequest-list-notes?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { @@ -94,7 +94,7 @@ export class NotesRequestBuilder 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 AuthoredNote - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate * @see {@link https://learn.microsoft.com/graph/api/subjectrightsrequest-post-notes?view=graph-rest-1.0|Find more info here} */ public post(body: AuthoredNote, requestConfiguration?: RequestConfiguration | undefined) : Promise { @@ -111,7 +111,7 @@ export class NotesRequestBuilder extends BaseRequestBuilder * Get the list of authored notes assoicated with a subject rights request. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); @@ -124,7 +124,7 @@ export class NotesRequestBuilder extends BaseRequestBuilder * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toPostRequestInformation(body: AuthoredNote, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); diff --git a/src/privacy/subjectRightsRequests/item/notes/item/index.ts b/src/privacy/subjectRightsRequests/item/notes/item/index.ts index 6299bb58662..73dc6911504 100644 --- a/src/privacy/subjectRightsRequests/item/notes/item/index.ts +++ b/src/privacy/subjectRightsRequests/item/notes/item/index.ts @@ -30,7 +30,7 @@ export class AuthoredNoteItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -46,7 +46,7 @@ export class AuthoredNoteItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -63,7 +63,7 @@ export class AuthoredNoteItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -79,7 +79,7 @@ export class AuthoredNoteItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); @@ -91,7 +91,7 @@ export class AuthoredNoteItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); @@ -104,7 +104,7 @@ export class AuthoredNoteItemRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); diff --git a/src/privacy/subjectRightsRequests/item/team/index.ts b/src/privacy/subjectRightsRequests/item/team/index.ts index 412f0407e01..69e70481f44 100644 --- a/src/privacy/subjectRightsRequests/item/team/index.ts +++ b/src/privacy/subjectRightsRequests/item/team/index.ts @@ -31,7 +31,7 @@ export class TeamRequestBuilder extends BaseRequestBuilder { * Information about the Microsoft Teams team that was created for the request. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Team - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -47,7 +47,7 @@ export class TeamRequestBuilder extends BaseRequestBuilder { * Information about the Microsoft Teams team that was created for the request. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation - * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20 + * @deprecated The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate */ public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); diff --git a/src/servicePrincipals/item/synchronization/secrets/index.ts b/src/servicePrincipals/item/synchronization/secrets/index.ts index 0dd6172412c..44937a1ecd9 100644 --- a/src/servicePrincipals/item/synchronization/secrets/index.ts +++ b/src/servicePrincipals/item/synchronization/secrets/index.ts @@ -1,11 +1,55 @@ /* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota -import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, deserializeIntoSynchronizationSecretKeyStringValuePair, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/'; +import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; import { CountRequestBuilder } from './count/'; -import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; +export function createSecretsPutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + return deserializeIntoSecretsPutRequestBody; +} +export function createSecretsPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + return deserializeIntoSecretsPutResponse; +} +export function deserializeIntoSecretsPutRequestBody(secretsPutRequestBody: SecretsPutRequestBody | undefined = {} as SecretsPutRequestBody) : Record void> { + return { + "value": n => { secretsPutRequestBody.value = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + } +} +export function deserializeIntoSecretsPutResponse(secretsPutResponse: SecretsPutResponse | undefined = {} as SecretsPutResponse) : Record void> { + return { + "value": n => { secretsPutResponse.value = n.getCollectionOfObjectValues(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); }, + } +} +export interface SecretsPutRequestBody extends 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?: SynchronizationSecretKeyStringValuePair[]; +} +export interface SecretsPutResponse extends 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?: SynchronizationSecretKeyStringValuePair[]; +} +export function serializeSecretsPutRequestBody(writer: SerializationWriter, secretsPutRequestBody: SecretsPutRequestBody | undefined = {} as SecretsPutRequestBody) : void { + writer.writeCollectionOfObjectValues("value", secretsPutRequestBody.value, serializeSynchronizationSecretKeyStringValuePair); + writer.writeAdditionalData(secretsPutRequestBody.additionalData); +} +export function serializeSecretsPutResponse(writer: SerializationWriter, secretsPutResponse: SecretsPutResponse | undefined = {} as SecretsPutResponse) : void { + writer.writeCollectionOfObjectValues("value", secretsPutResponse.value, serializeSynchronizationSecretKeyStringValuePair); + writer.writeAdditionalData(secretsPutResponse.additionalData); +} /** * Builds and executes requests for operations under /servicePrincipals/{servicePrincipal-id}/synchronization/secrets */ @@ -28,9 +72,9 @@ export class SecretsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { + public put(body: SecretsPutRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPutRequestInformation( body, requestConfiguration ); @@ -38,7 +82,7 @@ export class SecretsRequestBuilder extends BaseRequestBuilder>; - return this.requestAdapter.sendCollectionAsync(requestInfo, createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, errorMapping); + return this.requestAdapter.sendAsync(requestInfo, createSecretsPutResponseFromDiscriminatorValue, errorMapping); } /** * Update property secrets value. @@ -46,12 +90,12 @@ export class SecretsRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { + public toPutRequestInformation(body: SecretsPutRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); const requestInfo = new RequestInformation(HttpMethod.PUT, this.urlTemplate, this.pathParameters); requestInfo.configure(requestConfiguration); requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSynchronizationSecretKeyStringValuePair); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSecretsPutRequestBody); return requestInfo; } } diff --git a/src/sites/item/getByPathWithPath/analytics/index.ts b/src/sites/item/getByPathWithPath/analytics/index.ts new file mode 100644 index 00000000000..08b12ccd989 --- /dev/null +++ b/src/sites/item/getByPathWithPath/analytics/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createItemAnalyticsFromDiscriminatorValue, deserializeIntoItemAnalytics, serializeItemAnalytics, type ItemAnalytics } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface AnalyticsRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the analytics property of the microsoft.graph.site entity. + */ +export class AnalyticsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new AnalyticsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/analytics{?%24select,%24expand}", (x, y) => new AnalyticsRequestBuilder(x, y)); + } + /** + * Delete navigation property analytics for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Analytics about the view activities that took place in this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ItemAnalytics + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createItemAnalyticsFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property analytics in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ItemAnalytics + */ + public patch(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createItemAnalyticsFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property analytics for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Analytics about the view activities that took place in this site. + * @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, analyticsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property analytics in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeItemAnalytics); + return requestInfo; + } +} +const analyticsRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/columns/index.ts b/src/sites/item/getByPathWithPath/columns/index.ts new file mode 100644 index 00000000000..4a5e75f32d5 --- /dev/null +++ b/src/sites/item/getByPathWithPath/columns/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition, type ColumnDefinitionCollectionResponse } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the columns property of the microsoft.graph.site entity. + */ +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}/sites/{site%2Did}/getByPath(path='{path}')/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ColumnsRequestBuilder(x, y)); + } + /** + * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinitionCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-columns?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, createColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinition + * @see {@link https://learn.microsoft.com/graph/api/site-post-columns?view=graph-rest-1.0|Find more info here} + */ + public post(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createColumnDefinitionFromDiscriminatorValue, errorMapping); + } + /** + * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * @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, columnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeColumnDefinition); + return requestInfo; + } +} +const columnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/contentTypes/index.ts b/src/sites/item/getByPathWithPath/contentTypes/index.ts new file mode 100644 index 00000000000..b919307c3a4 --- /dev/null +++ b/src/sites/item/getByPathWithPath/contentTypes/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createContentTypeCollectionResponseFromDiscriminatorValue, createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType, type ContentTypeCollectionResponse } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ContentTypesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + */ +export class ContentTypesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ContentTypesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ContentTypesRequestBuilder(x, y)); + } + /** + * Get the collection of [contentType][contentType] resources in a [site][]. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ContentTypeCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-contenttypes?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, createContentTypeCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new [contentType][] in a [site][]. + * @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/site-post-contenttypes?view=graph-rest-1.0|Find more info here} + */ + public post(body: ContentType, 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); + } + /** + * Get the collection of [contentType][contentType] resources in a [site][]. + * @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, contentTypesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new [contentType][] in a [site][]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ContentType, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeContentType); + return requestInfo; + } +} +const contentTypesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/createdByUser/index.ts b/src/sites/item/getByPathWithPath/createdByUser/index.ts new file mode 100644 index 00000000000..0de2f80496b --- /dev/null +++ b/src/sites/item/getByPathWithPath/createdByUser/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createUserFromDiscriminatorValue, type User } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface CreatedByUserRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ +export class CreatedByUserRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new CreatedByUserRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/createdByUser{?%24select,%24expand}", (x, y) => new CreatedByUserRequestBuilder(x, y)); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of User + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, createdByUserRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const createdByUserRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/drive/index.ts b/src/sites/item/getByPathWithPath/drive/index.ts new file mode 100644 index 00000000000..2a5cb629ac1 --- /dev/null +++ b/src/sites/item/getByPathWithPath/drive/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createDriveFromDiscriminatorValue, type Drive } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DriveRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the drive property of the microsoft.graph.site entity. + */ +export class DriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DriveRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/drive{?%24select,%24expand}", (x, y) => new DriveRequestBuilder(x, y)); + } + /** + * The default drive (document library) for this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Drive + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createDriveFromDiscriminatorValue, errorMapping); + } + /** + * The default drive (document library) for this site. + * @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, driveRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const driveRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/drives/index.ts b/src/sites/item/getByPathWithPath/drives/index.ts new file mode 100644 index 00000000000..f5196163f30 --- /dev/null +++ b/src/sites/item/getByPathWithPath/drives/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createDriveCollectionResponseFromDiscriminatorValue, type DriveCollectionResponse } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DrivesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the drives property of the microsoft.graph.site entity. + */ +export class DrivesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DrivesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new DrivesRequestBuilder(x, y)); + } + /** + * The collection of drives (document libraries) under this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of DriveCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createDriveCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * The collection of drives (document libraries) under this site. + * @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, drivesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const drivesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/externalColumns/index.ts b/src/sites/item/getByPathWithPath/externalColumns/index.ts new file mode 100644 index 00000000000..557ccd82759 --- /dev/null +++ b/src/sites/item/getByPathWithPath/externalColumns/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, type ColumnDefinitionCollectionResponse } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ExternalColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + */ +export class ExternalColumnsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ExternalColumnsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/externalColumns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ExternalColumnsRequestBuilder(x, y)); + } + /** + * Get externalColumns from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinitionCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Get externalColumns from sites + * @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, externalColumnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const externalColumnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getActivitiesByInterval/index.ts b/src/sites/item/getByPathWithPath/getActivitiesByInterval/index.ts new file mode 100644 index 00000000000..79931ffc54e --- /dev/null +++ b/src/sites/item/getByPathWithPath/getActivitiesByInterval/index.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createItemActivityStatFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeItemActivityStat, type BaseCollectionPaginationCountResponse, type ItemActivityStat } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +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) { + 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 + */ + 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 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. + */ +export class GetActivitiesByIntervalRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new GetActivitiesByIntervalRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getActivitiesByInterval(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", (x, y) => new GetActivitiesByIntervalRequestBuilder(x, y)); + } + /** + * Invoke function getActivitiesByInterval + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of GetActivitiesByIntervalGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createGetActivitiesByIntervalGetResponseFromDiscriminatorValue, 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, getActivitiesByIntervalRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const getActivitiesByIntervalRequestBuilderGetQueryParametersMapper: 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/getByPathWithPath/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts b/src/sites/item/getByPathWithPath/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts new file mode 100644 index 00000000000..dda8909c3ed --- /dev/null +++ b/src/sites/item/getByPathWithPath/getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/index.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createItemActivityStatFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeItemActivityStat, type BaseCollectionPaginationCountResponse, type ItemActivityStat } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; + +export function createGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) { + return deserializeIntoGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse; +} +export function deserializeIntoGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse | undefined = {} as GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) : Record void> { + return { + ...deserializeIntoBaseCollectionPaginationCountResponse(getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse), + "value": n => { getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.value = n.getCollectionOfObjectValues(createItemActivityStatFromDiscriminatorValue); }, + } +} +export interface GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse extends BaseCollectionPaginationCountResponse, Parsable { + /** + * The value property + */ + 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}/getByPath(path='{path}')/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", (x, y) => new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(x, y)); + 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; + } +} +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/getByPathWithPath/getApplicableContentTypesForListWithListId/index.ts b/src/sites/item/getByPathWithPath/getApplicableContentTypesForListWithListId/index.ts new file mode 100644 index 00000000000..309d527d61e --- /dev/null +++ b/src/sites/item/getByPathWithPath/getApplicableContentTypesForListWithListId/index.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createContentTypeFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeContentType, type BaseCollectionPaginationCountResponse, type ContentType } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +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) { + 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 + */ + 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 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. + */ +export class GetApplicableContentTypesForListWithListIdRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new GetApplicableContentTypesForListWithListIdRequestBuilder and sets the default values. + * @param listId Usage: listId='{listId}' + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, listId?: string | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getApplicableContentTypesForList(listId='{listId}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", (x, y) => new GetApplicableContentTypesForListWithListIdRequestBuilder(x, y)); + this.pathParameters["listId"] = listId + } + /** + * Invoke function getApplicableContentTypesForList + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of GetApplicableContentTypesForListWithListIdGetResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createGetApplicableContentTypesForListWithListIdGetResponseFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function getApplicableContentTypesForList + * @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, getApplicableContentTypesForListWithListIdRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const getApplicableContentTypesForListWithListIdRequestBuilderGetQueryParametersMapper: 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/getByPathWithPath/getByPathWithPath1/analytics/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts new file mode 100644 index 00000000000..5d027b4c0da --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/analytics/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createItemAnalyticsFromDiscriminatorValue, deserializeIntoItemAnalytics, serializeItemAnalytics, type ItemAnalytics } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface AnalyticsRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the analytics property of the microsoft.graph.site entity. + */ +export class AnalyticsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new AnalyticsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24select,%24expand}", (x, y) => new AnalyticsRequestBuilder(x, y)); + } + /** + * Delete navigation property analytics for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Analytics about the view activities that took place in this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ItemAnalytics + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createItemAnalyticsFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property analytics in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ItemAnalytics + */ + public patch(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createItemAnalyticsFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property analytics for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Analytics about the view activities that took place in this site. + * @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, analyticsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property analytics in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: ItemAnalytics, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeItemAnalytics); + return requestInfo; + } +} +const analyticsRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts new file mode 100644 index 00000000000..ef529754214 --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/columns/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, createColumnDefinitionFromDiscriminatorValue, deserializeIntoColumnDefinition, serializeColumnDefinition, type ColumnDefinition, type ColumnDefinitionCollectionResponse } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the columns property of the microsoft.graph.site entity. + */ +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}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ColumnsRequestBuilder(x, y)); + } + /** + * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinitionCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-columns?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, createColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinition + * @see {@link https://learn.microsoft.com/graph/api/site-post-columns?view=graph-rest-1.0|Find more info here} + */ + public post(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createColumnDefinitionFromDiscriminatorValue, errorMapping); + } + /** + * Get the collection of columns represented as [columnDefinition][columnDefinition] resources in a [site][site]. + * @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, columnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a column for a [site][site] with a request that specifies a [columnDefinition][columnDefinition]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ColumnDefinition, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeColumnDefinition); + return requestInfo; + } +} +const columnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts new file mode 100644 index 00000000000..1d9cc19086a --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/contentTypes/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createContentTypeCollectionResponseFromDiscriminatorValue, createContentTypeFromDiscriminatorValue, deserializeIntoContentType, serializeContentType, type ContentType, type ContentTypeCollectionResponse } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ContentTypesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + */ +export class ContentTypesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ContentTypesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ContentTypesRequestBuilder(x, y)); + } + /** + * Get the collection of [contentType][contentType] resources in a [site][]. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ContentTypeCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-contenttypes?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, createContentTypeCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new [contentType][] in a [site][]. + * @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/site-post-contenttypes?view=graph-rest-1.0|Find more info here} + */ + public post(body: ContentType, 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); + } + /** + * Get the collection of [contentType][contentType] resources in a [site][]. + * @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, contentTypesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new [contentType][] in a [site][]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: ContentType, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeContentType); + return requestInfo; + } +} +const contentTypesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts new file mode 100644 index 00000000000..b326c619d73 --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/createdByUser/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createUserFromDiscriminatorValue, type User } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface CreatedByUserRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ +export class CreatedByUserRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new CreatedByUserRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24select,%24expand}", (x, y) => new CreatedByUserRequestBuilder(x, y)); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of User + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); + } + /** + * Identity of the user who created the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, createdByUserRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const createdByUserRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts new file mode 100644 index 00000000000..587834ab2cc --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/drive/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createDriveFromDiscriminatorValue, type Drive } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DriveRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the drive property of the microsoft.graph.site entity. + */ +export class DriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DriveRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24select,%24expand}", (x, y) => new DriveRequestBuilder(x, y)); + } + /** + * The default drive (document library) for this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Drive + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createDriveFromDiscriminatorValue, errorMapping); + } + /** + * The default drive (document library) for this site. + * @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, driveRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const driveRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts new file mode 100644 index 00000000000..394d6d0bb9d --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/drives/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createDriveCollectionResponseFromDiscriminatorValue, type DriveCollectionResponse } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface DrivesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the drives property of the microsoft.graph.site entity. + */ +export class DrivesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new DrivesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new DrivesRequestBuilder(x, y)); + } + /** + * The collection of drives (document libraries) under this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of DriveCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createDriveCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * The collection of drives (document libraries) under this site. + * @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, drivesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const drivesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts new file mode 100644 index 00000000000..33a9de56f2b --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/externalColumns/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createColumnDefinitionCollectionResponseFromDiscriminatorValue, type ColumnDefinitionCollectionResponse } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ExternalColumnsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + */ +export class ExternalColumnsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ExternalColumnsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ExternalColumnsRequestBuilder(x, y)); + } + /** + * Get externalColumns from sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ColumnDefinitionCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Get externalColumns from sites + * @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, externalColumnsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const externalColumnsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/index.ts new file mode 100644 index 00000000000..7537876435f --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/index.ts @@ -0,0 +1,162 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createSiteFromDiscriminatorValue, type Site } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +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 { 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'; + +/** + * Provides operations to call the getByPath method. + */ +export class GetByPathWithPath1RequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the analytics property of the microsoft.graph.site entity. + */ + public get analytics(): AnalyticsRequestBuilder { + return new AnalyticsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the columns property of the microsoft.graph.site entity. + */ + public get columns(): ColumnsRequestBuilder { + return new ColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + */ + public get contentTypes(): ContentTypesRequestBuilder { + return new ContentTypesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ + public get createdByUser(): CreatedByUserRequestBuilder { + return new CreatedByUserRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the drive property of the microsoft.graph.site entity. + */ + public get drive(): DriveRequestBuilder { + return new DriveRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the drives property of the microsoft.graph.site entity. + */ + public get drives(): DrivesRequestBuilder { + return new DrivesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + */ + public get externalColumns(): ExternalColumnsRequestBuilder { + return new ExternalColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the items property of the microsoft.graph.site entity. + */ + public get items(): ItemsRequestBuilder { + return new ItemsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ + public get lastModifiedByUser(): LastModifiedByUserRequestBuilder { + return new LastModifiedByUserRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the lists property of the microsoft.graph.site entity. + */ + public get lists(): ListsRequestBuilder { + return new ListsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the onenote property of the microsoft.graph.site entity. + */ + public get onenote(): OnenoteRequestBuilder { + return new OnenoteRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the operations property of the microsoft.graph.site entity. + */ + public get operations(): OperationsRequestBuilder { + return new OperationsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the permissions property of the microsoft.graph.site entity. + */ + public get permissions(): PermissionsRequestBuilder { + return new PermissionsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the sites property of the microsoft.graph.site entity. + */ + public get sites(): SitesRequestBuilder { + return new SitesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the termStore property of the microsoft.graph.site entity. + */ + public get termStore(): TermStoreRequestBuilder { + return new TermStoreRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the termStores property of the microsoft.graph.site entity. + */ + public get termStores(): TermStoresRequestBuilder { + return new TermStoresRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Instantiates a new GetByPathWithPath1RequestBuilder and sets the default values. + * @param path1 Usage: path='{path1}' + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, path1?: string | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", (x, y) => new GetByPathWithPath1RequestBuilder(x, y)); + this.pathParameters["path1"] = path1 + } + /** + * Invoke function getByPath + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Site + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createSiteFromDiscriminatorValue, errorMapping); + } + /** + * Invoke function getByPath + * @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; + } +} +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts new file mode 100644 index 00000000000..4e156c3c25f --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/items/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createBaseItemCollectionResponseFromDiscriminatorValue, type BaseItemCollectionResponse } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ItemsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the items property of the microsoft.graph.site entity. + */ +export class ItemsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ItemsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ItemsRequestBuilder(x, y)); + } + /** + * Used to address any item contained in this site. This collection can't be enumerated. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of BaseItemCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createBaseItemCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Used to address any item contained in this site. This collection can't be enumerated. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, itemsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const itemsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts new file mode 100644 index 00000000000..040b85870f2 --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/lastModifiedByUser/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createUserFromDiscriminatorValue, type User } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LastModifiedByUserRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ +export class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24select,%24expand}", (x, y) => new LastModifiedByUserRequestBuilder(x, y)); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of User + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, lastModifiedByUserRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const lastModifiedByUserRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts new file mode 100644 index 00000000000..d56b90635a5 --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/lists/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createListCollectionResponseFromDiscriminatorValue, createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List, type ListCollectionResponse } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ListsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the lists property of the microsoft.graph.site entity. + */ +export class ListsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ListsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ListsRequestBuilder(x, y)); + } + /** + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ListCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/list-list?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, createListCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new [list][] in a [site][]. + * @param body The request body + * @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-create?view=graph-rest-1.0|Find more info here} + */ + public post(body: List, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createListFromDiscriminatorValue, errorMapping); + } + /** + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * @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, listsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new [list][] in a [site][]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: List, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeList); + return requestInfo; + } +} +const listsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts new file mode 100644 index 00000000000..edb11e9db38 --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/onenote/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createOnenoteFromDiscriminatorValue, deserializeIntoOnenote, serializeOnenote, type Onenote } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface OnenoteRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the onenote property of the microsoft.graph.site entity. + */ +export class OnenoteRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new OnenoteRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24select,%24expand}", (x, y) => new OnenoteRequestBuilder(x, y)); + } + /** + * Delete navigation property onenote for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Calls the OneNote service for notebook related operations. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Onenote + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createOnenoteFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property onenote in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Onenote + */ + public patch(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createOnenoteFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property onenote for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Calls the OneNote service for notebook related operations. + * @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, onenoteRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property onenote in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOnenote); + return requestInfo; + } +} +const onenoteRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts new file mode 100644 index 00000000000..709454aa147 --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/operations/index.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation, type RichLongRunningOperationCollectionResponse } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface OperationsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the operations property of the microsoft.graph.site entity. + */ +export class OperationsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new OperationsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new OperationsRequestBuilder(x, y)); + } + /** + * Get a list of rich long-running operations associated with a site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of RichLongRunningOperationCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-operations?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, createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create new navigation property to operations for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of RichLongRunningOperation + */ + public post(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createRichLongRunningOperationFromDiscriminatorValue, errorMapping); + } + /** + * Get a list of rich long-running operations associated with a site. + * @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, operationsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to operations for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRichLongRunningOperation); + return requestInfo; + } +} +const operationsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts new file mode 100644 index 00000000000..f45b5b313e3 --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/permissions/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createPermissionCollectionResponseFromDiscriminatorValue, createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission, type PermissionCollectionResponse } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface PermissionsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the permissions property of the microsoft.graph.site entity. + */ +export class PermissionsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new PermissionsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new PermissionsRequestBuilder(x, y)); + } + /** + * Get the permission resources from the permissions navigation property on a site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of PermissionCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-permissions?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, createPermissionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new permission object on a site. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Permission + * @see {@link https://learn.microsoft.com/graph/api/site-post-permissions?view=graph-rest-1.0|Find more info here} + */ + public post(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createPermissionFromDiscriminatorValue, errorMapping); + } + /** + * Get the permission resources from the permissions navigation property on a site. + * @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, permissionsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new permission object on a site. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePermission); + return requestInfo; + } +} +const permissionsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts new file mode 100644 index 00000000000..e8406c9370b --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/sites/index.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createSiteCollectionResponseFromDiscriminatorValue, type SiteCollectionResponse } from '../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface SitesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the sites property of the microsoft.graph.site entity. + */ +export class SitesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SitesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new SitesRequestBuilder(x, y)); + } + /** + * Get a collection of subsites defined for a [site][]. + * @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-subsites?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, createSiteCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Get a collection of subsites defined for a [site][]. + * @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, sitesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const sitesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts new file mode 100644 index 00000000000..eb035fcbf0f --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/termStore/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../../../models/termStore/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TermStoreRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the termStore property of the microsoft.graph.site entity. + */ +export class TermStoreRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TermStoreRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24select,%24expand}", (x, y) => new TermStoreRequestBuilder(x, y)); + } + /** + * Delete navigation property termStore for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Read the properties and relationships of a store object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + * @see {@link https://learn.microsoft.com/graph/api/termstore-store-get?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, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of a store object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + * @see {@link https://learn.microsoft.com/graph/api/termstore-store-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property termStore for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a store object. + * @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, termStoreRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a store object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStore); + return requestInfo; + } +} +const termStoreRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts b/src/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts new file mode 100644 index 00000000000..62fd0255d1f --- /dev/null +++ b/src/sites/item/getByPathWithPath/getByPathWithPath1/termStores/index.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; +import { createStoreCollectionResponseFromDiscriminatorValue, createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store, type StoreCollectionResponse } from '../../../../../models/termStore/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TermStoresRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the termStores property of the microsoft.graph.site entity. + */ +export class TermStoresRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TermStoresRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new TermStoresRequestBuilder(x, y)); + } + /** + * The collection of termStores under this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of StoreCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create new navigation property to termStores for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + */ + public post(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * The collection of termStores under this site. + * @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, termStoresRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to termStores for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStore); + return requestInfo; + } +} +const termStoresRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/index.ts b/src/sites/item/getByPathWithPath/index.ts index 37b3208bc25..64de65ff12a 100644 --- a/src/sites/item/getByPathWithPath/index.ts +++ b/src/sites/item/getByPathWithPath/index.ts @@ -3,12 +3,134 @@ // Generated by Microsoft Kiota import { createSiteFromDiscriminatorValue, type Site } from '../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../models/oDataErrors/'; +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 { GetByPathWithPath1RequestBuilder } from './getByPathWithPath1/'; +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'; /** * Provides operations to call the getByPath method. */ export class GetByPathWithPathRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the analytics property of the microsoft.graph.site entity. + */ + public get analytics(): AnalyticsRequestBuilder { + return new AnalyticsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the columns property of the microsoft.graph.site entity. + */ + public get columns(): ColumnsRequestBuilder { + return new ColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. + */ + public get contentTypes(): ContentTypesRequestBuilder { + return new ContentTypesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. + */ + public get createdByUser(): CreatedByUserRequestBuilder { + return new CreatedByUserRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the drive property of the microsoft.graph.site entity. + */ + public get drive(): DriveRequestBuilder { + return new DriveRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the drives property of the microsoft.graph.site entity. + */ + public get drives(): DrivesRequestBuilder { + return new DrivesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. + */ + public get externalColumns(): ExternalColumnsRequestBuilder { + return new ExternalColumnsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to call the getActivitiesByInterval method. + */ + public get getActivitiesByInterval(): GetActivitiesByIntervalRequestBuilder { + return new GetActivitiesByIntervalRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the items property of the microsoft.graph.site entity. + */ + public get items(): ItemsRequestBuilder { + return new ItemsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ + public get lastModifiedByUser(): LastModifiedByUserRequestBuilder { + return new LastModifiedByUserRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the lists property of the microsoft.graph.site entity. + */ + public get lists(): ListsRequestBuilder { + return new ListsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the onenote property of the microsoft.graph.site entity. + */ + public get onenote(): OnenoteRequestBuilder { + return new OnenoteRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the operations property of the microsoft.graph.site entity. + */ + public get operations(): OperationsRequestBuilder { + return new OperationsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the permissions property of the microsoft.graph.site entity. + */ + public get permissions(): PermissionsRequestBuilder { + return new PermissionsRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the sites property of the microsoft.graph.site entity. + */ + public get sites(): SitesRequestBuilder { + return new SitesRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the termStore property of the microsoft.graph.site entity. + */ + public get termStore(): TermStoreRequestBuilder { + return new TermStoreRequestBuilder(this.pathParameters, this.requestAdapter); + } + /** + * Provides operations to manage the termStores property of the microsoft.graph.site entity. + */ + public get termStores(): TermStoresRequestBuilder { + return new TermStoresRequestBuilder(this.pathParameters, this.requestAdapter); + } /** * Instantiates a new GetByPathWithPathRequestBuilder and sets the default values. * @param path Usage: path='{path}' @@ -34,6 +156,37 @@ export class GetByPathWithPathRequestBuilder extends BaseRequestBuilder>; return this.requestAdapter.sendAsync(requestInfo, createSiteFromDiscriminatorValue, errorMapping); } + /** + * Provides operations to call the getActivitiesByInterval method. + * @param endDateTime Usage: endDateTime='{endDateTime}' + * @param interval Usage: interval='{interval}' + * @param startDateTime Usage: startDateTime='{startDateTime}' + * @returns a getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder + */ + public getActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval(endDateTime: string | undefined, interval: string | undefined, startDateTime: string | undefined) : GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder { + if(!endDateTime) throw new Error("endDateTime cannot be undefined"); + if(!interval) throw new Error("interval cannot be undefined"); + if(!startDateTime) throw new Error("startDateTime cannot be undefined"); + return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(this.pathParameters, this.requestAdapter, endDateTime, interval, startDateTime); + } + /** + * Provides operations to call the getApplicableContentTypesForList method. + * @param listId Usage: listId='{listId}' + * @returns a getApplicableContentTypesForListWithListIdRequestBuilder + */ + public getApplicableContentTypesForListWithListId(listId: string | undefined) : GetApplicableContentTypesForListWithListIdRequestBuilder { + if(!listId) throw new Error("listId cannot be undefined"); + return new GetApplicableContentTypesForListWithListIdRequestBuilder(this.pathParameters, this.requestAdapter, listId); + } + /** + * Provides operations to call the getByPath method. + * @param path1 Usage: path='{path1}' + * @returns a getByPathWithPath1RequestBuilder + */ + public getByPathWithPath1(path1: string | undefined) : GetByPathWithPath1RequestBuilder { + if(!path1) throw new Error("path1 cannot be undefined"); + return new GetByPathWithPath1RequestBuilder(this.pathParameters, this.requestAdapter, path1); + } /** * Invoke function getByPath * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/sites/item/getByPathWithPath/items/index.ts b/src/sites/item/getByPathWithPath/items/index.ts new file mode 100644 index 00000000000..d25639c5934 --- /dev/null +++ b/src/sites/item/getByPathWithPath/items/index.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createBaseItemCollectionResponseFromDiscriminatorValue, type BaseItemCollectionResponse } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ItemsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the items property of the microsoft.graph.site entity. + */ +export class ItemsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ItemsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/items{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ItemsRequestBuilder(x, y)); + } + /** + * Used to address any item contained in this site. This collection can't be enumerated. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of BaseItemCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createBaseItemCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Used to address any item contained in this site. This collection can't be enumerated. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, itemsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const itemsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/lastModifiedByUser/index.ts b/src/sites/item/getByPathWithPath/lastModifiedByUser/index.ts new file mode 100644 index 00000000000..52fdaaad0d5 --- /dev/null +++ b/src/sites/item/getByPathWithPath/lastModifiedByUser/index.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createUserFromDiscriminatorValue, type User } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LastModifiedByUserRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. + */ +export class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LastModifiedByUserRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/lastModifiedByUser{?%24select,%24expand}", (x, y) => new LastModifiedByUserRequestBuilder(x, y)); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of User + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createUserFromDiscriminatorValue, errorMapping); + } + /** + * Identity of the user who last modified the item. Read-only. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, lastModifiedByUserRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const lastModifiedByUserRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/lists/index.ts b/src/sites/item/getByPathWithPath/lists/index.ts new file mode 100644 index 00000000000..49b024d170b --- /dev/null +++ b/src/sites/item/getByPathWithPath/lists/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createListCollectionResponseFromDiscriminatorValue, createListFromDiscriminatorValue, deserializeIntoList, serializeList, type List, type ListCollectionResponse } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface ListsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the lists property of the microsoft.graph.site entity. + */ +export class ListsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new ListsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/lists{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ListsRequestBuilder(x, y)); + } + /** + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of ListCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/list-list?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, createListCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new [list][] in a [site][]. + * @param body The request body + * @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-create?view=graph-rest-1.0|Find more info here} + */ + public post(body: List, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createListFromDiscriminatorValue, errorMapping); + } + /** + * Get the collection of [lists][] for a [site][]. Lists with the [system][] facet are hidden by default.To list them, include system in your $select statement. + * @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, listsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new [list][] in a [site][]. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: List, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeList); + return requestInfo; + } +} +const listsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/onenote/index.ts b/src/sites/item/getByPathWithPath/onenote/index.ts new file mode 100644 index 00000000000..b02481d9c75 --- /dev/null +++ b/src/sites/item/getByPathWithPath/onenote/index.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createOnenoteFromDiscriminatorValue, deserializeIntoOnenote, serializeOnenote, type Onenote } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface OnenoteRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the onenote property of the microsoft.graph.site entity. + */ +export class OnenoteRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new OnenoteRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/onenote{?%24select,%24expand}", (x, y) => new OnenoteRequestBuilder(x, y)); + } + /** + * Delete navigation property onenote for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Calls the OneNote service for notebook related operations. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Onenote + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createOnenoteFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property onenote in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Onenote + */ + public patch(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createOnenoteFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property onenote for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Calls the OneNote service for notebook related operations. + * @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, onenoteRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property onenote in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: Onenote, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeOnenote); + return requestInfo; + } +} +const onenoteRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/operations/index.ts b/src/sites/item/getByPathWithPath/operations/index.ts new file mode 100644 index 00000000000..9cf9020971e --- /dev/null +++ b/src/sites/item/getByPathWithPath/operations/index.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, createRichLongRunningOperationFromDiscriminatorValue, deserializeIntoRichLongRunningOperation, serializeRichLongRunningOperation, type RichLongRunningOperation, type RichLongRunningOperationCollectionResponse } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface OperationsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the operations property of the microsoft.graph.site entity. + */ +export class OperationsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new OperationsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/operations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new OperationsRequestBuilder(x, y)); + } + /** + * Get a list of rich long-running operations associated with a site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of RichLongRunningOperationCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-operations?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, createRichLongRunningOperationCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create new navigation property to operations for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of RichLongRunningOperation + */ + public post(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createRichLongRunningOperationFromDiscriminatorValue, errorMapping); + } + /** + * Get a list of rich long-running operations associated with a site. + * @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, operationsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to operations for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: RichLongRunningOperation, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeRichLongRunningOperation); + return requestInfo; + } +} +const operationsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/permissions/index.ts b/src/sites/item/getByPathWithPath/permissions/index.ts new file mode 100644 index 00000000000..bfdca9602b2 --- /dev/null +++ b/src/sites/item/getByPathWithPath/permissions/index.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createPermissionCollectionResponseFromDiscriminatorValue, createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission, type PermissionCollectionResponse } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface PermissionsRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the permissions property of the microsoft.graph.site entity. + */ +export class PermissionsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new PermissionsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/permissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new PermissionsRequestBuilder(x, y)); + } + /** + * Get the permission resources from the permissions navigation property on a site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of PermissionCollectionResponse + * @see {@link https://learn.microsoft.com/graph/api/site-list-permissions?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, createPermissionCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create a new permission object on a site. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Permission + * @see {@link https://learn.microsoft.com/graph/api/site-post-permissions?view=graph-rest-1.0|Find more info here} + */ + public post(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createPermissionFromDiscriminatorValue, errorMapping); + } + /** + * Get the permission resources from the permissions navigation property on a site. + * @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, permissionsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new permission object on a site. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Permission, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePermission); + return requestInfo; + } +} +const permissionsRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/sites/index.ts b/src/sites/item/getByPathWithPath/sites/index.ts new file mode 100644 index 00000000000..590b3fcdae0 --- /dev/null +++ b/src/sites/item/getByPathWithPath/sites/index.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createSiteCollectionResponseFromDiscriminatorValue, type SiteCollectionResponse } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface SitesRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the sites property of the microsoft.graph.site entity. + */ +export class SitesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new SitesRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new SitesRequestBuilder(x, y)); + } + /** + * Get a collection of subsites defined for a [site][]. + * @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-subsites?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, createSiteCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Get a collection of subsites defined for a [site][]. + * @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, sitesRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const sitesRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/termStore/index.ts b/src/sites/item/getByPathWithPath/termStore/index.ts new file mode 100644 index 00000000000..b9c9d64eaad --- /dev/null +++ b/src/sites/item/getByPathWithPath/termStore/index.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store } from '../../../../models/termStore/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TermStoreRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the termStore property of the microsoft.graph.site entity. + */ +export class TermStoreRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TermStoreRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/termStore{?%24select,%24expand}", (x, y) => new TermStoreRequestBuilder(x, y)); + } + /** + * Delete navigation property termStore for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Read the properties and relationships of a store object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + * @see {@link https://learn.microsoft.com/graph/api/termstore-store-get?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, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of a store object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + * @see {@link https://learn.microsoft.com/graph/api/termstore-store-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property termStore for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a store object. + * @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, termStoreRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a store object. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStore); + return requestInfo; + } +} +const termStoreRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/getByPathWithPath/termStores/index.ts b/src/sites/item/getByPathWithPath/termStores/index.ts new file mode 100644 index 00000000000..e0b8f9b14bd --- /dev/null +++ b/src/sites/item/getByPathWithPath/termStores/index.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { createStoreCollectionResponseFromDiscriminatorValue, createStoreFromDiscriminatorValue, deserializeIntoStore, serializeStore, type Store, type StoreCollectionResponse } from '../../../../models/termStore/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface TermStoresRequestBuilderGetQueryParameters { + /** + * Include count of items + */ + count?: boolean; + /** + * Expand related entities + */ + expand?: string[]; + /** + * Filter items by property values + */ + filter?: string; + /** + * Order items by property values + */ + orderby?: string[]; + /** + * Search items by search phrases + */ + search?: string; + /** + * Select properties to be returned + */ + select?: string[]; + /** + * Skip the first n items + */ + skip?: number; + /** + * Show only the first n items + */ + top?: number; +} +/** + * Provides operations to manage the termStores property of the microsoft.graph.site entity. + */ +export class TermStoresRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new TermStoresRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the 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}/getByPath(path='{path}')/termStores{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new TermStoresRequestBuilder(x, y)); + } + /** + * The collection of termStores under this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of StoreCollectionResponse + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreCollectionResponseFromDiscriminatorValue, errorMapping); + } + /** + * Create new navigation property to termStores for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Store + */ + public post(body: Store, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createStoreFromDiscriminatorValue, errorMapping); + } + /** + * The collection of termStores under this site. + * @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, termStoresRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to termStores for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: Store, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeStore); + return requestInfo; + } +} +const termStoresRequestBuilderGetQueryParametersMapper: Record = { + "count": "%24count", + "expand": "%24expand", + "filter": "%24filter", + "orderby": "%24orderby", + "search": "%24search", + "select": "%24select", + "skip": "%24skip", + "top": "%24top", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/sites/item/lists/item/index.ts b/src/sites/item/lists/item/index.ts index fc99ff48536..f7d7cdd49a0 100644 --- a/src/sites/item/lists/item/index.ts +++ b/src/sites/item/lists/item/index.ts @@ -98,10 +98,10 @@ export class ListItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -141,7 +141,7 @@ export class ListItemRequestBuilder extends BaseRequestBuilder new ConversationMemberItemRequestBuilder(x, y)); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -76,7 +76,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @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/index.ts b/src/teams/item/channels/item/messages/index.ts index 8b6805db52a..fc691712978 100644 --- a/src/teams/item/channels/item/messages/index.ts +++ b/src/teams/item/channels/item/messages/index.ts @@ -94,11 +94,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new reply to a chatMessage in a specified channel. + * Send 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/channel-post-messagereply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder new ConversationMemberItemRequestBuilder(x, y)); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -76,7 +76,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @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/index.ts b/src/teams/item/primaryChannel/messages/index.ts index 669e6c4cabf..98431e5bba6 100644 --- a/src/teams/item/primaryChannel/messages/index.ts +++ b/src/teams/item/primaryChannel/messages/index.ts @@ -94,11 +94,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new reply to a chatMessage in a specified channel. + * Send 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/channel-post-messagereply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/share", (x, y) => new ShareRequestBuilder(x, y)); } /** - * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + * Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. * @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/schedule-share?view=graph-rest-1.0|Find more info here} @@ -67,7 +67,7 @@ export class ShareRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + * Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. * @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 e7ceb13a945..34c51fcb4a0 100644 --- a/src/teamwork/deletedTeams/item/channels/item/members/item/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/members/item/index.ts @@ -28,9 +28,9 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder new ConversationMemberItemRequestBuilder(x, y)); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -76,7 +76,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @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/index.ts b/src/teamwork/deletedTeams/item/channels/item/messages/index.ts index a45ad06c418..2daed95c58f 100644 --- a/src/teamwork/deletedTeams/item/channels/item/messages/index.ts +++ b/src/teamwork/deletedTeams/item/channels/item/messages/index.ts @@ -94,11 +94,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new reply to a chatMessage in a specified channel. + * Send 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/channel-post-messagereply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder * 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/intune-mam-user-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-user-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -111,11 +111,11 @@ export class UsersRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createUserCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new user object. + * Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. * @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/intune-mam-user-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/user-post-users?view=graph-rest-1.0|Find more info here} */ public post(body: User, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -139,7 +139,7 @@ export class UsersRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Create a new user object. + * Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. * @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/members/item/index.ts b/src/users/item/chats/item/members/item/index.ts index 8e7ec42c88b..15aeb8fc504 100644 --- a/src/users/item/chats/item/members/item/index.ts +++ b/src/users/item/chats/item/members/item/index.ts @@ -43,10 +43,10 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -86,7 +86,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new reply to a chatMessage in a specified channel. + * Send 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/channel-post-messagereply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder>; return this.requestAdapter.sendAsync(requestInfo, createEmployeeExperienceUserFromDiscriminatorValue, errorMapping); } + /** + * Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperienceUser entity. + * @param externalcourseActivityId Alternate key of learningCourseActivity + * @returns a learningCourseActivitiesWithExternalcourseActivityIdRequestBuilder + */ + public learningCourseActivitiesWithExternalcourseActivityId(externalcourseActivityId: string | undefined) : LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder { + if(!externalcourseActivityId) throw new Error("externalcourseActivityId cannot be undefined"); + return new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(this.pathParameters, this.requestAdapter, externalcourseActivityId); + } /** * Update the navigation property employeeExperience in users * @param body The request body diff --git a/src/users/item/employeeExperience/learningCourseActivitiesWithExternalcourseActivityId/index.ts b/src/users/item/employeeExperience/learningCourseActivitiesWithExternalcourseActivityId/index.ts new file mode 100644 index 00000000000..a8e1b335e50 --- /dev/null +++ b/src/users/item/employeeExperience/learningCourseActivitiesWithExternalcourseActivityId/index.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +// Generated by Microsoft Kiota +import { createLearningCourseActivityFromDiscriminatorValue, type LearningCourseActivity } from '../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperienceUser entity. + */ +export class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder and sets the default values. + * @param externalcourseActivityId Alternate key of learningCourseActivity + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter, externalcourseActivityId?: string | undefined) { + super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/employeeExperience/learningCourseActivities(externalcourseActivityId='{externalcourseActivityId}'){?%24select,%24expand}", (x, y) => new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(x, y)); + this.pathParameters["externalcourseActivityId"] = externalcourseActivityId + } + /** + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of LearningCourseActivity + * @see {@link https://learn.microsoft.com/graph/api/learningcourseactivity-get?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, createLearningCourseActivityFromDiscriminatorValue, errorMapping); + } + /** + * Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a 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, learningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } +} +const learningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +/* tslint:enable */ +/* eslint-enable */ diff --git a/src/users/item/events/index.ts b/src/users/item/events/index.ts index 1f649534d9e..188509b76f1 100644 --- a/src/users/item/events/index.ts +++ b/src/users/item/events/index.ts @@ -90,11 +90,11 @@ export class EventsRequestBuilder extends BaseRequestBuilder(requestInfo, createEventCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + * Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Event - * @see {@link https://learn.microsoft.com/graph/api/multivaluelegacyextendedproperty-post-multivalueextendedproperties?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/singlevaluelegacyextendedproperty-post-singlevalueextendedproperties?view=graph-rest-1.0|Find more info here} */ public post(body: Event, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class EventsRequestBuilder extends BaseRequestBuilder new UserItemRequestBuilder(x, y)); } /** - * 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( @@ -569,11 +569,11 @@ export class UserItemRequestBuilder extends BaseRequestBuilder(requestInfo, createUserFromDiscriminatorValue, errorMapping); } /** - * Update the properties of a user object. + * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. * @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/intune-onboarding-user-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0|Find more info here} */ public patch(body: User, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -597,7 +597,7 @@ export class UserItemRequestBuilder extends BaseRequestBuilder new ConversationMemberItemRequestBuilder(x, y)); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -76,7 +76,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @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/index.ts b/src/users/item/joinedTeams/item/channels/item/messages/index.ts index 3f243774a63..9b5008d2288 100644 --- a/src/users/item/joinedTeams/item/channels/item/messages/index.ts +++ b/src/users/item/joinedTeams/item/channels/item/messages/index.ts @@ -94,11 +94,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new reply to a chatMessage in a specified channel. + * Send 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/channel-post-messagereply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder new ConversationMemberItemRequestBuilder(x, y)); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -76,7 +76,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createConversationMemberFromDiscriminatorValue, errorMapping); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @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/index.ts b/src/users/item/joinedTeams/item/primaryChannel/messages/index.ts index b9873e9c61e..7ea626f5336 100644 --- a/src/users/item/joinedTeams/item/primaryChannel/messages/index.ts +++ b/src/users/item/joinedTeams/item/primaryChannel/messages/index.ts @@ -94,11 +94,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new reply to a chatMessage in a specified channel. + * Send 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/channel-post-messagereply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/share", (x, y) => new ShareRequestBuilder(x, y)); } /** - * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + * Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. * @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/schedule-share?view=graph-rest-1.0|Find more info here} @@ -67,7 +67,7 @@ export class ShareRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Share a schedule time range with schedule members.Make the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers.Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. + * Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. * @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/index.ts b/src/users/item/mailFolders/item/childFolders/index.ts index 6bce33c125c..9d99d215ca2 100644 --- a/src/users/item/mailFolders/item/childFolders/index.ts +++ b/src/users/item/mailFolders/item/childFolders/index.ts @@ -94,11 +94,11 @@ export class ChildFoldersRequestBuilder extends BaseRequestBuilder(requestInfo, createMailFolderCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * 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. + * Create a new mailSearchFolder in the specified 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 MailFolder - * @see {@link https://learn.microsoft.com/graph/api/mailfolder-post-childfolders?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/mailsearchfolder-post?view=graph-rest-1.0|Find more info here} */ public post(body: MailFolder, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class ChildFoldersRequestBuilder extends BaseRequestBuilder(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 a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @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/message-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -110,7 +110,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder(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 a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @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/message-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -110,7 +110,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -98,11 +98,11 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(requestInfo, createMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- 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. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + * 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 Promise of Message - * @see {@link https://learn.microsoft.com/graph/api/user-post-messages?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: Message, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -126,7 +126,7 @@ export class MessagesRequestBuilder extends BaseRequestBuilder(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 a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. * @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/message-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -110,7 +110,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/users/item/messages/item/value/index.ts b/src/users/item/messages/item/value/index.ts index 1d2c22f4cc3..5f93c9757dd 100644 --- a/src/users/item/messages/item/value/index.ts +++ b/src/users/item/messages/item/value/index.ts @@ -20,7 +20,7 @@ export class ContentRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/users/item/presence/index.ts b/src/users/item/presence/index.ts index 76b8227a5d9..a90e83875ec 100644 --- a/src/users/item/presence/index.ts +++ b/src/users/item/presence/index.ts @@ -77,10 +77,10 @@ export class PresenceRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -120,7 +120,7 @@ export class PresenceRequestBuilder extends BaseRequestBuilder