@emilgroup/document-sdk 1.42.1-beta.1 → 1.42.1-beta.2
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 +2 -0
- package/README.md +2 -2
- package/api/documents-api.ts +107 -0
- package/dist/api/documents-api.d.ts +57 -0
- package/dist/api/documents-api.js +93 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/merge-documents-request-dto.d.ts +30 -0
- package/dist/models/merge-documents-request-dto.js +15 -0
- package/dist/models/merge-documents-response-class.d.ts +25 -0
- package/dist/models/merge-documents-response-class.js +15 -0
- package/models/index.ts +2 -0
- package/models/merge-documents-request-dto.ts +36 -0
- package/models/merge-documents-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -67,6 +67,8 @@ models/list-searchable-document-owners-request-dto.ts
|
|
|
67
67
|
models/list-searchable-document-owners-response-class.ts
|
|
68
68
|
models/list-searchable-documents-request-dto.ts
|
|
69
69
|
models/list-searchable-documents-response-class.ts
|
|
70
|
+
models/merge-documents-request-dto.ts
|
|
71
|
+
models/merge-documents-response-class.ts
|
|
70
72
|
models/product-document-class.ts
|
|
71
73
|
models/qr-billing-entity-dto.ts
|
|
72
74
|
models/save-external-document-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/document-sdk@1.42.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk@1.42.1-beta.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk@1.42.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk@1.42.1-beta.2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -41,6 +41,10 @@ import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
|
41
41
|
// @ts-ignore
|
|
42
42
|
import { ListDocumentsResponseClass } from '../models';
|
|
43
43
|
// @ts-ignore
|
|
44
|
+
import { MergeDocumentsRequestDto } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { MergeDocumentsResponseClass } from '../models';
|
|
47
|
+
// @ts-ignore
|
|
44
48
|
import { SaveExternalDocumentRequestDto } from '../models';
|
|
45
49
|
// @ts-ignore
|
|
46
50
|
import { UpdateDocumentRequestDto } from '../models';
|
|
@@ -468,6 +472,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
468
472
|
options: localVarRequestOptions,
|
|
469
473
|
};
|
|
470
474
|
},
|
|
475
|
+
/**
|
|
476
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
477
|
+
* @summary Create the merged document
|
|
478
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
479
|
+
* @param {string} [authorization] Bearer Token
|
|
480
|
+
* @param {*} [options] Override http request option.
|
|
481
|
+
* @throws {RequiredError}
|
|
482
|
+
*/
|
|
483
|
+
mergeDocuments: async (mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
484
|
+
// verify required parameter 'mergeDocumentsRequestDto' is not null or undefined
|
|
485
|
+
assertParamExists('mergeDocuments', 'mergeDocumentsRequestDto', mergeDocumentsRequestDto)
|
|
486
|
+
const localVarPath = `/documentservice/v1/documents/merge`;
|
|
487
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
488
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
489
|
+
let baseOptions;
|
|
490
|
+
let baseAccessToken;
|
|
491
|
+
if (configuration) {
|
|
492
|
+
baseOptions = configuration.baseOptions;
|
|
493
|
+
baseAccessToken = configuration.accessToken;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
497
|
+
const localVarHeaderParameter = {} as any;
|
|
498
|
+
const localVarQueryParameter = {} as any;
|
|
499
|
+
|
|
500
|
+
// authentication bearer required
|
|
501
|
+
// http bearer authentication required
|
|
502
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
503
|
+
|
|
504
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
505
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
511
|
+
|
|
512
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
513
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
514
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
515
|
+
localVarRequestOptions.data = serializeDataIfNeeded(mergeDocumentsRequestDto, localVarRequestOptions, configuration)
|
|
516
|
+
|
|
517
|
+
return {
|
|
518
|
+
url: toPathString(localVarUrlObj),
|
|
519
|
+
options: localVarRequestOptions,
|
|
520
|
+
};
|
|
521
|
+
},
|
|
471
522
|
/**
|
|
472
523
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
473
524
|
* @summary Save external document
|
|
@@ -681,6 +732,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
681
732
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
682
733
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
683
734
|
},
|
|
735
|
+
/**
|
|
736
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
737
|
+
* @summary Create the merged document
|
|
738
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
739
|
+
* @param {string} [authorization] Bearer Token
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
*/
|
|
743
|
+
async mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MergeDocumentsResponseClass>> {
|
|
744
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mergeDocuments(mergeDocumentsRequestDto, authorization, options);
|
|
745
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
746
|
+
},
|
|
684
747
|
/**
|
|
685
748
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
686
749
|
* @summary Save external document
|
|
@@ -813,6 +876,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
813
876
|
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
814
877
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
815
878
|
},
|
|
879
|
+
/**
|
|
880
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
881
|
+
* @summary Create the merged document
|
|
882
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
883
|
+
* @param {string} [authorization] Bearer Token
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
*/
|
|
887
|
+
mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: any): AxiosPromise<MergeDocumentsResponseClass> {
|
|
888
|
+
return localVarFp.mergeDocuments(mergeDocumentsRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
889
|
+
},
|
|
816
890
|
/**
|
|
817
891
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
818
892
|
* @summary Save external document
|
|
@@ -1070,6 +1144,27 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
1070
1144
|
readonly filters?: string
|
|
1071
1145
|
}
|
|
1072
1146
|
|
|
1147
|
+
/**
|
|
1148
|
+
* Request parameters for mergeDocuments operation in DocumentsApi.
|
|
1149
|
+
* @export
|
|
1150
|
+
* @interface DocumentsApiMergeDocumentsRequest
|
|
1151
|
+
*/
|
|
1152
|
+
export interface DocumentsApiMergeDocumentsRequest {
|
|
1153
|
+
/**
|
|
1154
|
+
*
|
|
1155
|
+
* @type {MergeDocumentsRequestDto}
|
|
1156
|
+
* @memberof DocumentsApiMergeDocuments
|
|
1157
|
+
*/
|
|
1158
|
+
readonly mergeDocumentsRequestDto: MergeDocumentsRequestDto
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Bearer Token
|
|
1162
|
+
* @type {string}
|
|
1163
|
+
* @memberof DocumentsApiMergeDocuments
|
|
1164
|
+
*/
|
|
1165
|
+
readonly authorization?: string
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1073
1168
|
/**
|
|
1074
1169
|
* Request parameters for saveExternalDocument operation in DocumentsApi.
|
|
1075
1170
|
* @export
|
|
@@ -1222,6 +1317,18 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1222
1317
|
return DocumentsApiFp(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1223
1318
|
}
|
|
1224
1319
|
|
|
1320
|
+
/**
|
|
1321
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
1322
|
+
* @summary Create the merged document
|
|
1323
|
+
* @param {DocumentsApiMergeDocumentsRequest} requestParameters Request parameters.
|
|
1324
|
+
* @param {*} [options] Override http request option.
|
|
1325
|
+
* @throws {RequiredError}
|
|
1326
|
+
* @memberof DocumentsApi
|
|
1327
|
+
*/
|
|
1328
|
+
public mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig) {
|
|
1329
|
+
return DocumentsApiFp(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1225
1332
|
/**
|
|
1226
1333
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
1227
1334
|
* @summary Save external document
|
|
@@ -22,6 +22,8 @@ import { ExportDocumentResponseClass } from '../models';
|
|
|
22
22
|
import { GetDocumentDownloadUrlResponseClass } from '../models';
|
|
23
23
|
import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
24
24
|
import { ListDocumentsResponseClass } from '../models';
|
|
25
|
+
import { MergeDocumentsRequestDto } from '../models';
|
|
26
|
+
import { MergeDocumentsResponseClass } from '../models';
|
|
25
27
|
import { SaveExternalDocumentRequestDto } from '../models';
|
|
26
28
|
import { UpdateDocumentRequestDto } from '../models';
|
|
27
29
|
import { UpdateDocumentResponseClass } from '../models';
|
|
@@ -111,6 +113,15 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
111
113
|
* @throws {RequiredError}
|
|
112
114
|
*/
|
|
113
115
|
listDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
116
|
+
/**
|
|
117
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
118
|
+
* @summary Create the merged document
|
|
119
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
120
|
+
* @param {string} [authorization] Bearer Token
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
mergeDocuments: (mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
114
125
|
/**
|
|
115
126
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
116
127
|
* @summary Save external document
|
|
@@ -217,6 +228,15 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
217
228
|
* @throws {RequiredError}
|
|
218
229
|
*/
|
|
219
230
|
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>>;
|
|
231
|
+
/**
|
|
232
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
233
|
+
* @summary Create the merged document
|
|
234
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
235
|
+
* @param {string} [authorization] Bearer Token
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
*/
|
|
239
|
+
mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MergeDocumentsResponseClass>>;
|
|
220
240
|
/**
|
|
221
241
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
222
242
|
* @summary Save external document
|
|
@@ -323,6 +343,15 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
323
343
|
* @throws {RequiredError}
|
|
324
344
|
*/
|
|
325
345
|
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
|
|
346
|
+
/**
|
|
347
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
348
|
+
* @summary Create the merged document
|
|
349
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
350
|
+
* @param {string} [authorization] Bearer Token
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: any): AxiosPromise<MergeDocumentsResponseClass>;
|
|
326
355
|
/**
|
|
327
356
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
328
357
|
* @summary Save external document
|
|
@@ -549,6 +578,25 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
549
578
|
*/
|
|
550
579
|
readonly filters?: string;
|
|
551
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* Request parameters for mergeDocuments operation in DocumentsApi.
|
|
583
|
+
* @export
|
|
584
|
+
* @interface DocumentsApiMergeDocumentsRequest
|
|
585
|
+
*/
|
|
586
|
+
export interface DocumentsApiMergeDocumentsRequest {
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {MergeDocumentsRequestDto}
|
|
590
|
+
* @memberof DocumentsApiMergeDocuments
|
|
591
|
+
*/
|
|
592
|
+
readonly mergeDocumentsRequestDto: MergeDocumentsRequestDto;
|
|
593
|
+
/**
|
|
594
|
+
* Bearer Token
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof DocumentsApiMergeDocuments
|
|
597
|
+
*/
|
|
598
|
+
readonly authorization?: string;
|
|
599
|
+
}
|
|
552
600
|
/**
|
|
553
601
|
* Request parameters for saveExternalDocument operation in DocumentsApi.
|
|
554
602
|
* @export
|
|
@@ -672,6 +720,15 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
672
720
|
* @memberof DocumentsApi
|
|
673
721
|
*/
|
|
674
722
|
listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}>>;
|
|
723
|
+
/**
|
|
724
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
725
|
+
* @summary Create the merged document
|
|
726
|
+
* @param {DocumentsApiMergeDocumentsRequest} requestParameters Request parameters.
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
* @memberof DocumentsApi
|
|
730
|
+
*/
|
|
731
|
+
mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MergeDocumentsResponseClass, any, {}>>;
|
|
675
732
|
/**
|
|
676
733
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
677
734
|
* @summary Save external document
|
|
@@ -518,6 +518,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
518
518
|
});
|
|
519
519
|
});
|
|
520
520
|
},
|
|
521
|
+
/**
|
|
522
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
523
|
+
* @summary Create the merged document
|
|
524
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
525
|
+
* @param {string} [authorization] Bearer Token
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
529
|
+
mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
|
|
530
|
+
if (options === void 0) { options = {}; }
|
|
531
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
532
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
533
|
+
return __generator(this, function (_a) {
|
|
534
|
+
switch (_a.label) {
|
|
535
|
+
case 0:
|
|
536
|
+
// verify required parameter 'mergeDocumentsRequestDto' is not null or undefined
|
|
537
|
+
(0, common_1.assertParamExists)('mergeDocuments', 'mergeDocumentsRequestDto', mergeDocumentsRequestDto);
|
|
538
|
+
localVarPath = "/documentservice/v1/documents/merge";
|
|
539
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
540
|
+
if (configuration) {
|
|
541
|
+
baseOptions = configuration.baseOptions;
|
|
542
|
+
baseAccessToken = configuration.accessToken;
|
|
543
|
+
}
|
|
544
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
545
|
+
localVarHeaderParameter = {};
|
|
546
|
+
localVarQueryParameter = {};
|
|
547
|
+
// authentication bearer required
|
|
548
|
+
// http bearer authentication required
|
|
549
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
550
|
+
case 1:
|
|
551
|
+
// authentication bearer required
|
|
552
|
+
// http bearer authentication required
|
|
553
|
+
_a.sent();
|
|
554
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
555
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
556
|
+
}
|
|
557
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
558
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
559
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
560
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
561
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mergeDocumentsRequestDto, localVarRequestOptions, configuration);
|
|
562
|
+
return [2 /*return*/, {
|
|
563
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
564
|
+
options: localVarRequestOptions,
|
|
565
|
+
}];
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
},
|
|
521
570
|
/**
|
|
522
571
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
523
572
|
* @summary Save external document
|
|
@@ -807,6 +856,27 @@ var DocumentsApiFp = function (configuration) {
|
|
|
807
856
|
});
|
|
808
857
|
});
|
|
809
858
|
},
|
|
859
|
+
/**
|
|
860
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
861
|
+
* @summary Create the merged document
|
|
862
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
863
|
+
* @param {string} [authorization] Bearer Token
|
|
864
|
+
* @param {*} [options] Override http request option.
|
|
865
|
+
* @throws {RequiredError}
|
|
866
|
+
*/
|
|
867
|
+
mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
|
|
868
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
869
|
+
var localVarAxiosArgs;
|
|
870
|
+
return __generator(this, function (_a) {
|
|
871
|
+
switch (_a.label) {
|
|
872
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.mergeDocuments(mergeDocumentsRequestDto, authorization, options)];
|
|
873
|
+
case 1:
|
|
874
|
+
localVarAxiosArgs = _a.sent();
|
|
875
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
});
|
|
879
|
+
},
|
|
810
880
|
/**
|
|
811
881
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
812
882
|
* @summary Save external document
|
|
@@ -957,6 +1027,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
957
1027
|
listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
958
1028
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
959
1029
|
},
|
|
1030
|
+
/**
|
|
1031
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
1032
|
+
* @summary Create the merged document
|
|
1033
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
1034
|
+
* @param {string} [authorization] Bearer Token
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
|
|
1039
|
+
return localVarFp.mergeDocuments(mergeDocumentsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1040
|
+
},
|
|
960
1041
|
/**
|
|
961
1042
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
962
1043
|
* @summary Save external document
|
|
@@ -1091,6 +1172,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1091
1172
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1092
1173
|
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1093
1174
|
};
|
|
1175
|
+
/**
|
|
1176
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
1177
|
+
* @summary Create the merged document
|
|
1178
|
+
* @param {DocumentsApiMergeDocumentsRequest} requestParameters Request parameters.
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
* @memberof DocumentsApi
|
|
1182
|
+
*/
|
|
1183
|
+
DocumentsApi.prototype.mergeDocuments = function (requestParameters, options) {
|
|
1184
|
+
var _this = this;
|
|
1185
|
+
return (0, exports.DocumentsApiFp)(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1186
|
+
};
|
|
1094
1187
|
/**
|
|
1095
1188
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
1096
1189
|
* @summary Save external document
|
package/dist/models/index.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export * from './list-searchable-document-owners-request-dto';
|
|
|
47
47
|
export * from './list-searchable-document-owners-response-class';
|
|
48
48
|
export * from './list-searchable-documents-request-dto';
|
|
49
49
|
export * from './list-searchable-documents-response-class';
|
|
50
|
+
export * from './merge-documents-request-dto';
|
|
51
|
+
export * from './merge-documents-response-class';
|
|
50
52
|
export * from './product-document-class';
|
|
51
53
|
export * from './qr-billing-entity-dto';
|
|
52
54
|
export * from './save-external-document-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -63,6 +63,8 @@ __exportStar(require("./list-searchable-document-owners-request-dto"), exports);
|
|
|
63
63
|
__exportStar(require("./list-searchable-document-owners-response-class"), exports);
|
|
64
64
|
__exportStar(require("./list-searchable-documents-request-dto"), exports);
|
|
65
65
|
__exportStar(require("./list-searchable-documents-response-class"), exports);
|
|
66
|
+
__exportStar(require("./merge-documents-request-dto"), exports);
|
|
67
|
+
__exportStar(require("./merge-documents-response-class"), exports);
|
|
66
68
|
__exportStar(require("./product-document-class"), exports);
|
|
67
69
|
__exportStar(require("./qr-billing-entity-dto"), exports);
|
|
68
70
|
__exportStar(require("./save-external-document-request-dto"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MergeDocumentsRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface MergeDocumentsRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Array of document codes to merge (minimum 2, maximum 5)
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof MergeDocumentsRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'documentCodes': Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to delete the original documents after merging
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof MergeDocumentsRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'shouldDeleteOriginals': boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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 { DocumentClass } from './document-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MergeDocumentsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface MergeDocumentsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The merged PDF document
|
|
21
|
+
* @type {DocumentClass}
|
|
22
|
+
* @memberof MergeDocumentsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'document': DocumentClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/models/index.ts
CHANGED
|
@@ -47,6 +47,8 @@ export * from './list-searchable-document-owners-request-dto';
|
|
|
47
47
|
export * from './list-searchable-document-owners-response-class';
|
|
48
48
|
export * from './list-searchable-documents-request-dto';
|
|
49
49
|
export * from './list-searchable-documents-response-class';
|
|
50
|
+
export * from './merge-documents-request-dto';
|
|
51
|
+
export * from './merge-documents-response-class';
|
|
50
52
|
export * from './product-document-class';
|
|
51
53
|
export * from './qr-billing-entity-dto';
|
|
52
54
|
export * from './save-external-document-request-dto';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL DocumentService
|
|
5
|
+
* The EMIL DocumentService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface MergeDocumentsRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface MergeDocumentsRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Array of document codes to merge (minimum 2, maximum 5)
|
|
25
|
+
* @type {Array<string>}
|
|
26
|
+
* @memberof MergeDocumentsRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'documentCodes': Array<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to delete the original documents after merging
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof MergeDocumentsRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'shouldDeleteOriginals': boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL DocumentService
|
|
5
|
+
* The EMIL DocumentService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
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 { DocumentClass } from './document-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface MergeDocumentsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface MergeDocumentsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The merged PDF document
|
|
26
|
+
* @type {DocumentClass}
|
|
27
|
+
* @memberof MergeDocumentsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'document': DocumentClass;
|
|
30
|
+
}
|
|
31
|
+
|