@emilgroup/document-sdk-node 1.44.1-beta.9 → 1.47.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.
- package/.openapi-generator/FILES +0 -5
- package/README.md +2 -2
- package/api/documents-api.ts +0 -332
- package/api/product-documents-api.ts +41 -54
- package/dist/api/documents-api.d.ts +0 -179
- package/dist/api/documents-api.js +0 -285
- package/dist/api/product-documents-api.d.ts +33 -42
- package/dist/api/product-documents-api.js +19 -24
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/dist/models/layout-class.d.ts +0 -12
- package/models/index.ts +0 -5
- package/models/layout-class.ts +0 -12
- package/package.json +2 -2
- package/dist/models/create-qr-bill-document-request-dto.d.ts +0 -60
- package/dist/models/create-qr-bill-document-request-dto.js +0 -20
- package/dist/models/export-document-request-dto.d.ts +0 -54
- package/dist/models/export-document-request-dto.js +0 -15
- package/dist/models/export-document-response-class.d.ts +0 -30
- package/dist/models/export-document-response-class.js +0 -15
- package/dist/models/merge-documents-response-class.d.ts +0 -25
- package/dist/models/merge-documents-response-class.js +0 -15
- package/dist/models/qr-billing-entity-dto.d.ts +0 -60
- package/dist/models/qr-billing-entity-dto.js +0 -15
- package/models/create-qr-bill-document-request-dto.ts +0 -69
- package/models/export-document-request-dto.ts +0 -60
- package/models/export-document-response-class.ts +0 -36
- package/models/merge-documents-response-class.ts +0 -31
- package/models/qr-billing-entity-dto.ts +0 -66
|
@@ -194,55 +194,6 @@ 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
|
-
},
|
|
246
197
|
/**
|
|
247
198
|
* 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\"
|
|
248
199
|
* @summary Delete the document
|
|
@@ -291,59 +242,6 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
291
242
|
});
|
|
292
243
|
});
|
|
293
244
|
},
|
|
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
|
-
},
|
|
347
245
|
/**
|
|
348
246
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
349
247
|
* @summary Fetches a document download URL
|
|
@@ -522,55 +420,6 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
522
420
|
});
|
|
523
421
|
});
|
|
524
422
|
},
|
|
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
|
-
},
|
|
574
423
|
/**
|
|
575
424
|
* 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\"
|
|
576
425
|
* @summary Save external document
|
|
@@ -725,27 +574,6 @@ var DocumentsApiFp = function (configuration) {
|
|
|
725
574
|
});
|
|
726
575
|
});
|
|
727
576
|
},
|
|
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
|
-
},
|
|
749
577
|
/**
|
|
750
578
|
* 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\"
|
|
751
579
|
* @summary Delete the document
|
|
@@ -767,28 +595,6 @@ var DocumentsApiFp = function (configuration) {
|
|
|
767
595
|
});
|
|
768
596
|
});
|
|
769
597
|
},
|
|
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
|
-
},
|
|
792
598
|
/**
|
|
793
599
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
794
600
|
* @summary Fetches a document download URL
|
|
@@ -860,27 +666,6 @@ var DocumentsApiFp = function (configuration) {
|
|
|
860
666
|
});
|
|
861
667
|
});
|
|
862
668
|
},
|
|
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
|
-
},
|
|
884
669
|
/**
|
|
885
670
|
* 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\"
|
|
886
671
|
* @summary Save external document
|
|
@@ -956,17 +741,6 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
956
741
|
createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
957
742
|
return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
958
743
|
},
|
|
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
|
-
},
|
|
970
744
|
/**
|
|
971
745
|
* 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\"
|
|
972
746
|
* @summary Delete the document
|
|
@@ -978,18 +752,6 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
978
752
|
deleteDocument: function (code, authorization, options) {
|
|
979
753
|
return localVarFp.deleteDocument(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
980
754
|
},
|
|
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
|
-
},
|
|
993
755
|
/**
|
|
994
756
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
995
757
|
* @summary Fetches a document download URL
|
|
@@ -1031,17 +793,6 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
1031
793
|
listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1032
794
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1033
795
|
},
|
|
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
|
-
},
|
|
1045
796
|
/**
|
|
1046
797
|
* 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\"
|
|
1047
798
|
* @summary Save external document
|
|
@@ -1103,18 +854,6 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1103
854
|
var _this = this;
|
|
1104
855
|
return (0, exports.DocumentsApiFp)(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1105
856
|
};
|
|
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
|
-
};
|
|
1118
857
|
/**
|
|
1119
858
|
* 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\"
|
|
1120
859
|
* @summary Delete the document
|
|
@@ -1127,18 +866,6 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1127
866
|
var _this = this;
|
|
1128
867
|
return (0, exports.DocumentsApiFp)(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1129
868
|
};
|
|
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
|
-
};
|
|
1142
869
|
/**
|
|
1143
870
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
1144
871
|
* @summary Fetches a document download URL
|
|
@@ -1176,18 +903,6 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1176
903
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1177
904
|
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); });
|
|
1178
905
|
};
|
|
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
|
-
};
|
|
1191
906
|
/**
|
|
1192
907
|
* 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\"
|
|
1193
908
|
* @summary Save external document
|
|
@@ -57,7 +57,6 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
57
57
|
/**
|
|
58
58
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
|
|
59
59
|
* @summary List product documents
|
|
60
|
-
* @param {string} productSlug
|
|
61
60
|
* @param {string} [authorization] Bearer Token
|
|
62
61
|
* @param {number} [pageSize] Page size
|
|
63
62
|
* @param {string} [pageToken] Page token
|
|
@@ -69,7 +68,7 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
69
68
|
* @param {*} [options] Override http request option.
|
|
70
69
|
* @throws {RequiredError}
|
|
71
70
|
*/
|
|
72
|
-
|
|
71
|
+
listProductDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
73
72
|
/**
|
|
74
73
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
|
|
75
74
|
* @summary List product documents
|
|
@@ -85,7 +84,7 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
85
84
|
* @param {*} [options] Override http request option.
|
|
86
85
|
* @throws {RequiredError}
|
|
87
86
|
*/
|
|
88
|
-
|
|
87
|
+
listProductDocumentsByProduct: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
89
88
|
/**
|
|
90
89
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
91
90
|
* @summary Create the product document
|
|
@@ -136,7 +135,6 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
136
135
|
/**
|
|
137
136
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
|
|
138
137
|
* @summary List product documents
|
|
139
|
-
* @param {string} productSlug
|
|
140
138
|
* @param {string} [authorization] Bearer Token
|
|
141
139
|
* @param {number} [pageSize] Page size
|
|
142
140
|
* @param {string} [pageToken] Page token
|
|
@@ -148,7 +146,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
148
146
|
* @param {*} [options] Override http request option.
|
|
149
147
|
* @throws {RequiredError}
|
|
150
148
|
*/
|
|
151
|
-
|
|
149
|
+
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
152
150
|
/**
|
|
153
151
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
|
|
154
152
|
* @summary List product documents
|
|
@@ -164,7 +162,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
164
162
|
* @param {*} [options] Override http request option.
|
|
165
163
|
* @throws {RequiredError}
|
|
166
164
|
*/
|
|
167
|
-
|
|
165
|
+
listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
168
166
|
/**
|
|
169
167
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
170
168
|
* @summary Create the product document
|
|
@@ -215,7 +213,6 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
215
213
|
/**
|
|
216
214
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
|
|
217
215
|
* @summary List product documents
|
|
218
|
-
* @param {string} productSlug
|
|
219
216
|
* @param {string} [authorization] Bearer Token
|
|
220
217
|
* @param {number} [pageSize] Page size
|
|
221
218
|
* @param {string} [pageToken] Page token
|
|
@@ -227,7 +224,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
227
224
|
* @param {*} [options] Override http request option.
|
|
228
225
|
* @throws {RequiredError}
|
|
229
226
|
*/
|
|
230
|
-
|
|
227
|
+
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
231
228
|
/**
|
|
232
229
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
|
|
233
230
|
* @summary List product documents
|
|
@@ -243,7 +240,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
243
240
|
* @param {*} [options] Override http request option.
|
|
244
241
|
* @throws {RequiredError}
|
|
245
242
|
*/
|
|
246
|
-
|
|
243
|
+
listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
247
244
|
/**
|
|
248
245
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
249
246
|
* @summary Create the product document
|
|
@@ -337,124 +334,118 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
|
337
334
|
readonly authorization?: string;
|
|
338
335
|
}
|
|
339
336
|
/**
|
|
340
|
-
* Request parameters for
|
|
337
|
+
* Request parameters for listProductDocuments operation in ProductDocumentsApi.
|
|
341
338
|
* @export
|
|
342
|
-
* @interface
|
|
339
|
+
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
343
340
|
*/
|
|
344
|
-
export interface
|
|
345
|
-
/**
|
|
346
|
-
*
|
|
347
|
-
* @type {string}
|
|
348
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
349
|
-
*/
|
|
350
|
-
readonly productSlug: string;
|
|
341
|
+
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
351
342
|
/**
|
|
352
343
|
* Bearer Token
|
|
353
344
|
* @type {string}
|
|
354
|
-
* @memberof
|
|
345
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
355
346
|
*/
|
|
356
347
|
readonly authorization?: string;
|
|
357
348
|
/**
|
|
358
349
|
* Page size
|
|
359
350
|
* @type {number}
|
|
360
|
-
* @memberof
|
|
351
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
361
352
|
*/
|
|
362
353
|
readonly pageSize?: number;
|
|
363
354
|
/**
|
|
364
355
|
* Page token
|
|
365
356
|
* @type {string}
|
|
366
|
-
* @memberof
|
|
357
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
367
358
|
*/
|
|
368
359
|
readonly pageToken?: string;
|
|
369
360
|
/**
|
|
370
361
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
371
362
|
* @type {string}
|
|
372
|
-
* @memberof
|
|
363
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
373
364
|
*/
|
|
374
365
|
readonly filter?: string;
|
|
375
366
|
/**
|
|
376
367
|
* Search query
|
|
377
368
|
* @type {string}
|
|
378
|
-
* @memberof
|
|
369
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
379
370
|
*/
|
|
380
371
|
readonly search?: string;
|
|
381
372
|
/**
|
|
382
373
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
383
374
|
* @type {string}
|
|
384
|
-
* @memberof
|
|
375
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
385
376
|
*/
|
|
386
377
|
readonly order?: string;
|
|
387
378
|
/**
|
|
388
379
|
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
389
380
|
* @type {string}
|
|
390
|
-
* @memberof
|
|
381
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
391
382
|
*/
|
|
392
383
|
readonly expand?: string;
|
|
393
384
|
/**
|
|
394
385
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
395
386
|
* @type {string}
|
|
396
|
-
* @memberof
|
|
387
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
397
388
|
*/
|
|
398
389
|
readonly filters?: string;
|
|
399
390
|
}
|
|
400
391
|
/**
|
|
401
|
-
* Request parameters for
|
|
392
|
+
* Request parameters for listProductDocumentsByProduct operation in ProductDocumentsApi.
|
|
402
393
|
* @export
|
|
403
|
-
* @interface
|
|
394
|
+
* @interface ProductDocumentsApiListProductDocumentsByProductRequest
|
|
404
395
|
*/
|
|
405
|
-
export interface
|
|
396
|
+
export interface ProductDocumentsApiListProductDocumentsByProductRequest {
|
|
406
397
|
/**
|
|
407
398
|
*
|
|
408
399
|
* @type {string}
|
|
409
|
-
* @memberof
|
|
400
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
410
401
|
*/
|
|
411
402
|
readonly productSlug: string;
|
|
412
403
|
/**
|
|
413
404
|
* Bearer Token
|
|
414
405
|
* @type {string}
|
|
415
|
-
* @memberof
|
|
406
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
416
407
|
*/
|
|
417
408
|
readonly authorization?: string;
|
|
418
409
|
/**
|
|
419
410
|
* Page size
|
|
420
411
|
* @type {number}
|
|
421
|
-
* @memberof
|
|
412
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
422
413
|
*/
|
|
423
414
|
readonly pageSize?: number;
|
|
424
415
|
/**
|
|
425
416
|
* Page token
|
|
426
417
|
* @type {string}
|
|
427
|
-
* @memberof
|
|
418
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
428
419
|
*/
|
|
429
420
|
readonly pageToken?: string;
|
|
430
421
|
/**
|
|
431
422
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
432
423
|
* @type {string}
|
|
433
|
-
* @memberof
|
|
424
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
434
425
|
*/
|
|
435
426
|
readonly filter?: string;
|
|
436
427
|
/**
|
|
437
428
|
* Search query
|
|
438
429
|
* @type {string}
|
|
439
|
-
* @memberof
|
|
430
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
440
431
|
*/
|
|
441
432
|
readonly search?: string;
|
|
442
433
|
/**
|
|
443
434
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
444
435
|
* @type {string}
|
|
445
|
-
* @memberof
|
|
436
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
446
437
|
*/
|
|
447
438
|
readonly order?: string;
|
|
448
439
|
/**
|
|
449
440
|
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
450
441
|
* @type {string}
|
|
451
|
-
* @memberof
|
|
442
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
452
443
|
*/
|
|
453
444
|
readonly expand?: string;
|
|
454
445
|
/**
|
|
455
446
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
456
447
|
* @type {string}
|
|
457
|
-
* @memberof
|
|
448
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
458
449
|
*/
|
|
459
450
|
readonly filters?: string;
|
|
460
451
|
}
|
|
@@ -520,21 +511,21 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
520
511
|
/**
|
|
521
512
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
|
|
522
513
|
* @summary List product documents
|
|
523
|
-
* @param {
|
|
514
|
+
* @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
524
515
|
* @param {*} [options] Override http request option.
|
|
525
516
|
* @throws {RequiredError}
|
|
526
517
|
* @memberof ProductDocumentsApi
|
|
527
518
|
*/
|
|
528
|
-
|
|
519
|
+
listProductDocuments(requestParameters?: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
|
|
529
520
|
/**
|
|
530
521
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
|
|
531
522
|
* @summary List product documents
|
|
532
|
-
* @param {
|
|
523
|
+
* @param {ProductDocumentsApiListProductDocumentsByProductRequest} requestParameters Request parameters.
|
|
533
524
|
* @param {*} [options] Override http request option.
|
|
534
525
|
* @throws {RequiredError}
|
|
535
526
|
* @memberof ProductDocumentsApi
|
|
536
527
|
*/
|
|
537
|
-
|
|
528
|
+
listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
|
|
538
529
|
/**
|
|
539
530
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
540
531
|
* @summary Create the product document
|