@imj_media/tareas 1.5.39 → 1.5.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
1
  import { TasksKanbanGeneral } from '../../infraestructure/interfaces/tasks-kanban-general';
2
+ import { ITasksCampaign } from '../../infraestructure/interfaces/tasks-campania';
2
3
  interface IBoard {
3
4
  title: string;
4
- tasks: TasksKanbanGeneral[];
5
+ tasks: TasksKanbanGeneral[] | ITasksCampaign[];
5
6
  loadNextPage?: () => void;
6
7
  isFetching?: boolean;
7
8
  isLoadingData?: boolean;
@@ -4,6 +4,7 @@ interface ICheckboxProps {
4
4
  statusRequiredTask: number;
5
5
  status: number;
6
6
  idAtraso: number;
7
+ nameRequiredTaskResponsible?: string | null;
7
8
  }
8
- declare const Checkbox: ({ id, nameRequiredTask, statusRequiredTask, status, idAtraso }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const Checkbox: ({ id, nameRequiredTask, statusRequiredTask, status, idAtraso, nameRequiredTaskResponsible }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export default Checkbox;
@@ -1,3 +1,3 @@
1
1
  import { TasksKanbanGeneral } from '../../infraestructure/interfaces/tasks-kanban-general';
2
- declare const Task: ({ id, task, endDate, users, willBePaused, nameProject, comments, priority, difficulty, responsible, nameRequiredTask, statusRequiredTask, status, repeatsToDo, repeats, medioName, paused, idProject, atraso, categoria, }: TasksKanbanGeneral) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Task: ({ id, task, endDate, users, willBePaused, nameProject, comments, priority, difficulty, responsible, nameRequiredTask, nameRequiredTaskResponsible, statusRequiredTask, status, repeatsToDo, repeats, medioName, paused, idProject, atraso, categoria, }: TasksKanbanGeneral) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Task;
@@ -39,5 +39,5 @@ type TDifficulty = 'Muy facil' | 'Facil' | 'Media' | 'Dificil' | 'Muy dificil';
39
39
  type TPriority = 'Sin prioridad' | 'Prioridad Baja' | 'Prioridad Media' | 'Prioridad Alta';
40
40
  type IDependency = 'con' | 'sin';
41
41
  type TStatus = 'por_hacer' | 'trabajando' | 'completadas';
42
- export declare const getTasksProject: ({ filters, tasks_api, project }: IGetTasksResponse) => Promise<any>;
42
+ export declare const getTasksProject: ({ filters, tasks_api, project }: IGetTasksResponse) => Promise<import('../../infraestructure/interfaces/tasks-campania').ITasksCampaign[]>;
43
43
  export {};
@@ -1,29 +1,9 @@
1
- import { IAtrasoReason, ICategory } from '../../types';
2
- import { IUsers } from './users';
3
- export interface ITasksCampaign {
1
+ import { TasksKanbanGeneral } from './tasks-kanban-general';
2
+ export interface ITasksCampaign extends TasksKanbanGeneral {
4
3
  isPrincipalTask: boolean;
5
- projectName: string;
6
- id: number;
7
- task: string;
8
- status: number;
9
- difficulty: number;
10
- priority: number;
11
- endDate: Date;
12
4
  startDate: Date;
13
- users?: IUsers[];
14
- repeatsToDo?: number | null;
15
- repeats?: number | null;
16
- comments?: number | null;
17
- willBePaused: boolean;
18
- statusRequiredTask?: number | null;
19
- nameRequiredTask?: string | null;
20
5
  tasks?: IChildTask[] | null;
21
- mediumName: string | null;
22
- responsible: number | null;
23
6
  orden: number;
24
- paused: boolean;
25
- atraso: IAtrasoReason | null;
26
- categoria: ICategory | null;
27
7
  }
28
8
  export interface IChildTask {
29
9
  id: number;
@@ -1,4 +1,5 @@
1
1
  import { IUsers } from './users';
2
+ import { ICategory, IAtrasoReason } from '../../types';
2
3
  export interface TasksKanbanGeneral {
3
4
  id: number;
4
5
  task: string;
@@ -10,6 +11,7 @@ export interface TasksKanbanGeneral {
10
11
  users: IUsers[];
11
12
  statusRequiredTask: number | null;
12
13
  nameRequiredTask: string | null;
14
+ nameRequiredTaskResponsible?: string | null;
13
15
  willBePaused: boolean;
14
16
  nameProject: string | null;
15
17
  idProject: number | null;
@@ -18,11 +20,6 @@ export interface TasksKanbanGeneral {
18
20
  repeatsToDo?: number | null;
19
21
  repeats?: number | null;
20
22
  medioName?: string | null;
21
- atraso?: any;
23
+ atraso?: IAtrasoReason | null;
22
24
  categoria?: ICategory | null;
23
25
  }
24
- export interface ICategory {
25
- id: number;
26
- nombre: string;
27
- tipo: string;
28
- }
@@ -16,3 +16,11 @@ export declare const AddOBPUrl: (user: IUsers, url: string) => {
16
16
  name: string;
17
17
  };
18
18
  };
19
+ export declare const extractRequiredTaskResponsible: (idTRequerida?: {
20
+ responsable?: {
21
+ nombre: string;
22
+ } | null;
23
+ equipo?: {
24
+ nombre: string;
25
+ } | null;
26
+ } | null) => string | null;