@emilgroup/public-api-sdk 1.6.0 → 1.7.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 +7 -0
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +348 -0
- package/api/documents-api.ts +39 -51
- package/api.ts +2 -0
- package/dist/api/address-completions-validations-api.d.ts +197 -0
- package/dist/api/address-completions-validations-api.js +357 -0
- package/dist/api/documents-api.d.ts +33 -42
- package/dist/api/documents-api.js +23 -28
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/address-completion-item-class.d.ts +49 -0
- package/dist/models/address-completion-item-class.js +15 -0
- package/dist/models/address-completion-response-class.d.ts +25 -0
- package/dist/models/address-completion-response-class.js +15 -0
- package/dist/models/address-field-score-class.d.ts +48 -0
- package/dist/models/address-field-score-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +12 -12
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/insured-object-class.d.ts +7 -7
- package/dist/models/structured-address-class.d.ts +54 -0
- package/dist/models/structured-address-class.js +15 -0
- package/dist/models/suggested-address-details-class.d.ts +90 -0
- package/dist/models/suggested-address-details-class.js +15 -0
- package/dist/models/validate-address-response-class.d.ts +50 -0
- package/dist/models/validate-address-response-class.js +15 -0
- package/models/address-completion-item-class.ts +55 -0
- package/models/address-completion-response-class.ts +31 -0
- package/models/address-field-score-class.ts +54 -0
- package/models/create-lead-request-dto.ts +12 -12
- package/models/index.ts +6 -0
- package/models/insured-object-class.ts +7 -7
- package/models/structured-address-class.ts +60 -0
- package/models/suggested-address-details-class.ts +96 -0
- package/models/validate-address-response-class.ts +56 -0
- package/package.json +1 -1
|
@@ -40,17 +40,16 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
40
40
|
/**
|
|
41
41
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
42
42
|
* @summary List documents
|
|
43
|
+
* @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
43
44
|
* @param {string} [authorization] Bearer Token
|
|
44
|
-
* @param {
|
|
45
|
-
* @param {
|
|
46
|
-
* @param {
|
|
47
|
-
* @param {
|
|
48
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
49
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
45
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
46
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
47
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
48
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
50
49
|
* @param {*} [options] Override http request option.
|
|
51
50
|
* @throws {RequiredError}
|
|
52
51
|
*/
|
|
53
|
-
listDocuments: (authorization?: string, pageSize?:
|
|
52
|
+
listDocuments: (filter: string, authorization?: string, pageSize?: number, pageToken?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
53
|
};
|
|
55
54
|
/**
|
|
56
55
|
* DocumentsApi - functional programming interface
|
|
@@ -78,17 +77,16 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
78
77
|
/**
|
|
79
78
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
80
79
|
* @summary List documents
|
|
80
|
+
* @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
81
81
|
* @param {string} [authorization] Bearer Token
|
|
82
|
-
* @param {
|
|
83
|
-
* @param {
|
|
84
|
-
* @param {
|
|
85
|
-
* @param {
|
|
86
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
87
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
82
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
83
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
84
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
85
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
88
86
|
* @param {*} [options] Override http request option.
|
|
89
87
|
* @throws {RequiredError}
|
|
90
88
|
*/
|
|
91
|
-
listDocuments(authorization?: string, pageSize?:
|
|
89
|
+
listDocuments(filter: string, authorization?: string, pageSize?: number, pageToken?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>>;
|
|
92
90
|
};
|
|
93
91
|
/**
|
|
94
92
|
* DocumentsApi - factory interface
|
|
@@ -116,17 +114,16 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
116
114
|
/**
|
|
117
115
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
118
116
|
* @summary List documents
|
|
117
|
+
* @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
119
118
|
* @param {string} [authorization] Bearer Token
|
|
120
|
-
* @param {
|
|
121
|
-
* @param {
|
|
122
|
-
* @param {
|
|
123
|
-
* @param {
|
|
124
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
125
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
119
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
120
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
121
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
122
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
126
123
|
* @param {*} [options] Override http request option.
|
|
127
124
|
* @throws {RequiredError}
|
|
128
125
|
*/
|
|
129
|
-
listDocuments(authorization?: string, pageSize?:
|
|
126
|
+
listDocuments(filter: string, authorization?: string, pageSize?: number, pageToken?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
|
|
130
127
|
};
|
|
131
128
|
/**
|
|
132
129
|
* Request parameters for createTemporaryDocument operation in DocumentsApi.
|
|
@@ -172,6 +169,12 @@ export interface DocumentsApiDownloadDocumentRequest {
|
|
|
172
169
|
* @interface DocumentsApiListDocumentsRequest
|
|
173
170
|
*/
|
|
174
171
|
export interface DocumentsApiListDocumentsRequest {
|
|
172
|
+
/**
|
|
173
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
174
|
+
* @type {string}
|
|
175
|
+
* @memberof DocumentsApiListDocuments
|
|
176
|
+
*/
|
|
177
|
+
readonly filter: string;
|
|
175
178
|
/**
|
|
176
179
|
* Bearer Token
|
|
177
180
|
* @type {string}
|
|
@@ -180,40 +183,28 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
180
183
|
readonly authorization?: string;
|
|
181
184
|
/**
|
|
182
185
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
183
|
-
* @type {
|
|
186
|
+
* @type {number}
|
|
184
187
|
* @memberof DocumentsApiListDocuments
|
|
185
188
|
*/
|
|
186
|
-
readonly pageSize?:
|
|
189
|
+
readonly pageSize?: number;
|
|
187
190
|
/**
|
|
188
191
|
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
189
|
-
* @type {
|
|
190
|
-
* @memberof DocumentsApiListDocuments
|
|
191
|
-
*/
|
|
192
|
-
readonly pageToken?: any;
|
|
193
|
-
/**
|
|
194
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
195
|
-
* @type {any}
|
|
196
|
-
* @memberof DocumentsApiListDocuments
|
|
197
|
-
*/
|
|
198
|
-
readonly filter?: any;
|
|
199
|
-
/**
|
|
200
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
201
|
-
* @type {any}
|
|
192
|
+
* @type {string}
|
|
202
193
|
* @memberof DocumentsApiListDocuments
|
|
203
194
|
*/
|
|
204
|
-
readonly
|
|
195
|
+
readonly pageToken?: string;
|
|
205
196
|
/**
|
|
206
197
|
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
207
|
-
* @type {
|
|
198
|
+
* @type {string}
|
|
208
199
|
* @memberof DocumentsApiListDocuments
|
|
209
200
|
*/
|
|
210
|
-
readonly order?:
|
|
201
|
+
readonly order?: string;
|
|
211
202
|
/**
|
|
212
203
|
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
213
|
-
* @type {
|
|
204
|
+
* @type {string}
|
|
214
205
|
* @memberof DocumentsApiListDocuments
|
|
215
206
|
*/
|
|
216
|
-
readonly expand?:
|
|
207
|
+
readonly expand?: string;
|
|
217
208
|
}
|
|
218
209
|
/**
|
|
219
210
|
* DocumentsApi - object-oriented interface
|
|
@@ -248,5 +239,5 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
248
239
|
* @throws {RequiredError}
|
|
249
240
|
* @memberof DocumentsApi
|
|
250
241
|
*/
|
|
251
|
-
listDocuments(requestParameters
|
|
242
|
+
listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any>>;
|
|
252
243
|
}
|
|
@@ -192,23 +192,24 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
192
192
|
/**
|
|
193
193
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
194
194
|
* @summary List documents
|
|
195
|
+
* @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
195
196
|
* @param {string} [authorization] Bearer Token
|
|
196
|
-
* @param {
|
|
197
|
-
* @param {
|
|
198
|
-
* @param {
|
|
199
|
-
* @param {
|
|
200
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
201
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
197
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
198
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
199
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
200
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
202
201
|
* @param {*} [options] Override http request option.
|
|
203
202
|
* @throws {RequiredError}
|
|
204
203
|
*/
|
|
205
|
-
listDocuments: function (authorization, pageSize, pageToken,
|
|
204
|
+
listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
|
|
206
205
|
if (options === void 0) { options = {}; }
|
|
207
206
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
207
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
208
|
return __generator(this, function (_a) {
|
|
210
209
|
switch (_a.label) {
|
|
211
210
|
case 0:
|
|
211
|
+
// verify required parameter 'filter' is not null or undefined
|
|
212
|
+
(0, common_1.assertParamExists)('listDocuments', 'filter', filter);
|
|
212
213
|
localVarPath = "/publicapi/v1/documents";
|
|
213
214
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
214
215
|
if (configuration) {
|
|
@@ -234,9 +235,6 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
234
235
|
if (filter !== undefined) {
|
|
235
236
|
localVarQueryParameter['filter'] = filter;
|
|
236
237
|
}
|
|
237
|
-
if (search !== undefined) {
|
|
238
|
-
localVarQueryParameter['search'] = search;
|
|
239
|
-
}
|
|
240
238
|
if (order !== undefined) {
|
|
241
239
|
localVarQueryParameter['order'] = order;
|
|
242
240
|
}
|
|
@@ -312,22 +310,21 @@ var DocumentsApiFp = function (configuration) {
|
|
|
312
310
|
/**
|
|
313
311
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
314
312
|
* @summary List documents
|
|
313
|
+
* @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
315
314
|
* @param {string} [authorization] Bearer Token
|
|
316
|
-
* @param {
|
|
317
|
-
* @param {
|
|
318
|
-
* @param {
|
|
319
|
-
* @param {
|
|
320
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
321
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
315
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
316
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
317
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
318
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
322
319
|
* @param {*} [options] Override http request option.
|
|
323
320
|
* @throws {RequiredError}
|
|
324
321
|
*/
|
|
325
|
-
listDocuments: function (authorization, pageSize, pageToken,
|
|
322
|
+
listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
|
|
326
323
|
return __awaiter(this, void 0, void 0, function () {
|
|
327
324
|
var localVarAxiosArgs;
|
|
328
325
|
return __generator(this, function (_a) {
|
|
329
326
|
switch (_a.label) {
|
|
330
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken,
|
|
327
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options)];
|
|
331
328
|
case 1:
|
|
332
329
|
localVarAxiosArgs = _a.sent();
|
|
333
330
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -370,18 +367,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
370
367
|
/**
|
|
371
368
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
372
369
|
* @summary List documents
|
|
370
|
+
* @param {string} filter Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
373
371
|
* @param {string} [authorization] Bearer Token
|
|
374
|
-
* @param {
|
|
375
|
-
* @param {
|
|
376
|
-
* @param {
|
|
377
|
-
* @param {
|
|
378
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
379
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
372
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
373
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
374
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
375
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
380
376
|
* @param {*} [options] Override http request option.
|
|
381
377
|
* @throws {RequiredError}
|
|
382
378
|
*/
|
|
383
|
-
listDocuments: function (authorization, pageSize, pageToken,
|
|
384
|
-
return localVarFp.listDocuments(authorization, pageSize, pageToken,
|
|
379
|
+
listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
|
|
380
|
+
return localVarFp.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
385
381
|
},
|
|
386
382
|
};
|
|
387
383
|
};
|
|
@@ -431,8 +427,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
431
427
|
*/
|
|
432
428
|
DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
|
|
433
429
|
var _this = this;
|
|
434
|
-
|
|
435
|
-
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
430
|
+
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
436
431
|
};
|
|
437
432
|
return DocumentsApi;
|
|
438
433
|
}(base_1.BaseAPI));
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -27,6 +27,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
__exportStar(require("./api/address-completions-validations-api"), exports);
|
|
30
31
|
__exportStar(require("./api/documents-api"), exports);
|
|
31
32
|
__exportStar(require("./api/leads-api"), exports);
|
|
32
33
|
__exportStar(require("./api/notifications-api"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { SuggestedAddressDetailsClass } from './suggested-address-details-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddressCompletionItemClass
|
|
17
|
+
*/
|
|
18
|
+
export interface AddressCompletionItemClass {
|
|
19
|
+
/**
|
|
20
|
+
* Detailed breakdown of the address suggestion
|
|
21
|
+
* @type {SuggestedAddressDetailsClass}
|
|
22
|
+
* @memberof AddressCompletionItemClass
|
|
23
|
+
*/
|
|
24
|
+
'addressDetails': SuggestedAddressDetailsClass;
|
|
25
|
+
/**
|
|
26
|
+
* The Suggestion ID
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AddressCompletionItemClass
|
|
29
|
+
*/
|
|
30
|
+
'id': string;
|
|
31
|
+
/**
|
|
32
|
+
* Language of the suggestion
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AddressCompletionItemClass
|
|
35
|
+
*/
|
|
36
|
+
'language': string;
|
|
37
|
+
/**
|
|
38
|
+
* Title of the suggestion, one liner address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AddressCompletionItemClass
|
|
41
|
+
*/
|
|
42
|
+
'title': string;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates the granularity of the suggestion to a street or a house number
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AddressCompletionItemClass
|
|
47
|
+
*/
|
|
48
|
+
'resultType'?: string;
|
|
49
|
+
}
|
|
@@ -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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { AddressCompletionItemClass } from './address-completion-item-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddressCompletionResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface AddressCompletionResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* List of completion suggestions
|
|
21
|
+
* @type {AddressCompletionItemClass}
|
|
22
|
+
* @memberof AddressCompletionResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'items': AddressCompletionItemClass;
|
|
25
|
+
}
|
|
@@ -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 });
|
|
@@ -0,0 +1,48 @@
|
|
|
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 AddressFieldScoreClass
|
|
16
|
+
*/
|
|
17
|
+
export interface AddressFieldScoreClass {
|
|
18
|
+
/**
|
|
19
|
+
* Score for the city field
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof AddressFieldScoreClass
|
|
22
|
+
*/
|
|
23
|
+
'city'?: object;
|
|
24
|
+
/**
|
|
25
|
+
* Score for the city field
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof AddressFieldScoreClass
|
|
28
|
+
*/
|
|
29
|
+
'country'?: object;
|
|
30
|
+
/**
|
|
31
|
+
* Score for the city field
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof AddressFieldScoreClass
|
|
34
|
+
*/
|
|
35
|
+
'houseNumber'?: object;
|
|
36
|
+
/**
|
|
37
|
+
* Score for the city field
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof AddressFieldScoreClass
|
|
40
|
+
*/
|
|
41
|
+
'postalCode'?: object;
|
|
42
|
+
/**
|
|
43
|
+
* Score for the city field
|
|
44
|
+
* @type {object}
|
|
45
|
+
* @memberof AddressFieldScoreClass
|
|
46
|
+
*/
|
|
47
|
+
'street'?: object;
|
|
48
|
+
}
|
|
@@ -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 });
|
|
@@ -38,6 +38,18 @@ export interface CreateLeadRequestDto {
|
|
|
38
38
|
* @memberof CreateLeadRequestDto
|
|
39
39
|
*/
|
|
40
40
|
'productCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* Account. The create lead request should either contain accountCode or account.
|
|
43
|
+
* @type {CreateAccountRequestDto}
|
|
44
|
+
* @memberof CreateLeadRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'account'?: CreateAccountRequestDto;
|
|
47
|
+
/**
|
|
48
|
+
* Account code. The create lead request should either contain accountCode or account.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateLeadRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'accountCode'?: string;
|
|
41
53
|
/**
|
|
42
54
|
*
|
|
43
55
|
* @type {Array<PolicyObjectRequestDto>}
|
|
@@ -74,16 +86,4 @@ export interface CreateLeadRequestDto {
|
|
|
74
86
|
* @memberof CreateLeadRequestDto
|
|
75
87
|
*/
|
|
76
88
|
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {CreateAccountRequestDto}
|
|
80
|
-
* @memberof CreateLeadRequestDto
|
|
81
|
-
*/
|
|
82
|
-
'account'?: CreateAccountRequestDto;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof CreateLeadRequestDto
|
|
87
|
-
*/
|
|
88
|
-
'accountCode': string;
|
|
89
89
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from './address-completion-item-class';
|
|
2
|
+
export * from './address-completion-response-class';
|
|
3
|
+
export * from './address-field-score-class';
|
|
1
4
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
2
5
|
export * from './complete-payment-setup-request-dto';
|
|
3
6
|
export * from './complete-payment-setup-response-class';
|
|
@@ -44,6 +47,9 @@ export * from './product-field-class';
|
|
|
44
47
|
export * from './product-version-class';
|
|
45
48
|
export * from './send-notification-request-dto';
|
|
46
49
|
export * from './send-notification-response-class';
|
|
50
|
+
export * from './structured-address-class';
|
|
51
|
+
export * from './suggested-address-details-class';
|
|
47
52
|
export * from './update-lead-request-dto';
|
|
48
53
|
export * from './update-lead-response-class';
|
|
49
54
|
export * from './uploaded-document-dto';
|
|
55
|
+
export * from './validate-address-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./address-completion-item-class"), exports);
|
|
18
|
+
__exportStar(require("./address-completion-response-class"), exports);
|
|
19
|
+
__exportStar(require("./address-field-score-class"), exports);
|
|
17
20
|
__exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
|
|
18
21
|
__exportStar(require("./complete-payment-setup-request-dto"), exports);
|
|
19
22
|
__exportStar(require("./complete-payment-setup-response-class"), exports);
|
|
@@ -60,6 +63,9 @@ __exportStar(require("./product-field-class"), exports);
|
|
|
60
63
|
__exportStar(require("./product-version-class"), exports);
|
|
61
64
|
__exportStar(require("./send-notification-request-dto"), exports);
|
|
62
65
|
__exportStar(require("./send-notification-response-class"), exports);
|
|
66
|
+
__exportStar(require("./structured-address-class"), exports);
|
|
67
|
+
__exportStar(require("./suggested-address-details-class"), exports);
|
|
63
68
|
__exportStar(require("./update-lead-request-dto"), exports);
|
|
64
69
|
__exportStar(require("./update-lead-response-class"), exports);
|
|
65
70
|
__exportStar(require("./uploaded-document-dto"), exports);
|
|
71
|
+
__exportStar(require("./validate-address-response-class"), exports);
|
|
@@ -53,23 +53,23 @@ export interface InsuredObjectClass {
|
|
|
53
53
|
*/
|
|
54
54
|
'productFields': Array<ProductFieldClass>;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {
|
|
56
|
+
* A boolean value indicating whether the current insured object is multiple or not default to false.
|
|
57
|
+
* @type {boolean}
|
|
58
58
|
* @memberof InsuredObjectClass
|
|
59
59
|
*/
|
|
60
|
-
'
|
|
60
|
+
'isMultiInsuredObject': boolean;
|
|
61
61
|
/**
|
|
62
|
-
* Minimum insured
|
|
62
|
+
* Minimum insured objects count
|
|
63
63
|
* @type {number}
|
|
64
64
|
* @memberof InsuredObjectClass
|
|
65
65
|
*/
|
|
66
|
-
'
|
|
66
|
+
'minInsuredObjectsCount'?: number;
|
|
67
67
|
/**
|
|
68
|
-
* Maximum insured
|
|
68
|
+
* Maximum insured objects count
|
|
69
69
|
* @type {number}
|
|
70
70
|
* @memberof InsuredObjectClass
|
|
71
71
|
*/
|
|
72
|
-
'
|
|
72
|
+
'maxInsuredObjectsCount'?: number;
|
|
73
73
|
/**
|
|
74
74
|
* Time at which the object was created.
|
|
75
75
|
* @type {string}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 StructuredAddressClass
|
|
16
|
+
*/
|
|
17
|
+
export interface StructuredAddressClass {
|
|
18
|
+
/**
|
|
19
|
+
* City of the address.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StructuredAddressClass
|
|
22
|
+
*/
|
|
23
|
+
'city': string;
|
|
24
|
+
/**
|
|
25
|
+
* List of broken down address components.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof StructuredAddressClass
|
|
28
|
+
*/
|
|
29
|
+
'components': Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Country of the address.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StructuredAddressClass
|
|
34
|
+
*/
|
|
35
|
+
'country': string;
|
|
36
|
+
/**
|
|
37
|
+
* House number of the address.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StructuredAddressClass
|
|
40
|
+
*/
|
|
41
|
+
'houseNumber': string;
|
|
42
|
+
/**
|
|
43
|
+
* Postal code of the address.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StructuredAddressClass
|
|
46
|
+
*/
|
|
47
|
+
'postalCode': string;
|
|
48
|
+
/**
|
|
49
|
+
* Street of the address.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof StructuredAddressClass
|
|
52
|
+
*/
|
|
53
|
+
'street': string;
|
|
54
|
+
}
|