@emilgroup/insurance-sdk-node 1.6.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.
- package/README.md +2 -2
- package/api/leads-api.ts +16 -16
- package/api.ts +1 -0
- package/base.ts +2 -6
- package/dist/api/leads-api.d.ts +16 -16
- package/dist/api/leads-api.js +12 -12
- package/dist/api.d.ts +2 -1
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -4
- package/dist/base.js +4 -8
- package/package.json +1 -1
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.
|
|
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.
|
|
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.ts
CHANGED
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 = "
|
|
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
|
|
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
|
*/
|
package/dist/api.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export * from './api/product-versions-api';
|
|
|
20
20
|
export * from './api/products-api';
|
|
21
21
|
export declare enum Environment {
|
|
22
22
|
Production = "https://apiv2.emil.de",
|
|
23
|
-
Test = "https://apiv2-test.emil.de"
|
|
23
|
+
Test = "https://apiv2-test.emil.de",
|
|
24
|
+
Development = "https://apiv2-dev.emil.de"
|
|
24
25
|
}
|
package/dist/api.js
CHANGED
|
@@ -41,4 +41,5 @@ var Environment;
|
|
|
41
41
|
(function (Environment) {
|
|
42
42
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
43
43
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
44
|
+
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
44
45
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
package/dist/base.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
|
+
import { Environment } from "./api";
|
|
13
14
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
15
|
export declare const BASE_PATH: string;
|
|
15
16
|
/**
|
|
@@ -26,10 +27,6 @@ export interface LoginClass {
|
|
|
26
27
|
accessToken: string;
|
|
27
28
|
permissions: Array<string>;
|
|
28
29
|
}
|
|
29
|
-
export declare enum Environment {
|
|
30
|
-
Production = "https://apiv2.emil.de",
|
|
31
|
-
Test = "https://apiv2-test.emil.de"
|
|
32
|
-
}
|
|
33
30
|
export declare function resetRetry(): void;
|
|
34
31
|
/**
|
|
35
32
|
*
|
package/dist/base.js
CHANGED
|
@@ -101,15 +101,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
101
101
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
102
102
|
};
|
|
103
103
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104
|
-
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.
|
|
104
|
+
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
105
105
|
var configuration_1 = require("./configuration");
|
|
106
|
+
var api_1 = require("./api");
|
|
106
107
|
// Some imports not used depending on template conditions
|
|
107
108
|
// @ts-ignore
|
|
108
109
|
var axios_1 = __importDefault(require("axios"));
|
|
109
110
|
var fs = __importStar(require("fs"));
|
|
110
111
|
var path = __importStar(require("path"));
|
|
111
112
|
var os = __importStar(require("os"));
|
|
112
|
-
exports.BASE_PATH = "
|
|
113
|
+
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
113
114
|
var CONFIG_DIRECTORY = '.emil';
|
|
114
115
|
var CONFIG_FILENAME = 'credentials';
|
|
115
116
|
var KEY_USERNAME = 'emil_username';
|
|
@@ -125,11 +126,6 @@ exports.COLLECTION_FORMATS = {
|
|
|
125
126
|
tsv: "\t",
|
|
126
127
|
pipes: "|",
|
|
127
128
|
};
|
|
128
|
-
var Environment;
|
|
129
|
-
(function (Environment) {
|
|
130
|
-
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
|
-
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
|
-
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
133
129
|
var _retry_count = 0;
|
|
134
130
|
var _retry = null;
|
|
135
131
|
function resetRetry() {
|
|
@@ -160,7 +156,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
160
156
|
this.attachInterceptor(axios);
|
|
161
157
|
}
|
|
162
158
|
BaseAPI.prototype.initialize = function (env) {
|
|
163
|
-
if (env === void 0) { env = Environment.Production; }
|
|
159
|
+
if (env === void 0) { env = api_1.Environment.Production; }
|
|
164
160
|
return __awaiter(this, void 0, void 0, function () {
|
|
165
161
|
return __generator(this, function (_a) {
|
|
166
162
|
switch (_a.label) {
|