@forteplatforms/sdk 1.0.163 → 1.0.166
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/dist/generated/apis/ProjectsServerApi.d.ts +44 -0
- package/dist/generated/apis/ProjectsServerApi.js +153 -1
- package/dist/generated/apis/UsersServerApi.d.ts +60 -0
- package/dist/generated/apis/UsersServerApi.js +248 -0
- package/dist/generated/models/AdminForceSetPasswordRequest.d.ts +32 -0
- package/dist/generated/models/AdminForceSetPasswordRequest.js +51 -0
- package/dist/generated/models/AdminPasswordResetResponse.d.ts +40 -0
- package/dist/generated/models/AdminPasswordResetResponse.js +59 -0
- package/dist/generated/models/ChangePasswordRequest.d.ts +38 -0
- package/dist/generated/models/ChangePasswordRequest.js +53 -0
- package/dist/generated/models/CompletePasswordResetRequest.d.ts +38 -0
- package/dist/generated/models/CompletePasswordResetRequest.js +55 -0
- package/dist/generated/models/ForteApiException.d.ts +6 -0
- package/dist/generated/models/ForteApiException.js +7 -1
- package/dist/generated/models/NotificationTemplatesConfig.d.ts +18 -0
- package/dist/generated/models/NotificationTemplatesConfig.js +6 -0
- package/dist/generated/models/PasswordConfig.d.ts +76 -0
- package/dist/generated/models/PasswordConfig.js +69 -0
- package/dist/generated/models/PasswordLoginRequest.d.ts +44 -0
- package/dist/generated/models/PasswordLoginRequest.js +57 -0
- package/dist/generated/models/ProjectObject.d.ts +13 -0
- package/dist/generated/models/ProjectObject.js +5 -0
- package/dist/generated/models/RegisterUserRequest.d.ts +6 -0
- package/dist/generated/models/RegisterUserRequest.js +2 -0
- package/dist/generated/models/RequestPasswordResetRequest.d.ts +38 -0
- package/dist/generated/models/RequestPasswordResetRequest.js +53 -0
- package/dist/generated/models/SearchUsersRequest.d.ts +1 -20
- package/dist/generated/models/SearchUsersRequest.js +4 -9
- package/dist/generated/models/UpdateNotificationTemplatesRequest.d.ts +18 -0
- package/dist/generated/models/UpdateNotificationTemplatesRequest.js +6 -0
- package/dist/generated/models/UpdateProjectRequest.d.ts +13 -0
- package/dist/generated/models/UpdateProjectRequest.js +5 -0
- package/dist/generated/models/UserActionLogObject.d.ts +8 -0
- package/dist/generated/models/UserActionLogObject.js +9 -1
- package/dist/generated/models/UserObject.d.ts +18 -0
- package/dist/generated/models/UserObject.js +6 -0
- package/dist/generated/models/index.d.ts +7 -1
- package/dist/generated/models/index.js +7 -1
- package/package.json +1 -1
- package/dist/generated/models/UserFilter.d.ts +0 -50
- package/dist/generated/models/UserFilter.js +0 -55
|
@@ -151,6 +151,12 @@ export declare const ForteApiExceptionErrorCodeType: {
|
|
|
151
151
|
readonly CUSTOM_DOMAIN_ALREADY_REGISTERED: "CUSTOM_DOMAIN_ALREADY_REGISTERED";
|
|
152
152
|
readonly CUSTOM_DOMAIN_NOT_FOUND: "CUSTOM_DOMAIN_NOT_FOUND";
|
|
153
153
|
readonly CUSTOM_DOMAIN_QUOTA_EXCEEDED: "CUSTOM_DOMAIN_QUOTA_EXCEEDED";
|
|
154
|
+
readonly PASSWORD_LOGIN_NOT_ENABLED: "PASSWORD_LOGIN_NOT_ENABLED";
|
|
155
|
+
readonly PASSWORD_TOO_WEAK: "PASSWORD_TOO_WEAK";
|
|
156
|
+
readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS";
|
|
157
|
+
readonly INVALID_RESET_TOKEN: "INVALID_RESET_TOKEN";
|
|
158
|
+
readonly PASSWORD_CONFIG_INVALID: "PASSWORD_CONFIG_INVALID";
|
|
159
|
+
readonly PASSWORD_RESET_TARGET_URL_REQUIRED: "PASSWORD_RESET_TARGET_URL_REQUIRED";
|
|
154
160
|
};
|
|
155
161
|
export type ForteApiExceptionErrorCodeType = typeof ForteApiExceptionErrorCodeType[keyof typeof ForteApiExceptionErrorCodeType];
|
|
156
162
|
/**
|
|
@@ -135,7 +135,13 @@ exports.ForteApiExceptionErrorCodeType = {
|
|
|
135
135
|
CUSTOM_DOMAIN_RESERVED_SUFFIX: 'CUSTOM_DOMAIN_RESERVED_SUFFIX',
|
|
136
136
|
CUSTOM_DOMAIN_ALREADY_REGISTERED: 'CUSTOM_DOMAIN_ALREADY_REGISTERED',
|
|
137
137
|
CUSTOM_DOMAIN_NOT_FOUND: 'CUSTOM_DOMAIN_NOT_FOUND',
|
|
138
|
-
CUSTOM_DOMAIN_QUOTA_EXCEEDED: 'CUSTOM_DOMAIN_QUOTA_EXCEEDED'
|
|
138
|
+
CUSTOM_DOMAIN_QUOTA_EXCEEDED: 'CUSTOM_DOMAIN_QUOTA_EXCEEDED',
|
|
139
|
+
PASSWORD_LOGIN_NOT_ENABLED: 'PASSWORD_LOGIN_NOT_ENABLED',
|
|
140
|
+
PASSWORD_TOO_WEAK: 'PASSWORD_TOO_WEAK',
|
|
141
|
+
INVALID_CREDENTIALS: 'INVALID_CREDENTIALS',
|
|
142
|
+
INVALID_RESET_TOKEN: 'INVALID_RESET_TOKEN',
|
|
143
|
+
PASSWORD_CONFIG_INVALID: 'PASSWORD_CONFIG_INVALID',
|
|
144
|
+
PASSWORD_RESET_TARGET_URL_REQUIRED: 'PASSWORD_RESET_TARGET_URL_REQUIRED'
|
|
139
145
|
};
|
|
140
146
|
/**
|
|
141
147
|
* Check if a given object implements the ForteApiException interface.
|
|
@@ -99,6 +99,24 @@ export interface NotificationTemplatesConfig {
|
|
|
99
99
|
* @memberof NotificationTemplatesConfig
|
|
100
100
|
*/
|
|
101
101
|
inviteEmailHtmlBody?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof NotificationTemplatesConfig
|
|
106
|
+
*/
|
|
107
|
+
passwordResetEmailSubject?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof NotificationTemplatesConfig
|
|
112
|
+
*/
|
|
113
|
+
passwordResetEmailHtmlBody?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof NotificationTemplatesConfig
|
|
118
|
+
*/
|
|
119
|
+
passwordResetSmsBody?: string;
|
|
102
120
|
}
|
|
103
121
|
/**
|
|
104
122
|
* Check if a given object implements the NotificationTemplatesConfig interface.
|
|
@@ -46,6 +46,9 @@ function NotificationTemplatesConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'loginOtpSmsBody': json['loginOtpSmsBody'] == null ? undefined : json['loginOtpSmsBody'],
|
|
47
47
|
'inviteEmailSubject': json['inviteEmailSubject'] == null ? undefined : json['inviteEmailSubject'],
|
|
48
48
|
'inviteEmailHtmlBody': json['inviteEmailHtmlBody'] == null ? undefined : json['inviteEmailHtmlBody'],
|
|
49
|
+
'passwordResetEmailSubject': json['passwordResetEmailSubject'] == null ? undefined : json['passwordResetEmailSubject'],
|
|
50
|
+
'passwordResetEmailHtmlBody': json['passwordResetEmailHtmlBody'] == null ? undefined : json['passwordResetEmailHtmlBody'],
|
|
51
|
+
'passwordResetSmsBody': json['passwordResetSmsBody'] == null ? undefined : json['passwordResetSmsBody'],
|
|
49
52
|
};
|
|
50
53
|
}
|
|
51
54
|
function NotificationTemplatesConfigToJSON(json) {
|
|
@@ -71,5 +74,8 @@ function NotificationTemplatesConfigToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
74
|
'loginOtpSmsBody': value['loginOtpSmsBody'],
|
|
72
75
|
'inviteEmailSubject': value['inviteEmailSubject'],
|
|
73
76
|
'inviteEmailHtmlBody': value['inviteEmailHtmlBody'],
|
|
77
|
+
'passwordResetEmailSubject': value['passwordResetEmailSubject'],
|
|
78
|
+
'passwordResetEmailHtmlBody': value['passwordResetEmailHtmlBody'],
|
|
79
|
+
'passwordResetSmsBody': value['passwordResetSmsBody'],
|
|
74
80
|
};
|
|
75
81
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 PasswordConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface PasswordConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PasswordConfig
|
|
22
|
+
*/
|
|
23
|
+
minLength?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof PasswordConfig
|
|
28
|
+
*/
|
|
29
|
+
requireUppercase?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof PasswordConfig
|
|
34
|
+
*/
|
|
35
|
+
requireLowercase?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PasswordConfig
|
|
40
|
+
*/
|
|
41
|
+
requireDigit?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof PasswordConfig
|
|
46
|
+
*/
|
|
47
|
+
requireSymbol?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {PasswordConfigResetModeType}
|
|
51
|
+
* @memberof PasswordConfig
|
|
52
|
+
*/
|
|
53
|
+
resetMode?: PasswordConfigResetModeType;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PasswordConfig
|
|
58
|
+
*/
|
|
59
|
+
resetLinkTargetUrl?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const PasswordConfigResetModeType: {
|
|
65
|
+
readonly SEND_NEW_PASSWORD: "SEND_NEW_PASSWORD";
|
|
66
|
+
readonly SEND_RESET_LINK: "SEND_RESET_LINK";
|
|
67
|
+
};
|
|
68
|
+
export type PasswordConfigResetModeType = typeof PasswordConfigResetModeType[keyof typeof PasswordConfigResetModeType];
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the PasswordConfig interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfPasswordConfig(value: object): value is PasswordConfig;
|
|
73
|
+
export declare function PasswordConfigFromJSON(json: any): PasswordConfig;
|
|
74
|
+
export declare function PasswordConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordConfig;
|
|
75
|
+
export declare function PasswordConfigToJSON(json: any): PasswordConfig;
|
|
76
|
+
export declare function PasswordConfigToJSONTyped(value?: PasswordConfig | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.PasswordConfigResetModeType = void 0;
|
|
17
|
+
exports.instanceOfPasswordConfig = instanceOfPasswordConfig;
|
|
18
|
+
exports.PasswordConfigFromJSON = PasswordConfigFromJSON;
|
|
19
|
+
exports.PasswordConfigFromJSONTyped = PasswordConfigFromJSONTyped;
|
|
20
|
+
exports.PasswordConfigToJSON = PasswordConfigToJSON;
|
|
21
|
+
exports.PasswordConfigToJSONTyped = PasswordConfigToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PasswordConfigResetModeType = {
|
|
26
|
+
SEND_NEW_PASSWORD: 'SEND_NEW_PASSWORD',
|
|
27
|
+
SEND_RESET_LINK: 'SEND_RESET_LINK'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the PasswordConfig interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfPasswordConfig(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function PasswordConfigFromJSON(json) {
|
|
36
|
+
return PasswordConfigFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function PasswordConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'minLength': json['minLength'] == null ? undefined : json['minLength'],
|
|
44
|
+
'requireUppercase': json['requireUppercase'] == null ? undefined : json['requireUppercase'],
|
|
45
|
+
'requireLowercase': json['requireLowercase'] == null ? undefined : json['requireLowercase'],
|
|
46
|
+
'requireDigit': json['requireDigit'] == null ? undefined : json['requireDigit'],
|
|
47
|
+
'requireSymbol': json['requireSymbol'] == null ? undefined : json['requireSymbol'],
|
|
48
|
+
'resetMode': json['resetMode'] == null ? undefined : json['resetMode'],
|
|
49
|
+
'resetLinkTargetUrl': json['resetLinkTargetUrl'] == null ? undefined : json['resetLinkTargetUrl'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function PasswordConfigToJSON(json) {
|
|
53
|
+
return PasswordConfigToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function PasswordConfigToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'minLength': value['minLength'],
|
|
62
|
+
'requireUppercase': value['requireUppercase'],
|
|
63
|
+
'requireLowercase': value['requireLowercase'],
|
|
64
|
+
'requireDigit': value['requireDigit'],
|
|
65
|
+
'requireSymbol': value['requireSymbol'],
|
|
66
|
+
'resetMode': value['resetMode'],
|
|
67
|
+
'resetLinkTargetUrl': value['resetLinkTargetUrl'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 PasswordLoginRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PasswordLoginRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PasswordLoginRequest
|
|
22
|
+
*/
|
|
23
|
+
contactValue: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PasswordLoginRequest
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PasswordLoginRequest
|
|
34
|
+
*/
|
|
35
|
+
recaptchaToken?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PasswordLoginRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPasswordLoginRequest(value: object): value is PasswordLoginRequest;
|
|
41
|
+
export declare function PasswordLoginRequestFromJSON(json: any): PasswordLoginRequest;
|
|
42
|
+
export declare function PasswordLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordLoginRequest;
|
|
43
|
+
export declare function PasswordLoginRequestToJSON(json: any): PasswordLoginRequest;
|
|
44
|
+
export declare function PasswordLoginRequestToJSONTyped(value?: PasswordLoginRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.instanceOfPasswordLoginRequest = instanceOfPasswordLoginRequest;
|
|
17
|
+
exports.PasswordLoginRequestFromJSON = PasswordLoginRequestFromJSON;
|
|
18
|
+
exports.PasswordLoginRequestFromJSONTyped = PasswordLoginRequestFromJSONTyped;
|
|
19
|
+
exports.PasswordLoginRequestToJSON = PasswordLoginRequestToJSON;
|
|
20
|
+
exports.PasswordLoginRequestToJSONTyped = PasswordLoginRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PasswordLoginRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPasswordLoginRequest(value) {
|
|
25
|
+
if (!('contactValue' in value) || value['contactValue'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PasswordLoginRequestFromJSON(json) {
|
|
32
|
+
return PasswordLoginRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PasswordLoginRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'contactValue': json['contactValue'],
|
|
40
|
+
'password': json['password'],
|
|
41
|
+
'recaptchaToken': json['recaptchaToken'] == null ? undefined : json['recaptchaToken'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function PasswordLoginRequestToJSON(json) {
|
|
45
|
+
return PasswordLoginRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PasswordLoginRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'contactValue': value['contactValue'],
|
|
54
|
+
'password': value['password'],
|
|
55
|
+
'recaptchaToken': value['recaptchaToken'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { NotificationTemplatesConfig } from './NotificationTemplatesConfig';
|
|
13
13
|
import type { WebAppObject } from './WebAppObject';
|
|
14
14
|
import type { ServiceObject } from './ServiceObject';
|
|
15
|
+
import type { PasswordConfig } from './PasswordConfig';
|
|
15
16
|
import type { PaymentTriggerConfig } from './PaymentTriggerConfig';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
@@ -103,6 +104,18 @@ export interface ProjectObject {
|
|
|
103
104
|
* @memberof ProjectObject
|
|
104
105
|
*/
|
|
105
106
|
googleLoginEnabled?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof ProjectObject
|
|
111
|
+
*/
|
|
112
|
+
passwordLoginEnabled?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {PasswordConfig}
|
|
116
|
+
* @memberof ProjectObject
|
|
117
|
+
*/
|
|
118
|
+
passwordConfig?: PasswordConfig;
|
|
106
119
|
/**
|
|
107
120
|
*
|
|
108
121
|
* @type {boolean}
|
|
@@ -21,6 +21,7 @@ exports.ProjectObjectToJSONTyped = ProjectObjectToJSONTyped;
|
|
|
21
21
|
var NotificationTemplatesConfig_1 = require("./NotificationTemplatesConfig");
|
|
22
22
|
var WebAppObject_1 = require("./WebAppObject");
|
|
23
23
|
var ServiceObject_1 = require("./ServiceObject");
|
|
24
|
+
var PasswordConfig_1 = require("./PasswordConfig");
|
|
24
25
|
var PaymentTriggerConfig_1 = require("./PaymentTriggerConfig");
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the ProjectObject interface.
|
|
@@ -62,6 +63,8 @@ function ProjectObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
63
|
'phoneLoginEnabled': json['phoneLoginEnabled'] == null ? undefined : json['phoneLoginEnabled'],
|
|
63
64
|
'emailLoginEnabled': json['emailLoginEnabled'] == null ? undefined : json['emailLoginEnabled'],
|
|
64
65
|
'googleLoginEnabled': json['googleLoginEnabled'] == null ? undefined : json['googleLoginEnabled'],
|
|
66
|
+
'passwordLoginEnabled': json['passwordLoginEnabled'] == null ? undefined : json['passwordLoginEnabled'],
|
|
67
|
+
'passwordConfig': json['passwordConfig'] == null ? undefined : (0, PasswordConfig_1.PasswordConfigFromJSON)(json['passwordConfig']),
|
|
65
68
|
'sandboxMode': json['sandboxMode'] == null ? undefined : json['sandboxMode'],
|
|
66
69
|
'notificationTemplatesConfig': json['notificationTemplatesConfig'] == null ? undefined : (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigFromJSON)(json['notificationTemplatesConfig']),
|
|
67
70
|
'paymentTriggers': json['paymentTriggers'] == null ? undefined : (json['paymentTriggers'].map(PaymentTriggerConfig_1.PaymentTriggerConfigFromJSON)),
|
|
@@ -91,6 +94,8 @@ function ProjectObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
91
94
|
'phoneLoginEnabled': value['phoneLoginEnabled'],
|
|
92
95
|
'emailLoginEnabled': value['emailLoginEnabled'],
|
|
93
96
|
'googleLoginEnabled': value['googleLoginEnabled'],
|
|
97
|
+
'passwordLoginEnabled': value['passwordLoginEnabled'],
|
|
98
|
+
'passwordConfig': (0, PasswordConfig_1.PasswordConfigToJSON)(value['passwordConfig']),
|
|
94
99
|
'sandboxMode': value['sandboxMode'],
|
|
95
100
|
'notificationTemplatesConfig': (0, NotificationTemplatesConfig_1.NotificationTemplatesConfigToJSON)(value['notificationTemplatesConfig']),
|
|
96
101
|
'paymentTriggers': value['paymentTriggers'] == null ? undefined : (value['paymentTriggers'].map(PaymentTriggerConfig_1.PaymentTriggerConfigToJSON)),
|
|
@@ -47,6 +47,12 @@ export interface RegisterUserRequest {
|
|
|
47
47
|
* @memberof RegisterUserRequest
|
|
48
48
|
*/
|
|
49
49
|
recaptchaToken?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof RegisterUserRequest
|
|
54
|
+
*/
|
|
55
|
+
password?: string;
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
52
58
|
* Check if a given object implements the RegisterUserRequest interface.
|
|
@@ -37,6 +37,7 @@ function RegisterUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
38
38
|
'customMetadataAttributes': json['customMetadataAttributes'] == null ? undefined : json['customMetadataAttributes'],
|
|
39
39
|
'recaptchaToken': json['recaptchaToken'] == null ? undefined : json['recaptchaToken'],
|
|
40
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
function RegisterUserRequestToJSON(json) {
|
|
@@ -53,5 +54,6 @@ function RegisterUserRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
54
|
'phoneNumber': value['phoneNumber'],
|
|
54
55
|
'customMetadataAttributes': value['customMetadataAttributes'],
|
|
55
56
|
'recaptchaToken': value['recaptchaToken'],
|
|
57
|
+
'password': value['password'],
|
|
56
58
|
};
|
|
57
59
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 RequestPasswordResetRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RequestPasswordResetRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequestPasswordResetRequest
|
|
22
|
+
*/
|
|
23
|
+
contactValue: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RequestPasswordResetRequest
|
|
28
|
+
*/
|
|
29
|
+
recaptchaToken?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RequestPasswordResetRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRequestPasswordResetRequest(value: object): value is RequestPasswordResetRequest;
|
|
35
|
+
export declare function RequestPasswordResetRequestFromJSON(json: any): RequestPasswordResetRequest;
|
|
36
|
+
export declare function RequestPasswordResetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestPasswordResetRequest;
|
|
37
|
+
export declare function RequestPasswordResetRequestToJSON(json: any): RequestPasswordResetRequest;
|
|
38
|
+
export declare function RequestPasswordResetRequestToJSONTyped(value?: RequestPasswordResetRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.instanceOfRequestPasswordResetRequest = instanceOfRequestPasswordResetRequest;
|
|
17
|
+
exports.RequestPasswordResetRequestFromJSON = RequestPasswordResetRequestFromJSON;
|
|
18
|
+
exports.RequestPasswordResetRequestFromJSONTyped = RequestPasswordResetRequestFromJSONTyped;
|
|
19
|
+
exports.RequestPasswordResetRequestToJSON = RequestPasswordResetRequestToJSON;
|
|
20
|
+
exports.RequestPasswordResetRequestToJSONTyped = RequestPasswordResetRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RequestPasswordResetRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRequestPasswordResetRequest(value) {
|
|
25
|
+
if (!('contactValue' in value) || value['contactValue'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RequestPasswordResetRequestFromJSON(json) {
|
|
30
|
+
return RequestPasswordResetRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RequestPasswordResetRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'contactValue': json['contactValue'],
|
|
38
|
+
'recaptchaToken': json['recaptchaToken'] == null ? undefined : json['recaptchaToken'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function RequestPasswordResetRequestToJSON(json) {
|
|
42
|
+
return RequestPasswordResetRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function RequestPasswordResetRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'contactValue': value['contactValue'],
|
|
51
|
+
'recaptchaToken': value['recaptchaToken'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -9,37 +9,18 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { UserFilter } from './UserFilter';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
16
15
|
* @interface SearchUsersRequest
|
|
17
16
|
*/
|
|
18
17
|
export interface SearchUsersRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<UserFilter>}
|
|
22
|
-
* @memberof SearchUsersRequest
|
|
23
|
-
*/
|
|
24
|
-
filters?: Array<UserFilter>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {Date}
|
|
28
|
-
* @memberof SearchUsersRequest
|
|
29
|
-
*/
|
|
30
|
-
minTime?: Date;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {Date}
|
|
34
|
-
* @memberof SearchUsersRequest
|
|
35
|
-
*/
|
|
36
|
-
maxTime?: Date;
|
|
37
18
|
/**
|
|
38
19
|
*
|
|
39
20
|
* @type {string}
|
|
40
21
|
* @memberof SearchUsersRequest
|
|
41
22
|
*/
|
|
42
|
-
|
|
23
|
+
q: string;
|
|
43
24
|
}
|
|
44
25
|
/**
|
|
45
26
|
* Check if a given object implements the SearchUsersRequest interface.
|
|
@@ -18,11 +18,12 @@ exports.SearchUsersRequestFromJSON = SearchUsersRequestFromJSON;
|
|
|
18
18
|
exports.SearchUsersRequestFromJSONTyped = SearchUsersRequestFromJSONTyped;
|
|
19
19
|
exports.SearchUsersRequestToJSON = SearchUsersRequestToJSON;
|
|
20
20
|
exports.SearchUsersRequestToJSONTyped = SearchUsersRequestToJSONTyped;
|
|
21
|
-
var UserFilter_1 = require("./UserFilter");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the SearchUsersRequest interface.
|
|
24
23
|
*/
|
|
25
24
|
function instanceOfSearchUsersRequest(value) {
|
|
25
|
+
if (!('q' in value) || value['q'] === undefined)
|
|
26
|
+
return false;
|
|
26
27
|
return true;
|
|
27
28
|
}
|
|
28
29
|
function SearchUsersRequestFromJSON(json) {
|
|
@@ -33,10 +34,7 @@ function SearchUsersRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
return json;
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
36
|
-
'
|
|
37
|
-
'minTime': json['minTime'] == null ? undefined : (new Date(json['minTime'])),
|
|
38
|
-
'maxTime': json['maxTime'] == null ? undefined : (new Date(json['maxTime'])),
|
|
39
|
-
'nextToken': json['nextToken'] == null ? undefined : json['nextToken'],
|
|
37
|
+
'q': json['q'],
|
|
40
38
|
};
|
|
41
39
|
}
|
|
42
40
|
function SearchUsersRequestToJSON(json) {
|
|
@@ -48,9 +46,6 @@ function SearchUsersRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
48
46
|
return value;
|
|
49
47
|
}
|
|
50
48
|
return {
|
|
51
|
-
'
|
|
52
|
-
'minTime': value['minTime'] == null ? value['minTime'] : value['minTime'].toISOString(),
|
|
53
|
-
'maxTime': value['maxTime'] == null ? value['maxTime'] : value['maxTime'].toISOString(),
|
|
54
|
-
'nextToken': value['nextToken'],
|
|
49
|
+
'q': value['q'],
|
|
55
50
|
};
|
|
56
51
|
}
|
|
@@ -99,6 +99,24 @@ export interface UpdateNotificationTemplatesRequest {
|
|
|
99
99
|
* @memberof UpdateNotificationTemplatesRequest
|
|
100
100
|
*/
|
|
101
101
|
inviteEmailHtmlBody?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
106
|
+
*/
|
|
107
|
+
passwordResetEmailSubject?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
112
|
+
*/
|
|
113
|
+
passwordResetEmailHtmlBody?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof UpdateNotificationTemplatesRequest
|
|
118
|
+
*/
|
|
119
|
+
passwordResetSmsBody?: string;
|
|
102
120
|
}
|
|
103
121
|
/**
|
|
104
122
|
* Check if a given object implements the UpdateNotificationTemplatesRequest interface.
|
|
@@ -46,6 +46,9 @@ function UpdateNotificationTemplatesRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
46
46
|
'loginOtpSmsBody': json['loginOtpSmsBody'] == null ? undefined : json['loginOtpSmsBody'],
|
|
47
47
|
'inviteEmailSubject': json['inviteEmailSubject'] == null ? undefined : json['inviteEmailSubject'],
|
|
48
48
|
'inviteEmailHtmlBody': json['inviteEmailHtmlBody'] == null ? undefined : json['inviteEmailHtmlBody'],
|
|
49
|
+
'passwordResetEmailSubject': json['passwordResetEmailSubject'] == null ? undefined : json['passwordResetEmailSubject'],
|
|
50
|
+
'passwordResetEmailHtmlBody': json['passwordResetEmailHtmlBody'] == null ? undefined : json['passwordResetEmailHtmlBody'],
|
|
51
|
+
'passwordResetSmsBody': json['passwordResetSmsBody'] == null ? undefined : json['passwordResetSmsBody'],
|
|
49
52
|
};
|
|
50
53
|
}
|
|
51
54
|
function UpdateNotificationTemplatesRequestToJSON(json) {
|
|
@@ -71,5 +74,8 @@ function UpdateNotificationTemplatesRequestToJSONTyped(value, ignoreDiscriminato
|
|
|
71
74
|
'loginOtpSmsBody': value['loginOtpSmsBody'],
|
|
72
75
|
'inviteEmailSubject': value['inviteEmailSubject'],
|
|
73
76
|
'inviteEmailHtmlBody': value['inviteEmailHtmlBody'],
|
|
77
|
+
'passwordResetEmailSubject': value['passwordResetEmailSubject'],
|
|
78
|
+
'passwordResetEmailHtmlBody': value['passwordResetEmailHtmlBody'],
|
|
79
|
+
'passwordResetSmsBody': value['passwordResetSmsBody'],
|
|
74
80
|
};
|
|
75
81
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { PasswordConfig } from './PasswordConfig';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,18 @@ export interface UpdateProjectRequest {
|
|
|
45
46
|
* @memberof UpdateProjectRequest
|
|
46
47
|
*/
|
|
47
48
|
googleLoginEnabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof UpdateProjectRequest
|
|
53
|
+
*/
|
|
54
|
+
passwordLoginEnabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {PasswordConfig}
|
|
58
|
+
* @memberof UpdateProjectRequest
|
|
59
|
+
*/
|
|
60
|
+
passwordConfig?: PasswordConfig;
|
|
48
61
|
}
|
|
49
62
|
/**
|
|
50
63
|
* Check if a given object implements the UpdateProjectRequest interface.
|