Skip to content

Commit

Permalink
chore(integration-templates): Automated commit updating flows.yaml ba…
Browse files Browse the repository at this point in the history
…sed on changes in NangoHQ/integration-templates@bbc2526 by Khaliq. Commit message: feat(sharepoint-improvements): Sharepoint improvements (#73)
  • Loading branch information
github-actions[bot] committed Oct 25, 2024
1 parent 8d38e16 commit b5315af
Showing 1 changed file with 84 additions and 13 deletions.
97 changes: 84 additions & 13 deletions packages/shared/flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6360,42 +6360,79 @@ integrations:
errorMessage: string
sharepoint-online:
actions:
list-sites:
list-shared-sites:
description: >
This action will be used to display a list of sites to the end-user,
who will pick the ones he wants to sync.
endpoint: GET /sharepoint/list-sites
The connection metadata should be set based on the file selection.
endpoint: GET /list-sites
scopes:
- Sites.ReadWrite.All
- Sites.Read.All
- Sites.Selected
- offline_access
output: SharePointMetadata
version: 1.0.0
output: SharepointSites
version: 2.0.0
fetch-file:
description: >
This action will be used to fetch the latest file download_url which
can be used to download the actual file.
endpoint: GET /sharepoint/fetch-file
endpoint: GET /fetch-file
scopes:
- Sites.ReadWrite.All
- MyFiles.Read
- offline_access
output: FetchFile
input: FetchFileInput
version: 1.0.0
syncs:
file-sync:
user-files:
description: >-
Fetch all files from the user's drive and sync the metadata for each
file.
endpoint: GET /user-files
output: UserFileMetadata
runs: every hour
sync_type: full
scopes:
- Sites.Read.All
- Sites.Selected
- MyFiles.Read
- Files.Read.All
- Files.Read.Selected
- offline_access
user-files-selection:
description: Fetch all selected files from a user's drive
endpoint: GET /user-files/selected
input: SharepointMetadata
output: SelectedUserFileMetadata
runs: every hour
auto_start: false
sync_type: full
scopes:
- Sites.Read.All
- Sites.Selected
- MyFiles.Read
- Files.Read.All
- Files.Read.Selected
- offline_access
shared-sites-selection:
description: >
This sync will be used to sync file metadata from SharePoint site
based on the ones the user has picked.
endpoint: GET /sharepoint/file-sync
endpoint: GET /shared-files/selected
sync_type: incremental
runs: every 1 hour
scopes:
- Sites.ReadWrite.All
- Sites.Read.All
- Sites.Selected
- MyFiles.Read
- Files.Read.All
- Files.Read.Selected
- offline_access
input: SharePointMetadata
input: SharepointMetadata
auto_start: false
output: FileMetadata
version: 1.0.1
version: 2.0.0
models:
FileMetadata:
siteId: string
Expand All @@ -6411,12 +6448,46 @@ integrations:
download_url: string | null
created_at: string
blob_size: number
UserFileMetadata:
siteId: string
id: string
name: string
etag: string
cTag: string
is_folder: boolean
mime_type: string | null
path: string
raw_source: object
updated_at: string
download_url: string | null
created_at: string
blob_size: number
SelectedUserFileMetadata:
siteId: string
id: string
name: string
etag: string
cTag: string
is_folder: boolean
mime_type: string | null
path: string
raw_source: object
updated_at: string
download_url: string | null
created_at: string
blob_size: number
Site:
id: string
name: string
createdDateTime: string
webUrl: string
SharePointMetadata:
SharepointMetadata:
sharedSites: string[]
pickedFiles: PickedFile[]
PickedFile:
siteId: string
fileIds: string[]
SharepointSites:
sitesToSync: Site[]
FetchFileInput:
siteId: string
Expand Down

0 comments on commit b5315af

Please sign in to comment.