@emilgroup/document-sdk-node 1.49.0 → 1.49.1-beta.0

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,8 @@ 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
30
+ models/create-qr-bill-document-response-class.ts
29
31
  models/delete-layout-request-dto.ts
30
32
  models/delete-product-document-request-dto.ts
31
33
  models/delete-request-dto.ts
@@ -34,6 +36,8 @@ models/doc-template-class.ts
34
36
  models/document-class.ts
35
37
  models/docx-template-class.ts
36
38
  models/download-document-request-dto.ts
39
+ models/export-document-request-dto.ts
40
+ models/export-document-response-class.ts
37
41
  models/get-doc-template-request-dto.ts
38
42
  models/get-doc-template-response-class.ts
39
43
  models/get-document-download-url-response-class.ts
@@ -66,7 +70,9 @@ models/list-searchable-document-owners-response-class.ts
66
70
  models/list-searchable-documents-request-dto.ts
67
71
  models/list-searchable-documents-response-class.ts
68
72
  models/merge-documents-request-dto.ts
73
+ models/merge-documents-response-class.ts
69
74
  models/product-document-class.ts
75
+ models/qr-billing-entity-dto.ts
70
76
  models/save-external-document-request-dto.ts
71
77
  models/searchable-document-class.ts
72
78
  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.49.0 --save
20
+ npm install @emilgroup/document-sdk-node@1.49.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.49.0
24
+ yarn add @emilgroup/document-sdk-node@1.49.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -29,6 +29,14 @@ 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 { CreateQrBillDocumentResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { ExportDocumentRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { ExportDocumentResponseClass } from '../models';
39
+ // @ts-ignore
32
40
  import { GetDocumentDownloadUrlResponseClass } from '../models';
33
41
  // @ts-ignore
34
42
  import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
@@ -37,6 +45,10 @@ import { GetSignedS3KeyUrlResponseClass } from '../models';
37
45
  // @ts-ignore
38
46
  import { ListDocumentsResponseClass } from '../models';
39
47
  // @ts-ignore
48
+ import { MergeDocumentsRequestDto } from '../models';
49
+ // @ts-ignore
50
+ import { MergeDocumentsResponseClass } from '../models';
51
+ // @ts-ignore
40
52
  import { SaveExternalDocumentRequestDto } from '../models';
41
53
  // @ts-ignore
42
54
  import { UpdateDocumentRequestDto } from '../models';
@@ -146,6 +158,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
146
158
  options: localVarRequestOptions,
147
159
  };
148
160
  },
161
+ /**
162
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
163
+ * @summary Create the QR bill document
164
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
165
+ * @param {string} [authorization] Bearer Token
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ createQrBillDocument: async (createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
170
+ // verify required parameter 'createQrBillDocumentRequestDto' is not null or undefined
171
+ assertParamExists('createQrBillDocument', 'createQrBillDocumentRequestDto', createQrBillDocumentRequestDto)
172
+ const localVarPath = `/documentservice/v1/documents/qr-bill`;
173
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
174
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
175
+ let baseOptions;
176
+ let baseAccessToken;
177
+ if (configuration) {
178
+ baseOptions = configuration.baseOptions;
179
+ baseAccessToken = configuration.accessToken;
180
+ }
181
+
182
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
183
+ const localVarHeaderParameter = {} as any;
184
+ const localVarQueryParameter = {} as any;
185
+
186
+ // authentication bearer required
187
+ // http bearer authentication required
188
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
189
+
190
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
192
+ }
193
+
194
+
195
+
196
+ localVarHeaderParameter['Content-Type'] = 'application/json';
197
+
198
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
199
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
200
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
201
+ localVarRequestOptions.data = serializeDataIfNeeded(createQrBillDocumentRequestDto, localVarRequestOptions, configuration)
202
+
203
+ return {
204
+ url: toPathString(localVarUrlObj),
205
+ options: localVarRequestOptions,
206
+ };
207
+ },
149
208
  /**
150
209
  * 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\"
151
210
  * @summary Delete the document
@@ -191,6 +250,57 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
191
250
  options: localVarRequestOptions,
192
251
  };
193
252
  },
253
+ /**
254
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
255
+ * @summary Export internal document
256
+ * @param {string} code Document code
257
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
258
+ * @param {string} [authorization] Bearer Token
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ exportDocument: async (code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
263
+ // verify required parameter 'code' is not null or undefined
264
+ assertParamExists('exportDocument', 'code', code)
265
+ // verify required parameter 'exportDocumentRequestDto' is not null or undefined
266
+ assertParamExists('exportDocument', 'exportDocumentRequestDto', exportDocumentRequestDto)
267
+ const localVarPath = `/documentservice/v1/documents/{code}/export-document`
268
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
271
+ let baseOptions;
272
+ let baseAccessToken;
273
+ if (configuration) {
274
+ baseOptions = configuration.baseOptions;
275
+ baseAccessToken = configuration.accessToken;
276
+ }
277
+
278
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
279
+ const localVarHeaderParameter = {} as any;
280
+ const localVarQueryParameter = {} as any;
281
+
282
+ // authentication bearer required
283
+ // http bearer authentication required
284
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
285
+
286
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
287
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
288
+ }
289
+
290
+
291
+
292
+ localVarHeaderParameter['Content-Type'] = 'application/json';
293
+
294
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
296
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
297
+ localVarRequestOptions.data = serializeDataIfNeeded(exportDocumentRequestDto, localVarRequestOptions, configuration)
298
+
299
+ return {
300
+ url: toPathString(localVarUrlObj),
301
+ options: localVarRequestOptions,
302
+ };
303
+ },
194
304
  /**
195
305
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
196
306
  * @summary Fetches a document download URL
@@ -370,6 +480,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
370
480
  options: localVarRequestOptions,
371
481
  };
372
482
  },
483
+ /**
484
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
485
+ * @summary Create the merged document
486
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
487
+ * @param {string} [authorization] Bearer Token
488
+ * @param {*} [options] Override http request option.
489
+ * @throws {RequiredError}
490
+ */
491
+ mergeDocuments: async (mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
492
+ // verify required parameter 'mergeDocumentsRequestDto' is not null or undefined
493
+ assertParamExists('mergeDocuments', 'mergeDocumentsRequestDto', mergeDocumentsRequestDto)
494
+ const localVarPath = `/documentservice/v1/documents/merge`;
495
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
496
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
497
+ let baseOptions;
498
+ let baseAccessToken;
499
+ if (configuration) {
500
+ baseOptions = configuration.baseOptions;
501
+ baseAccessToken = configuration.accessToken;
502
+ }
503
+
504
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
505
+ const localVarHeaderParameter = {} as any;
506
+ const localVarQueryParameter = {} as any;
507
+
508
+ // authentication bearer required
509
+ // http bearer authentication required
510
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
511
+
512
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
513
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
514
+ }
515
+
516
+
517
+
518
+ localVarHeaderParameter['Content-Type'] = 'application/json';
519
+
520
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
521
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
522
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
523
+ localVarRequestOptions.data = serializeDataIfNeeded(mergeDocumentsRequestDto, localVarRequestOptions, configuration)
524
+
525
+ return {
526
+ url: toPathString(localVarUrlObj),
527
+ options: localVarRequestOptions,
528
+ };
529
+ },
373
530
  /**
374
531
  * 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\"
375
532
  * @summary Save external document
@@ -502,6 +659,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
502
659
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options);
503
660
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
504
661
  },
662
+ /**
663
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
664
+ * @summary Create the QR bill document
665
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
666
+ * @param {string} [authorization] Bearer Token
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateQrBillDocumentResponseClass>> {
671
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options);
672
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
673
+ },
505
674
  /**
506
675
  * 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\"
507
676
  * @summary Delete the document
@@ -514,6 +683,19 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
514
683
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocument(code, authorization, options);
515
684
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
516
685
  },
686
+ /**
687
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
688
+ * @summary Export internal document
689
+ * @param {string} code Document code
690
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
691
+ * @param {string} [authorization] Bearer Token
692
+ * @param {*} [options] Override http request option.
693
+ * @throws {RequiredError}
694
+ */
695
+ async exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportDocumentResponseClass>> {
696
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportDocument(code, exportDocumentRequestDto, authorization, options);
697
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
698
+ },
517
699
  /**
518
700
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
519
701
  * @summary Fetches a document download URL
@@ -558,6 +740,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
558
740
  const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
559
741
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
560
742
  },
743
+ /**
744
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
745
+ * @summary Create the merged document
746
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
747
+ * @param {string} [authorization] Bearer Token
748
+ * @param {*} [options] Override http request option.
749
+ * @throws {RequiredError}
750
+ */
751
+ async mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MergeDocumentsResponseClass>> {
752
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mergeDocuments(mergeDocumentsRequestDto, authorization, options);
753
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
754
+ },
561
755
  /**
562
756
  * 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\"
563
757
  * @summary Save external document
@@ -615,6 +809,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
615
809
  createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
616
810
  return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
617
811
  },
812
+ /**
813
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
814
+ * @summary Create the QR bill document
815
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
816
+ * @param {string} [authorization] Bearer Token
817
+ * @param {*} [options] Override http request option.
818
+ * @throws {RequiredError}
819
+ */
820
+ createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreateQrBillDocumentResponseClass> {
821
+ return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
822
+ },
618
823
  /**
619
824
  * 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\"
620
825
  * @summary Delete the document
@@ -626,6 +831,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
626
831
  deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<object> {
627
832
  return localVarFp.deleteDocument(code, authorization, options).then((request) => request(axios, basePath));
628
833
  },
834
+ /**
835
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
836
+ * @summary Export internal document
837
+ * @param {string} code Document code
838
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
839
+ * @param {string} [authorization] Bearer Token
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ExportDocumentResponseClass> {
844
+ return localVarFp.exportDocument(code, exportDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
845
+ },
629
846
  /**
630
847
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
631
848
  * @summary Fetches a document download URL
@@ -667,6 +884,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
667
884
  listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
668
885
  return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
669
886
  },
887
+ /**
888
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
889
+ * @summary Create the merged document
890
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
891
+ * @param {string} [authorization] Bearer Token
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: any): AxiosPromise<MergeDocumentsResponseClass> {
896
+ return localVarFp.mergeDocuments(mergeDocumentsRequestDto, authorization, options).then((request) => request(axios, basePath));
897
+ },
670
898
  /**
671
899
  * 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\"
672
900
  * @summary Save external document
@@ -735,6 +963,27 @@ export interface DocumentsApiCreatePresignedPostRequest {
735
963
  readonly authorization?: string
736
964
  }
737
965
 
966
+ /**
967
+ * Request parameters for createQrBillDocument operation in DocumentsApi.
968
+ * @export
969
+ * @interface DocumentsApiCreateQrBillDocumentRequest
970
+ */
971
+ export interface DocumentsApiCreateQrBillDocumentRequest {
972
+ /**
973
+ *
974
+ * @type {CreateQrBillDocumentRequestDto}
975
+ * @memberof DocumentsApiCreateQrBillDocument
976
+ */
977
+ readonly createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto
978
+
979
+ /**
980
+ * Bearer Token
981
+ * @type {string}
982
+ * @memberof DocumentsApiCreateQrBillDocument
983
+ */
984
+ readonly authorization?: string
985
+ }
986
+
738
987
  /**
739
988
  * Request parameters for deleteDocument operation in DocumentsApi.
740
989
  * @export
@@ -756,6 +1005,34 @@ export interface DocumentsApiDeleteDocumentRequest {
756
1005
  readonly authorization?: string
757
1006
  }
758
1007
 
1008
+ /**
1009
+ * Request parameters for exportDocument operation in DocumentsApi.
1010
+ * @export
1011
+ * @interface DocumentsApiExportDocumentRequest
1012
+ */
1013
+ export interface DocumentsApiExportDocumentRequest {
1014
+ /**
1015
+ * Document code
1016
+ * @type {string}
1017
+ * @memberof DocumentsApiExportDocument
1018
+ */
1019
+ readonly code: string
1020
+
1021
+ /**
1022
+ *
1023
+ * @type {ExportDocumentRequestDto}
1024
+ * @memberof DocumentsApiExportDocument
1025
+ */
1026
+ readonly exportDocumentRequestDto: ExportDocumentRequestDto
1027
+
1028
+ /**
1029
+ * Bearer Token
1030
+ * @type {string}
1031
+ * @memberof DocumentsApiExportDocument
1032
+ */
1033
+ readonly authorization?: string
1034
+ }
1035
+
759
1036
  /**
760
1037
  * Request parameters for getDocumentDownloadUrl operation in DocumentsApi.
761
1038
  * @export
@@ -875,6 +1152,27 @@ export interface DocumentsApiListDocumentsRequest {
875
1152
  readonly filters?: string
876
1153
  }
877
1154
 
1155
+ /**
1156
+ * Request parameters for mergeDocuments operation in DocumentsApi.
1157
+ * @export
1158
+ * @interface DocumentsApiMergeDocumentsRequest
1159
+ */
1160
+ export interface DocumentsApiMergeDocumentsRequest {
1161
+ /**
1162
+ *
1163
+ * @type {MergeDocumentsRequestDto}
1164
+ * @memberof DocumentsApiMergeDocuments
1165
+ */
1166
+ readonly mergeDocumentsRequestDto: MergeDocumentsRequestDto
1167
+
1168
+ /**
1169
+ * Bearer Token
1170
+ * @type {string}
1171
+ * @memberof DocumentsApiMergeDocuments
1172
+ */
1173
+ readonly authorization?: string
1174
+ }
1175
+
878
1176
  /**
879
1177
  * Request parameters for saveExternalDocument operation in DocumentsApi.
880
1178
  * @export
@@ -955,6 +1253,18 @@ export class DocumentsApi extends BaseAPI {
955
1253
  return DocumentsApiFp(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
956
1254
  }
957
1255
 
1256
+ /**
1257
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
1258
+ * @summary Create the QR bill document
1259
+ * @param {DocumentsApiCreateQrBillDocumentRequest} requestParameters Request parameters.
1260
+ * @param {*} [options] Override http request option.
1261
+ * @throws {RequiredError}
1262
+ * @memberof DocumentsApi
1263
+ */
1264
+ public createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig) {
1265
+ return DocumentsApiFp(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1266
+ }
1267
+
958
1268
  /**
959
1269
  * 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\"
960
1270
  * @summary Delete the document
@@ -967,6 +1277,18 @@ export class DocumentsApi extends BaseAPI {
967
1277
  return DocumentsApiFp(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
968
1278
  }
969
1279
 
1280
+ /**
1281
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
1282
+ * @summary Export internal document
1283
+ * @param {DocumentsApiExportDocumentRequest} requestParameters Request parameters.
1284
+ * @param {*} [options] Override http request option.
1285
+ * @throws {RequiredError}
1286
+ * @memberof DocumentsApi
1287
+ */
1288
+ public exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig) {
1289
+ return DocumentsApiFp(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1290
+ }
1291
+
970
1292
  /**
971
1293
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
972
1294
  * @summary Fetches a document download URL
@@ -1003,6 +1325,18 @@ export class DocumentsApi extends BaseAPI {
1003
1325
  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));
1004
1326
  }
1005
1327
 
1328
+ /**
1329
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
1330
+ * @summary Create the merged document
1331
+ * @param {DocumentsApiMergeDocumentsRequest} requestParameters Request parameters.
1332
+ * @param {*} [options] Override http request option.
1333
+ * @throws {RequiredError}
1334
+ * @memberof DocumentsApi
1335
+ */
1336
+ public mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig) {
1337
+ return DocumentsApiFp(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1338
+ }
1339
+
1006
1340
  /**
1007
1341
  * 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\"
1008
1342
  * @summary Save external document