@emilgroup/public-api-sdk 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/api/documents-api.ts +107 -0
- package/dist/api/documents-api.d.ts +57 -0
- package/dist/api/documents-api.js +93 -0
- package/dist/models/create-document-request-dto.d.ts +8 -0
- package/dist/models/create-document-request-dto.js +9 -1
- package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
- package/dist/models/create-presigned-post-request-dto.js +52 -0
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/document-class.d.ts +8 -0
- package/dist/models/document-class.js +9 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/product-class.d.ts +6 -0
- package/dist/models/product-document-class.d.ts +8 -0
- package/dist/models/product-document-class.js +9 -1
- package/models/create-document-request-dto.ts +9 -1
- package/models/create-presigned-post-request-dto.ts +138 -0
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/document-class.ts +9 -1
- package/models/index.ts +2 -0
- package/models/product-class.ts +6 -0
- package/models/product-document-class.ts +9 -1
- package/package.json +2 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -33,6 +33,8 @@ models/create-estimated-invoice-response-class.ts
|
|
|
33
33
|
models/create-lead-request-dto.ts
|
|
34
34
|
models/create-lead-response-class.ts
|
|
35
35
|
models/create-payment-method-request-dto.ts
|
|
36
|
+
models/create-presigned-post-request-dto.ts
|
|
37
|
+
models/create-presigned-post-response-class.ts
|
|
36
38
|
models/document-class.ts
|
|
37
39
|
models/get-custom-css-response-class.ts
|
|
38
40
|
models/get-lead-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/public-api-sdk@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.13.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.13.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -23,6 +23,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateDocumentRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreatePresignedPostRequestDto } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { CreatePresignedPostResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
26
30
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
27
31
|
// @ts-ignore
|
|
28
32
|
import { ListDocumentsResponseClass } from '../models';
|
|
@@ -313,6 +317,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
313
317
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
318
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
315
319
|
|
|
320
|
+
return {
|
|
321
|
+
url: toPathString(localVarUrlObj),
|
|
322
|
+
options: localVarRequestOptions,
|
|
323
|
+
};
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
327
|
+
* @summary Upload documents using pre-signed URL
|
|
328
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
329
|
+
* @param {string} [authorization] Bearer Token
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
preSignedPost: async (createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
334
|
+
// verify required parameter 'createPresignedPostRequestDto' is not null or undefined
|
|
335
|
+
assertParamExists('preSignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto)
|
|
336
|
+
const localVarPath = `/publicapi/v1/documents/pre-signed-post`;
|
|
337
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
338
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
339
|
+
let baseOptions;
|
|
340
|
+
let baseAccessToken;
|
|
341
|
+
if (configuration) {
|
|
342
|
+
baseOptions = configuration.baseOptions;
|
|
343
|
+
baseAccessToken = configuration.accessToken;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
347
|
+
const localVarHeaderParameter = {} as any;
|
|
348
|
+
const localVarQueryParameter = {} as any;
|
|
349
|
+
|
|
350
|
+
// authentication bearer required
|
|
351
|
+
// http bearer authentication required
|
|
352
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
353
|
+
|
|
354
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
355
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
361
|
+
|
|
362
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
363
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
365
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPresignedPostRequestDto, localVarRequestOptions, configuration)
|
|
366
|
+
|
|
316
367
|
return {
|
|
317
368
|
url: toPathString(localVarUrlObj),
|
|
318
369
|
options: localVarRequestOptions,
|
|
@@ -399,6 +450,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
399
450
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
400
451
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
401
452
|
},
|
|
453
|
+
/**
|
|
454
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
455
|
+
* @summary Upload documents using pre-signed URL
|
|
456
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
457
|
+
* @param {string} [authorization] Bearer Token
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
async preSignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
|
|
462
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.preSignedPost(createPresignedPostRequestDto, authorization, options);
|
|
463
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
464
|
+
},
|
|
402
465
|
}
|
|
403
466
|
};
|
|
404
467
|
|
|
@@ -475,6 +538,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
475
538
|
listProductDocuments(productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
|
|
476
539
|
return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
477
540
|
},
|
|
541
|
+
/**
|
|
542
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
543
|
+
* @summary Upload documents using pre-signed URL
|
|
544
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
545
|
+
* @param {string} [authorization] Bearer Token
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
*/
|
|
549
|
+
preSignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
|
|
550
|
+
return localVarFp.preSignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
551
|
+
},
|
|
478
552
|
};
|
|
479
553
|
};
|
|
480
554
|
|
|
@@ -660,6 +734,27 @@ export interface DocumentsApiListProductDocumentsRequest {
|
|
|
660
734
|
readonly expand?: any
|
|
661
735
|
}
|
|
662
736
|
|
|
737
|
+
/**
|
|
738
|
+
* Request parameters for preSignedPost operation in DocumentsApi.
|
|
739
|
+
* @export
|
|
740
|
+
* @interface DocumentsApiPreSignedPostRequest
|
|
741
|
+
*/
|
|
742
|
+
export interface DocumentsApiPreSignedPostRequest {
|
|
743
|
+
/**
|
|
744
|
+
*
|
|
745
|
+
* @type {CreatePresignedPostRequestDto}
|
|
746
|
+
* @memberof DocumentsApiPreSignedPost
|
|
747
|
+
*/
|
|
748
|
+
readonly createPresignedPostRequestDto: CreatePresignedPostRequestDto
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Bearer Token
|
|
752
|
+
* @type {string}
|
|
753
|
+
* @memberof DocumentsApiPreSignedPost
|
|
754
|
+
*/
|
|
755
|
+
readonly authorization?: string
|
|
756
|
+
}
|
|
757
|
+
|
|
663
758
|
/**
|
|
664
759
|
* DocumentsApi - object-oriented interface
|
|
665
760
|
* @export
|
|
@@ -726,4 +821,16 @@ export class DocumentsApi extends BaseAPI {
|
|
|
726
821
|
public listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
|
|
727
822
|
return DocumentsApiFp(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
728
823
|
}
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
827
|
+
* @summary Upload documents using pre-signed URL
|
|
828
|
+
* @param {DocumentsApiPreSignedPostRequest} requestParameters Request parameters.
|
|
829
|
+
* @param {*} [options] Override http request option.
|
|
830
|
+
* @throws {RequiredError}
|
|
831
|
+
* @memberof DocumentsApi
|
|
832
|
+
*/
|
|
833
|
+
public preSignedPost(requestParameters: DocumentsApiPreSignedPostRequest, options?: AxiosRequestConfig) {
|
|
834
|
+
return DocumentsApiFp(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
835
|
+
}
|
|
729
836
|
}
|
|
@@ -13,6 +13,8 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateDocumentRequestDto } from '../models';
|
|
16
|
+
import { CreatePresignedPostRequestDto } from '../models';
|
|
17
|
+
import { CreatePresignedPostResponseClass } from '../models';
|
|
16
18
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
17
19
|
import { ListDocumentsResponseClass } from '../models';
|
|
18
20
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
@@ -77,6 +79,15 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
77
79
|
* @throws {RequiredError}
|
|
78
80
|
*/
|
|
79
81
|
listProductDocuments: (productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
82
|
+
/**
|
|
83
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
84
|
+
* @summary Upload documents using pre-signed URL
|
|
85
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
86
|
+
* @param {string} [authorization] Bearer Token
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
preSignedPost: (createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
91
|
};
|
|
81
92
|
/**
|
|
82
93
|
* DocumentsApi - functional programming interface
|
|
@@ -139,6 +150,15 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
139
150
|
* @throws {RequiredError}
|
|
140
151
|
*/
|
|
141
152
|
listProductDocuments(productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
153
|
+
/**
|
|
154
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
155
|
+
* @summary Upload documents using pre-signed URL
|
|
156
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
157
|
+
* @param {string} [authorization] Bearer Token
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
preSignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
142
162
|
};
|
|
143
163
|
/**
|
|
144
164
|
* DocumentsApi - factory interface
|
|
@@ -201,6 +221,15 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
201
221
|
* @throws {RequiredError}
|
|
202
222
|
*/
|
|
203
223
|
listProductDocuments(productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
224
|
+
/**
|
|
225
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
226
|
+
* @summary Upload documents using pre-signed URL
|
|
227
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
228
|
+
* @param {string} [authorization] Bearer Token
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
preSignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
204
233
|
};
|
|
205
234
|
/**
|
|
206
235
|
* Request parameters for createTemporaryDocument operation in DocumentsApi.
|
|
@@ -363,6 +392,25 @@ export interface DocumentsApiListProductDocumentsRequest {
|
|
|
363
392
|
*/
|
|
364
393
|
readonly expand?: any;
|
|
365
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* Request parameters for preSignedPost operation in DocumentsApi.
|
|
397
|
+
* @export
|
|
398
|
+
* @interface DocumentsApiPreSignedPostRequest
|
|
399
|
+
*/
|
|
400
|
+
export interface DocumentsApiPreSignedPostRequest {
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* @type {CreatePresignedPostRequestDto}
|
|
404
|
+
* @memberof DocumentsApiPreSignedPost
|
|
405
|
+
*/
|
|
406
|
+
readonly createPresignedPostRequestDto: CreatePresignedPostRequestDto;
|
|
407
|
+
/**
|
|
408
|
+
* Bearer Token
|
|
409
|
+
* @type {string}
|
|
410
|
+
* @memberof DocumentsApiPreSignedPost
|
|
411
|
+
*/
|
|
412
|
+
readonly authorization?: string;
|
|
413
|
+
}
|
|
366
414
|
/**
|
|
367
415
|
* DocumentsApi - object-oriented interface
|
|
368
416
|
* @export
|
|
@@ -415,4 +463,13 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
415
463
|
* @memberof DocumentsApi
|
|
416
464
|
*/
|
|
417
465
|
listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any>>;
|
|
466
|
+
/**
|
|
467
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
468
|
+
* @summary Upload documents using pre-signed URL
|
|
469
|
+
* @param {DocumentsApiPreSignedPostRequest} requestParameters Request parameters.
|
|
470
|
+
* @param {*} [options] Override http request option.
|
|
471
|
+
* @throws {RequiredError}
|
|
472
|
+
* @memberof DocumentsApi
|
|
473
|
+
*/
|
|
474
|
+
preSignedPost(requestParameters: DocumentsApiPreSignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
|
|
418
475
|
}
|
|
@@ -379,6 +379,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
379
379
|
});
|
|
380
380
|
});
|
|
381
381
|
},
|
|
382
|
+
/**
|
|
383
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
384
|
+
* @summary Upload documents using pre-signed URL
|
|
385
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
386
|
+
* @param {string} [authorization] Bearer Token
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
391
|
+
if (options === void 0) { options = {}; }
|
|
392
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
393
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
394
|
+
return __generator(this, function (_a) {
|
|
395
|
+
switch (_a.label) {
|
|
396
|
+
case 0:
|
|
397
|
+
// verify required parameter 'createPresignedPostRequestDto' is not null or undefined
|
|
398
|
+
(0, common_1.assertParamExists)('preSignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
|
|
399
|
+
localVarPath = "/publicapi/v1/documents/pre-signed-post";
|
|
400
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
401
|
+
if (configuration) {
|
|
402
|
+
baseOptions = configuration.baseOptions;
|
|
403
|
+
baseAccessToken = configuration.accessToken;
|
|
404
|
+
}
|
|
405
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
406
|
+
localVarHeaderParameter = {};
|
|
407
|
+
localVarQueryParameter = {};
|
|
408
|
+
// authentication bearer required
|
|
409
|
+
// http bearer authentication required
|
|
410
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
411
|
+
case 1:
|
|
412
|
+
// authentication bearer required
|
|
413
|
+
// http bearer authentication required
|
|
414
|
+
_a.sent();
|
|
415
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
416
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
417
|
+
}
|
|
418
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
419
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
420
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
421
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
422
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPresignedPostRequestDto, localVarRequestOptions, configuration);
|
|
423
|
+
return [2 /*return*/, {
|
|
424
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
425
|
+
options: localVarRequestOptions,
|
|
426
|
+
}];
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
});
|
|
430
|
+
},
|
|
382
431
|
};
|
|
383
432
|
};
|
|
384
433
|
exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
|
|
@@ -505,6 +554,27 @@ var DocumentsApiFp = function (configuration) {
|
|
|
505
554
|
});
|
|
506
555
|
});
|
|
507
556
|
},
|
|
557
|
+
/**
|
|
558
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
559
|
+
* @summary Upload documents using pre-signed URL
|
|
560
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
561
|
+
* @param {string} [authorization] Bearer Token
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
567
|
+
var localVarAxiosArgs;
|
|
568
|
+
return __generator(this, function (_a) {
|
|
569
|
+
switch (_a.label) {
|
|
570
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.preSignedPost(createPresignedPostRequestDto, authorization, options)];
|
|
571
|
+
case 1:
|
|
572
|
+
localVarAxiosArgs = _a.sent();
|
|
573
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
},
|
|
508
578
|
};
|
|
509
579
|
};
|
|
510
580
|
exports.DocumentsApiFp = DocumentsApiFp;
|
|
@@ -581,6 +651,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
581
651
|
listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
582
652
|
return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
583
653
|
},
|
|
654
|
+
/**
|
|
655
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
656
|
+
* @summary Upload documents using pre-signed URL
|
|
657
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
658
|
+
* @param {string} [authorization] Bearer Token
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
663
|
+
return localVarFp.preSignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
664
|
+
},
|
|
584
665
|
};
|
|
585
666
|
};
|
|
586
667
|
exports.DocumentsApiFactory = DocumentsApiFactory;
|
|
@@ -655,6 +736,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
655
736
|
var _this = this;
|
|
656
737
|
return (0, exports.DocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
657
738
|
};
|
|
739
|
+
/**
|
|
740
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
741
|
+
* @summary Upload documents using pre-signed URL
|
|
742
|
+
* @param {DocumentsApiPreSignedPostRequest} requestParameters Request parameters.
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
* @memberof DocumentsApi
|
|
746
|
+
*/
|
|
747
|
+
DocumentsApi.prototype.preSignedPost = function (requestParameters, options) {
|
|
748
|
+
var _this = this;
|
|
749
|
+
return (0, exports.DocumentsApiFp)(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
750
|
+
};
|
|
658
751
|
return DocumentsApi;
|
|
659
752
|
}(base_1.BaseAPI));
|
|
660
753
|
exports.DocumentsApi = DocumentsApi;
|
|
@@ -103,5 +103,13 @@ export declare const CreateDocumentRequestDtoContentTypeEnum: {
|
|
|
103
103
|
readonly Html: "html";
|
|
104
104
|
readonly Json: "json";
|
|
105
105
|
readonly Xml: "xml";
|
|
106
|
+
readonly Txt: "txt";
|
|
107
|
+
readonly Zip: "zip";
|
|
108
|
+
readonly Tar: "tar";
|
|
109
|
+
readonly Rar: "rar";
|
|
110
|
+
readonly Mp4: "MP4";
|
|
111
|
+
readonly Mov: "MOV";
|
|
112
|
+
readonly Wmv: "WMV";
|
|
113
|
+
readonly Avi: "AVI";
|
|
106
114
|
};
|
|
107
115
|
export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
|
|
@@ -27,5 +27,13 @@ exports.CreateDocumentRequestDtoContentTypeEnum = {
|
|
|
27
27
|
Docx: 'docx',
|
|
28
28
|
Html: 'html',
|
|
29
29
|
Json: 'json',
|
|
30
|
-
Xml: 'xml'
|
|
30
|
+
Xml: 'xml',
|
|
31
|
+
Txt: 'txt',
|
|
32
|
+
Zip: 'zip',
|
|
33
|
+
Tar: 'tar',
|
|
34
|
+
Rar: 'rar',
|
|
35
|
+
Mp4: 'MP4',
|
|
36
|
+
Mov: 'MOV',
|
|
37
|
+
Wmv: 'WMV',
|
|
38
|
+
Avi: 'AVI'
|
|
31
39
|
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public 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 CreatePresignedPostRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePresignedPostRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreatePresignedPostRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'templateSlug': string;
|
|
24
|
+
/**
|
|
25
|
+
* Document entity type.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePresignedPostRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'entityType': string;
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier referencing the entity.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreatePresignedPostRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'entityId'?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreatePresignedPostRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'description': string;
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier of the policy that this object belongs to.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreatePresignedPostRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'policyCode'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier of the account that this object belongs to.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreatePresignedPostRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'accountCode'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Unique identifier of the lead that this object belongs to.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreatePresignedPostRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'leadCode'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Identifier of the service that requested the creation of this document.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CreatePresignedPostRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'requester': CreatePresignedPostRequestDtoRequesterEnum;
|
|
66
|
+
/**
|
|
67
|
+
* Extension of the file.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CreatePresignedPostRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'contentType': CreatePresignedPostRequestDtoContentTypeEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Content type of the file.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CreatePresignedPostRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'isoContentType': string;
|
|
78
|
+
/**
|
|
79
|
+
* Name of the file the end user will see when he downloads it.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CreatePresignedPostRequestDto
|
|
82
|
+
*/
|
|
83
|
+
'filename': string;
|
|
84
|
+
/**
|
|
85
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CreatePresignedPostRequestDto
|
|
88
|
+
*/
|
|
89
|
+
'productSlug'?: string;
|
|
90
|
+
}
|
|
91
|
+
export declare const CreatePresignedPostRequestDtoRequesterEnum: {
|
|
92
|
+
readonly Accountservice: "accountservice";
|
|
93
|
+
readonly Insuranceservice: "insuranceservice";
|
|
94
|
+
readonly Billingservice: "billingservice";
|
|
95
|
+
readonly Tenantservice: "tenantservice";
|
|
96
|
+
readonly BookingFunnel: "bookingFunnel";
|
|
97
|
+
readonly Publicapi: "publicapi";
|
|
98
|
+
readonly Admin: "admin";
|
|
99
|
+
readonly Claimservice: "claimservice";
|
|
100
|
+
readonly Customerservice: "customerservice";
|
|
101
|
+
readonly Notificationservice: "notificationservice";
|
|
102
|
+
readonly Paymentservice: "paymentservice";
|
|
103
|
+
readonly Processmanager: "processmanager";
|
|
104
|
+
readonly Gdvservice: "gdvservice";
|
|
105
|
+
readonly Documentservice: "documentservice";
|
|
106
|
+
};
|
|
107
|
+
export type CreatePresignedPostRequestDtoRequesterEnum = typeof CreatePresignedPostRequestDtoRequesterEnum[keyof typeof CreatePresignedPostRequestDtoRequesterEnum];
|
|
108
|
+
export declare const CreatePresignedPostRequestDtoContentTypeEnum: {
|
|
109
|
+
readonly Pdf: "pdf";
|
|
110
|
+
readonly Jpg: "jpg";
|
|
111
|
+
readonly Png: "png";
|
|
112
|
+
readonly Gz: "gz";
|
|
113
|
+
readonly Csv: "csv";
|
|
114
|
+
readonly Doc: "doc";
|
|
115
|
+
readonly Docx: "docx";
|
|
116
|
+
readonly Html: "html";
|
|
117
|
+
readonly Json: "json";
|
|
118
|
+
readonly Xml: "xml";
|
|
119
|
+
readonly Txt: "txt";
|
|
120
|
+
readonly Zip: "zip";
|
|
121
|
+
readonly Tar: "tar";
|
|
122
|
+
readonly Rar: "rar";
|
|
123
|
+
readonly Mp4: "MP4";
|
|
124
|
+
readonly Mov: "MOV";
|
|
125
|
+
readonly Wmv: "WMV";
|
|
126
|
+
readonly Avi: "AVI";
|
|
127
|
+
};
|
|
128
|
+
export type CreatePresignedPostRequestDtoContentTypeEnum = typeof CreatePresignedPostRequestDtoContentTypeEnum[keyof typeof CreatePresignedPostRequestDtoContentTypeEnum];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public 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.CreatePresignedPostRequestDtoContentTypeEnum = exports.CreatePresignedPostRequestDtoRequesterEnum = void 0;
|
|
17
|
+
exports.CreatePresignedPostRequestDtoRequesterEnum = {
|
|
18
|
+
Accountservice: 'accountservice',
|
|
19
|
+
Insuranceservice: 'insuranceservice',
|
|
20
|
+
Billingservice: 'billingservice',
|
|
21
|
+
Tenantservice: 'tenantservice',
|
|
22
|
+
BookingFunnel: 'bookingFunnel',
|
|
23
|
+
Publicapi: 'publicapi',
|
|
24
|
+
Admin: 'admin',
|
|
25
|
+
Claimservice: 'claimservice',
|
|
26
|
+
Customerservice: 'customerservice',
|
|
27
|
+
Notificationservice: 'notificationservice',
|
|
28
|
+
Paymentservice: 'paymentservice',
|
|
29
|
+
Processmanager: 'processmanager',
|
|
30
|
+
Gdvservice: 'gdvservice',
|
|
31
|
+
Documentservice: 'documentservice'
|
|
32
|
+
};
|
|
33
|
+
exports.CreatePresignedPostRequestDtoContentTypeEnum = {
|
|
34
|
+
Pdf: 'pdf',
|
|
35
|
+
Jpg: 'jpg',
|
|
36
|
+
Png: 'png',
|
|
37
|
+
Gz: 'gz',
|
|
38
|
+
Csv: 'csv',
|
|
39
|
+
Doc: 'doc',
|
|
40
|
+
Docx: 'docx',
|
|
41
|
+
Html: 'html',
|
|
42
|
+
Json: 'json',
|
|
43
|
+
Xml: 'xml',
|
|
44
|
+
Txt: 'txt',
|
|
45
|
+
Zip: 'zip',
|
|
46
|
+
Tar: 'tar',
|
|
47
|
+
Rar: 'rar',
|
|
48
|
+
Mp4: 'MP4',
|
|
49
|
+
Mov: 'MOV',
|
|
50
|
+
Wmv: 'WMV',
|
|
51
|
+
Avi: 'AVI'
|
|
52
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public 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 CreatePresignedPostResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePresignedPostResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Upload document fields.
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof CreatePresignedPostResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'fields': object;
|
|
24
|
+
/**
|
|
25
|
+
* Pre-signed Url.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePresignedPostResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'url': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public 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 });
|
|
@@ -126,5 +126,13 @@ export declare const DocumentClassContentTypeEnum: {
|
|
|
126
126
|
readonly Html: "html";
|
|
127
127
|
readonly Json: "json";
|
|
128
128
|
readonly Xml: "xml";
|
|
129
|
+
readonly Txt: "txt";
|
|
130
|
+
readonly Zip: "zip";
|
|
131
|
+
readonly Tar: "tar";
|
|
132
|
+
readonly Rar: "rar";
|
|
133
|
+
readonly Mp4: "MP4";
|
|
134
|
+
readonly Mov: "MOV";
|
|
135
|
+
readonly Wmv: "WMV";
|
|
136
|
+
readonly Avi: "AVI";
|
|
129
137
|
};
|
|
130
138
|
export type DocumentClassContentTypeEnum = typeof DocumentClassContentTypeEnum[keyof typeof DocumentClassContentTypeEnum];
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from './create-estimated-invoice-response-class';
|
|
|
17
17
|
export * from './create-lead-request-dto';
|
|
18
18
|
export * from './create-lead-response-class';
|
|
19
19
|
export * from './create-payment-method-request-dto';
|
|
20
|
+
export * from './create-presigned-post-request-dto';
|
|
21
|
+
export * from './create-presigned-post-response-class';
|
|
20
22
|
export * from './document-class';
|
|
21
23
|
export * from './get-custom-css-response-class';
|
|
22
24
|
export * from './get-lead-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,8 @@ __exportStar(require("./create-estimated-invoice-response-class"), exports);
|
|
|
33
33
|
__exportStar(require("./create-lead-request-dto"), exports);
|
|
34
34
|
__exportStar(require("./create-lead-response-class"), exports);
|
|
35
35
|
__exportStar(require("./create-payment-method-request-dto"), exports);
|
|
36
|
+
__exportStar(require("./create-presigned-post-request-dto"), exports);
|
|
37
|
+
__exportStar(require("./create-presigned-post-response-class"), exports);
|
|
36
38
|
__exportStar(require("./document-class"), exports);
|
|
37
39
|
__exportStar(require("./get-custom-css-response-class"), exports);
|
|
38
40
|
__exportStar(require("./get-lead-response-class"), exports);
|
|
@@ -87,5 +87,13 @@ export declare const ProductDocumentClassContentTypeEnum: {
|
|
|
87
87
|
readonly Html: "html";
|
|
88
88
|
readonly Json: "json";
|
|
89
89
|
readonly Xml: "xml";
|
|
90
|
+
readonly Txt: "txt";
|
|
91
|
+
readonly Zip: "zip";
|
|
92
|
+
readonly Tar: "tar";
|
|
93
|
+
readonly Rar: "rar";
|
|
94
|
+
readonly Mp4: "MP4";
|
|
95
|
+
readonly Mov: "MOV";
|
|
96
|
+
readonly Wmv: "WMV";
|
|
97
|
+
readonly Avi: "AVI";
|
|
90
98
|
};
|
|
91
99
|
export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
|
|
@@ -24,5 +24,13 @@ exports.ProductDocumentClassContentTypeEnum = {
|
|
|
24
24
|
Docx: 'docx',
|
|
25
25
|
Html: 'html',
|
|
26
26
|
Json: 'json',
|
|
27
|
-
Xml: 'xml'
|
|
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'
|
|
28
36
|
};
|
|
@@ -109,7 +109,15 @@ export const CreateDocumentRequestDtoContentTypeEnum = {
|
|
|
109
109
|
Docx: 'docx',
|
|
110
110
|
Html: 'html',
|
|
111
111
|
Json: 'json',
|
|
112
|
-
Xml: 'xml'
|
|
112
|
+
Xml: 'xml',
|
|
113
|
+
Txt: 'txt',
|
|
114
|
+
Zip: 'zip',
|
|
115
|
+
Tar: 'tar',
|
|
116
|
+
Rar: 'rar',
|
|
117
|
+
Mp4: 'MP4',
|
|
118
|
+
Mov: 'MOV',
|
|
119
|
+
Wmv: 'WMV',
|
|
120
|
+
Avi: 'AVI'
|
|
113
121
|
} as const;
|
|
114
122
|
|
|
115
123
|
export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil PublicAPI
|
|
5
|
+
* The Emil Public 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 CreatePresignedPostRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreatePresignedPostRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreatePresignedPostRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'templateSlug': string;
|
|
29
|
+
/**
|
|
30
|
+
* Document entity type.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreatePresignedPostRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'entityType': string;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier referencing the entity.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof CreatePresignedPostRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'entityId'?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreatePresignedPostRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'description': string;
|
|
47
|
+
/**
|
|
48
|
+
* Unique identifier of the policy that this object belongs to.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreatePresignedPostRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'policyCode'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Unique identifier of the account that this object belongs to.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreatePresignedPostRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'accountCode'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier of the lead that this object belongs to.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreatePresignedPostRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'leadCode'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Identifier of the service that requested the creation of this document.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CreatePresignedPostRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'requester': CreatePresignedPostRequestDtoRequesterEnum;
|
|
71
|
+
/**
|
|
72
|
+
* Extension of the file.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CreatePresignedPostRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'contentType': CreatePresignedPostRequestDtoContentTypeEnum;
|
|
77
|
+
/**
|
|
78
|
+
* Content type of the file.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CreatePresignedPostRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'isoContentType': string;
|
|
83
|
+
/**
|
|
84
|
+
* Name of the file the end user will see when he downloads it.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CreatePresignedPostRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'filename': string;
|
|
89
|
+
/**
|
|
90
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof CreatePresignedPostRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'productSlug'?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const CreatePresignedPostRequestDtoRequesterEnum = {
|
|
98
|
+
Accountservice: 'accountservice',
|
|
99
|
+
Insuranceservice: 'insuranceservice',
|
|
100
|
+
Billingservice: 'billingservice',
|
|
101
|
+
Tenantservice: 'tenantservice',
|
|
102
|
+
BookingFunnel: 'bookingFunnel',
|
|
103
|
+
Publicapi: 'publicapi',
|
|
104
|
+
Admin: 'admin',
|
|
105
|
+
Claimservice: 'claimservice',
|
|
106
|
+
Customerservice: 'customerservice',
|
|
107
|
+
Notificationservice: 'notificationservice',
|
|
108
|
+
Paymentservice: 'paymentservice',
|
|
109
|
+
Processmanager: 'processmanager',
|
|
110
|
+
Gdvservice: 'gdvservice',
|
|
111
|
+
Documentservice: 'documentservice'
|
|
112
|
+
} as const;
|
|
113
|
+
|
|
114
|
+
export type CreatePresignedPostRequestDtoRequesterEnum = typeof CreatePresignedPostRequestDtoRequesterEnum[keyof typeof CreatePresignedPostRequestDtoRequesterEnum];
|
|
115
|
+
export const CreatePresignedPostRequestDtoContentTypeEnum = {
|
|
116
|
+
Pdf: 'pdf',
|
|
117
|
+
Jpg: 'jpg',
|
|
118
|
+
Png: 'png',
|
|
119
|
+
Gz: 'gz',
|
|
120
|
+
Csv: 'csv',
|
|
121
|
+
Doc: 'doc',
|
|
122
|
+
Docx: 'docx',
|
|
123
|
+
Html: 'html',
|
|
124
|
+
Json: 'json',
|
|
125
|
+
Xml: 'xml',
|
|
126
|
+
Txt: 'txt',
|
|
127
|
+
Zip: 'zip',
|
|
128
|
+
Tar: 'tar',
|
|
129
|
+
Rar: 'rar',
|
|
130
|
+
Mp4: 'MP4',
|
|
131
|
+
Mov: 'MOV',
|
|
132
|
+
Wmv: 'WMV',
|
|
133
|
+
Avi: 'AVI'
|
|
134
|
+
} as const;
|
|
135
|
+
|
|
136
|
+
export type CreatePresignedPostRequestDtoContentTypeEnum = typeof CreatePresignedPostRequestDtoContentTypeEnum[keyof typeof CreatePresignedPostRequestDtoContentTypeEnum];
|
|
137
|
+
|
|
138
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil PublicAPI
|
|
5
|
+
* The Emil Public 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 CreatePresignedPostResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface CreatePresignedPostResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Upload document fields.
|
|
25
|
+
* @type {object}
|
|
26
|
+
* @memberof CreatePresignedPostResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'fields': object;
|
|
29
|
+
/**
|
|
30
|
+
* Pre-signed Url.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreatePresignedPostResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'url': string;
|
|
35
|
+
}
|
|
36
|
+
|
package/models/document-class.ts
CHANGED
|
@@ -133,7 +133,15 @@ export const DocumentClassContentTypeEnum = {
|
|
|
133
133
|
Docx: 'docx',
|
|
134
134
|
Html: 'html',
|
|
135
135
|
Json: 'json',
|
|
136
|
-
Xml: 'xml'
|
|
136
|
+
Xml: 'xml',
|
|
137
|
+
Txt: 'txt',
|
|
138
|
+
Zip: 'zip',
|
|
139
|
+
Tar: 'tar',
|
|
140
|
+
Rar: 'rar',
|
|
141
|
+
Mp4: 'MP4',
|
|
142
|
+
Mov: 'MOV',
|
|
143
|
+
Wmv: 'WMV',
|
|
144
|
+
Avi: 'AVI'
|
|
137
145
|
} as const;
|
|
138
146
|
|
|
139
147
|
export type DocumentClassContentTypeEnum = typeof DocumentClassContentTypeEnum[keyof typeof DocumentClassContentTypeEnum];
|
package/models/index.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from './create-estimated-invoice-response-class';
|
|
|
17
17
|
export * from './create-lead-request-dto';
|
|
18
18
|
export * from './create-lead-response-class';
|
|
19
19
|
export * from './create-payment-method-request-dto';
|
|
20
|
+
export * from './create-presigned-post-request-dto';
|
|
21
|
+
export * from './create-presigned-post-response-class';
|
|
20
22
|
export * from './document-class';
|
|
21
23
|
export * from './get-custom-css-response-class';
|
|
22
24
|
export * from './get-lead-response-class';
|
package/models/product-class.ts
CHANGED
|
@@ -92,7 +92,15 @@ export const ProductDocumentClassContentTypeEnum = {
|
|
|
92
92
|
Docx: 'docx',
|
|
93
93
|
Html: 'html',
|
|
94
94
|
Json: 'json',
|
|
95
|
-
Xml: 'xml'
|
|
95
|
+
Xml: 'xml',
|
|
96
|
+
Txt: 'txt',
|
|
97
|
+
Zip: 'zip',
|
|
98
|
+
Tar: 'tar',
|
|
99
|
+
Rar: 'rar',
|
|
100
|
+
Mp4: 'MP4',
|
|
101
|
+
Mov: 'MOV',
|
|
102
|
+
Wmv: 'WMV',
|
|
103
|
+
Avi: 'AVI'
|
|
96
104
|
} as const;
|
|
97
105
|
|
|
98
106
|
export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/public-api-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/public-api-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"axios": "^0.27.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
|
|
24
25
|
"typescript": "^4.0"
|
|
25
26
|
}
|
|
26
27
|
}
|