@huyooo/ui 0.4.66 → 0.4.68

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.
@@ -116,3 +116,4 @@ export interface PasswordVerifyParams {
116
116
  email: string;
117
117
  password: string;
118
118
  }
119
+ export type { UserProfileType, UserProfileApiResponse, UserCreateType, UserResponseType, PermissionInfo, RoleInfo, OperatorInfo, UserStatusType, BaseEntity, AuditableEntity, UserBaseInfo, UserVerificationInfo, GitHubInfo } from './user';
@@ -0,0 +1,114 @@
1
+ export type UserStatusType = 'inactive' | 'normal';
2
+ export interface BaseEntity {
3
+ id: string;
4
+ createAt: string;
5
+ updateAt: string;
6
+ }
7
+ export interface AuditableEntity extends BaseEntity {
8
+ creator: string | null;
9
+ updator: string | null;
10
+ creatorId: string;
11
+ updatorId: string;
12
+ }
13
+ export interface PermissionInfo {
14
+ id: string;
15
+ name: string;
16
+ permissionKey: string;
17
+ description: string;
18
+ }
19
+ export interface RoleInfo {
20
+ id: string;
21
+ name: string;
22
+ roleKey: string;
23
+ description: string;
24
+ }
25
+ export interface OperatorInfo {
26
+ id: string;
27
+ nickname: string;
28
+ email: string;
29
+ avatar?: string;
30
+ }
31
+ export interface UserBaseInfo {
32
+ nickname: string;
33
+ description: string;
34
+ email: string;
35
+ phone: string;
36
+ avatar: string;
37
+ avatarUrl: string;
38
+ status: UserStatusType;
39
+ }
40
+ export interface UserVerificationInfo {
41
+ email: {
42
+ isVerified: boolean;
43
+ verificationToken: string;
44
+ createAt: string | null;
45
+ };
46
+ phone: {
47
+ isVerified: boolean;
48
+ verificationToken: string;
49
+ createAt: string | null;
50
+ };
51
+ }
52
+ export interface GitHubInfo {
53
+ login: string;
54
+ id: number;
55
+ node_id: string;
56
+ avatar_url: string;
57
+ gravatar_id: string;
58
+ url: string;
59
+ html_url: string;
60
+ followers_url: string;
61
+ following_url: string;
62
+ gists_url: string;
63
+ starred_url: string;
64
+ subscriptions_url: string;
65
+ organizations_url: string;
66
+ repos_url: string;
67
+ events_url: string;
68
+ received_events_url: string;
69
+ type: string;
70
+ site_admin: boolean;
71
+ name: string;
72
+ company: string | null;
73
+ blog: string;
74
+ location: string;
75
+ email: string;
76
+ hireable: boolean;
77
+ bio: string;
78
+ twitter_username: string | null;
79
+ notification_email: string;
80
+ public_repos: number;
81
+ public_gists: number;
82
+ followers: number;
83
+ following: number;
84
+ created_at: string;
85
+ updated_at: string;
86
+ }
87
+ export interface UserCreateType extends UserBaseInfo {
88
+ password: string;
89
+ organizations: string[];
90
+ }
91
+ export interface UserResponseType extends UserBaseInfo {
92
+ userId: string;
93
+ organizations: string[];
94
+ }
95
+ export interface UserProfileType extends AuditableEntity, UserBaseInfo {
96
+ appId: string;
97
+ roleId: string | null;
98
+ verified: UserVerificationInfo;
99
+ github: GitHubInfo | null;
100
+ wechat: any;
101
+ google: any;
102
+ microsoft: any;
103
+ organizations: string[];
104
+ referrerId: string;
105
+ role: RoleInfo | null;
106
+ permissions: PermissionInfo[];
107
+ creatorInfo?: OperatorInfo;
108
+ updatorInfo?: OperatorInfo;
109
+ }
110
+ export interface UserProfileApiResponse {
111
+ code: number;
112
+ message: string;
113
+ data: UserProfileType;
114
+ }
package/dist/upload.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-DTijAu7h.js";
2
- import { u as s } from "./useUploadCos-D34wTxEi.js";
1
+ import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js";
2
+ import { u as s } from "./useUploadCos-B5P_PDcy.js";
3
3
  export {
4
4
  p as Upload,
5
5
  s as useUploadCos