shared-ritm 1.0.7 → 1.0.8

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.
@@ -0,0 +1,24 @@
1
+ import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ export declare enum ApiServiceType {
3
+ SERVICE_AUTH = "SERVICE_AUTH"
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
+ export default class ApiService {
14
+ private axiosInstance;
15
+ constructor();
16
+ private getToken;
17
+ private removeToken;
18
+ private logout;
19
+ private handleError;
20
+ protected get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
21
+ protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any>>;
22
+ protected post<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
23
+ protected put<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
24
+ }
@@ -0,0 +1,7 @@
1
+ import ApiService from '@/Api/ApiService';
2
+ declare class GanttService extends ApiService {
3
+ fetchCriticalPathTasks(params: string): Promise<any>;
4
+ fetchGanttList(params: string): Promise<any>;
5
+ }
6
+ export default function useGanttService(): GanttService;
7
+ export {};
@@ -0,0 +1,21 @@
1
+ import ApiService, { ResponseApi } from '@/Api/ApiService';
2
+ declare class MetricsService extends ApiService {
3
+ fetchPieProjects(queryString: string): Promise<ResponseApi<any>>;
4
+ fetchPieTasks(queryString: string): Promise<ResponseApi<any>>;
5
+ fetchPiePersonnel(queryString: string): Promise<ResponseApi<any>>;
6
+ fetchPiePersonnelInfo(params: string): Promise<any>;
7
+ fetchPieWorkZone(queryString: string): Promise<ResponseApi<any>>;
8
+ fetchPieCriticalPath(queryString: string): Promise<any[]>;
9
+ fetchPieCriticalPathInfo(params: string): Promise<any>;
10
+ fetchPieTmc(queryString: string): Promise<ResponseApi<any>>;
11
+ fetchPieTmcInfo(params: string): Promise<any>;
12
+ fetchPieUntimelyClosedTask(queryString: string): Promise<any[]>;
13
+ fetchPieUntimelyClosedTaskInfo(params: string): Promise<any>;
14
+ fetchPieAdditionalTasks(queryString: string): Promise<any[]>;
15
+ fetchPieAdditionalTasksInfo(params: string): Promise<any>;
16
+ fetchPersonnel(queryString: string): Promise<any[]>;
17
+ fetchPieExpired(queryString: string): Promise<any[]>;
18
+ fetchPieExpiredInfo(params: string): Promise<any>;
19
+ }
20
+ export default function useMetricsService(): MetricsService;
21
+ export {};
@@ -0,0 +1,7 @@
1
+ import ApiService, { ResponseApi } from '@/Api/ApiService';
2
+ import { Api_Tasks_Task_Dto } from '@/Api/types/Api_Tasks';
3
+ declare class ProjectsService extends ApiService {
4
+ fetchProjectById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
5
+ }
6
+ export default function useProjectsService(): ProjectsService;
7
+ export {};
@@ -0,0 +1,15 @@
1
+ import ApiService, { ResponseApi } from '@/Api/ApiService';
2
+ import { Api_Create_Repair_With_Equipments, Api_Equipment_Full_Dto, Api_Repair_Dto, Api_Update_Repair, OptionFilters } from '@/Api/types/Api_Repairs';
3
+ declare class RepairsService extends ApiService {
4
+ fetchFilters(fullParams: string): Promise<OptionFilters>;
5
+ fetchRepairs(isQuery: boolean, queries?: string, hasTeams?: boolean | string, teamsFilter?: string): Promise<ResponseApi<Api_Repair_Dto[]>>;
6
+ fetchEquipment(): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
7
+ createRepair(payload: Api_Create_Repair_With_Equipments): Promise<any>;
8
+ startRepair(id: string): Promise<void>;
9
+ finishRepair(id: string): Promise<void>;
10
+ finishPreparationProject(id: string): Promise<void>;
11
+ updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
12
+ deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any>>;
13
+ }
14
+ export default function useRepairsService(): RepairsService;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ import ApiService, { ResponseApi } from '@/Api/ApiService';
2
+ import { Api_Tasks_Task_Dto } from '@/Api/types/Api_Tasks';
3
+ declare class TasksService extends ApiService {
4
+ fetchTaskById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
5
+ }
6
+ export default function useTasksService(): TasksService;
7
+ export {};
File without changes
@@ -0,0 +1,49 @@
1
+ export type Api_Team = {
2
+ id: string;
3
+ display_name: string;
4
+ };
5
+ export type Api_Equipment_Short_Dto = {
6
+ id: string;
7
+ name: string;
8
+ };
9
+ export type Api_Repairs = {
10
+ id: string;
11
+ name: string;
12
+ };
13
+ export type Api_Projects = {
14
+ id: string;
15
+ name: string;
16
+ };
17
+ export type OptionFilters = {
18
+ teams?: Api_Team[];
19
+ equipments?: Api_Equipment_Short_Dto[];
20
+ };
21
+ export type Api_Equipment_Full_Dto = {
22
+ id: string;
23
+ model: null | string;
24
+ name: string;
25
+ registration_number: string;
26
+ repair_frequency: number;
27
+ repair_range: number;
28
+ };
29
+ export type Api_Create_Repair_With_Equipments = {
30
+ name: string;
31
+ display_name: string;
32
+ description: string;
33
+ equipment_id: string;
34
+ };
35
+ export type Api_Update_Repair = {
36
+ name?: string;
37
+ display_name?: string;
38
+ description: string;
39
+ };
40
+ export type Api_Repair_Dto = {
41
+ id: string;
42
+ name: string;
43
+ display_name: string;
44
+ description: string;
45
+ start_date: string;
46
+ end_date: string;
47
+ projects: Api_Projects[];
48
+ equipments: Api_Equipment_Full_Dto[];
49
+ };
@@ -0,0 +1,93 @@
1
+ export type Api_Tasks_Responsible_Dto = {
2
+ id: string;
3
+ first_name: string;
4
+ last_name: string;
5
+ patronymic: string;
6
+ full_name: string;
7
+ };
8
+ export type Api_Tasks_Assigned_Dto = {
9
+ id: string;
10
+ first_name: string;
11
+ last_name: string;
12
+ patronymic: null | string;
13
+ full_name: string;
14
+ };
15
+ export type Api_Tasks_Status_Dto = {
16
+ id: string;
17
+ name: string;
18
+ title: string;
19
+ };
20
+ export type Api_Tasks_Project_Dto = {
21
+ id: string;
22
+ name: string;
23
+ teams: string[];
24
+ };
25
+ export type Api_Tasks_Position_Dto = {
26
+ id: string;
27
+ name: string;
28
+ display_name: string;
29
+ };
30
+ export type Api_Tasks_Position_Assigned_Dto = {
31
+ id: number;
32
+ user: {
33
+ id: string;
34
+ full_name: string;
35
+ };
36
+ position: Api_Tasks_Position_Dto;
37
+ };
38
+ export type Api_Tasks_Teams_Dto = {
39
+ id: string;
40
+ name: string;
41
+ display_name: string;
42
+ };
43
+ export type Api_Tasks_Equipment_Dto = {
44
+ id: string;
45
+ name: string;
46
+ model: string;
47
+ registration_number: string;
48
+ created_at: string;
49
+ updated_at: string;
50
+ repair_frequency: number;
51
+ repair_range: number;
52
+ };
53
+ export type Api_Tasks_Task_Dto = {
54
+ id: string;
55
+ name: string;
56
+ type: string;
57
+ project_id: string;
58
+ description: string;
59
+ subtask_counter: number;
60
+ subtasks: Api_Tasks_Task_Dto[];
61
+ state_id: null | string;
62
+ start_date: string;
63
+ end_date: string;
64
+ deadline: string;
65
+ plan_date: string;
66
+ time_to_complete: null | string | number;
67
+ time_to_complete_sec: number;
68
+ priority: number;
69
+ work_zone_id: null | string;
70
+ location_id: null | string;
71
+ target: any;
72
+ status: Api_Tasks_Status_Dto;
73
+ project: Api_Tasks_Project_Dto;
74
+ position: Api_Tasks_Position_Dto[];
75
+ assigned: Api_Tasks_Assigned_Dto[];
76
+ instruments: any[];
77
+ warehouse: any[];
78
+ responsible: Api_Tasks_Responsible_Dto[];
79
+ position_assigned: Api_Tasks_Position_Assigned_Dto[];
80
+ comments: any[];
81
+ files: any[];
82
+ teams: Api_Tasks_Teams_Dto[];
83
+ work_zone: string;
84
+ planned_start: null | string;
85
+ planned_end: null | string;
86
+ fact_start_date: string;
87
+ fact_end_date: null | string;
88
+ work_sec: number;
89
+ pause_sec: number;
90
+ repair_object: null | string;
91
+ isPause: boolean;
92
+ equipment: Api_Tasks_Equipment_Dto[];
93
+ };
@@ -0,0 +1,2 @@
1
+ import AppButton from './common/app-button/AppButton.vue';
2
+ export { AppButton };
@@ -0,0 +1,3 @@
1
+ import '@quasar/extras/material-icons/material-icons.css';
2
+ import 'quasar/src/css/index.sass';
3
+ import '@/shared/styles/general.css';
@@ -0,0 +1,14 @@
1
+ import { Quasar, Notify, Loading, Dialog } from 'quasar';
2
+ import 'quasar/src/css/index.sass';
3
+ import '@quasar/extras/roboto-font/roboto-font.css';
4
+ import '@quasar/extras/material-icons/material-icons.css';
5
+ import '@quasar/extras/material-icons-outlined/material-icons-outlined.css';
6
+ import '@quasar/extras/mdi-v7/mdi-v7.css';
7
+ declare const quasarUserOptions: {
8
+ plugins: {
9
+ Notify: Notify;
10
+ Loading: Loading;
11
+ Dialog: Dialog;
12
+ };
13
+ };
14
+ export { Quasar, quasarUserOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "scripts": {
21
21
  "dev": "vite",
22
- "build": "vite build",
22
+ "build": "vite build && tsc --emitDeclarationOnly",
23
23
  "typecheck": "vue-tsc --noEmit",
24
24
  "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix"
25
25
  },
@@ -45,7 +45,8 @@
45
45
  "prettier": "^2.8.4",
46
46
  "sass": "^1.80.4",
47
47
  "sass-embedded": "^1.80.4",
48
- "typescript": "^5.6.2",
48
+ "tsc-alias": "^1.8.10",
49
+ "typescript": "^5.6.3",
49
50
  "vite": "^5.4.9",
50
51
  "vue-tsc": "^2.1.6"
51
52
  }