@emilgroup/public-api-sdk 1.12.0 → 1.14.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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/default-api.ts +120 -0
  4. package/api/documents-api.ts +107 -0
  5. package/api.ts +2 -0
  6. package/dist/api/default-api.d.ts +66 -0
  7. package/dist/api/default-api.js +196 -0
  8. package/dist/api/documents-api.d.ts +57 -0
  9. package/dist/api/documents-api.js +93 -0
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/create-account-request-dto.d.ts +24 -24
  13. package/dist/models/create-document-request-dto.d.ts +8 -0
  14. package/dist/models/create-document-request-dto.js +9 -1
  15. package/dist/models/create-lead-request-dto.d.ts +20 -14
  16. package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
  17. package/dist/models/create-presigned-post-request-dto.js +52 -0
  18. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  19. package/dist/models/create-presigned-post-response-class.js +15 -0
  20. package/dist/models/document-class.d.ts +8 -0
  21. package/dist/models/document-class.js +9 -1
  22. package/dist/models/index.d.ts +4 -0
  23. package/dist/models/index.js +4 -0
  24. package/dist/models/inline-response200.d.ts +54 -0
  25. package/dist/models/inline-response200.js +15 -0
  26. package/dist/models/inline-response503.d.ts +54 -0
  27. package/dist/models/inline-response503.js +15 -0
  28. package/dist/models/lead-policy-object-class.d.ts +8 -2
  29. package/dist/models/policy-object-request-dto.d.ts +11 -5
  30. package/dist/models/product-class.d.ts +6 -0
  31. package/dist/models/product-document-class.d.ts +8 -0
  32. package/dist/models/product-document-class.js +9 -1
  33. package/dist/models/update-lead-request-dto.d.ts +20 -14
  34. package/models/create-account-request-dto.ts +24 -24
  35. package/models/create-document-request-dto.ts +9 -1
  36. package/models/create-lead-request-dto.ts +20 -14
  37. package/models/create-presigned-post-request-dto.ts +138 -0
  38. package/models/create-presigned-post-response-class.ts +36 -0
  39. package/models/document-class.ts +9 -1
  40. package/models/index.ts +4 -0
  41. package/models/inline-response200.ts +48 -0
  42. package/models/inline-response503.ts +48 -0
  43. package/models/lead-policy-object-class.ts +8 -2
  44. package/models/policy-object-request-dto.ts +11 -5
  45. package/models/product-class.ts +6 -0
  46. package/models/product-document-class.ts +9 -1
  47. package/models/update-lead-request-dto.ts +20 -14
  48. package/package.json +2 -1
@@ -4,6 +4,7 @@
4
4
  README.md
5
5
  api.ts
6
6
  api/address-completions-validations-api.ts
7
+ api/default-api.ts
7
8
  api/documents-api.ts
8
9
  api/leads-api.ts
9
10
  api/notifications-api.ts
@@ -33,6 +34,8 @@ models/create-estimated-invoice-response-class.ts
33
34
  models/create-lead-request-dto.ts
34
35
  models/create-lead-response-class.ts
35
36
  models/create-payment-method-request-dto.ts
37
+ models/create-presigned-post-request-dto.ts
38
+ models/create-presigned-post-response-class.ts
36
39
  models/document-class.ts
37
40
  models/get-custom-css-response-class.ts
38
41
  models/get-lead-response-class.ts
@@ -48,6 +51,8 @@ models/initiate-payment-setup-request-dto.ts
48
51
  models/initiate-payment-setup-response-class.ts
49
52
  models/initiate-stripe-payment-setup-request-dto.ts
50
53
  models/initiate-stripe-payment-setup-response-class.ts
54
+ models/inline-response200.ts
55
+ models/inline-response503.ts
51
56
  models/insured-object-class.ts
52
57
  models/insured-object-type-class.ts
53
58
  models/invoice-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.12.0 --save
20
+ npm install @emilgroup/public-api-sdk@1.14.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/public-api-sdk@1.12.0
24
+ yarn add @emilgroup/public-api-sdk@1.14.0
25
25
  ```
26
26
 
27
27
  And then you can import `PublicApi`.
@@ -0,0 +1,120 @@
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
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { InlineResponse200 } from '../models';
25
+ // @ts-ignore
26
+ import { InlineResponse503 } from '../models';
27
+ /**
28
+ * DefaultApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
+ const localVarPath = `/publicapi/health`;
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ let baseAccessToken;
44
+ if (configuration) {
45
+ baseOptions = configuration.baseOptions;
46
+ baseAccessToken = configuration.accessToken;
47
+ }
48
+
49
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
50
+ const localVarHeaderParameter = {} as any;
51
+ const localVarQueryParameter = {} as any;
52
+
53
+
54
+
55
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58
+
59
+ return {
60
+ url: toPathString(localVarUrlObj),
61
+ options: localVarRequestOptions,
62
+ };
63
+ },
64
+ }
65
+ };
66
+
67
+ /**
68
+ * DefaultApi - functional programming interface
69
+ * @export
70
+ */
71
+ export const DefaultApiFp = function(configuration?: Configuration) {
72
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
73
+ return {
74
+ /**
75
+ *
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
80
+ const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
81
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
82
+ },
83
+ }
84
+ };
85
+
86
+ /**
87
+ * DefaultApi - factory interface
88
+ * @export
89
+ */
90
+ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
91
+ const localVarFp = DefaultApiFp(configuration)
92
+ return {
93
+ /**
94
+ *
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ check(options?: any): AxiosPromise<InlineResponse200> {
99
+ return localVarFp.check(options).then((request) => request(axios, basePath));
100
+ },
101
+ };
102
+ };
103
+
104
+ /**
105
+ * DefaultApi - object-oriented interface
106
+ * @export
107
+ * @class DefaultApi
108
+ * @extends {BaseAPI}
109
+ */
110
+ export class DefaultApi extends BaseAPI {
111
+ /**
112
+ *
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ * @memberof DefaultApi
116
+ */
117
+ public check(options?: AxiosRequestConfig) {
118
+ return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
119
+ }
120
+ }
@@ -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
  }
package/api.ts CHANGED
@@ -21,6 +21,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { AddressCompletionsValidationsApi } from './api';
24
+ import { DefaultApi } from './api';
24
25
  import { DocumentsApi } from './api';
25
26
  import { LeadsApi } from './api';
26
27
  import { NotificationsApi } from './api';
@@ -29,6 +30,7 @@ import { ProductsApi } from './api';
29
30
 
30
31
 
31
32
  export * from './api/address-completions-validations-api';
33
+ export * from './api/default-api';
32
34
  export * from './api/documents-api';
33
35
  export * from './api/leads-api';
34
36
  export * from './api/notifications-api';
@@ -0,0 +1,66 @@
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
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { InlineResponse200 } from '../models';
16
+ /**
17
+ * DefaultApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
+ };
28
+ /**
29
+ * DefaultApi - functional programming interface
30
+ * @export
31
+ */
32
+ export declare const DefaultApiFp: (configuration?: Configuration) => {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
39
+ };
40
+ /**
41
+ * DefaultApi - factory interface
42
+ * @export
43
+ */
44
+ export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
+ /**
46
+ *
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ check(options?: any): AxiosPromise<InlineResponse200>;
51
+ };
52
+ /**
53
+ * DefaultApi - object-oriented interface
54
+ * @export
55
+ * @class DefaultApi
56
+ * @extends {BaseAPI}
57
+ */
58
+ export declare class DefaultApi extends BaseAPI {
59
+ /**
60
+ *
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ * @memberof DefaultApi
64
+ */
65
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
66
+ }
@@ -0,0 +1,196 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * DefaultApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var DefaultApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ check: function (options) {
101
+ if (options === void 0) { options = {}; }
102
+ return __awaiter(_this, void 0, void 0, function () {
103
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
104
+ return __generator(this, function (_a) {
105
+ localVarPath = "/publicapi/health";
106
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ if (configuration) {
108
+ baseOptions = configuration.baseOptions;
109
+ baseAccessToken = configuration.accessToken;
110
+ }
111
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
112
+ localVarHeaderParameter = {};
113
+ localVarQueryParameter = {};
114
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
115
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
116
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
117
+ return [2 /*return*/, {
118
+ url: (0, common_1.toPathString)(localVarUrlObj),
119
+ options: localVarRequestOptions,
120
+ }];
121
+ });
122
+ });
123
+ },
124
+ };
125
+ };
126
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
127
+ /**
128
+ * DefaultApi - functional programming interface
129
+ * @export
130
+ */
131
+ var DefaultApiFp = function (configuration) {
132
+ var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
133
+ return {
134
+ /**
135
+ *
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ check: function (options) {
140
+ return __awaiter(this, void 0, void 0, function () {
141
+ var localVarAxiosArgs;
142
+ return __generator(this, function (_a) {
143
+ switch (_a.label) {
144
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.check(options)];
145
+ case 1:
146
+ localVarAxiosArgs = _a.sent();
147
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ };
153
+ };
154
+ exports.DefaultApiFp = DefaultApiFp;
155
+ /**
156
+ * DefaultApi - factory interface
157
+ * @export
158
+ */
159
+ var DefaultApiFactory = function (configuration, basePath, axios) {
160
+ var localVarFp = (0, exports.DefaultApiFp)(configuration);
161
+ return {
162
+ /**
163
+ *
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ check: function (options) {
168
+ return localVarFp.check(options).then(function (request) { return request(axios, basePath); });
169
+ },
170
+ };
171
+ };
172
+ exports.DefaultApiFactory = DefaultApiFactory;
173
+ /**
174
+ * DefaultApi - object-oriented interface
175
+ * @export
176
+ * @class DefaultApi
177
+ * @extends {BaseAPI}
178
+ */
179
+ var DefaultApi = /** @class */ (function (_super) {
180
+ __extends(DefaultApi, _super);
181
+ function DefaultApi() {
182
+ return _super !== null && _super.apply(this, arguments) || this;
183
+ }
184
+ /**
185
+ *
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ * @memberof DefaultApi
189
+ */
190
+ DefaultApi.prototype.check = function (options) {
191
+ var _this = this;
192
+ return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
193
+ };
194
+ return DefaultApi;
195
+ }(base_1.BaseAPI));
196
+ exports.DefaultApi = DefaultApi;
@@ -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
  }