/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { ApprovalInputBean } from "../definitions/ApprovalInputBean"; import { ApprovalBean1AsResponse } from "../definitions/ApprovalBean1AsResponse"; import { ErrorStrategyOption } from "../errorStrategy"; import { HeadersOption } from "@managed-api/commons-core"; export interface CreateTimesheetApprovalRequest extends HeadersOption, ErrorStrategyOption { body: ApprovalInputBean; } declare type CreateTimesheetApprovalResponseOKType = ApprovalBean1AsResponse; export interface CreateTimesheetApprovalResponseOK extends CreateTimesheetApprovalResponseOKType { } export declare type CreateTimesheetApprovalResponseError = undefined; export interface GetTimesheetApprovalForUserRequest extends HeadersOption, ErrorStrategyOption { /** * first day of the period. Defaults to today. */ periodStartDate?: string; /** * user key */ userKey: string; } declare type GetTimesheetApprovalForUserResponseOKType = ApprovalBean1AsResponse; export interface GetTimesheetApprovalForUserResponseOK extends GetTimesheetApprovalForUserResponseOKType { } export declare type GetTimesheetApprovalForUserResponseError = undefined; export interface GetTimesheetApprovalsForUserOverMultiplePeriodsRequest extends HeadersOption, ErrorStrategyOption { /** * first day of the period. Defaults to today */ periodStartDate?: string; /** * user key */ userKey: string; /** * number of periods to query, counting backwards from today's period */ numberOfPeriods?: number; } declare type GetTimesheetApprovalsForUserOverMultiplePeriodsResponseOKType = Array; export interface GetTimesheetApprovalsForUserOverMultiplePeriodsResponseOK extends GetTimesheetApprovalsForUserOverMultiplePeriodsResponseOKType { } export declare type GetTimesheetApprovalsForUserOverMultiplePeriodsResponseError = undefined; export interface GetTimesheetApprovalLogForTeamRequest extends HeadersOption, ErrorStrategyOption { /** * first day of the period. Defaults to today */ periodStartDate?: string; /** * the id of the team the user wants to get the approval log for */ teamId: number; } declare type GetTimesheetApprovalLogForTeamResponseOKType = { [x: string]: Array; }; export interface GetTimesheetApprovalLogForTeamResponseOK extends GetTimesheetApprovalLogForTeamResponseOKType { } export declare type GetTimesheetApprovalLogForTeamResponseError = undefined; export interface GetPendingTimesheetApprovalsForReviewerRequest extends HeadersOption, ErrorStrategyOption { /** * Reviewer Key */ reviewerKey: string; } declare type GetPendingTimesheetApprovalsForReviewerResponseOKType = Array; export interface GetPendingTimesheetApprovalsForReviewerResponseOK extends GetPendingTimesheetApprovalsForReviewerResponseOKType { } export declare type GetPendingTimesheetApprovalsForReviewerResponseError = undefined; export interface GetTimesheetApprovalLogForUserRequest extends HeadersOption, ErrorStrategyOption { /** * user key */ userKey: string; /** * date describing the begining of the period */ from?: string; /** * date describing the end of the period */ to?: string; } declare type GetTimesheetApprovalLogForUserResponseOKType = { [x: string]: Array; }; export interface GetTimesheetApprovalLogForUserResponseOK extends GetTimesheetApprovalLogForUserResponseOKType { } export declare type GetTimesheetApprovalLogForUserResponseError = undefined; export {}; //# sourceMappingURL=approval.d.ts.map