@edgenets/utils 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/types/user.d.ts +4 -0
- package/dist/types/user.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types/user.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export type UserRole = "admin" | "member" | "guest";
|
2
2
|
export type UserStatus = "active" | "inactive" | "banned";
|
3
3
|
export type WalletType = "ton" | "evm" | "btc";
|
4
|
+
export type BadgeType = "season" | "special";
|
4
5
|
export type InviterType = "user" | "channel";
|
5
6
|
export type PointTransactionType = "earn" | "spend" | "expire";
|
6
7
|
export type PointTransactionReason = "purchase" | "bonus" | "refund" | "manual" | "other";
|
@@ -40,6 +41,7 @@ export interface Wallet {
|
|
40
41
|
export interface Badge {
|
41
42
|
id: string;
|
42
43
|
name: string;
|
44
|
+
type: BadgeType;
|
43
45
|
awardedAt: number;
|
44
46
|
level?: number;
|
45
47
|
metadata?: Record<string, unknown>;
|
@@ -50,6 +52,8 @@ export interface User {
|
|
50
52
|
email: string;
|
51
53
|
phone?: string;
|
52
54
|
avatarUrl?: string;
|
55
|
+
displayName?: string;
|
56
|
+
emailVerified?: boolean;
|
53
57
|
role: UserRole;
|
54
58
|
status: UserStatus;
|
55
59
|
points?: number;
|
package/dist/types/user.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAE7C,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CA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