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