@emilgroup/document-sdk-node 1.41.1-beta.0 → 1.41.1-beta.1
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 +4 -0
- package/README.md +2 -2
- package/api/documents-api.ts +229 -4
- package/dist/api/documents-api.d.ts +126 -4
- package/dist/api/documents-api.js +196 -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 +4 -0
- package/dist/models/index.js +4 -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 +4 -0
- package/models/qr-billing-entity-dto.ts +66 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -26,6 +26,7 @@ models/create-layout-request-dto.ts
|
|
|
26
26
|
models/create-layout-response-class.ts
|
|
27
27
|
models/create-presigned-post-request-dto.ts
|
|
28
28
|
models/create-presigned-post-response-class.ts
|
|
29
|
+
models/create-qr-bill-document-request-dto.ts
|
|
29
30
|
models/delete-layout-request-dto.ts
|
|
30
31
|
models/delete-product-document-request-dto.ts
|
|
31
32
|
models/delete-request-dto.ts
|
|
@@ -34,6 +35,8 @@ models/doc-template-class.ts
|
|
|
34
35
|
models/document-class.ts
|
|
35
36
|
models/docx-template-class.ts
|
|
36
37
|
models/download-document-request-dto.ts
|
|
38
|
+
models/export-document-request-dto.ts
|
|
39
|
+
models/export-document-response-class.ts
|
|
37
40
|
models/get-doc-template-request-dto.ts
|
|
38
41
|
models/get-doc-template-response-class.ts
|
|
39
42
|
models/get-document-download-url-response-class.ts
|
|
@@ -65,6 +68,7 @@ models/list-searchable-document-owners-response-class.ts
|
|
|
65
68
|
models/list-searchable-documents-request-dto.ts
|
|
66
69
|
models/list-searchable-documents-response-class.ts
|
|
67
70
|
models/product-document-class.ts
|
|
71
|
+
models/qr-billing-entity-dto.ts
|
|
68
72
|
models/save-external-document-request-dto.ts
|
|
69
73
|
models/searchable-document-class.ts
|
|
70
74
|
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.41.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.41.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.41.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.41.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -29,6 +29,12 @@ import { CreatePresignedPostRequestDto } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { CreateQrBillDocumentRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ExportDocumentRequestDto } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { ExportDocumentResponseClass } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
32
38
|
import { GetDocumentDownloadUrlResponseClass } from '../models';
|
|
33
39
|
// @ts-ignore
|
|
34
40
|
import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
@@ -144,6 +150,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
144
150
|
options: localVarRequestOptions,
|
|
145
151
|
};
|
|
146
152
|
},
|
|
153
|
+
/**
|
|
154
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
155
|
+
* @summary Create the QR bill document
|
|
156
|
+
* @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
|
|
157
|
+
* @param {string} [authorization] Bearer Token
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
createQrBillDocument: async (createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
162
|
+
// verify required parameter 'createQrBillDocumentRequestDto' is not null or undefined
|
|
163
|
+
assertParamExists('createQrBillDocument', 'createQrBillDocumentRequestDto', createQrBillDocumentRequestDto)
|
|
164
|
+
const localVarPath = `/documentservice/v1/documents/qr-bill`;
|
|
165
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
166
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
167
|
+
let baseOptions;
|
|
168
|
+
let baseAccessToken;
|
|
169
|
+
if (configuration) {
|
|
170
|
+
baseOptions = configuration.baseOptions;
|
|
171
|
+
baseAccessToken = configuration.accessToken;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
175
|
+
const localVarHeaderParameter = {} as any;
|
|
176
|
+
const localVarQueryParameter = {} as any;
|
|
177
|
+
|
|
178
|
+
// authentication bearer required
|
|
179
|
+
// http bearer authentication required
|
|
180
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
181
|
+
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
189
|
+
|
|
190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
193
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createQrBillDocumentRequestDto, localVarRequestOptions, configuration)
|
|
194
|
+
|
|
195
|
+
return {
|
|
196
|
+
url: toPathString(localVarUrlObj),
|
|
197
|
+
options: localVarRequestOptions,
|
|
198
|
+
};
|
|
199
|
+
},
|
|
147
200
|
/**
|
|
148
201
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
|
|
149
202
|
* @summary Delete the document
|
|
@@ -189,6 +242,57 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
189
242
|
options: localVarRequestOptions,
|
|
190
243
|
};
|
|
191
244
|
},
|
|
245
|
+
/**
|
|
246
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
247
|
+
* @summary Export internal document
|
|
248
|
+
* @param {string} code Document code
|
|
249
|
+
* @param {ExportDocumentRequestDto} exportDocumentRequestDto
|
|
250
|
+
* @param {string} [authorization] Bearer Token
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
exportDocument: async (code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
255
|
+
// verify required parameter 'code' is not null or undefined
|
|
256
|
+
assertParamExists('exportDocument', 'code', code)
|
|
257
|
+
// verify required parameter 'exportDocumentRequestDto' is not null or undefined
|
|
258
|
+
assertParamExists('exportDocument', 'exportDocumentRequestDto', exportDocumentRequestDto)
|
|
259
|
+
const localVarPath = `/documentservice/v1/documents/{code}/export-document`
|
|
260
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
261
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
262
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
263
|
+
let baseOptions;
|
|
264
|
+
let baseAccessToken;
|
|
265
|
+
if (configuration) {
|
|
266
|
+
baseOptions = configuration.baseOptions;
|
|
267
|
+
baseAccessToken = configuration.accessToken;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
271
|
+
const localVarHeaderParameter = {} as any;
|
|
272
|
+
const localVarQueryParameter = {} as any;
|
|
273
|
+
|
|
274
|
+
// authentication bearer required
|
|
275
|
+
// http bearer authentication required
|
|
276
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
277
|
+
|
|
278
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
279
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
285
|
+
|
|
286
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
287
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
288
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
289
|
+
localVarRequestOptions.data = serializeDataIfNeeded(exportDocumentRequestDto, localVarRequestOptions, configuration)
|
|
290
|
+
|
|
291
|
+
return {
|
|
292
|
+
url: toPathString(localVarUrlObj),
|
|
293
|
+
options: localVarRequestOptions,
|
|
294
|
+
};
|
|
295
|
+
},
|
|
192
296
|
/**
|
|
193
297
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
194
298
|
* @summary Fetches a document download URL
|
|
@@ -369,7 +473,7 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
369
473
|
};
|
|
370
474
|
},
|
|
371
475
|
/**
|
|
372
|
-
* This will save an external document in the database and return it.
|
|
476
|
+
* 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\"
|
|
373
477
|
* @summary Save external document
|
|
374
478
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
375
479
|
* @param {string} [authorization] Bearer Token
|
|
@@ -500,6 +604,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
500
604
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options);
|
|
501
605
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
502
606
|
},
|
|
607
|
+
/**
|
|
608
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
609
|
+
* @summary Create the QR bill document
|
|
610
|
+
* @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
|
|
611
|
+
* @param {string} [authorization] Bearer Token
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
616
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options);
|
|
617
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
618
|
+
},
|
|
503
619
|
/**
|
|
504
620
|
* 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\"
|
|
505
621
|
* @summary Delete the document
|
|
@@ -512,6 +628,19 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
512
628
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocument(code, authorization, options);
|
|
513
629
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
514
630
|
},
|
|
631
|
+
/**
|
|
632
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
633
|
+
* @summary Export internal document
|
|
634
|
+
* @param {string} code Document code
|
|
635
|
+
* @param {ExportDocumentRequestDto} exportDocumentRequestDto
|
|
636
|
+
* @param {string} [authorization] Bearer Token
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
async exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportDocumentResponseClass>> {
|
|
641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportDocument(code, exportDocumentRequestDto, authorization, options);
|
|
642
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
643
|
+
},
|
|
515
644
|
/**
|
|
516
645
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
517
646
|
* @summary Fetches a document download URL
|
|
@@ -557,7 +686,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
557
686
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
558
687
|
},
|
|
559
688
|
/**
|
|
560
|
-
* This will save an external document in the database and return it.
|
|
689
|
+
* 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\"
|
|
561
690
|
* @summary Save external document
|
|
562
691
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
563
692
|
* @param {string} [authorization] Bearer Token
|
|
@@ -613,6 +742,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
613
742
|
createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
|
|
614
743
|
return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
615
744
|
},
|
|
745
|
+
/**
|
|
746
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
747
|
+
* @summary Create the QR bill document
|
|
748
|
+
* @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
|
|
749
|
+
* @param {string} [authorization] Bearer Token
|
|
750
|
+
* @param {*} [options] Override http request option.
|
|
751
|
+
* @throws {RequiredError}
|
|
752
|
+
*/
|
|
753
|
+
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
754
|
+
return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
755
|
+
},
|
|
616
756
|
/**
|
|
617
757
|
* 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\"
|
|
618
758
|
* @summary Delete the document
|
|
@@ -624,6 +764,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
624
764
|
deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
625
765
|
return localVarFp.deleteDocument(code, authorization, options).then((request) => request(axios, basePath));
|
|
626
766
|
},
|
|
767
|
+
/**
|
|
768
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
769
|
+
* @summary Export internal document
|
|
770
|
+
* @param {string} code Document code
|
|
771
|
+
* @param {ExportDocumentRequestDto} exportDocumentRequestDto
|
|
772
|
+
* @param {string} [authorization] Bearer Token
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ExportDocumentResponseClass> {
|
|
777
|
+
return localVarFp.exportDocument(code, exportDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
778
|
+
},
|
|
627
779
|
/**
|
|
628
780
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
629
781
|
* @summary Fetches a document download URL
|
|
@@ -666,7 +818,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
666
818
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
667
819
|
},
|
|
668
820
|
/**
|
|
669
|
-
* This will save an external document in the database and return it.
|
|
821
|
+
* 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\"
|
|
670
822
|
* @summary Save external document
|
|
671
823
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
672
824
|
* @param {string} [authorization] Bearer Token
|
|
@@ -733,6 +885,27 @@ export interface DocumentsApiCreatePresignedPostRequest {
|
|
|
733
885
|
readonly authorization?: string
|
|
734
886
|
}
|
|
735
887
|
|
|
888
|
+
/**
|
|
889
|
+
* Request parameters for createQrBillDocument operation in DocumentsApi.
|
|
890
|
+
* @export
|
|
891
|
+
* @interface DocumentsApiCreateQrBillDocumentRequest
|
|
892
|
+
*/
|
|
893
|
+
export interface DocumentsApiCreateQrBillDocumentRequest {
|
|
894
|
+
/**
|
|
895
|
+
*
|
|
896
|
+
* @type {CreateQrBillDocumentRequestDto}
|
|
897
|
+
* @memberof DocumentsApiCreateQrBillDocument
|
|
898
|
+
*/
|
|
899
|
+
readonly createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Bearer Token
|
|
903
|
+
* @type {string}
|
|
904
|
+
* @memberof DocumentsApiCreateQrBillDocument
|
|
905
|
+
*/
|
|
906
|
+
readonly authorization?: string
|
|
907
|
+
}
|
|
908
|
+
|
|
736
909
|
/**
|
|
737
910
|
* Request parameters for deleteDocument operation in DocumentsApi.
|
|
738
911
|
* @export
|
|
@@ -754,6 +927,34 @@ export interface DocumentsApiDeleteDocumentRequest {
|
|
|
754
927
|
readonly authorization?: string
|
|
755
928
|
}
|
|
756
929
|
|
|
930
|
+
/**
|
|
931
|
+
* Request parameters for exportDocument operation in DocumentsApi.
|
|
932
|
+
* @export
|
|
933
|
+
* @interface DocumentsApiExportDocumentRequest
|
|
934
|
+
*/
|
|
935
|
+
export interface DocumentsApiExportDocumentRequest {
|
|
936
|
+
/**
|
|
937
|
+
* Document code
|
|
938
|
+
* @type {string}
|
|
939
|
+
* @memberof DocumentsApiExportDocument
|
|
940
|
+
*/
|
|
941
|
+
readonly code: string
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
*
|
|
945
|
+
* @type {ExportDocumentRequestDto}
|
|
946
|
+
* @memberof DocumentsApiExportDocument
|
|
947
|
+
*/
|
|
948
|
+
readonly exportDocumentRequestDto: ExportDocumentRequestDto
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Bearer Token
|
|
952
|
+
* @type {string}
|
|
953
|
+
* @memberof DocumentsApiExportDocument
|
|
954
|
+
*/
|
|
955
|
+
readonly authorization?: string
|
|
956
|
+
}
|
|
957
|
+
|
|
757
958
|
/**
|
|
758
959
|
* Request parameters for getDocumentDownloadUrl operation in DocumentsApi.
|
|
759
960
|
* @export
|
|
@@ -953,6 +1154,18 @@ export class DocumentsApi extends BaseAPI {
|
|
|
953
1154
|
return DocumentsApiFp(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
954
1155
|
}
|
|
955
1156
|
|
|
1157
|
+
/**
|
|
1158
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
1159
|
+
* @summary Create the QR bill document
|
|
1160
|
+
* @param {DocumentsApiCreateQrBillDocumentRequest} requestParameters Request parameters.
|
|
1161
|
+
* @param {*} [options] Override http request option.
|
|
1162
|
+
* @throws {RequiredError}
|
|
1163
|
+
* @memberof DocumentsApi
|
|
1164
|
+
*/
|
|
1165
|
+
public createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig) {
|
|
1166
|
+
return DocumentsApiFp(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1167
|
+
}
|
|
1168
|
+
|
|
956
1169
|
/**
|
|
957
1170
|
* 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\"
|
|
958
1171
|
* @summary Delete the document
|
|
@@ -965,6 +1178,18 @@ export class DocumentsApi extends BaseAPI {
|
|
|
965
1178
|
return DocumentsApiFp(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
966
1179
|
}
|
|
967
1180
|
|
|
1181
|
+
/**
|
|
1182
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
1183
|
+
* @summary Export internal document
|
|
1184
|
+
* @param {DocumentsApiExportDocumentRequest} requestParameters Request parameters.
|
|
1185
|
+
* @param {*} [options] Override http request option.
|
|
1186
|
+
* @throws {RequiredError}
|
|
1187
|
+
* @memberof DocumentsApi
|
|
1188
|
+
*/
|
|
1189
|
+
public exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig) {
|
|
1190
|
+
return DocumentsApiFp(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1191
|
+
}
|
|
1192
|
+
|
|
968
1193
|
/**
|
|
969
1194
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
970
1195
|
* @summary Fetches a document download URL
|
|
@@ -1002,7 +1227,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1002
1227
|
}
|
|
1003
1228
|
|
|
1004
1229
|
/**
|
|
1005
|
-
* This will save an external document in the database and return it.
|
|
1230
|
+
* 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\"
|
|
1006
1231
|
* @summary Save external document
|
|
1007
1232
|
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
1008
1233
|
* @param {*} [options] Override http request option.
|
|
@@ -16,6 +16,9 @@ import { CreateDocumentRequestDto } from '../models';
|
|
|
16
16
|
import { CreateDocumentSyncResponseClass } from '../models';
|
|
17
17
|
import { CreatePresignedPostRequestDto } from '../models';
|
|
18
18
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
19
|
+
import { CreateQrBillDocumentRequestDto } from '../models';
|
|
20
|
+
import { ExportDocumentRequestDto } from '../models';
|
|
21
|
+
import { ExportDocumentResponseClass } from '../models';
|
|
19
22
|
import { GetDocumentDownloadUrlResponseClass } from '../models';
|
|
20
23
|
import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
21
24
|
import { ListDocumentsResponseClass } from '../models';
|
|
@@ -45,6 +48,15 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
45
48
|
* @throws {RequiredError}
|
|
46
49
|
*/
|
|
47
50
|
createPresignedPost: (createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
|
+
/**
|
|
52
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
53
|
+
* @summary Create the QR bill document
|
|
54
|
+
* @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
|
|
55
|
+
* @param {string} [authorization] Bearer Token
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
createQrBillDocument: (createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
60
|
/**
|
|
49
61
|
* 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\"
|
|
50
62
|
* @summary Delete the document
|
|
@@ -54,6 +66,16 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
54
66
|
* @throws {RequiredError}
|
|
55
67
|
*/
|
|
56
68
|
deleteDocument: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
|
+
/**
|
|
70
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
71
|
+
* @summary Export internal document
|
|
72
|
+
* @param {string} code Document code
|
|
73
|
+
* @param {ExportDocumentRequestDto} exportDocumentRequestDto
|
|
74
|
+
* @param {string} [authorization] Bearer Token
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
exportDocument: (code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
79
|
/**
|
|
58
80
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
59
81
|
* @summary Fetches a document download URL
|
|
@@ -90,7 +112,7 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
90
112
|
*/
|
|
91
113
|
listDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
92
114
|
/**
|
|
93
|
-
* This will save an external document in the database and return it.
|
|
115
|
+
* 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\"
|
|
94
116
|
* @summary Save external document
|
|
95
117
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
96
118
|
* @param {string} [authorization] Bearer Token
|
|
@@ -132,6 +154,15 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
132
154
|
* @throws {RequiredError}
|
|
133
155
|
*/
|
|
134
156
|
createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
157
|
+
/**
|
|
158
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
159
|
+
* @summary Create the QR bill document
|
|
160
|
+
* @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
|
|
161
|
+
* @param {string} [authorization] Bearer Token
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
135
166
|
/**
|
|
136
167
|
* 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\"
|
|
137
168
|
* @summary Delete the document
|
|
@@ -141,6 +172,16 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
141
172
|
* @throws {RequiredError}
|
|
142
173
|
*/
|
|
143
174
|
deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
175
|
+
/**
|
|
176
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
177
|
+
* @summary Export internal document
|
|
178
|
+
* @param {string} code Document code
|
|
179
|
+
* @param {ExportDocumentRequestDto} exportDocumentRequestDto
|
|
180
|
+
* @param {string} [authorization] Bearer Token
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportDocumentResponseClass>>;
|
|
144
185
|
/**
|
|
145
186
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
146
187
|
* @summary Fetches a document download URL
|
|
@@ -177,7 +218,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
177
218
|
*/
|
|
178
219
|
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>>;
|
|
179
220
|
/**
|
|
180
|
-
* This will save an external document in the database and return it.
|
|
221
|
+
* 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\"
|
|
181
222
|
* @summary Save external document
|
|
182
223
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
183
224
|
* @param {string} [authorization] Bearer Token
|
|
@@ -219,6 +260,15 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
219
260
|
* @throws {RequiredError}
|
|
220
261
|
*/
|
|
221
262
|
createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
263
|
+
/**
|
|
264
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
265
|
+
* @summary Create the QR bill document
|
|
266
|
+
* @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
|
|
267
|
+
* @param {string} [authorization] Bearer Token
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
|
|
222
272
|
/**
|
|
223
273
|
* 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\"
|
|
224
274
|
* @summary Delete the document
|
|
@@ -228,6 +278,16 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
228
278
|
* @throws {RequiredError}
|
|
229
279
|
*/
|
|
230
280
|
deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
281
|
+
/**
|
|
282
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
283
|
+
* @summary Export internal document
|
|
284
|
+
* @param {string} code Document code
|
|
285
|
+
* @param {ExportDocumentRequestDto} exportDocumentRequestDto
|
|
286
|
+
* @param {string} [authorization] Bearer Token
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ExportDocumentResponseClass>;
|
|
231
291
|
/**
|
|
232
292
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
233
293
|
* @summary Fetches a document download URL
|
|
@@ -264,7 +324,7 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
264
324
|
*/
|
|
265
325
|
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
|
|
266
326
|
/**
|
|
267
|
-
* This will save an external document in the database and return it.
|
|
327
|
+
* 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\"
|
|
268
328
|
* @summary Save external document
|
|
269
329
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
270
330
|
* @param {string} [authorization] Bearer Token
|
|
@@ -321,6 +381,25 @@ export interface DocumentsApiCreatePresignedPostRequest {
|
|
|
321
381
|
*/
|
|
322
382
|
readonly authorization?: string;
|
|
323
383
|
}
|
|
384
|
+
/**
|
|
385
|
+
* Request parameters for createQrBillDocument operation in DocumentsApi.
|
|
386
|
+
* @export
|
|
387
|
+
* @interface DocumentsApiCreateQrBillDocumentRequest
|
|
388
|
+
*/
|
|
389
|
+
export interface DocumentsApiCreateQrBillDocumentRequest {
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {CreateQrBillDocumentRequestDto}
|
|
393
|
+
* @memberof DocumentsApiCreateQrBillDocument
|
|
394
|
+
*/
|
|
395
|
+
readonly createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto;
|
|
396
|
+
/**
|
|
397
|
+
* Bearer Token
|
|
398
|
+
* @type {string}
|
|
399
|
+
* @memberof DocumentsApiCreateQrBillDocument
|
|
400
|
+
*/
|
|
401
|
+
readonly authorization?: string;
|
|
402
|
+
}
|
|
324
403
|
/**
|
|
325
404
|
* Request parameters for deleteDocument operation in DocumentsApi.
|
|
326
405
|
* @export
|
|
@@ -340,6 +419,31 @@ export interface DocumentsApiDeleteDocumentRequest {
|
|
|
340
419
|
*/
|
|
341
420
|
readonly authorization?: string;
|
|
342
421
|
}
|
|
422
|
+
/**
|
|
423
|
+
* Request parameters for exportDocument operation in DocumentsApi.
|
|
424
|
+
* @export
|
|
425
|
+
* @interface DocumentsApiExportDocumentRequest
|
|
426
|
+
*/
|
|
427
|
+
export interface DocumentsApiExportDocumentRequest {
|
|
428
|
+
/**
|
|
429
|
+
* Document code
|
|
430
|
+
* @type {string}
|
|
431
|
+
* @memberof DocumentsApiExportDocument
|
|
432
|
+
*/
|
|
433
|
+
readonly code: string;
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @type {ExportDocumentRequestDto}
|
|
437
|
+
* @memberof DocumentsApiExportDocument
|
|
438
|
+
*/
|
|
439
|
+
readonly exportDocumentRequestDto: ExportDocumentRequestDto;
|
|
440
|
+
/**
|
|
441
|
+
* Bearer Token
|
|
442
|
+
* @type {string}
|
|
443
|
+
* @memberof DocumentsApiExportDocument
|
|
444
|
+
*/
|
|
445
|
+
readonly authorization?: string;
|
|
446
|
+
}
|
|
343
447
|
/**
|
|
344
448
|
* Request parameters for getDocumentDownloadUrl operation in DocumentsApi.
|
|
345
449
|
* @export
|
|
@@ -514,6 +618,15 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
514
618
|
* @memberof DocumentsApi
|
|
515
619
|
*/
|
|
516
620
|
createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
|
|
621
|
+
/**
|
|
622
|
+
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
623
|
+
* @summary Create the QR bill document
|
|
624
|
+
* @param {DocumentsApiCreateQrBillDocumentRequest} requestParameters Request parameters.
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
* @memberof DocumentsApi
|
|
628
|
+
*/
|
|
629
|
+
createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
517
630
|
/**
|
|
518
631
|
* 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\"
|
|
519
632
|
* @summary Delete the document
|
|
@@ -523,6 +636,15 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
523
636
|
* @memberof DocumentsApi
|
|
524
637
|
*/
|
|
525
638
|
deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
639
|
+
/**
|
|
640
|
+
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
641
|
+
* @summary Export internal document
|
|
642
|
+
* @param {DocumentsApiExportDocumentRequest} requestParameters Request parameters.
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
* @memberof DocumentsApi
|
|
646
|
+
*/
|
|
647
|
+
exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportDocumentResponseClass, any, {}>>;
|
|
526
648
|
/**
|
|
527
649
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
528
650
|
* @summary Fetches a document download URL
|
|
@@ -551,7 +673,7 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
551
673
|
*/
|
|
552
674
|
listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}>>;
|
|
553
675
|
/**
|
|
554
|
-
* This will save an external document in the database and return it.
|
|
676
|
+
* 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\"
|
|
555
677
|
* @summary Save external document
|
|
556
678
|
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
557
679
|
* @param {*} [options] Override http request option.
|