@emilgroup/document-sdk-node 1.41.1-beta.0 → 1.41.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.
@@ -26,6 +26,7 @@ models/create-layout-request-dto.ts
26
26
  models/create-layout-response-class.ts
27
27
  models/create-presigned-post-request-dto.ts
28
28
  models/create-presigned-post-response-class.ts
29
+ models/create-qr-bill-document-request-dto.ts
29
30
  models/delete-layout-request-dto.ts
30
31
  models/delete-product-document-request-dto.ts
31
32
  models/delete-request-dto.ts
@@ -34,6 +35,8 @@ models/doc-template-class.ts
34
35
  models/document-class.ts
35
36
  models/docx-template-class.ts
36
37
  models/download-document-request-dto.ts
38
+ models/export-document-request-dto.ts
39
+ models/export-document-response-class.ts
37
40
  models/get-doc-template-request-dto.ts
38
41
  models/get-doc-template-response-class.ts
39
42
  models/get-document-download-url-response-class.ts
@@ -64,7 +67,10 @@ models/list-searchable-document-owners-request-dto.ts
64
67
  models/list-searchable-document-owners-response-class.ts
65
68
  models/list-searchable-documents-request-dto.ts
66
69
  models/list-searchable-documents-response-class.ts
70
+ models/merge-documents-request-dto.ts
71
+ models/merge-documents-response-class.ts
67
72
  models/product-document-class.ts
73
+ models/qr-billing-entity-dto.ts
68
74
  models/save-external-document-request-dto.ts
69
75
  models/searchable-document-class.ts
70
76
  models/searchable-document-owner-class.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.0 --save
20
+ npm install @emilgroup/document-sdk-node@1.41.1-beta.2 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.41.1-beta.0
24
+ yarn add @emilgroup/document-sdk-node@1.41.1-beta.2
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -29,12 +29,22 @@ import { CreatePresignedPostRequestDto } from '../models';
29
29
  // @ts-ignore
30
30
  import { CreatePresignedPostResponseClass } from '../models';
31
31
  // @ts-ignore
32
+ import { CreateQrBillDocumentRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { ExportDocumentRequestDto } from '../models';
35
+ // @ts-ignore
36
+ import { ExportDocumentResponseClass } from '../models';
37
+ // @ts-ignore
32
38
  import { GetDocumentDownloadUrlResponseClass } from '../models';
33
39
  // @ts-ignore
34
40
  import { GetSignedS3KeyUrlResponseClass } from '../models';
35
41
  // @ts-ignore
36
42
  import { ListDocumentsResponseClass } from '../models';
37
43
  // @ts-ignore
44
+ import { MergeDocumentsRequestDto } from '../models';
45
+ // @ts-ignore
46
+ import { MergeDocumentsResponseClass } from '../models';
47
+ // @ts-ignore
38
48
  import { SaveExternalDocumentRequestDto } from '../models';
39
49
  // @ts-ignore
40
50
  import { UpdateDocumentRequestDto } from '../models';
@@ -144,6 +154,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
144
154
  options: localVarRequestOptions,
145
155
  };
146
156
  },
157
+ /**
158
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
159
+ * @summary Create the QR bill document
160
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
161
+ * @param {string} [authorization] Bearer Token
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ createQrBillDocument: async (createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
166
+ // verify required parameter 'createQrBillDocumentRequestDto' is not null or undefined
167
+ assertParamExists('createQrBillDocument', 'createQrBillDocumentRequestDto', createQrBillDocumentRequestDto)
168
+ const localVarPath = `/documentservice/v1/documents/qr-bill`;
169
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
171
+ let baseOptions;
172
+ let baseAccessToken;
173
+ if (configuration) {
174
+ baseOptions = configuration.baseOptions;
175
+ baseAccessToken = configuration.accessToken;
176
+ }
177
+
178
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
179
+ const localVarHeaderParameter = {} as any;
180
+ const localVarQueryParameter = {} as any;
181
+
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
185
+
186
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ }
189
+
190
+
191
+
192
+ localVarHeaderParameter['Content-Type'] = 'application/json';
193
+
194
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
197
+ localVarRequestOptions.data = serializeDataIfNeeded(createQrBillDocumentRequestDto, localVarRequestOptions, configuration)
198
+
199
+ return {
200
+ url: toPathString(localVarUrlObj),
201
+ options: localVarRequestOptions,
202
+ };
203
+ },
147
204
  /**
148
205
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
149
206
  * @summary Delete the document
@@ -189,6 +246,57 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
189
246
  options: localVarRequestOptions,
190
247
  };
191
248
  },
249
+ /**
250
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
251
+ * @summary Export internal document
252
+ * @param {string} code Document code
253
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
254
+ * @param {string} [authorization] Bearer Token
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ exportDocument: async (code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
259
+ // verify required parameter 'code' is not null or undefined
260
+ assertParamExists('exportDocument', 'code', code)
261
+ // verify required parameter 'exportDocumentRequestDto' is not null or undefined
262
+ assertParamExists('exportDocument', 'exportDocumentRequestDto', exportDocumentRequestDto)
263
+ const localVarPath = `/documentservice/v1/documents/{code}/export-document`
264
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
265
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
266
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
267
+ let baseOptions;
268
+ let baseAccessToken;
269
+ if (configuration) {
270
+ baseOptions = configuration.baseOptions;
271
+ baseAccessToken = configuration.accessToken;
272
+ }
273
+
274
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
275
+ const localVarHeaderParameter = {} as any;
276
+ const localVarQueryParameter = {} as any;
277
+
278
+ // authentication bearer required
279
+ // http bearer authentication required
280
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
281
+
282
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
283
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
284
+ }
285
+
286
+
287
+
288
+ localVarHeaderParameter['Content-Type'] = 'application/json';
289
+
290
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
293
+ localVarRequestOptions.data = serializeDataIfNeeded(exportDocumentRequestDto, localVarRequestOptions, configuration)
294
+
295
+ return {
296
+ url: toPathString(localVarUrlObj),
297
+ options: localVarRequestOptions,
298
+ };
299
+ },
192
300
  /**
193
301
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
194
302
  * @summary Fetches a document download URL
@@ -369,7 +477,54 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
369
477
  };
370
478
  },
371
479
  /**
372
- * 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\"
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
+ },
526
+ /**
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\"
373
528
  * @summary Save external document
374
529
  * @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
375
530
  * @param {string} [authorization] Bearer Token
@@ -500,6 +655,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
500
655
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options);
501
656
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
502
657
  },
658
+ /**
659
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
660
+ * @summary Create the QR bill document
661
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
662
+ * @param {string} [authorization] Bearer Token
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
667
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options);
668
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
669
+ },
503
670
  /**
504
671
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
505
672
  * @summary Delete the document
@@ -512,6 +679,19 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
512
679
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocument(code, authorization, options);
513
680
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
514
681
  },
682
+ /**
683
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
684
+ * @summary Export internal document
685
+ * @param {string} code Document code
686
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
687
+ * @param {string} [authorization] Bearer Token
688
+ * @param {*} [options] Override http request option.
689
+ * @throws {RequiredError}
690
+ */
691
+ async exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportDocumentResponseClass>> {
692
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportDocument(code, exportDocumentRequestDto, authorization, options);
693
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
694
+ },
515
695
  /**
516
696
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
517
697
  * @summary Fetches a document download URL
@@ -557,7 +737,19 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
557
737
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
558
738
  },
559
739
  /**
560
- * 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\"
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
+ },
751
+ /**
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\"
561
753
  * @summary Save external document
562
754
  * @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
563
755
  * @param {string} [authorization] Bearer Token
@@ -613,6 +805,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
613
805
  createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
614
806
  return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
615
807
  },
808
+ /**
809
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
810
+ * @summary Create the QR bill document
811
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
812
+ * @param {string} [authorization] Bearer Token
813
+ * @param {*} [options] Override http request option.
814
+ * @throws {RequiredError}
815
+ */
816
+ createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
817
+ return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
818
+ },
616
819
  /**
617
820
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
618
821
  * @summary Delete the document
@@ -624,6 +827,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
624
827
  deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<object> {
625
828
  return localVarFp.deleteDocument(code, authorization, options).then((request) => request(axios, basePath));
626
829
  },
830
+ /**
831
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
832
+ * @summary Export internal document
833
+ * @param {string} code Document code
834
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
835
+ * @param {string} [authorization] Bearer Token
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ExportDocumentResponseClass> {
840
+ return localVarFp.exportDocument(code, exportDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
841
+ },
627
842
  /**
628
843
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
629
844
  * @summary Fetches a document download URL
@@ -666,7 +881,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
666
881
  return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
667
882
  },
668
883
  /**
669
- * 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\"
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
+ },
894
+ /**
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\"
670
896
  * @summary Save external document
671
897
  * @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
672
898
  * @param {string} [authorization] Bearer Token
@@ -733,6 +959,27 @@ export interface DocumentsApiCreatePresignedPostRequest {
733
959
  readonly authorization?: string
734
960
  }
735
961
 
962
+ /**
963
+ * Request parameters for createQrBillDocument operation in DocumentsApi.
964
+ * @export
965
+ * @interface DocumentsApiCreateQrBillDocumentRequest
966
+ */
967
+ export interface DocumentsApiCreateQrBillDocumentRequest {
968
+ /**
969
+ *
970
+ * @type {CreateQrBillDocumentRequestDto}
971
+ * @memberof DocumentsApiCreateQrBillDocument
972
+ */
973
+ readonly createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto
974
+
975
+ /**
976
+ * Bearer Token
977
+ * @type {string}
978
+ * @memberof DocumentsApiCreateQrBillDocument
979
+ */
980
+ readonly authorization?: string
981
+ }
982
+
736
983
  /**
737
984
  * Request parameters for deleteDocument operation in DocumentsApi.
738
985
  * @export
@@ -754,6 +1001,34 @@ export interface DocumentsApiDeleteDocumentRequest {
754
1001
  readonly authorization?: string
755
1002
  }
756
1003
 
1004
+ /**
1005
+ * Request parameters for exportDocument operation in DocumentsApi.
1006
+ * @export
1007
+ * @interface DocumentsApiExportDocumentRequest
1008
+ */
1009
+ export interface DocumentsApiExportDocumentRequest {
1010
+ /**
1011
+ * Document code
1012
+ * @type {string}
1013
+ * @memberof DocumentsApiExportDocument
1014
+ */
1015
+ readonly code: string
1016
+
1017
+ /**
1018
+ *
1019
+ * @type {ExportDocumentRequestDto}
1020
+ * @memberof DocumentsApiExportDocument
1021
+ */
1022
+ readonly exportDocumentRequestDto: ExportDocumentRequestDto
1023
+
1024
+ /**
1025
+ * Bearer Token
1026
+ * @type {string}
1027
+ * @memberof DocumentsApiExportDocument
1028
+ */
1029
+ readonly authorization?: string
1030
+ }
1031
+
757
1032
  /**
758
1033
  * Request parameters for getDocumentDownloadUrl operation in DocumentsApi.
759
1034
  * @export
@@ -873,6 +1148,27 @@ export interface DocumentsApiListDocumentsRequest {
873
1148
  readonly filters?: string
874
1149
  }
875
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
+
876
1172
  /**
877
1173
  * Request parameters for saveExternalDocument operation in DocumentsApi.
878
1174
  * @export
@@ -953,6 +1249,18 @@ export class DocumentsApi extends BaseAPI {
953
1249
  return DocumentsApiFp(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
954
1250
  }
955
1251
 
1252
+ /**
1253
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
1254
+ * @summary Create the QR bill document
1255
+ * @param {DocumentsApiCreateQrBillDocumentRequest} requestParameters Request parameters.
1256
+ * @param {*} [options] Override http request option.
1257
+ * @throws {RequiredError}
1258
+ * @memberof DocumentsApi
1259
+ */
1260
+ public createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig) {
1261
+ return DocumentsApiFp(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1262
+ }
1263
+
956
1264
  /**
957
1265
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
958
1266
  * @summary Delete the document
@@ -965,6 +1273,18 @@ export class DocumentsApi extends BaseAPI {
965
1273
  return DocumentsApiFp(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
966
1274
  }
967
1275
 
1276
+ /**
1277
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
1278
+ * @summary Export internal document
1279
+ * @param {DocumentsApiExportDocumentRequest} requestParameters Request parameters.
1280
+ * @param {*} [options] Override http request option.
1281
+ * @throws {RequiredError}
1282
+ * @memberof DocumentsApi
1283
+ */
1284
+ public exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig) {
1285
+ return DocumentsApiFp(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1286
+ }
1287
+
968
1288
  /**
969
1289
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
970
1290
  * @summary Fetches a document download URL
@@ -1002,7 +1322,19 @@ export class DocumentsApi extends BaseAPI {
1002
1322
  }
1003
1323
 
1004
1324
  /**
1005
- * 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\"
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
+
1336
+ /**
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\"
1006
1338
  * @summary Save external document
1007
1339
  * @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
1008
1340
  * @param {*} [options] Override http request option.