vector-shared 1.1.328 → 1.1.330
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/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.type.d.ts +4 -4
- package/dist/types/core/attention-required.type.d.ts +1 -1
- package/dist/types/core/attribute-representation.type.d.ts +1 -1
- package/dist/types/core/build-company.type.d.ts +3 -3
- package/dist/types/core/call-redirect.type.d.ts +1 -1
- package/dist/types/core/call.type.d.ts +4 -4
- 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.type.d.ts +4 -4
- 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 +6 -6
- package/dist/types/core/deal-document.type.d.ts +1 -1
- package/dist/types/core/deal-participant.type.d.ts +6 -6
- package/dist/types/core/deal-transaction.type.d.ts +3 -3
- package/dist/types/core/deal-type-percentage.type.d.ts +1 -1
- package/dist/types/core/deal.type.d.ts +17 -17
- package/dist/types/core/duty.type.d.ts +5 -5
- 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 +3 -3
- package/dist/types/core/floor.type.d.ts +3 -3
- package/dist/types/core/geo-topzone.type.d.ts +2 -2
- package/dist/types/core/handling-listening.type.d.ts +4 -4
- package/dist/types/core/handling.type.d.ts +8 -8
- package/dist/types/core/mismatch-aggregate.type.d.ts +1 -1
- package/dist/types/core/mismatch-decision.type.d.ts +3 -3
- package/dist/types/core/mismatch-report.type.d.ts +3 -3
- package/dist/types/core/notification.type.d.ts +1 -1
- package/dist/types/core/office-center.type.d.ts +1 -1
- package/dist/types/core/office.type.d.ts +1 -1
- package/dist/types/core/property-document.type.d.ts +1 -1
- package/dist/types/core/property-image.type.d.ts +2 -2
- 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 +1 -1
- package/dist/types/core/request-property.type.d.ts +2 -2
- package/dist/types/core/role-permission-group.type.d.ts +2 -2
- package/dist/types/core/telegram-chat.type.d.ts +2 -2
- package/dist/types/core/telegram-message.type.d.ts +3 -3
- package/dist/types/core/template-comment-reaction.type.d.ts +1 -1
- package/dist/types/core/template-comment.type.d.ts +2 -2
- 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/user-action-log.type.d.ts +1 -1
- package/dist/types/core/user-attorney.type.d.ts +2 -2
- 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 +1 -1
- package/dist/types/core/user-points-change.type.d.ts +5 -5
- package/dist/types/core/user-profile.type.d.ts +3 -3
- 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/core/advert-source.type.ts +1 -1
- package/types/core/apartment-complex-image.type.ts +4 -4
- package/types/core/apartment-complex.type.ts +4 -4
- package/types/core/attention-required.type.ts +1 -1
- package/types/core/attribute-representation.type.ts +1 -1
- package/types/core/build-company.type.ts +3 -3
- package/types/core/call-redirect.type.ts +1 -1
- package/types/core/call.type.ts +4 -4
- 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.type.ts +4 -4
- 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 +6 -6
- package/types/core/deal-document.type.ts +1 -1
- package/types/core/deal-participant.type.ts +6 -6
- package/types/core/deal-transaction.type.ts +3 -3
- package/types/core/deal-type-percentage.type.ts +1 -1
- package/types/core/deal.type.ts +17 -18
- package/types/core/duty.type.ts +5 -5
- 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 +3 -3
- package/types/core/floor.type.ts +3 -3
- package/types/core/geo-topzone.type.ts +2 -2
- package/types/core/handling-listening.type.ts +4 -4
- package/types/core/handling.type.ts +8 -8
- package/types/core/mismatch-aggregate.type.ts +1 -1
- package/types/core/mismatch-decision.type.ts +3 -3
- package/types/core/mismatch-report.type.ts +3 -3
- package/types/core/notification.type.ts +1 -1
- package/types/core/office-center.type.ts +1 -1
- package/types/core/office.type.ts +1 -1
- package/types/core/property-document.type.ts +1 -1
- package/types/core/property-image.type.ts +2 -2
- package/types/core/reaction.type.ts +1 -1
- package/types/core/realtor-number.type.ts +4 -4
- package/types/core/representation.type.ts +1 -1
- package/types/core/request-presentation-property.type.ts +2 -2
- package/types/core/request-presentation.type.ts +1 -1
- package/types/core/request-property.type.ts +2 -2
- package/types/core/role-permission-group.type.ts +2 -2
- package/types/core/telegram-chat.type.ts +2 -2
- package/types/core/telegram-message.type.ts +3 -3
- package/types/core/template-comment-reaction.type.ts +1 -1
- package/types/core/template-comment.type.ts +2 -2
- 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/user-action-log.type.ts +1 -1
- package/types/core/user-attorney.type.ts +2 -2
- 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 +1 -1
- package/types/core/user-points-change.type.ts +5 -5
- package/types/core/user-profile.type.ts +3 -3
- package/types/core/user.type.ts +1 -1
- package/types/core/x-customer-notification.type.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TelegramMessageEntity } from './telegram-message.type';
|
|
2
2
|
import { RepresentationEntity } from './representation.type';
|
|
3
3
|
export type TelegramChatEntity = {
|
|
4
|
-
chatId
|
|
5
|
-
representationId
|
|
4
|
+
chatId?: number;
|
|
5
|
+
representationId?: number;
|
|
6
6
|
representation?: RepresentationEntity;
|
|
7
7
|
messages?: TelegramMessageEntity[];
|
|
8
8
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TelegramChatEntity } from './telegram-chat.type';
|
|
2
2
|
import { CustomerPropertyEntity } from './customer-property.type';
|
|
3
3
|
export type TelegramMessageEntity = {
|
|
4
|
-
messageId
|
|
5
|
-
chatId
|
|
4
|
+
messageId?: number;
|
|
5
|
+
chatId?: number;
|
|
6
6
|
chat?: TelegramChatEntity;
|
|
7
|
-
propertyId
|
|
7
|
+
propertyId?: number;
|
|
8
8
|
property?: CustomerPropertyEntity;
|
|
9
9
|
isMain: boolean;
|
|
10
10
|
};
|
|
@@ -4,9 +4,9 @@ import { TemplateEntity } from './template.type';
|
|
|
4
4
|
import { TemplateCommentReactionEntity } from './template-comment-reaction.type';
|
|
5
5
|
export type TemplateCommentEntity = BaseEntity & {
|
|
6
6
|
text: string;
|
|
7
|
-
userId
|
|
7
|
+
userId?: number;
|
|
8
8
|
user?: UserEntity;
|
|
9
|
-
templateId
|
|
9
|
+
templateId?: number;
|
|
10
10
|
template?: TemplateEntity;
|
|
11
11
|
parentId: number | null;
|
|
12
12
|
parent?: TemplateCommentEntity;
|
|
@@ -2,8 +2,8 @@ import { UniqueIdEntity } from './unique-id-entity.type';
|
|
|
2
2
|
import { TemplateEntity } from './template.type';
|
|
3
3
|
import { OfficeEntity } from './office.type';
|
|
4
4
|
export type TemplateOfficeEntity = UniqueIdEntity & {
|
|
5
|
-
templateId
|
|
6
|
-
officeId
|
|
5
|
+
templateId?: number;
|
|
6
|
+
officeId?: number;
|
|
7
7
|
template?: TemplateEntity;
|
|
8
8
|
office?: OfficeEntity;
|
|
9
9
|
};
|
|
@@ -2,8 +2,8 @@ import { BaseEntity } from './base-entity.type';
|
|
|
2
2
|
import { UserEntity } from './user.type';
|
|
3
3
|
import { TemplateEntity } from './template.type';
|
|
4
4
|
export type TemplateParticipantEntity = BaseEntity & {
|
|
5
|
-
userId
|
|
6
|
-
templateId
|
|
5
|
+
userId?: number;
|
|
6
|
+
templateId?: number;
|
|
7
7
|
user?: UserEntity;
|
|
8
8
|
template?: TemplateEntity;
|
|
9
9
|
};
|
|
@@ -2,8 +2,8 @@ import { UniqueIdEntity } from './unique-id-entity.type';
|
|
|
2
2
|
import { TemplateEntity } from './template.type';
|
|
3
3
|
import { RepresentationEntity } from './representation.type';
|
|
4
4
|
export type TemplateRepresentationEntity = UniqueIdEntity & {
|
|
5
|
-
templateId
|
|
6
|
-
representationId
|
|
5
|
+
templateId?: number;
|
|
6
|
+
representationId?: number;
|
|
7
7
|
template?: TemplateEntity;
|
|
8
8
|
representation?: RepresentationEntity;
|
|
9
9
|
};
|
|
@@ -2,8 +2,8 @@ import { UniqueIdEntity } from './unique-id-entity.type';
|
|
|
2
2
|
import { TemplateEntity } from './template.type';
|
|
3
3
|
import { RoleEntity } from './role.type';
|
|
4
4
|
export type TemplateRoleEntity = UniqueIdEntity & {
|
|
5
|
-
templateId
|
|
6
|
-
roleId
|
|
5
|
+
templateId?: number;
|
|
6
|
+
roleId?: number;
|
|
7
7
|
template?: TemplateEntity;
|
|
8
8
|
role?: RoleEntity;
|
|
9
9
|
};
|
|
@@ -2,8 +2,8 @@ import { BaseEntity } from './base-entity.type';
|
|
|
2
2
|
import { UserEntity } from './user.type';
|
|
3
3
|
import { TemplateEntity } from './template.type';
|
|
4
4
|
export type TemplateViewEntity = BaseEntity & {
|
|
5
|
-
userId
|
|
6
|
-
templateId
|
|
5
|
+
userId?: number;
|
|
6
|
+
templateId?: number;
|
|
7
7
|
user?: UserEntity;
|
|
8
8
|
template?: TemplateEntity;
|
|
9
9
|
};
|
|
@@ -8,8 +8,8 @@ export type UserAttorneyEntity = BaseEntity & {
|
|
|
8
8
|
vchasnoApiKey: string | null;
|
|
9
9
|
vchasnoEmail: string | null;
|
|
10
10
|
vchasnoInn: string | null;
|
|
11
|
-
userId
|
|
12
|
-
attorneyId
|
|
11
|
+
userId?: number;
|
|
12
|
+
attorneyId?: number;
|
|
13
13
|
fullName: string;
|
|
14
14
|
edrpou: string;
|
|
15
15
|
inn: string;
|
|
@@ -2,8 +2,8 @@ import { UniqueIdEntity } from './unique-id-entity.type';
|
|
|
2
2
|
import { UserEntity } from './user.type';
|
|
3
3
|
import { OfficeEntity } from './office.type';
|
|
4
4
|
export type UserOfficeEntity = UniqueIdEntity & {
|
|
5
|
-
userId
|
|
6
|
-
officeId
|
|
5
|
+
userId?: number;
|
|
6
|
+
officeId?: number;
|
|
7
7
|
user?: UserEntity;
|
|
8
8
|
office?: OfficeEntity;
|
|
9
9
|
isPrimary: boolean;
|
|
@@ -3,8 +3,8 @@ import { UserEntity } from './user.type';
|
|
|
3
3
|
import { PermissionEntity } from './permission.type';
|
|
4
4
|
export type UserPermissionEntity = BaseEntity & {
|
|
5
5
|
isEnabled: boolean;
|
|
6
|
-
userId
|
|
7
|
-
permissionId
|
|
6
|
+
userId?: number;
|
|
7
|
+
permissionId?: number;
|
|
8
8
|
user?: UserEntity;
|
|
9
9
|
permission?: PermissionEntity;
|
|
10
10
|
};
|
|
@@ -8,11 +8,11 @@ import { CustomerRequestEntity } from './customer-request.type';
|
|
|
8
8
|
export type UserPointsChangeEntity = BaseEntity & {
|
|
9
9
|
amount: number;
|
|
10
10
|
event: UserPointsEvent;
|
|
11
|
-
userId
|
|
12
|
-
handlingId
|
|
13
|
-
propertyId
|
|
14
|
-
customerId
|
|
15
|
-
requestId
|
|
11
|
+
userId?: number;
|
|
12
|
+
handlingId?: number | null;
|
|
13
|
+
propertyId?: number | null;
|
|
14
|
+
customerId?: number | null;
|
|
15
|
+
requestId?: number | null;
|
|
16
16
|
user?: UserEntity;
|
|
17
17
|
handling?: HandlingEntity;
|
|
18
18
|
property?: CustomerPropertyEntity;
|
|
@@ -37,9 +37,9 @@ export type UserProfileEntity = BaseEntity & {
|
|
|
37
37
|
children?: Children[];
|
|
38
38
|
married: boolean;
|
|
39
39
|
showPropertyDescription: boolean;
|
|
40
|
-
categoryId
|
|
41
|
-
userId
|
|
42
|
-
sourceId
|
|
40
|
+
categoryId?: number;
|
|
41
|
+
userId?: number;
|
|
42
|
+
sourceId?: number;
|
|
43
43
|
category?: NormCategoryEntity;
|
|
44
44
|
user?: UserEntity;
|
|
45
45
|
source?: AdvertSourceEntity;
|
|
@@ -47,7 +47,7 @@ export type UserEntity = BaseEntity & {
|
|
|
47
47
|
syncUserContacts: boolean;
|
|
48
48
|
syncBuyerContacts: boolean;
|
|
49
49
|
syncSellerContacts: boolean;
|
|
50
|
-
roleId
|
|
50
|
+
roleId?: number;
|
|
51
51
|
profile?: UserProfileEntity;
|
|
52
52
|
role?: RoleEntity;
|
|
53
53
|
permissions?: UserPermissionEntity[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseEntity, CustomerRequestEntity } from './index';
|
|
2
2
|
export type XCustomerNotificationEntity = BaseEntity & {
|
|
3
|
-
customerRequestId
|
|
3
|
+
customerRequestId?: number;
|
|
4
4
|
customerRequest: CustomerRequestEntity;
|
|
5
5
|
shouldSendNotification: boolean;
|
|
6
6
|
lastNotificationSentAt?: Date;
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export type AdvertSourceEntity = UniqueIdEntity & {
|
|
|
12
12
|
sort: number;
|
|
13
13
|
receiveType: number | null;
|
|
14
14
|
insertType: number | null;
|
|
15
|
-
parentId
|
|
15
|
+
parentId?: number | null;
|
|
16
16
|
isActive: boolean;
|
|
17
17
|
parent?: AdvertSourceEntity;
|
|
18
18
|
subCategories: AdvertSourceEntity[];
|
|
@@ -5,9 +5,9 @@ import { ApartmentComplexImageCategory } from '../image/apartment-complex-image-
|
|
|
5
5
|
|
|
6
6
|
export type ApartmentComplexImageEntity = BaseEntity & {
|
|
7
7
|
category: ApartmentComplexImageCategory;
|
|
8
|
-
imageId
|
|
9
|
-
image
|
|
10
|
-
complexId
|
|
11
|
-
complex
|
|
8
|
+
imageId?: number;
|
|
9
|
+
image?: ImageEntity;
|
|
10
|
+
complexId?: number;
|
|
11
|
+
complex?: ApartmentComplexEntity;
|
|
12
12
|
sortOrder: number;
|
|
13
13
|
};
|
|
@@ -16,10 +16,10 @@ export type ApartmentComplexEntity = BaseEntity & {
|
|
|
16
16
|
type: number | null;
|
|
17
17
|
lat: string | null;
|
|
18
18
|
lng: string | null;
|
|
19
|
-
geoId
|
|
20
|
-
buildCompanyId
|
|
21
|
-
apartmentComplexInfoId
|
|
22
|
-
topzoneId
|
|
19
|
+
geoId?: number;
|
|
20
|
+
buildCompanyId?: number;
|
|
21
|
+
apartmentComplexInfoId?: number;
|
|
22
|
+
topzoneId?: number;
|
|
23
23
|
fileName: string | null;
|
|
24
24
|
sourceName: string | null;
|
|
25
25
|
customerProperties?: CustomerPropertyEntity[];
|
|
@@ -3,7 +3,7 @@ import { AttentionRequiredEntityEnum as AttentionRequiredEntityEnum } from '../c
|
|
|
3
3
|
|
|
4
4
|
export type AttentionRequiredEntity = BaseEntity & {
|
|
5
5
|
entityType: AttentionRequiredEntityEnum;
|
|
6
|
-
entityId
|
|
6
|
+
entityId?: number;
|
|
7
7
|
reason: string | null;
|
|
8
8
|
handledAt: Date | null;
|
|
9
9
|
};
|
|
@@ -5,6 +5,6 @@ import { RepresentationEntity } from './representation.type';
|
|
|
5
5
|
export type AttributeRepresentationEntity = BaseEntity & {
|
|
6
6
|
attributeKey: string;
|
|
7
7
|
attribute?: AttributeEntity;
|
|
8
|
-
representationId
|
|
8
|
+
representationId?: number;
|
|
9
9
|
representation?: RepresentationEntity;
|
|
10
10
|
};
|
|
@@ -8,9 +8,9 @@ export type BuildCompanyEntity = BaseEntity & {
|
|
|
8
8
|
name: string;
|
|
9
9
|
alias: string;
|
|
10
10
|
description: MultiLanguage;
|
|
11
|
-
imageId
|
|
12
|
-
image
|
|
11
|
+
imageId?: number | null;
|
|
12
|
+
image?: ImageEntity;
|
|
13
13
|
site: string | null;
|
|
14
14
|
currencies: CurrencyValue[] | null;
|
|
15
|
-
apartmentComplexes
|
|
15
|
+
apartmentComplexes?: ApartmentComplexEntity[];
|
|
16
16
|
};
|
package/types/core/call.type.ts
CHANGED
|
@@ -11,10 +11,10 @@ export type CallEntity = UniqueIdEntity & {
|
|
|
11
11
|
callType: number | null;
|
|
12
12
|
timeCreate: string | null;
|
|
13
13
|
callData: CallData;
|
|
14
|
-
redirectId
|
|
15
|
-
sourceId
|
|
14
|
+
redirectId?: number;
|
|
15
|
+
sourceId?: number;
|
|
16
16
|
createdAt: Date;
|
|
17
|
-
callRedirect
|
|
18
|
-
source
|
|
17
|
+
callRedirect?: CallRedirectEntity;
|
|
18
|
+
source?: AdvertSourceEntity;
|
|
19
19
|
handling?: HandlingEntity;
|
|
20
20
|
};
|
|
@@ -3,8 +3,8 @@ import { OfficeEntity } from './office.type';
|
|
|
3
3
|
import { CustomerEntity } from './customer.type';
|
|
4
4
|
|
|
5
5
|
export type CustomerBucketEntity = UniqueIdEntity & {
|
|
6
|
-
customerId
|
|
7
|
-
officeId
|
|
6
|
+
customerId?: number;
|
|
7
|
+
officeId?: number;
|
|
8
8
|
office: OfficeEntity;
|
|
9
9
|
customer: CustomerEntity;
|
|
10
10
|
};
|
|
@@ -3,9 +3,9 @@ import { CustomerEntity } from './customer.type';
|
|
|
3
3
|
import { UserEntity } from './user.type';
|
|
4
4
|
|
|
5
5
|
export type CustomerCallEntity = BaseEntity & {
|
|
6
|
-
customerId
|
|
6
|
+
customerId?: number;
|
|
7
7
|
customer?: CustomerEntity;
|
|
8
|
-
userId
|
|
8
|
+
userId?: number;
|
|
9
9
|
user?: UserEntity;
|
|
10
10
|
comment?: string;
|
|
11
11
|
};
|
|
@@ -75,9 +75,9 @@ export type CustomerPropertyEntity = BaseEntity & {
|
|
|
75
75
|
exclusiveAgreementData?: ExclusivePropertyAgreementData;
|
|
76
76
|
markAsLiquidAt?: Date;
|
|
77
77
|
videoUrl?: string;
|
|
78
|
-
sellerId
|
|
79
|
-
realtorId
|
|
80
|
-
createdById
|
|
78
|
+
sellerId?: number;
|
|
79
|
+
realtorId?: number;
|
|
80
|
+
createdById?: number;
|
|
81
81
|
archiveReasonId?: number;
|
|
82
82
|
complexId?: number;
|
|
83
83
|
sourceId?: number;
|
|
@@ -85,7 +85,7 @@ export type CustomerPropertyEntity = BaseEntity & {
|
|
|
85
85
|
geoId?: number;
|
|
86
86
|
attorneyId?: number;
|
|
87
87
|
topzoneId?: number;
|
|
88
|
-
realtor
|
|
88
|
+
realtor?: UserEntity;
|
|
89
89
|
createdBy?: UserEntity;
|
|
90
90
|
vnpReason?: VnpReasonEntity;
|
|
91
91
|
archiveReason?: ArchiveReasonEntity;
|
|
@@ -31,6 +31,6 @@ export type CustomerRequestSelectionEntity = BaseEntity & {
|
|
|
31
31
|
updateStatus?: CustomerRequestSelectionUpdateStatus;
|
|
32
32
|
customerProperties?: RequestPropertyEntity[];
|
|
33
33
|
presentation?: RequestPresentationEntity;
|
|
34
|
-
requestId
|
|
34
|
+
requestId?: number;
|
|
35
35
|
request?: CustomerRequestEntity;
|
|
36
36
|
};
|
|
@@ -29,8 +29,8 @@ export type CustomerRequestEntity = BaseEntity & {
|
|
|
29
29
|
archiveReasonId?: number;
|
|
30
30
|
archiveAnnotation?: string | null;
|
|
31
31
|
archiveReason?: ArchiveReasonEntity;
|
|
32
|
-
deals
|
|
33
|
-
userPointsChanges
|
|
34
|
-
selections
|
|
35
|
-
xCustomerNotifications
|
|
32
|
+
deals?: DealEntity[];
|
|
33
|
+
userPointsChanges?: UserPointsChangeEntity[];
|
|
34
|
+
selections?: CustomerRequestSelectionEntity[];
|
|
35
|
+
xCustomerNotifications?: XCustomerNotificationEntity[];
|
|
36
36
|
};
|
|
@@ -27,15 +27,15 @@ export type CustomerEntity = BaseEntity & {
|
|
|
27
27
|
inn: string | null;
|
|
28
28
|
passport: string | null;
|
|
29
29
|
exclusiveAgreementData: ExclusiveBuyerAgreementData | null;
|
|
30
|
-
archiveReasonId
|
|
30
|
+
archiveReasonId?: number;
|
|
31
31
|
exclusiveAgreementDocumentEndDate: Date | null;
|
|
32
|
-
exclusiveBuyerAgreementDocumentId
|
|
33
|
-
propertyDemonstrationActDocumentId
|
|
32
|
+
exclusiveBuyerAgreementDocumentId?: number;
|
|
33
|
+
propertyDemonstrationActDocumentId?: number;
|
|
34
34
|
visitedOffice: boolean;
|
|
35
35
|
visitedOfficeAt: Date | null;
|
|
36
|
-
createdById
|
|
37
|
-
realtorId
|
|
38
|
-
attorneyId
|
|
36
|
+
createdById?: number;
|
|
37
|
+
realtorId?: number;
|
|
38
|
+
attorneyId?: number;
|
|
39
39
|
createdBy?: UserEntity;
|
|
40
40
|
archiveReason?: ArchiveReasonEntity;
|
|
41
41
|
phones?: CustomerPhoneEntity[];
|
|
@@ -10,7 +10,7 @@ export type DealDocumentEntity = BaseEntity & {
|
|
|
10
10
|
name: string;
|
|
11
11
|
documentType: DealDocumentEnum | null;
|
|
12
12
|
vchasnoDocumentId: string | null;
|
|
13
|
-
dealId
|
|
13
|
+
dealId?: number;
|
|
14
14
|
deal?: DealEntity;
|
|
15
15
|
vchasnoDocument?: VchasnoDocument;
|
|
16
16
|
vchasnoDocumentSigners?: VchasnoDocumentSigner[];
|
|
@@ -9,15 +9,15 @@ import { DealTransactionEntity } from './deal-transaction.type';
|
|
|
9
9
|
export type DealParticipantEntity = BaseEntity & {
|
|
10
10
|
percent: number;
|
|
11
11
|
incomePercent: number;
|
|
12
|
-
dealId
|
|
13
|
-
agencyId
|
|
14
|
-
userId
|
|
15
|
-
normId
|
|
16
|
-
officeId
|
|
12
|
+
dealId?: number;
|
|
13
|
+
agencyId?: number;
|
|
14
|
+
userId?: number;
|
|
15
|
+
normId?: number;
|
|
16
|
+
officeId?: number;
|
|
17
17
|
deal?: DealEntity;
|
|
18
18
|
agency?: AgencyEntity;
|
|
19
19
|
user?: UserEntity;
|
|
20
20
|
norm?: EmployeeNormEntity;
|
|
21
21
|
office?: OfficeEntity;
|
|
22
|
-
transactions
|
|
22
|
+
transactions?: DealTransactionEntity[];
|
|
23
23
|
};
|
|
@@ -6,11 +6,11 @@ import { DealParticipantEntity } from '.';
|
|
|
6
6
|
import { UserEntity } from './user.type';
|
|
7
7
|
|
|
8
8
|
export type DealTransactionEntity = BaseEntity & {
|
|
9
|
-
dealId
|
|
9
|
+
dealId?: number;
|
|
10
10
|
deal?: DealEntity;
|
|
11
11
|
trxType: DealTransactionEnum;
|
|
12
|
-
participantId
|
|
13
|
-
participant
|
|
12
|
+
participantId?: number;
|
|
13
|
+
participant?: DealParticipantEntity;
|
|
14
14
|
trxDate: Date;
|
|
15
15
|
amount: number;
|
|
16
16
|
minSumByPrice: number;
|
|
@@ -3,7 +3,7 @@ import { DealTypeEntity } from './deal-type.type';
|
|
|
3
3
|
import { DealParticipantType } from '../deal/deal-participant-type.enum';
|
|
4
4
|
|
|
5
5
|
export type DealTypePercentageEntity = BaseEntity & {
|
|
6
|
-
dealTypeId
|
|
6
|
+
dealTypeId?: number;
|
|
7
7
|
dealType?: DealTypeEntity;
|
|
8
8
|
participant: DealParticipantType;
|
|
9
9
|
percent: number;
|
package/types/core/deal.type.ts
CHANGED
|
@@ -16,7 +16,6 @@ import { DealParticipantEntity } from './deal-participant.type';
|
|
|
16
16
|
import { DealTransactionEntity } from './deal-transaction.type';
|
|
17
17
|
import { UserAttorneyEntity } from './user-attorney.type';
|
|
18
18
|
import { RealtySubtype } from './customer-property.type';
|
|
19
|
-
import { DealFormat } from '../deal/deal-format.enum';
|
|
20
19
|
import { DealStatus } from '../deal/deal-status.enum';
|
|
21
20
|
import { MortgageProgram } from '../deal/mortgage-program.enum';
|
|
22
21
|
import { DealPayer } from '../deal/deal-payer.enum';
|
|
@@ -97,23 +96,23 @@ export type DealEntity = BaseEntity & {
|
|
|
97
96
|
buyerServicesPrepaymentSum: number | null;
|
|
98
97
|
sellerServicesSum: number | null;
|
|
99
98
|
sellerServicesPrepaymentSum: number | null;
|
|
100
|
-
attorneyId
|
|
101
|
-
dealTypeId
|
|
102
|
-
geoId
|
|
103
|
-
streetId
|
|
104
|
-
propertyId
|
|
105
|
-
requestId
|
|
106
|
-
sellerRealtorId
|
|
107
|
-
buyerRealtorId
|
|
108
|
-
agencyId
|
|
109
|
-
userId
|
|
110
|
-
officeId
|
|
111
|
-
notaryId
|
|
112
|
-
appraiserId
|
|
113
|
-
valuationId
|
|
114
|
-
contractTypeId
|
|
115
|
-
parentId
|
|
116
|
-
userAttorneyId
|
|
99
|
+
attorneyId?: number;
|
|
100
|
+
dealTypeId?: number;
|
|
101
|
+
geoId?: number;
|
|
102
|
+
streetId?: number;
|
|
103
|
+
propertyId?: number;
|
|
104
|
+
requestId?: number;
|
|
105
|
+
sellerRealtorId?: number;
|
|
106
|
+
buyerRealtorId?: number;
|
|
107
|
+
agencyId?: number;
|
|
108
|
+
userId?: number;
|
|
109
|
+
officeId?: number;
|
|
110
|
+
notaryId?: number;
|
|
111
|
+
appraiserId?: number;
|
|
112
|
+
valuationId?: number;
|
|
113
|
+
contractTypeId?: number;
|
|
114
|
+
parentId?: number;
|
|
115
|
+
userAttorneyId?: number;
|
|
117
116
|
dealType?: DealTypeEntity;
|
|
118
117
|
user?: UserEntity;
|
|
119
118
|
geo?: GeoEntity;
|
package/types/core/duty.type.ts
CHANGED
|
@@ -8,10 +8,10 @@ export type DutyEntity = BaseEntity & {
|
|
|
8
8
|
endTime: string;
|
|
9
9
|
isDayOff: boolean;
|
|
10
10
|
description: string | null;
|
|
11
|
-
createdById
|
|
12
|
-
userId
|
|
13
|
-
officeId
|
|
14
|
-
user
|
|
15
|
-
office
|
|
11
|
+
createdById?: number;
|
|
12
|
+
userId?: number;
|
|
13
|
+
officeId?: number;
|
|
14
|
+
user?: UserEntity;
|
|
15
|
+
office?: OfficeEntity;
|
|
16
16
|
createdBy?: UserEntity;
|
|
17
17
|
};
|
|
@@ -9,8 +9,8 @@ export type EmployeeNormEntity = UniqueIdEntity & {
|
|
|
9
9
|
income: number;
|
|
10
10
|
progress: number;
|
|
11
11
|
exclusive: number;
|
|
12
|
-
officeId
|
|
13
|
-
categoryId
|
|
12
|
+
officeId?: number;
|
|
13
|
+
categoryId?: number;
|
|
14
14
|
office?: OfficeEntity;
|
|
15
15
|
category?: NormCategoryEntity;
|
|
16
16
|
dealParticipants: DealParticipantEntity[];
|
|
@@ -3,8 +3,8 @@ import { UploadedFileEntity } from './uploaded-file-entity.type';
|
|
|
3
3
|
import { UniqueIdEntity } from './unique-id-entity.type';
|
|
4
4
|
|
|
5
5
|
export type FeedbackFileEntity = UniqueIdEntity & {
|
|
6
|
-
fileId
|
|
7
|
-
file
|
|
8
|
-
feedbackId
|
|
9
|
-
feedback
|
|
6
|
+
fileId?: number;
|
|
7
|
+
file?: UploadedFileEntity;
|
|
8
|
+
feedbackId?: number;
|
|
9
|
+
feedback?: FeedbackEntity;
|
|
10
10
|
};
|
|
@@ -3,8 +3,8 @@ import { FeedbackEntity } from './feedback.type';
|
|
|
3
3
|
import { BaseEntity } from './base-entity.type';
|
|
4
4
|
|
|
5
5
|
export type FeedbackViewEntity = BaseEntity & {
|
|
6
|
-
userId
|
|
7
|
-
user
|
|
8
|
-
feedbackId
|
|
9
|
-
feedback
|
|
6
|
+
userId?: number;
|
|
7
|
+
user?: UserEntity;
|
|
8
|
+
feedbackId?: number;
|
|
9
|
+
feedback?: FeedbackEntity;
|
|
10
10
|
};
|
|
@@ -10,10 +10,10 @@ export type FeedbackEntity = BaseEntity & {
|
|
|
10
10
|
text: string;
|
|
11
11
|
type: FeedbackCategory;
|
|
12
12
|
status: FeedbackStatus;
|
|
13
|
-
userId
|
|
14
|
-
user
|
|
15
|
-
officeId
|
|
16
|
-
office
|
|
17
|
-
views
|
|
18
|
-
files
|
|
13
|
+
userId?: number;
|
|
14
|
+
user?: UserEntity;
|
|
15
|
+
officeId?: number;
|
|
16
|
+
office?: OfficeEntity;
|
|
17
|
+
views?: FeedbackViewEntity[];
|
|
18
|
+
files?: FeedbackFileEntity[];
|
|
19
19
|
};
|
package/types/core/flat.type.ts
CHANGED
|
@@ -13,10 +13,10 @@ export type FlatEntity = BaseEntity & {
|
|
|
13
13
|
paymentCalculations: Array<PaymentCalculation> | null;
|
|
14
14
|
flatNumberTemporary: string;
|
|
15
15
|
status: FlatStatus;
|
|
16
|
-
layoutId
|
|
16
|
+
layoutId?: number;
|
|
17
17
|
layout?: LayoutEntity;
|
|
18
|
-
complexId
|
|
18
|
+
complexId?: number;
|
|
19
19
|
complex?: ApartmentComplexEntity;
|
|
20
|
-
floorId
|
|
20
|
+
floorId?: number;
|
|
21
21
|
floor?: FloorEntity;
|
|
22
22
|
};
|