@emilgroup/document-sdk 1.37.1-beta.0 → 1.37.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/documents-api.ts +105 -0
- package/api/docx-templates-api.ts +6 -20
- package/dist/api/documents-api.d.ts +56 -0
- package/dist/api/documents-api.js +93 -0
- package/dist/api/docx-templates-api.d.ts +3 -12
- package/dist/api/docx-templates-api.js +6 -12
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/save-external-document-request-dto.d.ts +93 -0
- package/dist/models/save-external-document-request-dto.js +36 -0
- package/models/index.ts +1 -0
- package/models/save-external-document-request-dto.ts +102 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -65,6 +65,7 @@ models/list-searchable-document-owners-response-class.ts
|
|
|
65
65
|
models/list-searchable-documents-request-dto.ts
|
|
66
66
|
models/list-searchable-documents-response-class.ts
|
|
67
67
|
models/product-document-class.ts
|
|
68
|
+
models/save-external-document-request-dto.ts
|
|
68
69
|
models/searchable-document-class.ts
|
|
69
70
|
models/searchable-document-owner-class.ts
|
|
70
71
|
models/shared-update-docx-template-request-dto.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.37.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk@1.37.1-beta.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk@1.37.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk@1.37.1-beta.2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -35,6 +35,8 @@ import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
import { ListDocumentsResponseClass } from '../models';
|
|
37
37
|
// @ts-ignore
|
|
38
|
+
import { SaveExternalDocumentRequestDto } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
38
40
|
import { UpdateDocumentRequestDto } from '../models';
|
|
39
41
|
// @ts-ignore
|
|
40
42
|
import { UpdateDocumentResponseClass } from '../models';
|
|
@@ -362,6 +364,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
362
364
|
options: localVarRequestOptions,
|
|
363
365
|
};
|
|
364
366
|
},
|
|
367
|
+
/**
|
|
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.
|
|
369
|
+
* @summary Save external document
|
|
370
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
371
|
+
* @param {string} [authorization] Bearer Token
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @throws {RequiredError}
|
|
374
|
+
*/
|
|
375
|
+
saveExternalDocument: async (saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
376
|
+
// verify required parameter 'saveExternalDocumentRequestDto' is not null or undefined
|
|
377
|
+
assertParamExists('saveExternalDocument', 'saveExternalDocumentRequestDto', saveExternalDocumentRequestDto)
|
|
378
|
+
const localVarPath = `/documentservice/v1/documents/save-external`;
|
|
379
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
380
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
381
|
+
let baseOptions;
|
|
382
|
+
let baseAccessToken;
|
|
383
|
+
if (configuration) {
|
|
384
|
+
baseOptions = configuration.baseOptions;
|
|
385
|
+
baseAccessToken = configuration.accessToken;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
389
|
+
const localVarHeaderParameter = {} as any;
|
|
390
|
+
const localVarQueryParameter = {} as any;
|
|
391
|
+
|
|
392
|
+
// authentication bearer required
|
|
393
|
+
// http bearer authentication required
|
|
394
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
395
|
+
|
|
396
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
397
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
403
|
+
|
|
404
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
405
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
406
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
407
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveExternalDocumentRequestDto, localVarRequestOptions, configuration)
|
|
408
|
+
|
|
409
|
+
return {
|
|
410
|
+
url: toPathString(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions,
|
|
412
|
+
};
|
|
413
|
+
},
|
|
365
414
|
/**
|
|
366
415
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
367
416
|
* @summary Update the document
|
|
@@ -503,6 +552,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
503
552
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
504
553
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
505
554
|
},
|
|
555
|
+
/**
|
|
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.
|
|
557
|
+
* @summary Save external document
|
|
558
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
559
|
+
* @param {string} [authorization] Bearer Token
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
*/
|
|
563
|
+
async saveExternalDocument(saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.saveExternalDocument(saveExternalDocumentRequestDto, authorization, options);
|
|
565
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
566
|
+
},
|
|
506
567
|
/**
|
|
507
568
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
508
569
|
* @summary Update the document
|
|
@@ -600,6 +661,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
600
661
|
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
601
662
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
602
663
|
},
|
|
664
|
+
/**
|
|
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.
|
|
666
|
+
* @summary Save external document
|
|
667
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
668
|
+
* @param {string} [authorization] Bearer Token
|
|
669
|
+
* @param {*} [options] Override http request option.
|
|
670
|
+
* @throws {RequiredError}
|
|
671
|
+
*/
|
|
672
|
+
saveExternalDocument(saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
673
|
+
return localVarFp.saveExternalDocument(saveExternalDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
674
|
+
},
|
|
603
675
|
/**
|
|
604
676
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
605
677
|
* @summary Update the document
|
|
@@ -797,6 +869,27 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
797
869
|
readonly filters?: string
|
|
798
870
|
}
|
|
799
871
|
|
|
872
|
+
/**
|
|
873
|
+
* Request parameters for saveExternalDocument operation in DocumentsApi.
|
|
874
|
+
* @export
|
|
875
|
+
* @interface DocumentsApiSaveExternalDocumentRequest
|
|
876
|
+
*/
|
|
877
|
+
export interface DocumentsApiSaveExternalDocumentRequest {
|
|
878
|
+
/**
|
|
879
|
+
*
|
|
880
|
+
* @type {SaveExternalDocumentRequestDto}
|
|
881
|
+
* @memberof DocumentsApiSaveExternalDocument
|
|
882
|
+
*/
|
|
883
|
+
readonly saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Bearer Token
|
|
887
|
+
* @type {string}
|
|
888
|
+
* @memberof DocumentsApiSaveExternalDocument
|
|
889
|
+
*/
|
|
890
|
+
readonly authorization?: string
|
|
891
|
+
}
|
|
892
|
+
|
|
800
893
|
/**
|
|
801
894
|
* Request parameters for updateDocument operation in DocumentsApi.
|
|
802
895
|
* @export
|
|
@@ -904,6 +997,18 @@ export class DocumentsApi extends BaseAPI {
|
|
|
904
997
|
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));
|
|
905
998
|
}
|
|
906
999
|
|
|
1000
|
+
/**
|
|
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.
|
|
1002
|
+
* @summary Save external document
|
|
1003
|
+
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
* @memberof DocumentsApi
|
|
1007
|
+
*/
|
|
1008
|
+
public saveExternalDocument(requestParameters: DocumentsApiSaveExternalDocumentRequest, options?: AxiosRequestConfig) {
|
|
1009
|
+
return DocumentsApiFp(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1010
|
+
}
|
|
1011
|
+
|
|
907
1012
|
/**
|
|
908
1013
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
909
1014
|
* @summary Update the document
|
|
@@ -92,11 +92,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
92
92
|
* @summary Get pre-signed url for downloading docx template
|
|
93
93
|
* @param {string} code
|
|
94
94
|
* @param {string} [authorization] Bearer Token
|
|
95
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
96
95
|
* @param {*} [options] Override http request option.
|
|
97
96
|
* @throws {RequiredError}
|
|
98
97
|
*/
|
|
99
|
-
downloadDocxTemplate: async (code: string, authorization?: string,
|
|
98
|
+
downloadDocxTemplate: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
99
|
// verify required parameter 'code' is not null or undefined
|
|
101
100
|
assertParamExists('downloadDocxTemplate', 'code', code)
|
|
102
101
|
const localVarPath = `/documentservice/v1/docx-templates/{code}/download-url`
|
|
@@ -118,10 +117,6 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
118
117
|
// http bearer authentication required
|
|
119
118
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
119
|
|
|
121
|
-
if (contentDisposition !== undefined) {
|
|
122
|
-
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
120
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
121
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
122
|
}
|
|
@@ -383,12 +378,11 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
383
378
|
* @summary Get pre-signed url for downloading docx template
|
|
384
379
|
* @param {string} code
|
|
385
380
|
* @param {string} [authorization] Bearer Token
|
|
386
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
387
381
|
* @param {*} [options] Override http request option.
|
|
388
382
|
* @throws {RequiredError}
|
|
389
383
|
*/
|
|
390
|
-
async downloadDocxTemplate(code: string, authorization?: string,
|
|
391
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization,
|
|
384
|
+
async downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>> {
|
|
385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options);
|
|
392
386
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
393
387
|
},
|
|
394
388
|
/**
|
|
@@ -472,12 +466,11 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
472
466
|
* @summary Get pre-signed url for downloading docx template
|
|
473
467
|
* @param {string} code
|
|
474
468
|
* @param {string} [authorization] Bearer Token
|
|
475
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
476
469
|
* @param {*} [options] Override http request option.
|
|
477
470
|
* @throws {RequiredError}
|
|
478
471
|
*/
|
|
479
|
-
downloadDocxTemplate(code: string, authorization?: string,
|
|
480
|
-
return localVarFp.downloadDocxTemplate(code, authorization,
|
|
472
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateDownloadUrlResponseClass> {
|
|
473
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
481
474
|
},
|
|
482
475
|
/**
|
|
483
476
|
* Get a docx template.
|
|
@@ -573,13 +566,6 @@ export interface DocxTemplatesApiDownloadDocxTemplateRequest {
|
|
|
573
566
|
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
574
567
|
*/
|
|
575
568
|
readonly authorization?: string
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Content disposition override. Default will be depending on the document type.
|
|
579
|
-
* @type {'attachment' | 'inline'}
|
|
580
|
-
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
581
|
-
*/
|
|
582
|
-
readonly contentDisposition?: 'attachment' | 'inline'
|
|
583
569
|
}
|
|
584
570
|
|
|
585
571
|
/**
|
|
@@ -743,7 +729,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
743
729
|
* @memberof DocxTemplatesApi
|
|
744
730
|
*/
|
|
745
731
|
public downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
746
|
-
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
732
|
+
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
747
733
|
}
|
|
748
734
|
|
|
749
735
|
/**
|
|
@@ -19,6 +19,7 @@ import { CreatePresignedPostResponseClass } from '../models';
|
|
|
19
19
|
import { GetDocumentDownloadUrlResponseClass } from '../models';
|
|
20
20
|
import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
21
21
|
import { ListDocumentsResponseClass } from '../models';
|
|
22
|
+
import { SaveExternalDocumentRequestDto } from '../models';
|
|
22
23
|
import { UpdateDocumentRequestDto } from '../models';
|
|
23
24
|
import { UpdateDocumentResponseClass } from '../models';
|
|
24
25
|
/**
|
|
@@ -88,6 +89,15 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
88
89
|
* @throws {RequiredError}
|
|
89
90
|
*/
|
|
90
91
|
listDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
92
|
+
/**
|
|
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.
|
|
94
|
+
* @summary Save external document
|
|
95
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
saveExternalDocument: (saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
101
|
/**
|
|
92
102
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
93
103
|
* @summary Update the document
|
|
@@ -166,6 +176,15 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
166
176
|
* @throws {RequiredError}
|
|
167
177
|
*/
|
|
168
178
|
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
|
+
/**
|
|
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.
|
|
181
|
+
* @summary Save external document
|
|
182
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
183
|
+
* @param {string} [authorization] Bearer Token
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
saveExternalDocument(saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
169
188
|
/**
|
|
170
189
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
171
190
|
* @summary Update the document
|
|
@@ -244,6 +263,15 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
244
263
|
* @throws {RequiredError}
|
|
245
264
|
*/
|
|
246
265
|
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
|
|
266
|
+
/**
|
|
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.
|
|
268
|
+
* @summary Save external document
|
|
269
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
270
|
+
* @param {string} [authorization] Bearer Token
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
saveExternalDocument(saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
|
|
247
275
|
/**
|
|
248
276
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
249
277
|
* @summary Update the document
|
|
@@ -417,6 +445,25 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
417
445
|
*/
|
|
418
446
|
readonly filters?: string;
|
|
419
447
|
}
|
|
448
|
+
/**
|
|
449
|
+
* Request parameters for saveExternalDocument operation in DocumentsApi.
|
|
450
|
+
* @export
|
|
451
|
+
* @interface DocumentsApiSaveExternalDocumentRequest
|
|
452
|
+
*/
|
|
453
|
+
export interface DocumentsApiSaveExternalDocumentRequest {
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
* @type {SaveExternalDocumentRequestDto}
|
|
457
|
+
* @memberof DocumentsApiSaveExternalDocument
|
|
458
|
+
*/
|
|
459
|
+
readonly saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto;
|
|
460
|
+
/**
|
|
461
|
+
* Bearer Token
|
|
462
|
+
* @type {string}
|
|
463
|
+
* @memberof DocumentsApiSaveExternalDocument
|
|
464
|
+
*/
|
|
465
|
+
readonly authorization?: string;
|
|
466
|
+
}
|
|
420
467
|
/**
|
|
421
468
|
* Request parameters for updateDocument operation in DocumentsApi.
|
|
422
469
|
* @export
|
|
@@ -503,6 +550,15 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
503
550
|
* @memberof DocumentsApi
|
|
504
551
|
*/
|
|
505
552
|
listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any>>;
|
|
553
|
+
/**
|
|
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.
|
|
555
|
+
* @summary Save external document
|
|
556
|
+
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
* @memberof DocumentsApi
|
|
560
|
+
*/
|
|
561
|
+
saveExternalDocument(requestParameters: DocumentsApiSaveExternalDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
506
562
|
/**
|
|
507
563
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
508
564
|
* @summary Update the document
|
|
@@ -416,6 +416,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
416
416
|
});
|
|
417
417
|
});
|
|
418
418
|
},
|
|
419
|
+
/**
|
|
420
|
+
* 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.
|
|
421
|
+
* @summary Save external document
|
|
422
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
423
|
+
* @param {string} [authorization] Bearer Token
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
|
|
428
|
+
if (options === void 0) { options = {}; }
|
|
429
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
430
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
431
|
+
return __generator(this, function (_a) {
|
|
432
|
+
switch (_a.label) {
|
|
433
|
+
case 0:
|
|
434
|
+
// verify required parameter 'saveExternalDocumentRequestDto' is not null or undefined
|
|
435
|
+
(0, common_1.assertParamExists)('saveExternalDocument', 'saveExternalDocumentRequestDto', saveExternalDocumentRequestDto);
|
|
436
|
+
localVarPath = "/documentservice/v1/documents/save-external";
|
|
437
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
438
|
+
if (configuration) {
|
|
439
|
+
baseOptions = configuration.baseOptions;
|
|
440
|
+
baseAccessToken = configuration.accessToken;
|
|
441
|
+
}
|
|
442
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
443
|
+
localVarHeaderParameter = {};
|
|
444
|
+
localVarQueryParameter = {};
|
|
445
|
+
// authentication bearer required
|
|
446
|
+
// http bearer authentication required
|
|
447
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
448
|
+
case 1:
|
|
449
|
+
// authentication bearer required
|
|
450
|
+
// http bearer authentication required
|
|
451
|
+
_a.sent();
|
|
452
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
453
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
454
|
+
}
|
|
455
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
456
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
457
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
458
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
459
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveExternalDocumentRequestDto, localVarRequestOptions, configuration);
|
|
460
|
+
return [2 /*return*/, {
|
|
461
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
462
|
+
options: localVarRequestOptions,
|
|
463
|
+
}];
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
});
|
|
467
|
+
},
|
|
419
468
|
/**
|
|
420
469
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
421
470
|
* @summary Update the document
|
|
@@ -613,6 +662,27 @@ var DocumentsApiFp = function (configuration) {
|
|
|
613
662
|
});
|
|
614
663
|
});
|
|
615
664
|
},
|
|
665
|
+
/**
|
|
666
|
+
* 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.
|
|
667
|
+
* @summary Save external document
|
|
668
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
669
|
+
* @param {string} [authorization] Bearer Token
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
*/
|
|
673
|
+
saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
675
|
+
var localVarAxiosArgs;
|
|
676
|
+
return __generator(this, function (_a) {
|
|
677
|
+
switch (_a.label) {
|
|
678
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.saveExternalDocument(saveExternalDocumentRequestDto, authorization, options)];
|
|
679
|
+
case 1:
|
|
680
|
+
localVarAxiosArgs = _a.sent();
|
|
681
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
});
|
|
685
|
+
},
|
|
616
686
|
/**
|
|
617
687
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
618
688
|
* @summary Update the document
|
|
@@ -719,6 +789,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
719
789
|
listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
720
790
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
721
791
|
},
|
|
792
|
+
/**
|
|
793
|
+
* 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.
|
|
794
|
+
* @summary Save external document
|
|
795
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
796
|
+
* @param {string} [authorization] Bearer Token
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
*/
|
|
800
|
+
saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
|
|
801
|
+
return localVarFp.saveExternalDocument(saveExternalDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
802
|
+
},
|
|
722
803
|
/**
|
|
723
804
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
724
805
|
* @summary Update the document
|
|
@@ -818,6 +899,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
818
899
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
819
900
|
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
820
901
|
};
|
|
902
|
+
/**
|
|
903
|
+
* 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.
|
|
904
|
+
* @summary Save external document
|
|
905
|
+
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
* @memberof DocumentsApi
|
|
909
|
+
*/
|
|
910
|
+
DocumentsApi.prototype.saveExternalDocument = function (requestParameters, options) {
|
|
911
|
+
var _this = this;
|
|
912
|
+
return (0, exports.DocumentsApiFp)(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
913
|
+
};
|
|
821
914
|
/**
|
|
822
915
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
823
916
|
* @summary Update the document
|
|
@@ -39,11 +39,10 @@ export declare const DocxTemplatesApiAxiosParamCreator: (configuration?: Configu
|
|
|
39
39
|
* @summary Get pre-signed url for downloading docx template
|
|
40
40
|
* @param {string} code
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
42
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
43
42
|
* @param {*} [options] Override http request option.
|
|
44
43
|
* @throws {RequiredError}
|
|
45
44
|
*/
|
|
46
|
-
downloadDocxTemplate: (code: string, authorization?: string,
|
|
45
|
+
downloadDocxTemplate: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
46
|
/**
|
|
48
47
|
* Get a docx template.
|
|
49
48
|
* @summary Retrieve the docx template
|
|
@@ -107,11 +106,10 @@ export declare const DocxTemplatesApiFp: (configuration?: Configuration) => {
|
|
|
107
106
|
* @summary Get pre-signed url for downloading docx template
|
|
108
107
|
* @param {string} code
|
|
109
108
|
* @param {string} [authorization] Bearer Token
|
|
110
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
111
109
|
* @param {*} [options] Override http request option.
|
|
112
110
|
* @throws {RequiredError}
|
|
113
111
|
*/
|
|
114
|
-
downloadDocxTemplate(code: string, authorization?: string,
|
|
112
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>>;
|
|
115
113
|
/**
|
|
116
114
|
* Get a docx template.
|
|
117
115
|
* @summary Retrieve the docx template
|
|
@@ -175,11 +173,10 @@ export declare const DocxTemplatesApiFactory: (configuration?: Configuration, ba
|
|
|
175
173
|
* @summary Get pre-signed url for downloading docx template
|
|
176
174
|
* @param {string} code
|
|
177
175
|
* @param {string} [authorization] Bearer Token
|
|
178
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
179
176
|
* @param {*} [options] Override http request option.
|
|
180
177
|
* @throws {RequiredError}
|
|
181
178
|
*/
|
|
182
|
-
downloadDocxTemplate(code: string, authorization?: string,
|
|
179
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>;
|
|
183
180
|
/**
|
|
184
181
|
* Get a docx template.
|
|
185
182
|
* @summary Retrieve the docx template
|
|
@@ -261,12 +258,6 @@ export interface DocxTemplatesApiDownloadDocxTemplateRequest {
|
|
|
261
258
|
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
262
259
|
*/
|
|
263
260
|
readonly authorization?: string;
|
|
264
|
-
/**
|
|
265
|
-
* Content disposition override. Default will be depending on the document type.
|
|
266
|
-
* @type {'attachment' | 'inline'}
|
|
267
|
-
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
268
|
-
*/
|
|
269
|
-
readonly contentDisposition?: 'attachment' | 'inline';
|
|
270
261
|
}
|
|
271
262
|
/**
|
|
272
263
|
* Request parameters for getDocxTemplate operation in DocxTemplatesApi.
|
|
@@ -145,11 +145,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
* @summary Get pre-signed url for downloading docx template
|
|
146
146
|
* @param {string} code
|
|
147
147
|
* @param {string} [authorization] Bearer Token
|
|
148
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
149
148
|
* @param {*} [options] Override http request option.
|
|
150
149
|
* @throws {RequiredError}
|
|
151
150
|
*/
|
|
152
|
-
downloadDocxTemplate: function (code, authorization,
|
|
151
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
153
152
|
if (options === void 0) { options = {}; }
|
|
154
153
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
154
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -175,9 +174,6 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
175
174
|
// authentication bearer required
|
|
176
175
|
// http bearer authentication required
|
|
177
176
|
_a.sent();
|
|
178
|
-
if (contentDisposition !== undefined) {
|
|
179
|
-
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
180
|
-
}
|
|
181
177
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
178
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
179
|
}
|
|
@@ -450,16 +446,15 @@ var DocxTemplatesApiFp = function (configuration) {
|
|
|
450
446
|
* @summary Get pre-signed url for downloading docx template
|
|
451
447
|
* @param {string} code
|
|
452
448
|
* @param {string} [authorization] Bearer Token
|
|
453
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
454
449
|
* @param {*} [options] Override http request option.
|
|
455
450
|
* @throws {RequiredError}
|
|
456
451
|
*/
|
|
457
|
-
downloadDocxTemplate: function (code, authorization,
|
|
452
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
458
453
|
return __awaiter(this, void 0, void 0, function () {
|
|
459
454
|
var localVarAxiosArgs;
|
|
460
455
|
return __generator(this, function (_a) {
|
|
461
456
|
switch (_a.label) {
|
|
462
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization,
|
|
457
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options)];
|
|
463
458
|
case 1:
|
|
464
459
|
localVarAxiosArgs = _a.sent();
|
|
465
460
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -584,12 +579,11 @@ var DocxTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
|
584
579
|
* @summary Get pre-signed url for downloading docx template
|
|
585
580
|
* @param {string} code
|
|
586
581
|
* @param {string} [authorization] Bearer Token
|
|
587
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
588
582
|
* @param {*} [options] Override http request option.
|
|
589
583
|
* @throws {RequiredError}
|
|
590
584
|
*/
|
|
591
|
-
downloadDocxTemplate: function (code, authorization,
|
|
592
|
-
return localVarFp.downloadDocxTemplate(code, authorization,
|
|
585
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
586
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
593
587
|
},
|
|
594
588
|
/**
|
|
595
589
|
* Get a docx template.
|
|
@@ -678,7 +672,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
678
672
|
*/
|
|
679
673
|
DocxTemplatesApi.prototype.downloadDocxTemplate = function (requestParameters, options) {
|
|
680
674
|
var _this = this;
|
|
681
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
675
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
682
676
|
};
|
|
683
677
|
/**
|
|
684
678
|
* Get a docx template.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from './list-searchable-document-owners-response-class';
|
|
|
45
45
|
export * from './list-searchable-documents-request-dto';
|
|
46
46
|
export * from './list-searchable-documents-response-class';
|
|
47
47
|
export * from './product-document-class';
|
|
48
|
+
export * from './save-external-document-request-dto';
|
|
48
49
|
export * from './searchable-document-class';
|
|
49
50
|
export * from './searchable-document-owner-class';
|
|
50
51
|
export * from './shared-update-docx-template-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -61,6 +61,7 @@ __exportStar(require("./list-searchable-document-owners-response-class"), export
|
|
|
61
61
|
__exportStar(require("./list-searchable-documents-request-dto"), exports);
|
|
62
62
|
__exportStar(require("./list-searchable-documents-response-class"), exports);
|
|
63
63
|
__exportStar(require("./product-document-class"), exports);
|
|
64
|
+
__exportStar(require("./save-external-document-request-dto"), exports);
|
|
64
65
|
__exportStar(require("./searchable-document-class"), exports);
|
|
65
66
|
__exportStar(require("./searchable-document-owner-class"), exports);
|
|
66
67
|
__exportStar(require("./shared-update-docx-template-request-dto"), exports);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SaveExternalDocumentRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SaveExternalDocumentRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* URL of the document to be saved.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'url': string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier referencing the entity.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'entityId': number;
|
|
30
|
+
/**
|
|
31
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'description': string;
|
|
36
|
+
/**
|
|
37
|
+
* Unique identifier of the policy that this object belongs to.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'policyCode'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier of the account that this object belongs to.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'accountCode'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier of the lead that this object belongs to.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'leadCode'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Extension of the file.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'contentType': SaveExternalDocumentRequestDtoContentTypeEnum;
|
|
60
|
+
/**
|
|
61
|
+
* Content type of the file.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'isoContentType': string;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the file the end user will see when he downloads it.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'filename': string;
|
|
72
|
+
}
|
|
73
|
+
export declare const SaveExternalDocumentRequestDtoContentTypeEnum: {
|
|
74
|
+
readonly Pdf: "pdf";
|
|
75
|
+
readonly Jpg: "jpg";
|
|
76
|
+
readonly Png: "png";
|
|
77
|
+
readonly Gz: "gz";
|
|
78
|
+
readonly Csv: "csv";
|
|
79
|
+
readonly Doc: "doc";
|
|
80
|
+
readonly Docx: "docx";
|
|
81
|
+
readonly Html: "html";
|
|
82
|
+
readonly Json: "json";
|
|
83
|
+
readonly Xml: "xml";
|
|
84
|
+
readonly Txt: "txt";
|
|
85
|
+
readonly Zip: "zip";
|
|
86
|
+
readonly Tar: "tar";
|
|
87
|
+
readonly Rar: "rar";
|
|
88
|
+
readonly Mp4: "MP4";
|
|
89
|
+
readonly Mov: "MOV";
|
|
90
|
+
readonly Wmv: "WMV";
|
|
91
|
+
readonly Avi: "AVI";
|
|
92
|
+
};
|
|
93
|
+
export type SaveExternalDocumentRequestDtoContentTypeEnum = typeof SaveExternalDocumentRequestDtoContentTypeEnum[keyof typeof SaveExternalDocumentRequestDtoContentTypeEnum];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SaveExternalDocumentRequestDtoContentTypeEnum = void 0;
|
|
17
|
+
exports.SaveExternalDocumentRequestDtoContentTypeEnum = {
|
|
18
|
+
Pdf: 'pdf',
|
|
19
|
+
Jpg: 'jpg',
|
|
20
|
+
Png: 'png',
|
|
21
|
+
Gz: 'gz',
|
|
22
|
+
Csv: 'csv',
|
|
23
|
+
Doc: 'doc',
|
|
24
|
+
Docx: 'docx',
|
|
25
|
+
Html: 'html',
|
|
26
|
+
Json: 'json',
|
|
27
|
+
Xml: 'xml',
|
|
28
|
+
Txt: 'txt',
|
|
29
|
+
Zip: 'zip',
|
|
30
|
+
Tar: 'tar',
|
|
31
|
+
Rar: 'rar',
|
|
32
|
+
Mp4: 'MP4',
|
|
33
|
+
Mov: 'MOV',
|
|
34
|
+
Wmv: 'WMV',
|
|
35
|
+
Avi: 'AVI'
|
|
36
|
+
};
|
package/models/index.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from './list-searchable-document-owners-response-class';
|
|
|
45
45
|
export * from './list-searchable-documents-request-dto';
|
|
46
46
|
export * from './list-searchable-documents-response-class';
|
|
47
47
|
export * from './product-document-class';
|
|
48
|
+
export * from './save-external-document-request-dto';
|
|
48
49
|
export * from './searchable-document-class';
|
|
49
50
|
export * from './searchable-document-owner-class';
|
|
50
51
|
export * from './shared-update-docx-template-request-dto';
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL DocumentService
|
|
5
|
+
* The EMIL DocumentService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SaveExternalDocumentRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface SaveExternalDocumentRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* URL of the document to be saved.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'url': string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier referencing the entity.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'entityId': number;
|
|
35
|
+
/**
|
|
36
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'description': string;
|
|
41
|
+
/**
|
|
42
|
+
* Unique identifier of the policy that this object belongs to.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'policyCode'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Unique identifier of the account that this object belongs to.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'accountCode'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Unique identifier of the lead that this object belongs to.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'leadCode'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Extension of the file.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'contentType': SaveExternalDocumentRequestDtoContentTypeEnum;
|
|
65
|
+
/**
|
|
66
|
+
* Content type of the file.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'isoContentType': string;
|
|
71
|
+
/**
|
|
72
|
+
* Name of the file the end user will see when he downloads it.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof SaveExternalDocumentRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'filename': string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const SaveExternalDocumentRequestDtoContentTypeEnum = {
|
|
80
|
+
Pdf: 'pdf',
|
|
81
|
+
Jpg: 'jpg',
|
|
82
|
+
Png: 'png',
|
|
83
|
+
Gz: 'gz',
|
|
84
|
+
Csv: 'csv',
|
|
85
|
+
Doc: 'doc',
|
|
86
|
+
Docx: 'docx',
|
|
87
|
+
Html: 'html',
|
|
88
|
+
Json: 'json',
|
|
89
|
+
Xml: 'xml',
|
|
90
|
+
Txt: 'txt',
|
|
91
|
+
Zip: 'zip',
|
|
92
|
+
Tar: 'tar',
|
|
93
|
+
Rar: 'rar',
|
|
94
|
+
Mp4: 'MP4',
|
|
95
|
+
Mov: 'MOV',
|
|
96
|
+
Wmv: 'WMV',
|
|
97
|
+
Avi: 'AVI'
|
|
98
|
+
} as const;
|
|
99
|
+
|
|
100
|
+
export type SaveExternalDocumentRequestDtoContentTypeEnum = typeof SaveExternalDocumentRequestDtoContentTypeEnum[keyof typeof SaveExternalDocumentRequestDtoContentTypeEnum];
|
|
101
|
+
|
|
102
|
+
|