@edgenets/utils 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/types/user.d.ts +30 -9
- package/dist/types/user.d.ts.map +1 -1
- package/dist/types/user.js +6 -1
- package/dist/types/user.js.map +1 -1
- package/package.json +1 -1
package/dist/types/user.d.ts
CHANGED
@@ -1,18 +1,10 @@
|
|
1
|
-
declare interface TelegramUser {
|
2
|
-
telegram_uid: number;
|
3
|
-
username?: string;
|
4
|
-
firstName?: string;
|
5
|
-
lastName?: string;
|
6
|
-
languageCode?: string;
|
7
|
-
isPremium?: boolean;
|
8
|
-
}
|
9
1
|
interface FirebaseInfo {
|
10
2
|
identities: {
|
11
3
|
email: string[];
|
12
4
|
};
|
13
5
|
sign_in_provider: string;
|
14
6
|
}
|
15
|
-
export interface User
|
7
|
+
export interface User {
|
16
8
|
id: string;
|
17
9
|
name: string;
|
18
10
|
email: string;
|
@@ -25,6 +17,35 @@ export interface User extends TelegramUser {
|
|
25
17
|
exp: number;
|
26
18
|
authTime: number;
|
27
19
|
firebase: FirebaseInfo;
|
20
|
+
telegram_uid: number;
|
21
|
+
username?: string;
|
22
|
+
firstName?: string;
|
23
|
+
lastName?: string;
|
24
|
+
languageCode?: string;
|
25
|
+
isPremium?: boolean;
|
26
|
+
}
|
27
|
+
export interface UserProfile {
|
28
|
+
id: string;
|
29
|
+
telegram_uid: number;
|
30
|
+
username?: string;
|
31
|
+
firstName?: string;
|
32
|
+
lastName?: string;
|
33
|
+
languageCode?: string;
|
34
|
+
isPremium?: boolean;
|
35
|
+
email?: string;
|
36
|
+
emailVerified?: boolean;
|
37
|
+
createdAt?: Date;
|
38
|
+
updatedAt?: Date;
|
39
|
+
metadata?: Record<string, unknown>;
|
40
|
+
}
|
41
|
+
export declare enum UserRole {
|
42
|
+
Admin = "admin",
|
43
|
+
User = "user",
|
44
|
+
Guest = "guest"
|
45
|
+
}
|
46
|
+
export interface UserCredentials {
|
47
|
+
username: string;
|
48
|
+
password: string;
|
28
49
|
}
|
29
50
|
export {};
|
30
51
|
//# sourceMappingURL=user.d.ts.map
|
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":"
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACpB,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC;IACF,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAGD,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,YAAY,CAAC;IAEvB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/types/user.js
CHANGED
package/dist/types/user.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"AAiDA,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,2BAAe,CAAA;AACjB,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB"}
|