@proton/wrap-constants 0.2.54 → 0.2.56

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.54",
8
+ "version": "0.2.56",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
@@ -44,5 +44,5 @@
44
44
  "resolutions": {
45
45
  "typescript": "4.5"
46
46
  },
47
- "gitHead": "34749a9b04275a1d2056323aeb540356acdc80f9"
47
+ "gitHead": "d867d6648cbff2a018bc77d3d21bb64789458151"
48
48
  }
@@ -247,6 +247,27 @@ export const getReferralsResponseParser = z.object({
247
247
  })
248
248
  export type GetReferralsResponseParser = z.infer<typeof getReferralsResponseParser>
249
249
 
250
+ /**
251
+ * Leaderboard
252
+ */
253
+ export const leaderboardParser = z.object({
254
+ user: z.string(),
255
+ total: z.number()
256
+ })
257
+ export type Leaderboard = z.infer<typeof leaderboardParser>
258
+
259
+ export const getLeaderboardParser = z.object({
260
+ market_ids: z.array(z.string()),
261
+ from: z.string(),
262
+ to: z.string(),
263
+ })
264
+ export type GetLeaderboard = z.infer<typeof getLeaderboardParser>
265
+
266
+ export const getLeaderboardResponseParser = z.object({
267
+ sync: z.number(),
268
+ data: z.array(leaderboardParser)
269
+ })
270
+ export type GetLeaderboardResponseParser = z.infer<typeof getLeaderboardResponseParser>
250
271
 
251
272
  /**
252
273
  * Basic Types