@emilgroup/insurance-sdk-node 1.7.0 → 1.7.1

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.
Files changed (69) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/README.md +2 -2
  3. package/api/leads-api.ts +16 -16
  4. package/api/policies-api.ts +12 -12
  5. package/api/product-versions-api.ts +103 -0
  6. package/api/products-api.ts +4 -4
  7. package/base.ts +2 -6
  8. package/dist/api/leads-api.d.ts +16 -16
  9. package/dist/api/leads-api.js +12 -12
  10. package/dist/api/policies-api.d.ts +12 -12
  11. package/dist/api/policies-api.js +10 -10
  12. package/dist/api/product-versions-api.d.ts +53 -0
  13. package/dist/api/product-versions-api.js +89 -0
  14. package/dist/api/products-api.d.ts +4 -4
  15. package/dist/api/products-api.js +3 -3
  16. package/dist/base.d.ts +1 -4
  17. package/dist/base.js +4 -8
  18. package/dist/models/clone-product-version-request-dto.d.ts +36 -0
  19. package/dist/models/clone-product-version-response-class.d.ts +25 -0
  20. package/dist/models/clone-product-version-response-class.js +15 -0
  21. package/dist/models/create-account-request-dto.d.ts +18 -1
  22. package/dist/models/create-account-request-dto.js +5 -1
  23. package/dist/models/create-dummy-policy-request-dto.d.ts +6 -0
  24. package/dist/models/create-insured-object-response-class.d.ts +3 -3
  25. package/dist/models/create-lead-request-dto.d.ts +6 -0
  26. package/dist/models/create-product-request-dto.d.ts +1 -1
  27. package/dist/models/index.d.ts +3 -1
  28. package/dist/models/index.js +3 -1
  29. package/dist/models/insured-object-class.d.ts +1 -1
  30. package/dist/models/insured-object-type-class.d.ts +1 -1
  31. package/dist/models/lead-class.d.ts +18 -11
  32. package/dist/models/lead-class.js +7 -0
  33. package/dist/models/list-insured-object-types-response-class.d.ts +1 -1
  34. package/dist/models/policy-class.d.ts +7 -7
  35. package/dist/models/premium-override-request-class.d.ts +25 -0
  36. package/dist/models/premium-override-request-class.js +15 -0
  37. package/dist/models/product-class.d.ts +1 -1
  38. package/dist/models/product-factor-class.d.ts +0 -7
  39. package/dist/models/product-field-class.d.ts +3 -3
  40. package/dist/models/shared-product-field-class.d.ts +3 -3
  41. package/dist/models/update-lead-request-dto.d.ts +6 -0
  42. package/dist/models/update-policy-request-dto.d.ts +4 -4
  43. package/dist/models/update-policy-request-dto.js +4 -4
  44. package/dist/models/update-product-request-dto.d.ts +1 -1
  45. package/models/clone-product-version-request-dto.ts +42 -0
  46. package/models/clone-product-version-response-class.ts +31 -0
  47. package/models/create-account-request-dto.ts +19 -1
  48. package/models/create-dummy-policy-request-dto.ts +6 -0
  49. package/models/create-insured-object-response-class.ts +3 -3
  50. package/models/create-lead-request-dto.ts +6 -0
  51. package/models/create-product-request-dto.ts +1 -1
  52. package/models/index.ts +3 -1
  53. package/models/insured-object-class.ts +1 -1
  54. package/models/insured-object-type-class.ts +1 -1
  55. package/models/lead-class.ts +21 -11
  56. package/models/list-insured-object-types-response-class.ts +1 -1
  57. package/models/policy-class.ts +7 -7
  58. package/models/premium-override-request-class.ts +31 -0
  59. package/models/product-class.ts +1 -1
  60. package/models/product-factor-class.ts +0 -7
  61. package/models/product-field-class.ts +3 -3
  62. package/models/shared-product-field-class.ts +3 -3
  63. package/models/update-lead-request-dto.ts +6 -0
  64. package/models/update-policy-request-dto.ts +4 -4
  65. package/models/update-product-request-dto.ts +1 -1
  66. package/package.json +1 -1
  67. package/dist/models/omit-type-class.d.ts +0 -60
  68. package/models/omit-type-class.ts +0 -66
  69. /package/dist/models/{omit-type-class.js → clone-product-version-request-dto.js} +0 -0
@@ -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.0 --save
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.0
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. 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.
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. 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.
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. 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.
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. 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.
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. 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.
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. 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.
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. Limit ranges between 1 and 100. Default: 10.
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. 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.
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. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
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 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.
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
  */
@@ -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 the policy
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] List 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] Extra fields to fetch.
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 the policy
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] List 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] Extra fields to fetch.
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 the policy
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] List 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] Extra fields to fetch.
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
- * List filter
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
- * Extra fields to fetch.
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 the policy
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
@@ -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] Extra fields to fetch.
205
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions &amp; 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] Extra fields to fetch.
375
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions &amp; 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] Extra fields to fetch.
450
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions &amp; 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
- * Extra fields to fetch.
598
+ * You can expand product versions and insured object types list in this endpoint. By default, versions &amp; insuredObjectTypes will be an empty array.
599
599
  * @type {string}
600
600
  * @memberof ProductsApiListProducts
601
601
  */
package/base.ts CHANGED
@@ -14,6 +14,7 @@
14
14
 
15
15
 
16
16
  import { Configuration } from "./configuration";
17
+ import { Environment } from "./api";
17
18
  // Some imports not used depending on template conditions
18
19
  // @ts-ignore
19
20
  import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
@@ -21,7 +22,7 @@ import * as fs from 'fs';
21
22
  import * as path from 'path';
22
23
  import * as os from 'os';
23
24
 
24
- export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
25
+ export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
25
26
  const CONFIG_DIRECTORY = '.emil';
26
27
  const CONFIG_FILENAME = 'credentials';
27
28
  const KEY_USERNAME = 'emil_username';
@@ -44,11 +45,6 @@ export interface LoginClass {
44
45
  permissions: Array<string>;
45
46
  }
46
47
 
47
- export enum Environment {
48
- Production = 'https://apiv2.emil.de',
49
- Test = 'https://apiv2-test.emil.de',
50
- }
51
-
52
48
  let _retry_count = 0
53
49
  let _retry = null
54
50
 
@@ -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. 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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. 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.
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. 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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. 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.
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. 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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. 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.
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. Limit ranges between 1 and 100. Default: 10.
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. 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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&#x3D;1, your subsequent call can include pageToken&#x3D;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. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
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 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.
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
  */
@@ -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. 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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. 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.
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. 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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. 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.
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. 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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. 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.
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
  */