@openfilz-sdk/typescript-ee 1.3.5
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/.openapi-generator/FILES +167 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -0
- package/.openapi-generator-ignore +23 -0
- package/LICENSE +148 -0
- package/README.md +211 -0
- package/api/audit-controller-api.ts +283 -0
- package/api/collaboration-controller-api.ts +1172 -0
- package/api/comments-api.ts +284 -0
- package/api/dashboard-api.ts +121 -0
- package/api/document-controller-api.ts +1287 -0
- package/api/document-suggestion-controller-api.ts +149 -0
- package/api/favorites-api.ts +340 -0
- package/api/file-controller-api.ts +363 -0
- package/api/folder-controller-api.ts +605 -0
- package/api/notifications-api.ts +386 -0
- package/api/scan-agent-api.ts +206 -0
- package/api/scanner-proxy-api.ts +428 -0
- package/api/search-administration-api.ts +314 -0
- package/api/settings-api.ts +196 -0
- package/api/tus-controller-api.ts +738 -0
- package/api.ts +32 -0
- package/base.ts +62 -0
- package/common.ts +127 -0
- package/configuration.ts +121 -0
- package/dist/api/audit-controller-api.d.ts +138 -0
- package/dist/api/audit-controller-api.js +275 -0
- package/dist/api/collaboration-controller-api.d.ts +534 -0
- package/dist/api/collaboration-controller-api.js +1120 -0
- package/dist/api/comments-api.d.ts +137 -0
- package/dist/api/comments-api.js +278 -0
- package/dist/api/dashboard-api.d.ts +63 -0
- package/dist/api/dashboard-api.js +125 -0
- package/dist/api/document-controller-api.d.ts +594 -0
- package/dist/api/document-controller-api.js +1219 -0
- package/dist/api/document-suggestion-controller-api.d.ts +73 -0
- package/dist/api/document-suggestion-controller-api.js +146 -0
- package/dist/api/favorites-api.d.ts +162 -0
- package/dist/api/favorites-api.js +337 -0
- package/dist/api/file-controller-api.d.ts +172 -0
- package/dist/api/file-controller-api.js +348 -0
- package/dist/api/folder-controller-api.d.ts +282 -0
- package/dist/api/folder-controller-api.js +573 -0
- package/dist/api/notifications-api.d.ts +179 -0
- package/dist/api/notifications-api.js +378 -0
- package/dist/api/scan-agent-api.d.ts +108 -0
- package/dist/api/scan-agent-api.js +208 -0
- package/dist/api/scanner-proxy-api.d.ts +202 -0
- package/dist/api/scanner-proxy-api.js +414 -0
- package/dist/api/search-administration-api.d.ts +146 -0
- package/dist/api/search-administration-api.js +311 -0
- package/dist/api/settings-api.d.ts +96 -0
- package/dist/api/settings-api.js +195 -0
- package/dist/api/tus-controller-api.d.ts +338 -0
- package/dist/api/tus-controller-api.js +712 -0
- package/dist/api.d.ts +26 -0
- package/dist/api.js +44 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +139 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api/audit-controller-api.d.ts +138 -0
- package/dist/esm/api/audit-controller-api.js +268 -0
- package/dist/esm/api/collaboration-controller-api.d.ts +534 -0
- package/dist/esm/api/collaboration-controller-api.js +1113 -0
- package/dist/esm/api/comments-api.d.ts +137 -0
- package/dist/esm/api/comments-api.js +271 -0
- package/dist/esm/api/dashboard-api.d.ts +63 -0
- package/dist/esm/api/dashboard-api.js +118 -0
- package/dist/esm/api/document-controller-api.d.ts +594 -0
- package/dist/esm/api/document-controller-api.js +1212 -0
- package/dist/esm/api/document-suggestion-controller-api.d.ts +73 -0
- package/dist/esm/api/document-suggestion-controller-api.js +139 -0
- package/dist/esm/api/favorites-api.d.ts +162 -0
- package/dist/esm/api/favorites-api.js +330 -0
- package/dist/esm/api/file-controller-api.d.ts +172 -0
- package/dist/esm/api/file-controller-api.js +341 -0
- package/dist/esm/api/folder-controller-api.d.ts +282 -0
- package/dist/esm/api/folder-controller-api.js +566 -0
- package/dist/esm/api/notifications-api.d.ts +179 -0
- package/dist/esm/api/notifications-api.js +371 -0
- package/dist/esm/api/scan-agent-api.d.ts +108 -0
- package/dist/esm/api/scan-agent-api.js +201 -0
- package/dist/esm/api/scanner-proxy-api.d.ts +202 -0
- package/dist/esm/api/scanner-proxy-api.js +407 -0
- package/dist/esm/api/search-administration-api.d.ts +146 -0
- package/dist/esm/api/search-administration-api.js +304 -0
- package/dist/esm/api/settings-api.d.ts +96 -0
- package/dist/esm/api/settings-api.js +188 -0
- package/dist/esm/api/tus-controller-api.d.ts +338 -0
- package/dist/esm/api/tus-controller-api.js +705 -0
- package/dist/esm/api.d.ts +26 -0
- package/dist/esm/api.js +28 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +34 -0
- package/dist/esm/common.js +126 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/ancestor-info.d.ts +16 -0
- package/dist/esm/models/ancestor-info.js +14 -0
- package/dist/esm/models/audit-log-details-one-of.d.ts +42 -0
- package/dist/esm/models/audit-log-details-one-of.js +14 -0
- package/dist/esm/models/audit-log-details.d.ts +14 -0
- package/dist/esm/models/audit-log-details.js +14 -0
- package/dist/esm/models/audit-log.d.ts +63 -0
- package/dist/esm/models/audit-log.js +49 -0
- package/dist/esm/models/audit-verification-result.d.ts +28 -0
- package/dist/esm/models/audit-verification-result.js +18 -0
- package/dist/esm/models/broken-link.d.ts +16 -0
- package/dist/esm/models/broken-link.js +14 -0
- package/dist/esm/models/comment-dto.d.ts +22 -0
- package/dist/esm/models/comment-dto.js +14 -0
- package/dist/esm/models/copy-audit.d.ts +17 -0
- package/dist/esm/models/copy-audit.js +14 -0
- package/dist/esm/models/copy-request.d.ts +25 -0
- package/dist/esm/models/copy-request.js +14 -0
- package/dist/esm/models/copy-response.d.ts +21 -0
- package/dist/esm/models/copy-response.js +14 -0
- package/dist/esm/models/create-blank-document-request.d.ts +29 -0
- package/dist/esm/models/create-blank-document-request.js +19 -0
- package/dist/esm/models/create-comment-request.d.ts +25 -0
- package/dist/esm/models/create-comment-request.js +14 -0
- package/dist/esm/models/create-folder-audit.d.ts +17 -0
- package/dist/esm/models/create-folder-audit.js +14 -0
- package/dist/esm/models/create-folder-request.d.ts +18 -0
- package/dist/esm/models/create-folder-request.js +14 -0
- package/dist/esm/models/create-team-request.d.ts +15 -0
- package/dist/esm/models/create-team-request.js +14 -0
- package/dist/esm/models/dashboard-statistics-response.d.ts +19 -0
- package/dist/esm/models/dashboard-statistics-response.js +14 -0
- package/dist/esm/models/delete-audit.d.ts +17 -0
- package/dist/esm/models/delete-audit.js +14 -0
- package/dist/esm/models/delete-metadata-audit.d.ts +17 -0
- package/dist/esm/models/delete-metadata-audit.js +14 -0
- package/dist/esm/models/delete-metadata-request.d.ts +17 -0
- package/dist/esm/models/delete-metadata-request.js +14 -0
- package/dist/esm/models/delete-request.d.ts +17 -0
- package/dist/esm/models/delete-request.js +14 -0
- package/dist/esm/models/delete-share-request.d.ts +18 -0
- package/dist/esm/models/delete-share-request.js +14 -0
- package/dist/esm/models/document-info.d.ts +44 -0
- package/dist/esm/models/document-info.js +17 -0
- package/dist/esm/models/document-position.d.ts +17 -0
- package/dist/esm/models/document-position.js +14 -0
- package/dist/esm/models/element-info.d.ts +16 -0
- package/dist/esm/models/element-info.js +14 -0
- package/dist/esm/models/file-type-stats.d.ts +16 -0
- package/dist/esm/models/file-type-stats.js +14 -0
- package/dist/esm/models/filter-input.d.ts +15 -0
- package/dist/esm/models/filter-input.js +14 -0
- package/dist/esm/models/folder-element-info.d.ts +30 -0
- package/dist/esm/models/folder-element-info.js +17 -0
- package/dist/esm/models/folder-response.d.ts +16 -0
- package/dist/esm/models/folder-response.js +14 -0
- package/dist/esm/models/index.d.ts +62 -0
- package/dist/esm/models/index.js +62 -0
- package/dist/esm/models/ingestion-status-dto.d.ts +22 -0
- package/dist/esm/models/ingestion-status-dto.js +14 -0
- package/dist/esm/models/move-audit.d.ts +17 -0
- package/dist/esm/models/move-audit.js +14 -0
- package/dist/esm/models/move-request.d.ts +25 -0
- package/dist/esm/models/move-request.js +14 -0
- package/dist/esm/models/notification-dto.d.ts +29 -0
- package/dist/esm/models/notification-dto.js +19 -0
- package/dist/esm/models/rename-audit.d.ts +17 -0
- package/dist/esm/models/rename-audit.js +14 -0
- package/dist/esm/models/rename-request.d.ts +14 -0
- package/dist/esm/models/rename-request.js +14 -0
- package/dist/esm/models/replace-audit.d.ts +17 -0
- package/dist/esm/models/replace-audit.js +14 -0
- package/dist/esm/models/scan-job-status-dto.d.ts +20 -0
- package/dist/esm/models/scan-job-status-dto.js +14 -0
- package/dist/esm/models/scan-request-dto.d.ts +18 -0
- package/dist/esm/models/scan-request-dto.js +14 -0
- package/dist/esm/models/scanner-info-dto.d.ts +22 -0
- package/dist/esm/models/scanner-info-dto.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +76 -0
- package/dist/esm/models/search-by-audit-log-request.js +49 -0
- package/dist/esm/models/search-by-metadata-request.d.ts +43 -0
- package/dist/esm/models/search-by-metadata-request.js +17 -0
- package/dist/esm/models/search-metadata-request.d.ts +17 -0
- package/dist/esm/models/search-metadata-request.js +14 -0
- package/dist/esm/models/settings.d.ts +19 -0
- package/dist/esm/models/settings.js +14 -0
- package/dist/esm/models/share-request.d.ts +35 -0
- package/dist/esm/models/share-request.js +18 -0
- package/dist/esm/models/share-result-error.d.ts +26 -0
- package/dist/esm/models/share-result-error.js +22 -0
- package/dist/esm/models/share-result-item.d.ts +15 -0
- package/dist/esm/models/share-result-item.js +14 -0
- package/dist/esm/models/share-result-response.d.ts +18 -0
- package/dist/esm/models/share-result-response.js +14 -0
- package/dist/esm/models/sort-input.d.ts +20 -0
- package/dist/esm/models/sort-input.js +17 -0
- package/dist/esm/models/storage-breakdown.d.ts +17 -0
- package/dist/esm/models/storage-breakdown.js +14 -0
- package/dist/esm/models/suggest.d.ts +17 -0
- package/dist/esm/models/suggest.js +14 -0
- package/dist/esm/models/team-member-info.d.ts +23 -0
- package/dist/esm/models/team-member-info.js +18 -0
- package/dist/esm/models/tus-config-response.d.ts +18 -0
- package/dist/esm/models/tus-config-response.js +14 -0
- package/dist/esm/models/tus-finalize-request.d.ts +19 -0
- package/dist/esm/models/tus-finalize-request.js +14 -0
- package/dist/esm/models/tus-upload-info.d.ts +18 -0
- package/dist/esm/models/tus-upload-info.js +14 -0
- package/dist/esm/models/update-comment-request.d.ts +21 -0
- package/dist/esm/models/update-comment-request.js +14 -0
- package/dist/esm/models/update-metadata-audit.d.ts +17 -0
- package/dist/esm/models/update-metadata-audit.js +14 -0
- package/dist/esm/models/update-metadata-request.d.ts +19 -0
- package/dist/esm/models/update-metadata-request.js +14 -0
- package/dist/esm/models/update-team-request.d.ts +15 -0
- package/dist/esm/models/update-team-request.js +14 -0
- package/dist/esm/models/update-user-request.d.ts +22 -0
- package/dist/esm/models/update-user-request.js +18 -0
- package/dist/esm/models/upload-audit.d.ts +17 -0
- package/dist/esm/models/upload-audit.js +14 -0
- package/dist/esm/models/upload-response.d.ts +19 -0
- package/dist/esm/models/upload-response.js +14 -0
- package/dist/esm/models/user-preferences-request.d.ts +15 -0
- package/dist/esm/models/user-preferences-request.js +14 -0
- package/dist/esm/models/user-registration-request.d.ts +22 -0
- package/dist/esm/models/user-registration-request.js +18 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/ancestor-info.d.ts +16 -0
- package/dist/models/ancestor-info.js +15 -0
- package/dist/models/audit-log-details-one-of.d.ts +42 -0
- package/dist/models/audit-log-details-one-of.js +15 -0
- package/dist/models/audit-log-details.d.ts +14 -0
- package/dist/models/audit-log-details.js +15 -0
- package/dist/models/audit-log.d.ts +63 -0
- package/dist/models/audit-log.js +52 -0
- package/dist/models/audit-verification-result.d.ts +28 -0
- package/dist/models/audit-verification-result.js +21 -0
- package/dist/models/broken-link.d.ts +16 -0
- package/dist/models/broken-link.js +15 -0
- package/dist/models/comment-dto.d.ts +22 -0
- package/dist/models/comment-dto.js +15 -0
- package/dist/models/copy-audit.d.ts +17 -0
- package/dist/models/copy-audit.js +15 -0
- package/dist/models/copy-request.d.ts +25 -0
- package/dist/models/copy-request.js +15 -0
- package/dist/models/copy-response.d.ts +21 -0
- package/dist/models/copy-response.js +15 -0
- package/dist/models/create-blank-document-request.d.ts +29 -0
- package/dist/models/create-blank-document-request.js +22 -0
- package/dist/models/create-comment-request.d.ts +25 -0
- package/dist/models/create-comment-request.js +15 -0
- package/dist/models/create-folder-audit.d.ts +17 -0
- package/dist/models/create-folder-audit.js +15 -0
- package/dist/models/create-folder-request.d.ts +18 -0
- package/dist/models/create-folder-request.js +15 -0
- package/dist/models/create-team-request.d.ts +15 -0
- package/dist/models/create-team-request.js +15 -0
- package/dist/models/dashboard-statistics-response.d.ts +19 -0
- package/dist/models/dashboard-statistics-response.js +15 -0
- package/dist/models/delete-audit.d.ts +17 -0
- package/dist/models/delete-audit.js +15 -0
- package/dist/models/delete-metadata-audit.d.ts +17 -0
- package/dist/models/delete-metadata-audit.js +15 -0
- package/dist/models/delete-metadata-request.d.ts +17 -0
- package/dist/models/delete-metadata-request.js +15 -0
- package/dist/models/delete-request.d.ts +17 -0
- package/dist/models/delete-request.js +15 -0
- package/dist/models/delete-share-request.d.ts +18 -0
- package/dist/models/delete-share-request.js +15 -0
- package/dist/models/document-info.d.ts +44 -0
- package/dist/models/document-info.js +20 -0
- package/dist/models/document-position.d.ts +17 -0
- package/dist/models/document-position.js +15 -0
- package/dist/models/element-info.d.ts +16 -0
- package/dist/models/element-info.js +15 -0
- package/dist/models/file-type-stats.d.ts +16 -0
- package/dist/models/file-type-stats.js +15 -0
- package/dist/models/filter-input.d.ts +15 -0
- package/dist/models/filter-input.js +15 -0
- package/dist/models/folder-element-info.d.ts +30 -0
- package/dist/models/folder-element-info.js +20 -0
- package/dist/models/folder-response.d.ts +16 -0
- package/dist/models/folder-response.js +15 -0
- package/dist/models/index.d.ts +62 -0
- package/dist/models/index.js +78 -0
- package/dist/models/ingestion-status-dto.d.ts +22 -0
- package/dist/models/ingestion-status-dto.js +15 -0
- package/dist/models/move-audit.d.ts +17 -0
- package/dist/models/move-audit.js +15 -0
- package/dist/models/move-request.d.ts +25 -0
- package/dist/models/move-request.js +15 -0
- package/dist/models/notification-dto.d.ts +29 -0
- package/dist/models/notification-dto.js +22 -0
- package/dist/models/rename-audit.d.ts +17 -0
- package/dist/models/rename-audit.js +15 -0
- package/dist/models/rename-request.d.ts +14 -0
- package/dist/models/rename-request.js +15 -0
- package/dist/models/replace-audit.d.ts +17 -0
- package/dist/models/replace-audit.js +15 -0
- package/dist/models/scan-job-status-dto.d.ts +20 -0
- package/dist/models/scan-job-status-dto.js +15 -0
- package/dist/models/scan-request-dto.d.ts +18 -0
- package/dist/models/scan-request-dto.js +15 -0
- package/dist/models/scanner-info-dto.d.ts +22 -0
- package/dist/models/scanner-info-dto.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +76 -0
- package/dist/models/search-by-audit-log-request.js +52 -0
- package/dist/models/search-by-metadata-request.d.ts +43 -0
- package/dist/models/search-by-metadata-request.js +20 -0
- package/dist/models/search-metadata-request.d.ts +17 -0
- package/dist/models/search-metadata-request.js +15 -0
- package/dist/models/settings.d.ts +19 -0
- package/dist/models/settings.js +15 -0
- package/dist/models/share-request.d.ts +35 -0
- package/dist/models/share-request.js +21 -0
- package/dist/models/share-result-error.d.ts +26 -0
- package/dist/models/share-result-error.js +25 -0
- package/dist/models/share-result-item.d.ts +15 -0
- package/dist/models/share-result-item.js +15 -0
- package/dist/models/share-result-response.d.ts +18 -0
- package/dist/models/share-result-response.js +15 -0
- package/dist/models/sort-input.d.ts +20 -0
- package/dist/models/sort-input.js +20 -0
- package/dist/models/storage-breakdown.d.ts +17 -0
- package/dist/models/storage-breakdown.js +15 -0
- package/dist/models/suggest.d.ts +17 -0
- package/dist/models/suggest.js +15 -0
- package/dist/models/team-member-info.d.ts +23 -0
- package/dist/models/team-member-info.js +21 -0
- package/dist/models/tus-config-response.d.ts +18 -0
- package/dist/models/tus-config-response.js +15 -0
- package/dist/models/tus-finalize-request.d.ts +19 -0
- package/dist/models/tus-finalize-request.js +15 -0
- package/dist/models/tus-upload-info.d.ts +18 -0
- package/dist/models/tus-upload-info.js +15 -0
- package/dist/models/update-comment-request.d.ts +21 -0
- package/dist/models/update-comment-request.js +15 -0
- package/dist/models/update-metadata-audit.d.ts +17 -0
- package/dist/models/update-metadata-audit.js +15 -0
- package/dist/models/update-metadata-request.d.ts +19 -0
- package/dist/models/update-metadata-request.js +15 -0
- package/dist/models/update-team-request.d.ts +15 -0
- package/dist/models/update-team-request.js +15 -0
- package/dist/models/update-user-request.d.ts +22 -0
- package/dist/models/update-user-request.js +21 -0
- package/dist/models/upload-audit.d.ts +17 -0
- package/dist/models/upload-audit.js +15 -0
- package/dist/models/upload-response.d.ts +19 -0
- package/dist/models/upload-response.js +15 -0
- package/dist/models/user-preferences-request.d.ts +15 -0
- package/dist/models/user-preferences-request.js +15 -0
- package/dist/models/user-registration-request.d.ts +22 -0
- package/dist/models/user-registration-request.js +21 -0
- package/docs/AncestorInfo.md +24 -0
- package/docs/AuditControllerApi.md +160 -0
- package/docs/AuditLog.md +35 -0
- package/docs/AuditLogDetails.md +20 -0
- package/docs/AuditLogDetailsOneOf.md +42 -0
- package/docs/AuditVerificationResult.md +29 -0
- package/docs/BrokenLink.md +24 -0
- package/docs/CollaborationControllerApi.md +802 -0
- package/docs/CommentDTO.md +36 -0
- package/docs/CommentsApi.md +168 -0
- package/docs/CopyAudit.md +25 -0
- package/docs/CopyRequest.md +24 -0
- package/docs/CopyResponse.md +22 -0
- package/docs/CreateBlankDocumentRequest.md +24 -0
- package/docs/CreateCommentRequest.md +24 -0
- package/docs/CreateFolderAudit.md +23 -0
- package/docs/CreateFolderRequest.md +22 -0
- package/docs/CreateTeamRequest.md +22 -0
- package/docs/DashboardApi.md +52 -0
- package/docs/DashboardStatisticsResponse.md +26 -0
- package/docs/DeleteAudit.md +21 -0
- package/docs/DeleteMetadataAudit.md +21 -0
- package/docs/DeleteMetadataRequest.md +20 -0
- package/docs/DeleteRequest.md +20 -0
- package/docs/DeleteShareRequest.md +22 -0
- package/docs/DocumentControllerApi.md +834 -0
- package/docs/DocumentInfo.md +30 -0
- package/docs/DocumentPosition.md +26 -0
- package/docs/DocumentSuggestionControllerApi.md +65 -0
- package/docs/ElementInfo.md +24 -0
- package/docs/FavoritesApi.md +215 -0
- package/docs/FileControllerApi.md +222 -0
- package/docs/FileTypeStats.md +24 -0
- package/docs/FilterInput.md +22 -0
- package/docs/FolderControllerApi.md +385 -0
- package/docs/FolderElementInfo.md +24 -0
- package/docs/FolderResponse.md +24 -0
- package/docs/IngestionStatusDto.md +36 -0
- package/docs/MoveAudit.md +21 -0
- package/docs/MoveRequest.md +24 -0
- package/docs/NotificationDTO.md +36 -0
- package/docs/NotificationsApi.md +239 -0
- package/docs/RenameAudit.md +21 -0
- package/docs/RenameRequest.md +20 -0
- package/docs/ReplaceAudit.md +23 -0
- package/docs/ScanAgentApi.md +110 -0
- package/docs/ScanJobStatusDto.md +32 -0
- package/docs/ScanRequestDto.md +28 -0
- package/docs/ScannerInfoDto.md +36 -0
- package/docs/ScannerProxyApi.md +263 -0
- package/docs/SearchAdministrationApi.md +187 -0
- package/docs/SearchByAuditLogRequest.md +29 -0
- package/docs/SearchByMetadataRequest.md +29 -0
- package/docs/SearchMetadataRequest.md +20 -0
- package/docs/Settings.md +30 -0
- package/docs/SettingsApi.md +105 -0
- package/docs/ShareRequest.md +26 -0
- package/docs/ShareResultError.md +24 -0
- package/docs/ShareResultItem.md +22 -0
- package/docs/ShareResultResponse.md +24 -0
- package/docs/SortInput.md +22 -0
- package/docs/StorageBreakdown.md +24 -0
- package/docs/Suggest.md +26 -0
- package/docs/TeamMemberInfo.md +26 -0
- package/docs/TusConfigResponse.md +28 -0
- package/docs/TusControllerApi.md +493 -0
- package/docs/TusFinalizeRequest.md +26 -0
- package/docs/TusUploadInfo.md +28 -0
- package/docs/UpdateCommentRequest.md +22 -0
- package/docs/UpdateMetadataAudit.md +21 -0
- package/docs/UpdateMetadataRequest.md +20 -0
- package/docs/UpdateTeamRequest.md +22 -0
- package/docs/UpdateUserRequest.md +24 -0
- package/docs/UploadAudit.md +25 -0
- package/docs/UploadResponse.md +30 -0
- package/docs/UserPreferencesRequest.md +22 -0
- package/docs/UserRegistrationRequest.md +24 -0
- package/git_push.sh +57 -0
- package/graphql/analytics.graphqls +101 -0
- package/graphql/comment.graphqls +33 -0
- package/graphql/document-search.graphqls +44 -0
- package/graphql/document.graphqls +116 -0
- package/graphql/share.graphqls +168 -0
- package/index.ts +18 -0
- package/models/ancestor-info.ts +22 -0
- package/models/audit-log-details-one-of.ts +70 -0
- package/models/audit-log-details.ts +20 -0
- package/models/audit-log.ts +75 -0
- package/models/audit-verification-result.ts +39 -0
- package/models/broken-link.ts +22 -0
- package/models/comment-dto.ts +28 -0
- package/models/copy-audit.ts +26 -0
- package/models/copy-request.ts +31 -0
- package/models/copy-response.ts +27 -0
- package/models/create-blank-document-request.ts +38 -0
- package/models/create-comment-request.ts +31 -0
- package/models/create-folder-audit.ts +29 -0
- package/models/create-folder-request.ts +24 -0
- package/models/create-team-request.ts +21 -0
- package/models/dashboard-statistics-response.ts +29 -0
- package/models/delete-audit.ts +26 -0
- package/models/delete-metadata-audit.ts +26 -0
- package/models/delete-metadata-request.ts +23 -0
- package/models/delete-request.ts +23 -0
- package/models/delete-share-request.ts +24 -0
- package/models/document-info.ts +51 -0
- package/models/document-position.ts +23 -0
- package/models/element-info.ts +22 -0
- package/models/file-type-stats.ts +22 -0
- package/models/filter-input.ts +21 -0
- package/models/folder-element-info.ts +39 -0
- package/models/folder-response.ts +22 -0
- package/models/index.ts +62 -0
- package/models/ingestion-status-dto.ts +28 -0
- package/models/move-audit.ts +26 -0
- package/models/move-request.ts +31 -0
- package/models/notification-dto.ts +38 -0
- package/models/rename-audit.ts +26 -0
- package/models/rename-request.ts +20 -0
- package/models/replace-audit.ts +26 -0
- package/models/scan-job-status-dto.ts +26 -0
- package/models/scan-request-dto.ts +24 -0
- package/models/scanner-info-dto.ts +28 -0
- package/models/search-by-audit-log-request.ts +84 -0
- package/models/search-by-metadata-request.ts +50 -0
- package/models/search-metadata-request.ts +23 -0
- package/models/settings.ts +25 -0
- package/models/share-request.ts +44 -0
- package/models/share-result-error.ts +35 -0
- package/models/share-result-item.ts +21 -0
- package/models/share-result-response.ts +28 -0
- package/models/sort-input.ts +29 -0
- package/models/storage-breakdown.ts +25 -0
- package/models/suggest.ts +23 -0
- package/models/team-member-info.ts +32 -0
- package/models/tus-config-response.ts +24 -0
- package/models/tus-finalize-request.ts +23 -0
- package/models/tus-upload-info.ts +24 -0
- package/models/update-comment-request.ts +27 -0
- package/models/update-metadata-audit.ts +26 -0
- package/models/update-metadata-request.ts +23 -0
- package/models/update-team-request.ts +21 -0
- package/models/update-user-request.ts +31 -0
- package/models/upload-audit.ts +26 -0
- package/models/upload-response.ts +25 -0
- package/models/user-preferences-request.ts +21 -0
- package/models/user-registration-request.ts +31 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,1172 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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 type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { CreateTeamRequest } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { DeleteShareRequest } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { ShareRequest } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { ShareResultResponse } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { TeamMemberInfo } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { UpdateTeamRequest } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import type { UpdateUserRequest } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import type { UserRegistrationRequest } from '../models';
|
|
40
|
+
/**
|
|
41
|
+
* CollaborationControllerApi - axios parameter creator
|
|
42
|
+
*/
|
|
43
|
+
export const CollaborationControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
|
+
return {
|
|
45
|
+
/**
|
|
46
|
+
* Accepts a share request: creates the share and deletes the request. Accessible only by users with EDIT_SHARE role.
|
|
47
|
+
* @summary Accept a share request
|
|
48
|
+
* @param {string} id
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
acceptShareRequest: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
|
+
// verify required parameter 'id' is not null or undefined
|
|
54
|
+
assertParamExists('acceptShareRequest', 'id', id)
|
|
55
|
+
const localVarPath = `/api/v1/users/share-requests/{id}/accept`
|
|
56
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
57
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
|
+
let baseOptions;
|
|
60
|
+
if (configuration) {
|
|
61
|
+
baseOptions = configuration.baseOptions;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
65
|
+
const localVarHeaderParameter = {} as any;
|
|
66
|
+
const localVarQueryParameter = {} as any;
|
|
67
|
+
|
|
68
|
+
// authentication keycloak_auth required
|
|
69
|
+
// http bearer authentication required
|
|
70
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
|
+
|
|
72
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* Adds users to a team. Requires ADMIN_USERS role.
|
|
85
|
+
* @summary Add team members
|
|
86
|
+
* @param {string} teamId
|
|
87
|
+
* @param {Array<string>} requestBody
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
addTeamMembers: async (teamId: string, requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
93
|
+
assertParamExists('addTeamMembers', 'teamId', teamId)
|
|
94
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
95
|
+
assertParamExists('addTeamMembers', 'requestBody', requestBody)
|
|
96
|
+
const localVarPath = `/api/v1/users/teams/{teamId}/members`
|
|
97
|
+
.replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
|
|
98
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
100
|
+
let baseOptions;
|
|
101
|
+
if (configuration) {
|
|
102
|
+
baseOptions = configuration.baseOptions;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
106
|
+
const localVarHeaderParameter = {} as any;
|
|
107
|
+
const localVarQueryParameter = {} as any;
|
|
108
|
+
|
|
109
|
+
// authentication keycloak_auth required
|
|
110
|
+
// http bearer authentication required
|
|
111
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
112
|
+
|
|
113
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
114
|
+
|
|
115
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
116
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
118
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
url: toPathString(localVarUrlObj),
|
|
122
|
+
options: localVarRequestOptions,
|
|
123
|
+
};
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* Creates new Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_ALREADY_EXISTS: A share already exists for this document and user
|
|
127
|
+
* @summary Create Share for document(s)
|
|
128
|
+
* @param {ShareRequest} shareRequest
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
createSharedDocuments: async (shareRequest: ShareRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
133
|
+
// verify required parameter 'shareRequest' is not null or undefined
|
|
134
|
+
assertParamExists('createSharedDocuments', 'shareRequest', shareRequest)
|
|
135
|
+
const localVarPath = `/api/v1/users/share`;
|
|
136
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
138
|
+
let baseOptions;
|
|
139
|
+
if (configuration) {
|
|
140
|
+
baseOptions = configuration.baseOptions;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
144
|
+
const localVarHeaderParameter = {} as any;
|
|
145
|
+
const localVarQueryParameter = {} as any;
|
|
146
|
+
|
|
147
|
+
// authentication keycloak_auth required
|
|
148
|
+
// http bearer authentication required
|
|
149
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
150
|
+
|
|
151
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
152
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
153
|
+
|
|
154
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
155
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
156
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
157
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shareRequest, localVarRequestOptions, configuration)
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
url: toPathString(localVarUrlObj),
|
|
161
|
+
options: localVarRequestOptions,
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
/**
|
|
165
|
+
* Creates a new team. Requires ADMIN_USERS role.
|
|
166
|
+
* @summary Create a team
|
|
167
|
+
* @param {CreateTeamRequest} createTeamRequest
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
createTeam: async (createTeamRequest: CreateTeamRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
172
|
+
// verify required parameter 'createTeamRequest' is not null or undefined
|
|
173
|
+
assertParamExists('createTeam', 'createTeamRequest', createTeamRequest)
|
|
174
|
+
const localVarPath = `/api/v1/users/teams`;
|
|
175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
176
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
177
|
+
let baseOptions;
|
|
178
|
+
if (configuration) {
|
|
179
|
+
baseOptions = configuration.baseOptions;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
183
|
+
const localVarHeaderParameter = {} as any;
|
|
184
|
+
const localVarQueryParameter = {} as any;
|
|
185
|
+
|
|
186
|
+
// authentication keycloak_auth required
|
|
187
|
+
// http bearer authentication required
|
|
188
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
189
|
+
|
|
190
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
191
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
192
|
+
|
|
193
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
194
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
196
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createTeamRequest, localVarRequestOptions, configuration)
|
|
197
|
+
|
|
198
|
+
return {
|
|
199
|
+
url: toPathString(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
};
|
|
202
|
+
},
|
|
203
|
+
/**
|
|
204
|
+
* Create a new user to share documents with
|
|
205
|
+
* @summary Create a new user
|
|
206
|
+
* @param {UserRegistrationRequest} userRegistrationRequest
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
createUser: async (userRegistrationRequest: UserRegistrationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
211
|
+
// verify required parameter 'userRegistrationRequest' is not null or undefined
|
|
212
|
+
assertParamExists('createUser', 'userRegistrationRequest', userRegistrationRequest)
|
|
213
|
+
const localVarPath = `/api/v1/users`;
|
|
214
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
215
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
216
|
+
let baseOptions;
|
|
217
|
+
if (configuration) {
|
|
218
|
+
baseOptions = configuration.baseOptions;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
222
|
+
const localVarHeaderParameter = {} as any;
|
|
223
|
+
const localVarQueryParameter = {} as any;
|
|
224
|
+
|
|
225
|
+
// authentication keycloak_auth required
|
|
226
|
+
// http bearer authentication required
|
|
227
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
228
|
+
|
|
229
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
230
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
231
|
+
|
|
232
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
235
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userRegistrationRequest, localVarRequestOptions, configuration)
|
|
236
|
+
|
|
237
|
+
return {
|
|
238
|
+
url: toPathString(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions,
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
* Deactivates a user. Requires ADMIN_USERS role.
|
|
244
|
+
* @summary Deactivate a user
|
|
245
|
+
* @param {string} userId
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
deactivateUser: async (userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
250
|
+
// verify required parameter 'userId' is not null or undefined
|
|
251
|
+
assertParamExists('deactivateUser', 'userId', userId)
|
|
252
|
+
const localVarPath = `/api/v1/users/{userId}`
|
|
253
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
255
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
256
|
+
let baseOptions;
|
|
257
|
+
if (configuration) {
|
|
258
|
+
baseOptions = configuration.baseOptions;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
262
|
+
const localVarHeaderParameter = {} as any;
|
|
263
|
+
const localVarQueryParameter = {} as any;
|
|
264
|
+
|
|
265
|
+
// authentication keycloak_auth required
|
|
266
|
+
// http bearer authentication required
|
|
267
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
272
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
273
|
+
|
|
274
|
+
return {
|
|
275
|
+
url: toPathString(localVarUrlObj),
|
|
276
|
+
options: localVarRequestOptions,
|
|
277
|
+
};
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
* Deletes existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
|
|
281
|
+
* @summary Delete Share for document(s)
|
|
282
|
+
* @param {DeleteShareRequest} deleteShareRequest
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
deleteSharedDocuments: async (deleteShareRequest: DeleteShareRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
287
|
+
// verify required parameter 'deleteShareRequest' is not null or undefined
|
|
288
|
+
assertParamExists('deleteSharedDocuments', 'deleteShareRequest', deleteShareRequest)
|
|
289
|
+
const localVarPath = `/api/v1/users/share`;
|
|
290
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
291
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
292
|
+
let baseOptions;
|
|
293
|
+
if (configuration) {
|
|
294
|
+
baseOptions = configuration.baseOptions;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
298
|
+
const localVarHeaderParameter = {} as any;
|
|
299
|
+
const localVarQueryParameter = {} as any;
|
|
300
|
+
|
|
301
|
+
// authentication keycloak_auth required
|
|
302
|
+
// http bearer authentication required
|
|
303
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
304
|
+
|
|
305
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
306
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
307
|
+
|
|
308
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
310
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
311
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteShareRequest, localVarRequestOptions, configuration)
|
|
312
|
+
|
|
313
|
+
return {
|
|
314
|
+
url: toPathString(localVarUrlObj),
|
|
315
|
+
options: localVarRequestOptions,
|
|
316
|
+
};
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
* Deletes a team. Requires ADMIN_USERS role.
|
|
320
|
+
* @summary Delete a team
|
|
321
|
+
* @param {string} teamId
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
deleteTeam: async (teamId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
326
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
327
|
+
assertParamExists('deleteTeam', 'teamId', teamId)
|
|
328
|
+
const localVarPath = `/api/v1/users/teams/{teamId}`
|
|
329
|
+
.replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
|
|
330
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
331
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
332
|
+
let baseOptions;
|
|
333
|
+
if (configuration) {
|
|
334
|
+
baseOptions = configuration.baseOptions;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
338
|
+
const localVarHeaderParameter = {} as any;
|
|
339
|
+
const localVarQueryParameter = {} as any;
|
|
340
|
+
|
|
341
|
+
// authentication keycloak_auth required
|
|
342
|
+
// http bearer authentication required
|
|
343
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
348
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
349
|
+
|
|
350
|
+
return {
|
|
351
|
+
url: toPathString(localVarUrlObj),
|
|
352
|
+
options: localVarRequestOptions,
|
|
353
|
+
};
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* Lists all members of a team. Requires ADMIN_USERS role.
|
|
357
|
+
* @summary Get team members
|
|
358
|
+
* @param {string} teamId
|
|
359
|
+
* @param {*} [options] Override http request option.
|
|
360
|
+
* @throws {RequiredError}
|
|
361
|
+
*/
|
|
362
|
+
getTeamMembers: async (teamId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
363
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
364
|
+
assertParamExists('getTeamMembers', 'teamId', teamId)
|
|
365
|
+
const localVarPath = `/api/v1/users/teams/{teamId}/members`
|
|
366
|
+
.replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
|
|
367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
369
|
+
let baseOptions;
|
|
370
|
+
if (configuration) {
|
|
371
|
+
baseOptions = configuration.baseOptions;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
375
|
+
const localVarHeaderParameter = {} as any;
|
|
376
|
+
const localVarQueryParameter = {} as any;
|
|
377
|
+
|
|
378
|
+
// authentication keycloak_auth required
|
|
379
|
+
// http bearer authentication required
|
|
380
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
381
|
+
|
|
382
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
383
|
+
|
|
384
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
385
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
386
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
387
|
+
|
|
388
|
+
return {
|
|
389
|
+
url: toPathString(localVarUrlObj),
|
|
390
|
+
options: localVarRequestOptions,
|
|
391
|
+
};
|
|
392
|
+
},
|
|
393
|
+
/**
|
|
394
|
+
* Confirms the current user exists in the local database. User sync happens during JWT authentication, so this endpoint simply confirms authentication was successful.
|
|
395
|
+
* @summary Check user status
|
|
396
|
+
* @param {*} [options] Override http request option.
|
|
397
|
+
* @throws {RequiredError}
|
|
398
|
+
*/
|
|
399
|
+
getUserStatus: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
400
|
+
const localVarPath = `/api/v1/users/me/status`;
|
|
401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
402
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
403
|
+
let baseOptions;
|
|
404
|
+
if (configuration) {
|
|
405
|
+
baseOptions = configuration.baseOptions;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
409
|
+
const localVarHeaderParameter = {} as any;
|
|
410
|
+
const localVarQueryParameter = {} as any;
|
|
411
|
+
|
|
412
|
+
// authentication keycloak_auth required
|
|
413
|
+
// http bearer authentication required
|
|
414
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
418
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
419
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
420
|
+
|
|
421
|
+
return {
|
|
422
|
+
url: toPathString(localVarUrlObj),
|
|
423
|
+
options: localVarRequestOptions,
|
|
424
|
+
};
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
* Rejects and deletes a share request. Accessible only by users with EDIT_SHARE role.
|
|
428
|
+
* @summary Reject a share request
|
|
429
|
+
* @param {string} id
|
|
430
|
+
* @param {*} [options] Override http request option.
|
|
431
|
+
* @throws {RequiredError}
|
|
432
|
+
*/
|
|
433
|
+
rejectShareRequest: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
434
|
+
// verify required parameter 'id' is not null or undefined
|
|
435
|
+
assertParamExists('rejectShareRequest', 'id', id)
|
|
436
|
+
const localVarPath = `/api/v1/users/share-requests/{id}`
|
|
437
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
438
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
439
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
440
|
+
let baseOptions;
|
|
441
|
+
if (configuration) {
|
|
442
|
+
baseOptions = configuration.baseOptions;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
446
|
+
const localVarHeaderParameter = {} as any;
|
|
447
|
+
const localVarQueryParameter = {} as any;
|
|
448
|
+
|
|
449
|
+
// authentication keycloak_auth required
|
|
450
|
+
// http bearer authentication required
|
|
451
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
455
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
456
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
457
|
+
|
|
458
|
+
return {
|
|
459
|
+
url: toPathString(localVarUrlObj),
|
|
460
|
+
options: localVarRequestOptions,
|
|
461
|
+
};
|
|
462
|
+
},
|
|
463
|
+
/**
|
|
464
|
+
* Removes users from a team. Requires ADMIN_USERS role.
|
|
465
|
+
* @summary Remove team members
|
|
466
|
+
* @param {string} teamId
|
|
467
|
+
* @param {Array<string>} requestBody
|
|
468
|
+
* @param {*} [options] Override http request option.
|
|
469
|
+
* @throws {RequiredError}
|
|
470
|
+
*/
|
|
471
|
+
removeTeamMembers: async (teamId: string, requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
472
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
473
|
+
assertParamExists('removeTeamMembers', 'teamId', teamId)
|
|
474
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
475
|
+
assertParamExists('removeTeamMembers', 'requestBody', requestBody)
|
|
476
|
+
const localVarPath = `/api/v1/users/teams/{teamId}/members`
|
|
477
|
+
.replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
|
|
478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
479
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
480
|
+
let baseOptions;
|
|
481
|
+
if (configuration) {
|
|
482
|
+
baseOptions = configuration.baseOptions;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
486
|
+
const localVarHeaderParameter = {} as any;
|
|
487
|
+
const localVarQueryParameter = {} as any;
|
|
488
|
+
|
|
489
|
+
// authentication keycloak_auth required
|
|
490
|
+
// http bearer authentication required
|
|
491
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
492
|
+
|
|
493
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
494
|
+
|
|
495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
497
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
498
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
499
|
+
|
|
500
|
+
return {
|
|
501
|
+
url: toPathString(localVarUrlObj),
|
|
502
|
+
options: localVarRequestOptions,
|
|
503
|
+
};
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
* Updates existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
|
|
507
|
+
* @summary Update Share for document(s)
|
|
508
|
+
* @param {ShareRequest} shareRequest
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
*/
|
|
512
|
+
updateSharedDocuments: async (shareRequest: ShareRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
513
|
+
// verify required parameter 'shareRequest' is not null or undefined
|
|
514
|
+
assertParamExists('updateSharedDocuments', 'shareRequest', shareRequest)
|
|
515
|
+
const localVarPath = `/api/v1/users/share`;
|
|
516
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
517
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
518
|
+
let baseOptions;
|
|
519
|
+
if (configuration) {
|
|
520
|
+
baseOptions = configuration.baseOptions;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
524
|
+
const localVarHeaderParameter = {} as any;
|
|
525
|
+
const localVarQueryParameter = {} as any;
|
|
526
|
+
|
|
527
|
+
// authentication keycloak_auth required
|
|
528
|
+
// http bearer authentication required
|
|
529
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
530
|
+
|
|
531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
532
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
533
|
+
|
|
534
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
535
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
536
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
537
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shareRequest, localVarRequestOptions, configuration)
|
|
538
|
+
|
|
539
|
+
return {
|
|
540
|
+
url: toPathString(localVarUrlObj),
|
|
541
|
+
options: localVarRequestOptions,
|
|
542
|
+
};
|
|
543
|
+
},
|
|
544
|
+
/**
|
|
545
|
+
* Updates team name and email. Requires ADMIN_USERS role.
|
|
546
|
+
* @summary Update a team
|
|
547
|
+
* @param {string} teamId
|
|
548
|
+
* @param {UpdateTeamRequest} updateTeamRequest
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @throws {RequiredError}
|
|
551
|
+
*/
|
|
552
|
+
updateTeam: async (teamId: string, updateTeamRequest: UpdateTeamRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
553
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
554
|
+
assertParamExists('updateTeam', 'teamId', teamId)
|
|
555
|
+
// verify required parameter 'updateTeamRequest' is not null or undefined
|
|
556
|
+
assertParamExists('updateTeam', 'updateTeamRequest', updateTeamRequest)
|
|
557
|
+
const localVarPath = `/api/v1/users/teams/{teamId}`
|
|
558
|
+
.replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
|
|
559
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
560
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
561
|
+
let baseOptions;
|
|
562
|
+
if (configuration) {
|
|
563
|
+
baseOptions = configuration.baseOptions;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
567
|
+
const localVarHeaderParameter = {} as any;
|
|
568
|
+
const localVarQueryParameter = {} as any;
|
|
569
|
+
|
|
570
|
+
// authentication keycloak_auth required
|
|
571
|
+
// http bearer authentication required
|
|
572
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
573
|
+
|
|
574
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
575
|
+
|
|
576
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
577
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
578
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
579
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateTeamRequest, localVarRequestOptions, configuration)
|
|
580
|
+
|
|
581
|
+
return {
|
|
582
|
+
url: toPathString(localVarUrlObj),
|
|
583
|
+
options: localVarRequestOptions,
|
|
584
|
+
};
|
|
585
|
+
},
|
|
586
|
+
/**
|
|
587
|
+
* Updates user name, email and/or status. Requires ADMIN_USERS role. Status changes also require ASSIGN_LICENSES.
|
|
588
|
+
* @summary Update a user
|
|
589
|
+
* @param {string} userId
|
|
590
|
+
* @param {UpdateUserRequest} updateUserRequest
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
*/
|
|
594
|
+
updateUser: async (userId: string, updateUserRequest: UpdateUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
595
|
+
// verify required parameter 'userId' is not null or undefined
|
|
596
|
+
assertParamExists('updateUser', 'userId', userId)
|
|
597
|
+
// verify required parameter 'updateUserRequest' is not null or undefined
|
|
598
|
+
assertParamExists('updateUser', 'updateUserRequest', updateUserRequest)
|
|
599
|
+
const localVarPath = `/api/v1/users/{userId}`
|
|
600
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
601
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
602
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
603
|
+
let baseOptions;
|
|
604
|
+
if (configuration) {
|
|
605
|
+
baseOptions = configuration.baseOptions;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
609
|
+
const localVarHeaderParameter = {} as any;
|
|
610
|
+
const localVarQueryParameter = {} as any;
|
|
611
|
+
|
|
612
|
+
// authentication keycloak_auth required
|
|
613
|
+
// http bearer authentication required
|
|
614
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
615
|
+
|
|
616
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
617
|
+
|
|
618
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
619
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
620
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
621
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserRequest, localVarRequestOptions, configuration)
|
|
622
|
+
|
|
623
|
+
return {
|
|
624
|
+
url: toPathString(localVarUrlObj),
|
|
625
|
+
options: localVarRequestOptions,
|
|
626
|
+
};
|
|
627
|
+
},
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* CollaborationControllerApi - functional programming interface
|
|
633
|
+
*/
|
|
634
|
+
export const CollaborationControllerApiFp = function(configuration?: Configuration) {
|
|
635
|
+
const localVarAxiosParamCreator = CollaborationControllerApiAxiosParamCreator(configuration)
|
|
636
|
+
return {
|
|
637
|
+
/**
|
|
638
|
+
* Accepts a share request: creates the share and deletes the request. Accessible only by users with EDIT_SHARE role.
|
|
639
|
+
* @summary Accept a share request
|
|
640
|
+
* @param {string} id
|
|
641
|
+
* @param {*} [options] Override http request option.
|
|
642
|
+
* @throws {RequiredError}
|
|
643
|
+
*/
|
|
644
|
+
async acceptShareRequest(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<number>> {
|
|
645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.acceptShareRequest(id, options);
|
|
646
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
647
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.acceptShareRequest']?.[localVarOperationServerIndex]?.url;
|
|
648
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
649
|
+
},
|
|
650
|
+
/**
|
|
651
|
+
* Adds users to a team. Requires ADMIN_USERS role.
|
|
652
|
+
* @summary Add team members
|
|
653
|
+
* @param {string} teamId
|
|
654
|
+
* @param {Array<string>} requestBody
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
async addTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
659
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addTeamMembers(teamId, requestBody, options);
|
|
660
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
661
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.addTeamMembers']?.[localVarOperationServerIndex]?.url;
|
|
662
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
663
|
+
},
|
|
664
|
+
/**
|
|
665
|
+
* Creates new Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_ALREADY_EXISTS: A share already exists for this document and user
|
|
666
|
+
* @summary Create Share for document(s)
|
|
667
|
+
* @param {ShareRequest} shareRequest
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
async createSharedDocuments(shareRequest: ShareRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareResultResponse>> {
|
|
672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedDocuments(shareRequest, options);
|
|
673
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
674
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.createSharedDocuments']?.[localVarOperationServerIndex]?.url;
|
|
675
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
676
|
+
},
|
|
677
|
+
/**
|
|
678
|
+
* Creates a new team. Requires ADMIN_USERS role.
|
|
679
|
+
* @summary Create a team
|
|
680
|
+
* @param {CreateTeamRequest} createTeamRequest
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
async createTeam(createTeamRequest: CreateTeamRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
685
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTeam(createTeamRequest, options);
|
|
686
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
687
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.createTeam']?.[localVarOperationServerIndex]?.url;
|
|
688
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
689
|
+
},
|
|
690
|
+
/**
|
|
691
|
+
* Create a new user to share documents with
|
|
692
|
+
* @summary Create a new user
|
|
693
|
+
* @param {UserRegistrationRequest} userRegistrationRequest
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
async createUser(userRegistrationRequest: UserRegistrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
698
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(userRegistrationRequest, options);
|
|
699
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
700
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.createUser']?.[localVarOperationServerIndex]?.url;
|
|
701
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
702
|
+
},
|
|
703
|
+
/**
|
|
704
|
+
* Deactivates a user. Requires ADMIN_USERS role.
|
|
705
|
+
* @summary Deactivate a user
|
|
706
|
+
* @param {string} userId
|
|
707
|
+
* @param {*} [options] Override http request option.
|
|
708
|
+
* @throws {RequiredError}
|
|
709
|
+
*/
|
|
710
|
+
async deactivateUser(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivateUser(userId, options);
|
|
712
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
713
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.deactivateUser']?.[localVarOperationServerIndex]?.url;
|
|
714
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
715
|
+
},
|
|
716
|
+
/**
|
|
717
|
+
* Deletes existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
|
|
718
|
+
* @summary Delete Share for document(s)
|
|
719
|
+
* @param {DeleteShareRequest} deleteShareRequest
|
|
720
|
+
* @param {*} [options] Override http request option.
|
|
721
|
+
* @throws {RequiredError}
|
|
722
|
+
*/
|
|
723
|
+
async deleteSharedDocuments(deleteShareRequest: DeleteShareRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareResultResponse>> {
|
|
724
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSharedDocuments(deleteShareRequest, options);
|
|
725
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
726
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.deleteSharedDocuments']?.[localVarOperationServerIndex]?.url;
|
|
727
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
728
|
+
},
|
|
729
|
+
/**
|
|
730
|
+
* Deletes a team. Requires ADMIN_USERS role.
|
|
731
|
+
* @summary Delete a team
|
|
732
|
+
* @param {string} teamId
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
async deleteTeam(teamId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
737
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTeam(teamId, options);
|
|
738
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
739
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.deleteTeam']?.[localVarOperationServerIndex]?.url;
|
|
740
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
741
|
+
},
|
|
742
|
+
/**
|
|
743
|
+
* Lists all members of a team. Requires ADMIN_USERS role.
|
|
744
|
+
* @summary Get team members
|
|
745
|
+
* @param {string} teamId
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
*/
|
|
749
|
+
async getTeamMembers(teamId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TeamMemberInfo>>> {
|
|
750
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTeamMembers(teamId, options);
|
|
751
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
752
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.getTeamMembers']?.[localVarOperationServerIndex]?.url;
|
|
753
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
754
|
+
},
|
|
755
|
+
/**
|
|
756
|
+
* Confirms the current user exists in the local database. User sync happens during JWT authentication, so this endpoint simply confirms authentication was successful.
|
|
757
|
+
* @summary Check user status
|
|
758
|
+
* @param {*} [options] Override http request option.
|
|
759
|
+
* @throws {RequiredError}
|
|
760
|
+
*/
|
|
761
|
+
async getUserStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
762
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserStatus(options);
|
|
763
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
764
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.getUserStatus']?.[localVarOperationServerIndex]?.url;
|
|
765
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
766
|
+
},
|
|
767
|
+
/**
|
|
768
|
+
* Rejects and deletes a share request. Accessible only by users with EDIT_SHARE role.
|
|
769
|
+
* @summary Reject a share request
|
|
770
|
+
* @param {string} id
|
|
771
|
+
* @param {*} [options] Override http request option.
|
|
772
|
+
* @throws {RequiredError}
|
|
773
|
+
*/
|
|
774
|
+
async rejectShareRequest(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
775
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rejectShareRequest(id, options);
|
|
776
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
777
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.rejectShareRequest']?.[localVarOperationServerIndex]?.url;
|
|
778
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
779
|
+
},
|
|
780
|
+
/**
|
|
781
|
+
* Removes users from a team. Requires ADMIN_USERS role.
|
|
782
|
+
* @summary Remove team members
|
|
783
|
+
* @param {string} teamId
|
|
784
|
+
* @param {Array<string>} requestBody
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
async removeTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeTeamMembers(teamId, requestBody, options);
|
|
790
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
791
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.removeTeamMembers']?.[localVarOperationServerIndex]?.url;
|
|
792
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
* Updates existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
|
|
796
|
+
* @summary Update Share for document(s)
|
|
797
|
+
* @param {ShareRequest} shareRequest
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
*/
|
|
801
|
+
async updateSharedDocuments(shareRequest: ShareRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareResultResponse>> {
|
|
802
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedDocuments(shareRequest, options);
|
|
803
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
804
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.updateSharedDocuments']?.[localVarOperationServerIndex]?.url;
|
|
805
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
806
|
+
},
|
|
807
|
+
/**
|
|
808
|
+
* Updates team name and email. Requires ADMIN_USERS role.
|
|
809
|
+
* @summary Update a team
|
|
810
|
+
* @param {string} teamId
|
|
811
|
+
* @param {UpdateTeamRequest} updateTeamRequest
|
|
812
|
+
* @param {*} [options] Override http request option.
|
|
813
|
+
* @throws {RequiredError}
|
|
814
|
+
*/
|
|
815
|
+
async updateTeam(teamId: string, updateTeamRequest: UpdateTeamRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
816
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTeam(teamId, updateTeamRequest, options);
|
|
817
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
818
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.updateTeam']?.[localVarOperationServerIndex]?.url;
|
|
819
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
820
|
+
},
|
|
821
|
+
/**
|
|
822
|
+
* Updates user name, email and/or status. Requires ADMIN_USERS role. Status changes also require ASSIGN_LICENSES.
|
|
823
|
+
* @summary Update a user
|
|
824
|
+
* @param {string} userId
|
|
825
|
+
* @param {UpdateUserRequest} updateUserRequest
|
|
826
|
+
* @param {*} [options] Override http request option.
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
*/
|
|
829
|
+
async updateUser(userId: string, updateUserRequest: UpdateUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
830
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(userId, updateUserRequest, options);
|
|
831
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
832
|
+
const localVarOperationServerBasePath = operationServerMap['CollaborationControllerApi.updateUser']?.[localVarOperationServerIndex]?.url;
|
|
833
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
834
|
+
},
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* CollaborationControllerApi - factory interface
|
|
840
|
+
*/
|
|
841
|
+
export const CollaborationControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
842
|
+
const localVarFp = CollaborationControllerApiFp(configuration)
|
|
843
|
+
return {
|
|
844
|
+
/**
|
|
845
|
+
* Accepts a share request: creates the share and deletes the request. Accessible only by users with EDIT_SHARE role.
|
|
846
|
+
* @summary Accept a share request
|
|
847
|
+
* @param {string} id
|
|
848
|
+
* @param {*} [options] Override http request option.
|
|
849
|
+
* @throws {RequiredError}
|
|
850
|
+
*/
|
|
851
|
+
acceptShareRequest(id: string, options?: RawAxiosRequestConfig): AxiosPromise<number> {
|
|
852
|
+
return localVarFp.acceptShareRequest(id, options).then((request) => request(axios, basePath));
|
|
853
|
+
},
|
|
854
|
+
/**
|
|
855
|
+
* Adds users to a team. Requires ADMIN_USERS role.
|
|
856
|
+
* @summary Add team members
|
|
857
|
+
* @param {string} teamId
|
|
858
|
+
* @param {Array<string>} requestBody
|
|
859
|
+
* @param {*} [options] Override http request option.
|
|
860
|
+
* @throws {RequiredError}
|
|
861
|
+
*/
|
|
862
|
+
addTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
863
|
+
return localVarFp.addTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
864
|
+
},
|
|
865
|
+
/**
|
|
866
|
+
* Creates new Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_ALREADY_EXISTS: A share already exists for this document and user
|
|
867
|
+
* @summary Create Share for document(s)
|
|
868
|
+
* @param {ShareRequest} shareRequest
|
|
869
|
+
* @param {*} [options] Override http request option.
|
|
870
|
+
* @throws {RequiredError}
|
|
871
|
+
*/
|
|
872
|
+
createSharedDocuments(shareRequest: ShareRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareResultResponse> {
|
|
873
|
+
return localVarFp.createSharedDocuments(shareRequest, options).then((request) => request(axios, basePath));
|
|
874
|
+
},
|
|
875
|
+
/**
|
|
876
|
+
* Creates a new team. Requires ADMIN_USERS role.
|
|
877
|
+
* @summary Create a team
|
|
878
|
+
* @param {CreateTeamRequest} createTeamRequest
|
|
879
|
+
* @param {*} [options] Override http request option.
|
|
880
|
+
* @throws {RequiredError}
|
|
881
|
+
*/
|
|
882
|
+
createTeam(createTeamRequest: CreateTeamRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
883
|
+
return localVarFp.createTeam(createTeamRequest, options).then((request) => request(axios, basePath));
|
|
884
|
+
},
|
|
885
|
+
/**
|
|
886
|
+
* Create a new user to share documents with
|
|
887
|
+
* @summary Create a new user
|
|
888
|
+
* @param {UserRegistrationRequest} userRegistrationRequest
|
|
889
|
+
* @param {*} [options] Override http request option.
|
|
890
|
+
* @throws {RequiredError}
|
|
891
|
+
*/
|
|
892
|
+
createUser(userRegistrationRequest: UserRegistrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
893
|
+
return localVarFp.createUser(userRegistrationRequest, options).then((request) => request(axios, basePath));
|
|
894
|
+
},
|
|
895
|
+
/**
|
|
896
|
+
* Deactivates a user. Requires ADMIN_USERS role.
|
|
897
|
+
* @summary Deactivate a user
|
|
898
|
+
* @param {string} userId
|
|
899
|
+
* @param {*} [options] Override http request option.
|
|
900
|
+
* @throws {RequiredError}
|
|
901
|
+
*/
|
|
902
|
+
deactivateUser(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
903
|
+
return localVarFp.deactivateUser(userId, options).then((request) => request(axios, basePath));
|
|
904
|
+
},
|
|
905
|
+
/**
|
|
906
|
+
* Deletes existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
|
|
907
|
+
* @summary Delete Share for document(s)
|
|
908
|
+
* @param {DeleteShareRequest} deleteShareRequest
|
|
909
|
+
* @param {*} [options] Override http request option.
|
|
910
|
+
* @throws {RequiredError}
|
|
911
|
+
*/
|
|
912
|
+
deleteSharedDocuments(deleteShareRequest: DeleteShareRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareResultResponse> {
|
|
913
|
+
return localVarFp.deleteSharedDocuments(deleteShareRequest, options).then((request) => request(axios, basePath));
|
|
914
|
+
},
|
|
915
|
+
/**
|
|
916
|
+
* Deletes a team. Requires ADMIN_USERS role.
|
|
917
|
+
* @summary Delete a team
|
|
918
|
+
* @param {string} teamId
|
|
919
|
+
* @param {*} [options] Override http request option.
|
|
920
|
+
* @throws {RequiredError}
|
|
921
|
+
*/
|
|
922
|
+
deleteTeam(teamId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
923
|
+
return localVarFp.deleteTeam(teamId, options).then((request) => request(axios, basePath));
|
|
924
|
+
},
|
|
925
|
+
/**
|
|
926
|
+
* Lists all members of a team. Requires ADMIN_USERS role.
|
|
927
|
+
* @summary Get team members
|
|
928
|
+
* @param {string} teamId
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
*/
|
|
932
|
+
getTeamMembers(teamId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<TeamMemberInfo>> {
|
|
933
|
+
return localVarFp.getTeamMembers(teamId, options).then((request) => request(axios, basePath));
|
|
934
|
+
},
|
|
935
|
+
/**
|
|
936
|
+
* Confirms the current user exists in the local database. User sync happens during JWT authentication, so this endpoint simply confirms authentication was successful.
|
|
937
|
+
* @summary Check user status
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
*/
|
|
941
|
+
getUserStatus(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
942
|
+
return localVarFp.getUserStatus(options).then((request) => request(axios, basePath));
|
|
943
|
+
},
|
|
944
|
+
/**
|
|
945
|
+
* Rejects and deletes a share request. Accessible only by users with EDIT_SHARE role.
|
|
946
|
+
* @summary Reject a share request
|
|
947
|
+
* @param {string} id
|
|
948
|
+
* @param {*} [options] Override http request option.
|
|
949
|
+
* @throws {RequiredError}
|
|
950
|
+
*/
|
|
951
|
+
rejectShareRequest(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
952
|
+
return localVarFp.rejectShareRequest(id, options).then((request) => request(axios, basePath));
|
|
953
|
+
},
|
|
954
|
+
/**
|
|
955
|
+
* Removes users from a team. Requires ADMIN_USERS role.
|
|
956
|
+
* @summary Remove team members
|
|
957
|
+
* @param {string} teamId
|
|
958
|
+
* @param {Array<string>} requestBody
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
*/
|
|
962
|
+
removeTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
963
|
+
return localVarFp.removeTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
964
|
+
},
|
|
965
|
+
/**
|
|
966
|
+
* Updates existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
|
|
967
|
+
* @summary Update Share for document(s)
|
|
968
|
+
* @param {ShareRequest} shareRequest
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
*/
|
|
972
|
+
updateSharedDocuments(shareRequest: ShareRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareResultResponse> {
|
|
973
|
+
return localVarFp.updateSharedDocuments(shareRequest, options).then((request) => request(axios, basePath));
|
|
974
|
+
},
|
|
975
|
+
/**
|
|
976
|
+
* Updates team name and email. Requires ADMIN_USERS role.
|
|
977
|
+
* @summary Update a team
|
|
978
|
+
* @param {string} teamId
|
|
979
|
+
* @param {UpdateTeamRequest} updateTeamRequest
|
|
980
|
+
* @param {*} [options] Override http request option.
|
|
981
|
+
* @throws {RequiredError}
|
|
982
|
+
*/
|
|
983
|
+
updateTeam(teamId: string, updateTeamRequest: UpdateTeamRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
984
|
+
return localVarFp.updateTeam(teamId, updateTeamRequest, options).then((request) => request(axios, basePath));
|
|
985
|
+
},
|
|
986
|
+
/**
|
|
987
|
+
* Updates user name, email and/or status. Requires ADMIN_USERS role. Status changes also require ASSIGN_LICENSES.
|
|
988
|
+
* @summary Update a user
|
|
989
|
+
* @param {string} userId
|
|
990
|
+
* @param {UpdateUserRequest} updateUserRequest
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
updateUser(userId: string, updateUserRequest: UpdateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
995
|
+
return localVarFp.updateUser(userId, updateUserRequest, options).then((request) => request(axios, basePath));
|
|
996
|
+
},
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* CollaborationControllerApi - object-oriented interface
|
|
1002
|
+
*/
|
|
1003
|
+
export class CollaborationControllerApi extends BaseAPI {
|
|
1004
|
+
/**
|
|
1005
|
+
* Accepts a share request: creates the share and deletes the request. Accessible only by users with EDIT_SHARE role.
|
|
1006
|
+
* @summary Accept a share request
|
|
1007
|
+
* @param {string} id
|
|
1008
|
+
* @param {*} [options] Override http request option.
|
|
1009
|
+
* @throws {RequiredError}
|
|
1010
|
+
*/
|
|
1011
|
+
public acceptShareRequest(id: string, options?: RawAxiosRequestConfig) {
|
|
1012
|
+
return CollaborationControllerApiFp(this.configuration).acceptShareRequest(id, options).then((request) => request(this.axios, this.basePath));
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Adds users to a team. Requires ADMIN_USERS role.
|
|
1017
|
+
* @summary Add team members
|
|
1018
|
+
* @param {string} teamId
|
|
1019
|
+
* @param {Array<string>} requestBody
|
|
1020
|
+
* @param {*} [options] Override http request option.
|
|
1021
|
+
* @throws {RequiredError}
|
|
1022
|
+
*/
|
|
1023
|
+
public addTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) {
|
|
1024
|
+
return CollaborationControllerApiFp(this.configuration).addTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Creates new Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_ALREADY_EXISTS: A share already exists for this document and user
|
|
1029
|
+
* @summary Create Share for document(s)
|
|
1030
|
+
* @param {ShareRequest} shareRequest
|
|
1031
|
+
* @param {*} [options] Override http request option.
|
|
1032
|
+
* @throws {RequiredError}
|
|
1033
|
+
*/
|
|
1034
|
+
public createSharedDocuments(shareRequest: ShareRequest, options?: RawAxiosRequestConfig) {
|
|
1035
|
+
return CollaborationControllerApiFp(this.configuration).createSharedDocuments(shareRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Creates a new team. Requires ADMIN_USERS role.
|
|
1040
|
+
* @summary Create a team
|
|
1041
|
+
* @param {CreateTeamRequest} createTeamRequest
|
|
1042
|
+
* @param {*} [options] Override http request option.
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
*/
|
|
1045
|
+
public createTeam(createTeamRequest: CreateTeamRequest, options?: RawAxiosRequestConfig) {
|
|
1046
|
+
return CollaborationControllerApiFp(this.configuration).createTeam(createTeamRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Create a new user to share documents with
|
|
1051
|
+
* @summary Create a new user
|
|
1052
|
+
* @param {UserRegistrationRequest} userRegistrationRequest
|
|
1053
|
+
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @throws {RequiredError}
|
|
1055
|
+
*/
|
|
1056
|
+
public createUser(userRegistrationRequest: UserRegistrationRequest, options?: RawAxiosRequestConfig) {
|
|
1057
|
+
return CollaborationControllerApiFp(this.configuration).createUser(userRegistrationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* Deactivates a user. Requires ADMIN_USERS role.
|
|
1062
|
+
* @summary Deactivate a user
|
|
1063
|
+
* @param {string} userId
|
|
1064
|
+
* @param {*} [options] Override http request option.
|
|
1065
|
+
* @throws {RequiredError}
|
|
1066
|
+
*/
|
|
1067
|
+
public deactivateUser(userId: string, options?: RawAxiosRequestConfig) {
|
|
1068
|
+
return CollaborationControllerApiFp(this.configuration).deactivateUser(userId, options).then((request) => request(this.axios, this.basePath));
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Deletes existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
|
|
1073
|
+
* @summary Delete Share for document(s)
|
|
1074
|
+
* @param {DeleteShareRequest} deleteShareRequest
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
public deleteSharedDocuments(deleteShareRequest: DeleteShareRequest, options?: RawAxiosRequestConfig) {
|
|
1079
|
+
return CollaborationControllerApiFp(this.configuration).deleteSharedDocuments(deleteShareRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Deletes a team. Requires ADMIN_USERS role.
|
|
1084
|
+
* @summary Delete a team
|
|
1085
|
+
* @param {string} teamId
|
|
1086
|
+
* @param {*} [options] Override http request option.
|
|
1087
|
+
* @throws {RequiredError}
|
|
1088
|
+
*/
|
|
1089
|
+
public deleteTeam(teamId: string, options?: RawAxiosRequestConfig) {
|
|
1090
|
+
return CollaborationControllerApiFp(this.configuration).deleteTeam(teamId, options).then((request) => request(this.axios, this.basePath));
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Lists all members of a team. Requires ADMIN_USERS role.
|
|
1095
|
+
* @summary Get team members
|
|
1096
|
+
* @param {string} teamId
|
|
1097
|
+
* @param {*} [options] Override http request option.
|
|
1098
|
+
* @throws {RequiredError}
|
|
1099
|
+
*/
|
|
1100
|
+
public getTeamMembers(teamId: string, options?: RawAxiosRequestConfig) {
|
|
1101
|
+
return CollaborationControllerApiFp(this.configuration).getTeamMembers(teamId, options).then((request) => request(this.axios, this.basePath));
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* Confirms the current user exists in the local database. User sync happens during JWT authentication, so this endpoint simply confirms authentication was successful.
|
|
1106
|
+
* @summary Check user status
|
|
1107
|
+
* @param {*} [options] Override http request option.
|
|
1108
|
+
* @throws {RequiredError}
|
|
1109
|
+
*/
|
|
1110
|
+
public getUserStatus(options?: RawAxiosRequestConfig) {
|
|
1111
|
+
return CollaborationControllerApiFp(this.configuration).getUserStatus(options).then((request) => request(this.axios, this.basePath));
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Rejects and deletes a share request. Accessible only by users with EDIT_SHARE role.
|
|
1116
|
+
* @summary Reject a share request
|
|
1117
|
+
* @param {string} id
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
public rejectShareRequest(id: string, options?: RawAxiosRequestConfig) {
|
|
1122
|
+
return CollaborationControllerApiFp(this.configuration).rejectShareRequest(id, options).then((request) => request(this.axios, this.basePath));
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Removes users from a team. Requires ADMIN_USERS role.
|
|
1127
|
+
* @summary Remove team members
|
|
1128
|
+
* @param {string} teamId
|
|
1129
|
+
* @param {Array<string>} requestBody
|
|
1130
|
+
* @param {*} [options] Override http request option.
|
|
1131
|
+
* @throws {RequiredError}
|
|
1132
|
+
*/
|
|
1133
|
+
public removeTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) {
|
|
1134
|
+
return CollaborationControllerApiFp(this.configuration).removeTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* Updates existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
|
|
1139
|
+
* @summary Update Share for document(s)
|
|
1140
|
+
* @param {ShareRequest} shareRequest
|
|
1141
|
+
* @param {*} [options] Override http request option.
|
|
1142
|
+
* @throws {RequiredError}
|
|
1143
|
+
*/
|
|
1144
|
+
public updateSharedDocuments(shareRequest: ShareRequest, options?: RawAxiosRequestConfig) {
|
|
1145
|
+
return CollaborationControllerApiFp(this.configuration).updateSharedDocuments(shareRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Updates team name and email. Requires ADMIN_USERS role.
|
|
1150
|
+
* @summary Update a team
|
|
1151
|
+
* @param {string} teamId
|
|
1152
|
+
* @param {UpdateTeamRequest} updateTeamRequest
|
|
1153
|
+
* @param {*} [options] Override http request option.
|
|
1154
|
+
* @throws {RequiredError}
|
|
1155
|
+
*/
|
|
1156
|
+
public updateTeam(teamId: string, updateTeamRequest: UpdateTeamRequest, options?: RawAxiosRequestConfig) {
|
|
1157
|
+
return CollaborationControllerApiFp(this.configuration).updateTeam(teamId, updateTeamRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Updates user name, email and/or status. Requires ADMIN_USERS role. Status changes also require ASSIGN_LICENSES.
|
|
1162
|
+
* @summary Update a user
|
|
1163
|
+
* @param {string} userId
|
|
1164
|
+
* @param {UpdateUserRequest} updateUserRequest
|
|
1165
|
+
* @param {*} [options] Override http request option.
|
|
1166
|
+
* @throws {RequiredError}
|
|
1167
|
+
*/
|
|
1168
|
+
public updateUser(userId: string, updateUserRequest: UpdateUserRequest, options?: RawAxiosRequestConfig) {
|
|
1169
|
+
return CollaborationControllerApiFp(this.configuration).updateUser(userId, updateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
|