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,494 @@
|
|
|
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.DocumentsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class DocumentsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Cancel checkout (unlock without a new version)
|
|
34
|
+
*/
|
|
35
|
+
documentCancelCheckOutRaw(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 documentCancelCheckOut().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
43
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
44
|
+
}
|
|
45
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
46
|
+
const token = this.configuration.accessToken;
|
|
47
|
+
const tokenString = yield token("bearerAuth", []);
|
|
48
|
+
if (tokenString) {
|
|
49
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const response = yield this.request({
|
|
53
|
+
path: `/api/v1/documents/{id}/cancel-check-out`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
54
|
+
method: 'POST',
|
|
55
|
+
headers: headerParameters,
|
|
56
|
+
query: queryParameters,
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
return new runtime.VoidApiResponse(response);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Cancel checkout (unlock without a new version)
|
|
63
|
+
*/
|
|
64
|
+
documentCancelCheckOut(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
yield this.documentCancelCheckOutRaw(requestParameters, initOverrides);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check in a document (upload a new version and unlock)
|
|
71
|
+
*/
|
|
72
|
+
documentCheckInRaw(requestParameters, initOverrides) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
if (requestParameters['id'] == null) {
|
|
75
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling documentCheckIn().');
|
|
76
|
+
}
|
|
77
|
+
const queryParameters = {};
|
|
78
|
+
if (requestParameters['comment'] != null) {
|
|
79
|
+
queryParameters['comment'] = requestParameters['comment'];
|
|
80
|
+
}
|
|
81
|
+
const headerParameters = {};
|
|
82
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
83
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
84
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
85
|
+
}
|
|
86
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
87
|
+
const token = this.configuration.accessToken;
|
|
88
|
+
const tokenString = yield token("bearerAuth", []);
|
|
89
|
+
if (tokenString) {
|
|
90
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const response = yield this.request({
|
|
94
|
+
path: `/api/v1/documents/{id}/check-in`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
95
|
+
method: 'POST',
|
|
96
|
+
headers: headerParameters,
|
|
97
|
+
query: queryParameters,
|
|
98
|
+
body: (0, index_1.DocumentCheckInRequestToJSON)(requestParameters['documentCheckInRequest']),
|
|
99
|
+
}, initOverrides);
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DocumentSummaryDTOFromJSON)(jsonValue));
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Check in a document (upload a new version and unlock)
|
|
105
|
+
*/
|
|
106
|
+
documentCheckIn(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const response = yield this.documentCheckInRaw(requestParameters, initOverrides);
|
|
109
|
+
return yield response.value();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Check out a document (lock it)
|
|
114
|
+
*/
|
|
115
|
+
documentCheckOutRaw(requestParameters, initOverrides) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
if (requestParameters['id'] == null) {
|
|
118
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling documentCheckOut().');
|
|
119
|
+
}
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
const headerParameters = {};
|
|
122
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
123
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
124
|
+
}
|
|
125
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
126
|
+
const token = this.configuration.accessToken;
|
|
127
|
+
const tokenString = yield token("bearerAuth", []);
|
|
128
|
+
if (tokenString) {
|
|
129
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const response = yield this.request({
|
|
133
|
+
path: `/api/v1/documents/{id}/check-out`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
134
|
+
method: 'POST',
|
|
135
|
+
headers: headerParameters,
|
|
136
|
+
query: queryParameters,
|
|
137
|
+
}, initOverrides);
|
|
138
|
+
return new runtime.VoidApiResponse(response);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Check out a document (lock it)
|
|
143
|
+
*/
|
|
144
|
+
documentCheckOut(requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
yield this.documentCheckOutRaw(requestParameters, initOverrides);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Delete document
|
|
151
|
+
*/
|
|
152
|
+
documentDeleteDocumentRaw(requestParameters, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
if (requestParameters['id'] == null) {
|
|
155
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling documentDeleteDocument().');
|
|
156
|
+
}
|
|
157
|
+
const queryParameters = {};
|
|
158
|
+
const headerParameters = {};
|
|
159
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
160
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
161
|
+
}
|
|
162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
+
const token = this.configuration.accessToken;
|
|
164
|
+
const tokenString = yield token("bearerAuth", []);
|
|
165
|
+
if (tokenString) {
|
|
166
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
const response = yield this.request({
|
|
170
|
+
path: `/api/v1/documents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
171
|
+
method: 'DELETE',
|
|
172
|
+
headers: headerParameters,
|
|
173
|
+
query: queryParameters,
|
|
174
|
+
}, initOverrides);
|
|
175
|
+
return new runtime.VoidApiResponse(response);
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Delete document
|
|
180
|
+
*/
|
|
181
|
+
documentDeleteDocument(requestParameters, initOverrides) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
yield this.documentDeleteDocumentRaw(requestParameters, initOverrides);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Download of the current version of a document
|
|
188
|
+
*/
|
|
189
|
+
documentDownloadDocumentRaw(requestParameters, initOverrides) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
if (requestParameters['documentInfoId'] == null) {
|
|
192
|
+
throw new runtime.RequiredError('documentInfoId', 'Required parameter "documentInfoId" was null or undefined when calling documentDownloadDocument().');
|
|
193
|
+
}
|
|
194
|
+
const queryParameters = {};
|
|
195
|
+
const headerParameters = {};
|
|
196
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
197
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
198
|
+
}
|
|
199
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
200
|
+
const token = this.configuration.accessToken;
|
|
201
|
+
const tokenString = yield token("bearerAuth", []);
|
|
202
|
+
if (tokenString) {
|
|
203
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
const response = yield this.request({
|
|
207
|
+
path: `/api/v1/documents/download/{documentInfoId}`.replace(`{${"documentInfoId"}}`, encodeURIComponent(String(requestParameters['documentInfoId']))),
|
|
208
|
+
method: 'GET',
|
|
209
|
+
headers: headerParameters,
|
|
210
|
+
query: queryParameters,
|
|
211
|
+
}, initOverrides);
|
|
212
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
213
|
+
return new runtime.JSONApiResponse(response);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
return new runtime.TextApiResponse(response);
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Download of the current version of a document
|
|
222
|
+
*/
|
|
223
|
+
documentDownloadDocument(requestParameters, initOverrides) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
const response = yield this.documentDownloadDocumentRaw(requestParameters, initOverrides);
|
|
226
|
+
return yield response.value();
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Download of a specific version of a document
|
|
231
|
+
*/
|
|
232
|
+
documentDownloadSpecificVersionRaw(requestParameters, initOverrides) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
if (requestParameters['id'] == null) {
|
|
235
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling documentDownloadSpecificVersion().');
|
|
236
|
+
}
|
|
237
|
+
if (requestParameters['versionNumber'] == null) {
|
|
238
|
+
throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling documentDownloadSpecificVersion().');
|
|
239
|
+
}
|
|
240
|
+
const queryParameters = {};
|
|
241
|
+
const headerParameters = {};
|
|
242
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
243
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
244
|
+
}
|
|
245
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
246
|
+
const token = this.configuration.accessToken;
|
|
247
|
+
const tokenString = yield token("bearerAuth", []);
|
|
248
|
+
if (tokenString) {
|
|
249
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
const response = yield this.request({
|
|
253
|
+
path: `/api/v1/documents/{id}/version/{versionNumber}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber']))),
|
|
254
|
+
method: 'GET',
|
|
255
|
+
headers: headerParameters,
|
|
256
|
+
query: queryParameters,
|
|
257
|
+
}, initOverrides);
|
|
258
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
259
|
+
return new runtime.JSONApiResponse(response);
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
return new runtime.TextApiResponse(response);
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Download of a specific version of a document
|
|
268
|
+
*/
|
|
269
|
+
documentDownloadSpecificVersion(requestParameters, initOverrides) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
const response = yield this.documentDownloadSpecificVersionRaw(requestParameters, initOverrides);
|
|
272
|
+
return yield response.value();
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* All documents of a DocumentGroup as a DTO list
|
|
277
|
+
*/
|
|
278
|
+
documentGetDocumentsInGroupRaw(requestParameters, initOverrides) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
if (requestParameters['groupId'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling documentGetDocumentsInGroup().');
|
|
282
|
+
}
|
|
283
|
+
const queryParameters = {};
|
|
284
|
+
const headerParameters = {};
|
|
285
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
286
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
287
|
+
}
|
|
288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
289
|
+
const token = this.configuration.accessToken;
|
|
290
|
+
const tokenString = yield token("bearerAuth", []);
|
|
291
|
+
if (tokenString) {
|
|
292
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const response = yield this.request({
|
|
296
|
+
path: `/api/v1/documents/group/{groupId}`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
297
|
+
method: 'GET',
|
|
298
|
+
headers: headerParameters,
|
|
299
|
+
query: queryParameters,
|
|
300
|
+
}, initOverrides);
|
|
301
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.DocumentSummaryDTOFromJSON));
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* All documents of a DocumentGroup as a DTO list
|
|
306
|
+
*/
|
|
307
|
+
documentGetDocumentsInGroup(requestParameters, initOverrides) {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
const response = yield this.documentGetDocumentsInGroupRaw(requestParameters, initOverrides);
|
|
310
|
+
return yield response.value();
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Version history of a document
|
|
315
|
+
*/
|
|
316
|
+
documentGetHistoryRaw(requestParameters, initOverrides) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
if (requestParameters['id'] == null) {
|
|
319
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling documentGetHistory().');
|
|
320
|
+
}
|
|
321
|
+
const queryParameters = {};
|
|
322
|
+
const headerParameters = {};
|
|
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 = yield token("bearerAuth", []);
|
|
329
|
+
if (tokenString) {
|
|
330
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
const response = yield this.request({
|
|
334
|
+
path: `/api/v1/documents/{id}/history`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
335
|
+
method: 'GET',
|
|
336
|
+
headers: headerParameters,
|
|
337
|
+
query: queryParameters,
|
|
338
|
+
}, initOverrides);
|
|
339
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.DocumentHistoryDTOFromJSON));
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Version history of a document
|
|
344
|
+
*/
|
|
345
|
+
documentGetHistory(requestParameters, initOverrides) {
|
|
346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
347
|
+
const response = yield this.documentGetHistoryRaw(requestParameters, initOverrides);
|
|
348
|
+
return yield response.value();
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* The 10 most recently modified documents
|
|
353
|
+
*/
|
|
354
|
+
documentGetRecentRaw(initOverrides) {
|
|
355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
+
const queryParameters = {};
|
|
357
|
+
const headerParameters = {};
|
|
358
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
359
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
360
|
+
}
|
|
361
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
362
|
+
const token = this.configuration.accessToken;
|
|
363
|
+
const tokenString = yield token("bearerAuth", []);
|
|
364
|
+
if (tokenString) {
|
|
365
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
const response = yield this.request({
|
|
369
|
+
path: `/api/v1/documents/recent`,
|
|
370
|
+
method: 'GET',
|
|
371
|
+
headers: headerParameters,
|
|
372
|
+
query: queryParameters,
|
|
373
|
+
}, initOverrides);
|
|
374
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.DocumentSummaryDTOFromJSON));
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* The 10 most recently modified documents
|
|
379
|
+
*/
|
|
380
|
+
documentGetRecent(initOverrides) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
const response = yield this.documentGetRecentRaw(initOverrides);
|
|
383
|
+
return yield response.value();
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Search documents by name
|
|
388
|
+
*/
|
|
389
|
+
documentSearchRaw(requestParameters, initOverrides) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
+
if (requestParameters['name'] == null) {
|
|
392
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling documentSearch().');
|
|
393
|
+
}
|
|
394
|
+
const queryParameters = {};
|
|
395
|
+
if (requestParameters['name'] != null) {
|
|
396
|
+
queryParameters['name'] = requestParameters['name'];
|
|
397
|
+
}
|
|
398
|
+
const headerParameters = {};
|
|
399
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
400
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
401
|
+
}
|
|
402
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
403
|
+
const token = this.configuration.accessToken;
|
|
404
|
+
const tokenString = yield token("bearerAuth", []);
|
|
405
|
+
if (tokenString) {
|
|
406
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
const response = yield this.request({
|
|
410
|
+
path: `/api/v1/documents/search`,
|
|
411
|
+
method: 'GET',
|
|
412
|
+
headers: headerParameters,
|
|
413
|
+
query: queryParameters,
|
|
414
|
+
}, initOverrides);
|
|
415
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.DocumentSummaryDTOFromJSON));
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Search documents by name
|
|
420
|
+
*/
|
|
421
|
+
documentSearch(requestParameters, initOverrides) {
|
|
422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
const response = yield this.documentSearchRaw(requestParameters, initOverrides);
|
|
424
|
+
return yield response.value();
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Upload of a new document into a DocumentGroup
|
|
429
|
+
*/
|
|
430
|
+
documentUploadDocumentRaw(requestParameters, initOverrides) {
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
if (requestParameters['groupId'] == null) {
|
|
433
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling documentUploadDocument().');
|
|
434
|
+
}
|
|
435
|
+
if (requestParameters['name'] == null) {
|
|
436
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling documentUploadDocument().');
|
|
437
|
+
}
|
|
438
|
+
if (requestParameters['file'] == null) {
|
|
439
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling documentUploadDocument().');
|
|
440
|
+
}
|
|
441
|
+
const queryParameters = {};
|
|
442
|
+
if (requestParameters['name'] != null) {
|
|
443
|
+
queryParameters['name'] = requestParameters['name'];
|
|
444
|
+
}
|
|
445
|
+
const headerParameters = {};
|
|
446
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
447
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
448
|
+
}
|
|
449
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
450
|
+
const token = this.configuration.accessToken;
|
|
451
|
+
const tokenString = yield token("bearerAuth", []);
|
|
452
|
+
if (tokenString) {
|
|
453
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
const consumes = [
|
|
457
|
+
{ contentType: 'multipart/form-data' },
|
|
458
|
+
];
|
|
459
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
460
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
461
|
+
let formParams;
|
|
462
|
+
let useForm = false;
|
|
463
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
464
|
+
useForm = canConsumeForm;
|
|
465
|
+
if (useForm) {
|
|
466
|
+
formParams = new FormData();
|
|
467
|
+
}
|
|
468
|
+
else {
|
|
469
|
+
formParams = new URLSearchParams();
|
|
470
|
+
}
|
|
471
|
+
if (requestParameters['file'] != null) {
|
|
472
|
+
formParams.append('file', requestParameters['file']);
|
|
473
|
+
}
|
|
474
|
+
const response = yield this.request({
|
|
475
|
+
path: `/api/v1/documents/upload/{groupId}`.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters['groupId']))),
|
|
476
|
+
method: 'POST',
|
|
477
|
+
headers: headerParameters,
|
|
478
|
+
query: queryParameters,
|
|
479
|
+
body: formParams,
|
|
480
|
+
}, initOverrides);
|
|
481
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DocumentSummaryDTOFromJSON)(jsonValue));
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Upload of a new document into a DocumentGroup
|
|
486
|
+
*/
|
|
487
|
+
documentUploadDocument(requestParameters, initOverrides) {
|
|
488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
489
|
+
const response = yield this.documentUploadDocumentRaw(requestParameters, initOverrides);
|
|
490
|
+
return yield response.value();
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
exports.DocumentsApi = DocumentsApi;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prioritize API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.3.0
|
|
6
|
+
* Contact: peter.haller@prioritize-iot.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { NfcUnitDTO, NfcUnitRequest, ScanResult } from '../models/index';
|
|
14
|
+
export interface NfcUnitBindTaskRequest {
|
|
15
|
+
id: number;
|
|
16
|
+
taskId: number;
|
|
17
|
+
}
|
|
18
|
+
export interface NfcUnitDeleteNfcUnitRequest {
|
|
19
|
+
id: number;
|
|
20
|
+
}
|
|
21
|
+
export interface NfcUnitGetNfcUnitsRequest {
|
|
22
|
+
resourceId: number;
|
|
23
|
+
}
|
|
24
|
+
export interface NfcUnitRegisterNfcUnitRequest {
|
|
25
|
+
resourceId: number;
|
|
26
|
+
nfcUnitRequest: NfcUnitRequest;
|
|
27
|
+
}
|
|
28
|
+
export interface NfcUnitScanRequest {
|
|
29
|
+
uuid: string;
|
|
30
|
+
}
|
|
31
|
+
export interface NfcUnitUnbindTaskRequest {
|
|
32
|
+
id: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* NFCApi - interface
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface NFCApiInterface
|
|
39
|
+
*/
|
|
40
|
+
export interface NFCApiInterface {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Bind task
|
|
44
|
+
* @param {number} id
|
|
45
|
+
* @param {number} taskId
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
* @memberof NFCApiInterface
|
|
49
|
+
*/
|
|
50
|
+
nfcUnitBindTaskRaw(requestParameters: NfcUnitBindTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NfcUnitDTO>>;
|
|
51
|
+
/**
|
|
52
|
+
* Bind task
|
|
53
|
+
*/
|
|
54
|
+
nfcUnitBindTask(requestParameters: NfcUnitBindTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NfcUnitDTO>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @summary Delete an NFC unit
|
|
58
|
+
* @param {number} id
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
* @memberof NFCApiInterface
|
|
62
|
+
*/
|
|
63
|
+
nfcUnitDeleteNfcUnitRaw(requestParameters: NfcUnitDeleteNfcUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
64
|
+
/**
|
|
65
|
+
* Delete an NFC unit
|
|
66
|
+
*/
|
|
67
|
+
nfcUnitDeleteNfcUnit(requestParameters: NfcUnitDeleteNfcUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Get the NFC units
|
|
71
|
+
* @param {number} resourceId
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @memberof NFCApiInterface
|
|
75
|
+
*/
|
|
76
|
+
nfcUnitGetNfcUnitsRaw(requestParameters: NfcUnitGetNfcUnitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<NfcUnitDTO>>>;
|
|
77
|
+
/**
|
|
78
|
+
* Get the NFC units
|
|
79
|
+
*/
|
|
80
|
+
nfcUnitGetNfcUnits(requestParameters: NfcUnitGetNfcUnitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<NfcUnitDTO>>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @summary Register an NFC unit
|
|
84
|
+
* @param {number} resourceId
|
|
85
|
+
* @param {NfcUnitRequest} nfcUnitRequest
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
* @memberof NFCApiInterface
|
|
89
|
+
*/
|
|
90
|
+
nfcUnitRegisterNfcUnitRaw(requestParameters: NfcUnitRegisterNfcUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NfcUnitDTO>>;
|
|
91
|
+
/**
|
|
92
|
+
* Register an NFC unit
|
|
93
|
+
*/
|
|
94
|
+
nfcUnitRegisterNfcUnit(requestParameters: NfcUnitRegisterNfcUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NfcUnitDTO>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Process an NFC tag scan by its uuid
|
|
98
|
+
* @param {string} uuid
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
* @memberof NFCApiInterface
|
|
102
|
+
*/
|
|
103
|
+
nfcUnitScanRaw(requestParameters: NfcUnitScanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScanResult>>;
|
|
104
|
+
/**
|
|
105
|
+
* Process an NFC tag scan by its uuid
|
|
106
|
+
*/
|
|
107
|
+
nfcUnitScan(requestParameters: NfcUnitScanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScanResult>;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @summary Unbind task
|
|
111
|
+
* @param {number} id
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
* @memberof NFCApiInterface
|
|
115
|
+
*/
|
|
116
|
+
nfcUnitUnbindTaskRaw(requestParameters: NfcUnitUnbindTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NfcUnitDTO>>;
|
|
117
|
+
/**
|
|
118
|
+
* Unbind task
|
|
119
|
+
*/
|
|
120
|
+
nfcUnitUnbindTask(requestParameters: NfcUnitUnbindTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NfcUnitDTO>;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
export declare class NFCApi extends runtime.BaseAPI implements NFCApiInterface {
|
|
126
|
+
/**
|
|
127
|
+
* Bind task
|
|
128
|
+
*/
|
|
129
|
+
nfcUnitBindTaskRaw(requestParameters: NfcUnitBindTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NfcUnitDTO>>;
|
|
130
|
+
/**
|
|
131
|
+
* Bind task
|
|
132
|
+
*/
|
|
133
|
+
nfcUnitBindTask(requestParameters: NfcUnitBindTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NfcUnitDTO>;
|
|
134
|
+
/**
|
|
135
|
+
* Delete an NFC unit
|
|
136
|
+
*/
|
|
137
|
+
nfcUnitDeleteNfcUnitRaw(requestParameters: NfcUnitDeleteNfcUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
138
|
+
/**
|
|
139
|
+
* Delete an NFC unit
|
|
140
|
+
*/
|
|
141
|
+
nfcUnitDeleteNfcUnit(requestParameters: NfcUnitDeleteNfcUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* Get the NFC units
|
|
144
|
+
*/
|
|
145
|
+
nfcUnitGetNfcUnitsRaw(requestParameters: NfcUnitGetNfcUnitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<NfcUnitDTO>>>;
|
|
146
|
+
/**
|
|
147
|
+
* Get the NFC units
|
|
148
|
+
*/
|
|
149
|
+
nfcUnitGetNfcUnits(requestParameters: NfcUnitGetNfcUnitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<NfcUnitDTO>>;
|
|
150
|
+
/**
|
|
151
|
+
* Register an NFC unit
|
|
152
|
+
*/
|
|
153
|
+
nfcUnitRegisterNfcUnitRaw(requestParameters: NfcUnitRegisterNfcUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NfcUnitDTO>>;
|
|
154
|
+
/**
|
|
155
|
+
* Register an NFC unit
|
|
156
|
+
*/
|
|
157
|
+
nfcUnitRegisterNfcUnit(requestParameters: NfcUnitRegisterNfcUnitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NfcUnitDTO>;
|
|
158
|
+
/**
|
|
159
|
+
* Process an NFC tag scan by its uuid
|
|
160
|
+
*/
|
|
161
|
+
nfcUnitScanRaw(requestParameters: NfcUnitScanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScanResult>>;
|
|
162
|
+
/**
|
|
163
|
+
* Process an NFC tag scan by its uuid
|
|
164
|
+
*/
|
|
165
|
+
nfcUnitScan(requestParameters: NfcUnitScanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScanResult>;
|
|
166
|
+
/**
|
|
167
|
+
* Unbind task
|
|
168
|
+
*/
|
|
169
|
+
nfcUnitUnbindTaskRaw(requestParameters: NfcUnitUnbindTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NfcUnitDTO>>;
|
|
170
|
+
/**
|
|
171
|
+
* Unbind task
|
|
172
|
+
*/
|
|
173
|
+
nfcUnitUnbindTask(requestParameters: NfcUnitUnbindTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NfcUnitDTO>;
|
|
174
|
+
}
|