@emilgroup/document-sdk 1.42.0 → 1.42.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.
@@ -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@1.42.0 --save
20
+ npm install @emilgroup/document-sdk@1.42.1-beta.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk@1.42.0
24
+ yarn add @emilgroup/document-sdk@1.42.1-beta.1
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -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';
@@ -140,6 +146,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
140
146
  options: localVarRequestOptions,
141
147
  };
142
148
  },
149
+ /**
150
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
151
+ * @summary Create the QR bill document
152
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
153
+ * @param {string} [authorization] Bearer Token
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ createQrBillDocument: async (createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
158
+ // verify required parameter 'createQrBillDocumentRequestDto' is not null or undefined
159
+ assertParamExists('createQrBillDocument', 'createQrBillDocumentRequestDto', createQrBillDocumentRequestDto)
160
+ const localVarPath = `/documentservice/v1/documents/qr-bill`;
161
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
162
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
163
+ let baseOptions;
164
+ let baseAccessToken;
165
+ if (configuration) {
166
+ baseOptions = configuration.baseOptions;
167
+ baseAccessToken = configuration.accessToken;
168
+ }
169
+
170
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
171
+ const localVarHeaderParameter = {} as any;
172
+ const localVarQueryParameter = {} as any;
173
+
174
+ // authentication bearer required
175
+ // http bearer authentication required
176
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
177
+
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+
182
+
183
+
184
+ localVarHeaderParameter['Content-Type'] = 'application/json';
185
+
186
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
187
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
189
+ localVarRequestOptions.data = serializeDataIfNeeded(createQrBillDocumentRequestDto, localVarRequestOptions, configuration)
190
+
191
+ return {
192
+ url: toPathString(localVarUrlObj),
193
+ options: localVarRequestOptions,
194
+ };
195
+ },
143
196
  /**
144
197
  * 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\"
145
198
  * @summary Delete the document
@@ -185,6 +238,57 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
185
238
  options: localVarRequestOptions,
186
239
  };
187
240
  },
241
+ /**
242
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
243
+ * @summary Export internal document
244
+ * @param {string} code Document code
245
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
246
+ * @param {string} [authorization] Bearer Token
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ exportDocument: async (code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
251
+ // verify required parameter 'code' is not null or undefined
252
+ assertParamExists('exportDocument', 'code', code)
253
+ // verify required parameter 'exportDocumentRequestDto' is not null or undefined
254
+ assertParamExists('exportDocument', 'exportDocumentRequestDto', exportDocumentRequestDto)
255
+ const localVarPath = `/documentservice/v1/documents/{code}/export-document`
256
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
257
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
258
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
259
+ let baseOptions;
260
+ let baseAccessToken;
261
+ if (configuration) {
262
+ baseOptions = configuration.baseOptions;
263
+ baseAccessToken = configuration.accessToken;
264
+ }
265
+
266
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
267
+ const localVarHeaderParameter = {} as any;
268
+ const localVarQueryParameter = {} as any;
269
+
270
+ // authentication bearer required
271
+ // http bearer authentication required
272
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
273
+
274
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
275
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
276
+ }
277
+
278
+
279
+
280
+ localVarHeaderParameter['Content-Type'] = 'application/json';
281
+
282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
285
+ localVarRequestOptions.data = serializeDataIfNeeded(exportDocumentRequestDto, localVarRequestOptions, configuration)
286
+
287
+ return {
288
+ url: toPathString(localVarUrlObj),
289
+ options: localVarRequestOptions,
290
+ };
291
+ },
188
292
  /**
189
293
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
190
294
  * @summary Fetches a document download URL
@@ -365,7 +469,7 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
365
469
  };
366
470
  },
367
471
  /**
368
- * 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\"
472
+ * 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\"
369
473
  * @summary Save external document
370
474
  * @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
371
475
  * @param {string} [authorization] Bearer Token
@@ -496,6 +600,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
496
600
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options);
497
601
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
498
602
  },
603
+ /**
604
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
605
+ * @summary Create the QR bill document
606
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
607
+ * @param {string} [authorization] Bearer Token
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
612
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options);
613
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
614
+ },
499
615
  /**
500
616
  * 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\"
501
617
  * @summary Delete the document
@@ -508,6 +624,19 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
508
624
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocument(code, authorization, options);
509
625
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
510
626
  },
627
+ /**
628
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
629
+ * @summary Export internal document
630
+ * @param {string} code Document code
631
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
632
+ * @param {string} [authorization] Bearer Token
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ */
636
+ async exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportDocumentResponseClass>> {
637
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportDocument(code, exportDocumentRequestDto, authorization, options);
638
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
639
+ },
511
640
  /**
512
641
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
513
642
  * @summary Fetches a document download URL
@@ -553,7 +682,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
553
682
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
554
683
  },
555
684
  /**
556
- * 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\"
685
+ * 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\"
557
686
  * @summary Save external document
558
687
  * @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
559
688
  * @param {string} [authorization] Bearer Token
@@ -609,6 +738,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
609
738
  createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
610
739
  return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
611
740
  },
741
+ /**
742
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
743
+ * @summary Create the QR bill document
744
+ * @param {CreateQrBillDocumentRequestDto} createQrBillDocumentRequestDto
745
+ * @param {string} [authorization] Bearer Token
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
750
+ return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
751
+ },
612
752
  /**
613
753
  * 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\"
614
754
  * @summary Delete the document
@@ -620,6 +760,18 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
620
760
  deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<object> {
621
761
  return localVarFp.deleteDocument(code, authorization, options).then((request) => request(axios, basePath));
622
762
  },
763
+ /**
764
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
765
+ * @summary Export internal document
766
+ * @param {string} code Document code
767
+ * @param {ExportDocumentRequestDto} exportDocumentRequestDto
768
+ * @param {string} [authorization] Bearer Token
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
772
+ exportDocument(code: string, exportDocumentRequestDto: ExportDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ExportDocumentResponseClass> {
773
+ return localVarFp.exportDocument(code, exportDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
774
+ },
623
775
  /**
624
776
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
625
777
  * @summary Fetches a document download URL
@@ -662,7 +814,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
662
814
  return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
663
815
  },
664
816
  /**
665
- * 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\"
817
+ * 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\"
666
818
  * @summary Save external document
667
819
  * @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
668
820
  * @param {string} [authorization] Bearer Token
@@ -729,6 +881,27 @@ export interface DocumentsApiCreatePresignedPostRequest {
729
881
  readonly authorization?: string
730
882
  }
731
883
 
884
+ /**
885
+ * Request parameters for createQrBillDocument operation in DocumentsApi.
886
+ * @export
887
+ * @interface DocumentsApiCreateQrBillDocumentRequest
888
+ */
889
+ export interface DocumentsApiCreateQrBillDocumentRequest {
890
+ /**
891
+ *
892
+ * @type {CreateQrBillDocumentRequestDto}
893
+ * @memberof DocumentsApiCreateQrBillDocument
894
+ */
895
+ readonly createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto
896
+
897
+ /**
898
+ * Bearer Token
899
+ * @type {string}
900
+ * @memberof DocumentsApiCreateQrBillDocument
901
+ */
902
+ readonly authorization?: string
903
+ }
904
+
732
905
  /**
733
906
  * Request parameters for deleteDocument operation in DocumentsApi.
734
907
  * @export
@@ -750,6 +923,34 @@ export interface DocumentsApiDeleteDocumentRequest {
750
923
  readonly authorization?: string
751
924
  }
752
925
 
926
+ /**
927
+ * Request parameters for exportDocument operation in DocumentsApi.
928
+ * @export
929
+ * @interface DocumentsApiExportDocumentRequest
930
+ */
931
+ export interface DocumentsApiExportDocumentRequest {
932
+ /**
933
+ * Document code
934
+ * @type {string}
935
+ * @memberof DocumentsApiExportDocument
936
+ */
937
+ readonly code: string
938
+
939
+ /**
940
+ *
941
+ * @type {ExportDocumentRequestDto}
942
+ * @memberof DocumentsApiExportDocument
943
+ */
944
+ readonly exportDocumentRequestDto: ExportDocumentRequestDto
945
+
946
+ /**
947
+ * Bearer Token
948
+ * @type {string}
949
+ * @memberof DocumentsApiExportDocument
950
+ */
951
+ readonly authorization?: string
952
+ }
953
+
753
954
  /**
754
955
  * Request parameters for getDocumentDownloadUrl operation in DocumentsApi.
755
956
  * @export
@@ -949,6 +1150,18 @@ export class DocumentsApi extends BaseAPI {
949
1150
  return DocumentsApiFp(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
950
1151
  }
951
1152
 
1153
+ /**
1154
+ * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
1155
+ * @summary Create the QR bill document
1156
+ * @param {DocumentsApiCreateQrBillDocumentRequest} requestParameters Request parameters.
1157
+ * @param {*} [options] Override http request option.
1158
+ * @throws {RequiredError}
1159
+ * @memberof DocumentsApi
1160
+ */
1161
+ public createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig) {
1162
+ return DocumentsApiFp(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1163
+ }
1164
+
952
1165
  /**
953
1166
  * 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\"
954
1167
  * @summary Delete the document
@@ -961,6 +1174,18 @@ export class DocumentsApi extends BaseAPI {
961
1174
  return DocumentsApiFp(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
962
1175
  }
963
1176
 
1177
+ /**
1178
+ * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
1179
+ * @summary Export internal document
1180
+ * @param {DocumentsApiExportDocumentRequest} requestParameters Request parameters.
1181
+ * @param {*} [options] Override http request option.
1182
+ * @throws {RequiredError}
1183
+ * @memberof DocumentsApi
1184
+ */
1185
+ public exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig) {
1186
+ return DocumentsApiFp(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1187
+ }
1188
+
964
1189
  /**
965
1190
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
966
1191
  * @summary Fetches a document download URL
@@ -998,7 +1223,7 @@ export class DocumentsApi extends BaseAPI {
998
1223
  }
999
1224
 
1000
1225
  /**
1001
- * 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\"
1226
+ * 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\"
1002
1227
  * @summary Save external document
1003
1228
  * @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
1004
1229
  * @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. 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\"
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. 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\"
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. 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\"
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. 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\"
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.