shared-ritm 1.1.67 → 1.1.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.
@@ -20,7 +20,7 @@ declare class TasksService extends ApiService {
20
20
  fetchEquipment(params: any): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
21
21
  fetchTaskVideoSources(params: any): Promise<ResponseApi<Api_Task_Video_Source[]>>;
22
22
  fetchTaskVideoSourcesStream(params: any): Promise<ResponseApi<Api_Task_Video_Source_Stream[]>>;
23
- createWorkZone(params: any): Promise<unknown>;
23
+ createWorkZone(payload: any): Promise<unknown>;
24
24
  createTask(payload: any): Promise<ResponseApi<any>>;
25
25
  editTask(payload: any): Promise<ResponseApi<any>>;
26
26
  mergeTask(payload: {
@@ -26,22 +26,26 @@ export type Api_Project_Status = {
26
26
  name: string;
27
27
  title: string;
28
28
  description: string;
29
- created_at: string;
30
- updated_at: string;
31
- deleted_at: string;
29
+ created_at: string | null;
30
+ updated_at: string | null;
31
+ deleted_at: string | null;
32
32
  };
33
33
  export type Api_Project_Dto = {
34
34
  id: string;
35
35
  name: string;
36
36
  description: null;
37
37
  image: null;
38
- start_date: string;
39
- end_date: string;
38
+ plan_date: string | null;
39
+ deadline: string | null;
40
+ fact_start_date: string | null;
41
+ fact_end_date: string | null;
42
+ planned_start: string | null;
43
+ planned_end: string | null;
44
+ deleted_at: string | null;
45
+ total_tasks: number;
40
46
  is_archive: boolean;
41
47
  teams: Api_Project_Team[];
48
+ status: Api_Project_Status;
42
49
  category: Api_Project_Category;
43
- deleted_at: null;
44
50
  repair: Api_Project_Repair | null;
45
- total_tasks: number;
46
- status: Api_Project_Status;
47
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.1.67",
3
+ "version": "1.1.69",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -65,8 +65,8 @@ class TasksService extends ApiService {
65
65
  return this.get('horizon/video-source', { params })
66
66
  }
67
67
 
68
- public createWorkZone(params: any): Promise<unknown> {
69
- return this.post('admin/work-zones', { params })
68
+ public createWorkZone(payload: any): Promise<unknown> {
69
+ return this.post('admin/work-zones', payload)
70
70
  }
71
71
 
72
72
  public async createTask(payload: any): Promise<ResponseApi<any>> {
@@ -1,51 +1,55 @@
1
- export type Api_Project_Repair = {
2
- id: string
3
- name: string
4
- start_date: null | string
5
- end_date: null | string
6
- }
7
-
8
- export type Api_Project_Team = {
9
- id: string
10
- name: string
11
- display_name: string
12
- description: string
13
- created_at: string
14
- updated_at: string
15
- pivot: {
16
- project_id: string
17
- team_id: string
18
- }
19
- }
20
-
21
- export type Api_Project_Category = {
22
- code: number
23
- display_name: string
24
- name: string
25
- }
26
-
27
- export type Api_Project_Status = {
28
- id: string
29
- name: string
30
- title: string
31
- description: string
32
- created_at: string
33
- updated_at: string
34
- deleted_at: string
35
- }
36
-
37
- export type Api_Project_Dto = {
38
- id: string
39
- name: string
40
- description: null
41
- image: null
42
- start_date: string
43
- end_date: string
44
- is_archive: boolean
45
- teams: Api_Project_Team[]
46
- category: Api_Project_Category
47
- deleted_at: null
48
- repair: Api_Project_Repair | null
49
- total_tasks: number
50
- status: Api_Project_Status
51
- }
1
+ export type Api_Project_Repair = {
2
+ id: string
3
+ name: string
4
+ start_date: null | string
5
+ end_date: null | string
6
+ }
7
+
8
+ export type Api_Project_Team = {
9
+ id: string
10
+ name: string
11
+ display_name: string
12
+ description: string
13
+ created_at: string
14
+ updated_at: string
15
+ pivot: {
16
+ project_id: string
17
+ team_id: string
18
+ }
19
+ }
20
+
21
+ export type Api_Project_Category = {
22
+ code: number
23
+ display_name: string
24
+ name: string
25
+ }
26
+
27
+ export type Api_Project_Status = {
28
+ id: string
29
+ name: string
30
+ title: string
31
+ description: string
32
+ created_at: string | null
33
+ updated_at: string | null
34
+ deleted_at: string | null
35
+ }
36
+
37
+ export type Api_Project_Dto = {
38
+ id: string
39
+ name: string
40
+ description: null
41
+ image: null
42
+ plan_date: string | null
43
+ deadline: string | null
44
+ fact_start_date: string | null
45
+ fact_end_date: string | null
46
+ planned_start: string | null
47
+ planned_end: string | null
48
+ deleted_at: string | null
49
+ total_tasks: number
50
+ is_archive: boolean
51
+ teams: Api_Project_Team[]
52
+ status: Api_Project_Status
53
+ category: Api_Project_Category
54
+ repair: Api_Project_Repair | null
55
+ }