shared-ritm 1.2.68 → 1.2.69

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,6 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService';
1
+ import ApiService from '@/api/settings/ApiService';
2
2
  import { Api_ControlLogs_Dto, Api_ControlZones_Dto } from '@/api/types/Api_Controls';
3
+ import { ResponseApi } from '@/api/types/Api_Service';
3
4
  declare class ControlsService extends ApiService {
4
5
  fetchControlZones(params: Record<string, any>): Promise<ResponseApi<Api_ControlZones_Dto[]>>;
5
6
  fetchControlZone(id: string): Promise<ResponseApi<Api_ControlZones_Dto>>;
@@ -1,4 +1,5 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService';
1
+ import ApiService from '@/api/settings/ApiService';
2
+ import { ResponseApi } from '@/api/types/Api_Service';
2
3
  import { Api_Files_Responsible_Dto } from '@/api/types/Api_Files';
3
4
  declare class FileService extends ApiService {
4
5
  uploadFile(data: FormData): Promise<ResponseApi<Api_Files_Responsible_Dto>>;
@@ -1,4 +1,5 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService';
1
+ import ApiService from '@/api/settings/ApiService';
2
+ import { ResponseApi } from '@/api/types/Api_Service';
2
3
  declare class MetricsService extends ApiService {
3
4
  fetchPieProjects(queryString: string): Promise<ResponseApi<any>>;
4
5
  fetchPieTasks(queryString: string): Promise<ResponseApi<any>>;
@@ -1,6 +1,5 @@
1
1
  import * as faceapi from 'face-api.js';
2
- import ApiService from '@/api/settings/ApiService';
3
- declare class PhotoService extends ApiService {
2
+ declare class PhotoService {
4
3
  getVideoStreamConfig(width: number, height: number): {
5
4
  audio: boolean;
6
5
  video: {
@@ -1,4 +1,5 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService';
1
+ import ApiService from '@/api/settings/ApiService';
2
+ import { ResponseApi } from '@/api/types/Api_Service';
2
3
  import { Api_Project_Dto } from '@/api/types/Api_Projects';
3
4
  declare class ProjectsService extends ApiService {
4
5
  fetchProjectById(id: string): Promise<ResponseApi<Api_Project_Dto>>;
@@ -1,4 +1,5 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService';
1
+ import ApiService from '@/api/settings/ApiService';
2
+ import { ResponseApi } from '@/api/types/Api_Service';
2
3
  import { Api_Create_Repair_With_Equipments, Api_Equipment_Full_Dto, Api_Repair_Dto, Api_Update_Repair, OptionFilters } from '@/api/types/Api_Repairs';
3
4
  declare class RepairsService extends ApiService {
4
5
  fetchFilters(fullParams: string): Promise<OptionFilters>;
@@ -0,0 +1,8 @@
1
+ import ApiService from '@/api/settings/ApiService';
2
+ import { ResponseApi } from '@/api/types/Api_Service';
3
+ import { Api_Search_User } from '@/api/types/Api_Search';
4
+ declare class SearchService extends ApiService {
5
+ fetchSearchUsers(params: any): Promise<ResponseApi<Api_Search_User>>;
6
+ }
7
+ export default function useSearchService(): SearchService;
8
+ export {};
@@ -1,4 +1,5 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService';
1
+ import ApiService from '@/api/settings/ApiService';
2
+ import { ResponseApi } from '@/api/types/Api_Service';
2
3
  import { Api_Task_Close_Reason, Api_Task_Instrument_Dto, Api_Task_Instrument_From_Warehouse, Api_Task_Module_Instrument_Condition, Api_Tasks_Dto, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
3
4
  import { Api_Equipment_Full_Dto, Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '@/api/types/Api_Repairs';
4
5
  declare class TasksService extends ApiService {
@@ -2,14 +2,6 @@ import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
2
  export declare enum ApiServiceType {
3
3
  SERVICE_AUTH = "SERVICE_AUTH"
4
4
  }
5
- export type ResponseApi<T> = {
6
- count: number;
7
- current_page: number;
8
- data: T;
9
- per_page: number;
10
- total: number;
11
- total_pages: number;
12
- };
13
5
  export default class ApiService {
14
6
  private axiosInstance;
15
7
  constructor();
@@ -0,0 +1,43 @@
1
+ export type Api_Search_User_Passes = {
2
+ id: string;
3
+ type: string;
4
+ uuid: string;
5
+ };
6
+ export type Api_Search_User_Positions = {
7
+ id: string;
8
+ name: string;
9
+ display_name: string;
10
+ description: string;
11
+ };
12
+ export type Api_Search_User_Roles = {
13
+ id: string;
14
+ name: string;
15
+ display_name: string;
16
+ };
17
+ export type Api_Search_User_Teams = {
18
+ id: string;
19
+ name: string;
20
+ display_name: string;
21
+ roles: Api_Search_User_Roles[];
22
+ };
23
+ export type Api_Search_User_Photos = {
24
+ id: string;
25
+ name: string;
26
+ path: string;
27
+ type: string;
28
+ };
29
+ export type Api_Search_User = {
30
+ id: string;
31
+ full_name: string;
32
+ last_name: string;
33
+ first_name: string;
34
+ patronymic: string;
35
+ email: string;
36
+ phone: string;
37
+ divisions: string;
38
+ personnel_number: string;
39
+ passes: Api_Search_User_Passes[];
40
+ positions: Api_Search_User_Positions[];
41
+ teams: Api_Search_User_Teams[];
42
+ photos: Api_Search_User_Photos[];
43
+ };
@@ -0,0 +1,9 @@
1
+ export type ResponseApi<T> = {
2
+ count: number;
3
+ current_page: number;
4
+ data: T;
5
+ per_page: number;
6
+ total: number;
7
+ total_pages: number;
8
+ filter_value?: string;
9
+ };
@@ -21,6 +21,7 @@ import AppTableModal from '@/common/app-table/components/TableModal.vue';
21
21
  import AppTable from '@/common/app-table/AppTable.vue';
22
22
  import AppTableLayout from '@/common/app-table/AppTableLayout.vue';
23
23
  import AppModalSelect from '@/common/app-table/components/ModalSelect.vue';
24
+ import ApiService from '@/api/settings/ApiService';
24
25
  import useGanttService from '@/api/services/GanttService';
25
26
  import useMetricsService from '@/api/services/MetricsService';
26
27
  import useProjectsService from '@/api/services/ProjectsService';
@@ -32,10 +33,10 @@ import useVideoService from '@/api/services/VideoService';
32
33
  import useUserService from '@/api/services/UserService';
33
34
  import usePhotoService from '@/api/services/PhotoService';
34
35
  import useInstrumentsService from '@/api/services/InstrumentsService';
35
- import ApiService from '@/api/settings/ApiService';
36
36
  import useControlsService from '@/api/services/ControlsService';
37
+ import useSearchService from '@/api/services/SearchService';
37
38
  export { AppButton, AppCheckbox, AppDatePicker, AppInput, AppInputSearch, AppLayout, AppLayoutHeader, AppLayoutPage, AppLoader, AppSelect, AppSheet, AppSidebar, AppToggle, AppWrapper, AppConfirmDialog, AppDropdown, AppTablePagination, AppTableSearch, AppTableModal, AppTable, AppTableLayout, AppModalSelect, };
38
- export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, useControlsService, useVideoService, useUserService, usePhotoService, useInstrumentsService, };
39
+ export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, useControlsService, useVideoService, useUserService, usePhotoService, useInstrumentsService, useSearchService, };
39
40
  export { useBaseTable } from './common/app-table/controllers/useBaseTable';
40
41
  export { useTableModel } from './common/app-table/controllers/useTableModel';
41
42
  export { useColumnSelector } from './common/app-table/controllers/useColumnSelector';
@@ -43,9 +44,11 @@ export type { FilterOption, TableModel, TableColumn } from './common/app-table/c
43
44
  export type { NotificationType } from './utils/notification';
44
45
  export { notificationSettings } from './utils/notification';
45
46
  export * from './utils/helpers';
47
+ export * from './api/types/Api_Service';
46
48
  export * from './api/types/Api_Tasks';
47
49
  export * from './api/types/Api_Repairs';
48
50
  export * from './api/types/Api_Projects';
49
51
  export * from './api/types/Api_Controls';
50
52
  export * from './api/types/Api_Instruments';
53
+ export * from './api/types/Api_Search';
51
54
  export * from './api/types/Api_User';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.68",
3
+ "version": "1.2.69",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",