@metad/contracts 0.0.1
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/README.md +1 -0
- package/analytics/business-area-user.model.d.ts +29 -0
- package/analytics/business-area.d.ts +16 -0
- package/analytics/business-group.d.ts +12 -0
- package/analytics/data-source-type.d.ts +12 -0
- package/analytics/data-source.d.ts +43 -0
- package/analytics/favorite.d.ts +14 -0
- package/analytics/features.d.ts +19 -0
- package/analytics/feed-model.d.ts +13 -0
- package/analytics/index.d.ts +20 -0
- package/analytics/indicator-market.d.ts +4 -0
- package/analytics/indicator.d.ts +31 -0
- package/analytics/insight-model.d.ts +14 -0
- package/analytics/model-query.d.ts +12 -0
- package/analytics/notification-destination.d.ts +10 -0
- package/analytics/role-permissions.d.ts +19 -0
- package/analytics/semantic-model.d.ts +42 -0
- package/analytics/story-point.d.ts +10 -0
- package/analytics/story-widget.d.ts +11 -0
- package/analytics/story.d.ts +18 -0
- package/analytics/subscription.d.ts +38 -0
- package/analytics/user-business-group.model.d.ts +29 -0
- package/analytics/visit.model.d.ts +27 -0
- package/analytics/webSocket.d.ts +40 -0
- package/base-entity.model.d.ts +21 -0
- package/contact.model.d.ts +41 -0
- package/core.model.d.ts +25 -0
- package/country.model.d.ts +5 -0
- package/currency.model.d.ts +579 -0
- package/email-template.model.d.ts +47 -0
- package/email.model.d.ts +36 -0
- package/employee.model.d.ts +128 -0
- package/entity-with-members.model.d.ts +13 -0
- package/feature.model.d.ts +134 -0
- package/file-provider.d.ts +31 -0
- package/help-center-article.model.d.ts +27 -0
- package/help-center.model.d.ts +28 -0
- package/http-status.enum.d.ts +57 -0
- package/import-export.model.d.ts +36 -0
- package/index.cjs +1283 -0
- package/index.d.ts +33 -0
- package/index.js +1272 -0
- package/language.model.d.ts +19 -0
- package/organization-contact.model.d.ts +73 -0
- package/organization-department.model.d.ts +20 -0
- package/organization-language.model.d.ts +18 -0
- package/organization-team-employee-model.d.ts +12 -0
- package/organization-team-model.d.ts +19 -0
- package/organization.model.d.ts +227 -0
- package/package.json +8 -0
- package/role-permission.model.d.ts +63 -0
- package/role.model.d.ts +21 -0
- package/seed.model.d.ts +38 -0
- package/tag-entity.model.d.ts +10 -0
- package/tenant.model.d.ts +24 -0
- package/translation.model.d.ts +20 -0
- package/user-organization.model.d.ts +24 -0
- package/user.model.d.ts +117 -0
- package/visibility.model.d.ts +5 -0
package/user.model.d.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { IRole } from './role.model';
|
|
2
|
+
import { IBasePerTenantEntityModel } from './base-entity.model';
|
|
3
|
+
import { ITag } from './tag-entity.model';
|
|
4
|
+
import { IEmployee } from './employee.model';
|
|
5
|
+
import { IOrganization } from './organization.model';
|
|
6
|
+
export interface IUser extends IBasePerTenantEntityModel {
|
|
7
|
+
thirdPartyId?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
firstName?: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
mobile?: string;
|
|
13
|
+
username?: string;
|
|
14
|
+
role?: IRole;
|
|
15
|
+
roleId?: string;
|
|
16
|
+
hash?: string;
|
|
17
|
+
imageUrl?: string;
|
|
18
|
+
employee?: IEmployee;
|
|
19
|
+
employeeId?: string;
|
|
20
|
+
tags?: ITag[];
|
|
21
|
+
preferredLanguage?: string;
|
|
22
|
+
paymentsId?: string;
|
|
23
|
+
preferredComponentLayout?: string;
|
|
24
|
+
fullName?: string;
|
|
25
|
+
organizations?: IOrganization[];
|
|
26
|
+
isImporting?: boolean;
|
|
27
|
+
sourceId?: string;
|
|
28
|
+
emailVerified?: boolean;
|
|
29
|
+
emailVerification?: IEmailVerification;
|
|
30
|
+
}
|
|
31
|
+
export interface IEmailVerification extends IBasePerTenantEntityModel {
|
|
32
|
+
token: string;
|
|
33
|
+
userId: string;
|
|
34
|
+
user?: IUser;
|
|
35
|
+
validUntil: Date;
|
|
36
|
+
}
|
|
37
|
+
export interface IUserFindInput {
|
|
38
|
+
thirdPartyId?: string;
|
|
39
|
+
firstName?: string;
|
|
40
|
+
lastName?: string;
|
|
41
|
+
email?: string;
|
|
42
|
+
username?: string;
|
|
43
|
+
role?: IRole;
|
|
44
|
+
roleId?: string;
|
|
45
|
+
hash?: string;
|
|
46
|
+
imageUrl?: string;
|
|
47
|
+
tags?: ITag[];
|
|
48
|
+
preferredLanguage?: LanguagesEnum;
|
|
49
|
+
}
|
|
50
|
+
export interface IUserRegistrationInput {
|
|
51
|
+
user: IUser;
|
|
52
|
+
password?: string;
|
|
53
|
+
originalUrl?: string;
|
|
54
|
+
organizationId?: string;
|
|
55
|
+
createdById?: string;
|
|
56
|
+
isImporting?: boolean;
|
|
57
|
+
sourceId?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface IUserLoginInput {
|
|
60
|
+
email: string;
|
|
61
|
+
password: string;
|
|
62
|
+
}
|
|
63
|
+
export interface IAuthResponse {
|
|
64
|
+
user: IUser;
|
|
65
|
+
token: string;
|
|
66
|
+
}
|
|
67
|
+
export interface IUserCreateInput {
|
|
68
|
+
firstName?: string;
|
|
69
|
+
lastName?: string;
|
|
70
|
+
email?: string;
|
|
71
|
+
username?: string;
|
|
72
|
+
role?: IRole;
|
|
73
|
+
roleId?: string;
|
|
74
|
+
hash?: string;
|
|
75
|
+
imageUrl?: string;
|
|
76
|
+
tags?: ITag[];
|
|
77
|
+
preferredLanguage?: LanguagesEnum;
|
|
78
|
+
preferredComponentLayout?: ComponentLayoutStyleEnum;
|
|
79
|
+
}
|
|
80
|
+
export interface IUserUpdateInput {
|
|
81
|
+
firstName?: string;
|
|
82
|
+
lastName?: string;
|
|
83
|
+
email?: string;
|
|
84
|
+
username?: string;
|
|
85
|
+
role?: IRole;
|
|
86
|
+
roleId?: string;
|
|
87
|
+
hash?: string;
|
|
88
|
+
imageUrl?: string;
|
|
89
|
+
tags?: ITag[];
|
|
90
|
+
preferredLanguage?: LanguagesEnum;
|
|
91
|
+
preferredComponentLayout?: ComponentLayoutStyleEnum;
|
|
92
|
+
}
|
|
93
|
+
export declare enum LanguagesEnum {
|
|
94
|
+
CHINESE = "zh",
|
|
95
|
+
ENGLISH = "en",
|
|
96
|
+
BULGARIAN = "bg",
|
|
97
|
+
HEBREW = "he",
|
|
98
|
+
RUSSIAN = "ru"
|
|
99
|
+
}
|
|
100
|
+
export declare enum ComponentLayoutStyleEnum {
|
|
101
|
+
CARDS_GRID = "CARDS_GRID",
|
|
102
|
+
TABLE = "TABLE"
|
|
103
|
+
}
|
|
104
|
+
export declare enum ProviderEnum {
|
|
105
|
+
GOOGLE = "google",
|
|
106
|
+
FACEBOOK = "facebook"
|
|
107
|
+
}
|
|
108
|
+
export interface IUserViewModel extends IBasePerTenantEntityModel {
|
|
109
|
+
fullName: string;
|
|
110
|
+
email: string;
|
|
111
|
+
bonus?: number;
|
|
112
|
+
endWork?: any;
|
|
113
|
+
id: string;
|
|
114
|
+
roleName?: string;
|
|
115
|
+
role?: string;
|
|
116
|
+
tags?: ITag[];
|
|
117
|
+
}
|