vector-shared 1.1.327 → 1.1.329
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/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/common/currency.value.interface.d.ts +2 -2
- package/dist/types/core/advert-source.type.d.ts +1 -1
- package/dist/types/core/apartment-complex-image.type.d.ts +4 -4
- package/dist/types/core/apartment-complex-info.type.d.ts +4 -4
- package/dist/types/core/apartment-complex.type.d.ts +4 -4
- package/dist/types/core/attention-required.type.d.ts +3 -3
- package/dist/types/core/attorney.type.d.ts +1 -1
- package/dist/types/core/attribute-representation.type.d.ts +1 -1
- package/dist/types/core/attribute.type.d.ts +3 -3
- package/dist/types/core/build-company.type.d.ts +3 -3
- package/dist/types/core/call-redirect.type.d.ts +3 -3
- package/dist/types/core/call.type.d.ts +7 -7
- package/dist/types/core/customer-bucket.type.d.ts +2 -2
- package/dist/types/core/customer-call.type.d.ts +2 -2
- package/dist/types/core/customer-phone.type.d.ts +1 -1
- package/dist/types/core/customer-property-duplicate.type.d.ts +3 -3
- package/dist/types/core/customer-property.type.d.ts +22 -22
- package/dist/types/core/customer-request-selection.type.d.ts +1 -1
- package/dist/types/core/customer-request.type.d.ts +4 -4
- package/dist/types/core/customer.type.d.ts +15 -15
- package/dist/types/core/deal-document.type.d.ts +6 -6
- package/dist/types/core/deal-participant.type.d.ts +3 -3
- package/dist/types/core/deal-transaction.type.d.ts +5 -5
- package/dist/types/core/deal-type-percentage.type.d.ts +1 -1
- package/dist/types/core/deal-type.type.d.ts +1 -1
- package/dist/types/core/deal.type.d.ts +35 -35
- package/dist/types/core/duty.type.d.ts +6 -6
- package/dist/types/core/employee-norm.type.d.ts +2 -2
- package/dist/types/core/feedback-file.type.d.ts +4 -4
- package/dist/types/core/feedback-view.type.d.ts +4 -4
- package/dist/types/core/feedback.type.d.ts +6 -6
- package/dist/types/core/flat.type.d.ts +1 -1
- package/dist/types/core/floor.type.d.ts +1 -1
- package/dist/types/core/geo-topzone.type.d.ts +2 -2
- package/dist/types/core/geo.type.d.ts +4 -4
- package/dist/types/core/google-contact.type.d.ts +2 -2
- package/dist/types/core/handling-listening.type.d.ts +4 -4
- package/dist/types/core/handling.type.d.ts +7 -7
- package/dist/types/core/image.type.d.ts +7 -7
- package/dist/types/core/layout.type.d.ts +3 -3
- package/dist/types/core/mismatch-aggregate.type.d.ts +2 -2
- package/dist/types/core/mismatch-decision.type.d.ts +5 -5
- package/dist/types/core/mismatch-reason.type.d.ts +2 -2
- package/dist/types/core/mismatch-report.type.d.ts +6 -6
- package/dist/types/core/notary.type.d.ts +1 -1
- package/dist/types/core/notification-preference.type.d.ts +1 -1
- package/dist/types/core/notification.type.d.ts +2 -2
- package/dist/types/core/office-center.type.d.ts +3 -3
- package/dist/types/core/office.type.d.ts +4 -4
- package/dist/types/core/property-document.type.d.ts +2 -2
- package/dist/types/core/property-image.type.d.ts +4 -4
- package/dist/types/core/property-seo.type.d.ts +3 -3
- package/dist/types/core/queue.type.d.ts +7 -7
- package/dist/types/core/reaction.type.d.ts +1 -1
- package/dist/types/core/realtor-number.type.d.ts +4 -4
- package/dist/types/core/representation.type.d.ts +1 -1
- package/dist/types/core/request-presentation-property.type.d.ts +2 -2
- package/dist/types/core/request-presentation.type.d.ts +2 -2
- package/dist/types/core/request-property.type.d.ts +7 -7
- package/dist/types/core/role-permission-group.type.d.ts +2 -2
- package/dist/types/core/section.type.d.ts +3 -3
- package/dist/types/core/street.type.d.ts +5 -5
- package/dist/types/core/telegram-chat.type.d.ts +4 -4
- package/dist/types/core/telegram-message.type.d.ts +5 -5
- package/dist/types/core/template-comment-reaction.type.d.ts +1 -1
- package/dist/types/core/template-comment.type.d.ts +3 -3
- package/dist/types/core/template-office.type.d.ts +2 -2
- package/dist/types/core/template-participant.type.d.ts +2 -2
- package/dist/types/core/template-reaction.type.d.ts +1 -1
- package/dist/types/core/template-representation.type.d.ts +2 -2
- package/dist/types/core/template-role.type.d.ts +2 -2
- package/dist/types/core/template-view.type.d.ts +2 -2
- package/dist/types/core/template.type.d.ts +3 -3
- package/dist/types/core/topzone.type.d.ts +2 -2
- package/dist/types/core/uploaded-file-entity.type.d.ts +1 -1
- package/dist/types/core/user-action-log.type.d.ts +3 -3
- package/dist/types/core/user-attorney.type.d.ts +8 -8
- package/dist/types/core/user-office.type.d.ts +2 -2
- package/dist/types/core/user-permission.type.d.ts +2 -2
- package/dist/types/core/user-phone.type.d.ts +2 -2
- package/dist/types/core/user-points-change.type.d.ts +6 -6
- package/dist/types/core/user-profile.type.d.ts +24 -24
- package/dist/types/core/user.type.d.ts +1 -1
- package/dist/types/core/x-customer-notification.type.d.ts +1 -1
- package/package.json +1 -1
- package/types/common/currency.value.interface.ts +2 -2
- package/types/core/advert-source.type.ts +1 -1
- package/types/core/apartment-complex-image.type.ts +4 -4
- package/types/core/apartment-complex-info.type.ts +4 -4
- package/types/core/apartment-complex.type.ts +4 -4
- package/types/core/attention-required.type.ts +3 -3
- package/types/core/attorney.type.ts +1 -1
- package/types/core/attribute-representation.type.ts +1 -1
- package/types/core/attribute.type.ts +3 -3
- package/types/core/build-company.type.ts +3 -3
- package/types/core/call-redirect.type.ts +3 -3
- package/types/core/call.type.ts +7 -7
- package/types/core/customer-bucket.type.ts +2 -2
- package/types/core/customer-call.type.ts +2 -2
- package/types/core/customer-phone.type.ts +1 -1
- package/types/core/customer-property-duplicate.type.ts +3 -3
- package/types/core/customer-property.type.ts +22 -22
- package/types/core/customer-request-selection.type.ts +1 -1
- package/types/core/customer-request.type.ts +4 -4
- package/types/core/customer.type.ts +15 -15
- package/types/core/deal-document.type.ts +6 -6
- package/types/core/deal-participant.type.ts +3 -3
- package/types/core/deal-transaction.type.ts +5 -5
- package/types/core/deal-type-percentage.type.ts +1 -1
- package/types/core/deal-type.type.ts +1 -1
- package/types/core/deal.type.ts +35 -36
- package/types/core/duty.type.ts +6 -6
- package/types/core/employee-norm.type.ts +2 -2
- package/types/core/feedback-file.type.ts +4 -4
- package/types/core/feedback-view.type.ts +4 -4
- package/types/core/feedback.type.ts +6 -6
- package/types/core/flat.type.ts +1 -1
- package/types/core/floor.type.ts +1 -1
- package/types/core/geo-topzone.type.ts +2 -2
- package/types/core/geo.type.ts +4 -4
- package/types/core/google-contact.type.ts +2 -2
- package/types/core/handling-listening.type.ts +4 -4
- package/types/core/handling.type.ts +7 -7
- package/types/core/image.type.ts +7 -7
- package/types/core/layout.type.ts +3 -14
- package/types/core/mismatch-aggregate.type.ts +2 -2
- package/types/core/mismatch-decision.type.ts +5 -11
- package/types/core/mismatch-reason.type.ts +2 -2
- package/types/core/mismatch-report.type.ts +6 -12
- package/types/core/notary.type.ts +1 -5
- package/types/core/notification-preference.type.ts +1 -5
- package/types/core/notification.type.ts +2 -8
- package/types/core/office-center.type.ts +3 -13
- package/types/core/office.type.ts +4 -21
- package/types/core/property-document.type.ts +2 -2
- package/types/core/property-image.type.ts +4 -8
- package/types/core/property-seo.type.ts +3 -7
- package/types/core/queue.type.ts +7 -19
- package/types/core/reaction.type.ts +1 -1
- package/types/core/realtor-number.type.ts +4 -8
- package/types/core/representation.type.ts +1 -9
- package/types/core/request-presentation-property.type.ts +2 -2
- package/types/core/request-presentation.type.ts +2 -2
- package/types/core/request-property.type.ts +7 -15
- package/types/core/role-permission-group.type.ts +2 -2
- package/types/core/section.type.ts +3 -8
- package/types/core/street.type.ts +5 -16
- package/types/core/telegram-chat.type.ts +4 -7
- package/types/core/telegram-message.type.ts +5 -10
- package/types/core/template-comment-reaction.type.ts +1 -1
- package/types/core/template-comment.type.ts +3 -11
- package/types/core/template-office.type.ts +2 -2
- package/types/core/template-participant.type.ts +2 -2
- package/types/core/template-reaction.type.ts +1 -1
- package/types/core/template-representation.type.ts +2 -2
- package/types/core/template-role.type.ts +2 -2
- package/types/core/template-view.type.ts +2 -2
- package/types/core/template.type.ts +3 -3
- package/types/core/topzone.type.ts +2 -11
- package/types/core/uploaded-file-entity.type.ts +1 -4
- package/types/core/user-action-log.type.ts +6 -15
- package/types/core/user-attorney.type.ts +8 -8
- package/types/core/user-office.type.ts +2 -2
- package/types/core/user-permission.type.ts +2 -2
- package/types/core/user-phone.type.ts +2 -2
- package/types/core/user-points-change.type.ts +6 -17
- package/types/core/user-profile.type.ts +24 -24
- package/types/core/user.type.ts +1 -1
- package/types/core/x-customer-notification.type.ts +1 -1
|
@@ -7,20 +7,12 @@ import { TelegramChatEntity } from './telegram-chat.type';
|
|
|
7
7
|
|
|
8
8
|
export type RepresentationEntity = BaseEntity & {
|
|
9
9
|
fullName: string;
|
|
10
|
-
|
|
11
|
-
geoId: number;
|
|
12
|
-
|
|
10
|
+
geoId?: number;
|
|
13
11
|
company: string;
|
|
14
|
-
|
|
15
12
|
contractDate: Date;
|
|
16
|
-
|
|
17
13
|
officeCenters?: OfficeCenterEntity[];
|
|
18
|
-
|
|
19
14
|
attributes?: AttributeRepresentationEntity[];
|
|
20
|
-
|
|
21
15
|
geo?: GeoEntity;
|
|
22
|
-
|
|
23
16
|
telegramChat?: TelegramChatEntity;
|
|
24
|
-
|
|
25
17
|
templates?: TemplateRepresentationEntity[];
|
|
26
18
|
};
|
|
@@ -3,9 +3,9 @@ import { RequestPresentationEntity } from './request-presentation.type';
|
|
|
3
3
|
import { CustomerPropertyEntity } from './customer-property.type';
|
|
4
4
|
|
|
5
5
|
export type RequestPresentationPropertyEntity = BaseEntity & {
|
|
6
|
-
presentationId
|
|
6
|
+
presentationId?: number;
|
|
7
7
|
presentation?: RequestPresentationEntity;
|
|
8
|
-
propertyId
|
|
8
|
+
propertyId?: number;
|
|
9
9
|
property?: CustomerPropertyEntity;
|
|
10
10
|
isMain?: boolean;
|
|
11
11
|
};
|
|
@@ -3,8 +3,8 @@ import { RequestPresentationPropertyEntity } from './request-presentation-proper
|
|
|
3
3
|
import { CustomerRequestSelectionEntity } from './customer-request-selection.type';
|
|
4
4
|
|
|
5
5
|
export type RequestPresentationEntity = UniqueIdEntity & {
|
|
6
|
-
requestSelectionId
|
|
6
|
+
requestSelectionId?: number;
|
|
7
7
|
requestSelection?: CustomerRequestSelectionEntity;
|
|
8
8
|
properties: RequestPresentationPropertyEntity[];
|
|
9
|
-
createdAt
|
|
9
|
+
createdAt: Date | null;
|
|
10
10
|
};
|
|
@@ -3,21 +3,13 @@ import { CustomerPropertyEntity } from './customer-property.type';
|
|
|
3
3
|
import { CustomerRequestSelectionEntity } from './customer-request-selection.type';
|
|
4
4
|
|
|
5
5
|
export type RequestPropertyEntity = BaseEntity & {
|
|
6
|
-
requestSelectionId
|
|
7
|
-
|
|
6
|
+
requestSelectionId?: number;
|
|
8
7
|
requestSelection?: CustomerRequestSelectionEntity;
|
|
9
|
-
|
|
10
|
-
propertyId: number;
|
|
11
|
-
|
|
8
|
+
propertyId?: number;
|
|
12
9
|
customerProperty?: CustomerPropertyEntity;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
isMain?: boolean;
|
|
19
|
-
|
|
20
|
-
createdAt?: Date;
|
|
21
|
-
|
|
22
|
-
updatedAt?: Date;
|
|
10
|
+
isAddedManually: boolean;
|
|
11
|
+
isRejected: boolean;
|
|
12
|
+
isMain: boolean;
|
|
13
|
+
createdAt: Date | null;
|
|
14
|
+
updatedAt: Date | null;
|
|
23
15
|
};
|
|
@@ -3,8 +3,8 @@ import { RoleEntity } from './role.type';
|
|
|
3
3
|
import { PermissionEntity } from './permission.type';
|
|
4
4
|
|
|
5
5
|
export type RolePermissionGroupEntity = UniqueIdEntity & {
|
|
6
|
-
roleId
|
|
6
|
+
roleId?: number;
|
|
7
7
|
role?: RoleEntity;
|
|
8
|
-
permissionId
|
|
8
|
+
permissionId?: number;
|
|
9
9
|
permission?: PermissionEntity;
|
|
10
10
|
};
|
|
@@ -5,14 +5,9 @@ import { QueueEntity } from './queue.type';
|
|
|
5
5
|
|
|
6
6
|
export type SectionEntity = BaseEntity & {
|
|
7
7
|
name: string;
|
|
8
|
-
|
|
9
|
-
imageId?: number;
|
|
10
|
-
|
|
8
|
+
imageId: number | null;
|
|
11
9
|
plan?: ImageEntity;
|
|
12
|
-
|
|
13
|
-
queueId?: number;
|
|
14
|
-
|
|
10
|
+
queueId: number | null;
|
|
15
11
|
queue?: QueueEntity;
|
|
16
|
-
|
|
17
|
-
floors: FloorEntity[];
|
|
12
|
+
floors?: FloorEntity[];
|
|
18
13
|
};
|
|
@@ -11,29 +11,18 @@ import { QueueEntity } from './queue.type';
|
|
|
11
11
|
|
|
12
12
|
export type StreetEntity = BaseEntity & {
|
|
13
13
|
name: MultiLanguage;
|
|
14
|
-
|
|
15
14
|
alias: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
isOldStreet?: boolean;
|
|
20
|
-
|
|
15
|
+
searchText: string | null;
|
|
16
|
+
isOldStreet: boolean;
|
|
21
17
|
names?: MultiLanguageArray;
|
|
22
|
-
|
|
23
18
|
line?: {
|
|
24
19
|
type: string;
|
|
25
20
|
coordinates: number[][][];
|
|
26
21
|
};
|
|
27
|
-
|
|
28
|
-
geoId?: number;
|
|
29
|
-
|
|
22
|
+
geoId: number | null;
|
|
30
23
|
geo?: GeoEntity;
|
|
31
|
-
|
|
32
24
|
customerProperties?: CustomerPropertyEntity[];
|
|
33
|
-
|
|
34
25
|
customerRequests?: CustomerRequestEntity[];
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
queues: QueueEntity[];
|
|
26
|
+
deals?: DealEntity[];
|
|
27
|
+
queues?: QueueEntity[];
|
|
39
28
|
};
|
|
@@ -2,11 +2,8 @@ import { TelegramMessageEntity } from './telegram-message.type';
|
|
|
2
2
|
import { RepresentationEntity } from './representation.type';
|
|
3
3
|
|
|
4
4
|
export type TelegramChatEntity = {
|
|
5
|
-
chatId
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
representation: RepresentationEntity;
|
|
10
|
-
|
|
11
|
-
messages: TelegramMessageEntity[];
|
|
5
|
+
chatId?: number;
|
|
6
|
+
representationId?: number;
|
|
7
|
+
representation?: RepresentationEntity;
|
|
8
|
+
messages?: TelegramMessageEntity[];
|
|
12
9
|
};
|
|
@@ -2,15 +2,10 @@ import { TelegramChatEntity } from './telegram-chat.type';
|
|
|
2
2
|
import { CustomerPropertyEntity } from './customer-property.type';
|
|
3
3
|
|
|
4
4
|
export type TelegramMessageEntity = {
|
|
5
|
-
messageId
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
propertyId: number;
|
|
12
|
-
|
|
13
|
-
property: CustomerPropertyEntity;
|
|
14
|
-
|
|
5
|
+
messageId?: number;
|
|
6
|
+
chatId?: number;
|
|
7
|
+
chat?: TelegramChatEntity;
|
|
8
|
+
propertyId?: number;
|
|
9
|
+
property?: CustomerPropertyEntity;
|
|
15
10
|
isMain: boolean;
|
|
16
11
|
};
|
|
@@ -5,20 +5,12 @@ import { TemplateCommentReactionEntity } from './template-comment-reaction.type'
|
|
|
5
5
|
|
|
6
6
|
export type TemplateCommentEntity = BaseEntity & {
|
|
7
7
|
text: string;
|
|
8
|
-
|
|
9
|
-
userId: number;
|
|
10
|
-
|
|
8
|
+
userId?: number;
|
|
11
9
|
user?: UserEntity;
|
|
12
|
-
|
|
13
|
-
templateId: number;
|
|
14
|
-
|
|
10
|
+
templateId?: number;
|
|
15
11
|
template?: TemplateEntity;
|
|
16
|
-
|
|
17
12
|
parentId: number | null;
|
|
18
|
-
|
|
19
|
-
parent?: TemplateCommentEntity | null;
|
|
20
|
-
|
|
13
|
+
parent?: TemplateCommentEntity;
|
|
21
14
|
children?: TemplateCommentEntity[];
|
|
22
|
-
|
|
23
15
|
reactions?: TemplateCommentReactionEntity[];
|
|
24
16
|
};
|
|
@@ -3,8 +3,8 @@ import { TemplateEntity } from './template.type';
|
|
|
3
3
|
import { OfficeEntity } from './office.type';
|
|
4
4
|
|
|
5
5
|
export type TemplateOfficeEntity = UniqueIdEntity & {
|
|
6
|
-
templateId
|
|
7
|
-
officeId
|
|
6
|
+
templateId?: number;
|
|
7
|
+
officeId?: number;
|
|
8
8
|
template?: TemplateEntity;
|
|
9
9
|
office?: OfficeEntity;
|
|
10
10
|
};
|
|
@@ -3,8 +3,8 @@ import { UserEntity } from './user.type';
|
|
|
3
3
|
import { TemplateEntity } from './template.type';
|
|
4
4
|
|
|
5
5
|
export type TemplateParticipantEntity = BaseEntity & {
|
|
6
|
-
userId
|
|
7
|
-
templateId
|
|
6
|
+
userId?: number;
|
|
7
|
+
templateId?: number;
|
|
8
8
|
user?: UserEntity;
|
|
9
9
|
template?: TemplateEntity;
|
|
10
10
|
};
|
|
@@ -3,8 +3,8 @@ import { TemplateEntity } from './template.type';
|
|
|
3
3
|
import { RepresentationEntity } from './representation.type';
|
|
4
4
|
|
|
5
5
|
export type TemplateRepresentationEntity = UniqueIdEntity & {
|
|
6
|
-
templateId
|
|
7
|
-
representationId
|
|
6
|
+
templateId?: number;
|
|
7
|
+
representationId?: number;
|
|
8
8
|
template?: TemplateEntity;
|
|
9
9
|
representation?: RepresentationEntity;
|
|
10
10
|
};
|
|
@@ -3,8 +3,8 @@ import { TemplateEntity } from './template.type';
|
|
|
3
3
|
import { RoleEntity } from './role.type';
|
|
4
4
|
|
|
5
5
|
export type TemplateRoleEntity = UniqueIdEntity & {
|
|
6
|
-
templateId
|
|
7
|
-
roleId
|
|
6
|
+
templateId?: number;
|
|
7
|
+
roleId?: number;
|
|
8
8
|
template?: TemplateEntity;
|
|
9
9
|
role?: RoleEntity;
|
|
10
10
|
};
|
|
@@ -3,8 +3,8 @@ import { UserEntity } from './user.type';
|
|
|
3
3
|
import { TemplateEntity } from './template.type';
|
|
4
4
|
|
|
5
5
|
export type TemplateViewEntity = BaseEntity & {
|
|
6
|
-
userId
|
|
7
|
-
templateId
|
|
6
|
+
userId?: number;
|
|
7
|
+
templateId?: number;
|
|
8
8
|
user?: UserEntity;
|
|
9
9
|
template?: TemplateEntity;
|
|
10
10
|
};
|
|
@@ -12,7 +12,7 @@ import { TemplateContentEnum } from '../template/template-content.enum';
|
|
|
12
12
|
|
|
13
13
|
export type TemplateEntity = BaseEntity & {
|
|
14
14
|
backgroundColor: string;
|
|
15
|
-
backgroundImage
|
|
15
|
+
backgroundImage: string | null;
|
|
16
16
|
textColor: string;
|
|
17
17
|
category: TemplateEnum;
|
|
18
18
|
title: MultiLanguage;
|
|
@@ -26,8 +26,8 @@ export type TemplateEntity = BaseEntity & {
|
|
|
26
26
|
contentType: TemplateContentEnum;
|
|
27
27
|
description: MultiLanguage;
|
|
28
28
|
maxParticipantsCount?: number;
|
|
29
|
-
startAt
|
|
30
|
-
endAt
|
|
29
|
+
startAt: Date | null;
|
|
30
|
+
endAt: Date | null;
|
|
31
31
|
comments?: TemplateCommentEntity[];
|
|
32
32
|
roles?: TemplateRoleEntity[];
|
|
33
33
|
offices?: TemplateOfficeEntity[];
|
|
@@ -8,22 +8,13 @@ import { Bounds } from '../geo/bounds.type';
|
|
|
8
8
|
|
|
9
9
|
export type TopzoneEntity = BaseEntity & {
|
|
10
10
|
name: MultiLanguage;
|
|
11
|
-
|
|
12
11
|
declension: MultiLanguage;
|
|
13
|
-
|
|
14
12
|
alias: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
lng?: string;
|
|
19
|
-
|
|
13
|
+
lat: string | null;
|
|
14
|
+
lng: string | null;
|
|
20
15
|
bounds?: Bounds;
|
|
21
|
-
|
|
22
16
|
customerProperties?: CustomerPropertyEntity[];
|
|
23
|
-
|
|
24
17
|
customerRequests?: CustomerRequestEntity[];
|
|
25
|
-
|
|
26
18
|
geoTopzone?: GeoTopzoneEntity[];
|
|
27
|
-
|
|
28
19
|
apartmentComplex?: ApartmentComplexEntity[];
|
|
29
20
|
};
|
|
@@ -3,22 +3,13 @@ import { UserEntity } from './user.type';
|
|
|
3
3
|
|
|
4
4
|
export type UserActionsLogEntity = BaseEntity & {
|
|
5
5
|
modelName: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
snapshotAfterAction: any; // Replace `any` with a more specific type if your JSON structure is known
|
|
14
|
-
|
|
15
|
-
children?: string; // List of children entities
|
|
16
|
-
|
|
17
|
-
changedById: number;
|
|
18
|
-
|
|
6
|
+
entityId: number | null;
|
|
7
|
+
entityKey: string | null;
|
|
8
|
+
snapshotBeforeAction: any;
|
|
9
|
+
snapshotAfterAction: any;
|
|
10
|
+
children?: string;
|
|
11
|
+
changedById?: number;
|
|
19
12
|
childrenTableNames: string | null;
|
|
20
|
-
|
|
21
13
|
changedBy: UserEntity;
|
|
22
|
-
|
|
23
14
|
createdAt: Date;
|
|
24
15
|
};
|
|
@@ -6,11 +6,11 @@ import { DealEntity } from './deal.type';
|
|
|
6
6
|
import { UserAttorneyType } from '../user';
|
|
7
7
|
|
|
8
8
|
export type UserAttorneyEntity = BaseEntity & {
|
|
9
|
-
vchasnoApiKey
|
|
10
|
-
vchasnoEmail
|
|
11
|
-
vchasnoInn
|
|
12
|
-
userId
|
|
13
|
-
attorneyId
|
|
9
|
+
vchasnoApiKey: string | null;
|
|
10
|
+
vchasnoEmail: string | null;
|
|
11
|
+
vchasnoInn: string | null;
|
|
12
|
+
userId?: number;
|
|
13
|
+
attorneyId?: number;
|
|
14
14
|
fullName: string;
|
|
15
15
|
edrpou: string;
|
|
16
16
|
inn: string;
|
|
@@ -21,7 +21,7 @@ export type UserAttorneyEntity = BaseEntity & {
|
|
|
21
21
|
edrpouRecordNumber: string;
|
|
22
22
|
type: UserAttorneyType;
|
|
23
23
|
user?: UserEntity;
|
|
24
|
-
attorney
|
|
25
|
-
deals
|
|
26
|
-
properties
|
|
24
|
+
attorney?: AttorneyEntity;
|
|
25
|
+
deals?: DealEntity[];
|
|
26
|
+
properties?: CustomerPropertyEntity[];
|
|
27
27
|
};
|
|
@@ -3,8 +3,8 @@ import { UserEntity } from './user.type';
|
|
|
3
3
|
import { OfficeEntity } from './office.type';
|
|
4
4
|
|
|
5
5
|
export type UserOfficeEntity = UniqueIdEntity & {
|
|
6
|
-
userId
|
|
7
|
-
officeId
|
|
6
|
+
userId?: number;
|
|
7
|
+
officeId?: number;
|
|
8
8
|
user?: UserEntity;
|
|
9
9
|
office?: OfficeEntity;
|
|
10
10
|
isPrimary: boolean;
|
|
@@ -4,8 +4,8 @@ import { PermissionEntity } from './permission.type';
|
|
|
4
4
|
|
|
5
5
|
export type UserPermissionEntity = BaseEntity & {
|
|
6
6
|
isEnabled: boolean;
|
|
7
|
-
userId
|
|
8
|
-
permissionId
|
|
7
|
+
userId?: number;
|
|
8
|
+
permissionId?: number;
|
|
9
9
|
user?: UserEntity;
|
|
10
10
|
permission?: PermissionEntity;
|
|
11
11
|
};
|
|
@@ -8,26 +8,15 @@ import { CustomerRequestEntity } from './customer-request.type';
|
|
|
8
8
|
|
|
9
9
|
export type UserPointsChangeEntity = BaseEntity & {
|
|
10
10
|
amount: number;
|
|
11
|
-
|
|
12
11
|
event: UserPointsEvent;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
customerId?: number;
|
|
21
|
-
|
|
22
|
-
requestId?: number;
|
|
23
|
-
|
|
24
|
-
user: UserEntity;
|
|
25
|
-
|
|
12
|
+
userId?: number;
|
|
13
|
+
handlingId?: number | null;
|
|
14
|
+
propertyId?: number | null;
|
|
15
|
+
customerId?: number | null;
|
|
16
|
+
requestId?: number | null;
|
|
17
|
+
user?: UserEntity;
|
|
26
18
|
handling?: HandlingEntity;
|
|
27
|
-
|
|
28
19
|
property?: CustomerPropertyEntity;
|
|
29
|
-
|
|
30
20
|
customer?: CustomerEntity;
|
|
31
|
-
|
|
32
21
|
request?: CustomerRequestEntity;
|
|
33
22
|
};
|
|
@@ -12,35 +12,35 @@ import { Children } from '../user-profile/children.type';
|
|
|
12
12
|
export type UserProfileEntity = BaseEntity & {
|
|
13
13
|
firstName: MultiLanguage;
|
|
14
14
|
secondName: MultiLanguage;
|
|
15
|
-
surname
|
|
15
|
+
surname: MultiLanguage | null;
|
|
16
16
|
male: Male;
|
|
17
|
-
birthDate
|
|
18
|
-
birthPlace
|
|
19
|
-
photoUrl
|
|
20
|
-
graduatedAt
|
|
21
|
-
address
|
|
22
|
-
passportRegistration
|
|
23
|
-
passport
|
|
24
|
-
inn
|
|
25
|
-
passportGiven
|
|
26
|
-
languages
|
|
27
|
-
notes
|
|
28
|
-
education
|
|
29
|
-
previousJobs
|
|
30
|
-
auto
|
|
31
|
-
criminal
|
|
32
|
-
criminalDescription
|
|
33
|
-
whyRealty
|
|
34
|
-
whyAtlanta
|
|
35
|
-
hobby
|
|
36
|
-
startWorkingAt
|
|
17
|
+
birthDate: Date | null;
|
|
18
|
+
birthPlace: string | null;
|
|
19
|
+
photoUrl: string | null;
|
|
20
|
+
graduatedAt: Date | null;
|
|
21
|
+
address: string | null;
|
|
22
|
+
passportRegistration: string | null;
|
|
23
|
+
passport: string | null;
|
|
24
|
+
inn: string | null;
|
|
25
|
+
passportGiven: string | null;
|
|
26
|
+
languages: string[];
|
|
27
|
+
notes: Record<string, string>;
|
|
28
|
+
education: Education[];
|
|
29
|
+
previousJobs: PreviousJob[];
|
|
30
|
+
auto: boolean;
|
|
31
|
+
criminal: boolean;
|
|
32
|
+
criminalDescription: string | null;
|
|
33
|
+
whyRealty: string | null;
|
|
34
|
+
whyAtlanta: string | null;
|
|
35
|
+
hobby: string | null;
|
|
36
|
+
startWorkingAt: Date | null;
|
|
37
37
|
social?: Socials;
|
|
38
38
|
children?: Children[];
|
|
39
39
|
married: boolean;
|
|
40
40
|
showPropertyDescription: boolean;
|
|
41
|
-
categoryId
|
|
42
|
-
userId
|
|
43
|
-
sourceId
|
|
41
|
+
categoryId?: number;
|
|
42
|
+
userId?: number;
|
|
43
|
+
sourceId?: number;
|
|
44
44
|
category?: NormCategoryEntity;
|
|
45
45
|
user?: UserEntity;
|
|
46
46
|
source?: AdvertSourceEntity;
|
package/types/core/user.type.ts
CHANGED
|
@@ -48,7 +48,7 @@ export type UserEntity = BaseEntity & {
|
|
|
48
48
|
syncUserContacts: boolean;
|
|
49
49
|
syncBuyerContacts: boolean;
|
|
50
50
|
syncSellerContacts: boolean;
|
|
51
|
-
roleId
|
|
51
|
+
roleId?: number;
|
|
52
52
|
profile?: UserProfileEntity;
|
|
53
53
|
role?: RoleEntity;
|
|
54
54
|
permissions?: UserPermissionEntity[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity, CustomerRequestEntity } from './index';
|
|
2
2
|
|
|
3
3
|
export type XCustomerNotificationEntity = BaseEntity & {
|
|
4
|
-
customerRequestId
|
|
4
|
+
customerRequestId?: number;
|
|
5
5
|
customerRequest: CustomerRequestEntity;
|
|
6
6
|
shouldSendNotification: boolean;
|
|
7
7
|
lastNotificationSentAt?: Date;
|