vector-shared 1.1.316 → 1.1.317

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 (61) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/types/attributes/attribute-value.type.d.ts +1 -1
  3. package/dist/types/core/advert-source.type.d.ts +21 -2
  4. package/dist/types/core/agency.type.d.ts +7 -5
  5. package/dist/types/core/apartment-complex-image.type.d.ts +9 -5
  6. package/dist/types/core/apartment-complex-info.type.d.ts +1 -1
  7. package/dist/types/core/appraiser.type.d.ts +3 -3
  8. package/dist/types/core/archive-reason.type.d.ts +8 -0
  9. package/dist/types/core/attention-required.type.d.ts +3 -2
  10. package/dist/types/core/attorney.type.d.ts +7 -6
  11. package/dist/types/core/attribute-representation.type.d.ts +6 -2
  12. package/dist/types/core/attribute-value.type.d.ts +7 -3
  13. package/dist/types/core/build-company.type.d.ts +9 -3
  14. package/dist/types/core/call.type.d.ts +2 -2
  15. package/dist/types/core/contract-type.type.d.ts +2 -0
  16. package/dist/types/core/customer-bucket.type.d.ts +6 -2
  17. package/dist/types/core/customer-call.type.d.ts +6 -3
  18. package/dist/types/core/customer-phone.type.d.ts +3 -0
  19. package/dist/types/core/customer-property-duplicate.type.d.ts +10 -4
  20. package/dist/types/core/deal-document.type.d.ts +11 -4
  21. package/dist/types/core/deal-participant.type.d.ts +13 -4
  22. package/dist/types/core/deal-type.type.d.ts +5 -2
  23. package/dist/types/core/duty.type.d.ts +11 -3
  24. package/dist/types/core/feedback-view.type.d.ts +2 -2
  25. package/dist/types/core/feedback.type.d.ts +4 -4
  26. package/dist/types/core/floor.type.d.ts +3 -3
  27. package/dist/types/core/geo-topzone.type.d.ts +2 -3
  28. package/dist/types/core/google-contact.type.d.ts +5 -7
  29. package/dist/types/google/google-contact-type.enum.d.ts +5 -0
  30. package/dist/types/google/google-contact-type.enum.js +10 -0
  31. package/dist/types/google/google-contact-type.enum.js.map +1 -0
  32. package/package.json +1 -1
  33. package/types/attributes/attribute-value.type.ts +1 -1
  34. package/types/core/advert-source.type.ts +21 -2
  35. package/types/core/agency.type.ts +7 -5
  36. package/types/core/apartment-complex-image.type.ts +9 -5
  37. package/types/core/apartment-complex-info.type.ts +1 -1
  38. package/types/core/appraiser.type.ts +3 -3
  39. package/types/core/archive-reason.type.ts +8 -0
  40. package/types/core/attention-required.type.ts +3 -2
  41. package/types/core/attorney.type.ts +7 -6
  42. package/types/core/attribute-representation.type.ts +6 -2
  43. package/types/core/attribute-value.type.ts +7 -3
  44. package/types/core/build-company.type.ts +9 -3
  45. package/types/core/call-redirect.type.ts +0 -10
  46. package/types/core/call.type.ts +2 -2
  47. package/types/core/contract-type.type.ts +2 -0
  48. package/types/core/customer-bucket.type.ts +6 -2
  49. package/types/core/customer-call.type.ts +6 -3
  50. package/types/core/customer-phone.type.ts +3 -0
  51. package/types/core/customer-property-duplicate.type.ts +10 -4
  52. package/types/core/deal-document.type.ts +11 -4
  53. package/types/core/deal-participant.type.ts +13 -4
  54. package/types/core/deal-type.type.ts +5 -2
  55. package/types/core/duty.type.ts +11 -3
  56. package/types/core/feedback-view.type.ts +2 -2
  57. package/types/core/feedback.type.ts +4 -4
  58. package/types/core/floor.type.ts +3 -3
  59. package/types/core/geo-topzone.type.ts +2 -3
  60. package/types/core/google-contact.type.ts +5 -7
  61. package/types/google/google-contact-type.enum.ts +5 -0
@@ -1,7 +1,11 @@
1
- import { TimeMetricEntity } from './time-metric-entity.type';
1
+ import { BaseEntity } from './base-entity.type';
2
2
  import { MultiLanguage } from '../common/multi-language-column.type';
3
+ import { RealtyType } from '../customer-property/realty-type.enum';
4
+ import { AttributeEntity } from './attribute.type';
3
5
 
4
- export type AttributeValueEntity = TimeMetricEntity & {
5
- key: string;
6
+ export type AttributeValueEntity = BaseEntity & {
6
7
  name: MultiLanguage;
8
+ estateType?: RealtyType[];
9
+ attributeKey: string;
10
+ attribute?: AttributeEntity;
7
11
  };
@@ -1,10 +1,16 @@
1
1
  import { BaseEntity } from './base-entity.type';
2
2
  import { ImageEntity } from './image.type';
3
+ import { ApartmentComplexEntity } from './apartment-complex.type';
4
+ import { MultiLanguage } from '../common/multi-language-column.type';
5
+ import { CurrencyValue } from '../common/currency.value.interface';
3
6
 
4
7
  export type BuildCompanyEntity = BaseEntity & {
5
8
  name: string;
6
- description?: string;
7
- website?: string;
9
+ alias: string;
10
+ description: MultiLanguage;
8
11
  imageId?: number;
9
- image?: ImageEntity;
12
+ image: ImageEntity;
13
+ site?: string;
14
+ currencies?: CurrencyValue[];
15
+ apartmentComplexes: ApartmentComplexEntity[];
10
16
  };
@@ -6,24 +6,14 @@ import { CallEntity } from './call.type';
6
6
 
7
7
  export type CallRedirectEntity = BaseEntity & {
8
8
  name: string;
9
-
10
9
  phoneNumber: string;
11
-
12
10
  exportNumber: boolean;
13
-
14
11
  replacementNumber: boolean;
15
-
16
12
  sourceId: number;
17
-
18
13
  source?: AdvertSourceEntity;
19
-
20
14
  officeId?: number;
21
-
22
15
  office?: OfficeEntity;
23
-
24
16
  userId?: number;
25
-
26
17
  user?: UserEntity;
27
-
28
18
  calls?: CallEntity[];
29
19
  };
@@ -14,7 +14,7 @@ export type CallEntity = UniqueIdEntity & {
14
14
  redirectId: number;
15
15
  sourceId: number;
16
16
  createdAt: Date;
17
- callRedirect?: CallRedirectEntity;
18
- source?: AdvertSourceEntity;
17
+ callRedirect: CallRedirectEntity;
18
+ source: AdvertSourceEntity;
19
19
  handling?: HandlingEntity;
20
20
  };
@@ -1,6 +1,8 @@
1
1
  import { BaseEntity } from './base-entity.type';
2
2
  import { MultiLanguage } from '../common/multi-language-column.type';
3
+ import { DealEntity } from './deal.type';
3
4
 
4
5
  export type ContractTypeEntity = BaseEntity & {
6
+ deals: DealEntity[];
5
7
  name: MultiLanguage;
6
8
  };
@@ -1,6 +1,10 @@
1
- import { BaseEntity } from './base-entity.type';
1
+ import { UniqueIdEntity } from './unique-id-entity.type';
2
+ import { OfficeEntity } from './office.type';
3
+ import { CustomerEntity } from './customer.type';
2
4
 
3
- export type CustomerBucketEntity = BaseEntity & {
5
+ export type CustomerBucketEntity = UniqueIdEntity & {
4
6
  customerId: number;
5
7
  officeId: number;
8
+ office: OfficeEntity;
9
+ customer: CustomerEntity;
6
10
  };
@@ -1,8 +1,11 @@
1
1
  import { BaseEntity } from './base-entity.type';
2
+ import { CustomerEntity } from './customer.type';
3
+ import { UserEntity } from './user.type';
2
4
 
3
5
  export type CustomerCallEntity = BaseEntity & {
4
6
  customerId: number;
5
- phone: string;
6
- duration: number;
7
- callDate: Date;
7
+ customer?: CustomerEntity;
8
+ userId: number;
9
+ user?: UserEntity;
10
+ comment?: string;
8
11
  };
@@ -1,7 +1,10 @@
1
1
  import { BaseEntity } from './base-entity.type';
2
+ import { CustomerEntity } from './customer.type';
2
3
 
3
4
  export type CustomerPhoneEntity = BaseEntity & {
4
5
  country: string;
5
6
  phoneNumber: string;
7
+ isMain: boolean;
6
8
  customerId: number;
9
+ customer: CustomerEntity;
7
10
  };
@@ -1,8 +1,14 @@
1
1
  import { BaseEntity } from './base-entity.type';
2
+ import { CustomerPropertyEntity } from './customer-property.type';
3
+ import { UserEntity } from './user.type';
4
+ import { CustomerPropertyDuplicateStatus } from '../customer-property/property-duplicate-status.enum';
2
5
 
3
6
  export type CustomerPropertyDuplicateEntity = BaseEntity & {
4
- originalPropertyId: number;
5
- duplicatePropertyId: number;
6
- similarity: number;
7
- isConfirmed: boolean;
7
+ original: CustomerPropertyEntity;
8
+ duplicate: CustomerPropertyEntity;
9
+ status: CustomerPropertyDuplicateStatus;
10
+ reviewStartedAt?: Date;
11
+ comment?: string;
12
+ reviewedById?: number;
13
+ reviewedBy?: UserEntity;
8
14
  };
@@ -1,10 +1,17 @@
1
1
  import { BaseEntity } from './base-entity.type';
2
2
  import { DealEntity } from './deal.type';
3
+ import { DealDocumentEnum } from '../deal/deal-document.enum';
4
+ import { VchasnoDocument } from '../vchasno/vchasno-document.type';
5
+ import { VchasnoDocumentSigner } from '../vchasno/vchasno-document-signer.type';
3
6
 
4
7
  export type DealDocumentEntity = BaseEntity & {
8
+ key?: string;
9
+ url?: string;
10
+ name: string;
11
+ documentType?: DealDocumentEnum;
12
+ vchasnoDocumentId?: string;
5
13
  dealId: number;
6
- documentType: string;
7
- fileName: string;
8
- filePath: string;
9
- deal?: DealEntity;
14
+ deal: DealEntity;
15
+ vchasnoDocument?: VchasnoDocument;
16
+ vchasnoDocumentSigners?: VchasnoDocumentSigner[];
10
17
  };
@@ -2,13 +2,22 @@ import { BaseEntity } from './base-entity.type';
2
2
  import { DealEntity } from './deal.type';
3
3
  import { UserEntity } from './user.type';
4
4
  import { OfficeEntity } from './office.type';
5
+ import { AgencyEntity } from './agency.type';
6
+ import { EmployeeNormEntity } from './employee-norm.type';
7
+ import { DealTransactionEntity } from './deal-transaction.type';
5
8
 
6
9
  export type DealParticipantEntity = BaseEntity & {
10
+ percent: number;
11
+ incomePercent: number;
7
12
  dealId: number;
8
- userId: number;
9
- officeId: number;
10
- role: string;
11
- deal?: DealEntity;
13
+ agencyId?: number;
14
+ userId?: number;
15
+ normId?: number;
16
+ officeId?: number;
17
+ deal: DealEntity;
18
+ agency?: AgencyEntity;
12
19
  user?: UserEntity;
20
+ norm?: EmployeeNormEntity;
13
21
  office?: OfficeEntity;
22
+ transactions: DealTransactionEntity[];
14
23
  };
@@ -4,7 +4,10 @@ import { DealEntity } from './deal.type';
4
4
  import { DealTypePercentageEntity } from './deal-type-percentage.type';
5
5
 
6
6
  export type DealTypeEntity = BaseEntity & {
7
- name: MultiLanguage;
8
7
  deals?: DealEntity[];
9
- percentages?: DealTypePercentageEntity[];
8
+ name: MultiLanguage;
9
+ weight: number;
10
+ isPropertyInDb: boolean;
11
+ isHidden: boolean;
12
+ percentages: DealTypePercentageEntity[];
10
13
  };
@@ -1,9 +1,17 @@
1
1
  import { BaseEntity } from './base-entity.type';
2
+ import { UserEntity } from './user.type';
3
+ import { OfficeEntity } from './office.type';
2
4
 
3
5
  export type DutyEntity = BaseEntity & {
4
- name: string;
5
- description?: string;
6
+ date: Date;
6
7
  startTime: string;
7
8
  endTime: string;
8
- dayOfWeek: number;
9
+ isDayOff: boolean;
10
+ description?: string;
11
+ createdById: number;
12
+ userId: number;
13
+ officeId: number;
14
+ user: UserEntity;
15
+ office: OfficeEntity;
16
+ createdBy?: UserEntity;
9
17
  };
@@ -1,8 +1,8 @@
1
1
  import { UserEntity } from './user.type';
2
2
  import { FeedbackEntity } from './feedback.type';
3
- import { UniqueIdEntity } from './unique-id-entity.type';
3
+ import { BaseEntity } from './base-entity.type';
4
4
 
5
- export type FeedbackViewEntity = UniqueIdEntity & {
5
+ export type FeedbackViewEntity = BaseEntity & {
6
6
  userId: number;
7
7
  user: UserEntity;
8
8
  feedbackId: number;
@@ -11,9 +11,9 @@ export type FeedbackEntity = BaseEntity & {
11
11
  type: FeedbackCategory;
12
12
  status: FeedbackStatus;
13
13
  userId: number;
14
- user?: UserEntity;
14
+ user: UserEntity;
15
15
  officeId: number;
16
- office?: OfficeEntity;
17
- views?: FeedbackViewEntity[];
18
- files?: FeedbackFileEntity[];
16
+ office: OfficeEntity;
17
+ views: FeedbackViewEntity[];
18
+ files: FeedbackFileEntity[];
19
19
  };
@@ -5,9 +5,9 @@ import { FlatEntity } from './flat.type';
5
5
 
6
6
  export type FloorEntity = BaseEntity & {
7
7
  floorNumber: number;
8
- sectionId: number;
9
- section?: SectionEntity;
10
- planId?: number;
8
+ imageId?: number;
11
9
  plan?: ImageEntity;
12
10
  flats: FlatEntity[];
11
+ sectionId?: number;
12
+ section?: SectionEntity;
13
13
  };
@@ -1,10 +1,9 @@
1
- import { UniqueIdEntity } from './unique-id-entity.type';
2
1
  import { GeoEntity } from './geo.type';
3
2
  import { TopzoneEntity } from './topzone.type';
4
3
 
5
- export type GeoTopzoneEntity = UniqueIdEntity & {
4
+ export type GeoTopzoneEntity = {
6
5
  geoId: number;
7
- geo?: GeoEntity;
8
6
  topzoneId: number;
7
+ geo?: GeoEntity;
9
8
  topzone?: TopzoneEntity;
10
9
  };
@@ -1,16 +1,14 @@
1
1
  import { BaseEntity } from './base-entity.type';
2
2
  import { UserEntity } from './user.type';
3
3
  import { CustomerEntity } from './customer.type';
4
+ import { GoogleContactType } from '../google/google-contact-type.enum';
4
5
 
5
6
  export type GoogleContactEntity = BaseEntity & {
6
- googleId: string;
7
- name: string;
8
- email?: string;
9
- phoneNumber?: string;
10
- userId: number;
11
- user: UserEntity;
7
+ email: string;
12
8
  relatedUserId?: number;
13
- relatedUser?: UserEntity;
14
9
  relatedCustomerId?: number;
10
+ resourceName: string;
11
+ contactType: GoogleContactType;
12
+ relatedUser?: UserEntity;
15
13
  relatedCustomer?: CustomerEntity;
16
14
  };
@@ -0,0 +1,5 @@
1
+ export enum GoogleContactType {
2
+ User = 'user',
3
+ Seller = 'seller',
4
+ Buyer = 'buyer',
5
+ }