@emilgroup/public-api-sdk 1.7.0 → 1.9.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/policy-object-request-dto.d.ts +6 -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/policy-object-request-dto.ts +6 -0
- package/models/product-document-class.ts +100 -0
- package/package.json +1 -2
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@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.9.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.9.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
|
/**
|
|
28
30
|
* DocumentsApi - axios parameter creator
|
|
29
31
|
* @export
|
|
@@ -181,6 +183,81 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
181
183
|
|
|
182
184
|
|
|
183
185
|
|
|
186
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
187
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
189
|
+
|
|
190
|
+
return {
|
|
191
|
+
url: toPathString(localVarUrlObj),
|
|
192
|
+
options: localVarRequestOptions,
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
/**
|
|
196
|
+
* 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.
|
|
197
|
+
* @summary List product documents
|
|
198
|
+
* @param {string} productCode
|
|
199
|
+
* @param {string} [authorization] Bearer Token
|
|
200
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
201
|
+
* @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.
|
|
202
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
203
|
+
* @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.
|
|
204
|
+
* @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.
|
|
205
|
+
* @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.
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
listProductDocuments: async (productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
210
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
211
|
+
assertParamExists('listProductDocuments', 'productCode', productCode)
|
|
212
|
+
const localVarPath = `/publicapi/v1/documents/{productCode}`
|
|
213
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)));
|
|
214
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
215
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
216
|
+
let baseOptions;
|
|
217
|
+
let baseAccessToken;
|
|
218
|
+
if (configuration) {
|
|
219
|
+
baseOptions = configuration.baseOptions;
|
|
220
|
+
baseAccessToken = configuration.accessToken;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
224
|
+
const localVarHeaderParameter = {} as any;
|
|
225
|
+
const localVarQueryParameter = {} as any;
|
|
226
|
+
|
|
227
|
+
// authentication bearer required
|
|
228
|
+
// http bearer authentication required
|
|
229
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
230
|
+
|
|
231
|
+
if (pageSize !== undefined) {
|
|
232
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (pageToken !== undefined) {
|
|
236
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (filter !== undefined) {
|
|
240
|
+
localVarQueryParameter['filter'] = filter;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (search !== undefined) {
|
|
244
|
+
localVarQueryParameter['search'] = search;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (order !== undefined) {
|
|
248
|
+
localVarQueryParameter['order'] = order;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (expand !== undefined) {
|
|
252
|
+
localVarQueryParameter['expand'] = expand;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
256
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
184
261
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
262
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
263
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -240,6 +317,24 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
240
317
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options);
|
|
241
318
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
242
319
|
},
|
|
320
|
+
/**
|
|
321
|
+
* 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.
|
|
322
|
+
* @summary List product documents
|
|
323
|
+
* @param {string} productCode
|
|
324
|
+
* @param {string} [authorization] Bearer Token
|
|
325
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
326
|
+
* @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.
|
|
327
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
328
|
+
* @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.
|
|
329
|
+
* @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.
|
|
330
|
+
* @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.
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
*/
|
|
334
|
+
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>> {
|
|
335
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
336
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
337
|
+
},
|
|
243
338
|
}
|
|
244
339
|
};
|
|
245
340
|
|
|
@@ -287,6 +382,23 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
287
382
|
listDocuments(filter: string, authorization?: string, pageSize?: number, pageToken?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
288
383
|
return localVarFp.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options).then((request) => request(axios, basePath));
|
|
289
384
|
},
|
|
385
|
+
/**
|
|
386
|
+
* 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.
|
|
387
|
+
* @summary List product documents
|
|
388
|
+
* @param {string} productCode
|
|
389
|
+
* @param {string} [authorization] Bearer Token
|
|
390
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
391
|
+
* @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.
|
|
392
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
393
|
+
* @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.
|
|
394
|
+
* @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.
|
|
395
|
+
* @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.
|
|
396
|
+
* @param {*} [options] Override http request option.
|
|
397
|
+
* @throws {RequiredError}
|
|
398
|
+
*/
|
|
399
|
+
listProductDocuments(productCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
|
|
400
|
+
return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
401
|
+
},
|
|
290
402
|
};
|
|
291
403
|
};
|
|
292
404
|
|
|
@@ -381,6 +493,69 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
381
493
|
readonly expand?: string
|
|
382
494
|
}
|
|
383
495
|
|
|
496
|
+
/**
|
|
497
|
+
* Request parameters for listProductDocuments operation in DocumentsApi.
|
|
498
|
+
* @export
|
|
499
|
+
* @interface DocumentsApiListProductDocumentsRequest
|
|
500
|
+
*/
|
|
501
|
+
export interface DocumentsApiListProductDocumentsRequest {
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @type {string}
|
|
505
|
+
* @memberof DocumentsApiListProductDocuments
|
|
506
|
+
*/
|
|
507
|
+
readonly productCode: string
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Bearer Token
|
|
511
|
+
* @type {string}
|
|
512
|
+
* @memberof DocumentsApiListProductDocuments
|
|
513
|
+
*/
|
|
514
|
+
readonly authorization?: string
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
518
|
+
* @type {any}
|
|
519
|
+
* @memberof DocumentsApiListProductDocuments
|
|
520
|
+
*/
|
|
521
|
+
readonly pageSize?: any
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* 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.
|
|
525
|
+
* @type {any}
|
|
526
|
+
* @memberof DocumentsApiListProductDocuments
|
|
527
|
+
*/
|
|
528
|
+
readonly pageToken?: any
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
532
|
+
* @type {any}
|
|
533
|
+
* @memberof DocumentsApiListProductDocuments
|
|
534
|
+
*/
|
|
535
|
+
readonly filter?: any
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
539
|
+
* @type {any}
|
|
540
|
+
* @memberof DocumentsApiListProductDocuments
|
|
541
|
+
*/
|
|
542
|
+
readonly search?: any
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* 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.
|
|
546
|
+
* @type {any}
|
|
547
|
+
* @memberof DocumentsApiListProductDocuments
|
|
548
|
+
*/
|
|
549
|
+
readonly order?: any
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* 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.
|
|
553
|
+
* @type {any}
|
|
554
|
+
* @memberof DocumentsApiListProductDocuments
|
|
555
|
+
*/
|
|
556
|
+
readonly expand?: any
|
|
557
|
+
}
|
|
558
|
+
|
|
384
559
|
/**
|
|
385
560
|
* DocumentsApi - object-oriented interface
|
|
386
561
|
* @export
|
|
@@ -423,4 +598,16 @@ export class DocumentsApi extends BaseAPI {
|
|
|
423
598
|
public listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig) {
|
|
424
599
|
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));
|
|
425
600
|
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* 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.
|
|
604
|
+
* @summary List product documents
|
|
605
|
+
* @param {DocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
* @memberof DocumentsApi
|
|
609
|
+
*/
|
|
610
|
+
public listProductDocuments(requestParameters: DocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
|
|
611
|
+
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));
|
|
612
|
+
}
|
|
426
613
|
}
|
|
@@ -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
|
}
|
|
@@ -255,6 +255,78 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
255
255
|
});
|
|
256
256
|
});
|
|
257
257
|
},
|
|
258
|
+
/**
|
|
259
|
+
* 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.
|
|
260
|
+
* @summary List product documents
|
|
261
|
+
* @param {string} productCode
|
|
262
|
+
* @param {string} [authorization] Bearer Token
|
|
263
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
264
|
+
* @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.
|
|
265
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
266
|
+
* @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.
|
|
267
|
+
* @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.
|
|
268
|
+
* @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.
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
273
|
+
if (options === void 0) { options = {}; }
|
|
274
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
275
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
276
|
+
return __generator(this, function (_a) {
|
|
277
|
+
switch (_a.label) {
|
|
278
|
+
case 0:
|
|
279
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
280
|
+
(0, common_1.assertParamExists)('listProductDocuments', 'productCode', productCode);
|
|
281
|
+
localVarPath = "/publicapi/v1/documents/{productCode}"
|
|
282
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
|
|
283
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
284
|
+
if (configuration) {
|
|
285
|
+
baseOptions = configuration.baseOptions;
|
|
286
|
+
baseAccessToken = configuration.accessToken;
|
|
287
|
+
}
|
|
288
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
289
|
+
localVarHeaderParameter = {};
|
|
290
|
+
localVarQueryParameter = {};
|
|
291
|
+
// authentication bearer required
|
|
292
|
+
// http bearer authentication required
|
|
293
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
294
|
+
case 1:
|
|
295
|
+
// authentication bearer required
|
|
296
|
+
// http bearer authentication required
|
|
297
|
+
_a.sent();
|
|
298
|
+
if (pageSize !== undefined) {
|
|
299
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
300
|
+
}
|
|
301
|
+
if (pageToken !== undefined) {
|
|
302
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
303
|
+
}
|
|
304
|
+
if (filter !== undefined) {
|
|
305
|
+
localVarQueryParameter['filter'] = filter;
|
|
306
|
+
}
|
|
307
|
+
if (search !== undefined) {
|
|
308
|
+
localVarQueryParameter['search'] = search;
|
|
309
|
+
}
|
|
310
|
+
if (order !== undefined) {
|
|
311
|
+
localVarQueryParameter['order'] = order;
|
|
312
|
+
}
|
|
313
|
+
if (expand !== undefined) {
|
|
314
|
+
localVarQueryParameter['expand'] = expand;
|
|
315
|
+
}
|
|
316
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
317
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
318
|
+
}
|
|
319
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
320
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
321
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
322
|
+
return [2 /*return*/, {
|
|
323
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
324
|
+
options: localVarRequestOptions,
|
|
325
|
+
}];
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
});
|
|
329
|
+
},
|
|
258
330
|
};
|
|
259
331
|
};
|
|
260
332
|
exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
|
|
@@ -332,6 +404,33 @@ var DocumentsApiFp = function (configuration) {
|
|
|
332
404
|
});
|
|
333
405
|
});
|
|
334
406
|
},
|
|
407
|
+
/**
|
|
408
|
+
* 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.
|
|
409
|
+
* @summary List product documents
|
|
410
|
+
* @param {string} productCode
|
|
411
|
+
* @param {string} [authorization] Bearer Token
|
|
412
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
413
|
+
* @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.
|
|
414
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
415
|
+
* @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.
|
|
416
|
+
* @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.
|
|
417
|
+
* @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.
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
*/
|
|
421
|
+
listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
422
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
423
|
+
var localVarAxiosArgs;
|
|
424
|
+
return __generator(this, function (_a) {
|
|
425
|
+
switch (_a.label) {
|
|
426
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
427
|
+
case 1:
|
|
428
|
+
localVarAxiosArgs = _a.sent();
|
|
429
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
});
|
|
433
|
+
},
|
|
335
434
|
};
|
|
336
435
|
};
|
|
337
436
|
exports.DocumentsApiFp = DocumentsApiFp;
|
|
@@ -379,6 +478,23 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
379
478
|
listDocuments: function (filter, authorization, pageSize, pageToken, order, expand, options) {
|
|
380
479
|
return localVarFp.listDocuments(filter, authorization, pageSize, pageToken, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
381
480
|
},
|
|
481
|
+
/**
|
|
482
|
+
* 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.
|
|
483
|
+
* @summary List product documents
|
|
484
|
+
* @param {string} productCode
|
|
485
|
+
* @param {string} [authorization] Bearer Token
|
|
486
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
487
|
+
* @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.
|
|
488
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
489
|
+
* @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.
|
|
490
|
+
* @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.
|
|
491
|
+
* @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.
|
|
492
|
+
* @param {*} [options] Override http request option.
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
*/
|
|
495
|
+
listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
496
|
+
return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
497
|
+
},
|
|
382
498
|
};
|
|
383
499
|
};
|
|
384
500
|
exports.DocumentsApiFactory = DocumentsApiFactory;
|
|
@@ -429,6 +545,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
429
545
|
var _this = this;
|
|
430
546
|
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); });
|
|
431
547
|
};
|
|
548
|
+
/**
|
|
549
|
+
* 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.
|
|
550
|
+
* @summary List product documents
|
|
551
|
+
* @param {DocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
* @memberof DocumentsApi
|
|
555
|
+
*/
|
|
556
|
+
DocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
|
|
557
|
+
var _this = this;
|
|
558
|
+
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); });
|
|
559
|
+
};
|
|
432
560
|
return DocumentsApi;
|
|
433
561
|
}(base_1.BaseAPI));
|
|
434
562
|
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
|
+
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
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
|
+
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
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
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/public-api-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/public-api-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"axios": "^0.27.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
|
|
25
24
|
"typescript": "^4.0"
|
|
26
25
|
}
|
|
27
26
|
}
|