Updates pageInfo.go

Uses Beta library for pages.
This commit is contained in:
Danny Adams 2023-01-19 00:33:19 -05:00
parent 7d9d7bc02b
commit 1ac4922c80

View File

@ -3,13 +3,15 @@ package sharepoint
import (
"time"
bmodel "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
"github.com/alcionai/corso/src/pkg/backup/details"
)
// sharePointPageInfo propagates metadata from the SharePoint Page data type
// into searchable content.
// Page Details: https://learn.microsoft.com/en-us/graph/api/resources/sitepage?view=graph-rest-beta
func sharePointPageInfo(page SitePageable, size int64) *details.SharePointInfo {
func sharePointPageInfo(page bmodel.SitePageable, size int64) *details.SharePointInfo {
var (
name, webURL string
created, modified time.Time