@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.
- package/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/api/documents-api.ts +336 -4
- package/dist/api/documents-api.d.ts +183 -4
- package/dist/api/documents-api.js +289 -4
- package/dist/models/create-qr-bill-document-request-dto.d.ts +60 -0
- package/dist/models/create-qr-bill-document-request-dto.js +20 -0
- package/dist/models/export-document-request-dto.d.ts +54 -0
- package/dist/models/export-document-request-dto.js +15 -0
- package/dist/models/export-document-response-class.d.ts +30 -0
- package/dist/models/export-document-response-class.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/merge-documents-request-dto.d.ts +30 -0
- package/dist/models/merge-documents-request-dto.js +15 -0
- package/dist/models/merge-documents-response-class.d.ts +25 -0
- package/dist/models/merge-documents-response-class.js +15 -0
- package/dist/models/qr-billing-entity-dto.d.ts +60 -0
- package/dist/models/qr-billing-entity-dto.js +15 -0
- package/models/create-qr-bill-document-request-dto.ts +69 -0
- package/models/export-document-request-dto.ts +60 -0
- package/models/export-document-response-class.ts +36 -0
- package/models/index.ts +6 -0
- package/models/merge-documents-request-dto.ts +36 -0
- package/models/merge-documents-response-class.ts +31 -0
- package/models/qr-billing-entity-dto.ts +66 -0
- package/package.json +1 -1
|
@@ -190,6 +190,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
});
|
|
192
192
|
},
|
|
193
|
+
/**
|
|
194
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
195
|
+
* @summary Create the QR bill document
|
|
196
|
+
* @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
|
|
197
|
+
* @param {string} [authorization] Bearer Token
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
createQrBillDocument: function (createQrBillDocumentRequestDto, authorization, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0:
|
|
208
|
+
// verify required parameter 'createQrBillDocumentRequestDto' is not null or undefined
|
|
209
|
+
(0, common_1.assertParamExists)('createQrBillDocument', 'createQrBillDocumentRequestDto', createQrBillDocumentRequestDto);
|
|
210
|
+
localVarPath = "/documentservice/v1/documents/qr-bill";
|
|
211
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
baseAccessToken = configuration.accessToken;
|
|
215
|
+
}
|
|
216
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
217
|
+
localVarHeaderParameter = {};
|
|
218
|
+
localVarQueryParameter = {};
|
|
219
|
+
// authentication bearer required
|
|
220
|
+
// http bearer authentication required
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
222
|
+
case 1:
|
|
223
|
+
// authentication bearer required
|
|
224
|
+
// http bearer authentication required
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
|
+
}
|
|
229
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
230
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
231
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
233
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createQrBillDocumentRequestDto, localVarRequestOptions, configuration);
|
|
234
|
+
return [2 /*return*/, {
|
|
235
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
236
|
+
options: localVarRequestOptions,
|
|
237
|
+
}];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
},
|
|
193
242
|
/**
|
|
194
243
|
* 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\"
|
|
195
244
|
* @summary Delete the document
|
|
@@ -238,6 +287,59 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
238
287
|
});
|
|
239
288
|
});
|
|
240
289
|
},
|
|
290
|
+
/**
|
|
291
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
292
|
+
* @summary Export internal document
|
|
293
|
+
* @param {string} code Document code
|
|
294
|
+
* @param {ExportDocumentRequestDto} exportDocumentRequestDto
|
|
295
|
+
* @param {string} [authorization] Bearer Token
|
|
296
|
+
* @param {*} [options] Override http request option.
|
|
297
|
+
* @throws {RequiredError}
|
|
298
|
+
*/
|
|
299
|
+
exportDocument: function (code, exportDocumentRequestDto, authorization, options) {
|
|
300
|
+
if (options === void 0) { options = {}; }
|
|
301
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
302
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
303
|
+
return __generator(this, function (_a) {
|
|
304
|
+
switch (_a.label) {
|
|
305
|
+
case 0:
|
|
306
|
+
// verify required parameter 'code' is not null or undefined
|
|
307
|
+
(0, common_1.assertParamExists)('exportDocument', 'code', code);
|
|
308
|
+
// verify required parameter 'exportDocumentRequestDto' is not null or undefined
|
|
309
|
+
(0, common_1.assertParamExists)('exportDocument', 'exportDocumentRequestDto', exportDocumentRequestDto);
|
|
310
|
+
localVarPath = "/documentservice/v1/documents/{code}/export-document"
|
|
311
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
312
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
313
|
+
if (configuration) {
|
|
314
|
+
baseOptions = configuration.baseOptions;
|
|
315
|
+
baseAccessToken = configuration.accessToken;
|
|
316
|
+
}
|
|
317
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
318
|
+
localVarHeaderParameter = {};
|
|
319
|
+
localVarQueryParameter = {};
|
|
320
|
+
// authentication bearer required
|
|
321
|
+
// http bearer authentication required
|
|
322
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
323
|
+
case 1:
|
|
324
|
+
// authentication bearer required
|
|
325
|
+
// http bearer authentication required
|
|
326
|
+
_a.sent();
|
|
327
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
328
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
329
|
+
}
|
|
330
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
331
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
332
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
334
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(exportDocumentRequestDto, localVarRequestOptions, configuration);
|
|
335
|
+
return [2 /*return*/, {
|
|
336
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
337
|
+
options: localVarRequestOptions,
|
|
338
|
+
}];
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
});
|
|
342
|
+
},
|
|
241
343
|
/**
|
|
242
344
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
243
345
|
* @summary Fetches a document download URL
|
|
@@ -417,7 +519,56 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
417
519
|
});
|
|
418
520
|
},
|
|
419
521
|
/**
|
|
420
|
-
*
|
|
522
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
523
|
+
* @summary Create the merged document
|
|
524
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
525
|
+
* @param {string} [authorization] Bearer Token
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
529
|
+
mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
|
|
530
|
+
if (options === void 0) { options = {}; }
|
|
531
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
532
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
533
|
+
return __generator(this, function (_a) {
|
|
534
|
+
switch (_a.label) {
|
|
535
|
+
case 0:
|
|
536
|
+
// verify required parameter 'mergeDocumentsRequestDto' is not null or undefined
|
|
537
|
+
(0, common_1.assertParamExists)('mergeDocuments', 'mergeDocumentsRequestDto', mergeDocumentsRequestDto);
|
|
538
|
+
localVarPath = "/documentservice/v1/documents/merge";
|
|
539
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
540
|
+
if (configuration) {
|
|
541
|
+
baseOptions = configuration.baseOptions;
|
|
542
|
+
baseAccessToken = configuration.accessToken;
|
|
543
|
+
}
|
|
544
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
545
|
+
localVarHeaderParameter = {};
|
|
546
|
+
localVarQueryParameter = {};
|
|
547
|
+
// authentication bearer required
|
|
548
|
+
// http bearer authentication required
|
|
549
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
550
|
+
case 1:
|
|
551
|
+
// authentication bearer required
|
|
552
|
+
// http bearer authentication required
|
|
553
|
+
_a.sent();
|
|
554
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
555
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
556
|
+
}
|
|
557
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
558
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
559
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
560
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
561
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mergeDocumentsRequestDto, localVarRequestOptions, configuration);
|
|
562
|
+
return [2 /*return*/, {
|
|
563
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
564
|
+
options: localVarRequestOptions,
|
|
565
|
+
}];
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
/**
|
|
571
|
+
* 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\"
|
|
421
572
|
* @summary Save external document
|
|
422
573
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
423
574
|
* @param {string} [authorization] Bearer Token
|
|
@@ -570,6 +721,27 @@ var DocumentsApiFp = function (configuration) {
|
|
|
570
721
|
});
|
|
571
722
|
});
|
|
572
723
|
},
|
|
724
|
+
/**
|
|
725
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
726
|
+
* @summary Create the QR bill document
|
|
727
|
+
* @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
|
|
728
|
+
* @param {string} [authorization] Bearer Token
|
|
729
|
+
* @param {*} [options] Override http request option.
|
|
730
|
+
* @throws {RequiredError}
|
|
731
|
+
*/
|
|
732
|
+
createQrBillDocument: function (createQrBillDocumentRequestDto, authorization, options) {
|
|
733
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
734
|
+
var localVarAxiosArgs;
|
|
735
|
+
return __generator(this, function (_a) {
|
|
736
|
+
switch (_a.label) {
|
|
737
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options)];
|
|
738
|
+
case 1:
|
|
739
|
+
localVarAxiosArgs = _a.sent();
|
|
740
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
});
|
|
744
|
+
},
|
|
573
745
|
/**
|
|
574
746
|
* 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\"
|
|
575
747
|
* @summary Delete the document
|
|
@@ -591,6 +763,28 @@ var DocumentsApiFp = function (configuration) {
|
|
|
591
763
|
});
|
|
592
764
|
});
|
|
593
765
|
},
|
|
766
|
+
/**
|
|
767
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
768
|
+
* @summary Export internal document
|
|
769
|
+
* @param {string} code Document code
|
|
770
|
+
* @param {ExportDocumentRequestDto} exportDocumentRequestDto
|
|
771
|
+
* @param {string} [authorization] Bearer Token
|
|
772
|
+
* @param {*} [options] Override http request option.
|
|
773
|
+
* @throws {RequiredError}
|
|
774
|
+
*/
|
|
775
|
+
exportDocument: function (code, exportDocumentRequestDto, authorization, options) {
|
|
776
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
777
|
+
var localVarAxiosArgs;
|
|
778
|
+
return __generator(this, function (_a) {
|
|
779
|
+
switch (_a.label) {
|
|
780
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportDocument(code, exportDocumentRequestDto, authorization, options)];
|
|
781
|
+
case 1:
|
|
782
|
+
localVarAxiosArgs = _a.sent();
|
|
783
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
});
|
|
787
|
+
},
|
|
594
788
|
/**
|
|
595
789
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
596
790
|
* @summary Fetches a document download URL
|
|
@@ -663,7 +857,28 @@ var DocumentsApiFp = function (configuration) {
|
|
|
663
857
|
});
|
|
664
858
|
},
|
|
665
859
|
/**
|
|
666
|
-
*
|
|
860
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
861
|
+
* @summary Create the merged document
|
|
862
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
863
|
+
* @param {string} [authorization] Bearer Token
|
|
864
|
+
* @param {*} [options] Override http request option.
|
|
865
|
+
* @throws {RequiredError}
|
|
866
|
+
*/
|
|
867
|
+
mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
|
|
868
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
869
|
+
var localVarAxiosArgs;
|
|
870
|
+
return __generator(this, function (_a) {
|
|
871
|
+
switch (_a.label) {
|
|
872
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.mergeDocuments(mergeDocumentsRequestDto, authorization, options)];
|
|
873
|
+
case 1:
|
|
874
|
+
localVarAxiosArgs = _a.sent();
|
|
875
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
});
|
|
879
|
+
},
|
|
880
|
+
/**
|
|
881
|
+
* 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\"
|
|
667
882
|
* @summary Save external document
|
|
668
883
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
669
884
|
* @param {string} [authorization] Bearer Token
|
|
@@ -737,6 +952,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
737
952
|
createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
738
953
|
return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
739
954
|
},
|
|
955
|
+
/**
|
|
956
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
957
|
+
* @summary Create the QR bill document
|
|
958
|
+
* @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
|
|
959
|
+
* @param {string} [authorization] Bearer Token
|
|
960
|
+
* @param {*} [options] Override http request option.
|
|
961
|
+
* @throws {RequiredError}
|
|
962
|
+
*/
|
|
963
|
+
createQrBillDocument: function (createQrBillDocumentRequestDto, authorization, options) {
|
|
964
|
+
return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
965
|
+
},
|
|
740
966
|
/**
|
|
741
967
|
* 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\"
|
|
742
968
|
* @summary Delete the document
|
|
@@ -748,6 +974,18 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
748
974
|
deleteDocument: function (code, authorization, options) {
|
|
749
975
|
return localVarFp.deleteDocument(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
750
976
|
},
|
|
977
|
+
/**
|
|
978
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
979
|
+
* @summary Export internal document
|
|
980
|
+
* @param {string} code Document code
|
|
981
|
+
* @param {ExportDocumentRequestDto} exportDocumentRequestDto
|
|
982
|
+
* @param {string} [authorization] Bearer Token
|
|
983
|
+
* @param {*} [options] Override http request option.
|
|
984
|
+
* @throws {RequiredError}
|
|
985
|
+
*/
|
|
986
|
+
exportDocument: function (code, exportDocumentRequestDto, authorization, options) {
|
|
987
|
+
return localVarFp.exportDocument(code, exportDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
988
|
+
},
|
|
751
989
|
/**
|
|
752
990
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
753
991
|
* @summary Fetches a document download URL
|
|
@@ -790,7 +1028,18 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
790
1028
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
791
1029
|
},
|
|
792
1030
|
/**
|
|
793
|
-
*
|
|
1031
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
1032
|
+
* @summary Create the merged document
|
|
1033
|
+
* @param {MergeDocumentsRequestDto} mergeDocumentsRequestDto
|
|
1034
|
+
* @param {string} [authorization] Bearer Token
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
|
|
1039
|
+
return localVarFp.mergeDocuments(mergeDocumentsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1040
|
+
},
|
|
1041
|
+
/**
|
|
1042
|
+
* 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\"
|
|
794
1043
|
* @summary Save external document
|
|
795
1044
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
796
1045
|
* @param {string} [authorization] Bearer Token
|
|
@@ -850,6 +1099,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
850
1099
|
var _this = this;
|
|
851
1100
|
return (0, exports.DocumentsApiFp)(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
852
1101
|
};
|
|
1102
|
+
/**
|
|
1103
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
1104
|
+
* @summary Create the QR bill document
|
|
1105
|
+
* @param {DocumentsApiCreateQrBillDocumentRequest} requestParameters Request parameters.
|
|
1106
|
+
* @param {*} [options] Override http request option.
|
|
1107
|
+
* @throws {RequiredError}
|
|
1108
|
+
* @memberof DocumentsApi
|
|
1109
|
+
*/
|
|
1110
|
+
DocumentsApi.prototype.createQrBillDocument = function (requestParameters, options) {
|
|
1111
|
+
var _this = this;
|
|
1112
|
+
return (0, exports.DocumentsApiFp)(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1113
|
+
};
|
|
853
1114
|
/**
|
|
854
1115
|
* 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\"
|
|
855
1116
|
* @summary Delete the document
|
|
@@ -862,6 +1123,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
862
1123
|
var _this = this;
|
|
863
1124
|
return (0, exports.DocumentsApiFp)(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
864
1125
|
};
|
|
1126
|
+
/**
|
|
1127
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
1128
|
+
* @summary Export internal document
|
|
1129
|
+
* @param {DocumentsApiExportDocumentRequest} requestParameters Request parameters.
|
|
1130
|
+
* @param {*} [options] Override http request option.
|
|
1131
|
+
* @throws {RequiredError}
|
|
1132
|
+
* @memberof DocumentsApi
|
|
1133
|
+
*/
|
|
1134
|
+
DocumentsApi.prototype.exportDocument = function (requestParameters, options) {
|
|
1135
|
+
var _this = this;
|
|
1136
|
+
return (0, exports.DocumentsApiFp)(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1137
|
+
};
|
|
865
1138
|
/**
|
|
866
1139
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
867
1140
|
* @summary Fetches a document download URL
|
|
@@ -900,7 +1173,19 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
900
1173
|
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); });
|
|
901
1174
|
};
|
|
902
1175
|
/**
|
|
903
|
-
*
|
|
1176
|
+
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
1177
|
+
* @summary Create the merged document
|
|
1178
|
+
* @param {DocumentsApiMergeDocumentsRequest} requestParameters Request parameters.
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
* @memberof DocumentsApi
|
|
1182
|
+
*/
|
|
1183
|
+
DocumentsApi.prototype.mergeDocuments = function (requestParameters, options) {
|
|
1184
|
+
var _this = this;
|
|
1185
|
+
return (0, exports.DocumentsApiFp)(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1186
|
+
};
|
|
1187
|
+
/**
|
|
1188
|
+
* 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\"
|
|
904
1189
|
* @summary Save external document
|
|
905
1190
|
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
906
1191
|
* @param {*} [options] Override http request option.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { QrBillingEntityDto } from './qr-billing-entity-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateQrBillDocumentRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateQrBillDocumentRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
* Payment amount
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CreateQrBillDocumentRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'amount': number;
|
|
25
|
+
/**
|
|
26
|
+
* Debtor information
|
|
27
|
+
* @type {QrBillingEntityDto}
|
|
28
|
+
* @memberof CreateQrBillDocumentRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'debtor': QrBillingEntityDto;
|
|
31
|
+
/**
|
|
32
|
+
* Payment message or reference
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateQrBillDocumentRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'message': string;
|
|
37
|
+
/**
|
|
38
|
+
* Creditor information
|
|
39
|
+
* @type {QrBillingEntityDto}
|
|
40
|
+
* @memberof CreateQrBillDocumentRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'creditor': QrBillingEntityDto;
|
|
43
|
+
/**
|
|
44
|
+
* Currency
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateQrBillDocumentRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'currency': CreateQrBillDocumentRequestDtoCurrencyEnum;
|
|
49
|
+
/**
|
|
50
|
+
* QR reference number
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateQrBillDocumentRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'reference': string;
|
|
55
|
+
}
|
|
56
|
+
export declare const CreateQrBillDocumentRequestDtoCurrencyEnum: {
|
|
57
|
+
readonly Chf: "CHF";
|
|
58
|
+
readonly Eur: "EUR";
|
|
59
|
+
};
|
|
60
|
+
export type CreateQrBillDocumentRequestDtoCurrencyEnum = typeof CreateQrBillDocumentRequestDtoCurrencyEnum[keyof typeof CreateQrBillDocumentRequestDtoCurrencyEnum];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateQrBillDocumentRequestDtoCurrencyEnum = void 0;
|
|
17
|
+
exports.CreateQrBillDocumentRequestDtoCurrencyEnum = {
|
|
18
|
+
Chf: 'CHF',
|
|
19
|
+
Eur: 'EUR'
|
|
20
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ExportDocumentRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ExportDocumentRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* The key to the tenant setting which holds additional request data
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ExportDocumentRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'requestConfigKey': string;
|
|
24
|
+
/**
|
|
25
|
+
* The additional url path that should be appended to the base URL found in the tenant settings
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ExportDocumentRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'relativeUrl'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The bearer token to be used to authenticate the request. Yo do not need to include text \'Bearer\'
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ExportDocumentRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'customToken': string;
|
|
36
|
+
/**
|
|
37
|
+
* The name of the key to be used to attach the file as form-data
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ExportDocumentRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'fileKey': string;
|
|
42
|
+
/**
|
|
43
|
+
* Additional form data to attach to the POST request
|
|
44
|
+
* @type {object}
|
|
45
|
+
* @memberof ExportDocumentRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'additionalFormData'?: object;
|
|
48
|
+
/**
|
|
49
|
+
* Additional headers to attach to the POST request
|
|
50
|
+
* @type {object}
|
|
51
|
+
* @memberof ExportDocumentRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'additionalHeaders'?: object;
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ExportDocumentResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface ExportDocumentResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* The status returned from the POST request
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ExportDocumentResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'status': number;
|
|
24
|
+
/**
|
|
25
|
+
* The response body returned from the POST request
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof ExportDocumentResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'body': object;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './create-layout-request-dto';
|
|
|
7
7
|
export * from './create-layout-response-class';
|
|
8
8
|
export * from './create-presigned-post-request-dto';
|
|
9
9
|
export * from './create-presigned-post-response-class';
|
|
10
|
+
export * from './create-qr-bill-document-request-dto';
|
|
10
11
|
export * from './delete-layout-request-dto';
|
|
11
12
|
export * from './delete-product-document-request-dto';
|
|
12
13
|
export * from './delete-request-dto';
|
|
@@ -15,6 +16,8 @@ export * from './doc-template-class';
|
|
|
15
16
|
export * from './document-class';
|
|
16
17
|
export * from './docx-template-class';
|
|
17
18
|
export * from './download-document-request-dto';
|
|
19
|
+
export * from './export-document-request-dto';
|
|
20
|
+
export * from './export-document-response-class';
|
|
18
21
|
export * from './get-doc-template-request-dto';
|
|
19
22
|
export * from './get-doc-template-response-class';
|
|
20
23
|
export * from './get-document-download-url-response-class';
|
|
@@ -44,7 +47,10 @@ export * from './list-searchable-document-owners-request-dto';
|
|
|
44
47
|
export * from './list-searchable-document-owners-response-class';
|
|
45
48
|
export * from './list-searchable-documents-request-dto';
|
|
46
49
|
export * from './list-searchable-documents-response-class';
|
|
50
|
+
export * from './merge-documents-request-dto';
|
|
51
|
+
export * from './merge-documents-response-class';
|
|
47
52
|
export * from './product-document-class';
|
|
53
|
+
export * from './qr-billing-entity-dto';
|
|
48
54
|
export * from './save-external-document-request-dto';
|
|
49
55
|
export * from './searchable-document-class';
|
|
50
56
|
export * from './searchable-document-owner-class';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./create-layout-request-dto"), exports);
|
|
|
23
23
|
__exportStar(require("./create-layout-response-class"), exports);
|
|
24
24
|
__exportStar(require("./create-presigned-post-request-dto"), exports);
|
|
25
25
|
__exportStar(require("./create-presigned-post-response-class"), exports);
|
|
26
|
+
__exportStar(require("./create-qr-bill-document-request-dto"), exports);
|
|
26
27
|
__exportStar(require("./delete-layout-request-dto"), exports);
|
|
27
28
|
__exportStar(require("./delete-product-document-request-dto"), exports);
|
|
28
29
|
__exportStar(require("./delete-request-dto"), exports);
|
|
@@ -31,6 +32,8 @@ __exportStar(require("./doc-template-class"), exports);
|
|
|
31
32
|
__exportStar(require("./document-class"), exports);
|
|
32
33
|
__exportStar(require("./docx-template-class"), exports);
|
|
33
34
|
__exportStar(require("./download-document-request-dto"), exports);
|
|
35
|
+
__exportStar(require("./export-document-request-dto"), exports);
|
|
36
|
+
__exportStar(require("./export-document-response-class"), exports);
|
|
34
37
|
__exportStar(require("./get-doc-template-request-dto"), exports);
|
|
35
38
|
__exportStar(require("./get-doc-template-response-class"), exports);
|
|
36
39
|
__exportStar(require("./get-document-download-url-response-class"), exports);
|
|
@@ -60,7 +63,10 @@ __exportStar(require("./list-searchable-document-owners-request-dto"), exports);
|
|
|
60
63
|
__exportStar(require("./list-searchable-document-owners-response-class"), exports);
|
|
61
64
|
__exportStar(require("./list-searchable-documents-request-dto"), exports);
|
|
62
65
|
__exportStar(require("./list-searchable-documents-response-class"), exports);
|
|
66
|
+
__exportStar(require("./merge-documents-request-dto"), exports);
|
|
67
|
+
__exportStar(require("./merge-documents-response-class"), exports);
|
|
63
68
|
__exportStar(require("./product-document-class"), exports);
|
|
69
|
+
__exportStar(require("./qr-billing-entity-dto"), exports);
|
|
64
70
|
__exportStar(require("./save-external-document-request-dto"), exports);
|
|
65
71
|
__exportStar(require("./searchable-document-class"), exports);
|
|
66
72
|
__exportStar(require("./searchable-document-owner-class"), exports);
|