@homespot-sdk/core 0.0.363 → 0.0.364

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.
@@ -1097,6 +1097,282 @@ export const IdResponseIntegerSchema = {
1097
1097
  },
1098
1098
  required: ['id'],
1099
1099
  };
1100
+ export const AddressNamesSchema = {
1101
+ type: 'object',
1102
+ properties: {
1103
+ region: {
1104
+ type: 'object',
1105
+ additionalProperties: {
1106
+ type: 'string',
1107
+ },
1108
+ },
1109
+ district: {
1110
+ type: 'object',
1111
+ additionalProperties: {
1112
+ type: 'string',
1113
+ },
1114
+ },
1115
+ subdistrict: {
1116
+ type: 'object',
1117
+ additionalProperties: {
1118
+ type: 'string',
1119
+ },
1120
+ },
1121
+ street: {
1122
+ type: 'object',
1123
+ additionalProperties: {
1124
+ type: 'string',
1125
+ },
1126
+ },
1127
+ },
1128
+ };
1129
+ export const AddressRefSchema = {
1130
+ type: 'object',
1131
+ properties: {
1132
+ regionId: {
1133
+ type: 'integer',
1134
+ format: 'int64',
1135
+ },
1136
+ districtId: {
1137
+ type: 'integer',
1138
+ format: 'int64',
1139
+ },
1140
+ subdistrictId: {
1141
+ type: 'integer',
1142
+ format: 'int64',
1143
+ },
1144
+ streetId: {
1145
+ type: 'integer',
1146
+ format: 'int64',
1147
+ },
1148
+ names: {
1149
+ $ref: '#/components/schemas/AddressNames',
1150
+ },
1151
+ cadastreCode: {
1152
+ type: 'string',
1153
+ },
1154
+ coordinates: {
1155
+ $ref: '#/components/schemas/Coordinates',
1156
+ },
1157
+ },
1158
+ };
1159
+ export const CoordinatesSchema = {
1160
+ type: 'object',
1161
+ properties: {
1162
+ lat: {
1163
+ type: 'number',
1164
+ format: 'double',
1165
+ },
1166
+ lng: {
1167
+ type: 'number',
1168
+ format: 'double',
1169
+ },
1170
+ },
1171
+ };
1172
+ export const OfferSchema = {
1173
+ type: 'object',
1174
+ properties: {
1175
+ deal: {
1176
+ type: 'string',
1177
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
1178
+ },
1179
+ price: {
1180
+ type: 'number',
1181
+ },
1182
+ },
1183
+ required: ['deal', 'price'],
1184
+ };
1185
+ export const PhotoInternalRequestSchema = {
1186
+ type: 'object',
1187
+ properties: {
1188
+ photo: {
1189
+ type: 'string',
1190
+ maxLength: 255,
1191
+ minLength: 0,
1192
+ },
1193
+ width: {
1194
+ type: 'integer',
1195
+ format: 'int32',
1196
+ maximum: 11000,
1197
+ minimum: 10,
1198
+ },
1199
+ height: {
1200
+ type: 'integer',
1201
+ format: 'int32',
1202
+ maximum: 11000,
1203
+ minimum: 10,
1204
+ },
1205
+ },
1206
+ required: ['photo', 'width'],
1207
+ };
1208
+ export const PropertyCreationRequestSchema = {
1209
+ type: 'object',
1210
+ properties: {
1211
+ draftId: {
1212
+ type: 'string',
1213
+ format: 'uuid',
1214
+ },
1215
+ contactId: {
1216
+ type: 'integer',
1217
+ format: 'int64',
1218
+ },
1219
+ propertyType: {
1220
+ type: 'string',
1221
+ enum: [
1222
+ 'HOUSE',
1223
+ 'TOWN_HOUSE',
1224
+ 'COUNTRY_HOUSE',
1225
+ 'VILLA',
1226
+ 'COTTAGE',
1227
+ 'APARTMENT',
1228
+ 'DUPLEX',
1229
+ 'TRIPLEX',
1230
+ 'SEMI_BASEMENT',
1231
+ 'ATTIC',
1232
+ 'AGRICULTURAL_LAND',
1233
+ 'RESIDENTIAL_LAND',
1234
+ 'HOTEL_ROOM',
1235
+ 'MOTEL_ROOM',
1236
+ 'CO_LIVING_SPACE',
1237
+ 'OFFICE',
1238
+ 'COMMERCIAL_SPACE',
1239
+ 'CO_WORKING_SPACE',
1240
+ 'WAREHOUSE',
1241
+ 'GARAGE',
1242
+ ],
1243
+ },
1244
+ address: {
1245
+ $ref: '#/components/schemas/AddressRef',
1246
+ },
1247
+ photoUrls: {
1248
+ type: 'array',
1249
+ items: {
1250
+ $ref: '#/components/schemas/PhotoInternalRequest',
1251
+ },
1252
+ maxItems: 2147483647,
1253
+ minItems: 5,
1254
+ },
1255
+ spaces: {
1256
+ type: 'object',
1257
+ additionalProperties: {
1258
+ type: 'array',
1259
+ items: {
1260
+ type: 'number',
1261
+ format: 'double',
1262
+ },
1263
+ },
1264
+ description: 'Areas per space type. A null entry records a space whose area is unknown.',
1265
+ example: {
1266
+ BATHROOM: [5, 8],
1267
+ BEDROOM: [15.5, null, 22],
1268
+ LIVING_ROOM: [52.5],
1269
+ KITCHEN: [20.5],
1270
+ },
1271
+ },
1272
+ totalArea: {
1273
+ type: 'number',
1274
+ format: 'double',
1275
+ },
1276
+ livingArea: {
1277
+ type: 'number',
1278
+ format: 'double',
1279
+ },
1280
+ balconyArea: {
1281
+ type: 'number',
1282
+ format: 'double',
1283
+ },
1284
+ status: {
1285
+ type: 'string',
1286
+ enum: [
1287
+ 'OLD_BUILDING',
1288
+ 'NEW_BUILDING',
1289
+ 'UNDER_CONSTRUCTION',
1290
+ 'FINISHED',
1291
+ ],
1292
+ },
1293
+ condition: {
1294
+ type: 'string',
1295
+ enum: [
1296
+ 'NEWLY_RENOVATED',
1297
+ 'OLD_RENOVATED',
1298
+ 'CURRENT_RENOVATION',
1299
+ 'REPAIRING',
1300
+ 'WHITE_FRAME',
1301
+ 'BLACK_FRAME',
1302
+ 'GREEN_FRAME',
1303
+ 'WHITE_PLUS',
1304
+ ],
1305
+ },
1306
+ totalFloors: {
1307
+ type: 'integer',
1308
+ format: 'int32',
1309
+ },
1310
+ floorAt: {
1311
+ type: 'integer',
1312
+ format: 'int32',
1313
+ },
1314
+ amenities: {
1315
+ type: 'array',
1316
+ items: {
1317
+ type: 'integer',
1318
+ format: 'int32',
1319
+ },
1320
+ },
1321
+ title: {
1322
+ type: 'string',
1323
+ minLength: 1,
1324
+ },
1325
+ description: {
1326
+ type: 'object',
1327
+ additionalProperties: {
1328
+ type: 'string',
1329
+ },
1330
+ example: {
1331
+ ka: 'example ka',
1332
+ en: 'example en',
1333
+ ru: 'example ru',
1334
+ },
1335
+ minProperties: 1,
1336
+ },
1337
+ },
1338
+ required: [
1339
+ 'address',
1340
+ 'amenities',
1341
+ 'description',
1342
+ 'draftId',
1343
+ 'photoUrls',
1344
+ 'propertyType',
1345
+ 'spaces',
1346
+ 'title',
1347
+ 'totalArea',
1348
+ ],
1349
+ };
1350
+ export const SubmissionSchema = {
1351
+ type: 'object',
1352
+ properties: {
1353
+ property: {
1354
+ $ref: '#/components/schemas/PropertyCreationRequest',
1355
+ },
1356
+ offer: {
1357
+ $ref: '#/components/schemas/Offer',
1358
+ },
1359
+ },
1360
+ required: ['property'],
1361
+ };
1362
+ export const PhotosRequestSchema = {
1363
+ type: 'object',
1364
+ properties: {
1365
+ photos: {
1366
+ type: 'array',
1367
+ items: {
1368
+ $ref: '#/components/schemas/PhotoRequest',
1369
+ },
1370
+ maxItems: 30,
1371
+ minItems: 1,
1372
+ },
1373
+ },
1374
+ required: ['photos'],
1375
+ };
1100
1376
  export const ContactInfoRequestSchema = {
1101
1377
  type: 'object',
1102
1378
  properties: {
@@ -4191,6 +4467,200 @@ export const RoleResponseSchema = {
4191
4467
  },
4192
4468
  required: ['description', 'id', 'name', 'permissions'],
4193
4469
  };
4470
+ export const FormSchema = {
4471
+ type: 'object',
4472
+ properties: {
4473
+ id: {
4474
+ type: 'string',
4475
+ format: 'uuid',
4476
+ },
4477
+ state: {
4478
+ type: 'string',
4479
+ enum: ['OPEN', 'SENT', 'REPLACED', 'EXPIRED'],
4480
+ },
4481
+ expiresAt: {
4482
+ type: 'string',
4483
+ format: 'date-time',
4484
+ },
4485
+ prefill: {
4486
+ $ref: '#/components/schemas/Prefill',
4487
+ },
4488
+ },
4489
+ };
4490
+ export const LocationSummarySchema = {
4491
+ type: 'object',
4492
+ properties: {
4493
+ id: {
4494
+ type: 'integer',
4495
+ format: 'int64',
4496
+ },
4497
+ parentId: {
4498
+ type: 'integer',
4499
+ format: 'int64',
4500
+ },
4501
+ type: {
4502
+ type: 'string',
4503
+ enum: ['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET'],
4504
+ },
4505
+ names: {
4506
+ type: 'object',
4507
+ additionalProperties: {
4508
+ type: 'string',
4509
+ },
4510
+ },
4511
+ fullNames: {
4512
+ type: 'object',
4513
+ additionalProperties: {
4514
+ type: 'string',
4515
+ },
4516
+ },
4517
+ viewport: {
4518
+ $ref: '#/components/schemas/Viewport',
4519
+ },
4520
+ },
4521
+ required: ['fullNames', 'id', 'names', 'type', 'viewport'],
4522
+ };
4523
+ export const OwnerSchema = {
4524
+ type: 'object',
4525
+ properties: {
4526
+ id: {
4527
+ type: 'integer',
4528
+ format: 'int64',
4529
+ },
4530
+ name: {
4531
+ type: 'string',
4532
+ },
4533
+ phone: {
4534
+ type: 'string',
4535
+ },
4536
+ },
4537
+ };
4538
+ export const PrefillSchema = {
4539
+ type: 'object',
4540
+ properties: {
4541
+ owner: {
4542
+ $ref: '#/components/schemas/Owner',
4543
+ },
4544
+ propertyType: {
4545
+ type: 'string',
4546
+ enum: [
4547
+ 'HOUSE',
4548
+ 'TOWN_HOUSE',
4549
+ 'COUNTRY_HOUSE',
4550
+ 'VILLA',
4551
+ 'COTTAGE',
4552
+ 'APARTMENT',
4553
+ 'DUPLEX',
4554
+ 'TRIPLEX',
4555
+ 'SEMI_BASEMENT',
4556
+ 'ATTIC',
4557
+ 'AGRICULTURAL_LAND',
4558
+ 'RESIDENTIAL_LAND',
4559
+ 'HOTEL_ROOM',
4560
+ 'MOTEL_ROOM',
4561
+ 'CO_LIVING_SPACE',
4562
+ 'OFFICE',
4563
+ 'COMMERCIAL_SPACE',
4564
+ 'CO_WORKING_SPACE',
4565
+ 'WAREHOUSE',
4566
+ 'GARAGE',
4567
+ ],
4568
+ },
4569
+ place: {
4570
+ $ref: '#/components/schemas/LocationSummary',
4571
+ },
4572
+ spaces: {
4573
+ type: 'object',
4574
+ additionalProperties: {
4575
+ type: 'array',
4576
+ items: {
4577
+ type: 'number',
4578
+ format: 'double',
4579
+ },
4580
+ },
4581
+ },
4582
+ totalArea: {
4583
+ type: 'number',
4584
+ format: 'double',
4585
+ },
4586
+ livingArea: {
4587
+ type: 'number',
4588
+ format: 'double',
4589
+ },
4590
+ balconyArea: {
4591
+ type: 'number',
4592
+ format: 'double',
4593
+ },
4594
+ status: {
4595
+ type: 'string',
4596
+ enum: [
4597
+ 'OLD_BUILDING',
4598
+ 'NEW_BUILDING',
4599
+ 'UNDER_CONSTRUCTION',
4600
+ 'FINISHED',
4601
+ ],
4602
+ },
4603
+ condition: {
4604
+ type: 'string',
4605
+ enum: [
4606
+ 'NEWLY_RENOVATED',
4607
+ 'OLD_RENOVATED',
4608
+ 'CURRENT_RENOVATION',
4609
+ 'REPAIRING',
4610
+ 'WHITE_FRAME',
4611
+ 'BLACK_FRAME',
4612
+ 'GREEN_FRAME',
4613
+ 'WHITE_PLUS',
4614
+ ],
4615
+ },
4616
+ totalFloors: {
4617
+ type: 'integer',
4618
+ format: 'int32',
4619
+ },
4620
+ floorAt: {
4621
+ type: 'integer',
4622
+ format: 'int32',
4623
+ },
4624
+ amenities: {
4625
+ type: 'array',
4626
+ items: {
4627
+ type: 'integer',
4628
+ format: 'int32',
4629
+ },
4630
+ },
4631
+ title: {
4632
+ type: 'string',
4633
+ },
4634
+ description: {
4635
+ type: 'string',
4636
+ },
4637
+ offer: {
4638
+ $ref: '#/components/schemas/Offer',
4639
+ },
4640
+ },
4641
+ };
4642
+ export const ViewportSchema = {
4643
+ type: 'object',
4644
+ properties: {
4645
+ south: {
4646
+ type: 'number',
4647
+ format: 'double',
4648
+ },
4649
+ west: {
4650
+ type: 'number',
4651
+ format: 'double',
4652
+ },
4653
+ north: {
4654
+ type: 'number',
4655
+ format: 'double',
4656
+ },
4657
+ east: {
4658
+ type: 'number',
4659
+ format: 'double',
4660
+ },
4661
+ },
4662
+ required: ['east', 'north', 'south', 'west'],
4663
+ };
4194
4664
  export const AddressResponseSchema = {
4195
4665
  type: 'object',
4196
4666
  properties: {