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,551 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Prioritize API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.3.0
|
|
9
|
+
* Contact: peter.haller@prioritize-iot.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ProjectsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class ProjectsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Add document
|
|
34
|
+
*/
|
|
35
|
+
projectAddDocumentRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['id'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectAddDocument().');
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['documentInfoId'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('documentInfoId', 'Required parameter "documentInfoId" was null or undefined when calling projectAddDocument().');
|
|
42
|
+
}
|
|
43
|
+
const queryParameters = {};
|
|
44
|
+
const headerParameters = {};
|
|
45
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
46
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
47
|
+
}
|
|
48
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
49
|
+
const token = this.configuration.accessToken;
|
|
50
|
+
const tokenString = yield token("bearerAuth", []);
|
|
51
|
+
if (tokenString) {
|
|
52
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const response = yield this.request({
|
|
56
|
+
path: `/api/v1/projects/{id}/documents/{documentInfoId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"documentInfoId"}}`, encodeURIComponent(String(requestParameters['documentInfoId']))),
|
|
57
|
+
method: 'POST',
|
|
58
|
+
headers: headerParameters,
|
|
59
|
+
query: queryParameters,
|
|
60
|
+
}, initOverrides);
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Add document
|
|
66
|
+
*/
|
|
67
|
+
projectAddDocument(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const response = yield this.projectAddDocumentRaw(requestParameters, initOverrides);
|
|
70
|
+
return yield response.value();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Add member
|
|
75
|
+
*/
|
|
76
|
+
projectAddMemberRaw(requestParameters, initOverrides) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
if (requestParameters['id'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectAddMember().');
|
|
80
|
+
}
|
|
81
|
+
if (requestParameters['userId'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectAddMember().');
|
|
83
|
+
}
|
|
84
|
+
const queryParameters = {};
|
|
85
|
+
const headerParameters = {};
|
|
86
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
87
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
88
|
+
}
|
|
89
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
90
|
+
const token = this.configuration.accessToken;
|
|
91
|
+
const tokenString = yield token("bearerAuth", []);
|
|
92
|
+
if (tokenString) {
|
|
93
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
const response = yield this.request({
|
|
97
|
+
path: `/api/v1/projects/{id}/members/{userId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
98
|
+
method: 'POST',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Add member
|
|
107
|
+
*/
|
|
108
|
+
projectAddMember(requestParameters, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const response = yield this.projectAddMemberRaw(requestParameters, initOverrides);
|
|
111
|
+
return yield response.value();
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Add resource
|
|
116
|
+
*/
|
|
117
|
+
projectAddResourceRaw(requestParameters, initOverrides) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
if (requestParameters['id'] == null) {
|
|
120
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectAddResource().');
|
|
121
|
+
}
|
|
122
|
+
if (requestParameters['resourceId'] == null) {
|
|
123
|
+
throw new runtime.RequiredError('resourceId', 'Required parameter "resourceId" was null or undefined when calling projectAddResource().');
|
|
124
|
+
}
|
|
125
|
+
const queryParameters = {};
|
|
126
|
+
const headerParameters = {};
|
|
127
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
128
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
129
|
+
}
|
|
130
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
131
|
+
const token = this.configuration.accessToken;
|
|
132
|
+
const tokenString = yield token("bearerAuth", []);
|
|
133
|
+
if (tokenString) {
|
|
134
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const response = yield this.request({
|
|
138
|
+
path: `/api/v1/projects/{id}/resources/{resourceId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"resourceId"}}`, encodeURIComponent(String(requestParameters['resourceId']))),
|
|
139
|
+
method: 'POST',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Add resource
|
|
148
|
+
*/
|
|
149
|
+
projectAddResource(requestParameters, initOverrides) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const response = yield this.projectAddResourceRaw(requestParameters, initOverrides);
|
|
152
|
+
return yield response.value();
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Creates a new project (the caller becomes manager and first member)
|
|
157
|
+
*/
|
|
158
|
+
projectCreateProjectRaw(requestParameters, initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
if (requestParameters['projectRequest'] == null) {
|
|
161
|
+
throw new runtime.RequiredError('projectRequest', 'Required parameter "projectRequest" was null or undefined when calling projectCreateProject().');
|
|
162
|
+
}
|
|
163
|
+
const queryParameters = {};
|
|
164
|
+
const headerParameters = {};
|
|
165
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
166
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
167
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
168
|
+
}
|
|
169
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
170
|
+
const token = this.configuration.accessToken;
|
|
171
|
+
const tokenString = yield token("bearerAuth", []);
|
|
172
|
+
if (tokenString) {
|
|
173
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const response = yield this.request({
|
|
177
|
+
path: `/api/v1/projects`,
|
|
178
|
+
method: 'POST',
|
|
179
|
+
headers: headerParameters,
|
|
180
|
+
query: queryParameters,
|
|
181
|
+
body: (0, index_1.ProjectRequestToJSON)(requestParameters['projectRequest']),
|
|
182
|
+
}, initOverrides);
|
|
183
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Creates a new project (the caller becomes manager and first member)
|
|
188
|
+
*/
|
|
189
|
+
projectCreateProject(requestParameters, initOverrides) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const response = yield this.projectCreateProjectRaw(requestParameters, initOverrides);
|
|
192
|
+
return yield response.value();
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Delete project
|
|
197
|
+
*/
|
|
198
|
+
projectDeleteProjectRaw(requestParameters, initOverrides) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
if (requestParameters['id'] == null) {
|
|
201
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectDeleteProject().');
|
|
202
|
+
}
|
|
203
|
+
const queryParameters = {};
|
|
204
|
+
const headerParameters = {};
|
|
205
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
206
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
207
|
+
}
|
|
208
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
209
|
+
const token = this.configuration.accessToken;
|
|
210
|
+
const tokenString = yield token("bearerAuth", []);
|
|
211
|
+
if (tokenString) {
|
|
212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
const response = yield this.request({
|
|
216
|
+
path: `/api/v1/projects/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
217
|
+
method: 'DELETE',
|
|
218
|
+
headers: headerParameters,
|
|
219
|
+
query: queryParameters,
|
|
220
|
+
}, initOverrides);
|
|
221
|
+
return new runtime.VoidApiResponse(response);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Delete project
|
|
226
|
+
*/
|
|
227
|
+
projectDeleteProject(requestParameters, initOverrides) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
yield this.projectDeleteProjectRaw(requestParameters, initOverrides);
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Returns the projects the caller manages or participates in
|
|
234
|
+
*/
|
|
235
|
+
projectGetMyProjectsRaw(initOverrides) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
const queryParameters = {};
|
|
238
|
+
const headerParameters = {};
|
|
239
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
240
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
241
|
+
}
|
|
242
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
243
|
+
const token = this.configuration.accessToken;
|
|
244
|
+
const tokenString = yield token("bearerAuth", []);
|
|
245
|
+
if (tokenString) {
|
|
246
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
const response = yield this.request({
|
|
250
|
+
path: `/api/v1/projects`,
|
|
251
|
+
method: 'GET',
|
|
252
|
+
headers: headerParameters,
|
|
253
|
+
query: queryParameters,
|
|
254
|
+
}, initOverrides);
|
|
255
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProjectDTOFromJSON));
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Returns the projects the caller manages or participates in
|
|
260
|
+
*/
|
|
261
|
+
projectGetMyProjects(initOverrides) {
|
|
262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
const response = yield this.projectGetMyProjectsRaw(initOverrides);
|
|
264
|
+
return yield response.value();
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Get project
|
|
269
|
+
*/
|
|
270
|
+
projectGetProjectRaw(requestParameters, initOverrides) {
|
|
271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
272
|
+
if (requestParameters['id'] == null) {
|
|
273
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectGetProject().');
|
|
274
|
+
}
|
|
275
|
+
const queryParameters = {};
|
|
276
|
+
const headerParameters = {};
|
|
277
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
278
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
279
|
+
}
|
|
280
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
281
|
+
const token = this.configuration.accessToken;
|
|
282
|
+
const tokenString = yield token("bearerAuth", []);
|
|
283
|
+
if (tokenString) {
|
|
284
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
const response = yield this.request({
|
|
288
|
+
path: `/api/v1/projects/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
289
|
+
method: 'GET',
|
|
290
|
+
headers: headerParameters,
|
|
291
|
+
query: queryParameters,
|
|
292
|
+
}, initOverrides);
|
|
293
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Get project
|
|
298
|
+
*/
|
|
299
|
+
projectGetProject(requestParameters, initOverrides) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
const response = yield this.projectGetProjectRaw(requestParameters, initOverrides);
|
|
302
|
+
return yield response.value();
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Returns all tasks of a project (caller must be manager or member)
|
|
307
|
+
*/
|
|
308
|
+
projectGetTasksRaw(requestParameters, initOverrides) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
if (requestParameters['id'] == null) {
|
|
311
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectGetTasks().');
|
|
312
|
+
}
|
|
313
|
+
const queryParameters = {};
|
|
314
|
+
const headerParameters = {};
|
|
315
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
316
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
317
|
+
}
|
|
318
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
319
|
+
const token = this.configuration.accessToken;
|
|
320
|
+
const tokenString = yield token("bearerAuth", []);
|
|
321
|
+
if (tokenString) {
|
|
322
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
const response = yield this.request({
|
|
326
|
+
path: `/api/v1/projects/{id}/tasks`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
327
|
+
method: 'GET',
|
|
328
|
+
headers: headerParameters,
|
|
329
|
+
query: queryParameters,
|
|
330
|
+
}, initOverrides);
|
|
331
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TaskDTOFromJSON));
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Returns all tasks of a project (caller must be manager or member)
|
|
336
|
+
*/
|
|
337
|
+
projectGetTasks(requestParameters, initOverrides) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
const response = yield this.projectGetTasksRaw(requestParameters, initOverrides);
|
|
340
|
+
return yield response.value();
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Remove document
|
|
345
|
+
*/
|
|
346
|
+
projectRemoveDocumentRaw(requestParameters, initOverrides) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
if (requestParameters['id'] == null) {
|
|
349
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectRemoveDocument().');
|
|
350
|
+
}
|
|
351
|
+
if (requestParameters['documentInfoId'] == null) {
|
|
352
|
+
throw new runtime.RequiredError('documentInfoId', 'Required parameter "documentInfoId" was null or undefined when calling projectRemoveDocument().');
|
|
353
|
+
}
|
|
354
|
+
const queryParameters = {};
|
|
355
|
+
const headerParameters = {};
|
|
356
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
357
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
358
|
+
}
|
|
359
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
360
|
+
const token = this.configuration.accessToken;
|
|
361
|
+
const tokenString = yield token("bearerAuth", []);
|
|
362
|
+
if (tokenString) {
|
|
363
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
const response = yield this.request({
|
|
367
|
+
path: `/api/v1/projects/{id}/documents/{documentInfoId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"documentInfoId"}}`, encodeURIComponent(String(requestParameters['documentInfoId']))),
|
|
368
|
+
method: 'DELETE',
|
|
369
|
+
headers: headerParameters,
|
|
370
|
+
query: queryParameters,
|
|
371
|
+
}, initOverrides);
|
|
372
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Remove document
|
|
377
|
+
*/
|
|
378
|
+
projectRemoveDocument(requestParameters, initOverrides) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
const response = yield this.projectRemoveDocumentRaw(requestParameters, initOverrides);
|
|
381
|
+
return yield response.value();
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Remove member
|
|
386
|
+
*/
|
|
387
|
+
projectRemoveMemberRaw(requestParameters, initOverrides) {
|
|
388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
+
if (requestParameters['id'] == null) {
|
|
390
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectRemoveMember().');
|
|
391
|
+
}
|
|
392
|
+
if (requestParameters['userId'] == null) {
|
|
393
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectRemoveMember().');
|
|
394
|
+
}
|
|
395
|
+
const queryParameters = {};
|
|
396
|
+
const headerParameters = {};
|
|
397
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
398
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
399
|
+
}
|
|
400
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
401
|
+
const token = this.configuration.accessToken;
|
|
402
|
+
const tokenString = yield token("bearerAuth", []);
|
|
403
|
+
if (tokenString) {
|
|
404
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
const response = yield this.request({
|
|
408
|
+
path: `/api/v1/projects/{id}/members/{userId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
409
|
+
method: 'DELETE',
|
|
410
|
+
headers: headerParameters,
|
|
411
|
+
query: queryParameters,
|
|
412
|
+
}, initOverrides);
|
|
413
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Remove member
|
|
418
|
+
*/
|
|
419
|
+
projectRemoveMember(requestParameters, initOverrides) {
|
|
420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
421
|
+
const response = yield this.projectRemoveMemberRaw(requestParameters, initOverrides);
|
|
422
|
+
return yield response.value();
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Remove resource
|
|
427
|
+
*/
|
|
428
|
+
projectRemoveResourceRaw(requestParameters, initOverrides) {
|
|
429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
430
|
+
if (requestParameters['id'] == null) {
|
|
431
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectRemoveResource().');
|
|
432
|
+
}
|
|
433
|
+
if (requestParameters['resourceId'] == null) {
|
|
434
|
+
throw new runtime.RequiredError('resourceId', 'Required parameter "resourceId" was null or undefined when calling projectRemoveResource().');
|
|
435
|
+
}
|
|
436
|
+
const queryParameters = {};
|
|
437
|
+
const headerParameters = {};
|
|
438
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
439
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
440
|
+
}
|
|
441
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
442
|
+
const token = this.configuration.accessToken;
|
|
443
|
+
const tokenString = yield token("bearerAuth", []);
|
|
444
|
+
if (tokenString) {
|
|
445
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
const response = yield this.request({
|
|
449
|
+
path: `/api/v1/projects/{id}/resources/{resourceId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"resourceId"}}`, encodeURIComponent(String(requestParameters['resourceId']))),
|
|
450
|
+
method: 'DELETE',
|
|
451
|
+
headers: headerParameters,
|
|
452
|
+
query: queryParameters,
|
|
453
|
+
}, initOverrides);
|
|
454
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Remove resource
|
|
459
|
+
*/
|
|
460
|
+
projectRemoveResource(requestParameters, initOverrides) {
|
|
461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
462
|
+
const response = yield this.projectRemoveResourceRaw(requestParameters, initOverrides);
|
|
463
|
+
return yield response.value();
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Hands the project over to another of its members
|
|
468
|
+
*/
|
|
469
|
+
projectTransferManagerRaw(requestParameters, initOverrides) {
|
|
470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
471
|
+
if (requestParameters['id'] == null) {
|
|
472
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectTransferManager().');
|
|
473
|
+
}
|
|
474
|
+
if (requestParameters['userId'] == null) {
|
|
475
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectTransferManager().');
|
|
476
|
+
}
|
|
477
|
+
const queryParameters = {};
|
|
478
|
+
const headerParameters = {};
|
|
479
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
480
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
481
|
+
}
|
|
482
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
483
|
+
const token = this.configuration.accessToken;
|
|
484
|
+
const tokenString = yield token("bearerAuth", []);
|
|
485
|
+
if (tokenString) {
|
|
486
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
const response = yield this.request({
|
|
490
|
+
path: `/api/v1/projects/{id}/manager/{userId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
491
|
+
method: 'PUT',
|
|
492
|
+
headers: headerParameters,
|
|
493
|
+
query: queryParameters,
|
|
494
|
+
}, initOverrides);
|
|
495
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Hands the project over to another of its members
|
|
500
|
+
*/
|
|
501
|
+
projectTransferManager(requestParameters, initOverrides) {
|
|
502
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
503
|
+
const response = yield this.projectTransferManagerRaw(requestParameters, initOverrides);
|
|
504
|
+
return yield response.value();
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Update project
|
|
509
|
+
*/
|
|
510
|
+
projectUpdateProjectRaw(requestParameters, initOverrides) {
|
|
511
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
512
|
+
if (requestParameters['id'] == null) {
|
|
513
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling projectUpdateProject().');
|
|
514
|
+
}
|
|
515
|
+
if (requestParameters['projectRequest'] == null) {
|
|
516
|
+
throw new runtime.RequiredError('projectRequest', 'Required parameter "projectRequest" was null or undefined when calling projectUpdateProject().');
|
|
517
|
+
}
|
|
518
|
+
const queryParameters = {};
|
|
519
|
+
const headerParameters = {};
|
|
520
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
521
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
522
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
523
|
+
}
|
|
524
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
525
|
+
const token = this.configuration.accessToken;
|
|
526
|
+
const tokenString = yield token("bearerAuth", []);
|
|
527
|
+
if (tokenString) {
|
|
528
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
const response = yield this.request({
|
|
532
|
+
path: `/api/v1/projects/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
533
|
+
method: 'PATCH',
|
|
534
|
+
headers: headerParameters,
|
|
535
|
+
query: queryParameters,
|
|
536
|
+
body: (0, index_1.ProjectRequestToJSON)(requestParameters['projectRequest']),
|
|
537
|
+
}, initOverrides);
|
|
538
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectDTOFromJSON)(jsonValue));
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Update project
|
|
543
|
+
*/
|
|
544
|
+
projectUpdateProject(requestParameters, initOverrides) {
|
|
545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
546
|
+
const response = yield this.projectUpdateProjectRaw(requestParameters, initOverrides);
|
|
547
|
+
return yield response.value();
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
exports.ProjectsApi = ProjectsApi;
|