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.
Files changed (170) 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-image.type.d.ts +4 -4
  5. package/dist/types/core/apartment-complex-info.type.d.ts +4 -4
  6. package/dist/types/core/apartment-complex.type.d.ts +4 -4
  7. package/dist/types/core/attention-required.type.d.ts +3 -3
  8. package/dist/types/core/attorney.type.d.ts +1 -1
  9. package/dist/types/core/attribute-representation.type.d.ts +1 -1
  10. package/dist/types/core/attribute.type.d.ts +3 -3
  11. package/dist/types/core/build-company.type.d.ts +3 -3
  12. package/dist/types/core/call-redirect.type.d.ts +3 -3
  13. package/dist/types/core/call.type.d.ts +7 -7
  14. package/dist/types/core/customer-bucket.type.d.ts +2 -2
  15. package/dist/types/core/customer-call.type.d.ts +2 -2
  16. package/dist/types/core/customer-phone.type.d.ts +1 -1
  17. package/dist/types/core/customer-property-duplicate.type.d.ts +3 -3
  18. package/dist/types/core/customer-property.type.d.ts +22 -22
  19. package/dist/types/core/customer-request-selection.type.d.ts +1 -1
  20. package/dist/types/core/customer-request.type.d.ts +4 -4
  21. package/dist/types/core/customer.type.d.ts +15 -15
  22. package/dist/types/core/deal-document.type.d.ts +6 -6
  23. package/dist/types/core/deal-participant.type.d.ts +3 -3
  24. package/dist/types/core/deal-transaction.type.d.ts +5 -5
  25. package/dist/types/core/deal-type-percentage.type.d.ts +1 -1
  26. package/dist/types/core/deal-type.type.d.ts +1 -1
  27. package/dist/types/core/deal.type.d.ts +35 -35
  28. package/dist/types/core/duty.type.d.ts +6 -6
  29. package/dist/types/core/employee-norm.type.d.ts +2 -2
  30. package/dist/types/core/feedback-file.type.d.ts +4 -4
  31. package/dist/types/core/feedback-view.type.d.ts +4 -4
  32. package/dist/types/core/feedback.type.d.ts +6 -6
  33. package/dist/types/core/flat.type.d.ts +1 -1
  34. package/dist/types/core/floor.type.d.ts +1 -1
  35. package/dist/types/core/geo-topzone.type.d.ts +2 -2
  36. package/dist/types/core/geo.type.d.ts +4 -4
  37. package/dist/types/core/google-contact.type.d.ts +2 -2
  38. package/dist/types/core/handling-listening.type.d.ts +4 -4
  39. package/dist/types/core/handling.type.d.ts +7 -7
  40. package/dist/types/core/image.type.d.ts +7 -7
  41. package/dist/types/core/layout.type.d.ts +3 -3
  42. package/dist/types/core/mismatch-aggregate.type.d.ts +2 -2
  43. package/dist/types/core/mismatch-decision.type.d.ts +5 -5
  44. package/dist/types/core/mismatch-reason.type.d.ts +2 -2
  45. package/dist/types/core/mismatch-report.type.d.ts +6 -6
  46. package/dist/types/core/notary.type.d.ts +1 -1
  47. package/dist/types/core/notification-preference.type.d.ts +1 -1
  48. package/dist/types/core/notification.type.d.ts +2 -2
  49. package/dist/types/core/office-center.type.d.ts +3 -3
  50. package/dist/types/core/office.type.d.ts +4 -4
  51. package/dist/types/core/property-document.type.d.ts +2 -2
  52. package/dist/types/core/property-image.type.d.ts +4 -4
  53. package/dist/types/core/property-seo.type.d.ts +3 -3
  54. package/dist/types/core/queue.type.d.ts +7 -7
  55. package/dist/types/core/reaction.type.d.ts +1 -1
  56. package/dist/types/core/realtor-number.type.d.ts +4 -4
  57. package/dist/types/core/representation.type.d.ts +1 -1
  58. package/dist/types/core/request-presentation-property.type.d.ts +2 -2
  59. package/dist/types/core/request-presentation.type.d.ts +2 -2
  60. package/dist/types/core/request-property.type.d.ts +7 -7
  61. package/dist/types/core/role-permission-group.type.d.ts +2 -2
  62. package/dist/types/core/section.type.d.ts +3 -3
  63. package/dist/types/core/street.type.d.ts +5 -5
  64. package/dist/types/core/telegram-chat.type.d.ts +4 -4
  65. package/dist/types/core/telegram-message.type.d.ts +5 -5
  66. package/dist/types/core/template-comment-reaction.type.d.ts +1 -1
  67. package/dist/types/core/template-comment.type.d.ts +3 -3
  68. package/dist/types/core/template-office.type.d.ts +2 -2
  69. package/dist/types/core/template-participant.type.d.ts +2 -2
  70. package/dist/types/core/template-reaction.type.d.ts +1 -1
  71. package/dist/types/core/template-representation.type.d.ts +2 -2
  72. package/dist/types/core/template-role.type.d.ts +2 -2
  73. package/dist/types/core/template-view.type.d.ts +2 -2
  74. package/dist/types/core/template.type.d.ts +3 -3
  75. package/dist/types/core/topzone.type.d.ts +2 -2
  76. package/dist/types/core/uploaded-file-entity.type.d.ts +1 -1
  77. package/dist/types/core/user-action-log.type.d.ts +3 -3
  78. package/dist/types/core/user-attorney.type.d.ts +8 -8
  79. package/dist/types/core/user-office.type.d.ts +2 -2
  80. package/dist/types/core/user-permission.type.d.ts +2 -2
  81. package/dist/types/core/user-phone.type.d.ts +2 -2
  82. package/dist/types/core/user-points-change.type.d.ts +6 -6
  83. package/dist/types/core/user-profile.type.d.ts +24 -24
  84. package/dist/types/core/user.type.d.ts +1 -1
  85. package/dist/types/core/x-customer-notification.type.d.ts +1 -1
  86. package/package.json +1 -1
  87. package/types/common/currency.value.interface.ts +2 -2
  88. package/types/core/advert-source.type.ts +1 -1
  89. package/types/core/apartment-complex-image.type.ts +4 -4
  90. package/types/core/apartment-complex-info.type.ts +4 -4
  91. package/types/core/apartment-complex.type.ts +4 -4
  92. package/types/core/attention-required.type.ts +3 -3
  93. package/types/core/attorney.type.ts +1 -1
  94. package/types/core/attribute-representation.type.ts +1 -1
  95. package/types/core/attribute.type.ts +3 -3
  96. package/types/core/build-company.type.ts +3 -3
  97. package/types/core/call-redirect.type.ts +3 -3
  98. package/types/core/call.type.ts +7 -7
  99. package/types/core/customer-bucket.type.ts +2 -2
  100. package/types/core/customer-call.type.ts +2 -2
  101. package/types/core/customer-phone.type.ts +1 -1
  102. package/types/core/customer-property-duplicate.type.ts +3 -3
  103. package/types/core/customer-property.type.ts +22 -22
  104. package/types/core/customer-request-selection.type.ts +1 -1
  105. package/types/core/customer-request.type.ts +4 -4
  106. package/types/core/customer.type.ts +15 -15
  107. package/types/core/deal-document.type.ts +6 -6
  108. package/types/core/deal-participant.type.ts +3 -3
  109. package/types/core/deal-transaction.type.ts +5 -5
  110. package/types/core/deal-type-percentage.type.ts +1 -1
  111. package/types/core/deal-type.type.ts +1 -1
  112. package/types/core/deal.type.ts +35 -36
  113. package/types/core/duty.type.ts +6 -6
  114. package/types/core/employee-norm.type.ts +2 -2
  115. package/types/core/feedback-file.type.ts +4 -4
  116. package/types/core/feedback-view.type.ts +4 -4
  117. package/types/core/feedback.type.ts +6 -6
  118. package/types/core/flat.type.ts +1 -1
  119. package/types/core/floor.type.ts +1 -1
  120. package/types/core/geo-topzone.type.ts +2 -2
  121. package/types/core/geo.type.ts +4 -4
  122. package/types/core/google-contact.type.ts +2 -2
  123. package/types/core/handling-listening.type.ts +4 -4
  124. package/types/core/handling.type.ts +7 -7
  125. package/types/core/image.type.ts +7 -7
  126. package/types/core/layout.type.ts +3 -14
  127. package/types/core/mismatch-aggregate.type.ts +2 -2
  128. package/types/core/mismatch-decision.type.ts +5 -11
  129. package/types/core/mismatch-reason.type.ts +2 -2
  130. package/types/core/mismatch-report.type.ts +6 -12
  131. package/types/core/notary.type.ts +1 -5
  132. package/types/core/notification-preference.type.ts +1 -5
  133. package/types/core/notification.type.ts +2 -8
  134. package/types/core/office-center.type.ts +3 -13
  135. package/types/core/office.type.ts +4 -21
  136. package/types/core/property-document.type.ts +2 -2
  137. package/types/core/property-image.type.ts +4 -8
  138. package/types/core/property-seo.type.ts +3 -7
  139. package/types/core/queue.type.ts +7 -19
  140. package/types/core/reaction.type.ts +1 -1
  141. package/types/core/realtor-number.type.ts +4 -8
  142. package/types/core/representation.type.ts +1 -9
  143. package/types/core/request-presentation-property.type.ts +2 -2
  144. package/types/core/request-presentation.type.ts +2 -2
  145. package/types/core/request-property.type.ts +7 -15
  146. package/types/core/role-permission-group.type.ts +2 -2
  147. package/types/core/section.type.ts +3 -8
  148. package/types/core/street.type.ts +5 -16
  149. package/types/core/telegram-chat.type.ts +4 -7
  150. package/types/core/telegram-message.type.ts +5 -10
  151. package/types/core/template-comment-reaction.type.ts +1 -1
  152. package/types/core/template-comment.type.ts +3 -11
  153. package/types/core/template-office.type.ts +2 -2
  154. package/types/core/template-participant.type.ts +2 -2
  155. package/types/core/template-reaction.type.ts +1 -1
  156. package/types/core/template-representation.type.ts +2 -2
  157. package/types/core/template-role.type.ts +2 -2
  158. package/types/core/template-view.type.ts +2 -2
  159. package/types/core/template.type.ts +3 -3
  160. package/types/core/topzone.type.ts +2 -11
  161. package/types/core/uploaded-file-entity.type.ts +1 -4
  162. package/types/core/user-action-log.type.ts +6 -15
  163. package/types/core/user-attorney.type.ts +8 -8
  164. package/types/core/user-office.type.ts +2 -2
  165. package/types/core/user-permission.type.ts +2 -2
  166. package/types/core/user-phone.type.ts +2 -2
  167. package/types/core/user-points-change.type.ts +6 -17
  168. package/types/core/user-profile.type.ts +24 -24
  169. package/types/core/user.type.ts +1 -1
  170. 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: number;
6
+ presentationId?: number;
7
7
  presentation?: RequestPresentationEntity;
8
- propertyId: number;
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: number;
6
+ requestSelectionId?: number;
7
7
  requestSelection?: CustomerRequestSelectionEntity;
8
8
  properties: RequestPresentationPropertyEntity[];
9
- createdAt?: Date;
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: number;
7
-
6
+ requestSelectionId?: number;
8
7
  requestSelection?: CustomerRequestSelectionEntity;
9
-
10
- propertyId: number;
11
-
8
+ propertyId?: number;
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
  };
@@ -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: number;
6
+ roleId?: number;
7
7
  role?: RoleEntity;
8
- permissionId: number;
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
- searchText?: string;
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
- deals: DealEntity[];
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: number;
6
-
7
- representationId: number;
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: number;
6
-
7
- chatId: number;
8
-
9
- chat: TelegramChatEntity;
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
  };
@@ -2,6 +2,6 @@ import { ReactionEntity } from './reaction.type';
2
2
  import { TemplateCommentEntity } from './template-comment.type';
3
3
 
4
4
  export type TemplateCommentReactionEntity = ReactionEntity & {
5
- commentId: number;
5
+ commentId?: number;
6
6
  comment: TemplateCommentEntity;
7
7
  };
@@ -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: number;
7
- officeId: number;
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: number;
7
- templateId: number;
6
+ userId?: number;
7
+ templateId?: number;
8
8
  user?: UserEntity;
9
9
  template?: TemplateEntity;
10
10
  };
@@ -2,6 +2,6 @@ import { ReactionEntity } from './reaction.type';
2
2
  import { TemplateEntity } from './template.type';
3
3
 
4
4
  export type TemplateReactionEntity = ReactionEntity & {
5
- templateId: number;
5
+ templateId?: number;
6
6
  template: TemplateEntity;
7
7
  };
@@ -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: number;
7
- representationId: number;
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: number;
7
- roleId: number;
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: number;
7
- templateId: number;
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?: string | null;
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?: Date;
30
- endAt?: Date;
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
- lat?: string;
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
  };
@@ -4,10 +4,7 @@ import { UploadedFileType } from '../uploaded-file';
4
4
 
5
5
  export type UploadedFileEntity = BaseEntity & {
6
6
  key: string;
7
-
8
7
  url: string;
9
-
10
8
  type: UploadedFileType;
11
-
12
- feedbackFile: FeedbackFileEntity;
9
+ feedbackFile?: FeedbackFileEntity;
13
10
  };
@@ -3,22 +3,13 @@ import { UserEntity } from './user.type';
3
3
 
4
4
  export type UserActionsLogEntity = BaseEntity & {
5
5
  modelName: string;
6
-
7
- entityId?: number | null;
8
-
9
- entityKey?: string | null;
10
-
11
- snapshotBeforeAction: any; // Replace `any` with a more specific type if your JSON structure is known
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?: string;
10
- vchasnoEmail?: string;
11
- vchasnoInn?: string;
12
- userId: number;
13
- attorneyId: number;
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: AttorneyEntity;
25
- deals: DealEntity[];
26
- properties: CustomerPropertyEntity[];
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: number;
7
- officeId: number;
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: number;
8
- permissionId: number;
7
+ userId?: number;
8
+ permissionId?: number;
9
9
  user?: UserEntity;
10
10
  permission?: PermissionEntity;
11
11
  };
@@ -4,7 +4,7 @@ import { UserEntity } from './user.type';
4
4
  export type UserPhoneEntity = BaseEntity & {
5
5
  country: string;
6
6
  phoneNumber: string;
7
- isRedirect?: boolean;
8
- userId: number;
7
+ isRedirect: boolean;
8
+ userId?: number;
9
9
  user?: UserEntity;
10
10
  };
@@ -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
- userId: number;
15
-
16
- handlingId?: number;
17
-
18
- propertyId?: number;
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?: MultiLanguage;
15
+ surname: MultiLanguage | null;
16
16
  male: Male;
17
- birthDate?: Date;
18
- birthPlace?: string;
19
- photoUrl?: string;
20
- graduatedAt?: Date;
21
- address?: string;
22
- passportRegistration?: string;
23
- passport?: string;
24
- inn?: string;
25
- passportGiven?: string;
26
- languages?: string[];
27
- notes?: Record<string, string>;
28
- education?: Education[];
29
- previousJobs?: PreviousJob[];
30
- auto?: boolean;
31
- criminal?: boolean;
32
- criminalDescription?: string;
33
- whyRealty?: string;
34
- whyAtlanta?: string;
35
- hobby?: string;
36
- startWorkingAt?: Date;
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: number;
42
- userId: number;
43
- sourceId: number;
41
+ categoryId?: number;
42
+ userId?: number;
43
+ sourceId?: number;
44
44
  category?: NormCategoryEntity;
45
45
  user?: UserEntity;
46
46
  source?: AdvertSourceEntity;
@@ -48,7 +48,7 @@ export type UserEntity = BaseEntity & {
48
48
  syncUserContacts: boolean;
49
49
  syncBuyerContacts: boolean;
50
50
  syncSellerContacts: boolean;
51
- roleId: number;
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: number;
4
+ customerRequestId?: number;
5
5
  customerRequest: CustomerRequestEntity;
6
6
  shouldSendNotification: boolean;
7
7
  lastNotificationSentAt?: Date;