/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { GetAllocationsRequest, GetAllocationsResponseOK } from "./types/allocation"; import { CreateAllocationRequest, CreateAllocationResponseOK } from "./types/allocation"; import { DeleteAllocationRequest, DeleteAllocationResponseOK } from "./types/allocation"; import { GetAllocationRequest, GetAllocationResponseOK } from "./types/allocation"; import { UpdateAllocationRequest, UpdateAllocationResponseOK } from "./types/allocation"; import { CreatePlanRequest, CreatePlanResponseOK } from "./types/plan"; import { UpdatePlanRequest, UpdatePlanResponseOK } from "./types/plan"; import { RemovePlanFromDayRequest, RemovePlanFromDayResponseOK } from "./types/plan"; import { SearchPlansRequest, SearchPlansResponseOK } from "./types/plan"; 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 TempoPlannerOnPremiseApiCoreOptions extends ErrorStrategyOption { } declare type GetGlobalErrorStrategy = () => ErrorStrategyOptionType | undefined; export declare abstract class TempoPlannerOnPremiseApiCore extends BaseApiCore { private options?; Allocation: AllocationGroup; Plan: PlanGroup; All: AllGroup; constructor(options?: TempoPlannerOnPremiseApiCoreOptions | 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 Allocation; private Plan; constructor(Allocation: AllocationGroup, Plan: PlanGroup); /** * Gets all plans for a given query. If neither endDate and startDate are defined, then the search period will be one month from the current date (today). * Alternative usage: Allocation.getAllocations * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/getAllocations * @param options Request options. */ getAllocations(options?: GetAllocationsRequest): Promise; /** * Create a basic Plan * Alternative usage: Allocation.createAllocation * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/postAllocation * @param options Request options. */ createAllocation(options: CreateAllocationRequest): Promise; /** * Delete an existing Plan. * Alternative usage: Allocation.deleteAllocation * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/deleteAllocation * @param options Request options. */ deleteAllocation(options: DeleteAllocationRequest): Promise; /** * Get a specific plan by the plan ID * Alternative usage: Allocation.getAllocation * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/getAllocation * @param options Request options. */ getAllocation(options: GetAllocationRequest): Promise; /** * Update an existing Plan. * Alternative usage: Allocation.updateAllocation * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/updateAllocation * @param options Request options. */ updateAllocation(options: UpdateAllocationRequest): Promise; /** * Create Plan * Alternative usage: Plan.createPlan * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Plan/operation/postPlan * @param options Request options. */ createPlan(options: CreatePlanRequest): Promise; /** * * Alternative usage: Plan.updatePlan * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Plan/operation/updatePlan * @param options Request options. */ updatePlan(options: UpdatePlanRequest): Promise; /** * Remove Plan from Day * Alternative usage: Plan.removePlanFromDay * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Plan/operation/removePlanForDay * @param options Request options. */ removePlanFromDay(options: RemovePlanFromDayRequest): Promise; /** * By default, if no other fields than "from" and "to" are sent, then only plans for logged in user will be returned. * Alternative usage: Plan.searchPlans * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Plan/operation/searchPlanLogs * @param options Request options. */ searchPlans(options: SearchPlansRequest): Promise; } declare class AllocationGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Gets all plans for a given query. If neither endDate and startDate are defined, then the search period will be one month from the current date (today). * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/getAllocations * @param options Request options. */ getAllocations(options?: GetAllocationsRequest): Promise; /** * Create a basic Plan * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/postAllocation * @param options Request options. */ createAllocation(options: CreateAllocationRequest): Promise; /** * Delete an existing Plan. * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/deleteAllocation * @param options Request options. */ deleteAllocation(options: DeleteAllocationRequest): Promise; /** * Get a specific plan by the plan ID * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/getAllocation * @param options Request options. */ getAllocation(options: GetAllocationRequest): Promise; /** * Update an existing Plan. * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Allocation/operation/updateAllocation * @param options Request options. */ updateAllocation(options: UpdateAllocationRequest): Promise; } declare class PlanGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Create Plan * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Plan/operation/postPlan * @param options Request options. */ createPlan(options: CreatePlanRequest): Promise; /** * * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Plan/operation/updatePlan * @param options Request options. */ updatePlan(options: UpdatePlanRequest): Promise; /** * Remove Plan from Day * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Plan/operation/removePlanForDay * @param options Request options. */ removePlanFromDay(options: RemovePlanFromDayRequest): Promise; /** * By default, if no other fields than "from" and "to" are sent, then only plans for logged in user will be returned. * Documentation: https://www.tempo.io/server-api-documentation/planner#tag/Plan/operation/searchPlanLogs * @param options Request options. */ searchPlans(options: SearchPlansRequest): Promise; } export {}; //# sourceMappingURL=index.d.ts.map