|
29 | 29 |
|
30 | 30 |
|
31 | 31 | def get_users_oldest_first( |
| 32 | + tenant_id: str, |
32 | 33 | limit: Union[int, None] = None, |
33 | 34 | pagination_token: Union[str, None] = None, |
34 | 35 | include_recipe_ids: Union[None, List[str]] = None, |
35 | 36 | query: Union[None, Dict[str, str]] = None, |
36 | 37 | ) -> UsersResponse: |
37 | 38 | return sync( |
38 | 39 | Supertokens.get_instance().get_users( |
39 | | - "public", "ASC", limit, pagination_token, include_recipe_ids, query |
| 40 | + tenant_id, "ASC", limit, pagination_token, include_recipe_ids, query |
40 | 41 | ) |
41 | 42 | ) |
42 | 43 |
|
43 | 44 |
|
44 | 45 | def get_users_newest_first( |
| 46 | + tenant_id: str, |
45 | 47 | limit: Union[int, None] = None, |
46 | 48 | pagination_token: Union[str, None] = None, |
47 | 49 | include_recipe_ids: Union[None, List[str]] = None, |
48 | 50 | query: Union[None, Dict[str, str]] = None, |
49 | 51 | ) -> UsersResponse: |
50 | 52 | return sync( |
51 | 53 | Supertokens.get_instance().get_users( |
52 | | - "public", "DESC", limit, pagination_token, include_recipe_ids, query |
| 54 | + tenant_id, "DESC", limit, pagination_token, include_recipe_ids, query |
53 | 55 | ) |
54 | 56 | ) |
55 | 57 |
|
56 | 58 |
|
57 | | -def get_user_count(include_recipe_ids: Union[None, List[str]] = None) -> int: |
58 | | - return sync(Supertokens.get_instance().get_user_count(include_recipe_ids)) |
| 59 | +def get_user_count( |
| 60 | + include_recipe_ids: Union[None, List[str]] = None, |
| 61 | + tenant_id: Optional[str] = None, |
| 62 | +) -> int: |
| 63 | + return sync( |
| 64 | + Supertokens.get_instance().get_user_count(include_recipe_ids, tenant_id) |
| 65 | + ) |
59 | 66 |
|
60 | 67 |
|
61 | 68 | def delete_user(user_id: str) -> None: |
|
0 commit comments