@homespot-sdk/core 0.0.126 → 0.0.127

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 (78) hide show
  1. package/dist/property/client/client.gen.d.ts +3 -0
  2. package/dist/property/client/client.gen.d.ts.map +1 -0
  3. package/dist/property/client/client.gen.js +207 -0
  4. package/dist/property/client/client.gen.js.map +1 -0
  5. package/dist/property/client/index.d.ts +9 -0
  6. package/dist/property/client/index.d.ts.map +1 -0
  7. package/dist/property/client/index.js +7 -0
  8. package/dist/property/client/index.js.map +1 -0
  9. package/dist/property/client/types.gen.d.ts +100 -0
  10. package/dist/property/client/types.gen.d.ts.map +1 -0
  11. package/dist/property/client/types.gen.js +3 -0
  12. package/dist/property/client/types.gen.js.map +1 -0
  13. package/dist/property/client/utils.gen.d.ts +41 -0
  14. package/dist/property/client/utils.gen.d.ts.map +1 -0
  15. package/dist/property/client/utils.gen.js +303 -0
  16. package/dist/property/client/utils.gen.js.map +1 -0
  17. package/dist/property/client.gen.d.ts +13 -0
  18. package/dist/property/client.gen.d.ts.map +1 -0
  19. package/dist/property/client.gen.js +7 -0
  20. package/dist/property/client.gen.js.map +1 -0
  21. package/dist/property/core/auth.gen.d.ts +19 -0
  22. package/dist/property/core/auth.gen.d.ts.map +1 -0
  23. package/dist/property/core/auth.gen.js +15 -0
  24. package/dist/property/core/auth.gen.js.map +1 -0
  25. package/dist/property/core/bodySerializer.gen.d.ts +26 -0
  26. package/dist/property/core/bodySerializer.gen.d.ts.map +1 -0
  27. package/dist/property/core/bodySerializer.gen.js +58 -0
  28. package/dist/property/core/bodySerializer.gen.js.map +1 -0
  29. package/dist/property/core/params.gen.d.ts +44 -0
  30. package/dist/property/core/params.gen.d.ts.map +1 -0
  31. package/dist/property/core/params.gen.js +102 -0
  32. package/dist/property/core/params.gen.js.map +1 -0
  33. package/dist/property/core/pathSerializer.gen.d.ts +34 -0
  34. package/dist/property/core/pathSerializer.gen.d.ts.map +1 -0
  35. package/dist/property/core/pathSerializer.gen.js +119 -0
  36. package/dist/property/core/pathSerializer.gen.js.map +1 -0
  37. package/dist/property/core/queryKeySerializer.gen.d.ts +19 -0
  38. package/dist/property/core/queryKeySerializer.gen.d.ts.map +1 -0
  39. package/dist/property/core/queryKeySerializer.gen.js +100 -0
  40. package/dist/property/core/queryKeySerializer.gen.js.map +1 -0
  41. package/dist/property/core/serverSentEvents.gen.d.ts +72 -0
  42. package/dist/property/core/serverSentEvents.gen.d.ts.map +1 -0
  43. package/dist/property/core/serverSentEvents.gen.js +140 -0
  44. package/dist/property/core/serverSentEvents.gen.js.map +1 -0
  45. package/dist/property/core/types.gen.d.ts +79 -0
  46. package/dist/property/core/types.gen.d.ts.map +1 -0
  47. package/dist/property/core/types.gen.js +3 -0
  48. package/dist/property/core/types.gen.js.map +1 -0
  49. package/dist/property/core/utils.gen.d.ts +20 -0
  50. package/dist/property/core/utils.gen.d.ts.map +1 -0
  51. package/dist/property/core/utils.gen.js +89 -0
  52. package/dist/property/core/utils.gen.js.map +1 -0
  53. package/dist/property/index.d.ts +3 -0
  54. package/dist/property/index.d.ts.map +1 -0
  55. package/dist/property/index.js +3 -0
  56. package/dist/property/index.js.map +1 -0
  57. package/dist/property/schemas.gen.d.ts +1008 -0
  58. package/dist/property/schemas.gen.d.ts.map +1 -0
  59. package/dist/property/schemas.gen.js +1136 -0
  60. package/dist/property/schemas.gen.js.map +1 -0
  61. package/dist/property/sdk.gen.d.ts +53 -0
  62. package/dist/property/sdk.gen.d.ts.map +1 -0
  63. package/dist/property/sdk.gen.js +263 -0
  64. package/dist/property/sdk.gen.js.map +1 -0
  65. package/dist/property/transformers.gen.d.ts +4 -0
  66. package/dist/property/transformers.gen.d.ts.map +1 -0
  67. package/dist/property/transformers.gen.js +24 -0
  68. package/dist/property/transformers.gen.js.map +1 -0
  69. package/dist/property/types.gen.d.ts +832 -0
  70. package/dist/property/types.gen.d.ts.map +1 -0
  71. package/dist/property/types.gen.js +3 -0
  72. package/dist/property/types.gen.js.map +1 -0
  73. package/dist/property/zod.gen.d.ts +2055 -0
  74. package/dist/property/zod.gen.d.ts.map +1 -0
  75. package/dist/property/zod.gen.js +1041 -0
  76. package/dist/property/zod.gen.js.map +1 -0
  77. package/dist/rem/zod.gen.d.ts +15 -15
  78. package/package.json +4 -8
@@ -0,0 +1,1136 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export const MultiLangTextRequestSchema = {
3
+ type: 'object',
4
+ properties: {
5
+ data: {
6
+ type: 'array',
7
+ items: {
8
+ $ref: '#/components/schemas/TextRequest',
9
+ },
10
+ maxItems: 3,
11
+ minItems: 1,
12
+ },
13
+ },
14
+ required: ['data'],
15
+ };
16
+ export const TextRequestSchema = {
17
+ type: 'object',
18
+ properties: {
19
+ language: {
20
+ $ref: '#/components/schemas/LanguageEnum',
21
+ },
22
+ text: {
23
+ type: 'string',
24
+ },
25
+ },
26
+ required: ['language'],
27
+ };
28
+ export const AreaRequestSchema = {
29
+ type: 'object',
30
+ properties: {
31
+ area: {
32
+ type: 'number',
33
+ format: 'double',
34
+ },
35
+ },
36
+ required: ['area'],
37
+ };
38
+ export const AmenitiesRequestSchema = {
39
+ type: 'object',
40
+ properties: {
41
+ amenities: {
42
+ type: 'array',
43
+ items: {
44
+ type: 'integer',
45
+ format: 'int32',
46
+ },
47
+ },
48
+ },
49
+ };
50
+ export const PhotoIdsRequestSchema = {
51
+ type: 'object',
52
+ properties: {
53
+ photoIds: {
54
+ type: 'array',
55
+ items: {
56
+ type: 'integer',
57
+ format: 'int64',
58
+ },
59
+ maxItems: 30,
60
+ minItems: 1,
61
+ },
62
+ },
63
+ required: ['photoIds'],
64
+ };
65
+ export const PhotoRequestSchema = {
66
+ type: 'object',
67
+ properties: {
68
+ photo: {
69
+ type: 'string',
70
+ maxLength: 255,
71
+ minLength: 0,
72
+ },
73
+ type: {
74
+ $ref: '#/components/schemas/TypeEnum',
75
+ },
76
+ width: {
77
+ type: 'integer',
78
+ format: 'int32',
79
+ maximum: 11000,
80
+ minimum: 10,
81
+ },
82
+ height: {
83
+ type: 'integer',
84
+ format: 'int32',
85
+ maximum: 11000,
86
+ minimum: 10,
87
+ },
88
+ },
89
+ required: ['photo', 'type', 'width'],
90
+ };
91
+ export const PhotosRequestSchema = {
92
+ type: 'object',
93
+ properties: {
94
+ photos: {
95
+ type: 'array',
96
+ items: {
97
+ $ref: '#/components/schemas/PhotoRequest',
98
+ },
99
+ maxItems: 30,
100
+ minItems: 1,
101
+ },
102
+ },
103
+ required: ['photos'],
104
+ };
105
+ export const PresignedUrlResponseSchema = {
106
+ type: 'object',
107
+ properties: {
108
+ originalName: {
109
+ type: 'string',
110
+ },
111
+ key: {
112
+ type: 'string',
113
+ },
114
+ url: {
115
+ type: 'string',
116
+ },
117
+ },
118
+ required: ['key', 'originalName', 'url'],
119
+ };
120
+ export const PresignedUrlsResponseSchema = {
121
+ type: 'object',
122
+ properties: {
123
+ data: {
124
+ type: 'array',
125
+ items: {
126
+ $ref: '#/components/schemas/PresignedUrlResponse',
127
+ },
128
+ },
129
+ },
130
+ required: ['data'],
131
+ };
132
+ export const TitleRequestSchema = {
133
+ type: 'object',
134
+ properties: {
135
+ title: {
136
+ type: 'string',
137
+ minLength: 1,
138
+ },
139
+ },
140
+ required: ['title'],
141
+ };
142
+ export const MeasurementRequestSchema = {
143
+ type: 'object',
144
+ properties: {
145
+ totalArea: {
146
+ type: 'number',
147
+ format: 'double',
148
+ minimum: 1,
149
+ },
150
+ livingArea: {
151
+ type: 'number',
152
+ format: 'double',
153
+ },
154
+ balconyArea: {
155
+ type: 'number',
156
+ format: 'double',
157
+ },
158
+ },
159
+ required: ['totalArea'],
160
+ };
161
+ export const AddressRefRequestSchema = {
162
+ type: 'object',
163
+ properties: {
164
+ regionId: {
165
+ type: 'integer',
166
+ format: 'int64',
167
+ },
168
+ districtId: {
169
+ type: 'integer',
170
+ format: 'int64',
171
+ },
172
+ subdistrictId: {
173
+ type: 'integer',
174
+ format: 'int64',
175
+ },
176
+ streetId: {
177
+ type: 'integer',
178
+ format: 'int64',
179
+ },
180
+ cadastreCode: {
181
+ type: 'string',
182
+ },
183
+ coordinates: {
184
+ $ref: '#/components/schemas/CoordinatesRequest',
185
+ },
186
+ },
187
+ required: ['coordinates'],
188
+ };
189
+ export const CoordinatesRequestSchema = {
190
+ type: 'object',
191
+ properties: {
192
+ lat: {
193
+ type: 'number',
194
+ format: 'double',
195
+ maximum: 90,
196
+ minimum: -90,
197
+ },
198
+ lng: {
199
+ type: 'number',
200
+ format: 'double',
201
+ maximum: 90,
202
+ minimum: -90,
203
+ },
204
+ },
205
+ required: ['lat', 'lng'],
206
+ };
207
+ export const PriceRequestSchema = {
208
+ type: 'object',
209
+ properties: {
210
+ price: {
211
+ type: 'number',
212
+ },
213
+ },
214
+ required: ['price'],
215
+ };
216
+ export const SpaceRequestSchema = {
217
+ type: 'object',
218
+ properties: {
219
+ type: {
220
+ $ref: '#/components/schemas/SchemaEnum4',
221
+ },
222
+ area: {
223
+ type: 'number',
224
+ format: 'double',
225
+ },
226
+ },
227
+ required: ['area', 'type'],
228
+ };
229
+ export const SpacesRequestSchema = {
230
+ type: 'object',
231
+ properties: {
232
+ spaces: {
233
+ type: 'array',
234
+ items: {
235
+ $ref: '#/components/schemas/SpaceRequest',
236
+ },
237
+ },
238
+ },
239
+ required: ['spaces'],
240
+ };
241
+ export const UploadAcknowledgmentResponseSchema = {
242
+ type: 'object',
243
+ properties: {
244
+ success: {
245
+ type: 'array',
246
+ items: {
247
+ type: 'string',
248
+ },
249
+ },
250
+ fail: {
251
+ type: 'array',
252
+ items: {
253
+ type: 'string',
254
+ },
255
+ },
256
+ },
257
+ required: ['fail', 'success'],
258
+ };
259
+ export const CreateListingRequestSchema = {
260
+ type: 'object',
261
+ properties: {
262
+ propertyId: {
263
+ type: 'string',
264
+ format: 'uuid',
265
+ },
266
+ listingType: {
267
+ $ref: '#/components/schemas/SchemaEnum2',
268
+ },
269
+ price: {
270
+ type: 'number',
271
+ },
272
+ },
273
+ required: ['listingType', 'price', 'propertyId'],
274
+ };
275
+ export const IdResponseUUIDSchema = {
276
+ type: 'object',
277
+ properties: {
278
+ id: {
279
+ type: 'string',
280
+ format: 'uuid',
281
+ },
282
+ },
283
+ required: ['id'],
284
+ };
285
+ export const AddressRefSchema = {
286
+ type: 'object',
287
+ properties: {
288
+ regionId: {
289
+ type: 'integer',
290
+ format: 'int64',
291
+ },
292
+ districtId: {
293
+ type: 'integer',
294
+ format: 'int64',
295
+ },
296
+ subdistrictId: {
297
+ type: 'integer',
298
+ format: 'int64',
299
+ },
300
+ streetId: {
301
+ type: 'integer',
302
+ format: 'int64',
303
+ },
304
+ cadastreCode: {
305
+ type: 'string',
306
+ },
307
+ coordinates: {
308
+ $ref: '#/components/schemas/Coordinates',
309
+ },
310
+ },
311
+ };
312
+ export const CoordinatesSchema = {
313
+ type: 'object',
314
+ properties: {
315
+ lat: {
316
+ type: 'number',
317
+ format: 'double',
318
+ },
319
+ lng: {
320
+ type: 'number',
321
+ format: 'double',
322
+ },
323
+ },
324
+ };
325
+ export const PhotoInternalRequestSchema = {
326
+ type: 'object',
327
+ properties: {
328
+ photo: {
329
+ type: 'string',
330
+ maxLength: 255,
331
+ minLength: 0,
332
+ },
333
+ width: {
334
+ type: 'integer',
335
+ format: 'int32',
336
+ maximum: 11000,
337
+ minimum: 10,
338
+ },
339
+ height: {
340
+ type: 'integer',
341
+ format: 'int32',
342
+ maximum: 11000,
343
+ minimum: 10,
344
+ },
345
+ },
346
+ required: ['photo', 'width'],
347
+ };
348
+ export const PropertyCreationRequestSchema = {
349
+ type: 'object',
350
+ properties: {
351
+ draftId: {
352
+ type: 'string',
353
+ format: 'uuid',
354
+ },
355
+ clientId: {
356
+ type: 'integer',
357
+ format: 'int64',
358
+ },
359
+ propertyType: {
360
+ $ref: '#/components/schemas/SchemaEnum',
361
+ },
362
+ address: {
363
+ $ref: '#/components/schemas/AddressRef',
364
+ },
365
+ photoUrls: {
366
+ type: 'array',
367
+ items: {
368
+ $ref: '#/components/schemas/PhotoInternalRequest',
369
+ },
370
+ maxItems: 2147483647,
371
+ minItems: 5,
372
+ },
373
+ spaces: {
374
+ type: 'object',
375
+ additionalProperties: {
376
+ type: 'array',
377
+ items: {
378
+ type: 'number',
379
+ format: 'double',
380
+ },
381
+ },
382
+ },
383
+ totalArea: {
384
+ type: 'number',
385
+ format: 'double',
386
+ },
387
+ livingArea: {
388
+ type: 'number',
389
+ format: 'double',
390
+ },
391
+ balconyArea: {
392
+ type: 'number',
393
+ format: 'double',
394
+ },
395
+ amenities: {
396
+ type: 'array',
397
+ items: {
398
+ type: 'integer',
399
+ format: 'int32',
400
+ },
401
+ },
402
+ title: {
403
+ type: 'string',
404
+ minLength: 1,
405
+ },
406
+ description: {
407
+ type: 'object',
408
+ additionalProperties: {
409
+ type: 'string',
410
+ },
411
+ minProperties: 1,
412
+ },
413
+ },
414
+ required: [
415
+ 'address',
416
+ 'amenities',
417
+ 'description',
418
+ 'draftId',
419
+ 'photoUrls',
420
+ 'propertyType',
421
+ 'spaces',
422
+ 'title',
423
+ 'totalArea',
424
+ ],
425
+ };
426
+ export const AmenityValidationRequestSchema = {
427
+ type: 'object',
428
+ properties: {
429
+ amenityIds: {
430
+ type: 'array',
431
+ items: {
432
+ type: 'integer',
433
+ format: 'int32',
434
+ },
435
+ },
436
+ group: {
437
+ $ref: '#/components/schemas/SchemaEnum3',
438
+ },
439
+ },
440
+ };
441
+ export const AmenityValidationResponseSchema = {
442
+ type: 'object',
443
+ properties: {
444
+ valid: {
445
+ type: 'array',
446
+ items: {
447
+ type: 'integer',
448
+ format: 'int32',
449
+ },
450
+ },
451
+ },
452
+ required: ['valid'],
453
+ };
454
+ export const UserPropertyQuotaResponseSchema = {
455
+ type: 'object',
456
+ properties: {
457
+ limit: {
458
+ type: 'integer',
459
+ format: 'int32',
460
+ },
461
+ used: {
462
+ type: 'integer',
463
+ format: 'int32',
464
+ },
465
+ },
466
+ required: ['limit', 'used'],
467
+ };
468
+ export const PropertyCardViewResponseSchema = {
469
+ type: 'object',
470
+ properties: {
471
+ id: {
472
+ type: 'string',
473
+ format: 'uuid',
474
+ },
475
+ type: {
476
+ $ref: '#/components/schemas/SchemaEnum',
477
+ },
478
+ title: {
479
+ type: 'string',
480
+ },
481
+ districtId: {
482
+ type: 'integer',
483
+ format: 'int64',
484
+ },
485
+ streetId: {
486
+ type: 'integer',
487
+ format: 'int64',
488
+ },
489
+ coverPhoto: {
490
+ type: 'string',
491
+ },
492
+ uploadDate: {
493
+ type: 'string',
494
+ format: 'date-time',
495
+ },
496
+ },
497
+ required: [
498
+ 'coverPhoto',
499
+ 'districtId',
500
+ 'id',
501
+ 'streetId',
502
+ 'title',
503
+ 'type',
504
+ 'uploadDate',
505
+ ],
506
+ };
507
+ export const AmenityViewResponseSchema = {
508
+ type: 'object',
509
+ properties: {
510
+ id: {
511
+ type: 'integer',
512
+ format: 'int32',
513
+ },
514
+ category: {
515
+ $ref: '#/components/schemas/CategoryEnum',
516
+ },
517
+ name: {
518
+ type: 'array',
519
+ items: {
520
+ $ref: '#/components/schemas/LangTextResponse',
521
+ },
522
+ },
523
+ },
524
+ required: ['category', 'id', 'name'],
525
+ };
526
+ export const LangTextResponseSchema = {
527
+ type: 'object',
528
+ properties: {
529
+ language: {
530
+ $ref: '#/components/schemas/LanguageEnum',
531
+ },
532
+ text: {
533
+ type: 'string',
534
+ },
535
+ },
536
+ required: ['language', 'text'],
537
+ };
538
+ export const PhotoResponseSchema = {
539
+ type: 'object',
540
+ properties: {
541
+ id: {
542
+ type: 'integer',
543
+ format: 'int64',
544
+ },
545
+ key: {
546
+ type: 'string',
547
+ },
548
+ url: {
549
+ type: 'string',
550
+ },
551
+ width: {
552
+ type: 'integer',
553
+ format: 'int32',
554
+ },
555
+ height: {
556
+ type: 'integer',
557
+ format: 'int32',
558
+ },
559
+ },
560
+ required: ['height', 'id', 'key', 'url', 'width'],
561
+ };
562
+ export const SpaceViewResponseSchema = {
563
+ type: 'object',
564
+ properties: {
565
+ spaceId: {
566
+ type: 'string',
567
+ format: 'uuid',
568
+ },
569
+ name: {
570
+ type: 'string',
571
+ },
572
+ type: {
573
+ $ref: '#/components/schemas/TypeEnum2',
574
+ },
575
+ area: {
576
+ type: 'number',
577
+ format: 'double',
578
+ },
579
+ photos: {
580
+ type: 'array',
581
+ items: {
582
+ $ref: '#/components/schemas/PhotoResponse',
583
+ },
584
+ },
585
+ amenities: {
586
+ type: 'array',
587
+ items: {
588
+ $ref: '#/components/schemas/AmenityViewResponse',
589
+ },
590
+ uniqueItems: true,
591
+ },
592
+ description: {
593
+ type: 'array',
594
+ items: {
595
+ $ref: '#/components/schemas/LangTextResponse',
596
+ },
597
+ },
598
+ },
599
+ required: ['amenities', 'description', 'name', 'photos', 'type'],
600
+ };
601
+ export const SpaceEditorViewResponseSchema = {
602
+ type: 'object',
603
+ properties: {
604
+ id: {
605
+ type: 'string',
606
+ format: 'uuid',
607
+ },
608
+ type: {
609
+ $ref: '#/components/schemas/TypeEnum2',
610
+ },
611
+ name: {
612
+ type: 'string',
613
+ },
614
+ area: {
615
+ type: 'number',
616
+ format: 'double',
617
+ },
618
+ coverImage: {
619
+ type: 'string',
620
+ },
621
+ imageCount: {
622
+ type: 'integer',
623
+ format: 'int32',
624
+ },
625
+ },
626
+ required: ['imageCount', 'name', 'type'],
627
+ };
628
+ export const SpacesEditorViewResponseSchema = {
629
+ type: 'object',
630
+ properties: {
631
+ spaces: {
632
+ type: 'array',
633
+ items: {
634
+ $ref: '#/components/schemas/SpaceEditorViewResponse',
635
+ },
636
+ },
637
+ wasGrouped: {
638
+ type: 'boolean',
639
+ },
640
+ },
641
+ required: ['spaces', 'wasGrouped'],
642
+ };
643
+ export const AddressResponseSchema = {
644
+ type: 'object',
645
+ properties: {
646
+ regionId: {
647
+ type: 'integer',
648
+ format: 'int64',
649
+ },
650
+ districtId: {
651
+ type: 'integer',
652
+ format: 'int64',
653
+ },
654
+ subdistrictId: {
655
+ type: 'integer',
656
+ format: 'int64',
657
+ },
658
+ streetId: {
659
+ type: 'integer',
660
+ format: 'int64',
661
+ },
662
+ cadastreCode: {
663
+ type: 'string',
664
+ },
665
+ lat: {
666
+ type: 'number',
667
+ format: 'double',
668
+ },
669
+ lng: {
670
+ type: 'number',
671
+ format: 'double',
672
+ },
673
+ },
674
+ required: [
675
+ 'districtId',
676
+ 'lat',
677
+ 'lng',
678
+ 'regionId',
679
+ 'streetId',
680
+ 'subdistrictId',
681
+ ],
682
+ };
683
+ export const MeasurementResponseSchema = {
684
+ type: 'object',
685
+ properties: {
686
+ totalArea: {
687
+ type: 'number',
688
+ format: 'double',
689
+ },
690
+ livingArea: {
691
+ type: 'number',
692
+ format: 'double',
693
+ },
694
+ balconyArea: {
695
+ type: 'number',
696
+ format: 'double',
697
+ },
698
+ },
699
+ required: ['totalArea'],
700
+ };
701
+ export const PropertyEditorViewResponseSchema = {
702
+ type: 'object',
703
+ properties: {
704
+ type: {
705
+ $ref: '#/components/schemas/SchemaEnum',
706
+ },
707
+ measurement: {
708
+ $ref: '#/components/schemas/MeasurementResponse',
709
+ },
710
+ address: {
711
+ $ref: '#/components/schemas/AddressResponse',
712
+ },
713
+ description: {
714
+ type: 'array',
715
+ items: {
716
+ $ref: '#/components/schemas/LangTextResponse',
717
+ },
718
+ },
719
+ amenities: {
720
+ type: 'array',
721
+ items: {
722
+ $ref: '#/components/schemas/AmenityViewResponse',
723
+ },
724
+ },
725
+ spaces: {
726
+ type: 'array',
727
+ items: {
728
+ $ref: '#/components/schemas/PropertySpaceViewResponse',
729
+ },
730
+ },
731
+ },
732
+ required: [
733
+ 'address',
734
+ 'amenities',
735
+ 'description',
736
+ 'measurement',
737
+ 'spaces',
738
+ 'type',
739
+ ],
740
+ };
741
+ export const PropertySpaceViewResponseSchema = {
742
+ type: 'object',
743
+ properties: {
744
+ spaceId: {
745
+ type: 'string',
746
+ format: 'uuid',
747
+ },
748
+ type: {
749
+ $ref: '#/components/schemas/TypeEnum2',
750
+ },
751
+ name: {
752
+ type: 'string',
753
+ },
754
+ area: {
755
+ type: 'number',
756
+ format: 'double',
757
+ },
758
+ coverPhoto: {
759
+ type: 'string',
760
+ },
761
+ photoCount: {
762
+ type: 'integer',
763
+ format: 'int32',
764
+ },
765
+ },
766
+ required: ['name', 'photoCount', 'type'],
767
+ };
768
+ export const ListedByResponseSchema = {
769
+ type: 'object',
770
+ properties: {
771
+ type: {
772
+ type: 'string',
773
+ },
774
+ ownerId: {
775
+ type: 'string',
776
+ },
777
+ agencyId: {
778
+ type: 'string',
779
+ format: 'uuid',
780
+ },
781
+ agentId: {
782
+ type: 'string',
783
+ format: 'uuid',
784
+ },
785
+ },
786
+ required: ['type'],
787
+ };
788
+ export const ListingDetailResponseSchema = {
789
+ type: 'object',
790
+ properties: {
791
+ listingId: {
792
+ type: 'string',
793
+ format: 'uuid',
794
+ },
795
+ propertyId: {
796
+ type: 'string',
797
+ format: 'uuid',
798
+ },
799
+ listingType: {
800
+ $ref: '#/components/schemas/SchemaEnum2',
801
+ },
802
+ status: {
803
+ $ref: '#/components/schemas/StatusEnum',
804
+ },
805
+ price: {
806
+ type: 'number',
807
+ },
808
+ propertyType: {
809
+ $ref: '#/components/schemas/SchemaEnum',
810
+ },
811
+ title: {
812
+ type: 'array',
813
+ items: {
814
+ $ref: '#/components/schemas/LangTextResponse',
815
+ },
816
+ },
817
+ country: {
818
+ type: 'string',
819
+ },
820
+ city: {
821
+ type: 'string',
822
+ },
823
+ district: {
824
+ type: 'string',
825
+ },
826
+ fullAddressName: {
827
+ type: 'string',
828
+ },
829
+ lat: {
830
+ type: 'number',
831
+ format: 'double',
832
+ },
833
+ lng: {
834
+ type: 'number',
835
+ format: 'double',
836
+ },
837
+ totalArea: {
838
+ type: 'number',
839
+ format: 'double',
840
+ },
841
+ livingArea: {
842
+ type: 'number',
843
+ format: 'double',
844
+ },
845
+ balconyArea: {
846
+ type: 'number',
847
+ format: 'double',
848
+ },
849
+ bedroomCount: {
850
+ type: 'integer',
851
+ format: 'int32',
852
+ },
853
+ bathroomCount: {
854
+ type: 'integer',
855
+ format: 'int32',
856
+ },
857
+ photoCount: {
858
+ type: 'integer',
859
+ format: 'int32',
860
+ },
861
+ coverPhotoUrl: {
862
+ type: 'string',
863
+ },
864
+ listedBy: {
865
+ $ref: '#/components/schemas/ListedByResponse',
866
+ },
867
+ createdAt: {
868
+ type: 'string',
869
+ format: 'date-time',
870
+ },
871
+ publishedAt: {
872
+ type: 'string',
873
+ format: 'date-time',
874
+ },
875
+ expiresAt: {
876
+ type: 'string',
877
+ format: 'date-time',
878
+ },
879
+ },
880
+ required: [
881
+ 'bathroomCount',
882
+ 'bedroomCount',
883
+ 'city',
884
+ 'country',
885
+ 'createdAt',
886
+ 'district',
887
+ 'fullAddressName',
888
+ 'lat',
889
+ 'listedBy',
890
+ 'listingId',
891
+ 'listingType',
892
+ 'lng',
893
+ 'photoCount',
894
+ 'price',
895
+ 'propertyId',
896
+ 'propertyType',
897
+ 'status',
898
+ 'title',
899
+ 'totalArea',
900
+ ],
901
+ };
902
+ export const ListingCardResponseSchema = {
903
+ type: 'object',
904
+ properties: {
905
+ listingId: {
906
+ type: 'string',
907
+ format: 'uuid',
908
+ },
909
+ propertyId: {
910
+ type: 'string',
911
+ format: 'uuid',
912
+ },
913
+ listingType: {
914
+ $ref: '#/components/schemas/SchemaEnum2',
915
+ },
916
+ propertyType: {
917
+ $ref: '#/components/schemas/SchemaEnum',
918
+ },
919
+ title: {
920
+ type: 'array',
921
+ items: {
922
+ $ref: '#/components/schemas/LangTextResponse',
923
+ },
924
+ },
925
+ city: {
926
+ type: 'string',
927
+ },
928
+ bedroomCount: {
929
+ type: 'integer',
930
+ format: 'int32',
931
+ },
932
+ bathroomCount: {
933
+ type: 'integer',
934
+ format: 'int32',
935
+ },
936
+ totalArea: {
937
+ type: 'number',
938
+ format: 'double',
939
+ },
940
+ price: {
941
+ type: 'number',
942
+ },
943
+ coverPhotoUrl: {
944
+ type: 'string',
945
+ },
946
+ status: {
947
+ $ref: '#/components/schemas/StatusEnum',
948
+ },
949
+ },
950
+ required: [
951
+ 'bathroomCount',
952
+ 'bedroomCount',
953
+ 'city',
954
+ 'listingId',
955
+ 'listingType',
956
+ 'price',
957
+ 'propertyId',
958
+ 'propertyType',
959
+ 'status',
960
+ 'title',
961
+ 'totalArea',
962
+ ],
963
+ };
964
+ export const ListingSearchResponseSchema = {
965
+ type: 'object',
966
+ properties: {
967
+ listings: {
968
+ type: 'array',
969
+ items: {
970
+ $ref: '#/components/schemas/ListingCardResponse',
971
+ },
972
+ },
973
+ total: {
974
+ type: 'integer',
975
+ format: 'int64',
976
+ },
977
+ page: {
978
+ type: 'integer',
979
+ format: 'int32',
980
+ },
981
+ size: {
982
+ type: 'integer',
983
+ format: 'int32',
984
+ },
985
+ },
986
+ required: ['listings', 'page', 'size', 'total'],
987
+ };
988
+ export const AmenityCatalogDtoSchema = {
989
+ type: 'object',
990
+ properties: {
991
+ id: {
992
+ type: 'integer',
993
+ format: 'int32',
994
+ },
995
+ category: {
996
+ $ref: '#/components/schemas/CategoryEnum',
997
+ },
998
+ name: {
999
+ type: 'array',
1000
+ items: {
1001
+ $ref: '#/components/schemas/LangTextResponse',
1002
+ },
1003
+ },
1004
+ },
1005
+ required: ['category', 'id', 'name'],
1006
+ };
1007
+ export const GroupedAmenitySchema = {
1008
+ type: 'object',
1009
+ properties: {
1010
+ propertyGroup: {
1011
+ $ref: '#/components/schemas/SchemaEnum3',
1012
+ },
1013
+ spaceType: {
1014
+ $ref: '#/components/schemas/SchemaEnum4',
1015
+ },
1016
+ amenities: {
1017
+ type: 'array',
1018
+ items: {
1019
+ $ref: '#/components/schemas/AmenityCatalogDto',
1020
+ },
1021
+ },
1022
+ },
1023
+ required: ['amenities'],
1024
+ };
1025
+ export const HomespotAmenitiesSchema = {
1026
+ type: 'object',
1027
+ properties: {
1028
+ data: {
1029
+ type: 'array',
1030
+ items: {
1031
+ $ref: '#/components/schemas/GroupedAmenity',
1032
+ },
1033
+ },
1034
+ },
1035
+ required: ['data'],
1036
+ };
1037
+ export const SchemaEnumSchema = {
1038
+ type: 'string',
1039
+ enum: [
1040
+ 'HOUSE',
1041
+ 'TOWN_HOUSE',
1042
+ 'COUNTRY_HOUSE',
1043
+ 'VILLA',
1044
+ 'COTTAGE',
1045
+ 'APARTMENT',
1046
+ 'DUPLEX',
1047
+ 'TRIPLEX',
1048
+ 'SEMI_BASEMENT',
1049
+ 'ATTIC',
1050
+ 'AGRICULTURAL_LAND',
1051
+ 'RESIDENTIAL_LAND',
1052
+ 'HOTEL_ROOM',
1053
+ 'MOTEL_ROOM',
1054
+ 'CO_LIVING_SPACE',
1055
+ 'OFFICE',
1056
+ 'COMMERCIAL_SPACE',
1057
+ 'CO_WORKING_SPACE',
1058
+ 'WAREHOUSE',
1059
+ 'GARAGE',
1060
+ ],
1061
+ };
1062
+ export const SchemaEnum2Schema = {
1063
+ type: 'string',
1064
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
1065
+ };
1066
+ export const SchemaEnum3Schema = {
1067
+ type: 'string',
1068
+ enum: [
1069
+ 'HOUSE_GROUP',
1070
+ 'APARTMENT_GROUP',
1071
+ 'HOSPITALITY_GROUP',
1072
+ 'LAND_GROUP',
1073
+ 'BUSINESS_GROUP',
1074
+ 'STORAGE_GROUP',
1075
+ ],
1076
+ };
1077
+ export const SchemaEnum4Schema = {
1078
+ type: 'string',
1079
+ enum: [
1080
+ 'BEDROOM',
1081
+ 'BATHROOM',
1082
+ 'KITCHEN',
1083
+ 'LIVING_ROOM',
1084
+ 'GARAGE',
1085
+ 'BACKYARD',
1086
+ 'GYM',
1087
+ 'LAUNDRY',
1088
+ 'HOME_THEATRE',
1089
+ 'GAME_ROOM',
1090
+ ],
1091
+ };
1092
+ export const LanguageEnumSchema = {
1093
+ type: 'string',
1094
+ enum: ['ka', 'en', 'ru'],
1095
+ };
1096
+ export const TypeEnumSchema = {
1097
+ type: 'string',
1098
+ enum: ['JPEG', 'JPG', 'PNG', 'WEBP'],
1099
+ };
1100
+ export const CategoryEnumSchema = {
1101
+ type: 'string',
1102
+ enum: [
1103
+ 'CLIMATE_CONTROL',
1104
+ 'ENTERTAINMENT',
1105
+ 'OUTDOOR',
1106
+ 'KITCHEN_APPLIANCES',
1107
+ 'BATHROOM_APPLIANCES',
1108
+ 'UTILITIES',
1109
+ 'BUILDING',
1110
+ 'LOCATION_FEATURES',
1111
+ 'PARKING',
1112
+ 'SECURITY',
1113
+ ],
1114
+ };
1115
+ export const TypeEnum2Schema = {
1116
+ type: 'string',
1117
+ enum: [
1118
+ 'BEDROOM',
1119
+ 'BATHROOM',
1120
+ 'KITCHEN',
1121
+ 'LIVING_ROOM',
1122
+ 'GARAGE',
1123
+ 'BACKYARD',
1124
+ 'GYM',
1125
+ 'LAUNDRY',
1126
+ 'HOME_THEATRE',
1127
+ 'GAME_ROOM',
1128
+ 'UNCLASSIFIED',
1129
+ 'OTHER',
1130
+ ],
1131
+ };
1132
+ export const StatusEnumSchema = {
1133
+ type: 'string',
1134
+ enum: ['ACTIVE', 'PAUSED', 'EXPIRED'],
1135
+ };
1136
+ //# sourceMappingURL=schemas.gen.js.map