samls-js-integration 1.0.39 → 1.0.40
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/README.md +6 -1
- package/dist/clients/AddressDetail.d.ts +5 -0
- package/dist/clients/AddressDetail.js +6 -0
- package/dist/clients/ListingsClient.d.ts +9 -0
- package/dist/clients/ListingsClient.js +18 -0
- package/dist/clients/MlsClient.d.ts +6 -0
- package/dist/clients/MlsClient.js +10 -0
- package/dist/clients/PolygonClient.d.ts +5 -0
- package/dist/clients/PolygonClient.js +7 -0
- package/dist/clients/index.js +3 -0
- package/dist/globals/HttpModule.d.ts +1 -0
- package/dist/globals/HttpModule.js +4 -0
- package/dist/globals/constants/url.d.ts +4 -0
- package/dist/globals/constants/url.js +4 -0
- package/dist/globals/index.js +3 -0
- package/dist/globals/models/IApiResponse.d.ts +5 -0
- package/dist/globals/models/IApiResponse.js +1 -0
- package/{lib/globals/models/index.ts → dist/globals/models/index.d.ts} +0 -1
- package/dist/globals/models/index.js +2 -0
- package/dist/index.js +2 -0
- package/dist/models/Address/AddressDetailModel.d.ts +37 -0
- package/dist/models/Address/AddressDetailModel.js +38 -0
- package/dist/models/Address/AddressQueryModel.d.ts +5 -0
- package/dist/models/Address/AddressQueryModel.js +8 -0
- package/dist/models/Address/index.js +2 -0
- package/dist/models/Agent/AgentInfoModel.d.ts +27 -0
- package/dist/models/Agent/AgentInfoModel.js +28 -0
- package/dist/models/Agent/AgentModel.d.ts +7 -0
- package/dist/models/Agent/AgentModel.js +8 -0
- package/dist/models/Agent/GetAgentRequestModel.d.ts +6 -0
- package/dist/models/Agent/GetAgentRequestModel.js +7 -0
- package/dist/models/Agent/GetAgentsRequestModel.d.ts +8 -0
- package/dist/models/Agent/GetAgentsRequestModel.js +10 -0
- package/dist/models/Agent/OfficeModel.d.ts +19 -0
- package/dist/models/Agent/OfficeModel.js +20 -0
- package/dist/models/Agent/index.js +5 -0
- package/dist/models/Common/GlobalQueryModel.d.ts +11 -0
- package/dist/models/Common/GlobalQueryModel.js +14 -0
- package/dist/models/Common/LocationModel.d.ts +4 -0
- package/dist/models/Common/LocationModel.js +6 -0
- package/dist/models/Common/PaginationOptions.d.ts +4 -0
- package/dist/models/Common/PaginationOptions.js +6 -0
- package/dist/models/Common/Point.d.ts +5 -0
- package/dist/models/Common/Point.js +7 -0
- package/dist/models/Common/index.js +5 -0
- package/dist/models/Entities/AddressDetail.d.ts +42 -0
- package/dist/models/Entities/AddressDetail.js +42 -0
- package/dist/models/Entities/AddressPolygon.d.ts +10 -0
- package/dist/models/Entities/AddressPolygon.js +10 -0
- package/dist/models/Entities/Entity.d.ts +6 -0
- package/dist/models/Entities/Entity.js +7 -0
- package/dist/models/Entities/Listing.d.ts +78 -0
- package/dist/models/Entities/Listing.js +3 -0
- package/dist/models/Entities/ListingOpenHouse.d.ts +24 -0
- package/dist/models/Entities/ListingOpenHouse.js +3 -0
- package/dist/models/Entities/ListingSchool.d.ts +9 -0
- package/dist/models/Entities/ListingSchool.js +9 -0
- package/dist/models/Entities/Polygon.d.ts +2 -0
- package/dist/models/Entities/Polygon.js +3 -0
- package/dist/models/Entities/Property.d.ts +2 -0
- package/dist/models/Entities/Property.js +3 -0
- package/dist/models/Entities/PropertyFeature.d.ts +2 -0
- package/dist/models/Entities/PropertyFeature.js +3 -0
- package/dist/models/Entities/School.d.ts +2 -0
- package/dist/models/Entities/School.js +3 -0
- package/dist/models/Entities/index.js +10 -0
- package/dist/models/Enums/AgentTypeEnum.d.ts +6 -0
- package/dist/models/Enums/AgentTypeEnum.js +7 -0
- package/dist/models/Enums/AssociationFeeFrequencyEnum.d.ts +13 -0
- package/dist/models/Enums/AssociationFeeFrequencyEnum.js +14 -0
- package/dist/models/Enums/AuthenticationTypeEnum.d.ts +6 -0
- package/dist/models/Enums/AuthenticationTypeEnum.js +7 -0
- package/dist/models/Enums/CurrencyEnum.d.ts +5 -0
- package/dist/models/Enums/CurrencyEnum.js +6 -0
- package/dist/models/Enums/DirectionFacesEnum.d.ts +11 -0
- package/dist/models/Enums/DirectionFacesEnum.js +12 -0
- package/dist/models/Enums/FeatureSourceEnum.d.ts +6 -0
- package/dist/models/Enums/FeatureSourceEnum.js +14 -0
- package/dist/models/Enums/GeometryTypeEnum.d.ts +10 -0
- package/dist/models/Enums/GeometryTypeEnum.js +11 -0
- package/dist/models/Enums/ListingStatusEnum.d.ts +15 -0
- package/dist/models/Enums/ListingStatusEnum.js +31 -0
- package/dist/models/Enums/ListingTypeClassEnum.d.ts +6 -0
- package/dist/models/Enums/ListingTypeClassEnum.js +6 -0
- package/dist/models/Enums/ListingTypeEnum.d.ts +16 -0
- package/dist/models/Enums/ListingTypeEnum.js +20 -0
- package/dist/models/Enums/MLSEnum.d.ts +38 -0
- package/dist/models/Enums/MLSEnum.js +39 -0
- package/dist/models/Enums/OrderByOptions.d.ts +6 -0
- package/dist/models/Enums/OrderByOptions.js +7 -0
- package/dist/models/Enums/OwnershipTypeEnum.d.ts +22 -0
- package/dist/models/Enums/OwnershipTypeEnum.js +26 -0
- package/dist/models/Enums/PhysicalPropertyClassEnum.d.ts +6 -0
- package/dist/models/Enums/PhysicalPropertyClassEnum.js +7 -0
- package/dist/models/Enums/PhysicalPropertyTypeEnum.d.ts +51 -0
- package/dist/models/Enums/PhysicalPropertyTypeEnum.js +55 -0
- package/dist/models/Enums/PlatformEnum.d.ts +6 -0
- package/dist/models/Enums/PlatformEnum.js +7 -0
- package/dist/models/Enums/ProcessingStatusEnum.d.ts +8 -0
- package/dist/models/Enums/ProcessingStatusEnum.js +9 -0
- package/dist/models/Enums/ProcessingTypeEnum.d.ts +5 -0
- package/dist/models/Enums/ProcessingTypeEnum.js +6 -0
- package/dist/models/Enums/PropertyConditionEnum.d.ts +17 -0
- package/dist/models/Enums/PropertyConditionEnum.js +21 -0
- package/dist/models/Enums/PropertyLevelEnum.d.ts +12 -0
- package/dist/models/Enums/PropertyLevelEnum.js +16 -0
- package/dist/models/Enums/StreetDirectionEnum.d.ts +11 -0
- package/dist/models/Enums/StreetDirectionEnum.js +15 -0
- package/dist/models/Enums/StreetSuffixEnum.d.ts +245 -0
- package/dist/models/Enums/StreetSuffixEnum.js +246 -0
- package/dist/models/Enums/index.js +22 -0
- package/dist/models/Feature/CategoryModel.d.ts +4 -0
- package/dist/models/Feature/CategoryModel.js +6 -0
- package/dist/models/Feature/FeatureModel.d.ts +9 -0
- package/dist/models/Feature/FeatureModel.js +9 -0
- package/dist/models/Feature/SubCategoryModel.d.ts +4 -0
- package/dist/models/Feature/SubCategoryModel.js +6 -0
- package/dist/models/Feature/index.js +3 -0
- package/dist/models/Listing/ClusteringFilterRequestBaseModel.d.ts +0 -0
- package/{lib/models/Listing/ClusteringFilterRequestBaseModel.ts → dist/models/Listing/ClusteringFilterRequestBaseModel.js} +2 -1
- package/dist/models/Listing/GetByIdRequestModel.d.ts +5 -0
- package/dist/models/Listing/GetByIdRequestModel.js +9 -0
- package/dist/models/Listing/GetByMlsIdRequestModel.d.ts +6 -0
- package/dist/models/Listing/GetByMlsIdRequestModel.js +9 -0
- package/dist/models/Listing/GetListingsByFilterRequestModel.d.ts +13 -0
- package/dist/models/Listing/GetListingsByFilterRequestModel.js +15 -0
- package/dist/models/Listing/ListingModel.d.ts +81 -0
- package/dist/models/Listing/ListingModel.js +75 -0
- package/dist/models/Listing/OpenHouseModel.d.ts +20 -0
- package/dist/models/Listing/OpenHouseModel.js +23 -0
- package/dist/models/Listing/PhotoModel.d.ts +10 -0
- package/dist/models/Listing/PhotoModel.js +13 -0
- package/dist/models/Listing/PropertyModel.d.ts +49 -0
- package/dist/models/Listing/PropertyModel.js +48 -0
- package/dist/models/Listing/RentPriceModel.d.ts +34 -0
- package/dist/models/Listing/RentPriceModel.js +37 -0
- package/dist/models/Listing/StyleModel.d.ts +4 -0
- package/dist/models/Listing/StyleModel.js +7 -0
- package/dist/models/Listing/WalkScoreModel.d.ts +9 -0
- package/dist/models/Listing/WalkScoreModel.js +12 -0
- package/dist/models/Listing/index.js +10 -0
- package/dist/models/Mls/MlsInfoModel.d.ts +8 -0
- package/dist/models/Mls/MlsInfoModel.js +11 -0
- package/dist/models/Mls/index.js +1 -0
- package/dist/models/PData/index.js +1 -0
- package/dist/models/PData/models/Condition.d.ts +4 -0
- package/dist/models/PData/models/Condition.js +5 -0
- package/dist/models/PData/models/ConditionModel.d.ts +13 -0
- package/dist/models/PData/models/ConditionModel.js +15 -0
- package/dist/models/PData/models/IPagination.d.ts +4 -0
- package/dist/models/PData/models/IPagination.js +1 -0
- package/dist/models/PData/models/Operator.d.ts +14 -0
- package/dist/models/PData/models/Operator.js +15 -0
- package/dist/models/PData/models/Ordering.d.ts +7 -0
- package/dist/models/PData/models/Ordering.js +11 -0
- package/dist/models/PData/models/index.js +5 -0
- package/dist/models/Polygon/LimitModel.d.ts +6 -0
- package/dist/models/Polygon/LimitModel.js +9 -0
- package/dist/models/Polygon/PolygonFilterRequestModel.d.ts +9 -0
- package/dist/models/Polygon/PolygonFilterRequestModel.js +12 -0
- package/dist/models/Polygon/PolygonFilterResponseModel.d.ts +8 -0
- package/dist/models/Polygon/PolygonFilterResponseModel.js +9 -0
- package/dist/models/Polygon/PolygonLiteResponseModel.d.ts +15 -0
- package/dist/models/Polygon/PolygonLiteResponseModel.js +17 -0
- package/dist/models/Polygon/index.js +4 -0
- package/dist/models/School/SchoolIdentifierModel.d.ts +0 -0
- package/{lib/models/School/SchoolIdentifierModel.ts → dist/models/School/SchoolIdentifierModel.js} +2 -1
- package/dist/models/School/SchoolModel.d.ts +13 -0
- package/dist/models/School/SchoolModel.js +16 -0
- package/dist/models/School/index.js +1 -0
- package/dist/models/index.js +12 -0
- package/dist/services/SamlsClient.d.ts +8 -0
- package/{lib/services/SamlsClient.ts → dist/services/SamlsClient.js} +6 -5
- package/package.json +5 -5
- package/dist/browser/samls.js +0 -1348
- package/dist/node/samls.cjs +0 -1345
- package/lib/clients/AddressDetail.ts +0 -10
- package/lib/clients/ListingsClient.ts +0 -36
- package/lib/clients/MlsClient.ts +0 -14
- package/lib/clients/PolygonClient.ts +0 -12
- package/lib/globals/HttpModule.ts +0 -6
- package/lib/globals/constants/url.ts +0 -4
- package/lib/globals/models/IApiResponse.ts +0 -5
- package/lib/globals/models/ObjectPropertyPathChecker.ts +0 -3
- package/lib/models/Address/AddressDetailModel.ts +0 -39
- package/lib/models/Address/AddressQueryModel.ts +0 -10
- package/lib/models/Agent/AgentInfoModel.ts +0 -28
- package/lib/models/Agent/AgentModel.ts +0 -8
- package/lib/models/Agent/GetAgentRequestModel.ts +0 -8
- package/lib/models/Agent/GetAgentsRequestModel.ts +0 -9
- package/lib/models/Agent/OfficeModel.ts +0 -20
- package/lib/models/Common/GlobalQueryModel.ts +0 -17
- package/lib/models/Common/LocationModel.ts +0 -4
- package/lib/models/Common/PaginationOptions.ts +0 -4
- package/lib/models/Common/Point.ts +0 -10
- package/lib/models/Entities/AddressDetail.ts +0 -46
- package/lib/models/Entities/AddressPolygon.ts +0 -11
- package/lib/models/Entities/Entity.ts +0 -11
- package/lib/models/Entities/Listing.ts +0 -87
- package/lib/models/Entities/ListingOpenHouse.ts +0 -26
- package/lib/models/Entities/ListingSchool.ts +0 -10
- package/lib/models/Entities/Polygon.ts +0 -23
- package/lib/models/Entities/Property.ts +0 -60
- package/lib/models/Entities/PropertyFeature.ts +0 -13
- package/lib/models/Entities/School.ts +0 -19
- package/lib/models/Enums/AgentTypeEnum.ts +0 -7
- package/lib/models/Enums/AssociationFeeFrequencyEnum.ts +0 -13
- package/lib/models/Enums/AuthenticationTypeEnum.ts +0 -6
- package/lib/models/Enums/CurrencyEnum.ts +0 -5
- package/lib/models/Enums/DirectionFacesEnum.ts +0 -11
- package/lib/models/Enums/FeatureSourceEnum.ts +0 -15
- package/lib/models/Enums/GeometryTypeEnum.ts +0 -10
- package/lib/models/Enums/ListingStatusEnum.ts +0 -35
- package/lib/models/Enums/ListingTypeClassEnum.ts +0 -7
- package/lib/models/Enums/ListingTypeEnum.ts +0 -20
- package/lib/models/Enums/MLSEnum.ts +0 -38
- package/lib/models/Enums/OrderByOptions.ts +0 -6
- package/lib/models/Enums/OwnershipTypeEnum.ts +0 -26
- package/lib/models/Enums/PhysicalPropertyClassEnum.ts +0 -6
- package/lib/models/Enums/PhysicalPropertyTypeEnum.ts +0 -55
- package/lib/models/Enums/PlatformEnum.ts +0 -6
- package/lib/models/Enums/ProcessingStatusEnum.ts +0 -8
- package/lib/models/Enums/ProcessingTypeEnum.ts +0 -5
- package/lib/models/Enums/PropertyConditionEnum.ts +0 -21
- package/lib/models/Enums/PropertyLevelEnum.ts +0 -16
- package/lib/models/Enums/StreetDirectionEnum.ts +0 -15
- package/lib/models/Enums/StreetSuffixEnum.ts +0 -245
- package/lib/models/Feature/CategoryModel.ts +0 -4
- package/lib/models/Feature/FeatureModel.ts +0 -11
- package/lib/models/Feature/SubCategoryModel.ts +0 -4
- package/lib/models/Listing/ClusteringFilterResponseModel.cs +0 -29
- package/lib/models/Listing/GetByAddressRequestModel.cs +0 -21
- package/lib/models/Listing/GetByAgentRequestModel.cs +0 -13
- package/lib/models/Listing/GetByIdRequestModel.ts +0 -12
- package/lib/models/Listing/GetByMlsIdRequestModel.ts +0 -12
- package/lib/models/Listing/GetListingsByFilterRequestModel.ts +0 -19
- package/lib/models/Listing/GetMapListingsRequestModel.cs +0 -16
- package/lib/models/Listing/GetNearByListingsRequestModel.cs +0 -17
- package/lib/models/Listing/GetPhotosByIdsRequestModel.cs +0 -6
- package/lib/models/Listing/ListingDistancedModel.cs +0 -7
- package/lib/models/Listing/ListingModel.ts +0 -88
- package/lib/models/Listing/ListingsLocationQueryModel.cs +0 -16
- package/lib/models/Listing/LocationOptions.cs +0 -8
- package/lib/models/Listing/NearByListingsResponse.cs +0 -37
- package/lib/models/Listing/OpenHouseLiteModel.cs +0 -7
- package/lib/models/Listing/OpenHouseModel.ts +0 -21
- package/lib/models/Listing/PhotoModel.ts +0 -10
- package/lib/models/Listing/PropertyModel.ts +0 -57
- package/lib/models/Listing/RentPriceModel.ts +0 -35
- package/lib/models/Listing/StyleModel.ts +0 -5
- package/lib/models/Listing/WalkScoreModel.ts +0 -10
- package/lib/models/Mls/MlsInfoModel.ts +0 -9
- package/lib/models/PData/models/Condition.ts +0 -4
- package/lib/models/PData/models/ConditionModel.ts +0 -20
- package/lib/models/PData/models/IPagination.ts +0 -4
- package/lib/models/PData/models/Operator.ts +0 -14
- package/lib/models/PData/models/Ordering.ts +0 -12
- package/lib/models/Polygon/LimitModel.ts +0 -12
- package/lib/models/Polygon/PolygonFilterRequestModel.ts +0 -15
- package/lib/models/Polygon/PolygonFilterResponseModel.ts +0 -15
- package/lib/models/Polygon/PolygonLiteResponseModel.ts +0 -15
- package/lib/models/Polygon/PolygonResponseModel.cs +0 -22
- package/lib/models/Polygon/PolygonsQueryModel.cs +0 -12
- package/lib/models/School/SchoolModel.ts +0 -14
- package/lib/models/School/SchoolsByRadiusBatchRequestModel.cs +0 -6
- package/lib/models/School/SchoolsByRadiusRequestModel.cs +0 -10
- /package/{lib/clients/index.ts → dist/clients/index.d.ts} +0 -0
- /package/{lib/globals/index.ts → dist/globals/index.d.ts} +0 -0
- /package/{lib/index.ts → dist/index.d.ts} +0 -0
- /package/{lib/models/Address/index.ts → dist/models/Address/index.d.ts} +0 -0
- /package/{lib/models/Agent/index.ts → dist/models/Agent/index.d.ts} +0 -0
- /package/{lib/models/Common/index.ts → dist/models/Common/index.d.ts} +0 -0
- /package/{lib/models/Entities/index.ts → dist/models/Entities/index.d.ts} +0 -0
- /package/{lib/models/Enums/index.ts → dist/models/Enums/index.d.ts} +0 -0
- /package/{lib/models/Feature/index.ts → dist/models/Feature/index.d.ts} +0 -0
- /package/{lib/models/Listing/index.ts → dist/models/Listing/index.d.ts} +0 -0
- /package/{lib/models/Mls/index.ts → dist/models/Mls/index.d.ts} +0 -0
- /package/{lib/models/PData/index.ts → dist/models/PData/index.d.ts} +0 -0
- /package/{lib/models/PData/models/index.ts → dist/models/PData/models/index.d.ts} +0 -0
- /package/{lib/models/Polygon/index.ts → dist/models/Polygon/index.d.ts} +0 -0
- /package/{lib/models/School/index.ts → dist/models/School/index.d.ts} +0 -0
- /package/{lib/models/index.ts → dist/models/index.d.ts} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AddressDetailModel, AddressQueryModel } from '../models';
|
|
2
|
-
import { http, IApiResponse, IPagination } from '../globals';
|
|
3
|
-
|
|
4
|
-
export class AddressDetail {
|
|
5
|
-
getByQuery(
|
|
6
|
-
queryModel: AddressQueryModel,
|
|
7
|
-
): Promise<IApiResponse<IPagination<AddressDetailModel>>> {
|
|
8
|
-
return http.post(`AddressDetail/query`, queryModel);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ListingModel,
|
|
3
|
-
GetByMlsIdRequestModel,
|
|
4
|
-
GetListingsByFilterRequestModel,
|
|
5
|
-
GlobalQueryModel,
|
|
6
|
-
ListingTypeClassEnum,
|
|
7
|
-
ListingTypeEnum,
|
|
8
|
-
GetByIdRequestModel,
|
|
9
|
-
} from '../models';
|
|
10
|
-
import { http, IPagination, IApiResponse } from '../globals';
|
|
11
|
-
|
|
12
|
-
export class ListingsClient {
|
|
13
|
-
get(model: GetByIdRequestModel): Promise<IApiResponse<ListingModel>> {
|
|
14
|
-
return http.post('Listing', model);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
getListingsByFilter(
|
|
18
|
-
model: GetListingsByFilterRequestModel,
|
|
19
|
-
): Promise<IApiResponse<IPagination<ListingModel>>> {
|
|
20
|
-
return http.post('Listing/filter', model);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
getByMlsId(model: GetByMlsIdRequestModel): Promise<IApiResponse<Partial<ListingModel>[]>> {
|
|
24
|
-
return http.post('Listing/mlsId', model);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
getByQuery(queryModel: GlobalQueryModel): Promise<IApiResponse<IPagination<ListingModel>>> {
|
|
28
|
-
return http.post('Listing/query', queryModel);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
getListingTypeGroups(): Promise<
|
|
32
|
-
IApiResponse<Record<keyof typeof ListingTypeClassEnum, (keyof typeof ListingTypeEnum)[]>>
|
|
33
|
-
> {
|
|
34
|
-
return http.get('Listing/type/groups');
|
|
35
|
-
}
|
|
36
|
-
}
|
package/lib/clients/MlsClient.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MlsInfoModel } from '../models';
|
|
2
|
-
import { http, IApiResponse } from '../globals';
|
|
3
|
-
|
|
4
|
-
const PATH_SEGMENT = 'AddressDetail';
|
|
5
|
-
|
|
6
|
-
export class MlsClient {
|
|
7
|
-
getMlsInfos(): Promise<IApiResponse<MlsInfoModel[]>> {
|
|
8
|
-
return http.get(`${PATH_SEGMENT}/Mls`);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
getMlsInfoById(id: number): Promise<IApiResponse<MlsInfoModel>> {
|
|
12
|
-
return http.get(`${PATH_SEGMENT}/Mls/${id}`);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { http, IApiResponse } from '../globals';
|
|
2
|
-
import { PolygonFilterRequestModel, PolygonFilterResponseModel } from '../models';
|
|
3
|
-
|
|
4
|
-
const PATH_SEGMENT = 'Polygon';
|
|
5
|
-
|
|
6
|
-
export class PolygonClient {
|
|
7
|
-
filter(
|
|
8
|
-
model: PolygonFilterRequestModel,
|
|
9
|
-
): Promise<IApiResponse<PolygonFilterResponseModel[]>> {
|
|
10
|
-
return http.post(`${PATH_SEGMENT}/filter`, model);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { StreetDirectionEnum, StreetSuffixEnum } from '../Enums';
|
|
2
|
-
|
|
3
|
-
export class AddressDetailModel {
|
|
4
|
-
coreListingId: number = 0;
|
|
5
|
-
city: string = '';
|
|
6
|
-
country: string = '';
|
|
7
|
-
county: string = '';
|
|
8
|
-
crossStreet: string = '';
|
|
9
|
-
directions: string = '';
|
|
10
|
-
elementarySchool: string = '';
|
|
11
|
-
elementarySchoolDistrict: string = '';
|
|
12
|
-
fullAddress: string = '';
|
|
13
|
-
highSchool: string = '';
|
|
14
|
-
highSchoolDistrict: string = '';
|
|
15
|
-
latitude: number | null = null;
|
|
16
|
-
locationDescription: string = '';
|
|
17
|
-
longitude: number | null = null;
|
|
18
|
-
middleOrJuniorSchool: string = '';
|
|
19
|
-
middleOrJuniorSchoolDistrict: string = '';
|
|
20
|
-
neighborhood: string = '';
|
|
21
|
-
postalCode: string = '';
|
|
22
|
-
seniorCommunityYN: boolean | null = null;
|
|
23
|
-
stateOrProvince: string = '';
|
|
24
|
-
streetDirPrefix: StreetDirectionEnum | null = null;
|
|
25
|
-
streetDirSuffix: StreetDirectionEnum | null = null;
|
|
26
|
-
streetName: string = '';
|
|
27
|
-
streetNumber: string = '';
|
|
28
|
-
streetSuffix: StreetSuffixEnum | null = null;
|
|
29
|
-
subDivision: string = '';
|
|
30
|
-
unitNumber: string = '';
|
|
31
|
-
waterBodyName: string = '';
|
|
32
|
-
waterfrontProximity: string = '';
|
|
33
|
-
waterfrontYN: boolean | null = null;
|
|
34
|
-
zoning: string = '';
|
|
35
|
-
samlsFullAddress: string = '';
|
|
36
|
-
samlsPartialAddress: string = '';
|
|
37
|
-
|
|
38
|
-
polygonCollection: number[] = [];
|
|
39
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GlobalQueryModel } from '../Common';
|
|
2
|
-
|
|
3
|
-
export class AddressQueryModel extends GlobalQueryModel {
|
|
4
|
-
fullAddress: string = '';
|
|
5
|
-
|
|
6
|
-
constructor(fullAddress: string, data?: Partial<GlobalQueryModel>) {
|
|
7
|
-
super(data);
|
|
8
|
-
this.fullAddress = fullAddress;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { MLSEnum } from "../Enums";
|
|
2
|
-
|
|
3
|
-
export class AgentInfoModel {
|
|
4
|
-
agentId: number = 0;
|
|
5
|
-
agentAOR: string = '';
|
|
6
|
-
agentDesignation: string = '';
|
|
7
|
-
agentDirectPhone: string = '';
|
|
8
|
-
agentEmail: string = '';
|
|
9
|
-
agentFirstName: string = '';
|
|
10
|
-
agentFullName: string = '';
|
|
11
|
-
agentHomePhone: string = '';
|
|
12
|
-
agentKey: string = '';
|
|
13
|
-
agentLastName: string = '';
|
|
14
|
-
agentLicenseNumber: string = '';
|
|
15
|
-
agentMiddleName: string = '';
|
|
16
|
-
agentMls: MLSEnum | null = null;
|
|
17
|
-
agentMlsId: string = '';
|
|
18
|
-
agentMobilePhone: string = '';
|
|
19
|
-
agentNamePrefix: string = '';
|
|
20
|
-
agentNameSuffix: string = '';
|
|
21
|
-
agentOfficePhone: string = '';
|
|
22
|
-
agentOfficePhoneExt: string = '';
|
|
23
|
-
agentPreferredPhone: string = '';
|
|
24
|
-
agentStateLicense: string = '';
|
|
25
|
-
agentUrl: string = '';
|
|
26
|
-
teamKey: string = '';
|
|
27
|
-
teamName: string = '';
|
|
28
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AgentInfoModel } from './AgentInfoModel';
|
|
2
|
-
import { AgentTypeEnum } from '../Enums';
|
|
3
|
-
import { OfficeModel } from './OfficeModel';
|
|
4
|
-
|
|
5
|
-
export class AgentModel extends AgentInfoModel {
|
|
6
|
-
agentTypeId: AgentTypeEnum | null = null;
|
|
7
|
-
office: OfficeModel | null = null;
|
|
8
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MLSEnum } from '../Enums';
|
|
2
|
-
|
|
3
|
-
export class OfficeModel {
|
|
4
|
-
officeKey: string = '';
|
|
5
|
-
officeAOR: string = '';
|
|
6
|
-
officeCity: string = '';
|
|
7
|
-
officeEmail: string = '';
|
|
8
|
-
officeLocation: string = '';
|
|
9
|
-
officeMls: MLSEnum | null = null;
|
|
10
|
-
officeMlsId: string = '';
|
|
11
|
-
officeName: string = '';
|
|
12
|
-
officeNeighborhood: string = '';
|
|
13
|
-
officePhone: string = '';
|
|
14
|
-
officePhoneExt: string = '';
|
|
15
|
-
officeState: string = '';
|
|
16
|
-
officeStreetName: string = '';
|
|
17
|
-
officeStreetNumber: string = '';
|
|
18
|
-
officeURL: string = '';
|
|
19
|
-
officeZip: string = '';
|
|
20
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ConditionModel, OrderingModel } from '../PData';
|
|
2
|
-
|
|
3
|
-
export class GlobalQueryModel {
|
|
4
|
-
skip: number | null = 0;
|
|
5
|
-
take: number | null = 10;
|
|
6
|
-
count: boolean = false;
|
|
7
|
-
filter: string | null = null;
|
|
8
|
-
order: OrderingModel[] | null = null;
|
|
9
|
-
conditions: ConditionModel[] | null = null;
|
|
10
|
-
fields: string[] = [];
|
|
11
|
-
|
|
12
|
-
constructor(data?: Partial<GlobalQueryModel>) {
|
|
13
|
-
if (data) {
|
|
14
|
-
Object.assign(this, data);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Point } from '../Common';
|
|
2
|
-
import { StreetDirectionEnum, StreetSuffixEnum } from '../Enums';
|
|
3
|
-
import { AddressPolygon } from './AddressPolygon';
|
|
4
|
-
import { Listing } from './Listing';
|
|
5
|
-
|
|
6
|
-
export class AddressDetail {
|
|
7
|
-
CoreListingId: number = 0;
|
|
8
|
-
City: string = '';
|
|
9
|
-
Country: string = '';
|
|
10
|
-
County: string = '';
|
|
11
|
-
CrossStreet: string = '';
|
|
12
|
-
Directions: string = '';
|
|
13
|
-
ElementarySchool: string = '';
|
|
14
|
-
ElementarySchoolDistrict: string = '';
|
|
15
|
-
FullAddress: string = '';
|
|
16
|
-
HighSchool: string = '';
|
|
17
|
-
HighSchoolDistrict: string = '';
|
|
18
|
-
Latitude: number | null = null;
|
|
19
|
-
LocationDescription: string = '';
|
|
20
|
-
Longitude: number | null = null;
|
|
21
|
-
MiddleOrJuniorSchool: string = '';
|
|
22
|
-
MiddleOrJuniorSchoolDistrict: string = '';
|
|
23
|
-
Neighborhood: string = '';
|
|
24
|
-
PostalCode: string = '';
|
|
25
|
-
SeniorCommunityYN: boolean | null = null;
|
|
26
|
-
StateOrProvince: string = '';
|
|
27
|
-
StreetDirPrefix: StreetDirectionEnum | null = null;
|
|
28
|
-
StreetDirSuffix: StreetDirectionEnum | null = null;
|
|
29
|
-
StreetName: string = '';
|
|
30
|
-
StreetNumber: string = '';
|
|
31
|
-
StreetSuffix: StreetSuffixEnum | null = null;
|
|
32
|
-
SubDivision: string = '';
|
|
33
|
-
UnitNumber: string = '';
|
|
34
|
-
WaterBodyName: string = '';
|
|
35
|
-
WaterfrontProximity: string = '';
|
|
36
|
-
WaterfrontYN: boolean | null = null;
|
|
37
|
-
Zoning: string = '';
|
|
38
|
-
|
|
39
|
-
Coordinate: Point = new Point(0, 0);
|
|
40
|
-
|
|
41
|
-
SamlsFullAddress: string = '';
|
|
42
|
-
SamlsPartialAddress: string = '';
|
|
43
|
-
|
|
44
|
-
AddressPolygons: AddressPolygon[] = [];
|
|
45
|
-
CoreListing: Listing = new Listing();
|
|
46
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AddressDetail } from './AddressDetail';
|
|
2
|
-
import { Polygon } from './Polygon';
|
|
3
|
-
|
|
4
|
-
export class AddressPolygon {
|
|
5
|
-
id: number = 0;
|
|
6
|
-
addressId: number = 0;
|
|
7
|
-
polygonId: number = 0;
|
|
8
|
-
createDate: Date | null = null;
|
|
9
|
-
polygon: Polygon | null = null;
|
|
10
|
-
address: AddressDetail | null = null;
|
|
11
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CurrencyEnum,
|
|
3
|
-
ListingStatusEnum,
|
|
4
|
-
ListingTypeEnum,
|
|
5
|
-
OwnershipTypeEnum,
|
|
6
|
-
} from '../Enums';
|
|
7
|
-
import { ListingSchool } from './ListingSchool';
|
|
8
|
-
import { ListingOpenHouse } from './ListingOpenHouse';
|
|
9
|
-
import { Property } from './Property';
|
|
10
|
-
import { AddressDetail } from './AddressDetail';
|
|
11
|
-
|
|
12
|
-
//TODO need to revisit
|
|
13
|
-
export class Listing {
|
|
14
|
-
availabilityDate?: Date | null;
|
|
15
|
-
buyerAgencyCompensation?: number | null;
|
|
16
|
-
buyerFinancing?: string;
|
|
17
|
-
closePrice?: number | null;
|
|
18
|
-
closeTimestamp?: Date | null;
|
|
19
|
-
cumulativeDaysOnMarket?: number | null;
|
|
20
|
-
currency?: CurrencyEnum;
|
|
21
|
-
daysOnMarket?: number | null;
|
|
22
|
-
disclosures?: string;
|
|
23
|
-
expirationDate?: Date | null;
|
|
24
|
-
internetAddressDisplayYN?: boolean | null;
|
|
25
|
-
internetAutomatedValuationDisplayYN?: boolean | null;
|
|
26
|
-
internetConsumerCommentYN?: boolean | null;
|
|
27
|
-
internetEntireListingDisplayYN?: boolean | null;
|
|
28
|
-
lastModificationTimestamp?: Date | null;
|
|
29
|
-
leaseTerm?: string;
|
|
30
|
-
listingAgreement?: string;
|
|
31
|
-
listingEntryTimestamp?: Date | null;
|
|
32
|
-
listingId?: string;
|
|
33
|
-
listingService?: string;
|
|
34
|
-
listingStatus?: ListingStatusEnum;
|
|
35
|
-
listingTerms?: string;
|
|
36
|
-
listingType?: ListingTypeEnum;
|
|
37
|
-
listPrice?: number | null;
|
|
38
|
-
listPriceOriginal?: number | null;
|
|
39
|
-
lockBoxLocation?: string;
|
|
40
|
-
lockBoxSerialNumber?: string;
|
|
41
|
-
lockBoxType?: string;
|
|
42
|
-
maxPrice?: number | null;
|
|
43
|
-
minPrice?: number | null;
|
|
44
|
-
mlsArea?: string;
|
|
45
|
-
mlsName?: string;
|
|
46
|
-
onMarketTimestamp?: Date | null;
|
|
47
|
-
offMarketTimestamp?: Date | null;
|
|
48
|
-
originalListingSource?: string;
|
|
49
|
-
originatingSystemKey?: string;
|
|
50
|
-
ownerPays?: string;
|
|
51
|
-
ownershipType?: OwnershipTypeEnum | null;
|
|
52
|
-
pendingTimestamp?: Date | null;
|
|
53
|
-
petDeposit?: number | null;
|
|
54
|
-
petsAllowedYN?: boolean | null;
|
|
55
|
-
photosChangeTimestamp?: Date | null;
|
|
56
|
-
photosCount?: number;
|
|
57
|
-
priceChangeTimestamp?: Date | null;
|
|
58
|
-
privateRemarks?: string;
|
|
59
|
-
publicRemarks?: string;
|
|
60
|
-
purchaseContractDate?: Date | null;
|
|
61
|
-
showingContactName?: string;
|
|
62
|
-
showingContactPhone?: string;
|
|
63
|
-
showingContactPhoneExt?: string;
|
|
64
|
-
showingContactType?: string;
|
|
65
|
-
statusChangeTimestamp?: Date | null;
|
|
66
|
-
taxAnnualAmount?: number | null;
|
|
67
|
-
taxAssessedValue?: number | null;
|
|
68
|
-
taxYear?: number | null;
|
|
69
|
-
tenantPays?: string;
|
|
70
|
-
virtualTourURLBranded?: string;
|
|
71
|
-
virtualTourURLUnbranded?: string;
|
|
72
|
-
withdrawnDate?: Date | null;
|
|
73
|
-
pricePerSqFeet?: number | null;
|
|
74
|
-
|
|
75
|
-
sourceMlsId?: number;
|
|
76
|
-
sourceUpdateDate?: Date | null;
|
|
77
|
-
sourcePropertyChangeDate?: Date | null;
|
|
78
|
-
sourceAddressChangeDate?: Date | null;
|
|
79
|
-
sourcePhotosChangeDate?: Date | null;
|
|
80
|
-
sourceAgentsChangeDate?: Date | null;
|
|
81
|
-
sourceDBId?: number;
|
|
82
|
-
|
|
83
|
-
listingSchools?: ListingSchool[];
|
|
84
|
-
listingOpenHouses?: ListingOpenHouse[];
|
|
85
|
-
property?: Property;
|
|
86
|
-
addressDetail?: AddressDetail;
|
|
87
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Listing } from './Listing';
|
|
2
|
-
|
|
3
|
-
//TODO need to revisit
|
|
4
|
-
export class ListingOpenHouse {
|
|
5
|
-
key?: string;
|
|
6
|
-
status?: string;
|
|
7
|
-
type?: string;
|
|
8
|
-
modificationTimestamp?: Date | null;
|
|
9
|
-
startTime?: Date | null;
|
|
10
|
-
endTime?: Date | null;
|
|
11
|
-
remarks?: string;
|
|
12
|
-
refreshmentsOrSnacks?: string;
|
|
13
|
-
attendedBy?: string;
|
|
14
|
-
appointmentRequiredYN?: boolean | null;
|
|
15
|
-
liveStreamUri?: string;
|
|
16
|
-
liveStreamDescription?: string;
|
|
17
|
-
liveStreamStart?: Date | null;
|
|
18
|
-
liveStreamEnd?: Date | null;
|
|
19
|
-
showingAgentMlsId?: string;
|
|
20
|
-
showingAgentFirstName?: string;
|
|
21
|
-
showingAgentLastName?: string;
|
|
22
|
-
showingAgentKey?: string;
|
|
23
|
-
hash?: string;
|
|
24
|
-
coreListingId?: number;
|
|
25
|
-
listing?: Listing;
|
|
26
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Listing } from './Listing';
|
|
2
|
-
import { School } from './School';
|
|
3
|
-
|
|
4
|
-
export class ListingSchool {
|
|
5
|
-
schoolId: number = 0;
|
|
6
|
-
coreListingId: number = 0;
|
|
7
|
-
school: School | null = null;
|
|
8
|
-
distance: number | null = null;
|
|
9
|
-
listing: Listing | null = null;
|
|
10
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// import { Geometry } from "ol/geom"; //TODO
|
|
2
|
-
import { GeometryTypeEnum } from '../Enums';
|
|
3
|
-
import { AddressPolygon } from './AddressPolygon';
|
|
4
|
-
|
|
5
|
-
type Geometry = any;
|
|
6
|
-
//TODO need to revisit
|
|
7
|
-
export class Polygon {
|
|
8
|
-
// id: number;
|
|
9
|
-
// name: string;
|
|
10
|
-
// shortName: string;
|
|
11
|
-
// type: GeometryTypeEnum;
|
|
12
|
-
// geometry: Geometry;
|
|
13
|
-
// urlKey: string;
|
|
14
|
-
// weight: number;
|
|
15
|
-
// fipsCode: string;
|
|
16
|
-
// state: string;
|
|
17
|
-
// stateId?: number | null;
|
|
18
|
-
// city: string;
|
|
19
|
-
// cityId?: number | null;
|
|
20
|
-
// county: string;
|
|
21
|
-
// neighborhood: string;
|
|
22
|
-
// addressPolygons: AddressPolygon[];
|
|
23
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PropertyLevelEnum,
|
|
3
|
-
DirectionFacesEnum,
|
|
4
|
-
PropertyConditionEnum,
|
|
5
|
-
PhysicalPropertyTypeEnum,
|
|
6
|
-
AssociationFeeFrequencyEnum,
|
|
7
|
-
} from '../Enums';
|
|
8
|
-
import { Listing } from './Listing';
|
|
9
|
-
import { PropertyFeature } from './PropertyFeature';
|
|
10
|
-
|
|
11
|
-
//TODO need to revisit
|
|
12
|
-
export class Property {
|
|
13
|
-
// coreListingId: number;
|
|
14
|
-
// associationFee?: number | null;
|
|
15
|
-
// associationFeeFrequency?: AssociationFeeFrequencyEnum | null;
|
|
16
|
-
// associationFeeIncludes: string;
|
|
17
|
-
// associationName: string;
|
|
18
|
-
// associationPhone: string;
|
|
19
|
-
// basementDetails: string;
|
|
20
|
-
// basementYN?: boolean | null;
|
|
21
|
-
// bathroomsFull?: number | null;
|
|
22
|
-
// bathroomsHalf?: number | null;
|
|
23
|
-
// bathroomsOneQuarter?: number | null;
|
|
24
|
-
// bathroomsPartial?: number | null;
|
|
25
|
-
// bathroomsThreeQuarter?: number | null;
|
|
26
|
-
// bathroomsTotal?: number | null;
|
|
27
|
-
// bedroomsTotal?: number | null;
|
|
28
|
-
// builderModel: string;
|
|
29
|
-
// builderName: string;
|
|
30
|
-
// buildingName: string;
|
|
31
|
-
// directionFaces?: DirectionFacesEnum | null;
|
|
32
|
-
// entryLevel?: number | null;
|
|
33
|
-
// farmYN?: boolean | null;
|
|
34
|
-
// fireplacesTotal?: number | null;
|
|
35
|
-
// garageInBuildingYN?: boolean | null;
|
|
36
|
-
// garageSpaces?: number | null;
|
|
37
|
-
// levels?: PropertyLevelEnum | null;
|
|
38
|
-
// livingAreaSquareFeet?: number | null;
|
|
39
|
-
// livingAreaSquareMeters?: number | null;
|
|
40
|
-
// lotDescription: string;
|
|
41
|
-
// lotSizeAcres?: number | null;
|
|
42
|
-
// lotSizeDimensions: string;
|
|
43
|
-
// lotSizeSquareFeet?: number | null;
|
|
44
|
-
// newConstructionYN?: boolean | null;
|
|
45
|
-
// numberOfUnits?: number | null;
|
|
46
|
-
// parcelNumber: string;
|
|
47
|
-
// parkingTotal?: number | null;
|
|
48
|
-
// physicalPropertyType: PhysicalPropertyTypeEnum;
|
|
49
|
-
// poolPrivateYN?: boolean | null;
|
|
50
|
-
// propertyCondition?: PropertyConditionEnum | null;
|
|
51
|
-
// roofCondition: string;
|
|
52
|
-
// roomsTotal?: number | null;
|
|
53
|
-
// stories?: number | null;
|
|
54
|
-
// universalPropertyId: string;
|
|
55
|
-
// yearBuilt?: number | null;
|
|
56
|
-
// styleId?: number | null;
|
|
57
|
-
//
|
|
58
|
-
// propertyFeatures: PropertyFeature[];
|
|
59
|
-
// coreListing: Listing;
|
|
60
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FeatureSourceEnum } from '../Enums';
|
|
2
|
-
import { Property } from './Property';
|
|
3
|
-
|
|
4
|
-
//TODO need to revisit
|
|
5
|
-
export class PropertyFeature {
|
|
6
|
-
// id: number;
|
|
7
|
-
// featureId: number;
|
|
8
|
-
// sourceId: FeatureSourceEnum;
|
|
9
|
-
// order: string;
|
|
10
|
-
// propertyId: number;
|
|
11
|
-
//
|
|
12
|
-
// property: Property;
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ListingSchool } from './ListingSchool';
|
|
2
|
-
|
|
3
|
-
//TODO need to revisit
|
|
4
|
-
export class School {
|
|
5
|
-
// schoolId: string;
|
|
6
|
-
// enhancerSchoolId: number;
|
|
7
|
-
// url: string;
|
|
8
|
-
// name: string;
|
|
9
|
-
// lowGrade: string;
|
|
10
|
-
// highGrade: string;
|
|
11
|
-
// level: number | null;
|
|
12
|
-
// lat: number | null;
|
|
13
|
-
// lng: number | null;
|
|
14
|
-
// state: string;
|
|
15
|
-
// isPrivate: boolean;
|
|
16
|
-
// score: number | null;
|
|
17
|
-
//
|
|
18
|
-
// schoolListings: ListingSchool[];
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export enum FeatureSourceEnum {
|
|
2
|
-
MLS = 1,
|
|
3
|
-
ImageProcessing = 2,
|
|
4
|
-
NLP = 4,
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
// Helper function to check if a combination of flags is set
|
|
8
|
-
export function hasFlag(enumValue: number, flag: FeatureSourceEnum): boolean {
|
|
9
|
-
return (enumValue & flag) === flag;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// // Usage example
|
|
13
|
-
// const value: FeatureSourceEnum = FeatureSourceEnum.MLS | FeatureSourceEnum.NLP;
|
|
14
|
-
// console.log(hasFlag(value, FeatureSourceEnum.MLS)); // true
|
|
15
|
-
// console.log(hasFlag(value, FeatureSourceEnum.ImageProcessing)); // false
|