@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.
@@ -16,10 +16,16 @@ import { CreateDocumentRequestDto } from '../models';
16
16
  import { CreateDocumentSyncResponseClass } from '../models';
17
17
  import { CreatePresignedPostRequestDto } from '../models';
18
18
  import { CreatePresignedPostResponseClass } from '../models';
19
+ import { CreateQrBillDocumentRequestDto } from '../models';
20
+ import { CreateQrBillDocumentResponseClass } from '../models';
21
+ import { ExportDocumentRequestDto } from '../models';
22
+ import { ExportDocumentResponseClass } from '../models';
19
23
  import { GetDocumentDownloadUrlResponseClass } from '../models';
20
24
  import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
21
25
  import { GetSignedS3KeyUrlResponseClass } from '../models';
22
26
  import { ListDocumentsResponseClass } from '../models';
27
+ import { MergeDocumentsRequestDto } from '../models';
28
+ import { MergeDocumentsResponseClass } from '../models';
23
29
  import { SaveExternalDocumentRequestDto } from '../models';
24
30
  import { UpdateDocumentRequestDto } from '../models';
25
31
  import { UpdateDocumentResponseClass } from '../models';
@@ -46,6 +52,15 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
46
52
  * @throws {RequiredError}
47
53
  */
48
54
  createPresignedPost: (createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
57
+ * @summary Create the QR bill document
58
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
59
+ * @param {string} [authorization] Bearer Token
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ createQrBillDocument: (createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
49
64
  /**
50
65
  * 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\"
51
66
  * @summary Delete the document
@@ -55,6 +70,16 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
55
70
  * @throws {RequiredError}
56
71
  */
57
72
  deleteDocument: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
73
+ /**
74
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
75
+ * @summary Export internal document
76
+ * @param {string} code Document code
77
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
78
+ * @param {string} [authorization] Bearer Token
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ exportDocument: (code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
83
  /**
59
84
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
60
85
  * @summary Fetches a document download URL
@@ -90,6 +115,15 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
90
115
  * @throws {RequiredError}
91
116
  */
92
117
  listDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
118
+ /**
119
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
120
+ * @summary Create the merged document
121
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
122
+ * @param {string} [authorization] Bearer Token
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ mergeDocuments: (mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
93
127
  /**
94
128
  * 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\"
95
129
  * @summary Save external document
@@ -133,6 +167,15 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
133
167
  * @throws {RequiredError}
134
168
  */
135
169
  createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
170
+ /**
171
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
172
+ * @summary Create the QR bill document
173
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
174
+ * @param {string} [authorization] Bearer Token
175
+ * @param {*} [options] Override http request option.
176
+ * @throws {RequiredError}
177
+ */
178
+ createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateQrBillDocumentResponseClass>>;
136
179
  /**
137
180
  * 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\"
138
181
  * @summary Delete the document
@@ -142,6 +185,16 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
142
185
  * @throws {RequiredError}
143
186
  */
144
187
  deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
188
+ /**
189
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
190
+ * @summary Export internal document
191
+ * @param {string} code Document code
192
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
193
+ * @param {string} [authorization] Bearer Token
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportDocumentResponseClass>>;
145
198
  /**
146
199
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
147
200
  * @summary Fetches a document download URL
@@ -177,6 +230,15 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
177
230
  * @throws {RequiredError}
178
231
  */
179
232
  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>>;
233
+ /**
234
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
235
+ * @summary Create the merged document
236
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
237
+ * @param {string} [authorization] Bearer Token
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MergeDocumentsResponseClass>>;
180
242
  /**
181
243
  * 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\"
182
244
  * @summary Save external document
@@ -220,6 +282,15 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
220
282
  * @throws {RequiredError}
221
283
  */
222
284
  createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
285
+ /**
286
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
287
+ * @summary Create the QR bill document
288
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
289
+ * @param {string} [authorization] Bearer Token
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreateQrBillDocumentResponseClass>;
223
294
  /**
224
295
  * 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\"
225
296
  * @summary Delete the document
@@ -229,6 +300,16 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
229
300
  * @throws {RequiredError}
230
301
  */
231
302
  deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<object>;
303
+ /**
304
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
305
+ * @summary Export internal document
306
+ * @param {string} code Document code
307
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
308
+ * @param {string} [authorization] Bearer Token
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ExportDocumentResponseClass>;
232
313
  /**
233
314
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
234
315
  * @summary Fetches a document download URL
@@ -264,6 +345,15 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
264
345
  * @throws {RequiredError}
265
346
  */
266
347
  listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
348
+ /**
349
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
350
+ * @summary Create the merged document
351
+ * @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
352
+ * @param {string} [authorization] Bearer Token
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ mergeDocuments(mergeDocumentsRequestDto: MergeDocumentsRequestDto, authorization?: string, options?: any): AxiosPromise<MergeDocumentsResponseClass>;
267
357
  /**
268
358
  * 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\"
269
359
  * @summary Save external document
@@ -322,6 +412,25 @@ export interface DocumentsApiCreatePresignedPostRequest {
322
412
  */
323
413
  readonly authorization?: string;
324
414
  }
415
+ /**
416
+ * Request parameters for createQrBillDocument operation in DocumentsApi.
417
+ * @export
418
+ * @interface DocumentsApiCreateQrBillDocumentRequest
419
+ */
420
+ export interface DocumentsApiCreateQrBillDocumentRequest {
421
+ /**
422
+ *
423
+ * @type {CreateQrBillDocumentRequestDto}
424
+ * @memberof DocumentsApiCreateQrBillDocument
425
+ */
426
+ readonly createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto;
427
+ /**
428
+ * Bearer Token
429
+ * @type {string}
430
+ * @memberof DocumentsApiCreateQrBillDocument
431
+ */
432
+ readonly authorization?: string;
433
+ }
325
434
  /**
326
435
  * Request parameters for deleteDocument operation in DocumentsApi.
327
436
  * @export
@@ -341,6 +450,31 @@ export interface DocumentsApiDeleteDocumentRequest {
341
450
  */
342
451
  readonly authorization?: string;
343
452
  }
453
+ /**
454
+ * Request parameters for exportDocument operation in DocumentsApi.
455
+ * @export
456
+ * @interface DocumentsApiExportDocumentRequest
457
+ */
458
+ export interface DocumentsApiExportDocumentRequest {
459
+ /**
460
+ * Document code
461
+ * @type {string}
462
+ * @memberof DocumentsApiExportDocument
463
+ */
464
+ readonly code: string;
465
+ /**
466
+ *
467
+ * @type {ExportDocumentRequestDto}
468
+ * @memberof DocumentsApiExportDocument
469
+ */
470
+ readonly exportDocumentRequestDto: ExportDocumentRequestDto;
471
+ /**
472
+ * Bearer Token
473
+ * @type {string}
474
+ * @memberof DocumentsApiExportDocument
475
+ */
476
+ readonly authorization?: string;
477
+ }
344
478
  /**
345
479
  * Request parameters for getDocumentDownloadUrl operation in DocumentsApi.
346
480
  * @export
@@ -446,6 +580,25 @@ export interface DocumentsApiListDocumentsRequest {
446
580
  */
447
581
  readonly filters?: string;
448
582
  }
583
+ /**
584
+ * Request parameters for mergeDocuments operation in DocumentsApi.
585
+ * @export
586
+ * @interface DocumentsApiMergeDocumentsRequest
587
+ */
588
+ export interface DocumentsApiMergeDocumentsRequest {
589
+ /**
590
+ *
591
+ * @type {MergeDocumentsRequestDto}
592
+ * @memberof DocumentsApiMergeDocuments
593
+ */
594
+ readonly mergeDocumentsRequestDto: MergeDocumentsRequestDto;
595
+ /**
596
+ * Bearer Token
597
+ * @type {string}
598
+ * @memberof DocumentsApiMergeDocuments
599
+ */
600
+ readonly authorization?: string;
601
+ }
449
602
  /**
450
603
  * Request parameters for saveExternalDocument operation in DocumentsApi.
451
604
  * @export
@@ -515,6 +668,15 @@ export declare class DocumentsApi extends BaseAPI {
515
668
  * @memberof DocumentsApi
516
669
  */
517
670
  createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
671
+ /**
672
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
673
+ * @summary Create the QR bill document
674
+ * @param {DocumentsApiCreateQrBillDocumentRequest} requestParameters Request parameters.
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ * @memberof DocumentsApi
678
+ */
679
+ createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQrBillDocumentResponseClass, any, {}>>;
518
680
  /**
519
681
  * 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\"
520
682
  * @summary Delete the document
@@ -524,6 +686,15 @@ export declare class DocumentsApi extends BaseAPI {
524
686
  * @memberof DocumentsApi
525
687
  */
526
688
  deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
689
+ /**
690
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
691
+ * @summary Export internal document
692
+ * @param {DocumentsApiExportDocumentRequest} requestParameters Request parameters.
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ * @memberof DocumentsApi
696
+ */
697
+ exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportDocumentResponseClass, any, {}>>;
527
698
  /**
528
699
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
529
700
  * @summary Fetches a document download URL
@@ -551,6 +722,15 @@ export declare class DocumentsApi extends BaseAPI {
551
722
  * @memberof DocumentsApi
552
723
  */
553
724
  listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}>>;
725
+ /**
726
+ * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
727
+ * @summary Create the merged document
728
+ * @param {DocumentsApiMergeDocumentsRequest} requestParameters Request parameters.
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ * @memberof DocumentsApi
732
+ */
733
+ mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MergeDocumentsResponseClass, any, {}>>;
554
734
  /**
555
735
  * 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\"
556
736
  * @summary Save external document
@@ -194,6 +194,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
194
194
  });
195
195
  });
196
196
  },
197
+ /**
198
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
199
+ * @summary Create the QR bill document
200
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
201
+ * @param {string} [authorization] Bearer Token
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ createQrBillDocument: function (createQrBillDocumentRequestDto, authorization, options) {
206
+ if (options === void 0) { options = {}; }
207
+ return __awaiter(_this, void 0, void 0, function () {
208
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
211
+ case 0:
212
+ // verify required parameter 'createQrBillDocumentRequestDto' is not null or undefined
213
+ (0, common_1.assertParamExists)('createQrBillDocument', 'createQrBillDocumentRequestDto', createQrBillDocumentRequestDto);
214
+ localVarPath = "/documentservice/v1/documents/qr-bill";
215
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
216
+ if (configuration) {
217
+ baseOptions = configuration.baseOptions;
218
+ baseAccessToken = configuration.accessToken;
219
+ }
220
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
221
+ localVarHeaderParameter = {};
222
+ localVarQueryParameter = {};
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
226
+ case 1:
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
+ }
233
+ localVarHeaderParameter['Content-Type'] = 'application/json';
234
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
235
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
237
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createQrBillDocumentRequestDto, localVarRequestOptions, configuration);
238
+ return [2 /*return*/, {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ }];
242
+ }
243
+ });
244
+ });
245
+ },
197
246
  /**
198
247
  * 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\"
199
248
  * @summary Delete the document
@@ -242,6 +291,59 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
242
291
  });
243
292
  });
244
293
  },
294
+ /**
295
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
296
+ * @summary Export internal document
297
+ * @param {string} code Document code
298
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
299
+ * @param {string} [authorization] Bearer Token
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ exportDocument: function (code, exportDocumentRequestDto, authorization, options) {
304
+ if (options === void 0) { options = {}; }
305
+ return __awaiter(_this, void 0, void 0, function () {
306
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
307
+ return __generator(this, function (_a) {
308
+ switch (_a.label) {
309
+ case 0:
310
+ // verify required parameter 'code' is not null or undefined
311
+ (0, common_1.assertParamExists)('exportDocument', 'code', code);
312
+ // verify required parameter 'exportDocumentRequestDto' is not null or undefined
313
+ (0, common_1.assertParamExists)('exportDocument', 'exportDocumentRequestDto', exportDocumentRequestDto);
314
+ localVarPath = "/documentservice/v1/documents/{code}/export-document"
315
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
316
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
317
+ if (configuration) {
318
+ baseOptions = configuration.baseOptions;
319
+ baseAccessToken = configuration.accessToken;
320
+ }
321
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
322
+ localVarHeaderParameter = {};
323
+ localVarQueryParameter = {};
324
+ // authentication bearer required
325
+ // http bearer authentication required
326
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
327
+ case 1:
328
+ // authentication bearer required
329
+ // http bearer authentication required
330
+ _a.sent();
331
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
332
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
333
+ }
334
+ localVarHeaderParameter['Content-Type'] = 'application/json';
335
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
336
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
338
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(exportDocumentRequestDto, localVarRequestOptions, configuration);
339
+ return [2 /*return*/, {
340
+ url: (0, common_1.toPathString)(localVarUrlObj),
341
+ options: localVarRequestOptions,
342
+ }];
343
+ }
344
+ });
345
+ });
346
+ },
245
347
  /**
246
348
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
247
349
  * @summary Fetches a document download URL
@@ -420,6 +522,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
420
522
  });
421
523
  });
422
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
+ },
423
574
  /**
424
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\"
425
576
  * @summary Save external document
@@ -574,6 +725,27 @@ var DocumentsApiFp = function (configuration) {
574
725
  });
575
726
  });
576
727
  },
728
+ /**
729
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
730
+ * @summary Create the QR bill document
731
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
732
+ * @param {string} [authorization] Bearer Token
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ */
736
+ createQrBillDocument: function (createQrBillDocumentRequestDto, authorization, options) {
737
+ return __awaiter(this, void 0, void 0, function () {
738
+ var localVarAxiosArgs;
739
+ return __generator(this, function (_a) {
740
+ switch (_a.label) {
741
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options)];
742
+ case 1:
743
+ localVarAxiosArgs = _a.sent();
744
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
745
+ }
746
+ });
747
+ });
748
+ },
577
749
  /**
578
750
  * 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\"
579
751
  * @summary Delete the document
@@ -595,6 +767,28 @@ var DocumentsApiFp = function (configuration) {
595
767
  });
596
768
  });
597
769
  },
770
+ /**
771
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
772
+ * @summary Export internal document
773
+ * @param {string} code Document code
774
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
775
+ * @param {string} [authorization] Bearer Token
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ */
779
+ exportDocument: function (code, exportDocumentRequestDto, authorization, options) {
780
+ return __awaiter(this, void 0, void 0, function () {
781
+ var localVarAxiosArgs;
782
+ return __generator(this, function (_a) {
783
+ switch (_a.label) {
784
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportDocument(code, exportDocumentRequestDto, authorization, options)];
785
+ case 1:
786
+ localVarAxiosArgs = _a.sent();
787
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
788
+ }
789
+ });
790
+ });
791
+ },
598
792
  /**
599
793
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
600
794
  * @summary Fetches a document download URL
@@ -666,6 +860,27 @@ var DocumentsApiFp = function (configuration) {
666
860
  });
667
861
  });
668
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
+ },
669
884
  /**
670
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\"
671
886
  * @summary Save external document
@@ -741,6 +956,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
741
956
  createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
742
957
  return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
743
958
  },
959
+ /**
960
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
961
+ * @summary Create the QR bill document
962
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
963
+ * @param {string} [authorization] Bearer Token
964
+ * @param {*} [options] Override http request option.
965
+ * @throws {RequiredError}
966
+ */
967
+ createQrBillDocument: function (createQrBillDocumentRequestDto, authorization, options) {
968
+ return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
969
+ },
744
970
  /**
745
971
  * 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\"
746
972
  * @summary Delete the document
@@ -752,6 +978,18 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
752
978
  deleteDocument: function (code, authorization, options) {
753
979
  return localVarFp.deleteDocument(code, authorization, options).then(function (request) { return request(axios, basePath); });
754
980
  },
981
+ /**
982
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
983
+ * @summary Export internal document
984
+ * @param {string} code Document code
985
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
986
+ * @param {string} [authorization] Bearer Token
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ */
990
+ exportDocument: function (code, exportDocumentRequestDto, authorization, options) {
991
+ return localVarFp.exportDocument(code, exportDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
992
+ },
755
993
  /**
756
994
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
757
995
  * @summary Fetches a document download URL
@@ -793,6 +1031,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
793
1031
  listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
794
1032
  return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
795
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
+ },
796
1045
  /**
797
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\"
798
1047
  * @summary Save external document
@@ -854,6 +1103,18 @@ var DocumentsApi = /** @class */ (function (_super) {
854
1103
  var _this = this;
855
1104
  return (0, exports.DocumentsApiFp)(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
856
1105
  };
1106
+ /**
1107
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
1108
+ * @summary Create the QR bill document
1109
+ * @param {DocumentsApiCreateQrBillDocumentRequest} requestParameters Request parameters.
1110
+ * @param {*} [options] Override http request option.
1111
+ * @throws {RequiredError}
1112
+ * @memberof DocumentsApi
1113
+ */
1114
+ DocumentsApi.prototype.createQrBillDocument = function (requestParameters, options) {
1115
+ var _this = this;
1116
+ return (0, exports.DocumentsApiFp)(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1117
+ };
857
1118
  /**
858
1119
  * 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\"
859
1120
  * @summary Delete the document
@@ -866,6 +1127,18 @@ var DocumentsApi = /** @class */ (function (_super) {
866
1127
  var _this = this;
867
1128
  return (0, exports.DocumentsApiFp)(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
868
1129
  };
1130
+ /**
1131
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
1132
+ * @summary Export internal document
1133
+ * @param {DocumentsApiExportDocumentRequest} requestParameters Request parameters.
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ * @memberof DocumentsApi
1137
+ */
1138
+ DocumentsApi.prototype.exportDocument = function (requestParameters, options) {
1139
+ var _this = this;
1140
+ return (0, exports.DocumentsApiFp)(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1141
+ };
869
1142
  /**
870
1143
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
871
1144
  * @summary Fetches a document download URL
@@ -903,6 +1176,18 @@ var DocumentsApi = /** @class */ (function (_super) {
903
1176
  if (requestParameters === void 0) { requestParameters = {}; }
904
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); });
905
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
+ };
906
1191
  /**
907
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\"
908
1193
  * @summary Save external document