@emilgroup/document-sdk-node 1.36.1-beta.0 → 1.36.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-node@1.36.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.36.1-beta.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.36.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.36.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';
|
|
@@ -366,6 +368,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
366
368
|
options: localVarRequestOptions,
|
|
367
369
|
};
|
|
368
370
|
},
|
|
371
|
+
/**
|
|
372
|
+
* 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.
|
|
373
|
+
* @summary Save external document
|
|
374
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
375
|
+
* @param {string} [authorization] Bearer Token
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
*/
|
|
379
|
+
saveExternalDocument: async (saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
380
|
+
// verify required parameter 'saveExternalDocumentRequestDto' is not null or undefined
|
|
381
|
+
assertParamExists('saveExternalDocument', 'saveExternalDocumentRequestDto', saveExternalDocumentRequestDto)
|
|
382
|
+
const localVarPath = `/documentservice/v1/documents/save-external`;
|
|
383
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
384
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
385
|
+
let baseOptions;
|
|
386
|
+
let baseAccessToken;
|
|
387
|
+
if (configuration) {
|
|
388
|
+
baseOptions = configuration.baseOptions;
|
|
389
|
+
baseAccessToken = configuration.accessToken;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
393
|
+
const localVarHeaderParameter = {} as any;
|
|
394
|
+
const localVarQueryParameter = {} as any;
|
|
395
|
+
|
|
396
|
+
// authentication bearer required
|
|
397
|
+
// http bearer authentication required
|
|
398
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
399
|
+
|
|
400
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
401
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
407
|
+
|
|
408
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
409
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
410
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
411
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveExternalDocumentRequestDto, localVarRequestOptions, configuration)
|
|
412
|
+
|
|
413
|
+
return {
|
|
414
|
+
url: toPathString(localVarUrlObj),
|
|
415
|
+
options: localVarRequestOptions,
|
|
416
|
+
};
|
|
417
|
+
},
|
|
369
418
|
/**
|
|
370
419
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
371
420
|
* @summary Update the document
|
|
@@ -507,6 +556,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
507
556
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
508
557
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
509
558
|
},
|
|
559
|
+
/**
|
|
560
|
+
* 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.
|
|
561
|
+
* @summary Save external document
|
|
562
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
563
|
+
* @param {string} [authorization] Bearer Token
|
|
564
|
+
* @param {*} [options] Override http request option.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
*/
|
|
567
|
+
async saveExternalDocument(saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
568
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.saveExternalDocument(saveExternalDocumentRequestDto, authorization, options);
|
|
569
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
570
|
+
},
|
|
510
571
|
/**
|
|
511
572
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
512
573
|
* @summary Update the document
|
|
@@ -604,6 +665,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
604
665
|
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
605
666
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
606
667
|
},
|
|
668
|
+
/**
|
|
669
|
+
* 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.
|
|
670
|
+
* @summary Save external document
|
|
671
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
672
|
+
* @param {string} [authorization] Bearer Token
|
|
673
|
+
* @param {*} [options] Override http request option.
|
|
674
|
+
* @throws {RequiredError}
|
|
675
|
+
*/
|
|
676
|
+
saveExternalDocument(saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
677
|
+
return localVarFp.saveExternalDocument(saveExternalDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
678
|
+
},
|
|
607
679
|
/**
|
|
608
680
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
609
681
|
* @summary Update the document
|
|
@@ -801,6 +873,27 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
801
873
|
readonly filters?: string
|
|
802
874
|
}
|
|
803
875
|
|
|
876
|
+
/**
|
|
877
|
+
* Request parameters for saveExternalDocument operation in DocumentsApi.
|
|
878
|
+
* @export
|
|
879
|
+
* @interface DocumentsApiSaveExternalDocumentRequest
|
|
880
|
+
*/
|
|
881
|
+
export interface DocumentsApiSaveExternalDocumentRequest {
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @type {SaveExternalDocumentRequestDto}
|
|
885
|
+
* @memberof DocumentsApiSaveExternalDocument
|
|
886
|
+
*/
|
|
887
|
+
readonly saveExternalDocumentRequestDto: SaveExternalDocumentRequestDto
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Bearer Token
|
|
891
|
+
* @type {string}
|
|
892
|
+
* @memberof DocumentsApiSaveExternalDocument
|
|
893
|
+
*/
|
|
894
|
+
readonly authorization?: string
|
|
895
|
+
}
|
|
896
|
+
|
|
804
897
|
/**
|
|
805
898
|
* Request parameters for updateDocument operation in DocumentsApi.
|
|
806
899
|
* @export
|
|
@@ -908,6 +1001,18 @@ export class DocumentsApi extends BaseAPI {
|
|
|
908
1001
|
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));
|
|
909
1002
|
}
|
|
910
1003
|
|
|
1004
|
+
/**
|
|
1005
|
+
* 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.
|
|
1006
|
+
* @summary Save external document
|
|
1007
|
+
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
1008
|
+
* @param {*} [options] Override http request option.
|
|
1009
|
+
* @throws {RequiredError}
|
|
1010
|
+
* @memberof DocumentsApi
|
|
1011
|
+
*/
|
|
1012
|
+
public saveExternalDocument(requestParameters: DocumentsApiSaveExternalDocumentRequest, options?: AxiosRequestConfig) {
|
|
1013
|
+
return DocumentsApiFp(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1014
|
+
}
|
|
1015
|
+
|
|
911
1016
|
/**
|
|
912
1017
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
913
1018
|
* @summary Update the document
|
|
@@ -96,11 +96,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
96
96
|
* @summary Get pre-signed url for downloading docx template
|
|
97
97
|
* @param {string} code
|
|
98
98
|
* @param {string} [authorization] Bearer Token
|
|
99
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
100
99
|
* @param {*} [options] Override http request option.
|
|
101
100
|
* @throws {RequiredError}
|
|
102
101
|
*/
|
|
103
|
-
downloadDocxTemplate: async (code: string, authorization?: string,
|
|
102
|
+
downloadDocxTemplate: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
104
103
|
// verify required parameter 'code' is not null or undefined
|
|
105
104
|
assertParamExists('downloadDocxTemplate', 'code', code)
|
|
106
105
|
const localVarPath = `/documentservice/v1/docx-templates/{code}/download-url`
|
|
@@ -122,10 +121,6 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
122
121
|
// http bearer authentication required
|
|
123
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
123
|
|
|
125
|
-
if (contentDisposition !== undefined) {
|
|
126
|
-
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
124
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
125
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
126
|
}
|
|
@@ -387,12 +382,11 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
387
382
|
* @summary Get pre-signed url for downloading docx template
|
|
388
383
|
* @param {string} code
|
|
389
384
|
* @param {string} [authorization] Bearer Token
|
|
390
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
391
385
|
* @param {*} [options] Override http request option.
|
|
392
386
|
* @throws {RequiredError}
|
|
393
387
|
*/
|
|
394
|
-
async downloadDocxTemplate(code: string, authorization?: string,
|
|
395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization,
|
|
388
|
+
async downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>> {
|
|
389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options);
|
|
396
390
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
397
391
|
},
|
|
398
392
|
/**
|
|
@@ -476,12 +470,11 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
476
470
|
* @summary Get pre-signed url for downloading docx template
|
|
477
471
|
* @param {string} code
|
|
478
472
|
* @param {string} [authorization] Bearer Token
|
|
479
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
480
473
|
* @param {*} [options] Override http request option.
|
|
481
474
|
* @throws {RequiredError}
|
|
482
475
|
*/
|
|
483
|
-
downloadDocxTemplate(code: string, authorization?: string,
|
|
484
|
-
return localVarFp.downloadDocxTemplate(code, authorization,
|
|
476
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateDownloadUrlResponseClass> {
|
|
477
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
485
478
|
},
|
|
486
479
|
/**
|
|
487
480
|
* Get a docx template.
|
|
@@ -577,13 +570,6 @@ export interface DocxTemplatesApiDownloadDocxTemplateRequest {
|
|
|
577
570
|
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
578
571
|
*/
|
|
579
572
|
readonly authorization?: string
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* Content disposition override. Default will be depending on the document type.
|
|
583
|
-
* @type {'attachment' | 'inline'}
|
|
584
|
-
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
585
|
-
*/
|
|
586
|
-
readonly contentDisposition?: 'attachment' | 'inline'
|
|
587
573
|
}
|
|
588
574
|
|
|
589
575
|
/**
|
|
@@ -747,7 +733,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
747
733
|
* @memberof DocxTemplatesApi
|
|
748
734
|
*/
|
|
749
735
|
public downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
750
|
-
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
736
|
+
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
751
737
|
}
|
|
752
738
|
|
|
753
739
|
/**
|
|
@@ -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
|
|
@@ -420,6 +420,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
420
420
|
});
|
|
421
421
|
});
|
|
422
422
|
},
|
|
423
|
+
/**
|
|
424
|
+
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client.
|
|
425
|
+
* @summary Save external document
|
|
426
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
427
|
+
* @param {string} [authorization] Bearer Token
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
*/
|
|
431
|
+
saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
|
|
432
|
+
if (options === void 0) { options = {}; }
|
|
433
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
434
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
435
|
+
return __generator(this, function (_a) {
|
|
436
|
+
switch (_a.label) {
|
|
437
|
+
case 0:
|
|
438
|
+
// verify required parameter 'saveExternalDocumentRequestDto' is not null or undefined
|
|
439
|
+
(0, common_1.assertParamExists)('saveExternalDocument', 'saveExternalDocumentRequestDto', saveExternalDocumentRequestDto);
|
|
440
|
+
localVarPath = "/documentservice/v1/documents/save-external";
|
|
441
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
442
|
+
if (configuration) {
|
|
443
|
+
baseOptions = configuration.baseOptions;
|
|
444
|
+
baseAccessToken = configuration.accessToken;
|
|
445
|
+
}
|
|
446
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
447
|
+
localVarHeaderParameter = {};
|
|
448
|
+
localVarQueryParameter = {};
|
|
449
|
+
// authentication bearer required
|
|
450
|
+
// http bearer authentication required
|
|
451
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
452
|
+
case 1:
|
|
453
|
+
// authentication bearer required
|
|
454
|
+
// http bearer authentication required
|
|
455
|
+
_a.sent();
|
|
456
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
457
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
458
|
+
}
|
|
459
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
460
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
461
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
462
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
463
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveExternalDocumentRequestDto, localVarRequestOptions, configuration);
|
|
464
|
+
return [2 /*return*/, {
|
|
465
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
466
|
+
options: localVarRequestOptions,
|
|
467
|
+
}];
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
},
|
|
423
472
|
/**
|
|
424
473
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
425
474
|
* @summary Update the document
|
|
@@ -617,6 +666,27 @@ var DocumentsApiFp = function (configuration) {
|
|
|
617
666
|
});
|
|
618
667
|
});
|
|
619
668
|
},
|
|
669
|
+
/**
|
|
670
|
+
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client.
|
|
671
|
+
* @summary Save external document
|
|
672
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
673
|
+
* @param {string} [authorization] Bearer Token
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
*/
|
|
677
|
+
saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
|
|
678
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
679
|
+
var localVarAxiosArgs;
|
|
680
|
+
return __generator(this, function (_a) {
|
|
681
|
+
switch (_a.label) {
|
|
682
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.saveExternalDocument(saveExternalDocumentRequestDto, authorization, options)];
|
|
683
|
+
case 1:
|
|
684
|
+
localVarAxiosArgs = _a.sent();
|
|
685
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
});
|
|
689
|
+
},
|
|
620
690
|
/**
|
|
621
691
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
622
692
|
* @summary Update the document
|
|
@@ -723,6 +793,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
723
793
|
listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
724
794
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
725
795
|
},
|
|
796
|
+
/**
|
|
797
|
+
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client.
|
|
798
|
+
* @summary Save external document
|
|
799
|
+
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
800
|
+
* @param {string} [authorization] Bearer Token
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
*/
|
|
804
|
+
saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
|
|
805
|
+
return localVarFp.saveExternalDocument(saveExternalDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
806
|
+
},
|
|
726
807
|
/**
|
|
727
808
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
728
809
|
* @summary Update the document
|
|
@@ -822,6 +903,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
822
903
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
823
904
|
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
824
905
|
};
|
|
906
|
+
/**
|
|
907
|
+
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client.
|
|
908
|
+
* @summary Save external document
|
|
909
|
+
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
* @memberof DocumentsApi
|
|
913
|
+
*/
|
|
914
|
+
DocumentsApi.prototype.saveExternalDocument = function (requestParameters, options) {
|
|
915
|
+
var _this = this;
|
|
916
|
+
return (0, exports.DocumentsApiFp)(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
917
|
+
};
|
|
825
918
|
/**
|
|
826
919
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
827
920
|
* @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.
|
|
@@ -149,11 +149,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
149
149
|
* @summary Get pre-signed url for downloading docx template
|
|
150
150
|
* @param {string} code
|
|
151
151
|
* @param {string} [authorization] Bearer Token
|
|
152
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
153
152
|
* @param {*} [options] Override http request option.
|
|
154
153
|
* @throws {RequiredError}
|
|
155
154
|
*/
|
|
156
|
-
downloadDocxTemplate: function (code, authorization,
|
|
155
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
157
156
|
if (options === void 0) { options = {}; }
|
|
158
157
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
158
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -179,9 +178,6 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
179
178
|
// authentication bearer required
|
|
180
179
|
// http bearer authentication required
|
|
181
180
|
_a.sent();
|
|
182
|
-
if (contentDisposition !== undefined) {
|
|
183
|
-
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
184
|
-
}
|
|
185
181
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
186
182
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
187
183
|
}
|
|
@@ -454,16 +450,15 @@ var DocxTemplatesApiFp = function (configuration) {
|
|
|
454
450
|
* @summary Get pre-signed url for downloading docx template
|
|
455
451
|
* @param {string} code
|
|
456
452
|
* @param {string} [authorization] Bearer Token
|
|
457
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
458
453
|
* @param {*} [options] Override http request option.
|
|
459
454
|
* @throws {RequiredError}
|
|
460
455
|
*/
|
|
461
|
-
downloadDocxTemplate: function (code, authorization,
|
|
456
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
462
457
|
return __awaiter(this, void 0, void 0, function () {
|
|
463
458
|
var localVarAxiosArgs;
|
|
464
459
|
return __generator(this, function (_a) {
|
|
465
460
|
switch (_a.label) {
|
|
466
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization,
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options)];
|
|
467
462
|
case 1:
|
|
468
463
|
localVarAxiosArgs = _a.sent();
|
|
469
464
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -588,12 +583,11 @@ var DocxTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
|
588
583
|
* @summary Get pre-signed url for downloading docx template
|
|
589
584
|
* @param {string} code
|
|
590
585
|
* @param {string} [authorization] Bearer Token
|
|
591
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
592
586
|
* @param {*} [options] Override http request option.
|
|
593
587
|
* @throws {RequiredError}
|
|
594
588
|
*/
|
|
595
|
-
downloadDocxTemplate: function (code, authorization,
|
|
596
|
-
return localVarFp.downloadDocxTemplate(code, authorization,
|
|
589
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
590
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
597
591
|
},
|
|
598
592
|
/**
|
|
599
593
|
* Get a docx template.
|
|
@@ -682,7 +676,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
682
676
|
*/
|
|
683
677
|
DocxTemplatesApi.prototype.downloadDocxTemplate = function (requestParameters, options) {
|
|
684
678
|
var _this = this;
|
|
685
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
679
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
686
680
|
};
|
|
687
681
|
/**
|
|
688
682
|
* 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
|
+
|