shared-ritm 1.2.72 → 1.2.74

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.
@@ -28,6 +28,7 @@ declare class TasksService extends ApiService {
28
28
  mergeTask(payload: {
29
29
  name: string;
30
30
  tasks_id: string[];
31
+ defect?: string;
31
32
  }): Promise<ResponseApi<any>>;
32
33
  deleteTask(id: string): Promise<any>;
33
34
  changeStatus(payload: {
@@ -78,9 +78,9 @@ export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipm
78
78
  export type Api_Update_Repair = {
79
79
  name?: string;
80
80
  display_name?: string;
81
- description?: string;
82
- power_output_MWh?: number;
83
- cost_per_MWh?: number;
81
+ description?: string | null;
82
+ power_output_MWh?: number | null;
83
+ cost_per_MWh?: number | null;
84
84
  category?: number;
85
85
  user_id_list?: string[];
86
86
  team_id_list?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.72",
3
+ "version": "1.2.74",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -84,7 +84,7 @@ class TasksService extends ApiService {
84
84
  return await this.put(`tasks/${payload.taskId}`, payload.data)
85
85
  }
86
86
 
87
- public async mergeTask(payload: { name: string; tasks_id: string[] }): Promise<ResponseApi<any>> {
87
+ public async mergeTask(payload: { name: string; tasks_id: string[]; defect?: string }): Promise<ResponseApi<any>> {
88
88
  return await this.post(`tasks/merge`, payload)
89
89
  }
90
90
 
@@ -83,9 +83,9 @@ export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipm
83
83
  export type Api_Update_Repair = {
84
84
  name?: string
85
85
  display_name?: string
86
- description?: string
87
- power_output_MWh?: number
88
- cost_per_MWh?: number
86
+ description?: string | null
87
+ power_output_MWh?: number | null
88
+ cost_per_MWh?: number | null
89
89
  category?: number
90
90
  user_id_list?: string[]
91
91
  team_id_list?: string[]