shared-ritm 1.2.150 → 1.2.151

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 from '../settings/ApiService';
2
2
  import { ResponseApi } from '../types/Api_Service';
3
- import { Api_Task_Close_Reason, Api_Task_Instrument_Dto, Api_Task_Instrument_From_Warehouse, Api_Task_Module_Instrument_Condition, Api_Task_Dto, Api_Tasks_Task_Dto, Api_Task_ChangeStatusVerification_Dto, Api_QualityMetric_Request_Dto, Api_Tasks_Task_Edit_Request_Dto, Api_Tasks_ReplaceInstrument_Request_Dto, Api_Tasks_AllPersonalUser_Dto, Api_Tasks_InstrumentHistory_Item_Dto } from '../types/Api_Tasks';
3
+ import { Api_Task_Close_Reason, Api_Task_Instrument_Dto, Api_Task_Instrument_From_Warehouse, Api_Task_Module_Instrument_Condition, Api_Task_Dto, Api_Tasks_Task_Dto, Api_Task_ChangeStatusVerification_Dto, Api_QualityMetric_Request_Dto, Api_Tasks_Task_Edit_Request_Dto, Api_Tasks_ReplaceInstrument_Request_Dto, Api_Tasks_AllPersonalUser_Dto, Api_Tasks_InstrumentHistory_Item_Dto, Api_Task_Intersections_DTO } from '../types/Api_Tasks';
4
4
  import { Api_Equipment_Full_Dto, Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '../types/Api_Repairs';
5
5
  export type EquipmentData = {
6
6
  id: string;
@@ -14,7 +14,7 @@ declare class TasksService extends ApiService {
14
14
  fetchTaskById(id: string): Promise<Api_Tasks_Task_Dto>;
15
15
  fetchTasksList(params: any): Promise<ResponseApi<Api_Task_Dto[]>>;
16
16
  fetchSubtasksList(id: string): Promise<Api_Task_Dto[]>;
17
- fetchIntersectionsList(id: string): Promise<Api_Task_Dto[]>;
17
+ fetchIntersectionsList(id: string): Promise<Api_Task_Intersections_DTO[]>;
18
18
  fetchTaskBranch(id: string): Promise<ResponseApi<any>>;
19
19
  fetchInstrumentsList(params: any): Promise<ResponseApi<any[]>>;
20
20
  fetchInstrumentTypeListWithPreparedWarehouse(params: {
@@ -297,6 +297,16 @@ export type Api_VideoSource_DTO = {
297
297
  title: string;
298
298
  };
299
299
  };
300
+ export type Api_Task_Intersections_DTO = {
301
+ deadline: null | string;
302
+ fact_end_date: null | string;
303
+ fact_start_date: null | string;
304
+ id: string;
305
+ name: string;
306
+ plan_date: null | string;
307
+ planned_end: null | string;
308
+ planned_start: null | string;
309
+ };
300
310
  export type Api_Task_Dto = {
301
311
  id: string;
302
312
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.150",
3
+ "version": "1.2.151",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -13,6 +13,7 @@ import {
13
13
  Api_Tasks_ReplaceInstrument_Request_Dto,
14
14
  Api_Tasks_AllPersonalUser_Dto,
15
15
  Api_Tasks_InstrumentHistory_Item_Dto,
16
+ Api_Task_Intersections_DTO,
16
17
  } from '../types/Api_Tasks'
17
18
  import { Api_Equipment_Full_Dto, Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '../types/Api_Repairs'
18
19
 
@@ -38,8 +39,8 @@ class TasksService extends ApiService {
38
39
  return this.get<Api_Task_Dto[]>(`/task/${id}/subtasks/list`)
39
40
  }
40
41
 
41
- public fetchIntersectionsList(id: string): Promise<Api_Task_Dto[]> {
42
- return this.get<Api_Task_Dto[]>(`/tasks/${id}/intersections`)
42
+ public fetchIntersectionsList(id: string): Promise<Api_Task_Intersections_DTO[]> {
43
+ return this.get<Api_Task_Intersections_DTO[]>(`/tasks/${id}/intersections`)
43
44
  }
44
45
 
45
46
  public fetchTaskBranch(id: string): Promise<ResponseApi<any>> {
@@ -328,6 +328,17 @@ export type Api_VideoSource_DTO = {
328
328
  work_zone_by_task: { id: string; title: string }
329
329
  }
330
330
 
331
+ export type Api_Task_Intersections_DTO = {
332
+ deadline: null | string
333
+ fact_end_date: null | string
334
+ fact_start_date: null | string
335
+ id: string
336
+ name: string
337
+ plan_date: null | string
338
+ planned_end: null | string
339
+ planned_start: null | string
340
+ }
341
+
331
342
  export type Api_Task_Dto = {
332
343
  id: string
333
344
  name: string