@emilgroup/document-sdk-node 1.41.1-beta.1 → 1.41.1-beta.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.
@@ -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-node@1.41.1-beta.1 --save
20
+ npm install @emilgroup/document-sdk-node@1.41.1-beta.3 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.41.1-beta.1
24
+ yarn add @emilgroup/document-sdk-node@1.41.1-beta.3
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -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';
@@ -472,6 +476,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
472
476
  options: localVarRequestOptions,
473
477
  };
474
478
  },
479
+ /**
480
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
481
+ * @summary Create the merged document
482
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
483
+ * @param {string} [authorization] Bearer Token
484
+ * @param {*} [options] Override http request option.
485
+ * @throws {RequiredError}
486
+ */
487
+ mergeDocuments: async (mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
488
+ // verify required parameter 'mergeDocumentsRequestDto' is not null or undefined
489
+ assertParamExists('mergeDocuments', 'mergeDocumentsRequestDto', mergeDocumentsRequestDto)
490
+ const localVarPath = `/documentservice/v1/documents/merge`;
491
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
492
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
493
+ let baseOptions;
494
+ let baseAccessToken;
495
+ if (configuration) {
496
+ baseOptions = configuration.baseOptions;
497
+ baseAccessToken = configuration.accessToken;
498
+ }
499
+
500
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
501
+ const localVarHeaderParameter = {} as any;
502
+ const localVarQueryParameter = {} as any;
503
+
504
+ // authentication bearer required
505
+ // http bearer authentication required
506
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
507
+
508
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
509
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
510
+ }
511
+
512
+
513
+
514
+ localVarHeaderParameter['Content-Type'] = 'application/json';
515
+
516
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
518
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
519
+ localVarRequestOptions.data = serializeDataIfNeeded(mergeDocumentsRequestDto, localVarRequestOptions, configuration)
520
+
521
+ return {
522
+ url: toPathString(localVarUrlObj),
523
+ options: localVarRequestOptions,
524
+ };
525
+ },
475
526
  /**
476
527
  * 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\"
477
528
  * @summary Save external document
@@ -685,6 +736,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
685
736
  const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
686
737
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
687
738
  },
739
+ /**
740
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
741
+ * @summary Create the merged document
742
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
743
+ * @param {string} [authorization] Bearer Token
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ async mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MergeDocumentsResponseClass>> {
748
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mergeDocuments(mergeDocumentsRequestDto, authorization, options);
749
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
750
+ },
688
751
  /**
689
752
  * 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\"
690
753
  * @summary Save external document
@@ -817,6 +880,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
817
880
  listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
818
881
  return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
819
882
  },
883
+ /**
884
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
885
+ * @summary Create the merged document
886
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
887
+ * @param {string} [authorization] Bearer Token
888
+ * @param {*} [options] Override http request option.
889
+ * @throws {RequiredError}
890
+ */
891
+ mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: any): AxiosPromise<MergeDocumentsResponseClass> {
892
+ return localVarFp.mergeDocuments(mergeDocumentsRequestDto, authorization, options).then((request) => request(axios, basePath));
893
+ },
820
894
  /**
821
895
  * 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\"
822
896
  * @summary Save external document
@@ -1074,6 +1148,27 @@ export interface DocumentsApiListDocumentsRequest {
1074
1148
  readonly filters?: string
1075
1149
  }
1076
1150
 
1151
+ /**
1152
+ * Request parameters for mergeDocuments operation in DocumentsApi.
1153
+ * @export
1154
+ * @interface DocumentsApiMergeDocumentsRequest
1155
+ */
1156
+ export interface DocumentsApiMergeDocumentsRequest {
1157
+ /**
1158
+ *
1159
+ * @type {MergeDocumentsRequestDto}
1160
+ * @memberof DocumentsApiMergeDocuments
1161
+ */
1162
+ readonly mergeDocumentsRequestDto: MergeDocumentsRequestDto
1163
+
1164
+ /**
1165
+ * Bearer Token
1166
+ * @type {string}
1167
+ * @memberof DocumentsApiMergeDocuments
1168
+ */
1169
+ readonly authorization?: string
1170
+ }
1171
+
1077
1172
  /**
1078
1173
  * Request parameters for saveExternalDocument operation in DocumentsApi.
1079
1174
  * @export
@@ -1226,6 +1321,18 @@ export class DocumentsApi extends BaseAPI {
1226
1321
  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));
1227
1322
  }
1228
1323
 
1324
+ /**
1325
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
1326
+ * @summary Create the merged document
1327
+ * @param {DocumentsApiMergeDocumentsRequest} requestParameters Request parameters.
1328
+ * @param {*} [options] Override http request option.
1329
+ * @throws {RequiredError}
1330
+ * @memberof DocumentsApi
1331
+ */
1332
+ public mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig) {
1333
+ return DocumentsApiFp(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1334
+ }
1335
+
1229
1336
  /**
1230
1337
  * 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\"
1231
1338
  * @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
@@ -522,6 +522,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
522
522
  });
523
523
  });
524
524
  },
525
+ /**
526
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
527
+ * @summary Create the merged document
528
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
529
+ * @param {string} [authorization] Bearer Token
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ */
533
+ mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
534
+ if (options === void 0) { options = {}; }
535
+ return __awaiter(_this, void 0, void 0, function () {
536
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
537
+ return __generator(this, function (_a) {
538
+ switch (_a.label) {
539
+ case 0:
540
+ // verify required parameter 'mergeDocumentsRequestDto' is not null or undefined
541
+ (0, common_1.assertParamExists)('mergeDocuments', 'mergeDocumentsRequestDto', mergeDocumentsRequestDto);
542
+ localVarPath = "/documentservice/v1/documents/merge";
543
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
544
+ if (configuration) {
545
+ baseOptions = configuration.baseOptions;
546
+ baseAccessToken = configuration.accessToken;
547
+ }
548
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
549
+ localVarHeaderParameter = {};
550
+ localVarQueryParameter = {};
551
+ // authentication bearer required
552
+ // http bearer authentication required
553
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
554
+ case 1:
555
+ // authentication bearer required
556
+ // http bearer authentication required
557
+ _a.sent();
558
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
559
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
560
+ }
561
+ localVarHeaderParameter['Content-Type'] = 'application/json';
562
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
563
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
564
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
565
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mergeDocumentsRequestDto, localVarRequestOptions, configuration);
566
+ return [2 /*return*/, {
567
+ url: (0, common_1.toPathString)(localVarUrlObj),
568
+ options: localVarRequestOptions,
569
+ }];
570
+ }
571
+ });
572
+ });
573
+ },
525
574
  /**
526
575
  * 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\"
527
576
  * @summary Save external document
@@ -811,6 +860,27 @@ var DocumentsApiFp = function (configuration) {
811
860
  });
812
861
  });
813
862
  },
863
+ /**
864
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
865
+ * @summary Create the merged document
866
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
867
+ * @param {string} [authorization] Bearer Token
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ */
871
+ mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
872
+ return __awaiter(this, void 0, void 0, function () {
873
+ var localVarAxiosArgs;
874
+ return __generator(this, function (_a) {
875
+ switch (_a.label) {
876
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.mergeDocuments(mergeDocumentsRequestDto, authorization, options)];
877
+ case 1:
878
+ localVarAxiosArgs = _a.sent();
879
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
880
+ }
881
+ });
882
+ });
883
+ },
814
884
  /**
815
885
  * 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\"
816
886
  * @summary Save external document
@@ -961,6 +1031,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
961
1031
  listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
962
1032
  return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
963
1033
  },
1034
+ /**
1035
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
1036
+ * @summary Create the merged document
1037
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
1038
+ * @param {string} [authorization] Bearer Token
1039
+ * @param {*} [options] Override http request option.
1040
+ * @throws {RequiredError}
1041
+ */
1042
+ mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
1043
+ return localVarFp.mergeDocuments(mergeDocumentsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1044
+ },
964
1045
  /**
965
1046
  * 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\"
966
1047
  * @summary Save external document
@@ -1095,6 +1176,18 @@ var DocumentsApi = /** @class */ (function (_super) {
1095
1176
  if (requestParameters === void 0) { requestParameters = {}; }
1096
1177
  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); });
1097
1178
  };
1179
+ /**
1180
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
1181
+ * @summary Create the merged document
1182
+ * @param {DocumentsApiMergeDocumentsRequest} requestParameters Request parameters.
1183
+ * @param {*} [options] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ * @memberof DocumentsApi
1186
+ */
1187
+ DocumentsApi.prototype.mergeDocuments = function (requestParameters, options) {
1188
+ var _this = this;
1189
+ return (0, exports.DocumentsApiFp)(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1190
+ };
1098
1191
  /**
1099
1192
  * 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\"
1100
1193
  * @summary Save external document
@@ -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';
@@ -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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk-node",
3
- "version": "1.41.1-beta.1",
3
+ "version": "1.41.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [