@emilgroup/document-sdk 1.42.1-beta.0 → 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.
@@ -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@1.42.1-beta.0 --save
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.0
24
+ yarn add @emilgroup/document-sdk@1.42.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';
@@ -140,6 +150,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
140
150
  options: localVarRequestOptions,
141
151
  };
142
152
  },
153
+ /**
154
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
155
+ * @summary Create the QR bill document
156
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
157
+ * @param {string} [authorization] Bearer Token
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ createQrBillDocument: async (createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
162
+ // verify required parameter 'createQrBillDocumentRequestDto' is not null or undefined
163
+ assertParamExists('createQrBillDocument', 'createQrBillDocumentRequestDto', createQrBillDocumentRequestDto)
164
+ const localVarPath = `/documentservice/v1/documents/qr-bill`;
165
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
166
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
167
+ let baseOptions;
168
+ let baseAccessToken;
169
+ if (configuration) {
170
+ baseOptions = configuration.baseOptions;
171
+ baseAccessToken = configuration.accessToken;
172
+ }
173
+
174
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
175
+ const localVarHeaderParameter = {} as any;
176
+ const localVarQueryParameter = {} as any;
177
+
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
181
+
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+
186
+
187
+
188
+ localVarHeaderParameter['Content-Type'] = 'application/json';
189
+
190
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
193
+ localVarRequestOptions.data = serializeDataIfNeeded(createQrBillDocumentRequestDto, localVarRequestOptions, configuration)
194
+
195
+ return {
196
+ url: toPathString(localVarUrlObj),
197
+ options: localVarRequestOptions,
198
+ };
199
+ },
143
200
  /**
144
201
  * 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\"
145
202
  * @summary Delete the document
@@ -185,6 +242,57 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
185
242
  options: localVarRequestOptions,
186
243
  };
187
244
  },
245
+ /**
246
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
247
+ * @summary Export internal document
248
+ * @param {string} code Document code
249
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
250
+ * @param {string} [authorization] Bearer Token
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ exportDocument: async (code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
255
+ // verify required parameter 'code' is not null or undefined
256
+ assertParamExists('exportDocument', 'code', code)
257
+ // verify required parameter 'exportDocumentRequestDto' is not null or undefined
258
+ assertParamExists('exportDocument', 'exportDocumentRequestDto', exportDocumentRequestDto)
259
+ const localVarPath = `/documentservice/v1/documents/{code}/export-document`
260
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
261
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
262
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
263
+ let baseOptions;
264
+ let baseAccessToken;
265
+ if (configuration) {
266
+ baseOptions = configuration.baseOptions;
267
+ baseAccessToken = configuration.accessToken;
268
+ }
269
+
270
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
271
+ const localVarHeaderParameter = {} as any;
272
+ const localVarQueryParameter = {} as any;
273
+
274
+ // authentication bearer required
275
+ // http bearer authentication required
276
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
277
+
278
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
279
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
280
+ }
281
+
282
+
283
+
284
+ localVarHeaderParameter['Content-Type'] = 'application/json';
285
+
286
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
287
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
288
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
289
+ localVarRequestOptions.data = serializeDataIfNeeded(exportDocumentRequestDto, localVarRequestOptions, configuration)
290
+
291
+ return {
292
+ url: toPathString(localVarUrlObj),
293
+ options: localVarRequestOptions,
294
+ };
295
+ },
188
296
  /**
189
297
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
190
298
  * @summary Fetches a document download URL
@@ -365,7 +473,54 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
365
473
  };
366
474
  },
367
475
  /**
368
- * 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\"
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
+ },
522
+ /**
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\"
369
524
  * @summary Save external document
370
525
  * @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
371
526
  * @param {string} [authorization] Bearer Token
@@ -496,6 +651,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
496
651
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options);
497
652
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
498
653
  },
654
+ /**
655
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
656
+ * @summary Create the QR bill document
657
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
658
+ * @param {string} [authorization] Bearer Token
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
663
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options);
664
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
665
+ },
499
666
  /**
500
667
  * 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\"
501
668
  * @summary Delete the document
@@ -508,6 +675,19 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
508
675
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocument(code, authorization, options);
509
676
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
510
677
  },
678
+ /**
679
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
680
+ * @summary Export internal document
681
+ * @param {string} code Document code
682
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
683
+ * @param {string} [authorization] Bearer Token
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ async exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportDocumentResponseClass>> {
688
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportDocument(code, exportDocumentRequestDto, authorization, options);
689
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
690
+ },
511
691
  /**
512
692
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
513
693
  * @summary Fetches a document download URL
@@ -553,7 +733,19 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
553
733
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
554
734
  },
555
735
  /**
556
- * 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\"
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
+ },
747
+ /**
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\"
557
749
  * @summary Save external document
558
750
  * @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
559
751
  * @param {string} [authorization] Bearer Token
@@ -609,6 +801,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
609
801
  createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
610
802
  return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
611
803
  },
804
+ /**
805
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
806
+ * @summary Create the QR bill document
807
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
808
+ * @param {string} [authorization] Bearer Token
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ */
812
+ createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
813
+ return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
814
+ },
612
815
  /**
613
816
  * 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\"
614
817
  * @summary Delete the document
@@ -620,6 +823,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
620
823
  deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<object> {
621
824
  return localVarFp.deleteDocument(code, authorization, options).then((request) => request(axios, basePath));
622
825
  },
826
+ /**
827
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
828
+ * @summary Export internal document
829
+ * @param {string} code Document code
830
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
831
+ * @param {string} [authorization] Bearer Token
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ExportDocumentResponseClass> {
836
+ return localVarFp.exportDocument(code, exportDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
837
+ },
623
838
  /**
624
839
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
625
840
  * @summary Fetches a document download URL
@@ -662,7 +877,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
662
877
  return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
663
878
  },
664
879
  /**
665
- * 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\"
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
+ },
890
+ /**
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\"
666
892
  * @summary Save external document
667
893
  * @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
668
894
  * @param {string} [authorization] Bearer Token
@@ -729,6 +955,27 @@ export interface DocumentsApiCreatePresignedPostRequest {
729
955
  readonly authorization?: string
730
956
  }
731
957
 
958
+ /**
959
+ * Request parameters for createQrBillDocument operation in DocumentsApi.
960
+ * @export
961
+ * @interface DocumentsApiCreateQrBillDocumentRequest
962
+ */
963
+ export interface DocumentsApiCreateQrBillDocumentRequest {
964
+ /**
965
+ *
966
+ * @type {CreateQrBillDocumentRequestDto}
967
+ * @memberof DocumentsApiCreateQrBillDocument
968
+ */
969
+ readonly createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto
970
+
971
+ /**
972
+ * Bearer Token
973
+ * @type {string}
974
+ * @memberof DocumentsApiCreateQrBillDocument
975
+ */
976
+ readonly authorization?: string
977
+ }
978
+
732
979
  /**
733
980
  * Request parameters for deleteDocument operation in DocumentsApi.
734
981
  * @export
@@ -750,6 +997,34 @@ export interface DocumentsApiDeleteDocumentRequest {
750
997
  readonly authorization?: string
751
998
  }
752
999
 
1000
+ /**
1001
+ * Request parameters for exportDocument operation in DocumentsApi.
1002
+ * @export
1003
+ * @interface DocumentsApiExportDocumentRequest
1004
+ */
1005
+ export interface DocumentsApiExportDocumentRequest {
1006
+ /**
1007
+ * Document code
1008
+ * @type {string}
1009
+ * @memberof DocumentsApiExportDocument
1010
+ */
1011
+ readonly code: string
1012
+
1013
+ /**
1014
+ *
1015
+ * @type {ExportDocumentRequestDto}
1016
+ * @memberof DocumentsApiExportDocument
1017
+ */
1018
+ readonly exportDocumentRequestDto: ExportDocumentRequestDto
1019
+
1020
+ /**
1021
+ * Bearer Token
1022
+ * @type {string}
1023
+ * @memberof DocumentsApiExportDocument
1024
+ */
1025
+ readonly authorization?: string
1026
+ }
1027
+
753
1028
  /**
754
1029
  * Request parameters for getDocumentDownloadUrl operation in DocumentsApi.
755
1030
  * @export
@@ -869,6 +1144,27 @@ export interface DocumentsApiListDocumentsRequest {
869
1144
  readonly filters?: string
870
1145
  }
871
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
+
872
1168
  /**
873
1169
  * Request parameters for saveExternalDocument operation in DocumentsApi.
874
1170
  * @export
@@ -949,6 +1245,18 @@ export class DocumentsApi extends BaseAPI {
949
1245
  return DocumentsApiFp(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
950
1246
  }
951
1247
 
1248
+ /**
1249
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
1250
+ * @summary Create the QR bill document
1251
+ * @param {DocumentsApiCreateQrBillDocumentRequest} requestParameters Request parameters.
1252
+ * @param {*} [options] Override http request option.
1253
+ * @throws {RequiredError}
1254
+ * @memberof DocumentsApi
1255
+ */
1256
+ public createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig) {
1257
+ return DocumentsApiFp(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1258
+ }
1259
+
952
1260
  /**
953
1261
  * 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\"
954
1262
  * @summary Delete the document
@@ -961,6 +1269,18 @@ export class DocumentsApi extends BaseAPI {
961
1269
  return DocumentsApiFp(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
962
1270
  }
963
1271
 
1272
+ /**
1273
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
1274
+ * @summary Export internal document
1275
+ * @param {DocumentsApiExportDocumentRequest} requestParameters Request parameters.
1276
+ * @param {*} [options] Override http request option.
1277
+ * @throws {RequiredError}
1278
+ * @memberof DocumentsApi
1279
+ */
1280
+ public exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig) {
1281
+ return DocumentsApiFp(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1282
+ }
1283
+
964
1284
  /**
965
1285
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
966
1286
  * @summary Fetches a document download URL
@@ -998,7 +1318,19 @@ export class DocumentsApi extends BaseAPI {
998
1318
  }
999
1319
 
1000
1320
  /**
1001
- * 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\"
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
+
1332
+ /**
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\"
1002
1334
  * @summary Save external document
1003
1335
  * @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
1004
1336
  * @param {*} [options] Override http request option.