vector-shared 1.1.327 → 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 (110) 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/package.json +1 -1
  56. package/types/common/currency.value.interface.ts +2 -2
  57. package/types/core/advert-source.type.ts +1 -1
  58. package/types/core/apartment-complex-info.type.ts +4 -4
  59. package/types/core/attention-required.type.ts +2 -2
  60. package/types/core/attorney.type.ts +1 -1
  61. package/types/core/attribute.type.ts +3 -3
  62. package/types/core/build-company.type.ts +3 -3
  63. package/types/core/call-redirect.type.ts +2 -2
  64. package/types/core/call.type.ts +3 -3
  65. package/types/core/customer-property-duplicate.type.ts +3 -3
  66. package/types/core/customer-property.type.ts +18 -18
  67. package/types/core/customer.type.ts +13 -13
  68. package/types/core/deal-document.type.ts +5 -5
  69. package/types/core/deal-participant.type.ts +5 -5
  70. package/types/core/deal-transaction.type.ts +2 -2
  71. package/types/core/deal-type.type.ts +1 -1
  72. package/types/core/deal.type.ts +52 -52
  73. package/types/core/duty.type.ts +1 -1
  74. package/types/core/flat.type.ts +4 -4
  75. package/types/core/floor.type.ts +2 -2
  76. package/types/core/geo.type.ts +4 -4
  77. package/types/core/google-contact.type.ts +2 -2
  78. package/types/core/handling.type.ts +7 -7
  79. package/types/core/image.type.ts +7 -7
  80. package/types/core/layout.type.ts +3 -14
  81. package/types/core/mismatch-aggregate.type.ts +1 -1
  82. package/types/core/mismatch-decision.type.ts +2 -8
  83. package/types/core/mismatch-reason.type.ts +2 -2
  84. package/types/core/mismatch-report.type.ts +3 -9
  85. package/types/core/notary.type.ts +1 -5
  86. package/types/core/notification-preference.type.ts +1 -5
  87. package/types/core/notification.type.ts +3 -9
  88. package/types/core/office-center.type.ts +2 -12
  89. package/types/core/office.type.ts +3 -20
  90. package/types/core/property-document.type.ts +1 -1
  91. package/types/core/property-image.type.ts +2 -6
  92. package/types/core/property-seo.type.ts +3 -7
  93. package/types/core/queue.type.ts +7 -19
  94. package/types/core/realtor-number.type.ts +0 -4
  95. package/types/core/representation.type.ts +0 -8
  96. package/types/core/request-presentation.type.ts +1 -1
  97. package/types/core/request-property.type.ts +5 -13
  98. package/types/core/section.type.ts +3 -8
  99. package/types/core/street.type.ts +5 -16
  100. package/types/core/telegram-chat.type.ts +2 -5
  101. package/types/core/telegram-message.type.ts +2 -7
  102. package/types/core/template-comment.type.ts +1 -9
  103. package/types/core/template.type.ts +3 -3
  104. package/types/core/topzone.type.ts +2 -11
  105. package/types/core/uploaded-file-entity.type.ts +1 -4
  106. package/types/core/user-action-log.type.ts +5 -14
  107. package/types/core/user-attorney.type.ts +6 -6
  108. package/types/core/user-phone.type.ts +1 -1
  109. package/types/core/user-points-change.type.ts +5 -16
  110. package/types/core/user-profile.type.ts +21 -21
@@ -23,11 +23,11 @@ export type OfficeEntity = BaseEntity & {
23
23
  customerBucketScope: CustomerBucketScope;
24
24
  users?: UserOfficeEntity[];
25
25
  officeCenter?: OfficeCenterEntity;
26
- norms: EmployeeNormEntity[];
26
+ norms?: EmployeeNormEntity[];
27
27
  buckets?: CustomerBucketEntity[];
28
28
  redirects?: CallRedirectEntity[];
29
- deals: DealEntity[];
30
- dealParticipants: DealParticipantEntity[];
29
+ deals?: DealEntity[];
30
+ dealParticipants?: DealParticipantEntity[];
31
31
  templates?: TemplateOfficeEntity[];
32
32
  feedbacks?: FeedbackEntity[];
33
33
  realtorNumbers?: RealtorNumberEntity[];
@@ -4,7 +4,7 @@ import { ImageEntity } from './image.type';
4
4
  export type PropertyDocumentEntity = BaseEntity & {
5
5
  category: string;
6
6
  propertyId: number;
7
- imageId?: number;
7
+ imageId: number | null;
8
8
  property?: CustomerPropertyEntity;
9
9
  image?: ImageEntity;
10
10
  };
@@ -7,7 +7,7 @@ export type PropertyImageEntity = UniqueIdEntity & {
7
7
  showOnSite: boolean;
8
8
  isMain: boolean;
9
9
  imageId: number;
10
- image: ImageEntity;
10
+ image?: ImageEntity;
11
11
  propertyId: number;
12
- property: CustomerPropertyEntity;
12
+ property?: CustomerPropertyEntity;
13
13
  };
@@ -3,8 +3,8 @@ import { CustomerPropertyEntity } from './customer-property.type';
3
3
  import { Language, MultiLanguage } from '../common';
4
4
  export type PropertySeoEntity = UniqueIdEntity & {
5
5
  lang: Language;
6
- mainAdvantage?: string;
7
- description?: MultiLanguage;
8
- title?: MultiLanguage;
6
+ mainAdvantage: string | null;
7
+ description: MultiLanguage | null;
8
+ title: MultiLanguage | null;
9
9
  property?: CustomerPropertyEntity;
10
10
  };
@@ -8,12 +8,12 @@ export type QueueEntity = BaseEntity & {
8
8
  inOperation: boolean;
9
9
  startDate: Date;
10
10
  finishDate: Date;
11
- houseNumberSecond?: string;
12
- houseNumberTemporary?: string;
13
- housingNumber?: string;
14
- streetId?: number;
15
- street: StreetEntity;
16
- complexId?: number;
11
+ houseNumberSecond: string | null;
12
+ houseNumberTemporary: string | null;
13
+ housingNumber: string | null;
14
+ streetId: number | null;
15
+ complexId: number | null;
16
+ street?: StreetEntity;
17
17
  complex?: ApartmentComplexEntity;
18
- sections: SectionEntity[];
18
+ sections?: SectionEntity[];
19
19
  };
@@ -5,5 +5,5 @@ export type RequestPresentationEntity = UniqueIdEntity & {
5
5
  requestSelectionId: number;
6
6
  requestSelection?: CustomerRequestSelectionEntity;
7
7
  properties: RequestPresentationPropertyEntity[];
8
- createdAt?: Date;
8
+ createdAt: Date | null;
9
9
  };
@@ -6,9 +6,9 @@ export type RequestPropertyEntity = BaseEntity & {
6
6
  requestSelection?: CustomerRequestSelectionEntity;
7
7
  propertyId: number;
8
8
  customerProperty?: CustomerPropertyEntity;
9
- isAddedManually?: boolean;
10
- isRejected?: boolean;
11
- isMain?: boolean;
12
- createdAt?: Date;
13
- updatedAt?: Date;
9
+ isAddedManually: boolean;
10
+ isRejected: boolean;
11
+ isMain: boolean;
12
+ createdAt: Date | null;
13
+ updatedAt: Date | null;
14
14
  };
@@ -4,9 +4,9 @@ import { FloorEntity } from './floor.type';
4
4
  import { QueueEntity } from './queue.type';
5
5
  export type SectionEntity = BaseEntity & {
6
6
  name: string;
7
- imageId?: number;
7
+ imageId: number | null;
8
8
  plan?: ImageEntity;
9
- queueId?: number;
9
+ queueId: number | null;
10
10
  queue?: QueueEntity;
11
- floors: FloorEntity[];
11
+ floors?: FloorEntity[];
12
12
  };
@@ -8,17 +8,17 @@ import { QueueEntity } from './queue.type';
8
8
  export type StreetEntity = BaseEntity & {
9
9
  name: MultiLanguage;
10
10
  alias: string;
11
- searchText?: string;
12
- isOldStreet?: boolean;
11
+ searchText: string | null;
12
+ isOldStreet: boolean;
13
13
  names?: MultiLanguageArray;
14
14
  line?: {
15
15
  type: string;
16
16
  coordinates: number[][][];
17
17
  };
18
- geoId?: number;
18
+ geoId: number | null;
19
19
  geo?: GeoEntity;
20
20
  customerProperties?: CustomerPropertyEntity[];
21
21
  customerRequests?: CustomerRequestEntity[];
22
- deals: DealEntity[];
23
- queues: QueueEntity[];
22
+ deals?: DealEntity[];
23
+ queues?: QueueEntity[];
24
24
  };
@@ -3,6 +3,6 @@ import { RepresentationEntity } from './representation.type';
3
3
  export type TelegramChatEntity = {
4
4
  chatId: number;
5
5
  representationId: number;
6
- representation: RepresentationEntity;
7
- messages: TelegramMessageEntity[];
6
+ representation?: RepresentationEntity;
7
+ messages?: TelegramMessageEntity[];
8
8
  };
@@ -3,8 +3,8 @@ import { CustomerPropertyEntity } from './customer-property.type';
3
3
  export type TelegramMessageEntity = {
4
4
  messageId: number;
5
5
  chatId: number;
6
- chat: TelegramChatEntity;
6
+ chat?: TelegramChatEntity;
7
7
  propertyId: number;
8
- property: CustomerPropertyEntity;
8
+ property?: CustomerPropertyEntity;
9
9
  isMain: boolean;
10
10
  };
@@ -9,7 +9,7 @@ export type TemplateCommentEntity = BaseEntity & {
9
9
  templateId: number;
10
10
  template?: TemplateEntity;
11
11
  parentId: number | null;
12
- parent?: TemplateCommentEntity | null;
12
+ parent?: TemplateCommentEntity;
13
13
  children?: TemplateCommentEntity[];
14
14
  reactions?: TemplateCommentReactionEntity[];
15
15
  };
@@ -11,7 +11,7 @@ import { TemplateEnum } from '../template/template.enum';
11
11
  import { TemplateContentEnum } from '../template/template-content.enum';
12
12
  export type TemplateEntity = BaseEntity & {
13
13
  backgroundColor: string;
14
- backgroundImage?: string | null;
14
+ backgroundImage: string | null;
15
15
  textColor: string;
16
16
  category: TemplateEnum;
17
17
  title: MultiLanguage;
@@ -25,8 +25,8 @@ export type TemplateEntity = BaseEntity & {
25
25
  contentType: TemplateContentEnum;
26
26
  description: MultiLanguage;
27
27
  maxParticipantsCount?: number;
28
- startAt?: Date;
29
- endAt?: Date;
28
+ startAt: Date | null;
29
+ endAt: Date | null;
30
30
  comments?: TemplateCommentEntity[];
31
31
  roles?: TemplateRoleEntity[];
32
32
  offices?: TemplateOfficeEntity[];
@@ -9,8 +9,8 @@ export type TopzoneEntity = BaseEntity & {
9
9
  name: MultiLanguage;
10
10
  declension: MultiLanguage;
11
11
  alias: string;
12
- lat?: string;
13
- lng?: string;
12
+ lat: string | null;
13
+ lng: string | null;
14
14
  bounds?: Bounds;
15
15
  customerProperties?: CustomerPropertyEntity[];
16
16
  customerRequests?: CustomerRequestEntity[];
@@ -5,5 +5,5 @@ export type UploadedFileEntity = BaseEntity & {
5
5
  key: string;
6
6
  url: string;
7
7
  type: UploadedFileType;
8
- feedbackFile: FeedbackFileEntity;
8
+ feedbackFile?: FeedbackFileEntity;
9
9
  };
@@ -2,8 +2,8 @@ import { BaseEntity } from './base-entity.type';
2
2
  import { UserEntity } from './user.type';
3
3
  export type UserActionsLogEntity = BaseEntity & {
4
4
  modelName: string;
5
- entityId?: number | null;
6
- entityKey?: string | null;
5
+ entityId: number | null;
6
+ entityKey: string | null;
7
7
  snapshotBeforeAction: any;
8
8
  snapshotAfterAction: any;
9
9
  children?: string;
@@ -5,9 +5,9 @@ import { CustomerPropertyEntity } from './customer-property.type';
5
5
  import { DealEntity } from './deal.type';
6
6
  import { UserAttorneyType } from '../user';
7
7
  export type UserAttorneyEntity = BaseEntity & {
8
- vchasnoApiKey?: string;
9
- vchasnoEmail?: string;
10
- vchasnoInn?: string;
8
+ vchasnoApiKey: string | null;
9
+ vchasnoEmail: string | null;
10
+ vchasnoInn: string | null;
11
11
  userId: number;
12
12
  attorneyId: number;
13
13
  fullName: string;
@@ -20,7 +20,7 @@ export type UserAttorneyEntity = BaseEntity & {
20
20
  edrpouRecordNumber: string;
21
21
  type: UserAttorneyType;
22
22
  user?: UserEntity;
23
- attorney: AttorneyEntity;
24
- deals: DealEntity[];
25
- properties: CustomerPropertyEntity[];
23
+ attorney?: AttorneyEntity;
24
+ deals?: DealEntity[];
25
+ properties?: CustomerPropertyEntity[];
26
26
  };
@@ -3,7 +3,7 @@ import { UserEntity } from './user.type';
3
3
  export type UserPhoneEntity = BaseEntity & {
4
4
  country: string;
5
5
  phoneNumber: string;
6
- isRedirect?: boolean;
6
+ isRedirect: boolean;
7
7
  userId: number;
8
8
  user?: UserEntity;
9
9
  };
@@ -9,11 +9,11 @@ export type UserPointsChangeEntity = BaseEntity & {
9
9
  amount: number;
10
10
  event: UserPointsEvent;
11
11
  userId: number;
12
- handlingId?: number;
13
- propertyId?: number;
14
- customerId?: number;
15
- requestId?: number;
16
- user: UserEntity;
12
+ handlingId: number | null;
13
+ propertyId: number | null;
14
+ customerId: number | null;
15
+ requestId: number | null;
16
+ user?: UserEntity;
17
17
  handling?: HandlingEntity;
18
18
  property?: CustomerPropertyEntity;
19
19
  customer?: CustomerEntity;
@@ -11,28 +11,28 @@ import { Children } from '../user-profile/children.type';
11
11
  export type UserProfileEntity = BaseEntity & {
12
12
  firstName: MultiLanguage;
13
13
  secondName: MultiLanguage;
14
- surname?: MultiLanguage;
14
+ surname: MultiLanguage | null;
15
15
  male: Male;
16
- birthDate?: Date;
17
- birthPlace?: string;
18
- photoUrl?: string;
19
- graduatedAt?: Date;
20
- address?: string;
21
- passportRegistration?: string;
22
- passport?: string;
23
- inn?: string;
24
- passportGiven?: string;
25
- languages?: string[];
26
- notes?: Record<string, string>;
27
- education?: Education[];
28
- previousJobs?: PreviousJob[];
29
- auto?: boolean;
30
- criminal?: boolean;
31
- criminalDescription?: string;
32
- whyRealty?: string;
33
- whyAtlanta?: string;
34
- hobby?: string;
35
- startWorkingAt?: Date;
16
+ birthDate: Date | null;
17
+ birthPlace: string | null;
18
+ photoUrl: string | null;
19
+ graduatedAt: Date | null;
20
+ address: string | null;
21
+ passportRegistration: string | null;
22
+ passport: string | null;
23
+ inn: string | null;
24
+ passportGiven: string | null;
25
+ languages: string[];
26
+ notes: Record<string, string>;
27
+ education: Education[];
28
+ previousJobs: PreviousJob[];
29
+ auto: boolean;
30
+ criminal: boolean;
31
+ criminalDescription: string | null;
32
+ whyRealty: string | null;
33
+ whyAtlanta: string | null;
34
+ hobby: string | null;
35
+ startWorkingAt: Date | null;
36
36
  social?: Socials;
37
37
  children?: Children[];
38
38
  married: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vector-shared",
3
- "version": "1.1.327",
3
+ "version": "1.1.328",
4
4
  "description": "Private shared package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- export interface CurrencyValue {
1
+ export type CurrencyValue = {
2
2
  name: string;
3
3
  value: number;
4
- }
4
+ };
@@ -12,7 +12,7 @@ export type AdvertSourceEntity = UniqueIdEntity & {
12
12
  sort: number;
13
13
  receiveType: number | null;
14
14
  insertType: number | null;
15
- parentId?: number;
15
+ parentId: number | null;
16
16
  isActive: boolean;
17
17
  parent?: AdvertSourceEntity;
18
18
  subCategories: AdvertSourceEntity[];
@@ -11,11 +11,11 @@ export type ApartmentComplexInfoEntity = BaseEntity & {
11
11
  attributes: ApartmentInfoAttributes;
12
12
  manager: Manager;
13
13
  discounts: string[];
14
- agentInfo?: string;
15
- expressions?: Expression[] | null;
14
+ agentInfo: string | null;
15
+ expressions: Expression[] | null;
16
16
  sort: number;
17
17
  showOnSite: boolean;
18
- video?: string;
19
- site?: string;
18
+ video: string | null;
19
+ site: string | null;
20
20
  apartmentComplex?: ApartmentComplexEntity;
21
21
  };
@@ -4,6 +4,6 @@ import { AttentionRequiredEntityEnum as AttentionRequiredEntityEnum } from '../c
4
4
  export type AttentionRequiredEntity = BaseEntity & {
5
5
  entityType: AttentionRequiredEntityEnum;
6
6
  entityId: number;
7
- reason?: string;
8
- handledAt?: Date;
7
+ reason: string | null;
8
+ handledAt: Date | null;
9
9
  };
@@ -5,7 +5,7 @@ import { UserAttorneyEntity } from './user-attorney.type';
5
5
 
6
6
  export type AttorneyEntity = BaseEntity & {
7
7
  name: MultiLanguage;
8
- vchasnoApiKey?: string;
8
+ vchasnoApiKey: string | null;
9
9
  edrpo: string | null;
10
10
  email: string | null;
11
11
  account: string | null;
@@ -12,14 +12,14 @@ export type AttributeEntity = TimeMetricEntity & {
12
12
  key: string;
13
13
  name: MultiLanguage;
14
14
  shortName: MultiLanguage;
15
- description?: string | null;
16
- vectorId?: number;
15
+ description: string | null;
16
+ vectorId: number | null;
17
17
  type: AttributeType;
18
18
  config: AttributeConfigType;
19
19
  estateType?: RealtyType[];
20
20
  apartmentType?: ApartmentType[];
21
21
  objectType?: ObjectType[];
22
- isNewBuilding?: boolean;
22
+ isNewBuilding: boolean;
23
23
  values?: AttributeValueEntity[];
24
24
  representations?: AttributeRepresentationEntity[];
25
25
  };
@@ -8,9 +8,9 @@ export type BuildCompanyEntity = BaseEntity & {
8
8
  name: string;
9
9
  alias: string;
10
10
  description: MultiLanguage;
11
- imageId?: number;
11
+ imageId: number | null;
12
12
  image: ImageEntity;
13
- site?: string;
14
- currencies?: CurrencyValue[];
13
+ site: string | null;
14
+ currencies: CurrencyValue[] | null;
15
15
  apartmentComplexes: ApartmentComplexEntity[];
16
16
  };
@@ -11,9 +11,9 @@ export type CallRedirectEntity = BaseEntity & {
11
11
  replacementNumber: boolean;
12
12
  sourceId: number;
13
13
  source?: AdvertSourceEntity;
14
- officeId?: number;
14
+ officeId: number | null;
15
15
  office?: OfficeEntity;
16
- userId?: number;
16
+ userId: number | null;
17
17
  user?: UserEntity;
18
18
  calls?: CallEntity[];
19
19
  };
@@ -5,11 +5,11 @@ import { HandlingEntity } from './handling.type';
5
5
  import { CallData } from '../call/call-data.type';
6
6
 
7
7
  export type CallEntity = UniqueIdEntity & {
8
- callValue?: number;
8
+ callValue: number | null;
9
9
  sourcePhone: string;
10
10
  fromPhone: string;
11
- callType?: number;
12
- timeCreate?: string;
11
+ callType: number | null;
12
+ timeCreate: string | null;
13
13
  callData: CallData;
14
14
  redirectId: number;
15
15
  sourceId: number;
@@ -7,8 +7,8 @@ export type CustomerPropertyDuplicateEntity = BaseEntity & {
7
7
  original: CustomerPropertyEntity;
8
8
  duplicate: CustomerPropertyEntity;
9
9
  status: CustomerPropertyDuplicateStatus;
10
- reviewStartedAt?: Date;
11
- comment?: string;
12
- reviewedById?: number;
10
+ reviewStartedAt: Date | null;
11
+ comment: string | null;
12
+ reviewedById: number | null;
13
13
  reviewedBy?: UserEntity;
14
14
  };
@@ -40,28 +40,28 @@ export { RealtySubtype };
40
40
  export type CustomerPropertyEntity = BaseEntity & {
41
41
  dealType: DealType;
42
42
  realtyType: RealtyType;
43
- realtySubtype: RealtySubtype;
43
+ realtySubtype: RealtySubtype | null;
44
44
  registrationType: RegistrationType;
45
- showOnSite?: boolean;
45
+ showOnSite: boolean;
46
46
  hasInspection: boolean;
47
- recipient?: number;
48
- streetMark?: string;
49
- houseNumber?: number;
50
- houseNumberAdd?: number;
51
- houseNumberTemp?: string;
52
- apartmentNumber?: number;
53
- apartmentNumberAdd?: string;
54
- apartmentNumberTemp?: string;
55
- landNumber?: number;
56
- fieldNumber?: number;
57
- geoArrNumber?: number;
58
- corps?: string;
47
+ recipient: number | null;
48
+ streetMark: string | null;
49
+ houseNumber: number | null;
50
+ houseNumberAdd: number | null;
51
+ houseNumberTemp: string | null;
52
+ apartmentNumber: number | null;
53
+ apartmentNumberAdd: string | null;
54
+ apartmentNumberTemp: string | null;
55
+ landNumber: number | null;
56
+ fieldNumber: number | null;
57
+ geoArrNumber: number | null;
58
+ corps: string | null;
59
59
  attributes: CustomerPropertyAttributes;
60
60
  description: MultiLanguage;
61
- additionalOwners?: CustomerPropertyOwner[];
62
- cadastralNumber?: CadastralNumber;
63
- lng?: string;
64
- lat?: string;
61
+ additionalOwners: CustomerPropertyOwner[];
62
+ cadastralNumber: CadastralNumber | null;
63
+ lng: string | null;
64
+ lat: string | null;
65
65
  archiveAnnotation?: string;
66
66
  archiveSetDate?: Date;
67
67
  vnpReasonId?: number;
@@ -13,29 +13,29 @@ import { UserAttorneyEntity } from './user-attorney.type';
13
13
  import { ExclusiveBuyerAgreementData } from '../customer';
14
14
 
15
15
  export type CustomerEntity = BaseEntity & {
16
- email?: string;
17
- photoUrl?: string;
16
+ email: string | null;
17
+ photoUrl: string | null;
18
18
  firstName: string;
19
- secondName?: string;
20
- surname?: string;
19
+ secondName: string | null;
20
+ surname: string | null;
21
21
  blackList: boolean;
22
22
  hasContract: boolean;
23
23
  annotation: string | null;
24
24
  isBotEnabled: boolean;
25
25
  archiveAnnotation: string | null;
26
- address?: string;
27
- inn?: string;
28
- passport?: string;
29
- exclusiveAgreementData?: ExclusiveBuyerAgreementData;
26
+ address: string | null;
27
+ inn: string | null;
28
+ passport: string | null;
29
+ exclusiveAgreementData: ExclusiveBuyerAgreementData | null;
30
30
  archiveReasonId: number | null;
31
- exclusiveAgreementDocumentEndDate?: Date;
32
- exclusiveBuyerAgreementDocumentId?: number | null;
33
- propertyDemonstrationActDocumentId?: number | null;
31
+ exclusiveAgreementDocumentEndDate: Date | null;
32
+ exclusiveBuyerAgreementDocumentId: number | null;
33
+ propertyDemonstrationActDocumentId: number | null;
34
34
  visitedOffice: boolean;
35
- visitedOfficeAt?: Date;
35
+ visitedOfficeAt: Date | null;
36
36
  createdById: number;
37
37
  realtorId: number;
38
- attorneyId?: number;
38
+ attorneyId: number | null;
39
39
  createdBy?: UserEntity;
40
40
  archiveReason?: ArchiveReasonEntity;
41
41
  phones?: CustomerPhoneEntity[];
@@ -5,13 +5,13 @@ import { VchasnoDocument } from '../vchasno/vchasno-document.type';
5
5
  import { VchasnoDocumentSigner } from '../vchasno/vchasno-document-signer.type';
6
6
 
7
7
  export type DealDocumentEntity = BaseEntity & {
8
- key?: string;
9
- url?: string;
8
+ key: string | null;
9
+ url: string | null;
10
10
  name: string;
11
- documentType?: DealDocumentEnum;
12
- vchasnoDocumentId?: string;
11
+ documentType: DealDocumentEnum | null;
12
+ vchasnoDocumentId: string | null;
13
13
  dealId: number;
14
- deal: DealEntity;
14
+ deal?: DealEntity;
15
15
  vchasnoDocument?: VchasnoDocument;
16
16
  vchasnoDocumentSigners?: VchasnoDocumentSigner[];
17
17
  };
@@ -10,11 +10,11 @@ export type DealParticipantEntity = BaseEntity & {
10
10
  percent: number;
11
11
  incomePercent: number;
12
12
  dealId: number;
13
- agencyId?: number;
14
- userId?: number;
15
- normId?: number;
16
- officeId?: number;
17
- deal: DealEntity;
13
+ agencyId: number | null;
14
+ userId: number | null;
15
+ normId: number | null;
16
+ officeId: number | null;
17
+ deal?: DealEntity;
18
18
  agency?: AgencyEntity;
19
19
  user?: UserEntity;
20
20
  norm?: EmployeeNormEntity;
@@ -15,7 +15,7 @@ export type DealTransactionEntity = BaseEntity & {
15
15
  amount: number;
16
16
  minSumByPrice: number;
17
17
  currency: Currency;
18
- comment?: string;
19
- createdById?: number;
18
+ comment: string | null;
19
+ createdById: number | null;
20
20
  createdBy?: UserEntity;
21
21
  };
@@ -9,5 +9,5 @@ export type DealTypeEntity = BaseEntity & {
9
9
  weight: number;
10
10
  isPropertyInDb: boolean;
11
11
  isHidden: boolean;
12
- percentages: DealTypePercentageEntity[];
12
+ percentages?: DealTypePercentageEntity[];
13
13
  };