@homespot-sdk/core 0.0.363 → 0.0.365

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.
@@ -629,6 +629,40 @@ export const UpdateContactDetailsRequestSchema = {
629
629
  },
630
630
  },
631
631
  };
632
+ export const ExternalListingManualSaveRequestSchema = {
633
+ type: 'object',
634
+ properties: {
635
+ listingId: {
636
+ type: 'integer',
637
+ format: 'int64',
638
+ },
639
+ platform: {
640
+ type: 'string',
641
+ description: 'Which portal the listing is on; needed for a bare number, and a link has to agree with it',
642
+ enum: ['SS', 'MY_HOME'],
643
+ },
644
+ portalListing: {
645
+ type: 'string',
646
+ description: "The listing's link on ss.ge or myhome.ge, or its number",
647
+ minLength: 1,
648
+ },
649
+ listedAt: {
650
+ type: 'string',
651
+ format: 'date',
652
+ },
653
+ renewedAt: {
654
+ type: 'string',
655
+ format: 'date',
656
+ description: 'When the agent last renewed it on the portal; today, to mark it renewed',
657
+ },
658
+ expiresAt: {
659
+ type: 'string',
660
+ format: 'date',
661
+ description: 'When the portal says it ends; left out, 30 days after renewedAt or else listedAt',
662
+ },
663
+ },
664
+ required: ['listingId', 'portalListing'],
665
+ };
632
666
  export const ReassignMemberRequestSchema = {
633
667
  type: 'object',
634
668
  properties: {
@@ -1097,6 +1131,282 @@ export const IdResponseIntegerSchema = {
1097
1131
  },
1098
1132
  required: ['id'],
1099
1133
  };
1134
+ export const AddressNamesSchema = {
1135
+ type: 'object',
1136
+ properties: {
1137
+ region: {
1138
+ type: 'object',
1139
+ additionalProperties: {
1140
+ type: 'string',
1141
+ },
1142
+ },
1143
+ district: {
1144
+ type: 'object',
1145
+ additionalProperties: {
1146
+ type: 'string',
1147
+ },
1148
+ },
1149
+ subdistrict: {
1150
+ type: 'object',
1151
+ additionalProperties: {
1152
+ type: 'string',
1153
+ },
1154
+ },
1155
+ street: {
1156
+ type: 'object',
1157
+ additionalProperties: {
1158
+ type: 'string',
1159
+ },
1160
+ },
1161
+ },
1162
+ };
1163
+ export const AddressRefSchema = {
1164
+ type: 'object',
1165
+ properties: {
1166
+ regionId: {
1167
+ type: 'integer',
1168
+ format: 'int64',
1169
+ },
1170
+ districtId: {
1171
+ type: 'integer',
1172
+ format: 'int64',
1173
+ },
1174
+ subdistrictId: {
1175
+ type: 'integer',
1176
+ format: 'int64',
1177
+ },
1178
+ streetId: {
1179
+ type: 'integer',
1180
+ format: 'int64',
1181
+ },
1182
+ names: {
1183
+ $ref: '#/components/schemas/AddressNames',
1184
+ },
1185
+ cadastreCode: {
1186
+ type: 'string',
1187
+ },
1188
+ coordinates: {
1189
+ $ref: '#/components/schemas/Coordinates',
1190
+ },
1191
+ },
1192
+ };
1193
+ export const CoordinatesSchema = {
1194
+ type: 'object',
1195
+ properties: {
1196
+ lat: {
1197
+ type: 'number',
1198
+ format: 'double',
1199
+ },
1200
+ lng: {
1201
+ type: 'number',
1202
+ format: 'double',
1203
+ },
1204
+ },
1205
+ };
1206
+ export const OfferSchema = {
1207
+ type: 'object',
1208
+ properties: {
1209
+ deal: {
1210
+ type: 'string',
1211
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
1212
+ },
1213
+ price: {
1214
+ type: 'number',
1215
+ },
1216
+ },
1217
+ required: ['deal', 'price'],
1218
+ };
1219
+ export const PhotoInternalRequestSchema = {
1220
+ type: 'object',
1221
+ properties: {
1222
+ photo: {
1223
+ type: 'string',
1224
+ maxLength: 255,
1225
+ minLength: 0,
1226
+ },
1227
+ width: {
1228
+ type: 'integer',
1229
+ format: 'int32',
1230
+ maximum: 11000,
1231
+ minimum: 10,
1232
+ },
1233
+ height: {
1234
+ type: 'integer',
1235
+ format: 'int32',
1236
+ maximum: 11000,
1237
+ minimum: 10,
1238
+ },
1239
+ },
1240
+ required: ['photo', 'width'],
1241
+ };
1242
+ export const PropertyCreationRequestSchema = {
1243
+ type: 'object',
1244
+ properties: {
1245
+ draftId: {
1246
+ type: 'string',
1247
+ format: 'uuid',
1248
+ },
1249
+ contactId: {
1250
+ type: 'integer',
1251
+ format: 'int64',
1252
+ },
1253
+ propertyType: {
1254
+ type: 'string',
1255
+ enum: [
1256
+ 'HOUSE',
1257
+ 'TOWN_HOUSE',
1258
+ 'COUNTRY_HOUSE',
1259
+ 'VILLA',
1260
+ 'COTTAGE',
1261
+ 'APARTMENT',
1262
+ 'DUPLEX',
1263
+ 'TRIPLEX',
1264
+ 'SEMI_BASEMENT',
1265
+ 'ATTIC',
1266
+ 'AGRICULTURAL_LAND',
1267
+ 'RESIDENTIAL_LAND',
1268
+ 'HOTEL_ROOM',
1269
+ 'MOTEL_ROOM',
1270
+ 'CO_LIVING_SPACE',
1271
+ 'OFFICE',
1272
+ 'COMMERCIAL_SPACE',
1273
+ 'CO_WORKING_SPACE',
1274
+ 'WAREHOUSE',
1275
+ 'GARAGE',
1276
+ ],
1277
+ },
1278
+ address: {
1279
+ $ref: '#/components/schemas/AddressRef',
1280
+ },
1281
+ photoUrls: {
1282
+ type: 'array',
1283
+ items: {
1284
+ $ref: '#/components/schemas/PhotoInternalRequest',
1285
+ },
1286
+ maxItems: 2147483647,
1287
+ minItems: 5,
1288
+ },
1289
+ spaces: {
1290
+ type: 'object',
1291
+ additionalProperties: {
1292
+ type: 'array',
1293
+ items: {
1294
+ type: 'number',
1295
+ format: 'double',
1296
+ },
1297
+ },
1298
+ description: 'Areas per space type. A null entry records a space whose area is unknown.',
1299
+ example: {
1300
+ BATHROOM: [5, 8],
1301
+ BEDROOM: [15.5, null, 22],
1302
+ LIVING_ROOM: [52.5],
1303
+ KITCHEN: [20.5],
1304
+ },
1305
+ },
1306
+ totalArea: {
1307
+ type: 'number',
1308
+ format: 'double',
1309
+ },
1310
+ livingArea: {
1311
+ type: 'number',
1312
+ format: 'double',
1313
+ },
1314
+ balconyArea: {
1315
+ type: 'number',
1316
+ format: 'double',
1317
+ },
1318
+ status: {
1319
+ type: 'string',
1320
+ enum: [
1321
+ 'OLD_BUILDING',
1322
+ 'NEW_BUILDING',
1323
+ 'UNDER_CONSTRUCTION',
1324
+ 'FINISHED',
1325
+ ],
1326
+ },
1327
+ condition: {
1328
+ type: 'string',
1329
+ enum: [
1330
+ 'NEWLY_RENOVATED',
1331
+ 'OLD_RENOVATED',
1332
+ 'CURRENT_RENOVATION',
1333
+ 'REPAIRING',
1334
+ 'WHITE_FRAME',
1335
+ 'BLACK_FRAME',
1336
+ 'GREEN_FRAME',
1337
+ 'WHITE_PLUS',
1338
+ ],
1339
+ },
1340
+ totalFloors: {
1341
+ type: 'integer',
1342
+ format: 'int32',
1343
+ },
1344
+ floorAt: {
1345
+ type: 'integer',
1346
+ format: 'int32',
1347
+ },
1348
+ amenities: {
1349
+ type: 'array',
1350
+ items: {
1351
+ type: 'integer',
1352
+ format: 'int32',
1353
+ },
1354
+ },
1355
+ title: {
1356
+ type: 'string',
1357
+ minLength: 1,
1358
+ },
1359
+ description: {
1360
+ type: 'object',
1361
+ additionalProperties: {
1362
+ type: 'string',
1363
+ },
1364
+ example: {
1365
+ ka: 'example ka',
1366
+ en: 'example en',
1367
+ ru: 'example ru',
1368
+ },
1369
+ minProperties: 1,
1370
+ },
1371
+ },
1372
+ required: [
1373
+ 'address',
1374
+ 'amenities',
1375
+ 'description',
1376
+ 'draftId',
1377
+ 'photoUrls',
1378
+ 'propertyType',
1379
+ 'spaces',
1380
+ 'title',
1381
+ 'totalArea',
1382
+ ],
1383
+ };
1384
+ export const SubmissionSchema = {
1385
+ type: 'object',
1386
+ properties: {
1387
+ property: {
1388
+ $ref: '#/components/schemas/PropertyCreationRequest',
1389
+ },
1390
+ offer: {
1391
+ $ref: '#/components/schemas/Offer',
1392
+ },
1393
+ },
1394
+ required: ['property'],
1395
+ };
1396
+ export const PhotosRequestSchema = {
1397
+ type: 'object',
1398
+ properties: {
1399
+ photos: {
1400
+ type: 'array',
1401
+ items: {
1402
+ $ref: '#/components/schemas/PhotoRequest',
1403
+ },
1404
+ maxItems: 30,
1405
+ minItems: 1,
1406
+ },
1407
+ },
1408
+ required: ['photos'],
1409
+ };
1100
1410
  export const ContactInfoRequestSchema = {
1101
1411
  type: 'object',
1102
1412
  properties: {
@@ -2071,19 +2381,6 @@ export const ExternalListingBoostRequestSchema = {
2071
2381
  },
2072
2382
  required: ['listingId', 'numberOfDays', 'platform', 'tier'],
2073
2383
  };
2074
- export const OnboardFromSourceRequestSchema = {
2075
- type: 'object',
2076
- properties: {
2077
- sourceLink: {
2078
- type: 'string',
2079
- },
2080
- phone: {
2081
- type: 'string',
2082
- minLength: 1,
2083
- },
2084
- },
2085
- required: ['phone', 'sourceLink'],
2086
- };
2087
2384
  export const CreateBoardRequestSchema = {
2088
2385
  type: 'object',
2089
2386
  properties: {
@@ -4191,6 +4488,200 @@ export const RoleResponseSchema = {
4191
4488
  },
4192
4489
  required: ['description', 'id', 'name', 'permissions'],
4193
4490
  };
4491
+ export const FormSchema = {
4492
+ type: 'object',
4493
+ properties: {
4494
+ id: {
4495
+ type: 'string',
4496
+ format: 'uuid',
4497
+ },
4498
+ state: {
4499
+ type: 'string',
4500
+ enum: ['OPEN', 'SENT', 'REPLACED', 'EXPIRED'],
4501
+ },
4502
+ expiresAt: {
4503
+ type: 'string',
4504
+ format: 'date-time',
4505
+ },
4506
+ prefill: {
4507
+ $ref: '#/components/schemas/Prefill',
4508
+ },
4509
+ },
4510
+ };
4511
+ export const LocationSummarySchema = {
4512
+ type: 'object',
4513
+ properties: {
4514
+ id: {
4515
+ type: 'integer',
4516
+ format: 'int64',
4517
+ },
4518
+ parentId: {
4519
+ type: 'integer',
4520
+ format: 'int64',
4521
+ },
4522
+ type: {
4523
+ type: 'string',
4524
+ enum: ['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET'],
4525
+ },
4526
+ names: {
4527
+ type: 'object',
4528
+ additionalProperties: {
4529
+ type: 'string',
4530
+ },
4531
+ },
4532
+ fullNames: {
4533
+ type: 'object',
4534
+ additionalProperties: {
4535
+ type: 'string',
4536
+ },
4537
+ },
4538
+ viewport: {
4539
+ $ref: '#/components/schemas/Viewport',
4540
+ },
4541
+ },
4542
+ required: ['fullNames', 'id', 'names', 'type', 'viewport'],
4543
+ };
4544
+ export const OwnerSchema = {
4545
+ type: 'object',
4546
+ properties: {
4547
+ id: {
4548
+ type: 'integer',
4549
+ format: 'int64',
4550
+ },
4551
+ name: {
4552
+ type: 'string',
4553
+ },
4554
+ phone: {
4555
+ type: 'string',
4556
+ },
4557
+ },
4558
+ };
4559
+ export const PrefillSchema = {
4560
+ type: 'object',
4561
+ properties: {
4562
+ owner: {
4563
+ $ref: '#/components/schemas/Owner',
4564
+ },
4565
+ propertyType: {
4566
+ type: 'string',
4567
+ enum: [
4568
+ 'HOUSE',
4569
+ 'TOWN_HOUSE',
4570
+ 'COUNTRY_HOUSE',
4571
+ 'VILLA',
4572
+ 'COTTAGE',
4573
+ 'APARTMENT',
4574
+ 'DUPLEX',
4575
+ 'TRIPLEX',
4576
+ 'SEMI_BASEMENT',
4577
+ 'ATTIC',
4578
+ 'AGRICULTURAL_LAND',
4579
+ 'RESIDENTIAL_LAND',
4580
+ 'HOTEL_ROOM',
4581
+ 'MOTEL_ROOM',
4582
+ 'CO_LIVING_SPACE',
4583
+ 'OFFICE',
4584
+ 'COMMERCIAL_SPACE',
4585
+ 'CO_WORKING_SPACE',
4586
+ 'WAREHOUSE',
4587
+ 'GARAGE',
4588
+ ],
4589
+ },
4590
+ place: {
4591
+ $ref: '#/components/schemas/LocationSummary',
4592
+ },
4593
+ spaces: {
4594
+ type: 'object',
4595
+ additionalProperties: {
4596
+ type: 'array',
4597
+ items: {
4598
+ type: 'number',
4599
+ format: 'double',
4600
+ },
4601
+ },
4602
+ },
4603
+ totalArea: {
4604
+ type: 'number',
4605
+ format: 'double',
4606
+ },
4607
+ livingArea: {
4608
+ type: 'number',
4609
+ format: 'double',
4610
+ },
4611
+ balconyArea: {
4612
+ type: 'number',
4613
+ format: 'double',
4614
+ },
4615
+ status: {
4616
+ type: 'string',
4617
+ enum: [
4618
+ 'OLD_BUILDING',
4619
+ 'NEW_BUILDING',
4620
+ 'UNDER_CONSTRUCTION',
4621
+ 'FINISHED',
4622
+ ],
4623
+ },
4624
+ condition: {
4625
+ type: 'string',
4626
+ enum: [
4627
+ 'NEWLY_RENOVATED',
4628
+ 'OLD_RENOVATED',
4629
+ 'CURRENT_RENOVATION',
4630
+ 'REPAIRING',
4631
+ 'WHITE_FRAME',
4632
+ 'BLACK_FRAME',
4633
+ 'GREEN_FRAME',
4634
+ 'WHITE_PLUS',
4635
+ ],
4636
+ },
4637
+ totalFloors: {
4638
+ type: 'integer',
4639
+ format: 'int32',
4640
+ },
4641
+ floorAt: {
4642
+ type: 'integer',
4643
+ format: 'int32',
4644
+ },
4645
+ amenities: {
4646
+ type: 'array',
4647
+ items: {
4648
+ type: 'integer',
4649
+ format: 'int32',
4650
+ },
4651
+ },
4652
+ title: {
4653
+ type: 'string',
4654
+ },
4655
+ description: {
4656
+ type: 'string',
4657
+ },
4658
+ offer: {
4659
+ $ref: '#/components/schemas/Offer',
4660
+ },
4661
+ },
4662
+ };
4663
+ export const ViewportSchema = {
4664
+ type: 'object',
4665
+ properties: {
4666
+ south: {
4667
+ type: 'number',
4668
+ format: 'double',
4669
+ },
4670
+ west: {
4671
+ type: 'number',
4672
+ format: 'double',
4673
+ },
4674
+ north: {
4675
+ type: 'number',
4676
+ format: 'double',
4677
+ },
4678
+ east: {
4679
+ type: 'number',
4680
+ format: 'double',
4681
+ },
4682
+ },
4683
+ required: ['east', 'north', 'south', 'west'],
4684
+ };
4194
4685
  export const AddressResponseSchema = {
4195
4686
  type: 'object',
4196
4687
  properties: {
@@ -5078,6 +5569,7 @@ export const PlatformListingResponseSchema = {
5078
5569
  'EXPIRED',
5079
5570
  'WITHDRAWING',
5080
5571
  'WITHDRAWN',
5572
+ 'MANUAL',
5081
5573
  ],
5082
5574
  },
5083
5575
  listedAt: {
@@ -5101,6 +5593,10 @@ export const PlatformListingResponseSchema = {
5101
5593
  coloredListing: {
5102
5594
  $ref: '#/components/schemas/ColoredListingResponse',
5103
5595
  },
5596
+ url: {
5597
+ type: 'string',
5598
+ description: 'Opens the listing on the portal, once the portal gave it a number',
5599
+ },
5104
5600
  },
5105
5601
  required: ['platformType', 'status'],
5106
5602
  };
@@ -6546,12 +7042,10 @@ export const ListingGridResponseSchema = {
6546
7042
  },
6547
7043
  listingState: {
6548
7044
  type: 'string',
6549
- description: 'Whether the agency still works the listing; null for a property without one',
6550
7045
  enum: ['OPEN', 'CLOSED'],
6551
7046
  },
6552
7047
  marketplaceStatus: {
6553
7048
  type: 'string',
6554
- description: "The listing on HomeSpot's own marketplace; null for a property without one",
6555
7049
  enum: ['ACTIVE', 'PAUSED', 'EXPIRED'],
6556
7050
  },
6557
7051
  price: {
@@ -6572,7 +7066,6 @@ export const ListingGridResponseSchema = {
6572
7066
  },
6573
7067
  socialPosts: {
6574
7068
  type: 'array',
6575
- description: 'Where the listing is posted on Facebook / Instagram: the latest published post per channel',
6576
7069
  items: {
6577
7070
  $ref: '#/components/schemas/SocialPostLink',
6578
7071
  },
@@ -6629,7 +7122,6 @@ export const PlatformViewSchema = {
6629
7122
  },
6630
7123
  status: {
6631
7124
  type: 'string',
6632
- description: 'PENDING until the portal answers; SYNDICATED while live',
6633
7125
  enum: [
6634
7126
  'PENDING',
6635
7127
  'SYNDICATED',
@@ -6637,6 +7129,7 @@ export const PlatformViewSchema = {
6637
7129
  'EXPIRED',
6638
7130
  'WITHDRAWING',
6639
7131
  'WITHDRAWN',
7132
+ 'MANUAL',
6640
7133
  ],
6641
7134
  },
6642
7135
  expiresAt: {
@@ -6651,6 +7144,9 @@ export const PlatformViewSchema = {
6651
7144
  type: 'string',
6652
7145
  format: 'date',
6653
7146
  },
7147
+ url: {
7148
+ type: 'string',
7149
+ },
6654
7150
  },
6655
7151
  required: ['status'],
6656
7152
  };
@@ -6663,7 +7159,6 @@ export const SocialPostLinkSchema = {
6663
7159
  },
6664
7160
  permalink: {
6665
7161
  type: 'string',
6666
- description: 'Opens the post on Facebook / Instagram',
6667
7162
  },
6668
7163
  },
6669
7164
  required: ['channel', 'permalink'],
@@ -8101,4 +8596,18 @@ export const MemberCurationViewSchema = {
8101
8596
  },
8102
8597
  },
8103
8598
  };
8599
+ export const ExternalListingManualRemoveRequestSchema = {
8600
+ type: 'object',
8601
+ properties: {
8602
+ listingId: {
8603
+ type: 'integer',
8604
+ format: 'int64',
8605
+ },
8606
+ platform: {
8607
+ type: 'string',
8608
+ enum: ['SS', 'MY_HOME'],
8609
+ },
8610
+ },
8611
+ required: ['listingId', 'platform'],
8612
+ };
8104
8613
  //# sourceMappingURL=schemas.gen.js.map