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
@@ -1,8 +1,8 @@
1
1
  import { GeoEntity } from './geo.type';
2
2
  import { TopzoneEntity } from './topzone.type';
3
3
  export type GeoTopzoneEntity = {
4
- geoId: number;
5
- topzoneId: number;
4
+ geoId?: number;
5
+ topzoneId?: number;
6
6
  geo?: GeoEntity;
7
7
  topzone?: TopzoneEntity;
8
8
  };
@@ -15,10 +15,10 @@ export type GeoEntity = BaseEntity & {
15
15
  declension: MultiLanguage;
16
16
  alias: string;
17
17
  lvl: number;
18
- lft?: number;
19
- rgt?: number;
20
- lat?: string;
21
- lng?: string;
18
+ lft: number | null;
19
+ rgt: number | null;
20
+ lat: string | null;
21
+ lng: string | null;
22
22
  type: GeoType;
23
23
  searchText?: string;
24
24
  polygon?: {
@@ -4,8 +4,8 @@ import { CustomerEntity } from './customer.type';
4
4
  import { GoogleContactType } from '../google/google-contact-type.enum';
5
5
  export type GoogleContactEntity = BaseEntity & {
6
6
  email: string;
7
- relatedUserId?: number;
8
- relatedCustomerId?: number;
7
+ relatedUserId: number | null;
8
+ relatedCustomerId: number | null;
9
9
  resourceName: string;
10
10
  contactType: GoogleContactType;
11
11
  relatedUser?: UserEntity;
@@ -1,9 +1,9 @@
1
1
  import { UserEntity } from './user.type';
2
2
  import { HandlingEntity } from './handling.type';
3
3
  export type HandlingListeningEntity = {
4
- userId: number;
5
- user: UserEntity;
6
- handlingId: number;
7
- handling: HandlingEntity;
4
+ userId?: number;
5
+ user?: UserEntity;
6
+ handlingId?: number;
7
+ handling?: HandlingEntity;
8
8
  createdAt: Date;
9
9
  };
@@ -8,23 +8,23 @@ import { AdvertSourceEntity } from './advert-source.type';
8
8
  import { CustomerRequestEntity } from './customer-request.type';
9
9
  import { UserPointsChangeEntity } from './user-points-change.type';
10
10
  export type HandlingEntity = BaseEntity & {
11
- isBlackList?: boolean;
12
- archiveAnnotation?: string | null;
11
+ isBlackList: boolean;
12
+ archiveAnnotation: string | null;
13
13
  callId?: number;
14
14
  type: number;
15
15
  recipient: number;
16
- readAt?: string;
16
+ readAt: string | null;
17
17
  annotation: string | null;
18
18
  name: string;
19
19
  country: string;
20
20
  phoneNumber: string;
21
- realtorId: number;
22
- createdById: number;
21
+ realtorId?: number;
22
+ createdById?: number;
23
23
  handledById?: number;
24
24
  requestId?: number;
25
25
  propertyId?: number;
26
- sourceId: number;
27
- archiveReasonId: number | null;
26
+ sourceId?: number;
27
+ archiveReasonId?: number;
28
28
  archiveReason?: ArchiveReasonEntity;
29
29
  customerProperty?: CustomerPropertyEntity;
30
30
  source?: AdvertSourceEntity;
@@ -11,11 +11,11 @@ export type ImageEntity = BaseEntity & {
11
11
  url: string;
12
12
  watermarkedKey: string | null;
13
13
  watermarkedUrl: string;
14
- propertyImage: PropertyImageEntity;
15
- propertyDocument: PropertyDocumentEntity;
16
- complexImage: ApartmentComplexImageEntity;
17
- sectionImage: SectionEntity;
18
- floorImage: FloorEntity;
19
- buildCompany: BuildCompanyEntity;
20
- layout: LayoutEntity;
14
+ propertyImage?: PropertyImageEntity;
15
+ propertyDocument?: PropertyDocumentEntity;
16
+ complexImage?: ApartmentComplexImageEntity;
17
+ sectionImage?: SectionEntity;
18
+ floorImage?: FloorEntity;
19
+ buildCompany?: BuildCompanyEntity;
20
+ layout?: LayoutEntity;
21
21
  };
@@ -11,9 +11,9 @@ export type LayoutEntity = BaseEntity & {
11
11
  square: number;
12
12
  livingSquare: number;
13
13
  kitchenSquare: number;
14
- imageId: number;
15
- image: ImageEntity;
16
- complexId?: number;
14
+ imageId: number | null;
15
+ complexId: number | null;
16
+ image?: ImageEntity;
17
17
  complex?: ApartmentComplexEntity;
18
18
  flats?: FlatEntity[];
19
19
  };
@@ -2,6 +2,6 @@ import { BaseEntity } from './base-entity.type';
2
2
  import { CustomerPropertyEntity } from './customer-property.type';
3
3
  export type MismatchAggregateEntity = BaseEntity & {
4
4
  count: number;
5
- customerProperty: CustomerPropertyEntity;
6
- customerPropertyId: number;
5
+ customerProperty?: CustomerPropertyEntity;
6
+ customerPropertyId?: number;
7
7
  };
@@ -5,9 +5,9 @@ import { MismatchReasonEntity } from './mismatch-reason.type';
5
5
  export type MismatchDecisionEntity = BaseEntity & {
6
6
  comment: string;
7
7
  customerProperty?: CustomerPropertyEntity;
8
- customerPropertyId: number;
9
- submittedAs: UserEntity;
10
- submittedAsId: number;
11
- reason: MismatchReasonEntity;
12
- reasonId: number;
8
+ customerPropertyId?: number;
9
+ submittedAs?: UserEntity;
10
+ submittedAsId?: number;
11
+ reason?: MismatchReasonEntity;
12
+ reasonId?: number;
13
13
  };
@@ -4,6 +4,6 @@ import { BaseEntity } from './base-entity.type';
4
4
  import { MismatchReportEntity } from './mismatch-report.type';
5
5
  export type MismatchReasonEntity = BaseEntity & {
6
6
  text: MultiLanguage;
7
- mismatchDecision: MismatchDecisionEntity[];
8
- mismatchReport: MismatchReportEntity[];
7
+ mismatchDecision?: MismatchDecisionEntity[];
8
+ mismatchReport?: MismatchReportEntity[];
9
9
  };
@@ -3,11 +3,11 @@ import { UserEntity } from './user.type';
3
3
  import { MismatchReasonEntity } from './mismatch-reason.type';
4
4
  import { CustomerPropertyEntity } from './customer-property.type';
5
5
  export type MismatchReportEntity = BaseEntity & {
6
- submittedAs: UserEntity;
7
- submittedAsId: number;
8
- reason: MismatchReasonEntity;
9
- reasonId: number;
10
- customerProperty: CustomerPropertyEntity;
11
- customerPropertyId: number;
6
+ submittedAs?: UserEntity;
7
+ submittedAsId?: number;
8
+ reason?: MismatchReasonEntity;
9
+ reasonId?: number;
10
+ customerProperty?: CustomerPropertyEntity;
11
+ customerPropertyId?: number;
12
12
  isActive: boolean;
13
13
  };
@@ -5,7 +5,7 @@ import { MultiLanguage } from '../common';
5
5
  import { NotaryContacts } from '../notary/notary-contacts.type';
6
6
  export type NotaryEntity = BaseEntity & {
7
7
  deals: DealEntity[];
8
- geoId?: number;
8
+ geoId: number | null;
9
9
  geo?: GeoEntity;
10
10
  name: MultiLanguage;
11
11
  contacts: NotaryContacts;
@@ -6,5 +6,5 @@ export type NotificationPreferenceEntity = BaseEntity & {
6
6
  buyerRegistered: boolean;
7
7
  sellerRegistered: boolean;
8
8
  newPromotions: boolean;
9
- user: UserEntity;
9
+ user?: UserEntity;
10
10
  };
@@ -4,9 +4,9 @@ import { NotificationMeta, NotificationType } from '../notifications';
4
4
  export type NotificationEntity = BaseEntity & {
5
5
  meta: NotificationMeta;
6
6
  scheduledAt: Date;
7
- sent?: boolean;
7
+ sent: boolean;
8
8
  type: NotificationType;
9
- seenAt?: Date;
9
+ seenAt: Date | null;
10
10
  userId?: number;
11
11
  user?: UserEntity;
12
12
  };
@@ -8,12 +8,12 @@ export type OfficeCenterEntity = BaseEntity & {
8
8
  name: MultiLanguage;
9
9
  alias: string;
10
10
  weight: number;
11
- lng?: string;
12
- lat?: string;
11
+ lng: string | null;
12
+ lat: string | null;
13
13
  contacts: CenterContacts;
14
14
  schedule: Schedule;
15
15
  group: MultiLanguage;
16
16
  offices?: OfficeEntity[];
17
- representationId: number;
17
+ representationId?: number;
18
18
  representation?: RepresentationEntity;
19
19
  };
@@ -19,15 +19,15 @@ export type OfficeEntity = BaseEntity & {
19
19
  isAgency: boolean;
20
20
  serviceConfig: ServiceConfig;
21
21
  contacts: OfficeContacts;
22
- officeCenterId: number;
22
+ officeCenterId?: number;
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[];
@@ -3,8 +3,8 @@ import { CustomerPropertyEntity } from './customer-property.type';
3
3
  import { ImageEntity } from './image.type';
4
4
  export type PropertyDocumentEntity = BaseEntity & {
5
5
  category: string;
6
- propertyId: number;
7
- imageId?: number;
6
+ propertyId?: number;
7
+ imageId: number | null;
8
8
  property?: CustomerPropertyEntity;
9
9
  image?: ImageEntity;
10
10
  };
@@ -6,8 +6,8 @@ export type PropertyImageEntity = UniqueIdEntity & {
6
6
  category: ImageCategory;
7
7
  showOnSite: boolean;
8
8
  isMain: boolean;
9
- imageId: number;
10
- image: ImageEntity;
11
- propertyId: number;
12
- property: CustomerPropertyEntity;
9
+ imageId?: number;
10
+ image?: ImageEntity;
11
+ propertyId?: number;
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
  };
@@ -1,5 +1,5 @@
1
1
  import { Reaction } from '../common/reaction.enum';
2
2
  export type ReactionEntity = {
3
- userId: number;
3
+ userId?: number;
4
4
  type: Reaction;
5
5
  };
@@ -3,8 +3,8 @@ import { UserEntity } from './user.type';
3
3
  import { OfficeEntity } from './office.type';
4
4
  export type RealtorNumberEntity = UniqueIdEntity & {
5
5
  value: number;
6
- officeId: number;
7
- office: OfficeEntity;
8
- userId: number;
9
- user: UserEntity;
6
+ officeId?: number;
7
+ office?: OfficeEntity;
8
+ userId?: number;
9
+ user?: UserEntity;
10
10
  };
@@ -6,7 +6,7 @@ import { OfficeCenterEntity } from './office-center.type';
6
6
  import { TelegramChatEntity } from './telegram-chat.type';
7
7
  export type RepresentationEntity = BaseEntity & {
8
8
  fullName: string;
9
- geoId: number;
9
+ geoId?: number;
10
10
  company: string;
11
11
  contractDate: Date;
12
12
  officeCenters?: OfficeCenterEntity[];
@@ -2,9 +2,9 @@ import { BaseEntity } from './base-entity.type';
2
2
  import { RequestPresentationEntity } from './request-presentation.type';
3
3
  import { CustomerPropertyEntity } from './customer-property.type';
4
4
  export type RequestPresentationPropertyEntity = BaseEntity & {
5
- presentationId: number;
5
+ presentationId?: number;
6
6
  presentation?: RequestPresentationEntity;
7
- propertyId: number;
7
+ propertyId?: number;
8
8
  property?: CustomerPropertyEntity;
9
9
  isMain?: boolean;
10
10
  };
@@ -2,8 +2,8 @@ import { UniqueIdEntity } from './unique-id-entity.type';
2
2
  import { RequestPresentationPropertyEntity } from './request-presentation-property.type';
3
3
  import { CustomerRequestSelectionEntity } from './customer-request-selection.type';
4
4
  export type RequestPresentationEntity = UniqueIdEntity & {
5
- requestSelectionId: number;
5
+ requestSelectionId?: number;
6
6
  requestSelection?: CustomerRequestSelectionEntity;
7
7
  properties: RequestPresentationPropertyEntity[];
8
- createdAt?: Date;
8
+ createdAt: Date | null;
9
9
  };
@@ -2,13 +2,13 @@ import { BaseEntity } from './base-entity.type';
2
2
  import { CustomerPropertyEntity } from './customer-property.type';
3
3
  import { CustomerRequestSelectionEntity } from './customer-request-selection.type';
4
4
  export type RequestPropertyEntity = BaseEntity & {
5
- requestSelectionId: number;
5
+ requestSelectionId?: number;
6
6
  requestSelection?: CustomerRequestSelectionEntity;
7
- propertyId: number;
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
  };
@@ -2,8 +2,8 @@ import { UniqueIdEntity } from './unique-id-entity.type';
2
2
  import { RoleEntity } from './role.type';
3
3
  import { PermissionEntity } from './permission.type';
4
4
  export type RolePermissionGroupEntity = UniqueIdEntity & {
5
- roleId: number;
5
+ roleId?: number;
6
6
  role?: RoleEntity;
7
- permissionId: number;
7
+ permissionId?: number;
8
8
  permission?: PermissionEntity;
9
9
  };
@@ -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
  };
@@ -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: number;
5
- representationId: number;
6
- representation: RepresentationEntity;
7
- messages: TelegramMessageEntity[];
4
+ chatId?: number;
5
+ representationId?: number;
6
+ representation?: RepresentationEntity;
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: number;
5
- chatId: number;
6
- chat: TelegramChatEntity;
7
- propertyId: number;
8
- property: CustomerPropertyEntity;
4
+ messageId?: number;
5
+ chatId?: number;
6
+ chat?: TelegramChatEntity;
7
+ propertyId?: number;
8
+ property?: CustomerPropertyEntity;
9
9
  isMain: boolean;
10
10
  };
@@ -1,6 +1,6 @@
1
1
  import { ReactionEntity } from './reaction.type';
2
2
  import { TemplateCommentEntity } from './template-comment.type';
3
3
  export type TemplateCommentReactionEntity = ReactionEntity & {
4
- commentId: number;
4
+ commentId?: number;
5
5
  comment: TemplateCommentEntity;
6
6
  };
@@ -4,12 +4,12 @@ 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: number;
7
+ userId?: number;
8
8
  user?: UserEntity;
9
- templateId: number;
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
  };
@@ -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: number;
6
- officeId: number;
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: number;
6
- templateId: number;
5
+ userId?: number;
6
+ templateId?: number;
7
7
  user?: UserEntity;
8
8
  template?: TemplateEntity;
9
9
  };
@@ -1,6 +1,6 @@
1
1
  import { ReactionEntity } from './reaction.type';
2
2
  import { TemplateEntity } from './template.type';
3
3
  export type TemplateReactionEntity = ReactionEntity & {
4
- templateId: number;
4
+ templateId?: number;
5
5
  template: TemplateEntity;
6
6
  };
@@ -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: number;
6
- representationId: number;
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: number;
6
- roleId: number;
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: number;
6
- templateId: number;
5
+ userId?: number;
6
+ templateId?: number;
7
7
  user?: UserEntity;
8
8
  template?: TemplateEntity;
9
9
  };
@@ -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,12 +2,12 @@ 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;
10
- changedById: number;
10
+ changedById?: number;
11
11
  childrenTableNames: string | null;
12
12
  changedBy: UserEntity;
13
13
  createdAt: Date;