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,798 @@
|
|
|
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
|
+
DocumentCheckInRequest,
|
|
19
|
+
DocumentHistoryDTO,
|
|
20
|
+
DocumentSummaryDTO,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
DocumentCheckInRequestFromJSON,
|
|
24
|
+
DocumentCheckInRequestToJSON,
|
|
25
|
+
DocumentHistoryDTOFromJSON,
|
|
26
|
+
DocumentHistoryDTOToJSON,
|
|
27
|
+
DocumentSummaryDTOFromJSON,
|
|
28
|
+
DocumentSummaryDTOToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface DocumentCancelCheckOutRequest {
|
|
32
|
+
id: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface DocumentCheckInOperationRequest {
|
|
36
|
+
id: number;
|
|
37
|
+
comment?: string;
|
|
38
|
+
documentCheckInRequest?: DocumentCheckInRequest;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface DocumentCheckOutRequest {
|
|
42
|
+
id: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface DocumentDeleteDocumentRequest {
|
|
46
|
+
id: number;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface DocumentDownloadDocumentRequest {
|
|
50
|
+
documentInfoId: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface DocumentDownloadSpecificVersionRequest {
|
|
54
|
+
id: number;
|
|
55
|
+
versionNumber: number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface DocumentGetDocumentsInGroupRequest {
|
|
59
|
+
groupId: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface DocumentGetHistoryRequest {
|
|
63
|
+
id: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface DocumentSearchRequest {
|
|
67
|
+
name: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface DocumentUploadDocumentRequest {
|
|
71
|
+
groupId: number;
|
|
72
|
+
name: string;
|
|
73
|
+
file: Blob;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* DocumentsApi - interface
|
|
78
|
+
*
|
|
79
|
+
* @export
|
|
80
|
+
* @interface DocumentsApiInterface
|
|
81
|
+
*/
|
|
82
|
+
export interface DocumentsApiInterface {
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @summary Cancel checkout (unlock without a new version)
|
|
86
|
+
* @param {number} id
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
* @memberof DocumentsApiInterface
|
|
90
|
+
*/
|
|
91
|
+
documentCancelCheckOutRaw(requestParameters: DocumentCancelCheckOutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Cancel checkout (unlock without a new version)
|
|
95
|
+
*/
|
|
96
|
+
documentCancelCheckOut(requestParameters: DocumentCancelCheckOutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Check in a document (upload a new version and unlock)
|
|
101
|
+
* @param {number} id
|
|
102
|
+
* @param {string} [comment]
|
|
103
|
+
* @param {DocumentCheckInRequest} [documentCheckInRequest]
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
* @memberof DocumentsApiInterface
|
|
107
|
+
*/
|
|
108
|
+
documentCheckInRaw(requestParameters: DocumentCheckInOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentSummaryDTO>>;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Check in a document (upload a new version and unlock)
|
|
112
|
+
*/
|
|
113
|
+
documentCheckIn(requestParameters: DocumentCheckInOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentSummaryDTO>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @summary Check out a document (lock it)
|
|
118
|
+
* @param {number} id
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
* @memberof DocumentsApiInterface
|
|
122
|
+
*/
|
|
123
|
+
documentCheckOutRaw(requestParameters: DocumentCheckOutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Check out a document (lock it)
|
|
127
|
+
*/
|
|
128
|
+
documentCheckOut(requestParameters: DocumentCheckOutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @summary Delete document
|
|
133
|
+
* @param {number} id
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
* @memberof DocumentsApiInterface
|
|
137
|
+
*/
|
|
138
|
+
documentDeleteDocumentRaw(requestParameters: DocumentDeleteDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Delete document
|
|
142
|
+
*/
|
|
143
|
+
documentDeleteDocument(requestParameters: DocumentDeleteDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @summary Download of the current version of a document
|
|
148
|
+
* @param {number} documentInfoId
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
* @memberof DocumentsApiInterface
|
|
152
|
+
*/
|
|
153
|
+
documentDownloadDocumentRaw(requestParameters: DocumentDownloadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Download of the current version of a document
|
|
157
|
+
*/
|
|
158
|
+
documentDownloadDocument(requestParameters: DocumentDownloadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @summary Download of a specific version of a document
|
|
163
|
+
* @param {number} id
|
|
164
|
+
* @param {number} versionNumber
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
* @memberof DocumentsApiInterface
|
|
168
|
+
*/
|
|
169
|
+
documentDownloadSpecificVersionRaw(requestParameters: DocumentDownloadSpecificVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Download of a specific version of a document
|
|
173
|
+
*/
|
|
174
|
+
documentDownloadSpecificVersion(requestParameters: DocumentDownloadSpecificVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @summary All documents of a DocumentGroup as a DTO list
|
|
179
|
+
* @param {number} groupId
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
* @memberof DocumentsApiInterface
|
|
183
|
+
*/
|
|
184
|
+
documentGetDocumentsInGroupRaw(requestParameters: DocumentGetDocumentsInGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DocumentSummaryDTO>>>;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* All documents of a DocumentGroup as a DTO list
|
|
188
|
+
*/
|
|
189
|
+
documentGetDocumentsInGroup(requestParameters: DocumentGetDocumentsInGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DocumentSummaryDTO>>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @summary Version history of a document
|
|
194
|
+
* @param {number} id
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
* @memberof DocumentsApiInterface
|
|
198
|
+
*/
|
|
199
|
+
documentGetHistoryRaw(requestParameters: DocumentGetHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DocumentHistoryDTO>>>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Version history of a document
|
|
203
|
+
*/
|
|
204
|
+
documentGetHistory(requestParameters: DocumentGetHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DocumentHistoryDTO>>;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary The 10 most recently modified documents
|
|
209
|
+
* @param {*} [options] Override http request option.
|
|
210
|
+
* @throws {RequiredError}
|
|
211
|
+
* @memberof DocumentsApiInterface
|
|
212
|
+
*/
|
|
213
|
+
documentGetRecentRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DocumentSummaryDTO>>>;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The 10 most recently modified documents
|
|
217
|
+
*/
|
|
218
|
+
documentGetRecent(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DocumentSummaryDTO>>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @summary Search documents by name
|
|
223
|
+
* @param {string} name
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
* @memberof DocumentsApiInterface
|
|
227
|
+
*/
|
|
228
|
+
documentSearchRaw(requestParameters: DocumentSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DocumentSummaryDTO>>>;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Search documents by name
|
|
232
|
+
*/
|
|
233
|
+
documentSearch(requestParameters: DocumentSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DocumentSummaryDTO>>;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @summary Upload of a new document into a DocumentGroup
|
|
238
|
+
* @param {number} groupId
|
|
239
|
+
* @param {string} name
|
|
240
|
+
* @param {Blob} file
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
* @memberof DocumentsApiInterface
|
|
244
|
+
*/
|
|
245
|
+
documentUploadDocumentRaw(requestParameters: DocumentUploadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentSummaryDTO>>;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Upload of a new document into a DocumentGroup
|
|
249
|
+
*/
|
|
250
|
+
documentUploadDocument(requestParameters: DocumentUploadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentSummaryDTO>;
|
|
251
|
+
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
*/
|
|
257
|
+
export class DocumentsApi extends runtime.BaseAPI implements DocumentsApiInterface {
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Cancel checkout (unlock without a new version)
|
|
261
|
+
*/
|
|
262
|
+
async documentCancelCheckOutRaw(requestParameters: DocumentCancelCheckOutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
263
|
+
if (requestParameters['id'] == null) {
|
|
264
|
+
throw new runtime.RequiredError(
|
|
265
|
+
'id',
|
|
266
|
+
'Required parameter "id" was null or undefined when calling documentCancelCheckOut().'
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
const queryParameters: any = {};
|
|
271
|
+
|
|
272
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
273
|
+
|
|
274
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
275
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
276
|
+
}
|
|
277
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
278
|
+
const token = this.configuration.accessToken;
|
|
279
|
+
const tokenString = await token("bearerAuth", []);
|
|
280
|
+
|
|
281
|
+
if (tokenString) {
|
|
282
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
const response = await this.request({
|
|
286
|
+
path: `/api/v1/documents/{id}/cancel-check-out`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
287
|
+
method: 'POST',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
}, initOverrides);
|
|
291
|
+
|
|
292
|
+
return new runtime.VoidApiResponse(response);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Cancel checkout (unlock without a new version)
|
|
297
|
+
*/
|
|
298
|
+
async documentCancelCheckOut(requestParameters: DocumentCancelCheckOutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
299
|
+
await this.documentCancelCheckOutRaw(requestParameters, initOverrides);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Check in a document (upload a new version and unlock)
|
|
304
|
+
*/
|
|
305
|
+
async documentCheckInRaw(requestParameters: DocumentCheckInOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentSummaryDTO>> {
|
|
306
|
+
if (requestParameters['id'] == null) {
|
|
307
|
+
throw new runtime.RequiredError(
|
|
308
|
+
'id',
|
|
309
|
+
'Required parameter "id" was null or undefined when calling documentCheckIn().'
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
const queryParameters: any = {};
|
|
314
|
+
|
|
315
|
+
if (requestParameters['comment'] != null) {
|
|
316
|
+
queryParameters['comment'] = requestParameters['comment'];
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
320
|
+
|
|
321
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
322
|
+
|
|
323
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
324
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
325
|
+
}
|
|
326
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
327
|
+
const token = this.configuration.accessToken;
|
|
328
|
+
const tokenString = await token("bearerAuth", []);
|
|
329
|
+
|
|
330
|
+
if (tokenString) {
|
|
331
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
const response = await this.request({
|
|
335
|
+
path: `/api/v1/documents/{id}/check-in`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
336
|
+
method: 'POST',
|
|
337
|
+
headers: headerParameters,
|
|
338
|
+
query: queryParameters,
|
|
339
|
+
body: DocumentCheckInRequestToJSON(requestParameters['documentCheckInRequest']),
|
|
340
|
+
}, initOverrides);
|
|
341
|
+
|
|
342
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DocumentSummaryDTOFromJSON(jsonValue));
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Check in a document (upload a new version and unlock)
|
|
347
|
+
*/
|
|
348
|
+
async documentCheckIn(requestParameters: DocumentCheckInOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentSummaryDTO> {
|
|
349
|
+
const response = await this.documentCheckInRaw(requestParameters, initOverrides);
|
|
350
|
+
return await response.value();
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Check out a document (lock it)
|
|
355
|
+
*/
|
|
356
|
+
async documentCheckOutRaw(requestParameters: DocumentCheckOutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
357
|
+
if (requestParameters['id'] == null) {
|
|
358
|
+
throw new runtime.RequiredError(
|
|
359
|
+
'id',
|
|
360
|
+
'Required parameter "id" was null or undefined when calling documentCheckOut().'
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
const queryParameters: any = {};
|
|
365
|
+
|
|
366
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
367
|
+
|
|
368
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
369
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
370
|
+
}
|
|
371
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
372
|
+
const token = this.configuration.accessToken;
|
|
373
|
+
const tokenString = await token("bearerAuth", []);
|
|
374
|
+
|
|
375
|
+
if (tokenString) {
|
|
376
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
const response = await this.request({
|
|
380
|
+
path: `/api/v1/documents/{id}/check-out`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
381
|
+
method: 'POST',
|
|
382
|
+
headers: headerParameters,
|
|
383
|
+
query: queryParameters,
|
|
384
|
+
}, initOverrides);
|
|
385
|
+
|
|
386
|
+
return new runtime.VoidApiResponse(response);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Check out a document (lock it)
|
|
391
|
+
*/
|
|
392
|
+
async documentCheckOut(requestParameters: DocumentCheckOutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
393
|
+
await this.documentCheckOutRaw(requestParameters, initOverrides);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Delete document
|
|
398
|
+
*/
|
|
399
|
+
async documentDeleteDocumentRaw(requestParameters: DocumentDeleteDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
400
|
+
if (requestParameters['id'] == null) {
|
|
401
|
+
throw new runtime.RequiredError(
|
|
402
|
+
'id',
|
|
403
|
+
'Required parameter "id" was null or undefined when calling documentDeleteDocument().'
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
const queryParameters: any = {};
|
|
408
|
+
|
|
409
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
410
|
+
|
|
411
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
412
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
413
|
+
}
|
|
414
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
415
|
+
const token = this.configuration.accessToken;
|
|
416
|
+
const tokenString = await token("bearerAuth", []);
|
|
417
|
+
|
|
418
|
+
if (tokenString) {
|
|
419
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
const response = await this.request({
|
|
423
|
+
path: `/api/v1/documents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
424
|
+
method: 'DELETE',
|
|
425
|
+
headers: headerParameters,
|
|
426
|
+
query: queryParameters,
|
|
427
|
+
}, initOverrides);
|
|
428
|
+
|
|
429
|
+
return new runtime.VoidApiResponse(response);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Delete document
|
|
434
|
+
*/
|
|
435
|
+
async documentDeleteDocument(requestParameters: DocumentDeleteDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
436
|
+
await this.documentDeleteDocumentRaw(requestParameters, initOverrides);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Download of the current version of a document
|
|
441
|
+
*/
|
|
442
|
+
async documentDownloadDocumentRaw(requestParameters: DocumentDownloadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
443
|
+
if (requestParameters['documentInfoId'] == null) {
|
|
444
|
+
throw new runtime.RequiredError(
|
|
445
|
+
'documentInfoId',
|
|
446
|
+
'Required parameter "documentInfoId" was null or undefined when calling documentDownloadDocument().'
|
|
447
|
+
);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
const queryParameters: any = {};
|
|
451
|
+
|
|
452
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
453
|
+
|
|
454
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
455
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
456
|
+
}
|
|
457
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
458
|
+
const token = this.configuration.accessToken;
|
|
459
|
+
const tokenString = await token("bearerAuth", []);
|
|
460
|
+
|
|
461
|
+
if (tokenString) {
|
|
462
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
const response = await this.request({
|
|
466
|
+
path: `/api/v1/documents/download/{documentInfoId}`.replace(`{${"documentInfoId"}}`, encodeURIComponent(String(requestParameters['documentInfoId']))),
|
|
467
|
+
method: 'GET',
|
|
468
|
+
headers: headerParameters,
|
|
469
|
+
query: queryParameters,
|
|
470
|
+
}, initOverrides);
|
|
471
|
+
|
|
472
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
473
|
+
return new runtime.JSONApiResponse<string>(response);
|
|
474
|
+
} else {
|
|
475
|
+
return new runtime.TextApiResponse(response) as any;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Download of the current version of a document
|
|
481
|
+
*/
|
|
482
|
+
async documentDownloadDocument(requestParameters: DocumentDownloadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
483
|
+
const response = await this.documentDownloadDocumentRaw(requestParameters, initOverrides);
|
|
484
|
+
return await response.value();
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Download of a specific version of a document
|
|
489
|
+
*/
|
|
490
|
+
async documentDownloadSpecificVersionRaw(requestParameters: DocumentDownloadSpecificVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
491
|
+
if (requestParameters['id'] == null) {
|
|
492
|
+
throw new runtime.RequiredError(
|
|
493
|
+
'id',
|
|
494
|
+
'Required parameter "id" was null or undefined when calling documentDownloadSpecificVersion().'
|
|
495
|
+
);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
if (requestParameters['versionNumber'] == null) {
|
|
499
|
+
throw new runtime.RequiredError(
|
|
500
|
+
'versionNumber',
|
|
501
|
+
'Required parameter "versionNumber" was null or undefined when calling documentDownloadSpecificVersion().'
|
|
502
|
+
);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
const queryParameters: any = {};
|
|
506
|
+
|
|
507
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
508
|
+
|
|
509
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
510
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
511
|
+
}
|
|
512
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
513
|
+
const token = this.configuration.accessToken;
|
|
514
|
+
const tokenString = await token("bearerAuth", []);
|
|
515
|
+
|
|
516
|
+
if (tokenString) {
|
|
517
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
const response = await this.request({
|
|
521
|
+
path: `/api/v1/documents/{id}/version/{versionNumber}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber']))),
|
|
522
|
+
method: 'GET',
|
|
523
|
+
headers: headerParameters,
|
|
524
|
+
query: queryParameters,
|
|
525
|
+
}, initOverrides);
|
|
526
|
+
|
|
527
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
528
|
+
return new runtime.JSONApiResponse<string>(response);
|
|
529
|
+
} else {
|
|
530
|
+
return new runtime.TextApiResponse(response) as any;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Download of a specific version of a document
|
|
536
|
+
*/
|
|
537
|
+
async documentDownloadSpecificVersion(requestParameters: DocumentDownloadSpecificVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
538
|
+
const response = await this.documentDownloadSpecificVersionRaw(requestParameters, initOverrides);
|
|
539
|
+
return await response.value();
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* All documents of a DocumentGroup as a DTO list
|
|
544
|
+
*/
|
|
545
|
+
async documentGetDocumentsInGroupRaw(requestParameters: DocumentGetDocumentsInGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DocumentSummaryDTO>>> {
|
|
546
|
+
if (requestParameters['groupId'] == null) {
|
|
547
|
+
throw new runtime.RequiredError(
|
|
548
|
+
'groupId',
|
|
549
|
+
'Required parameter "groupId" was null or undefined when calling documentGetDocumentsInGroup().'
|
|
550
|
+
);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
const queryParameters: any = {};
|
|
554
|
+
|
|
555
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
556
|
+
|
|
557
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
558
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
559
|
+
}
|
|
560
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
561
|
+
const token = this.configuration.accessToken;
|
|
562
|
+
const tokenString = await token("bearerAuth", []);
|
|
563
|
+
|
|
564
|
+
if (tokenString) {
|
|
565
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
const response = await this.request({
|
|
569
|
+
path: `/api/v1/documents/group/{groupId}`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
570
|
+
method: 'GET',
|
|
571
|
+
headers: headerParameters,
|
|
572
|
+
query: queryParameters,
|
|
573
|
+
}, initOverrides);
|
|
574
|
+
|
|
575
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DocumentSummaryDTOFromJSON));
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* All documents of a DocumentGroup as a DTO list
|
|
580
|
+
*/
|
|
581
|
+
async documentGetDocumentsInGroup(requestParameters: DocumentGetDocumentsInGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DocumentSummaryDTO>> {
|
|
582
|
+
const response = await this.documentGetDocumentsInGroupRaw(requestParameters, initOverrides);
|
|
583
|
+
return await response.value();
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Version history of a document
|
|
588
|
+
*/
|
|
589
|
+
async documentGetHistoryRaw(requestParameters: DocumentGetHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DocumentHistoryDTO>>> {
|
|
590
|
+
if (requestParameters['id'] == null) {
|
|
591
|
+
throw new runtime.RequiredError(
|
|
592
|
+
'id',
|
|
593
|
+
'Required parameter "id" was null or undefined when calling documentGetHistory().'
|
|
594
|
+
);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
const queryParameters: any = {};
|
|
598
|
+
|
|
599
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
600
|
+
|
|
601
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
602
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
603
|
+
}
|
|
604
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
605
|
+
const token = this.configuration.accessToken;
|
|
606
|
+
const tokenString = await token("bearerAuth", []);
|
|
607
|
+
|
|
608
|
+
if (tokenString) {
|
|
609
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
const response = await this.request({
|
|
613
|
+
path: `/api/v1/documents/{id}/history`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
614
|
+
method: 'GET',
|
|
615
|
+
headers: headerParameters,
|
|
616
|
+
query: queryParameters,
|
|
617
|
+
}, initOverrides);
|
|
618
|
+
|
|
619
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DocumentHistoryDTOFromJSON));
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Version history of a document
|
|
624
|
+
*/
|
|
625
|
+
async documentGetHistory(requestParameters: DocumentGetHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DocumentHistoryDTO>> {
|
|
626
|
+
const response = await this.documentGetHistoryRaw(requestParameters, initOverrides);
|
|
627
|
+
return await response.value();
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* The 10 most recently modified documents
|
|
632
|
+
*/
|
|
633
|
+
async documentGetRecentRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DocumentSummaryDTO>>> {
|
|
634
|
+
const queryParameters: any = {};
|
|
635
|
+
|
|
636
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
637
|
+
|
|
638
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
639
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
640
|
+
}
|
|
641
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
642
|
+
const token = this.configuration.accessToken;
|
|
643
|
+
const tokenString = await token("bearerAuth", []);
|
|
644
|
+
|
|
645
|
+
if (tokenString) {
|
|
646
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
const response = await this.request({
|
|
650
|
+
path: `/api/v1/documents/recent`,
|
|
651
|
+
method: 'GET',
|
|
652
|
+
headers: headerParameters,
|
|
653
|
+
query: queryParameters,
|
|
654
|
+
}, initOverrides);
|
|
655
|
+
|
|
656
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DocumentSummaryDTOFromJSON));
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* The 10 most recently modified documents
|
|
661
|
+
*/
|
|
662
|
+
async documentGetRecent(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DocumentSummaryDTO>> {
|
|
663
|
+
const response = await this.documentGetRecentRaw(initOverrides);
|
|
664
|
+
return await response.value();
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Search documents by name
|
|
669
|
+
*/
|
|
670
|
+
async documentSearchRaw(requestParameters: DocumentSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DocumentSummaryDTO>>> {
|
|
671
|
+
if (requestParameters['name'] == null) {
|
|
672
|
+
throw new runtime.RequiredError(
|
|
673
|
+
'name',
|
|
674
|
+
'Required parameter "name" was null or undefined when calling documentSearch().'
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
const queryParameters: any = {};
|
|
679
|
+
|
|
680
|
+
if (requestParameters['name'] != null) {
|
|
681
|
+
queryParameters['name'] = requestParameters['name'];
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
685
|
+
|
|
686
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
687
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
688
|
+
}
|
|
689
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
690
|
+
const token = this.configuration.accessToken;
|
|
691
|
+
const tokenString = await token("bearerAuth", []);
|
|
692
|
+
|
|
693
|
+
if (tokenString) {
|
|
694
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
const response = await this.request({
|
|
698
|
+
path: `/api/v1/documents/search`,
|
|
699
|
+
method: 'GET',
|
|
700
|
+
headers: headerParameters,
|
|
701
|
+
query: queryParameters,
|
|
702
|
+
}, initOverrides);
|
|
703
|
+
|
|
704
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DocumentSummaryDTOFromJSON));
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Search documents by name
|
|
709
|
+
*/
|
|
710
|
+
async documentSearch(requestParameters: DocumentSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DocumentSummaryDTO>> {
|
|
711
|
+
const response = await this.documentSearchRaw(requestParameters, initOverrides);
|
|
712
|
+
return await response.value();
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Upload of a new document into a DocumentGroup
|
|
717
|
+
*/
|
|
718
|
+
async documentUploadDocumentRaw(requestParameters: DocumentUploadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentSummaryDTO>> {
|
|
719
|
+
if (requestParameters['groupId'] == null) {
|
|
720
|
+
throw new runtime.RequiredError(
|
|
721
|
+
'groupId',
|
|
722
|
+
'Required parameter "groupId" was null or undefined when calling documentUploadDocument().'
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
if (requestParameters['name'] == null) {
|
|
727
|
+
throw new runtime.RequiredError(
|
|
728
|
+
'name',
|
|
729
|
+
'Required parameter "name" was null or undefined when calling documentUploadDocument().'
|
|
730
|
+
);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
if (requestParameters['file'] == null) {
|
|
734
|
+
throw new runtime.RequiredError(
|
|
735
|
+
'file',
|
|
736
|
+
'Required parameter "file" was null or undefined when calling documentUploadDocument().'
|
|
737
|
+
);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
const queryParameters: any = {};
|
|
741
|
+
|
|
742
|
+
if (requestParameters['name'] != null) {
|
|
743
|
+
queryParameters['name'] = requestParameters['name'];
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
747
|
+
|
|
748
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
749
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
750
|
+
}
|
|
751
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
752
|
+
const token = this.configuration.accessToken;
|
|
753
|
+
const tokenString = await token("bearerAuth", []);
|
|
754
|
+
|
|
755
|
+
if (tokenString) {
|
|
756
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
const consumes: runtime.Consume[] = [
|
|
760
|
+
{ contentType: 'multipart/form-data' },
|
|
761
|
+
];
|
|
762
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
763
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
764
|
+
|
|
765
|
+
let formParams: { append(param: string, value: any): any };
|
|
766
|
+
let useForm = false;
|
|
767
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
768
|
+
useForm = canConsumeForm;
|
|
769
|
+
if (useForm) {
|
|
770
|
+
formParams = new FormData();
|
|
771
|
+
} else {
|
|
772
|
+
formParams = new URLSearchParams();
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
if (requestParameters['file'] != null) {
|
|
776
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
const response = await this.request({
|
|
780
|
+
path: `/api/v1/documents/upload/{groupId}`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
781
|
+
method: 'POST',
|
|
782
|
+
headers: headerParameters,
|
|
783
|
+
query: queryParameters,
|
|
784
|
+
body: formParams,
|
|
785
|
+
}, initOverrides);
|
|
786
|
+
|
|
787
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DocumentSummaryDTOFromJSON(jsonValue));
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Upload of a new document into a DocumentGroup
|
|
792
|
+
*/
|
|
793
|
+
async documentUploadDocument(requestParameters: DocumentUploadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentSummaryDTO> {
|
|
794
|
+
const response = await this.documentUploadDocumentRaw(requestParameters, initOverrides);
|
|
795
|
+
return await response.value();
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
}
|