flexinet-api 0.0.738-prerelease0 → 0.0.748-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 +0 -101
- package/dist/api.d.ts +0 -65
- package/dist/api.js +0 -64
- package/dist/esm/api.d.ts +0 -65
- package/dist/esm/api.js +0 -64
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.748-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.748-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -915,38 +915,6 @@ export interface Item {
|
|
|
915
915
|
*/
|
|
916
916
|
'product': Product;
|
|
917
917
|
}
|
|
918
|
-
/**
|
|
919
|
-
*
|
|
920
|
-
* @export
|
|
921
|
-
* @interface LoginRequest
|
|
922
|
-
*/
|
|
923
|
-
export interface LoginRequest {
|
|
924
|
-
/**
|
|
925
|
-
*
|
|
926
|
-
* @type {string}
|
|
927
|
-
* @memberof LoginRequest
|
|
928
|
-
*/
|
|
929
|
-
'code': string;
|
|
930
|
-
/**
|
|
931
|
-
*
|
|
932
|
-
* @type {string}
|
|
933
|
-
* @memberof LoginRequest
|
|
934
|
-
*/
|
|
935
|
-
'tenantId': string;
|
|
936
|
-
}
|
|
937
|
-
/**
|
|
938
|
-
*
|
|
939
|
-
* @export
|
|
940
|
-
* @interface LoginResponse
|
|
941
|
-
*/
|
|
942
|
-
export interface LoginResponse {
|
|
943
|
-
/**
|
|
944
|
-
*
|
|
945
|
-
* @type {string}
|
|
946
|
-
* @memberof LoginResponse
|
|
947
|
-
*/
|
|
948
|
-
'accessToken': string;
|
|
949
|
-
}
|
|
950
918
|
/**
|
|
951
919
|
*
|
|
952
920
|
* @export
|
|
@@ -10401,42 +10369,6 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
10401
10369
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10402
10370
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10403
10371
|
|
|
10404
|
-
return {
|
|
10405
|
-
url: toPathString(localVarUrlObj),
|
|
10406
|
-
options: localVarRequestOptions,
|
|
10407
|
-
};
|
|
10408
|
-
},
|
|
10409
|
-
/**
|
|
10410
|
-
* Login
|
|
10411
|
-
* @summary Login
|
|
10412
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
10413
|
-
* @param {*} [options] Override http request option.
|
|
10414
|
-
* @throws {RequiredError}
|
|
10415
|
-
*/
|
|
10416
|
-
login: async (loginRequest: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10417
|
-
// verify required parameter 'loginRequest' is not null or undefined
|
|
10418
|
-
assertParamExists('login', 'loginRequest', loginRequest)
|
|
10419
|
-
const localVarPath = `/user/login`;
|
|
10420
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10421
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10422
|
-
let baseOptions;
|
|
10423
|
-
if (configuration) {
|
|
10424
|
-
baseOptions = configuration.baseOptions;
|
|
10425
|
-
}
|
|
10426
|
-
|
|
10427
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10428
|
-
const localVarHeaderParameter = {} as any;
|
|
10429
|
-
const localVarQueryParameter = {} as any;
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10434
|
-
|
|
10435
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10436
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10437
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10438
|
-
localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
|
|
10439
|
-
|
|
10440
10372
|
return {
|
|
10441
10373
|
url: toPathString(localVarUrlObj),
|
|
10442
10374
|
options: localVarRequestOptions,
|
|
@@ -10513,17 +10445,6 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
10513
10445
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(nextToken, role, search, clientIDs, userIDs, source, options);
|
|
10514
10446
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10515
10447
|
},
|
|
10516
|
-
/**
|
|
10517
|
-
* Login
|
|
10518
|
-
* @summary Login
|
|
10519
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
10520
|
-
* @param {*} [options] Override http request option.
|
|
10521
|
-
* @throws {RequiredError}
|
|
10522
|
-
*/
|
|
10523
|
-
async login(loginRequest: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
|
|
10524
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginRequest, options);
|
|
10525
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10526
|
-
},
|
|
10527
10448
|
}
|
|
10528
10449
|
};
|
|
10529
10450
|
|
|
@@ -10590,16 +10511,6 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
10590
10511
|
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: any): AxiosPromise<UserListResponse> {
|
|
10591
10512
|
return localVarFp.listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(axios, basePath));
|
|
10592
10513
|
},
|
|
10593
|
-
/**
|
|
10594
|
-
* Login
|
|
10595
|
-
* @summary Login
|
|
10596
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
10597
|
-
* @param {*} [options] Override http request option.
|
|
10598
|
-
* @throws {RequiredError}
|
|
10599
|
-
*/
|
|
10600
|
-
login(loginRequest: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
|
|
10601
|
-
return localVarFp.login(loginRequest, options).then((request) => request(axios, basePath));
|
|
10602
|
-
},
|
|
10603
10514
|
};
|
|
10604
10515
|
};
|
|
10605
10516
|
|
|
@@ -10675,18 +10586,6 @@ export class UserApi extends BaseAPI {
|
|
|
10675
10586
|
public listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig) {
|
|
10676
10587
|
return UserApiFp(this.configuration).listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(this.axios, this.basePath));
|
|
10677
10588
|
}
|
|
10678
|
-
|
|
10679
|
-
/**
|
|
10680
|
-
* Login
|
|
10681
|
-
* @summary Login
|
|
10682
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
10683
|
-
* @param {*} [options] Override http request option.
|
|
10684
|
-
* @throws {RequiredError}
|
|
10685
|
-
* @memberof UserApi
|
|
10686
|
-
*/
|
|
10687
|
-
public login(loginRequest: LoginRequest, options?: AxiosRequestConfig) {
|
|
10688
|
-
return UserApiFp(this.configuration).login(loginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10689
|
-
}
|
|
10690
10589
|
}
|
|
10691
10590
|
|
|
10692
10591
|
|
package/dist/api.d.ts
CHANGED
|
@@ -854,38 +854,6 @@ export interface Item {
|
|
|
854
854
|
*/
|
|
855
855
|
'product': Product;
|
|
856
856
|
}
|
|
857
|
-
/**
|
|
858
|
-
*
|
|
859
|
-
* @export
|
|
860
|
-
* @interface LoginRequest
|
|
861
|
-
*/
|
|
862
|
-
export interface LoginRequest {
|
|
863
|
-
/**
|
|
864
|
-
*
|
|
865
|
-
* @type {string}
|
|
866
|
-
* @memberof LoginRequest
|
|
867
|
-
*/
|
|
868
|
-
'code': string;
|
|
869
|
-
/**
|
|
870
|
-
*
|
|
871
|
-
* @type {string}
|
|
872
|
-
* @memberof LoginRequest
|
|
873
|
-
*/
|
|
874
|
-
'tenantId': string;
|
|
875
|
-
}
|
|
876
|
-
/**
|
|
877
|
-
*
|
|
878
|
-
* @export
|
|
879
|
-
* @interface LoginResponse
|
|
880
|
-
*/
|
|
881
|
-
export interface LoginResponse {
|
|
882
|
-
/**
|
|
883
|
-
*
|
|
884
|
-
* @type {string}
|
|
885
|
-
* @memberof LoginResponse
|
|
886
|
-
*/
|
|
887
|
-
'accessToken': string;
|
|
888
|
-
}
|
|
889
857
|
/**
|
|
890
858
|
*
|
|
891
859
|
* @export
|
|
@@ -6724,14 +6692,6 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
6724
6692
|
* @throws {RequiredError}
|
|
6725
6693
|
*/
|
|
6726
6694
|
listUsers: (nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6727
|
-
/**
|
|
6728
|
-
* Login
|
|
6729
|
-
* @summary Login
|
|
6730
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6731
|
-
* @param {*} [options] Override http request option.
|
|
6732
|
-
* @throws {RequiredError}
|
|
6733
|
-
*/
|
|
6734
|
-
login: (loginRequest: LoginRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6735
6695
|
};
|
|
6736
6696
|
/**
|
|
6737
6697
|
* UserApi - functional programming interface
|
|
@@ -6784,14 +6744,6 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
6784
6744
|
* @throws {RequiredError}
|
|
6785
6745
|
*/
|
|
6786
6746
|
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserListResponse>>;
|
|
6787
|
-
/**
|
|
6788
|
-
* Login
|
|
6789
|
-
* @summary Login
|
|
6790
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6791
|
-
* @param {*} [options] Override http request option.
|
|
6792
|
-
* @throws {RequiredError}
|
|
6793
|
-
*/
|
|
6794
|
-
login(loginRequest: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
6795
6747
|
};
|
|
6796
6748
|
/**
|
|
6797
6749
|
* UserApi - factory interface
|
|
@@ -6844,14 +6796,6 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
6844
6796
|
* @throws {RequiredError}
|
|
6845
6797
|
*/
|
|
6846
6798
|
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: any): AxiosPromise<UserListResponse>;
|
|
6847
|
-
/**
|
|
6848
|
-
* Login
|
|
6849
|
-
* @summary Login
|
|
6850
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6851
|
-
* @param {*} [options] Override http request option.
|
|
6852
|
-
* @throws {RequiredError}
|
|
6853
|
-
*/
|
|
6854
|
-
login(loginRequest: LoginRequest, options?: any): AxiosPromise<LoginResponse>;
|
|
6855
6799
|
};
|
|
6856
6800
|
/**
|
|
6857
6801
|
* UserApi - object-oriented interface
|
|
@@ -6911,13 +6855,4 @@ export declare class UserApi extends BaseAPI {
|
|
|
6911
6855
|
* @memberof UserApi
|
|
6912
6856
|
*/
|
|
6913
6857
|
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserListResponse, any>>;
|
|
6914
|
-
/**
|
|
6915
|
-
* Login
|
|
6916
|
-
* @summary Login
|
|
6917
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6918
|
-
* @param {*} [options] Override http request option.
|
|
6919
|
-
* @throws {RequiredError}
|
|
6920
|
-
* @memberof UserApi
|
|
6921
|
-
*/
|
|
6922
|
-
login(loginRequest: LoginRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any>>;
|
|
6923
6858
|
}
|
package/dist/api.js
CHANGED
|
@@ -6494,36 +6494,6 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
6494
6494
|
options: localVarRequestOptions,
|
|
6495
6495
|
};
|
|
6496
6496
|
}),
|
|
6497
|
-
/**
|
|
6498
|
-
* Login
|
|
6499
|
-
* @summary Login
|
|
6500
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6501
|
-
* @param {*} [options] Override http request option.
|
|
6502
|
-
* @throws {RequiredError}
|
|
6503
|
-
*/
|
|
6504
|
-
login: (loginRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6505
|
-
// verify required parameter 'loginRequest' is not null or undefined
|
|
6506
|
-
(0, common_1.assertParamExists)('login', 'loginRequest', loginRequest);
|
|
6507
|
-
const localVarPath = `/user/login`;
|
|
6508
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6509
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6510
|
-
let baseOptions;
|
|
6511
|
-
if (configuration) {
|
|
6512
|
-
baseOptions = configuration.baseOptions;
|
|
6513
|
-
}
|
|
6514
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6515
|
-
const localVarHeaderParameter = {};
|
|
6516
|
-
const localVarQueryParameter = {};
|
|
6517
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6518
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6519
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6520
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6521
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequest, localVarRequestOptions, configuration);
|
|
6522
|
-
return {
|
|
6523
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6524
|
-
options: localVarRequestOptions,
|
|
6525
|
-
};
|
|
6526
|
-
}),
|
|
6527
6497
|
};
|
|
6528
6498
|
};
|
|
6529
6499
|
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
@@ -6605,19 +6575,6 @@ const UserApiFp = function (configuration) {
|
|
|
6605
6575
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6606
6576
|
});
|
|
6607
6577
|
},
|
|
6608
|
-
/**
|
|
6609
|
-
* Login
|
|
6610
|
-
* @summary Login
|
|
6611
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6612
|
-
* @param {*} [options] Override http request option.
|
|
6613
|
-
* @throws {RequiredError}
|
|
6614
|
-
*/
|
|
6615
|
-
login(loginRequest, options) {
|
|
6616
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6617
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.login(loginRequest, options);
|
|
6618
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6619
|
-
});
|
|
6620
|
-
},
|
|
6621
6578
|
};
|
|
6622
6579
|
};
|
|
6623
6580
|
exports.UserApiFp = UserApiFp;
|
|
@@ -6684,16 +6641,6 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
6684
6641
|
listUsers(nextToken, role, search, clientIDs, userIDs, source, options) {
|
|
6685
6642
|
return localVarFp.listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(axios, basePath));
|
|
6686
6643
|
},
|
|
6687
|
-
/**
|
|
6688
|
-
* Login
|
|
6689
|
-
* @summary Login
|
|
6690
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6691
|
-
* @param {*} [options] Override http request option.
|
|
6692
|
-
* @throws {RequiredError}
|
|
6693
|
-
*/
|
|
6694
|
-
login(loginRequest, options) {
|
|
6695
|
-
return localVarFp.login(loginRequest, options).then((request) => request(axios, basePath));
|
|
6696
|
-
},
|
|
6697
6644
|
};
|
|
6698
6645
|
};
|
|
6699
6646
|
exports.UserApiFactory = UserApiFactory;
|
|
@@ -6765,16 +6712,5 @@ class UserApi extends base_1.BaseAPI {
|
|
|
6765
6712
|
listUsers(nextToken, role, search, clientIDs, userIDs, source, options) {
|
|
6766
6713
|
return (0, exports.UserApiFp)(this.configuration).listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(this.axios, this.basePath));
|
|
6767
6714
|
}
|
|
6768
|
-
/**
|
|
6769
|
-
* Login
|
|
6770
|
-
* @summary Login
|
|
6771
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6772
|
-
* @param {*} [options] Override http request option.
|
|
6773
|
-
* @throws {RequiredError}
|
|
6774
|
-
* @memberof UserApi
|
|
6775
|
-
*/
|
|
6776
|
-
login(loginRequest, options) {
|
|
6777
|
-
return (0, exports.UserApiFp)(this.configuration).login(loginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6778
|
-
}
|
|
6779
6715
|
}
|
|
6780
6716
|
exports.UserApi = UserApi;
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -854,38 +854,6 @@ export interface Item {
|
|
|
854
854
|
*/
|
|
855
855
|
'product': Product;
|
|
856
856
|
}
|
|
857
|
-
/**
|
|
858
|
-
*
|
|
859
|
-
* @export
|
|
860
|
-
* @interface LoginRequest
|
|
861
|
-
*/
|
|
862
|
-
export interface LoginRequest {
|
|
863
|
-
/**
|
|
864
|
-
*
|
|
865
|
-
* @type {string}
|
|
866
|
-
* @memberof LoginRequest
|
|
867
|
-
*/
|
|
868
|
-
'code': string;
|
|
869
|
-
/**
|
|
870
|
-
*
|
|
871
|
-
* @type {string}
|
|
872
|
-
* @memberof LoginRequest
|
|
873
|
-
*/
|
|
874
|
-
'tenantId': string;
|
|
875
|
-
}
|
|
876
|
-
/**
|
|
877
|
-
*
|
|
878
|
-
* @export
|
|
879
|
-
* @interface LoginResponse
|
|
880
|
-
*/
|
|
881
|
-
export interface LoginResponse {
|
|
882
|
-
/**
|
|
883
|
-
*
|
|
884
|
-
* @type {string}
|
|
885
|
-
* @memberof LoginResponse
|
|
886
|
-
*/
|
|
887
|
-
'accessToken': string;
|
|
888
|
-
}
|
|
889
857
|
/**
|
|
890
858
|
*
|
|
891
859
|
* @export
|
|
@@ -6724,14 +6692,6 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
6724
6692
|
* @throws {RequiredError}
|
|
6725
6693
|
*/
|
|
6726
6694
|
listUsers: (nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6727
|
-
/**
|
|
6728
|
-
* Login
|
|
6729
|
-
* @summary Login
|
|
6730
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6731
|
-
* @param {*} [options] Override http request option.
|
|
6732
|
-
* @throws {RequiredError}
|
|
6733
|
-
*/
|
|
6734
|
-
login: (loginRequest: LoginRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6735
6695
|
};
|
|
6736
6696
|
/**
|
|
6737
6697
|
* UserApi - functional programming interface
|
|
@@ -6784,14 +6744,6 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
6784
6744
|
* @throws {RequiredError}
|
|
6785
6745
|
*/
|
|
6786
6746
|
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserListResponse>>;
|
|
6787
|
-
/**
|
|
6788
|
-
* Login
|
|
6789
|
-
* @summary Login
|
|
6790
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6791
|
-
* @param {*} [options] Override http request option.
|
|
6792
|
-
* @throws {RequiredError}
|
|
6793
|
-
*/
|
|
6794
|
-
login(loginRequest: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
6795
6747
|
};
|
|
6796
6748
|
/**
|
|
6797
6749
|
* UserApi - factory interface
|
|
@@ -6844,14 +6796,6 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
6844
6796
|
* @throws {RequiredError}
|
|
6845
6797
|
*/
|
|
6846
6798
|
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: any): AxiosPromise<UserListResponse>;
|
|
6847
|
-
/**
|
|
6848
|
-
* Login
|
|
6849
|
-
* @summary Login
|
|
6850
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6851
|
-
* @param {*} [options] Override http request option.
|
|
6852
|
-
* @throws {RequiredError}
|
|
6853
|
-
*/
|
|
6854
|
-
login(loginRequest: LoginRequest, options?: any): AxiosPromise<LoginResponse>;
|
|
6855
6799
|
};
|
|
6856
6800
|
/**
|
|
6857
6801
|
* UserApi - object-oriented interface
|
|
@@ -6911,13 +6855,4 @@ export declare class UserApi extends BaseAPI {
|
|
|
6911
6855
|
* @memberof UserApi
|
|
6912
6856
|
*/
|
|
6913
6857
|
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserListResponse, any>>;
|
|
6914
|
-
/**
|
|
6915
|
-
* Login
|
|
6916
|
-
* @summary Login
|
|
6917
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6918
|
-
* @param {*} [options] Override http request option.
|
|
6919
|
-
* @throws {RequiredError}
|
|
6920
|
-
* @memberof UserApi
|
|
6921
|
-
*/
|
|
6922
|
-
login(loginRequest: LoginRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any>>;
|
|
6923
6858
|
}
|
package/dist/esm/api.js
CHANGED
|
@@ -6417,36 +6417,6 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
6417
6417
|
options: localVarRequestOptions,
|
|
6418
6418
|
};
|
|
6419
6419
|
}),
|
|
6420
|
-
/**
|
|
6421
|
-
* Login
|
|
6422
|
-
* @summary Login
|
|
6423
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6424
|
-
* @param {*} [options] Override http request option.
|
|
6425
|
-
* @throws {RequiredError}
|
|
6426
|
-
*/
|
|
6427
|
-
login: (loginRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6428
|
-
// verify required parameter 'loginRequest' is not null or undefined
|
|
6429
|
-
assertParamExists('login', 'loginRequest', loginRequest);
|
|
6430
|
-
const localVarPath = `/user/login`;
|
|
6431
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6432
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6433
|
-
let baseOptions;
|
|
6434
|
-
if (configuration) {
|
|
6435
|
-
baseOptions = configuration.baseOptions;
|
|
6436
|
-
}
|
|
6437
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6438
|
-
const localVarHeaderParameter = {};
|
|
6439
|
-
const localVarQueryParameter = {};
|
|
6440
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6441
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6442
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6443
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6444
|
-
localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration);
|
|
6445
|
-
return {
|
|
6446
|
-
url: toPathString(localVarUrlObj),
|
|
6447
|
-
options: localVarRequestOptions,
|
|
6448
|
-
};
|
|
6449
|
-
}),
|
|
6450
6420
|
};
|
|
6451
6421
|
};
|
|
6452
6422
|
/**
|
|
@@ -6527,19 +6497,6 @@ export const UserApiFp = function (configuration) {
|
|
|
6527
6497
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6528
6498
|
});
|
|
6529
6499
|
},
|
|
6530
|
-
/**
|
|
6531
|
-
* Login
|
|
6532
|
-
* @summary Login
|
|
6533
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6534
|
-
* @param {*} [options] Override http request option.
|
|
6535
|
-
* @throws {RequiredError}
|
|
6536
|
-
*/
|
|
6537
|
-
login(loginRequest, options) {
|
|
6538
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6539
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.login(loginRequest, options);
|
|
6540
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6541
|
-
});
|
|
6542
|
-
},
|
|
6543
6500
|
};
|
|
6544
6501
|
};
|
|
6545
6502
|
/**
|
|
@@ -6605,16 +6562,6 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
6605
6562
|
listUsers(nextToken, role, search, clientIDs, userIDs, source, options) {
|
|
6606
6563
|
return localVarFp.listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(axios, basePath));
|
|
6607
6564
|
},
|
|
6608
|
-
/**
|
|
6609
|
-
* Login
|
|
6610
|
-
* @summary Login
|
|
6611
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6612
|
-
* @param {*} [options] Override http request option.
|
|
6613
|
-
* @throws {RequiredError}
|
|
6614
|
-
*/
|
|
6615
|
-
login(loginRequest, options) {
|
|
6616
|
-
return localVarFp.login(loginRequest, options).then((request) => request(axios, basePath));
|
|
6617
|
-
},
|
|
6618
6565
|
};
|
|
6619
6566
|
};
|
|
6620
6567
|
/**
|
|
@@ -6685,15 +6632,4 @@ export class UserApi extends BaseAPI {
|
|
|
6685
6632
|
listUsers(nextToken, role, search, clientIDs, userIDs, source, options) {
|
|
6686
6633
|
return UserApiFp(this.configuration).listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(this.axios, this.basePath));
|
|
6687
6634
|
}
|
|
6688
|
-
/**
|
|
6689
|
-
* Login
|
|
6690
|
-
* @summary Login
|
|
6691
|
-
* @param {LoginRequest} loginRequest user credentials
|
|
6692
|
-
* @param {*} [options] Override http request option.
|
|
6693
|
-
* @throws {RequiredError}
|
|
6694
|
-
* @memberof UserApi
|
|
6695
|
-
*/
|
|
6696
|
-
login(loginRequest, options) {
|
|
6697
|
-
return UserApiFp(this.configuration).login(loginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6698
|
-
}
|
|
6699
6635
|
}
|