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