vector-shared 1.1.428 → 1.1.429
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.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/attributes/classification-type.enum.js.map +1 -1
- package/dist/types/core/advert-source.type.d.ts +3 -2
- package/dist/types/core/base-entity.type.d.ts +1 -0
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/core/reset-password.type.d.ts +2 -2
- package/dist/types/core/unique-id-entity.type.d.ts +1 -0
- package/dist/types/deal/deal-user-attorney-link-type.enum.js.map +1 -1
- package/dist/types/direction/index.d.ts +1 -0
- package/dist/types/direction/index.js +6 -0
- package/dist/types/direction/index.js.map +1 -0
- package/dist/types/permissions/deal-permissions.enum.js +11 -11
- package/dist/types/permissions/geo-permissions.enum.js +13 -13
- package/dist/types/permissions/news-permissions.enum.js +3 -3
- package/dist/types/permissions/user-permissions.enum.js +9 -9
- package/dist/types/realty-presentation/index.d.ts +1 -1
- package/dist/types/snapshot/advert-source.snapshot.d.ts +10 -0
- package/dist/types/snapshot/advert-source.snapshot.js +3 -0
- package/dist/types/snapshot/advert-source.snapshot.js.map +1 -0
- package/dist/types/snapshot/apartment-complex.snapshot.d.ts +35 -0
- package/dist/types/snapshot/apartment-complex.snapshot.js +3 -0
- package/dist/types/snapshot/apartment-complex.snapshot.js.map +1 -0
- package/dist/types/snapshot/archive-reason.snapshot.d.ts +7 -0
- package/dist/types/snapshot/archive-reason.snapshot.js +3 -0
- package/dist/types/snapshot/archive-reason.snapshot.js.map +1 -0
- package/dist/types/snapshot/attorney.snapshot.d.ts +13 -0
- package/dist/types/snapshot/attorney.snapshot.js +3 -0
- package/dist/types/snapshot/attorney.snapshot.js.map +1 -0
- package/dist/types/snapshot/build-company.snapshot.d.ts +22 -0
- package/dist/types/snapshot/build-company.snapshot.js +3 -0
- package/dist/types/snapshot/build-company.snapshot.js.map +1 -0
- package/dist/types/snapshot/customer.snapshot.d.ts +53 -0
- package/dist/types/snapshot/customer.snapshot.js +3 -0
- package/dist/types/snapshot/customer.snapshot.js.map +1 -0
- package/dist/types/snapshot/index.d.ts +9 -0
- package/dist/types/snapshot/index.js +9 -0
- package/dist/types/snapshot/index.js.map +1 -1
- package/dist/types/snapshot/office.snapshot.d.ts +37 -0
- package/dist/types/snapshot/office.snapshot.js +3 -0
- package/dist/types/snapshot/office.snapshot.js.map +1 -0
- package/dist/types/snapshot/representation.snapshot.d.ts +7 -0
- package/dist/types/snapshot/representation.snapshot.js +3 -0
- package/dist/types/snapshot/representation.snapshot.js.map +1 -0
- package/dist/types/snapshot/supported-aggregate-type.enum.d.ts +10 -1
- package/dist/types/snapshot/supported-aggregate-type.enum.js +9 -0
- package/dist/types/snapshot/supported-aggregate-type.enum.js.map +1 -1
- package/dist/types/snapshot/topzone.snapshot.d.ts +19 -0
- package/dist/types/snapshot/topzone.snapshot.js +3 -0
- package/dist/types/snapshot/topzone.snapshot.js.map +1 -0
- package/dist/types/snapshot-builder/snapshot-builder.type.d.ts +10 -1
- package/dist/types/snapshot-builder/snapshot-builder.type.js.map +1 -1
- package/dist/utils/role.utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classification-type.enum.js","sourceRoot":"","sources":["../../../types/attributes/classification-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;
|
|
1
|
+
{"version":3,"file":"classification-type.enum.js","sourceRoot":"","sources":["../../../types/attributes/classification-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,iEAAY,CAAA;IACZ,uEAAe,CAAA;IACf,uEAAe,CAAA;IACf,2EAAiB,CAAA;AACnB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B"}
|
|
@@ -7,10 +7,11 @@ import { HandlingEntity } from './handling.type';
|
|
|
7
7
|
import { CallRedirectEntity } from './call-redirect.type';
|
|
8
8
|
import { CustomerRequestEntity } from './customer-request.type';
|
|
9
9
|
export type AdvertSourceEntity = UniqueIdEntity & {
|
|
10
|
+
globalId: string;
|
|
10
11
|
name: MultiLanguage;
|
|
11
12
|
sort: number;
|
|
12
|
-
receiveType: number | null;
|
|
13
|
-
insertType: number | null;
|
|
13
|
+
receiveType: number[] | null;
|
|
14
|
+
insertType: number[] | null;
|
|
14
15
|
parentId?: number | null;
|
|
15
16
|
isActive: boolean;
|
|
16
17
|
parent?: AdvertSourceEntity;
|
|
@@ -66,7 +66,7 @@ export { RealtorNumberEntity } from './realtor-number.type';
|
|
|
66
66
|
export { RepresentationEntity } from './representation.type';
|
|
67
67
|
export { RequestPresentationPropertyEntity } from './request-presentation-property.type';
|
|
68
68
|
export { RequestPresentationEntity } from './request-presentation.type';
|
|
69
|
-
export { RealtyPresentationEntity, RealtyPresentationImageEntity } from './realty-presentation.type';
|
|
69
|
+
export { RealtyPresentationEntity, RealtyPresentationImageEntity, } from './realty-presentation.type';
|
|
70
70
|
export { RequestPropertyEntity } from './request-property.type';
|
|
71
71
|
export { RoleEntity } from './role.type';
|
|
72
72
|
export { SectionEntity } from './section.type';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseEntity } from
|
|
2
|
-
import { UserEntity } from
|
|
1
|
+
import { BaseEntity } from './base-entity.type';
|
|
2
|
+
import { UserEntity } from './user.type';
|
|
3
3
|
export type ResetPasswordEntity = BaseEntity & {
|
|
4
4
|
userId: number;
|
|
5
5
|
token: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal-user-attorney-link-type.enum.js","sourceRoot":"","sources":["../../../types/deal/deal-user-attorney-link-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;
|
|
1
|
+
{"version":3,"file":"deal-user-attorney-link-type.enum.js","sourceRoot":"","sources":["../../../types/deal/deal-user-attorney-link-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,qDAAyB,CAAA;IACzB,+CAAmB,CAAA;AACrB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DirectionEnum } from './direction-type.enum';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DirectionEnum = void 0;
|
|
4
|
+
var direction_type_enum_1 = require("./direction-type.enum");
|
|
5
|
+
Object.defineProperty(exports, "DirectionEnum", { enumerable: true, get: function () { return direction_type_enum_1.DirectionEnum; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/direction/index.ts"],"names":[],"mappings":";;;AAAA,6DAAsD;AAA7C,oHAAA,aAAa,OAAA"}
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DealPermissions = void 0;
|
|
4
4
|
const DealPermissions = {
|
|
5
|
-
SendDealDocumentForSigning:
|
|
6
|
-
UploadDealDocument:
|
|
7
|
-
DeleteDealDocument:
|
|
8
|
-
GrantVchasnoAccess:
|
|
9
|
-
CreateDeal:
|
|
10
|
-
CloseDeal:
|
|
11
|
-
PartCloseDeal:
|
|
12
|
-
SettleDeal:
|
|
13
|
-
ViewDealTable:
|
|
14
|
-
ViewDealList:
|
|
15
|
-
ViewTovDeal:
|
|
5
|
+
SendDealDocumentForSigning: 'sendDealDocumentForSigning',
|
|
6
|
+
UploadDealDocument: 'uploadDealDocument',
|
|
7
|
+
DeleteDealDocument: 'deleteDealDocument',
|
|
8
|
+
GrantVchasnoAccess: 'grantVchasnoAccess',
|
|
9
|
+
CreateDeal: 'createDeal',
|
|
10
|
+
CloseDeal: 'closeDeal',
|
|
11
|
+
PartCloseDeal: 'partCloseDeal',
|
|
12
|
+
SettleDeal: 'settleDeal',
|
|
13
|
+
ViewDealTable: 'viewDealTable',
|
|
14
|
+
ViewDealList: 'viewDealList',
|
|
15
|
+
ViewTovDeal: 'viewTovDeal',
|
|
16
16
|
};
|
|
17
17
|
exports.DealPermissions = DealPermissions;
|
|
18
18
|
//# sourceMappingURL=deal-permissions.enum.js.map
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GeoPermissions = void 0;
|
|
4
4
|
const TopZonePermissions = {
|
|
5
|
-
CreateTopzone:
|
|
6
|
-
UpdateTopzone:
|
|
7
|
-
ArchiveTopzone:
|
|
8
|
-
ViewTopzoneList:
|
|
5
|
+
CreateTopzone: 'createTopzone',
|
|
6
|
+
UpdateTopzone: 'updateTopzone',
|
|
7
|
+
ArchiveTopzone: 'archiveTopzone',
|
|
8
|
+
ViewTopzoneList: 'viewTopzoneList',
|
|
9
9
|
};
|
|
10
10
|
const StreetPermissions = {
|
|
11
|
-
CreateStreet:
|
|
12
|
-
UpdateStreet:
|
|
13
|
-
ArchiveStreet:
|
|
14
|
-
ViewStreetList:
|
|
11
|
+
CreateStreet: 'createStreet',
|
|
12
|
+
UpdateStreet: 'updateStreet',
|
|
13
|
+
ArchiveStreet: 'archiveStreet',
|
|
14
|
+
ViewStreetList: 'viewStreetList',
|
|
15
15
|
};
|
|
16
16
|
const RegionPermission = {
|
|
17
|
-
CreateRegion:
|
|
18
|
-
UpdateRegion:
|
|
19
|
-
ArchiveRegion:
|
|
20
|
-
ViewRegionList:
|
|
17
|
+
CreateRegion: 'createRegion',
|
|
18
|
+
UpdateRegion: 'updateRegion',
|
|
19
|
+
ArchiveRegion: 'archiveRegion',
|
|
20
|
+
ViewRegionList: 'viewRegionList',
|
|
21
21
|
};
|
|
22
|
-
const GeoPermissions = Object.assign(Object.assign(Object.assign(Object.assign({}, TopZonePermissions), StreetPermissions), RegionPermission), { ViewGeo:
|
|
22
|
+
const GeoPermissions = Object.assign(Object.assign(Object.assign(Object.assign({}, TopZonePermissions), StreetPermissions), RegionPermission), { ViewGeo: 'viewGeo' });
|
|
23
23
|
exports.GeoPermissions = GeoPermissions;
|
|
24
24
|
//# sourceMappingURL=geo-permissions.enum.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NewsPermissions = void 0;
|
|
4
4
|
const NewsPermissions = {
|
|
5
|
-
ViewNewsList:
|
|
6
|
-
CreateNews:
|
|
7
|
-
UpdateNews:
|
|
5
|
+
ViewNewsList: 'viewNewsList',
|
|
6
|
+
CreateNews: 'createNews',
|
|
7
|
+
UpdateNews: 'updateNews',
|
|
8
8
|
};
|
|
9
9
|
exports.NewsPermissions = NewsPermissions;
|
|
10
10
|
//# sourceMappingURL=news-permissions.enum.js.map
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserPermissions = void 0;
|
|
4
4
|
const UserPermissions = {
|
|
5
|
-
CreateUser:
|
|
6
|
-
UpdateUser:
|
|
7
|
-
ArchiveUser:
|
|
8
|
-
ViewUser:
|
|
9
|
-
ViewUserList:
|
|
10
|
-
ViewUserPermissions:
|
|
11
|
-
UpdateUserPermissions:
|
|
12
|
-
ViewUserAttorney:
|
|
13
|
-
ViewBims:
|
|
5
|
+
CreateUser: 'createUser',
|
|
6
|
+
UpdateUser: 'updateUser',
|
|
7
|
+
ArchiveUser: 'archiveUser',
|
|
8
|
+
ViewUser: 'viewUser',
|
|
9
|
+
ViewUserList: 'viewUserList',
|
|
10
|
+
ViewUserPermissions: 'viewUserPermissions',
|
|
11
|
+
UpdateUserPermissions: 'updateUserPermissions',
|
|
12
|
+
ViewUserAttorney: 'viewUserAttorney',
|
|
13
|
+
ViewBims: 'viewBims',
|
|
14
14
|
};
|
|
15
15
|
exports.UserPermissions = UserPermissions;
|
|
16
16
|
//# sourceMappingURL=user-permissions.enum.js.map
|
|
@@ -3,4 +3,4 @@ export { RealtyPresentationOverrides } from './realty-presentation-overrides.typ
|
|
|
3
3
|
export { CreateRealtyPresentationDto } from './create-realty-presentation.dto';
|
|
4
4
|
export { RealtorOffice } from './realtor-office.type';
|
|
5
5
|
export { Realtor } from './realtor.type';
|
|
6
|
-
export { RealtyPresentationResponse, PresentationAttribute } from './realty-presentation-response.type';
|
|
6
|
+
export { RealtyPresentationResponse, PresentationAttribute, } from './realty-presentation-response.type';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advert-source.snapshot.js","sourceRoot":"","sources":["../../../types/snapshot/advert-source.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { MultiLanguage } from '../common';
|
|
2
|
+
type Manager = {
|
|
3
|
+
phone: string;
|
|
4
|
+
name: string;
|
|
5
|
+
surname: string;
|
|
6
|
+
};
|
|
7
|
+
type Expression = {
|
|
8
|
+
name: number;
|
|
9
|
+
value: string;
|
|
10
|
+
scope: Record<string, unknown>;
|
|
11
|
+
};
|
|
12
|
+
export type ApartmentComplexSnapshot = {
|
|
13
|
+
id: string;
|
|
14
|
+
name: MultiLanguage;
|
|
15
|
+
type: number | null;
|
|
16
|
+
lat: string | null;
|
|
17
|
+
lng: string | null;
|
|
18
|
+
geoId: string;
|
|
19
|
+
buildCompanyId: string;
|
|
20
|
+
topzoneId: string | null;
|
|
21
|
+
fileName: string | null;
|
|
22
|
+
sourceName: string | null;
|
|
23
|
+
description: MultiLanguage;
|
|
24
|
+
declination: MultiLanguage;
|
|
25
|
+
attributes: Record<string, unknown>;
|
|
26
|
+
manager: Manager;
|
|
27
|
+
discounts: string[];
|
|
28
|
+
agentInfo: string | null;
|
|
29
|
+
expressions: Expression[];
|
|
30
|
+
sort: number;
|
|
31
|
+
showOnSite: boolean;
|
|
32
|
+
video: string | null;
|
|
33
|
+
site: string | null;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apartment-complex.snapshot.js","sourceRoot":"","sources":["../../../types/snapshot/apartment-complex.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive-reason.snapshot.js","sourceRoot":"","sources":["../../../types/snapshot/archive-reason.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MultiLanguage } from '../common';
|
|
2
|
+
import { AttorneyTypeEnum } from '../attorney/attorney-type.enum';
|
|
3
|
+
export type AttorneySnapshot = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: MultiLanguage;
|
|
6
|
+
vchasnoApiKey: string | null;
|
|
7
|
+
edrpo: string | null;
|
|
8
|
+
email: string | null;
|
|
9
|
+
account: string | null;
|
|
10
|
+
qrCode: string | null;
|
|
11
|
+
address: string | null;
|
|
12
|
+
type: AttorneyTypeEnum | null;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attorney.snapshot.js","sourceRoot":"","sources":["../../../types/snapshot/attorney.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MultiLanguage } from '../common';
|
|
2
|
+
type BuildCompanyImage = {
|
|
3
|
+
imageId: string;
|
|
4
|
+
key: string;
|
|
5
|
+
url: string;
|
|
6
|
+
watermarkedKey: string | null;
|
|
7
|
+
watermarkedUrl: string;
|
|
8
|
+
};
|
|
9
|
+
type Currency = {
|
|
10
|
+
name: string;
|
|
11
|
+
value: number;
|
|
12
|
+
};
|
|
13
|
+
export type BuildCompanySnapshot = {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
alias: string;
|
|
17
|
+
description: MultiLanguage;
|
|
18
|
+
image: BuildCompanyImage | null;
|
|
19
|
+
site: string | null;
|
|
20
|
+
currencies: Currency[];
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-company.snapshot.js","sourceRoot":"","sources":["../../../types/snapshot/build-company.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { RealtySubtypeEnum } from '../customer-property';
|
|
2
|
+
type CustomerPhone = {
|
|
3
|
+
country: string;
|
|
4
|
+
phoneNumber: string;
|
|
5
|
+
};
|
|
6
|
+
type ExclusiveAgreementData = {
|
|
7
|
+
number: string;
|
|
8
|
+
endDate: Date;
|
|
9
|
+
location: string;
|
|
10
|
+
realtySubtype: RealtySubtypeEnum | null;
|
|
11
|
+
roomsCount: number | null;
|
|
12
|
+
squareTotal: number | null;
|
|
13
|
+
squareLiving: number | null;
|
|
14
|
+
price: number | null;
|
|
15
|
+
otherRequirements: string | null;
|
|
16
|
+
currencyConvertCoefficient: number | null;
|
|
17
|
+
servicesSumPercent: number;
|
|
18
|
+
minServicesSum: number;
|
|
19
|
+
penaltyPercent: number;
|
|
20
|
+
additionalConditions: string;
|
|
21
|
+
};
|
|
22
|
+
type Document = {
|
|
23
|
+
id: string;
|
|
24
|
+
key: string;
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
export type CustomerSnapshot = {
|
|
28
|
+
id: string;
|
|
29
|
+
email: string | null;
|
|
30
|
+
photoUrl: string | null;
|
|
31
|
+
firstName: string;
|
|
32
|
+
secondName: string | null;
|
|
33
|
+
surname: string | null;
|
|
34
|
+
blackList: boolean;
|
|
35
|
+
hasContract: boolean;
|
|
36
|
+
annotation: string | null;
|
|
37
|
+
isBotEnabled: boolean;
|
|
38
|
+
archiveAnnotation: string | null;
|
|
39
|
+
address: string | null;
|
|
40
|
+
inn: string | null;
|
|
41
|
+
passport: string | null;
|
|
42
|
+
exclusiveAgreementData: ExclusiveAgreementData | null;
|
|
43
|
+
exclusiveAgreementEndDate: Date | null;
|
|
44
|
+
exclusiveAgreementDocument: Document | null;
|
|
45
|
+
propertyDemonstrationActDocument: Document | null;
|
|
46
|
+
visitedOfficeAt: Date | null;
|
|
47
|
+
archiveReasonId: string | null;
|
|
48
|
+
userId: string | null;
|
|
49
|
+
realtorId: string | null;
|
|
50
|
+
attorneyId: string | null;
|
|
51
|
+
phones: CustomerPhone[];
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.snapshot.js","sourceRoot":"","sources":["../../../types/snapshot/customer.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
export * from './base.snapshot';
|
|
2
2
|
export * from './user.snapshot';
|
|
3
|
+
export * from './advert-source.snapshot';
|
|
4
|
+
export * from './customer.snapshot';
|
|
5
|
+
export * from './office.snapshot';
|
|
6
|
+
export * from './representation.snapshot';
|
|
7
|
+
export * from './attorney.snapshot';
|
|
8
|
+
export * from './build-company.snapshot';
|
|
9
|
+
export * from './archive-reason.snapshot';
|
|
10
|
+
export * from './topzone.snapshot';
|
|
11
|
+
export * from './apartment-complex.snapshot';
|
|
3
12
|
export * from './supported-aggregate-type.enum';
|
|
@@ -16,5 +16,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./base.snapshot"), exports);
|
|
18
18
|
__exportStar(require("./user.snapshot"), exports);
|
|
19
|
+
__exportStar(require("./advert-source.snapshot"), exports);
|
|
20
|
+
__exportStar(require("./customer.snapshot"), exports);
|
|
21
|
+
__exportStar(require("./office.snapshot"), exports);
|
|
22
|
+
__exportStar(require("./representation.snapshot"), exports);
|
|
23
|
+
__exportStar(require("./attorney.snapshot"), exports);
|
|
24
|
+
__exportStar(require("./build-company.snapshot"), exports);
|
|
25
|
+
__exportStar(require("./archive-reason.snapshot"), exports);
|
|
26
|
+
__exportStar(require("./topzone.snapshot"), exports);
|
|
27
|
+
__exportStar(require("./apartment-complex.snapshot"), exports);
|
|
19
28
|
__exportStar(require("./supported-aggregate-type.enum"), exports);
|
|
20
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/snapshot/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC;AAChC,kEAAgD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/snapshot/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC;AAChC,2DAAyC;AACzC,sDAAoC;AACpC,oDAAkC;AAClC,4DAA0C;AAC1C,sDAAoC;AACpC,2DAAyC;AACzC,4DAA0C;AAC1C,qDAAmC;AACnC,+DAA6C;AAC7C,kEAAgD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { MultiLanguage } from '../common';
|
|
2
|
+
import { DirectionEnum } from '../direction';
|
|
3
|
+
import { RealtyTypeEnum } from '../customer-property';
|
|
4
|
+
type OfficePhone = {
|
|
5
|
+
country: string;
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
isRedirect?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type EmployeesCount = {
|
|
10
|
+
directors: number;
|
|
11
|
+
deputyDirectors: number;
|
|
12
|
+
managers: number;
|
|
13
|
+
realtors: number;
|
|
14
|
+
secretaries: number;
|
|
15
|
+
rentalRealtors: number;
|
|
16
|
+
internetManagers: number;
|
|
17
|
+
};
|
|
18
|
+
export type OfficeSnapshot = {
|
|
19
|
+
id: string;
|
|
20
|
+
officeNumber: number;
|
|
21
|
+
email: string;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
isAgency: boolean;
|
|
24
|
+
officeCenter: string | null;
|
|
25
|
+
phones: OfficePhone[];
|
|
26
|
+
address: MultiLanguage | null;
|
|
27
|
+
logo: string | null;
|
|
28
|
+
siteUrl: string | null;
|
|
29
|
+
companyName: string | null;
|
|
30
|
+
employeesCount: EmployeesCount | null;
|
|
31
|
+
mainRealty: RealtyTypeEnum[];
|
|
32
|
+
mainDirections: DirectionEnum[];
|
|
33
|
+
tagline: MultiLanguage | null;
|
|
34
|
+
responsibilityAreas: number[] | null;
|
|
35
|
+
topResponsibilityAreas: number[] | null;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"office.snapshot.js","sourceRoot":"","sources":["../../../types/snapshot/office.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"representation.snapshot.js","sourceRoot":"","sources":["../../../types/snapshot/representation.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
export declare enum SupportedAggregateType {
|
|
2
|
-
User = "user"
|
|
2
|
+
User = "user",
|
|
3
|
+
AdvertSource = "advert-source",
|
|
4
|
+
Customer = "customer",
|
|
5
|
+
Office = "office",
|
|
6
|
+
Representation = "representation",
|
|
7
|
+
Attorney = "attorney",
|
|
8
|
+
BuildCompany = "build-company",
|
|
9
|
+
ArchiveReason = "archive-reason",
|
|
10
|
+
Topzone = "topzone",
|
|
11
|
+
ApartmentComplex = "apartment-complex"
|
|
3
12
|
}
|
|
@@ -4,5 +4,14 @@ exports.SupportedAggregateType = void 0;
|
|
|
4
4
|
var SupportedAggregateType;
|
|
5
5
|
(function (SupportedAggregateType) {
|
|
6
6
|
SupportedAggregateType["User"] = "user";
|
|
7
|
+
SupportedAggregateType["AdvertSource"] = "advert-source";
|
|
8
|
+
SupportedAggregateType["Customer"] = "customer";
|
|
9
|
+
SupportedAggregateType["Office"] = "office";
|
|
10
|
+
SupportedAggregateType["Representation"] = "representation";
|
|
11
|
+
SupportedAggregateType["Attorney"] = "attorney";
|
|
12
|
+
SupportedAggregateType["BuildCompany"] = "build-company";
|
|
13
|
+
SupportedAggregateType["ArchiveReason"] = "archive-reason";
|
|
14
|
+
SupportedAggregateType["Topzone"] = "topzone";
|
|
15
|
+
SupportedAggregateType["ApartmentComplex"] = "apartment-complex";
|
|
7
16
|
})(SupportedAggregateType || (exports.SupportedAggregateType = SupportedAggregateType = {}));
|
|
8
17
|
//# sourceMappingURL=supported-aggregate-type.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-aggregate-type.enum.js","sourceRoot":"","sources":["../../../types/snapshot/supported-aggregate-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"supported-aggregate-type.enum.js","sourceRoot":"","sources":["../../../types/snapshot/supported-aggregate-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAWX;AAXD,WAAY,sBAAsB;IAChC,uCAAa,CAAA;IACb,wDAA8B,CAAA;IAC9B,+CAAqB,CAAA;IACrB,2CAAiB,CAAA;IACjB,2DAAiC,CAAA;IACjC,+CAAqB,CAAA;IACrB,wDAA8B,CAAA;IAC9B,0DAAgC,CAAA;IAChC,6CAAmB,CAAA;IACnB,gEAAsC,CAAA;AACxC,CAAC,EAXW,sBAAsB,sCAAtB,sBAAsB,QAWjC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MultiLanguage } from '../common';
|
|
2
|
+
type Coordinate = {
|
|
3
|
+
lat: string;
|
|
4
|
+
lng: string;
|
|
5
|
+
};
|
|
6
|
+
type Bounds = {
|
|
7
|
+
northeast: Coordinate;
|
|
8
|
+
southwest: Coordinate;
|
|
9
|
+
};
|
|
10
|
+
export type TopzoneSnapshot = {
|
|
11
|
+
id: string;
|
|
12
|
+
name: MultiLanguage;
|
|
13
|
+
declension: MultiLanguage;
|
|
14
|
+
alias: string;
|
|
15
|
+
lat: string | null;
|
|
16
|
+
lng: string | null;
|
|
17
|
+
bounds: Bounds | null;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topzone.snapshot.js","sourceRoot":"","sources":["../../../types/snapshot/topzone.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import { UserSnapshot, SupportedAggregateType } from '../snapshot';
|
|
1
|
+
import { UserSnapshot, AdvertSourceSnapshot, CustomerSnapshot, OfficeSnapshot, RepresentationSnapshot, AttorneySnapshot, BuildCompanySnapshot, ArchiveReasonSnapshot, TopzoneSnapshot, ApartmentComplexSnapshot, SupportedAggregateType } from '../snapshot';
|
|
2
2
|
export type AggregateToSnapshot = {
|
|
3
3
|
[SupportedAggregateType.User]: UserSnapshot;
|
|
4
|
+
[SupportedAggregateType.AdvertSource]: AdvertSourceSnapshot;
|
|
5
|
+
[SupportedAggregateType.Customer]: CustomerSnapshot;
|
|
6
|
+
[SupportedAggregateType.Office]: OfficeSnapshot;
|
|
7
|
+
[SupportedAggregateType.Representation]: RepresentationSnapshot;
|
|
8
|
+
[SupportedAggregateType.Attorney]: AttorneySnapshot;
|
|
9
|
+
[SupportedAggregateType.BuildCompany]: BuildCompanySnapshot;
|
|
10
|
+
[SupportedAggregateType.ArchiveReason]: ArchiveReasonSnapshot;
|
|
11
|
+
[SupportedAggregateType.Topzone]: TopzoneSnapshot;
|
|
12
|
+
[SupportedAggregateType.ApartmentComplex]: ApartmentComplexSnapshot;
|
|
4
13
|
};
|
|
5
14
|
export type Payload<A extends SupportedAggregateType = SupportedAggregateType> = AggregateToSnapshot[A];
|
|
6
15
|
export type SnapshotBuildResult<A extends SupportedAggregateType> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-builder.type.js","sourceRoot":"","sources":["../../../types/snapshot-builder/snapshot-builder.type.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"snapshot-builder.type.js","sourceRoot":"","sources":["../../../types/snapshot-builder/snapshot-builder.type.ts"],"names":[],"mappings":";;AAAA,0CAYqB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Role } from
|
|
1
|
+
import { Role } from '../types/roles';
|
|
2
2
|
export declare const canPerformAction: (userRole: Role | undefined, requiredRole: Role) => boolean;
|
|
3
3
|
export declare const getRoleWeight: (role: Role) => number;
|
|
4
4
|
export declare const isRoleHigher: (role1: Role, role2: Role) => boolean;
|