shared-ritm 1.1.63 → 1.1.65
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/shared-ritm.es.js +80855 -61512
- package/dist/shared-ritm.umd.js +167 -157
- package/dist/types/api/services/TasksService.d.ts +2 -1
- package/dist/types/api/types/Api_Repairs.d.ts +18 -0
- package/package.json +1 -1
- package/src/api/services/TasksService.ts +6 -2
- package/src/api/types/Api_Repairs.ts +19 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ApiService, { ResponseApi } from '@/api/settings/ApiService';
|
|
2
2
|
import { 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
|
-
import { Api_Equipment_Full_Dto, Api_Task_Video_Source } from '@/api/types/Api_Repairs';
|
|
3
|
+
import { Api_Equipment_Full_Dto, Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '@/api/types/Api_Repairs';
|
|
4
4
|
declare class TasksService extends ApiService {
|
|
5
5
|
fetchTaskById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
|
|
6
6
|
fetchTasksList(params: any): Promise<ResponseApi<Api_Tasks_Dto[]>>;
|
|
@@ -19,6 +19,7 @@ declare class TasksService extends ApiService {
|
|
|
19
19
|
fetchTaskUsagePersonal(params: any): Promise<ResponseApi<unknown[]>>;
|
|
20
20
|
fetchEquipment(params: any): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
|
|
21
21
|
fetchTaskVideoSources(params: any): Promise<ResponseApi<Api_Task_Video_Source[]>>;
|
|
22
|
+
fetchTaskVideoSourcesStream(params: any): Promise<ResponseApi<Api_Task_Video_Source_Stream[]>>;
|
|
22
23
|
createWorkZone(params: any): Promise<unknown>;
|
|
23
24
|
createTask(payload: any): Promise<ResponseApi<any>>;
|
|
24
25
|
editTask(payload: any): Promise<ResponseApi<any>>;
|
|
@@ -41,6 +41,24 @@ export type Api_Task_Video_Source = {
|
|
|
41
41
|
title: string;
|
|
42
42
|
}>;
|
|
43
43
|
};
|
|
44
|
+
export type Api_Task_Video_Source_Stream = {
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
url: string;
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
fps: string;
|
|
51
|
+
login: string;
|
|
52
|
+
password: string;
|
|
53
|
+
comment: unknown;
|
|
54
|
+
work_zones: unknown[];
|
|
55
|
+
video_source: unknown[];
|
|
56
|
+
related_video_sources: unknown[];
|
|
57
|
+
interactive_zones: unknown;
|
|
58
|
+
domed: boolean;
|
|
59
|
+
snapshot_path: string;
|
|
60
|
+
shapes: unknown[];
|
|
61
|
+
};
|
|
44
62
|
export type Api_Create_Repair_With_Equipments = {
|
|
45
63
|
name: string;
|
|
46
64
|
display_name: string;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
Api_Tasks_Dto,
|
|
7
7
|
Api_Tasks_Task_Dto,
|
|
8
8
|
} from '@/api/types/Api_Tasks'
|
|
9
|
-
import { Api_Equipment_Full_Dto, Api_Task_Video_Source } from '@/api/types/Api_Repairs'
|
|
9
|
+
import { Api_Equipment_Full_Dto, Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '@/api/types/Api_Repairs'
|
|
10
10
|
|
|
11
11
|
class TasksService extends ApiService {
|
|
12
12
|
public async fetchTaskById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>> {
|
|
@@ -61,8 +61,12 @@ class TasksService extends ApiService {
|
|
|
61
61
|
return this.get('work_zone/get_list_video_source', { params })
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
public fetchTaskVideoSourcesStream(params: any): Promise<ResponseApi<Api_Task_Video_Source_Stream[]>> {
|
|
65
|
+
return this.get('horizon/video-source', { params })
|
|
66
|
+
}
|
|
67
|
+
|
|
64
68
|
public createWorkZone(params: any): Promise<unknown> {
|
|
65
|
-
return this.
|
|
69
|
+
return this.post('admin/work-zones', { params })
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
public async createTask(payload: any): Promise<ResponseApi<any>> {
|
|
@@ -43,6 +43,25 @@ export type Api_Task_Video_Source = {
|
|
|
43
43
|
}>
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export type Api_Task_Video_Source_Stream = {
|
|
47
|
+
id: string
|
|
48
|
+
name: string
|
|
49
|
+
url: string
|
|
50
|
+
width: number
|
|
51
|
+
height: number
|
|
52
|
+
fps: string
|
|
53
|
+
login: string
|
|
54
|
+
password: string
|
|
55
|
+
comment: unknown
|
|
56
|
+
work_zones: unknown[]
|
|
57
|
+
video_source: unknown[]
|
|
58
|
+
related_video_sources: unknown[]
|
|
59
|
+
interactive_zones: unknown
|
|
60
|
+
domed: boolean
|
|
61
|
+
snapshot_path: string
|
|
62
|
+
shapes: unknown[]
|
|
63
|
+
}
|
|
64
|
+
|
|
46
65
|
export type Api_Create_Repair_With_Equipments = {
|
|
47
66
|
name: string
|
|
48
67
|
display_name: string
|