ApprovalService
Index
Constructors
constructor
Parameters
httpRequest: BaseHttpRequest
Returns ApprovalService
Properties
publicreadonlyhttpRequest
Methods
publicapprovalCreateApproval
Parameters
__namedParameters: { requestBody: CreateApprovalParam }
Returns CancelablePromise<{ data?: CreateApprovalResponse }>
any Successfully created the request.
publicapprovalGetApprovalCategoryInfo
Get a template's info Retrieves information about a request template.
Parameters
__namedParameters: { approvalCategoryId?: string }
Returns CancelablePromise<{ data?: GetApprovalCategoryInfoResponse }>
any Successfully retrieved information about the template.
publicapprovalGetApprovalCategoryList
List out templates Lists out a given number of request templates. This method uses the Swit API's pagination scheme.
Parameters
__namedParameters: { limit?: number; offset?: string }
Returns CancelablePromise<{ data?: ApprovalCategoryListResponse }>
any Successfully retrieved the templates.
publicapprovalGetApprovalListReceived
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.
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
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.
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.
Parameters
__namedParameters: { limit?: number; offset?: string }
Returns CancelablePromise<{ data?: ApprovalListResponse }>
any Successfully retrieved the drafts.
Draft a request Creates a request draft for approval.
ApiError