samls-js-integration 1.1.50 → 1.1.52
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/Enums/FeatureSourceEnum.d.ts +1 -1
- package/dist/Enums/FeatureSourceEnum.js +1 -10
- package/dist/Feature/PropertyFeature.model.d.ts +5 -0
- package/dist/Feature/PropertyFeature.model.js +11 -0
- package/dist/Listing/Property.model.d.ts +2 -2
- package/dist/Listing/Property.model.js +0 -1
- package/package.json +1 -1
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FeatureSourceEnum = void 0;
|
|
4
4
|
var FeatureSourceEnum;
|
|
5
5
|
(function (FeatureSourceEnum) {
|
|
6
6
|
FeatureSourceEnum[FeatureSourceEnum["MLS"] = 1] = "MLS";
|
|
7
7
|
FeatureSourceEnum[FeatureSourceEnum["ImageProcessing"] = 2] = "ImageProcessing";
|
|
8
8
|
FeatureSourceEnum[FeatureSourceEnum["NLP"] = 4] = "NLP";
|
|
9
9
|
})(FeatureSourceEnum || (exports.FeatureSourceEnum = FeatureSourceEnum = {}));
|
|
10
|
-
// Helper function to check if a combination of flags is set
|
|
11
|
-
function hasFlag(enumValue, flag) {
|
|
12
|
-
return (enumValue & flag) === flag;
|
|
13
|
-
}
|
|
14
|
-
exports.hasFlag = hasFlag;
|
|
15
|
-
// // Usage example
|
|
16
|
-
// const value: FeatureSourceEnum = FeatureSourceEnum.MLS | FeatureSourceEnum.NLP;
|
|
17
|
-
// console.log(hasFlag(value, FeatureSourceEnum.MLS)); // true
|
|
18
|
-
// console.log(hasFlag(value, FeatureSourceEnum.ImageProcessing)); // false
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PropertyFeatureModel = void 0;
|
|
4
|
+
const Feature_model_1 = require("./Feature.model");
|
|
5
|
+
class PropertyFeatureModel extends Feature_model_1.FeatureModel {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.sources = [];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PropertyFeatureModel = PropertyFeatureModel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AssociationFeeFrequencyEnum, DirectionFacesEnum, PhysicalPropertyTypeEnum, PropertyConditionEnum, PropertyLevelEnum } from '../Enums';
|
|
2
2
|
import { StyleModel } from './Style.model';
|
|
3
|
-
import {
|
|
3
|
+
import { PropertyFeatureModel } from '../Feature/PropertyFeature.model';
|
|
4
4
|
export declare class PropertyModel {
|
|
5
5
|
associationFee: number | null;
|
|
6
6
|
associationFeeFrequency: AssociationFeeFrequencyEnum;
|
|
@@ -43,7 +43,7 @@ export declare class PropertyModel {
|
|
|
43
43
|
universalPropertyId: string;
|
|
44
44
|
yearBuilt: number | null;
|
|
45
45
|
style: StyleModel | null;
|
|
46
|
-
features:
|
|
46
|
+
features: PropertyFeatureModel[] | null;
|
|
47
47
|
propertyCondition: PropertyConditionEnum | null;
|
|
48
48
|
physicalPropertyType: keyof typeof PhysicalPropertyTypeEnum;
|
|
49
49
|
}
|