@openfilz-sdk/typescript-ee 1.5.3 → 1.6.1

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.
Files changed (152) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  4. package/README.md +8 -2
  5. package/api/collaboration-audit-controller-api.ts +2 -2
  6. package/api/collaboration-controller-api.ts +9 -9
  7. package/api/comments-api.ts +2 -2
  8. package/api/delegated-browse-grants-admin-api.ts +3 -3
  9. package/api/delegated-browse-grants-end-user-api.ts +5 -5
  10. package/api/digital-signature-api.ts +3 -3
  11. package/api/document-controller-api.ts +10 -10
  12. package/api/document-version-controller-api.ts +288 -0
  13. package/api/favorites-api.ts +4 -4
  14. package/api/file-controller-api.ts +1 -1
  15. package/api/folder-controller-api.ts +1 -1
  16. package/api/notifications-api.ts +1 -1
  17. package/api/scan-agent-api.ts +1 -1
  18. package/api/scanner-proxy-api.ts +4 -4
  19. package/api/tus-controller-api.ts +6 -6
  20. package/api.ts +1 -0
  21. package/configuration.ts +2 -2
  22. package/dist/api/collaboration-audit-controller-api.js +2 -2
  23. package/dist/api/collaboration-controller-api.js +9 -9
  24. package/dist/api/comments-api.js +2 -2
  25. package/dist/api/delegated-browse-grants-admin-api.js +3 -3
  26. package/dist/api/delegated-browse-grants-end-user-api.js +5 -5
  27. package/dist/api/digital-signature-api.js +3 -3
  28. package/dist/api/document-controller-api.js +10 -10
  29. package/dist/api/document-version-controller-api.d.ts +140 -0
  30. package/dist/api/document-version-controller-api.js +284 -0
  31. package/dist/api/favorites-api.js +4 -4
  32. package/dist/api/file-controller-api.js +1 -1
  33. package/dist/api/folder-controller-api.js +1 -1
  34. package/dist/api/notifications-api.js +1 -1
  35. package/dist/api/scan-agent-api.js +1 -1
  36. package/dist/api/scanner-proxy-api.js +4 -4
  37. package/dist/api/tus-controller-api.js +6 -6
  38. package/dist/api.d.ts +1 -0
  39. package/dist/api.js +1 -0
  40. package/dist/configuration.js +2 -2
  41. package/dist/esm/api/collaboration-audit-controller-api.js +2 -2
  42. package/dist/esm/api/collaboration-controller-api.js +9 -9
  43. package/dist/esm/api/comments-api.js +2 -2
  44. package/dist/esm/api/delegated-browse-grants-admin-api.js +3 -3
  45. package/dist/esm/api/delegated-browse-grants-end-user-api.js +5 -5
  46. package/dist/esm/api/digital-signature-api.js +3 -3
  47. package/dist/esm/api/document-controller-api.js +10 -10
  48. package/dist/esm/api/document-version-controller-api.d.ts +140 -0
  49. package/dist/esm/api/document-version-controller-api.js +277 -0
  50. package/dist/esm/api/favorites-api.js +4 -4
  51. package/dist/esm/api/file-controller-api.js +1 -1
  52. package/dist/esm/api/folder-controller-api.js +1 -1
  53. package/dist/esm/api/notifications-api.js +1 -1
  54. package/dist/esm/api/scan-agent-api.js +1 -1
  55. package/dist/esm/api/scanner-proxy-api.js +4 -4
  56. package/dist/esm/api/tus-controller-api.js +6 -6
  57. package/dist/esm/api.d.ts +1 -0
  58. package/dist/esm/api.js +1 -0
  59. package/dist/esm/configuration.js +2 -2
  60. package/dist/esm/models/audit-verification-result.js +1 -1
  61. package/dist/esm/models/create-blank-document-request.js +1 -1
  62. package/dist/esm/models/create-delegated-grant-request.js +1 -1
  63. package/dist/esm/models/delegated-grant-dto.js +2 -2
  64. package/dist/esm/models/document-info.js +1 -1
  65. package/dist/esm/models/document-version-info.d.ts +32 -0
  66. package/dist/esm/models/document-version-info.js +14 -0
  67. package/dist/esm/models/enriched-audit-log-details.d.ts +3 -0
  68. package/dist/esm/models/enriched-audit-log.d.ts +1 -0
  69. package/dist/esm/models/enriched-audit-log.js +3 -2
  70. package/dist/esm/models/folder-element-info.js +1 -1
  71. package/dist/esm/models/index.d.ts +3 -0
  72. package/dist/esm/models/index.js +3 -0
  73. package/dist/esm/models/notification-dto.js +1 -1
  74. package/dist/esm/models/public-signature-view.js +2 -2
  75. package/dist/esm/models/restore-version-audit.d.ts +17 -0
  76. package/dist/esm/models/restore-version-audit.js +14 -0
  77. package/dist/esm/models/restore-version-response.d.ts +32 -0
  78. package/dist/esm/models/restore-version-response.js +14 -0
  79. package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
  80. package/dist/esm/models/search-by-audit-log-request.js +3 -2
  81. package/dist/esm/models/search-by-metadata-request.js +1 -1
  82. package/dist/esm/models/share-request.js +1 -1
  83. package/dist/esm/models/share-result-error.js +1 -1
  84. package/dist/esm/models/signature-envelope-dto.js +1 -1
  85. package/dist/esm/models/signature-recipient-dto.js +1 -1
  86. package/dist/esm/models/sort-input.js +1 -1
  87. package/dist/esm/models/team-member-info.js +1 -1
  88. package/dist/esm/models/update-user-request.js +1 -1
  89. package/dist/esm/models/user-registration-request.js +1 -1
  90. package/dist/models/audit-verification-result.js +1 -1
  91. package/dist/models/create-blank-document-request.js +1 -1
  92. package/dist/models/create-delegated-grant-request.js +1 -1
  93. package/dist/models/delegated-grant-dto.js +2 -2
  94. package/dist/models/document-info.js +1 -1
  95. package/dist/models/document-version-info.d.ts +32 -0
  96. package/dist/models/document-version-info.js +15 -0
  97. package/dist/models/enriched-audit-log-details.d.ts +3 -0
  98. package/dist/models/enriched-audit-log.d.ts +1 -0
  99. package/dist/models/enriched-audit-log.js +3 -2
  100. package/dist/models/folder-element-info.js +1 -1
  101. package/dist/models/index.d.ts +3 -0
  102. package/dist/models/index.js +3 -0
  103. package/dist/models/notification-dto.js +1 -1
  104. package/dist/models/public-signature-view.js +2 -2
  105. package/dist/models/restore-version-audit.d.ts +17 -0
  106. package/dist/models/restore-version-audit.js +15 -0
  107. package/dist/models/restore-version-response.d.ts +32 -0
  108. package/dist/models/restore-version-response.js +15 -0
  109. package/dist/models/search-by-audit-log-request.d.ts +1 -0
  110. package/dist/models/search-by-audit-log-request.js +3 -2
  111. package/dist/models/search-by-metadata-request.js +1 -1
  112. package/dist/models/share-request.js +1 -1
  113. package/dist/models/share-result-error.js +1 -1
  114. package/dist/models/signature-envelope-dto.js +1 -1
  115. package/dist/models/signature-recipient-dto.js +1 -1
  116. package/dist/models/sort-input.js +1 -1
  117. package/dist/models/team-member-info.js +1 -1
  118. package/dist/models/update-user-request.js +1 -1
  119. package/dist/models/user-registration-request.js +1 -1
  120. package/docs/CopyAudit.md +2 -0
  121. package/docs/DocumentVersionControllerApi.md +169 -0
  122. package/docs/DocumentVersionInfo.md +27 -0
  123. package/docs/EnrichedAuditLogDetails.md +6 -0
  124. package/docs/ReplaceAudit.md +2 -0
  125. package/docs/RestoreVersionAudit.md +27 -0
  126. package/docs/RestoreVersionResponse.md +27 -0
  127. package/docs/UploadAudit.md +2 -0
  128. package/models/audit-verification-result.ts +1 -1
  129. package/models/create-blank-document-request.ts +1 -1
  130. package/models/create-delegated-grant-request.ts +1 -1
  131. package/models/delegated-grant-dto.ts +2 -2
  132. package/models/document-info.ts +1 -1
  133. package/models/document-version-info.ts +38 -0
  134. package/models/enriched-audit-log-details.ts +4 -1
  135. package/models/enriched-audit-log.ts +3 -2
  136. package/models/folder-element-info.ts +1 -1
  137. package/models/index.ts +3 -0
  138. package/models/notification-dto.ts +1 -1
  139. package/models/public-signature-view.ts +2 -2
  140. package/models/restore-version-audit.ts +26 -0
  141. package/models/restore-version-response.ts +38 -0
  142. package/models/search-by-audit-log-request.ts +3 -2
  143. package/models/search-by-metadata-request.ts +1 -1
  144. package/models/share-request.ts +1 -1
  145. package/models/share-result-error.ts +1 -1
  146. package/models/signature-envelope-dto.ts +1 -1
  147. package/models/signature-recipient-dto.ts +1 -1
  148. package/models/sort-input.ts +1 -1
  149. package/models/team-member-info.ts +1 -1
  150. package/models/update-user-request.ts +1 -1
  151. package/models/user-registration-request.ts +1 -1
  152. package/package.json +2 -2
@@ -45,7 +45,7 @@ const DelegatedBrowseGrantsEndUserApiAxiosParamCreator = function (configuration
45
45
  // verify required parameter 'id' is not null or undefined
46
46
  (0, common_1.assertParamExists)('accept', 'id', id);
47
47
  const localVarPath = `/api/v1/users/me/delegated/grants/{id}/accept`
48
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
48
+ .replace('{id}', encodeURIComponent(String(id)));
49
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
50
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
51
  let baseOptions;
@@ -78,7 +78,7 @@ const DelegatedBrowseGrantsEndUserApiAxiosParamCreator = function (configuration
78
78
  // verify required parameter 'id' is not null or undefined
79
79
  (0, common_1.assertParamExists)('decline', 'id', id);
80
80
  const localVarPath = `/api/v1/users/me/delegated/grants/{id}/decline`
81
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
81
+ .replace('{id}', encodeURIComponent(String(id)));
82
82
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
83
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
84
84
  let baseOptions;
@@ -111,7 +111,7 @@ const DelegatedBrowseGrantsEndUserApiAxiosParamCreator = function (configuration
111
111
  // verify required parameter 'id' is not null or undefined
112
112
  (0, common_1.assertParamExists)('disableLinkedWebhook', 'id', id);
113
113
  const localVarPath = `/api/v1/users/me/delegated/grants/{id}/disable-webhook`
114
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
114
+ .replace('{id}', encodeURIComponent(String(id)));
115
115
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
116
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
117
117
  let baseOptions;
@@ -177,7 +177,7 @@ const DelegatedBrowseGrantsEndUserApiAxiosParamCreator = function (configuration
177
177
  // verify required parameter 'id' is not null or undefined
178
178
  (0, common_1.assertParamExists)('revoke', 'id', id);
179
179
  const localVarPath = `/api/v1/users/me/delegated/grants/{id}/revoke`
180
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
180
+ .replace('{id}', encodeURIComponent(String(id)));
181
181
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
182
182
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
183
183
  let baseOptions;
@@ -412,5 +412,5 @@ exports.ListIncomingStatusEnum = {
412
412
  Declined: 'DECLINED',
413
413
  Revoked: 'REVOKED',
414
414
  Expired: 'EXPIRED',
415
- Consumed: 'CONSUMED'
415
+ Consumed: 'CONSUMED',
416
416
  };
@@ -45,7 +45,7 @@ const DigitalSignatureApiAxiosParamCreator = function (configuration) {
45
45
  // verify required parameter 'id' is not null or undefined
46
46
  (0, common_1.assertParamExists)('archive', 'id', id);
47
47
  const localVarPath = `/api/v1/signatures/{id}/archive`
48
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
48
+ .replace('{id}', encodeURIComponent(String(id)));
49
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
50
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
51
  let baseOptions;
@@ -78,7 +78,7 @@ const DigitalSignatureApiAxiosParamCreator = function (configuration) {
78
78
  // verify required parameter 'id' is not null or undefined
79
79
  (0, common_1.assertParamExists)('cancel', 'id', id);
80
80
  const localVarPath = `/api/v1/signatures/{id}/cancel`
81
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
81
+ .replace('{id}', encodeURIComponent(String(id)));
82
82
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
83
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
84
84
  let baseOptions;
@@ -145,7 +145,7 @@ const DigitalSignatureApiAxiosParamCreator = function (configuration) {
145
145
  // verify required parameter 'id' is not null or undefined
146
146
  (0, common_1.assertParamExists)('get1', 'id', id);
147
147
  const localVarPath = `/api/v1/signatures/{id}`
148
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
148
+ .replace('{id}', encodeURIComponent(String(id)));
149
149
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
150
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
151
151
  let baseOptions;
@@ -82,7 +82,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
82
82
  // verify required parameter 'deleteMetadataRequest' is not null or undefined
83
83
  (0, common_1.assertParamExists)('deleteDocumentMetadata', 'deleteMetadataRequest', deleteMetadataRequest);
84
84
  const localVarPath = `/api/v1/documents/{documentId}/metadata`
85
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
85
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
86
86
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
87
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
88
88
  let baseOptions;
@@ -116,7 +116,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
116
116
  // verify required parameter 'documentId' is not null or undefined
117
117
  (0, common_1.assertParamExists)('downloadDocument', 'documentId', documentId);
118
118
  const localVarPath = `/api/v1/documents/{documentId}/download`
119
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
119
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
120
120
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
121
121
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
122
122
  let baseOptions;
@@ -152,7 +152,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
152
152
  // verify required parameter 'token' is not null or undefined
153
153
  (0, common_1.assertParamExists)('downloadForOnlyOffice', 'token', token);
154
154
  const localVarPath = `/api/v1/documents/{documentId}/onlyoffice-download`
155
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
155
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
156
156
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
157
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
158
158
  let baseOptions;
@@ -222,7 +222,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
222
222
  // verify required parameter 'documentId' is not null or undefined
223
223
  (0, common_1.assertParamExists)('getDocumentAncestors', 'documentId', documentId);
224
224
  const localVarPath = `/api/v1/documents/{documentId}/ancestors`
225
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
225
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
226
226
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
227
227
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
228
228
  let baseOptions;
@@ -256,7 +256,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
256
256
  // verify required parameter 'documentId' is not null or undefined
257
257
  (0, common_1.assertParamExists)('getDocumentInfo', 'documentId', documentId);
258
258
  const localVarPath = `/api/v1/documents/{documentId}/info`
259
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
259
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
260
260
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
261
261
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
262
262
  let baseOptions;
@@ -293,7 +293,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
293
293
  // verify required parameter 'documentId' is not null or undefined
294
294
  (0, common_1.assertParamExists)('getDocumentMetadata', 'documentId', documentId);
295
295
  const localVarPath = `/api/v1/documents/{documentId}/search/metadata`
296
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
296
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
297
297
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
298
298
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
299
299
  let baseOptions;
@@ -330,7 +330,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
330
330
  // verify required parameter 'documentId' is not null or undefined
331
331
  (0, common_1.assertParamExists)('getDocumentPosition', 'documentId', documentId);
332
332
  const localVarPath = `/api/v1/documents/{documentId}/position`
333
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
333
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
334
334
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
335
335
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
336
336
  let baseOptions;
@@ -372,7 +372,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
372
372
  // verify required parameter 'file' is not null or undefined
373
373
  (0, common_1.assertParamExists)('replaceDocumentContent', 'file', file);
374
374
  const localVarPath = `/api/v1/documents/{documentId}/replace-content`
375
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
375
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
376
376
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
377
377
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
378
378
  let baseOptions;
@@ -414,7 +414,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
414
414
  // verify required parameter 'requestBody' is not null or undefined
415
415
  (0, common_1.assertParamExists)('replaceDocumentMetadata', 'requestBody', requestBody);
416
416
  const localVarPath = `/api/v1/documents/{documentId}/replace-metadata`
417
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
417
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
418
418
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
419
419
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
420
420
  let baseOptions;
@@ -486,7 +486,7 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
486
486
  // verify required parameter 'updateMetadataRequest' is not null or undefined
487
487
  (0, common_1.assertParamExists)('updateDocumentMetadata', 'updateMetadataRequest', updateMetadataRequest);
488
488
  const localVarPath = `/api/v1/documents/{documentId}/metadata`
489
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
489
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
490
490
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
491
491
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
492
492
  let baseOptions;
@@ -0,0 +1,140 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { DocumentVersionInfo } from '../models';
16
+ import type { RestoreVersionResponse } from '../models';
17
+ /**
18
+ * DocumentVersionControllerApi - axios parameter creator
19
+ */
20
+ export declare const DocumentVersionControllerApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Downloads the content of a specific stored version of a file document.
23
+ * @summary Download a specific document version
24
+ * @param {string} documentId
25
+ * @param {string} versionId
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ downloadVersion: (documentId: string, versionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
+ /**
31
+ * Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
32
+ * @summary List document versions
33
+ * @param {string} documentId
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ listVersions: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ * Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
40
+ * @summary Restore a previous document version
41
+ * @param {string} documentId
42
+ * @param {string} versionId
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ restoreVersion: (documentId: string, versionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
+ };
48
+ /**
49
+ * DocumentVersionControllerApi - functional programming interface
50
+ */
51
+ export declare const DocumentVersionControllerApiFp: (configuration?: Configuration) => {
52
+ /**
53
+ * Downloads the content of a specific stored version of a file document.
54
+ * @summary Download a specific document version
55
+ * @param {string} documentId
56
+ * @param {string} versionId
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ downloadVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
61
+ /**
62
+ * Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
63
+ * @summary List document versions
64
+ * @param {string} documentId
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ listVersions(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DocumentVersionInfo>>>;
69
+ /**
70
+ * Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
71
+ * @summary Restore a previous document version
72
+ * @param {string} documentId
73
+ * @param {string} versionId
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ restoreVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestoreVersionResponse>>;
78
+ };
79
+ /**
80
+ * DocumentVersionControllerApi - factory interface
81
+ */
82
+ export declare const DocumentVersionControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
83
+ /**
84
+ * Downloads the content of a specific stored version of a file document.
85
+ * @summary Download a specific document version
86
+ * @param {string} documentId
87
+ * @param {string} versionId
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ downloadVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
92
+ /**
93
+ * Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
94
+ * @summary List document versions
95
+ * @param {string} documentId
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ listVersions(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DocumentVersionInfo>>;
100
+ /**
101
+ * Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
102
+ * @summary Restore a previous document version
103
+ * @param {string} documentId
104
+ * @param {string} versionId
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ restoreVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): AxiosPromise<RestoreVersionResponse>;
109
+ };
110
+ /**
111
+ * DocumentVersionControllerApi - object-oriented interface
112
+ */
113
+ export declare class DocumentVersionControllerApi extends BaseAPI {
114
+ /**
115
+ * Downloads the content of a specific stored version of a file document.
116
+ * @summary Download a specific document version
117
+ * @param {string} documentId
118
+ * @param {string} versionId
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ downloadVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
123
+ /**
124
+ * Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
125
+ * @summary List document versions
126
+ * @param {string} documentId
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ listVersions(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentVersionInfo[], any, {}>>;
131
+ /**
132
+ * Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
133
+ * @summary Restore a previous document version
134
+ * @param {string} documentId
135
+ * @param {string} versionId
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ restoreVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RestoreVersionResponse, any, {}>>;
140
+ }
@@ -0,0 +1,284 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.DocumentVersionControllerApi = exports.DocumentVersionControllerApiFactory = exports.DocumentVersionControllerApiFp = exports.DocumentVersionControllerApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * DocumentVersionControllerApi - axios parameter creator
34
+ */
35
+ const DocumentVersionControllerApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Downloads the content of a specific stored version of a file document.
39
+ * @summary Download a specific document version
40
+ * @param {string} documentId
41
+ * @param {string} versionId
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ downloadVersion: (documentId_1, versionId_1, ...args_1) => __awaiter(this, [documentId_1, versionId_1, ...args_1], void 0, function* (documentId, versionId, options = {}) {
46
+ // verify required parameter 'documentId' is not null or undefined
47
+ (0, common_1.assertParamExists)('downloadVersion', 'documentId', documentId);
48
+ // verify required parameter 'versionId' is not null or undefined
49
+ (0, common_1.assertParamExists)('downloadVersion', 'versionId', versionId);
50
+ const localVarPath = `/api/v1/documents/{documentId}/versions/{versionId}/download`
51
+ .replace('{documentId}', encodeURIComponent(String(documentId)))
52
+ .replace('{versionId}', encodeURIComponent(String(versionId)));
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ if (configuration) {
57
+ baseOptions = configuration.baseOptions;
58
+ }
59
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
60
+ const localVarHeaderParameter = {};
61
+ const localVarQueryParameter = {};
62
+ // authentication keycloak_auth required
63
+ // http bearer authentication required
64
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
65
+ localVarHeaderParameter['Accept'] = '*/*';
66
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
67
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
69
+ return {
70
+ url: (0, common_1.toPathString)(localVarUrlObj),
71
+ options: localVarRequestOptions,
72
+ };
73
+ }),
74
+ /**
75
+ * Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
76
+ * @summary List document versions
77
+ * @param {string} documentId
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ listVersions: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
82
+ // verify required parameter 'documentId' is not null or undefined
83
+ (0, common_1.assertParamExists)('listVersions', 'documentId', documentId);
84
+ const localVarPath = `/api/v1/documents/{documentId}/versions`
85
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
86
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
88
+ let baseOptions;
89
+ if (configuration) {
90
+ baseOptions = configuration.baseOptions;
91
+ }
92
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
93
+ const localVarHeaderParameter = {};
94
+ const localVarQueryParameter = {};
95
+ // authentication keycloak_auth required
96
+ // http bearer authentication required
97
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
98
+ localVarHeaderParameter['Accept'] = '*/*';
99
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
102
+ return {
103
+ url: (0, common_1.toPathString)(localVarUrlObj),
104
+ options: localVarRequestOptions,
105
+ };
106
+ }),
107
+ /**
108
+ * Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
109
+ * @summary Restore a previous document version
110
+ * @param {string} documentId
111
+ * @param {string} versionId
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ restoreVersion: (documentId_1, versionId_1, ...args_1) => __awaiter(this, [documentId_1, versionId_1, ...args_1], void 0, function* (documentId, versionId, options = {}) {
116
+ // verify required parameter 'documentId' is not null or undefined
117
+ (0, common_1.assertParamExists)('restoreVersion', 'documentId', documentId);
118
+ // verify required parameter 'versionId' is not null or undefined
119
+ (0, common_1.assertParamExists)('restoreVersion', 'versionId', versionId);
120
+ const localVarPath = `/api/v1/documents/{documentId}/versions/{versionId}/restore`
121
+ .replace('{documentId}', encodeURIComponent(String(documentId)))
122
+ .replace('{versionId}', encodeURIComponent(String(versionId)));
123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
124
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
125
+ let baseOptions;
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
130
+ const localVarHeaderParameter = {};
131
+ const localVarQueryParameter = {};
132
+ // authentication keycloak_auth required
133
+ // http bearer authentication required
134
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
135
+ localVarHeaderParameter['Accept'] = '*/*';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ return {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ };
143
+ }),
144
+ };
145
+ };
146
+ exports.DocumentVersionControllerApiAxiosParamCreator = DocumentVersionControllerApiAxiosParamCreator;
147
+ /**
148
+ * DocumentVersionControllerApi - functional programming interface
149
+ */
150
+ const DocumentVersionControllerApiFp = function (configuration) {
151
+ const localVarAxiosParamCreator = (0, exports.DocumentVersionControllerApiAxiosParamCreator)(configuration);
152
+ return {
153
+ /**
154
+ * Downloads the content of a specific stored version of a file document.
155
+ * @summary Download a specific document version
156
+ * @param {string} documentId
157
+ * @param {string} versionId
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ downloadVersion(documentId, versionId, options) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ var _a, _b, _c;
164
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadVersion(documentId, versionId, options);
165
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
166
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentVersionControllerApi.downloadVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
167
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
168
+ });
169
+ },
170
+ /**
171
+ * Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
172
+ * @summary List document versions
173
+ * @param {string} documentId
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ listVersions(documentId, options) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ var _a, _b, _c;
180
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listVersions(documentId, options);
181
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
182
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentVersionControllerApi.listVersions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
183
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
184
+ });
185
+ },
186
+ /**
187
+ * Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
188
+ * @summary Restore a previous document version
189
+ * @param {string} documentId
190
+ * @param {string} versionId
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ restoreVersion(documentId, versionId, options) {
195
+ return __awaiter(this, void 0, void 0, function* () {
196
+ var _a, _b, _c;
197
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreVersion(documentId, versionId, options);
198
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
199
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentVersionControllerApi.restoreVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
200
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
201
+ });
202
+ },
203
+ };
204
+ };
205
+ exports.DocumentVersionControllerApiFp = DocumentVersionControllerApiFp;
206
+ /**
207
+ * DocumentVersionControllerApi - factory interface
208
+ */
209
+ const DocumentVersionControllerApiFactory = function (configuration, basePath, axios) {
210
+ const localVarFp = (0, exports.DocumentVersionControllerApiFp)(configuration);
211
+ return {
212
+ /**
213
+ * Downloads the content of a specific stored version of a file document.
214
+ * @summary Download a specific document version
215
+ * @param {string} documentId
216
+ * @param {string} versionId
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ downloadVersion(documentId, versionId, options) {
221
+ return localVarFp.downloadVersion(documentId, versionId, options).then((request) => request(axios, basePath));
222
+ },
223
+ /**
224
+ * Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
225
+ * @summary List document versions
226
+ * @param {string} documentId
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ listVersions(documentId, options) {
231
+ return localVarFp.listVersions(documentId, options).then((request) => request(axios, basePath));
232
+ },
233
+ /**
234
+ * Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
235
+ * @summary Restore a previous document version
236
+ * @param {string} documentId
237
+ * @param {string} versionId
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ restoreVersion(documentId, versionId, options) {
242
+ return localVarFp.restoreVersion(documentId, versionId, options).then((request) => request(axios, basePath));
243
+ },
244
+ };
245
+ };
246
+ exports.DocumentVersionControllerApiFactory = DocumentVersionControllerApiFactory;
247
+ /**
248
+ * DocumentVersionControllerApi - object-oriented interface
249
+ */
250
+ class DocumentVersionControllerApi extends base_1.BaseAPI {
251
+ /**
252
+ * Downloads the content of a specific stored version of a file document.
253
+ * @summary Download a specific document version
254
+ * @param {string} documentId
255
+ * @param {string} versionId
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ downloadVersion(documentId, versionId, options) {
260
+ return (0, exports.DocumentVersionControllerApiFp)(this.configuration).downloadVersion(documentId, versionId, options).then((request) => request(this.axios, this.basePath));
261
+ }
262
+ /**
263
+ * Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
264
+ * @summary List document versions
265
+ * @param {string} documentId
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ listVersions(documentId, options) {
270
+ return (0, exports.DocumentVersionControllerApiFp)(this.configuration).listVersions(documentId, options).then((request) => request(this.axios, this.basePath));
271
+ }
272
+ /**
273
+ * Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
274
+ * @summary Restore a previous document version
275
+ * @param {string} documentId
276
+ * @param {string} versionId
277
+ * @param {*} [options] Override http request option.
278
+ * @throws {RequiredError}
279
+ */
280
+ restoreVersion(documentId, versionId, options) {
281
+ return (0, exports.DocumentVersionControllerApiFp)(this.configuration).restoreVersion(documentId, versionId, options).then((request) => request(this.axios, this.basePath));
282
+ }
283
+ }
284
+ exports.DocumentVersionControllerApi = DocumentVersionControllerApi;
@@ -45,7 +45,7 @@ const FavoritesApiAxiosParamCreator = function (configuration) {
45
45
  // verify required parameter 'documentId' is not null or undefined
46
46
  (0, common_1.assertParamExists)('addFavorite', 'documentId', documentId);
47
47
  const localVarPath = `/api/v1/favorites/{documentId}`
48
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
48
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
49
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
50
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
51
  let baseOptions;
@@ -77,7 +77,7 @@ const FavoritesApiAxiosParamCreator = function (configuration) {
77
77
  // verify required parameter 'documentId' is not null or undefined
78
78
  (0, common_1.assertParamExists)('isFavorite', 'documentId', documentId);
79
79
  const localVarPath = `/api/v1/favorites/{documentId}/is-favorite`
80
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
80
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
81
81
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
82
82
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
83
83
  let baseOptions;
@@ -110,7 +110,7 @@ const FavoritesApiAxiosParamCreator = function (configuration) {
110
110
  // verify required parameter 'documentId' is not null or undefined
111
111
  (0, common_1.assertParamExists)('removeFavorite', 'documentId', documentId);
112
112
  const localVarPath = `/api/v1/favorites/{documentId}`
113
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
113
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
114
114
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
115
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
116
116
  let baseOptions;
@@ -142,7 +142,7 @@ const FavoritesApiAxiosParamCreator = function (configuration) {
142
142
  // verify required parameter 'documentId' is not null or undefined
143
143
  (0, common_1.assertParamExists)('toggleFavorite', 'documentId', documentId);
144
144
  const localVarPath = `/api/v1/favorites/{documentId}/toggle`
145
- .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
145
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
146
146
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
147
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
148
148
  let baseOptions;
@@ -148,7 +148,7 @@ const FileControllerApiAxiosParamCreator = function (configuration) {
148
148
  // verify required parameter 'renameRequest' is not null or undefined
149
149
  (0, common_1.assertParamExists)('renameFile', 'renameRequest', renameRequest);
150
150
  const localVarPath = `/api/v1/files/{fileId}/rename`
151
- .replace(`{${"fileId"}}`, encodeURIComponent(String(fileId)));
151
+ .replace('{fileId}', encodeURIComponent(String(fileId)));
152
152
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
153
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
154
154
  let baseOptions;
@@ -256,7 +256,7 @@ const FolderControllerApiAxiosParamCreator = function (configuration) {
256
256
  // verify required parameter 'renameRequest' is not null or undefined
257
257
  (0, common_1.assertParamExists)('renameFolder', 'renameRequest', renameRequest);
258
258
  const localVarPath = `/api/v1/folders/{folderId}/rename`
259
- .replace(`{${"folderId"}}`, encodeURIComponent(String(folderId)));
259
+ .replace('{folderId}', encodeURIComponent(String(folderId)));
260
260
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
261
261
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
262
262
  let baseOptions;