Interface MicrosoftOneDriveTriggerNodeParameters

Source

interface MicrosoftOneDriveTriggerNodeParameters {
    authentication?:
        | "microsoftEntraServicePrincipalApi"
        | "microsoftOAuth2Api"
        | "microsoftOneDriveOAuth2Api";
    driveTarget?: { mode: "id"; value: string };
    event?:
        | "folderCreated"
        | "folderUpdated"
        | "fileUpdated"
        | "fileCreated";
    fileId?: { mode: "id"
    | "url"; value: string };
    folderId?: { mode: "id" | "url"; value: string };
    options?: { folderChild?: boolean };
    pollTimes: {
        item: { mode: string & {} | "everyMinute" }[];
    };
    resourceTarget?: "user"
    | "drive";
    simple?: boolean;
    userTarget?: { mode: "id"; value: string };
    watch?:
        | "anyFile"
        | "selectedFolder"
        | "selectedFile"
        | "anyFolder"
        | "oneSelectedFolder";
    watchFolder?: boolean;
}

Properties§

§readonly authentication?:
    | "microsoftEntraServicePrincipalApi"
    | "microsoftOAuth2Api"
    | "microsoftOneDriveOAuth2Api"

Default: "microsoftOneDriveOAuth2Api"

§readonly driveTarget?: { ... }

The drive the Service Principal should act on. Resolved once per poll. Default: {"mode":"id","value":""}

§readonly event?:
    | "folderCreated"
    | "folderUpdated"
    | "fileUpdated"
    | "fileCreated"

Default: "fileCreated"

§readonly fileId?: { ... }

The file to operate on. The 'By URL' option only accepts URLs that start with 'https://onedrive.live.com'. Default: {"mode":"id","value":""}

§readonly folderId?: { ... }

The folder to operate on. The 'By URL' option only accepts URLs that start with 'https://onedrive.live.com'. Default: {"mode":"id","value":"","cachedResultName":""}

§readonly options?: { ... }

Default: {}

§readonly pollTimes: { ... }
§readonly resourceTarget?: "user" | "drive"

Which drive the Service Principal should act on (app-only has no personal drive) Default: "user"

§readonly simple?: boolean

Whether to return a simplified version of the response instead of the raw data Default: true

§readonly userTarget?: { ... }

The user whose OneDrive the Service Principal should act on. Resolved once per poll. Default: {"mode":"id","value":""}

§readonly watch?:
    | "anyFile"
    | "selectedFolder"
    | "selectedFile"
    | "anyFolder"
    | "oneSelectedFolder"

How to select which file to watch Default: "anyFile"

§readonly watchFolder?: boolean

Whether to watch for the created file in a given folder, rather than the entire OneDrive