@imj_media/tareas 0.1.0 → 0.1.5
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.
- package/dist/index.d.ts +1 -1
- package/dist/{src → packages/tareas/src}/components/atoms/TooltipUser.d.ts +1 -1
- package/dist/{src → packages/tareas/src}/components/molecules/ButtonAssignUsers.d.ts +2 -2
- package/dist/{src → packages/tareas/src}/components/organisms/Board.d.ts +1 -1
- package/dist/{src → packages/tareas/src}/components/organisms/Task.d.ts +1 -1
- package/dist/{src → packages/tareas/src}/context/kanbanCampania.context.d.ts +2 -0
- package/dist/packages/tareas/src/core/actions/get_all_users.action.d.ts +5 -0
- package/dist/packages/tareas/src/core/actions/get_salesman_response.action.d.ts +5 -0
- package/dist/packages/tareas/src/core/actions/get_tasks_project.action.d.ts +43 -0
- package/dist/packages/tareas/src/core/actions/get_tasks_response.action.d.ts +42 -0
- package/dist/{src → packages/tareas/src}/hooks/useAllUsers.d.ts +1 -1
- package/dist/{src → packages/tareas/src}/hooks/useDoneTasks.d.ts +1 -1
- package/dist/{src → packages/tareas/src}/hooks/useToDoTasks.d.ts +1 -1
- package/dist/{src → packages/tareas/src}/hooks/useWorkingTasks.d.ts +1 -1
- package/dist/{src → packages/tareas/src}/index.d.ts +1 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/salesmans-obp-response.d.ts +38 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/salesmans-obp.d.ts +4 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/tasks-campania-response.d.ts +102 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/tasks-campania.d.ts +28 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/tasks-kanban-general.d.ts +17 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/tasks-reponse.d.ts +105 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/teams-response.d.ts +7 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/teams.d.ts +5 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/users-obp-response.d.ts +45 -0
- package/dist/packages/tareas/src/infraestructure/interfaces/users.d.ts +5 -0
- package/dist/packages/tareas/src/infraestructure/mappers/all-users-obp.d.ts +5 -0
- package/dist/packages/tareas/src/infraestructure/mappers/campaign-tasks.d.ts +5 -0
- package/dist/packages/tareas/src/infraestructure/mappers/kanban-tasks.d.ts +5 -0
- package/dist/packages/tareas/src/infraestructure/mappers/salesmans-obp.d.ts +5 -0
- package/dist/packages/tareas/src/infraestructure/mappers/teams.d.ts +5 -0
- package/dist/packages/tareas/src/pages/index.d.ts +1 -0
- package/dist/{src → packages/tareas/src}/utils/formats.d.ts +1 -1
- package/dist/tareas.cjs +2 -3
- package/dist/tareas.css +1 -0
- package/dist/tareas.es.js +782 -677
- package/package.json +9 -8
- package/dist/src/stories/AppTasks.stories.d.ts +0 -6
- /package/dist/{src → packages/tareas/src}/components/atoms/Avatar.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/atoms/Comment.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/atoms/InputSearch.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/atoms/PauseTaskButton.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/atoms/SkeletonCard.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/atoms/SkeletonList.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/atoms/TabButton.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/atoms/index.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/index.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-campania/DoneBoard.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-campania/KanbanCampania.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-campania/ToDoBoard.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-campania/WorkingBoard.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-campania/filters.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-campania/index.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-general/DoneBoard.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-general/KanbanGeneral.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-general/ToDoBoard.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-general/WorkingBoard.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-general/filters.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/kanban-general/index.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/layout/FilterButton.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/layout/FilterContent.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/layout/IndexComponents.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/lista-campania/ActionsTaskList.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/lista-campania/ChildTask.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/lista-campania/Date.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/lista-campania/ListaCampania.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/lista-campania/MultiselectCheckbox.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/lista-campania/ParentTask.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/lista-campania/TaskName.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/molecules/AllComments.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/molecules/DependentTasks.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/molecules/Tabs.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/molecules/index.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/organisms/Checkbox.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/organisms/DetailsTask.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/organisms/TabDetailsTask.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/organisms/index.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/tasks/PriorityButton.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/templates/Layout.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/templates/TableList.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/components/templates/index.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/constants/colors.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/constants/gaps.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/constants/paddings.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/constants/shadows.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/context/MultiselectionTasksCampaing.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/context/filtersLayout.context.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/context/useApis.context.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/context/userLog.context.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/hooks/useCheckTask.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/hooks/useComerciales.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/hooks/useElementPosition.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/hooks/useFunctionsTasks.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/hooks/useNormalizedData.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/hooks/useTeams.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/pages/App.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/pages/NoAccessToken.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/pages/NoUser.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/types/index.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/types/interfaces.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/types/layout.types.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/utils/filters.functions.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/utils/functionsStorybook.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/utils/inputs.functions.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/utils/tanstack.functions.d.ts +0 -0
- /package/dist/{src → packages/tareas/src}/utils/utils.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './src/index'
|
|
1
|
+
export * from './packages/tareas/src/index'
|
|
2
2
|
export {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IUsers } from '
|
|
2
|
-
declare const ButtonAssignUsers: ({ users, onClick, responsible }: {
|
|
1
|
+
import { IUsers } from '../../infraestructure/interfaces/users';
|
|
2
|
+
declare const ButtonAssignUsers: ({ users, onClick, responsible, }: {
|
|
3
3
|
users: IUsers[] | [];
|
|
4
4
|
onClick: (option: any) => void;
|
|
5
5
|
responsible: number | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TasksKanbanGeneral } from '
|
|
1
|
+
import { TasksKanbanGeneral } from '../../infraestructure/interfaces/tasks-kanban-general';
|
|
2
2
|
declare const Task: ({ id, task, endDate, users, willBePaused, nameProject, idProject, comments, priority, responsible, nameRequiredTask, statusRequiredTask, status, }: TasksKanbanGeneral) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Task;
|
|
@@ -7,6 +7,8 @@ interface IValuesContext {
|
|
|
7
7
|
selectedTasks: number[];
|
|
8
8
|
selectTask: (id: number) => void;
|
|
9
9
|
projectID: number;
|
|
10
|
+
openTasks: number[];
|
|
11
|
+
openTask: (id: number) => void;
|
|
10
12
|
}
|
|
11
13
|
export declare const InfoCampaniaProvider: ({ children, project }: IInfoCampaniaContext) => import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
export declare const useInfoCampania: () => IValuesContext;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
export interface IFilters {
|
|
3
|
+
owner: IOwner;
|
|
4
|
+
taskName?: string;
|
|
5
|
+
difficulty?: TDifficulty;
|
|
6
|
+
priority?: TPriority;
|
|
7
|
+
dependency?: IDependency;
|
|
8
|
+
status?: TStatus;
|
|
9
|
+
project?: IProject;
|
|
10
|
+
salesman?: ISalesman;
|
|
11
|
+
pagination?: IPagination;
|
|
12
|
+
}
|
|
13
|
+
interface IOwner {
|
|
14
|
+
user: number;
|
|
15
|
+
config?: TConfigs;
|
|
16
|
+
}
|
|
17
|
+
interface IProject {
|
|
18
|
+
id?: number;
|
|
19
|
+
name?: string;
|
|
20
|
+
}
|
|
21
|
+
interface ISalesman {
|
|
22
|
+
id?: number;
|
|
23
|
+
name?: string;
|
|
24
|
+
}
|
|
25
|
+
interface IPagination {
|
|
26
|
+
page?: number;
|
|
27
|
+
pageSize?: number;
|
|
28
|
+
withCount?: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface IGetTasksResponse {
|
|
31
|
+
filters: IFilters;
|
|
32
|
+
page?: number;
|
|
33
|
+
limit?: number;
|
|
34
|
+
tasks_api: AxiosInstance;
|
|
35
|
+
project: number;
|
|
36
|
+
}
|
|
37
|
+
type TConfigs = 'yo_y_mis_equipos' | 'mis_equipos' | 'yo';
|
|
38
|
+
type TDifficulty = 'Muy facil' | 'Facil' | 'Media' | 'Dificil' | 'Muy dificil';
|
|
39
|
+
type TPriority = 'Sin prioridad' | 'Prioridad Baja' | 'Prioridad Media' | 'Prioridad Alta';
|
|
40
|
+
type IDependency = 'con' | 'sin';
|
|
41
|
+
type TStatus = 'por_hacer' | 'trabajando' | 'completadas';
|
|
42
|
+
export declare const getTasksProject: ({ filters, tasks_api, project }: IGetTasksResponse) => Promise<any>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
export interface IFilters {
|
|
3
|
+
owner: IOwner;
|
|
4
|
+
taskName?: string;
|
|
5
|
+
difficulty?: TDifficulty;
|
|
6
|
+
priority?: TPriority;
|
|
7
|
+
dependency?: IDependency;
|
|
8
|
+
status?: TStatus;
|
|
9
|
+
project?: IProject;
|
|
10
|
+
salesman?: ISalesman;
|
|
11
|
+
pagination?: IPagination;
|
|
12
|
+
}
|
|
13
|
+
interface IOwner {
|
|
14
|
+
user: number;
|
|
15
|
+
config?: TConfigs;
|
|
16
|
+
}
|
|
17
|
+
interface IProject {
|
|
18
|
+
id?: number;
|
|
19
|
+
name?: string;
|
|
20
|
+
}
|
|
21
|
+
interface ISalesman {
|
|
22
|
+
id?: number;
|
|
23
|
+
name?: string;
|
|
24
|
+
}
|
|
25
|
+
interface IPagination {
|
|
26
|
+
page?: number;
|
|
27
|
+
pageSize?: number;
|
|
28
|
+
withCount?: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface IGetTasksResponse {
|
|
31
|
+
filters: IFilters;
|
|
32
|
+
page?: number;
|
|
33
|
+
limit?: number;
|
|
34
|
+
tasks_api: AxiosInstance;
|
|
35
|
+
}
|
|
36
|
+
type TConfigs = 'yo_y_mis_equipos' | 'mis_equipos' | 'yo';
|
|
37
|
+
type TDifficulty = 'Muy facil' | 'Facil' | 'Media' | 'Dificil' | 'Muy dificil';
|
|
38
|
+
type TPriority = 'Sin prioridad' | 'Prioridad Baja' | 'Prioridad Media' | 'Prioridad Alta';
|
|
39
|
+
type IDependency = 'con' | 'sin';
|
|
40
|
+
type TStatus = 'por_hacer' | 'trabajando' | 'completadas';
|
|
41
|
+
export declare const getTasksResponse: ({ filters, tasks_api }: IGetTasksResponse) => Promise<any>;
|
|
42
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const useAllUsers: () => {
|
|
2
|
-
users: import('@tanstack/react-query').UseQueryResult<import('
|
|
2
|
+
users: import('@tanstack/react-query').UseQueryResult<import('../infraestructure/interfaces/users').IUsers[], Error>;
|
|
3
3
|
};
|
|
4
4
|
export default useAllUsers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useDoneTasks: () => {
|
|
2
|
-
doneTasks: import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/
|
|
2
|
+
doneTasks: import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/query-core').InfiniteData<any, unknown>, Error>;
|
|
3
3
|
total: number;
|
|
4
4
|
};
|
|
5
5
|
export default useDoneTasks;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useToDoTasks: () => {
|
|
2
|
-
toDoTasks: import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/
|
|
2
|
+
toDoTasks: import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/query-core').InfiniteData<any, unknown>, Error>;
|
|
3
3
|
total: number;
|
|
4
4
|
};
|
|
5
5
|
export default useToDoTasks;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useWorkingTasks: () => {
|
|
2
|
-
workingTasks: import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/
|
|
2
|
+
workingTasks: import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/query-core').InfiniteData<any, unknown>, Error>;
|
|
3
3
|
total: number;
|
|
4
4
|
};
|
|
5
5
|
export default useWorkingTasks;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface SalesmansOBPResponse {
|
|
2
|
+
id: number;
|
|
3
|
+
nombre: string;
|
|
4
|
+
username: string;
|
|
5
|
+
email: string;
|
|
6
|
+
blocked: boolean;
|
|
7
|
+
siglas: string;
|
|
8
|
+
role: Role;
|
|
9
|
+
imagen: Imagen;
|
|
10
|
+
}
|
|
11
|
+
export interface Imagen {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
formats: Formats;
|
|
15
|
+
}
|
|
16
|
+
export interface Formats {
|
|
17
|
+
large: Large;
|
|
18
|
+
small: Large;
|
|
19
|
+
medium: Large;
|
|
20
|
+
thumbnail: Large;
|
|
21
|
+
}
|
|
22
|
+
export interface Large {
|
|
23
|
+
ext: Text;
|
|
24
|
+
url: string;
|
|
25
|
+
hash: string;
|
|
26
|
+
mime: TMime;
|
|
27
|
+
name: string;
|
|
28
|
+
path: string;
|
|
29
|
+
size: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
}
|
|
33
|
+
export type Text = ".jpg" | ".png";
|
|
34
|
+
export type TMime = "image/jpeg" | "image/png";
|
|
35
|
+
export interface Role {
|
|
36
|
+
id: number;
|
|
37
|
+
name: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export interface ITasksCampaignResponse {
|
|
2
|
+
id: number;
|
|
3
|
+
texto_corto: string;
|
|
4
|
+
orden: number;
|
|
5
|
+
prioridad: number | null;
|
|
6
|
+
estatus: number;
|
|
7
|
+
nivel_dificultad: number;
|
|
8
|
+
cancelada: boolean;
|
|
9
|
+
aprobada: boolean;
|
|
10
|
+
es_pausable: boolean;
|
|
11
|
+
tipo_tarea: number;
|
|
12
|
+
idmedio: null;
|
|
13
|
+
idruta: null;
|
|
14
|
+
idindoor: null;
|
|
15
|
+
idvalla: null;
|
|
16
|
+
finicio: Date;
|
|
17
|
+
ffin: Date;
|
|
18
|
+
fterminada: null;
|
|
19
|
+
fterminada_sup: null;
|
|
20
|
+
repeticiones: null;
|
|
21
|
+
repeticiones_realizadas: null;
|
|
22
|
+
proyecto: Proyecto;
|
|
23
|
+
responsable: Responsable | null;
|
|
24
|
+
equipo: Equipo | null;
|
|
25
|
+
tarea_padre: IDTRequerida | null;
|
|
26
|
+
tareas: IDTRequerida[];
|
|
27
|
+
supervisor: null;
|
|
28
|
+
id_t_requerida: IDTRequerida | null;
|
|
29
|
+
ids_t_dependientes: IDTRequerida[];
|
|
30
|
+
created_by: null;
|
|
31
|
+
updated_by: null;
|
|
32
|
+
comentarios: Comentario[];
|
|
33
|
+
tarea_principal: boolean;
|
|
34
|
+
nombre_medio: string;
|
|
35
|
+
}
|
|
36
|
+
export interface Comentario {
|
|
37
|
+
id: number;
|
|
38
|
+
comentario: string;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
}
|
|
41
|
+
export interface Equipo {
|
|
42
|
+
id: number;
|
|
43
|
+
nombre: string;
|
|
44
|
+
miembros: Miembro[];
|
|
45
|
+
}
|
|
46
|
+
export interface Miembro {
|
|
47
|
+
id: number;
|
|
48
|
+
idUser: Responsable;
|
|
49
|
+
userOBP: UserOBP;
|
|
50
|
+
}
|
|
51
|
+
export interface Responsable {
|
|
52
|
+
id: number;
|
|
53
|
+
nombre: string;
|
|
54
|
+
email: string;
|
|
55
|
+
userOBP?: UserOBP;
|
|
56
|
+
}
|
|
57
|
+
export interface UserOBP {
|
|
58
|
+
id: number;
|
|
59
|
+
nombre: string;
|
|
60
|
+
username: string;
|
|
61
|
+
email: string;
|
|
62
|
+
blocked: boolean;
|
|
63
|
+
siglas: string;
|
|
64
|
+
role: Role;
|
|
65
|
+
imagen: Imagen | null;
|
|
66
|
+
}
|
|
67
|
+
export interface Imagen {
|
|
68
|
+
id: number;
|
|
69
|
+
name: string;
|
|
70
|
+
formats: Formats;
|
|
71
|
+
}
|
|
72
|
+
export interface Formats {
|
|
73
|
+
large?: Large;
|
|
74
|
+
small: Large;
|
|
75
|
+
medium?: Large;
|
|
76
|
+
thumbnail: Large;
|
|
77
|
+
}
|
|
78
|
+
export interface Large {
|
|
79
|
+
ext: string;
|
|
80
|
+
url: string;
|
|
81
|
+
hash: string;
|
|
82
|
+
mime: string;
|
|
83
|
+
name: string;
|
|
84
|
+
path: null;
|
|
85
|
+
size: number;
|
|
86
|
+
width: number;
|
|
87
|
+
height: number;
|
|
88
|
+
}
|
|
89
|
+
export interface Role {
|
|
90
|
+
id: number;
|
|
91
|
+
name: string;
|
|
92
|
+
}
|
|
93
|
+
export interface IDTRequerida {
|
|
94
|
+
id: number;
|
|
95
|
+
texto_corto: string;
|
|
96
|
+
estatus: number;
|
|
97
|
+
}
|
|
98
|
+
export interface Proyecto {
|
|
99
|
+
id: number;
|
|
100
|
+
nombre: string;
|
|
101
|
+
campania: number;
|
|
102
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IUsers } from './users';
|
|
2
|
+
export interface ITasksCampaign {
|
|
3
|
+
isPrincipalTask: boolean;
|
|
4
|
+
projectName: string;
|
|
5
|
+
id: number;
|
|
6
|
+
task: string;
|
|
7
|
+
status: number;
|
|
8
|
+
difficulty: number;
|
|
9
|
+
priority: number;
|
|
10
|
+
endDate: Date;
|
|
11
|
+
startDate: Date;
|
|
12
|
+
users?: IUsers[];
|
|
13
|
+
repeatsToDo?: number | null;
|
|
14
|
+
repeats?: number | null;
|
|
15
|
+
comments?: number | null;
|
|
16
|
+
willBePaused: boolean;
|
|
17
|
+
statusRequiredTask?: number | null;
|
|
18
|
+
nameRequiredTask?: string | null;
|
|
19
|
+
tasks?: IChildTask[] | null;
|
|
20
|
+
mediumName: string | null;
|
|
21
|
+
responsible: number | null;
|
|
22
|
+
orden: number;
|
|
23
|
+
}
|
|
24
|
+
export interface IChildTask {
|
|
25
|
+
id: number;
|
|
26
|
+
name: string;
|
|
27
|
+
status: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IUsers } from './users';
|
|
2
|
+
export interface TasksKanbanGeneral {
|
|
3
|
+
id: number;
|
|
4
|
+
task: string;
|
|
5
|
+
status: number;
|
|
6
|
+
priority: number;
|
|
7
|
+
difficulty: number;
|
|
8
|
+
endDate: Date;
|
|
9
|
+
users: IUsers[];
|
|
10
|
+
statusRequiredTask: number | null;
|
|
11
|
+
nameRequiredTask: string | null;
|
|
12
|
+
willBePaused: boolean;
|
|
13
|
+
nameProject: string | null;
|
|
14
|
+
idProject: number | null;
|
|
15
|
+
comments: number;
|
|
16
|
+
responsible: number | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export interface ITasksResponse {
|
|
2
|
+
id: number;
|
|
3
|
+
texto_corto: string;
|
|
4
|
+
orden: number;
|
|
5
|
+
prioridad: null;
|
|
6
|
+
estatus: number;
|
|
7
|
+
nivel_dificultad: number;
|
|
8
|
+
cancelada: boolean;
|
|
9
|
+
aprobada: boolean;
|
|
10
|
+
es_pausable: boolean;
|
|
11
|
+
idmedio: number | null;
|
|
12
|
+
idruta: number | null;
|
|
13
|
+
idindoor: number | null;
|
|
14
|
+
idvalla: null;
|
|
15
|
+
finicio: Date;
|
|
16
|
+
ffin: Date;
|
|
17
|
+
fterminada: null;
|
|
18
|
+
fterminada_sup: null;
|
|
19
|
+
repeticiones: number | null;
|
|
20
|
+
repeticiones_realizadas: null;
|
|
21
|
+
proyecto: Proyecto;
|
|
22
|
+
responsable: Responsable | null;
|
|
23
|
+
equipo: Equipo | null;
|
|
24
|
+
supervisor: null;
|
|
25
|
+
id_t_requerida: IDTRequerida | null;
|
|
26
|
+
ids_t_dependientes: IDTRequerida[];
|
|
27
|
+
created_by: null;
|
|
28
|
+
updated_by: Responsable | null;
|
|
29
|
+
}
|
|
30
|
+
export interface Equipo {
|
|
31
|
+
id: number;
|
|
32
|
+
nombre: string;
|
|
33
|
+
miembros: Miembro[];
|
|
34
|
+
}
|
|
35
|
+
export interface Miembro {
|
|
36
|
+
idUser: User;
|
|
37
|
+
userOBP: UserOBP;
|
|
38
|
+
}
|
|
39
|
+
interface User {
|
|
40
|
+
id: number;
|
|
41
|
+
nombre: string;
|
|
42
|
+
email: string;
|
|
43
|
+
}
|
|
44
|
+
interface UserOBP {
|
|
45
|
+
id: number;
|
|
46
|
+
blocked: boolean;
|
|
47
|
+
imagen: Imagen;
|
|
48
|
+
nombre: string;
|
|
49
|
+
email: string;
|
|
50
|
+
role: Role;
|
|
51
|
+
siglas: string;
|
|
52
|
+
username: string;
|
|
53
|
+
}
|
|
54
|
+
interface Role {
|
|
55
|
+
id: number;
|
|
56
|
+
name: string;
|
|
57
|
+
}
|
|
58
|
+
interface Imagen {
|
|
59
|
+
id: number;
|
|
60
|
+
name: string;
|
|
61
|
+
formats: Formats;
|
|
62
|
+
}
|
|
63
|
+
interface Formats {
|
|
64
|
+
large: Format;
|
|
65
|
+
medium: Format;
|
|
66
|
+
small: Format;
|
|
67
|
+
thumbnail: Format;
|
|
68
|
+
}
|
|
69
|
+
interface Format {
|
|
70
|
+
ext: string;
|
|
71
|
+
url: string;
|
|
72
|
+
hash: string;
|
|
73
|
+
mime: string;
|
|
74
|
+
name: string;
|
|
75
|
+
path: null;
|
|
76
|
+
size: number;
|
|
77
|
+
width: number;
|
|
78
|
+
height: number;
|
|
79
|
+
}
|
|
80
|
+
export interface IDTRequerida {
|
|
81
|
+
id: number;
|
|
82
|
+
texto_corto: string;
|
|
83
|
+
estatus: number;
|
|
84
|
+
}
|
|
85
|
+
export interface Proyecto {
|
|
86
|
+
id: number;
|
|
87
|
+
nombre: string;
|
|
88
|
+
campania: number;
|
|
89
|
+
}
|
|
90
|
+
export interface Responsable {
|
|
91
|
+
id: number;
|
|
92
|
+
username: string;
|
|
93
|
+
blocked: boolean;
|
|
94
|
+
email: string;
|
|
95
|
+
provider: string;
|
|
96
|
+
password: string;
|
|
97
|
+
resetPasswordToken: null;
|
|
98
|
+
confirmationToken: null;
|
|
99
|
+
confirmed: boolean | null;
|
|
100
|
+
createdAt: Date;
|
|
101
|
+
updatedAt: Date;
|
|
102
|
+
nombre: string;
|
|
103
|
+
userOBP: UserOBP;
|
|
104
|
+
}
|
|
105
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface IAllUsersOBPResponse {
|
|
2
|
+
id: number;
|
|
3
|
+
nombre: string;
|
|
4
|
+
username: string;
|
|
5
|
+
email: string;
|
|
6
|
+
blocked: boolean;
|
|
7
|
+
siglas: null | string;
|
|
8
|
+
role: Role;
|
|
9
|
+
imagen: Imagen | null;
|
|
10
|
+
}
|
|
11
|
+
export interface Imagen {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
formats: Formats;
|
|
15
|
+
}
|
|
16
|
+
export interface Formats {
|
|
17
|
+
large?: Large;
|
|
18
|
+
small: Large;
|
|
19
|
+
medium?: Large;
|
|
20
|
+
thumbnail: Large;
|
|
21
|
+
}
|
|
22
|
+
export interface Large {
|
|
23
|
+
ext: EXT;
|
|
24
|
+
url: string;
|
|
25
|
+
hash: string;
|
|
26
|
+
mime: MIME;
|
|
27
|
+
name: string;
|
|
28
|
+
path: null;
|
|
29
|
+
size: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
}
|
|
33
|
+
export declare enum EXT {
|
|
34
|
+
JPEG = ".jpeg",
|
|
35
|
+
Jpg = ".jpg",
|
|
36
|
+
PNG = ".png"
|
|
37
|
+
}
|
|
38
|
+
export declare enum MIME {
|
|
39
|
+
ImageJPEG = "image/jpeg",
|
|
40
|
+
ImagePNG = "image/png"
|
|
41
|
+
}
|
|
42
|
+
export interface Role {
|
|
43
|
+
id: number;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AppTasks } from './App';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUsers } from '
|
|
1
|
+
import { IUsers } from '../infraestructure/interfaces/users';
|
|
2
2
|
export declare const getMonthName: (month: number) => string;
|
|
3
3
|
export declare const formatDate: (date: Date) => string;
|
|
4
4
|
export declare const AddOBPUrl: (user: IUsers) => {
|