@imj_media/tareas 0.1.7 → 0.1.9
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 +2 -0
- package/dist/packages/tareas/src/components/atoms/Avatar.d.ts +3 -0
- package/dist/packages/tareas/src/components/atoms/Comment.d.ts +2 -0
- package/dist/packages/tareas/src/components/atoms/InputSearch.d.ts +5 -0
- package/dist/packages/tareas/src/components/atoms/PauseTaskButton.d.ts +4 -0
- package/dist/packages/tareas/src/components/atoms/SkeletonCard.d.ts +2 -0
- package/dist/packages/tareas/src/components/atoms/SkeletonList.d.ts +2 -0
- package/dist/packages/tareas/src/components/atoms/TabButton.d.ts +8 -0
- package/dist/packages/tareas/src/components/atoms/TooltipUser.d.ts +8 -0
- package/dist/packages/tareas/src/components/atoms/index.d.ts +2 -0
- package/dist/packages/tareas/src/components/index.d.ts +4 -0
- package/dist/packages/tareas/src/components/kanban-campania/DoneBoard.d.ts +2 -0
- package/dist/packages/tareas/src/components/kanban-campania/KanbanCampania.d.ts +2 -0
- package/dist/packages/tareas/src/components/kanban-campania/ToDoBoard.d.ts +2 -0
- package/dist/packages/tareas/src/components/kanban-campania/WorkingBoard.d.ts +2 -0
- package/dist/packages/tareas/src/components/kanban-campania/filters.d.ts +17 -0
- package/dist/packages/tareas/src/components/kanban-campania/index.d.ts +3 -0
- package/dist/packages/tareas/src/components/kanban-general/DoneBoard.d.ts +2 -0
- package/dist/packages/tareas/src/components/kanban-general/KanbanGeneral.d.ts +2 -0
- package/dist/packages/tareas/src/components/kanban-general/ToDoBoard.d.ts +2 -0
- package/dist/packages/tareas/src/components/kanban-general/WorkingBoard.d.ts +2 -0
- package/dist/packages/tareas/src/components/kanban-general/filters.d.ts +17 -0
- package/dist/packages/tareas/src/components/kanban-general/index.d.ts +3 -0
- package/dist/packages/tareas/src/components/layout/FilterButton.d.ts +5 -0
- package/dist/packages/tareas/src/components/layout/FilterContent.d.ts +2 -0
- package/dist/packages/tareas/src/components/layout/IndexComponents.d.ts +3 -0
- package/dist/packages/tareas/src/components/lista-campania/ActionsTaskList.d.ts +5 -0
- package/dist/packages/tareas/src/components/lista-campania/ChildTask.d.ts +5 -0
- package/dist/packages/tareas/src/components/lista-campania/Date.d.ts +6 -0
- package/dist/packages/tareas/src/components/lista-campania/ListaCampania.d.ts +2 -0
- package/dist/packages/tareas/src/components/lista-campania/MultiselectCheckbox.d.ts +5 -0
- package/dist/packages/tareas/src/components/lista-campania/ParentTask.d.ts +4 -0
- package/dist/packages/tareas/src/components/lista-campania/TaskName.d.ts +4 -0
- package/dist/packages/tareas/src/components/molecules/AllComments.d.ts +2 -0
- package/dist/packages/tareas/src/components/molecules/ButtonAssignUsers.d.ts +7 -0
- package/dist/packages/tareas/src/components/molecules/DependentTasks.d.ts +1 -0
- package/dist/packages/tareas/src/components/molecules/Tabs.d.ts +8 -0
- package/dist/packages/tareas/src/components/molecules/index.d.ts +1 -0
- package/dist/packages/tareas/src/components/organisms/Board.d.ts +11 -0
- package/dist/packages/tareas/src/components/organisms/Checkbox.d.ts +8 -0
- package/dist/packages/tareas/src/components/organisms/DetailsTask.d.ts +2 -0
- package/dist/packages/tareas/src/components/organisms/TabDetailsTask.d.ts +2 -0
- package/dist/packages/tareas/src/components/organisms/Task.d.ts +3 -0
- package/dist/packages/tareas/src/components/organisms/index.d.ts +2 -0
- package/dist/packages/tareas/src/components/tasks/PriorityButton.d.ts +6 -0
- package/dist/packages/tareas/src/components/templates/Layout.d.ts +5 -0
- package/dist/packages/tareas/src/components/templates/TableList.d.ts +2 -0
- package/dist/packages/tareas/src/components/templates/index.d.ts +2 -0
- package/dist/packages/tareas/src/constants/colors.d.ts +62 -0
- package/dist/packages/tareas/src/constants/gaps.d.ts +8 -0
- package/dist/packages/tareas/src/constants/paddings.d.ts +8 -0
- package/dist/packages/tareas/src/constants/shadows.d.ts +5 -0
- package/dist/packages/tareas/src/context/MultiselectionTasksCampaing.d.ts +11 -0
- package/dist/packages/tareas/src/context/filtersLayout.context.d.ts +46 -0
- package/dist/packages/tareas/src/context/kanbanCampania.context.d.ts +15 -0
- package/dist/packages/tareas/src/context/useApis.context.d.ts +16 -0
- package/dist/packages/tareas/src/context/userLog.context.d.ts +17 -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/packages/tareas/src/hooks/useAllUsers.d.ts +4 -0
- package/dist/packages/tareas/src/hooks/useCheckTask.d.ts +7 -0
- package/dist/packages/tareas/src/hooks/useComerciales.d.ts +9 -0
- package/dist/packages/tareas/src/hooks/useDoneTasks.d.ts +5 -0
- package/dist/packages/tareas/src/hooks/useElementPosition.d.ts +10 -0
- package/dist/packages/tareas/src/hooks/useFunctionsTasks.d.ts +12 -0
- package/dist/packages/tareas/src/hooks/useNormalizedData.d.ts +1 -0
- package/dist/packages/tareas/src/hooks/useTeams.d.ts +4 -0
- package/dist/packages/tareas/src/hooks/useToDoTasks.d.ts +5 -0
- package/dist/packages/tareas/src/hooks/useWorkingTasks.d.ts +5 -0
- package/dist/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/App.d.ts +11 -0
- package/dist/packages/tareas/src/pages/NoAccessToken.d.ts +2 -0
- package/dist/packages/tareas/src/pages/NoUser.d.ts +2 -0
- package/dist/packages/tareas/src/pages/index.d.ts +1 -0
- package/dist/packages/tareas/src/types/index.d.ts +88 -0
- package/dist/packages/tareas/src/types/interfaces.d.ts +41 -0
- package/dist/packages/tareas/src/types/layout.types.d.ts +17 -0
- package/dist/packages/tareas/src/utils/filters.functions.d.ts +2 -0
- package/dist/packages/tareas/src/utils/formats.d.ts +8 -0
- package/dist/packages/tareas/src/utils/functionsStorybook.d.ts +0 -0
- package/dist/packages/tareas/src/utils/inputs.functions.d.ts +4 -0
- package/dist/packages/tareas/src/utils/tanstack.functions.d.ts +8 -0
- package/dist/packages/tareas/src/utils/utils.d.ts +2 -0
- package/dist/tareas.cjs +2 -386
- package/dist/tareas.css +5 -0
- package/dist/tareas.es.js +1894 -53185
- package/package.json +10 -8
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ITabButtonProps {
|
|
2
|
+
label: string;
|
|
3
|
+
active: boolean;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const TabButton: ({ label, active, onClick, disabled }: ITabButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TabButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IUsers } from '../../infraestructure/interfaces/users';
|
|
2
|
+
interface TooltipUserProps {
|
|
3
|
+
trigger: React.ReactNode;
|
|
4
|
+
user: Partial<IUsers>;
|
|
5
|
+
showUser?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const TooltipUser: ({ trigger, user, showUser }: TooltipUserProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TooltipUser;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const filtersToShow: ({
|
|
2
|
+
label: string;
|
|
3
|
+
type: string;
|
|
4
|
+
id: string;
|
|
5
|
+
options: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
} | {
|
|
10
|
+
label: string;
|
|
11
|
+
type: string;
|
|
12
|
+
id: string;
|
|
13
|
+
options: {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
})[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const filtersToShow: ({
|
|
2
|
+
label: string;
|
|
3
|
+
type: string;
|
|
4
|
+
id: string;
|
|
5
|
+
options: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
} | {
|
|
10
|
+
label: string;
|
|
11
|
+
type: string;
|
|
12
|
+
id: string;
|
|
13
|
+
options: {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
})[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IUsers } from '../../infraestructure/interfaces/users';
|
|
2
|
+
declare const ButtonAssignUsers: ({ users, onClick, responsible, }: {
|
|
3
|
+
users: IUsers[] | [];
|
|
4
|
+
onClick: (option: any) => void;
|
|
5
|
+
responsible: number | null;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ButtonAssignUsers;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DependentTasks({ data }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TTab } from '../../types/layout.types';
|
|
2
|
+
interface ITabsProps {
|
|
3
|
+
tabs: TTab[];
|
|
4
|
+
renderItem: (index: TTab) => void;
|
|
5
|
+
initialTab?: TTab;
|
|
6
|
+
}
|
|
7
|
+
declare const Tabs: ({ tabs, renderItem, initialTab }: ITabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Tabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ButtonAssignUsers } from './ButtonAssignUsers';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TasksKanbanGeneral } from '../../infraestructure/interfaces/tasks-kanban-general';
|
|
2
|
+
interface IBoard {
|
|
3
|
+
title: string;
|
|
4
|
+
tasks: TasksKanbanGeneral[];
|
|
5
|
+
loadNextPage?: () => void;
|
|
6
|
+
isFetching?: boolean;
|
|
7
|
+
isLoadingData?: boolean;
|
|
8
|
+
total?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const Board: ({ title, tasks, loadNextPage, isFetching, total }: IBoard) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Board;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ICheckboxProps {
|
|
2
|
+
id: number;
|
|
3
|
+
nameRequiredTask: string;
|
|
4
|
+
statusRequiredTask: number;
|
|
5
|
+
status: number;
|
|
6
|
+
}
|
|
7
|
+
declare const Checkbox: ({ id, nameRequiredTask, statusRequiredTask, status }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Checkbox;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TasksKanbanGeneral } from '../../infraestructure/interfaces/tasks-kanban-general';
|
|
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
|
+
export default Task;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const COLORS: {
|
|
2
|
+
bg: {
|
|
3
|
+
DEFAULT: string;
|
|
4
|
+
content: string;
|
|
5
|
+
card: string;
|
|
6
|
+
};
|
|
7
|
+
texts: {
|
|
8
|
+
DEFAULT: string;
|
|
9
|
+
enfasis: string;
|
|
10
|
+
subtext: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
};
|
|
13
|
+
primary: {
|
|
14
|
+
light: string;
|
|
15
|
+
medium: string;
|
|
16
|
+
dark: string;
|
|
17
|
+
regular: string;
|
|
18
|
+
pastel: string;
|
|
19
|
+
};
|
|
20
|
+
success: {
|
|
21
|
+
light: string;
|
|
22
|
+
medium: string;
|
|
23
|
+
dark: string;
|
|
24
|
+
regular: string;
|
|
25
|
+
pastel: string;
|
|
26
|
+
};
|
|
27
|
+
danger: {
|
|
28
|
+
light: string;
|
|
29
|
+
medium: string;
|
|
30
|
+
dark: string;
|
|
31
|
+
regular: string;
|
|
32
|
+
pastel: string;
|
|
33
|
+
};
|
|
34
|
+
warning: {
|
|
35
|
+
light: string;
|
|
36
|
+
medium: string;
|
|
37
|
+
dark: string;
|
|
38
|
+
regular: string;
|
|
39
|
+
pastel: string;
|
|
40
|
+
};
|
|
41
|
+
alert: {
|
|
42
|
+
light: string;
|
|
43
|
+
medium: string;
|
|
44
|
+
dark: string;
|
|
45
|
+
regular: string;
|
|
46
|
+
pastel: string;
|
|
47
|
+
};
|
|
48
|
+
info: {
|
|
49
|
+
light: string;
|
|
50
|
+
medium: string;
|
|
51
|
+
dark: string;
|
|
52
|
+
regular: string;
|
|
53
|
+
pastel: string;
|
|
54
|
+
};
|
|
55
|
+
link: {
|
|
56
|
+
light: string;
|
|
57
|
+
medium: string;
|
|
58
|
+
dark: string;
|
|
59
|
+
regular: string;
|
|
60
|
+
pastel: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface IMultiselectCampaignTask {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
project: number;
|
|
4
|
+
}
|
|
5
|
+
interface IValuesContext {
|
|
6
|
+
selectedTasks: number[];
|
|
7
|
+
selectTask: (id: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const MultiselectCampaignTaskProvider: ({ children }: IMultiselectCampaignTask) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const useMultiselectCampaignTask: () => IValuesContext;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IFieldFilter {
|
|
3
|
+
label: string;
|
|
4
|
+
type: TType;
|
|
5
|
+
id: string;
|
|
6
|
+
options?: {
|
|
7
|
+
id: string | number;
|
|
8
|
+
name: string;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
interface IFiltersLayoutContext {
|
|
12
|
+
fields: IFieldFilter[];
|
|
13
|
+
filters: FiltersContext;
|
|
14
|
+
defineFields: (fields: IFieldFilter[]) => void;
|
|
15
|
+
updateFilters: ({ name, value }: {
|
|
16
|
+
name: string;
|
|
17
|
+
value: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
cleanFilters: () => void;
|
|
20
|
+
applyFilters: () => void;
|
|
21
|
+
initialFilters: TFilters;
|
|
22
|
+
}
|
|
23
|
+
interface FiltersContext {
|
|
24
|
+
justProjects: boolean;
|
|
25
|
+
owner: IOwner;
|
|
26
|
+
}
|
|
27
|
+
interface IOwner {
|
|
28
|
+
user: string;
|
|
29
|
+
config: string;
|
|
30
|
+
}
|
|
31
|
+
export interface TFilters {
|
|
32
|
+
label: string;
|
|
33
|
+
type: TType;
|
|
34
|
+
id: string;
|
|
35
|
+
options?: {
|
|
36
|
+
id: string | number;
|
|
37
|
+
name: string;
|
|
38
|
+
}[];
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}
|
|
41
|
+
type TType = React.HTMLInputTypeAttribute;
|
|
42
|
+
export declare const FiltersLayoutProvider: ({ children }: {
|
|
43
|
+
children: React.ReactNode;
|
|
44
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const useFiltersLayoutContext: () => IFiltersLayoutContext;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface IInfoCampaniaContext {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
project: number;
|
|
4
|
+
}
|
|
5
|
+
interface IValuesContext {
|
|
6
|
+
tasksProject: any;
|
|
7
|
+
selectedTasks: number[];
|
|
8
|
+
selectTask: (id: number) => void;
|
|
9
|
+
projectID: number;
|
|
10
|
+
openTasks: number[];
|
|
11
|
+
openTask: (id: number) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const InfoCampaniaProvider: ({ children, project }: IInfoCampaniaContext) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const useInfoCampania: () => IValuesContext;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
interface IUserLogContext {
|
|
3
|
+
user: User;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
interface User {
|
|
8
|
+
id: number;
|
|
9
|
+
accessToken: string;
|
|
10
|
+
}
|
|
11
|
+
interface IValuesContext {
|
|
12
|
+
tasks_api: AxiosInstance;
|
|
13
|
+
}
|
|
14
|
+
export declare const UseApisProvider: ({ children, user, url }: IUserLogContext) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const useApis: () => IValuesContext;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
interface IUserLogContext {
|
|
3
|
+
user: User;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
interface User {
|
|
8
|
+
id: number;
|
|
9
|
+
accessToken: string;
|
|
10
|
+
}
|
|
11
|
+
interface IValuesContext {
|
|
12
|
+
user: User;
|
|
13
|
+
tasks_api: AxiosInstance;
|
|
14
|
+
}
|
|
15
|
+
export declare const UserLogProvider: ({ children, user, url }: IUserLogContext) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const useUser: () => IValuesContext;
|
|
17
|
+
export {};
|
|
@@ -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 {};
|