mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Add Clockify Node (#997)
* Added pull.yml back after reset * Added Clockify Entry * Created ClockifyWriter * ⚡ Improvements to #988 * ⚡ Improvements * ⚡ Improvements Co-authored-by: Ethan Sowell <ethan.sowell@dominion.solutions> Co-authored-by: Mark Horninger <mark.horninger@dominion.solutions>
This commit is contained in:
56
packages/nodes-base/nodes/Clockify/ProjectInterfaces.ts
Normal file
56
packages/nodes-base/nodes/Clockify/ProjectInterfaces.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
import {IHourlyRateDto, IMembershipDto} from "./CommonDtos";
|
||||
import { INodeExecutionData } from "n8n-workflow";
|
||||
|
||||
enum EstimateEnum {
|
||||
AUTO = "AUTO",
|
||||
MANUAL = "MANUAL"
|
||||
}
|
||||
|
||||
interface IEstimateDto {
|
||||
estimate: string;
|
||||
type: EstimateEnum;
|
||||
}
|
||||
|
||||
export interface IProjectDto{
|
||||
archived: boolean;
|
||||
billable: boolean;
|
||||
clientId: string;
|
||||
clientName: string | undefined;
|
||||
color: string;
|
||||
duration: string | undefined;
|
||||
estimate: IEstimateDto | undefined;
|
||||
hourlyRate: IHourlyRateDto | undefined;
|
||||
id: string;
|
||||
memberships: IMembershipDto[] | undefined;
|
||||
name: string;
|
||||
isPublic: boolean;
|
||||
workspaceId: string;
|
||||
note: string | undefined;
|
||||
}
|
||||
|
||||
export interface IProjectRequest {
|
||||
name: string;
|
||||
clientId: string;
|
||||
isPublic: boolean;
|
||||
estimate: IEstimateDto;
|
||||
color: string;
|
||||
note: string;
|
||||
billable: boolean;
|
||||
hourlyRate: IHourlyRateDto;
|
||||
memberships: IMembershipDto;
|
||||
tasks: ITaskDto;
|
||||
}
|
||||
|
||||
enum TaskStatusEnum {
|
||||
ACTIVE = 'ACTIVE',
|
||||
DONE = 'DONE'
|
||||
}
|
||||
|
||||
export interface ITaskDto {
|
||||
assigneeIds: object;
|
||||
estimate: string;
|
||||
id: string;
|
||||
name: string;
|
||||
projectId: string;
|
||||
status: TaskStatusEnum;
|
||||
}
|
||||
Reference in New Issue
Block a user