@imj_media/tareas 1.5.35 → 1.5.36

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,5 +1,5 @@
1
1
  import { IUsers } from '../../infraestructure/interfaces/users';
2
- declare const ButtonAssignUsers: ({ users, onClick, responsible, role, status }: {
2
+ declare const ButtonAssignUsers: ({ users, onClick, responsible, role, status, }: {
3
3
  users: IUsers[] | [];
4
4
  onClick: (option: any, selected: string) => void;
5
5
  role: string;
@@ -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, statusRequiredTask, status, repeatsToDo, repeats, medioName, paused, idProject, atraso, categoria, }: TasksKanbanGeneral) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Task;
@@ -6,9 +6,12 @@ import { IUsersResponseOBP } from '../../infraestructure/interfaces/users-mt-res
6
6
  * @param tasks_api - AxiosInstance
7
7
  * @returns Promise<IUsers[]>
8
8
  */
9
- export declare const getAllUSersResponse: ({ tasks_api }: {
9
+ export declare const getAllUSersResponse: ({ tasks_api, }: {
10
10
  tasks_api: AxiosInstance;
11
11
  }) => Promise<IUsers[]>;
12
- export declare const getAllUserWithIndexResponse: ({ users }: {
12
+ export declare const getAllUSers: ({ tasks_api, }: {
13
+ tasks_api: AxiosInstance;
14
+ }) => Promise<IUsers[]>;
15
+ export declare const getAllUserWithIndexResponse: ({ users, }: {
13
16
  users: IUsersResponseOBP[];
14
17
  }) => Promise<IndexUsers>;
@@ -1,4 +1,7 @@
1
1
  declare const useAllUsers: () => {
2
2
  users: import('@tanstack/react-query').UseQueryResult<import('../infraestructure/interfaces/users').IUsers[], Error>;
3
3
  };
4
- export default useAllUsers;
4
+ declare const useGetAllUsers: () => {
5
+ users: import('@tanstack/react-query').UseQueryResult<import('../infraestructure/interfaces/users').IUsers[], Error>;
6
+ };
7
+ export { useAllUsers, useGetAllUsers };
@@ -7,7 +7,17 @@ export interface IAllUsersOBPResponse {
7
7
  siglas: null | string;
8
8
  role: Role;
9
9
  imagen: Imagen | null;
10
- tasksUser: TaskUser;
10
+ tasksUser?: TaskUser;
11
+ }
12
+ export interface IAllUsers {
13
+ id: number;
14
+ nombre: string;
15
+ username: string;
16
+ email: string;
17
+ blocked: boolean;
18
+ siglas: null | string;
19
+ role: Role;
20
+ imagen: Imagen | null;
11
21
  }
12
22
  export interface TaskUser {
13
23
  email: string;
@@ -1,7 +1,8 @@
1
1
  import { IUsersResponseOBP } from '../interfaces/users-mt-response';
2
2
  import { IUsers, IndexUsers } from '../interfaces/users';
3
- import { IAllUsersOBPResponse } from '../interfaces/users-obp-response';
3
+ import { IAllUsers, IAllUsersOBPResponse } from '../interfaces/users-obp-response';
4
4
  export declare class AllUsersOBPMapper {
5
5
  static toUsers(user: IAllUsersOBPResponse): IUsers;
6
+ static toUsersV2(user: IAllUsers): IUsers;
6
7
  static toUsersWithIndex(users: IUsersResponseOBP[]): IndexUsers;
7
8
  }
@@ -1,5 +1,5 @@
1
1
  import { ITemplateField } from '../infraestructure/interfaces/templates';
2
- import { DropdownOption } from 'ui-ds';
2
+ import { DropdownOption } from '@imj_media/ui';
3
3
  import { FieldValues, UseFormSetValue } from 'react-hook-form';
4
4
  /**
5
5
  * Hook personalizado para manejar el formulario de templates
@@ -21,7 +21,7 @@
21
21
  * @dependencies
22
22
  * - React: useCallback para optimización de rendimiento
23
23
  * - @xyflow/react: Gestión del canvas y nodos
24
- * - ui-ds: Sistema de notificaciones toast
24
+ * - @imj_media/ui: Sistema de notificaciones toast
25
25
  *
26
26
  * @stores
27
27
  * - useTemplateGridStore: Estado del clipboard y viewMode
@@ -1,4 +1,4 @@
1
- import { Filter } from 'ui-ds';
1
+ import { Filter } from '@imj_media/ui';
2
2
  export type TemplateFiltersConfig = {
3
3
  estatus: Filter;
4
4
  publication_date: Filter;
@@ -1,3 +1,3 @@
1
- import { Filter } from 'ui-ds';
1
+ import { Filter } from '@imj_media/ui';
2
2
  export declare const isDatePickerProps: (inputData: any) => inputData is Filter;
3
3
  export declare const isDropdownProps: (inputData: any) => inputData is Filter;