rhythia-api 171.0.0 → 172.0.0

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.
@@ -28,6 +28,13 @@ export const Schema = {
28
28
  skill_points: z.number().nullable(),
29
29
  spin_skill_points: z.number().nullable(),
30
30
  total_score: z.number().nullable(),
31
+ clans: z
32
+ .object({
33
+ id: z.number(),
34
+ acronym: z.string(),
35
+ })
36
+ .optional()
37
+ .nullable(),
31
38
  })
32
39
  )
33
40
  .optional(),
@@ -92,7 +99,10 @@ export async function getLeaderboard(
92
99
  .select("ban", { count: "exact", head: true })
93
100
  .neq("ban", "excluded");
94
101
 
95
- let query = supabase.from("profiles").select("*").neq("ban", "excluded");
102
+ let query = supabase
103
+ .from("profiles")
104
+ .select("*,clans:clan(id, acronym)")
105
+ .neq("ban", "excluded");
96
106
 
97
107
  if (flag) {
98
108
  query.eq("flag", flag);
@@ -120,6 +130,7 @@ export async function getLeaderboard(
120
130
  spin_skill_points: user.spin_skill_points,
121
131
  total_score: user.total_score,
122
132
  username: user.username,
133
+ clans: user.clans as any,
123
134
  })),
124
135
  };
125
136
  }
package/index.ts CHANGED
@@ -429,6 +429,13 @@ export const Schema = {
429
429
  skill_points: z.number().nullable(),
430
430
  spin_skill_points: z.number().nullable(),
431
431
  total_score: z.number().nullable(),
432
+ clans: z
433
+ .object({
434
+ id: z.number(),
435
+ acronym: z.string(),
436
+ })
437
+ .optional()
438
+ .nullable(),
432
439
  })
433
440
  )
434
441
  .optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "171.0.0",
3
+ "version": "172.0.0",
4
4
  "main": "index.ts",
5
5
  "author": "online-contributors",
6
6
  "scripts": {
package/types/database.ts CHANGED
@@ -156,6 +156,7 @@ export type Database = {
156
156
  clans: {
157
157
  Row: {
158
158
  acronym: string | null
159
+ allowed_users: Json
159
160
  avatar_url: string | null
160
161
  created_at: string
161
162
  description: string | null
@@ -165,6 +166,7 @@ export type Database = {
165
166
  }
166
167
  Insert: {
167
168
  acronym?: string | null
169
+ allowed_users?: Json
168
170
  avatar_url?: string | null
169
171
  created_at?: string
170
172
  description?: string | null
@@ -174,6 +176,7 @@ export type Database = {
174
176
  }
175
177
  Update: {
176
178
  acronym?: string | null
179
+ allowed_users?: Json
177
180
  avatar_url?: string | null
178
181
  created_at?: string
179
182
  description?: string | null