Skip to main content

ApprovalService

Index

Constructors

constructor

Properties

publicreadonlyhttpRequest

httpRequest: BaseHttpRequest

Methods

publicapprovalCreateApproval

publicapprovalGetApprovalCategoryInfo

  • Get a template's info Retrieves information about a request template.

    @throws

    ApiError


    Parameters

    • __namedParameters: { approvalCategoryId?: string }

    Returns CancelablePromise<{ data?: GetApprovalCategoryInfoResponse }>

    any Successfully retrieved information about the template.

publicapprovalGetApprovalCategoryList

publicapprovalGetApprovalListReceived

  • approvalGetApprovalListReceived(__namedParameters: { filterApprovalCategoryIds?: string; filterApprovalStatus?: string; filterEndDate?: string; filterIsBookmarked?: string; filterKeyword?: string; filterStartDate?: string; limit?: number; offset?: string; type?: me | me_pending | me_completed | team | referrer_team | referrer }): CancelablePromise<{ data?: ApprovalListResponse }>
  • List out received requests Lists out a given number of requests from the user's inbox. This method uses the Swit API's pagination scheme.

    @throws

    ApiError


    Parameters

    • __namedParameters: { filterApprovalCategoryIds?: string; filterApprovalStatus?: string; filterEndDate?: string; filterIsBookmarked?: string; filterKeyword?: string; filterStartDate?: string; limit?: number; offset?: string; type?: me | me_pending | me_completed | team | referrer_team | referrer }

    Returns CancelablePromise<{ data?: ApprovalListResponse }>

    any Successfully retrieved the requests received.

publicapprovalGetApprovalListSent

  • approvalGetApprovalListSent(__namedParameters: { filterApprovalCategoryIds?: string; filterApprovalStatus?: string; filterEndDate?: string; filterIsBookmarked?: 0 | 1; filterKeyword?: string; filterStartDate?: string; limit?: number; offset?: string; type?: string }): CancelablePromise<{ data?: ApprovalListResponse }>
  • List out submitted requests Lists out a given number of requests from the user's submissions. This method uses the Swit API's pagination scheme.

    @throws

    ApiError


    Parameters

    • __namedParameters: { filterApprovalCategoryIds?: string; filterApprovalStatus?: string; filterEndDate?: string; filterIsBookmarked?: 0 | 1; filterKeyword?: string; filterStartDate?: string; limit?: number; offset?: string; type?: string }

    Returns CancelablePromise<{ data?: ApprovalListResponse }>

    any Successfully retrieved the requests submitted.

publicapprovalGetApprovalListTemp

  • List out drafts Lists out a given number of request drafts. This method uses the Swit API's pagination scheme.

    @throws

    ApiError


    Parameters

    • __namedParameters: { limit?: number; offset?: string }

    Returns CancelablePromise<{ data?: ApprovalListResponse }>

    any Successfully retrieved the drafts.