@emilgroup/public-api-sdk-node 1.9.0 → 1.10.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 +2 -0
- package/README.md +2 -2
- package/api/documents-api.ts +187 -0
- package/dist/api/documents-api.d.ts +110 -0
- package/dist/api/documents-api.js +128 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/lead-class.d.ts +6 -0
- package/dist/models/list-product-documents-response-class.d.ts +31 -0
- package/dist/models/list-product-documents-response-class.js +15 -0
- package/dist/models/product-document-class.d.ts +91 -0
- package/dist/models/product-document-class.js +28 -0
- package/models/index.ts +2 -0
- package/models/lead-class.ts +6 -0
- package/models/list-product-documents-response-class.ts +37 -0
- package/models/product-document-class.ts +100 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -53,12 +53,14 @@ models/lead-class.ts
|
|
|
53
53
|
models/lead-policy-class.ts
|
|
54
54
|
models/lead-policy-object-class.ts
|
|
55
55
|
models/list-documents-response-class.ts
|
|
56
|
+
models/list-product-documents-response-class.ts
|
|
56
57
|
models/list-products-response-class.ts
|
|
57
58
|
models/payment-method-class.ts
|
|
58
59
|
models/policy-object-request-dto.ts
|
|
59
60
|
models/premium-override-dto.ts
|
|
60
61
|
models/premium-override-request-dto.ts
|
|
61
62
|
models/product-class.ts
|
|
63
|
+
models/product-document-class.ts
|
|
62
64
|
models/product-factor-class.ts
|
|
63
65
|
models/product-field-class.ts
|
|
64
66
|
models/product-version-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/public-api-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.10.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.10.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
24
24
|
import { CreateDocumentRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { ListDocumentsResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ListProductDocumentsResponseClass } from '../models';
|
|
27
29
|
// URLSearchParams not necessarily used
|
|
28
30
|
// @ts-ignore
|
|
29
31
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -185,6 +187,81 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
185
187
|
|
|
186
188
|
|
|
187
189
|
|
|
190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
url: toPathString(localVarUrlObj),
|
|
196
|
+
options: localVarRequestOptions,
|
|
197
|
+
};
|
|
198
|
+
},
|
|
199
|
+
/**
|
|
200
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
201
|
+
* @summary List product documents
|
|
202
|
+
* @param {string} productCode
|
|
203
|
+
* @param {string} [authorization] Bearer Token
|
|
204
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
205
|
+
* @param {any} [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.
|
|
206
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
207
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
208
|
+
* @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.
|
|
209
|
+
* @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.
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
listProductDocuments: async (productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
214
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
215
|
+
assertParamExists('listProductDocuments', 'productCode', productCode)
|
|
216
|
+
const localVarPath = `/publicapi/v1/documents/{productCode}`
|
|
217
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)));
|
|
218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
220
|
+
let baseOptions;
|
|
221
|
+
let baseAccessToken;
|
|
222
|
+
if (configuration) {
|
|
223
|
+
baseOptions = configuration.baseOptions;
|
|
224
|
+
baseAccessToken = configuration.accessToken;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
228
|
+
const localVarHeaderParameter = {} as any;
|
|
229
|
+
const localVarQueryParameter = {} as any;
|
|
230
|
+
|
|
231
|
+
// authentication bearer required
|
|
232
|
+
// http bearer authentication required
|
|
233
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
234
|
+
|
|
235
|
+
if (pageSize !== undefined) {
|
|
236
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (pageToken !== undefined) {
|
|
240
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (filter !== undefined) {
|
|
244
|
+
localVarQueryParameter['filter'] = filter;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (search !== undefined) {
|
|
248
|
+
localVarQueryParameter['search'] = search;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (order !== undefined) {
|
|
252
|
+
localVarQueryParameter['order'] = order;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (expand !== undefined) {
|
|
256
|
+
localVarQueryParameter['expand'] = expand;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
260
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
188
265
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
189
266
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
190
267
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -244,6 +321,24 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
244
321
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options);
|
|
245
322
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
246
323
|
},
|
|
324
|
+
/**
|
|
325
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
326
|
+
* @summary List product documents
|
|
327
|
+
* @param {string} productCode
|
|
328
|
+
* @param {string} [authorization] Bearer Token
|
|
329
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
330
|
+
* @param {any} [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.
|
|
331
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
332
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
333
|
+
* @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.
|
|
334
|
+
* @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.
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
async listProductDocuments(productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
|
|
339
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
340
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
341
|
+
},
|
|
247
342
|
}
|
|
248
343
|
};
|
|
249
344
|
|
|
@@ -291,6 +386,23 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
291
386
|
listDocuments(filter: string, authorization?: string, pageSize?: number, pageToken?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
292
387
|
return localVarFp.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options).then((request) => request(axios, basePath));
|
|
293
388
|
},
|
|
389
|
+
/**
|
|
390
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
391
|
+
* @summary List product documents
|
|
392
|
+
* @param {string} productCode
|
|
393
|
+
* @param {string} [authorization] Bearer Token
|
|
394
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
395
|
+
* @param {any} [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.
|
|
396
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
397
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
398
|
+
* @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.
|
|
399
|
+
* @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.
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
listProductDocuments(productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
|
|
404
|
+
return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
405
|
+
},
|
|
294
406
|
};
|
|
295
407
|
};
|
|
296
408
|
|
|
@@ -385,6 +497,69 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
385
497
|
readonly expand?: string
|
|
386
498
|
}
|
|
387
499
|
|
|
500
|
+
/**
|
|
501
|
+
* Request parameters for listProductDocuments operation in DocumentsApi.
|
|
502
|
+
* @export
|
|
503
|
+
* @interface DocumentsApiListProductDocumentsRequest
|
|
504
|
+
*/
|
|
505
|
+
export interface DocumentsApiListProductDocumentsRequest {
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @type {string}
|
|
509
|
+
* @memberof DocumentsApiListProductDocuments
|
|
510
|
+
*/
|
|
511
|
+
readonly productCode: string
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Bearer Token
|
|
515
|
+
* @type {string}
|
|
516
|
+
* @memberof DocumentsApiListProductDocuments
|
|
517
|
+
*/
|
|
518
|
+
readonly authorization?: string
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
522
|
+
* @type {any}
|
|
523
|
+
* @memberof DocumentsApiListProductDocuments
|
|
524
|
+
*/
|
|
525
|
+
readonly pageSize?: any
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* 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.
|
|
529
|
+
* @type {any}
|
|
530
|
+
* @memberof DocumentsApiListProductDocuments
|
|
531
|
+
*/
|
|
532
|
+
readonly pageToken?: any
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
536
|
+
* @type {any}
|
|
537
|
+
* @memberof DocumentsApiListProductDocuments
|
|
538
|
+
*/
|
|
539
|
+
readonly filter?: any
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
543
|
+
* @type {any}
|
|
544
|
+
* @memberof DocumentsApiListProductDocuments
|
|
545
|
+
*/
|
|
546
|
+
readonly search?: any
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* 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.
|
|
550
|
+
* @type {any}
|
|
551
|
+
* @memberof DocumentsApiListProductDocuments
|
|
552
|
+
*/
|
|
553
|
+
readonly order?: any
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* 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.
|
|
557
|
+
* @type {any}
|
|
558
|
+
* @memberof DocumentsApiListProductDocuments
|
|
559
|
+
*/
|
|
560
|
+
readonly expand?: any
|
|
561
|
+
}
|
|
562
|
+
|
|
388
563
|
/**
|
|
389
564
|
* DocumentsApi - object-oriented interface
|
|
390
565
|
* @export
|
|
@@ -427,4 +602,16 @@ export class DocumentsApi extends BaseAPI {
|
|
|
427
602
|
public listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig) {
|
|
428
603
|
return DocumentsApiFp(this.configuration).listDocuments(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
429
604
|
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
608
|
+
* @summary List product documents
|
|
609
|
+
* @param {DocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
* @memberof DocumentsApi
|
|
613
|
+
*/
|
|
614
|
+
public listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
|
|
615
|
+
return DocumentsApiFp(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
616
|
+
}
|
|
430
617
|
}
|
|
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateDocumentRequestDto } from '../models';
|
|
16
16
|
import { ListDocumentsResponseClass } from '../models';
|
|
17
|
+
import { ListProductDocumentsResponseClass } from '../models';
|
|
17
18
|
/**
|
|
18
19
|
* DocumentsApi - axios parameter creator
|
|
19
20
|
* @export
|
|
@@ -50,6 +51,21 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
50
51
|
* @throws {RequiredError}
|
|
51
52
|
*/
|
|
52
53
|
listDocuments: (filter: string, authorization?: string, pageSize?: number, pageToken?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
|
+
/**
|
|
55
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
56
|
+
* @summary List product documents
|
|
57
|
+
* @param {string} productCode
|
|
58
|
+
* @param {string} [authorization] Bearer Token
|
|
59
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
60
|
+
* @param {any} [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.
|
|
61
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
62
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
63
|
+
* @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.
|
|
64
|
+
* @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.
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
listProductDocuments: (productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
69
|
};
|
|
54
70
|
/**
|
|
55
71
|
* DocumentsApi - functional programming interface
|
|
@@ -87,6 +103,21 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
87
103
|
* @throws {RequiredError}
|
|
88
104
|
*/
|
|
89
105
|
listDocuments(filter: string, authorization?: string, pageSize?: number, pageToken?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>>;
|
|
106
|
+
/**
|
|
107
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
108
|
+
* @summary List product documents
|
|
109
|
+
* @param {string} productCode
|
|
110
|
+
* @param {string} [authorization] Bearer Token
|
|
111
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
112
|
+
* @param {any} [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.
|
|
113
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
114
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
115
|
+
* @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.
|
|
116
|
+
* @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.
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
listProductDocuments(productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
90
121
|
};
|
|
91
122
|
/**
|
|
92
123
|
* DocumentsApi - factory interface
|
|
@@ -124,6 +155,21 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
124
155
|
* @throws {RequiredError}
|
|
125
156
|
*/
|
|
126
157
|
listDocuments(filter: string, authorization?: string, pageSize?: number, pageToken?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
|
|
158
|
+
/**
|
|
159
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
160
|
+
* @summary List product documents
|
|
161
|
+
* @param {string} productCode
|
|
162
|
+
* @param {string} [authorization] Bearer Token
|
|
163
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
164
|
+
* @param {any} [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.
|
|
165
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
166
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
167
|
+
* @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.
|
|
168
|
+
* @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.
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
listProductDocuments(productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
127
173
|
};
|
|
128
174
|
/**
|
|
129
175
|
* Request parameters for createTemporaryDocument operation in DocumentsApi.
|
|
@@ -206,6 +252,61 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
206
252
|
*/
|
|
207
253
|
readonly expand?: string;
|
|
208
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* Request parameters for listProductDocuments operation in DocumentsApi.
|
|
257
|
+
* @export
|
|
258
|
+
* @interface DocumentsApiListProductDocumentsRequest
|
|
259
|
+
*/
|
|
260
|
+
export interface DocumentsApiListProductDocumentsRequest {
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @type {string}
|
|
264
|
+
* @memberof DocumentsApiListProductDocuments
|
|
265
|
+
*/
|
|
266
|
+
readonly productCode: string;
|
|
267
|
+
/**
|
|
268
|
+
* Bearer Token
|
|
269
|
+
* @type {string}
|
|
270
|
+
* @memberof DocumentsApiListProductDocuments
|
|
271
|
+
*/
|
|
272
|
+
readonly authorization?: string;
|
|
273
|
+
/**
|
|
274
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
275
|
+
* @type {any}
|
|
276
|
+
* @memberof DocumentsApiListProductDocuments
|
|
277
|
+
*/
|
|
278
|
+
readonly pageSize?: any;
|
|
279
|
+
/**
|
|
280
|
+
* 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.
|
|
281
|
+
* @type {any}
|
|
282
|
+
* @memberof DocumentsApiListProductDocuments
|
|
283
|
+
*/
|
|
284
|
+
readonly pageToken?: any;
|
|
285
|
+
/**
|
|
286
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
287
|
+
* @type {any}
|
|
288
|
+
* @memberof DocumentsApiListProductDocuments
|
|
289
|
+
*/
|
|
290
|
+
readonly filter?: any;
|
|
291
|
+
/**
|
|
292
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
293
|
+
* @type {any}
|
|
294
|
+
* @memberof DocumentsApiListProductDocuments
|
|
295
|
+
*/
|
|
296
|
+
readonly search?: any;
|
|
297
|
+
/**
|
|
298
|
+
* 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.
|
|
299
|
+
* @type {any}
|
|
300
|
+
* @memberof DocumentsApiListProductDocuments
|
|
301
|
+
*/
|
|
302
|
+
readonly order?: any;
|
|
303
|
+
/**
|
|
304
|
+
* 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.
|
|
305
|
+
* @type {any}
|
|
306
|
+
* @memberof DocumentsApiListProductDocuments
|
|
307
|
+
*/
|
|
308
|
+
readonly expand?: any;
|
|
309
|
+
}
|
|
209
310
|
/**
|
|
210
311
|
* DocumentsApi - object-oriented interface
|
|
211
312
|
* @export
|
|
@@ -240,4 +341,13 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
240
341
|
* @memberof DocumentsApi
|
|
241
342
|
*/
|
|
242
343
|
listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any>>;
|
|
344
|
+
/**
|
|
345
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
346
|
+
* @summary List product documents
|
|
347
|
+
* @param {DocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
* @memberof DocumentsApi
|
|
351
|
+
*/
|
|
352
|
+
listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any>>;
|
|
243
353
|
}
|
|
@@ -259,6 +259,78 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
259
259
|
});
|
|
260
260
|
});
|
|
261
261
|
},
|
|
262
|
+
/**
|
|
263
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
264
|
+
* @summary List product documents
|
|
265
|
+
* @param {string} productCode
|
|
266
|
+
* @param {string} [authorization] Bearer Token
|
|
267
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
268
|
+
* @param {any} [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.
|
|
269
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
270
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
271
|
+
* @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.
|
|
272
|
+
* @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.
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
277
|
+
if (options === void 0) { options = {}; }
|
|
278
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
279
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
280
|
+
return __generator(this, function (_a) {
|
|
281
|
+
switch (_a.label) {
|
|
282
|
+
case 0:
|
|
283
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
284
|
+
(0, common_1.assertParamExists)('listProductDocuments', 'productCode', productCode);
|
|
285
|
+
localVarPath = "/publicapi/v1/documents/{productCode}"
|
|
286
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
|
|
287
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
288
|
+
if (configuration) {
|
|
289
|
+
baseOptions = configuration.baseOptions;
|
|
290
|
+
baseAccessToken = configuration.accessToken;
|
|
291
|
+
}
|
|
292
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
293
|
+
localVarHeaderParameter = {};
|
|
294
|
+
localVarQueryParameter = {};
|
|
295
|
+
// authentication bearer required
|
|
296
|
+
// http bearer authentication required
|
|
297
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
298
|
+
case 1:
|
|
299
|
+
// authentication bearer required
|
|
300
|
+
// http bearer authentication required
|
|
301
|
+
_a.sent();
|
|
302
|
+
if (pageSize !== undefined) {
|
|
303
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
304
|
+
}
|
|
305
|
+
if (pageToken !== undefined) {
|
|
306
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
307
|
+
}
|
|
308
|
+
if (filter !== undefined) {
|
|
309
|
+
localVarQueryParameter['filter'] = filter;
|
|
310
|
+
}
|
|
311
|
+
if (search !== undefined) {
|
|
312
|
+
localVarQueryParameter['search'] = search;
|
|
313
|
+
}
|
|
314
|
+
if (order !== undefined) {
|
|
315
|
+
localVarQueryParameter['order'] = order;
|
|
316
|
+
}
|
|
317
|
+
if (expand !== undefined) {
|
|
318
|
+
localVarQueryParameter['expand'] = expand;
|
|
319
|
+
}
|
|
320
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
321
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
322
|
+
}
|
|
323
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
324
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
325
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
326
|
+
return [2 /*return*/, {
|
|
327
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
328
|
+
options: localVarRequestOptions,
|
|
329
|
+
}];
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
},
|
|
262
334
|
};
|
|
263
335
|
};
|
|
264
336
|
exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
|
|
@@ -336,6 +408,33 @@ var DocumentsApiFp = function (configuration) {
|
|
|
336
408
|
});
|
|
337
409
|
});
|
|
338
410
|
},
|
|
411
|
+
/**
|
|
412
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
413
|
+
* @summary List product documents
|
|
414
|
+
* @param {string} productCode
|
|
415
|
+
* @param {string} [authorization] Bearer Token
|
|
416
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
417
|
+
* @param {any} [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.
|
|
418
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
419
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
420
|
+
* @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.
|
|
421
|
+
* @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.
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
*/
|
|
425
|
+
listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
426
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
427
|
+
var localVarAxiosArgs;
|
|
428
|
+
return __generator(this, function (_a) {
|
|
429
|
+
switch (_a.label) {
|
|
430
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
431
|
+
case 1:
|
|
432
|
+
localVarAxiosArgs = _a.sent();
|
|
433
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
});
|
|
437
|
+
},
|
|
339
438
|
};
|
|
340
439
|
};
|
|
341
440
|
exports.DocumentsApiFp = DocumentsApiFp;
|
|
@@ -383,6 +482,23 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
383
482
|
listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
|
|
384
483
|
return localVarFp.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
385
484
|
},
|
|
485
|
+
/**
|
|
486
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
487
|
+
* @summary List product documents
|
|
488
|
+
* @param {string} productCode
|
|
489
|
+
* @param {string} [authorization] Bearer Token
|
|
490
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
491
|
+
* @param {any} [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.
|
|
492
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
493
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
494
|
+
* @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.
|
|
495
|
+
* @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.
|
|
496
|
+
* @param {*} [options] Override http request option.
|
|
497
|
+
* @throws {RequiredError}
|
|
498
|
+
*/
|
|
499
|
+
listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
500
|
+
return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
501
|
+
},
|
|
386
502
|
};
|
|
387
503
|
};
|
|
388
504
|
exports.DocumentsApiFactory = DocumentsApiFactory;
|
|
@@ -433,6 +549,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
433
549
|
var _this = this;
|
|
434
550
|
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); });
|
|
435
551
|
};
|
|
552
|
+
/**
|
|
553
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
554
|
+
* @summary List product documents
|
|
555
|
+
* @param {DocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
556
|
+
* @param {*} [options] Override http request option.
|
|
557
|
+
* @throws {RequiredError}
|
|
558
|
+
* @memberof DocumentsApi
|
|
559
|
+
*/
|
|
560
|
+
DocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
|
|
561
|
+
var _this = this;
|
|
562
|
+
return (0, exports.DocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
563
|
+
};
|
|
436
564
|
return DocumentsApi;
|
|
437
565
|
}(base_1.BaseAPI));
|
|
438
566
|
exports.DocumentsApi = DocumentsApi;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -36,12 +36,14 @@ export * from './lead-class';
|
|
|
36
36
|
export * from './lead-policy-class';
|
|
37
37
|
export * from './lead-policy-object-class';
|
|
38
38
|
export * from './list-documents-response-class';
|
|
39
|
+
export * from './list-product-documents-response-class';
|
|
39
40
|
export * from './list-products-response-class';
|
|
40
41
|
export * from './payment-method-class';
|
|
41
42
|
export * from './policy-object-request-dto';
|
|
42
43
|
export * from './premium-override-dto';
|
|
43
44
|
export * from './premium-override-request-dto';
|
|
44
45
|
export * from './product-class';
|
|
46
|
+
export * from './product-document-class';
|
|
45
47
|
export * from './product-factor-class';
|
|
46
48
|
export * from './product-field-class';
|
|
47
49
|
export * from './product-version-class';
|
package/dist/models/index.js
CHANGED
|
@@ -52,12 +52,14 @@ __exportStar(require("./lead-class"), exports);
|
|
|
52
52
|
__exportStar(require("./lead-policy-class"), exports);
|
|
53
53
|
__exportStar(require("./lead-policy-object-class"), exports);
|
|
54
54
|
__exportStar(require("./list-documents-response-class"), exports);
|
|
55
|
+
__exportStar(require("./list-product-documents-response-class"), exports);
|
|
55
56
|
__exportStar(require("./list-products-response-class"), exports);
|
|
56
57
|
__exportStar(require("./payment-method-class"), exports);
|
|
57
58
|
__exportStar(require("./policy-object-request-dto"), exports);
|
|
58
59
|
__exportStar(require("./premium-override-dto"), exports);
|
|
59
60
|
__exportStar(require("./premium-override-request-dto"), exports);
|
|
60
61
|
__exportStar(require("./product-class"), exports);
|
|
62
|
+
__exportStar(require("./product-document-class"), exports);
|
|
61
63
|
__exportStar(require("./product-factor-class"), exports);
|
|
62
64
|
__exportStar(require("./product-field-class"), exports);
|
|
63
65
|
__exportStar(require("./product-version-class"), exports);
|
|
@@ -81,6 +81,12 @@ export interface LeadClass {
|
|
|
81
81
|
* @memberof LeadClass
|
|
82
82
|
*/
|
|
83
83
|
'quote': InvoiceClass;
|
|
84
|
+
/**
|
|
85
|
+
* ERN of the organization that created the lead.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof LeadClass
|
|
88
|
+
*/
|
|
89
|
+
'ern': string;
|
|
84
90
|
/**
|
|
85
91
|
* Time at which the object was created.
|
|
86
92
|
* @type {string}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { ProductDocumentClass } from './product-document-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListProductDocumentsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ListProductDocumentsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The list of documents.
|
|
21
|
+
* @type {Array<ProductDocumentClass>}
|
|
22
|
+
* @memberof ListProductDocumentsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'items': Array<ProductDocumentClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Next page token.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListProductDocumentsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'nextPageToken': string;
|
|
31
|
+
}
|
|
@@ -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,91 @@
|
|
|
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 ProductDocumentClass
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductDocumentClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProductDocumentClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the object.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductDocumentClass
|
|
28
|
+
*/
|
|
29
|
+
'code': string;
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the object.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductDocumentClass
|
|
34
|
+
*/
|
|
35
|
+
'productCode': string;
|
|
36
|
+
/**
|
|
37
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ProductDocumentClass
|
|
40
|
+
*/
|
|
41
|
+
'productVersionId': number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ProductDocumentClass
|
|
46
|
+
*/
|
|
47
|
+
'type': string;
|
|
48
|
+
/**
|
|
49
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ProductDocumentClass
|
|
52
|
+
*/
|
|
53
|
+
'description': string;
|
|
54
|
+
/**
|
|
55
|
+
* The unique key used by Amazon Simple Storage Service (S3).
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ProductDocumentClass
|
|
58
|
+
*/
|
|
59
|
+
's3Key': string;
|
|
60
|
+
/**
|
|
61
|
+
* Type of the document expressed with its file extension.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ProductDocumentClass
|
|
64
|
+
*/
|
|
65
|
+
'contentType': ProductDocumentClassContentTypeEnum;
|
|
66
|
+
/**
|
|
67
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ProductDocumentClass
|
|
70
|
+
*/
|
|
71
|
+
'productSlug': string;
|
|
72
|
+
/**
|
|
73
|
+
* Time at which the object was created.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ProductDocumentClass
|
|
76
|
+
*/
|
|
77
|
+
'createdAt': string;
|
|
78
|
+
}
|
|
79
|
+
export declare const ProductDocumentClassContentTypeEnum: {
|
|
80
|
+
readonly Pdf: "pdf";
|
|
81
|
+
readonly Jpg: "jpg";
|
|
82
|
+
readonly Png: "png";
|
|
83
|
+
readonly Gz: "gz";
|
|
84
|
+
readonly Csv: "csv";
|
|
85
|
+
readonly Doc: "doc";
|
|
86
|
+
readonly Docx: "docx";
|
|
87
|
+
readonly Html: "html";
|
|
88
|
+
readonly Json: "json";
|
|
89
|
+
readonly Xml: "xml";
|
|
90
|
+
};
|
|
91
|
+
export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProductDocumentClassContentTypeEnum = void 0;
|
|
17
|
+
exports.ProductDocumentClassContentTypeEnum = {
|
|
18
|
+
Pdf: 'pdf',
|
|
19
|
+
Jpg: 'jpg',
|
|
20
|
+
Png: 'png',
|
|
21
|
+
Gz: 'gz',
|
|
22
|
+
Csv: 'csv',
|
|
23
|
+
Doc: 'doc',
|
|
24
|
+
Docx: 'docx',
|
|
25
|
+
Html: 'html',
|
|
26
|
+
Json: 'json',
|
|
27
|
+
Xml: 'xml'
|
|
28
|
+
};
|
package/models/index.ts
CHANGED
|
@@ -36,12 +36,14 @@ export * from './lead-class';
|
|
|
36
36
|
export * from './lead-policy-class';
|
|
37
37
|
export * from './lead-policy-object-class';
|
|
38
38
|
export * from './list-documents-response-class';
|
|
39
|
+
export * from './list-product-documents-response-class';
|
|
39
40
|
export * from './list-products-response-class';
|
|
40
41
|
export * from './payment-method-class';
|
|
41
42
|
export * from './policy-object-request-dto';
|
|
42
43
|
export * from './premium-override-dto';
|
|
43
44
|
export * from './premium-override-request-dto';
|
|
44
45
|
export * from './product-class';
|
|
46
|
+
export * from './product-document-class';
|
|
45
47
|
export * from './product-factor-class';
|
|
46
48
|
export * from './product-field-class';
|
|
47
49
|
export * from './product-version-class';
|
package/models/lead-class.ts
CHANGED
|
@@ -86,6 +86,12 @@ export interface LeadClass {
|
|
|
86
86
|
* @memberof LeadClass
|
|
87
87
|
*/
|
|
88
88
|
'quote': InvoiceClass;
|
|
89
|
+
/**
|
|
90
|
+
* ERN of the organization that created the lead.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof LeadClass
|
|
93
|
+
*/
|
|
94
|
+
'ern': string;
|
|
89
95
|
/**
|
|
90
96
|
* Time at which the object was created.
|
|
91
97
|
* @type {string}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil PublicAPI
|
|
5
|
+
* The Emil Public API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { ProductDocumentClass } from './product-document-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListProductDocumentsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListProductDocumentsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The list of documents.
|
|
26
|
+
* @type {Array<ProductDocumentClass>}
|
|
27
|
+
* @memberof ListProductDocumentsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<ProductDocumentClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListProductDocumentsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
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 ProductDocumentClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ProductDocumentClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof ProductDocumentClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for the object.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ProductDocumentClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier for the object.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ProductDocumentClass
|
|
39
|
+
*/
|
|
40
|
+
'productCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof ProductDocumentClass
|
|
45
|
+
*/
|
|
46
|
+
'productVersionId': number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ProductDocumentClass
|
|
51
|
+
*/
|
|
52
|
+
'type': string;
|
|
53
|
+
/**
|
|
54
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ProductDocumentClass
|
|
57
|
+
*/
|
|
58
|
+
'description': string;
|
|
59
|
+
/**
|
|
60
|
+
* The unique key used by Amazon Simple Storage Service (S3).
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ProductDocumentClass
|
|
63
|
+
*/
|
|
64
|
+
's3Key': string;
|
|
65
|
+
/**
|
|
66
|
+
* Type of the document expressed with its file extension.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ProductDocumentClass
|
|
69
|
+
*/
|
|
70
|
+
'contentType': ProductDocumentClassContentTypeEnum;
|
|
71
|
+
/**
|
|
72
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ProductDocumentClass
|
|
75
|
+
*/
|
|
76
|
+
'productSlug': string;
|
|
77
|
+
/**
|
|
78
|
+
* Time at which the object was created.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof ProductDocumentClass
|
|
81
|
+
*/
|
|
82
|
+
'createdAt': string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const ProductDocumentClassContentTypeEnum = {
|
|
86
|
+
Pdf: 'pdf',
|
|
87
|
+
Jpg: 'jpg',
|
|
88
|
+
Png: 'png',
|
|
89
|
+
Gz: 'gz',
|
|
90
|
+
Csv: 'csv',
|
|
91
|
+
Doc: 'doc',
|
|
92
|
+
Docx: 'docx',
|
|
93
|
+
Html: 'html',
|
|
94
|
+
Json: 'json',
|
|
95
|
+
Xml: 'xml'
|
|
96
|
+
} as const;
|
|
97
|
+
|
|
98
|
+
export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
|
|
99
|
+
|
|
100
|
+
|