flexinet-api 0.0.273-prerelease0 → 0.0.292-prerelease0
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.ts +77 -0
- package/dist/api.d.ts +39 -0
- package/dist/api.js +66 -0
- package/dist/esm/api.d.ts +39 -0
- package/dist/esm/api.js +66 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.292-prerelease0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install flexinet-api@0.0.
|
|
39
|
+
npm install flexinet-api@0.0.292-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -2698,6 +2698,12 @@ export interface User {
|
|
|
2698
2698
|
* @memberof User
|
|
2699
2699
|
*/
|
|
2700
2700
|
'updatedAt': string;
|
|
2701
|
+
/**
|
|
2702
|
+
*
|
|
2703
|
+
* @type {User}
|
|
2704
|
+
* @memberof User
|
|
2705
|
+
*/
|
|
2706
|
+
'manager'?: User;
|
|
2701
2707
|
/**
|
|
2702
2708
|
*
|
|
2703
2709
|
* @type {UserDetails}
|
|
@@ -7487,6 +7493,44 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7487
7493
|
|
|
7488
7494
|
|
|
7489
7495
|
|
|
7496
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7497
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7498
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7499
|
+
|
|
7500
|
+
return {
|
|
7501
|
+
url: toPathString(localVarUrlObj),
|
|
7502
|
+
options: localVarRequestOptions,
|
|
7503
|
+
};
|
|
7504
|
+
},
|
|
7505
|
+
/**
|
|
7506
|
+
* Get subordonates of a user by ID
|
|
7507
|
+
* @summary Get user team
|
|
7508
|
+
* @param {string} id user id
|
|
7509
|
+
* @param {*} [options] Override http request option.
|
|
7510
|
+
* @throws {RequiredError}
|
|
7511
|
+
*/
|
|
7512
|
+
getUserSubordinates: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7513
|
+
// verify required parameter 'id' is not null or undefined
|
|
7514
|
+
assertParamExists('getUserSubordinates', 'id', id)
|
|
7515
|
+
const localVarPath = `/admin/users/{id}/team`
|
|
7516
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7517
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7518
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7519
|
+
let baseOptions;
|
|
7520
|
+
if (configuration) {
|
|
7521
|
+
baseOptions = configuration.baseOptions;
|
|
7522
|
+
}
|
|
7523
|
+
|
|
7524
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7525
|
+
const localVarHeaderParameter = {} as any;
|
|
7526
|
+
const localVarQueryParameter = {} as any;
|
|
7527
|
+
|
|
7528
|
+
// authentication jwt required
|
|
7529
|
+
// http bearer authentication required
|
|
7530
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7531
|
+
|
|
7532
|
+
|
|
7533
|
+
|
|
7490
7534
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7491
7535
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7492
7536
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7581,6 +7625,17 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7581
7625
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserByID(id, options);
|
|
7582
7626
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7583
7627
|
},
|
|
7628
|
+
/**
|
|
7629
|
+
* Get subordonates of a user by ID
|
|
7630
|
+
* @summary Get user team
|
|
7631
|
+
* @param {string} id user id
|
|
7632
|
+
* @param {*} [options] Override http request option.
|
|
7633
|
+
* @throws {RequiredError}
|
|
7634
|
+
*/
|
|
7635
|
+
async getUserSubordinates(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>> {
|
|
7636
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserSubordinates(id, options);
|
|
7637
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7638
|
+
},
|
|
7584
7639
|
/**
|
|
7585
7640
|
* List all users
|
|
7586
7641
|
* @summary List users
|
|
@@ -7617,6 +7672,16 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
7617
7672
|
getUserByID(id: string, options?: any): AxiosPromise<User> {
|
|
7618
7673
|
return localVarFp.getUserByID(id, options).then((request) => request(axios, basePath));
|
|
7619
7674
|
},
|
|
7675
|
+
/**
|
|
7676
|
+
* Get subordonates of a user by ID
|
|
7677
|
+
* @summary Get user team
|
|
7678
|
+
* @param {string} id user id
|
|
7679
|
+
* @param {*} [options] Override http request option.
|
|
7680
|
+
* @throws {RequiredError}
|
|
7681
|
+
*/
|
|
7682
|
+
getUserSubordinates(id: string, options?: any): AxiosPromise<Array<User>> {
|
|
7683
|
+
return localVarFp.getUserSubordinates(id, options).then((request) => request(axios, basePath));
|
|
7684
|
+
},
|
|
7620
7685
|
/**
|
|
7621
7686
|
* List all users
|
|
7622
7687
|
* @summary List users
|
|
@@ -7654,6 +7719,18 @@ export class UserApi extends BaseAPI {
|
|
|
7654
7719
|
return UserApiFp(this.configuration).getUserByID(id, options).then((request) => request(this.axios, this.basePath));
|
|
7655
7720
|
}
|
|
7656
7721
|
|
|
7722
|
+
/**
|
|
7723
|
+
* Get subordonates of a user by ID
|
|
7724
|
+
* @summary Get user team
|
|
7725
|
+
* @param {string} id user id
|
|
7726
|
+
* @param {*} [options] Override http request option.
|
|
7727
|
+
* @throws {RequiredError}
|
|
7728
|
+
* @memberof UserApi
|
|
7729
|
+
*/
|
|
7730
|
+
public getUserSubordinates(id: string, options?: AxiosRequestConfig) {
|
|
7731
|
+
return UserApiFp(this.configuration).getUserSubordinates(id, options).then((request) => request(this.axios, this.basePath));
|
|
7732
|
+
}
|
|
7733
|
+
|
|
7657
7734
|
/**
|
|
7658
7735
|
* List all users
|
|
7659
7736
|
* @summary List users
|
package/dist/api.d.ts
CHANGED
|
@@ -2563,6 +2563,12 @@ export interface User {
|
|
|
2563
2563
|
* @memberof User
|
|
2564
2564
|
*/
|
|
2565
2565
|
'updatedAt': string;
|
|
2566
|
+
/**
|
|
2567
|
+
*
|
|
2568
|
+
* @type {User}
|
|
2569
|
+
* @memberof User
|
|
2570
|
+
*/
|
|
2571
|
+
'manager'?: User;
|
|
2566
2572
|
/**
|
|
2567
2573
|
*
|
|
2568
2574
|
* @type {UserDetails}
|
|
@@ -4983,6 +4989,14 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
4983
4989
|
* @throws {RequiredError}
|
|
4984
4990
|
*/
|
|
4985
4991
|
getUserByID: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4992
|
+
/**
|
|
4993
|
+
* Get subordonates of a user by ID
|
|
4994
|
+
* @summary Get user team
|
|
4995
|
+
* @param {string} id user id
|
|
4996
|
+
* @param {*} [options] Override http request option.
|
|
4997
|
+
* @throws {RequiredError}
|
|
4998
|
+
*/
|
|
4999
|
+
getUserSubordinates: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4986
5000
|
/**
|
|
4987
5001
|
* List all users
|
|
4988
5002
|
* @summary List users
|
|
@@ -5010,6 +5024,14 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
5010
5024
|
* @throws {RequiredError}
|
|
5011
5025
|
*/
|
|
5012
5026
|
getUserByID(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>>;
|
|
5027
|
+
/**
|
|
5028
|
+
* Get subordonates of a user by ID
|
|
5029
|
+
* @summary Get user team
|
|
5030
|
+
* @param {string} id user id
|
|
5031
|
+
* @param {*} [options] Override http request option.
|
|
5032
|
+
* @throws {RequiredError}
|
|
5033
|
+
*/
|
|
5034
|
+
getUserSubordinates(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>>;
|
|
5013
5035
|
/**
|
|
5014
5036
|
* List all users
|
|
5015
5037
|
* @summary List users
|
|
@@ -5037,6 +5059,14 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
5037
5059
|
* @throws {RequiredError}
|
|
5038
5060
|
*/
|
|
5039
5061
|
getUserByID(id: string, options?: any): AxiosPromise<User>;
|
|
5062
|
+
/**
|
|
5063
|
+
* Get subordonates of a user by ID
|
|
5064
|
+
* @summary Get user team
|
|
5065
|
+
* @param {string} id user id
|
|
5066
|
+
* @param {*} [options] Override http request option.
|
|
5067
|
+
* @throws {RequiredError}
|
|
5068
|
+
*/
|
|
5069
|
+
getUserSubordinates(id: string, options?: any): AxiosPromise<Array<User>>;
|
|
5040
5070
|
/**
|
|
5041
5071
|
* List all users
|
|
5042
5072
|
* @summary List users
|
|
@@ -5067,6 +5097,15 @@ export declare class UserApi extends BaseAPI {
|
|
|
5067
5097
|
* @memberof UserApi
|
|
5068
5098
|
*/
|
|
5069
5099
|
getUserByID(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<User, any>>;
|
|
5100
|
+
/**
|
|
5101
|
+
* Get subordonates of a user by ID
|
|
5102
|
+
* @summary Get user team
|
|
5103
|
+
* @param {string} id user id
|
|
5104
|
+
* @param {*} [options] Override http request option.
|
|
5105
|
+
* @throws {RequiredError}
|
|
5106
|
+
* @memberof UserApi
|
|
5107
|
+
*/
|
|
5108
|
+
getUserSubordinates(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<User[], any>>;
|
|
5070
5109
|
/**
|
|
5071
5110
|
* List all users
|
|
5072
5111
|
* @summary List users
|
package/dist/api.js
CHANGED
|
@@ -4620,6 +4620,38 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4620
4620
|
options: localVarRequestOptions,
|
|
4621
4621
|
};
|
|
4622
4622
|
}),
|
|
4623
|
+
/**
|
|
4624
|
+
* Get subordonates of a user by ID
|
|
4625
|
+
* @summary Get user team
|
|
4626
|
+
* @param {string} id user id
|
|
4627
|
+
* @param {*} [options] Override http request option.
|
|
4628
|
+
* @throws {RequiredError}
|
|
4629
|
+
*/
|
|
4630
|
+
getUserSubordinates: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4631
|
+
// verify required parameter 'id' is not null or undefined
|
|
4632
|
+
(0, common_1.assertParamExists)('getUserSubordinates', 'id', id);
|
|
4633
|
+
const localVarPath = `/admin/users/{id}/team`
|
|
4634
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4635
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4636
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4637
|
+
let baseOptions;
|
|
4638
|
+
if (configuration) {
|
|
4639
|
+
baseOptions = configuration.baseOptions;
|
|
4640
|
+
}
|
|
4641
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4642
|
+
const localVarHeaderParameter = {};
|
|
4643
|
+
const localVarQueryParameter = {};
|
|
4644
|
+
// authentication jwt required
|
|
4645
|
+
// http bearer authentication required
|
|
4646
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4647
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4648
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4649
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4650
|
+
return {
|
|
4651
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4652
|
+
options: localVarRequestOptions,
|
|
4653
|
+
};
|
|
4654
|
+
}),
|
|
4623
4655
|
/**
|
|
4624
4656
|
* List all users
|
|
4625
4657
|
* @summary List users
|
|
@@ -4695,6 +4727,19 @@ const UserApiFp = function (configuration) {
|
|
|
4695
4727
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4696
4728
|
});
|
|
4697
4729
|
},
|
|
4730
|
+
/**
|
|
4731
|
+
* Get subordonates of a user by ID
|
|
4732
|
+
* @summary Get user team
|
|
4733
|
+
* @param {string} id user id
|
|
4734
|
+
* @param {*} [options] Override http request option.
|
|
4735
|
+
* @throws {RequiredError}
|
|
4736
|
+
*/
|
|
4737
|
+
getUserSubordinates(id, options) {
|
|
4738
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4739
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubordinates(id, options);
|
|
4740
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4741
|
+
});
|
|
4742
|
+
},
|
|
4698
4743
|
/**
|
|
4699
4744
|
* List all users
|
|
4700
4745
|
* @summary List users
|
|
@@ -4733,6 +4778,16 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4733
4778
|
getUserByID(id, options) {
|
|
4734
4779
|
return localVarFp.getUserByID(id, options).then((request) => request(axios, basePath));
|
|
4735
4780
|
},
|
|
4781
|
+
/**
|
|
4782
|
+
* Get subordonates of a user by ID
|
|
4783
|
+
* @summary Get user team
|
|
4784
|
+
* @param {string} id user id
|
|
4785
|
+
* @param {*} [options] Override http request option.
|
|
4786
|
+
* @throws {RequiredError}
|
|
4787
|
+
*/
|
|
4788
|
+
getUserSubordinates(id, options) {
|
|
4789
|
+
return localVarFp.getUserSubordinates(id, options).then((request) => request(axios, basePath));
|
|
4790
|
+
},
|
|
4736
4791
|
/**
|
|
4737
4792
|
* List all users
|
|
4738
4793
|
* @summary List users
|
|
@@ -4769,6 +4824,17 @@ class UserApi extends base_1.BaseAPI {
|
|
|
4769
4824
|
getUserByID(id, options) {
|
|
4770
4825
|
return (0, exports.UserApiFp)(this.configuration).getUserByID(id, options).then((request) => request(this.axios, this.basePath));
|
|
4771
4826
|
}
|
|
4827
|
+
/**
|
|
4828
|
+
* Get subordonates of a user by ID
|
|
4829
|
+
* @summary Get user team
|
|
4830
|
+
* @param {string} id user id
|
|
4831
|
+
* @param {*} [options] Override http request option.
|
|
4832
|
+
* @throws {RequiredError}
|
|
4833
|
+
* @memberof UserApi
|
|
4834
|
+
*/
|
|
4835
|
+
getUserSubordinates(id, options) {
|
|
4836
|
+
return (0, exports.UserApiFp)(this.configuration).getUserSubordinates(id, options).then((request) => request(this.axios, this.basePath));
|
|
4837
|
+
}
|
|
4772
4838
|
/**
|
|
4773
4839
|
* List all users
|
|
4774
4840
|
* @summary List users
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2563,6 +2563,12 @@ export interface User {
|
|
|
2563
2563
|
* @memberof User
|
|
2564
2564
|
*/
|
|
2565
2565
|
'updatedAt': string;
|
|
2566
|
+
/**
|
|
2567
|
+
*
|
|
2568
|
+
* @type {User}
|
|
2569
|
+
* @memberof User
|
|
2570
|
+
*/
|
|
2571
|
+
'manager'?: User;
|
|
2566
2572
|
/**
|
|
2567
2573
|
*
|
|
2568
2574
|
* @type {UserDetails}
|
|
@@ -4983,6 +4989,14 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
4983
4989
|
* @throws {RequiredError}
|
|
4984
4990
|
*/
|
|
4985
4991
|
getUserByID: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4992
|
+
/**
|
|
4993
|
+
* Get subordonates of a user by ID
|
|
4994
|
+
* @summary Get user team
|
|
4995
|
+
* @param {string} id user id
|
|
4996
|
+
* @param {*} [options] Override http request option.
|
|
4997
|
+
* @throws {RequiredError}
|
|
4998
|
+
*/
|
|
4999
|
+
getUserSubordinates: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4986
5000
|
/**
|
|
4987
5001
|
* List all users
|
|
4988
5002
|
* @summary List users
|
|
@@ -5010,6 +5024,14 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
5010
5024
|
* @throws {RequiredError}
|
|
5011
5025
|
*/
|
|
5012
5026
|
getUserByID(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>>;
|
|
5027
|
+
/**
|
|
5028
|
+
* Get subordonates of a user by ID
|
|
5029
|
+
* @summary Get user team
|
|
5030
|
+
* @param {string} id user id
|
|
5031
|
+
* @param {*} [options] Override http request option.
|
|
5032
|
+
* @throws {RequiredError}
|
|
5033
|
+
*/
|
|
5034
|
+
getUserSubordinates(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>>;
|
|
5013
5035
|
/**
|
|
5014
5036
|
* List all users
|
|
5015
5037
|
* @summary List users
|
|
@@ -5037,6 +5059,14 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
5037
5059
|
* @throws {RequiredError}
|
|
5038
5060
|
*/
|
|
5039
5061
|
getUserByID(id: string, options?: any): AxiosPromise<User>;
|
|
5062
|
+
/**
|
|
5063
|
+
* Get subordonates of a user by ID
|
|
5064
|
+
* @summary Get user team
|
|
5065
|
+
* @param {string} id user id
|
|
5066
|
+
* @param {*} [options] Override http request option.
|
|
5067
|
+
* @throws {RequiredError}
|
|
5068
|
+
*/
|
|
5069
|
+
getUserSubordinates(id: string, options?: any): AxiosPromise<Array<User>>;
|
|
5040
5070
|
/**
|
|
5041
5071
|
* List all users
|
|
5042
5072
|
* @summary List users
|
|
@@ -5067,6 +5097,15 @@ export declare class UserApi extends BaseAPI {
|
|
|
5067
5097
|
* @memberof UserApi
|
|
5068
5098
|
*/
|
|
5069
5099
|
getUserByID(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<User, any>>;
|
|
5100
|
+
/**
|
|
5101
|
+
* Get subordonates of a user by ID
|
|
5102
|
+
* @summary Get user team
|
|
5103
|
+
* @param {string} id user id
|
|
5104
|
+
* @param {*} [options] Override http request option.
|
|
5105
|
+
* @throws {RequiredError}
|
|
5106
|
+
* @memberof UserApi
|
|
5107
|
+
*/
|
|
5108
|
+
getUserSubordinates(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<User[], any>>;
|
|
5070
5109
|
/**
|
|
5071
5110
|
* List all users
|
|
5072
5111
|
* @summary List users
|
package/dist/esm/api.js
CHANGED
|
@@ -4556,6 +4556,38 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4556
4556
|
options: localVarRequestOptions,
|
|
4557
4557
|
};
|
|
4558
4558
|
}),
|
|
4559
|
+
/**
|
|
4560
|
+
* Get subordonates of a user by ID
|
|
4561
|
+
* @summary Get user team
|
|
4562
|
+
* @param {string} id user id
|
|
4563
|
+
* @param {*} [options] Override http request option.
|
|
4564
|
+
* @throws {RequiredError}
|
|
4565
|
+
*/
|
|
4566
|
+
getUserSubordinates: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4567
|
+
// verify required parameter 'id' is not null or undefined
|
|
4568
|
+
assertParamExists('getUserSubordinates', 'id', id);
|
|
4569
|
+
const localVarPath = `/admin/users/{id}/team`
|
|
4570
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4571
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4572
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4573
|
+
let baseOptions;
|
|
4574
|
+
if (configuration) {
|
|
4575
|
+
baseOptions = configuration.baseOptions;
|
|
4576
|
+
}
|
|
4577
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4578
|
+
const localVarHeaderParameter = {};
|
|
4579
|
+
const localVarQueryParameter = {};
|
|
4580
|
+
// authentication jwt required
|
|
4581
|
+
// http bearer authentication required
|
|
4582
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4583
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4584
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4585
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4586
|
+
return {
|
|
4587
|
+
url: toPathString(localVarUrlObj),
|
|
4588
|
+
options: localVarRequestOptions,
|
|
4589
|
+
};
|
|
4590
|
+
}),
|
|
4559
4591
|
/**
|
|
4560
4592
|
* List all users
|
|
4561
4593
|
* @summary List users
|
|
@@ -4630,6 +4662,19 @@ export const UserApiFp = function (configuration) {
|
|
|
4630
4662
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4631
4663
|
});
|
|
4632
4664
|
},
|
|
4665
|
+
/**
|
|
4666
|
+
* Get subordonates of a user by ID
|
|
4667
|
+
* @summary Get user team
|
|
4668
|
+
* @param {string} id user id
|
|
4669
|
+
* @param {*} [options] Override http request option.
|
|
4670
|
+
* @throws {RequiredError}
|
|
4671
|
+
*/
|
|
4672
|
+
getUserSubordinates(id, options) {
|
|
4673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4674
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubordinates(id, options);
|
|
4675
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4676
|
+
});
|
|
4677
|
+
},
|
|
4633
4678
|
/**
|
|
4634
4679
|
* List all users
|
|
4635
4680
|
* @summary List users
|
|
@@ -4667,6 +4712,16 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4667
4712
|
getUserByID(id, options) {
|
|
4668
4713
|
return localVarFp.getUserByID(id, options).then((request) => request(axios, basePath));
|
|
4669
4714
|
},
|
|
4715
|
+
/**
|
|
4716
|
+
* Get subordonates of a user by ID
|
|
4717
|
+
* @summary Get user team
|
|
4718
|
+
* @param {string} id user id
|
|
4719
|
+
* @param {*} [options] Override http request option.
|
|
4720
|
+
* @throws {RequiredError}
|
|
4721
|
+
*/
|
|
4722
|
+
getUserSubordinates(id, options) {
|
|
4723
|
+
return localVarFp.getUserSubordinates(id, options).then((request) => request(axios, basePath));
|
|
4724
|
+
},
|
|
4670
4725
|
/**
|
|
4671
4726
|
* List all users
|
|
4672
4727
|
* @summary List users
|
|
@@ -4702,6 +4757,17 @@ export class UserApi extends BaseAPI {
|
|
|
4702
4757
|
getUserByID(id, options) {
|
|
4703
4758
|
return UserApiFp(this.configuration).getUserByID(id, options).then((request) => request(this.axios, this.basePath));
|
|
4704
4759
|
}
|
|
4760
|
+
/**
|
|
4761
|
+
* Get subordonates of a user by ID
|
|
4762
|
+
* @summary Get user team
|
|
4763
|
+
* @param {string} id user id
|
|
4764
|
+
* @param {*} [options] Override http request option.
|
|
4765
|
+
* @throws {RequiredError}
|
|
4766
|
+
* @memberof UserApi
|
|
4767
|
+
*/
|
|
4768
|
+
getUserSubordinates(id, options) {
|
|
4769
|
+
return UserApiFp(this.configuration).getUserSubordinates(id, options).then((request) => request(this.axios, this.basePath));
|
|
4770
|
+
}
|
|
4705
4771
|
/**
|
|
4706
4772
|
* List all users
|
|
4707
4773
|
* @summary List users
|