@homespot-sdk/core 0.0.323 → 0.0.325
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/property/index.d.ts +2 -2
- package/dist/property/index.d.ts.map +1 -1
- package/dist/property/index.js +1 -1
- package/dist/property/index.js.map +1 -1
- package/dist/property/sdk.gen.d.ts +3 -1
- package/dist/property/sdk.gen.d.ts.map +1 -1
- package/dist/property/sdk.gen.js +10 -0
- package/dist/property/sdk.gen.js.map +1 -1
- package/dist/property/types.gen.d.ts +30 -0
- package/dist/property/types.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.d.ts +22 -0
- package/dist/property/zod.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.js +22 -0
- package/dist/property/zod.gen.js.map +1 -1
- package/dist/rem/index.d.ts +2 -2
- package/dist/rem/index.d.ts.map +1 -1
- package/dist/rem/index.js +1 -1
- package/dist/rem/index.js.map +1 -1
- package/dist/rem/schemas.gen.d.ts +471 -73
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +548 -73
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +28 -8
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +126 -9
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +2 -1
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +64 -6
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +413 -35
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +1114 -147
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +623 -64
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -291,6 +291,15 @@ export const RescheduleRequestSchema = {
|
|
|
291
291
|
},
|
|
292
292
|
required: ['start'],
|
|
293
293
|
};
|
|
294
|
+
export const UpdateListingPriceRequestSchema = {
|
|
295
|
+
type: 'object',
|
|
296
|
+
properties: {
|
|
297
|
+
price: {
|
|
298
|
+
type: 'number',
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
required: ['price'],
|
|
302
|
+
};
|
|
294
303
|
export const AgreementRequestSchema = {
|
|
295
304
|
type: 'object',
|
|
296
305
|
properties: {
|
|
@@ -411,6 +420,21 @@ export const TitleRequestSchema = {
|
|
|
411
420
|
},
|
|
412
421
|
required: ['title'],
|
|
413
422
|
};
|
|
423
|
+
export const RateRecommendationItemRequestSchema = {
|
|
424
|
+
type: 'object',
|
|
425
|
+
properties: {
|
|
426
|
+
decision: {
|
|
427
|
+
type: 'string',
|
|
428
|
+
enum: ['MAYBE', 'DISLIKE', 'LIKE'],
|
|
429
|
+
},
|
|
430
|
+
note: {
|
|
431
|
+
type: 'string',
|
|
432
|
+
maxLength: 100,
|
|
433
|
+
minLength: 0,
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
required: ['decision'],
|
|
437
|
+
};
|
|
414
438
|
export const RecommendListingRequestSchema = {
|
|
415
439
|
type: 'object',
|
|
416
440
|
properties: {
|
|
@@ -732,30 +756,100 @@ export const DepositFundsRequestSchema = {
|
|
|
732
756
|
},
|
|
733
757
|
required: ['amount'],
|
|
734
758
|
};
|
|
735
|
-
export const
|
|
759
|
+
export const SubscribeRequestSchema = {
|
|
736
760
|
type: 'object',
|
|
737
761
|
properties: {
|
|
738
|
-
|
|
739
|
-
type: '
|
|
740
|
-
|
|
762
|
+
plan: {
|
|
763
|
+
type: 'string',
|
|
764
|
+
enum: ['STARTER', 'PRO', 'ENTERPRISE'],
|
|
765
|
+
},
|
|
766
|
+
billingCycle: {
|
|
767
|
+
type: 'string',
|
|
768
|
+
enum: ['MONTHLY', 'ANNUAL'],
|
|
769
|
+
},
|
|
770
|
+
name: {
|
|
771
|
+
type: 'string',
|
|
772
|
+
},
|
|
773
|
+
email: {
|
|
774
|
+
type: 'string',
|
|
775
|
+
format: 'email',
|
|
776
|
+
},
|
|
777
|
+
phone: {
|
|
778
|
+
type: 'string',
|
|
779
|
+
},
|
|
780
|
+
subdomain: {
|
|
781
|
+
type: 'string',
|
|
782
|
+
},
|
|
783
|
+
address: {
|
|
784
|
+
$ref: '#/components/schemas/SubscriptionAddressRequest',
|
|
741
785
|
},
|
|
742
786
|
},
|
|
743
|
-
required: [
|
|
787
|
+
required: [
|
|
788
|
+
'address',
|
|
789
|
+
'billingCycle',
|
|
790
|
+
'email',
|
|
791
|
+
'name',
|
|
792
|
+
'phone',
|
|
793
|
+
'plan',
|
|
794
|
+
'subdomain',
|
|
795
|
+
],
|
|
744
796
|
};
|
|
745
|
-
export const
|
|
797
|
+
export const SubscriptionAddressRequestSchema = {
|
|
746
798
|
type: 'object',
|
|
747
799
|
properties: {
|
|
748
|
-
|
|
800
|
+
country: {
|
|
749
801
|
type: 'string',
|
|
750
|
-
|
|
802
|
+
maxLength: 100,
|
|
803
|
+
minLength: 0,
|
|
751
804
|
},
|
|
752
|
-
|
|
805
|
+
city: {
|
|
806
|
+
type: 'string',
|
|
807
|
+
maxLength: 100,
|
|
808
|
+
minLength: 0,
|
|
809
|
+
},
|
|
810
|
+
district: {
|
|
811
|
+
type: 'string',
|
|
812
|
+
maxLength: 100,
|
|
813
|
+
minLength: 0,
|
|
814
|
+
},
|
|
815
|
+
subdistrict: {
|
|
753
816
|
type: 'string',
|
|
754
817
|
maxLength: 100,
|
|
755
818
|
minLength: 0,
|
|
756
819
|
},
|
|
820
|
+
street: {
|
|
821
|
+
type: 'string',
|
|
822
|
+
maxLength: 255,
|
|
823
|
+
minLength: 0,
|
|
824
|
+
},
|
|
757
825
|
},
|
|
758
|
-
required: ['
|
|
826
|
+
required: ['city', 'country', 'district', 'street', 'subdistrict'],
|
|
827
|
+
};
|
|
828
|
+
export const SubscriptionCheckoutResponseSchema = {
|
|
829
|
+
type: 'object',
|
|
830
|
+
properties: {
|
|
831
|
+
checkoutUrl: {
|
|
832
|
+
type: 'string',
|
|
833
|
+
},
|
|
834
|
+
agencyId: {
|
|
835
|
+
type: 'string',
|
|
836
|
+
format: 'uuid',
|
|
837
|
+
},
|
|
838
|
+
subscriptionId: {
|
|
839
|
+
type: 'string',
|
|
840
|
+
format: 'uuid',
|
|
841
|
+
},
|
|
842
|
+
},
|
|
843
|
+
};
|
|
844
|
+
export const IdResponseIntegerSchema = {
|
|
845
|
+
type: 'object',
|
|
846
|
+
properties: {
|
|
847
|
+
id: {
|
|
848
|
+
type: 'integer',
|
|
849
|
+
format: 'int32',
|
|
850
|
+
},
|
|
851
|
+
},
|
|
852
|
+
required: ['id'],
|
|
759
853
|
};
|
|
760
854
|
export const ContactInfoRequestSchema = {
|
|
761
855
|
type: 'object',
|
|
@@ -1115,27 +1209,159 @@ export const IdResponseUUIDSchema = {
|
|
|
1115
1209
|
required: ['id'],
|
|
1116
1210
|
};
|
|
1117
1211
|
export const AddDealRequestSchema = {
|
|
1118
|
-
|
|
1212
|
+
discriminator: {
|
|
1213
|
+
propertyName: 'type',
|
|
1214
|
+
mapping: {
|
|
1215
|
+
FIXED: '#/components/schemas/Fixed',
|
|
1216
|
+
PERCENTAGE: '#/components/schemas/Percentage',
|
|
1217
|
+
MONTHS_OF_RENT: '#/components/schemas/MonthsOfRent',
|
|
1218
|
+
},
|
|
1219
|
+
},
|
|
1119
1220
|
properties: {
|
|
1120
|
-
|
|
1121
|
-
type: '
|
|
1122
|
-
format: 'int64',
|
|
1221
|
+
type: {
|
|
1222
|
+
type: 'string',
|
|
1123
1223
|
},
|
|
1124
|
-
|
|
1224
|
+
},
|
|
1225
|
+
required: ['type'],
|
|
1226
|
+
};
|
|
1227
|
+
export const CreateListingRequestSchema = {
|
|
1228
|
+
type: 'object',
|
|
1229
|
+
properties: {
|
|
1230
|
+
listingType: {
|
|
1125
1231
|
type: 'string',
|
|
1126
|
-
enum: ['
|
|
1232
|
+
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
1127
1233
|
},
|
|
1128
|
-
|
|
1234
|
+
askingPrice: {
|
|
1129
1235
|
type: 'number',
|
|
1130
1236
|
},
|
|
1131
|
-
|
|
1132
|
-
|
|
1237
|
+
deal: {
|
|
1238
|
+
oneOf: [
|
|
1239
|
+
{
|
|
1240
|
+
$ref: '#/components/schemas/Fixed',
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
$ref: '#/components/schemas/MonthsOfRent',
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
$ref: '#/components/schemas/Percentage',
|
|
1247
|
+
},
|
|
1248
|
+
],
|
|
1133
1249
|
},
|
|
1134
|
-
|
|
1135
|
-
|
|
1250
|
+
},
|
|
1251
|
+
required: ['askingPrice', 'listingType'],
|
|
1252
|
+
};
|
|
1253
|
+
export const FixedSchema = {
|
|
1254
|
+
allOf: [
|
|
1255
|
+
{
|
|
1256
|
+
$ref: '#/components/schemas/AddDealRequest',
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
type: 'object',
|
|
1260
|
+
properties: {
|
|
1261
|
+
amount: {
|
|
1262
|
+
type: 'number',
|
|
1263
|
+
},
|
|
1264
|
+
},
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
$ref: '#/components/schemas/DealResponse',
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
type: 'object',
|
|
1271
|
+
properties: {
|
|
1272
|
+
amount: {
|
|
1273
|
+
type: 'number',
|
|
1274
|
+
},
|
|
1275
|
+
commission: {
|
|
1276
|
+
type: 'number',
|
|
1277
|
+
},
|
|
1278
|
+
},
|
|
1279
|
+
},
|
|
1280
|
+
],
|
|
1281
|
+
required: ['amount'],
|
|
1282
|
+
};
|
|
1283
|
+
export const MonthsOfRentSchema = {
|
|
1284
|
+
allOf: [
|
|
1285
|
+
{
|
|
1286
|
+
$ref: '#/components/schemas/AddDealRequest',
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
type: 'object',
|
|
1290
|
+
properties: {
|
|
1291
|
+
factor: {
|
|
1292
|
+
type: 'number',
|
|
1293
|
+
},
|
|
1294
|
+
},
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
$ref: '#/components/schemas/DealResponse',
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
type: 'object',
|
|
1301
|
+
properties: {
|
|
1302
|
+
factor: {
|
|
1303
|
+
type: 'number',
|
|
1304
|
+
},
|
|
1305
|
+
commission: {
|
|
1306
|
+
type: 'number',
|
|
1307
|
+
},
|
|
1308
|
+
},
|
|
1309
|
+
},
|
|
1310
|
+
],
|
|
1311
|
+
required: ['factor'],
|
|
1312
|
+
};
|
|
1313
|
+
export const PercentageSchema = {
|
|
1314
|
+
allOf: [
|
|
1315
|
+
{
|
|
1316
|
+
$ref: '#/components/schemas/AddDealRequest',
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
type: 'object',
|
|
1320
|
+
properties: {
|
|
1321
|
+
rate: {
|
|
1322
|
+
type: 'number',
|
|
1323
|
+
maximum: 1,
|
|
1324
|
+
minimum: 0,
|
|
1325
|
+
},
|
|
1326
|
+
},
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
$ref: '#/components/schemas/DealResponse',
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
type: 'object',
|
|
1333
|
+
properties: {
|
|
1334
|
+
rate: {
|
|
1335
|
+
type: 'number',
|
|
1336
|
+
},
|
|
1337
|
+
commission: {
|
|
1338
|
+
type: 'number',
|
|
1339
|
+
},
|
|
1340
|
+
},
|
|
1341
|
+
},
|
|
1342
|
+
],
|
|
1343
|
+
required: ['rate'],
|
|
1344
|
+
};
|
|
1345
|
+
export const CloseListingRequestSchema = {
|
|
1346
|
+
type: 'object',
|
|
1347
|
+
properties: {
|
|
1348
|
+
withdrawExternal: {
|
|
1349
|
+
type: 'boolean',
|
|
1136
1350
|
},
|
|
1137
1351
|
},
|
|
1138
|
-
|
|
1352
|
+
};
|
|
1353
|
+
export const ClosePropertyRequestSchema = {
|
|
1354
|
+
type: 'object',
|
|
1355
|
+
properties: {
|
|
1356
|
+
reason: {
|
|
1357
|
+
type: 'string',
|
|
1358
|
+
enum: ['DEAL_CLOSED', 'OWNER_WITHDREW', 'MANDATE_EXPIRED', 'OTHER'],
|
|
1359
|
+
},
|
|
1360
|
+
withdrawExternal: {
|
|
1361
|
+
type: 'boolean',
|
|
1362
|
+
},
|
|
1363
|
+
},
|
|
1364
|
+
required: ['reason'],
|
|
1139
1365
|
};
|
|
1140
1366
|
export const InterestIdSchema = {
|
|
1141
1367
|
type: 'object',
|
|
@@ -2170,10 +2396,6 @@ export const RecommendationsCardViewSchema = {
|
|
|
2170
2396
|
export const RecommendationDecisionResponseSchema = {
|
|
2171
2397
|
type: 'object',
|
|
2172
2398
|
properties: {
|
|
2173
|
-
itemId: {
|
|
2174
|
-
type: 'integer',
|
|
2175
|
-
format: 'int64',
|
|
2176
|
-
},
|
|
2177
2399
|
externalPropertyId: {
|
|
2178
2400
|
type: 'string',
|
|
2179
2401
|
format: 'uuid',
|
|
@@ -2187,7 +2409,7 @@ export const RecommendationDecisionResponseSchema = {
|
|
|
2187
2409
|
enum: ['MAYBE', 'DISLIKE', 'LIKE'],
|
|
2188
2410
|
},
|
|
2189
2411
|
},
|
|
2190
|
-
required: ['decision', 'externalListingId', 'externalPropertyId'
|
|
2412
|
+
required: ['decision', 'externalListingId', 'externalPropertyId'],
|
|
2191
2413
|
};
|
|
2192
2414
|
export const GroupedPermissionsResponseSchema = {
|
|
2193
2415
|
type: 'object',
|
|
@@ -2514,6 +2736,304 @@ export const WhitelabelResponseSchema = {
|
|
|
2514
2736
|
},
|
|
2515
2737
|
required: ['members', 'name', 'stats', 'theme'],
|
|
2516
2738
|
};
|
|
2739
|
+
export const AgreementResponseSchema = {
|
|
2740
|
+
type: 'object',
|
|
2741
|
+
properties: {
|
|
2742
|
+
agreement: {
|
|
2743
|
+
type: 'string',
|
|
2744
|
+
enum: ['EXCLUSIVE', 'NON_EXCLUSIVE'],
|
|
2745
|
+
},
|
|
2746
|
+
expiryDate: {
|
|
2747
|
+
type: 'string',
|
|
2748
|
+
format: 'date',
|
|
2749
|
+
},
|
|
2750
|
+
},
|
|
2751
|
+
required: ['agreement'],
|
|
2752
|
+
};
|
|
2753
|
+
export const BoostResponseSchema = {
|
|
2754
|
+
type: 'object',
|
|
2755
|
+
properties: {
|
|
2756
|
+
tier: {
|
|
2757
|
+
type: 'string',
|
|
2758
|
+
enum: ['VIP', 'VIP_PLUS', 'SUPER_VIP'],
|
|
2759
|
+
},
|
|
2760
|
+
status: {
|
|
2761
|
+
type: 'string',
|
|
2762
|
+
enum: ['PENDING', 'ACTIVE', 'FAIL_NO_BALANCE', 'FAILED'],
|
|
2763
|
+
},
|
|
2764
|
+
activatedAt: {
|
|
2765
|
+
type: 'string',
|
|
2766
|
+
format: 'date',
|
|
2767
|
+
},
|
|
2768
|
+
expiresAt: {
|
|
2769
|
+
type: 'string',
|
|
2770
|
+
format: 'date',
|
|
2771
|
+
},
|
|
2772
|
+
},
|
|
2773
|
+
required: ['status', 'tier'],
|
|
2774
|
+
};
|
|
2775
|
+
export const ColoredListingResponseSchema = {
|
|
2776
|
+
type: 'object',
|
|
2777
|
+
properties: {
|
|
2778
|
+
activatedAt: {
|
|
2779
|
+
type: 'string',
|
|
2780
|
+
format: 'date',
|
|
2781
|
+
},
|
|
2782
|
+
expiresAt: {
|
|
2783
|
+
type: 'string',
|
|
2784
|
+
format: 'date',
|
|
2785
|
+
},
|
|
2786
|
+
},
|
|
2787
|
+
required: ['activatedAt', 'expiresAt'],
|
|
2788
|
+
};
|
|
2789
|
+
export const DealResponseSchema = {
|
|
2790
|
+
discriminator: {
|
|
2791
|
+
propertyName: 'type',
|
|
2792
|
+
mapping: {
|
|
2793
|
+
FIXED: '#/components/schemas/Fixed',
|
|
2794
|
+
PERCENTAGE: '#/components/schemas/Percentage',
|
|
2795
|
+
MONTHS_OF_RENT: '#/components/schemas/MonthsOfRent',
|
|
2796
|
+
},
|
|
2797
|
+
},
|
|
2798
|
+
properties: {
|
|
2799
|
+
type: {
|
|
2800
|
+
type: 'string',
|
|
2801
|
+
},
|
|
2802
|
+
},
|
|
2803
|
+
required: ['type'],
|
|
2804
|
+
};
|
|
2805
|
+
export const PlatformListingResponseSchema = {
|
|
2806
|
+
type: 'object',
|
|
2807
|
+
properties: {
|
|
2808
|
+
platformId: {
|
|
2809
|
+
type: 'integer',
|
|
2810
|
+
format: 'int64',
|
|
2811
|
+
},
|
|
2812
|
+
platformType: {
|
|
2813
|
+
type: 'string',
|
|
2814
|
+
enum: ['SS', 'MY_HOME'],
|
|
2815
|
+
},
|
|
2816
|
+
status: {
|
|
2817
|
+
type: 'string',
|
|
2818
|
+
enum: ['PENDING', 'SYNDICATED', 'FAILED', 'EXPIRED'],
|
|
2819
|
+
},
|
|
2820
|
+
listedAt: {
|
|
2821
|
+
type: 'string',
|
|
2822
|
+
format: 'date',
|
|
2823
|
+
},
|
|
2824
|
+
expiresAt: {
|
|
2825
|
+
type: 'string',
|
|
2826
|
+
format: 'date',
|
|
2827
|
+
},
|
|
2828
|
+
renewedAt: {
|
|
2829
|
+
type: 'string',
|
|
2830
|
+
format: 'date',
|
|
2831
|
+
},
|
|
2832
|
+
boost: {
|
|
2833
|
+
$ref: '#/components/schemas/BoostResponse',
|
|
2834
|
+
},
|
|
2835
|
+
coloredListing: {
|
|
2836
|
+
$ref: '#/components/schemas/ColoredListingResponse',
|
|
2837
|
+
},
|
|
2838
|
+
},
|
|
2839
|
+
required: ['platformType', 'status'],
|
|
2840
|
+
};
|
|
2841
|
+
export const PropertyCloseReasonResponseSchema = {
|
|
2842
|
+
type: 'object',
|
|
2843
|
+
properties: {
|
|
2844
|
+
closedAt: {
|
|
2845
|
+
type: 'string',
|
|
2846
|
+
format: 'date-time',
|
|
2847
|
+
},
|
|
2848
|
+
reason: {
|
|
2849
|
+
type: 'string',
|
|
2850
|
+
enum: ['DEAL_CLOSED', 'OWNER_WITHDREW', 'MANDATE_EXPIRED', 'OTHER'],
|
|
2851
|
+
},
|
|
2852
|
+
},
|
|
2853
|
+
required: ['closedAt', 'reason'],
|
|
2854
|
+
};
|
|
2855
|
+
export const PropertyDetailsResponseSchema = {
|
|
2856
|
+
type: 'object',
|
|
2857
|
+
properties: {
|
|
2858
|
+
title: {
|
|
2859
|
+
type: 'string',
|
|
2860
|
+
},
|
|
2861
|
+
coverPhoto: {
|
|
2862
|
+
type: 'string',
|
|
2863
|
+
},
|
|
2864
|
+
photoCount: {
|
|
2865
|
+
type: 'integer',
|
|
2866
|
+
format: 'int32',
|
|
2867
|
+
},
|
|
2868
|
+
totalArea: {
|
|
2869
|
+
type: 'number',
|
|
2870
|
+
format: 'double',
|
|
2871
|
+
},
|
|
2872
|
+
livingArea: {
|
|
2873
|
+
type: 'number',
|
|
2874
|
+
format: 'double',
|
|
2875
|
+
},
|
|
2876
|
+
balconyArea: {
|
|
2877
|
+
type: 'number',
|
|
2878
|
+
format: 'double',
|
|
2879
|
+
},
|
|
2880
|
+
address: {
|
|
2881
|
+
$ref: '#/components/schemas/AddressResponse',
|
|
2882
|
+
},
|
|
2883
|
+
},
|
|
2884
|
+
required: ['address', 'title', 'totalArea'],
|
|
2885
|
+
};
|
|
2886
|
+
export const PropertyListingResponseSchema = {
|
|
2887
|
+
type: 'object',
|
|
2888
|
+
properties: {
|
|
2889
|
+
publicId: {
|
|
2890
|
+
type: 'integer',
|
|
2891
|
+
format: 'int64',
|
|
2892
|
+
},
|
|
2893
|
+
listingId: {
|
|
2894
|
+
type: 'string',
|
|
2895
|
+
format: 'uuid',
|
|
2896
|
+
},
|
|
2897
|
+
listingType: {
|
|
2898
|
+
type: 'string',
|
|
2899
|
+
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
2900
|
+
},
|
|
2901
|
+
marketplaceStatus: {
|
|
2902
|
+
type: 'string',
|
|
2903
|
+
enum: ['PENDING', 'ACTIVE', 'PAUSED', 'EXPIRED', 'FAILED'],
|
|
2904
|
+
},
|
|
2905
|
+
crmState: {
|
|
2906
|
+
type: 'string',
|
|
2907
|
+
enum: ['OPEN', 'CLOSED'],
|
|
2908
|
+
},
|
|
2909
|
+
isProcessing: {
|
|
2910
|
+
type: 'boolean',
|
|
2911
|
+
description: 'True while any async saga is in flight (create PENDING, or any placement/boost PENDING) — poll the property page until false.',
|
|
2912
|
+
},
|
|
2913
|
+
price: {
|
|
2914
|
+
type: 'number',
|
|
2915
|
+
},
|
|
2916
|
+
deal: {
|
|
2917
|
+
oneOf: [
|
|
2918
|
+
{
|
|
2919
|
+
$ref: '#/components/schemas/Fixed',
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
$ref: '#/components/schemas/MonthsOfRent',
|
|
2923
|
+
},
|
|
2924
|
+
{
|
|
2925
|
+
$ref: '#/components/schemas/Percentage',
|
|
2926
|
+
},
|
|
2927
|
+
],
|
|
2928
|
+
},
|
|
2929
|
+
platformListings: {
|
|
2930
|
+
type: 'array',
|
|
2931
|
+
items: {
|
|
2932
|
+
$ref: '#/components/schemas/PlatformListingResponse',
|
|
2933
|
+
},
|
|
2934
|
+
},
|
|
2935
|
+
createdAt: {
|
|
2936
|
+
type: 'string',
|
|
2937
|
+
format: 'date-time',
|
|
2938
|
+
},
|
|
2939
|
+
closedAt: {
|
|
2940
|
+
type: 'string',
|
|
2941
|
+
format: 'date-time',
|
|
2942
|
+
},
|
|
2943
|
+
},
|
|
2944
|
+
required: [
|
|
2945
|
+
'createdAt',
|
|
2946
|
+
'crmState',
|
|
2947
|
+
'isProcessing',
|
|
2948
|
+
'listingId',
|
|
2949
|
+
'listingType',
|
|
2950
|
+
'marketplaceStatus',
|
|
2951
|
+
'platformListings',
|
|
2952
|
+
'price',
|
|
2953
|
+
'publicId',
|
|
2954
|
+
],
|
|
2955
|
+
};
|
|
2956
|
+
export const PropertyPageResponseSchema = {
|
|
2957
|
+
type: 'object',
|
|
2958
|
+
properties: {
|
|
2959
|
+
publicId: {
|
|
2960
|
+
type: 'integer',
|
|
2961
|
+
format: 'int64',
|
|
2962
|
+
},
|
|
2963
|
+
propertyId: {
|
|
2964
|
+
type: 'string',
|
|
2965
|
+
format: 'uuid',
|
|
2966
|
+
},
|
|
2967
|
+
type: {
|
|
2968
|
+
type: 'string',
|
|
2969
|
+
enum: [
|
|
2970
|
+
'HOUSE',
|
|
2971
|
+
'TOWN_HOUSE',
|
|
2972
|
+
'COUNTRY_HOUSE',
|
|
2973
|
+
'VILLA',
|
|
2974
|
+
'COTTAGE',
|
|
2975
|
+
'APARTMENT',
|
|
2976
|
+
'DUPLEX',
|
|
2977
|
+
'TRIPLEX',
|
|
2978
|
+
'SEMI_BASEMENT',
|
|
2979
|
+
'ATTIC',
|
|
2980
|
+
'AGRICULTURAL_LAND',
|
|
2981
|
+
'RESIDENTIAL_LAND',
|
|
2982
|
+
'HOTEL_ROOM',
|
|
2983
|
+
'MOTEL_ROOM',
|
|
2984
|
+
'CO_LIVING_SPACE',
|
|
2985
|
+
'OFFICE',
|
|
2986
|
+
'COMMERCIAL_SPACE',
|
|
2987
|
+
'CO_WORKING_SPACE',
|
|
2988
|
+
'WAREHOUSE',
|
|
2989
|
+
'GARAGE',
|
|
2990
|
+
],
|
|
2991
|
+
},
|
|
2992
|
+
state: {
|
|
2993
|
+
type: 'string',
|
|
2994
|
+
enum: [
|
|
2995
|
+
'IN_REGISTRATION',
|
|
2996
|
+
'UNLISTED',
|
|
2997
|
+
'LISTED_INTERNALLY',
|
|
2998
|
+
'LISTED',
|
|
2999
|
+
'CLOSED',
|
|
3000
|
+
],
|
|
3001
|
+
},
|
|
3002
|
+
details: {
|
|
3003
|
+
$ref: '#/components/schemas/PropertyDetailsResponse',
|
|
3004
|
+
},
|
|
3005
|
+
agreement: {
|
|
3006
|
+
$ref: '#/components/schemas/AgreementResponse',
|
|
3007
|
+
},
|
|
3008
|
+
listings: {
|
|
3009
|
+
type: 'array',
|
|
3010
|
+
items: {
|
|
3011
|
+
$ref: '#/components/schemas/PropertyListingResponse',
|
|
3012
|
+
},
|
|
3013
|
+
},
|
|
3014
|
+
createdAt: {
|
|
3015
|
+
type: 'string',
|
|
3016
|
+
format: 'date-time',
|
|
3017
|
+
},
|
|
3018
|
+
updatedAt: {
|
|
3019
|
+
type: 'string',
|
|
3020
|
+
format: 'date-time',
|
|
3021
|
+
},
|
|
3022
|
+
closeReason: {
|
|
3023
|
+
$ref: '#/components/schemas/PropertyCloseReasonResponse',
|
|
3024
|
+
},
|
|
3025
|
+
},
|
|
3026
|
+
required: [
|
|
3027
|
+
'agreement',
|
|
3028
|
+
'createdAt',
|
|
3029
|
+
'listings',
|
|
3030
|
+
'propertyId',
|
|
3031
|
+
'publicId',
|
|
3032
|
+
'state',
|
|
3033
|
+
'type',
|
|
3034
|
+
'updatedAt',
|
|
3035
|
+
],
|
|
3036
|
+
};
|
|
2517
3037
|
export const ContactAssignedSchema = {
|
|
2518
3038
|
properties: {
|
|
2519
3039
|
contactId: {
|
|
@@ -3092,7 +3612,7 @@ export const ListingGridViewSchema = {
|
|
|
3092
3612
|
},
|
|
3093
3613
|
commissionType: {
|
|
3094
3614
|
type: 'string',
|
|
3095
|
-
enum: ['
|
|
3615
|
+
enum: ['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'],
|
|
3096
3616
|
},
|
|
3097
3617
|
commission: {
|
|
3098
3618
|
type: 'number',
|
|
@@ -3761,20 +4281,6 @@ export const PagedModelContactGridResponseSchema = {
|
|
|
3761
4281
|
},
|
|
3762
4282
|
},
|
|
3763
4283
|
};
|
|
3764
|
-
export const AgreementResponseSchema = {
|
|
3765
|
-
type: 'object',
|
|
3766
|
-
properties: {
|
|
3767
|
-
agreement: {
|
|
3768
|
-
type: 'string',
|
|
3769
|
-
enum: ['EXCLUSIVE', 'NON_EXCLUSIVE'],
|
|
3770
|
-
},
|
|
3771
|
-
expiryDate: {
|
|
3772
|
-
type: 'string',
|
|
3773
|
-
format: 'date',
|
|
3774
|
-
},
|
|
3775
|
-
},
|
|
3776
|
-
required: ['agreement'],
|
|
3777
|
-
};
|
|
3778
4284
|
export const AssignedMemberSchema = {
|
|
3779
4285
|
type: 'object',
|
|
3780
4286
|
properties: {
|
|
@@ -3995,37 +4501,6 @@ export const ContactPropertyResponseSchema = {
|
|
|
3995
4501
|
'type',
|
|
3996
4502
|
],
|
|
3997
4503
|
};
|
|
3998
|
-
export const PropertyDetailsResponseSchema = {
|
|
3999
|
-
type: 'object',
|
|
4000
|
-
properties: {
|
|
4001
|
-
title: {
|
|
4002
|
-
type: 'string',
|
|
4003
|
-
},
|
|
4004
|
-
coverPhoto: {
|
|
4005
|
-
type: 'string',
|
|
4006
|
-
},
|
|
4007
|
-
photoCount: {
|
|
4008
|
-
type: 'integer',
|
|
4009
|
-
format: 'int32',
|
|
4010
|
-
},
|
|
4011
|
-
totalArea: {
|
|
4012
|
-
type: 'number',
|
|
4013
|
-
format: 'double',
|
|
4014
|
-
},
|
|
4015
|
-
livingArea: {
|
|
4016
|
-
type: 'number',
|
|
4017
|
-
format: 'double',
|
|
4018
|
-
},
|
|
4019
|
-
balconyArea: {
|
|
4020
|
-
type: 'number',
|
|
4021
|
-
format: 'double',
|
|
4022
|
-
},
|
|
4023
|
-
address: {
|
|
4024
|
-
$ref: '#/components/schemas/AddressResponse',
|
|
4025
|
-
},
|
|
4026
|
-
},
|
|
4027
|
-
required: ['address', 'title', 'totalArea'],
|
|
4028
|
-
};
|
|
4029
4504
|
export const SourceResponseSchema = {
|
|
4030
4505
|
type: 'object',
|
|
4031
4506
|
properties: {
|