samls-js-integration 1.0.45 → 1.0.47

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 (32) hide show
  1. package/dist/globals/constants/url.js +1 -1
  2. package/dist/models/Listing/ListingModel.d.ts +2 -2
  3. package/dist/models/Listing/ListingModel.js +2 -2
  4. package/dist/models/Listing/OpenHouseModel.d.ts +18 -18
  5. package/dist/models/Listing/OpenHouseModel.js +18 -19
  6. package/dist/models/Listing/PropertyModel.d.ts +1 -1
  7. package/dist/models/Listing/PropertyModel.js +3 -1
  8. package/dist/models/index.d.ts +0 -1
  9. package/dist/models/index.js +0 -1
  10. package/package.json +1 -1
  11. package/dist/models/Entities/AddressDetail.d.ts +0 -42
  12. package/dist/models/Entities/AddressDetail.js +0 -46
  13. package/dist/models/Entities/AddressPolygon.d.ts +0 -10
  14. package/dist/models/Entities/AddressPolygon.js +0 -14
  15. package/dist/models/Entities/Entity.d.ts +0 -6
  16. package/dist/models/Entities/Entity.js +0 -11
  17. package/dist/models/Entities/Listing.d.ts +0 -78
  18. package/dist/models/Entities/Listing.js +0 -7
  19. package/dist/models/Entities/ListingOpenHouse.d.ts +0 -24
  20. package/dist/models/Entities/ListingOpenHouse.js +0 -7
  21. package/dist/models/Entities/ListingSchool.d.ts +0 -9
  22. package/dist/models/Entities/ListingSchool.js +0 -13
  23. package/dist/models/Entities/Polygon.d.ts +0 -2
  24. package/dist/models/Entities/Polygon.js +0 -7
  25. package/dist/models/Entities/Property.d.ts +0 -2
  26. package/dist/models/Entities/Property.js +0 -7
  27. package/dist/models/Entities/PropertyFeature.d.ts +0 -2
  28. package/dist/models/Entities/PropertyFeature.js +0 -7
  29. package/dist/models/Entities/School.d.ts +0 -2
  30. package/dist/models/Entities/School.js +0 -7
  31. package/dist/models/Entities/index.d.ts +0 -10
  32. package/dist/models/Entities/index.js +0 -26
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.URL = void 0;
4
4
  exports.URL = {
5
- domain: 'https://samls-providerapi.purlin.tech/api/',
5
+ domain: 'https://samls-providerapi.purlin.vision/api/',
6
6
  pathPrefix: '',
7
7
  };
@@ -66,8 +66,8 @@ export declare class ListingModel {
66
66
  taxAssessedValue: number | null;
67
67
  taxYear: number | null;
68
68
  tenantPays: string;
69
- virtualTourURLBranded: string;
70
- virtualTourURLUnbranded: string;
69
+ virtualTourURLBranded: string | null;
70
+ virtualTourURLUnbranded: string | null;
71
71
  withdrawnDate: Date | null;
72
72
  sourceMlsId: MLSEnum | null;
73
73
  property: PropertyModel | null;
@@ -62,8 +62,8 @@ class ListingModel {
62
62
  this.taxAssessedValue = null;
63
63
  this.taxYear = null;
64
64
  this.tenantPays = '';
65
- this.virtualTourURLBranded = ' ';
66
- this.virtualTourURLUnbranded = '';
65
+ this.virtualTourURLBranded = null;
66
+ this.virtualTourURLUnbranded = null;
67
67
  this.withdrawnDate = null;
68
68
  this.sourceMlsId = null;
69
69
  this.property = null;
@@ -1,20 +1,20 @@
1
1
  export declare class OpenHouseModel {
2
- Key: string;
3
- Status: string;
4
- Type: string;
5
- Remarks: string;
6
- AttendedBy: string;
7
- LiveStreamUri: string;
8
- ShowingAgentKey: string;
9
- ShowingAgentMlsId: string;
10
- ShowingAgentLastName: string;
11
- RefreshmentsOrSnacks: string;
12
- ShowingAgentFirstName: string;
13
- LiveStreamDescription: string;
14
- EndTime: Date | null;
15
- StartTime: Date | null;
16
- LiveStreamEnd: Date | null;
17
- LiveStreamStart: Date | null;
18
- ModificationTimestamp: Date | null;
19
- AppointmentRequiredYN: boolean | null;
2
+ key: string;
3
+ status: string;
4
+ type: string;
5
+ remarks: string;
6
+ attendedBy: string;
7
+ liveStreamUri: string;
8
+ showingAgentKey: string;
9
+ showingAgentMlsId: string;
10
+ showingAgentLastName: string;
11
+ refreshmentsOrSnacks: string;
12
+ showingAgentFirstName: string;
13
+ liveStreamDescription: string;
14
+ endTime: Date | null;
15
+ startTime: Date | null;
16
+ liveStreamEnd: Date | null;
17
+ liveStreamStart: Date | null;
18
+ modificationTimestamp: Date | null;
19
+ appointmentRequiredYN: boolean | null;
20
20
  }
@@ -1,27 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenHouseModel = void 0;
4
- //Fully cleaned
5
4
  class OpenHouseModel {
6
5
  constructor() {
7
- this.Key = '';
8
- this.Status = '';
9
- this.Type = '';
10
- this.Remarks = '';
11
- this.AttendedBy = '';
12
- this.LiveStreamUri = '';
13
- this.ShowingAgentKey = '';
14
- this.ShowingAgentMlsId = '';
15
- this.ShowingAgentLastName = '';
16
- this.RefreshmentsOrSnacks = '';
17
- this.ShowingAgentFirstName = '';
18
- this.LiveStreamDescription = '';
19
- this.EndTime = null;
20
- this.StartTime = null;
21
- this.LiveStreamEnd = null;
22
- this.LiveStreamStart = null;
23
- this.ModificationTimestamp = null;
24
- this.AppointmentRequiredYN = null;
6
+ this.key = '';
7
+ this.status = '';
8
+ this.type = '';
9
+ this.remarks = '';
10
+ this.attendedBy = '';
11
+ this.liveStreamUri = '';
12
+ this.showingAgentKey = '';
13
+ this.showingAgentMlsId = '';
14
+ this.showingAgentLastName = '';
15
+ this.refreshmentsOrSnacks = '';
16
+ this.showingAgentFirstName = '';
17
+ this.liveStreamDescription = '';
18
+ this.endTime = null;
19
+ this.startTime = null;
20
+ this.liveStreamEnd = null;
21
+ this.liveStreamStart = null;
22
+ this.modificationTimestamp = null;
23
+ this.appointmentRequiredYN = null;
25
24
  }
26
25
  }
27
26
  exports.OpenHouseModel = OpenHouseModel;
@@ -3,7 +3,7 @@ import { StyleModel } from './';
3
3
  import { FeatureModel } from '../Feature';
4
4
  export declare class PropertyModel {
5
5
  associationFee: number | null;
6
- associationFeeFrequency: AssociationFeeFrequencyEnum | null;
6
+ associationFeeFrequency: AssociationFeeFrequencyEnum;
7
7
  associationFeeIncludes: string;
8
8
  associationName: string;
9
9
  associationPhone: string;
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PropertyModel = void 0;
4
+ //fully converted
5
+ const Enums_1 = require("../Enums");
4
6
  class PropertyModel {
5
7
  constructor() {
6
8
  this.associationFee = null;
7
- this.associationFeeFrequency = null;
9
+ this.associationFeeFrequency = Enums_1.AssociationFeeFrequencyEnum.NotMapped;
8
10
  this.associationFeeIncludes = '';
9
11
  this.associationName = '';
10
12
  this.associationPhone = '';
@@ -2,7 +2,6 @@ export * from './Address';
2
2
  export * from './Common';
3
3
  export * from './Address/index';
4
4
  export * from './Agent/index';
5
- export * from './Entities/index';
6
5
  export * from './Enums';
7
6
  export * from './Feature';
8
7
  export * from './Mls';
@@ -18,7 +18,6 @@ __exportStar(require("./Address"), exports);
18
18
  __exportStar(require("./Common"), exports);
19
19
  __exportStar(require("./Address/index"), exports);
20
20
  __exportStar(require("./Agent/index"), exports);
21
- __exportStar(require("./Entities/index"), exports);
22
21
  __exportStar(require("./Enums"), exports);
23
22
  __exportStar(require("./Feature"), exports);
24
23
  __exportStar(require("./Mls"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samls-js-integration",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "samls npm package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,42 +0,0 @@
1
- import { Point } from '../Common';
2
- import { StreetDirectionEnum, StreetSuffixEnum } from '../Enums';
3
- import { AddressPolygon } from './AddressPolygon';
4
- import { Listing } from './Listing';
5
- export declare class AddressDetail {
6
- CoreListingId: number;
7
- City: string;
8
- Country: string;
9
- County: string;
10
- CrossStreet: string;
11
- Directions: string;
12
- ElementarySchool: string;
13
- ElementarySchoolDistrict: string;
14
- FullAddress: string;
15
- HighSchool: string;
16
- HighSchoolDistrict: string;
17
- Latitude: number | null;
18
- LocationDescription: string;
19
- Longitude: number | null;
20
- MiddleOrJuniorSchool: string;
21
- MiddleOrJuniorSchoolDistrict: string;
22
- Neighborhood: string;
23
- PostalCode: string;
24
- SeniorCommunityYN: boolean | null;
25
- StateOrProvince: string;
26
- StreetDirPrefix: StreetDirectionEnum | null;
27
- StreetDirSuffix: StreetDirectionEnum | null;
28
- StreetName: string;
29
- StreetNumber: string;
30
- StreetSuffix: StreetSuffixEnum | null;
31
- SubDivision: string;
32
- UnitNumber: string;
33
- WaterBodyName: string;
34
- WaterfrontProximity: string;
35
- WaterfrontYN: boolean | null;
36
- Zoning: string;
37
- Coordinate: Point;
38
- SamlsFullAddress: string;
39
- SamlsPartialAddress: string;
40
- AddressPolygons: AddressPolygon[];
41
- CoreListing: Listing;
42
- }
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddressDetail = void 0;
4
- const Common_1 = require("../Common");
5
- const Listing_1 = require("./Listing");
6
- class AddressDetail {
7
- constructor() {
8
- this.CoreListingId = 0;
9
- this.City = '';
10
- this.Country = '';
11
- this.County = '';
12
- this.CrossStreet = '';
13
- this.Directions = '';
14
- this.ElementarySchool = '';
15
- this.ElementarySchoolDistrict = '';
16
- this.FullAddress = '';
17
- this.HighSchool = '';
18
- this.HighSchoolDistrict = '';
19
- this.Latitude = null;
20
- this.LocationDescription = '';
21
- this.Longitude = null;
22
- this.MiddleOrJuniorSchool = '';
23
- this.MiddleOrJuniorSchoolDistrict = '';
24
- this.Neighborhood = '';
25
- this.PostalCode = '';
26
- this.SeniorCommunityYN = null;
27
- this.StateOrProvince = '';
28
- this.StreetDirPrefix = null;
29
- this.StreetDirSuffix = null;
30
- this.StreetName = '';
31
- this.StreetNumber = '';
32
- this.StreetSuffix = null;
33
- this.SubDivision = '';
34
- this.UnitNumber = '';
35
- this.WaterBodyName = '';
36
- this.WaterfrontProximity = '';
37
- this.WaterfrontYN = null;
38
- this.Zoning = '';
39
- this.Coordinate = new Common_1.Point(0, 0);
40
- this.SamlsFullAddress = '';
41
- this.SamlsPartialAddress = '';
42
- this.AddressPolygons = [];
43
- this.CoreListing = new Listing_1.Listing();
44
- }
45
- }
46
- exports.AddressDetail = AddressDetail;
@@ -1,10 +0,0 @@
1
- import { AddressDetail } from './AddressDetail';
2
- import { Polygon } from './Polygon';
3
- export declare class AddressPolygon {
4
- id: number;
5
- addressId: number;
6
- polygonId: number;
7
- createDate: Date | null;
8
- polygon: Polygon | null;
9
- address: AddressDetail | null;
10
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddressPolygon = void 0;
4
- class AddressPolygon {
5
- constructor() {
6
- this.id = 0;
7
- this.addressId = 0;
8
- this.polygonId = 0;
9
- this.createDate = null;
10
- this.polygon = null;
11
- this.address = null;
12
- }
13
- }
14
- exports.AddressPolygon = AddressPolygon;
@@ -1,6 +0,0 @@
1
- export declare class Entity<T> {
2
- id: T;
3
- createDate: Date;
4
- updateDate: Date | null;
5
- constructor(id: T, createDate: Date, updateDate: Date | null);
6
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Entity = void 0;
4
- class Entity {
5
- constructor(id, createDate, updateDate) {
6
- this.id = id;
7
- this.createDate = createDate;
8
- this.updateDate = updateDate;
9
- }
10
- }
11
- exports.Entity = Entity;
@@ -1,78 +0,0 @@
1
- import { CurrencyEnum, ListingStatusEnum, ListingTypeEnum, OwnershipTypeEnum } from '../Enums';
2
- import { ListingSchool } from './ListingSchool';
3
- import { ListingOpenHouse } from './ListingOpenHouse';
4
- import { Property } from './Property';
5
- import { AddressDetail } from './AddressDetail';
6
- export declare class Listing {
7
- availabilityDate?: Date | null;
8
- buyerAgencyCompensation?: number | null;
9
- buyerFinancing?: string;
10
- closePrice?: number | null;
11
- closeTimestamp?: Date | null;
12
- cumulativeDaysOnMarket?: number | null;
13
- currency?: CurrencyEnum;
14
- daysOnMarket?: number | null;
15
- disclosures?: string;
16
- expirationDate?: Date | null;
17
- internetAddressDisplayYN?: boolean | null;
18
- internetAutomatedValuationDisplayYN?: boolean | null;
19
- internetConsumerCommentYN?: boolean | null;
20
- internetEntireListingDisplayYN?: boolean | null;
21
- lastModificationTimestamp?: Date | null;
22
- leaseTerm?: string;
23
- listingAgreement?: string;
24
- listingEntryTimestamp?: Date | null;
25
- listingId?: string;
26
- listingService?: string;
27
- listingStatus?: ListingStatusEnum;
28
- listingTerms?: string;
29
- listingType?: ListingTypeEnum;
30
- listPrice?: number | null;
31
- listPriceOriginal?: number | null;
32
- lockBoxLocation?: string;
33
- lockBoxSerialNumber?: string;
34
- lockBoxType?: string;
35
- maxPrice?: number | null;
36
- minPrice?: number | null;
37
- mlsArea?: string;
38
- mlsName?: string;
39
- onMarketTimestamp?: Date | null;
40
- offMarketTimestamp?: Date | null;
41
- originalListingSource?: string;
42
- originatingSystemKey?: string;
43
- ownerPays?: string;
44
- ownershipType?: OwnershipTypeEnum | null;
45
- pendingTimestamp?: Date | null;
46
- petDeposit?: number | null;
47
- petsAllowedYN?: boolean | null;
48
- photosChangeTimestamp?: Date | null;
49
- photosCount?: number;
50
- priceChangeTimestamp?: Date | null;
51
- privateRemarks?: string;
52
- publicRemarks?: string;
53
- purchaseContractDate?: Date | null;
54
- showingContactName?: string;
55
- showingContactPhone?: string;
56
- showingContactPhoneExt?: string;
57
- showingContactType?: string;
58
- statusChangeTimestamp?: Date | null;
59
- taxAnnualAmount?: number | null;
60
- taxAssessedValue?: number | null;
61
- taxYear?: number | null;
62
- tenantPays?: string;
63
- virtualTourURLBranded?: string;
64
- virtualTourURLUnbranded?: string;
65
- withdrawnDate?: Date | null;
66
- pricePerSqFeet?: number | null;
67
- sourceMlsId?: number;
68
- sourceUpdateDate?: Date | null;
69
- sourcePropertyChangeDate?: Date | null;
70
- sourceAddressChangeDate?: Date | null;
71
- sourcePhotosChangeDate?: Date | null;
72
- sourceAgentsChangeDate?: Date | null;
73
- sourceDBId?: number;
74
- listingSchools?: ListingSchool[];
75
- listingOpenHouses?: ListingOpenHouse[];
76
- property?: Property;
77
- addressDetail?: AddressDetail;
78
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Listing = void 0;
4
- //TODO need to revisit
5
- class Listing {
6
- }
7
- exports.Listing = Listing;
@@ -1,24 +0,0 @@
1
- import { Listing } from './Listing';
2
- export declare class ListingOpenHouse {
3
- key?: string;
4
- status?: string;
5
- type?: string;
6
- modificationTimestamp?: Date | null;
7
- startTime?: Date | null;
8
- endTime?: Date | null;
9
- remarks?: string;
10
- refreshmentsOrSnacks?: string;
11
- attendedBy?: string;
12
- appointmentRequiredYN?: boolean | null;
13
- liveStreamUri?: string;
14
- liveStreamDescription?: string;
15
- liveStreamStart?: Date | null;
16
- liveStreamEnd?: Date | null;
17
- showingAgentMlsId?: string;
18
- showingAgentFirstName?: string;
19
- showingAgentLastName?: string;
20
- showingAgentKey?: string;
21
- hash?: string;
22
- coreListingId?: number;
23
- listing?: Listing;
24
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListingOpenHouse = void 0;
4
- //TODO need to revisit
5
- class ListingOpenHouse {
6
- }
7
- exports.ListingOpenHouse = ListingOpenHouse;
@@ -1,9 +0,0 @@
1
- import { Listing } from './Listing';
2
- import { School } from './School';
3
- export declare class ListingSchool {
4
- schoolId: number;
5
- coreListingId: number;
6
- school: School | null;
7
- distance: number | null;
8
- listing: Listing | null;
9
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListingSchool = void 0;
4
- class ListingSchool {
5
- constructor() {
6
- this.schoolId = 0;
7
- this.coreListingId = 0;
8
- this.school = null;
9
- this.distance = null;
10
- this.listing = null;
11
- }
12
- }
13
- exports.ListingSchool = ListingSchool;
@@ -1,2 +0,0 @@
1
- export declare class Polygon {
2
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Polygon = void 0;
4
- //TODO need to revisit
5
- class Polygon {
6
- }
7
- exports.Polygon = Polygon;
@@ -1,2 +0,0 @@
1
- export declare class Property {
2
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Property = void 0;
4
- //TODO need to revisit
5
- class Property {
6
- }
7
- exports.Property = Property;
@@ -1,2 +0,0 @@
1
- export declare class PropertyFeature {
2
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyFeature = void 0;
4
- //TODO need to revisit
5
- class PropertyFeature {
6
- }
7
- exports.PropertyFeature = PropertyFeature;
@@ -1,2 +0,0 @@
1
- export declare class School {
2
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.School = void 0;
4
- //TODO need to revisit
5
- class School {
6
- }
7
- exports.School = School;
@@ -1,10 +0,0 @@
1
- export * from './AddressDetail';
2
- export * from './AddressPolygon';
3
- export * from './Entity';
4
- export * from './Listing';
5
- export * from './ListingOpenHouse';
6
- export * from './ListingSchool';
7
- export * from './Polygon';
8
- export * from './Property';
9
- export * from './PropertyFeature';
10
- export * from './School';
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./AddressDetail"), exports);
18
- __exportStar(require("./AddressPolygon"), exports);
19
- __exportStar(require("./Entity"), exports);
20
- __exportStar(require("./Listing"), exports);
21
- __exportStar(require("./ListingOpenHouse"), exports);
22
- __exportStar(require("./ListingSchool"), exports);
23
- __exportStar(require("./Polygon"), exports);
24
- __exportStar(require("./Property"), exports);
25
- __exportStar(require("./PropertyFeature"), exports);
26
- __exportStar(require("./School"), exports);