shared-ritm 1.1.64 → 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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.1.64",
3
+ "version": "1.1.65",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -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,6 +61,10 @@ 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
69
  return this.post('admin/work-zones', { params })
66
70
  }
@@ -1,74 +1,93 @@
1
- export type Api_Team = {
2
- id: string
3
- display_name: string
4
- }
5
-
6
- export type Api_Equipment_Short_Dto = {
7
- id: string
8
- name: string
9
- }
10
-
11
- export type Api_Repairs = {
12
- id: string
13
- name: string
14
- }
15
-
16
- export type Api_Projects = {
17
- id: string
18
- name: string
19
- }
20
-
21
- export type OptionFilters = {
22
- teams?: Api_Team[]
23
- equipments?: Api_Equipment_Short_Dto[]
24
- }
25
-
26
- export type Api_Equipment_Full_Dto = {
27
- id: string
28
- model: null | string
29
- name: string
30
- registration_number: string
31
- repair_frequency: number
32
- repair_range: number
33
- }
34
-
35
- export type Api_Task_Video_Source = {
36
- id: string
37
- name: string
38
- work_zones_by_tasks: Array<{
39
- coordinates: { x0: number; x1: number; y0: number; y1: number }
40
- id: string
41
- tasks: unknown[]
42
- title: string
43
- }>
44
- }
45
-
46
- export type Api_Create_Repair_With_Equipments = {
47
- name: string
48
- display_name: string
49
- description: string
50
- equipment_id: string
51
- power_output_MWh?: number
52
- cost_per_MWh?: number
53
- category?: string
54
- }
55
-
56
- export type Api_Update_Repair = {
57
- name?: string
58
- display_name?: string
59
- description: string
60
- power_output_MWh?: number
61
- cost_per_MWh?: number
62
- category?: string
63
- }
64
-
65
- export type Api_Repair_Dto = {
66
- id: string
67
- name: string
68
- display_name: string
69
- description: string
70
- start_date: string
71
- end_date: string
72
- projects: Api_Projects[]
73
- equipments: Api_Equipment_Full_Dto[]
74
- }
1
+ export type Api_Team = {
2
+ id: string
3
+ display_name: string
4
+ }
5
+
6
+ export type Api_Equipment_Short_Dto = {
7
+ id: string
8
+ name: string
9
+ }
10
+
11
+ export type Api_Repairs = {
12
+ id: string
13
+ name: string
14
+ }
15
+
16
+ export type Api_Projects = {
17
+ id: string
18
+ name: string
19
+ }
20
+
21
+ export type OptionFilters = {
22
+ teams?: Api_Team[]
23
+ equipments?: Api_Equipment_Short_Dto[]
24
+ }
25
+
26
+ export type Api_Equipment_Full_Dto = {
27
+ id: string
28
+ model: null | string
29
+ name: string
30
+ registration_number: string
31
+ repair_frequency: number
32
+ repair_range: number
33
+ }
34
+
35
+ export type Api_Task_Video_Source = {
36
+ id: string
37
+ name: string
38
+ work_zones_by_tasks: Array<{
39
+ coordinates: { x0: number; x1: number; y0: number; y1: number }
40
+ id: string
41
+ tasks: unknown[]
42
+ title: string
43
+ }>
44
+ }
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
+
65
+ export type Api_Create_Repair_With_Equipments = {
66
+ name: string
67
+ display_name: string
68
+ description: string
69
+ equipment_id: string
70
+ power_output_MWh?: number
71
+ cost_per_MWh?: number
72
+ category?: string
73
+ }
74
+
75
+ export type Api_Update_Repair = {
76
+ name?: string
77
+ display_name?: string
78
+ description: string
79
+ power_output_MWh?: number
80
+ cost_per_MWh?: number
81
+ category?: string
82
+ }
83
+
84
+ export type Api_Repair_Dto = {
85
+ id: string
86
+ name: string
87
+ display_name: string
88
+ description: string
89
+ start_date: string
90
+ end_date: string
91
+ projects: Api_Projects[]
92
+ equipments: Api_Equipment_Full_Dto[]
93
+ }