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.
@@ -3,4 +3,4 @@ export declare enum FeatureSourceEnum {
3
3
  ImageProcessing = 2,
4
4
  NLP = 4
5
5
  }
6
- export declare function hasFlag(enumValue: number, flag: FeatureSourceEnum): boolean;
6
+ export type FeatureSourceEnumKeys = keyof typeof FeatureSourceEnum;
@@ -1,18 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hasFlag = exports.FeatureSourceEnum = void 0;
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,5 @@
1
+ import { FeatureSourceEnumKeys } from '../Enums';
2
+ import { FeatureModel } from './Feature.model';
3
+ export declare class PropertyFeatureModel extends FeatureModel {
4
+ sources: FeatureSourceEnumKeys[];
5
+ }
@@ -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 { FeatureModel } from '../Feature';
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: FeatureModel[] | null;
46
+ features: PropertyFeatureModel[] | null;
47
47
  propertyCondition: PropertyConditionEnum | null;
48
48
  physicalPropertyType: keyof typeof PhysicalPropertyTypeEnum;
49
49
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PropertyModel = void 0;
4
- //fully converted
5
4
  const Enums_1 = require("../Enums");
6
5
  class PropertyModel {
7
6
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samls-js-integration",
3
- "version": "1.1.50",
3
+ "version": "1.1.52",
4
4
  "description": "samls npm package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",