@emilgroup/customer-sdk-node 1.57.1-beta.0 → 1.57.1-beta.12

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.
@@ -13,6 +13,7 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreatePresignedPostResponseClass } from '../models';
16
+ import { GetCustomerDocumentDownloadUrlRequestDto } from '../models';
16
17
  import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
17
18
  import { ListDocumentsResponseClass } from '../models';
18
19
  import { UploadAccountDocumentsRequestDto } from '../models';
@@ -26,12 +27,12 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
26
27
  * @summary Get a download url for document
27
28
  * @param {string} documentCode The document code.
28
29
  * @param {string} customerCode
29
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
30
+ * @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
30
31
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
31
32
  * @param {*} [options] Override http request option.
32
33
  * @throws {RequiredError}
33
34
  */
34
- getCustomerDocumentDownloadUrl: (documentCode: string, customerCode: string, contentDisposition?: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ getCustomerDocumentDownloadUrl: (documentCode: string, customerCode: string, contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
36
  /**
36
37
  * List all the documents of a customer.
37
38
  * @summary List documents of a customer
@@ -68,12 +69,12 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
68
69
  * @summary Get a download url for document
69
70
  * @param {string} documentCode The document code.
70
71
  * @param {string} customerCode
71
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
72
+ * @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
72
73
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
73
74
  * @param {*} [options] Override http request option.
74
75
  * @throws {RequiredError}
75
76
  */
76
- getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>>;
77
+ getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>>;
77
78
  /**
78
79
  * List all the documents of a customer.
79
80
  * @summary List documents of a customer
@@ -110,12 +111,12 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
110
111
  * @summary Get a download url for document
111
112
  * @param {string} documentCode The document code.
112
113
  * @param {string} customerCode
113
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
114
+ * @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
114
115
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
115
116
  * @param {*} [options] Override http request option.
116
117
  * @throws {RequiredError}
117
118
  */
118
- getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>;
119
+ getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>;
119
120
  /**
120
121
  * List all the documents of a customer.
121
122
  * @summary List documents of a customer
@@ -162,10 +163,10 @@ export interface DocumentsApiGetCustomerDocumentDownloadUrlRequest {
162
163
  readonly customerCode: string;
163
164
  /**
164
165
  * Content disposition override. Default will be depending on the document type.
165
- * @type {'attachment' | 'inline'}
166
+ * @type {GetCustomerDocumentDownloadUrlRequestDto}
166
167
  * @memberof DocumentsApiGetCustomerDocumentDownloadUrl
167
168
  */
168
- readonly contentDisposition?: 'attachment' | 'inline';
169
+ readonly contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto;
169
170
  /**
170
171
  * Bearer Token: provided by the login endpoint under the name accessToken.
171
172
  * @type {string}
@@ -101,7 +101,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
101
101
  * @summary Get a download url for document
102
102
  * @param {string} documentCode The document code.
103
103
  * @param {string} customerCode
104
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
104
+ * @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
105
105
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
106
106
  * @param {*} [options] Override http request option.
107
107
  * @throws {RequiredError}
@@ -262,7 +262,7 @@ var DocumentsApiFp = function (configuration) {
262
262
  * @summary Get a download url for document
263
263
  * @param {string} documentCode The document code.
264
264
  * @param {string} customerCode
265
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
265
+ * @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
266
266
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
267
267
  * @param {*} [options] Override http request option.
268
268
  * @throws {RequiredError}
@@ -344,7 +344,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
344
344
  * @summary Get a download url for document
345
345
  * @param {string} documentCode The document code.
346
346
  * @param {string} customerCode
347
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
347
+ * @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
348
348
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
349
  * @param {*} [options] Override http request option.
350
350
  * @throws {RequiredError}
@@ -14,10 +14,10 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { InlineResponse200 } from '../models';
16
16
  /**
17
- * DefaultApi - axios parameter creator
17
+ * HealthApi - axios parameter creator
18
18
  * @export
19
19
  */
20
- export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
20
+ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
22
  *
23
23
  * @param {*} [options] Override http request option.
@@ -26,10 +26,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
26
26
  check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
27
  };
28
28
  /**
29
- * DefaultApi - functional programming interface
29
+ * HealthApi - functional programming interface
30
30
  * @export
31
31
  */
32
- export declare const DefaultApiFp: (configuration?: Configuration) => {
32
+ export declare const HealthApiFp: (configuration?: Configuration) => {
33
33
  /**
34
34
  *
35
35
  * @param {*} [options] Override http request option.
@@ -38,10 +38,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
38
38
  check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
39
39
  };
40
40
  /**
41
- * DefaultApi - factory interface
41
+ * HealthApi - factory interface
42
42
  * @export
43
43
  */
44
- export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
44
+ export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
45
  /**
46
46
  *
47
47
  * @param {*} [options] Override http request option.
@@ -50,17 +50,17 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
50
50
  check(options?: any): AxiosPromise<InlineResponse200>;
51
51
  };
52
52
  /**
53
- * DefaultApi - object-oriented interface
53
+ * HealthApi - object-oriented interface
54
54
  * @export
55
- * @class DefaultApi
55
+ * @class HealthApi
56
56
  * @extends {BaseAPI}
57
57
  */
58
- export declare class DefaultApi extends BaseAPI {
58
+ export declare class HealthApi extends BaseAPI {
59
59
  /**
60
60
  *
61
61
  * @param {*} [options] Override http request option.
62
62
  * @throws {RequiredError}
63
- * @memberof DefaultApi
63
+ * @memberof HealthApi
64
64
  */
65
65
  check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
66
66
  }
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
81
+ exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -90,10 +90,10 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * DefaultApi - axios parameter creator
93
+ * HealthApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var DefaultApiAxiosParamCreator = function (configuration) {
96
+ var HealthApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
@@ -127,13 +127,13 @@ var DefaultApiAxiosParamCreator = function (configuration) {
127
127
  },
128
128
  };
129
129
  };
130
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
130
+ exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
131
131
  /**
132
- * DefaultApi - functional programming interface
132
+ * HealthApi - functional programming interface
133
133
  * @export
134
134
  */
135
- var DefaultApiFp = function (configuration) {
136
- var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
135
+ var HealthApiFp = function (configuration) {
136
+ var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
137
137
  return {
138
138
  /**
139
139
  *
@@ -155,13 +155,13 @@ var DefaultApiFp = function (configuration) {
155
155
  },
156
156
  };
157
157
  };
158
- exports.DefaultApiFp = DefaultApiFp;
158
+ exports.HealthApiFp = HealthApiFp;
159
159
  /**
160
- * DefaultApi - factory interface
160
+ * HealthApi - factory interface
161
161
  * @export
162
162
  */
163
- var DefaultApiFactory = function (configuration, basePath, axios) {
164
- var localVarFp = (0, exports.DefaultApiFp)(configuration);
163
+ var HealthApiFactory = function (configuration, basePath, axios) {
164
+ var localVarFp = (0, exports.HealthApiFp)(configuration);
165
165
  return {
166
166
  /**
167
167
  *
@@ -173,28 +173,28 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
173
173
  },
174
174
  };
175
175
  };
176
- exports.DefaultApiFactory = DefaultApiFactory;
176
+ exports.HealthApiFactory = HealthApiFactory;
177
177
  /**
178
- * DefaultApi - object-oriented interface
178
+ * HealthApi - object-oriented interface
179
179
  * @export
180
- * @class DefaultApi
180
+ * @class HealthApi
181
181
  * @extends {BaseAPI}
182
182
  */
183
- var DefaultApi = /** @class */ (function (_super) {
184
- __extends(DefaultApi, _super);
185
- function DefaultApi() {
183
+ var HealthApi = /** @class */ (function (_super) {
184
+ __extends(HealthApi, _super);
185
+ function HealthApi() {
186
186
  return _super !== null && _super.apply(this, arguments) || this;
187
187
  }
188
188
  /**
189
189
  *
190
190
  * @param {*} [options] Override http request option.
191
191
  * @throws {RequiredError}
192
- * @memberof DefaultApi
192
+ * @memberof HealthApi
193
193
  */
194
- DefaultApi.prototype.check = function (options) {
194
+ HealthApi.prototype.check = function (options) {
195
195
  var _this = this;
196
- return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
196
+ return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
197
197
  };
198
- return DefaultApi;
198
+ return HealthApi;
199
199
  }(base_1.BaseAPI));
200
- exports.DefaultApi = DefaultApi;
200
+ exports.HealthApi = HealthApi;
package/dist/api.d.ts CHANGED
@@ -11,9 +11,10 @@
11
11
  */
12
12
  export * from './api/authentication-api';
13
13
  export * from './api/claims-api';
14
+ export * from './api/customer-controller-rest-api';
14
15
  export * from './api/customers-api';
15
- export * from './api/default-api';
16
16
  export * from './api/documents-api';
17
+ export * from './api/health-api';
17
18
  export * from './api/invites-api';
18
19
  export * from './api/invoices-api';
19
20
  export * from './api/leads-api';
package/dist/api.js CHANGED
@@ -29,9 +29,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/authentication-api"), exports);
31
31
  __exportStar(require("./api/claims-api"), exports);
32
+ __exportStar(require("./api/customer-controller-rest-api"), exports);
32
33
  __exportStar(require("./api/customers-api"), exports);
33
- __exportStar(require("./api/default-api"), exports);
34
34
  __exportStar(require("./api/documents-api"), exports);
35
+ __exportStar(require("./api/health-api"), exports);
35
36
  __exportStar(require("./api/invites-api"), exports);
36
37
  __exportStar(require("./api/invoices-api"), exports);
37
38
  __exportStar(require("./api/leads-api"), exports);
package/dist/base.d.ts CHANGED
@@ -32,7 +32,8 @@ export declare enum Environment {
32
32
  Test = "https://apiv2-test.emil.de",
33
33
  Staging = "https://apiv2-staging.emil.de",
34
34
  Development = "https://apiv2-dev.emil.de",
35
- ProductionZurich = "https://eu-central-2.apiv2.emil.de"
35
+ ProductionZurich = "https://eu-central-2.apiv2.emil.de",
36
+ StagingZurich = "https://eu-central-2.apiv2-staging.emil.de"
36
37
  }
37
38
  export declare function resetRetry(): void;
38
39
  /**
package/dist/base.js CHANGED
@@ -132,6 +132,7 @@ var Environment;
132
132
  Environment["Staging"] = "https://apiv2-staging.emil.de";
133
133
  Environment["Development"] = "https://apiv2-dev.emil.de";
134
134
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
135
+ Environment["StagingZurich"] = "https://eu-central-2.apiv2-staging.emil.de";
135
136
  })(Environment = exports.Environment || (exports.Environment = {}));
136
137
  var _retry_count = 0;
137
138
  var _retry = null;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService 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 GetCustomerDocumentDownloadUrlRequestDto
16
+ */
17
+ export interface GetCustomerDocumentDownloadUrlRequestDto {
18
+ /**
19
+ * Content disposition override. Default will be depending on the document type.
20
+ * @type {string}
21
+ * @memberof GetCustomerDocumentDownloadUrlRequestDto
22
+ */
23
+ 'contentDisposition'?: GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum;
24
+ }
25
+ export declare const GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum: {
26
+ readonly Attachment: "attachment";
27
+ readonly Inline: "inline";
28
+ };
29
+ export type GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum = typeof GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum[keyof typeof GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService 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.GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum = void 0;
17
+ exports.GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum = {
18
+ Attachment: 'attachment',
19
+ Inline: 'inline'
20
+ };
@@ -29,6 +29,7 @@ export * from './customer-document-class';
29
29
  export * from './customer-product-class';
30
30
  export * from './forgot-password-request-dto';
31
31
  export * from './get-customer-claim-response-class';
32
+ export * from './get-customer-document-download-url-request-dto';
32
33
  export * from './get-customer-document-download-url-response-class';
33
34
  export * from './get-customer-response-class';
34
35
  export * from './get-lead-response-class';
@@ -45,6 +45,7 @@ __exportStar(require("./customer-document-class"), exports);
45
45
  __exportStar(require("./customer-product-class"), exports);
46
46
  __exportStar(require("./forgot-password-request-dto"), exports);
47
47
  __exportStar(require("./get-customer-claim-response-class"), exports);
48
+ __exportStar(require("./get-customer-document-download-url-request-dto"), exports);
48
49
  __exportStar(require("./get-customer-document-download-url-response-class"), exports);
49
50
  __exportStar(require("./get-customer-response-class"), exports);
50
51
  __exportStar(require("./get-lead-response-class"), exports);
@@ -31,10 +31,10 @@ export interface TimesliceClass {
31
31
  'from': string;
32
32
  /**
33
33
  * Timeslice validity end
34
- * @type {object}
34
+ * @type {string}
35
35
  * @memberof TimesliceClass
36
36
  */
37
- 'to': object;
37
+ 'to': string;
38
38
  /**
39
39
  * Timeslice premium
40
40
  * @type {PolicyPremiumClass}
@@ -0,0 +1,38 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService 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 GetCustomerDocumentDownloadUrlRequestDto
21
+ */
22
+ export interface GetCustomerDocumentDownloadUrlRequestDto {
23
+ /**
24
+ * Content disposition override. Default will be depending on the document type.
25
+ * @type {string}
26
+ * @memberof GetCustomerDocumentDownloadUrlRequestDto
27
+ */
28
+ 'contentDisposition'?: GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum;
29
+ }
30
+
31
+ export const GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum = {
32
+ Attachment: 'attachment',
33
+ Inline: 'inline'
34
+ } as const;
35
+
36
+ export type GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum = typeof GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum[keyof typeof GetCustomerDocumentDownloadUrlRequestDtoContentDispositionEnum];
37
+
38
+
package/models/index.ts CHANGED
@@ -29,6 +29,7 @@ export * from './customer-document-class';
29
29
  export * from './customer-product-class';
30
30
  export * from './forgot-password-request-dto';
31
31
  export * from './get-customer-claim-response-class';
32
+ export * from './get-customer-document-download-url-request-dto';
32
33
  export * from './get-customer-document-download-url-response-class';
33
34
  export * from './get-customer-response-class';
34
35
  export * from './get-lead-response-class';
@@ -36,10 +36,10 @@ export interface TimesliceClass {
36
36
  'from': string;
37
37
  /**
38
38
  * Timeslice validity end
39
- * @type {object}
39
+ * @type {string}
40
40
  * @memberof TimesliceClass
41
41
  */
42
- 'to': object;
42
+ 'to': string;
43
43
  /**
44
44
  * Timeslice premium
45
45
  * @type {PolicyPremiumClass}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/customer-sdk-node",
3
- "version": "1.57.1-beta.0",
3
+ "version": "1.57.1-beta.12",
4
4
  "description": "OpenAPI client for @emilgroup/customer-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^1.12.0",
21
+ "axios": "1.12.0",
22
22
  "form-data": "^4.0.0",
23
23
  "url": "^0.11.0"
24
24
  },