prioritize-client 1.3.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/LICENSE +201 -0
- package/README.md +90 -0
- package/dist/apis/CompaniesApi.d.ts +168 -0
- package/dist/apis/CompaniesApi.js +265 -0
- package/dist/apis/DepartmentsApi.d.ts +150 -0
- package/dist/apis/DepartmentsApi.js +232 -0
- package/dist/apis/DocumentGroupsApi.d.ts +118 -0
- package/dist/apis/DocumentGroupsApi.js +183 -0
- package/dist/apis/DocumentsApi.d.ts +296 -0
- package/dist/apis/DocumentsApi.js +494 -0
- package/dist/apis/NFCApi.d.ts +174 -0
- package/dist/apis/NFCApi.js +268 -0
- package/dist/apis/ProcessDefinitionsApi.d.ts +168 -0
- package/dist/apis/ProcessDefinitionsApi.js +260 -0
- package/dist/apis/ProcessInstancesApi.d.ts +176 -0
- package/dist/apis/ProcessInstancesApi.js +272 -0
- package/dist/apis/ProjectGoalsApi.d.ts +180 -0
- package/dist/apis/ProjectGoalsApi.js +279 -0
- package/dist/apis/ProjectsApi.d.ts +350 -0
- package/dist/apis/ProjectsApi.js +551 -0
- package/dist/apis/ResourcesApi.d.ts +542 -0
- package/dist/apis/ResourcesApi.js +872 -0
- package/dist/apis/SkillsApi.d.ts +262 -0
- package/dist/apis/SkillsApi.js +419 -0
- package/dist/apis/TaskSchedulesApi.d.ts +150 -0
- package/dist/apis/TaskSchedulesApi.js +232 -0
- package/dist/apis/TasksApi.d.ts +372 -0
- package/dist/apis/TasksApi.js +585 -0
- package/dist/apis/TelemetryRulesApi.d.ts +150 -0
- package/dist/apis/TelemetryRulesApi.js +232 -0
- package/dist/apis/UsersApi.d.ts +247 -0
- package/dist/apis/UsersApi.js +393 -0
- package/dist/apis/index.d.ts +15 -0
- package/dist/apis/index.js +33 -0
- package/dist/esm/apis/CompaniesApi.d.ts +168 -0
- package/dist/esm/apis/CompaniesApi.js +261 -0
- package/dist/esm/apis/DepartmentsApi.d.ts +150 -0
- package/dist/esm/apis/DepartmentsApi.js +228 -0
- package/dist/esm/apis/DocumentGroupsApi.d.ts +118 -0
- package/dist/esm/apis/DocumentGroupsApi.js +179 -0
- package/dist/esm/apis/DocumentsApi.d.ts +296 -0
- package/dist/esm/apis/DocumentsApi.js +490 -0
- package/dist/esm/apis/NFCApi.d.ts +174 -0
- package/dist/esm/apis/NFCApi.js +264 -0
- package/dist/esm/apis/ProcessDefinitionsApi.d.ts +168 -0
- package/dist/esm/apis/ProcessDefinitionsApi.js +256 -0
- package/dist/esm/apis/ProcessInstancesApi.d.ts +176 -0
- package/dist/esm/apis/ProcessInstancesApi.js +268 -0
- package/dist/esm/apis/ProjectGoalsApi.d.ts +180 -0
- package/dist/esm/apis/ProjectGoalsApi.js +275 -0
- package/dist/esm/apis/ProjectsApi.d.ts +350 -0
- package/dist/esm/apis/ProjectsApi.js +547 -0
- package/dist/esm/apis/ResourcesApi.d.ts +542 -0
- package/dist/esm/apis/ResourcesApi.js +868 -0
- package/dist/esm/apis/SkillsApi.d.ts +262 -0
- package/dist/esm/apis/SkillsApi.js +415 -0
- package/dist/esm/apis/TaskSchedulesApi.d.ts +150 -0
- package/dist/esm/apis/TaskSchedulesApi.js +228 -0
- package/dist/esm/apis/TasksApi.d.ts +372 -0
- package/dist/esm/apis/TasksApi.js +581 -0
- package/dist/esm/apis/TelemetryRulesApi.d.ts +150 -0
- package/dist/esm/apis/TelemetryRulesApi.js +228 -0
- package/dist/esm/apis/UsersApi.d.ts +247 -0
- package/dist/esm/apis/UsersApi.js +389 -0
- package/dist/esm/apis/index.d.ts +15 -0
- package/dist/esm/apis/index.js +17 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AddressDTO.d.ts +86 -0
- package/dist/esm/models/AddressDTO.js +59 -0
- package/dist/esm/models/AddressRequest.d.ts +80 -0
- package/dist/esm/models/AddressRequest.js +57 -0
- package/dist/esm/models/CancelProcessInstanceRequest.d.ts +32 -0
- package/dist/esm/models/CancelProcessInstanceRequest.js +41 -0
- package/dist/esm/models/CompanyDTO.d.ts +69 -0
- package/dist/esm/models/CompanyDTO.js +54 -0
- package/dist/esm/models/CompanyRequest.d.ts +63 -0
- package/dist/esm/models/CompanyRequest.js +52 -0
- package/dist/esm/models/DepartmentDTO.d.ts +57 -0
- package/dist/esm/models/DepartmentDTO.js +50 -0
- package/dist/esm/models/DepartmentRequest.d.ts +45 -0
- package/dist/esm/models/DepartmentRequest.js +46 -0
- package/dist/esm/models/DocumentCheckInRequest.d.ts +32 -0
- package/dist/esm/models/DocumentCheckInRequest.js +43 -0
- package/dist/esm/models/DocumentGroupDTO.d.ts +44 -0
- package/dist/esm/models/DocumentGroupDTO.js +45 -0
- package/dist/esm/models/DocumentGroupRequest.d.ts +38 -0
- package/dist/esm/models/DocumentGroupRequest.js +43 -0
- package/dist/esm/models/DocumentHistoryDTO.d.ts +56 -0
- package/dist/esm/models/DocumentHistoryDTO.js +49 -0
- package/dist/esm/models/DocumentSummaryDTO.d.ts +56 -0
- package/dist/esm/models/DocumentSummaryDTO.js +49 -0
- package/dist/esm/models/GoalProgress.d.ts +44 -0
- package/dist/esm/models/GoalProgress.js +45 -0
- package/dist/esm/models/GoalRequest.d.ts +45 -0
- package/dist/esm/models/GoalRequest.js +46 -0
- package/dist/esm/models/GoalRequestPropertiesInner.d.ts +23 -0
- package/dist/esm/models/GoalRequestPropertiesInner.js +45 -0
- package/dist/esm/models/NfcUnitDTO.d.ts +97 -0
- package/dist/esm/models/NfcUnitDTO.js +69 -0
- package/dist/esm/models/NfcUnitRequest.d.ts +67 -0
- package/dist/esm/models/NfcUnitRequest.js +59 -0
- package/dist/esm/models/ProcessDefinitionDTO.d.ts +89 -0
- package/dist/esm/models/ProcessDefinitionDTO.js +65 -0
- package/dist/esm/models/ProcessInstanceDTO.d.ts +80 -0
- package/dist/esm/models/ProcessInstanceDTO.js +57 -0
- package/dist/esm/models/ProjectDTO.d.ts +86 -0
- package/dist/esm/models/ProjectDTO.js +59 -0
- package/dist/esm/models/ProjectGoalDTO.d.ts +44 -0
- package/dist/esm/models/ProjectGoalDTO.js +45 -0
- package/dist/esm/models/ProjectGoalProperty.d.ts +50 -0
- package/dist/esm/models/ProjectGoalProperty.js +69 -0
- package/dist/esm/models/ProjectGoalPropertyDocument.d.ts +33 -0
- package/dist/esm/models/ProjectGoalPropertyDocument.js +38 -0
- package/dist/esm/models/ProjectGoalPropertyNumeric.d.ts +39 -0
- package/dist/esm/models/ProjectGoalPropertyNumeric.js +38 -0
- package/dist/esm/models/ProjectProgress.d.ts +39 -0
- package/dist/esm/models/ProjectProgress.js +44 -0
- package/dist/esm/models/ProjectRequest.d.ts +62 -0
- package/dist/esm/models/ProjectRequest.js +51 -0
- package/dist/esm/models/ResourceCommandRequest.d.ts +38 -0
- package/dist/esm/models/ResourceCommandRequest.js +43 -0
- package/dist/esm/models/ResourceDTO.d.ts +152 -0
- package/dist/esm/models/ResourceDTO.js +81 -0
- package/dist/esm/models/ResourceGroupDTO.d.ts +44 -0
- package/dist/esm/models/ResourceGroupDTO.js +45 -0
- package/dist/esm/models/ResourceRequest.d.ts +116 -0
- package/dist/esm/models/ResourceRequest.js +69 -0
- package/dist/esm/models/ResourceReservationDTO.d.ts +56 -0
- package/dist/esm/models/ResourceReservationDTO.js +49 -0
- package/dist/esm/models/ResourceStatusDTO.d.ts +47 -0
- package/dist/esm/models/ResourceStatusDTO.js +48 -0
- package/dist/esm/models/ResourceValueDTO.d.ts +38 -0
- package/dist/esm/models/ResourceValueDTO.js +43 -0
- package/dist/esm/models/ResourceValueRequest.d.ts +38 -0
- package/dist/esm/models/ResourceValueRequest.js +43 -0
- package/dist/esm/models/ScanResult.d.ts +73 -0
- package/dist/esm/models/ScanResult.js +61 -0
- package/dist/esm/models/SkillCategoryDTO.d.ts +56 -0
- package/dist/esm/models/SkillCategoryDTO.js +49 -0
- package/dist/esm/models/SkillCategoryRequest.d.ts +44 -0
- package/dist/esm/models/SkillCategoryRequest.js +45 -0
- package/dist/esm/models/SkillRecordDTO.d.ts +50 -0
- package/dist/esm/models/SkillRecordDTO.js +47 -0
- package/dist/esm/models/SkillRecordRequest.d.ts +38 -0
- package/dist/esm/models/SkillRecordRequest.js +43 -0
- package/dist/esm/models/SkillRequest.d.ts +50 -0
- package/dist/esm/models/SkillRequest.js +47 -0
- package/dist/esm/models/SkillSummaryDTO.d.ts +62 -0
- package/dist/esm/models/SkillSummaryDTO.js +51 -0
- package/dist/esm/models/StartProcessInstanceRequest.d.ts +40 -0
- package/dist/esm/models/StartProcessInstanceRequest.js +43 -0
- package/dist/esm/models/TaskDTO.d.ts +95 -0
- package/dist/esm/models/TaskDTO.js +71 -0
- package/dist/esm/models/TaskRequest.d.ts +44 -0
- package/dist/esm/models/TaskRequest.js +45 -0
- package/dist/esm/models/TaskScheduleDTO.d.ts +92 -0
- package/dist/esm/models/TaskScheduleDTO.js +61 -0
- package/dist/esm/models/TaskScheduleRequest.d.ts +68 -0
- package/dist/esm/models/TaskScheduleRequest.js +53 -0
- package/dist/esm/models/TaskStatusRequest.d.ts +47 -0
- package/dist/esm/models/TaskStatusRequest.js +55 -0
- package/dist/esm/models/TelemetryRuleDTO.d.ts +118 -0
- package/dist/esm/models/TelemetryRuleDTO.js +84 -0
- package/dist/esm/models/TelemetryRuleRequest.d.ts +86 -0
- package/dist/esm/models/TelemetryRuleRequest.js +69 -0
- package/dist/esm/models/TrackingSummary.d.ts +56 -0
- package/dist/esm/models/TrackingSummary.js +49 -0
- package/dist/esm/models/UserDTO.d.ts +115 -0
- package/dist/esm/models/UserDTO.js +75 -0
- package/dist/esm/models/UserRequest.d.ts +97 -0
- package/dist/esm/models/UserRequest.js +69 -0
- package/dist/esm/models/WorkSession.d.ts +50 -0
- package/dist/esm/models/WorkSession.js +47 -0
- package/dist/esm/models/index.d.ts +53 -0
- package/dist/esm/models/index.js +55 -0
- package/dist/esm/runtime.d.ts +182 -0
- package/dist/esm/runtime.js +330 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AddressDTO.d.ts +86 -0
- package/dist/models/AddressDTO.js +66 -0
- package/dist/models/AddressRequest.d.ts +80 -0
- package/dist/models/AddressRequest.js +64 -0
- package/dist/models/CancelProcessInstanceRequest.d.ts +32 -0
- package/dist/models/CancelProcessInstanceRequest.js +48 -0
- package/dist/models/CompanyDTO.d.ts +69 -0
- package/dist/models/CompanyDTO.js +61 -0
- package/dist/models/CompanyRequest.d.ts +63 -0
- package/dist/models/CompanyRequest.js +59 -0
- package/dist/models/DepartmentDTO.d.ts +57 -0
- package/dist/models/DepartmentDTO.js +57 -0
- package/dist/models/DepartmentRequest.d.ts +45 -0
- package/dist/models/DepartmentRequest.js +53 -0
- package/dist/models/DocumentCheckInRequest.d.ts +32 -0
- package/dist/models/DocumentCheckInRequest.js +50 -0
- package/dist/models/DocumentGroupDTO.d.ts +44 -0
- package/dist/models/DocumentGroupDTO.js +52 -0
- package/dist/models/DocumentGroupRequest.d.ts +38 -0
- package/dist/models/DocumentGroupRequest.js +50 -0
- package/dist/models/DocumentHistoryDTO.d.ts +56 -0
- package/dist/models/DocumentHistoryDTO.js +56 -0
- package/dist/models/DocumentSummaryDTO.d.ts +56 -0
- package/dist/models/DocumentSummaryDTO.js +56 -0
- package/dist/models/GoalProgress.d.ts +44 -0
- package/dist/models/GoalProgress.js +52 -0
- package/dist/models/GoalRequest.d.ts +45 -0
- package/dist/models/GoalRequest.js +53 -0
- package/dist/models/GoalRequestPropertiesInner.d.ts +23 -0
- package/dist/models/GoalRequestPropertiesInner.js +51 -0
- package/dist/models/NfcUnitDTO.d.ts +97 -0
- package/dist/models/NfcUnitDTO.js +77 -0
- package/dist/models/NfcUnitRequest.d.ts +67 -0
- package/dist/models/NfcUnitRequest.js +67 -0
- package/dist/models/ProcessDefinitionDTO.d.ts +89 -0
- package/dist/models/ProcessDefinitionDTO.js +73 -0
- package/dist/models/ProcessInstanceDTO.d.ts +80 -0
- package/dist/models/ProcessInstanceDTO.js +64 -0
- package/dist/models/ProjectDTO.d.ts +86 -0
- package/dist/models/ProjectDTO.js +66 -0
- package/dist/models/ProjectGoalDTO.d.ts +44 -0
- package/dist/models/ProjectGoalDTO.js +52 -0
- package/dist/models/ProjectGoalProperty.d.ts +50 -0
- package/dist/models/ProjectGoalProperty.js +76 -0
- package/dist/models/ProjectGoalPropertyDocument.d.ts +33 -0
- package/dist/models/ProjectGoalPropertyDocument.js +45 -0
- package/dist/models/ProjectGoalPropertyNumeric.d.ts +39 -0
- package/dist/models/ProjectGoalPropertyNumeric.js +45 -0
- package/dist/models/ProjectProgress.d.ts +39 -0
- package/dist/models/ProjectProgress.js +51 -0
- package/dist/models/ProjectRequest.d.ts +62 -0
- package/dist/models/ProjectRequest.js +58 -0
- package/dist/models/ResourceCommandRequest.d.ts +38 -0
- package/dist/models/ResourceCommandRequest.js +50 -0
- package/dist/models/ResourceDTO.d.ts +152 -0
- package/dist/models/ResourceDTO.js +88 -0
- package/dist/models/ResourceGroupDTO.d.ts +44 -0
- package/dist/models/ResourceGroupDTO.js +52 -0
- package/dist/models/ResourceRequest.d.ts +116 -0
- package/dist/models/ResourceRequest.js +76 -0
- package/dist/models/ResourceReservationDTO.d.ts +56 -0
- package/dist/models/ResourceReservationDTO.js +56 -0
- package/dist/models/ResourceStatusDTO.d.ts +47 -0
- package/dist/models/ResourceStatusDTO.js +55 -0
- package/dist/models/ResourceValueDTO.d.ts +38 -0
- package/dist/models/ResourceValueDTO.js +50 -0
- package/dist/models/ResourceValueRequest.d.ts +38 -0
- package/dist/models/ResourceValueRequest.js +50 -0
- package/dist/models/ScanResult.d.ts +73 -0
- package/dist/models/ScanResult.js +69 -0
- package/dist/models/SkillCategoryDTO.d.ts +56 -0
- package/dist/models/SkillCategoryDTO.js +56 -0
- package/dist/models/SkillCategoryRequest.d.ts +44 -0
- package/dist/models/SkillCategoryRequest.js +52 -0
- package/dist/models/SkillRecordDTO.d.ts +50 -0
- package/dist/models/SkillRecordDTO.js +54 -0
- package/dist/models/SkillRecordRequest.d.ts +38 -0
- package/dist/models/SkillRecordRequest.js +50 -0
- package/dist/models/SkillRequest.d.ts +50 -0
- package/dist/models/SkillRequest.js +54 -0
- package/dist/models/SkillSummaryDTO.d.ts +62 -0
- package/dist/models/SkillSummaryDTO.js +58 -0
- package/dist/models/StartProcessInstanceRequest.d.ts +40 -0
- package/dist/models/StartProcessInstanceRequest.js +50 -0
- package/dist/models/TaskDTO.d.ts +95 -0
- package/dist/models/TaskDTO.js +79 -0
- package/dist/models/TaskRequest.d.ts +44 -0
- package/dist/models/TaskRequest.js +52 -0
- package/dist/models/TaskScheduleDTO.d.ts +92 -0
- package/dist/models/TaskScheduleDTO.js +68 -0
- package/dist/models/TaskScheduleRequest.d.ts +68 -0
- package/dist/models/TaskScheduleRequest.js +60 -0
- package/dist/models/TaskStatusRequest.d.ts +47 -0
- package/dist/models/TaskStatusRequest.js +63 -0
- package/dist/models/TelemetryRuleDTO.d.ts +118 -0
- package/dist/models/TelemetryRuleDTO.js +92 -0
- package/dist/models/TelemetryRuleRequest.d.ts +86 -0
- package/dist/models/TelemetryRuleRequest.js +77 -0
- package/dist/models/TrackingSummary.d.ts +56 -0
- package/dist/models/TrackingSummary.js +56 -0
- package/dist/models/UserDTO.d.ts +115 -0
- package/dist/models/UserDTO.js +83 -0
- package/dist/models/UserRequest.d.ts +97 -0
- package/dist/models/UserRequest.js +77 -0
- package/dist/models/WorkSession.d.ts +50 -0
- package/dist/models/WorkSession.js +54 -0
- package/dist/models/index.d.ts +53 -0
- package/dist/models/index.js +71 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +346 -0
- package/package.json +38 -0
- package/src/apis/CompaniesApi.ts +424 -0
- package/src/apis/DepartmentsApi.ts +380 -0
- package/src/apis/DocumentGroupsApi.ts +287 -0
- package/src/apis/DocumentsApi.ts +798 -0
- package/src/apis/NFCApi.ts +443 -0
- package/src/apis/ProcessDefinitionsApi.ts +410 -0
- package/src/apis/ProcessInstancesApi.ts +451 -0
- package/src/apis/ProjectGoalsApi.ts +473 -0
- package/src/apis/ProjectsApi.ts +929 -0
- package/src/apis/ResourcesApi.ts +1481 -0
- package/src/apis/SkillsApi.ts +682 -0
- package/src/apis/TaskSchedulesApi.ts +380 -0
- package/src/apis/TasksApi.ts +986 -0
- package/src/apis/TelemetryRulesApi.ts +380 -0
- package/src/apis/UsersApi.ts +648 -0
- package/src/apis/index.ts +17 -0
- package/src/index.ts +5 -0
- package/src/models/AddressDTO.ts +137 -0
- package/src/models/AddressRequest.ts +129 -0
- package/src/models/CancelProcessInstanceRequest.ts +65 -0
- package/src/models/CompanyDTO.ts +121 -0
- package/src/models/CompanyRequest.ts +113 -0
- package/src/models/DepartmentDTO.ts +105 -0
- package/src/models/DepartmentRequest.ts +89 -0
- package/src/models/DocumentCheckInRequest.ts +66 -0
- package/src/models/DocumentGroupDTO.ts +81 -0
- package/src/models/DocumentGroupRequest.ts +73 -0
- package/src/models/DocumentHistoryDTO.ts +97 -0
- package/src/models/DocumentSummaryDTO.ts +97 -0
- package/src/models/GoalProgress.ts +81 -0
- package/src/models/GoalRequest.ts +89 -0
- package/src/models/GoalRequestPropertiesInner.ts +73 -0
- package/src/models/NfcUnitDTO.ts +151 -0
- package/src/models/NfcUnitRequest.ts +111 -0
- package/src/models/ProcessDefinitionDTO.ts +141 -0
- package/src/models/ProcessInstanceDTO.ts +129 -0
- package/src/models/ProjectDTO.ts +137 -0
- package/src/models/ProjectGoalDTO.ts +81 -0
- package/src/models/ProjectGoalProperty.ts +111 -0
- package/src/models/ProjectGoalPropertyDocument.ts +73 -0
- package/src/models/ProjectGoalPropertyNumeric.ts +81 -0
- package/src/models/ProjectProgress.ts +81 -0
- package/src/models/ProjectRequest.ts +105 -0
- package/src/models/ResourceCommandRequest.ts +73 -0
- package/src/models/ResourceDTO.ts +225 -0
- package/src/models/ResourceGroupDTO.ts +81 -0
- package/src/models/ResourceRequest.ts +177 -0
- package/src/models/ResourceReservationDTO.ts +97 -0
- package/src/models/ResourceStatusDTO.ts +103 -0
- package/src/models/ResourceValueDTO.ts +73 -0
- package/src/models/ResourceValueRequest.ts +73 -0
- package/src/models/ScanResult.ts +119 -0
- package/src/models/SkillCategoryDTO.ts +97 -0
- package/src/models/SkillCategoryRequest.ts +81 -0
- package/src/models/SkillRecordDTO.ts +89 -0
- package/src/models/SkillRecordRequest.ts +73 -0
- package/src/models/SkillRequest.ts +89 -0
- package/src/models/SkillSummaryDTO.ts +105 -0
- package/src/models/StartProcessInstanceRequest.ts +73 -0
- package/src/models/TaskDTO.ts +147 -0
- package/src/models/TaskRequest.ts +81 -0
- package/src/models/TaskScheduleDTO.ts +145 -0
- package/src/models/TaskScheduleRequest.ts +113 -0
- package/src/models/TaskStatusRequest.ts +83 -0
- package/src/models/TelemetryRuleDTO.ts +176 -0
- package/src/models/TelemetryRuleRequest.ts +135 -0
- package/src/models/TrackingSummary.ts +97 -0
- package/src/models/UserDTO.ts +182 -0
- package/src/models/UserRequest.ts +158 -0
- package/src/models/WorkSession.ts +89 -0
- package/src/models/index.ts +55 -0
- package/src/runtime.ts +431 -0
|
@@ -0,0 +1,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.3.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
|
+
TaskDTO,
|
|
19
|
+
TaskRequest,
|
|
20
|
+
TaskStatusRequest,
|
|
21
|
+
TrackingSummary,
|
|
22
|
+
WorkSession,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
import {
|
|
25
|
+
TaskDTOFromJSON,
|
|
26
|
+
TaskDTOToJSON,
|
|
27
|
+
TaskRequestFromJSON,
|
|
28
|
+
TaskRequestToJSON,
|
|
29
|
+
TaskStatusRequestFromJSON,
|
|
30
|
+
TaskStatusRequestToJSON,
|
|
31
|
+
TrackingSummaryFromJSON,
|
|
32
|
+
TrackingSummaryToJSON,
|
|
33
|
+
WorkSessionFromJSON,
|
|
34
|
+
WorkSessionToJSON,
|
|
35
|
+
} from '../models/index';
|
|
36
|
+
|
|
37
|
+
export interface TaskAssignGoalRequest {
|
|
38
|
+
id: number;
|
|
39
|
+
goalId: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface TaskAssignTaskRequest {
|
|
43
|
+
id: number;
|
|
44
|
+
actorId: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface TaskChangeStatusRequest {
|
|
48
|
+
id: number;
|
|
49
|
+
taskStatusRequest: TaskStatusRequest;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface TaskCreateTaskRequest {
|
|
53
|
+
projectId: number;
|
|
54
|
+
taskRequest: TaskRequest;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface TaskDeleteTaskRequest {
|
|
58
|
+
id: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface TaskGetTaskRequest {
|
|
62
|
+
id: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface TaskGetTrackingRequest {
|
|
66
|
+
id: number;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface TaskGetTrackingSessionsRequest {
|
|
70
|
+
id: number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface TaskStartTrackingRequest {
|
|
74
|
+
id: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface TaskStopTrackingRequest {
|
|
78
|
+
id: number;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface TaskToggleTrackingRequest {
|
|
82
|
+
id: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface TaskUnassignGoalRequest {
|
|
86
|
+
id: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface TaskUnassignTaskRequest {
|
|
90
|
+
id: number;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface TaskUpdateTaskRequest {
|
|
94
|
+
id: number;
|
|
95
|
+
taskRequest: TaskRequest;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* TasksApi - interface
|
|
100
|
+
*
|
|
101
|
+
* @export
|
|
102
|
+
* @interface TasksApiInterface
|
|
103
|
+
*/
|
|
104
|
+
export interface TasksApiInterface {
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @summary Assign goal
|
|
108
|
+
* @param {number} id
|
|
109
|
+
* @param {number} goalId
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
* @memberof TasksApiInterface
|
|
113
|
+
*/
|
|
114
|
+
taskAssignGoalRaw(requestParameters: TaskAssignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Assign goal
|
|
118
|
+
*/
|
|
119
|
+
taskAssignGoal(requestParameters: TaskAssignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @summary Assign task
|
|
124
|
+
* @param {number} id
|
|
125
|
+
* @param {number} actorId
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
* @memberof TasksApiInterface
|
|
129
|
+
*/
|
|
130
|
+
taskAssignTaskRaw(requestParameters: TaskAssignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Assign task
|
|
134
|
+
*/
|
|
135
|
+
taskAssignTask(requestParameters: TaskAssignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @summary Change status
|
|
140
|
+
* @param {number} id
|
|
141
|
+
* @param {TaskStatusRequest} taskStatusRequest
|
|
142
|
+
* @param {*} [options] Override http request option.
|
|
143
|
+
* @throws {RequiredError}
|
|
144
|
+
* @memberof TasksApiInterface
|
|
145
|
+
*/
|
|
146
|
+
taskChangeStatusRaw(requestParameters: TaskChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Change status
|
|
150
|
+
*/
|
|
151
|
+
taskChangeStatus(requestParameters: TaskChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @summary Creates a task on the given project\'s blackboard
|
|
156
|
+
* @param {number} projectId
|
|
157
|
+
* @param {TaskRequest} taskRequest
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
* @memberof TasksApiInterface
|
|
161
|
+
*/
|
|
162
|
+
taskCreateTaskRaw(requestParameters: TaskCreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Creates a task on the given project\'s blackboard
|
|
166
|
+
*/
|
|
167
|
+
taskCreateTask(requestParameters: TaskCreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @summary Delete task
|
|
172
|
+
* @param {number} id
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
* @memberof TasksApiInterface
|
|
176
|
+
*/
|
|
177
|
+
taskDeleteTaskRaw(requestParameters: TaskDeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Delete task
|
|
181
|
+
*/
|
|
182
|
+
taskDeleteTask(requestParameters: TaskDeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @summary Get task
|
|
187
|
+
* @param {number} id
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
* @memberof TasksApiInterface
|
|
191
|
+
*/
|
|
192
|
+
taskGetTaskRaw(requestParameters: TaskGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Get task
|
|
196
|
+
*/
|
|
197
|
+
taskGetTask(requestParameters: TaskGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @summary Returns the total time tracked on the task (completed spans plus the running one, live)
|
|
202
|
+
* @param {number} id
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
* @memberof TasksApiInterface
|
|
206
|
+
*/
|
|
207
|
+
taskGetTrackingRaw(requestParameters: TaskGetTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TrackingSummary>>;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Returns the total time tracked on the task (completed spans plus the running one, live)
|
|
211
|
+
*/
|
|
212
|
+
taskGetTracking(requestParameters: TaskGetTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TrackingSummary>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @summary Returns the individual tracked work sessions of the task (completed spans plus the running one)
|
|
217
|
+
* @param {number} id
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
* @memberof TasksApiInterface
|
|
221
|
+
*/
|
|
222
|
+
taskGetTrackingSessionsRaw(requestParameters: TaskGetTrackingSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WorkSession>>>;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Returns the individual tracked work sessions of the task (completed spans plus the running one)
|
|
226
|
+
*/
|
|
227
|
+
taskGetTrackingSessions(requestParameters: TaskGetTrackingSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkSession>>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @summary Start tracking
|
|
232
|
+
* @param {number} id
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
* @memberof TasksApiInterface
|
|
236
|
+
*/
|
|
237
|
+
taskStartTrackingRaw(requestParameters: TaskStartTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Start tracking
|
|
241
|
+
*/
|
|
242
|
+
taskStartTracking(requestParameters: TaskStartTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @summary Stop tracking
|
|
247
|
+
* @param {number} id
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
* @memberof TasksApiInterface
|
|
251
|
+
*/
|
|
252
|
+
taskStopTrackingRaw(requestParameters: TaskStopTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Stop tracking
|
|
256
|
+
*/
|
|
257
|
+
taskStopTracking(requestParameters: TaskStopTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @summary Toggle tracking
|
|
262
|
+
* @param {number} id
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
* @memberof TasksApiInterface
|
|
266
|
+
*/
|
|
267
|
+
taskToggleTrackingRaw(requestParameters: TaskToggleTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Toggle tracking
|
|
271
|
+
*/
|
|
272
|
+
taskToggleTracking(requestParameters: TaskToggleTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
* @summary Unassign goal
|
|
277
|
+
* @param {number} id
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
* @memberof TasksApiInterface
|
|
281
|
+
*/
|
|
282
|
+
taskUnassignGoalRaw(requestParameters: TaskUnassignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Unassign goal
|
|
286
|
+
*/
|
|
287
|
+
taskUnassignGoal(requestParameters: TaskUnassignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @summary Unassign task
|
|
292
|
+
* @param {number} id
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
* @memberof TasksApiInterface
|
|
296
|
+
*/
|
|
297
|
+
taskUnassignTaskRaw(requestParameters: TaskUnassignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Unassign task
|
|
301
|
+
*/
|
|
302
|
+
taskUnassignTask(requestParameters: TaskUnassignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @summary Update task
|
|
307
|
+
* @param {number} id
|
|
308
|
+
* @param {TaskRequest} taskRequest
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
* @memberof TasksApiInterface
|
|
312
|
+
*/
|
|
313
|
+
taskUpdateTaskRaw(requestParameters: TaskUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>>;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Update task
|
|
317
|
+
*/
|
|
318
|
+
taskUpdateTask(requestParameters: TaskUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO>;
|
|
319
|
+
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
*/
|
|
325
|
+
export class TasksApi extends runtime.BaseAPI implements TasksApiInterface {
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Assign goal
|
|
329
|
+
*/
|
|
330
|
+
async taskAssignGoalRaw(requestParameters: TaskAssignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
331
|
+
if (requestParameters['id'] == null) {
|
|
332
|
+
throw new runtime.RequiredError(
|
|
333
|
+
'id',
|
|
334
|
+
'Required parameter "id" was null or undefined when calling taskAssignGoal().'
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (requestParameters['goalId'] == null) {
|
|
339
|
+
throw new runtime.RequiredError(
|
|
340
|
+
'goalId',
|
|
341
|
+
'Required parameter "goalId" was null or undefined when calling taskAssignGoal().'
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
const queryParameters: any = {};
|
|
346
|
+
|
|
347
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
348
|
+
|
|
349
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
350
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
351
|
+
}
|
|
352
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
353
|
+
const token = this.configuration.accessToken;
|
|
354
|
+
const tokenString = await token("bearerAuth", []);
|
|
355
|
+
|
|
356
|
+
if (tokenString) {
|
|
357
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
const response = await this.request({
|
|
361
|
+
path: `/api/v1/tasks/{id}/goal/{goalId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"goalId"}}`, encodeURIComponent(String(requestParameters['goalId']))),
|
|
362
|
+
method: 'PUT',
|
|
363
|
+
headers: headerParameters,
|
|
364
|
+
query: queryParameters,
|
|
365
|
+
}, initOverrides);
|
|
366
|
+
|
|
367
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Assign goal
|
|
372
|
+
*/
|
|
373
|
+
async taskAssignGoal(requestParameters: TaskAssignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
374
|
+
const response = await this.taskAssignGoalRaw(requestParameters, initOverrides);
|
|
375
|
+
return await response.value();
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Assign task
|
|
380
|
+
*/
|
|
381
|
+
async taskAssignTaskRaw(requestParameters: TaskAssignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
382
|
+
if (requestParameters['id'] == null) {
|
|
383
|
+
throw new runtime.RequiredError(
|
|
384
|
+
'id',
|
|
385
|
+
'Required parameter "id" was null or undefined when calling taskAssignTask().'
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
if (requestParameters['actorId'] == null) {
|
|
390
|
+
throw new runtime.RequiredError(
|
|
391
|
+
'actorId',
|
|
392
|
+
'Required parameter "actorId" was null or undefined when calling taskAssignTask().'
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
const queryParameters: any = {};
|
|
397
|
+
|
|
398
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
399
|
+
|
|
400
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
401
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
402
|
+
}
|
|
403
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
404
|
+
const token = this.configuration.accessToken;
|
|
405
|
+
const tokenString = await token("bearerAuth", []);
|
|
406
|
+
|
|
407
|
+
if (tokenString) {
|
|
408
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
const response = await this.request({
|
|
412
|
+
path: `/api/v1/tasks/{id}/assignee/{actorId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"actorId"}}`, encodeURIComponent(String(requestParameters['actorId']))),
|
|
413
|
+
method: 'PUT',
|
|
414
|
+
headers: headerParameters,
|
|
415
|
+
query: queryParameters,
|
|
416
|
+
}, initOverrides);
|
|
417
|
+
|
|
418
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Assign task
|
|
423
|
+
*/
|
|
424
|
+
async taskAssignTask(requestParameters: TaskAssignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
425
|
+
const response = await this.taskAssignTaskRaw(requestParameters, initOverrides);
|
|
426
|
+
return await response.value();
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Change status
|
|
431
|
+
*/
|
|
432
|
+
async taskChangeStatusRaw(requestParameters: TaskChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
433
|
+
if (requestParameters['id'] == null) {
|
|
434
|
+
throw new runtime.RequiredError(
|
|
435
|
+
'id',
|
|
436
|
+
'Required parameter "id" was null or undefined when calling taskChangeStatus().'
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
if (requestParameters['taskStatusRequest'] == null) {
|
|
441
|
+
throw new runtime.RequiredError(
|
|
442
|
+
'taskStatusRequest',
|
|
443
|
+
'Required parameter "taskStatusRequest" was null or undefined when calling taskChangeStatus().'
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
const queryParameters: any = {};
|
|
448
|
+
|
|
449
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
450
|
+
|
|
451
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
452
|
+
|
|
453
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
454
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
455
|
+
}
|
|
456
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
457
|
+
const token = this.configuration.accessToken;
|
|
458
|
+
const tokenString = await token("bearerAuth", []);
|
|
459
|
+
|
|
460
|
+
if (tokenString) {
|
|
461
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
const response = await this.request({
|
|
465
|
+
path: `/api/v1/tasks/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
466
|
+
method: 'PUT',
|
|
467
|
+
headers: headerParameters,
|
|
468
|
+
query: queryParameters,
|
|
469
|
+
body: TaskStatusRequestToJSON(requestParameters['taskStatusRequest']),
|
|
470
|
+
}, initOverrides);
|
|
471
|
+
|
|
472
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Change status
|
|
477
|
+
*/
|
|
478
|
+
async taskChangeStatus(requestParameters: TaskChangeStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
479
|
+
const response = await this.taskChangeStatusRaw(requestParameters, initOverrides);
|
|
480
|
+
return await response.value();
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Creates a task on the given project\'s blackboard
|
|
485
|
+
*/
|
|
486
|
+
async taskCreateTaskRaw(requestParameters: TaskCreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
487
|
+
if (requestParameters['projectId'] == null) {
|
|
488
|
+
throw new runtime.RequiredError(
|
|
489
|
+
'projectId',
|
|
490
|
+
'Required parameter "projectId" was null or undefined when calling taskCreateTask().'
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
if (requestParameters['taskRequest'] == null) {
|
|
495
|
+
throw new runtime.RequiredError(
|
|
496
|
+
'taskRequest',
|
|
497
|
+
'Required parameter "taskRequest" was null or undefined when calling taskCreateTask().'
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
const queryParameters: any = {};
|
|
502
|
+
|
|
503
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
504
|
+
|
|
505
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
506
|
+
|
|
507
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
508
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
509
|
+
}
|
|
510
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
511
|
+
const token = this.configuration.accessToken;
|
|
512
|
+
const tokenString = await token("bearerAuth", []);
|
|
513
|
+
|
|
514
|
+
if (tokenString) {
|
|
515
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
const response = await this.request({
|
|
519
|
+
path: `/api/v1/projects/{projectId}/tasks`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
520
|
+
method: 'POST',
|
|
521
|
+
headers: headerParameters,
|
|
522
|
+
query: queryParameters,
|
|
523
|
+
body: TaskRequestToJSON(requestParameters['taskRequest']),
|
|
524
|
+
}, initOverrides);
|
|
525
|
+
|
|
526
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Creates a task on the given project\'s blackboard
|
|
531
|
+
*/
|
|
532
|
+
async taskCreateTask(requestParameters: TaskCreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
533
|
+
const response = await this.taskCreateTaskRaw(requestParameters, initOverrides);
|
|
534
|
+
return await response.value();
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Delete task
|
|
539
|
+
*/
|
|
540
|
+
async taskDeleteTaskRaw(requestParameters: TaskDeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
541
|
+
if (requestParameters['id'] == null) {
|
|
542
|
+
throw new runtime.RequiredError(
|
|
543
|
+
'id',
|
|
544
|
+
'Required parameter "id" was null or undefined when calling taskDeleteTask().'
|
|
545
|
+
);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
const queryParameters: any = {};
|
|
549
|
+
|
|
550
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
551
|
+
|
|
552
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
553
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
554
|
+
}
|
|
555
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
556
|
+
const token = this.configuration.accessToken;
|
|
557
|
+
const tokenString = await token("bearerAuth", []);
|
|
558
|
+
|
|
559
|
+
if (tokenString) {
|
|
560
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
const response = await this.request({
|
|
564
|
+
path: `/api/v1/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
565
|
+
method: 'DELETE',
|
|
566
|
+
headers: headerParameters,
|
|
567
|
+
query: queryParameters,
|
|
568
|
+
}, initOverrides);
|
|
569
|
+
|
|
570
|
+
return new runtime.VoidApiResponse(response);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Delete task
|
|
575
|
+
*/
|
|
576
|
+
async taskDeleteTask(requestParameters: TaskDeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
577
|
+
await this.taskDeleteTaskRaw(requestParameters, initOverrides);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Get task
|
|
582
|
+
*/
|
|
583
|
+
async taskGetTaskRaw(requestParameters: TaskGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
584
|
+
if (requestParameters['id'] == null) {
|
|
585
|
+
throw new runtime.RequiredError(
|
|
586
|
+
'id',
|
|
587
|
+
'Required parameter "id" was null or undefined when calling taskGetTask().'
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
const queryParameters: any = {};
|
|
592
|
+
|
|
593
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
594
|
+
|
|
595
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
596
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
597
|
+
}
|
|
598
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
599
|
+
const token = this.configuration.accessToken;
|
|
600
|
+
const tokenString = await token("bearerAuth", []);
|
|
601
|
+
|
|
602
|
+
if (tokenString) {
|
|
603
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
const response = await this.request({
|
|
607
|
+
path: `/api/v1/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
608
|
+
method: 'GET',
|
|
609
|
+
headers: headerParameters,
|
|
610
|
+
query: queryParameters,
|
|
611
|
+
}, initOverrides);
|
|
612
|
+
|
|
613
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Get task
|
|
618
|
+
*/
|
|
619
|
+
async taskGetTask(requestParameters: TaskGetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
620
|
+
const response = await this.taskGetTaskRaw(requestParameters, initOverrides);
|
|
621
|
+
return await response.value();
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Returns the total time tracked on the task (completed spans plus the running one, live)
|
|
626
|
+
*/
|
|
627
|
+
async taskGetTrackingRaw(requestParameters: TaskGetTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TrackingSummary>> {
|
|
628
|
+
if (requestParameters['id'] == null) {
|
|
629
|
+
throw new runtime.RequiredError(
|
|
630
|
+
'id',
|
|
631
|
+
'Required parameter "id" was null or undefined when calling taskGetTracking().'
|
|
632
|
+
);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
const queryParameters: any = {};
|
|
636
|
+
|
|
637
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
638
|
+
|
|
639
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
640
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
641
|
+
}
|
|
642
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
643
|
+
const token = this.configuration.accessToken;
|
|
644
|
+
const tokenString = await token("bearerAuth", []);
|
|
645
|
+
|
|
646
|
+
if (tokenString) {
|
|
647
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
const response = await this.request({
|
|
651
|
+
path: `/api/v1/tasks/{id}/tracking`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
652
|
+
method: 'GET',
|
|
653
|
+
headers: headerParameters,
|
|
654
|
+
query: queryParameters,
|
|
655
|
+
}, initOverrides);
|
|
656
|
+
|
|
657
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TrackingSummaryFromJSON(jsonValue));
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Returns the total time tracked on the task (completed spans plus the running one, live)
|
|
662
|
+
*/
|
|
663
|
+
async taskGetTracking(requestParameters: TaskGetTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TrackingSummary> {
|
|
664
|
+
const response = await this.taskGetTrackingRaw(requestParameters, initOverrides);
|
|
665
|
+
return await response.value();
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Returns the individual tracked work sessions of the task (completed spans plus the running one)
|
|
670
|
+
*/
|
|
671
|
+
async taskGetTrackingSessionsRaw(requestParameters: TaskGetTrackingSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WorkSession>>> {
|
|
672
|
+
if (requestParameters['id'] == null) {
|
|
673
|
+
throw new runtime.RequiredError(
|
|
674
|
+
'id',
|
|
675
|
+
'Required parameter "id" was null or undefined when calling taskGetTrackingSessions().'
|
|
676
|
+
);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
const queryParameters: any = {};
|
|
680
|
+
|
|
681
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
682
|
+
|
|
683
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
684
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
685
|
+
}
|
|
686
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
687
|
+
const token = this.configuration.accessToken;
|
|
688
|
+
const tokenString = await token("bearerAuth", []);
|
|
689
|
+
|
|
690
|
+
if (tokenString) {
|
|
691
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
const response = await this.request({
|
|
695
|
+
path: `/api/v1/tasks/{id}/tracking/sessions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
696
|
+
method: 'GET',
|
|
697
|
+
headers: headerParameters,
|
|
698
|
+
query: queryParameters,
|
|
699
|
+
}, initOverrides);
|
|
700
|
+
|
|
701
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WorkSessionFromJSON));
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Returns the individual tracked work sessions of the task (completed spans plus the running one)
|
|
706
|
+
*/
|
|
707
|
+
async taskGetTrackingSessions(requestParameters: TaskGetTrackingSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkSession>> {
|
|
708
|
+
const response = await this.taskGetTrackingSessionsRaw(requestParameters, initOverrides);
|
|
709
|
+
return await response.value();
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Start tracking
|
|
714
|
+
*/
|
|
715
|
+
async taskStartTrackingRaw(requestParameters: TaskStartTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
716
|
+
if (requestParameters['id'] == null) {
|
|
717
|
+
throw new runtime.RequiredError(
|
|
718
|
+
'id',
|
|
719
|
+
'Required parameter "id" was null or undefined when calling taskStartTracking().'
|
|
720
|
+
);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
const queryParameters: any = {};
|
|
724
|
+
|
|
725
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
726
|
+
|
|
727
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
728
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
729
|
+
}
|
|
730
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
731
|
+
const token = this.configuration.accessToken;
|
|
732
|
+
const tokenString = await token("bearerAuth", []);
|
|
733
|
+
|
|
734
|
+
if (tokenString) {
|
|
735
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
const response = await this.request({
|
|
739
|
+
path: `/api/v1/tasks/{id}/tracking/start`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
740
|
+
method: 'POST',
|
|
741
|
+
headers: headerParameters,
|
|
742
|
+
query: queryParameters,
|
|
743
|
+
}, initOverrides);
|
|
744
|
+
|
|
745
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Start tracking
|
|
750
|
+
*/
|
|
751
|
+
async taskStartTracking(requestParameters: TaskStartTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
752
|
+
const response = await this.taskStartTrackingRaw(requestParameters, initOverrides);
|
|
753
|
+
return await response.value();
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Stop tracking
|
|
758
|
+
*/
|
|
759
|
+
async taskStopTrackingRaw(requestParameters: TaskStopTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
760
|
+
if (requestParameters['id'] == null) {
|
|
761
|
+
throw new runtime.RequiredError(
|
|
762
|
+
'id',
|
|
763
|
+
'Required parameter "id" was null or undefined when calling taskStopTracking().'
|
|
764
|
+
);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
const queryParameters: any = {};
|
|
768
|
+
|
|
769
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
770
|
+
|
|
771
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
772
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
773
|
+
}
|
|
774
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
775
|
+
const token = this.configuration.accessToken;
|
|
776
|
+
const tokenString = await token("bearerAuth", []);
|
|
777
|
+
|
|
778
|
+
if (tokenString) {
|
|
779
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
const response = await this.request({
|
|
783
|
+
path: `/api/v1/tasks/{id}/tracking/stop`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
784
|
+
method: 'POST',
|
|
785
|
+
headers: headerParameters,
|
|
786
|
+
query: queryParameters,
|
|
787
|
+
}, initOverrides);
|
|
788
|
+
|
|
789
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Stop tracking
|
|
794
|
+
*/
|
|
795
|
+
async taskStopTracking(requestParameters: TaskStopTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
796
|
+
const response = await this.taskStopTrackingRaw(requestParameters, initOverrides);
|
|
797
|
+
return await response.value();
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Toggle tracking
|
|
802
|
+
*/
|
|
803
|
+
async taskToggleTrackingRaw(requestParameters: TaskToggleTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
804
|
+
if (requestParameters['id'] == null) {
|
|
805
|
+
throw new runtime.RequiredError(
|
|
806
|
+
'id',
|
|
807
|
+
'Required parameter "id" was null or undefined when calling taskToggleTracking().'
|
|
808
|
+
);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
const queryParameters: any = {};
|
|
812
|
+
|
|
813
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
814
|
+
|
|
815
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
816
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
817
|
+
}
|
|
818
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
819
|
+
const token = this.configuration.accessToken;
|
|
820
|
+
const tokenString = await token("bearerAuth", []);
|
|
821
|
+
|
|
822
|
+
if (tokenString) {
|
|
823
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
const response = await this.request({
|
|
827
|
+
path: `/api/v1/tasks/{id}/tracking/toggle`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
828
|
+
method: 'POST',
|
|
829
|
+
headers: headerParameters,
|
|
830
|
+
query: queryParameters,
|
|
831
|
+
}, initOverrides);
|
|
832
|
+
|
|
833
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Toggle tracking
|
|
838
|
+
*/
|
|
839
|
+
async taskToggleTracking(requestParameters: TaskToggleTrackingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
840
|
+
const response = await this.taskToggleTrackingRaw(requestParameters, initOverrides);
|
|
841
|
+
return await response.value();
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Unassign goal
|
|
846
|
+
*/
|
|
847
|
+
async taskUnassignGoalRaw(requestParameters: TaskUnassignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
848
|
+
if (requestParameters['id'] == null) {
|
|
849
|
+
throw new runtime.RequiredError(
|
|
850
|
+
'id',
|
|
851
|
+
'Required parameter "id" was null or undefined when calling taskUnassignGoal().'
|
|
852
|
+
);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
const queryParameters: any = {};
|
|
856
|
+
|
|
857
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
858
|
+
|
|
859
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
860
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
861
|
+
}
|
|
862
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
863
|
+
const token = this.configuration.accessToken;
|
|
864
|
+
const tokenString = await token("bearerAuth", []);
|
|
865
|
+
|
|
866
|
+
if (tokenString) {
|
|
867
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
const response = await this.request({
|
|
871
|
+
path: `/api/v1/tasks/{id}/goal`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
872
|
+
method: 'DELETE',
|
|
873
|
+
headers: headerParameters,
|
|
874
|
+
query: queryParameters,
|
|
875
|
+
}, initOverrides);
|
|
876
|
+
|
|
877
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Unassign goal
|
|
882
|
+
*/
|
|
883
|
+
async taskUnassignGoal(requestParameters: TaskUnassignGoalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
884
|
+
const response = await this.taskUnassignGoalRaw(requestParameters, initOverrides);
|
|
885
|
+
return await response.value();
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* Unassign task
|
|
890
|
+
*/
|
|
891
|
+
async taskUnassignTaskRaw(requestParameters: TaskUnassignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
892
|
+
if (requestParameters['id'] == null) {
|
|
893
|
+
throw new runtime.RequiredError(
|
|
894
|
+
'id',
|
|
895
|
+
'Required parameter "id" was null or undefined when calling taskUnassignTask().'
|
|
896
|
+
);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
const queryParameters: any = {};
|
|
900
|
+
|
|
901
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
902
|
+
|
|
903
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
904
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
905
|
+
}
|
|
906
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
907
|
+
const token = this.configuration.accessToken;
|
|
908
|
+
const tokenString = await token("bearerAuth", []);
|
|
909
|
+
|
|
910
|
+
if (tokenString) {
|
|
911
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
const response = await this.request({
|
|
915
|
+
path: `/api/v1/tasks/{id}/assignee`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
916
|
+
method: 'DELETE',
|
|
917
|
+
headers: headerParameters,
|
|
918
|
+
query: queryParameters,
|
|
919
|
+
}, initOverrides);
|
|
920
|
+
|
|
921
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Unassign task
|
|
926
|
+
*/
|
|
927
|
+
async taskUnassignTask(requestParameters: TaskUnassignTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
928
|
+
const response = await this.taskUnassignTaskRaw(requestParameters, initOverrides);
|
|
929
|
+
return await response.value();
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Update task
|
|
934
|
+
*/
|
|
935
|
+
async taskUpdateTaskRaw(requestParameters: TaskUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDTO>> {
|
|
936
|
+
if (requestParameters['id'] == null) {
|
|
937
|
+
throw new runtime.RequiredError(
|
|
938
|
+
'id',
|
|
939
|
+
'Required parameter "id" was null or undefined when calling taskUpdateTask().'
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
if (requestParameters['taskRequest'] == null) {
|
|
944
|
+
throw new runtime.RequiredError(
|
|
945
|
+
'taskRequest',
|
|
946
|
+
'Required parameter "taskRequest" was null or undefined when calling taskUpdateTask().'
|
|
947
|
+
);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
const queryParameters: any = {};
|
|
951
|
+
|
|
952
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
953
|
+
|
|
954
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
955
|
+
|
|
956
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
957
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
958
|
+
}
|
|
959
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
960
|
+
const token = this.configuration.accessToken;
|
|
961
|
+
const tokenString = await token("bearerAuth", []);
|
|
962
|
+
|
|
963
|
+
if (tokenString) {
|
|
964
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
const response = await this.request({
|
|
968
|
+
path: `/api/v1/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
969
|
+
method: 'PATCH',
|
|
970
|
+
headers: headerParameters,
|
|
971
|
+
query: queryParameters,
|
|
972
|
+
body: TaskRequestToJSON(requestParameters['taskRequest']),
|
|
973
|
+
}, initOverrides);
|
|
974
|
+
|
|
975
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDTOFromJSON(jsonValue));
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* Update task
|
|
980
|
+
*/
|
|
981
|
+
async taskUpdateTask(requestParameters: TaskUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDTO> {
|
|
982
|
+
const response = await this.taskUpdateTaskRaw(requestParameters, initOverrides);
|
|
983
|
+
return await response.value();
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
}
|