prioritize-client 1.3.0 → 1.4.0
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/apis/CompaniesApi.d.ts +1 -1
- package/dist/apis/CompaniesApi.js +1 -1
- package/dist/apis/DepartmentsApi.d.ts +21 -1
- package/dist/apis/DepartmentsApi.js +36 -1
- package/dist/apis/DocumentGroupsApi.d.ts +1 -1
- package/dist/apis/DocumentGroupsApi.js +1 -1
- package/dist/apis/DocumentsApi.d.ts +1 -1
- package/dist/apis/DocumentsApi.js +1 -1
- package/dist/apis/NFCApi.d.ts +1 -1
- package/dist/apis/NFCApi.js +1 -1
- package/dist/apis/ProcessDefinitionsApi.d.ts +1 -1
- package/dist/apis/ProcessDefinitionsApi.js +1 -1
- package/dist/apis/ProcessInstancesApi.d.ts +1 -1
- package/dist/apis/ProcessInstancesApi.js +1 -1
- package/dist/apis/ProjectGoalsApi.d.ts +1 -1
- package/dist/apis/ProjectGoalsApi.js +1 -1
- package/dist/apis/ProjectsApi.d.ts +1 -1
- package/dist/apis/ProjectsApi.js +1 -1
- package/dist/apis/ResourcesApi.d.ts +25 -1
- package/dist/apis/ResourcesApi.js +39 -1
- package/dist/apis/SkillsApi.d.ts +1 -1
- package/dist/apis/SkillsApi.js +1 -1
- package/dist/apis/TaskSchedulesApi.d.ts +1 -1
- package/dist/apis/TaskSchedulesApi.js +1 -1
- package/dist/apis/TasksApi.d.ts +108 -2
- package/dist/apis/TasksApi.js +173 -1
- package/dist/apis/TelemetryRulesApi.d.ts +1 -1
- package/dist/apis/TelemetryRulesApi.js +1 -1
- package/dist/apis/UsersApi.d.ts +1 -1
- package/dist/apis/UsersApi.js +1 -1
- package/dist/esm/apis/CompaniesApi.d.ts +1 -1
- package/dist/esm/apis/CompaniesApi.js +1 -1
- package/dist/esm/apis/DepartmentsApi.d.ts +21 -1
- package/dist/esm/apis/DepartmentsApi.js +36 -1
- package/dist/esm/apis/DocumentGroupsApi.d.ts +1 -1
- package/dist/esm/apis/DocumentGroupsApi.js +1 -1
- package/dist/esm/apis/DocumentsApi.d.ts +1 -1
- package/dist/esm/apis/DocumentsApi.js +1 -1
- package/dist/esm/apis/NFCApi.d.ts +1 -1
- package/dist/esm/apis/NFCApi.js +1 -1
- package/dist/esm/apis/ProcessDefinitionsApi.d.ts +1 -1
- package/dist/esm/apis/ProcessDefinitionsApi.js +1 -1
- package/dist/esm/apis/ProcessInstancesApi.d.ts +1 -1
- package/dist/esm/apis/ProcessInstancesApi.js +1 -1
- package/dist/esm/apis/ProjectGoalsApi.d.ts +1 -1
- package/dist/esm/apis/ProjectGoalsApi.js +1 -1
- package/dist/esm/apis/ProjectsApi.d.ts +1 -1
- package/dist/esm/apis/ProjectsApi.js +1 -1
- package/dist/esm/apis/ResourcesApi.d.ts +25 -1
- package/dist/esm/apis/ResourcesApi.js +39 -1
- package/dist/esm/apis/SkillsApi.d.ts +1 -1
- package/dist/esm/apis/SkillsApi.js +1 -1
- package/dist/esm/apis/TaskSchedulesApi.d.ts +1 -1
- package/dist/esm/apis/TaskSchedulesApi.js +1 -1
- package/dist/esm/apis/TasksApi.d.ts +108 -2
- package/dist/esm/apis/TasksApi.js +174 -2
- package/dist/esm/apis/TelemetryRulesApi.d.ts +1 -1
- package/dist/esm/apis/TelemetryRulesApi.js +1 -1
- package/dist/esm/apis/UsersApi.d.ts +1 -1
- package/dist/esm/apis/UsersApi.js +1 -1
- package/dist/esm/models/AddressDTO.d.ts +1 -1
- package/dist/esm/models/AddressDTO.js +1 -1
- package/dist/esm/models/AddressRequest.d.ts +1 -1
- package/dist/esm/models/AddressRequest.js +1 -1
- package/dist/esm/models/CancelProcessInstanceRequest.d.ts +1 -1
- package/dist/esm/models/CancelProcessInstanceRequest.js +1 -1
- package/dist/esm/models/CompanyDTO.d.ts +1 -1
- package/dist/esm/models/CompanyDTO.js +1 -1
- package/dist/esm/models/CompanyRequest.d.ts +1 -1
- package/dist/esm/models/CompanyRequest.js +1 -1
- package/dist/esm/models/Correction.d.ts +77 -0
- package/dist/esm/models/Correction.js +61 -0
- package/dist/esm/models/DepartmentDTO.d.ts +1 -1
- package/dist/esm/models/DepartmentDTO.js +1 -1
- package/dist/esm/models/DepartmentRequest.d.ts +1 -1
- package/dist/esm/models/DepartmentRequest.js +1 -1
- package/dist/esm/models/DocumentCheckInRequest.d.ts +1 -1
- package/dist/esm/models/DocumentCheckInRequest.js +1 -1
- package/dist/esm/models/DocumentGroupDTO.d.ts +1 -1
- package/dist/esm/models/DocumentGroupDTO.js +1 -1
- package/dist/esm/models/DocumentGroupRequest.d.ts +1 -1
- package/dist/esm/models/DocumentGroupRequest.js +1 -1
- package/dist/esm/models/DocumentHistoryDTO.d.ts +1 -1
- package/dist/esm/models/DocumentHistoryDTO.js +1 -1
- package/dist/esm/models/DocumentSummaryDTO.d.ts +1 -1
- package/dist/esm/models/DocumentSummaryDTO.js +1 -1
- package/dist/esm/models/GoalProgress.d.ts +1 -1
- package/dist/esm/models/GoalProgress.js +1 -1
- package/dist/esm/models/GoalRequest.d.ts +1 -1
- package/dist/esm/models/GoalRequest.js +1 -1
- package/dist/esm/models/GoalRequestPropertiesInner.d.ts +1 -1
- package/dist/esm/models/GoalRequestPropertiesInner.js +1 -1
- package/dist/esm/models/NfcUnitDTO.d.ts +1 -1
- package/dist/esm/models/NfcUnitDTO.js +1 -1
- package/dist/esm/models/NfcUnitRequest.d.ts +1 -1
- package/dist/esm/models/NfcUnitRequest.js +1 -1
- package/dist/esm/models/ProcessDefinitionDTO.d.ts +1 -1
- package/dist/esm/models/ProcessDefinitionDTO.js +1 -1
- package/dist/esm/models/ProcessInstanceDTO.d.ts +1 -1
- package/dist/esm/models/ProcessInstanceDTO.js +1 -1
- package/dist/esm/models/ProjectDTO.d.ts +1 -1
- package/dist/esm/models/ProjectDTO.js +1 -1
- package/dist/esm/models/ProjectGoalDTO.d.ts +1 -1
- package/dist/esm/models/ProjectGoalDTO.js +1 -1
- package/dist/esm/models/ProjectGoalProperty.d.ts +1 -1
- package/dist/esm/models/ProjectGoalProperty.js +1 -1
- package/dist/esm/models/ProjectGoalPropertyDocument.d.ts +1 -1
- package/dist/esm/models/ProjectGoalPropertyDocument.js +1 -1
- package/dist/esm/models/ProjectGoalPropertyNumeric.d.ts +1 -1
- package/dist/esm/models/ProjectGoalPropertyNumeric.js +1 -1
- package/dist/esm/models/ProjectProgress.d.ts +1 -1
- package/dist/esm/models/ProjectProgress.js +1 -1
- package/dist/esm/models/ProjectRequest.d.ts +1 -1
- package/dist/esm/models/ProjectRequest.js +1 -1
- package/dist/esm/models/ResourceCommandRequest.d.ts +1 -1
- package/dist/esm/models/ResourceCommandRequest.js +1 -1
- package/dist/esm/models/ResourceDTO.d.ts +28 -1
- package/dist/esm/models/ResourceDTO.js +15 -1
- package/dist/esm/models/ResourceGroupDTO.d.ts +1 -1
- package/dist/esm/models/ResourceGroupDTO.js +1 -1
- package/dist/esm/models/ResourceRequest.d.ts +28 -1
- package/dist/esm/models/ResourceRequest.js +15 -1
- package/dist/esm/models/ResourceReservationDTO.d.ts +1 -1
- package/dist/esm/models/ResourceReservationDTO.js +1 -1
- package/dist/esm/models/ResourceStatusDTO.d.ts +1 -1
- package/dist/esm/models/ResourceStatusDTO.js +1 -1
- package/dist/esm/models/ResourceValueDTO.d.ts +1 -1
- package/dist/esm/models/ResourceValueDTO.js +1 -1
- package/dist/esm/models/ResourceValueRequest.d.ts +1 -1
- package/dist/esm/models/ResourceValueRequest.js +1 -1
- package/dist/esm/models/ScanResult.d.ts +2 -2
- package/dist/esm/models/ScanResult.js +3 -3
- package/dist/esm/models/SkillCategoryDTO.d.ts +1 -1
- package/dist/esm/models/SkillCategoryDTO.js +1 -1
- package/dist/esm/models/SkillCategoryRequest.d.ts +1 -1
- package/dist/esm/models/SkillCategoryRequest.js +1 -1
- package/dist/esm/models/SkillRecordDTO.d.ts +1 -1
- package/dist/esm/models/SkillRecordDTO.js +1 -1
- package/dist/esm/models/SkillRecordRequest.d.ts +1 -1
- package/dist/esm/models/SkillRecordRequest.js +1 -1
- package/dist/esm/models/SkillRequest.d.ts +1 -1
- package/dist/esm/models/SkillRequest.js +1 -1
- package/dist/esm/models/SkillSummaryDTO.d.ts +1 -1
- package/dist/esm/models/SkillSummaryDTO.js +1 -1
- package/dist/esm/models/StartProcessInstanceRequest.d.ts +1 -1
- package/dist/esm/models/StartProcessInstanceRequest.js +1 -1
- package/dist/esm/models/StopAtRequest.d.ts +44 -0
- package/dist/esm/models/StopAtRequest.js +45 -0
- package/dist/esm/models/TaskDTO.d.ts +8 -2
- package/dist/esm/models/TaskDTO.js +5 -3
- package/dist/esm/models/TaskRequest.d.ts +1 -1
- package/dist/esm/models/TaskRequest.js +1 -1
- package/dist/esm/models/TaskScheduleDTO.d.ts +1 -1
- package/dist/esm/models/TaskScheduleDTO.js +1 -1
- package/dist/esm/models/TaskScheduleRequest.d.ts +1 -1
- package/dist/esm/models/TaskScheduleRequest.js +1 -1
- package/dist/esm/models/TaskStatusRequest.d.ts +1 -1
- package/dist/esm/models/TaskStatusRequest.js +1 -1
- package/dist/esm/models/TelemetryRuleDTO.d.ts +1 -1
- package/dist/esm/models/TelemetryRuleDTO.js +1 -1
- package/dist/esm/models/TelemetryRuleRequest.d.ts +1 -1
- package/dist/esm/models/TelemetryRuleRequest.js +1 -1
- package/dist/esm/models/TrackingSummary.d.ts +8 -2
- package/dist/esm/models/TrackingSummary.js +5 -3
- package/dist/esm/models/UserDTO.d.ts +2 -2
- package/dist/esm/models/UserDTO.js +4 -4
- package/dist/esm/models/UserRequest.d.ts +1 -1
- package/dist/esm/models/UserRequest.js +2 -2
- package/dist/esm/models/WorkSession.d.ts +26 -1
- package/dist/esm/models/WorkSession.js +10 -1
- package/dist/esm/models/WorkSessionRequest.d.ts +50 -0
- package/dist/esm/models/WorkSessionRequest.js +47 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AddressDTO.d.ts +1 -1
- package/dist/models/AddressDTO.js +1 -1
- package/dist/models/AddressRequest.d.ts +1 -1
- package/dist/models/AddressRequest.js +1 -1
- package/dist/models/CancelProcessInstanceRequest.d.ts +1 -1
- package/dist/models/CancelProcessInstanceRequest.js +1 -1
- package/dist/models/CompanyDTO.d.ts +1 -1
- package/dist/models/CompanyDTO.js +1 -1
- package/dist/models/CompanyRequest.d.ts +1 -1
- package/dist/models/CompanyRequest.js +1 -1
- package/dist/models/Correction.d.ts +77 -0
- package/dist/models/Correction.js +69 -0
- package/dist/models/DepartmentDTO.d.ts +1 -1
- package/dist/models/DepartmentDTO.js +1 -1
- package/dist/models/DepartmentRequest.d.ts +1 -1
- package/dist/models/DepartmentRequest.js +1 -1
- package/dist/models/DocumentCheckInRequest.d.ts +1 -1
- package/dist/models/DocumentCheckInRequest.js +1 -1
- package/dist/models/DocumentGroupDTO.d.ts +1 -1
- package/dist/models/DocumentGroupDTO.js +1 -1
- package/dist/models/DocumentGroupRequest.d.ts +1 -1
- package/dist/models/DocumentGroupRequest.js +1 -1
- package/dist/models/DocumentHistoryDTO.d.ts +1 -1
- package/dist/models/DocumentHistoryDTO.js +1 -1
- package/dist/models/DocumentSummaryDTO.d.ts +1 -1
- package/dist/models/DocumentSummaryDTO.js +1 -1
- package/dist/models/GoalProgress.d.ts +1 -1
- package/dist/models/GoalProgress.js +1 -1
- package/dist/models/GoalRequest.d.ts +1 -1
- package/dist/models/GoalRequest.js +1 -1
- package/dist/models/GoalRequestPropertiesInner.d.ts +1 -1
- package/dist/models/GoalRequestPropertiesInner.js +1 -1
- package/dist/models/NfcUnitDTO.d.ts +1 -1
- package/dist/models/NfcUnitDTO.js +1 -1
- package/dist/models/NfcUnitRequest.d.ts +1 -1
- package/dist/models/NfcUnitRequest.js +1 -1
- package/dist/models/ProcessDefinitionDTO.d.ts +1 -1
- package/dist/models/ProcessDefinitionDTO.js +1 -1
- package/dist/models/ProcessInstanceDTO.d.ts +1 -1
- package/dist/models/ProcessInstanceDTO.js +1 -1
- package/dist/models/ProjectDTO.d.ts +1 -1
- package/dist/models/ProjectDTO.js +1 -1
- package/dist/models/ProjectGoalDTO.d.ts +1 -1
- package/dist/models/ProjectGoalDTO.js +1 -1
- package/dist/models/ProjectGoalProperty.d.ts +1 -1
- package/dist/models/ProjectGoalProperty.js +1 -1
- package/dist/models/ProjectGoalPropertyDocument.d.ts +1 -1
- package/dist/models/ProjectGoalPropertyDocument.js +1 -1
- package/dist/models/ProjectGoalPropertyNumeric.d.ts +1 -1
- package/dist/models/ProjectGoalPropertyNumeric.js +1 -1
- package/dist/models/ProjectProgress.d.ts +1 -1
- package/dist/models/ProjectProgress.js +1 -1
- package/dist/models/ProjectRequest.d.ts +1 -1
- package/dist/models/ProjectRequest.js +1 -1
- package/dist/models/ResourceCommandRequest.d.ts +1 -1
- package/dist/models/ResourceCommandRequest.js +1 -1
- package/dist/models/ResourceDTO.d.ts +28 -1
- package/dist/models/ResourceDTO.js +16 -1
- package/dist/models/ResourceGroupDTO.d.ts +1 -1
- package/dist/models/ResourceGroupDTO.js +1 -1
- package/dist/models/ResourceRequest.d.ts +28 -1
- package/dist/models/ResourceRequest.js +16 -1
- package/dist/models/ResourceReservationDTO.d.ts +1 -1
- package/dist/models/ResourceReservationDTO.js +1 -1
- package/dist/models/ResourceStatusDTO.d.ts +1 -1
- package/dist/models/ResourceStatusDTO.js +1 -1
- package/dist/models/ResourceValueDTO.d.ts +1 -1
- package/dist/models/ResourceValueDTO.js +1 -1
- package/dist/models/ResourceValueRequest.d.ts +1 -1
- package/dist/models/ResourceValueRequest.js +1 -1
- package/dist/models/ScanResult.d.ts +2 -2
- package/dist/models/ScanResult.js +3 -3
- package/dist/models/SkillCategoryDTO.d.ts +1 -1
- package/dist/models/SkillCategoryDTO.js +1 -1
- package/dist/models/SkillCategoryRequest.d.ts +1 -1
- package/dist/models/SkillCategoryRequest.js +1 -1
- package/dist/models/SkillRecordDTO.d.ts +1 -1
- package/dist/models/SkillRecordDTO.js +1 -1
- package/dist/models/SkillRecordRequest.d.ts +1 -1
- package/dist/models/SkillRecordRequest.js +1 -1
- package/dist/models/SkillRequest.d.ts +1 -1
- package/dist/models/SkillRequest.js +1 -1
- package/dist/models/SkillSummaryDTO.d.ts +1 -1
- package/dist/models/SkillSummaryDTO.js +1 -1
- package/dist/models/StartProcessInstanceRequest.d.ts +1 -1
- package/dist/models/StartProcessInstanceRequest.js +1 -1
- package/dist/models/StopAtRequest.d.ts +44 -0
- package/dist/models/StopAtRequest.js +52 -0
- package/dist/models/TaskDTO.d.ts +8 -2
- package/dist/models/TaskDTO.js +5 -3
- package/dist/models/TaskRequest.d.ts +1 -1
- package/dist/models/TaskRequest.js +1 -1
- package/dist/models/TaskScheduleDTO.d.ts +1 -1
- package/dist/models/TaskScheduleDTO.js +1 -1
- package/dist/models/TaskScheduleRequest.d.ts +1 -1
- package/dist/models/TaskScheduleRequest.js +1 -1
- package/dist/models/TaskStatusRequest.d.ts +1 -1
- package/dist/models/TaskStatusRequest.js +1 -1
- package/dist/models/TelemetryRuleDTO.d.ts +1 -1
- package/dist/models/TelemetryRuleDTO.js +1 -1
- package/dist/models/TelemetryRuleRequest.d.ts +1 -1
- package/dist/models/TelemetryRuleRequest.js +1 -1
- package/dist/models/TrackingSummary.d.ts +8 -2
- package/dist/models/TrackingSummary.js +5 -3
- package/dist/models/UserDTO.d.ts +2 -2
- package/dist/models/UserDTO.js +4 -4
- package/dist/models/UserRequest.d.ts +1 -1
- package/dist/models/UserRequest.js +2 -2
- package/dist/models/WorkSession.d.ts +26 -1
- package/dist/models/WorkSession.js +10 -1
- package/dist/models/WorkSessionRequest.d.ts +50 -0
- package/dist/models/WorkSessionRequest.js +54 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/CompaniesApi.ts +424 -424
- package/src/apis/DepartmentsApi.ts +431 -380
- package/src/apis/DocumentGroupsApi.ts +287 -287
- package/src/apis/DocumentsApi.ts +798 -798
- package/src/apis/NFCApi.ts +443 -443
- package/src/apis/ProcessDefinitionsApi.ts +410 -410
- package/src/apis/ProcessInstancesApi.ts +451 -451
- package/src/apis/ProjectGoalsApi.ts +473 -473
- package/src/apis/ProjectsApi.ts +929 -929
- package/src/apis/ResourcesApi.ts +1544 -1481
- package/src/apis/SkillsApi.ts +682 -682
- package/src/apis/TaskSchedulesApi.ts +380 -380
- package/src/apis/TasksApi.ts +1297 -986
- package/src/apis/TelemetryRulesApi.ts +380 -380
- package/src/apis/UsersApi.ts +648 -648
- package/src/apis/index.ts +17 -17
- package/src/index.ts +5 -5
- package/src/models/AddressDTO.ts +137 -137
- package/src/models/AddressRequest.ts +129 -129
- package/src/models/CancelProcessInstanceRequest.ts +65 -65
- package/src/models/CompanyDTO.ts +121 -121
- package/src/models/CompanyRequest.ts +113 -113
- package/src/models/Correction.ts +125 -0
- package/src/models/DepartmentDTO.ts +105 -105
- package/src/models/DepartmentRequest.ts +89 -89
- package/src/models/DocumentCheckInRequest.ts +66 -66
- package/src/models/DocumentGroupDTO.ts +81 -81
- package/src/models/DocumentGroupRequest.ts +73 -73
- package/src/models/DocumentHistoryDTO.ts +97 -97
- package/src/models/DocumentSummaryDTO.ts +97 -97
- package/src/models/GoalProgress.ts +81 -81
- package/src/models/GoalRequest.ts +89 -89
- package/src/models/GoalRequestPropertiesInner.ts +73 -73
- package/src/models/NfcUnitDTO.ts +151 -151
- package/src/models/NfcUnitRequest.ts +111 -111
- package/src/models/ProcessDefinitionDTO.ts +141 -141
- package/src/models/ProcessInstanceDTO.ts +129 -129
- package/src/models/ProjectDTO.ts +137 -137
- package/src/models/ProjectGoalDTO.ts +81 -81
- package/src/models/ProjectGoalProperty.ts +111 -111
- package/src/models/ProjectGoalPropertyDocument.ts +73 -73
- package/src/models/ProjectGoalPropertyNumeric.ts +81 -81
- package/src/models/ProjectProgress.ts +81 -81
- package/src/models/ProjectRequest.ts +105 -105
- package/src/models/ResourceCommandRequest.ts +73 -73
- package/src/models/ResourceDTO.ts +261 -225
- package/src/models/ResourceGroupDTO.ts +81 -81
- package/src/models/ResourceRequest.ts +213 -177
- package/src/models/ResourceReservationDTO.ts +97 -97
- package/src/models/ResourceStatusDTO.ts +103 -103
- package/src/models/ResourceValueDTO.ts +73 -73
- package/src/models/ResourceValueRequest.ts +73 -73
- package/src/models/ScanResult.ts +119 -119
- package/src/models/SkillCategoryDTO.ts +97 -97
- package/src/models/SkillCategoryRequest.ts +81 -81
- package/src/models/SkillRecordDTO.ts +89 -89
- package/src/models/SkillRecordRequest.ts +73 -73
- package/src/models/SkillRequest.ts +89 -89
- package/src/models/SkillSummaryDTO.ts +105 -105
- package/src/models/StartProcessInstanceRequest.ts +73 -73
- package/src/models/StopAtRequest.ts +81 -0
- package/src/models/TaskDTO.ts +155 -147
- package/src/models/TaskRequest.ts +81 -81
- package/src/models/TaskScheduleDTO.ts +145 -145
- package/src/models/TaskScheduleRequest.ts +113 -113
- package/src/models/TaskStatusRequest.ts +83 -83
- package/src/models/TelemetryRuleDTO.ts +176 -176
- package/src/models/TelemetryRuleRequest.ts +135 -135
- package/src/models/TrackingSummary.ts +105 -97
- package/src/models/UserDTO.ts +182 -182
- package/src/models/UserRequest.ts +158 -158
- package/src/models/WorkSession.ts +129 -89
- package/src/models/WorkSessionRequest.ts +89 -0
- package/src/models/index.ts +58 -55
- package/src/runtime.ts +431 -431
package/src/apis/TasksApi.ts
CHANGED
|
@@ -1,986 +1,1297 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Prioritize API
|
|
5
|
-
* REST API of Prioritize, a resource, project and IoT orchestration platform. All endpoints live under /api/v1. From 1.0.0 on this REST surface is the stable public contract (SemVer); the Vaadin admin GUI and its @Route URLs are an implementation detail and NOT part of that promise. A few areas are marked \'experimental\' in their schema and may still change within the 1.x line.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
-
* Contact: peter.haller@prioritize-iot.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface
|
|
78
|
-
id: number;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface
|
|
82
|
-
id: number;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface
|
|
86
|
-
id: number;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface
|
|
90
|
-
id: number;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface
|
|
94
|
-
id: number;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
*
|
|
139
|
-
* @
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
*
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
*
|
|
155
|
-
* @
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
*
|
|
161
|
-
*/
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
*
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
*
|
|
171
|
-
* @
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
*
|
|
186
|
-
* @
|
|
187
|
-
* @
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
*
|
|
201
|
-
* @
|
|
202
|
-
* @
|
|
203
|
-
* @
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
*
|
|
216
|
-
* @
|
|
217
|
-
* @
|
|
218
|
-
* @
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
*
|
|
231
|
-
* @
|
|
232
|
-
* @param {
|
|
233
|
-
* @
|
|
234
|
-
* @
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
*
|
|
246
|
-
* @
|
|
247
|
-
* @param {
|
|
248
|
-
* @
|
|
249
|
-
* @
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
*
|
|
261
|
-
* @
|
|
262
|
-
* @param {
|
|
263
|
-
* @
|
|
264
|
-
* @
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
*
|
|
276
|
-
* @
|
|
277
|
-
* @param {
|
|
278
|
-
* @
|
|
279
|
-
* @
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
*
|
|
291
|
-
* @
|
|
292
|
-
* @param {
|
|
293
|
-
* @
|
|
294
|
-
* @
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
*
|
|
306
|
-
* @
|
|
307
|
-
* @param {
|
|
308
|
-
* @
|
|
309
|
-
* @
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
*
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
const response = await this.
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
const
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
if (
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
if (
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
}
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Prioritize API
|
|
5
|
+
* REST API of Prioritize, a resource, project and IoT orchestration platform. All endpoints live under /api/v1. From 1.0.0 on this REST surface is the stable public contract (SemVer); the Vaadin admin GUI and its @Route URLs are an implementation detail and NOT part of that promise. A few areas are marked \'experimental\' in their schema and may still change within the 1.x line.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
|
+
* Contact: peter.haller@prioritize-iot.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
StopAtRequest,
|
|
19
|
+
TaskDTO,
|
|
20
|
+
TaskRequest,
|
|
21
|
+
TaskStatusRequest,
|
|
22
|
+
TrackingSummary,
|
|
23
|
+
WorkSession,
|
|
24
|
+
WorkSessionRequest,
|
|
25
|
+
} from '../models/index';
|
|
26
|
+
import {
|
|
27
|
+
StopAtRequestFromJSON,
|
|
28
|
+
StopAtRequestToJSON,
|
|
29
|
+
TaskDTOFromJSON,
|
|
30
|
+
TaskDTOToJSON,
|
|
31
|
+
TaskRequestFromJSON,
|
|
32
|
+
TaskRequestToJSON,
|
|
33
|
+
TaskStatusRequestFromJSON,
|
|
34
|
+
TaskStatusRequestToJSON,
|
|
35
|
+
TrackingSummaryFromJSON,
|
|
36
|
+
TrackingSummaryToJSON,
|
|
37
|
+
WorkSessionFromJSON,
|
|
38
|
+
WorkSessionToJSON,
|
|
39
|
+
WorkSessionRequestFromJSON,
|
|
40
|
+
WorkSessionRequestToJSON,
|
|
41
|
+
} from '../models/index';
|
|
42
|
+
|
|
43
|
+
export interface TaskAddTrackingSessionRequest {
|
|
44
|
+
id: number;
|
|
45
|
+
workSessionRequest: WorkSessionRequest;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface TaskAssignGoalRequest {
|
|
49
|
+
id: number;
|
|
50
|
+
goalId: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface TaskAssignTaskRequest {
|
|
54
|
+
id: number;
|
|
55
|
+
actorId: number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface TaskChangeStatusRequest {
|
|
59
|
+
id: number;
|
|
60
|
+
taskStatusRequest: TaskStatusRequest;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface TaskCreateTaskRequest {
|
|
64
|
+
projectId: number;
|
|
65
|
+
taskRequest: TaskRequest;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface TaskDeleteTaskRequest {
|
|
69
|
+
id: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface TaskDeleteTrackingSessionRequest {
|
|
73
|
+
id: number;
|
|
74
|
+
sessionId: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface TaskGetTaskRequest {
|
|
78
|
+
id: number;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface TaskGetTrackingRequest {
|
|
82
|
+
id: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface TaskGetTrackingSessionsRequest {
|
|
86
|
+
id: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface TaskStartTrackingRequest {
|
|
90
|
+
id: number;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface TaskStopTrackingRequest {
|
|
94
|
+
id: number;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface TaskStopTrackingAtRequest {
|
|
98
|
+
id: number;
|
|
99
|
+
stopAtRequest: StopAtRequest;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface TaskToggleTrackingRequest {
|
|
103
|
+
id: number;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface TaskUnassignGoalRequest {
|
|
107
|
+
id: number;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface TaskUnassignTaskRequest {
|
|
111
|
+
id: number;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface TaskUpdateTaskRequest {
|
|
115
|
+
id: number;
|
|
116
|
+
taskRequest: TaskRequest;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface TaskUpdateTrackingSessionRequest {
|
|
120
|
+
id: number;
|
|
121
|
+
sessionId: number;
|
|
122
|
+
workSessionRequest: WorkSessionRequest;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* TasksApi - interface
|
|
127
|
+
*
|
|
128
|
+
* @export
|
|
129
|
+
* @interface TasksApiInterface
|
|
130
|
+
*/
|
|
131
|
+
export interface TasksApiInterface {
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @summary Books a work session by hand that was never clocked
|
|
135
|
+
* @param {number} id
|
|
136
|
+
* @param {WorkSessionRequest} workSessionRequest
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
* @memberof TasksApiInterface
|
|
140
|
+
*/
|
|
141
|
+
taskAddTrackingSessionRaw(requestParameters: TaskAddTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkSession>>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Books a work session by hand that was never clocked
|
|
145
|
+
*/
|
|
146
|
+
taskAddTrackingSession(requestParameters: TaskAddTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkSession>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @summary Assign goal
|
|
151
|
+
* @param {number} id
|
|
152
|
+
* @param {number} goalId
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
* @memberof TasksApiInterface
|
|
156
|
+
*/
|
|
157
|
+
taskAssignGoalRaw(requestParameters: TaskAssignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Assign goal
|
|
161
|
+
*/
|
|
162
|
+
taskAssignGoal(requestParameters: TaskAssignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @summary Assign task
|
|
167
|
+
* @param {number} id
|
|
168
|
+
* @param {number} actorId
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
* @memberof TasksApiInterface
|
|
172
|
+
*/
|
|
173
|
+
taskAssignTaskRaw(requestParameters: TaskAssignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Assign task
|
|
177
|
+
*/
|
|
178
|
+
taskAssignTask(requestParameters: TaskAssignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @summary Change status
|
|
183
|
+
* @param {number} id
|
|
184
|
+
* @param {TaskStatusRequest} taskStatusRequest
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
* @memberof TasksApiInterface
|
|
188
|
+
*/
|
|
189
|
+
taskChangeStatusRaw(requestParameters: TaskChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Change status
|
|
193
|
+
*/
|
|
194
|
+
taskChangeStatus(requestParameters: TaskChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @summary Creates a task on the given project\'s blackboard
|
|
199
|
+
* @param {number} projectId
|
|
200
|
+
* @param {TaskRequest} taskRequest
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
* @memberof TasksApiInterface
|
|
204
|
+
*/
|
|
205
|
+
taskCreateTaskRaw(requestParameters: TaskCreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Creates a task on the given project\'s blackboard
|
|
209
|
+
*/
|
|
210
|
+
taskCreateTask(requestParameters: TaskCreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @summary Delete task
|
|
215
|
+
* @param {number} id
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
* @memberof TasksApiInterface
|
|
219
|
+
*/
|
|
220
|
+
taskDeleteTaskRaw(requestParameters: TaskDeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Delete task
|
|
224
|
+
*/
|
|
225
|
+
taskDeleteTask(requestParameters: TaskDeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @summary Removes a completed work session
|
|
230
|
+
* @param {number} id
|
|
231
|
+
* @param {number} sessionId
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
* @memberof TasksApiInterface
|
|
235
|
+
*/
|
|
236
|
+
taskDeleteTrackingSessionRaw(requestParameters: TaskDeleteTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Removes a completed work session
|
|
240
|
+
*/
|
|
241
|
+
taskDeleteTrackingSession(requestParameters: TaskDeleteTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @summary Get task
|
|
246
|
+
* @param {number} id
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
* @memberof TasksApiInterface
|
|
250
|
+
*/
|
|
251
|
+
taskGetTaskRaw(requestParameters: TaskGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Get task
|
|
255
|
+
*/
|
|
256
|
+
taskGetTask(requestParameters: TaskGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @summary Returns the total time tracked on the task (completed spans plus the running one, live)
|
|
261
|
+
* @param {number} id
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
* @memberof TasksApiInterface
|
|
265
|
+
*/
|
|
266
|
+
taskGetTrackingRaw(requestParameters: TaskGetTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TrackingSummary>>;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Returns the total time tracked on the task (completed spans plus the running one, live)
|
|
270
|
+
*/
|
|
271
|
+
taskGetTracking(requestParameters: TaskGetTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TrackingSummary>;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @summary Returns the individual tracked work sessions of the task (completed spans plus the running one)
|
|
276
|
+
* @param {number} id
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
* @memberof TasksApiInterface
|
|
280
|
+
*/
|
|
281
|
+
taskGetTrackingSessionsRaw(requestParameters: TaskGetTrackingSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WorkSession>>>;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Returns the individual tracked work sessions of the task (completed spans plus the running one)
|
|
285
|
+
*/
|
|
286
|
+
taskGetTrackingSessions(requestParameters: TaskGetTrackingSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkSession>>;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary Start tracking
|
|
291
|
+
* @param {number} id
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
* @memberof TasksApiInterface
|
|
295
|
+
*/
|
|
296
|
+
taskStartTrackingRaw(requestParameters: TaskStartTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Start tracking
|
|
300
|
+
*/
|
|
301
|
+
taskStartTracking(requestParameters: TaskStartTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @summary Stop tracking
|
|
306
|
+
* @param {number} id
|
|
307
|
+
* @param {*} [options] Override http request option.
|
|
308
|
+
* @throws {RequiredError}
|
|
309
|
+
* @memberof TasksApiInterface
|
|
310
|
+
*/
|
|
311
|
+
taskStopTrackingRaw(requestParameters: TaskStopTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Stop tracking
|
|
315
|
+
*/
|
|
316
|
+
taskStopTracking(requestParameters: TaskStopTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @summary Stops the running work session at an earlier point in time
|
|
321
|
+
* @param {number} id
|
|
322
|
+
* @param {StopAtRequest} stopAtRequest
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
* @memberof TasksApiInterface
|
|
326
|
+
*/
|
|
327
|
+
taskStopTrackingAtRaw(requestParameters: TaskStopTrackingAtRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Stops the running work session at an earlier point in time
|
|
331
|
+
*/
|
|
332
|
+
taskStopTrackingAt(requestParameters: TaskStopTrackingAtRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @summary Toggle tracking
|
|
337
|
+
* @param {number} id
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
* @memberof TasksApiInterface
|
|
341
|
+
*/
|
|
342
|
+
taskToggleTrackingRaw(requestParameters: TaskToggleTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Toggle tracking
|
|
346
|
+
*/
|
|
347
|
+
taskToggleTracking(requestParameters: TaskToggleTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
* @summary Unassign goal
|
|
352
|
+
* @param {number} id
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
* @memberof TasksApiInterface
|
|
356
|
+
*/
|
|
357
|
+
taskUnassignGoalRaw(requestParameters: TaskUnassignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Unassign goal
|
|
361
|
+
*/
|
|
362
|
+
taskUnassignGoal(requestParameters: TaskUnassignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @summary Unassign task
|
|
367
|
+
* @param {number} id
|
|
368
|
+
* @param {*} [options] Override http request option.
|
|
369
|
+
* @throws {RequiredError}
|
|
370
|
+
* @memberof TasksApiInterface
|
|
371
|
+
*/
|
|
372
|
+
taskUnassignTaskRaw(requestParameters: TaskUnassignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Unassign task
|
|
376
|
+
*/
|
|
377
|
+
taskUnassignTask(requestParameters: TaskUnassignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary Update task
|
|
382
|
+
* @param {number} id
|
|
383
|
+
* @param {TaskRequest} taskRequest
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
* @memberof TasksApiInterface
|
|
387
|
+
*/
|
|
388
|
+
taskUpdateTaskRaw(requestParameters: TaskUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Update task
|
|
392
|
+
*/
|
|
393
|
+
taskUpdateTask(requestParameters: TaskUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @summary Corrects the start and end of a completed work session
|
|
398
|
+
* @param {number} id
|
|
399
|
+
* @param {number} sessionId
|
|
400
|
+
* @param {WorkSessionRequest} workSessionRequest
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
* @memberof TasksApiInterface
|
|
404
|
+
*/
|
|
405
|
+
taskUpdateTrackingSessionRaw(requestParameters: TaskUpdateTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkSession>>;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Corrects the start and end of a completed work session
|
|
409
|
+
*/
|
|
410
|
+
taskUpdateTrackingSession(requestParameters: TaskUpdateTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkSession>;
|
|
411
|
+
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
*/
|
|
417
|
+
export class TasksApi extends runtime.BaseAPI implements TasksApiInterface {
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Books a work session by hand that was never clocked
|
|
421
|
+
*/
|
|
422
|
+
async taskAddTrackingSessionRaw(requestParameters: TaskAddTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkSession>> {
|
|
423
|
+
if (requestParameters['id'] == null) {
|
|
424
|
+
throw new runtime.RequiredError(
|
|
425
|
+
'id',
|
|
426
|
+
'Required parameter "id" was null or undefined when calling taskAddTrackingSession().'
|
|
427
|
+
);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
if (requestParameters['workSessionRequest'] == null) {
|
|
431
|
+
throw new runtime.RequiredError(
|
|
432
|
+
'workSessionRequest',
|
|
433
|
+
'Required parameter "workSessionRequest" was null or undefined when calling taskAddTrackingSession().'
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
const queryParameters: any = {};
|
|
438
|
+
|
|
439
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
440
|
+
|
|
441
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
442
|
+
|
|
443
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
444
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
445
|
+
}
|
|
446
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
447
|
+
const token = this.configuration.accessToken;
|
|
448
|
+
const tokenString = await token("bearerAuth", []);
|
|
449
|
+
|
|
450
|
+
if (tokenString) {
|
|
451
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
const response = await this.request({
|
|
455
|
+
path: `/api/v1/tasks/{id}/tracking/sessions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
456
|
+
method: 'POST',
|
|
457
|
+
headers: headerParameters,
|
|
458
|
+
query: queryParameters,
|
|
459
|
+
body: WorkSessionRequestToJSON(requestParameters['workSessionRequest']),
|
|
460
|
+
}, initOverrides);
|
|
461
|
+
|
|
462
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkSessionFromJSON(jsonValue));
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Books a work session by hand that was never clocked
|
|
467
|
+
*/
|
|
468
|
+
async taskAddTrackingSession(requestParameters: TaskAddTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkSession> {
|
|
469
|
+
const response = await this.taskAddTrackingSessionRaw(requestParameters, initOverrides);
|
|
470
|
+
return await response.value();
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Assign goal
|
|
475
|
+
*/
|
|
476
|
+
async taskAssignGoalRaw(requestParameters: TaskAssignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
477
|
+
if (requestParameters['id'] == null) {
|
|
478
|
+
throw new runtime.RequiredError(
|
|
479
|
+
'id',
|
|
480
|
+
'Required parameter "id" was null or undefined when calling taskAssignGoal().'
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
if (requestParameters['goalId'] == null) {
|
|
485
|
+
throw new runtime.RequiredError(
|
|
486
|
+
'goalId',
|
|
487
|
+
'Required parameter "goalId" was null or undefined when calling taskAssignGoal().'
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
const queryParameters: any = {};
|
|
492
|
+
|
|
493
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
494
|
+
|
|
495
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
496
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
497
|
+
}
|
|
498
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
499
|
+
const token = this.configuration.accessToken;
|
|
500
|
+
const tokenString = await token("bearerAuth", []);
|
|
501
|
+
|
|
502
|
+
if (tokenString) {
|
|
503
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
const response = await this.request({
|
|
507
|
+
path: `/api/v1/tasks/{id}/goal/{goalId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"goalId"}}`, encodeURIComponent(String(requestParameters['goalId']))),
|
|
508
|
+
method: 'PUT',
|
|
509
|
+
headers: headerParameters,
|
|
510
|
+
query: queryParameters,
|
|
511
|
+
}, initOverrides);
|
|
512
|
+
|
|
513
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Assign goal
|
|
518
|
+
*/
|
|
519
|
+
async taskAssignGoal(requestParameters: TaskAssignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
520
|
+
const response = await this.taskAssignGoalRaw(requestParameters, initOverrides);
|
|
521
|
+
return await response.value();
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Assign task
|
|
526
|
+
*/
|
|
527
|
+
async taskAssignTaskRaw(requestParameters: TaskAssignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
528
|
+
if (requestParameters['id'] == null) {
|
|
529
|
+
throw new runtime.RequiredError(
|
|
530
|
+
'id',
|
|
531
|
+
'Required parameter "id" was null or undefined when calling taskAssignTask().'
|
|
532
|
+
);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
if (requestParameters['actorId'] == null) {
|
|
536
|
+
throw new runtime.RequiredError(
|
|
537
|
+
'actorId',
|
|
538
|
+
'Required parameter "actorId" was null or undefined when calling taskAssignTask().'
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
const queryParameters: any = {};
|
|
543
|
+
|
|
544
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
545
|
+
|
|
546
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
547
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
548
|
+
}
|
|
549
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
550
|
+
const token = this.configuration.accessToken;
|
|
551
|
+
const tokenString = await token("bearerAuth", []);
|
|
552
|
+
|
|
553
|
+
if (tokenString) {
|
|
554
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
const response = await this.request({
|
|
558
|
+
path: `/api/v1/tasks/{id}/assignee/{actorId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"actorId"}}`, encodeURIComponent(String(requestParameters['actorId']))),
|
|
559
|
+
method: 'PUT',
|
|
560
|
+
headers: headerParameters,
|
|
561
|
+
query: queryParameters,
|
|
562
|
+
}, initOverrides);
|
|
563
|
+
|
|
564
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Assign task
|
|
569
|
+
*/
|
|
570
|
+
async taskAssignTask(requestParameters: TaskAssignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
571
|
+
const response = await this.taskAssignTaskRaw(requestParameters, initOverrides);
|
|
572
|
+
return await response.value();
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Change status
|
|
577
|
+
*/
|
|
578
|
+
async taskChangeStatusRaw(requestParameters: TaskChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
579
|
+
if (requestParameters['id'] == null) {
|
|
580
|
+
throw new runtime.RequiredError(
|
|
581
|
+
'id',
|
|
582
|
+
'Required parameter "id" was null or undefined when calling taskChangeStatus().'
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
if (requestParameters['taskStatusRequest'] == null) {
|
|
587
|
+
throw new runtime.RequiredError(
|
|
588
|
+
'taskStatusRequest',
|
|
589
|
+
'Required parameter "taskStatusRequest" was null or undefined when calling taskChangeStatus().'
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
const queryParameters: any = {};
|
|
594
|
+
|
|
595
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
596
|
+
|
|
597
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
598
|
+
|
|
599
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
600
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
601
|
+
}
|
|
602
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
603
|
+
const token = this.configuration.accessToken;
|
|
604
|
+
const tokenString = await token("bearerAuth", []);
|
|
605
|
+
|
|
606
|
+
if (tokenString) {
|
|
607
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
const response = await this.request({
|
|
611
|
+
path: `/api/v1/tasks/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
612
|
+
method: 'PUT',
|
|
613
|
+
headers: headerParameters,
|
|
614
|
+
query: queryParameters,
|
|
615
|
+
body: TaskStatusRequestToJSON(requestParameters['taskStatusRequest']),
|
|
616
|
+
}, initOverrides);
|
|
617
|
+
|
|
618
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Change status
|
|
623
|
+
*/
|
|
624
|
+
async taskChangeStatus(requestParameters: TaskChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
625
|
+
const response = await this.taskChangeStatusRaw(requestParameters, initOverrides);
|
|
626
|
+
return await response.value();
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Creates a task on the given project\'s blackboard
|
|
631
|
+
*/
|
|
632
|
+
async taskCreateTaskRaw(requestParameters: TaskCreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
633
|
+
if (requestParameters['projectId'] == null) {
|
|
634
|
+
throw new runtime.RequiredError(
|
|
635
|
+
'projectId',
|
|
636
|
+
'Required parameter "projectId" was null or undefined when calling taskCreateTask().'
|
|
637
|
+
);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
if (requestParameters['taskRequest'] == null) {
|
|
641
|
+
throw new runtime.RequiredError(
|
|
642
|
+
'taskRequest',
|
|
643
|
+
'Required parameter "taskRequest" was null or undefined when calling taskCreateTask().'
|
|
644
|
+
);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
const queryParameters: any = {};
|
|
648
|
+
|
|
649
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
650
|
+
|
|
651
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
652
|
+
|
|
653
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
654
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
655
|
+
}
|
|
656
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
657
|
+
const token = this.configuration.accessToken;
|
|
658
|
+
const tokenString = await token("bearerAuth", []);
|
|
659
|
+
|
|
660
|
+
if (tokenString) {
|
|
661
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
const response = await this.request({
|
|
665
|
+
path: `/api/v1/projects/{projectId}/tasks`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
666
|
+
method: 'POST',
|
|
667
|
+
headers: headerParameters,
|
|
668
|
+
query: queryParameters,
|
|
669
|
+
body: TaskRequestToJSON(requestParameters['taskRequest']),
|
|
670
|
+
}, initOverrides);
|
|
671
|
+
|
|
672
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Creates a task on the given project\'s blackboard
|
|
677
|
+
*/
|
|
678
|
+
async taskCreateTask(requestParameters: TaskCreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
679
|
+
const response = await this.taskCreateTaskRaw(requestParameters, initOverrides);
|
|
680
|
+
return await response.value();
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Delete task
|
|
685
|
+
*/
|
|
686
|
+
async taskDeleteTaskRaw(requestParameters: TaskDeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
687
|
+
if (requestParameters['id'] == null) {
|
|
688
|
+
throw new runtime.RequiredError(
|
|
689
|
+
'id',
|
|
690
|
+
'Required parameter "id" was null or undefined when calling taskDeleteTask().'
|
|
691
|
+
);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
const queryParameters: any = {};
|
|
695
|
+
|
|
696
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
697
|
+
|
|
698
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
699
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
700
|
+
}
|
|
701
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
702
|
+
const token = this.configuration.accessToken;
|
|
703
|
+
const tokenString = await token("bearerAuth", []);
|
|
704
|
+
|
|
705
|
+
if (tokenString) {
|
|
706
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
const response = await this.request({
|
|
710
|
+
path: `/api/v1/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
711
|
+
method: 'DELETE',
|
|
712
|
+
headers: headerParameters,
|
|
713
|
+
query: queryParameters,
|
|
714
|
+
}, initOverrides);
|
|
715
|
+
|
|
716
|
+
return new runtime.VoidApiResponse(response);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Delete task
|
|
721
|
+
*/
|
|
722
|
+
async taskDeleteTask(requestParameters: TaskDeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
723
|
+
await this.taskDeleteTaskRaw(requestParameters, initOverrides);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Removes a completed work session
|
|
728
|
+
*/
|
|
729
|
+
async taskDeleteTrackingSessionRaw(requestParameters: TaskDeleteTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
730
|
+
if (requestParameters['id'] == null) {
|
|
731
|
+
throw new runtime.RequiredError(
|
|
732
|
+
'id',
|
|
733
|
+
'Required parameter "id" was null or undefined when calling taskDeleteTrackingSession().'
|
|
734
|
+
);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
if (requestParameters['sessionId'] == null) {
|
|
738
|
+
throw new runtime.RequiredError(
|
|
739
|
+
'sessionId',
|
|
740
|
+
'Required parameter "sessionId" was null or undefined when calling taskDeleteTrackingSession().'
|
|
741
|
+
);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
const queryParameters: any = {};
|
|
745
|
+
|
|
746
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
747
|
+
|
|
748
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
749
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
750
|
+
}
|
|
751
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
752
|
+
const token = this.configuration.accessToken;
|
|
753
|
+
const tokenString = await token("bearerAuth", []);
|
|
754
|
+
|
|
755
|
+
if (tokenString) {
|
|
756
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
const response = await this.request({
|
|
760
|
+
path: `/api/v1/tasks/{id}/tracking/sessions/{sessionId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
761
|
+
method: 'DELETE',
|
|
762
|
+
headers: headerParameters,
|
|
763
|
+
query: queryParameters,
|
|
764
|
+
}, initOverrides);
|
|
765
|
+
|
|
766
|
+
return new runtime.VoidApiResponse(response);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Removes a completed work session
|
|
771
|
+
*/
|
|
772
|
+
async taskDeleteTrackingSession(requestParameters: TaskDeleteTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
773
|
+
await this.taskDeleteTrackingSessionRaw(requestParameters, initOverrides);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Get task
|
|
778
|
+
*/
|
|
779
|
+
async taskGetTaskRaw(requestParameters: TaskGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
780
|
+
if (requestParameters['id'] == null) {
|
|
781
|
+
throw new runtime.RequiredError(
|
|
782
|
+
'id',
|
|
783
|
+
'Required parameter "id" was null or undefined when calling taskGetTask().'
|
|
784
|
+
);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
const queryParameters: any = {};
|
|
788
|
+
|
|
789
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
790
|
+
|
|
791
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
792
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
793
|
+
}
|
|
794
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
795
|
+
const token = this.configuration.accessToken;
|
|
796
|
+
const tokenString = await token("bearerAuth", []);
|
|
797
|
+
|
|
798
|
+
if (tokenString) {
|
|
799
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
const response = await this.request({
|
|
803
|
+
path: `/api/v1/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
804
|
+
method: 'GET',
|
|
805
|
+
headers: headerParameters,
|
|
806
|
+
query: queryParameters,
|
|
807
|
+
}, initOverrides);
|
|
808
|
+
|
|
809
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Get task
|
|
814
|
+
*/
|
|
815
|
+
async taskGetTask(requestParameters: TaskGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
816
|
+
const response = await this.taskGetTaskRaw(requestParameters, initOverrides);
|
|
817
|
+
return await response.value();
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Returns the total time tracked on the task (completed spans plus the running one, live)
|
|
822
|
+
*/
|
|
823
|
+
async taskGetTrackingRaw(requestParameters: TaskGetTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TrackingSummary>> {
|
|
824
|
+
if (requestParameters['id'] == null) {
|
|
825
|
+
throw new runtime.RequiredError(
|
|
826
|
+
'id',
|
|
827
|
+
'Required parameter "id" was null or undefined when calling taskGetTracking().'
|
|
828
|
+
);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
const queryParameters: any = {};
|
|
832
|
+
|
|
833
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
834
|
+
|
|
835
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
836
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
837
|
+
}
|
|
838
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
839
|
+
const token = this.configuration.accessToken;
|
|
840
|
+
const tokenString = await token("bearerAuth", []);
|
|
841
|
+
|
|
842
|
+
if (tokenString) {
|
|
843
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
const response = await this.request({
|
|
847
|
+
path: `/api/v1/tasks/{id}/tracking`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
848
|
+
method: 'GET',
|
|
849
|
+
headers: headerParameters,
|
|
850
|
+
query: queryParameters,
|
|
851
|
+
}, initOverrides);
|
|
852
|
+
|
|
853
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TrackingSummaryFromJSON(jsonValue));
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Returns the total time tracked on the task (completed spans plus the running one, live)
|
|
858
|
+
*/
|
|
859
|
+
async taskGetTracking(requestParameters: TaskGetTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TrackingSummary> {
|
|
860
|
+
const response = await this.taskGetTrackingRaw(requestParameters, initOverrides);
|
|
861
|
+
return await response.value();
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Returns the individual tracked work sessions of the task (completed spans plus the running one)
|
|
866
|
+
*/
|
|
867
|
+
async taskGetTrackingSessionsRaw(requestParameters: TaskGetTrackingSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WorkSession>>> {
|
|
868
|
+
if (requestParameters['id'] == null) {
|
|
869
|
+
throw new runtime.RequiredError(
|
|
870
|
+
'id',
|
|
871
|
+
'Required parameter "id" was null or undefined when calling taskGetTrackingSessions().'
|
|
872
|
+
);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
const queryParameters: any = {};
|
|
876
|
+
|
|
877
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
878
|
+
|
|
879
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
880
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
881
|
+
}
|
|
882
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
883
|
+
const token = this.configuration.accessToken;
|
|
884
|
+
const tokenString = await token("bearerAuth", []);
|
|
885
|
+
|
|
886
|
+
if (tokenString) {
|
|
887
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
const response = await this.request({
|
|
891
|
+
path: `/api/v1/tasks/{id}/tracking/sessions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
892
|
+
method: 'GET',
|
|
893
|
+
headers: headerParameters,
|
|
894
|
+
query: queryParameters,
|
|
895
|
+
}, initOverrides);
|
|
896
|
+
|
|
897
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WorkSessionFromJSON));
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Returns the individual tracked work sessions of the task (completed spans plus the running one)
|
|
902
|
+
*/
|
|
903
|
+
async taskGetTrackingSessions(requestParameters: TaskGetTrackingSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkSession>> {
|
|
904
|
+
const response = await this.taskGetTrackingSessionsRaw(requestParameters, initOverrides);
|
|
905
|
+
return await response.value();
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Start tracking
|
|
910
|
+
*/
|
|
911
|
+
async taskStartTrackingRaw(requestParameters: TaskStartTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
912
|
+
if (requestParameters['id'] == null) {
|
|
913
|
+
throw new runtime.RequiredError(
|
|
914
|
+
'id',
|
|
915
|
+
'Required parameter "id" was null or undefined when calling taskStartTracking().'
|
|
916
|
+
);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
const queryParameters: any = {};
|
|
920
|
+
|
|
921
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
922
|
+
|
|
923
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
924
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
925
|
+
}
|
|
926
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
927
|
+
const token = this.configuration.accessToken;
|
|
928
|
+
const tokenString = await token("bearerAuth", []);
|
|
929
|
+
|
|
930
|
+
if (tokenString) {
|
|
931
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
const response = await this.request({
|
|
935
|
+
path: `/api/v1/tasks/{id}/tracking/start`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
936
|
+
method: 'POST',
|
|
937
|
+
headers: headerParameters,
|
|
938
|
+
query: queryParameters,
|
|
939
|
+
}, initOverrides);
|
|
940
|
+
|
|
941
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* Start tracking
|
|
946
|
+
*/
|
|
947
|
+
async taskStartTracking(requestParameters: TaskStartTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
948
|
+
const response = await this.taskStartTrackingRaw(requestParameters, initOverrides);
|
|
949
|
+
return await response.value();
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Stop tracking
|
|
954
|
+
*/
|
|
955
|
+
async taskStopTrackingRaw(requestParameters: TaskStopTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
956
|
+
if (requestParameters['id'] == null) {
|
|
957
|
+
throw new runtime.RequiredError(
|
|
958
|
+
'id',
|
|
959
|
+
'Required parameter "id" was null or undefined when calling taskStopTracking().'
|
|
960
|
+
);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
const queryParameters: any = {};
|
|
964
|
+
|
|
965
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
966
|
+
|
|
967
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
968
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
969
|
+
}
|
|
970
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
971
|
+
const token = this.configuration.accessToken;
|
|
972
|
+
const tokenString = await token("bearerAuth", []);
|
|
973
|
+
|
|
974
|
+
if (tokenString) {
|
|
975
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
const response = await this.request({
|
|
979
|
+
path: `/api/v1/tasks/{id}/tracking/stop`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
980
|
+
method: 'POST',
|
|
981
|
+
headers: headerParameters,
|
|
982
|
+
query: queryParameters,
|
|
983
|
+
}, initOverrides);
|
|
984
|
+
|
|
985
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Stop tracking
|
|
990
|
+
*/
|
|
991
|
+
async taskStopTracking(requestParameters: TaskStopTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
992
|
+
const response = await this.taskStopTrackingRaw(requestParameters, initOverrides);
|
|
993
|
+
return await response.value();
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Stops the running work session at an earlier point in time
|
|
998
|
+
*/
|
|
999
|
+
async taskStopTrackingAtRaw(requestParameters: TaskStopTrackingAtRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
1000
|
+
if (requestParameters['id'] == null) {
|
|
1001
|
+
throw new runtime.RequiredError(
|
|
1002
|
+
'id',
|
|
1003
|
+
'Required parameter "id" was null or undefined when calling taskStopTrackingAt().'
|
|
1004
|
+
);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
if (requestParameters['stopAtRequest'] == null) {
|
|
1008
|
+
throw new runtime.RequiredError(
|
|
1009
|
+
'stopAtRequest',
|
|
1010
|
+
'Required parameter "stopAtRequest" was null or undefined when calling taskStopTrackingAt().'
|
|
1011
|
+
);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
const queryParameters: any = {};
|
|
1015
|
+
|
|
1016
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1017
|
+
|
|
1018
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1019
|
+
|
|
1020
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
1021
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
1022
|
+
}
|
|
1023
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1024
|
+
const token = this.configuration.accessToken;
|
|
1025
|
+
const tokenString = await token("bearerAuth", []);
|
|
1026
|
+
|
|
1027
|
+
if (tokenString) {
|
|
1028
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
const response = await this.request({
|
|
1032
|
+
path: `/api/v1/tasks/{id}/tracking/stop-at`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1033
|
+
method: 'POST',
|
|
1034
|
+
headers: headerParameters,
|
|
1035
|
+
query: queryParameters,
|
|
1036
|
+
body: StopAtRequestToJSON(requestParameters['stopAtRequest']),
|
|
1037
|
+
}, initOverrides);
|
|
1038
|
+
|
|
1039
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Stops the running work session at an earlier point in time
|
|
1044
|
+
*/
|
|
1045
|
+
async taskStopTrackingAt(requestParameters: TaskStopTrackingAtRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
1046
|
+
const response = await this.taskStopTrackingAtRaw(requestParameters, initOverrides);
|
|
1047
|
+
return await response.value();
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Toggle tracking
|
|
1052
|
+
*/
|
|
1053
|
+
async taskToggleTrackingRaw(requestParameters: TaskToggleTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
1054
|
+
if (requestParameters['id'] == null) {
|
|
1055
|
+
throw new runtime.RequiredError(
|
|
1056
|
+
'id',
|
|
1057
|
+
'Required parameter "id" was null or undefined when calling taskToggleTracking().'
|
|
1058
|
+
);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
const queryParameters: any = {};
|
|
1062
|
+
|
|
1063
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1064
|
+
|
|
1065
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
1066
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
1067
|
+
}
|
|
1068
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1069
|
+
const token = this.configuration.accessToken;
|
|
1070
|
+
const tokenString = await token("bearerAuth", []);
|
|
1071
|
+
|
|
1072
|
+
if (tokenString) {
|
|
1073
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
const response = await this.request({
|
|
1077
|
+
path: `/api/v1/tasks/{id}/tracking/toggle`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1078
|
+
method: 'POST',
|
|
1079
|
+
headers: headerParameters,
|
|
1080
|
+
query: queryParameters,
|
|
1081
|
+
}, initOverrides);
|
|
1082
|
+
|
|
1083
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Toggle tracking
|
|
1088
|
+
*/
|
|
1089
|
+
async taskToggleTracking(requestParameters: TaskToggleTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
1090
|
+
const response = await this.taskToggleTrackingRaw(requestParameters, initOverrides);
|
|
1091
|
+
return await response.value();
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Unassign goal
|
|
1096
|
+
*/
|
|
1097
|
+
async taskUnassignGoalRaw(requestParameters: TaskUnassignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
1098
|
+
if (requestParameters['id'] == null) {
|
|
1099
|
+
throw new runtime.RequiredError(
|
|
1100
|
+
'id',
|
|
1101
|
+
'Required parameter "id" was null or undefined when calling taskUnassignGoal().'
|
|
1102
|
+
);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
const queryParameters: any = {};
|
|
1106
|
+
|
|
1107
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1108
|
+
|
|
1109
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
1110
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
1111
|
+
}
|
|
1112
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1113
|
+
const token = this.configuration.accessToken;
|
|
1114
|
+
const tokenString = await token("bearerAuth", []);
|
|
1115
|
+
|
|
1116
|
+
if (tokenString) {
|
|
1117
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
const response = await this.request({
|
|
1121
|
+
path: `/api/v1/tasks/{id}/goal`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1122
|
+
method: 'DELETE',
|
|
1123
|
+
headers: headerParameters,
|
|
1124
|
+
query: queryParameters,
|
|
1125
|
+
}, initOverrides);
|
|
1126
|
+
|
|
1127
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Unassign goal
|
|
1132
|
+
*/
|
|
1133
|
+
async taskUnassignGoal(requestParameters: TaskUnassignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
1134
|
+
const response = await this.taskUnassignGoalRaw(requestParameters, initOverrides);
|
|
1135
|
+
return await response.value();
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Unassign task
|
|
1140
|
+
*/
|
|
1141
|
+
async taskUnassignTaskRaw(requestParameters: TaskUnassignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
1142
|
+
if (requestParameters['id'] == null) {
|
|
1143
|
+
throw new runtime.RequiredError(
|
|
1144
|
+
'id',
|
|
1145
|
+
'Required parameter "id" was null or undefined when calling taskUnassignTask().'
|
|
1146
|
+
);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
const queryParameters: any = {};
|
|
1150
|
+
|
|
1151
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1152
|
+
|
|
1153
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
1154
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
1155
|
+
}
|
|
1156
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1157
|
+
const token = this.configuration.accessToken;
|
|
1158
|
+
const tokenString = await token("bearerAuth", []);
|
|
1159
|
+
|
|
1160
|
+
if (tokenString) {
|
|
1161
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
const response = await this.request({
|
|
1165
|
+
path: `/api/v1/tasks/{id}/assignee`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1166
|
+
method: 'DELETE',
|
|
1167
|
+
headers: headerParameters,
|
|
1168
|
+
query: queryParameters,
|
|
1169
|
+
}, initOverrides);
|
|
1170
|
+
|
|
1171
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Unassign task
|
|
1176
|
+
*/
|
|
1177
|
+
async taskUnassignTask(requestParameters: TaskUnassignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
1178
|
+
const response = await this.taskUnassignTaskRaw(requestParameters, initOverrides);
|
|
1179
|
+
return await response.value();
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Update task
|
|
1184
|
+
*/
|
|
1185
|
+
async taskUpdateTaskRaw(requestParameters: TaskUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
1186
|
+
if (requestParameters['id'] == null) {
|
|
1187
|
+
throw new runtime.RequiredError(
|
|
1188
|
+
'id',
|
|
1189
|
+
'Required parameter "id" was null or undefined when calling taskUpdateTask().'
|
|
1190
|
+
);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
if (requestParameters['taskRequest'] == null) {
|
|
1194
|
+
throw new runtime.RequiredError(
|
|
1195
|
+
'taskRequest',
|
|
1196
|
+
'Required parameter "taskRequest" was null or undefined when calling taskUpdateTask().'
|
|
1197
|
+
);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
const queryParameters: any = {};
|
|
1201
|
+
|
|
1202
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1203
|
+
|
|
1204
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1205
|
+
|
|
1206
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
1207
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
1208
|
+
}
|
|
1209
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1210
|
+
const token = this.configuration.accessToken;
|
|
1211
|
+
const tokenString = await token("bearerAuth", []);
|
|
1212
|
+
|
|
1213
|
+
if (tokenString) {
|
|
1214
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
const response = await this.request({
|
|
1218
|
+
path: `/api/v1/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
1219
|
+
method: 'PATCH',
|
|
1220
|
+
headers: headerParameters,
|
|
1221
|
+
query: queryParameters,
|
|
1222
|
+
body: TaskRequestToJSON(requestParameters['taskRequest']),
|
|
1223
|
+
}, initOverrides);
|
|
1224
|
+
|
|
1225
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Update task
|
|
1230
|
+
*/
|
|
1231
|
+
async taskUpdateTask(requestParameters: TaskUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
1232
|
+
const response = await this.taskUpdateTaskRaw(requestParameters, initOverrides);
|
|
1233
|
+
return await response.value();
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Corrects the start and end of a completed work session
|
|
1238
|
+
*/
|
|
1239
|
+
async taskUpdateTrackingSessionRaw(requestParameters: TaskUpdateTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkSession>> {
|
|
1240
|
+
if (requestParameters['id'] == null) {
|
|
1241
|
+
throw new runtime.RequiredError(
|
|
1242
|
+
'id',
|
|
1243
|
+
'Required parameter "id" was null or undefined when calling taskUpdateTrackingSession().'
|
|
1244
|
+
);
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
if (requestParameters['sessionId'] == null) {
|
|
1248
|
+
throw new runtime.RequiredError(
|
|
1249
|
+
'sessionId',
|
|
1250
|
+
'Required parameter "sessionId" was null or undefined when calling taskUpdateTrackingSession().'
|
|
1251
|
+
);
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
if (requestParameters['workSessionRequest'] == null) {
|
|
1255
|
+
throw new runtime.RequiredError(
|
|
1256
|
+
'workSessionRequest',
|
|
1257
|
+
'Required parameter "workSessionRequest" was null or undefined when calling taskUpdateTrackingSession().'
|
|
1258
|
+
);
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
const queryParameters: any = {};
|
|
1262
|
+
|
|
1263
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1264
|
+
|
|
1265
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1266
|
+
|
|
1267
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
1268
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
1269
|
+
}
|
|
1270
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1271
|
+
const token = this.configuration.accessToken;
|
|
1272
|
+
const tokenString = await token("bearerAuth", []);
|
|
1273
|
+
|
|
1274
|
+
if (tokenString) {
|
|
1275
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
const response = await this.request({
|
|
1279
|
+
path: `/api/v1/tasks/{id}/tracking/sessions/{sessionId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
1280
|
+
method: 'PUT',
|
|
1281
|
+
headers: headerParameters,
|
|
1282
|
+
query: queryParameters,
|
|
1283
|
+
body: WorkSessionRequestToJSON(requestParameters['workSessionRequest']),
|
|
1284
|
+
}, initOverrides);
|
|
1285
|
+
|
|
1286
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkSessionFromJSON(jsonValue));
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Corrects the start and end of a completed work session
|
|
1291
|
+
*/
|
|
1292
|
+
async taskUpdateTrackingSession(requestParameters: TaskUpdateTrackingSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkSession> {
|
|
1293
|
+
const response = await this.taskUpdateTrackingSessionRaw(requestParameters, initOverrides);
|
|
1294
|
+
return await response.value();
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
}
|