@emilgroup/public-api-sdk 1.27.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +4 -4
- package/api/leads-api.ts +4 -4
- package/base.ts +15 -7
- package/dist/api/booking-funnels-api.d.ts +4 -4
- package/dist/api/booking-funnels-api.js +4 -4
- package/dist/api/leads-api.d.ts +4 -4
- package/dist/api/leads-api.js +4 -4
- package/dist/base.d.ts +3 -1
- package/dist/base.js +27 -20
- package/dist/models/create-estimated-invoice-response-class.d.ts +7 -1
- package/dist/models/create-lead-request-dto.d.ts +6 -11
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/link-lead-partner-request-dto.d.ts +36 -0
- package/dist/models/link-lead-partner-request-dto.js +15 -0
- package/models/create-estimated-invoice-response-class.ts +7 -1
- package/models/create-lead-request-dto.ts +6 -11
- package/models/index.ts +1 -0
- package/models/link-lead-partner-request-dto.ts +42 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -71,6 +71,7 @@ models/lead-bank-account-class.ts
|
|
|
71
71
|
models/lead-class.ts
|
|
72
72
|
models/lead-policy-class.ts
|
|
73
73
|
models/lead-policy-object-class.ts
|
|
74
|
+
models/link-lead-partner-request-dto.ts
|
|
74
75
|
models/list-documents-response-class.ts
|
|
75
76
|
models/list-product-documents-response-class.ts
|
|
76
77
|
models/list-products-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/public-api-sdk@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.28.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.28.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -29,7 +29,7 @@ import { GetBookingFunnelResponseClass } from '../models';
|
|
|
29
29
|
export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
30
|
return {
|
|
31
31
|
/**
|
|
32
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
32
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
33
33
|
* @summary Retrieve the booking funnel
|
|
34
34
|
* @param {string} code Unique identifier for the object.
|
|
35
35
|
* @param {string} [authorization] Bearer Token
|
|
@@ -84,7 +84,7 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
|
|
|
84
84
|
const localVarAxiosParamCreator = BookingFunnelsApiAxiosParamCreator(configuration)
|
|
85
85
|
return {
|
|
86
86
|
/**
|
|
87
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
87
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
88
88
|
* @summary Retrieve the booking funnel
|
|
89
89
|
* @param {string} code Unique identifier for the object.
|
|
90
90
|
* @param {string} [authorization] Bearer Token
|
|
@@ -106,7 +106,7 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
|
|
|
106
106
|
const localVarFp = BookingFunnelsApiFp(configuration)
|
|
107
107
|
return {
|
|
108
108
|
/**
|
|
109
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
109
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
110
110
|
* @summary Retrieve the booking funnel
|
|
111
111
|
* @param {string} code Unique identifier for the object.
|
|
112
112
|
* @param {string} [authorization] Bearer Token
|
|
@@ -148,7 +148,7 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
148
148
|
*/
|
|
149
149
|
export class BookingFunnelsApi extends BaseAPI {
|
|
150
150
|
/**
|
|
151
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
151
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
152
152
|
* @summary Retrieve the booking funnel
|
|
153
153
|
* @param {BookingFunnelsApiGetBookingFunnelRequest} requestParameters Request parameters.
|
|
154
154
|
* @param {*} [options] Override http request option.
|
package/api/leads-api.ts
CHANGED
|
@@ -182,7 +182,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
182
182
|
};
|
|
183
183
|
},
|
|
184
184
|
/**
|
|
185
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
185
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
186
186
|
* @summary Retrieve the lead
|
|
187
187
|
* @param {string} code Unique identifier for the object.
|
|
188
188
|
* @param {string} [authorization] Bearer Token
|
|
@@ -416,7 +416,7 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
416
416
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
417
417
|
},
|
|
418
418
|
/**
|
|
419
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
419
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
420
420
|
* @summary Retrieve the lead
|
|
421
421
|
* @param {string} code Unique identifier for the object.
|
|
422
422
|
* @param {string} [authorization] Bearer Token
|
|
@@ -508,7 +508,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
508
508
|
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
509
509
|
},
|
|
510
510
|
/**
|
|
511
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
511
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
512
512
|
* @summary Retrieve the lead
|
|
513
513
|
* @param {string} code Unique identifier for the object.
|
|
514
514
|
* @param {string} [authorization] Bearer Token
|
|
@@ -753,7 +753,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
753
753
|
}
|
|
754
754
|
|
|
755
755
|
/**
|
|
756
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
756
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
757
757
|
* @summary Retrieve the lead
|
|
758
758
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
759
759
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
|
@@ -77,6 +77,7 @@ const TOKEN_DATA = 'APP_TOKEN';
|
|
|
77
77
|
export class BaseAPI {
|
|
78
78
|
protected configuration: Configuration | undefined;
|
|
79
79
|
private tokenData?: TokenData;
|
|
80
|
+
private permissions: Array<string> = [];
|
|
80
81
|
|
|
81
82
|
constructor(configuration?: Configuration,
|
|
82
83
|
protected basePath: string = BASE_PATH,
|
|
@@ -109,6 +110,10 @@ export class BaseAPI {
|
|
|
109
110
|
this.configuration.basePath = path;
|
|
110
111
|
}
|
|
111
112
|
|
|
113
|
+
getPermissions(): Array<string> {
|
|
114
|
+
return this.permissions;
|
|
115
|
+
}
|
|
116
|
+
|
|
112
117
|
async authorize(username: string, password: string): Promise<void> {
|
|
113
118
|
const options: AxiosRequestConfig = {
|
|
114
119
|
method: 'POST',
|
|
@@ -123,23 +128,24 @@ export class BaseAPI {
|
|
|
123
128
|
|
|
124
129
|
const response = await globalAxios.request<LoginClass>(options);
|
|
125
130
|
|
|
126
|
-
const { data: { accessToken } } = response;
|
|
131
|
+
const { data: { accessToken, permissions } } = response;
|
|
127
132
|
|
|
128
133
|
this.configuration.username = username;
|
|
129
134
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
130
135
|
this.tokenData.username = username;
|
|
131
136
|
this.tokenData.accessToken = accessToken;
|
|
137
|
+
this.permissions = permissions;
|
|
132
138
|
|
|
133
139
|
this.storeTokenData({
|
|
134
140
|
...this.tokenData
|
|
135
141
|
});
|
|
136
142
|
}
|
|
137
143
|
|
|
138
|
-
async refreshTokenInternal(): Promise<
|
|
144
|
+
async refreshTokenInternal(): Promise<LoginClass> {
|
|
139
145
|
const { username } = this.configuration;
|
|
140
146
|
|
|
141
147
|
if (!username) {
|
|
142
|
-
|
|
148
|
+
throw new Error('Failed to refresh token.');
|
|
143
149
|
}
|
|
144
150
|
|
|
145
151
|
const options: AxiosRequestConfig = {
|
|
@@ -152,9 +158,9 @@ export class BaseAPI {
|
|
|
152
158
|
withCredentials: true,
|
|
153
159
|
};
|
|
154
160
|
|
|
155
|
-
const
|
|
161
|
+
const response = await globalAxios.request<LoginClass>(options);
|
|
156
162
|
|
|
157
|
-
return
|
|
163
|
+
return response.data;
|
|
158
164
|
}
|
|
159
165
|
|
|
160
166
|
private storeTokenData(tokenData?: TokenData) {
|
|
@@ -188,8 +194,9 @@ export class BaseAPI {
|
|
|
188
194
|
&& !originalConfig._retry) {
|
|
189
195
|
originalConfig._retry = true;
|
|
190
196
|
try {
|
|
191
|
-
|
|
197
|
+
const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
|
|
192
198
|
const accessToken = `Bearer ${tokenString}`;
|
|
199
|
+
this.permissions = permissions;
|
|
193
200
|
|
|
194
201
|
delete originalConfig.headers['Authorization']
|
|
195
202
|
|
|
@@ -214,8 +221,9 @@ export class BaseAPI {
|
|
|
214
221
|
) {
|
|
215
222
|
_retry_count++;
|
|
216
223
|
try {
|
|
217
|
-
|
|
224
|
+
const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
|
|
218
225
|
const accessToken = `Bearer ${tokenString}`;
|
|
226
|
+
this.permissions = permissions;
|
|
219
227
|
|
|
220
228
|
_retry = true;
|
|
221
229
|
originalConfig.headers['Authorization'] = accessToken;
|
|
@@ -19,7 +19,7 @@ import { GetBookingFunnelResponseClass } from '../models';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const BookingFunnelsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
22
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
23
23
|
* @summary Retrieve the booking funnel
|
|
24
24
|
* @param {string} code Unique identifier for the object.
|
|
25
25
|
* @param {string} [authorization] Bearer Token
|
|
@@ -34,7 +34,7 @@ export declare const BookingFunnelsApiAxiosParamCreator: (configuration?: Config
|
|
|
34
34
|
*/
|
|
35
35
|
export declare const BookingFunnelsApiFp: (configuration?: Configuration) => {
|
|
36
36
|
/**
|
|
37
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
37
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
38
38
|
* @summary Retrieve the booking funnel
|
|
39
39
|
* @param {string} code Unique identifier for the object.
|
|
40
40
|
* @param {string} [authorization] Bearer Token
|
|
@@ -49,7 +49,7 @@ export declare const BookingFunnelsApiFp: (configuration?: Configuration) => {
|
|
|
49
49
|
*/
|
|
50
50
|
export declare const BookingFunnelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
51
51
|
/**
|
|
52
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
52
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
53
53
|
* @summary Retrieve the booking funnel
|
|
54
54
|
* @param {string} code Unique identifier for the object.
|
|
55
55
|
* @param {string} [authorization] Bearer Token
|
|
@@ -85,7 +85,7 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
|
|
|
85
85
|
*/
|
|
86
86
|
export declare class BookingFunnelsApi extends BaseAPI {
|
|
87
87
|
/**
|
|
88
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
88
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
89
89
|
* @summary Retrieve the booking funnel
|
|
90
90
|
* @param {BookingFunnelsApiGetBookingFunnelRequest} requestParameters Request parameters.
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
@@ -93,7 +93,7 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
96
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
97
97
|
* @summary Retrieve the booking funnel
|
|
98
98
|
* @param {string} code Unique identifier for the object.
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
@@ -151,7 +151,7 @@ var BookingFunnelsApiFp = function (configuration) {
|
|
|
151
151
|
var localVarAxiosParamCreator = (0, exports.BookingFunnelsApiAxiosParamCreator)(configuration);
|
|
152
152
|
return {
|
|
153
153
|
/**
|
|
154
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
154
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
155
155
|
* @summary Retrieve the booking funnel
|
|
156
156
|
* @param {string} code Unique identifier for the object.
|
|
157
157
|
* @param {string} [authorization] Bearer Token
|
|
@@ -182,7 +182,7 @@ var BookingFunnelsApiFactory = function (configuration, basePath, axios) {
|
|
|
182
182
|
var localVarFp = (0, exports.BookingFunnelsApiFp)(configuration);
|
|
183
183
|
return {
|
|
184
184
|
/**
|
|
185
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
185
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
186
186
|
* @summary Retrieve the booking funnel
|
|
187
187
|
* @param {string} code Unique identifier for the object.
|
|
188
188
|
* @param {string} [authorization] Bearer Token
|
|
@@ -207,7 +207,7 @@ var BookingFunnelsApi = /** @class */ (function (_super) {
|
|
|
207
207
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
|
-
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code
|
|
210
|
+
* Retrieves the details of the booking funnel that was previously created. Supply the unique booking funnel code that was returned when you created it and Emil Api will return the corresponding booking funnel information.
|
|
211
211
|
* @summary Retrieve the booking funnel
|
|
212
212
|
* @param {BookingFunnelsApiGetBookingFunnelRequest} requestParameters Request parameters.
|
|
213
213
|
* @param {*} [options] Override http request option.
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
52
52
|
*/
|
|
53
53
|
createLeadSync: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
55
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
56
56
|
* @summary Retrieve the lead
|
|
57
57
|
* @param {string} code Unique identifier for the object.
|
|
58
58
|
* @param {string} [authorization] Bearer Token
|
|
@@ -122,7 +122,7 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
122
122
|
*/
|
|
123
123
|
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
|
|
124
124
|
/**
|
|
125
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
125
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
126
126
|
* @summary Retrieve the lead
|
|
127
127
|
* @param {string} code Unique identifier for the object.
|
|
128
128
|
* @param {string} [authorization] Bearer Token
|
|
@@ -192,7 +192,7 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
192
192
|
*/
|
|
193
193
|
createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
|
|
194
194
|
/**
|
|
195
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
195
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
196
196
|
* @summary Retrieve the lead
|
|
197
197
|
* @param {string} code Unique identifier for the object.
|
|
198
198
|
* @param {string} [authorization] Bearer Token
|
|
@@ -403,7 +403,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
403
403
|
*/
|
|
404
404
|
createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
|
|
405
405
|
/**
|
|
406
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
406
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
407
407
|
* @summary Retrieve the lead
|
|
408
408
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
409
409
|
* @param {*} [options] Override http request option.
|
package/dist/api/leads-api.js
CHANGED
|
@@ -240,7 +240,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
240
240
|
});
|
|
241
241
|
},
|
|
242
242
|
/**
|
|
243
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
243
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
244
244
|
* @summary Retrieve the lead
|
|
245
245
|
* @param {string} code Unique identifier for the object.
|
|
246
246
|
* @param {string} [authorization] Bearer Token
|
|
@@ -511,7 +511,7 @@ var LeadsApiFp = function (configuration) {
|
|
|
511
511
|
});
|
|
512
512
|
},
|
|
513
513
|
/**
|
|
514
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
514
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
515
515
|
* @summary Retrieve the lead
|
|
516
516
|
* @param {string} code Unique identifier for the object.
|
|
517
517
|
* @param {string} [authorization] Bearer Token
|
|
@@ -639,7 +639,7 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
639
639
|
return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
640
640
|
},
|
|
641
641
|
/**
|
|
642
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
642
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
643
643
|
* @summary Retrieve the lead
|
|
644
644
|
* @param {string} code Unique identifier for the object.
|
|
645
645
|
* @param {string} [authorization] Bearer Token
|
|
@@ -734,7 +734,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
734
734
|
return (0, exports.LeadsApiFp)(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
735
735
|
};
|
|
736
736
|
/**
|
|
737
|
-
* Retrieves the details of the lead that was previously created. Supply the unique lead code
|
|
737
|
+
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
738
738
|
* @summary Retrieve the lead
|
|
739
739
|
* @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
|
|
740
740
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
|
@@ -52,11 +52,13 @@ export declare class BaseAPI {
|
|
|
52
52
|
protected axios: AxiosInstance;
|
|
53
53
|
protected configuration: Configuration | undefined;
|
|
54
54
|
private tokenData?;
|
|
55
|
+
private permissions;
|
|
55
56
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
56
57
|
selectEnvironment(env: Environment): void;
|
|
57
58
|
selectBasePath(path: string): void;
|
|
59
|
+
getPermissions(): Array<string>;
|
|
58
60
|
authorize(username: string, password: string): Promise<void>;
|
|
59
|
-
refreshTokenInternal(): Promise<
|
|
61
|
+
refreshTokenInternal(): Promise<LoginClass>;
|
|
60
62
|
private storeTokenData;
|
|
61
63
|
loadTokenData(): void;
|
|
62
64
|
cleanTokenData(): void;
|
package/dist/base.js
CHANGED
|
@@ -121,6 +121,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
121
121
|
if (axios === void 0) { axios = axios_1.default; }
|
|
122
122
|
this.basePath = basePath;
|
|
123
123
|
this.axios = axios;
|
|
124
|
+
this.permissions = [];
|
|
124
125
|
this.loadTokenData();
|
|
125
126
|
if (configuration) {
|
|
126
127
|
this.configuration = configuration;
|
|
@@ -143,11 +144,14 @@ var BaseAPI = /** @class */ (function () {
|
|
|
143
144
|
BaseAPI.prototype.selectBasePath = function (path) {
|
|
144
145
|
this.configuration.basePath = path;
|
|
145
146
|
};
|
|
147
|
+
BaseAPI.prototype.getPermissions = function () {
|
|
148
|
+
return this.permissions;
|
|
149
|
+
};
|
|
146
150
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
147
151
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
-
var options, response, accessToken;
|
|
149
|
-
return __generator(this, function (
|
|
150
|
-
switch (
|
|
152
|
+
var options, response, _a, accessToken, permissions;
|
|
153
|
+
return __generator(this, function (_b) {
|
|
154
|
+
switch (_b.label) {
|
|
151
155
|
case 0:
|
|
152
156
|
options = {
|
|
153
157
|
method: 'POST',
|
|
@@ -161,12 +165,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
161
165
|
};
|
|
162
166
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
163
167
|
case 1:
|
|
164
|
-
response =
|
|
165
|
-
|
|
168
|
+
response = _b.sent();
|
|
169
|
+
_a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
|
|
166
170
|
this.configuration.username = username;
|
|
167
171
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
168
172
|
this.tokenData.username = username;
|
|
169
173
|
this.tokenData.accessToken = accessToken;
|
|
174
|
+
this.permissions = permissions;
|
|
170
175
|
this.storeTokenData(__assign({}, this.tokenData));
|
|
171
176
|
return [2 /*return*/];
|
|
172
177
|
}
|
|
@@ -175,13 +180,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
175
180
|
};
|
|
176
181
|
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
177
182
|
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
-
var username, options,
|
|
183
|
+
var username, options, response;
|
|
179
184
|
return __generator(this, function (_a) {
|
|
180
185
|
switch (_a.label) {
|
|
181
186
|
case 0:
|
|
182
187
|
username = this.configuration.username;
|
|
183
188
|
if (!username) {
|
|
184
|
-
|
|
189
|
+
throw new Error('Failed to refresh token.');
|
|
185
190
|
}
|
|
186
191
|
options = {
|
|
187
192
|
method: 'POST',
|
|
@@ -194,8 +199,8 @@ var BaseAPI = /** @class */ (function () {
|
|
|
194
199
|
};
|
|
195
200
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
196
201
|
case 1:
|
|
197
|
-
|
|
198
|
-
return [2 /*return*/,
|
|
202
|
+
response = _a.sent();
|
|
203
|
+
return [2 /*return*/, response.data];
|
|
199
204
|
}
|
|
200
205
|
});
|
|
201
206
|
});
|
|
@@ -221,22 +226,23 @@ var BaseAPI = /** @class */ (function () {
|
|
|
221
226
|
axios.interceptors.response.use(function (res) {
|
|
222
227
|
return res;
|
|
223
228
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
224
|
-
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
225
|
-
return __generator(this, function (
|
|
226
|
-
switch (
|
|
229
|
+
var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
|
|
230
|
+
return __generator(this, function (_c) {
|
|
231
|
+
switch (_c.label) {
|
|
227
232
|
case 0:
|
|
228
233
|
originalConfig = err.config;
|
|
229
234
|
if (!(err.response && !(err.response instanceof XMLHttpRequest))) return [3 /*break*/, 5];
|
|
230
235
|
if (!((err.response.status === 401 || err.response.status === 403)
|
|
231
236
|
&& !originalConfig._retry)) return [3 /*break*/, 4];
|
|
232
237
|
originalConfig._retry = true;
|
|
233
|
-
|
|
238
|
+
_c.label = 1;
|
|
234
239
|
case 1:
|
|
235
|
-
|
|
240
|
+
_c.trys.push([1, 3, , 4]);
|
|
236
241
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
237
242
|
case 2:
|
|
238
|
-
|
|
243
|
+
_a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
|
|
239
244
|
accessToken = "Bearer ".concat(tokenString);
|
|
245
|
+
this.permissions = permissions;
|
|
240
246
|
delete originalConfig.headers['Authorization'];
|
|
241
247
|
originalConfig.headers['Authorization'] = accessToken;
|
|
242
248
|
this.configuration.accessToken = accessToken;
|
|
@@ -244,7 +250,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
244
250
|
this.storeTokenData(this.tokenData);
|
|
245
251
|
return [2 /*return*/, axios(originalConfig)];
|
|
246
252
|
case 3:
|
|
247
|
-
_error_1 =
|
|
253
|
+
_error_1 = _c.sent();
|
|
248
254
|
if (_error_1.response && _error_1.response.data) {
|
|
249
255
|
return [2 /*return*/, Promise.reject(_error_1.response.data)];
|
|
250
256
|
}
|
|
@@ -255,13 +261,14 @@ var BaseAPI = /** @class */ (function () {
|
|
|
255
261
|
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
256
262
|
&& _retry_count < 4)) return [3 /*break*/, 9];
|
|
257
263
|
_retry_count++;
|
|
258
|
-
|
|
264
|
+
_c.label = 6;
|
|
259
265
|
case 6:
|
|
260
|
-
|
|
266
|
+
_c.trys.push([6, 8, , 9]);
|
|
261
267
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
262
268
|
case 7:
|
|
263
|
-
|
|
269
|
+
_b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
|
|
264
270
|
accessToken = "Bearer ".concat(tokenString);
|
|
271
|
+
this.permissions = permissions;
|
|
265
272
|
_retry = true;
|
|
266
273
|
originalConfig.headers['Authorization'] = accessToken;
|
|
267
274
|
this.configuration.accessToken = accessToken;
|
|
@@ -269,7 +276,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
269
276
|
this.storeTokenData(this.tokenData);
|
|
270
277
|
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
271
278
|
case 8:
|
|
272
|
-
_error_2 =
|
|
279
|
+
_error_2 = _c.sent();
|
|
273
280
|
if (_error_2.response && _error_2.response.data) {
|
|
274
281
|
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
275
282
|
}
|
|
@@ -18,11 +18,17 @@ import { InvoiceClass } from './invoice-class';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface CreateEstimatedInvoiceResponseClass {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The estimated invoice response based on the current policy data. This includes the calculated invoice for the specified billing period (e.g., monthly, quarterly) as defined by the policy. The invoice contains details such as gross amount, net amount, tax amount, and other invoice-related data for the specific period the invoice is generated for.
|
|
22
22
|
* @type {InvoiceClass}
|
|
23
23
|
* @memberof CreateEstimatedInvoiceResponseClass
|
|
24
24
|
*/
|
|
25
25
|
'invoice'?: InvoiceClass;
|
|
26
|
+
/**
|
|
27
|
+
* The estimated yearly invoice response. This represents the invoice recalculated to a yearly format, standardizing the invoice values regardless of the billing frequency defined by the policy (e.g., monthly, quarterly, etc.). This yearly invoice gives an overview of the total cost for the entire year, including recalculated gross amount, net amount, tax amount, and other related invoice data, ensuring that all charges are displayed on a yearly basis. Note: If the original invoice is already set to a yearly billing frequency, the \'yearlyInvoice\' will be identical to the \'invoice\'.
|
|
28
|
+
* @type {InvoiceClass}
|
|
29
|
+
* @memberof CreateEstimatedInvoiceResponseClass
|
|
30
|
+
*/
|
|
31
|
+
'yearlyInvoice'?: InvoiceClass;
|
|
26
32
|
/**
|
|
27
33
|
* In some cases, custom premium calculation needs to be used. In that case, a custom object is returned. It can hold up any kind of information. For more information, check the general documentation.
|
|
28
34
|
* @type {object}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
13
13
|
import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
|
|
14
14
|
import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
|
|
15
|
+
import { LinkLeadPartnerRequestDto } from './link-lead-partner-request-dto';
|
|
15
16
|
import { PolicyObjectRequestDto } from './policy-object-request-dto';
|
|
16
17
|
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
17
18
|
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
@@ -89,10 +90,10 @@ export interface CreateLeadRequestDto {
|
|
|
89
90
|
'status'?: string;
|
|
90
91
|
/**
|
|
91
92
|
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
92
|
-
* @type {
|
|
93
|
+
* @type {PremiumOverrideRequestDto}
|
|
93
94
|
* @memberof CreateLeadRequestDto
|
|
94
95
|
*/
|
|
95
|
-
'premiumOverride'?:
|
|
96
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
96
97
|
/**
|
|
97
98
|
* Payment method, used to for payment method support, such as SEPA, invoice, etc. The payment method content will be validated if the \'validate\' flag is set to true.
|
|
98
99
|
* @type {CreatePaymentMethodRequestDto}
|
|
@@ -106,15 +107,9 @@ export interface CreateLeadRequestDto {
|
|
|
106
107
|
*/
|
|
107
108
|
'validate'?: boolean;
|
|
108
109
|
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {
|
|
111
|
-
* @memberof CreateLeadRequestDto
|
|
112
|
-
*/
|
|
113
|
-
'partnerCode'?: string;
|
|
114
|
-
/**
|
|
115
|
-
* An optional partner role code to establish a link between a lead and a partner. It must be sent together with the partner code. It will be validated regardless of the value of the \'validate\' flag.
|
|
116
|
-
* @type {string}
|
|
110
|
+
* Optional partner object contains necessary information to link a partner to the policy. The partner content will be validated if the \'validate\' flag is set to true.
|
|
111
|
+
* @type {LinkLeadPartnerRequestDto}
|
|
117
112
|
* @memberof CreateLeadRequestDto
|
|
118
113
|
*/
|
|
119
|
-
'
|
|
114
|
+
'partner'?: LinkLeadPartnerRequestDto;
|
|
120
115
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export * from './lead-bank-account-class';
|
|
|
51
51
|
export * from './lead-class';
|
|
52
52
|
export * from './lead-policy-class';
|
|
53
53
|
export * from './lead-policy-object-class';
|
|
54
|
+
export * from './link-lead-partner-request-dto';
|
|
54
55
|
export * from './list-documents-response-class';
|
|
55
56
|
export * from './list-product-documents-response-class';
|
|
56
57
|
export * from './list-products-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __exportStar(require("./lead-bank-account-class"), exports);
|
|
|
67
67
|
__exportStar(require("./lead-class"), exports);
|
|
68
68
|
__exportStar(require("./lead-policy-class"), exports);
|
|
69
69
|
__exportStar(require("./lead-policy-object-class"), exports);
|
|
70
|
+
__exportStar(require("./link-lead-partner-request-dto"), exports);
|
|
70
71
|
__exportStar(require("./list-documents-response-class"), exports);
|
|
71
72
|
__exportStar(require("./list-product-documents-response-class"), exports);
|
|
72
73
|
__exportStar(require("./list-products-response-class"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
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 LinkLeadPartnerRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LinkLeadPartnerRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* The code of the partner with which the lead will be linked.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'partnerCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* The code of role that the partner will have in the established link between the lead and the partner.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'partnerRoleCode': string;
|
|
30
|
+
/**
|
|
31
|
+
* The date of the start of linking with a partner.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'startDate': string;
|
|
36
|
+
}
|
|
@@ -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 });
|
|
@@ -23,11 +23,17 @@ import { InvoiceClass } from './invoice-class';
|
|
|
23
23
|
*/
|
|
24
24
|
export interface CreateEstimatedInvoiceResponseClass {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* The estimated invoice response based on the current policy data. This includes the calculated invoice for the specified billing period (e.g., monthly, quarterly) as defined by the policy. The invoice contains details such as gross amount, net amount, tax amount, and other invoice-related data for the specific period the invoice is generated for.
|
|
27
27
|
* @type {InvoiceClass}
|
|
28
28
|
* @memberof CreateEstimatedInvoiceResponseClass
|
|
29
29
|
*/
|
|
30
30
|
'invoice'?: InvoiceClass;
|
|
31
|
+
/**
|
|
32
|
+
* The estimated yearly invoice response. This represents the invoice recalculated to a yearly format, standardizing the invoice values regardless of the billing frequency defined by the policy (e.g., monthly, quarterly, etc.). This yearly invoice gives an overview of the total cost for the entire year, including recalculated gross amount, net amount, tax amount, and other related invoice data, ensuring that all charges are displayed on a yearly basis. Note: If the original invoice is already set to a yearly billing frequency, the \'yearlyInvoice\' will be identical to the \'invoice\'.
|
|
33
|
+
* @type {InvoiceClass}
|
|
34
|
+
* @memberof CreateEstimatedInvoiceResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'yearlyInvoice'?: InvoiceClass;
|
|
31
37
|
/**
|
|
32
38
|
* In some cases, custom premium calculation needs to be used. In that case, a custom object is returned. It can hold up any kind of information. For more information, check the general documentation.
|
|
33
39
|
* @type {object}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
17
17
|
import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
|
|
18
18
|
import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
|
|
19
|
+
import { LinkLeadPartnerRequestDto } from './link-lead-partner-request-dto';
|
|
19
20
|
import { PolicyObjectRequestDto } from './policy-object-request-dto';
|
|
20
21
|
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
21
22
|
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
@@ -94,10 +95,10 @@ export interface CreateLeadRequestDto {
|
|
|
94
95
|
'status'?: string;
|
|
95
96
|
/**
|
|
96
97
|
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
97
|
-
* @type {
|
|
98
|
+
* @type {PremiumOverrideRequestDto}
|
|
98
99
|
* @memberof CreateLeadRequestDto
|
|
99
100
|
*/
|
|
100
|
-
'premiumOverride'?:
|
|
101
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
101
102
|
/**
|
|
102
103
|
* Payment method, used to for payment method support, such as SEPA, invoice, etc. The payment method content will be validated if the \'validate\' flag is set to true.
|
|
103
104
|
* @type {CreatePaymentMethodRequestDto}
|
|
@@ -111,16 +112,10 @@ export interface CreateLeadRequestDto {
|
|
|
111
112
|
*/
|
|
112
113
|
'validate'?: boolean;
|
|
113
114
|
/**
|
|
114
|
-
*
|
|
115
|
-
* @type {
|
|
116
|
-
* @memberof CreateLeadRequestDto
|
|
117
|
-
*/
|
|
118
|
-
'partnerCode'?: string;
|
|
119
|
-
/**
|
|
120
|
-
* An optional partner role code to establish a link between a lead and a partner. It must be sent together with the partner code. It will be validated regardless of the value of the \'validate\' flag.
|
|
121
|
-
* @type {string}
|
|
115
|
+
* Optional partner object contains necessary information to link a partner to the policy. The partner content will be validated if the \'validate\' flag is set to true.
|
|
116
|
+
* @type {LinkLeadPartnerRequestDto}
|
|
122
117
|
* @memberof CreateLeadRequestDto
|
|
123
118
|
*/
|
|
124
|
-
'
|
|
119
|
+
'partner'?: LinkLeadPartnerRequestDto;
|
|
125
120
|
}
|
|
126
121
|
|
package/models/index.ts
CHANGED
|
@@ -51,6 +51,7 @@ export * from './lead-bank-account-class';
|
|
|
51
51
|
export * from './lead-class';
|
|
52
52
|
export * from './lead-policy-class';
|
|
53
53
|
export * from './lead-policy-object-class';
|
|
54
|
+
export * from './link-lead-partner-request-dto';
|
|
54
55
|
export * from './list-documents-response-class';
|
|
55
56
|
export * from './list-product-documents-response-class';
|
|
56
57
|
export * from './list-products-response-class';
|
|
@@ -0,0 +1,42 @@
|
|
|
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 LinkLeadPartnerRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface LinkLeadPartnerRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The code of the partner with which the lead will be linked.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'partnerCode': string;
|
|
29
|
+
/**
|
|
30
|
+
* The code of role that the partner will have in the established link between the lead and the partner.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'partnerRoleCode': string;
|
|
35
|
+
/**
|
|
36
|
+
* The date of the start of linking with a partner.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'startDate': string;
|
|
41
|
+
}
|
|
42
|
+
|