vector-shared 1.1.326 → 1.1.328

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.
Files changed (112) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/types/common/currency.value.interface.d.ts +2 -2
  3. package/dist/types/core/advert-source.type.d.ts +1 -1
  4. package/dist/types/core/apartment-complex-info.type.d.ts +4 -4
  5. package/dist/types/core/attention-required.type.d.ts +2 -2
  6. package/dist/types/core/attorney.type.d.ts +1 -1
  7. package/dist/types/core/attribute.type.d.ts +3 -3
  8. package/dist/types/core/build-company.type.d.ts +3 -3
  9. package/dist/types/core/call-redirect.type.d.ts +2 -2
  10. package/dist/types/core/call.type.d.ts +3 -3
  11. package/dist/types/core/customer-property-duplicate.type.d.ts +3 -3
  12. package/dist/types/core/customer-property.type.d.ts +18 -18
  13. package/dist/types/core/customer.type.d.ts +13 -13
  14. package/dist/types/core/deal-document.type.d.ts +5 -5
  15. package/dist/types/core/deal-participant.type.d.ts +5 -5
  16. package/dist/types/core/deal-transaction.type.d.ts +2 -2
  17. package/dist/types/core/deal-type.type.d.ts +1 -1
  18. package/dist/types/core/deal.type.d.ts +52 -52
  19. package/dist/types/core/duty.type.d.ts +1 -1
  20. package/dist/types/core/flat.type.d.ts +4 -4
  21. package/dist/types/core/floor.type.d.ts +2 -2
  22. package/dist/types/core/geo.type.d.ts +4 -4
  23. package/dist/types/core/google-contact.type.d.ts +2 -2
  24. package/dist/types/core/handling.type.d.ts +7 -7
  25. package/dist/types/core/image.type.d.ts +7 -7
  26. package/dist/types/core/layout.type.d.ts +3 -3
  27. package/dist/types/core/mismatch-aggregate.type.d.ts +1 -1
  28. package/dist/types/core/mismatch-decision.type.d.ts +2 -2
  29. package/dist/types/core/mismatch-reason.type.d.ts +2 -2
  30. package/dist/types/core/mismatch-report.type.d.ts +3 -3
  31. package/dist/types/core/notary.type.d.ts +1 -1
  32. package/dist/types/core/notification-preference.type.d.ts +1 -1
  33. package/dist/types/core/notification.type.d.ts +3 -3
  34. package/dist/types/core/office-center.type.d.ts +2 -2
  35. package/dist/types/core/office.type.d.ts +3 -3
  36. package/dist/types/core/property-document.type.d.ts +1 -1
  37. package/dist/types/core/property-image.type.d.ts +2 -2
  38. package/dist/types/core/property-seo.type.d.ts +3 -3
  39. package/dist/types/core/queue.type.d.ts +7 -7
  40. package/dist/types/core/request-presentation.type.d.ts +1 -1
  41. package/dist/types/core/request-property.type.d.ts +5 -5
  42. package/dist/types/core/section.type.d.ts +3 -3
  43. package/dist/types/core/street.type.d.ts +5 -5
  44. package/dist/types/core/telegram-chat.type.d.ts +2 -2
  45. package/dist/types/core/telegram-message.type.d.ts +2 -2
  46. package/dist/types/core/template-comment.type.d.ts +1 -1
  47. package/dist/types/core/template.type.d.ts +3 -3
  48. package/dist/types/core/topzone.type.d.ts +2 -2
  49. package/dist/types/core/uploaded-file-entity.type.d.ts +1 -1
  50. package/dist/types/core/user-action-log.type.d.ts +2 -2
  51. package/dist/types/core/user-attorney.type.d.ts +6 -6
  52. package/dist/types/core/user-phone.type.d.ts +1 -1
  53. package/dist/types/core/user-points-change.type.d.ts +5 -5
  54. package/dist/types/core/user-profile.type.d.ts +21 -21
  55. package/dist/types/core/user.type.d.ts +1 -1
  56. package/package.json +1 -1
  57. package/types/common/currency.value.interface.ts +2 -2
  58. package/types/core/advert-source.type.ts +1 -1
  59. package/types/core/apartment-complex-info.type.ts +4 -4
  60. package/types/core/attention-required.type.ts +2 -2
  61. package/types/core/attorney.type.ts +1 -1
  62. package/types/core/attribute.type.ts +3 -3
  63. package/types/core/build-company.type.ts +3 -3
  64. package/types/core/call-redirect.type.ts +2 -2
  65. package/types/core/call.type.ts +3 -3
  66. package/types/core/customer-property-duplicate.type.ts +3 -3
  67. package/types/core/customer-property.type.ts +18 -18
  68. package/types/core/customer.type.ts +13 -13
  69. package/types/core/deal-document.type.ts +5 -5
  70. package/types/core/deal-participant.type.ts +5 -5
  71. package/types/core/deal-transaction.type.ts +2 -2
  72. package/types/core/deal-type.type.ts +1 -1
  73. package/types/core/deal.type.ts +52 -52
  74. package/types/core/duty.type.ts +1 -1
  75. package/types/core/flat.type.ts +4 -4
  76. package/types/core/floor.type.ts +2 -2
  77. package/types/core/geo.type.ts +4 -4
  78. package/types/core/google-contact.type.ts +2 -2
  79. package/types/core/handling.type.ts +7 -7
  80. package/types/core/image.type.ts +7 -7
  81. package/types/core/layout.type.ts +3 -14
  82. package/types/core/mismatch-aggregate.type.ts +1 -1
  83. package/types/core/mismatch-decision.type.ts +2 -8
  84. package/types/core/mismatch-reason.type.ts +2 -2
  85. package/types/core/mismatch-report.type.ts +3 -9
  86. package/types/core/notary.type.ts +1 -5
  87. package/types/core/notification-preference.type.ts +1 -5
  88. package/types/core/notification.type.ts +3 -9
  89. package/types/core/office-center.type.ts +2 -12
  90. package/types/core/office.type.ts +3 -20
  91. package/types/core/property-document.type.ts +1 -1
  92. package/types/core/property-image.type.ts +2 -6
  93. package/types/core/property-seo.type.ts +3 -7
  94. package/types/core/queue.type.ts +7 -19
  95. package/types/core/realtor-number.type.ts +0 -4
  96. package/types/core/representation.type.ts +0 -8
  97. package/types/core/request-presentation.type.ts +1 -1
  98. package/types/core/request-property.type.ts +5 -13
  99. package/types/core/section.type.ts +3 -8
  100. package/types/core/street.type.ts +5 -16
  101. package/types/core/telegram-chat.type.ts +2 -5
  102. package/types/core/telegram-message.type.ts +2 -7
  103. package/types/core/template-comment.type.ts +1 -9
  104. package/types/core/template.type.ts +3 -3
  105. package/types/core/topzone.type.ts +2 -11
  106. package/types/core/uploaded-file-entity.type.ts +1 -4
  107. package/types/core/user-action-log.type.ts +5 -14
  108. package/types/core/user-attorney.type.ts +6 -6
  109. package/types/core/user-phone.type.ts +1 -1
  110. package/types/core/user-points-change.type.ts +5 -16
  111. package/types/core/user-profile.type.ts +21 -21
  112. package/types/core/user.type.ts +1 -1
@@ -30,57 +30,57 @@ import { DealType } from 'types/attributes';
30
30
  export type DealEntity = BaseEntity & {
31
31
  dealFormat: DealType;
32
32
  status: DealStatus;
33
- mortgageProgram?: MortgageProgram;
33
+ mortgageProgram: MortgageProgram | null;
34
34
  payer: DealPayer;
35
- realtySubtype: RealtySubtype;
35
+ realtySubtype: RealtySubtype | null;
36
36
  currency: Currency;
37
37
  agreementType: DealAgreementType;
38
- agreementSum?: number;
38
+ agreementSum: number | null;
39
39
  ownerPrice: number;
40
40
  initialServicesSum: number;
41
41
  servicesPrepaymentSum: number;
42
- minServicesSumByPriceList?: number;
43
- servicesSumWithOtherAgency?: number;
44
- servicesSumChangeReason?: string;
42
+ minServicesSumByPriceList: number | null;
43
+ servicesSumWithOtherAgency: number | null;
44
+ servicesSumChangeReason: string | null;
45
45
  changePriceReason: string;
46
46
  dealNumber: number;
47
- checkOutPledge?: number;
48
- checkOutPledgeReturnDate?: Date;
47
+ checkOutPledge: number | null;
48
+ checkOutPledgeReturnDate: Date | null;
49
49
  prepaymentDate: Date;
50
50
  initialSettlementDate: Date;
51
- changeInitialSettlementDateReason?: string;
51
+ changeInitialSettlementDateReason: string | null;
52
52
  currencyConvertCoefficient: number;
53
53
  prepaymentAmount: number;
54
54
  actualSettlementDate: Date;
55
55
  legalAddress: string;
56
- houseNumber?: number;
57
- houseNumberAdd?: number;
58
- houseNumberTemp?: string;
59
- apartmentNumber?: number;
60
- apartmentNumberAdd?: string;
61
- apartmentNumberTemp?: string;
62
- corps?: string;
56
+ houseNumber: number | null;
57
+ houseNumberAdd: number | null;
58
+ houseNumberTemp: string | null;
59
+ apartmentNumber: number | null;
60
+ apartmentNumberAdd: string | null;
61
+ apartmentNumberTemp: string | null;
62
+ corps: string | null;
63
63
  isPrepaymentForColleague: boolean;
64
64
  isPropertyNotInDb: boolean;
65
65
  buyers: DealBuyer[];
66
66
  sellers: DealSeller[];
67
- expenses?: DealExpense[];
68
- replacementBuyer?: DealBuyer;
69
- buyerPays?: string;
70
- sellerPays?: string;
71
- buyerPenaltyPercent?: number;
72
- sellerPenaltyPercent?: number;
73
- stockSum?: number;
74
- sellerMustHave?: string;
75
- newBuildingContractName?: string;
76
- newBuildingContractNumber?: string;
77
- newBuildingContractDate?: Date;
78
- keysTransferDate?: Date;
79
- paysInquiryDate?: Date;
67
+ expenses: DealExpense[] | null;
68
+ replacementBuyer: DealBuyer | null;
69
+ buyerPays: string | null;
70
+ sellerPays: string | null;
71
+ buyerPenaltyPercent: number | null;
72
+ sellerPenaltyPercent: number | null;
73
+ stockSum: number | null;
74
+ sellerMustHave: string | null;
75
+ newBuildingContractName: string | null;
76
+ newBuildingContractNumber: string | null;
77
+ newBuildingContractDate: Date | null;
78
+ keysTransferDate: Date | null;
79
+ paysInquiryDate: Date | null;
80
80
  inhabitorsInquiryDate: Date;
81
81
  notaryChoiceReason: string;
82
- breakReason?: string;
83
- form2AdditionalAgreementText?: string;
82
+ breakReason: string | null;
83
+ form2AdditionalAgreementText: string | null;
84
84
  valuationDescription: string;
85
85
  insuranceDescription: string;
86
86
  dealNumberSuffix: string;
@@ -93,27 +93,27 @@ export type DealEntity = BaseEntity & {
93
93
  packet: number;
94
94
  packetDescription: string;
95
95
  initialCommission: number;
96
- buyerServicesSum?: number;
97
- buyerServicesPrepaymentSum?: number;
98
- sellerServicesSum?: number;
99
- sellerServicesPrepaymentSum?: number;
100
- attorneyId?: number;
101
- dealTypeId?: number;
102
- geoId?: number;
103
- streetId?: number;
104
- propertyId?: number;
105
- requestId?: number;
106
- sellerRealtorId?: number;
107
- buyerRealtorId?: number;
108
- agencyId?: number;
109
- userId?: number;
110
- officeId?: number;
111
- notaryId?: number;
112
- appraiserId?: number;
113
- valuationId?: number;
114
- contractTypeId?: number;
115
- parentId?: number;
116
- userAttorneyId?: number;
96
+ buyerServicesSum: number | null;
97
+ buyerServicesPrepaymentSum: number | null;
98
+ sellerServicesSum: number | null;
99
+ sellerServicesPrepaymentSum: number | null;
100
+ attorneyId: number | null;
101
+ dealTypeId: number | null;
102
+ geoId: number | null;
103
+ streetId: number | null;
104
+ propertyId: number | null;
105
+ requestId: number | null;
106
+ sellerRealtorId: number | null;
107
+ buyerRealtorId: number | null;
108
+ agencyId: number | null;
109
+ userId: number | null;
110
+ officeId: number | null;
111
+ notaryId: number | null;
112
+ appraiserId: number | null;
113
+ valuationId: number | null;
114
+ contractTypeId: number | null;
115
+ parentId: number | null;
116
+ userAttorneyId: number | null;
117
117
  dealType?: DealTypeEntity;
118
118
  user?: UserEntity;
119
119
  geo?: GeoEntity;
@@ -7,7 +7,7 @@ export type DutyEntity = BaseEntity & {
7
7
  startTime: string;
8
8
  endTime: string;
9
9
  isDayOff: boolean;
10
- description?: string;
10
+ description: string | null;
11
11
  createdById: number;
12
12
  userId: number;
13
13
  officeId: number;
@@ -10,13 +10,13 @@ export type FlatEntity = BaseEntity & {
10
10
  flatNumber: number;
11
11
  basePrice: number;
12
12
  pricePerMeter: number;
13
- paymentCalculations?: Array<PaymentCalculation>;
13
+ paymentCalculations: Array<PaymentCalculation> | null;
14
14
  flatNumberTemporary: string;
15
15
  status: FlatStatus;
16
- layoutId?: number;
16
+ layoutId: number | null;
17
17
  layout?: LayoutEntity;
18
- complexId?: number;
18
+ complexId: number;
19
19
  complex?: ApartmentComplexEntity;
20
- floorId?: number;
20
+ floorId: number;
21
21
  floor?: FloorEntity;
22
22
  };
@@ -5,9 +5,9 @@ import { FlatEntity } from './flat.type';
5
5
 
6
6
  export type FloorEntity = BaseEntity & {
7
7
  floorNumber: number;
8
- imageId?: number;
8
+ imageId: number | null;
9
9
  plan?: ImageEntity;
10
10
  flats: FlatEntity[];
11
- sectionId?: number;
11
+ sectionId: number;
12
12
  section?: SectionEntity;
13
13
  };
@@ -16,10 +16,10 @@ export type GeoEntity = BaseEntity & {
16
16
  declension: MultiLanguage;
17
17
  alias: string;
18
18
  lvl: number;
19
- lft?: number;
20
- rgt?: number;
21
- lat?: string;
22
- lng?: string;
19
+ lft: number | null;
20
+ rgt: number | null;
21
+ lat: string | null;
22
+ lng: string | null;
23
23
  type: GeoType;
24
24
  searchText?: string;
25
25
  polygon?: { type: string; coordinates: number[][][] };
@@ -5,8 +5,8 @@ import { GoogleContactType } from '../google/google-contact-type.enum';
5
5
 
6
6
  export type GoogleContactEntity = BaseEntity & {
7
7
  email: string;
8
- relatedUserId?: number;
9
- relatedCustomerId?: number;
8
+ relatedUserId: number | null;
9
+ relatedCustomerId: number | null;
10
10
  resourceName: string;
11
11
  contactType: GoogleContactType;
12
12
  relatedUser?: UserEntity;
@@ -9,21 +9,21 @@ import { CustomerRequestEntity } from './customer-request.type';
9
9
  import { UserPointsChangeEntity } from './user-points-change.type';
10
10
 
11
11
  export type HandlingEntity = BaseEntity & {
12
- isBlackList?: boolean;
13
- archiveAnnotation?: string | null;
14
- callId?: number;
12
+ isBlackList: boolean;
13
+ archiveAnnotation: string | null;
14
+ callId: number | null;
15
15
  type: number;
16
16
  recipient: number;
17
- readAt?: string;
17
+ readAt: string | null;
18
18
  annotation: string | null;
19
19
  name: string;
20
20
  country: string;
21
21
  phoneNumber: string;
22
22
  realtorId: number;
23
23
  createdById: number;
24
- handledById?: number;
25
- requestId?: number;
26
- propertyId?: number;
24
+ handledById: number | null;
25
+ requestId: number | null;
26
+ propertyId: number | null;
27
27
  sourceId: number;
28
28
  archiveReasonId: number | null;
29
29
  archiveReason?: ArchiveReasonEntity;
@@ -12,11 +12,11 @@ export type ImageEntity = BaseEntity & {
12
12
  url: string;
13
13
  watermarkedKey: string | null;
14
14
  watermarkedUrl: string;
15
- propertyImage: PropertyImageEntity;
16
- propertyDocument: PropertyDocumentEntity;
17
- complexImage: ApartmentComplexImageEntity;
18
- sectionImage: SectionEntity;
19
- floorImage: FloorEntity;
20
- buildCompany: BuildCompanyEntity;
21
- layout: LayoutEntity;
15
+ propertyImage?: PropertyImageEntity;
16
+ propertyDocument?: PropertyDocumentEntity;
17
+ complexImage?: ApartmentComplexImageEntity;
18
+ sectionImage?: SectionEntity;
19
+ floorImage?: FloorEntity;
20
+ buildCompany?: BuildCompanyEntity;
21
+ layout?: LayoutEntity;
22
22
  };
@@ -6,26 +6,15 @@ import { LayoutTypes } from '../layout/layout.types.enum';
6
6
 
7
7
  export type LayoutEntity = BaseEntity & {
8
8
  name: string;
9
-
10
9
  type: LayoutTypes;
11
-
12
10
  rooms: number;
13
-
14
11
  numberOfLevels: number;
15
-
16
12
  square: number;
17
-
18
13
  livingSquare: number;
19
-
20
14
  kitchenSquare: number;
21
-
22
- imageId: number;
23
-
24
- image: ImageEntity;
25
-
26
- complexId?: number;
27
-
15
+ imageId: number | null;
16
+ complexId: number | null;
17
+ image?: ImageEntity;
28
18
  complex?: ApartmentComplexEntity;
29
-
30
19
  flats?: FlatEntity[];
31
20
  };
@@ -3,6 +3,6 @@ import { CustomerPropertyEntity } from './customer-property.type';
3
3
 
4
4
  export type MismatchAggregateEntity = BaseEntity & {
5
5
  count: number;
6
- customerProperty: CustomerPropertyEntity;
6
+ customerProperty?: CustomerPropertyEntity;
7
7
  customerPropertyId: number;
8
8
  };
@@ -5,16 +5,10 @@ import { MismatchReasonEntity } from './mismatch-reason.type';
5
5
 
6
6
  export type MismatchDecisionEntity = BaseEntity & {
7
7
  comment: string;
8
-
9
8
  customerProperty?: CustomerPropertyEntity;
10
-
11
9
  customerPropertyId: number;
12
-
13
- submittedAs: UserEntity;
14
-
10
+ submittedAs?: UserEntity;
15
11
  submittedAsId: number;
16
-
17
- reason: MismatchReasonEntity;
18
-
12
+ reason?: MismatchReasonEntity;
19
13
  reasonId: number;
20
14
  };
@@ -5,6 +5,6 @@ import { MismatchReportEntity } from './mismatch-report.type';
5
5
 
6
6
  export type MismatchReasonEntity = BaseEntity & {
7
7
  text: MultiLanguage;
8
- mismatchDecision: MismatchDecisionEntity[];
9
- mismatchReport: MismatchReportEntity[];
8
+ mismatchDecision?: MismatchDecisionEntity[];
9
+ mismatchReport?: MismatchReportEntity[];
10
10
  };
@@ -4,17 +4,11 @@ import { MismatchReasonEntity } from './mismatch-reason.type';
4
4
  import { CustomerPropertyEntity } from './customer-property.type';
5
5
 
6
6
  export type MismatchReportEntity = BaseEntity & {
7
- submittedAs: UserEntity;
8
-
7
+ submittedAs?: UserEntity;
9
8
  submittedAsId: number;
10
-
11
- reason: MismatchReasonEntity;
12
-
9
+ reason?: MismatchReasonEntity;
13
10
  reasonId: number;
14
-
15
- customerProperty: CustomerPropertyEntity;
16
-
11
+ customerProperty?: CustomerPropertyEntity;
17
12
  customerPropertyId: number;
18
-
19
13
  isActive: boolean;
20
14
  };
@@ -6,12 +6,8 @@ import { NotaryContacts } from '../notary/notary-contacts.type';
6
6
 
7
7
  export type NotaryEntity = BaseEntity & {
8
8
  deals: DealEntity[];
9
-
10
- geoId?: number;
11
-
9
+ geoId: number | null;
12
10
  geo?: GeoEntity;
13
-
14
11
  name: MultiLanguage;
15
-
16
12
  contacts: NotaryContacts;
17
13
  };
@@ -4,12 +4,8 @@ import { UserEntity } from './user.type';
4
4
  export type NotificationPreferenceEntity = BaseEntity & {
5
5
  callReceived: boolean;
6
6
  handlingCreated: boolean;
7
-
8
7
  buyerRegistered: boolean;
9
-
10
8
  sellerRegistered: boolean;
11
-
12
9
  newPromotions: boolean;
13
-
14
- user: UserEntity;
10
+ user?: UserEntity;
15
11
  };
@@ -4,16 +4,10 @@ import { NotificationMeta, NotificationType } from '../notifications';
4
4
 
5
5
  export type NotificationEntity = BaseEntity & {
6
6
  meta: NotificationMeta;
7
-
8
7
  scheduledAt: Date;
9
-
10
- sent?: boolean;
11
-
8
+ sent: boolean;
12
9
  type: NotificationType;
13
-
14
- seenAt?: Date;
15
-
16
- userId?: number;
17
-
10
+ seenAt: Date | null;
11
+ userId: number;
18
12
  user?: UserEntity;
19
13
  };
@@ -7,24 +7,14 @@ import { RepresentationEntity } from './representation.type';
7
7
 
8
8
  export type OfficeCenterEntity = BaseEntity & {
9
9
  name: MultiLanguage;
10
-
11
10
  alias: string;
12
-
13
11
  weight: number;
14
-
15
- lng?: string;
16
-
17
- lat?: string;
18
-
12
+ lng: string | null;
13
+ lat: string | null;
19
14
  contacts: CenterContacts;
20
-
21
15
  schedule: Schedule;
22
-
23
16
  group: MultiLanguage;
24
-
25
17
  offices?: OfficeEntity[];
26
-
27
18
  representationId: number;
28
-
29
19
  representation?: RepresentationEntity;
30
20
  };
@@ -15,38 +15,21 @@ import { ServiceConfig } from '../offices';
15
15
 
16
16
  export type OfficeEntity = BaseEntity & {
17
17
  officeNumber: number;
18
-
19
18
  email: string;
20
-
21
19
  isActive: boolean;
22
-
23
20
  isAgency: boolean;
24
-
25
21
  serviceConfig: ServiceConfig;
26
-
27
22
  contacts: OfficeContacts;
28
-
29
23
  officeCenterId: number;
30
-
31
24
  customerBucketScope: CustomerBucketScope;
32
-
33
25
  users?: UserOfficeEntity[];
34
-
35
26
  officeCenter?: OfficeCenterEntity;
36
-
37
- norms: EmployeeNormEntity[];
38
-
27
+ norms?: EmployeeNormEntity[];
39
28
  buckets?: CustomerBucketEntity[];
40
-
41
29
  redirects?: CallRedirectEntity[];
42
-
43
- deals: DealEntity[];
44
-
45
- dealParticipants: DealParticipantEntity[];
46
-
30
+ deals?: DealEntity[];
31
+ dealParticipants?: DealParticipantEntity[];
47
32
  templates?: TemplateOfficeEntity[];
48
-
49
33
  feedbacks?: FeedbackEntity[];
50
-
51
34
  realtorNumbers?: RealtorNumberEntity[];
52
35
  };
@@ -5,7 +5,7 @@ import { ImageEntity } from './image.type';
5
5
  export type PropertyDocumentEntity = BaseEntity & {
6
6
  category: string;
7
7
  propertyId: number;
8
- imageId?: number;
8
+ imageId: number | null;
9
9
  property?: CustomerPropertyEntity;
10
10
  image?: ImageEntity;
11
11
  };
@@ -5,14 +5,10 @@ import { ImageCategory } from '../image/image-category.enum';
5
5
 
6
6
  export type PropertyImageEntity = UniqueIdEntity & {
7
7
  category: ImageCategory;
8
-
9
8
  showOnSite: boolean;
10
-
11
9
  isMain: boolean;
12
-
13
10
  imageId: number;
14
-
15
- image: ImageEntity;
11
+ image?: ImageEntity;
16
12
  propertyId: number;
17
- property: CustomerPropertyEntity;
13
+ property?: CustomerPropertyEntity;
18
14
  };
@@ -4,12 +4,8 @@ import { Language, MultiLanguage } from '../common';
4
4
 
5
5
  export type PropertySeoEntity = UniqueIdEntity & {
6
6
  lang: Language;
7
-
8
- mainAdvantage?: string;
9
-
10
- description?: MultiLanguage;
11
-
12
- title?: MultiLanguage;
13
-
7
+ mainAdvantage: string | null;
8
+ description: MultiLanguage | null;
9
+ title: MultiLanguage | null;
14
10
  property?: CustomerPropertyEntity;
15
11
  };
@@ -5,28 +5,16 @@ import { SectionEntity } from './section.type';
5
5
 
6
6
  export type QueueEntity = BaseEntity & {
7
7
  name: string;
8
-
9
8
  houseNumber: number;
10
-
11
9
  inOperation: boolean;
12
-
13
10
  startDate: Date;
14
-
15
11
  finishDate: Date;
16
-
17
- houseNumberSecond?: string;
18
-
19
- houseNumberTemporary?: string;
20
-
21
- housingNumber?: string;
22
-
23
- streetId?: number;
24
-
25
- street: StreetEntity;
26
-
27
- complexId?: number;
28
-
12
+ houseNumberSecond: string | null;
13
+ houseNumberTemporary: string | null;
14
+ housingNumber: string | null;
15
+ streetId: number | null;
16
+ complexId: number | null;
17
+ street?: StreetEntity;
29
18
  complex?: ApartmentComplexEntity;
30
-
31
- sections: SectionEntity[];
19
+ sections?: SectionEntity[];
32
20
  };
@@ -4,12 +4,8 @@ import { OfficeEntity } from './office.type';
4
4
 
5
5
  export type RealtorNumberEntity = UniqueIdEntity & {
6
6
  value: number;
7
-
8
7
  officeId: number;
9
-
10
8
  office: OfficeEntity;
11
-
12
9
  userId: number;
13
-
14
10
  user: UserEntity;
15
11
  };
@@ -7,20 +7,12 @@ import { TelegramChatEntity } from './telegram-chat.type';
7
7
 
8
8
  export type RepresentationEntity = BaseEntity & {
9
9
  fullName: string;
10
-
11
10
  geoId: number;
12
-
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
  };
@@ -6,5 +6,5 @@ export type RequestPresentationEntity = UniqueIdEntity & {
6
6
  requestSelectionId: number;
7
7
  requestSelection?: CustomerRequestSelectionEntity;
8
8
  properties: RequestPresentationPropertyEntity[];
9
- createdAt?: Date;
9
+ createdAt: Date | null;
10
10
  };
@@ -4,20 +4,12 @@ import { CustomerRequestSelectionEntity } from './customer-request-selection.typ
4
4
 
5
5
  export type RequestPropertyEntity = BaseEntity & {
6
6
  requestSelectionId: number;
7
-
8
7
  requestSelection?: CustomerRequestSelectionEntity;
9
-
10
8
  propertyId: number;
11
-
12
9
  customerProperty?: CustomerPropertyEntity;
13
-
14
- isAddedManually?: boolean;
15
-
16
- isRejected?: boolean;
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
  };
@@ -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
  };