@emilgroup/public-api-sdk-node 1.14.0 → 1.15.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.
@@ -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-node@1.14.0 --save
20
+ npm install @emilgroup/public-api-sdk-node@1.15.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/public-api-sdk-node@1.14.0
24
+ yarn add @emilgroup/public-api-sdk-node@1.15.0
25
25
  ```
26
26
 
27
27
  And then you can import `PublicApi`.
@@ -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';
@@ -317,6 +321,53 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
317
321
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
318
322
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
319
323
 
324
+ return {
325
+ url: toPathString(localVarUrlObj),
326
+ options: localVarRequestOptions,
327
+ };
328
+ },
329
+ /**
330
+ * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
331
+ * @summary Upload documents using pre-signed URL
332
+ * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
333
+ * @param {string} [authorization] Bearer Token
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ preSignedPost: async (createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
338
+ // verify required parameter 'createPresignedPostRequestDto' is not null or undefined
339
+ assertParamExists('preSignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto)
340
+ const localVarPath = `/publicapi/v1/documents/pre-signed-post`;
341
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
342
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
343
+ let baseOptions;
344
+ let baseAccessToken;
345
+ if (configuration) {
346
+ baseOptions = configuration.baseOptions;
347
+ baseAccessToken = configuration.accessToken;
348
+ }
349
+
350
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
351
+ const localVarHeaderParameter = {} as any;
352
+ const localVarQueryParameter = {} as any;
353
+
354
+ // authentication bearer required
355
+ // http bearer authentication required
356
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
357
+
358
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
359
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
360
+ }
361
+
362
+
363
+
364
+ localVarHeaderParameter['Content-Type'] = 'application/json';
365
+
366
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
367
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
368
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
369
+ localVarRequestOptions.data = serializeDataIfNeeded(createPresignedPostRequestDto, localVarRequestOptions, configuration)
370
+
320
371
  return {
321
372
  url: toPathString(localVarUrlObj),
322
373
  options: localVarRequestOptions,
@@ -403,6 +454,18 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
403
454
  const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options);
404
455
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
405
456
  },
457
+ /**
458
+ * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
459
+ * @summary Upload documents using pre-signed URL
460
+ * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
461
+ * @param {string} [authorization] Bearer Token
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ async preSignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
466
+ const localVarAxiosArgs = await localVarAxiosParamCreator.preSignedPost(createPresignedPostRequestDto, authorization, options);
467
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
468
+ },
406
469
  }
407
470
  };
408
471
 
@@ -479,6 +542,17 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
479
542
  listProductDocuments(productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
480
543
  return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
481
544
  },
545
+ /**
546
+ * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
547
+ * @summary Upload documents using pre-signed URL
548
+ * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
549
+ * @param {string} [authorization] Bearer Token
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ */
553
+ preSignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
554
+ return localVarFp.preSignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
555
+ },
482
556
  };
483
557
  };
484
558
 
@@ -664,6 +738,27 @@ export interface DocumentsApiListProductDocumentsRequest {
664
738
  readonly expand?: any
665
739
  }
666
740
 
741
+ /**
742
+ * Request parameters for preSignedPost operation in DocumentsApi.
743
+ * @export
744
+ * @interface DocumentsApiPreSignedPostRequest
745
+ */
746
+ export interface DocumentsApiPreSignedPostRequest {
747
+ /**
748
+ *
749
+ * @type {CreatePresignedPostRequestDto}
750
+ * @memberof DocumentsApiPreSignedPost
751
+ */
752
+ readonly createPresignedPostRequestDto: CreatePresignedPostRequestDto
753
+
754
+ /**
755
+ * Bearer Token
756
+ * @type {string}
757
+ * @memberof DocumentsApiPreSignedPost
758
+ */
759
+ readonly authorization?: string
760
+ }
761
+
667
762
  /**
668
763
  * DocumentsApi - object-oriented interface
669
764
  * @export
@@ -730,4 +825,16 @@ export class DocumentsApi extends BaseAPI {
730
825
  public listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
731
826
  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));
732
827
  }
828
+
829
+ /**
830
+ * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
831
+ * @summary Upload documents using pre-signed URL
832
+ * @param {DocumentsApiPreSignedPostRequest} requestParameters Request parameters.
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ * @memberof DocumentsApi
836
+ */
837
+ public preSignedPost(requestParameters: DocumentsApiPreSignedPostRequest, options?: AxiosRequestConfig) {
838
+ return DocumentsApiFp(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
839
+ }
733
840
  }
@@ -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
  }
@@ -383,6 +383,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
383
383
  });
384
384
  });
385
385
  },
386
+ /**
387
+ * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
388
+ * @summary Upload documents using pre-signed URL
389
+ * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
390
+ * @param {string} [authorization] Bearer Token
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
395
+ if (options === void 0) { options = {}; }
396
+ return __awaiter(_this, void 0, void 0, function () {
397
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
398
+ return __generator(this, function (_a) {
399
+ switch (_a.label) {
400
+ case 0:
401
+ // verify required parameter 'createPresignedPostRequestDto' is not null or undefined
402
+ (0, common_1.assertParamExists)('preSignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
403
+ localVarPath = "/publicapi/v1/documents/pre-signed-post";
404
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
405
+ if (configuration) {
406
+ baseOptions = configuration.baseOptions;
407
+ baseAccessToken = configuration.accessToken;
408
+ }
409
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
410
+ localVarHeaderParameter = {};
411
+ localVarQueryParameter = {};
412
+ // authentication bearer required
413
+ // http bearer authentication required
414
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
415
+ case 1:
416
+ // authentication bearer required
417
+ // http bearer authentication required
418
+ _a.sent();
419
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
420
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
421
+ }
422
+ localVarHeaderParameter['Content-Type'] = 'application/json';
423
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
424
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
425
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
426
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPresignedPostRequestDto, localVarRequestOptions, configuration);
427
+ return [2 /*return*/, {
428
+ url: (0, common_1.toPathString)(localVarUrlObj),
429
+ options: localVarRequestOptions,
430
+ }];
431
+ }
432
+ });
433
+ });
434
+ },
386
435
  };
387
436
  };
388
437
  exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
@@ -509,6 +558,27 @@ var DocumentsApiFp = function (configuration) {
509
558
  });
510
559
  });
511
560
  },
561
+ /**
562
+ * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
563
+ * @summary Upload documents using pre-signed URL
564
+ * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
565
+ * @param {string} [authorization] Bearer Token
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ */
569
+ preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
570
+ return __awaiter(this, void 0, void 0, function () {
571
+ var localVarAxiosArgs;
572
+ return __generator(this, function (_a) {
573
+ switch (_a.label) {
574
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.preSignedPost(createPresignedPostRequestDto, authorization, options)];
575
+ case 1:
576
+ localVarAxiosArgs = _a.sent();
577
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
578
+ }
579
+ });
580
+ });
581
+ },
512
582
  };
513
583
  };
514
584
  exports.DocumentsApiFp = DocumentsApiFp;
@@ -585,6 +655,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
585
655
  listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
586
656
  return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
587
657
  },
658
+ /**
659
+ * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
660
+ * @summary Upload documents using pre-signed URL
661
+ * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
662
+ * @param {string} [authorization] Bearer Token
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
667
+ return localVarFp.preSignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
668
+ },
588
669
  };
589
670
  };
590
671
  exports.DocumentsApiFactory = DocumentsApiFactory;
@@ -659,6 +740,18 @@ var DocumentsApi = /** @class */ (function (_super) {
659
740
  var _this = this;
660
741
  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); });
661
742
  };
743
+ /**
744
+ * This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
745
+ * @summary Upload documents using pre-signed URL
746
+ * @param {DocumentsApiPreSignedPostRequest} requestParameters Request parameters.
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ * @memberof DocumentsApi
750
+ */
751
+ DocumentsApi.prototype.preSignedPost = function (requestParameters, options) {
752
+ var _this = this;
753
+ return (0, exports.DocumentsApiFp)(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
754
+ };
662
755
  return DocumentsApi;
663
756
  }(base_1.BaseAPI));
664
757
  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];
@@ -37,5 +37,13 @@ exports.DocumentClassContentTypeEnum = {
37
37
  Docx: 'docx',
38
38
  Html: 'html',
39
39
  Json: 'json',
40
- Xml: 'xml'
40
+ Xml: 'xml',
41
+ Txt: 'txt',
42
+ Zip: 'zip',
43
+ Tar: 'tar',
44
+ Rar: 'rar',
45
+ Mp4: 'MP4',
46
+ Mov: 'MOV',
47
+ Wmv: 'WMV',
48
+ Avi: 'AVI'
41
49
  };
@@ -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';
@@ -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);
@@ -71,4 +71,10 @@ export interface ProductClass {
71
71
  * @memberof ProductClass
72
72
  */
73
73
  'updatedAt': string;
74
+ /**
75
+ * Default language of the product.
76
+ * @type {string}
77
+ * @memberof ProductClass
78
+ */
79
+ 'defaultLanguage': string;
74
80
  }
@@ -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
+
@@ -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';
@@ -76,5 +76,11 @@ export interface ProductClass {
76
76
  * @memberof ProductClass
77
77
  */
78
78
  'updatedAt': string;
79
+ /**
80
+ * Default language of the product.
81
+ * @type {string}
82
+ * @memberof ProductClass
83
+ */
84
+ 'defaultLanguage': string;
79
85
  }
80
86
 
@@ -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-node",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "OpenAPI client for @emilgroup/public-api-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }