@hapl/api-queries 1.0.1 → 1.0.2--canary.232.6242151.0
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.
|
@@ -109,7 +109,7 @@ export declare type UserEducation = {
|
|
|
109
109
|
speciality?: string;
|
|
110
110
|
imageIds: number[];
|
|
111
111
|
};
|
|
112
|
-
|
|
112
|
+
declare type BaseUser = {
|
|
113
113
|
banned: boolean;
|
|
114
114
|
cases: Array<Partial<UserCase> & {
|
|
115
115
|
id: number;
|
|
@@ -134,12 +134,6 @@ export declare type User = {
|
|
|
134
134
|
}>;
|
|
135
135
|
realtyIds: number[];
|
|
136
136
|
roles: UserRole[];
|
|
137
|
-
personalAssistants?: Array<Partial<User> & {
|
|
138
|
-
id: number;
|
|
139
|
-
}>;
|
|
140
|
-
experts?: Array<Partial<User> & {
|
|
141
|
-
id: number;
|
|
142
|
-
}>;
|
|
143
137
|
bornAt?: string;
|
|
144
138
|
comment?: string;
|
|
145
139
|
defaultVirtualPhone?: string;
|
|
@@ -167,16 +161,21 @@ export declare type User = {
|
|
|
167
161
|
firstName?: string;
|
|
168
162
|
fullNameTranslit?: string;
|
|
169
163
|
gender?: UserGender;
|
|
170
|
-
groupLead?: User;
|
|
171
164
|
hiredAt?: string;
|
|
172
165
|
lastName?: string;
|
|
173
166
|
level?: UserLevel;
|
|
174
|
-
mentor?: User;
|
|
175
167
|
office?: UserOffice;
|
|
176
168
|
patronymic?: string;
|
|
177
|
-
supervisor?: User;
|
|
178
169
|
textReviews?: ExpertReview[];
|
|
179
170
|
transliteratedFullName?: string;
|
|
180
171
|
updatedAt?: string;
|
|
181
172
|
videoReviews?: ExpertReview[];
|
|
182
173
|
};
|
|
174
|
+
export declare type User = BaseUser & {
|
|
175
|
+
personalAssistants?: Array<Partial<BaseUser> & Required<Pick<BaseUser, 'id'>>>;
|
|
176
|
+
experts?: Array<Partial<BaseUser> & Required<Pick<BaseUser, 'id'>>>;
|
|
177
|
+
mentor?: BaseUser;
|
|
178
|
+
supervisor?: BaseUser;
|
|
179
|
+
groupLead?: BaseUser;
|
|
180
|
+
};
|
|
181
|
+
export {};
|
package/package.json
CHANGED
|
@@ -121,7 +121,8 @@ export type UserEducation = {
|
|
|
121
121
|
imageIds: number[];
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
// этот тип вынесен для того чтобы избежать проблемы бесконечной вложенности
|
|
125
|
+
type BaseUser = {
|
|
125
126
|
banned: boolean;
|
|
126
127
|
cases: Array<Partial<UserCase> & { id: number }>;
|
|
127
128
|
contactInfo: Array<Partial<Contact> & { id: number }>;
|
|
@@ -139,8 +140,6 @@ export type User = {
|
|
|
139
140
|
realtyIds: number[];
|
|
140
141
|
roles: UserRole[];
|
|
141
142
|
|
|
142
|
-
personalAssistants?: Array<Partial<User> & { id: number }>;
|
|
143
|
-
experts?: Array<Partial<User> & { id: number }>;
|
|
144
143
|
bornAt?: string;
|
|
145
144
|
comment?: string;
|
|
146
145
|
defaultVirtualPhone?: string;
|
|
@@ -163,16 +162,21 @@ export type User = {
|
|
|
163
162
|
firstName?: string;
|
|
164
163
|
fullNameTranslit?: string;
|
|
165
164
|
gender?: UserGender;
|
|
166
|
-
groupLead?: User;
|
|
167
165
|
hiredAt?: string;
|
|
168
166
|
lastName?: string;
|
|
169
167
|
level?: UserLevel;
|
|
170
|
-
mentor?: User;
|
|
171
168
|
office?: UserOffice;
|
|
172
169
|
patronymic?: string;
|
|
173
|
-
supervisor?: User;
|
|
174
170
|
textReviews?: ExpertReview[];
|
|
175
171
|
transliteratedFullName?: string;
|
|
176
172
|
updatedAt?: string;
|
|
177
173
|
videoReviews?: ExpertReview[];
|
|
178
174
|
};
|
|
175
|
+
|
|
176
|
+
export type User = BaseUser & {
|
|
177
|
+
personalAssistants?: Array<Partial<BaseUser> & Required<Pick<BaseUser, 'id'>>>;
|
|
178
|
+
experts?: Array<Partial<BaseUser> & Required<Pick<BaseUser, 'id'>>>;
|
|
179
|
+
mentor?: BaseUser;
|
|
180
|
+
supervisor?: BaseUser;
|
|
181
|
+
groupLead?: BaseUser;
|
|
182
|
+
};
|