@equisoft/account-service-sdk-typescript 6.8.1-snapshot.20240513135018 → 6.8.1-snapshot.20240515190416
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 +2 -1
- package/dist/apis/UserApi.d.ts +25 -12
- package/dist/apis/UserApi.js +80 -36
- package/dist/esm/apis/UserApi.d.ts +25 -12
- package/dist/esm/apis/UserApi.js +81 -37
- package/dist/esm/models/SendSignupInvitationPayload.d.ts +73 -0
- package/dist/esm/models/SendSignupInvitationPayload.js +61 -0
- package/dist/esm/models/UpdateOwnerOrganizationPayload.d.ts +31 -0
- package/dist/esm/models/{SignupHash.js → UpdateOwnerOrganizationPayload.js} +9 -9
- package/dist/esm/models/index.d.ts +2 -1
- package/dist/esm/models/index.js +2 -1
- package/dist/models/SendSignupInvitationPayload.d.ts +73 -0
- package/dist/models/SendSignupInvitationPayload.js +68 -0
- package/dist/models/UpdateOwnerOrganizationPayload.d.ts +31 -0
- package/dist/models/UpdateOwnerOrganizationPayload.js +50 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/UserApi.ts +106 -46
- package/src/models/SendSignupInvitationPayload.ts +125 -0
- package/src/models/UpdateOwnerOrganizationPayload.ts +66 -0
- package/src/models/index.ts +2 -1
- package/dist/esm/models/SignupHash.d.ts +0 -31
- package/dist/models/SignupHash.d.ts +0 -31
- package/dist/models/SignupHash.js +0 -50
- package/src/models/SignupHash.ts +0 -66
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the UpdateOwnerOrganizationPayload interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfUpdateOwnerOrganizationPayload(value) {
|
|
18
18
|
let isInstance = true;
|
|
19
|
-
isInstance = isInstance && "
|
|
19
|
+
isInstance = isInstance && "ownerOrganizationUuid" in value;
|
|
20
20
|
return isInstance;
|
|
21
21
|
}
|
|
22
|
-
export function
|
|
23
|
-
return
|
|
22
|
+
export function UpdateOwnerOrganizationPayloadFromJSON(json) {
|
|
23
|
+
return UpdateOwnerOrganizationPayloadFromJSONTyped(json, false);
|
|
24
24
|
}
|
|
25
|
-
export function
|
|
25
|
+
export function UpdateOwnerOrganizationPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
26
|
if ((json === undefined) || (json === null)) {
|
|
27
27
|
return json;
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
|
-
'
|
|
30
|
+
'ownerOrganizationUuid': json['ownerOrganizationUuid'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export function
|
|
33
|
+
export function UpdateOwnerOrganizationPayloadToJSON(value) {
|
|
34
34
|
if (value === undefined) {
|
|
35
35
|
return undefined;
|
|
36
36
|
}
|
|
@@ -38,6 +38,6 @@ export function SignupHashToJSON(value) {
|
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'
|
|
41
|
+
'ownerOrganizationUuid': value.ownerOrganizationUuid,
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -45,6 +45,7 @@ export * from './Role';
|
|
|
45
45
|
export * from './RoleCreated';
|
|
46
46
|
export * from './RolesOnOrganization';
|
|
47
47
|
export * from './SendResetPasswordLinkPayload';
|
|
48
|
+
export * from './SendSignupInvitationPayload';
|
|
48
49
|
export * from './ServiceAccess';
|
|
49
50
|
export * from './ServiceAccountCreationSchema';
|
|
50
51
|
export * from './ServiceAccountSchema';
|
|
@@ -58,9 +59,9 @@ export * from './SessionPolicy';
|
|
|
58
59
|
export * from './SessionState';
|
|
59
60
|
export * from './SetPasswordByConfirmationHashPayload';
|
|
60
61
|
export * from './SetUserAccountPasswordPayload';
|
|
61
|
-
export * from './SignupHash';
|
|
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
|
@@ -47,6 +47,7 @@ export * from './Role';
|
|
|
47
47
|
export * from './RoleCreated';
|
|
48
48
|
export * from './RolesOnOrganization';
|
|
49
49
|
export * from './SendResetPasswordLinkPayload';
|
|
50
|
+
export * from './SendSignupInvitationPayload';
|
|
50
51
|
export * from './ServiceAccess';
|
|
51
52
|
export * from './ServiceAccountCreationSchema';
|
|
52
53
|
export * from './ServiceAccountSchema';
|
|
@@ -60,9 +61,9 @@ export * from './SessionPolicy';
|
|
|
60
61
|
export * from './SessionState';
|
|
61
62
|
export * from './SetPasswordByConfirmationHashPayload';
|
|
62
63
|
export * from './SetUserAccountPasswordPayload';
|
|
63
|
-
export * from './SignupHash';
|
|
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';
|
|
@@ -0,0 +1,73 @@
|
|
|
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 SendSignupInvitationPayload
|
|
16
|
+
*/
|
|
17
|
+
export interface SendSignupInvitationPayload {
|
|
18
|
+
/**
|
|
19
|
+
* Service code to generate signup url.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SendSignupInvitationPayload
|
|
22
|
+
*/
|
|
23
|
+
serviceCode: string;
|
|
24
|
+
/**
|
|
25
|
+
* Service or application name used in email template.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SendSignupInvitationPayload
|
|
28
|
+
*/
|
|
29
|
+
serviceName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Full url to open the service or application.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SendSignupInvitationPayload
|
|
34
|
+
*/
|
|
35
|
+
serviceUrl: string;
|
|
36
|
+
/**
|
|
37
|
+
* Base url for the signup link generation.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SendSignupInvitationPayload
|
|
40
|
+
*/
|
|
41
|
+
signupBaseUrl: string;
|
|
42
|
+
/**
|
|
43
|
+
* If set, used in the invitation email template to specify a personalized message by the sender. The message is text only and newlines are converted to br.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SendSignupInvitationPayload
|
|
46
|
+
*/
|
|
47
|
+
serviceMessage?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* If set, used in the invitation email template to specify the sender of the invitation.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SendSignupInvitationPayload
|
|
52
|
+
*/
|
|
53
|
+
senderName?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* If set, used in the invitation email template to specify a personalized message by the sender. The message is text only and newlines are converted to br.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SendSignupInvitationPayload
|
|
58
|
+
*/
|
|
59
|
+
senderMessage?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Override the invitation email subject.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SendSignupInvitationPayload
|
|
64
|
+
*/
|
|
65
|
+
customSubject?: string | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SendSignupInvitationPayload interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfSendSignupInvitationPayload(value: object): boolean;
|
|
71
|
+
export declare function SendSignupInvitationPayloadFromJSON(json: any): SendSignupInvitationPayload;
|
|
72
|
+
export declare function SendSignupInvitationPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendSignupInvitationPayload;
|
|
73
|
+
export declare function SendSignupInvitationPayloadToJSON(value?: SendSignupInvitationPayload | null): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.SendSignupInvitationPayloadToJSON = exports.SendSignupInvitationPayloadFromJSONTyped = exports.SendSignupInvitationPayloadFromJSON = exports.instanceOfSendSignupInvitationPayload = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SendSignupInvitationPayload interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSendSignupInvitationPayload(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "serviceCode" in value;
|
|
24
|
+
isInstance = isInstance && "serviceName" in value;
|
|
25
|
+
isInstance = isInstance && "serviceUrl" in value;
|
|
26
|
+
isInstance = isInstance && "signupBaseUrl" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfSendSignupInvitationPayload = instanceOfSendSignupInvitationPayload;
|
|
30
|
+
function SendSignupInvitationPayloadFromJSON(json) {
|
|
31
|
+
return SendSignupInvitationPayloadFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.SendSignupInvitationPayloadFromJSON = SendSignupInvitationPayloadFromJSON;
|
|
34
|
+
function SendSignupInvitationPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'serviceCode': json['serviceCode'],
|
|
40
|
+
'serviceName': json['serviceName'],
|
|
41
|
+
'serviceUrl': json['serviceUrl'],
|
|
42
|
+
'signupBaseUrl': json['signupBaseUrl'],
|
|
43
|
+
'serviceMessage': !(0, runtime_1.exists)(json, 'serviceMessage') ? undefined : json['serviceMessage'],
|
|
44
|
+
'senderName': !(0, runtime_1.exists)(json, 'senderName') ? undefined : json['senderName'],
|
|
45
|
+
'senderMessage': !(0, runtime_1.exists)(json, 'senderMessage') ? undefined : json['senderMessage'],
|
|
46
|
+
'customSubject': !(0, runtime_1.exists)(json, 'customSubject') ? undefined : json['customSubject'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.SendSignupInvitationPayloadFromJSONTyped = SendSignupInvitationPayloadFromJSONTyped;
|
|
50
|
+
function SendSignupInvitationPayloadToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'serviceCode': value.serviceCode,
|
|
59
|
+
'serviceName': value.serviceName,
|
|
60
|
+
'serviceUrl': value.serviceUrl,
|
|
61
|
+
'signupBaseUrl': value.signupBaseUrl,
|
|
62
|
+
'serviceMessage': value.serviceMessage,
|
|
63
|
+
'senderName': value.senderName,
|
|
64
|
+
'senderMessage': value.senderMessage,
|
|
65
|
+
'customSubject': value.customSubject,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.SendSignupInvitationPayloadToJSON = SendSignupInvitationPayloadToJSON;
|
|
@@ -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
|
@@ -45,6 +45,7 @@ export * from './Role';
|
|
|
45
45
|
export * from './RoleCreated';
|
|
46
46
|
export * from './RolesOnOrganization';
|
|
47
47
|
export * from './SendResetPasswordLinkPayload';
|
|
48
|
+
export * from './SendSignupInvitationPayload';
|
|
48
49
|
export * from './ServiceAccess';
|
|
49
50
|
export * from './ServiceAccountCreationSchema';
|
|
50
51
|
export * from './ServiceAccountSchema';
|
|
@@ -58,9 +59,9 @@ export * from './SessionPolicy';
|
|
|
58
59
|
export * from './SessionState';
|
|
59
60
|
export * from './SetPasswordByConfirmationHashPayload';
|
|
60
61
|
export * from './SetUserAccountPasswordPayload';
|
|
61
|
-
export * from './SignupHash';
|
|
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
|
@@ -63,6 +63,7 @@ __exportStar(require("./Role"), exports);
|
|
|
63
63
|
__exportStar(require("./RoleCreated"), exports);
|
|
64
64
|
__exportStar(require("./RolesOnOrganization"), exports);
|
|
65
65
|
__exportStar(require("./SendResetPasswordLinkPayload"), exports);
|
|
66
|
+
__exportStar(require("./SendSignupInvitationPayload"), exports);
|
|
66
67
|
__exportStar(require("./ServiceAccess"), exports);
|
|
67
68
|
__exportStar(require("./ServiceAccountCreationSchema"), exports);
|
|
68
69
|
__exportStar(require("./ServiceAccountSchema"), exports);
|
|
@@ -76,9 +77,9 @@ __exportStar(require("./SessionPolicy"), exports);
|
|
|
76
77
|
__exportStar(require("./SessionState"), exports);
|
|
77
78
|
__exportStar(require("./SetPasswordByConfirmationHashPayload"), exports);
|
|
78
79
|
__exportStar(require("./SetUserAccountPasswordPayload"), exports);
|
|
79
|
-
__exportStar(require("./SignupHash"), 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.20240515190416",
|
|
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
|
@@ -26,10 +26,11 @@ import type {
|
|
|
26
26
|
PasswordPolicy,
|
|
27
27
|
PermissionList,
|
|
28
28
|
SendResetPasswordLinkPayload,
|
|
29
|
+
SendSignupInvitationPayload,
|
|
29
30
|
SessionPolicy,
|
|
30
31
|
SetPasswordByConfirmationHashPayload,
|
|
31
32
|
SetUserAccountPasswordPayload,
|
|
32
|
-
|
|
33
|
+
UpdateOwnerOrganizationPayload,
|
|
33
34
|
UpdateUserAccountPayload,
|
|
34
35
|
UpdateUserAccountSsoPayload,
|
|
35
36
|
User,
|
|
@@ -61,14 +62,16 @@ import {
|
|
|
61
62
|
PermissionListToJSON,
|
|
62
63
|
SendResetPasswordLinkPayloadFromJSON,
|
|
63
64
|
SendResetPasswordLinkPayloadToJSON,
|
|
65
|
+
SendSignupInvitationPayloadFromJSON,
|
|
66
|
+
SendSignupInvitationPayloadToJSON,
|
|
64
67
|
SessionPolicyFromJSON,
|
|
65
68
|
SessionPolicyToJSON,
|
|
66
69
|
SetPasswordByConfirmationHashPayloadFromJSON,
|
|
67
70
|
SetPasswordByConfirmationHashPayloadToJSON,
|
|
68
71
|
SetUserAccountPasswordPayloadFromJSON,
|
|
69
72
|
SetUserAccountPasswordPayloadToJSON,
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
UpdateOwnerOrganizationPayloadFromJSON,
|
|
74
|
+
UpdateOwnerOrganizationPayloadToJSON,
|
|
72
75
|
UpdateUserAccountPayloadFromJSON,
|
|
73
76
|
UpdateUserAccountPayloadToJSON,
|
|
74
77
|
UpdateUserAccountSsoPayloadFromJSON,
|
|
@@ -114,10 +117,6 @@ export interface ApplyPermissionsOnResource1Request {
|
|
|
114
117
|
applyPermissionsPayload: ApplyPermissionsPayload;
|
|
115
118
|
}
|
|
116
119
|
|
|
117
|
-
export interface CreateSignupInvitationRequest {
|
|
118
|
-
uuid: string;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
120
|
export interface CreateUserRequest {
|
|
122
121
|
createUserAccountPayload: CreateUserAccountPayload;
|
|
123
122
|
}
|
|
@@ -209,6 +208,11 @@ export interface SendPasswordResetLinkRequest {
|
|
|
209
208
|
sendResetPasswordLinkPayload: SendResetPasswordLinkPayload;
|
|
210
209
|
}
|
|
211
210
|
|
|
211
|
+
export interface SendSignupInvitationRequest {
|
|
212
|
+
uuid: string;
|
|
213
|
+
sendSignupInvitationPayload: SendSignupInvitationPayload;
|
|
214
|
+
}
|
|
215
|
+
|
|
212
216
|
export interface SetPasswordRequest {
|
|
213
217
|
uuid: string;
|
|
214
218
|
setUserAccountPasswordPayload: SetUserAccountPasswordPayload;
|
|
@@ -233,6 +237,11 @@ export interface UnlockRequest {
|
|
|
233
237
|
uuid: string;
|
|
234
238
|
}
|
|
235
239
|
|
|
240
|
+
export interface UpdateOwnerOrganizationRequest {
|
|
241
|
+
uuid: string;
|
|
242
|
+
updateOwnerOrganizationPayload: UpdateOwnerOrganizationPayload;
|
|
243
|
+
}
|
|
244
|
+
|
|
236
245
|
export interface UpdateUserRequest {
|
|
237
246
|
uuid: string;
|
|
238
247
|
updateUserAccountPayload: UpdateUserAccountPayload;
|
|
@@ -501,45 +510,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
501
510
|
return await response.value();
|
|
502
511
|
}
|
|
503
512
|
|
|
504
|
-
/**
|
|
505
|
-
* Create signup invitation for user.
|
|
506
|
-
*/
|
|
507
|
-
async createSignupInvitationRaw(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignupHash>> {
|
|
508
|
-
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
509
|
-
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling createSignupInvitation.');
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
const queryParameters: any = {};
|
|
513
|
-
|
|
514
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
515
|
-
|
|
516
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
517
|
-
// oauth required
|
|
518
|
-
const token = this.configuration.accessToken;
|
|
519
|
-
const tokenString = await token("OAuth2", ["account:user"]);
|
|
520
|
-
if (tokenString) {
|
|
521
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
const response = await this.request({
|
|
526
|
-
path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
527
|
-
method: 'POST',
|
|
528
|
-
headers: headerParameters,
|
|
529
|
-
query: queryParameters,
|
|
530
|
-
}, initOverrides);
|
|
531
|
-
|
|
532
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SignupHashFromJSON(jsonValue));
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* Create signup invitation for user.
|
|
537
|
-
*/
|
|
538
|
-
async createSignupInvitation(requestParameters: CreateSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignupHash> {
|
|
539
|
-
const response = await this.createSignupInvitationRaw(requestParameters, initOverrides);
|
|
540
|
-
return await response.value();
|
|
541
|
-
}
|
|
542
|
-
|
|
543
513
|
/**
|
|
544
514
|
* Create a user account
|
|
545
515
|
*/
|
|
@@ -1385,6 +1355,51 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
1385
1355
|
await this.sendPasswordResetLinkRaw(requestParameters, initOverrides);
|
|
1386
1356
|
}
|
|
1387
1357
|
|
|
1358
|
+
/**
|
|
1359
|
+
* Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
|
|
1360
|
+
*/
|
|
1361
|
+
async sendSignupInvitationRaw(requestParameters: SendSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1362
|
+
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
1363
|
+
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling sendSignupInvitation.');
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
if (requestParameters.sendSignupInvitationPayload === null || requestParameters.sendSignupInvitationPayload === undefined) {
|
|
1367
|
+
throw new runtime.RequiredError('sendSignupInvitationPayload','Required parameter requestParameters.sendSignupInvitationPayload was null or undefined when calling sendSignupInvitation.');
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
const queryParameters: any = {};
|
|
1371
|
+
|
|
1372
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1373
|
+
|
|
1374
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1375
|
+
|
|
1376
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1377
|
+
// oauth required
|
|
1378
|
+
const token = this.configuration.accessToken;
|
|
1379
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
1380
|
+
if (tokenString) {
|
|
1381
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
const response = await this.request({
|
|
1386
|
+
path: `/users/{uuid}/invitation`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1387
|
+
method: 'POST',
|
|
1388
|
+
headers: headerParameters,
|
|
1389
|
+
query: queryParameters,
|
|
1390
|
+
body: SendSignupInvitationPayloadToJSON(requestParameters.sendSignupInvitationPayload),
|
|
1391
|
+
}, initOverrides);
|
|
1392
|
+
|
|
1393
|
+
return new runtime.VoidApiResponse(response);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* Send a signup invitation for user. If the user already has a pending invitation, it will be replaced.
|
|
1398
|
+
*/
|
|
1399
|
+
async sendSignupInvitation(requestParameters: SendSignupInvitationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1400
|
+
await this.sendSignupInvitationRaw(requestParameters, initOverrides);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1388
1403
|
/**
|
|
1389
1404
|
* set user account password.
|
|
1390
1405
|
*/
|
|
@@ -1603,6 +1618,51 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
1603
1618
|
await this.unlockRaw(requestParameters, initOverrides);
|
|
1604
1619
|
}
|
|
1605
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
|
+
|
|
1606
1666
|
/**
|
|
1607
1667
|
* update user account.
|
|
1608
1668
|
*/
|