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.
Files changed (282) hide show
  1. package/README.md +6 -1
  2. package/dist/clients/AddressDetail.d.ts +5 -0
  3. package/dist/clients/AddressDetail.js +6 -0
  4. package/dist/clients/ListingsClient.d.ts +9 -0
  5. package/dist/clients/ListingsClient.js +18 -0
  6. package/dist/clients/MlsClient.d.ts +6 -0
  7. package/dist/clients/MlsClient.js +10 -0
  8. package/dist/clients/PolygonClient.d.ts +5 -0
  9. package/dist/clients/PolygonClient.js +7 -0
  10. package/dist/clients/index.js +3 -0
  11. package/dist/globals/HttpModule.d.ts +1 -0
  12. package/dist/globals/HttpModule.js +4 -0
  13. package/dist/globals/constants/url.d.ts +4 -0
  14. package/dist/globals/constants/url.js +4 -0
  15. package/dist/globals/index.js +3 -0
  16. package/dist/globals/models/IApiResponse.d.ts +5 -0
  17. package/dist/globals/models/IApiResponse.js +1 -0
  18. package/{lib/globals/models/index.ts → dist/globals/models/index.d.ts} +0 -1
  19. package/dist/globals/models/index.js +2 -0
  20. package/dist/index.js +2 -0
  21. package/dist/models/Address/AddressDetailModel.d.ts +37 -0
  22. package/dist/models/Address/AddressDetailModel.js +38 -0
  23. package/dist/models/Address/AddressQueryModel.d.ts +5 -0
  24. package/dist/models/Address/AddressQueryModel.js +8 -0
  25. package/dist/models/Address/index.js +2 -0
  26. package/dist/models/Agent/AgentInfoModel.d.ts +27 -0
  27. package/dist/models/Agent/AgentInfoModel.js +28 -0
  28. package/dist/models/Agent/AgentModel.d.ts +7 -0
  29. package/dist/models/Agent/AgentModel.js +8 -0
  30. package/dist/models/Agent/GetAgentRequestModel.d.ts +6 -0
  31. package/dist/models/Agent/GetAgentRequestModel.js +7 -0
  32. package/dist/models/Agent/GetAgentsRequestModel.d.ts +8 -0
  33. package/dist/models/Agent/GetAgentsRequestModel.js +10 -0
  34. package/dist/models/Agent/OfficeModel.d.ts +19 -0
  35. package/dist/models/Agent/OfficeModel.js +20 -0
  36. package/dist/models/Agent/index.js +5 -0
  37. package/dist/models/Common/GlobalQueryModel.d.ts +11 -0
  38. package/dist/models/Common/GlobalQueryModel.js +14 -0
  39. package/dist/models/Common/LocationModel.d.ts +4 -0
  40. package/dist/models/Common/LocationModel.js +6 -0
  41. package/dist/models/Common/PaginationOptions.d.ts +4 -0
  42. package/dist/models/Common/PaginationOptions.js +6 -0
  43. package/dist/models/Common/Point.d.ts +5 -0
  44. package/dist/models/Common/Point.js +7 -0
  45. package/dist/models/Common/index.js +5 -0
  46. package/dist/models/Entities/AddressDetail.d.ts +42 -0
  47. package/dist/models/Entities/AddressDetail.js +42 -0
  48. package/dist/models/Entities/AddressPolygon.d.ts +10 -0
  49. package/dist/models/Entities/AddressPolygon.js +10 -0
  50. package/dist/models/Entities/Entity.d.ts +6 -0
  51. package/dist/models/Entities/Entity.js +7 -0
  52. package/dist/models/Entities/Listing.d.ts +78 -0
  53. package/dist/models/Entities/Listing.js +3 -0
  54. package/dist/models/Entities/ListingOpenHouse.d.ts +24 -0
  55. package/dist/models/Entities/ListingOpenHouse.js +3 -0
  56. package/dist/models/Entities/ListingSchool.d.ts +9 -0
  57. package/dist/models/Entities/ListingSchool.js +9 -0
  58. package/dist/models/Entities/Polygon.d.ts +2 -0
  59. package/dist/models/Entities/Polygon.js +3 -0
  60. package/dist/models/Entities/Property.d.ts +2 -0
  61. package/dist/models/Entities/Property.js +3 -0
  62. package/dist/models/Entities/PropertyFeature.d.ts +2 -0
  63. package/dist/models/Entities/PropertyFeature.js +3 -0
  64. package/dist/models/Entities/School.d.ts +2 -0
  65. package/dist/models/Entities/School.js +3 -0
  66. package/dist/models/Entities/index.js +10 -0
  67. package/dist/models/Enums/AgentTypeEnum.d.ts +6 -0
  68. package/dist/models/Enums/AgentTypeEnum.js +7 -0
  69. package/dist/models/Enums/AssociationFeeFrequencyEnum.d.ts +13 -0
  70. package/dist/models/Enums/AssociationFeeFrequencyEnum.js +14 -0
  71. package/dist/models/Enums/AuthenticationTypeEnum.d.ts +6 -0
  72. package/dist/models/Enums/AuthenticationTypeEnum.js +7 -0
  73. package/dist/models/Enums/CurrencyEnum.d.ts +5 -0
  74. package/dist/models/Enums/CurrencyEnum.js +6 -0
  75. package/dist/models/Enums/DirectionFacesEnum.d.ts +11 -0
  76. package/dist/models/Enums/DirectionFacesEnum.js +12 -0
  77. package/dist/models/Enums/FeatureSourceEnum.d.ts +6 -0
  78. package/dist/models/Enums/FeatureSourceEnum.js +14 -0
  79. package/dist/models/Enums/GeometryTypeEnum.d.ts +10 -0
  80. package/dist/models/Enums/GeometryTypeEnum.js +11 -0
  81. package/dist/models/Enums/ListingStatusEnum.d.ts +15 -0
  82. package/dist/models/Enums/ListingStatusEnum.js +31 -0
  83. package/dist/models/Enums/ListingTypeClassEnum.d.ts +6 -0
  84. package/dist/models/Enums/ListingTypeClassEnum.js +6 -0
  85. package/dist/models/Enums/ListingTypeEnum.d.ts +16 -0
  86. package/dist/models/Enums/ListingTypeEnum.js +20 -0
  87. package/dist/models/Enums/MLSEnum.d.ts +38 -0
  88. package/dist/models/Enums/MLSEnum.js +39 -0
  89. package/dist/models/Enums/OrderByOptions.d.ts +6 -0
  90. package/dist/models/Enums/OrderByOptions.js +7 -0
  91. package/dist/models/Enums/OwnershipTypeEnum.d.ts +22 -0
  92. package/dist/models/Enums/OwnershipTypeEnum.js +26 -0
  93. package/dist/models/Enums/PhysicalPropertyClassEnum.d.ts +6 -0
  94. package/dist/models/Enums/PhysicalPropertyClassEnum.js +7 -0
  95. package/dist/models/Enums/PhysicalPropertyTypeEnum.d.ts +51 -0
  96. package/dist/models/Enums/PhysicalPropertyTypeEnum.js +55 -0
  97. package/dist/models/Enums/PlatformEnum.d.ts +6 -0
  98. package/dist/models/Enums/PlatformEnum.js +7 -0
  99. package/dist/models/Enums/ProcessingStatusEnum.d.ts +8 -0
  100. package/dist/models/Enums/ProcessingStatusEnum.js +9 -0
  101. package/dist/models/Enums/ProcessingTypeEnum.d.ts +5 -0
  102. package/dist/models/Enums/ProcessingTypeEnum.js +6 -0
  103. package/dist/models/Enums/PropertyConditionEnum.d.ts +17 -0
  104. package/dist/models/Enums/PropertyConditionEnum.js +21 -0
  105. package/dist/models/Enums/PropertyLevelEnum.d.ts +12 -0
  106. package/dist/models/Enums/PropertyLevelEnum.js +16 -0
  107. package/dist/models/Enums/StreetDirectionEnum.d.ts +11 -0
  108. package/dist/models/Enums/StreetDirectionEnum.js +15 -0
  109. package/dist/models/Enums/StreetSuffixEnum.d.ts +245 -0
  110. package/dist/models/Enums/StreetSuffixEnum.js +246 -0
  111. package/dist/models/Enums/index.js +22 -0
  112. package/dist/models/Feature/CategoryModel.d.ts +4 -0
  113. package/dist/models/Feature/CategoryModel.js +6 -0
  114. package/dist/models/Feature/FeatureModel.d.ts +9 -0
  115. package/dist/models/Feature/FeatureModel.js +9 -0
  116. package/dist/models/Feature/SubCategoryModel.d.ts +4 -0
  117. package/dist/models/Feature/SubCategoryModel.js +6 -0
  118. package/dist/models/Feature/index.js +3 -0
  119. package/dist/models/Listing/ClusteringFilterRequestBaseModel.d.ts +0 -0
  120. package/{lib/models/Listing/ClusteringFilterRequestBaseModel.ts → dist/models/Listing/ClusteringFilterRequestBaseModel.js} +2 -1
  121. package/dist/models/Listing/GetByIdRequestModel.d.ts +5 -0
  122. package/dist/models/Listing/GetByIdRequestModel.js +9 -0
  123. package/dist/models/Listing/GetByMlsIdRequestModel.d.ts +6 -0
  124. package/dist/models/Listing/GetByMlsIdRequestModel.js +9 -0
  125. package/dist/models/Listing/GetListingsByFilterRequestModel.d.ts +13 -0
  126. package/dist/models/Listing/GetListingsByFilterRequestModel.js +15 -0
  127. package/dist/models/Listing/ListingModel.d.ts +81 -0
  128. package/dist/models/Listing/ListingModel.js +75 -0
  129. package/dist/models/Listing/OpenHouseModel.d.ts +20 -0
  130. package/dist/models/Listing/OpenHouseModel.js +23 -0
  131. package/dist/models/Listing/PhotoModel.d.ts +10 -0
  132. package/dist/models/Listing/PhotoModel.js +13 -0
  133. package/dist/models/Listing/PropertyModel.d.ts +49 -0
  134. package/dist/models/Listing/PropertyModel.js +48 -0
  135. package/dist/models/Listing/RentPriceModel.d.ts +34 -0
  136. package/dist/models/Listing/RentPriceModel.js +37 -0
  137. package/dist/models/Listing/StyleModel.d.ts +4 -0
  138. package/dist/models/Listing/StyleModel.js +7 -0
  139. package/dist/models/Listing/WalkScoreModel.d.ts +9 -0
  140. package/dist/models/Listing/WalkScoreModel.js +12 -0
  141. package/dist/models/Listing/index.js +10 -0
  142. package/dist/models/Mls/MlsInfoModel.d.ts +8 -0
  143. package/dist/models/Mls/MlsInfoModel.js +11 -0
  144. package/dist/models/Mls/index.js +1 -0
  145. package/dist/models/PData/index.js +1 -0
  146. package/dist/models/PData/models/Condition.d.ts +4 -0
  147. package/dist/models/PData/models/Condition.js +5 -0
  148. package/dist/models/PData/models/ConditionModel.d.ts +13 -0
  149. package/dist/models/PData/models/ConditionModel.js +15 -0
  150. package/dist/models/PData/models/IPagination.d.ts +4 -0
  151. package/dist/models/PData/models/IPagination.js +1 -0
  152. package/dist/models/PData/models/Operator.d.ts +14 -0
  153. package/dist/models/PData/models/Operator.js +15 -0
  154. package/dist/models/PData/models/Ordering.d.ts +7 -0
  155. package/dist/models/PData/models/Ordering.js +11 -0
  156. package/dist/models/PData/models/index.js +5 -0
  157. package/dist/models/Polygon/LimitModel.d.ts +6 -0
  158. package/dist/models/Polygon/LimitModel.js +9 -0
  159. package/dist/models/Polygon/PolygonFilterRequestModel.d.ts +9 -0
  160. package/dist/models/Polygon/PolygonFilterRequestModel.js +12 -0
  161. package/dist/models/Polygon/PolygonFilterResponseModel.d.ts +8 -0
  162. package/dist/models/Polygon/PolygonFilterResponseModel.js +9 -0
  163. package/dist/models/Polygon/PolygonLiteResponseModel.d.ts +15 -0
  164. package/dist/models/Polygon/PolygonLiteResponseModel.js +17 -0
  165. package/dist/models/Polygon/index.js +4 -0
  166. package/dist/models/School/SchoolIdentifierModel.d.ts +0 -0
  167. package/{lib/models/School/SchoolIdentifierModel.ts → dist/models/School/SchoolIdentifierModel.js} +2 -1
  168. package/dist/models/School/SchoolModel.d.ts +13 -0
  169. package/dist/models/School/SchoolModel.js +16 -0
  170. package/dist/models/School/index.js +1 -0
  171. package/dist/models/index.js +12 -0
  172. package/dist/services/SamlsClient.d.ts +8 -0
  173. package/{lib/services/SamlsClient.ts → dist/services/SamlsClient.js} +6 -5
  174. package/package.json +5 -5
  175. package/dist/browser/samls.js +0 -1348
  176. package/dist/node/samls.cjs +0 -1345
  177. package/lib/clients/AddressDetail.ts +0 -10
  178. package/lib/clients/ListingsClient.ts +0 -36
  179. package/lib/clients/MlsClient.ts +0 -14
  180. package/lib/clients/PolygonClient.ts +0 -12
  181. package/lib/globals/HttpModule.ts +0 -6
  182. package/lib/globals/constants/url.ts +0 -4
  183. package/lib/globals/models/IApiResponse.ts +0 -5
  184. package/lib/globals/models/ObjectPropertyPathChecker.ts +0 -3
  185. package/lib/models/Address/AddressDetailModel.ts +0 -39
  186. package/lib/models/Address/AddressQueryModel.ts +0 -10
  187. package/lib/models/Agent/AgentInfoModel.ts +0 -28
  188. package/lib/models/Agent/AgentModel.ts +0 -8
  189. package/lib/models/Agent/GetAgentRequestModel.ts +0 -8
  190. package/lib/models/Agent/GetAgentsRequestModel.ts +0 -9
  191. package/lib/models/Agent/OfficeModel.ts +0 -20
  192. package/lib/models/Common/GlobalQueryModel.ts +0 -17
  193. package/lib/models/Common/LocationModel.ts +0 -4
  194. package/lib/models/Common/PaginationOptions.ts +0 -4
  195. package/lib/models/Common/Point.ts +0 -10
  196. package/lib/models/Entities/AddressDetail.ts +0 -46
  197. package/lib/models/Entities/AddressPolygon.ts +0 -11
  198. package/lib/models/Entities/Entity.ts +0 -11
  199. package/lib/models/Entities/Listing.ts +0 -87
  200. package/lib/models/Entities/ListingOpenHouse.ts +0 -26
  201. package/lib/models/Entities/ListingSchool.ts +0 -10
  202. package/lib/models/Entities/Polygon.ts +0 -23
  203. package/lib/models/Entities/Property.ts +0 -60
  204. package/lib/models/Entities/PropertyFeature.ts +0 -13
  205. package/lib/models/Entities/School.ts +0 -19
  206. package/lib/models/Enums/AgentTypeEnum.ts +0 -7
  207. package/lib/models/Enums/AssociationFeeFrequencyEnum.ts +0 -13
  208. package/lib/models/Enums/AuthenticationTypeEnum.ts +0 -6
  209. package/lib/models/Enums/CurrencyEnum.ts +0 -5
  210. package/lib/models/Enums/DirectionFacesEnum.ts +0 -11
  211. package/lib/models/Enums/FeatureSourceEnum.ts +0 -15
  212. package/lib/models/Enums/GeometryTypeEnum.ts +0 -10
  213. package/lib/models/Enums/ListingStatusEnum.ts +0 -35
  214. package/lib/models/Enums/ListingTypeClassEnum.ts +0 -7
  215. package/lib/models/Enums/ListingTypeEnum.ts +0 -20
  216. package/lib/models/Enums/MLSEnum.ts +0 -38
  217. package/lib/models/Enums/OrderByOptions.ts +0 -6
  218. package/lib/models/Enums/OwnershipTypeEnum.ts +0 -26
  219. package/lib/models/Enums/PhysicalPropertyClassEnum.ts +0 -6
  220. package/lib/models/Enums/PhysicalPropertyTypeEnum.ts +0 -55
  221. package/lib/models/Enums/PlatformEnum.ts +0 -6
  222. package/lib/models/Enums/ProcessingStatusEnum.ts +0 -8
  223. package/lib/models/Enums/ProcessingTypeEnum.ts +0 -5
  224. package/lib/models/Enums/PropertyConditionEnum.ts +0 -21
  225. package/lib/models/Enums/PropertyLevelEnum.ts +0 -16
  226. package/lib/models/Enums/StreetDirectionEnum.ts +0 -15
  227. package/lib/models/Enums/StreetSuffixEnum.ts +0 -245
  228. package/lib/models/Feature/CategoryModel.ts +0 -4
  229. package/lib/models/Feature/FeatureModel.ts +0 -11
  230. package/lib/models/Feature/SubCategoryModel.ts +0 -4
  231. package/lib/models/Listing/ClusteringFilterResponseModel.cs +0 -29
  232. package/lib/models/Listing/GetByAddressRequestModel.cs +0 -21
  233. package/lib/models/Listing/GetByAgentRequestModel.cs +0 -13
  234. package/lib/models/Listing/GetByIdRequestModel.ts +0 -12
  235. package/lib/models/Listing/GetByMlsIdRequestModel.ts +0 -12
  236. package/lib/models/Listing/GetListingsByFilterRequestModel.ts +0 -19
  237. package/lib/models/Listing/GetMapListingsRequestModel.cs +0 -16
  238. package/lib/models/Listing/GetNearByListingsRequestModel.cs +0 -17
  239. package/lib/models/Listing/GetPhotosByIdsRequestModel.cs +0 -6
  240. package/lib/models/Listing/ListingDistancedModel.cs +0 -7
  241. package/lib/models/Listing/ListingModel.ts +0 -88
  242. package/lib/models/Listing/ListingsLocationQueryModel.cs +0 -16
  243. package/lib/models/Listing/LocationOptions.cs +0 -8
  244. package/lib/models/Listing/NearByListingsResponse.cs +0 -37
  245. package/lib/models/Listing/OpenHouseLiteModel.cs +0 -7
  246. package/lib/models/Listing/OpenHouseModel.ts +0 -21
  247. package/lib/models/Listing/PhotoModel.ts +0 -10
  248. package/lib/models/Listing/PropertyModel.ts +0 -57
  249. package/lib/models/Listing/RentPriceModel.ts +0 -35
  250. package/lib/models/Listing/StyleModel.ts +0 -5
  251. package/lib/models/Listing/WalkScoreModel.ts +0 -10
  252. package/lib/models/Mls/MlsInfoModel.ts +0 -9
  253. package/lib/models/PData/models/Condition.ts +0 -4
  254. package/lib/models/PData/models/ConditionModel.ts +0 -20
  255. package/lib/models/PData/models/IPagination.ts +0 -4
  256. package/lib/models/PData/models/Operator.ts +0 -14
  257. package/lib/models/PData/models/Ordering.ts +0 -12
  258. package/lib/models/Polygon/LimitModel.ts +0 -12
  259. package/lib/models/Polygon/PolygonFilterRequestModel.ts +0 -15
  260. package/lib/models/Polygon/PolygonFilterResponseModel.ts +0 -15
  261. package/lib/models/Polygon/PolygonLiteResponseModel.ts +0 -15
  262. package/lib/models/Polygon/PolygonResponseModel.cs +0 -22
  263. package/lib/models/Polygon/PolygonsQueryModel.cs +0 -12
  264. package/lib/models/School/SchoolModel.ts +0 -14
  265. package/lib/models/School/SchoolsByRadiusBatchRequestModel.cs +0 -6
  266. package/lib/models/School/SchoolsByRadiusRequestModel.cs +0 -10
  267. /package/{lib/clients/index.ts → dist/clients/index.d.ts} +0 -0
  268. /package/{lib/globals/index.ts → dist/globals/index.d.ts} +0 -0
  269. /package/{lib/index.ts → dist/index.d.ts} +0 -0
  270. /package/{lib/models/Address/index.ts → dist/models/Address/index.d.ts} +0 -0
  271. /package/{lib/models/Agent/index.ts → dist/models/Agent/index.d.ts} +0 -0
  272. /package/{lib/models/Common/index.ts → dist/models/Common/index.d.ts} +0 -0
  273. /package/{lib/models/Entities/index.ts → dist/models/Entities/index.d.ts} +0 -0
  274. /package/{lib/models/Enums/index.ts → dist/models/Enums/index.d.ts} +0 -0
  275. /package/{lib/models/Feature/index.ts → dist/models/Feature/index.d.ts} +0 -0
  276. /package/{lib/models/Listing/index.ts → dist/models/Listing/index.d.ts} +0 -0
  277. /package/{lib/models/Mls/index.ts → dist/models/Mls/index.d.ts} +0 -0
  278. /package/{lib/models/PData/index.ts → dist/models/PData/index.d.ts} +0 -0
  279. /package/{lib/models/PData/models/index.ts → dist/models/PData/models/index.d.ts} +0 -0
  280. /package/{lib/models/Polygon/index.ts → dist/models/Polygon/index.d.ts} +0 -0
  281. /package/{lib/models/School/index.ts → dist/models/School/index.d.ts} +0 -0
  282. /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
- }
@@ -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,6 +0,0 @@
1
- import axios, { AxiosRequestConfig } from 'axios';
2
- import { URL } from './constants/url';
3
-
4
- const requestConfig: AxiosRequestConfig = { baseURL: URL.domain };
5
-
6
- export const http = axios.create(requestConfig);
@@ -1,4 +0,0 @@
1
- export const URL = {
2
- domain: 'https://samls-providerapi.purlin.tech/api/',
3
- pathPrefix: '',
4
- };
@@ -1,5 +0,0 @@
1
- export interface IApiResponse<T> {
2
- data: T;
3
- statusCode: number;
4
- message: string;
5
- }
@@ -1,3 +0,0 @@
1
- export type Leaves<T> = T extends object
2
- ? { [K in keyof T]: `${Exclude<K, symbol>}${Leaves<T[K]> extends never ? '' : `.${Leaves<T[K]>}`}` }[keyof T]
3
- : never;
@@ -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,8 +0,0 @@
1
- import { MLSEnum } from '../Enums';
2
-
3
- class GetAgentRequestModel {
4
- agentMlsId: string = '';
5
- mlsId: MLSEnum | null = null;
6
- }
7
-
8
- export { GetAgentRequestModel };
@@ -1,9 +0,0 @@
1
- import { MLSEnum } from '../Enums';
2
- import { PaginationOptions } from '../Common';
3
-
4
- export class GetAgentsRequestModel extends PaginationOptions {
5
- email: string = '';
6
- lastName: string = '';
7
- firstName: string = '';
8
- mlsId: MLSEnum | null = null;
9
- }
@@ -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,4 +0,0 @@
1
- export class LocationModel {
2
- Latitude: number = 0;
3
- Longitude: number = 0;
4
- }
@@ -1,4 +0,0 @@
1
- export class PaginationOptions {
2
- Page: number = 0;
3
- Count: number = 0;
4
- }
@@ -1,10 +0,0 @@
1
- //TODO custom field
2
- export class Point {
3
- private latitude: number;
4
- private longitude: number;
5
-
6
- constructor(latitude: number, longitude: number) {
7
- this.latitude = latitude;
8
- this.longitude = longitude;
9
- }
10
- }
@@ -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,11 +0,0 @@
1
- export class Entity<T> {
2
- id: T;
3
- createDate: Date;
4
- updateDate: Date | null;
5
-
6
- constructor(id: T, createDate: Date, updateDate: Date | null) {
7
- this.id = id;
8
- this.createDate = createDate;
9
- this.updateDate = updateDate;
10
- }
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,7 +0,0 @@
1
- export enum AgentTypeEnum
2
- {
3
- ListAgent = 1,
4
- CoListAgent,
5
- BuyerAgent,
6
- CoBuyerAgent
7
- }
@@ -1,13 +0,0 @@
1
- export enum AssociationFeeFrequencyEnum {
2
- NotMapped = -1,
3
- Annually = 1,
4
- Quarterly,
5
- Semiannually,
6
- Bimonthly,
7
- Monthly,
8
- Semimonthly,
9
- Weekly,
10
- Daily,
11
- OneTime,
12
- SeeRemarks,
13
- }
@@ -1,6 +0,0 @@
1
- export enum AuthenticationTypeEnum {
2
- None = 0,
3
- AccessTokenParameter,
4
- AccessTokenHeader,
5
- ClientCredentials,
6
- }
@@ -1,5 +0,0 @@
1
- export enum CurrencyEnum {
2
- NotMapped = -1,
3
- Other,
4
- USD,
5
- }
@@ -1,11 +0,0 @@
1
- export enum DirectionFacesEnum {
2
- NotMapped = -1,
3
- North = 1,
4
- NorthEast,
5
- East,
6
- SouthEast,
7
- South,
8
- SouthWest,
9
- West,
10
- NorthWest,
11
- }
@@ -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