@faable/auth-sdk 1.0.7 → 1.0.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/FaableAuthApi.d.ts +4 -4
- package/dist/FaableAuthApi.js +2 -2
- package/dist/paginator.js +1 -1
- package/package.json +1 -1
package/dist/FaableAuthApi.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class FaableAuthApi {
|
|
|
12
12
|
}>;
|
|
13
13
|
listUsers(params?: {
|
|
14
14
|
email?: string;
|
|
15
|
-
}):
|
|
15
|
+
}): {
|
|
16
16
|
all: () => Promise<{
|
|
17
17
|
id: string;
|
|
18
18
|
name?: string;
|
|
@@ -41,7 +41,7 @@ export declare class FaableAuthApi {
|
|
|
41
41
|
createdAt: string;
|
|
42
42
|
updatedAt?: string;
|
|
43
43
|
}[]>;
|
|
44
|
-
}
|
|
44
|
+
};
|
|
45
45
|
getUser(user_id: any): Promise<{
|
|
46
46
|
id: string;
|
|
47
47
|
name?: string;
|
|
@@ -85,7 +85,7 @@ export declare class FaableAuthApi {
|
|
|
85
85
|
}>;
|
|
86
86
|
listTeams(params?: {
|
|
87
87
|
user_id?: string;
|
|
88
|
-
}):
|
|
88
|
+
}): {
|
|
89
89
|
all: () => Promise<{
|
|
90
90
|
id: string;
|
|
91
91
|
name: string;
|
|
@@ -99,6 +99,6 @@ export declare class FaableAuthApi {
|
|
|
99
99
|
createdAt: string;
|
|
100
100
|
updatedAt?: string;
|
|
101
101
|
}[]>;
|
|
102
|
-
}
|
|
102
|
+
};
|
|
103
103
|
isUserMemberOfTeam(user_id: string, team_id: string): Promise<boolean>;
|
|
104
104
|
}
|
package/dist/FaableAuthApi.js
CHANGED
|
@@ -35,7 +35,7 @@ class FaableAuthApi {
|
|
|
35
35
|
return (await handleError(this.client.get(`/user/${user_id}`)))
|
|
36
36
|
.user_metadata;
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
listUsers(params = {}) {
|
|
39
39
|
return this.paginator.paginate({ url: "/user", params });
|
|
40
40
|
}
|
|
41
41
|
async getUser(user_id) {
|
|
@@ -44,7 +44,7 @@ class FaableAuthApi {
|
|
|
44
44
|
async getTeam(team_id) {
|
|
45
45
|
return await handleError(this.client.get(`/team/${team_id}`));
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
listTeams(params) {
|
|
48
48
|
return this.paginator.paginate({ url: "/user", params });
|
|
49
49
|
}
|
|
50
50
|
async isUserMemberOfTeam(user_id, team_id) {
|
package/dist/paginator.js
CHANGED