/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { CreateTimesheetApprovalRequest, CreateTimesheetApprovalResponseOK } from "./types/approval"; import { GetTimesheetApprovalForUserRequest, GetTimesheetApprovalForUserResponseOK } from "./types/approval"; import { GetTimesheetApprovalsForUserOverMultiplePeriodsRequest, GetTimesheetApprovalsForUserOverMultiplePeriodsResponseOK } from "./types/approval"; import { GetTimesheetApprovalLogForTeamRequest, GetTimesheetApprovalLogForTeamResponseOK } from "./types/approval"; import { GetPendingTimesheetApprovalsForReviewerRequest, GetPendingTimesheetApprovalsForReviewerResponseOK } from "./types/approval"; import { GetTimesheetApprovalLogForUserRequest, GetTimesheetApprovalLogForUserResponseOK } from "./types/approval"; import { CreateWorklogsRequest, CreateWorklogsResponseOK } from "./types/worklog"; import { FindWorklogsRequest, FindWorklogsResponseOK } from "./types/worklog"; import { DeleteWorklogRequest, DeleteWorklogResponseOK } from "./types/worklog"; import { GetWorklogRequest, GetWorklogResponseOK } from "./types/worklog"; import { UpdateWorklogRequest, UpdateWorklogResponseOK } from "./types/worklog"; import { GetApprovalPeriodRequest, GetApprovalPeriodResponseOK } from "./types/period"; import { GetSecondaryApprovalPeriodRequest, GetSecondaryApprovalPeriodResponseOK } from "./types/period"; import { BaseApiCore, Headers, Response, ErrorStrategyOptionType, PlatformImplementation } from "@managed-api/commons-core"; import { CommonError, AdditionalErrorTypes, ErrorStrategyHandlers, ErrorStrategyOption } from "./errorStrategy"; import { ErrorStrategyBuilder } from "./builders/errorStrategy"; export interface TempoTimesheetsOnPremiseApiCoreOptions extends ErrorStrategyOption { } declare type GetGlobalErrorStrategy = () => ErrorStrategyOptionType | undefined; export declare abstract class TempoTimesheetsOnPremiseApiCore extends BaseApiCore { private options?; Approval: ApprovalGroup; Worklog: WorklogGroup; Period: PeriodGroup; All: AllGroup; constructor(options?: TempoTimesheetsOnPremiseApiCoreOptions | undefined); setGlobalErrorStrategy(errorStrategy: ErrorStrategyOptionType): void; protected buildResponse(url: string, status: number, statusText: string, headers: Headers, body?: string | ArrayBuffer): Response; private getGlobalErrorStrategy; } declare class AllGroup { private Approval; private Worklog; private Period; constructor(Approval: ApprovalGroup, Worklog: WorklogGroup, Period: PeriodGroup); /** * Posting Approvals * Alternative usage: Approval.createApproval * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/createApprovalV4 * @param options Request options. */ createTimesheetApproval(options: CreateTimesheetApprovalRequest): Promise; /** * Get timesheet approval for specific user * Alternative usage: Approval.getApprovalForUser * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getTimesheetApprovalsForUserV4 * @param options Request options. */ getTimesheetApprovalForUser(options: GetTimesheetApprovalForUserRequest): Promise; /** * Get approval statuses for a specific user over multiple periods * Alternative usage: Approval.getApprovalsForUserOverMultiplePeriods * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getTimesheetApprovalsForUserOverMultiplePeriodsV4 * @param options Request options. */ getTimesheetApprovalsForUserOverMultiplePeriods(options: GetTimesheetApprovalsForUserOverMultiplePeriodsRequest): Promise; /** * Get all approvals the user is allowed to see for a team in a given period. * Alternative usage: Approval.getApprovalLogForTeam * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getTeamApprovalLogV4 * @param options Request options. */ getTimesheetApprovalLogForTeam(options: GetTimesheetApprovalLogForTeamRequest): Promise; /** * Get timesheet approval for reviewer * Alternative usage: Approval.getPendingApprovalsForReviewer * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getTimesheetApprovalsForReviewerV4 * @param options Request options. */ getPendingTimesheetApprovalsForReviewer(options: GetPendingTimesheetApprovalsForReviewerRequest): Promise; /** * get approval log for a specific user within a time frame * Alternative usage: Approval.getApprovalLogForUser * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getUserApprovalLogV4 * @param options Request options. */ getTimesheetApprovalLogForUser(options: GetTimesheetApprovalLogForUserRequest): Promise; /** * Creates worklogs * Alternative usage: Worklog.createWorklogs * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/createWorklog * @param options Request options. */ createWorklogs(options: CreateWorklogsRequest): Promise; /** * Finds existing worklogs * Alternative usage: Worklog.findWorklogs * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/searchWorklogs * @param options Request options. */ findWorklogs(options: FindWorklogsRequest): Promise; /** * Deletes worklog * Alternative usage: Worklog.deleteWorklog * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/deleteWorklog * @param options Request options. */ deleteWorklog(options: DeleteWorklogRequest): Promise; /** * Gets worklog * Alternative usage: Worklog.getWorklog * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getWorklog * @param options Request options. */ getWorklog(options: GetWorklogRequest): Promise; /** * Update information on an already existing worklog. Please note that it is not possible to update the worker or originTaskId, In order to do so, you would have to delete the existing worklog and create a new one on the chosen worker/originTaskId. * Alternative usage: Worklog.updateWorklog * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/updateWorklog * @param options Request options. */ updateWorklog(options: UpdateWorklogRequest): Promise; /** * IMPORTANT: This is used with rest/tempo-timesheets/5 * Alternative usage: Period.getApprovalPeriod * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getApprovalPeriods * @param options Request options. */ getApprovalPeriod(options: GetApprovalPeriodRequest): Promise; /** * IMPORTANT: This is used with rest/tempo-timesheets/5 * Alternative usage: Period.getSecondaryApprovalPeriod * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getSecondaryPeriods * @param options Request options. */ getSecondaryApprovalPeriod(options: GetSecondaryApprovalPeriodRequest): Promise; } declare class ApprovalGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Posting Approvals * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/createApprovalV4 * @param options Request options. */ createApproval(options: CreateTimesheetApprovalRequest): Promise; /** * Get timesheet approval for specific user * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getTimesheetApprovalsForUserV4 * @param options Request options. */ getApprovalForUser(options: GetTimesheetApprovalForUserRequest): Promise; /** * Get approval statuses for a specific user over multiple periods * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getTimesheetApprovalsForUserOverMultiplePeriodsV4 * @param options Request options. */ getApprovalsForUserOverMultiplePeriods(options: GetTimesheetApprovalsForUserOverMultiplePeriodsRequest): Promise; /** * Get all approvals the user is allowed to see for a team in a given period. * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getTeamApprovalLogV4 * @param options Request options. */ getApprovalLogForTeam(options: GetTimesheetApprovalLogForTeamRequest): Promise; /** * Get timesheet approval for reviewer * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getTimesheetApprovalsForReviewerV4 * @param options Request options. */ getPendingApprovalsForReviewer(options: GetPendingTimesheetApprovalsForReviewerRequest): Promise; /** * get approval log for a specific user within a time frame * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getUserApprovalLogV4 * @param options Request options. */ getApprovalLogForUser(options: GetTimesheetApprovalLogForUserRequest): Promise; } declare class WorklogGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Creates worklogs * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/createWorklog * @param options Request options. */ createWorklogs(options: CreateWorklogsRequest): Promise; /** * Finds existing worklogs * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/searchWorklogs * @param options Request options. */ findWorklogs(options: FindWorklogsRequest): Promise; /** * Deletes worklog * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/deleteWorklog * @param options Request options. */ deleteWorklog(options: DeleteWorklogRequest): Promise; /** * Gets worklog * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getWorklog * @param options Request options. */ getWorklog(options: GetWorklogRequest): Promise; /** * Update information on an already existing worklog. Please note that it is not possible to update the worker or originTaskId, In order to do so, you would have to delete the existing worklog and create a new one on the chosen worker/originTaskId. * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/updateWorklog * @param options Request options. */ updateWorklog(options: UpdateWorklogRequest): Promise; } declare class PeriodGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * IMPORTANT: This is used with rest/tempo-timesheets/5 * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getApprovalPeriods * @param options Request options. */ getApprovalPeriod(options: GetApprovalPeriodRequest): Promise; /** * IMPORTANT: This is used with rest/tempo-timesheets/5 * Documentation: https://www.tempo.io/server-api-documentation/timesheets#operation/getSecondaryPeriods * @param options Request options. */ getSecondaryApprovalPeriod(options: GetSecondaryApprovalPeriodRequest): Promise; } export {}; //# sourceMappingURL=index.d.ts.map