Interface SharingTasksAPI

interface SharingTasksAPI {
    cancelSharingTask: (
        taskId: string,
        options?: ApiCallOptions,
    ) => Promise<CancelSharingTaskHttpResponse>;
    clearCache: () => void;
    configureSharingTasksSettings: (
        body: APISettingsUpload,
        options?: ApiCallOptions,
    ) => Promise<ConfigureSharingTasksSettingsHttpResponse>;
    createSharingTask: (
        body: SharingTaskRecurringCreateRequest,
        options?: ApiCallOptions,
    ) => Promise<CreateSharingTaskHttpResponse>;
    deleteSharingTask: (
        taskId: string,
        options?: ApiCallOptions,
    ) => Promise<DeleteSharingTaskHttpResponse>;
    executeSharingTasks: (
        body: SharingActionsTriggerCreateRequest,
        options?: ApiCallOptions,
    ) => Promise<ExecuteSharingTasksHttpResponse>;
    getSharingTask: (
        taskId: string,
        query: { isViewChart?: boolean },
        options?: ApiCallOptions,
    ) => Promise<GetSharingTaskHttpResponse>;
    getSharingTaskExecution: (
        taskId: string,
        executionId: string,
        query: { status?: "failed" | "cancelled" | "successful" },
        options?: ApiCallOptions,
    ) => Promise<GetSharingTaskExecutionHttpResponse>;
    getSharingTaskExecutionFile: (
        taskId: string,
        executionId: string,
        fileAlias: string,
        query: { status?: "failed" | "cancelled" | "successful" },
        options?: ApiCallOptions,
    ) => Promise<GetSharingTaskExecutionFileHttpResponse>;
    getSharingTaskExecutions: (
        taskId: string,
        query: {
            limit?: number;
            next?: string;
            offset?: number;
            prev?: string;
            sort?: ("starttime" | "-starttime" | "+starttime")[];
            status?: "failed" | "successful";
        },
        options?: ApiCallOptions,
    ) => Promise<GetSharingTaskExecutionsHttpResponse>;
    getSharingTasks: (
        query: {
            appid?: string;
            excludeDeleting?: boolean;
            limit?: number;
            next?: string;
            offset?: number;
            owner?: string;
            ownername?: string;
            page?: string;
            prev?: string;
            role?: ("owner" | "recipient")[];
            sort?: (
                | "status"
                | "type"
                | "name"
                | "sent"
                | "+status"
                | "-status"
                | "-name"
                | "+name"
                | "scheduled"
                | "enabled"
                | "-datecreated"
                | "datecreated"
                | "+datecreated"
                | "-ownername"
                | "ownername"
                | "+ownername"
                | "-enabled"
                | "+enabled"
                | "+type"
                | "-type"
                | "-sent"
                | "+sent"
                | "-scheduled"
                | "+scheduled"
                | "-appname"
                | "appname"
                | "+appname"
                | "-appid"
                | "appid"
                | "+appid"
            )[];
            templateId?: string[];
            type?: (
                | "chart-monitoring"
                | "chart-sharing"
                | "sheet-sharing"
                | "template-sharing"
            )[];
        },
        options?: ApiCallOptions,
    ) => Promise<GetSharingTasksHttpResponse>;
    getSharingTasksSettings: (
        options?: ApiCallOptions,
    ) => Promise<GetSharingTasksSettingsHttpResponse>;
    patchSharingTask: (
        taskId: string,
        body: SharingTaskPatchRequestCompliantList,
        options?: ApiCallOptions,
    ) => Promise<PatchSharingTaskHttpResponse>;
    updateSharingTasksSettings: (
        body: SharingSettingsPatchCompliantList,
        options?: ApiCallOptions,
    ) => Promise<UpdateSharingTasksSettingsHttpResponse>;
}
Index

Properties

cancelSharingTask: (
    taskId: string,
    options?: ApiCallOptions,
) => Promise<CancelSharingTaskHttpResponse>

Requests cancellation of an execution of the specified recurring sharing task.

Type declaration

The sharing task identifier.

CancelSharingTaskHttpError

clearCache: () => void

Clears the cache for sharing-tasks api requests.

Type declaration

    • (): void
    • Clears the cache for sharing-tasks api requests.

      Returns void

configureSharingTasksSettings: (
    body: APISettingsUpload,
    options?: ApiCallOptions,
) => Promise<ConfigureSharingTasksSettingsHttpResponse>

Updates the settings for sharing tasks, reports, and other related configuration in the tenant. User must be assigned the TenantAdmin role.

Type declaration

an object with the body content

ConfigureSharingTasksSettingsHttpError

createSharingTask: (
    body: SharingTaskRecurringCreateRequest,
    options?: ApiCallOptions,
) => Promise<CreateSharingTaskHttpResponse>

Creates a new recurring sharing task.

Type declaration

an object with the body content

CreateSharingTaskHttpError

deleteSharingTask: (
    taskId: string,
    options?: ApiCallOptions,
) => Promise<DeleteSharingTaskHttpResponse>

Deletes a specific sharing task.

Type declaration

The sharing task identifier.

DeleteSharingTaskHttpError

executeSharingTasks: (
    body: SharingActionsTriggerCreateRequest,
    options?: ApiCallOptions,
) => Promise<ExecuteSharingTasksHttpResponse>

Requests execution of the specified recurring sharing task.

Type declaration

an object with the body content

ExecuteSharingTasksHttpError

getSharingTask: (
    taskId: string,
    query: { isViewChart?: boolean },
    options?: ApiCallOptions,
) => Promise<GetSharingTaskHttpResponse>

Returns the details of a specific sharing task.

Type declaration

    • (
          taskId: string,
          query: { isViewChart?: boolean },
          options?: ApiCallOptions,
      ): Promise<GetSharingTaskHttpResponse>
    • Returns the details of a specific sharing task.

      Parameters

      • taskId: string

        The sharing task identifier.

      • query: { isViewChart?: boolean }

        an object with query parameters

        • OptionalisViewChart?: boolean

          Determines whether to update the lastViewed property for the sharing task, which is used to determine whether the sharing task is still in use. If set to true, this will be updated to current time.

      • Optionaloptions: ApiCallOptions

      Returns Promise<GetSharingTaskHttpResponse>

      GetSharingTaskHttpError

The sharing task identifier.

an object with query parameters

GetSharingTaskHttpError

getSharingTaskExecution: (
    taskId: string,
    executionId: string,
    query: { status?: "failed" | "cancelled" | "successful" },
    options?: ApiCallOptions,
) => Promise<GetSharingTaskExecutionHttpResponse>

Retrieves a specific sharing task execution.

Type declaration

    • (
          taskId: string,
          executionId: string,
          query: { status?: "failed" | "cancelled" | "successful" },
          options?: ApiCallOptions,
      ): Promise<GetSharingTaskExecutionHttpResponse>
    • Retrieves a specific sharing task execution.

      Parameters

      • taskId: string

        The sharing task identifier.

      • executionId: string

        The execution identifier. If value is "latest", the latest execution will be returned

      • query: { status?: "failed" | "cancelled" | "successful" }

        an object with query parameters

        • Optionalstatus?: "failed" | "cancelled" | "successful"

          Filter by status. If not present then no filtering is done on the status. This is only relevant when requesting latest execution.

      • Optionaloptions: ApiCallOptions

      Returns Promise<GetSharingTaskExecutionHttpResponse>

      GetSharingTaskExecutionHttpError

The sharing task identifier.

The execution identifier. If value is "latest", the latest execution will be returned

an object with query parameters

GetSharingTaskExecutionHttpError

getSharingTaskExecutionFile: (
    taskId: string,
    executionId: string,
    fileAlias: string,
    query: { status?: "failed" | "cancelled" | "successful" },
    options?: ApiCallOptions,
) => Promise<GetSharingTaskExecutionFileHttpResponse>

Retrieves the file content for the requested execution and file type.

Type declaration

    • (
          taskId: string,
          executionId: string,
          fileAlias: string,
          query: { status?: "failed" | "cancelled" | "successful" },
          options?: ApiCallOptions,
      ): Promise<GetSharingTaskExecutionFileHttpResponse>
    • Retrieves the file content for the requested execution and file type.

      Parameters

      • taskId: string

        The sharing task identifier.

      • executionId: string

        The execution identifier.

      • fileAlias: string

        The execution identifier. If value is "latest", the latest execution will be returned

      • query: { status?: "failed" | "cancelled" | "successful" }

        an object with query parameters

        • Optionalstatus?: "failed" | "cancelled" | "successful"

          Filter by status. If not present then no filtering is done on the status. This is only relevant when requesting latest execution.

      • Optionaloptions: ApiCallOptions

      Returns Promise<GetSharingTaskExecutionFileHttpResponse>

      GetSharingTaskExecutionFileHttpError

The sharing task identifier.

The execution identifier.

The execution identifier. If value is "latest", the latest execution will be returned

an object with query parameters

GetSharingTaskExecutionFileHttpError

getSharingTaskExecutions: (
    taskId: string,
    query: {
        limit?: number;
        next?: string;
        offset?: number;
        prev?: string;
        sort?: ("starttime" | "-starttime" | "+starttime")[];
        status?: "failed" | "successful";
    },
    options?: ApiCallOptions,
) => Promise<GetSharingTaskExecutionsHttpResponse>

Lists executions for the specified sharing task.

Type declaration

    • (
          taskId: string,
          query: {
              limit?: number;
              next?: string;
              offset?: number;
              prev?: string;
              sort?: ("starttime" | "-starttime" | "+starttime")[];
              status?: "failed" | "successful";
          },
          options?: ApiCallOptions,
      ): Promise<GetSharingTaskExecutionsHttpResponse>
    • Lists executions for the specified sharing task.

      Parameters

      • taskId: string

        The sharing task identifier.

      • query: {
            limit?: number;
            next?: string;
            offset?: number;
            prev?: string;
            sort?: ("starttime" | "-starttime" | "+starttime")[];
            status?: "failed" | "successful";
        }

        an object with query parameters

        • Optionallimit?: number

          Limit the returned result set

        • Optionalnext?: string

          The cursor to the next page of data. Only one of next or previous may be specified.

        • Optionaloffset?: number

          Offset for pagination - how many elements to skip

        • Optionalprev?: string

          The cursor to the previous page of data. Only one of next or previous may be specified.

        • Optionalsort?: ("starttime" | "-starttime" | "+starttime")[]

          Sort the returned result set by the specified field

        • Optionalstatus?: "failed" | "successful"

          Specifies a filter for a particular field and value of an execution

      • Optionaloptions: ApiCallOptions

      Returns Promise<GetSharingTaskExecutionsHttpResponse>

      GetSharingTaskExecutionsHttpError

The sharing task identifier.

an object with query parameters

GetSharingTaskExecutionsHttpError

getSharingTasks: (
    query: {
        appid?: string;
        excludeDeleting?: boolean;
        limit?: number;
        next?: string;
        offset?: number;
        owner?: string;
        ownername?: string;
        page?: string;
        prev?: string;
        role?: ("owner" | "recipient")[];
        sort?: (
            | "status"
            | "type"
            | "name"
            | "sent"
            | "+status"
            | "-status"
            | "-name"
            | "+name"
            | "scheduled"
            | "enabled"
            | "-datecreated"
            | "datecreated"
            | "+datecreated"
            | "-ownername"
            | "ownername"
            | "+ownername"
            | "-enabled"
            | "+enabled"
            | "+type"
            | "-type"
            | "-sent"
            | "+sent"
            | "-scheduled"
            | "+scheduled"
            | "-appname"
            | "appname"
            | "+appname"
            | "-appid"
            | "appid"
            | "+appid"
        )[];
        templateId?: string[];
        type?: (
            | "chart-monitoring"
            | "chart-sharing"
            | "sheet-sharing"
            | "template-sharing"
        )[];
    },
    options?: ApiCallOptions,
) => Promise<GetSharingTasksHttpResponse>

Retrieves all sharing tasks accessible to the user. Users assigned the TenantAdmin or AnalyticsAdmin role can view all tasks.

Type declaration

    • (
          query: {
              appid?: string;
              excludeDeleting?: boolean;
              limit?: number;
              next?: string;
              offset?: number;
              owner?: string;
              ownername?: string;
              page?: string;
              prev?: string;
              role?: ("owner" | "recipient")[];
              sort?: (
                  | "status"
                  | "type"
                  | "name"
                  | "sent"
                  | "+status"
                  | "-status"
                  | "-name"
                  | "+name"
                  | "scheduled"
                  | "enabled"
                  | "-datecreated"
                  | "datecreated"
                  | "+datecreated"
                  | "-ownername"
                  | "ownername"
                  | "+ownername"
                  | "-enabled"
                  | "+enabled"
                  | "+type"
                  | "-type"
                  | "-sent"
                  | "+sent"
                  | "-scheduled"
                  | "+scheduled"
                  | "-appname"
                  | "appname"
                  | "+appname"
                  | "-appid"
                  | "appid"
                  | "+appid"
              )[];
              templateId?: string[];
              type?: (
                  | "chart-monitoring"
                  | "chart-sharing"
                  | "sheet-sharing"
                  | "template-sharing"
              )[];
          },
          options?: ApiCallOptions,
      ): Promise<GetSharingTasksHttpResponse>
    • Retrieves all sharing tasks accessible to the user. Users assigned the TenantAdmin or AnalyticsAdmin role can view all tasks.

      Parameters

      • query: {
            appid?: string;
            excludeDeleting?: boolean;
            limit?: number;
            next?: string;
            offset?: number;
            owner?: string;
            ownername?: string;
            page?: string;
            prev?: string;
            role?: ("owner" | "recipient")[];
            sort?: (
                | "status"
                | "type"
                | "name"
                | "sent"
                | "+status"
                | "-status"
                | "-name"
                | "+name"
                | "scheduled"
                | "enabled"
                | "-datecreated"
                | "datecreated"
                | "+datecreated"
                | "-ownername"
                | "ownername"
                | "+ownername"
                | "-enabled"
                | "+enabled"
                | "+type"
                | "-type"
                | "-sent"
                | "+sent"
                | "-scheduled"
                | "+scheduled"
                | "-appname"
                | "appname"
                | "+appname"
                | "-appid"
                | "appid"
                | "+appid"
            )[];
            templateId?: string[];
            type?: (
                | "chart-monitoring"
                | "chart-sharing"
                | "sheet-sharing"
                | "template-sharing"
            )[];
        }

        an object with query parameters

        • Optionalappid?: string

          the filter by sharing task resource app id. TenantAdmin users may omit this parameter to list all sharing-tasks in the tenant.

        • OptionalexcludeDeleting?: boolean

          Indicates if task with the status DELETING should be excluded from the list

        • Optionallimit?: number

          Limit the returned result set

        • Optionalnext?: string

          The cursor to the next page of data. Only one of next or previous may be specified.

        • Optionaloffset?: number

          Offset for finding a list of entities - used for pagination

        • Optionalowner?: string

          the filter by sharing task resource owner id.

        • Optionalownername?: string

          the filter by sharing task resource owner name.

        • Optionalpage?: string

          The cursor to the page of data.

        • Optionalprev?: string

          The cursor to the previous page of data. Only one of next or previous may be specified.

        • Optionalrole?: ("owner" | "recipient")[]

          the filter by sharing task resource role.

        • Optionalsort?: (
              | "status"
              | "type"
              | "name"
              | "sent"
              | "+status"
              | "-status"
              | "-name"
              | "+name"
              | "scheduled"
              | "enabled"
              | "-datecreated"
              | "datecreated"
              | "+datecreated"
              | "-ownername"
              | "ownername"
              | "+ownername"
              | "-enabled"
              | "+enabled"
              | "+type"
              | "-type"
              | "-sent"
              | "+sent"
              | "-scheduled"
              | "+scheduled"
              | "-appname"
              | "appname"
              | "+appname"
              | "-appid"
              | "appid"
              | "+appid"
          )[]

          Sort the returned result set by the specified field

        • OptionaltemplateId?: string[]

          array of template ids to filter by

        • Optionaltype?: ("chart-monitoring" | "chart-sharing" | "sheet-sharing" | "template-sharing")[]

          the filter by sharing task resource type. If type is template-sharing only and user is not tenant admin, appid is also required.

      • Optionaloptions: ApiCallOptions

      Returns Promise<GetSharingTasksHttpResponse>

      GetSharingTasksHttpError

an object with query parameters

GetSharingTasksHttpError

getSharingTasksSettings: (
    options?: ApiCallOptions,
) => Promise<GetSharingTasksSettingsHttpResponse>

Retrieves the current settings for sharing tasks, reports, and other related configuration.

Type declaration

GetSharingTasksSettingsHttpError

patchSharingTask: (
    taskId: string,
    body: SharingTaskPatchRequestCompliantList,
    options?: ApiCallOptions,
) => Promise<PatchSharingTaskHttpResponse>

Updates one or more properties of a specific sharing task.

Type declaration

The sharing task identifier.

an object with the body content

PatchSharingTaskHttpError

updateSharingTasksSettings: (
    body: SharingSettingsPatchCompliantList,
    options?: ApiCallOptions,
) => Promise<UpdateSharingTasksSettingsHttpResponse>

Patches the toggle settings for sharing tasks, reports, and other related configuration in the tenant. User must be assigned the TenantAdmin role.

Type declaration

an object with the body content

UpdateSharingTasksSettingsHttpError