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,929 @@
|
|
|
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
|
+
ProjectDTO,
|
|
19
|
+
ProjectRequest,
|
|
20
|
+
TaskDTO,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
ProjectDTOFromJSON,
|
|
24
|
+
ProjectDTOToJSON,
|
|
25
|
+
ProjectRequestFromJSON,
|
|
26
|
+
ProjectRequestToJSON,
|
|
27
|
+
TaskDTOFromJSON,
|
|
28
|
+
TaskDTOToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface ProjectAddDocumentRequest {
|
|
32
|
+
id: number;
|
|
33
|
+
documentInfoId: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface ProjectAddMemberRequest {
|
|
37
|
+
id: number;
|
|
38
|
+
userId: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ProjectAddResourceRequest {
|
|
42
|
+
id: number;
|
|
43
|
+
resourceId: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ProjectCreateProjectRequest {
|
|
47
|
+
projectRequest: ProjectRequest;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface ProjectDeleteProjectRequest {
|
|
51
|
+
id: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface ProjectGetProjectRequest {
|
|
55
|
+
id: number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface ProjectGetTasksRequest {
|
|
59
|
+
id: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface ProjectRemoveDocumentRequest {
|
|
63
|
+
id: number;
|
|
64
|
+
documentInfoId: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface ProjectRemoveMemberRequest {
|
|
68
|
+
id: number;
|
|
69
|
+
userId: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface ProjectRemoveResourceRequest {
|
|
73
|
+
id: number;
|
|
74
|
+
resourceId: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface ProjectTransferManagerRequest {
|
|
78
|
+
id: number;
|
|
79
|
+
userId: number;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ProjectUpdateProjectRequest {
|
|
83
|
+
id: number;
|
|
84
|
+
projectRequest: ProjectRequest;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* ProjectsApi - interface
|
|
89
|
+
*
|
|
90
|
+
* @export
|
|
91
|
+
* @interface ProjectsApiInterface
|
|
92
|
+
*/
|
|
93
|
+
export interface ProjectsApiInterface {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @summary Add document
|
|
97
|
+
* @param {number} id
|
|
98
|
+
* @param {number} documentInfoId
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
* @memberof ProjectsApiInterface
|
|
102
|
+
*/
|
|
103
|
+
projectAddDocumentRaw(requestParameters: ProjectAddDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Add document
|
|
107
|
+
*/
|
|
108
|
+
projectAddDocument(requestParameters: ProjectAddDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @summary Add member
|
|
113
|
+
* @param {number} id
|
|
114
|
+
* @param {number} userId
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
* @memberof ProjectsApiInterface
|
|
118
|
+
*/
|
|
119
|
+
projectAddMemberRaw(requestParameters: ProjectAddMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Add member
|
|
123
|
+
*/
|
|
124
|
+
projectAddMember(requestParameters: ProjectAddMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @summary Add resource
|
|
129
|
+
* @param {number} id
|
|
130
|
+
* @param {number} resourceId
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
* @memberof ProjectsApiInterface
|
|
134
|
+
*/
|
|
135
|
+
projectAddResourceRaw(requestParameters: ProjectAddResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Add resource
|
|
139
|
+
*/
|
|
140
|
+
projectAddResource(requestParameters: ProjectAddResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Creates a new project (the caller becomes manager and first member)
|
|
145
|
+
* @param {ProjectRequest} projectRequest
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
* @memberof ProjectsApiInterface
|
|
149
|
+
*/
|
|
150
|
+
projectCreateProjectRaw(requestParameters: ProjectCreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Creates a new project (the caller becomes manager and first member)
|
|
154
|
+
*/
|
|
155
|
+
projectCreateProject(requestParameters: ProjectCreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @summary Delete project
|
|
160
|
+
* @param {number} id
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
* @memberof ProjectsApiInterface
|
|
164
|
+
*/
|
|
165
|
+
projectDeleteProjectRaw(requestParameters: ProjectDeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Delete project
|
|
169
|
+
*/
|
|
170
|
+
projectDeleteProject(requestParameters: ProjectDeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @summary Returns the projects the caller manages or participates in
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
* @memberof ProjectsApiInterface
|
|
178
|
+
*/
|
|
179
|
+
projectGetMyProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectDTO>>>;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Returns the projects the caller manages or participates in
|
|
183
|
+
*/
|
|
184
|
+
projectGetMyProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectDTO>>;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @summary Get project
|
|
189
|
+
* @param {number} id
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
* @memberof ProjectsApiInterface
|
|
193
|
+
*/
|
|
194
|
+
projectGetProjectRaw(requestParameters: ProjectGetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Get project
|
|
198
|
+
*/
|
|
199
|
+
projectGetProject(requestParameters: ProjectGetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @summary Returns all tasks of a project (caller must be manager or member)
|
|
204
|
+
* @param {number} id
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
* @memberof ProjectsApiInterface
|
|
208
|
+
*/
|
|
209
|
+
projectGetTasksRaw(requestParameters: ProjectGetTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TaskDTO>>>;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Returns all tasks of a project (caller must be manager or member)
|
|
213
|
+
*/
|
|
214
|
+
projectGetTasks(requestParameters: ProjectGetTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TaskDTO>>;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @summary Remove document
|
|
219
|
+
* @param {number} id
|
|
220
|
+
* @param {number} documentInfoId
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
* @memberof ProjectsApiInterface
|
|
224
|
+
*/
|
|
225
|
+
projectRemoveDocumentRaw(requestParameters: ProjectRemoveDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Remove document
|
|
229
|
+
*/
|
|
230
|
+
projectRemoveDocument(requestParameters: ProjectRemoveDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @summary Remove member
|
|
235
|
+
* @param {number} id
|
|
236
|
+
* @param {number} userId
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
* @memberof ProjectsApiInterface
|
|
240
|
+
*/
|
|
241
|
+
projectRemoveMemberRaw(requestParameters: ProjectRemoveMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Remove member
|
|
245
|
+
*/
|
|
246
|
+
projectRemoveMember(requestParameters: ProjectRemoveMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @summary Remove resource
|
|
251
|
+
* @param {number} id
|
|
252
|
+
* @param {number} resourceId
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
* @memberof ProjectsApiInterface
|
|
256
|
+
*/
|
|
257
|
+
projectRemoveResourceRaw(requestParameters: ProjectRemoveResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Remove resource
|
|
261
|
+
*/
|
|
262
|
+
projectRemoveResource(requestParameters: ProjectRemoveResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Hands the project over to another of its members
|
|
267
|
+
* @param {number} id
|
|
268
|
+
* @param {number} userId
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
* @memberof ProjectsApiInterface
|
|
272
|
+
*/
|
|
273
|
+
projectTransferManagerRaw(requestParameters: ProjectTransferManagerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Hands the project over to another of its members
|
|
277
|
+
*/
|
|
278
|
+
projectTransferManager(requestParameters: ProjectTransferManagerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
*
|
|
282
|
+
* @summary Update project
|
|
283
|
+
* @param {number} id
|
|
284
|
+
* @param {ProjectRequest} projectRequest
|
|
285
|
+
* @param {*} [options] Override http request option.
|
|
286
|
+
* @throws {RequiredError}
|
|
287
|
+
* @memberof ProjectsApiInterface
|
|
288
|
+
*/
|
|
289
|
+
projectUpdateProjectRaw(requestParameters: ProjectUpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>>;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Update project
|
|
293
|
+
*/
|
|
294
|
+
projectUpdateProject(requestParameters: ProjectUpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO>;
|
|
295
|
+
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
*
|
|
300
|
+
*/
|
|
301
|
+
export class ProjectsApi extends runtime.BaseAPI implements ProjectsApiInterface {
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Add document
|
|
305
|
+
*/
|
|
306
|
+
async projectAddDocumentRaw(requestParameters: ProjectAddDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
307
|
+
if (requestParameters['id'] == null) {
|
|
308
|
+
throw new runtime.RequiredError(
|
|
309
|
+
'id',
|
|
310
|
+
'Required parameter "id" was null or undefined when calling projectAddDocument().'
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
if (requestParameters['documentInfoId'] == null) {
|
|
315
|
+
throw new runtime.RequiredError(
|
|
316
|
+
'documentInfoId',
|
|
317
|
+
'Required parameter "documentInfoId" was null or undefined when calling projectAddDocument().'
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
const queryParameters: any = {};
|
|
322
|
+
|
|
323
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
324
|
+
|
|
325
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
326
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
327
|
+
}
|
|
328
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
329
|
+
const token = this.configuration.accessToken;
|
|
330
|
+
const tokenString = await token("bearerAuth", []);
|
|
331
|
+
|
|
332
|
+
if (tokenString) {
|
|
333
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
const response = await this.request({
|
|
337
|
+
path: `/api/v1/projects/{id}/documents/{documentInfoId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"documentInfoId"}}`, encodeURIComponent(String(requestParameters['documentInfoId']))),
|
|
338
|
+
method: 'POST',
|
|
339
|
+
headers: headerParameters,
|
|
340
|
+
query: queryParameters,
|
|
341
|
+
}, initOverrides);
|
|
342
|
+
|
|
343
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Add document
|
|
348
|
+
*/
|
|
349
|
+
async projectAddDocument(requestParameters: ProjectAddDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
350
|
+
const response = await this.projectAddDocumentRaw(requestParameters, initOverrides);
|
|
351
|
+
return await response.value();
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Add member
|
|
356
|
+
*/
|
|
357
|
+
async projectAddMemberRaw(requestParameters: ProjectAddMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
358
|
+
if (requestParameters['id'] == null) {
|
|
359
|
+
throw new runtime.RequiredError(
|
|
360
|
+
'id',
|
|
361
|
+
'Required parameter "id" was null or undefined when calling projectAddMember().'
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
if (requestParameters['userId'] == null) {
|
|
366
|
+
throw new runtime.RequiredError(
|
|
367
|
+
'userId',
|
|
368
|
+
'Required parameter "userId" was null or undefined when calling projectAddMember().'
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
const queryParameters: any = {};
|
|
373
|
+
|
|
374
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
375
|
+
|
|
376
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
377
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
378
|
+
}
|
|
379
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
380
|
+
const token = this.configuration.accessToken;
|
|
381
|
+
const tokenString = await token("bearerAuth", []);
|
|
382
|
+
|
|
383
|
+
if (tokenString) {
|
|
384
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
const response = await this.request({
|
|
388
|
+
path: `/api/v1/projects/{id}/members/{userId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
389
|
+
method: 'POST',
|
|
390
|
+
headers: headerParameters,
|
|
391
|
+
query: queryParameters,
|
|
392
|
+
}, initOverrides);
|
|
393
|
+
|
|
394
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Add member
|
|
399
|
+
*/
|
|
400
|
+
async projectAddMember(requestParameters: ProjectAddMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
401
|
+
const response = await this.projectAddMemberRaw(requestParameters, initOverrides);
|
|
402
|
+
return await response.value();
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Add resource
|
|
407
|
+
*/
|
|
408
|
+
async projectAddResourceRaw(requestParameters: ProjectAddResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
409
|
+
if (requestParameters['id'] == null) {
|
|
410
|
+
throw new runtime.RequiredError(
|
|
411
|
+
'id',
|
|
412
|
+
'Required parameter "id" was null or undefined when calling projectAddResource().'
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (requestParameters['resourceId'] == null) {
|
|
417
|
+
throw new runtime.RequiredError(
|
|
418
|
+
'resourceId',
|
|
419
|
+
'Required parameter "resourceId" was null or undefined when calling projectAddResource().'
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
const queryParameters: any = {};
|
|
424
|
+
|
|
425
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
426
|
+
|
|
427
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
428
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
429
|
+
}
|
|
430
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
431
|
+
const token = this.configuration.accessToken;
|
|
432
|
+
const tokenString = await token("bearerAuth", []);
|
|
433
|
+
|
|
434
|
+
if (tokenString) {
|
|
435
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
const response = await this.request({
|
|
439
|
+
path: `/api/v1/projects/{id}/resources/{resourceId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"resourceId"}}`, encodeURIComponent(String(requestParameters['resourceId']))),
|
|
440
|
+
method: 'POST',
|
|
441
|
+
headers: headerParameters,
|
|
442
|
+
query: queryParameters,
|
|
443
|
+
}, initOverrides);
|
|
444
|
+
|
|
445
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Add resource
|
|
450
|
+
*/
|
|
451
|
+
async projectAddResource(requestParameters: ProjectAddResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
452
|
+
const response = await this.projectAddResourceRaw(requestParameters, initOverrides);
|
|
453
|
+
return await response.value();
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Creates a new project (the caller becomes manager and first member)
|
|
458
|
+
*/
|
|
459
|
+
async projectCreateProjectRaw(requestParameters: ProjectCreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
460
|
+
if (requestParameters['projectRequest'] == null) {
|
|
461
|
+
throw new runtime.RequiredError(
|
|
462
|
+
'projectRequest',
|
|
463
|
+
'Required parameter "projectRequest" was null or undefined when calling projectCreateProject().'
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
const queryParameters: any = {};
|
|
468
|
+
|
|
469
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
470
|
+
|
|
471
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
472
|
+
|
|
473
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
474
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
475
|
+
}
|
|
476
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
477
|
+
const token = this.configuration.accessToken;
|
|
478
|
+
const tokenString = await token("bearerAuth", []);
|
|
479
|
+
|
|
480
|
+
if (tokenString) {
|
|
481
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
const response = await this.request({
|
|
485
|
+
path: `/api/v1/projects`,
|
|
486
|
+
method: 'POST',
|
|
487
|
+
headers: headerParameters,
|
|
488
|
+
query: queryParameters,
|
|
489
|
+
body: ProjectRequestToJSON(requestParameters['projectRequest']),
|
|
490
|
+
}, initOverrides);
|
|
491
|
+
|
|
492
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Creates a new project (the caller becomes manager and first member)
|
|
497
|
+
*/
|
|
498
|
+
async projectCreateProject(requestParameters: ProjectCreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
499
|
+
const response = await this.projectCreateProjectRaw(requestParameters, initOverrides);
|
|
500
|
+
return await response.value();
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Delete project
|
|
505
|
+
*/
|
|
506
|
+
async projectDeleteProjectRaw(requestParameters: ProjectDeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
507
|
+
if (requestParameters['id'] == null) {
|
|
508
|
+
throw new runtime.RequiredError(
|
|
509
|
+
'id',
|
|
510
|
+
'Required parameter "id" was null or undefined when calling projectDeleteProject().'
|
|
511
|
+
);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
const queryParameters: any = {};
|
|
515
|
+
|
|
516
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
517
|
+
|
|
518
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
519
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
520
|
+
}
|
|
521
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
522
|
+
const token = this.configuration.accessToken;
|
|
523
|
+
const tokenString = await token("bearerAuth", []);
|
|
524
|
+
|
|
525
|
+
if (tokenString) {
|
|
526
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
const response = await this.request({
|
|
530
|
+
path: `/api/v1/projects/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
531
|
+
method: 'DELETE',
|
|
532
|
+
headers: headerParameters,
|
|
533
|
+
query: queryParameters,
|
|
534
|
+
}, initOverrides);
|
|
535
|
+
|
|
536
|
+
return new runtime.VoidApiResponse(response);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Delete project
|
|
541
|
+
*/
|
|
542
|
+
async projectDeleteProject(requestParameters: ProjectDeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
543
|
+
await this.projectDeleteProjectRaw(requestParameters, initOverrides);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Returns the projects the caller manages or participates in
|
|
548
|
+
*/
|
|
549
|
+
async projectGetMyProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectDTO>>> {
|
|
550
|
+
const queryParameters: any = {};
|
|
551
|
+
|
|
552
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
553
|
+
|
|
554
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
555
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
556
|
+
}
|
|
557
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
558
|
+
const token = this.configuration.accessToken;
|
|
559
|
+
const tokenString = await token("bearerAuth", []);
|
|
560
|
+
|
|
561
|
+
if (tokenString) {
|
|
562
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
const response = await this.request({
|
|
566
|
+
path: `/api/v1/projects`,
|
|
567
|
+
method: 'GET',
|
|
568
|
+
headers: headerParameters,
|
|
569
|
+
query: queryParameters,
|
|
570
|
+
}, initOverrides);
|
|
571
|
+
|
|
572
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectDTOFromJSON));
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Returns the projects the caller manages or participates in
|
|
577
|
+
*/
|
|
578
|
+
async projectGetMyProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectDTO>> {
|
|
579
|
+
const response = await this.projectGetMyProjectsRaw(initOverrides);
|
|
580
|
+
return await response.value();
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Get project
|
|
585
|
+
*/
|
|
586
|
+
async projectGetProjectRaw(requestParameters: ProjectGetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
587
|
+
if (requestParameters['id'] == null) {
|
|
588
|
+
throw new runtime.RequiredError(
|
|
589
|
+
'id',
|
|
590
|
+
'Required parameter "id" was null or undefined when calling projectGetProject().'
|
|
591
|
+
);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
const queryParameters: any = {};
|
|
595
|
+
|
|
596
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
597
|
+
|
|
598
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
599
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
600
|
+
}
|
|
601
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
602
|
+
const token = this.configuration.accessToken;
|
|
603
|
+
const tokenString = await token("bearerAuth", []);
|
|
604
|
+
|
|
605
|
+
if (tokenString) {
|
|
606
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
const response = await this.request({
|
|
610
|
+
path: `/api/v1/projects/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
611
|
+
method: 'GET',
|
|
612
|
+
headers: headerParameters,
|
|
613
|
+
query: queryParameters,
|
|
614
|
+
}, initOverrides);
|
|
615
|
+
|
|
616
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Get project
|
|
621
|
+
*/
|
|
622
|
+
async projectGetProject(requestParameters: ProjectGetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
623
|
+
const response = await this.projectGetProjectRaw(requestParameters, initOverrides);
|
|
624
|
+
return await response.value();
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Returns all tasks of a project (caller must be manager or member)
|
|
629
|
+
*/
|
|
630
|
+
async projectGetTasksRaw(requestParameters: ProjectGetTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TaskDTO>>> {
|
|
631
|
+
if (requestParameters['id'] == null) {
|
|
632
|
+
throw new runtime.RequiredError(
|
|
633
|
+
'id',
|
|
634
|
+
'Required parameter "id" was null or undefined when calling projectGetTasks().'
|
|
635
|
+
);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
const queryParameters: any = {};
|
|
639
|
+
|
|
640
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
641
|
+
|
|
642
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
643
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
644
|
+
}
|
|
645
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
646
|
+
const token = this.configuration.accessToken;
|
|
647
|
+
const tokenString = await token("bearerAuth", []);
|
|
648
|
+
|
|
649
|
+
if (tokenString) {
|
|
650
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
const response = await this.request({
|
|
654
|
+
path: `/api/v1/projects/{id}/tasks`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
655
|
+
method: 'GET',
|
|
656
|
+
headers: headerParameters,
|
|
657
|
+
query: queryParameters,
|
|
658
|
+
}, initOverrides);
|
|
659
|
+
|
|
660
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TaskDTOFromJSON));
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Returns all tasks of a project (caller must be manager or member)
|
|
665
|
+
*/
|
|
666
|
+
async projectGetTasks(requestParameters: ProjectGetTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TaskDTO>> {
|
|
667
|
+
const response = await this.projectGetTasksRaw(requestParameters, initOverrides);
|
|
668
|
+
return await response.value();
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Remove document
|
|
673
|
+
*/
|
|
674
|
+
async projectRemoveDocumentRaw(requestParameters: ProjectRemoveDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
675
|
+
if (requestParameters['id'] == null) {
|
|
676
|
+
throw new runtime.RequiredError(
|
|
677
|
+
'id',
|
|
678
|
+
'Required parameter "id" was null or undefined when calling projectRemoveDocument().'
|
|
679
|
+
);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
if (requestParameters['documentInfoId'] == null) {
|
|
683
|
+
throw new runtime.RequiredError(
|
|
684
|
+
'documentInfoId',
|
|
685
|
+
'Required parameter "documentInfoId" was null or undefined when calling projectRemoveDocument().'
|
|
686
|
+
);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
const queryParameters: any = {};
|
|
690
|
+
|
|
691
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
692
|
+
|
|
693
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
694
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
695
|
+
}
|
|
696
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
697
|
+
const token = this.configuration.accessToken;
|
|
698
|
+
const tokenString = await token("bearerAuth", []);
|
|
699
|
+
|
|
700
|
+
if (tokenString) {
|
|
701
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
const response = await this.request({
|
|
705
|
+
path: `/api/v1/projects/{id}/documents/{documentInfoId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"documentInfoId"}}`, encodeURIComponent(String(requestParameters['documentInfoId']))),
|
|
706
|
+
method: 'DELETE',
|
|
707
|
+
headers: headerParameters,
|
|
708
|
+
query: queryParameters,
|
|
709
|
+
}, initOverrides);
|
|
710
|
+
|
|
711
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Remove document
|
|
716
|
+
*/
|
|
717
|
+
async projectRemoveDocument(requestParameters: ProjectRemoveDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
718
|
+
const response = await this.projectRemoveDocumentRaw(requestParameters, initOverrides);
|
|
719
|
+
return await response.value();
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Remove member
|
|
724
|
+
*/
|
|
725
|
+
async projectRemoveMemberRaw(requestParameters: ProjectRemoveMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
726
|
+
if (requestParameters['id'] == null) {
|
|
727
|
+
throw new runtime.RequiredError(
|
|
728
|
+
'id',
|
|
729
|
+
'Required parameter "id" was null or undefined when calling projectRemoveMember().'
|
|
730
|
+
);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
if (requestParameters['userId'] == null) {
|
|
734
|
+
throw new runtime.RequiredError(
|
|
735
|
+
'userId',
|
|
736
|
+
'Required parameter "userId" was null or undefined when calling projectRemoveMember().'
|
|
737
|
+
);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
const queryParameters: any = {};
|
|
741
|
+
|
|
742
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
743
|
+
|
|
744
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
745
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
746
|
+
}
|
|
747
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
748
|
+
const token = this.configuration.accessToken;
|
|
749
|
+
const tokenString = await token("bearerAuth", []);
|
|
750
|
+
|
|
751
|
+
if (tokenString) {
|
|
752
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
const response = await this.request({
|
|
756
|
+
path: `/api/v1/projects/{id}/members/{userId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
757
|
+
method: 'DELETE',
|
|
758
|
+
headers: headerParameters,
|
|
759
|
+
query: queryParameters,
|
|
760
|
+
}, initOverrides);
|
|
761
|
+
|
|
762
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Remove member
|
|
767
|
+
*/
|
|
768
|
+
async projectRemoveMember(requestParameters: ProjectRemoveMemberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
769
|
+
const response = await this.projectRemoveMemberRaw(requestParameters, initOverrides);
|
|
770
|
+
return await response.value();
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Remove resource
|
|
775
|
+
*/
|
|
776
|
+
async projectRemoveResourceRaw(requestParameters: ProjectRemoveResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
777
|
+
if (requestParameters['id'] == null) {
|
|
778
|
+
throw new runtime.RequiredError(
|
|
779
|
+
'id',
|
|
780
|
+
'Required parameter "id" was null or undefined when calling projectRemoveResource().'
|
|
781
|
+
);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
if (requestParameters['resourceId'] == null) {
|
|
785
|
+
throw new runtime.RequiredError(
|
|
786
|
+
'resourceId',
|
|
787
|
+
'Required parameter "resourceId" was null or undefined when calling projectRemoveResource().'
|
|
788
|
+
);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
const queryParameters: any = {};
|
|
792
|
+
|
|
793
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
794
|
+
|
|
795
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
796
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
797
|
+
}
|
|
798
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
799
|
+
const token = this.configuration.accessToken;
|
|
800
|
+
const tokenString = await token("bearerAuth", []);
|
|
801
|
+
|
|
802
|
+
if (tokenString) {
|
|
803
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
const response = await this.request({
|
|
807
|
+
path: `/api/v1/projects/{id}/resources/{resourceId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"resourceId"}}`, encodeURIComponent(String(requestParameters['resourceId']))),
|
|
808
|
+
method: 'DELETE',
|
|
809
|
+
headers: headerParameters,
|
|
810
|
+
query: queryParameters,
|
|
811
|
+
}, initOverrides);
|
|
812
|
+
|
|
813
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Remove resource
|
|
818
|
+
*/
|
|
819
|
+
async projectRemoveResource(requestParameters: ProjectRemoveResourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
820
|
+
const response = await this.projectRemoveResourceRaw(requestParameters, initOverrides);
|
|
821
|
+
return await response.value();
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Hands the project over to another of its members
|
|
826
|
+
*/
|
|
827
|
+
async projectTransferManagerRaw(requestParameters: ProjectTransferManagerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
828
|
+
if (requestParameters['id'] == null) {
|
|
829
|
+
throw new runtime.RequiredError(
|
|
830
|
+
'id',
|
|
831
|
+
'Required parameter "id" was null or undefined when calling projectTransferManager().'
|
|
832
|
+
);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
if (requestParameters['userId'] == null) {
|
|
836
|
+
throw new runtime.RequiredError(
|
|
837
|
+
'userId',
|
|
838
|
+
'Required parameter "userId" was null or undefined when calling projectTransferManager().'
|
|
839
|
+
);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
const queryParameters: any = {};
|
|
843
|
+
|
|
844
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
845
|
+
|
|
846
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
847
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
848
|
+
}
|
|
849
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
850
|
+
const token = this.configuration.accessToken;
|
|
851
|
+
const tokenString = await token("bearerAuth", []);
|
|
852
|
+
|
|
853
|
+
if (tokenString) {
|
|
854
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
const response = await this.request({
|
|
858
|
+
path: `/api/v1/projects/{id}/manager/{userId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
859
|
+
method: 'PUT',
|
|
860
|
+
headers: headerParameters,
|
|
861
|
+
query: queryParameters,
|
|
862
|
+
}, initOverrides);
|
|
863
|
+
|
|
864
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Hands the project over to another of its members
|
|
869
|
+
*/
|
|
870
|
+
async projectTransferManager(requestParameters: ProjectTransferManagerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
871
|
+
const response = await this.projectTransferManagerRaw(requestParameters, initOverrides);
|
|
872
|
+
return await response.value();
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Update project
|
|
877
|
+
*/
|
|
878
|
+
async projectUpdateProjectRaw(requestParameters: ProjectUpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectDTO>> {
|
|
879
|
+
if (requestParameters['id'] == null) {
|
|
880
|
+
throw new runtime.RequiredError(
|
|
881
|
+
'id',
|
|
882
|
+
'Required parameter "id" was null or undefined when calling projectUpdateProject().'
|
|
883
|
+
);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
if (requestParameters['projectRequest'] == null) {
|
|
887
|
+
throw new runtime.RequiredError(
|
|
888
|
+
'projectRequest',
|
|
889
|
+
'Required parameter "projectRequest" was null or undefined when calling projectUpdateProject().'
|
|
890
|
+
);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
const queryParameters: any = {};
|
|
894
|
+
|
|
895
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
896
|
+
|
|
897
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
898
|
+
|
|
899
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
900
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
901
|
+
}
|
|
902
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
903
|
+
const token = this.configuration.accessToken;
|
|
904
|
+
const tokenString = await token("bearerAuth", []);
|
|
905
|
+
|
|
906
|
+
if (tokenString) {
|
|
907
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
const response = await this.request({
|
|
911
|
+
path: `/api/v1/projects/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
912
|
+
method: 'PATCH',
|
|
913
|
+
headers: headerParameters,
|
|
914
|
+
query: queryParameters,
|
|
915
|
+
body: ProjectRequestToJSON(requestParameters['projectRequest']),
|
|
916
|
+
}, initOverrides);
|
|
917
|
+
|
|
918
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectDTOFromJSON(jsonValue));
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Update project
|
|
923
|
+
*/
|
|
924
|
+
async projectUpdateProject(requestParameters: ProjectUpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDTO> {
|
|
925
|
+
const response = await this.projectUpdateProjectRaw(requestParameters, initOverrides);
|
|
926
|
+
return await response.value();
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
}
|