@equisoft/account-service-sdk-typescript 6.8.1-snapshot.20240513193226 → 6.8.1-snapshot.20240515194213
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 -0
- package/dist/apis/UserApi.d.ts +13 -1
- package/dist/apis/UserApi.js +40 -0
- package/dist/esm/apis/UserApi.d.ts +13 -1
- package/dist/esm/apis/UserApi.js +41 -1
- package/dist/esm/models/CreateUserAccountPayload.d.ts +6 -0
- package/dist/esm/models/CreateUserAccountPayload.js +2 -0
- package/dist/esm/models/UpdateOwnerOrganizationPayload.d.ts +31 -0
- package/dist/esm/models/UpdateOwnerOrganizationPayload.js +43 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/CreateUserAccountPayload.d.ts +6 -0
- package/dist/models/CreateUserAccountPayload.js +2 -0
- package/dist/models/UpdateOwnerOrganizationPayload.d.ts +31 -0
- package/dist/models/UpdateOwnerOrganizationPayload.js +50 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/UserApi.ts +53 -0
- package/src/models/CreateUserAccountPayload.ts +8 -0
- package/src/models/UpdateOwnerOrganizationPayload.ts +66 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -73,6 +73,7 @@ src/models/SetPasswordByConfirmationHashPayload.ts
|
|
|
73
73
|
src/models/SetUserAccountPasswordPayload.ts
|
|
74
74
|
src/models/SsoProvider.ts
|
|
75
75
|
src/models/SsoToken.ts
|
|
76
|
+
src/models/UpdateOwnerOrganizationPayload.ts
|
|
76
77
|
src/models/UpdateParentOrganizationPayload.ts
|
|
77
78
|
src/models/UpdateUserAccountPayload.ts
|
|
78
79
|
src/models/UpdateUserAccountSsoPayload.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 type { ApplyPermissionsPayload, AuthenticationUserAccount, CreateUserAccountPayload, Id, LoginPayload, NewPasswordPayload, Organization, PasswordPolicy, PermissionList, SendResetPasswordLinkPayload, SendSignupInvitationPayload, SessionPolicy, SetPasswordByConfirmationHashPayload, SetUserAccountPasswordPayload, UpdateUserAccountPayload, UpdateUserAccountSsoPayload, User, UserAccountRoleAttributions, UserAccountSearchResult, UserPermissions, UserUuid } from '../models/index';
|
|
13
|
+
import type { ApplyPermissionsPayload, AuthenticationUserAccount, CreateUserAccountPayload, Id, LoginPayload, NewPasswordPayload, Organization, PasswordPolicy, PermissionList, SendResetPasswordLinkPayload, SendSignupInvitationPayload, SessionPolicy, SetPasswordByConfirmationHashPayload, SetUserAccountPasswordPayload, UpdateOwnerOrganizationPayload, UpdateUserAccountPayload, UpdateUserAccountSsoPayload, User, UserAccountRoleAttributions, UserAccountSearchResult, UserPermissions, UserUuid } from '../models/index';
|
|
14
14
|
export interface AcceptAgreementRequest {
|
|
15
15
|
uuid: string;
|
|
16
16
|
}
|
|
@@ -127,6 +127,10 @@ export interface SetUserPasswordByConfirmationHashRequest {
|
|
|
127
127
|
export interface UnlockRequest {
|
|
128
128
|
uuid: string;
|
|
129
129
|
}
|
|
130
|
+
export interface UpdateOwnerOrganizationRequest {
|
|
131
|
+
uuid: string;
|
|
132
|
+
updateOwnerOrganizationPayload: UpdateOwnerOrganizationPayload;
|
|
133
|
+
}
|
|
130
134
|
export interface UpdateUserRequest {
|
|
131
135
|
uuid: string;
|
|
132
136
|
updateUserAccountPayload: UpdateUserAccountPayload;
|
|
@@ -399,6 +403,14 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
399
403
|
* Unlock user account.
|
|
400
404
|
*/
|
|
401
405
|
unlock(requestParameters: UnlockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
406
|
+
/**
|
|
407
|
+
* Change the owner organization of a user account.
|
|
408
|
+
*/
|
|
409
|
+
updateOwnerOrganizationRaw(requestParameters: UpdateOwnerOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
410
|
+
/**
|
|
411
|
+
* Change the owner organization of a user account.
|
|
412
|
+
*/
|
|
413
|
+
updateOwnerOrganization(requestParameters: UpdateOwnerOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
402
414
|
/**
|
|
403
415
|
* update user account.
|
|
404
416
|
*/
|
package/dist/apis/UserApi.js
CHANGED
|
@@ -1268,6 +1268,46 @@ class UserApi extends runtime.BaseAPI {
|
|
|
1268
1268
|
yield this.unlockRaw(requestParameters, initOverrides);
|
|
1269
1269
|
});
|
|
1270
1270
|
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Change the owner organization of a user account.
|
|
1273
|
+
*/
|
|
1274
|
+
updateOwnerOrganizationRaw(requestParameters, initOverrides) {
|
|
1275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1276
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
1277
|
+
throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling updateOwnerOrganization.');
|
|
1278
|
+
}
|
|
1279
|
+
if (requestParameters.updateOwnerOrganizationPayload === null || requestParameters.updateOwnerOrganizationPayload === undefined) {
|
|
1280
|
+
throw new runtime.RequiredError('updateOwnerOrganizationPayload', 'Required parameter requestParameters.updateOwnerOrganizationPayload was null or undefined when calling updateOwnerOrganization.');
|
|
1281
|
+
}
|
|
1282
|
+
const queryParameters = {};
|
|
1283
|
+
const headerParameters = {};
|
|
1284
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1285
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1286
|
+
// oauth required
|
|
1287
|
+
const token = this.configuration.accessToken;
|
|
1288
|
+
const tokenString = yield token("OAuth2", ["account:organization"]);
|
|
1289
|
+
if (tokenString) {
|
|
1290
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
const response = yield this.request({
|
|
1294
|
+
path: `/users/{uuid}/ownerOrganization`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1295
|
+
method: 'POST',
|
|
1296
|
+
headers: headerParameters,
|
|
1297
|
+
query: queryParameters,
|
|
1298
|
+
body: (0, index_1.UpdateOwnerOrganizationPayloadToJSON)(requestParameters.updateOwnerOrganizationPayload),
|
|
1299
|
+
}, initOverrides);
|
|
1300
|
+
return new runtime.VoidApiResponse(response);
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Change the owner organization of a user account.
|
|
1305
|
+
*/
|
|
1306
|
+
updateOwnerOrganization(requestParameters, initOverrides) {
|
|
1307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1308
|
+
yield this.updateOwnerOrganizationRaw(requestParameters, initOverrides);
|
|
1309
|
+
});
|
|
1310
|
+
}
|
|
1271
1311
|
/**
|
|
1272
1312
|
* update user account.
|
|
1273
1313
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApplyPermissionsPayload, AuthenticationUserAccount, CreateUserAccountPayload, Id, LoginPayload, NewPasswordPayload, Organization, PasswordPolicy, PermissionList, SendResetPasswordLinkPayload, SendSignupInvitationPayload, SessionPolicy, SetPasswordByConfirmationHashPayload, SetUserAccountPasswordPayload, UpdateUserAccountPayload, UpdateUserAccountSsoPayload, User, UserAccountRoleAttributions, UserAccountSearchResult, UserPermissions, UserUuid } from '../models/index';
|
|
13
|
+
import type { ApplyPermissionsPayload, AuthenticationUserAccount, CreateUserAccountPayload, Id, LoginPayload, NewPasswordPayload, Organization, PasswordPolicy, PermissionList, SendResetPasswordLinkPayload, SendSignupInvitationPayload, SessionPolicy, SetPasswordByConfirmationHashPayload, SetUserAccountPasswordPayload, UpdateOwnerOrganizationPayload, UpdateUserAccountPayload, UpdateUserAccountSsoPayload, User, UserAccountRoleAttributions, UserAccountSearchResult, UserPermissions, UserUuid } from '../models/index';
|
|
14
14
|
export interface AcceptAgreementRequest {
|
|
15
15
|
uuid: string;
|
|
16
16
|
}
|
|
@@ -127,6 +127,10 @@ export interface SetUserPasswordByConfirmationHashRequest {
|
|
|
127
127
|
export interface UnlockRequest {
|
|
128
128
|
uuid: string;
|
|
129
129
|
}
|
|
130
|
+
export interface UpdateOwnerOrganizationRequest {
|
|
131
|
+
uuid: string;
|
|
132
|
+
updateOwnerOrganizationPayload: UpdateOwnerOrganizationPayload;
|
|
133
|
+
}
|
|
130
134
|
export interface UpdateUserRequest {
|
|
131
135
|
uuid: string;
|
|
132
136
|
updateUserAccountPayload: UpdateUserAccountPayload;
|
|
@@ -399,6 +403,14 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
399
403
|
* Unlock user account.
|
|
400
404
|
*/
|
|
401
405
|
unlock(requestParameters: UnlockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
406
|
+
/**
|
|
407
|
+
* Change the owner organization of a user account.
|
|
408
|
+
*/
|
|
409
|
+
updateOwnerOrganizationRaw(requestParameters: UpdateOwnerOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
410
|
+
/**
|
|
411
|
+
* Change the owner organization of a user account.
|
|
412
|
+
*/
|
|
413
|
+
updateOwnerOrganization(requestParameters: UpdateOwnerOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
402
414
|
/**
|
|
403
415
|
* update user account.
|
|
404
416
|
*/
|
package/dist/esm/apis/UserApi.js
CHANGED
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApplyPermissionsPayloadToJSON, AuthenticationUserAccountFromJSON, CreateUserAccountPayloadToJSON, IdFromJSON, LoginPayloadToJSON, NewPasswordPayloadToJSON, OrganizationFromJSON, PasswordPolicyToJSON, PermissionListFromJSON, SendResetPasswordLinkPayloadToJSON, SendSignupInvitationPayloadToJSON, SessionPolicyToJSON, SetPasswordByConfirmationHashPayloadToJSON, SetUserAccountPasswordPayloadToJSON, UpdateUserAccountPayloadToJSON, UpdateUserAccountSsoPayloadToJSON, UserFromJSON, UserAccountRoleAttributionsFromJSON, UserAccountSearchResultFromJSON, UserPermissionsFromJSON, UserUuidFromJSON, } from '../models/index';
|
|
24
|
+
import { ApplyPermissionsPayloadToJSON, AuthenticationUserAccountFromJSON, CreateUserAccountPayloadToJSON, IdFromJSON, LoginPayloadToJSON, NewPasswordPayloadToJSON, OrganizationFromJSON, PasswordPolicyToJSON, PermissionListFromJSON, SendResetPasswordLinkPayloadToJSON, SendSignupInvitationPayloadToJSON, SessionPolicyToJSON, SetPasswordByConfirmationHashPayloadToJSON, SetUserAccountPasswordPayloadToJSON, UpdateOwnerOrganizationPayloadToJSON, UpdateUserAccountPayloadToJSON, UpdateUserAccountSsoPayloadToJSON, UserFromJSON, UserAccountRoleAttributionsFromJSON, UserAccountSearchResultFromJSON, UserPermissionsFromJSON, UserUuidFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -1265,6 +1265,46 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
1265
1265
|
yield this.unlockRaw(requestParameters, initOverrides);
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Change the owner organization of a user account.
|
|
1270
|
+
*/
|
|
1271
|
+
updateOwnerOrganizationRaw(requestParameters, initOverrides) {
|
|
1272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1273
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
1274
|
+
throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling updateOwnerOrganization.');
|
|
1275
|
+
}
|
|
1276
|
+
if (requestParameters.updateOwnerOrganizationPayload === null || requestParameters.updateOwnerOrganizationPayload === undefined) {
|
|
1277
|
+
throw new runtime.RequiredError('updateOwnerOrganizationPayload', 'Required parameter requestParameters.updateOwnerOrganizationPayload was null or undefined when calling updateOwnerOrganization.');
|
|
1278
|
+
}
|
|
1279
|
+
const queryParameters = {};
|
|
1280
|
+
const headerParameters = {};
|
|
1281
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1282
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1283
|
+
// oauth required
|
|
1284
|
+
const token = this.configuration.accessToken;
|
|
1285
|
+
const tokenString = yield token("OAuth2", ["account:organization"]);
|
|
1286
|
+
if (tokenString) {
|
|
1287
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
const response = yield this.request({
|
|
1291
|
+
path: `/users/{uuid}/ownerOrganization`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1292
|
+
method: 'POST',
|
|
1293
|
+
headers: headerParameters,
|
|
1294
|
+
query: queryParameters,
|
|
1295
|
+
body: UpdateOwnerOrganizationPayloadToJSON(requestParameters.updateOwnerOrganizationPayload),
|
|
1296
|
+
}, initOverrides);
|
|
1297
|
+
return new runtime.VoidApiResponse(response);
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Change the owner organization of a user account.
|
|
1302
|
+
*/
|
|
1303
|
+
updateOwnerOrganization(requestParameters, initOverrides) {
|
|
1304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1305
|
+
yield this.updateOwnerOrganizationRaw(requestParameters, initOverrides);
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1268
1308
|
/**
|
|
1269
1309
|
* update user account.
|
|
1270
1310
|
*/
|
|
@@ -72,6 +72,12 @@ export interface CreateUserAccountPayload {
|
|
|
72
72
|
* @memberof CreateUserAccountPayload
|
|
73
73
|
*/
|
|
74
74
|
deletable: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateUserAccountPayload
|
|
79
|
+
*/
|
|
80
|
+
ownerOrganizationUuid?: string | null;
|
|
75
81
|
/**
|
|
76
82
|
*
|
|
77
83
|
* @type {Array<CreateUserAccountServiceAssociation>}
|
|
@@ -45,6 +45,7 @@ export function CreateUserAccountPayloadFromJSONTyped(json, ignoreDiscriminator)
|
|
|
45
45
|
'mobilePhone': !exists(json, 'mobilePhone') ? undefined : json['mobilePhone'],
|
|
46
46
|
'userAgreementRequested': json['userAgreementRequested'],
|
|
47
47
|
'deletable': json['deletable'],
|
|
48
|
+
'ownerOrganizationUuid': !exists(json, 'ownerOrganizationUuid') ? undefined : json['ownerOrganizationUuid'],
|
|
48
49
|
'services': !exists(json, 'services') ? undefined : (json['services'] === null ? null : json['services'].map(CreateUserAccountServiceAssociationFromJSON)),
|
|
49
50
|
'sessionPolicy': !exists(json, 'sessionPolicy') ? undefined : SessionPolicyFromJSON(json['sessionPolicy']),
|
|
50
51
|
'passwordPolicy': !exists(json, 'passwordPolicy') ? undefined : PasswordPolicyFromJSON(json['passwordPolicy']),
|
|
@@ -68,6 +69,7 @@ export function CreateUserAccountPayloadToJSON(value) {
|
|
|
68
69
|
'mobilePhone': value.mobilePhone,
|
|
69
70
|
'userAgreementRequested': value.userAgreementRequested,
|
|
70
71
|
'deletable': value.deletable,
|
|
72
|
+
'ownerOrganizationUuid': value.ownerOrganizationUuid,
|
|
71
73
|
'services': value.services === undefined ? undefined : (value.services === null ? null : value.services.map(CreateUserAccountServiceAssociationToJSON)),
|
|
72
74
|
'sessionPolicy': SessionPolicyToJSON(value.sessionPolicy),
|
|
73
75
|
'passwordPolicy': PasswordPolicyToJSON(value.passwordPolicy),
|
|
@@ -0,0 +1,31 @@
|
|
|
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: 6.8.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 UpdateOwnerOrganizationPayload
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateOwnerOrganizationPayload {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateOwnerOrganizationPayload
|
|
22
|
+
*/
|
|
23
|
+
ownerOrganizationUuid: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateOwnerOrganizationPayload interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateOwnerOrganizationPayload(value: object): boolean;
|
|
29
|
+
export declare function UpdateOwnerOrganizationPayloadFromJSON(json: any): UpdateOwnerOrganizationPayload;
|
|
30
|
+
export declare function UpdateOwnerOrganizationPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOwnerOrganizationPayload;
|
|
31
|
+
export declare function UpdateOwnerOrganizationPayloadToJSON(value?: UpdateOwnerOrganizationPayload | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* User account and session management
|
|
5
|
+
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 6.8.1-SNAPSHOT
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the UpdateOwnerOrganizationPayload interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUpdateOwnerOrganizationPayload(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "ownerOrganizationUuid" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function UpdateOwnerOrganizationPayloadFromJSON(json) {
|
|
23
|
+
return UpdateOwnerOrganizationPayloadFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function UpdateOwnerOrganizationPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'ownerOrganizationUuid': json['ownerOrganizationUuid'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function UpdateOwnerOrganizationPayloadToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'ownerOrganizationUuid': value.ownerOrganizationUuid,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -61,6 +61,7 @@ export * from './SetPasswordByConfirmationHashPayload';
|
|
|
61
61
|
export * from './SetUserAccountPasswordPayload';
|
|
62
62
|
export * from './SsoProvider';
|
|
63
63
|
export * from './SsoToken';
|
|
64
|
+
export * from './UpdateOwnerOrganizationPayload';
|
|
64
65
|
export * from './UpdateParentOrganizationPayload';
|
|
65
66
|
export * from './UpdateUserAccountPayload';
|
|
66
67
|
export * from './UpdateUserAccountSsoPayload';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -63,6 +63,7 @@ export * from './SetPasswordByConfirmationHashPayload';
|
|
|
63
63
|
export * from './SetUserAccountPasswordPayload';
|
|
64
64
|
export * from './SsoProvider';
|
|
65
65
|
export * from './SsoToken';
|
|
66
|
+
export * from './UpdateOwnerOrganizationPayload';
|
|
66
67
|
export * from './UpdateParentOrganizationPayload';
|
|
67
68
|
export * from './UpdateUserAccountPayload';
|
|
68
69
|
export * from './UpdateUserAccountSsoPayload';
|
|
@@ -72,6 +72,12 @@ export interface CreateUserAccountPayload {
|
|
|
72
72
|
* @memberof CreateUserAccountPayload
|
|
73
73
|
*/
|
|
74
74
|
deletable: boolean;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateUserAccountPayload
|
|
79
|
+
*/
|
|
80
|
+
ownerOrganizationUuid?: string | null;
|
|
75
81
|
/**
|
|
76
82
|
*
|
|
77
83
|
* @type {Array<CreateUserAccountServiceAssociation>}
|
|
@@ -50,6 +50,7 @@ function CreateUserAccountPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'mobilePhone': !(0, runtime_1.exists)(json, 'mobilePhone') ? undefined : json['mobilePhone'],
|
|
51
51
|
'userAgreementRequested': json['userAgreementRequested'],
|
|
52
52
|
'deletable': json['deletable'],
|
|
53
|
+
'ownerOrganizationUuid': !(0, runtime_1.exists)(json, 'ownerOrganizationUuid') ? undefined : json['ownerOrganizationUuid'],
|
|
53
54
|
'services': !(0, runtime_1.exists)(json, 'services') ? undefined : (json['services'] === null ? null : json['services'].map(CreateUserAccountServiceAssociation_1.CreateUserAccountServiceAssociationFromJSON)),
|
|
54
55
|
'sessionPolicy': !(0, runtime_1.exists)(json, 'sessionPolicy') ? undefined : (0, SessionPolicy_1.SessionPolicyFromJSON)(json['sessionPolicy']),
|
|
55
56
|
'passwordPolicy': !(0, runtime_1.exists)(json, 'passwordPolicy') ? undefined : (0, PasswordPolicy_1.PasswordPolicyFromJSON)(json['passwordPolicy']),
|
|
@@ -74,6 +75,7 @@ function CreateUserAccountPayloadToJSON(value) {
|
|
|
74
75
|
'mobilePhone': value.mobilePhone,
|
|
75
76
|
'userAgreementRequested': value.userAgreementRequested,
|
|
76
77
|
'deletable': value.deletable,
|
|
78
|
+
'ownerOrganizationUuid': value.ownerOrganizationUuid,
|
|
77
79
|
'services': value.services === undefined ? undefined : (value.services === null ? null : value.services.map(CreateUserAccountServiceAssociation_1.CreateUserAccountServiceAssociationToJSON)),
|
|
78
80
|
'sessionPolicy': (0, SessionPolicy_1.SessionPolicyToJSON)(value.sessionPolicy),
|
|
79
81
|
'passwordPolicy': (0, PasswordPolicy_1.PasswordPolicyToJSON)(value.passwordPolicy),
|
|
@@ -0,0 +1,31 @@
|
|
|
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: 6.8.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 UpdateOwnerOrganizationPayload
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateOwnerOrganizationPayload {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateOwnerOrganizationPayload
|
|
22
|
+
*/
|
|
23
|
+
ownerOrganizationUuid: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateOwnerOrganizationPayload interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateOwnerOrganizationPayload(value: object): boolean;
|
|
29
|
+
export declare function UpdateOwnerOrganizationPayloadFromJSON(json: any): UpdateOwnerOrganizationPayload;
|
|
30
|
+
export declare function UpdateOwnerOrganizationPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOwnerOrganizationPayload;
|
|
31
|
+
export declare function UpdateOwnerOrganizationPayloadToJSON(value?: UpdateOwnerOrganizationPayload | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* User account and session management
|
|
6
|
+
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 6.8.1-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateOwnerOrganizationPayloadToJSON = exports.UpdateOwnerOrganizationPayloadFromJSONTyped = exports.UpdateOwnerOrganizationPayloadFromJSON = exports.instanceOfUpdateOwnerOrganizationPayload = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UpdateOwnerOrganizationPayload interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUpdateOwnerOrganizationPayload(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "ownerOrganizationUuid" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfUpdateOwnerOrganizationPayload = instanceOfUpdateOwnerOrganizationPayload;
|
|
26
|
+
function UpdateOwnerOrganizationPayloadFromJSON(json) {
|
|
27
|
+
return UpdateOwnerOrganizationPayloadFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.UpdateOwnerOrganizationPayloadFromJSON = UpdateOwnerOrganizationPayloadFromJSON;
|
|
30
|
+
function UpdateOwnerOrganizationPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'ownerOrganizationUuid': json['ownerOrganizationUuid'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.UpdateOwnerOrganizationPayloadFromJSONTyped = UpdateOwnerOrganizationPayloadFromJSONTyped;
|
|
39
|
+
function UpdateOwnerOrganizationPayloadToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'ownerOrganizationUuid': value.ownerOrganizationUuid,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.UpdateOwnerOrganizationPayloadToJSON = UpdateOwnerOrganizationPayloadToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export * from './SetPasswordByConfirmationHashPayload';
|
|
|
61
61
|
export * from './SetUserAccountPasswordPayload';
|
|
62
62
|
export * from './SsoProvider';
|
|
63
63
|
export * from './SsoToken';
|
|
64
|
+
export * from './UpdateOwnerOrganizationPayload';
|
|
64
65
|
export * from './UpdateParentOrganizationPayload';
|
|
65
66
|
export * from './UpdateUserAccountPayload';
|
|
66
67
|
export * from './UpdateUserAccountSsoPayload';
|
package/dist/models/index.js
CHANGED
|
@@ -79,6 +79,7 @@ __exportStar(require("./SetPasswordByConfirmationHashPayload"), exports);
|
|
|
79
79
|
__exportStar(require("./SetUserAccountPasswordPayload"), exports);
|
|
80
80
|
__exportStar(require("./SsoProvider"), exports);
|
|
81
81
|
__exportStar(require("./SsoToken"), exports);
|
|
82
|
+
__exportStar(require("./UpdateOwnerOrganizationPayload"), exports);
|
|
82
83
|
__exportStar(require("./UpdateParentOrganizationPayload"), exports);
|
|
83
84
|
__exportStar(require("./UpdateUserAccountPayload"), exports);
|
|
84
85
|
__exportStar(require("./UpdateUserAccountSsoPayload"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/account-service-sdk-typescript",
|
|
3
|
-
"version": "6.8.1-snapshot.
|
|
3
|
+
"version": "6.8.1-snapshot.20240515194213",
|
|
4
4
|
"description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
package/src/apis/UserApi.ts
CHANGED
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
SessionPolicy,
|
|
31
31
|
SetPasswordByConfirmationHashPayload,
|
|
32
32
|
SetUserAccountPasswordPayload,
|
|
33
|
+
UpdateOwnerOrganizationPayload,
|
|
33
34
|
UpdateUserAccountPayload,
|
|
34
35
|
UpdateUserAccountSsoPayload,
|
|
35
36
|
User,
|
|
@@ -69,6 +70,8 @@ import {
|
|
|
69
70
|
SetPasswordByConfirmationHashPayloadToJSON,
|
|
70
71
|
SetUserAccountPasswordPayloadFromJSON,
|
|
71
72
|
SetUserAccountPasswordPayloadToJSON,
|
|
73
|
+
UpdateOwnerOrganizationPayloadFromJSON,
|
|
74
|
+
UpdateOwnerOrganizationPayloadToJSON,
|
|
72
75
|
UpdateUserAccountPayloadFromJSON,
|
|
73
76
|
UpdateUserAccountPayloadToJSON,
|
|
74
77
|
UpdateUserAccountSsoPayloadFromJSON,
|
|
@@ -234,6 +237,11 @@ export interface UnlockRequest {
|
|
|
234
237
|
uuid: string;
|
|
235
238
|
}
|
|
236
239
|
|
|
240
|
+
export interface UpdateOwnerOrganizationRequest {
|
|
241
|
+
uuid: string;
|
|
242
|
+
updateOwnerOrganizationPayload: UpdateOwnerOrganizationPayload;
|
|
243
|
+
}
|
|
244
|
+
|
|
237
245
|
export interface UpdateUserRequest {
|
|
238
246
|
uuid: string;
|
|
239
247
|
updateUserAccountPayload: UpdateUserAccountPayload;
|
|
@@ -1610,6 +1618,51 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
1610
1618
|
await this.unlockRaw(requestParameters, initOverrides);
|
|
1611
1619
|
}
|
|
1612
1620
|
|
|
1621
|
+
/**
|
|
1622
|
+
* Change the owner organization of a user account.
|
|
1623
|
+
*/
|
|
1624
|
+
async updateOwnerOrganizationRaw(requestParameters: UpdateOwnerOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1625
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
1626
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling updateOwnerOrganization.');
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
if (requestParameters.updateOwnerOrganizationPayload === null || requestParameters.updateOwnerOrganizationPayload === undefined) {
|
|
1630
|
+
throw new runtime.RequiredError('updateOwnerOrganizationPayload','Required parameter requestParameters.updateOwnerOrganizationPayload was null or undefined when calling updateOwnerOrganization.');
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
const queryParameters: any = {};
|
|
1634
|
+
|
|
1635
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1636
|
+
|
|
1637
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1638
|
+
|
|
1639
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1640
|
+
// oauth required
|
|
1641
|
+
const token = this.configuration.accessToken;
|
|
1642
|
+
const tokenString = await token("OAuth2", ["account:organization"]);
|
|
1643
|
+
if (tokenString) {
|
|
1644
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
const response = await this.request({
|
|
1649
|
+
path: `/users/{uuid}/ownerOrganization`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1650
|
+
method: 'POST',
|
|
1651
|
+
headers: headerParameters,
|
|
1652
|
+
query: queryParameters,
|
|
1653
|
+
body: UpdateOwnerOrganizationPayloadToJSON(requestParameters.updateOwnerOrganizationPayload),
|
|
1654
|
+
}, initOverrides);
|
|
1655
|
+
|
|
1656
|
+
return new runtime.VoidApiResponse(response);
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Change the owner organization of a user account.
|
|
1661
|
+
*/
|
|
1662
|
+
async updateOwnerOrganization(requestParameters: UpdateOwnerOrganizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1663
|
+
await this.updateOwnerOrganizationRaw(requestParameters, initOverrides);
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1613
1666
|
/**
|
|
1614
1667
|
* update user account.
|
|
1615
1668
|
*/
|
|
@@ -92,6 +92,12 @@ export interface CreateUserAccountPayload {
|
|
|
92
92
|
* @memberof CreateUserAccountPayload
|
|
93
93
|
*/
|
|
94
94
|
deletable: boolean;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof CreateUserAccountPayload
|
|
99
|
+
*/
|
|
100
|
+
ownerOrganizationUuid?: string | null;
|
|
95
101
|
/**
|
|
96
102
|
*
|
|
97
103
|
* @type {Array<CreateUserAccountServiceAssociation>}
|
|
@@ -152,6 +158,7 @@ export function CreateUserAccountPayloadFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
152
158
|
'mobilePhone': !exists(json, 'mobilePhone') ? undefined : json['mobilePhone'],
|
|
153
159
|
'userAgreementRequested': json['userAgreementRequested'],
|
|
154
160
|
'deletable': json['deletable'],
|
|
161
|
+
'ownerOrganizationUuid': !exists(json, 'ownerOrganizationUuid') ? undefined : json['ownerOrganizationUuid'],
|
|
155
162
|
'services': !exists(json, 'services') ? undefined : (json['services'] === null ? null : (json['services'] as Array<any>).map(CreateUserAccountServiceAssociationFromJSON)),
|
|
156
163
|
'sessionPolicy': !exists(json, 'sessionPolicy') ? undefined : SessionPolicyFromJSON(json['sessionPolicy']),
|
|
157
164
|
'passwordPolicy': !exists(json, 'passwordPolicy') ? undefined : PasswordPolicyFromJSON(json['passwordPolicy']),
|
|
@@ -177,6 +184,7 @@ export function CreateUserAccountPayloadToJSON(value?: CreateUserAccountPayload
|
|
|
177
184
|
'mobilePhone': value.mobilePhone,
|
|
178
185
|
'userAgreementRequested': value.userAgreementRequested,
|
|
179
186
|
'deletable': value.deletable,
|
|
187
|
+
'ownerOrganizationUuid': value.ownerOrganizationUuid,
|
|
180
188
|
'services': value.services === undefined ? undefined : (value.services === null ? null : (value.services as Array<any>).map(CreateUserAccountServiceAssociationToJSON)),
|
|
181
189
|
'sessionPolicy': SessionPolicyToJSON(value.sessionPolicy),
|
|
182
190
|
'passwordPolicy': PasswordPolicyToJSON(value.passwordPolicy),
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* User account and session management
|
|
5
|
+
* Provides HTTP endpoints to manage User Accounts and User Sessions.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 6.8.1-SNAPSHOT
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateOwnerOrganizationPayload
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateOwnerOrganizationPayload {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateOwnerOrganizationPayload
|
|
26
|
+
*/
|
|
27
|
+
ownerOrganizationUuid: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateOwnerOrganizationPayload interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateOwnerOrganizationPayload(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "ownerOrganizationUuid" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function UpdateOwnerOrganizationPayloadFromJSON(json: any): UpdateOwnerOrganizationPayload {
|
|
41
|
+
return UpdateOwnerOrganizationPayloadFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function UpdateOwnerOrganizationPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOwnerOrganizationPayload {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'ownerOrganizationUuid': json['ownerOrganizationUuid'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function UpdateOwnerOrganizationPayloadToJSON(value?: UpdateOwnerOrganizationPayload | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'ownerOrganizationUuid': value.ownerOrganizationUuid,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -63,6 +63,7 @@ export * from './SetPasswordByConfirmationHashPayload';
|
|
|
63
63
|
export * from './SetUserAccountPasswordPayload';
|
|
64
64
|
export * from './SsoProvider';
|
|
65
65
|
export * from './SsoToken';
|
|
66
|
+
export * from './UpdateOwnerOrganizationPayload';
|
|
66
67
|
export * from './UpdateParentOrganizationPayload';
|
|
67
68
|
export * from './UpdateUserAccountPayload';
|
|
68
69
|
export * from './UpdateUserAccountSsoPayload';
|