@emilgroup/insurance-sdk-node 1.7.0 → 1.7.2
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 +3 -1
- package/README.md +2 -2
- package/api/leads-api.ts +16 -16
- package/api/policies-api.ts +12 -12
- package/api/product-versions-api.ts +103 -0
- package/api/products-api.ts +4 -4
- package/api.ts +0 -6
- package/base.ts +2 -1
- package/dist/api/leads-api.d.ts +16 -16
- package/dist/api/leads-api.js +12 -12
- package/dist/api/policies-api.d.ts +12 -12
- package/dist/api/policies-api.js +10 -10
- package/dist/api/product-versions-api.d.ts +53 -0
- package/dist/api/product-versions-api.js +89 -0
- package/dist/api/products-api.d.ts +4 -4
- package/dist/api/products-api.js +3 -3
- package/dist/api.d.ts +0 -5
- package/dist/api.js +0 -7
- package/dist/base.d.ts +2 -1
- package/dist/base.js +2 -1
- package/dist/models/clone-product-version-request-dto.d.ts +36 -0
- package/dist/models/clone-product-version-response-class.d.ts +25 -0
- package/dist/models/clone-product-version-response-class.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +18 -1
- package/dist/models/create-account-request-dto.js +5 -1
- package/dist/models/create-dummy-policy-request-dto.d.ts +6 -0
- package/dist/models/create-insured-object-response-class.d.ts +3 -3
- package/dist/models/create-lead-request-dto.d.ts +6 -0
- package/dist/models/create-product-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/dist/models/insured-object-class.d.ts +1 -1
- package/dist/models/insured-object-type-class.d.ts +1 -1
- package/dist/models/lead-class.d.ts +18 -11
- package/dist/models/lead-class.js +7 -0
- package/dist/models/list-insured-object-types-response-class.d.ts +1 -1
- package/dist/models/policy-class.d.ts +7 -7
- package/dist/models/premium-override-request-class.d.ts +25 -0
- package/dist/models/premium-override-request-class.js +15 -0
- package/dist/models/product-class.d.ts +1 -1
- package/dist/models/product-factor-class.d.ts +0 -7
- package/dist/models/product-field-class.d.ts +3 -3
- package/dist/models/shared-product-field-class.d.ts +3 -3
- package/dist/models/update-lead-request-dto.d.ts +6 -0
- package/dist/models/update-policy-request-dto.d.ts +4 -4
- package/dist/models/update-policy-request-dto.js +4 -4
- package/dist/models/update-product-request-dto.d.ts +1 -1
- package/models/clone-product-version-request-dto.ts +42 -0
- package/models/clone-product-version-response-class.ts +31 -0
- package/models/create-account-request-dto.ts +19 -1
- package/models/create-dummy-policy-request-dto.ts +6 -0
- package/models/create-insured-object-response-class.ts +3 -3
- package/models/create-lead-request-dto.ts +6 -0
- package/models/create-product-request-dto.ts +1 -1
- package/models/index.ts +3 -1
- package/models/insured-object-class.ts +1 -1
- package/models/insured-object-type-class.ts +1 -1
- package/models/lead-class.ts +21 -11
- package/models/list-insured-object-types-response-class.ts +1 -1
- package/models/policy-class.ts +7 -7
- package/models/premium-override-request-class.ts +31 -0
- package/models/product-class.ts +1 -1
- package/models/product-factor-class.ts +0 -7
- package/models/product-field-class.ts +3 -3
- package/models/shared-product-field-class.ts +3 -3
- package/models/update-lead-request-dto.ts +6 -0
- package/models/update-policy-request-dto.ts +4 -4
- package/models/update-product-request-dto.ts +1 -1
- package/package.json +1 -1
- package/dist/models/omit-type-class.d.ts +0 -60
- package/models/omit-type-class.ts +0 -66
- /package/dist/models/{omit-type-class.js → clone-product-version-request-dto.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -19,6 +19,8 @@ git_push.sh
|
|
|
19
19
|
index.ts
|
|
20
20
|
models/calculate-custom-premium-request-dto.ts
|
|
21
21
|
models/calculate-premium-request-dto.ts
|
|
22
|
+
models/clone-product-version-request-dto.ts
|
|
23
|
+
models/clone-product-version-response-class.ts
|
|
22
24
|
models/create-account-request-dto.ts
|
|
23
25
|
models/create-bank-account-request-dto.ts
|
|
24
26
|
models/create-custom-application-request-dto.ts
|
|
@@ -74,7 +76,6 @@ models/list-product-field-types-response-class.ts
|
|
|
74
76
|
models/list-product-fields-response-class.ts
|
|
75
77
|
models/list-products-response-class.ts
|
|
76
78
|
models/list-request-dto.ts
|
|
77
|
-
models/omit-type-class.ts
|
|
78
79
|
models/policy-class.ts
|
|
79
80
|
models/policy-object-class.ts
|
|
80
81
|
models/policy-object-dto.ts
|
|
@@ -83,6 +84,7 @@ models/policy-premium-item-class.ts
|
|
|
83
84
|
models/policy-version-class.ts
|
|
84
85
|
models/premium-formula-class.ts
|
|
85
86
|
models/premium-override-dto.ts
|
|
87
|
+
models/premium-override-request-class.ts
|
|
86
88
|
models/premium-override-request-dto.ts
|
|
87
89
|
models/product-class.ts
|
|
88
90
|
models/product-factor-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/insurance-sdk-node@1.7.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.7.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.7.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.7.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -145,12 +145,12 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
145
145
|
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
146
146
|
* @summary List lead
|
|
147
147
|
* @param {string} [authorization] Bearer Token
|
|
148
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
149
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
148
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
149
|
+
* @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.
|
|
150
150
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
151
151
|
* @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.
|
|
152
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
153
|
-
* @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
|
|
152
|
+
* @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.
|
|
153
|
+
* @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.
|
|
154
154
|
* @param {*} [options] Override http request option.
|
|
155
155
|
* @throws {RequiredError}
|
|
156
156
|
*/
|
|
@@ -302,12 +302,12 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
302
302
|
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
303
303
|
* @summary List lead
|
|
304
304
|
* @param {string} [authorization] Bearer Token
|
|
305
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
306
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
305
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
306
|
+
* @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.
|
|
307
307
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
308
308
|
* @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.
|
|
309
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
310
|
-
* @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
|
|
309
|
+
* @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.
|
|
310
|
+
* @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.
|
|
311
311
|
* @param {*} [options] Override http request option.
|
|
312
312
|
* @throws {RequiredError}
|
|
313
313
|
*/
|
|
@@ -365,12 +365,12 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
365
365
|
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
366
366
|
* @summary List lead
|
|
367
367
|
* @param {string} [authorization] Bearer Token
|
|
368
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
369
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
368
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
369
|
+
* @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.
|
|
370
370
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
371
371
|
* @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.
|
|
372
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
373
|
-
* @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
|
|
372
|
+
* @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.
|
|
373
|
+
* @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.
|
|
374
374
|
* @param {*} [options] Override http request option.
|
|
375
375
|
* @throws {RequiredError}
|
|
376
376
|
*/
|
|
@@ -455,14 +455,14 @@ export interface LeadsApiListLeadsRequest {
|
|
|
455
455
|
readonly authorization?: string
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
|
-
* A limit on the number of objects to be returned.
|
|
458
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
459
459
|
* @type {any}
|
|
460
460
|
* @memberof LeadsApiListLeads
|
|
461
461
|
*/
|
|
462
462
|
readonly pageSize?: any
|
|
463
463
|
|
|
464
464
|
/**
|
|
465
|
-
* A cursor for use in pagination.
|
|
465
|
+
* 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.
|
|
466
466
|
* @type {any}
|
|
467
467
|
* @memberof LeadsApiListLeads
|
|
468
468
|
*/
|
|
@@ -483,14 +483,14 @@ export interface LeadsApiListLeadsRequest {
|
|
|
483
483
|
readonly search?: any
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
486
|
+
* 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.
|
|
487
487
|
* @type {any}
|
|
488
488
|
* @memberof LeadsApiListLeads
|
|
489
489
|
*/
|
|
490
490
|
readonly order?: any
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
|
-
* 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
|
|
493
|
+
* 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.
|
|
494
494
|
* @type {any}
|
|
495
495
|
* @memberof LeadsApiListLeads
|
|
496
496
|
*/
|
package/api/policies-api.ts
CHANGED
|
@@ -151,7 +151,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
151
151
|
},
|
|
152
152
|
/**
|
|
153
153
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
154
|
-
* @summary Retrieve
|
|
154
|
+
* @summary Retrieve current policy version
|
|
155
155
|
* @param {string} code Unique identifier for the object.
|
|
156
156
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
157
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -205,10 +205,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
205
205
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
206
206
|
* @param {number} [pageSize] Page size.
|
|
207
207
|
* @param {string} [pageToken] Page token.
|
|
208
|
-
* @param {string} [filter]
|
|
208
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
209
209
|
* @param {string} [search] Search query.
|
|
210
210
|
* @param {string} [order] Ordering criteria.
|
|
211
|
-
* @param {string} [expand]
|
|
211
|
+
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
212
212
|
* @param {*} [options] Override http request option.
|
|
213
213
|
* @throws {RequiredError}
|
|
214
214
|
*/
|
|
@@ -505,7 +505,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
505
505
|
},
|
|
506
506
|
/**
|
|
507
507
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
508
|
-
* @summary Retrieve
|
|
508
|
+
* @summary Retrieve current policy version
|
|
509
509
|
* @param {string} code Unique identifier for the object.
|
|
510
510
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
511
511
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -522,10 +522,10 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
522
522
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
523
|
* @param {number} [pageSize] Page size.
|
|
524
524
|
* @param {string} [pageToken] Page token.
|
|
525
|
-
* @param {string} [filter]
|
|
525
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
526
526
|
* @param {string} [search] Search query.
|
|
527
527
|
* @param {string} [order] Ordering criteria.
|
|
528
|
-
* @param {string} [expand]
|
|
528
|
+
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
529
529
|
* @param {*} [options] Override http request option.
|
|
530
530
|
* @throws {RequiredError}
|
|
531
531
|
*/
|
|
@@ -619,7 +619,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
619
619
|
},
|
|
620
620
|
/**
|
|
621
621
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
622
|
-
* @summary Retrieve
|
|
622
|
+
* @summary Retrieve current policy version
|
|
623
623
|
* @param {string} code Unique identifier for the object.
|
|
624
624
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
625
625
|
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
|
|
@@ -635,10 +635,10 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
635
635
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
636
636
|
* @param {number} [pageSize] Page size.
|
|
637
637
|
* @param {string} [pageToken] Page token.
|
|
638
|
-
* @param {string} [filter]
|
|
638
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
639
639
|
* @param {string} [search] Search query.
|
|
640
640
|
* @param {string} [order] Ordering criteria.
|
|
641
|
-
* @param {string} [expand]
|
|
641
|
+
* @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
642
642
|
* @param {*} [options] Override http request option.
|
|
643
643
|
* @throws {RequiredError}
|
|
644
644
|
*/
|
|
@@ -800,7 +800,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
800
800
|
readonly pageToken?: string
|
|
801
801
|
|
|
802
802
|
/**
|
|
803
|
-
*
|
|
803
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: **code**, **policyNumber**, **accountCode**, **statuses**, **productName**, **productType**, **policyData**, **createdAt**, **policyStartDate**.
|
|
804
804
|
* @type {string}
|
|
805
805
|
* @memberof PoliciesApiListPolicies
|
|
806
806
|
*/
|
|
@@ -821,7 +821,7 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
821
821
|
readonly order?: string
|
|
822
822
|
|
|
823
823
|
/**
|
|
824
|
-
*
|
|
824
|
+
* You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
825
825
|
* @type {string}
|
|
826
826
|
* @memberof PoliciesApiListPolicies
|
|
827
827
|
*/
|
|
@@ -966,7 +966,7 @@ export class PoliciesApi extends BaseAPI {
|
|
|
966
966
|
|
|
967
967
|
/**
|
|
968
968
|
* This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
|
|
969
|
-
* @summary Retrieve
|
|
969
|
+
* @summary Retrieve current policy version
|
|
970
970
|
* @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
|
|
971
971
|
* @param {*} [options] Override http request option.
|
|
972
972
|
* @throws {RequiredError}
|
|
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CloneProductVersionRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CloneProductVersionResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { GetProductVersionResponseClass } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
26
30
|
import { UpdateProductVersionRequestDto } from '../models';
|
|
@@ -36,6 +40,52 @@ const FormData = require('form-data');
|
|
|
36
40
|
*/
|
|
37
41
|
export const ProductVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
42
|
return {
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
46
|
+
* @param {string} [authorization] Bearer Token
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
cloneProductVersion: async (cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51
|
+
// verify required parameter 'cloneProductVersionRequestDto' is not null or undefined
|
|
52
|
+
assertParamExists('cloneProductVersion', 'cloneProductVersionRequestDto', cloneProductVersionRequestDto)
|
|
53
|
+
const localVarPath = `/insuranceservice/v1/product-versions/clone`;
|
|
54
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
|
+
let baseOptions;
|
|
57
|
+
let baseAccessToken;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
baseAccessToken = configuration.accessToken;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
64
|
+
const localVarHeaderParameter = {} as any;
|
|
65
|
+
const localVarQueryParameter = {} as any;
|
|
66
|
+
|
|
67
|
+
// authentication bearer required
|
|
68
|
+
// http bearer authentication required
|
|
69
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
|
+
|
|
71
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
78
|
+
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cloneProductVersionRequestDto, localVarRequestOptions, configuration)
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
url: toPathString(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
},
|
|
39
89
|
/**
|
|
40
90
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
41
91
|
* @summary Retrieve the product version
|
|
@@ -149,6 +199,17 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
149
199
|
export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
150
200
|
const localVarAxiosParamCreator = ProductVersionsApiAxiosParamCreator(configuration)
|
|
151
201
|
return {
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
205
|
+
* @param {string} [authorization] Bearer Token
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
async cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloneProductVersionResponseClass>> {
|
|
210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cloneProductVersion(cloneProductVersionRequestDto, authorization, options);
|
|
211
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
212
|
+
},
|
|
152
213
|
/**
|
|
153
214
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
154
215
|
* @summary Retrieve the product version
|
|
@@ -185,6 +246,16 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
|
185
246
|
export const ProductVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
186
247
|
const localVarFp = ProductVersionsApiFp(configuration)
|
|
187
248
|
return {
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
252
|
+
* @param {string} [authorization] Bearer Token
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
*/
|
|
256
|
+
cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<CloneProductVersionResponseClass> {
|
|
257
|
+
return localVarFp.cloneProductVersion(cloneProductVersionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
258
|
+
},
|
|
188
259
|
/**
|
|
189
260
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
190
261
|
* @summary Retrieve the product version
|
|
@@ -212,6 +283,27 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
|
|
|
212
283
|
};
|
|
213
284
|
};
|
|
214
285
|
|
|
286
|
+
/**
|
|
287
|
+
* Request parameters for cloneProductVersion operation in ProductVersionsApi.
|
|
288
|
+
* @export
|
|
289
|
+
* @interface ProductVersionsApiCloneProductVersionRequest
|
|
290
|
+
*/
|
|
291
|
+
export interface ProductVersionsApiCloneProductVersionRequest {
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @type {CloneProductVersionRequestDto}
|
|
295
|
+
* @memberof ProductVersionsApiCloneProductVersion
|
|
296
|
+
*/
|
|
297
|
+
readonly cloneProductVersionRequestDto: CloneProductVersionRequestDto
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Bearer Token
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @memberof ProductVersionsApiCloneProductVersion
|
|
303
|
+
*/
|
|
304
|
+
readonly authorization?: string
|
|
305
|
+
}
|
|
306
|
+
|
|
215
307
|
/**
|
|
216
308
|
* Request parameters for getProductVersion operation in ProductVersionsApi.
|
|
217
309
|
* @export
|
|
@@ -275,6 +367,17 @@ export interface ProductVersionsApiUpdateProductVersionRequest {
|
|
|
275
367
|
* @extends {BaseAPI}
|
|
276
368
|
*/
|
|
277
369
|
export class ProductVersionsApi extends BaseAPI {
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
* @param {ProductVersionsApiCloneProductVersionRequest} requestParameters Request parameters.
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
* @memberof ProductVersionsApi
|
|
376
|
+
*/
|
|
377
|
+
public cloneProductVersion(requestParameters: ProductVersionsApiCloneProductVersionRequest, options?: AxiosRequestConfig) {
|
|
378
|
+
return ProductVersionsApiFp(this.configuration).cloneProductVersion(requestParameters.cloneProductVersionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
379
|
+
}
|
|
380
|
+
|
|
278
381
|
/**
|
|
279
382
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
280
383
|
* @summary Retrieve the product version
|
package/api/products-api.ts
CHANGED
|
@@ -202,7 +202,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
202
202
|
* @param {string} [filter] List filter
|
|
203
203
|
* @param {string} [search] Search query.
|
|
204
204
|
* @param {string} [order] Ordering criteria.
|
|
205
|
-
* @param {string} [expand]
|
|
205
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
206
206
|
* @param {*} [options] Override http request option.
|
|
207
207
|
* @throws {RequiredError}
|
|
208
208
|
*/
|
|
@@ -372,7 +372,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
372
372
|
* @param {string} [filter] List filter
|
|
373
373
|
* @param {string} [search] Search query.
|
|
374
374
|
* @param {string} [order] Ordering criteria.
|
|
375
|
-
* @param {string} [expand]
|
|
375
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
376
376
|
* @param {*} [options] Override http request option.
|
|
377
377
|
* @throws {RequiredError}
|
|
378
378
|
*/
|
|
@@ -447,7 +447,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
447
447
|
* @param {string} [filter] List filter
|
|
448
448
|
* @param {string} [search] Search query.
|
|
449
449
|
* @param {string} [order] Ordering criteria.
|
|
450
|
-
* @param {string} [expand]
|
|
450
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
451
451
|
* @param {*} [options] Override http request option.
|
|
452
452
|
* @throws {RequiredError}
|
|
453
453
|
*/
|
|
@@ -595,7 +595,7 @@ export interface ProductsApiListProductsRequest {
|
|
|
595
595
|
readonly order?: string
|
|
596
596
|
|
|
597
597
|
/**
|
|
598
|
-
*
|
|
598
|
+
* You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
599
599
|
* @type {string}
|
|
600
600
|
* @memberof ProductsApiListProducts
|
|
601
601
|
*/
|
package/api.ts
CHANGED
|
@@ -45,9 +45,3 @@ export * from './api/product-fields-api';
|
|
|
45
45
|
export * from './api/product-versions-api';
|
|
46
46
|
export * from './api/products-api';
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
export enum Environment {
|
|
50
|
-
Production = 'https://apiv2.emil.de',
|
|
51
|
-
Test = 'https://apiv2-test.emil.de',
|
|
52
|
-
Development = 'https://apiv2-dev.emil.de',
|
|
53
|
-
}
|
package/base.ts
CHANGED
|
@@ -21,7 +21,7 @@ import * as fs from 'fs';
|
|
|
21
21
|
import * as path from 'path';
|
|
22
22
|
import * as os from 'os';
|
|
23
23
|
|
|
24
|
-
export const BASE_PATH = "
|
|
24
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
25
25
|
const CONFIG_DIRECTORY = '.emil';
|
|
26
26
|
const CONFIG_FILENAME = 'credentials';
|
|
27
27
|
const KEY_USERNAME = 'emil_username';
|
|
@@ -47,6 +47,7 @@ export interface LoginClass {
|
|
|
47
47
|
export enum Environment {
|
|
48
48
|
Production = 'https://apiv2.emil.de',
|
|
49
49
|
Test = 'https://apiv2-test.emil.de',
|
|
50
|
+
Development = 'https://apiv2-dev.emil.de',
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
let _retry_count = 0
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -46,12 +46,12 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
46
46
|
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
47
47
|
* @summary List lead
|
|
48
48
|
* @param {string} [authorization] Bearer Token
|
|
49
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
50
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
49
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
50
|
+
* @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.
|
|
51
51
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
52
52
|
* @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.
|
|
53
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
54
|
-
* @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
|
|
53
|
+
* @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.
|
|
54
|
+
* @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.
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
@@ -95,12 +95,12 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
95
95
|
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
96
96
|
* @summary List lead
|
|
97
97
|
* @param {string} [authorization] Bearer Token
|
|
98
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
99
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
98
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
99
|
+
* @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.
|
|
100
100
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
101
101
|
* @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.
|
|
102
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
103
|
-
* @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
|
|
102
|
+
* @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.
|
|
103
|
+
* @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.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
@@ -144,12 +144,12 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
144
144
|
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
145
145
|
* @summary List lead
|
|
146
146
|
* @param {string} [authorization] Bearer Token
|
|
147
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
148
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
147
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
148
|
+
* @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.
|
|
149
149
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
150
150
|
* @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.
|
|
151
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
152
|
-
* @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
|
|
151
|
+
* @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.
|
|
152
|
+
* @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.
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
154
154
|
* @throws {RequiredError}
|
|
155
155
|
*/
|
|
@@ -222,13 +222,13 @@ export interface LeadsApiListLeadsRequest {
|
|
|
222
222
|
*/
|
|
223
223
|
readonly authorization?: string;
|
|
224
224
|
/**
|
|
225
|
-
* A limit on the number of objects to be returned.
|
|
225
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
226
226
|
* @type {any}
|
|
227
227
|
* @memberof LeadsApiListLeads
|
|
228
228
|
*/
|
|
229
229
|
readonly pageSize?: any;
|
|
230
230
|
/**
|
|
231
|
-
* A cursor for use in pagination.
|
|
231
|
+
* 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.
|
|
232
232
|
* @type {any}
|
|
233
233
|
* @memberof LeadsApiListLeads
|
|
234
234
|
*/
|
|
@@ -246,13 +246,13 @@ export interface LeadsApiListLeadsRequest {
|
|
|
246
246
|
*/
|
|
247
247
|
readonly search?: any;
|
|
248
248
|
/**
|
|
249
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
249
|
+
* 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.
|
|
250
250
|
* @type {any}
|
|
251
251
|
* @memberof LeadsApiListLeads
|
|
252
252
|
*/
|
|
253
253
|
readonly order?: any;
|
|
254
254
|
/**
|
|
255
|
-
* 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
|
|
255
|
+
* 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.
|
|
256
256
|
* @type {any}
|
|
257
257
|
* @memberof LeadsApiListLeads
|
|
258
258
|
*/
|
package/dist/api/leads-api.js
CHANGED
|
@@ -203,12 +203,12 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
203
203
|
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
204
204
|
* @summary List lead
|
|
205
205
|
* @param {string} [authorization] Bearer Token
|
|
206
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
207
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
206
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
207
|
+
* @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.
|
|
208
208
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
209
209
|
* @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.
|
|
210
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
211
|
-
* @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
|
|
210
|
+
* @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.
|
|
211
|
+
* @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.
|
|
212
212
|
* @param {*} [options] Override http request option.
|
|
213
213
|
* @throws {RequiredError}
|
|
214
214
|
*/
|
|
@@ -377,12 +377,12 @@ var LeadsApiFp = function (configuration) {
|
|
|
377
377
|
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
378
378
|
* @summary List lead
|
|
379
379
|
* @param {string} [authorization] Bearer Token
|
|
380
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
381
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
380
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
381
|
+
* @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.
|
|
382
382
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
383
383
|
* @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.
|
|
384
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
385
|
-
* @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
|
|
384
|
+
* @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.
|
|
385
|
+
* @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.
|
|
386
386
|
* @param {*} [options] Override http request option.
|
|
387
387
|
* @throws {RequiredError}
|
|
388
388
|
*/
|
|
@@ -458,12 +458,12 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
458
458
|
* Returns a list of lead you have previously created. The lead are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
459
459
|
* @summary List lead
|
|
460
460
|
* @param {string} [authorization] Bearer Token
|
|
461
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
462
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
461
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
462
|
+
* @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.
|
|
463
463
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
464
464
|
* @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.
|
|
465
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
466
|
-
* @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
|
|
465
|
+
* @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.
|
|
466
|
+
* @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.
|
|
467
467
|
* @param {*} [options] Override http request option.
|
|
468
468
|
* @throws {RequiredError}
|
|
469
469
|
*/
|