@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,430 @@
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 { MergeRequest } from '../models';
26
+ // @ts-ignore
27
+ import type { OrganizeRequest } from '../models';
28
+ // @ts-ignore
29
+ import type { PdfInfo } from '../models';
30
+ // @ts-ignore
31
+ import type { PdfOperationResponse } from '../models';
32
+ // @ts-ignore
33
+ import type { RotateRequest } from '../models';
34
+ // @ts-ignore
35
+ import type { SplitRequest } from '../models';
36
+ /**
37
+ * PDFToolsApi - axios parameter creator
38
+ */
39
+ export const PDFToolsApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
43
+ * @summary Describe a stored PDF
44
+ * @param {string} documentId PDF document id
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ info: async (documentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
49
+ // verify required parameter 'documentId' is not null or undefined
50
+ assertParamExists('info', 'documentId', documentId)
51
+ const localVarPath = `/api/v1/pdf/{documentId}/info`
52
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ if (configuration) {
57
+ baseOptions = configuration.baseOptions;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication keycloak_auth required
65
+ // http bearer authentication required
66
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
+
68
+ localVarHeaderParameter['Accept'] = 'application/json';
69
+
70
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
+
74
+ return {
75
+ url: toPathString(localVarUrlObj),
76
+ options: localVarRequestOptions,
77
+ };
78
+ },
79
+ /**
80
+ * 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.
81
+ * @summary Merge PDFs
82
+ * @param {MergeRequest} mergeRequest
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ merge: async (mergeRequest: MergeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
87
+ // verify required parameter 'mergeRequest' is not null or undefined
88
+ assertParamExists('merge', 'mergeRequest', mergeRequest)
89
+ const localVarPath = `/api/v1/pdf/merge`;
90
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
91
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
92
+ let baseOptions;
93
+ if (configuration) {
94
+ baseOptions = configuration.baseOptions;
95
+ }
96
+
97
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
98
+ const localVarHeaderParameter = {} as any;
99
+ const localVarQueryParameter = {} as any;
100
+
101
+ // authentication keycloak_auth required
102
+ // http bearer authentication required
103
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
104
+
105
+ localVarHeaderParameter['Content-Type'] = 'application/json';
106
+ localVarHeaderParameter['Accept'] = 'application/json';
107
+
108
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
111
+ localVarRequestOptions.data = serializeDataIfNeeded(mergeRequest, localVarRequestOptions, configuration)
112
+
113
+ return {
114
+ url: toPathString(localVarUrlObj),
115
+ options: localVarRequestOptions,
116
+ };
117
+ },
118
+ /**
119
+ * 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.
120
+ * @summary Reorganise the pages of a PDF
121
+ * @param {OrganizeRequest} organizeRequest
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ organize: async (organizeRequest: OrganizeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
126
+ // verify required parameter 'organizeRequest' is not null or undefined
127
+ assertParamExists('organize', 'organizeRequest', organizeRequest)
128
+ const localVarPath = `/api/v1/pdf/organize`;
129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
130
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
131
+ let baseOptions;
132
+ if (configuration) {
133
+ baseOptions = configuration.baseOptions;
134
+ }
135
+
136
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
137
+ const localVarHeaderParameter = {} as any;
138
+ const localVarQueryParameter = {} as any;
139
+
140
+ // authentication keycloak_auth required
141
+ // http bearer authentication required
142
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
143
+
144
+ localVarHeaderParameter['Content-Type'] = 'application/json';
145
+ localVarHeaderParameter['Accept'] = 'application/json';
146
+
147
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
150
+ localVarRequestOptions.data = serializeDataIfNeeded(organizeRequest, localVarRequestOptions, configuration)
151
+
152
+ return {
153
+ url: toPathString(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ };
156
+ },
157
+ /**
158
+ * 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.
159
+ * @summary Rotate pages
160
+ * @param {RotateRequest} rotateRequest
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ rotate: async (rotateRequest: RotateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
165
+ // verify required parameter 'rotateRequest' is not null or undefined
166
+ assertParamExists('rotate', 'rotateRequest', rotateRequest)
167
+ const localVarPath = `/api/v1/pdf/rotate`;
168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
169
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
170
+ let baseOptions;
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ }
174
+
175
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
176
+ const localVarHeaderParameter = {} as any;
177
+ const localVarQueryParameter = {} as any;
178
+
179
+ // authentication keycloak_auth required
180
+ // http bearer authentication required
181
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
182
+
183
+ localVarHeaderParameter['Content-Type'] = 'application/json';
184
+ localVarHeaderParameter['Accept'] = 'application/json';
185
+
186
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
187
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
189
+ localVarRequestOptions.data = serializeDataIfNeeded(rotateRequest, localVarRequestOptions, configuration)
190
+
191
+ return {
192
+ url: toPathString(localVarUrlObj),
193
+ options: localVarRequestOptions,
194
+ };
195
+ },
196
+ /**
197
+ * 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}).
198
+ * @summary Split a PDF
199
+ * @param {SplitRequest} splitRequest
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ split: async (splitRequest: SplitRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
204
+ // verify required parameter 'splitRequest' is not null or undefined
205
+ assertParamExists('split', 'splitRequest', splitRequest)
206
+ const localVarPath = `/api/v1/pdf/split`;
207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
209
+ let baseOptions;
210
+ if (configuration) {
211
+ baseOptions = configuration.baseOptions;
212
+ }
213
+
214
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
215
+ const localVarHeaderParameter = {} as any;
216
+ const localVarQueryParameter = {} as any;
217
+
218
+ // authentication keycloak_auth required
219
+ // http bearer authentication required
220
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
221
+
222
+ localVarHeaderParameter['Content-Type'] = 'application/json';
223
+ localVarHeaderParameter['Accept'] = 'application/json';
224
+
225
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
226
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
227
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
228
+ localVarRequestOptions.data = serializeDataIfNeeded(splitRequest, localVarRequestOptions, configuration)
229
+
230
+ return {
231
+ url: toPathString(localVarUrlObj),
232
+ options: localVarRequestOptions,
233
+ };
234
+ },
235
+ }
236
+ };
237
+
238
+ /**
239
+ * PDFToolsApi - functional programming interface
240
+ */
241
+ export const PDFToolsApiFp = function(configuration?: Configuration) {
242
+ const localVarAxiosParamCreator = PDFToolsApiAxiosParamCreator(configuration)
243
+ return {
244
+ /**
245
+ * Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
246
+ * @summary Describe a stored PDF
247
+ * @param {string} documentId PDF document id
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ async info(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfInfo>> {
252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.info(documentId, options);
253
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
254
+ const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.info']?.[localVarOperationServerIndex]?.url;
255
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
256
+ },
257
+ /**
258
+ * 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.
259
+ * @summary Merge PDFs
260
+ * @param {MergeRequest} mergeRequest
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ async merge(mergeRequest: MergeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfOperationResponse>> {
265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.merge(mergeRequest, options);
266
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
267
+ const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.merge']?.[localVarOperationServerIndex]?.url;
268
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
269
+ },
270
+ /**
271
+ * 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.
272
+ * @summary Reorganise the pages of a PDF
273
+ * @param {OrganizeRequest} organizeRequest
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ async organize(organizeRequest: OrganizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfOperationResponse>> {
278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.organize(organizeRequest, options);
279
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
280
+ const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.organize']?.[localVarOperationServerIndex]?.url;
281
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
282
+ },
283
+ /**
284
+ * 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.
285
+ * @summary Rotate pages
286
+ * @param {RotateRequest} rotateRequest
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ */
290
+ async rotate(rotateRequest: RotateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfOperationResponse>> {
291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rotate(rotateRequest, options);
292
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
293
+ const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.rotate']?.[localVarOperationServerIndex]?.url;
294
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
295
+ },
296
+ /**
297
+ * 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}).
298
+ * @summary Split a PDF
299
+ * @param {SplitRequest} splitRequest
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ async split(splitRequest: SplitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PdfOperationResponse>> {
304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.split(splitRequest, options);
305
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
306
+ const localVarOperationServerBasePath = operationServerMap['PDFToolsApi.split']?.[localVarOperationServerIndex]?.url;
307
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
308
+ },
309
+ }
310
+ };
311
+
312
+ /**
313
+ * PDFToolsApi - factory interface
314
+ */
315
+ export const PDFToolsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
316
+ const localVarFp = PDFToolsApiFp(configuration)
317
+ return {
318
+ /**
319
+ * Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
320
+ * @summary Describe a stored PDF
321
+ * @param {string} documentId PDF document id
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ info(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<PdfInfo> {
326
+ return localVarFp.info(documentId, options).then((request) => request(axios, basePath));
327
+ },
328
+ /**
329
+ * 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.
330
+ * @summary Merge PDFs
331
+ * @param {MergeRequest} mergeRequest
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ merge(mergeRequest: MergeRequest, options?: RawAxiosRequestConfig): AxiosPromise<PdfOperationResponse> {
336
+ return localVarFp.merge(mergeRequest, options).then((request) => request(axios, basePath));
337
+ },
338
+ /**
339
+ * 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.
340
+ * @summary Reorganise the pages of a PDF
341
+ * @param {OrganizeRequest} organizeRequest
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ organize(organizeRequest: OrganizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<PdfOperationResponse> {
346
+ return localVarFp.organize(organizeRequest, options).then((request) => request(axios, basePath));
347
+ },
348
+ /**
349
+ * 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.
350
+ * @summary Rotate pages
351
+ * @param {RotateRequest} rotateRequest
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ rotate(rotateRequest: RotateRequest, options?: RawAxiosRequestConfig): AxiosPromise<PdfOperationResponse> {
356
+ return localVarFp.rotate(rotateRequest, options).then((request) => request(axios, basePath));
357
+ },
358
+ /**
359
+ * 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}).
360
+ * @summary Split a PDF
361
+ * @param {SplitRequest} splitRequest
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ split(splitRequest: SplitRequest, options?: RawAxiosRequestConfig): AxiosPromise<PdfOperationResponse> {
366
+ return localVarFp.split(splitRequest, options).then((request) => request(axios, basePath));
367
+ },
368
+ };
369
+ };
370
+
371
+ /**
372
+ * PDFToolsApi - object-oriented interface
373
+ */
374
+ export class PDFToolsApi extends BaseAPI {
375
+ /**
376
+ * Page count and geometry, bookmarks, and whether the file is password-protected or digitally signed.
377
+ * @summary Describe a stored PDF
378
+ * @param {string} documentId PDF document id
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ public info(documentId: string, options?: RawAxiosRequestConfig) {
383
+ return PDFToolsApiFp(this.configuration).info(documentId, options).then((request) => request(this.axios, this.basePath));
384
+ }
385
+
386
+ /**
387
+ * 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.
388
+ * @summary Merge PDFs
389
+ * @param {MergeRequest} mergeRequest
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ public merge(mergeRequest: MergeRequest, options?: RawAxiosRequestConfig) {
394
+ return PDFToolsApiFp(this.configuration).merge(mergeRequest, options).then((request) => request(this.axios, this.basePath));
395
+ }
396
+
397
+ /**
398
+ * 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.
399
+ * @summary Reorganise the pages of a PDF
400
+ * @param {OrganizeRequest} organizeRequest
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ public organize(organizeRequest: OrganizeRequest, options?: RawAxiosRequestConfig) {
405
+ return PDFToolsApiFp(this.configuration).organize(organizeRequest, options).then((request) => request(this.axios, this.basePath));
406
+ }
407
+
408
+ /**
409
+ * 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.
410
+ * @summary Rotate pages
411
+ * @param {RotateRequest} rotateRequest
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ public rotate(rotateRequest: RotateRequest, options?: RawAxiosRequestConfig) {
416
+ return PDFToolsApiFp(this.configuration).rotate(rotateRequest, options).then((request) => request(this.axios, this.basePath));
417
+ }
418
+
419
+ /**
420
+ * 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}).
421
+ * @summary Split a PDF
422
+ * @param {SplitRequest} splitRequest
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ public split(splitRequest: SplitRequest, options?: RawAxiosRequestConfig) {
427
+ return PDFToolsApiFp(this.configuration).split(splitRequest, options).then((request) => request(this.axios, this.basePath));
428
+ }
429
+ }
430
+
package/api.ts CHANGED
@@ -30,11 +30,13 @@ export * from './api/esign-enterprise-api';
30
30
  export * from './api/esign-public-api';
31
31
  export * from './api/esign-templates-api';
32
32
  export * from './api/favorites-api';
33
+ export * from './api/feature-entitlements-api';
33
34
  export * from './api/file-controller-api';
34
35
  export * from './api/folder-controller-api';
35
36
  export * from './api/mcp-discovery-controller-api';
36
37
  export * from './api/mcp-token-admin-controller-api';
37
38
  export * from './api/notifications-api';
39
+ export * from './api/pdftools-api';
38
40
  export * from './api/scan-agent-api';
39
41
  export * from './api/scanner-proxy-api';
40
42
  export * from './api/search-administration-api';
@@ -0,0 +1,63 @@
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 { Response } from '../models';
16
+ /**
17
+ * FeatureEntitlementsApi - axios parameter creator
18
+ */
19
+ export declare const FeatureEntitlementsApiAxiosParamCreator: (configuration?: Configuration) => {
20
+ /**
21
+ * Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
22
+ * @summary Deployment + licence state per optional feature
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ getFeatureEntitlements: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27
+ };
28
+ /**
29
+ * FeatureEntitlementsApi - functional programming interface
30
+ */
31
+ export declare const FeatureEntitlementsApiFp: (configuration?: Configuration) => {
32
+ /**
33
+ * Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
34
+ * @summary Deployment + licence state per optional feature
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ getFeatureEntitlements(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Response>>;
39
+ };
40
+ /**
41
+ * FeatureEntitlementsApi - factory interface
42
+ */
43
+ export declare const FeatureEntitlementsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
44
+ /**
45
+ * Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
46
+ * @summary Deployment + licence state per optional feature
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ getFeatureEntitlements(options?: RawAxiosRequestConfig): AxiosPromise<Response>;
51
+ };
52
+ /**
53
+ * FeatureEntitlementsApi - object-oriented interface
54
+ */
55
+ export declare class FeatureEntitlementsApi extends BaseAPI {
56
+ /**
57
+ * Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
58
+ * @summary Deployment + licence state per optional feature
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ getFeatureEntitlements(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any, {}, any>>;
63
+ }
@@ -0,0 +1,125 @@
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.FeatureEntitlementsApi = exports.FeatureEntitlementsApiFactory = exports.FeatureEntitlementsApiFp = exports.FeatureEntitlementsApiAxiosParamCreator = 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
+ * FeatureEntitlementsApi - axios parameter creator
34
+ */
35
+ const FeatureEntitlementsApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
39
+ * @summary Deployment + licence state per optional feature
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ getFeatureEntitlements: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
44
+ const localVarPath = `/api/v1/admin/features`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication keycloak_auth required
55
+ // http bearer authentication required
56
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
57
+ localVarHeaderParameter['Accept'] = '*/*';
58
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
61
+ return {
62
+ url: (0, common_1.toPathString)(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ }),
66
+ };
67
+ };
68
+ exports.FeatureEntitlementsApiAxiosParamCreator = FeatureEntitlementsApiAxiosParamCreator;
69
+ /**
70
+ * FeatureEntitlementsApi - functional programming interface
71
+ */
72
+ const FeatureEntitlementsApiFp = function (configuration) {
73
+ const localVarAxiosParamCreator = (0, exports.FeatureEntitlementsApiAxiosParamCreator)(configuration);
74
+ return {
75
+ /**
76
+ * Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
77
+ * @summary Deployment + licence state per optional feature
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ getFeatureEntitlements(options) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ var _a, _b, _c;
84
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFeatureEntitlements(options);
85
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
86
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureEntitlementsApi.getFeatureEntitlements']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
87
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
88
+ });
89
+ },
90
+ };
91
+ };
92
+ exports.FeatureEntitlementsApiFp = FeatureEntitlementsApiFp;
93
+ /**
94
+ * FeatureEntitlementsApi - factory interface
95
+ */
96
+ const FeatureEntitlementsApiFactory = function (configuration, basePath, axios) {
97
+ const localVarFp = (0, exports.FeatureEntitlementsApiFp)(configuration);
98
+ return {
99
+ /**
100
+ * Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
101
+ * @summary Deployment + licence state per optional feature
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ getFeatureEntitlements(options) {
106
+ return localVarFp.getFeatureEntitlements(options).then((request) => request(axios, basePath));
107
+ },
108
+ };
109
+ };
110
+ exports.FeatureEntitlementsApiFactory = FeatureEntitlementsApiFactory;
111
+ /**
112
+ * FeatureEntitlementsApi - object-oriented interface
113
+ */
114
+ class FeatureEntitlementsApi extends base_1.BaseAPI {
115
+ /**
116
+ * Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
117
+ * @summary Deployment + licence state per optional feature
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ getFeatureEntitlements(options) {
122
+ return (0, exports.FeatureEntitlementsApiFp)(this.configuration).getFeatureEntitlements(options).then((request) => request(this.axios, this.basePath));
123
+ }
124
+ }
125
+ exports.FeatureEntitlementsApi = FeatureEntitlementsApi;