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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",