@emilgroup/account-sdk 1.36.0 → 1.36.1-beta.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/accounts-api.ts +48 -48
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/accounts-api.d.ts +48 -48
- package/dist/api/accounts-api.js +35 -35
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- 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/account-sdk@1.36.
|
|
20
|
+
npm install @emilgroup/account-sdk@1.36.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/account-sdk@1.36.
|
|
24
|
+
yarn add @emilgroup/account-sdk@1.36.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `AccountsApi`.
|
package/api/accounts-api.ts
CHANGED
|
@@ -39,7 +39,7 @@ import { UpdateAccountResponseClass } from '../models';
|
|
|
39
39
|
export const AccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
42
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
43
43
|
* @summary Create the account
|
|
44
44
|
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
45
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -86,7 +86,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
88
|
/**
|
|
89
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
89
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
90
90
|
* @summary Delete the account
|
|
91
91
|
* @param {string} code Unique identifier for the object.
|
|
92
92
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -131,7 +131,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
131
131
|
};
|
|
132
132
|
},
|
|
133
133
|
/**
|
|
134
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
134
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
135
135
|
* @summary Retrieve the account
|
|
136
136
|
* @param {string} code Unique identifier for the object.
|
|
137
137
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -181,20 +181,20 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
181
181
|
};
|
|
182
182
|
},
|
|
183
183
|
/**
|
|
184
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
184
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
185
185
|
* @summary List accounts
|
|
186
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
|
-
* @param {
|
|
188
|
-
* @param {
|
|
187
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
188
|
+
* @param {string} [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.
|
|
189
189
|
* @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
190
|
-
* @param {
|
|
190
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
191
191
|
* @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
|
|
192
|
-
* @param {'policies'} [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
|
|
193
|
-
* @param {
|
|
192
|
+
* @param {'policies'} [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.
|
|
193
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
194
194
|
* @param {*} [options] Override http request option.
|
|
195
195
|
* @throws {RequiredError}
|
|
196
196
|
*/
|
|
197
|
-
listAccounts: async (authorization?: string, pageSize?:
|
|
197
|
+
listAccounts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
198
198
|
const localVarPath = `/accountservice/v1/accounts`;
|
|
199
199
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
200
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -257,7 +257,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
257
257
|
};
|
|
258
258
|
},
|
|
259
259
|
/**
|
|
260
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
260
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
261
261
|
* @summary Update the account
|
|
262
262
|
* @param {string} code Unique identifier for the object.
|
|
263
263
|
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
@@ -318,7 +318,7 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
318
318
|
const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration)
|
|
319
319
|
return {
|
|
320
320
|
/**
|
|
321
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
321
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
322
322
|
* @summary Create the account
|
|
323
323
|
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
324
324
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -330,7 +330,7 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
330
330
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
331
331
|
},
|
|
332
332
|
/**
|
|
333
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
333
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
334
334
|
* @summary Delete the account
|
|
335
335
|
* @param {string} code Unique identifier for the object.
|
|
336
336
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -342,7 +342,7 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
342
342
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
343
343
|
},
|
|
344
344
|
/**
|
|
345
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
345
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
346
346
|
* @summary Retrieve the account
|
|
347
347
|
* @param {string} code Unique identifier for the object.
|
|
348
348
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -355,25 +355,25 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
355
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
356
356
|
},
|
|
357
357
|
/**
|
|
358
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
358
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
359
359
|
* @summary List accounts
|
|
360
360
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
|
-
* @param {
|
|
362
|
-
* @param {
|
|
361
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
362
|
+
* @param {string} [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.
|
|
363
363
|
* @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
364
|
-
* @param {
|
|
364
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
365
365
|
* @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
|
|
366
|
-
* @param {'policies'} [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
|
|
367
|
-
* @param {
|
|
366
|
+
* @param {'policies'} [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.
|
|
367
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
368
368
|
* @param {*} [options] Override http request option.
|
|
369
369
|
* @throws {RequiredError}
|
|
370
370
|
*/
|
|
371
|
-
async listAccounts(authorization?: string, pageSize?:
|
|
371
|
+
async listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>> {
|
|
372
372
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
373
373
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
374
374
|
},
|
|
375
375
|
/**
|
|
376
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
376
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
377
377
|
* @summary Update the account
|
|
378
378
|
* @param {string} code Unique identifier for the object.
|
|
379
379
|
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
@@ -396,7 +396,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
396
396
|
const localVarFp = AccountsApiFp(configuration)
|
|
397
397
|
return {
|
|
398
398
|
/**
|
|
399
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
399
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
400
400
|
* @summary Create the account
|
|
401
401
|
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
402
402
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -407,7 +407,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
407
407
|
return localVarFp.createAccount(createAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
408
408
|
},
|
|
409
409
|
/**
|
|
410
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
410
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
411
411
|
* @summary Delete the account
|
|
412
412
|
* @param {string} code Unique identifier for the object.
|
|
413
413
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -418,7 +418,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
418
418
|
return localVarFp.deleteAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
419
419
|
},
|
|
420
420
|
/**
|
|
421
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
421
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
422
422
|
* @summary Retrieve the account
|
|
423
423
|
* @param {string} code Unique identifier for the object.
|
|
424
424
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -430,24 +430,24 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
430
430
|
return localVarFp.getAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
431
431
|
},
|
|
432
432
|
/**
|
|
433
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
433
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
434
434
|
* @summary List accounts
|
|
435
435
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
436
|
-
* @param {
|
|
437
|
-
* @param {
|
|
436
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
437
|
+
* @param {string} [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.
|
|
438
438
|
* @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
439
|
-
* @param {
|
|
439
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
440
440
|
* @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
|
|
441
|
-
* @param {'policies'} [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
|
|
442
|
-
* @param {
|
|
441
|
+
* @param {'policies'} [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.
|
|
442
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
443
443
|
* @param {*} [options] Override http request option.
|
|
444
444
|
* @throws {RequiredError}
|
|
445
445
|
*/
|
|
446
|
-
listAccounts(authorization?: string, pageSize?:
|
|
446
|
+
listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options?: any): AxiosPromise<ListAccountsResponseClass> {
|
|
447
447
|
return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
448
448
|
},
|
|
449
449
|
/**
|
|
450
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
450
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
451
451
|
* @summary Update the account
|
|
452
452
|
* @param {string} code Unique identifier for the object.
|
|
453
453
|
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
@@ -546,17 +546,17 @@ export interface AccountsApiListAccountsRequest {
|
|
|
546
546
|
|
|
547
547
|
/**
|
|
548
548
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
549
|
-
* @type {
|
|
549
|
+
* @type {number}
|
|
550
550
|
* @memberof AccountsApiListAccounts
|
|
551
551
|
*/
|
|
552
|
-
readonly pageSize?:
|
|
552
|
+
readonly pageSize?: number
|
|
553
553
|
|
|
554
554
|
/**
|
|
555
|
-
* 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,
|
|
556
|
-
* @type {
|
|
555
|
+
* 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.
|
|
556
|
+
* @type {string}
|
|
557
557
|
* @memberof AccountsApiListAccounts
|
|
558
558
|
*/
|
|
559
|
-
readonly pageToken?:
|
|
559
|
+
readonly pageToken?: string
|
|
560
560
|
|
|
561
561
|
/**
|
|
562
562
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -567,10 +567,10 @@ export interface AccountsApiListAccountsRequest {
|
|
|
567
567
|
|
|
568
568
|
/**
|
|
569
569
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
570
|
-
* @type {
|
|
570
|
+
* @type {string}
|
|
571
571
|
* @memberof AccountsApiListAccounts
|
|
572
572
|
*/
|
|
573
|
-
readonly search?:
|
|
573
|
+
readonly search?: string
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
576
|
* 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.
|
|
@@ -580,7 +580,7 @@ export interface AccountsApiListAccountsRequest {
|
|
|
580
580
|
readonly order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'
|
|
581
581
|
|
|
582
582
|
/**
|
|
583
|
-
* 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
|
|
583
|
+
* 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.
|
|
584
584
|
* @type {'policies'}
|
|
585
585
|
* @memberof AccountsApiListAccounts
|
|
586
586
|
*/
|
|
@@ -588,10 +588,10 @@ export interface AccountsApiListAccountsRequest {
|
|
|
588
588
|
|
|
589
589
|
/**
|
|
590
590
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
591
|
-
* @type {
|
|
591
|
+
* @type {string}
|
|
592
592
|
* @memberof AccountsApiListAccounts
|
|
593
593
|
*/
|
|
594
|
-
readonly filters?:
|
|
594
|
+
readonly filters?: string
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
/**
|
|
@@ -630,7 +630,7 @@ export interface AccountsApiUpdateAccountRequest {
|
|
|
630
630
|
*/
|
|
631
631
|
export class AccountsApi extends BaseAPI {
|
|
632
632
|
/**
|
|
633
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
633
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
634
634
|
* @summary Create the account
|
|
635
635
|
* @param {AccountsApiCreateAccountRequest} requestParameters Request parameters.
|
|
636
636
|
* @param {*} [options] Override http request option.
|
|
@@ -642,7 +642,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
/**
|
|
645
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
645
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
646
646
|
* @summary Delete the account
|
|
647
647
|
* @param {AccountsApiDeleteAccountRequest} requestParameters Request parameters.
|
|
648
648
|
* @param {*} [options] Override http request option.
|
|
@@ -654,7 +654,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
/**
|
|
657
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
657
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
658
658
|
* @summary Retrieve the account
|
|
659
659
|
* @param {AccountsApiGetAccountRequest} requestParameters Request parameters.
|
|
660
660
|
* @param {*} [options] Override http request option.
|
|
@@ -666,7 +666,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
666
666
|
}
|
|
667
667
|
|
|
668
668
|
/**
|
|
669
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
669
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
670
670
|
* @summary List accounts
|
|
671
671
|
* @param {AccountsApiListAccountsRequest} requestParameters Request parameters.
|
|
672
672
|
* @param {*} [options] Override http request option.
|
|
@@ -678,7 +678,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
/**
|
|
681
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
681
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
682
682
|
* @summary Update the account
|
|
683
683
|
* @param {AccountsApiUpdateAccountRequest} requestParameters Request parameters.
|
|
684
684
|
* @param {*} [options] Override http request option.
|
package/common.ts
CHANGED
|
@@ -65,7 +65,7 @@ export const setBearerAuthToObject = async function (object: any, configuration?
|
|
|
65
65
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
66
66
|
? await configuration.accessToken()
|
|
67
67
|
: await configuration.accessToken;
|
|
68
|
-
object["Authorization"] =
|
|
68
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -78,7 +78,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
78
78
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
79
79
|
? await configuration.accessToken(name, scopes)
|
|
80
80
|
: await configuration.accessToken;
|
|
81
|
-
object["Authorization"] =
|
|
81
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
package/configuration.ts
CHANGED
|
@@ -98,4 +98,13 @@ export class Configuration {
|
|
|
98
98
|
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
99
99
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Returns "Bearer" token.
|
|
104
|
+
* @param token - access token.
|
|
105
|
+
* @return Bearer token.
|
|
106
|
+
*/
|
|
107
|
+
public getBearerToken(token?: string): string {
|
|
108
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
109
|
+
}
|
|
101
110
|
}
|
|
@@ -24,7 +24,7 @@ import { UpdateAccountResponseClass } from '../models';
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const AccountsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
26
|
/**
|
|
27
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
27
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
28
28
|
* @summary Create the account
|
|
29
29
|
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
30
30
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -33,7 +33,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
33
33
|
*/
|
|
34
34
|
createAccount: (createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
35
|
/**
|
|
36
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
36
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
37
37
|
* @summary Delete the account
|
|
38
38
|
* @param {string} code Unique identifier for the object.
|
|
39
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -42,7 +42,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
42
42
|
*/
|
|
43
43
|
deleteAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
45
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
46
46
|
* @summary Retrieve the account
|
|
47
47
|
* @param {string} code Unique identifier for the object.
|
|
48
48
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -52,22 +52,22 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
52
52
|
*/
|
|
53
53
|
getAccount: (code: string, authorization?: string, expand?: 'policies', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
55
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
56
56
|
* @summary List accounts
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
|
-
* @param {
|
|
59
|
-
* @param {
|
|
58
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
59
|
+
* @param {string} [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.
|
|
60
60
|
* @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
62
62
|
* @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
|
|
63
|
-
* @param {'policies'} [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
|
|
64
|
-
* @param {
|
|
63
|
+
* @param {'policies'} [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.
|
|
64
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
*/
|
|
68
|
-
listAccounts: (authorization?: string, pageSize?:
|
|
68
|
+
listAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
69
|
/**
|
|
70
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
70
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
71
71
|
* @summary Update the account
|
|
72
72
|
* @param {string} code Unique identifier for the object.
|
|
73
73
|
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
@@ -83,7 +83,7 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
83
83
|
*/
|
|
84
84
|
export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
85
85
|
/**
|
|
86
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
86
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
87
87
|
* @summary Create the account
|
|
88
88
|
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
89
89
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -92,7 +92,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
92
92
|
*/
|
|
93
93
|
createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountResponseClass>>;
|
|
94
94
|
/**
|
|
95
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
95
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
96
96
|
* @summary Delete the account
|
|
97
97
|
* @param {string} code Unique identifier for the object.
|
|
98
98
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -101,7 +101,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
101
101
|
*/
|
|
102
102
|
deleteAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
103
103
|
/**
|
|
104
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
104
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
105
105
|
* @summary Retrieve the account
|
|
106
106
|
* @param {string} code Unique identifier for the object.
|
|
107
107
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -111,22 +111,22 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
111
111
|
*/
|
|
112
112
|
getAccount(code: string, authorization?: string, expand?: 'policies', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponseClass>>;
|
|
113
113
|
/**
|
|
114
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
114
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
115
115
|
* @summary List accounts
|
|
116
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
|
-
* @param {
|
|
118
|
-
* @param {
|
|
117
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
|
+
* @param {string} [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.
|
|
119
119
|
* @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
120
|
-
* @param {
|
|
120
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
121
121
|
* @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
|
|
122
|
-
* @param {'policies'} [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
|
|
123
|
-
* @param {
|
|
122
|
+
* @param {'policies'} [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.
|
|
123
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
listAccounts(authorization?: string, pageSize?:
|
|
127
|
+
listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponseClass>>;
|
|
128
128
|
/**
|
|
129
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
129
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
130
130
|
* @summary Update the account
|
|
131
131
|
* @param {string} code Unique identifier for the object.
|
|
132
132
|
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
@@ -142,7 +142,7 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
142
142
|
*/
|
|
143
143
|
export declare const AccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
144
144
|
/**
|
|
145
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
145
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
146
146
|
* @summary Create the account
|
|
147
147
|
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
148
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -151,7 +151,7 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
151
151
|
*/
|
|
152
152
|
createAccount(createAccountRequestDto: CreateAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateAccountResponseClass>;
|
|
153
153
|
/**
|
|
154
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
154
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
155
155
|
* @summary Delete the account
|
|
156
156
|
* @param {string} code Unique identifier for the object.
|
|
157
157
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -160,7 +160,7 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
160
160
|
*/
|
|
161
161
|
deleteAccount(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
162
162
|
/**
|
|
163
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
163
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
164
164
|
* @summary Retrieve the account
|
|
165
165
|
* @param {string} code Unique identifier for the object.
|
|
166
166
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -170,22 +170,22 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
170
170
|
*/
|
|
171
171
|
getAccount(code: string, authorization?: string, expand?: 'policies', options?: any): AxiosPromise<GetAccountResponseClass>;
|
|
172
172
|
/**
|
|
173
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
173
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
174
174
|
* @summary List accounts
|
|
175
175
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
176
|
-
* @param {
|
|
177
|
-
* @param {
|
|
176
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
177
|
+
* @param {string} [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.
|
|
178
178
|
* @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
179
|
-
* @param {
|
|
179
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
180
180
|
* @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
|
|
181
|
-
* @param {'policies'} [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
|
|
182
|
-
* @param {
|
|
181
|
+
* @param {'policies'} [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.
|
|
182
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
183
183
|
* @param {*} [options] Override http request option.
|
|
184
184
|
* @throws {RequiredError}
|
|
185
185
|
*/
|
|
186
|
-
listAccounts(authorization?: string, pageSize?:
|
|
186
|
+
listAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name', search?: string, order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber', expand?: 'policies', filters?: string, options?: any): AxiosPromise<ListAccountsResponseClass>;
|
|
187
187
|
/**
|
|
188
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
188
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
189
189
|
* @summary Update the account
|
|
190
190
|
* @param {string} code Unique identifier for the object.
|
|
191
191
|
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
@@ -272,16 +272,16 @@ export interface AccountsApiListAccountsRequest {
|
|
|
272
272
|
readonly authorization?: string;
|
|
273
273
|
/**
|
|
274
274
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
275
|
-
* @type {
|
|
275
|
+
* @type {number}
|
|
276
276
|
* @memberof AccountsApiListAccounts
|
|
277
277
|
*/
|
|
278
|
-
readonly pageSize?:
|
|
278
|
+
readonly pageSize?: number;
|
|
279
279
|
/**
|
|
280
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1,
|
|
281
|
-
* @type {
|
|
280
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
281
|
+
* @type {string}
|
|
282
282
|
* @memberof AccountsApiListAccounts
|
|
283
283
|
*/
|
|
284
|
-
readonly pageToken?:
|
|
284
|
+
readonly pageToken?: string;
|
|
285
285
|
/**
|
|
286
286
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
287
287
|
* @type {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'}
|
|
@@ -290,10 +290,10 @@ export interface AccountsApiListAccountsRequest {
|
|
|
290
290
|
readonly filter?: 'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name';
|
|
291
291
|
/**
|
|
292
292
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
293
|
-
* @type {
|
|
293
|
+
* @type {string}
|
|
294
294
|
* @memberof AccountsApiListAccounts
|
|
295
295
|
*/
|
|
296
|
-
readonly search?:
|
|
296
|
+
readonly search?: string;
|
|
297
297
|
/**
|
|
298
298
|
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
299
299
|
* @type {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'}
|
|
@@ -301,17 +301,17 @@ export interface AccountsApiListAccountsRequest {
|
|
|
301
301
|
*/
|
|
302
302
|
readonly order?: 'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber';
|
|
303
303
|
/**
|
|
304
|
-
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
304
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
305
305
|
* @type {'policies'}
|
|
306
306
|
* @memberof AccountsApiListAccounts
|
|
307
307
|
*/
|
|
308
308
|
readonly expand?: 'policies';
|
|
309
309
|
/**
|
|
310
310
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
311
|
-
* @type {
|
|
311
|
+
* @type {string}
|
|
312
312
|
* @memberof AccountsApiListAccounts
|
|
313
313
|
*/
|
|
314
|
-
readonly filters?:
|
|
314
|
+
readonly filters?: string;
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
317
|
* Request parameters for updateAccount operation in AccountsApi.
|
|
@@ -346,7 +346,7 @@ export interface AccountsApiUpdateAccountRequest {
|
|
|
346
346
|
*/
|
|
347
347
|
export declare class AccountsApi extends BaseAPI {
|
|
348
348
|
/**
|
|
349
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
349
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
350
350
|
* @summary Create the account
|
|
351
351
|
* @param {AccountsApiCreateAccountRequest} requestParameters Request parameters.
|
|
352
352
|
* @param {*} [options] Override http request option.
|
|
@@ -355,7 +355,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
355
355
|
*/
|
|
356
356
|
createAccount(requestParameters: AccountsApiCreateAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccountResponseClass, any>>;
|
|
357
357
|
/**
|
|
358
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
358
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
359
359
|
* @summary Delete the account
|
|
360
360
|
* @param {AccountsApiDeleteAccountRequest} requestParameters Request parameters.
|
|
361
361
|
* @param {*} [options] Override http request option.
|
|
@@ -364,7 +364,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
364
364
|
*/
|
|
365
365
|
deleteAccount(requestParameters: AccountsApiDeleteAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
366
366
|
/**
|
|
367
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
367
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
368
368
|
* @summary Retrieve the account
|
|
369
369
|
* @param {AccountsApiGetAccountRequest} requestParameters Request parameters.
|
|
370
370
|
* @param {*} [options] Override http request option.
|
|
@@ -373,7 +373,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
373
373
|
*/
|
|
374
374
|
getAccount(requestParameters: AccountsApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponseClass, any>>;
|
|
375
375
|
/**
|
|
376
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
376
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
377
377
|
* @summary List accounts
|
|
378
378
|
* @param {AccountsApiListAccountsRequest} requestParameters Request parameters.
|
|
379
379
|
* @param {*} [options] Override http request option.
|
|
@@ -382,7 +382,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
382
382
|
*/
|
|
383
383
|
listAccounts(requestParameters?: AccountsApiListAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponseClass, any>>;
|
|
384
384
|
/**
|
|
385
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
385
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
386
386
|
* @summary Update the account
|
|
387
387
|
* @param {AccountsApiUpdateAccountRequest} requestParameters Request parameters.
|
|
388
388
|
* @param {*} [options] Override http request option.
|
package/dist/api/accounts-api.js
CHANGED
|
@@ -93,7 +93,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
96
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
97
97
|
* @summary Create the account
|
|
98
98
|
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -142,7 +142,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
145
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
146
146
|
* @summary Delete the account
|
|
147
147
|
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -190,7 +190,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
193
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
194
194
|
* @summary Retrieve the account
|
|
195
195
|
* @param {string} code Unique identifier for the object.
|
|
196
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -242,16 +242,16 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
242
242
|
});
|
|
243
243
|
},
|
|
244
244
|
/**
|
|
245
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
245
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
246
246
|
* @summary List accounts
|
|
247
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
|
-
* @param {
|
|
249
|
-
* @param {
|
|
248
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
249
|
+
* @param {string} [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.
|
|
250
250
|
* @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
251
|
-
* @param {
|
|
251
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
252
252
|
* @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
|
|
253
|
-
* @param {'policies'} [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
|
|
254
|
-
* @param {
|
|
253
|
+
* @param {'policies'} [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.
|
|
254
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
255
255
|
* @param {*} [options] Override http request option.
|
|
256
256
|
* @throws {RequiredError}
|
|
257
257
|
*/
|
|
@@ -314,7 +314,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
316
|
/**
|
|
317
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
317
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
318
318
|
* @summary Update the account
|
|
319
319
|
* @param {string} code Unique identifier for the object.
|
|
320
320
|
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
@@ -377,7 +377,7 @@ var AccountsApiFp = function (configuration) {
|
|
|
377
377
|
var localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
|
|
378
378
|
return {
|
|
379
379
|
/**
|
|
380
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
380
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
381
381
|
* @summary Create the account
|
|
382
382
|
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
383
383
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -398,7 +398,7 @@ var AccountsApiFp = function (configuration) {
|
|
|
398
398
|
});
|
|
399
399
|
},
|
|
400
400
|
/**
|
|
401
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
401
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
402
402
|
* @summary Delete the account
|
|
403
403
|
* @param {string} code Unique identifier for the object.
|
|
404
404
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -419,7 +419,7 @@ var AccountsApiFp = function (configuration) {
|
|
|
419
419
|
});
|
|
420
420
|
},
|
|
421
421
|
/**
|
|
422
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
422
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
423
423
|
* @summary Retrieve the account
|
|
424
424
|
* @param {string} code Unique identifier for the object.
|
|
425
425
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -441,16 +441,16 @@ var AccountsApiFp = function (configuration) {
|
|
|
441
441
|
});
|
|
442
442
|
},
|
|
443
443
|
/**
|
|
444
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
444
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
445
445
|
* @summary List accounts
|
|
446
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
|
-
* @param {
|
|
448
|
-
* @param {
|
|
447
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
448
|
+
* @param {string} [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.
|
|
449
449
|
* @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
450
|
-
* @param {
|
|
450
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
451
451
|
* @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
|
|
452
|
-
* @param {'policies'} [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
|
|
453
|
-
* @param {
|
|
452
|
+
* @param {'policies'} [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.
|
|
453
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
454
454
|
* @param {*} [options] Override http request option.
|
|
455
455
|
* @throws {RequiredError}
|
|
456
456
|
*/
|
|
@@ -468,7 +468,7 @@ var AccountsApiFp = function (configuration) {
|
|
|
468
468
|
});
|
|
469
469
|
},
|
|
470
470
|
/**
|
|
471
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
471
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
472
472
|
* @summary Update the account
|
|
473
473
|
* @param {string} code Unique identifier for the object.
|
|
474
474
|
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
@@ -500,7 +500,7 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
500
500
|
var localVarFp = (0, exports.AccountsApiFp)(configuration);
|
|
501
501
|
return {
|
|
502
502
|
/**
|
|
503
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
503
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
504
504
|
* @summary Create the account
|
|
505
505
|
* @param {CreateAccountRequestDto} createAccountRequestDto
|
|
506
506
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -511,7 +511,7 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
511
511
|
return localVarFp.createAccount(createAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
512
512
|
},
|
|
513
513
|
/**
|
|
514
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
514
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
515
515
|
* @summary Delete the account
|
|
516
516
|
* @param {string} code Unique identifier for the object.
|
|
517
517
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -522,7 +522,7 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
522
522
|
return localVarFp.deleteAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
523
523
|
},
|
|
524
524
|
/**
|
|
525
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
525
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
526
526
|
* @summary Retrieve the account
|
|
527
527
|
* @param {string} code Unique identifier for the object.
|
|
528
528
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -534,16 +534,16 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
534
534
|
return localVarFp.getAccount(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
535
535
|
},
|
|
536
536
|
/**
|
|
537
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
537
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
538
538
|
* @summary List accounts
|
|
539
539
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
540
|
-
* @param {
|
|
541
|
-
* @param {
|
|
540
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
541
|
+
* @param {string} [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.
|
|
542
542
|
* @param {'firstName' | 'code' | 'email' | 'createdAt' | 'birthDate' | 'accountNumber' | 'title' | 'lastName' | 'gender' | 'street' | 'houseNumber' | 'zipCode' | 'city' | 'phone' | 'type' | 'companyName' | 'name'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
543
|
-
* @param {
|
|
543
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
544
544
|
* @param {'id' | 'firstName' | 'lastName' | 'email' | 'createdAt' | 'accountNumber'} [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.
|
|
545
|
-
* @param {'policies'} [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
|
|
546
|
-
* @param {
|
|
545
|
+
* @param {'policies'} [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.
|
|
546
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
547
547
|
* @param {*} [options] Override http request option.
|
|
548
548
|
* @throws {RequiredError}
|
|
549
549
|
*/
|
|
@@ -551,7 +551,7 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
551
551
|
return localVarFp.listAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
552
552
|
},
|
|
553
553
|
/**
|
|
554
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
554
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
555
555
|
* @summary Update the account
|
|
556
556
|
* @param {string} code Unique identifier for the object.
|
|
557
557
|
* @param {UpdateAccountRequestDto} updateAccountRequestDto
|
|
@@ -577,7 +577,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
577
577
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
|
-
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information.
|
|
580
|
+
* This will create an account in the database. Account creation is usually part of a complex workflow that starts with lead creation. Creating directly an account without prior knowledge might result in an unusable account. Look into lead creation for more information. **Required Permissions** \"partner-management.partners.create\"
|
|
581
581
|
* @summary Create the account
|
|
582
582
|
* @param {AccountsApiCreateAccountRequest} requestParameters Request parameters.
|
|
583
583
|
* @param {*} [options] Override http request option.
|
|
@@ -589,7 +589,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
589
589
|
return (0, exports.AccountsApiFp)(this.configuration).createAccount(requestParameters.createAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
590
590
|
};
|
|
591
591
|
/**
|
|
592
|
-
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it.
|
|
592
|
+
* Permanently deletes the account. Supply the unique code that was returned when you created the account and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
593
593
|
* @summary Delete the account
|
|
594
594
|
* @param {AccountsApiDeleteAccountRequest} requestParameters Request parameters.
|
|
595
595
|
* @param {*} [options] Override http request option.
|
|
@@ -601,7 +601,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
601
601
|
return (0, exports.AccountsApiFp)(this.configuration).deleteAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
602
602
|
};
|
|
603
603
|
/**
|
|
604
|
-
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information.
|
|
604
|
+
* Retrieves the details of the account that was previously created. Supply the unique account code that was returned when you created it and Emil Api will return the corresponding account information. **Required Permissions** \"partner-management.partners.view\"
|
|
605
605
|
* @summary Retrieve the account
|
|
606
606
|
* @param {AccountsApiGetAccountRequest} requestParameters Request parameters.
|
|
607
607
|
* @param {*} [options] Override http request option.
|
|
@@ -613,7 +613,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
613
613
|
return (0, exports.AccountsApiFp)(this.configuration).getAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
614
614
|
};
|
|
615
615
|
/**
|
|
616
|
-
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
616
|
+
* Returns a list of accounts you have previously created. The accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
617
617
|
* @summary List accounts
|
|
618
618
|
* @param {AccountsApiListAccountsRequest} requestParameters Request parameters.
|
|
619
619
|
* @param {*} [options] Override http request option.
|
|
@@ -626,7 +626,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
626
626
|
return (0, exports.AccountsApiFp)(this.configuration).listAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
627
627
|
};
|
|
628
628
|
/**
|
|
629
|
-
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
629
|
+
* Updates the specified account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
630
630
|
* @summary Update the account
|
|
631
631
|
* @param {AccountsApiUpdateAccountRequest} requestParameters Request parameters.
|
|
632
632
|
* @param {*} [options] Override http request option.
|
package/dist/common.js
CHANGED
|
@@ -140,7 +140,7 @@ var setBearerAuthToObject = function (object, configuration) {
|
|
|
140
140
|
_b.label = 4;
|
|
141
141
|
case 4:
|
|
142
142
|
accessToken = _a;
|
|
143
|
-
object["Authorization"] =
|
|
143
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
144
144
|
_b.label = 5;
|
|
145
145
|
case 5: return [2 /*return*/];
|
|
146
146
|
}
|
|
@@ -170,7 +170,7 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
170
170
|
_b.label = 4;
|
|
171
171
|
case 4:
|
|
172
172
|
localVarAccessTokenValue = _a;
|
|
173
|
-
object["Authorization"] =
|
|
173
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
174
174
|
_b.label = 5;
|
|
175
175
|
case 5: return [2 /*return*/];
|
|
176
176
|
}
|
package/dist/configuration.d.ts
CHANGED
|
@@ -80,4 +80,10 @@ export declare class Configuration {
|
|
|
80
80
|
* @return True if the given MIME is JSON, false otherwise.
|
|
81
81
|
*/
|
|
82
82
|
isJsonMime(mime: string): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Returns "Bearer" token.
|
|
85
|
+
* @param token - access token.
|
|
86
|
+
* @return Bearer token.
|
|
87
|
+
*/
|
|
88
|
+
getBearerToken(token?: string): string;
|
|
83
89
|
}
|
package/dist/configuration.js
CHANGED
|
@@ -39,6 +39,14 @@ var Configuration = /** @class */ (function () {
|
|
|
39
39
|
var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
40
40
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Returns "Bearer" token.
|
|
44
|
+
* @param token - access token.
|
|
45
|
+
* @return Bearer token.
|
|
46
|
+
*/
|
|
47
|
+
Configuration.prototype.getBearerToken = function (token) {
|
|
48
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
49
|
+
};
|
|
42
50
|
return Configuration;
|
|
43
51
|
}());
|
|
44
52
|
exports.Configuration = Configuration;
|