@equisoft/account-service-sdk-typescript 4.3.1-snapshot.20230109214128 → 4.3.1-snapshot.20230119163944
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/.openapi-generator/FILES +1 -1
- package/dist/apis/UserApi.d.ts +14 -3
- package/dist/apis/UserApi.js +36 -1
- package/dist/models/AuthenticationUserAccount.d.ts +57 -0
- package/dist/models/{PasswordUserAccount.js → AuthenticationUserAccount.js} +14 -14
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/apis/UserApi.ts +49 -6
- package/src/models/{PasswordUserAccount.ts → AuthenticationUserAccount.ts} +22 -22
- package/src/models/index.ts +1 -1
- package/dist/models/PasswordUserAccount.d.ts +0 -57
package/.openapi-generator/FILES
CHANGED
|
@@ -10,6 +10,7 @@ src/apis/UserApi.ts
|
|
|
10
10
|
src/apis/index.ts
|
|
11
11
|
src/index.ts
|
|
12
12
|
src/models/ApplyPermissionsPayload.ts
|
|
13
|
+
src/models/AuthenticationUserAccount.ts
|
|
13
14
|
src/models/CreateOrUpdateOAuthClientPayload.ts
|
|
14
15
|
src/models/CreateOrUpdateOrganizationPayload.ts
|
|
15
16
|
src/models/CreateOrUpdatePermissionPayload.ts
|
|
@@ -40,7 +41,6 @@ src/models/OrganizationRoleAttributions.ts
|
|
|
40
41
|
src/models/OrganizationServicesElement.ts
|
|
41
42
|
src/models/OrganizationSsoProvider.ts
|
|
42
43
|
src/models/OrganizationUserServiceAssociation.ts
|
|
43
|
-
src/models/PasswordUserAccount.ts
|
|
44
44
|
src/models/PermissionCode.ts
|
|
45
45
|
src/models/PermissionCreated.ts
|
|
46
46
|
src/models/PermissionList.ts
|
package/dist/apis/UserApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { ApplyPermissionsPayload, Id, Organization,
|
|
13
|
+
import { ApplyPermissionsPayload, AuthenticationUserAccount, Id, Organization, PermissionList, SendResetPasswordLinkPayload, SetUserAccountPasswordPayload, UpdateUserAccountPayload, UpdateUserAccountSsoPayload, User, UserAccountRoleAttributions, UserAccountSearchResult, UserPermissions } from '../models';
|
|
14
14
|
export interface ActivateRequest {
|
|
15
15
|
uuid: string;
|
|
16
16
|
}
|
|
@@ -59,6 +59,9 @@ export interface GetUserPermissionsRequest {
|
|
|
59
59
|
export interface GetUuidByIdRequest {
|
|
60
60
|
id: number;
|
|
61
61
|
}
|
|
62
|
+
export interface InvalidatePasswordRequest {
|
|
63
|
+
uuid: string;
|
|
64
|
+
}
|
|
62
65
|
export interface ListUsersRequest {
|
|
63
66
|
identifierOrEmail?: string | null;
|
|
64
67
|
identifier?: string | null;
|
|
@@ -176,11 +179,11 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
176
179
|
/**
|
|
177
180
|
* Get password info for a user based on unique hash.
|
|
178
181
|
*/
|
|
179
|
-
getUserByConfirmationHashRaw(requestParameters: GetUserByConfirmationHashRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<
|
|
182
|
+
getUserByConfirmationHashRaw(requestParameters: GetUserByConfirmationHashRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<AuthenticationUserAccount>>;
|
|
180
183
|
/**
|
|
181
184
|
* Get password info for a user based on unique hash.
|
|
182
185
|
*/
|
|
183
|
-
getUserByConfirmationHash(requestParameters: GetUserByConfirmationHashRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<
|
|
186
|
+
getUserByConfirmationHash(requestParameters: GetUserByConfirmationHashRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<AuthenticationUserAccount>;
|
|
184
187
|
/**
|
|
185
188
|
* Get user permissions
|
|
186
189
|
*/
|
|
@@ -197,6 +200,14 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
197
200
|
* Find an uuid by id.
|
|
198
201
|
*/
|
|
199
202
|
getUuidById(requestParameters: GetUuidByIdRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Id>;
|
|
203
|
+
/**
|
|
204
|
+
* Invalidate user account password.
|
|
205
|
+
*/
|
|
206
|
+
invalidatePasswordRaw(requestParameters: InvalidatePasswordRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
207
|
+
/**
|
|
208
|
+
* Invalidate user account password.
|
|
209
|
+
*/
|
|
210
|
+
invalidatePassword(requestParameters: InvalidatePasswordRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
200
211
|
/**
|
|
201
212
|
* Searches accounts that match ALL params. If no search parameters are provided, returns all users.
|
|
202
213
|
*/
|
package/dist/apis/UserApi.js
CHANGED
|
@@ -464,7 +464,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
464
464
|
headers: headerParameters,
|
|
465
465
|
query: queryParameters,
|
|
466
466
|
}, initOverrides);
|
|
467
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => models_1.
|
|
467
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => models_1.AuthenticationUserAccountFromJSON(jsonValue));
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
/**
|
|
@@ -548,6 +548,41 @@ class UserApi extends runtime.BaseAPI {
|
|
|
548
548
|
return yield response.value();
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
|
+
/**
|
|
552
|
+
* Invalidate user account password.
|
|
553
|
+
*/
|
|
554
|
+
invalidatePasswordRaw(requestParameters, initOverrides) {
|
|
555
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
556
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
557
|
+
throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling invalidatePassword.');
|
|
558
|
+
}
|
|
559
|
+
const queryParameters = {};
|
|
560
|
+
const headerParameters = {};
|
|
561
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
562
|
+
// oauth required
|
|
563
|
+
const token = this.configuration.accessToken;
|
|
564
|
+
const tokenString = yield token("OAuth2", ["account:user"]);
|
|
565
|
+
if (tokenString) {
|
|
566
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
const response = yield this.request({
|
|
570
|
+
path: `/users/{uuid}/password`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
571
|
+
method: 'DELETE',
|
|
572
|
+
headers: headerParameters,
|
|
573
|
+
query: queryParameters,
|
|
574
|
+
}, initOverrides);
|
|
575
|
+
return new runtime.VoidApiResponse(response);
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Invalidate user account password.
|
|
580
|
+
*/
|
|
581
|
+
invalidatePassword(requestParameters, initOverrides) {
|
|
582
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
583
|
+
yield this.invalidatePasswordRaw(requestParameters, initOverrides);
|
|
584
|
+
});
|
|
585
|
+
}
|
|
551
586
|
/**
|
|
552
587
|
* Searches accounts that match ALL params. If no search parameters are provided, returns all users.
|
|
553
588
|
*/
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User account and session management
|
|
3
|
+
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 4.3.1-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticationUserAccount
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticationUserAccount {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AuthenticationUserAccount
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticationUserAccount
|
|
28
|
+
*/
|
|
29
|
+
uuid: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuthenticationUserAccount
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AuthenticationUserAccount
|
|
40
|
+
*/
|
|
41
|
+
email: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof AuthenticationUserAccount
|
|
46
|
+
*/
|
|
47
|
+
passwordResetRequired: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof AuthenticationUserAccount
|
|
52
|
+
*/
|
|
53
|
+
userAgreementRequested: boolean;
|
|
54
|
+
}
|
|
55
|
+
export declare function AuthenticationUserAccountFromJSON(json: any): AuthenticationUserAccount;
|
|
56
|
+
export declare function AuthenticationUserAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationUserAccount;
|
|
57
|
+
export declare function AuthenticationUserAccountToJSON(value?: AuthenticationUserAccount | null): any;
|
|
@@ -13,27 +13,27 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.AuthenticationUserAccountToJSON = exports.AuthenticationUserAccountFromJSONTyped = exports.AuthenticationUserAccountFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function AuthenticationUserAccountFromJSON(json) {
|
|
19
|
+
return AuthenticationUserAccountFromJSONTyped(json, false);
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
22
|
-
function
|
|
21
|
+
exports.AuthenticationUserAccountFromJSON = AuthenticationUserAccountFromJSON;
|
|
22
|
+
function AuthenticationUserAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
23
|
if ((json === undefined) || (json === null)) {
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'id': json['id'],
|
|
28
|
-
'uuid':
|
|
28
|
+
'uuid': json['uuid'],
|
|
29
29
|
'name': !runtime_1.exists(json, 'name') ? undefined : json['name'],
|
|
30
|
-
'email':
|
|
31
|
-
'
|
|
32
|
-
'
|
|
30
|
+
'email': json['email'],
|
|
31
|
+
'passwordResetRequired': json['passwordResetRequired'],
|
|
32
|
+
'userAgreementRequested': json['userAgreementRequested'],
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
36
|
-
function
|
|
35
|
+
exports.AuthenticationUserAccountFromJSONTyped = AuthenticationUserAccountFromJSONTyped;
|
|
36
|
+
function AuthenticationUserAccountToJSON(value) {
|
|
37
37
|
if (value === undefined) {
|
|
38
38
|
return undefined;
|
|
39
39
|
}
|
|
@@ -45,8 +45,8 @@ function PasswordUserAccountToJSON(value) {
|
|
|
45
45
|
'uuid': value.uuid,
|
|
46
46
|
'name': value.name,
|
|
47
47
|
'email': value.email,
|
|
48
|
-
'
|
|
49
|
-
'
|
|
48
|
+
'passwordResetRequired': value.passwordResetRequired,
|
|
49
|
+
'userAgreementRequested': value.userAgreementRequested,
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
exports.
|
|
52
|
+
exports.AuthenticationUserAccountToJSON = AuthenticationUserAccountToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './ApplyPermissionsPayload';
|
|
2
|
+
export * from './AuthenticationUserAccount';
|
|
2
3
|
export * from './CreateOrUpdateOAuthClientPayload';
|
|
3
4
|
export * from './CreateOrUpdateOrganizationPayload';
|
|
4
5
|
export * from './CreateOrUpdatePermissionPayload';
|
|
@@ -29,7 +30,6 @@ export * from './OrganizationRoleAttributions';
|
|
|
29
30
|
export * from './OrganizationServicesElement';
|
|
30
31
|
export * from './OrganizationSsoProvider';
|
|
31
32
|
export * from './OrganizationUserServiceAssociation';
|
|
32
|
-
export * from './PasswordUserAccount';
|
|
33
33
|
export * from './PermissionCode';
|
|
34
34
|
export * from './PermissionCreated';
|
|
35
35
|
export * from './PermissionList';
|
package/dist/models/index.js
CHANGED
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
/* tslint:disable */
|
|
14
14
|
/* eslint-disable */
|
|
15
15
|
__exportStar(require("./ApplyPermissionsPayload"), exports);
|
|
16
|
+
__exportStar(require("./AuthenticationUserAccount"), exports);
|
|
16
17
|
__exportStar(require("./CreateOrUpdateOAuthClientPayload"), exports);
|
|
17
18
|
__exportStar(require("./CreateOrUpdateOrganizationPayload"), exports);
|
|
18
19
|
__exportStar(require("./CreateOrUpdatePermissionPayload"), exports);
|
|
@@ -43,7 +44,6 @@ __exportStar(require("./OrganizationRoleAttributions"), exports);
|
|
|
43
44
|
__exportStar(require("./OrganizationServicesElement"), exports);
|
|
44
45
|
__exportStar(require("./OrganizationSsoProvider"), exports);
|
|
45
46
|
__exportStar(require("./OrganizationUserServiceAssociation"), exports);
|
|
46
|
-
__exportStar(require("./PasswordUserAccount"), exports);
|
|
47
47
|
__exportStar(require("./PermissionCode"), exports);
|
|
48
48
|
__exportStar(require("./PermissionCreated"), exports);
|
|
49
49
|
__exportStar(require("./PermissionList"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/account-service-sdk-typescript",
|
|
3
|
-
"version": "4.3.1-snapshot.
|
|
3
|
+
"version": "4.3.1-snapshot.20230119163944",
|
|
4
4
|
"description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
|
|
5
5
|
"author": "Equisoft Inc.",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/apis/UserApi.ts
CHANGED
|
@@ -18,6 +18,9 @@ import {
|
|
|
18
18
|
ApplyPermissionsPayload,
|
|
19
19
|
ApplyPermissionsPayloadFromJSON,
|
|
20
20
|
ApplyPermissionsPayloadToJSON,
|
|
21
|
+
AuthenticationUserAccount,
|
|
22
|
+
AuthenticationUserAccountFromJSON,
|
|
23
|
+
AuthenticationUserAccountToJSON,
|
|
21
24
|
ErrorPayload,
|
|
22
25
|
ErrorPayloadFromJSON,
|
|
23
26
|
ErrorPayloadToJSON,
|
|
@@ -27,9 +30,6 @@ import {
|
|
|
27
30
|
Organization,
|
|
28
31
|
OrganizationFromJSON,
|
|
29
32
|
OrganizationToJSON,
|
|
30
|
-
PasswordUserAccount,
|
|
31
|
-
PasswordUserAccountFromJSON,
|
|
32
|
-
PasswordUserAccountToJSON,
|
|
33
33
|
PermissionList,
|
|
34
34
|
PermissionListFromJSON,
|
|
35
35
|
PermissionListToJSON,
|
|
@@ -121,6 +121,10 @@ export interface GetUuidByIdRequest {
|
|
|
121
121
|
id: number;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
export interface InvalidatePasswordRequest {
|
|
125
|
+
uuid: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
124
128
|
export interface ListUsersRequest {
|
|
125
129
|
identifierOrEmail?: string | null;
|
|
126
130
|
identifier?: string | null;
|
|
@@ -619,7 +623,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
619
623
|
/**
|
|
620
624
|
* Get password info for a user based on unique hash.
|
|
621
625
|
*/
|
|
622
|
-
async getUserByConfirmationHashRaw(requestParameters: GetUserByConfirmationHashRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<
|
|
626
|
+
async getUserByConfirmationHashRaw(requestParameters: GetUserByConfirmationHashRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<AuthenticationUserAccount>> {
|
|
623
627
|
if (requestParameters.hash === null || requestParameters.hash === undefined) {
|
|
624
628
|
throw new runtime.RequiredError('hash','Required parameter requestParameters.hash was null or undefined when calling getUserByConfirmationHash.');
|
|
625
629
|
}
|
|
@@ -645,13 +649,13 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
645
649
|
query: queryParameters,
|
|
646
650
|
}, initOverrides);
|
|
647
651
|
|
|
648
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
652
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticationUserAccountFromJSON(jsonValue));
|
|
649
653
|
}
|
|
650
654
|
|
|
651
655
|
/**
|
|
652
656
|
* Get password info for a user based on unique hash.
|
|
653
657
|
*/
|
|
654
|
-
async getUserByConfirmationHash(requestParameters: GetUserByConfirmationHashRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<
|
|
658
|
+
async getUserByConfirmationHash(requestParameters: GetUserByConfirmationHashRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<AuthenticationUserAccount> {
|
|
655
659
|
const response = await this.getUserByConfirmationHashRaw(requestParameters, initOverrides);
|
|
656
660
|
return await response.value();
|
|
657
661
|
}
|
|
@@ -736,6 +740,45 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
736
740
|
return await response.value();
|
|
737
741
|
}
|
|
738
742
|
|
|
743
|
+
/**
|
|
744
|
+
* Invalidate user account password.
|
|
745
|
+
*/
|
|
746
|
+
async invalidatePasswordRaw(requestParameters: InvalidatePasswordRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>> {
|
|
747
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
748
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling invalidatePassword.');
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
const queryParameters: any = {};
|
|
752
|
+
|
|
753
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
754
|
+
|
|
755
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
756
|
+
// oauth required
|
|
757
|
+
const token = this.configuration.accessToken;
|
|
758
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
759
|
+
|
|
760
|
+
if (tokenString) {
|
|
761
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
const response = await this.request({
|
|
766
|
+
path: `/users/{uuid}/password`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
767
|
+
method: 'DELETE',
|
|
768
|
+
headers: headerParameters,
|
|
769
|
+
query: queryParameters,
|
|
770
|
+
}, initOverrides);
|
|
771
|
+
|
|
772
|
+
return new runtime.VoidApiResponse(response);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Invalidate user account password.
|
|
777
|
+
*/
|
|
778
|
+
async invalidatePassword(requestParameters: InvalidatePasswordRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void> {
|
|
779
|
+
await this.invalidatePasswordRaw(requestParameters, initOverrides);
|
|
780
|
+
}
|
|
781
|
+
|
|
739
782
|
/**
|
|
740
783
|
* Searches accounts that match ALL params. If no search parameters are provided, returns all users.
|
|
741
784
|
*/
|
|
@@ -16,67 +16,67 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface AuthenticationUserAccount
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface AuthenticationUserAccount {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {number}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof AuthenticationUserAccount
|
|
26
26
|
*/
|
|
27
27
|
id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof AuthenticationUserAccount
|
|
32
32
|
*/
|
|
33
|
-
uuid
|
|
33
|
+
uuid: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof AuthenticationUserAccount
|
|
38
38
|
*/
|
|
39
39
|
name?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof AuthenticationUserAccount
|
|
44
44
|
*/
|
|
45
|
-
email
|
|
45
|
+
email: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof AuthenticationUserAccount
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
passwordResetRequired: boolean;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {boolean}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof AuthenticationUserAccount
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
userAgreementRequested: boolean;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export function
|
|
61
|
-
return
|
|
60
|
+
export function AuthenticationUserAccountFromJSON(json: any): AuthenticationUserAccount {
|
|
61
|
+
return AuthenticationUserAccountFromJSONTyped(json, false);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export function
|
|
64
|
+
export function AuthenticationUserAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationUserAccount {
|
|
65
65
|
if ((json === undefined) || (json === null)) {
|
|
66
66
|
return json;
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
69
|
|
|
70
70
|
'id': json['id'],
|
|
71
|
-
'uuid':
|
|
71
|
+
'uuid': json['uuid'],
|
|
72
72
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
73
|
-
'email':
|
|
74
|
-
'
|
|
75
|
-
'
|
|
73
|
+
'email': json['email'],
|
|
74
|
+
'passwordResetRequired': json['passwordResetRequired'],
|
|
75
|
+
'userAgreementRequested': json['userAgreementRequested'],
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export function
|
|
79
|
+
export function AuthenticationUserAccountToJSON(value?: AuthenticationUserAccount | null): any {
|
|
80
80
|
if (value === undefined) {
|
|
81
81
|
return undefined;
|
|
82
82
|
}
|
|
@@ -89,8 +89,8 @@ export function PasswordUserAccountToJSON(value?: PasswordUserAccount | null): a
|
|
|
89
89
|
'uuid': value.uuid,
|
|
90
90
|
'name': value.name,
|
|
91
91
|
'email': value.email,
|
|
92
|
-
'
|
|
93
|
-
'
|
|
92
|
+
'passwordResetRequired': value.passwordResetRequired,
|
|
93
|
+
'userAgreementRequested': value.userAgreementRequested,
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './ApplyPermissionsPayload';
|
|
4
|
+
export * from './AuthenticationUserAccount';
|
|
4
5
|
export * from './CreateOrUpdateOAuthClientPayload';
|
|
5
6
|
export * from './CreateOrUpdateOrganizationPayload';
|
|
6
7
|
export * from './CreateOrUpdatePermissionPayload';
|
|
@@ -31,7 +32,6 @@ export * from './OrganizationRoleAttributions';
|
|
|
31
32
|
export * from './OrganizationServicesElement';
|
|
32
33
|
export * from './OrganizationSsoProvider';
|
|
33
34
|
export * from './OrganizationUserServiceAssociation';
|
|
34
|
-
export * from './PasswordUserAccount';
|
|
35
35
|
export * from './PermissionCode';
|
|
36
36
|
export * from './PermissionCreated';
|
|
37
37
|
export * from './PermissionList';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User account and session management
|
|
3
|
-
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 4.3.1-SNAPSHOT
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PasswordUserAccount
|
|
16
|
-
*/
|
|
17
|
-
export interface PasswordUserAccount {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof PasswordUserAccount
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PasswordUserAccount
|
|
28
|
-
*/
|
|
29
|
-
uuid?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PasswordUserAccount
|
|
34
|
-
*/
|
|
35
|
-
name?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof PasswordUserAccount
|
|
40
|
-
*/
|
|
41
|
-
email?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @memberof PasswordUserAccount
|
|
46
|
-
*/
|
|
47
|
-
requirePasswordReset: boolean;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof PasswordUserAccount
|
|
52
|
-
*/
|
|
53
|
-
userAgreementRequired: boolean;
|
|
54
|
-
}
|
|
55
|
-
export declare function PasswordUserAccountFromJSON(json: any): PasswordUserAccount;
|
|
56
|
-
export declare function PasswordUserAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordUserAccount;
|
|
57
|
-
export declare function PasswordUserAccountToJSON(value?: PasswordUserAccount | null): any;
|