samls-js-integration 1.0.35 → 1.0.37
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/browser/samls.js +86 -19
- package/dist/node/samls.cjs +86 -19
- package/lib/clients/ListingsClient.ts +16 -7
- package/lib/clients/MlsClient.ts +2 -2
- package/lib/globals/index.ts +1 -1
- package/lib/globals/models/ObjectPropertyPathChecker.ts +3 -0
- package/lib/globals/models/index.ts +3 -0
- package/lib/models/Address/AddressQueryModel.ts +5 -0
- package/lib/models/Common/GlobalQueryModel.ts +13 -10
- package/lib/models/Common/index.ts +1 -0
- package/lib/models/Enums/index.ts +22 -23
- package/lib/models/Listing/ListingModel.ts +1 -1
- package/lib/models/PData/index.ts +1 -0
- package/lib/models/PData/models/Condition.ts +4 -0
- package/lib/models/PData/models/ConditionModel.ts +20 -0
- package/lib/models/PData/models/Operator.ts +14 -0
- package/lib/models/PData/models/Ordering.ts +12 -0
- package/lib/models/PData/models/index.ts +5 -0
- package/lib/models/Polygon/LimitModel.ts +3 -1
- package/lib/models/Polygon/PolygonFilterRequestModel.ts +3 -1
- package/lib/models/Polygon/PolygonFilterResponseModel.ts +3 -1
- package/lib/models/Polygon/index.ts +1 -1
- package/lib/models/index.ts +2 -0
- package/package.json +2 -2
- package/lib/globals/interfaces/index.ts +0 -2
- /package/lib/globals/{interfaces → models}/IApiResponse.ts +0 -0
- /package/lib/{globals/interfaces → models/PData/models}/IPagination.ts +0 -0
package/dist/browser/samls.js
CHANGED
|
@@ -10,23 +10,28 @@ var samls = (function (exports, axios) {
|
|
|
10
10
|
const requestConfig = { baseURL: URL.domain };
|
|
11
11
|
const http = axios.create(requestConfig);
|
|
12
12
|
|
|
13
|
-
const PATH_SEGMENT$
|
|
13
|
+
const PATH_SEGMENT$2 = 'AddressDetail';
|
|
14
14
|
class MlsClient {
|
|
15
|
-
|
|
16
|
-
return http.get(`${PATH_SEGMENT$
|
|
15
|
+
getMlsInfos() {
|
|
16
|
+
return http.get(`${PATH_SEGMENT$2}/Mls`);
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
return http.get(`${PATH_SEGMENT$
|
|
18
|
+
getMlsInfoById(id) {
|
|
19
|
+
return http.get(`${PATH_SEGMENT$2}/Mls/${id}`);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
const PATH_SEGMENT$2 = 'Listing';
|
|
24
23
|
class ListingsClient {
|
|
25
24
|
getListingsByFilter(model) {
|
|
26
|
-
return http.post(
|
|
25
|
+
return http.post('Listing/filter', model);
|
|
27
26
|
}
|
|
28
|
-
|
|
29
|
-
return http.post(
|
|
27
|
+
getByMlsId(model) {
|
|
28
|
+
return http.post('Listing/mlsId', model);
|
|
29
|
+
}
|
|
30
|
+
getByQuery(queryModel) {
|
|
31
|
+
return http.post('Listing/query', queryModel);
|
|
32
|
+
}
|
|
33
|
+
getListingTypeGroups() {
|
|
34
|
+
return http.get('Listing/type/groups');
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
37
|
|
|
@@ -64,14 +69,17 @@ var samls = (function (exports, axios) {
|
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
class GlobalQueryModel {
|
|
67
|
-
constructor() {
|
|
72
|
+
constructor(data) {
|
|
68
73
|
this.skip = 0;
|
|
69
74
|
this.take = 10;
|
|
70
|
-
this.filter = '';
|
|
71
|
-
this.fields = [];
|
|
72
75
|
this.count = false;
|
|
73
|
-
this.
|
|
74
|
-
this.
|
|
76
|
+
this.filter = null;
|
|
77
|
+
this.order = null;
|
|
78
|
+
this.conditions = null;
|
|
79
|
+
this.fields = [];
|
|
80
|
+
if (data) {
|
|
81
|
+
Object.assign(this, data);
|
|
82
|
+
}
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
85
|
|
|
@@ -89,10 +97,27 @@ var samls = (function (exports, axios) {
|
|
|
89
97
|
}
|
|
90
98
|
}
|
|
91
99
|
|
|
100
|
+
class ConditionModel {
|
|
101
|
+
constructor(data) {
|
|
102
|
+
this.value = null;
|
|
103
|
+
this.isNot = false;
|
|
104
|
+
this.operator = null;
|
|
105
|
+
this.nextProperty = null;
|
|
106
|
+
this.subConditions = [];
|
|
107
|
+
this.subCondition = null;
|
|
108
|
+
this.nextCondition = null;
|
|
109
|
+
this.property = null;
|
|
110
|
+
if (data) {
|
|
111
|
+
Object.assign(this, data);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
92
116
|
class AddressQueryModel extends GlobalQueryModel {
|
|
93
|
-
constructor() {
|
|
94
|
-
super(
|
|
117
|
+
constructor(fullAddress, data) {
|
|
118
|
+
super(data);
|
|
95
119
|
this.fullAddress = '';
|
|
120
|
+
this.fullAddress = fullAddress;
|
|
96
121
|
}
|
|
97
122
|
}
|
|
98
123
|
|
|
@@ -1178,7 +1203,9 @@ var samls = (function (exports, axios) {
|
|
|
1178
1203
|
constructor(data) {
|
|
1179
1204
|
this.count = 0;
|
|
1180
1205
|
this.type = null;
|
|
1181
|
-
|
|
1206
|
+
if (data) {
|
|
1207
|
+
Object.assign(this, data);
|
|
1208
|
+
}
|
|
1182
1209
|
}
|
|
1183
1210
|
}
|
|
1184
1211
|
|
|
@@ -1207,7 +1234,9 @@ var samls = (function (exports, axios) {
|
|
|
1207
1234
|
this.skipNullUrlKey = false;
|
|
1208
1235
|
this.skipNullGeometry = false;
|
|
1209
1236
|
this.limits = [];
|
|
1210
|
-
|
|
1237
|
+
if (data) {
|
|
1238
|
+
Object.assign(this, data);
|
|
1239
|
+
}
|
|
1211
1240
|
}
|
|
1212
1241
|
}
|
|
1213
1242
|
|
|
@@ -1215,10 +1244,46 @@ var samls = (function (exports, axios) {
|
|
|
1215
1244
|
constructor(data) {
|
|
1216
1245
|
this.type = null;
|
|
1217
1246
|
this.polygons = [];
|
|
1218
|
-
|
|
1247
|
+
if (data) {
|
|
1248
|
+
Object.assign(this, data);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
exports.Operator = void 0;
|
|
1254
|
+
(function (Operator) {
|
|
1255
|
+
Operator[Operator["Eq"] = 0] = "Eq";
|
|
1256
|
+
Operator[Operator["Gt"] = 1] = "Gt";
|
|
1257
|
+
Operator[Operator["Ge"] = 2] = "Ge";
|
|
1258
|
+
Operator[Operator["Lt"] = 3] = "Lt";
|
|
1259
|
+
Operator[Operator["Le"] = 4] = "Le";
|
|
1260
|
+
Operator[Operator["In"] = 5] = "In";
|
|
1261
|
+
Operator[Operator["Sw"] = 6] = "Sw";
|
|
1262
|
+
Operator[Operator["Ew"] = 7] = "Ew";
|
|
1263
|
+
Operator[Operator["Like"] = 8] = "Like";
|
|
1264
|
+
Operator[Operator["IsNull"] = 9] = "IsNull";
|
|
1265
|
+
Operator[Operator["Any"] = 10] = "Any";
|
|
1266
|
+
Operator[Operator["All"] = 11] = "All";
|
|
1267
|
+
})(exports.Operator || (exports.Operator = {}));
|
|
1268
|
+
|
|
1269
|
+
class OrderingModel {
|
|
1270
|
+
constructor() {
|
|
1271
|
+
this.property = null;
|
|
1272
|
+
this.isDescending = false;
|
|
1273
|
+
this.matchedConditions = [];
|
|
1274
|
+
}
|
|
1275
|
+
toString() {
|
|
1276
|
+
const direction = this.isDescending ? 'desc' : 'asc';
|
|
1277
|
+
return this.property !== null ? `p=${this.property},d=${direction}` : `c=${''},d=${direction}`; //TODO c
|
|
1219
1278
|
}
|
|
1220
1279
|
}
|
|
1221
1280
|
|
|
1281
|
+
exports.Condition = void 0;
|
|
1282
|
+
(function (Condition) {
|
|
1283
|
+
Condition[Condition["And"] = 0] = "And";
|
|
1284
|
+
Condition[Condition["Or"] = 1] = "Or";
|
|
1285
|
+
})(exports.Condition || (exports.Condition = {}));
|
|
1286
|
+
|
|
1222
1287
|
exports.AddressDetail = AddressDetail;
|
|
1223
1288
|
exports.AddressDetailModel = AddressDetailModel;
|
|
1224
1289
|
exports.AddressPolygon = AddressPolygon;
|
|
@@ -1226,6 +1291,7 @@ var samls = (function (exports, axios) {
|
|
|
1226
1291
|
exports.AgentInfoModel = AgentInfoModel;
|
|
1227
1292
|
exports.AgentModel = AgentModel;
|
|
1228
1293
|
exports.CategoryModel = CategoryModel;
|
|
1294
|
+
exports.ConditionModel = ConditionModel;
|
|
1229
1295
|
exports.Entity = Entity;
|
|
1230
1296
|
exports.FeatureModel = FeatureModel;
|
|
1231
1297
|
exports.GetAgentRequestModel = GetAgentRequestModel;
|
|
@@ -1242,6 +1308,7 @@ var samls = (function (exports, axios) {
|
|
|
1242
1308
|
exports.MlsInfoModel = MlsInfoModel;
|
|
1243
1309
|
exports.OfficeModel = OfficeModel;
|
|
1244
1310
|
exports.OpenHouseModel = OpenHouseModel;
|
|
1311
|
+
exports.OrderingModel = OrderingModel;
|
|
1245
1312
|
exports.PaginationOptions = PaginationOptions;
|
|
1246
1313
|
exports.PhotoModel = PhotoModel;
|
|
1247
1314
|
exports.Point = Point;
|
package/dist/node/samls.cjs
CHANGED
|
@@ -11,23 +11,28 @@ const URL = {
|
|
|
11
11
|
const requestConfig = { baseURL: URL.domain };
|
|
12
12
|
const http = axios.create(requestConfig);
|
|
13
13
|
|
|
14
|
-
const PATH_SEGMENT$
|
|
14
|
+
const PATH_SEGMENT$2 = 'AddressDetail';
|
|
15
15
|
class MlsClient {
|
|
16
|
-
|
|
17
|
-
return http.get(`${PATH_SEGMENT$
|
|
16
|
+
getMlsInfos() {
|
|
17
|
+
return http.get(`${PATH_SEGMENT$2}/Mls`);
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
return http.get(`${PATH_SEGMENT$
|
|
19
|
+
getMlsInfoById(id) {
|
|
20
|
+
return http.get(`${PATH_SEGMENT$2}/Mls/${id}`);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const PATH_SEGMENT$2 = 'Listing';
|
|
25
24
|
class ListingsClient {
|
|
26
25
|
getListingsByFilter(model) {
|
|
27
|
-
return http.post(
|
|
26
|
+
return http.post('Listing/filter', model);
|
|
28
27
|
}
|
|
29
|
-
|
|
30
|
-
return http.post(
|
|
28
|
+
getByMlsId(model) {
|
|
29
|
+
return http.post('Listing/mlsId', model);
|
|
30
|
+
}
|
|
31
|
+
getByQuery(queryModel) {
|
|
32
|
+
return http.post('Listing/query', queryModel);
|
|
33
|
+
}
|
|
34
|
+
getListingTypeGroups() {
|
|
35
|
+
return http.get('Listing/type/groups');
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
|
|
@@ -65,14 +70,17 @@ class Point {
|
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
class GlobalQueryModel {
|
|
68
|
-
constructor() {
|
|
73
|
+
constructor(data) {
|
|
69
74
|
this.skip = 0;
|
|
70
75
|
this.take = 10;
|
|
71
|
-
this.filter = '';
|
|
72
|
-
this.fields = [];
|
|
73
76
|
this.count = false;
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
77
|
+
this.filter = null;
|
|
78
|
+
this.order = null;
|
|
79
|
+
this.conditions = null;
|
|
80
|
+
this.fields = [];
|
|
81
|
+
if (data) {
|
|
82
|
+
Object.assign(this, data);
|
|
83
|
+
}
|
|
76
84
|
}
|
|
77
85
|
}
|
|
78
86
|
|
|
@@ -90,10 +98,27 @@ class PaginationOptions {
|
|
|
90
98
|
}
|
|
91
99
|
}
|
|
92
100
|
|
|
101
|
+
class ConditionModel {
|
|
102
|
+
constructor(data) {
|
|
103
|
+
this.value = null;
|
|
104
|
+
this.isNot = false;
|
|
105
|
+
this.operator = null;
|
|
106
|
+
this.nextProperty = null;
|
|
107
|
+
this.subConditions = [];
|
|
108
|
+
this.subCondition = null;
|
|
109
|
+
this.nextCondition = null;
|
|
110
|
+
this.property = null;
|
|
111
|
+
if (data) {
|
|
112
|
+
Object.assign(this, data);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
93
117
|
class AddressQueryModel extends GlobalQueryModel {
|
|
94
|
-
constructor() {
|
|
95
|
-
super(
|
|
118
|
+
constructor(fullAddress, data) {
|
|
119
|
+
super(data);
|
|
96
120
|
this.fullAddress = '';
|
|
121
|
+
this.fullAddress = fullAddress;
|
|
97
122
|
}
|
|
98
123
|
}
|
|
99
124
|
|
|
@@ -1179,7 +1204,9 @@ class LimitModel {
|
|
|
1179
1204
|
constructor(data) {
|
|
1180
1205
|
this.count = 0;
|
|
1181
1206
|
this.type = null;
|
|
1182
|
-
|
|
1207
|
+
if (data) {
|
|
1208
|
+
Object.assign(this, data);
|
|
1209
|
+
}
|
|
1183
1210
|
}
|
|
1184
1211
|
}
|
|
1185
1212
|
|
|
@@ -1208,7 +1235,9 @@ class PolygonFilterRequestModel {
|
|
|
1208
1235
|
this.skipNullUrlKey = false;
|
|
1209
1236
|
this.skipNullGeometry = false;
|
|
1210
1237
|
this.limits = [];
|
|
1211
|
-
|
|
1238
|
+
if (data) {
|
|
1239
|
+
Object.assign(this, data);
|
|
1240
|
+
}
|
|
1212
1241
|
}
|
|
1213
1242
|
}
|
|
1214
1243
|
|
|
@@ -1216,10 +1245,46 @@ class PolygonFilterResponseModel {
|
|
|
1216
1245
|
constructor(data) {
|
|
1217
1246
|
this.type = null;
|
|
1218
1247
|
this.polygons = [];
|
|
1219
|
-
|
|
1248
|
+
if (data) {
|
|
1249
|
+
Object.assign(this, data);
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
exports.Operator = void 0;
|
|
1255
|
+
(function (Operator) {
|
|
1256
|
+
Operator[Operator["Eq"] = 0] = "Eq";
|
|
1257
|
+
Operator[Operator["Gt"] = 1] = "Gt";
|
|
1258
|
+
Operator[Operator["Ge"] = 2] = "Ge";
|
|
1259
|
+
Operator[Operator["Lt"] = 3] = "Lt";
|
|
1260
|
+
Operator[Operator["Le"] = 4] = "Le";
|
|
1261
|
+
Operator[Operator["In"] = 5] = "In";
|
|
1262
|
+
Operator[Operator["Sw"] = 6] = "Sw";
|
|
1263
|
+
Operator[Operator["Ew"] = 7] = "Ew";
|
|
1264
|
+
Operator[Operator["Like"] = 8] = "Like";
|
|
1265
|
+
Operator[Operator["IsNull"] = 9] = "IsNull";
|
|
1266
|
+
Operator[Operator["Any"] = 10] = "Any";
|
|
1267
|
+
Operator[Operator["All"] = 11] = "All";
|
|
1268
|
+
})(exports.Operator || (exports.Operator = {}));
|
|
1269
|
+
|
|
1270
|
+
class OrderingModel {
|
|
1271
|
+
constructor() {
|
|
1272
|
+
this.property = null;
|
|
1273
|
+
this.isDescending = false;
|
|
1274
|
+
this.matchedConditions = [];
|
|
1275
|
+
}
|
|
1276
|
+
toString() {
|
|
1277
|
+
const direction = this.isDescending ? 'desc' : 'asc';
|
|
1278
|
+
return this.property !== null ? `p=${this.property},d=${direction}` : `c=${''},d=${direction}`; //TODO c
|
|
1220
1279
|
}
|
|
1221
1280
|
}
|
|
1222
1281
|
|
|
1282
|
+
exports.Condition = void 0;
|
|
1283
|
+
(function (Condition) {
|
|
1284
|
+
Condition[Condition["And"] = 0] = "And";
|
|
1285
|
+
Condition[Condition["Or"] = 1] = "Or";
|
|
1286
|
+
})(exports.Condition || (exports.Condition = {}));
|
|
1287
|
+
|
|
1223
1288
|
exports.AddressDetail = AddressDetail;
|
|
1224
1289
|
exports.AddressDetailModel = AddressDetailModel;
|
|
1225
1290
|
exports.AddressPolygon = AddressPolygon;
|
|
@@ -1227,6 +1292,7 @@ exports.AddressQueryModel = AddressQueryModel;
|
|
|
1227
1292
|
exports.AgentInfoModel = AgentInfoModel;
|
|
1228
1293
|
exports.AgentModel = AgentModel;
|
|
1229
1294
|
exports.CategoryModel = CategoryModel;
|
|
1295
|
+
exports.ConditionModel = ConditionModel;
|
|
1230
1296
|
exports.Entity = Entity;
|
|
1231
1297
|
exports.FeatureModel = FeatureModel;
|
|
1232
1298
|
exports.GetAgentRequestModel = GetAgentRequestModel;
|
|
@@ -1243,6 +1309,7 @@ exports.LocationModel = LocationModel;
|
|
|
1243
1309
|
exports.MlsInfoModel = MlsInfoModel;
|
|
1244
1310
|
exports.OfficeModel = OfficeModel;
|
|
1245
1311
|
exports.OpenHouseModel = OpenHouseModel;
|
|
1312
|
+
exports.OrderingModel = OrderingModel;
|
|
1246
1313
|
exports.PaginationOptions = PaginationOptions;
|
|
1247
1314
|
exports.PhotoModel = PhotoModel;
|
|
1248
1315
|
exports.Point = Point;
|
|
@@ -2,21 +2,30 @@
|
|
|
2
2
|
ListingModel,
|
|
3
3
|
GetByMlsIdRequestModel,
|
|
4
4
|
GetListingsByFilterRequestModel,
|
|
5
|
+
GlobalQueryModel,
|
|
6
|
+
ListingTypeClassEnum,
|
|
7
|
+
ListingTypeEnum,
|
|
5
8
|
} from '../models';
|
|
6
9
|
import { http, IPagination, IApiResponse } from '../globals';
|
|
7
10
|
|
|
8
|
-
const PATH_SEGMENT = 'Listing';
|
|
9
|
-
|
|
10
11
|
export class ListingsClient {
|
|
11
12
|
getListingsByFilter(
|
|
12
13
|
model: GetListingsByFilterRequestModel,
|
|
13
14
|
): Promise<IApiResponse<IPagination<ListingModel>>> {
|
|
14
|
-
return http.post(
|
|
15
|
+
return http.post('Listing/filter', model);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
getByMlsId(model: GetByMlsIdRequestModel): Promise<IApiResponse<Partial<ListingModel>[]>> {
|
|
19
|
+
return http.post('Listing/mlsId', model);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
getByQuery(queryModel: GlobalQueryModel): Promise<IApiResponse<IPagination<ListingModel>>> {
|
|
23
|
+
return http.post('Listing/query', queryModel);
|
|
15
24
|
}
|
|
16
25
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return http.
|
|
26
|
+
getListingTypeGroups(): Promise<
|
|
27
|
+
IApiResponse<Record<keyof typeof ListingTypeClassEnum, (keyof typeof ListingTypeEnum)[]>>
|
|
28
|
+
> {
|
|
29
|
+
return http.get('Listing/type/groups');
|
|
21
30
|
}
|
|
22
31
|
}
|
package/lib/clients/MlsClient.ts
CHANGED
|
@@ -4,11 +4,11 @@ import { http, IApiResponse } from '../globals';
|
|
|
4
4
|
const PATH_SEGMENT = 'AddressDetail';
|
|
5
5
|
|
|
6
6
|
export class MlsClient {
|
|
7
|
-
|
|
7
|
+
getMlsInfos(): Promise<IApiResponse<MlsInfoModel[]>> {
|
|
8
8
|
return http.get(`${PATH_SEGMENT}/Mls`);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
getMlsInfoById(id: number): Promise<IApiResponse<MlsInfoModel>> {
|
|
12
12
|
return http.get(`${PATH_SEGMENT}/Mls/${id}`);
|
|
13
13
|
}
|
|
14
14
|
}
|
package/lib/globals/index.ts
CHANGED
|
@@ -2,4 +2,9 @@ import { GlobalQueryModel } from '../Common';
|
|
|
2
2
|
|
|
3
3
|
export class AddressQueryModel extends GlobalQueryModel {
|
|
4
4
|
fullAddress: string = '';
|
|
5
|
+
|
|
6
|
+
constructor(fullAddress: string, data?: Partial<GlobalQueryModel>) {
|
|
7
|
+
super(data);
|
|
8
|
+
this.fullAddress = fullAddress;
|
|
9
|
+
}
|
|
5
10
|
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
//GlobalQueryModel extends Query in samls-dotnet-integration
|
|
3
|
-
type ConditionModel = object;
|
|
4
|
-
type OrderingModel = object;
|
|
1
|
+
import { ConditionModel, OrderingModel } from '../PData';
|
|
5
2
|
|
|
6
3
|
export class GlobalQueryModel {
|
|
7
|
-
skip
|
|
8
|
-
take
|
|
9
|
-
filter?: string = '';
|
|
10
|
-
fields?: string[] = [];
|
|
4
|
+
skip: number | null = 0;
|
|
5
|
+
take: number | null = 10;
|
|
11
6
|
count: boolean = false;
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
}
|
|
14
17
|
}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from "./StreetDirectionEnum";
|
|
1
|
+
export * from './AgentTypeEnum';
|
|
2
|
+
export * from './AssociationFeeFrequencyEnum';
|
|
3
|
+
export * from './AuthenticationTypeEnum';
|
|
4
|
+
export * from './CurrencyEnum';
|
|
5
|
+
export * from './DirectionFacesEnum';
|
|
6
|
+
export * from './FeatureSourceEnum';
|
|
7
|
+
export * from './GeometryTypeEnum';
|
|
8
|
+
export * from './ListingStatusEnum';
|
|
9
|
+
export * from './ListingTypeClassEnum';
|
|
10
|
+
export * from './ListingTypeEnum';
|
|
11
|
+
export * from './MLSEnum';
|
|
12
|
+
export * from './OrderByOptions';
|
|
13
|
+
export * from './OwnershipTypeEnum';
|
|
14
|
+
export * from './PhysicalPropertyTypeEnum';
|
|
15
|
+
export * from './PhysicalPropertyClassEnum';
|
|
16
|
+
export * from './PlatformEnum';
|
|
17
|
+
export * from './ProcessingStatusEnum';
|
|
18
|
+
export * from './ProcessingTypeEnum';
|
|
19
|
+
export * from './PropertyConditionEnum';
|
|
20
|
+
export * from './PropertyLevelEnum';
|
|
21
|
+
export * from './StreetSuffixEnum';
|
|
22
|
+
export * from './StreetDirectionEnum';
|
|
@@ -38,7 +38,7 @@ export class ListingModel {
|
|
|
38
38
|
listingService: string = '';
|
|
39
39
|
listingStatus: ListingStatusEnum | null = null;
|
|
40
40
|
listingTerms: string = '';
|
|
41
|
-
listingType: ListingTypeEnum | null = null;
|
|
41
|
+
listingType: keyof typeof ListingTypeEnum | null = null;
|
|
42
42
|
listPrice: number | null = null;
|
|
43
43
|
pricePerSqFeet: number | null = null;
|
|
44
44
|
listPriceOriginal: number | null = null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './models';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Operator } from './Operator';
|
|
2
|
+
import { Condition } from './Condition';
|
|
3
|
+
import { Leaves } from '../../../globals';
|
|
4
|
+
|
|
5
|
+
export class ConditionModel<T = any> {
|
|
6
|
+
value: string | null = null;
|
|
7
|
+
isNot: boolean = false;
|
|
8
|
+
operator: Operator | null = null;
|
|
9
|
+
nextProperty: string | null = null;
|
|
10
|
+
subConditions: ConditionModel<T>[] = [];
|
|
11
|
+
subCondition: Condition | null = null;
|
|
12
|
+
nextCondition: Condition | null = null;
|
|
13
|
+
property: (T extends any ? Leaves<T> : string) | null = null;
|
|
14
|
+
|
|
15
|
+
constructor(data?: Partial<ConditionModel<T>>) {
|
|
16
|
+
if (data) {
|
|
17
|
+
Object.assign(this, data);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ConditionModel } from './ConditionModel';
|
|
2
|
+
|
|
3
|
+
export class OrderingModel {
|
|
4
|
+
property: string | null = null;
|
|
5
|
+
isDescending: boolean = false;
|
|
6
|
+
matchedConditions: ConditionModel[] = [];
|
|
7
|
+
|
|
8
|
+
toString(): string {
|
|
9
|
+
const direction = this.isDescending ? 'desc' : 'asc';
|
|
10
|
+
return this.property !== null ? `p=${this.property},d=${direction}` : `c=${''},d=${direction}`; //TODO c
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { LimitModel } from './LimitModel';
|
|
2
2
|
export { PolygonLiteResponseModel } from './PolygonLiteResponseModel';
|
|
3
3
|
export { PolygonFilterRequestModel } from './PolygonFilterRequestModel';
|
|
4
|
-
export { PolygonFilterResponseModel } from './PolygonFilterResponseModel';
|
|
4
|
+
export { PolygonType, PolygonFilterResponseModel } from './PolygonFilterResponseModel';
|
package/lib/models/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "samls-js-integration",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
4
4
|
"description": "samls npm package",
|
|
5
5
|
"main": "dist/node/samls.cjs",
|
|
6
6
|
"types": "lib/index.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"type-check": "tsc",
|
|
9
9
|
"build": "rollup --config rollup.config.ts --configPlugin typescript",
|
|
10
|
-
"publish-local": "npm run
|
|
10
|
+
"publish-local": "npm run build && npm publish --registry http://localhost:4873"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"keywords": [
|
|
File without changes
|
|
File without changes
|