bruce-models 0.1.7 → 0.1.9
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/bruce-models.es5.js +359 -13
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +353 -12
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account.js +213 -0
- package/dist/lib/account/account.js.map +1 -0
- package/dist/lib/bruce-models.js +1 -0
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +6 -6
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/user/user.js +179 -6
- package/dist/lib/user/user.js.map +1 -1
- package/dist/types/account/account.d.ts +46 -0
- package/dist/types/bruce-models.d.ts +1 -0
- package/dist/types/project/project-view-bookmark.d.ts +1 -1
- package/dist/types/user/user.d.ts +41 -0
- package/package.json +1 -1
|
@@ -34,9 +34,50 @@ export declare namespace User {
|
|
|
34
34
|
}
|
|
35
35
|
function Get(api: IdmApi, id: string, accountId: string): Promise<IUser>;
|
|
36
36
|
function Update(api: IdmApi, data: IUser): Promise<IUser>;
|
|
37
|
+
function GetUsernameAvailable(api: IdmApi, username: string): Promise<boolean>;
|
|
37
38
|
namespace LoginUser {
|
|
38
39
|
function GetListCacheKey(accountId: string): string;
|
|
39
40
|
function GetList(api: IdmApi, accountId: string, exclusive?: boolean): Promise<IUser[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Sends a signup email to the specified email address.
|
|
43
|
+
* @param api
|
|
44
|
+
* @param email
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
47
|
+
function Signup(api: IdmApi, email: string): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Sends a new signup email using a previous one's expired code.
|
|
50
|
+
* @param api
|
|
51
|
+
* @param expiredCode
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
function SignupResend(api: IdmApi, expiredCode: string): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Completes signup using user data and a signup code.
|
|
57
|
+
* @param api
|
|
58
|
+
* @param accountId
|
|
59
|
+
* @param code
|
|
60
|
+
* @param data
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
function SignupComplete(api: IdmApi, accountId: string, code: string, data: IUser): Promise<IUser>;
|
|
64
|
+
/**
|
|
65
|
+
* Sends a password reset email to the specified email address.
|
|
66
|
+
* @param api
|
|
67
|
+
* @param accountId
|
|
68
|
+
* @param email
|
|
69
|
+
* @returns user id associated with provided email.
|
|
70
|
+
*/
|
|
71
|
+
function ForgotPassword(api: IdmApi, accountId: string, email: string): Promise<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Completes password reset using a password reset code and new password.
|
|
74
|
+
* @param api
|
|
75
|
+
* @param code
|
|
76
|
+
* @param userId
|
|
77
|
+
* @param password
|
|
78
|
+
* @returns
|
|
79
|
+
*/
|
|
80
|
+
function ForgotPasswordComplete(api: IdmApi, code: string, userId: string, password: string): Promise<IUser>;
|
|
40
81
|
}
|
|
41
82
|
namespace AccessToken {
|
|
42
83
|
function GetListCacheKey(accountId: string): string;
|