@openfilz-sdk/typescript-ee 1.9.1 → 1.9.3

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 (140) hide show
  1. package/.openapi-generator/FILES +36 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +24 -2
  4. package/api/feature-entitlements-api.ts +121 -0
  5. package/api/pdftools-api.ts +430 -0
  6. package/api.ts +2 -0
  7. package/dist/api/feature-entitlements-api.d.ts +63 -0
  8. package/dist/api/feature-entitlements-api.js +125 -0
  9. package/dist/api/pdftools-api.d.ts +200 -0
  10. package/dist/api/pdftools-api.js +412 -0
  11. package/dist/api.d.ts +2 -0
  12. package/dist/api.js +2 -0
  13. package/dist/esm/api/feature-entitlements-api.d.ts +63 -0
  14. package/dist/esm/api/feature-entitlements-api.js +118 -0
  15. package/dist/esm/api/pdftools-api.d.ts +200 -0
  16. package/dist/esm/api/pdftools-api.js +405 -0
  17. package/dist/esm/api.d.ts +2 -0
  18. package/dist/esm/api.js +2 -0
  19. package/dist/esm/models/enriched-audit-log-details.d.ts +3 -0
  20. package/dist/esm/models/enriched-audit-log.d.ts +1 -0
  21. package/dist/esm/models/enriched-audit-log.js +1 -0
  22. package/dist/esm/models/feature-entitlement.d.ts +16 -0
  23. package/dist/esm/models/feature-entitlement.js +14 -0
  24. package/dist/esm/models/index.d.ts +16 -0
  25. package/dist/esm/models/index.js +16 -0
  26. package/dist/esm/models/merge-request.d.ts +30 -0
  27. package/dist/esm/models/merge-request.js +14 -0
  28. package/dist/esm/models/merge-source.d.ts +24 -0
  29. package/dist/esm/models/merge-source.js +14 -0
  30. package/dist/esm/models/organize-request.d.ts +30 -0
  31. package/dist/esm/models/organize-request.js +14 -0
  32. package/dist/esm/models/output-target.d.ts +41 -0
  33. package/dist/esm/models/output-target.js +17 -0
  34. package/dist/esm/models/page-instruction.d.ts +28 -0
  35. package/dist/esm/models/page-instruction.js +14 -0
  36. package/dist/esm/models/pdf-info.d.ts +26 -0
  37. package/dist/esm/models/pdf-info.js +14 -0
  38. package/dist/esm/models/pdf-operation-response.d.ts +19 -0
  39. package/dist/esm/models/pdf-operation-response.js +14 -0
  40. package/dist/esm/models/pdf-outline-entry.d.ts +19 -0
  41. package/dist/esm/models/pdf-outline-entry.js +14 -0
  42. package/dist/esm/models/pdf-output-info.d.ts +21 -0
  43. package/dist/esm/models/pdf-output-info.js +14 -0
  44. package/dist/esm/models/pdf-page-info.d.ts +20 -0
  45. package/dist/esm/models/pdf-page-info.js +14 -0
  46. package/dist/esm/models/pdf-transform-audit.d.ts +17 -0
  47. package/dist/esm/models/pdf-transform-audit.js +14 -0
  48. package/dist/esm/models/response.d.ts +15 -0
  49. package/dist/esm/models/response.js +14 -0
  50. package/dist/esm/models/rotate-request.d.ts +33 -0
  51. package/dist/esm/models/rotate-request.js +14 -0
  52. package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
  53. package/dist/esm/models/search-by-audit-log-request.js +1 -0
  54. package/dist/esm/models/settings.d.ts +1 -0
  55. package/dist/esm/models/split-output.d.ts +32 -0
  56. package/dist/esm/models/split-output.js +14 -0
  57. package/dist/esm/models/split-request.d.ts +53 -0
  58. package/dist/esm/models/split-request.js +20 -0
  59. package/dist/models/enriched-audit-log-details.d.ts +3 -0
  60. package/dist/models/enriched-audit-log.d.ts +1 -0
  61. package/dist/models/enriched-audit-log.js +1 -0
  62. package/dist/models/feature-entitlement.d.ts +16 -0
  63. package/dist/models/feature-entitlement.js +15 -0
  64. package/dist/models/index.d.ts +16 -0
  65. package/dist/models/index.js +16 -0
  66. package/dist/models/merge-request.d.ts +30 -0
  67. package/dist/models/merge-request.js +15 -0
  68. package/dist/models/merge-source.d.ts +24 -0
  69. package/dist/models/merge-source.js +15 -0
  70. package/dist/models/organize-request.d.ts +30 -0
  71. package/dist/models/organize-request.js +15 -0
  72. package/dist/models/output-target.d.ts +41 -0
  73. package/dist/models/output-target.js +20 -0
  74. package/dist/models/page-instruction.d.ts +28 -0
  75. package/dist/models/page-instruction.js +15 -0
  76. package/dist/models/pdf-info.d.ts +26 -0
  77. package/dist/models/pdf-info.js +15 -0
  78. package/dist/models/pdf-operation-response.d.ts +19 -0
  79. package/dist/models/pdf-operation-response.js +15 -0
  80. package/dist/models/pdf-outline-entry.d.ts +19 -0
  81. package/dist/models/pdf-outline-entry.js +15 -0
  82. package/dist/models/pdf-output-info.d.ts +21 -0
  83. package/dist/models/pdf-output-info.js +15 -0
  84. package/dist/models/pdf-page-info.d.ts +20 -0
  85. package/dist/models/pdf-page-info.js +15 -0
  86. package/dist/models/pdf-transform-audit.d.ts +17 -0
  87. package/dist/models/pdf-transform-audit.js +15 -0
  88. package/dist/models/response.d.ts +15 -0
  89. package/dist/models/response.js +15 -0
  90. package/dist/models/rotate-request.d.ts +33 -0
  91. package/dist/models/rotate-request.js +15 -0
  92. package/dist/models/search-by-audit-log-request.d.ts +1 -0
  93. package/dist/models/search-by-audit-log-request.js +1 -0
  94. package/dist/models/settings.d.ts +1 -0
  95. package/dist/models/split-output.d.ts +32 -0
  96. package/dist/models/split-output.js +15 -0
  97. package/dist/models/split-request.d.ts +53 -0
  98. package/dist/models/split-request.js +23 -0
  99. package/docs/EnrichedAuditLogDetails.md +8 -2
  100. package/docs/FeatureEntitlement.md +24 -0
  101. package/docs/FeatureEntitlementsApi.md +52 -0
  102. package/docs/MergeRequest.md +25 -0
  103. package/docs/MergeSource.md +23 -0
  104. package/docs/OrganizeRequest.md +25 -0
  105. package/docs/OutputTarget.md +29 -0
  106. package/docs/PDFToolsApi.md +271 -0
  107. package/docs/PageInstruction.md +25 -0
  108. package/docs/PdfInfo.md +35 -0
  109. package/docs/PdfOperationResponse.md +23 -0
  110. package/docs/PdfOutlineEntry.md +25 -0
  111. package/docs/PdfOutputInfo.md +29 -0
  112. package/docs/PdfPageInfo.md +27 -0
  113. package/docs/PdfTransformAudit.md +27 -0
  114. package/docs/Response.md +20 -0
  115. package/docs/RotateRequest.md +27 -0
  116. package/docs/Settings.md +2 -0
  117. package/docs/SplitOutput.md +27 -0
  118. package/docs/SplitRequest.md +33 -0
  119. package/models/enriched-audit-log-details.ts +4 -1
  120. package/models/enriched-audit-log.ts +1 -0
  121. package/models/feature-entitlement.ts +22 -0
  122. package/models/index.ts +16 -0
  123. package/models/merge-request.ts +40 -0
  124. package/models/merge-source.ts +30 -0
  125. package/models/organize-request.ts +40 -0
  126. package/models/output-target.ts +50 -0
  127. package/models/page-instruction.ts +34 -0
  128. package/models/pdf-info.ts +36 -0
  129. package/models/pdf-operation-response.ts +27 -0
  130. package/models/pdf-outline-entry.ts +25 -0
  131. package/models/pdf-output-info.ts +27 -0
  132. package/models/pdf-page-info.ts +26 -0
  133. package/models/pdf-transform-audit.ts +26 -0
  134. package/models/response.ts +23 -0
  135. package/models/rotate-request.ts +41 -0
  136. package/models/search-by-audit-log-request.ts +1 -0
  137. package/models/settings.ts +1 -0
  138. package/models/split-output.ts +38 -0
  139. package/models/split-request.ts +64 -0
  140. package/package.json +1 -1
@@ -0,0 +1,405 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * PDFToolsApi - axios parameter creator
31
+ */
32
+ export const PDFToolsApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
36
+ * @summary Describe a stored PDF
37
+ * @param {string} documentId PDF document id
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ info: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
42
+ // verify required parameter 'documentId' is not null or undefined
43
+ assertParamExists('info', 'documentId', documentId);
44
+ const localVarPath = `/api/v1/pdf/{documentId}/info`
45
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ localVarHeaderParameter['Accept'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ return {
63
+ url: toPathString(localVarUrlObj),
64
+ options: localVarRequestOptions,
65
+ };
66
+ }),
67
+ /**
68
+ * Concatenate several PDFs (or page selections of them) into one document, in the given order, optionally with one bookmark per source. Default output: a new document next to the first source.
69
+ * @summary Merge PDFs
70
+ * @param {MergeRequest} mergeRequest
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ merge: (mergeRequest_1, ...args_1) => __awaiter(this, [mergeRequest_1, ...args_1], void 0, function* (mergeRequest, options = {}) {
75
+ // verify required parameter 'mergeRequest' is not null or undefined
76
+ assertParamExists('merge', 'mergeRequest', mergeRequest);
77
+ const localVarPath = `/api/v1/pdf/merge`;
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
85
+ const localVarHeaderParameter = {};
86
+ const localVarQueryParameter = {};
87
+ // authentication keycloak_auth required
88
+ // http bearer authentication required
89
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
90
+ localVarHeaderParameter['Content-Type'] = 'application/json';
91
+ localVarHeaderParameter['Accept'] = 'application/json';
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
+ localVarRequestOptions.data = serializeDataIfNeeded(mergeRequest, localVarRequestOptions, configuration);
96
+ return {
97
+ url: toPathString(localVarUrlObj),
98
+ options: localVarRequestOptions,
99
+ };
100
+ }),
101
+ /**
102
+ * The result is exactly the listed pages, in order: reorder, delete, duplicate, rotate individual pages, extract a selection, or insert pages from other PDFs. Default output: a new version of the main document.
103
+ * @summary Reorganise the pages of a PDF
104
+ * @param {OrganizeRequest} organizeRequest
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ organize: (organizeRequest_1, ...args_1) => __awaiter(this, [organizeRequest_1, ...args_1], void 0, function* (organizeRequest, options = {}) {
109
+ // verify required parameter 'organizeRequest' is not null or undefined
110
+ assertParamExists('organize', 'organizeRequest', organizeRequest);
111
+ const localVarPath = `/api/v1/pdf/organize`;
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ }
118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
119
+ const localVarHeaderParameter = {};
120
+ const localVarQueryParameter = {};
121
+ // authentication keycloak_auth required
122
+ // http bearer authentication required
123
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
124
+ localVarHeaderParameter['Content-Type'] = 'application/json';
125
+ localVarHeaderParameter['Accept'] = 'application/json';
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
129
+ localVarRequestOptions.data = serializeDataIfNeeded(organizeRequest, localVarRequestOptions, configuration);
130
+ return {
131
+ url: toPathString(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ }),
135
+ /**
136
+ * Rotate all or selected pages of one or several PDFs by 90, 180 or 270 degrees, one output per document. Default output: a new version of each document.
137
+ * @summary Rotate pages
138
+ * @param {RotateRequest} rotateRequest
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ rotate: (rotateRequest_1, ...args_1) => __awaiter(this, [rotateRequest_1, ...args_1], void 0, function* (rotateRequest, options = {}) {
143
+ // verify required parameter 'rotateRequest' is not null or undefined
144
+ assertParamExists('rotate', 'rotateRequest', rotateRequest);
145
+ const localVarPath = `/api/v1/pdf/rotate`;
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ if (configuration) {
150
+ baseOptions = configuration.baseOptions;
151
+ }
152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
153
+ const localVarHeaderParameter = {};
154
+ const localVarQueryParameter = {};
155
+ // authentication keycloak_auth required
156
+ // http bearer authentication required
157
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
158
+ localVarHeaderParameter['Content-Type'] = 'application/json';
159
+ localVarHeaderParameter['Accept'] = 'application/json';
160
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
162
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
163
+ localVarRequestOptions.data = serializeDataIfNeeded(rotateRequest, localVarRequestOptions, configuration);
164
+ return {
165
+ url: toPathString(localVarUrlObj),
166
+ options: localVarRequestOptions,
167
+ };
168
+ }),
169
+ /**
170
+ * Cut one PDF into several new documents: every N pages, at given pages, by explicit page ranges, one document per page, or at bookmarks. Names follow a pattern ({name}, {index}, {first}, {last}, {title}).
171
+ * @summary Split a PDF
172
+ * @param {SplitRequest} splitRequest
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ split: (splitRequest_1, ...args_1) => __awaiter(this, [splitRequest_1, ...args_1], void 0, function* (splitRequest, options = {}) {
177
+ // verify required parameter 'splitRequest' is not null or undefined
178
+ assertParamExists('split', 'splitRequest', splitRequest);
179
+ const localVarPath = `/api/v1/pdf/split`;
180
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
181
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
182
+ let baseOptions;
183
+ if (configuration) {
184
+ baseOptions = configuration.baseOptions;
185
+ }
186
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
187
+ const localVarHeaderParameter = {};
188
+ const localVarQueryParameter = {};
189
+ // authentication keycloak_auth required
190
+ // http bearer authentication required
191
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
192
+ localVarHeaderParameter['Content-Type'] = 'application/json';
193
+ localVarHeaderParameter['Accept'] = 'application/json';
194
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
197
+ localVarRequestOptions.data = serializeDataIfNeeded(splitRequest, localVarRequestOptions, configuration);
198
+ return {
199
+ url: toPathString(localVarUrlObj),
200
+ options: localVarRequestOptions,
201
+ };
202
+ }),
203
+ };
204
+ };
205
+ /**
206
+ * PDFToolsApi - functional programming interface
207
+ */
208
+ export const PDFToolsApiFp = function (configuration) {
209
+ const localVarAxiosParamCreator = PDFToolsApiAxiosParamCreator(configuration);
210
+ return {
211
+ /**
212
+ * Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
213
+ * @summary Describe a stored PDF
214
+ * @param {string} documentId PDF document id
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ info(documentId, options) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ var _a, _b, _c;
221
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.info(documentId, options);
222
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
223
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PDFToolsApi.info']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
224
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
225
+ });
226
+ },
227
+ /**
228
+ * Concatenate several PDFs (or page selections of them) into one document, in the given order, optionally with one bookmark per source. Default output: a new document next to the first source.
229
+ * @summary Merge PDFs
230
+ * @param {MergeRequest} mergeRequest
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ merge(mergeRequest, options) {
235
+ return __awaiter(this, void 0, void 0, function* () {
236
+ var _a, _b, _c;
237
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.merge(mergeRequest, options);
238
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
239
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PDFToolsApi.merge']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
240
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
241
+ });
242
+ },
243
+ /**
244
+ * The result is exactly the listed pages, in order: reorder, delete, duplicate, rotate individual pages, extract a selection, or insert pages from other PDFs. Default output: a new version of the main document.
245
+ * @summary Reorganise the pages of a PDF
246
+ * @param {OrganizeRequest} organizeRequest
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ organize(organizeRequest, options) {
251
+ return __awaiter(this, void 0, void 0, function* () {
252
+ var _a, _b, _c;
253
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.organize(organizeRequest, options);
254
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
255
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PDFToolsApi.organize']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
256
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
257
+ });
258
+ },
259
+ /**
260
+ * Rotate all or selected pages of one or several PDFs by 90, 180 or 270 degrees, one output per document. Default output: a new version of each document.
261
+ * @summary Rotate pages
262
+ * @param {RotateRequest} rotateRequest
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ rotate(rotateRequest, options) {
267
+ return __awaiter(this, void 0, void 0, function* () {
268
+ var _a, _b, _c;
269
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rotate(rotateRequest, options);
270
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
271
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PDFToolsApi.rotate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
272
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
273
+ });
274
+ },
275
+ /**
276
+ * Cut one PDF into several new documents: every N pages, at given pages, by explicit page ranges, one document per page, or at bookmarks. Names follow a pattern ({name}, {index}, {first}, {last}, {title}).
277
+ * @summary Split a PDF
278
+ * @param {SplitRequest} splitRequest
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ */
282
+ split(splitRequest, options) {
283
+ return __awaiter(this, void 0, void 0, function* () {
284
+ var _a, _b, _c;
285
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.split(splitRequest, options);
286
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
287
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PDFToolsApi.split']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
288
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
289
+ });
290
+ },
291
+ };
292
+ };
293
+ /**
294
+ * PDFToolsApi - factory interface
295
+ */
296
+ export const PDFToolsApiFactory = function (configuration, basePath, axios) {
297
+ const localVarFp = PDFToolsApiFp(configuration);
298
+ return {
299
+ /**
300
+ * Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
301
+ * @summary Describe a stored PDF
302
+ * @param {string} documentId PDF document id
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ info(documentId, options) {
307
+ return localVarFp.info(documentId, options).then((request) => request(axios, basePath));
308
+ },
309
+ /**
310
+ * Concatenate several PDFs (or page selections of them) into one document, in the given order, optionally with one bookmark per source. Default output: a new document next to the first source.
311
+ * @summary Merge PDFs
312
+ * @param {MergeRequest} mergeRequest
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ merge(mergeRequest, options) {
317
+ return localVarFp.merge(mergeRequest, options).then((request) => request(axios, basePath));
318
+ },
319
+ /**
320
+ * The result is exactly the listed pages, in order: reorder, delete, duplicate, rotate individual pages, extract a selection, or insert pages from other PDFs. Default output: a new version of the main document.
321
+ * @summary Reorganise the pages of a PDF
322
+ * @param {OrganizeRequest} organizeRequest
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ organize(organizeRequest, options) {
327
+ return localVarFp.organize(organizeRequest, options).then((request) => request(axios, basePath));
328
+ },
329
+ /**
330
+ * Rotate all or selected pages of one or several PDFs by 90, 180 or 270 degrees, one output per document. Default output: a new version of each document.
331
+ * @summary Rotate pages
332
+ * @param {RotateRequest} rotateRequest
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ rotate(rotateRequest, options) {
337
+ return localVarFp.rotate(rotateRequest, options).then((request) => request(axios, basePath));
338
+ },
339
+ /**
340
+ * Cut one PDF into several new documents: every N pages, at given pages, by explicit page ranges, one document per page, or at bookmarks. Names follow a pattern ({name}, {index}, {first}, {last}, {title}).
341
+ * @summary Split a PDF
342
+ * @param {SplitRequest} splitRequest
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ split(splitRequest, options) {
347
+ return localVarFp.split(splitRequest, options).then((request) => request(axios, basePath));
348
+ },
349
+ };
350
+ };
351
+ /**
352
+ * PDFToolsApi - object-oriented interface
353
+ */
354
+ export class PDFToolsApi extends BaseAPI {
355
+ /**
356
+ * Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
357
+ * @summary Describe a stored PDF
358
+ * @param {string} documentId PDF document id
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ */
362
+ info(documentId, options) {
363
+ return PDFToolsApiFp(this.configuration).info(documentId, options).then((request) => request(this.axios, this.basePath));
364
+ }
365
+ /**
366
+ * Concatenate several PDFs (or page selections of them) into one document, in the given order, optionally with one bookmark per source. Default output: a new document next to the first source.
367
+ * @summary Merge PDFs
368
+ * @param {MergeRequest} mergeRequest
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ merge(mergeRequest, options) {
373
+ return PDFToolsApiFp(this.configuration).merge(mergeRequest, options).then((request) => request(this.axios, this.basePath));
374
+ }
375
+ /**
376
+ * The result is exactly the listed pages, in order: reorder, delete, duplicate, rotate individual pages, extract a selection, or insert pages from other PDFs. Default output: a new version of the main document.
377
+ * @summary Reorganise the pages of a PDF
378
+ * @param {OrganizeRequest} organizeRequest
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ organize(organizeRequest, options) {
383
+ return PDFToolsApiFp(this.configuration).organize(organizeRequest, options).then((request) => request(this.axios, this.basePath));
384
+ }
385
+ /**
386
+ * Rotate all or selected pages of one or several PDFs by 90, 180 or 270 degrees, one output per document. Default output: a new version of each document.
387
+ * @summary Rotate pages
388
+ * @param {RotateRequest} rotateRequest
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ rotate(rotateRequest, options) {
393
+ return PDFToolsApiFp(this.configuration).rotate(rotateRequest, options).then((request) => request(this.axios, this.basePath));
394
+ }
395
+ /**
396
+ * Cut one PDF into several new documents: every N pages, at given pages, by explicit page ranges, one document per page, or at bookmarks. Names follow a pattern ({name}, {index}, {first}, {last}, {title}).
397
+ * @summary Split a PDF
398
+ * @param {SplitRequest} splitRequest
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ split(splitRequest, options) {
403
+ return PDFToolsApiFp(this.configuration).split(splitRequest, options).then((request) => request(this.axios, this.basePath));
404
+ }
405
+ }
package/dist/esm/api.d.ts CHANGED
@@ -25,11 +25,13 @@ export * from './api/esign-enterprise-api';
25
25
  export * from './api/esign-public-api';
26
26
  export * from './api/esign-templates-api';
27
27
  export * from './api/favorites-api';
28
+ export * from './api/feature-entitlements-api';
28
29
  export * from './api/file-controller-api';
29
30
  export * from './api/folder-controller-api';
30
31
  export * from './api/mcp-discovery-controller-api';
31
32
  export * from './api/mcp-token-admin-controller-api';
32
33
  export * from './api/notifications-api';
34
+ export * from './api/pdftools-api';
33
35
  export * from './api/scan-agent-api';
34
36
  export * from './api/scanner-proxy-api';
35
37
  export * from './api/search-administration-api';
package/dist/esm/api.js CHANGED
@@ -27,11 +27,13 @@ export * from './api/esign-enterprise-api';
27
27
  export * from './api/esign-public-api';
28
28
  export * from './api/esign-templates-api';
29
29
  export * from './api/favorites-api';
30
+ export * from './api/feature-entitlements-api';
30
31
  export * from './api/file-controller-api';
31
32
  export * from './api/folder-controller-api';
32
33
  export * from './api/mcp-discovery-controller-api';
33
34
  export * from './api/mcp-token-admin-controller-api';
34
35
  export * from './api/notifications-api';
36
+ export * from './api/pdftools-api';
35
37
  export * from './api/scan-agent-api';
36
38
  export * from './api/scanner-proxy-api';
37
39
  export * from './api/search-administration-api';
@@ -14,6 +14,7 @@ import type { CreateFolderAudit } from './create-folder-audit';
14
14
  import type { DeleteAudit } from './delete-audit';
15
15
  import type { DeleteMetadataAudit } from './delete-metadata-audit';
16
16
  import type { MoveAudit } from './move-audit';
17
+ import type { PdfTransformAudit } from './pdf-transform-audit';
17
18
  import type { RenameAudit } from './rename-audit';
18
19
  import type { ReplaceAudit } from './replace-audit';
19
20
  import type { RestoreVersionAudit } from './restore-version-audit';
@@ -33,6 +34,8 @@ export type EnrichedAuditLogDetails = {
33
34
  } & DeleteMetadataAudit | {
34
35
  type: 'move';
35
36
  } & MoveAudit | {
37
+ type: 'pdfTransform';
38
+ } & PdfTransformAudit | {
36
39
  type: 'rename';
37
40
  } & RenameAudit | {
38
41
  type: 'replace';
@@ -49,6 +49,7 @@ export declare const EnrichedAuditLogActionEnum: {
49
49
  readonly PermanentDeleteFile: "PERMANENT_DELETE_FILE";
50
50
  readonly PermanentDeleteFolder: "PERMANENT_DELETE_FOLDER";
51
51
  readonly EmptyRecycleBin: "EMPTY_RECYCLE_BIN";
52
+ readonly PdfTransform: "PDF_TRANSFORM";
52
53
  readonly ChainGenesis: "CHAIN_GENESIS";
53
54
  readonly CommentCreate: "COMMENT_CREATE";
54
55
  readonly CommentUpdate: "COMMENT_UPDATE";
@@ -35,6 +35,7 @@ export const EnrichedAuditLogActionEnum = {
35
35
  PermanentDeleteFile: 'PERMANENT_DELETE_FILE',
36
36
  PermanentDeleteFolder: 'PERMANENT_DELETE_FOLDER',
37
37
  EmptyRecycleBin: 'EMPTY_RECYCLE_BIN',
38
+ PdfTransform: 'PDF_TRANSFORM',
38
39
  ChainGenesis: 'CHAIN_GENESIS',
39
40
  CommentCreate: 'COMMENT_CREATE',
40
41
  CommentUpdate: 'COMMENT_UPDATE',
@@ -0,0 +1,16 @@
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
+ export interface FeatureEntitlement {
13
+ 'feature'?: string;
14
+ 'deployed'?: boolean;
15
+ 'licensed'?: boolean;
16
+ }
@@ -0,0 +1,14 @@
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
+ export {};
@@ -42,6 +42,7 @@ export * from './element-info';
42
42
  export * from './embed-url-response';
43
43
  export * from './enriched-audit-log';
44
44
  export * from './enriched-audit-log-details';
45
+ export * from './feature-entitlement';
45
46
  export * from './file-type-stats';
46
47
  export * from './filter-input';
47
48
  export * from './folder-element-info';
@@ -52,18 +53,31 @@ export * from './license-info';
52
53
  export * from './list-ai-models-request';
53
54
  export * from './mcp-agent-token-info';
54
55
  export * from './mcp-agent-token-response';
56
+ export * from './merge-request';
57
+ export * from './merge-source';
55
58
  export * from './mint-mcp-agent-token-request';
56
59
  export * from './mint-upload-token-request';
57
60
  export * from './move-audit';
58
61
  export * from './move-request';
59
62
  export * from './notification-dto';
63
+ export * from './organize-request';
64
+ export * from './output-target';
65
+ export * from './page-instruction';
66
+ export * from './pdf-info';
67
+ export * from './pdf-operation-response';
68
+ export * from './pdf-outline-entry';
69
+ export * from './pdf-output-info';
70
+ export * from './pdf-page-info';
71
+ export * from './pdf-transform-audit';
60
72
  export * from './public-signature-view';
61
73
  export * from './rename-audit';
62
74
  export * from './rename-request';
63
75
  export * from './replace-audit';
76
+ export * from './response';
64
77
  export * from './restore-version-audit';
65
78
  export * from './restore-version-response';
66
79
  export * from './role-binding';
80
+ export * from './rotate-request';
67
81
  export * from './save-ai-settings-request';
68
82
  export * from './scan-job-status-dto';
69
83
  export * from './scan-request-dto';
@@ -90,6 +104,8 @@ export * from './signature-template-field';
90
104
  export * from './signature-template-request';
91
105
  export * from './signature-template-role';
92
106
  export * from './sort-input';
107
+ export * from './split-output';
108
+ export * from './split-request';
93
109
  export * from './storage-breakdown';
94
110
  export * from './suggest';
95
111
  export * from './team-member-info';
@@ -42,6 +42,7 @@ export * from './element-info';
42
42
  export * from './embed-url-response';
43
43
  export * from './enriched-audit-log';
44
44
  export * from './enriched-audit-log-details';
45
+ export * from './feature-entitlement';
45
46
  export * from './file-type-stats';
46
47
  export * from './filter-input';
47
48
  export * from './folder-element-info';
@@ -52,18 +53,31 @@ export * from './license-info';
52
53
  export * from './list-ai-models-request';
53
54
  export * from './mcp-agent-token-info';
54
55
  export * from './mcp-agent-token-response';
56
+ export * from './merge-request';
57
+ export * from './merge-source';
55
58
  export * from './mint-mcp-agent-token-request';
56
59
  export * from './mint-upload-token-request';
57
60
  export * from './move-audit';
58
61
  export * from './move-request';
59
62
  export * from './notification-dto';
63
+ export * from './organize-request';
64
+ export * from './output-target';
65
+ export * from './page-instruction';
66
+ export * from './pdf-info';
67
+ export * from './pdf-operation-response';
68
+ export * from './pdf-outline-entry';
69
+ export * from './pdf-output-info';
70
+ export * from './pdf-page-info';
71
+ export * from './pdf-transform-audit';
60
72
  export * from './public-signature-view';
61
73
  export * from './rename-audit';
62
74
  export * from './rename-request';
63
75
  export * from './replace-audit';
76
+ export * from './response';
64
77
  export * from './restore-version-audit';
65
78
  export * from './restore-version-response';
66
79
  export * from './role-binding';
80
+ export * from './rotate-request';
67
81
  export * from './save-ai-settings-request';
68
82
  export * from './scan-job-status-dto';
69
83
  export * from './scan-request-dto';
@@ -90,6 +104,8 @@ export * from './signature-template-field';
90
104
  export * from './signature-template-request';
91
105
  export * from './signature-template-role';
92
106
  export * from './sort-input';
107
+ export * from './split-output';
108
+ export * from './split-request';
93
109
  export * from './storage-breakdown';
94
110
  export * from './suggest';
95
111
  export * from './team-member-info';
@@ -0,0 +1,30 @@
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 { MergeSource } from './merge-source';
13
+ import type { OutputTarget } from './output-target';
14
+ /**
15
+ * Merge PDFs into one document
16
+ */
17
+ export interface MergeRequest {
18
+ /**
19
+ * Ordered source documents
20
+ */
21
+ 'sources': Array<MergeSource>;
22
+ /**
23
+ * Add a bookmark per source (default false)
24
+ */
25
+ 'addOutline'?: boolean;
26
+ /**
27
+ * Destination; null = new document in the folder of the first source
28
+ */
29
+ 'output'?: OutputTarget;
30
+ }
@@ -0,0 +1,14 @@
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
+ export {};