@homespot-sdk/core 0.0.211 → 0.0.213
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/schemas.gen.d.ts +233 -233
- package/dist/property/schemas.gen.d.ts.map +1 -1
- package/dist/property/schemas.gen.js +280 -280
- package/dist/property/schemas.gen.js.map +1 -1
- package/dist/property/sdk.gen.d.ts +3 -2
- package/dist/property/sdk.gen.d.ts.map +1 -1
- package/dist/property/sdk.gen.js +16 -7
- package/dist/property/sdk.gen.js.map +1 -1
- package/dist/property/transformers.gen.d.ts +2 -2
- package/dist/property/transformers.gen.d.ts.map +1 -1
- package/dist/property/transformers.gen.js +9 -9
- package/dist/property/transformers.gen.js.map +1 -1
- package/dist/property/types.gen.d.ts +103 -91
- package/dist/property/types.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.d.ts +604 -551
- package/dist/property/zod.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.js +128 -123
- 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 +151 -162
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +151 -172
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +4 -3
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +11 -6
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +93 -81
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +449 -229
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +89 -81
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
|
@@ -284,32 +284,6 @@ export const UploadAcknowledgmentResponseSchema = {
|
|
|
284
284
|
},
|
|
285
285
|
required: ['fail', 'success'],
|
|
286
286
|
};
|
|
287
|
-
export const CreateListingRequestSchema = {
|
|
288
|
-
type: 'object',
|
|
289
|
-
properties: {
|
|
290
|
-
propertyId: {
|
|
291
|
-
type: 'string',
|
|
292
|
-
format: 'uuid',
|
|
293
|
-
},
|
|
294
|
-
listingType: {
|
|
295
|
-
$ref: '#/components/schemas/SchemaEnum3',
|
|
296
|
-
},
|
|
297
|
-
price: {
|
|
298
|
-
type: 'number',
|
|
299
|
-
},
|
|
300
|
-
},
|
|
301
|
-
required: ['listingType', 'price', 'propertyId'],
|
|
302
|
-
};
|
|
303
|
-
export const IdResponseUUIDSchema = {
|
|
304
|
-
type: 'object',
|
|
305
|
-
properties: {
|
|
306
|
-
id: {
|
|
307
|
-
type: 'string',
|
|
308
|
-
format: 'uuid',
|
|
309
|
-
},
|
|
310
|
-
},
|
|
311
|
-
required: ['id'],
|
|
312
|
-
};
|
|
313
287
|
export const AddressRefSchema = {
|
|
314
288
|
type: 'object',
|
|
315
289
|
properties: {
|
|
@@ -451,118 +425,84 @@ export const PropertyCreationRequestSchema = {
|
|
|
451
425
|
'totalArea',
|
|
452
426
|
],
|
|
453
427
|
};
|
|
454
|
-
export const
|
|
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 AmenityCatalogDtoSchema = {
|
|
469
|
-
type: 'object',
|
|
470
|
-
properties: {
|
|
471
|
-
id: {
|
|
472
|
-
type: 'integer',
|
|
473
|
-
format: 'int32',
|
|
474
|
-
},
|
|
475
|
-
category: {
|
|
476
|
-
$ref: '#/components/schemas/CategoryEnum',
|
|
477
|
-
},
|
|
478
|
-
name: {
|
|
479
|
-
type: 'array',
|
|
480
|
-
items: {
|
|
481
|
-
$ref: '#/components/schemas/LangTextResponse',
|
|
482
|
-
},
|
|
483
|
-
},
|
|
484
|
-
},
|
|
485
|
-
required: ['category', 'id', 'name'],
|
|
486
|
-
};
|
|
487
|
-
export const GroupedAmenitySchema = {
|
|
428
|
+
export const CreateListingRequestSchema = {
|
|
488
429
|
type: 'object',
|
|
489
430
|
properties: {
|
|
490
|
-
|
|
491
|
-
|
|
431
|
+
propertyId: {
|
|
432
|
+
type: 'string',
|
|
433
|
+
format: 'uuid',
|
|
492
434
|
},
|
|
493
|
-
|
|
494
|
-
$ref: '#/components/schemas/
|
|
435
|
+
listingType: {
|
|
436
|
+
$ref: '#/components/schemas/SchemaEnum3',
|
|
495
437
|
},
|
|
496
|
-
|
|
497
|
-
type: '
|
|
498
|
-
items: {
|
|
499
|
-
$ref: '#/components/schemas/AmenityCatalogDto',
|
|
500
|
-
},
|
|
438
|
+
price: {
|
|
439
|
+
type: 'number',
|
|
501
440
|
},
|
|
502
441
|
},
|
|
503
|
-
required: ['
|
|
442
|
+
required: ['listingType', 'price', 'propertyId'],
|
|
504
443
|
};
|
|
505
|
-
export const
|
|
444
|
+
export const IdResponseUUIDSchema = {
|
|
506
445
|
type: 'object',
|
|
507
446
|
properties: {
|
|
508
|
-
|
|
509
|
-
type: '
|
|
510
|
-
|
|
511
|
-
$ref: '#/components/schemas/GroupedAmenity',
|
|
512
|
-
},
|
|
447
|
+
id: {
|
|
448
|
+
type: 'string',
|
|
449
|
+
format: 'uuid',
|
|
513
450
|
},
|
|
514
451
|
},
|
|
515
|
-
required: ['
|
|
452
|
+
required: ['id'],
|
|
516
453
|
};
|
|
517
|
-
export const
|
|
454
|
+
export const UserPropertyQuotaResponseSchema = {
|
|
518
455
|
type: 'object',
|
|
519
456
|
properties: {
|
|
520
|
-
|
|
521
|
-
|
|
457
|
+
limit: {
|
|
458
|
+
type: 'integer',
|
|
459
|
+
format: 'int32',
|
|
522
460
|
},
|
|
523
|
-
|
|
524
|
-
type: '
|
|
461
|
+
used: {
|
|
462
|
+
type: 'integer',
|
|
463
|
+
format: 'int32',
|
|
525
464
|
},
|
|
526
465
|
},
|
|
527
|
-
required: ['
|
|
466
|
+
required: ['limit', 'used'],
|
|
528
467
|
};
|
|
529
|
-
export const
|
|
468
|
+
export const AddressResponseSchema = {
|
|
530
469
|
type: 'object',
|
|
531
470
|
properties: {
|
|
532
|
-
|
|
533
|
-
type: '
|
|
534
|
-
format: '
|
|
535
|
-
},
|
|
536
|
-
type: {
|
|
537
|
-
$ref: '#/components/schemas/ItemsEnum',
|
|
538
|
-
},
|
|
539
|
-
title: {
|
|
540
|
-
type: 'string',
|
|
471
|
+
regionId: {
|
|
472
|
+
type: 'integer',
|
|
473
|
+
format: 'int64',
|
|
541
474
|
},
|
|
542
475
|
districtId: {
|
|
543
476
|
type: 'integer',
|
|
544
477
|
format: 'int64',
|
|
545
478
|
},
|
|
479
|
+
subdistrictId: {
|
|
480
|
+
type: 'integer',
|
|
481
|
+
format: 'int64',
|
|
482
|
+
},
|
|
546
483
|
streetId: {
|
|
547
484
|
type: 'integer',
|
|
548
485
|
format: 'int64',
|
|
549
486
|
},
|
|
550
|
-
|
|
487
|
+
cadastreCode: {
|
|
551
488
|
type: 'string',
|
|
552
489
|
},
|
|
553
|
-
|
|
554
|
-
type: '
|
|
555
|
-
format: '
|
|
490
|
+
lat: {
|
|
491
|
+
type: 'number',
|
|
492
|
+
format: 'double',
|
|
493
|
+
},
|
|
494
|
+
lng: {
|
|
495
|
+
type: 'number',
|
|
496
|
+
format: 'double',
|
|
556
497
|
},
|
|
557
498
|
},
|
|
558
499
|
required: [
|
|
559
|
-
'coverPhoto',
|
|
560
500
|
'districtId',
|
|
561
|
-
'
|
|
501
|
+
'lat',
|
|
502
|
+
'lng',
|
|
503
|
+
'regionId',
|
|
562
504
|
'streetId',
|
|
563
|
-
'
|
|
564
|
-
'type',
|
|
565
|
-
'uploadDate',
|
|
505
|
+
'subdistrictId',
|
|
566
506
|
],
|
|
567
507
|
};
|
|
568
508
|
export const AmenityViewResponseSchema = {
|
|
@@ -584,149 +524,99 @@ export const AmenityViewResponseSchema = {
|
|
|
584
524
|
},
|
|
585
525
|
required: ['category', 'id', 'name'],
|
|
586
526
|
};
|
|
587
|
-
export const
|
|
527
|
+
export const ByAgencyResponseSchema = {
|
|
588
528
|
type: 'object',
|
|
589
529
|
properties: {
|
|
590
|
-
|
|
591
|
-
type: 'integer',
|
|
592
|
-
format: 'int64',
|
|
593
|
-
},
|
|
594
|
-
key: {
|
|
530
|
+
agencyId: {
|
|
595
531
|
type: 'string',
|
|
532
|
+
format: 'uuid',
|
|
596
533
|
},
|
|
597
|
-
|
|
534
|
+
agentId: {
|
|
598
535
|
type: 'string',
|
|
599
|
-
|
|
600
|
-
width: {
|
|
601
|
-
type: 'integer',
|
|
602
|
-
format: 'int32',
|
|
603
|
-
},
|
|
604
|
-
height: {
|
|
605
|
-
type: 'integer',
|
|
606
|
-
format: 'int32',
|
|
536
|
+
format: 'uuid',
|
|
607
537
|
},
|
|
608
538
|
},
|
|
609
|
-
required: ['
|
|
539
|
+
required: ['agencyId', 'agentId'],
|
|
610
540
|
};
|
|
611
|
-
export const
|
|
541
|
+
export const ByOwnerResponseSchema = {
|
|
612
542
|
type: 'object',
|
|
613
543
|
properties: {
|
|
614
|
-
|
|
615
|
-
type: 'string',
|
|
616
|
-
format: 'uuid',
|
|
617
|
-
},
|
|
618
|
-
name: {
|
|
544
|
+
ownerId: {
|
|
619
545
|
type: 'string',
|
|
620
546
|
},
|
|
621
|
-
type: {
|
|
622
|
-
$ref: '#/components/schemas/TypeEnum2',
|
|
623
|
-
},
|
|
624
|
-
area: {
|
|
625
|
-
type: 'number',
|
|
626
|
-
format: 'double',
|
|
627
|
-
},
|
|
628
|
-
photos: {
|
|
629
|
-
type: 'array',
|
|
630
|
-
items: {
|
|
631
|
-
$ref: '#/components/schemas/PhotoResponse',
|
|
632
|
-
},
|
|
633
|
-
},
|
|
634
|
-
amenities: {
|
|
635
|
-
type: 'array',
|
|
636
|
-
items: {
|
|
637
|
-
$ref: '#/components/schemas/AmenityViewResponse',
|
|
638
|
-
},
|
|
639
|
-
uniqueItems: true,
|
|
640
|
-
},
|
|
641
|
-
description: {
|
|
642
|
-
type: 'array',
|
|
643
|
-
items: {
|
|
644
|
-
$ref: '#/components/schemas/LangTextResponse',
|
|
645
|
-
},
|
|
646
|
-
},
|
|
647
547
|
},
|
|
648
|
-
required: ['
|
|
548
|
+
required: ['ownerId'],
|
|
649
549
|
};
|
|
650
|
-
export const
|
|
550
|
+
export const LangTextResponseSchema = {
|
|
651
551
|
type: 'object',
|
|
652
552
|
properties: {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
format: 'uuid',
|
|
656
|
-
},
|
|
657
|
-
type: {
|
|
658
|
-
$ref: '#/components/schemas/TypeEnum2',
|
|
659
|
-
},
|
|
660
|
-
name: {
|
|
661
|
-
type: 'string',
|
|
662
|
-
},
|
|
663
|
-
area: {
|
|
664
|
-
type: 'number',
|
|
665
|
-
format: 'double',
|
|
553
|
+
language: {
|
|
554
|
+
$ref: '#/components/schemas/LanguageEnum',
|
|
666
555
|
},
|
|
667
|
-
|
|
556
|
+
text: {
|
|
668
557
|
type: 'string',
|
|
669
558
|
},
|
|
670
|
-
imageCount: {
|
|
671
|
-
type: 'integer',
|
|
672
|
-
format: 'int32',
|
|
673
|
-
},
|
|
674
559
|
},
|
|
675
|
-
required: ['
|
|
560
|
+
required: ['language', 'text'],
|
|
676
561
|
};
|
|
677
|
-
export const
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
type: 'array',
|
|
682
|
-
items: {
|
|
683
|
-
$ref: '#/components/schemas/SpaceEditorViewResponse',
|
|
684
|
-
},
|
|
562
|
+
export const ListedByResponseSchema = {
|
|
563
|
+
oneOf: [
|
|
564
|
+
{
|
|
565
|
+
$ref: '#/components/schemas/ByOwnerResponse',
|
|
685
566
|
},
|
|
686
|
-
|
|
687
|
-
|
|
567
|
+
{
|
|
568
|
+
$ref: '#/components/schemas/ByAgencyResponse',
|
|
688
569
|
},
|
|
689
|
-
|
|
690
|
-
required: ['spaces', 'wasGrouped'],
|
|
570
|
+
],
|
|
691
571
|
};
|
|
692
|
-
export const
|
|
572
|
+
export const ListingDetailResponseSchema = {
|
|
693
573
|
type: 'object',
|
|
694
574
|
properties: {
|
|
695
|
-
|
|
696
|
-
type: '
|
|
697
|
-
format: '
|
|
575
|
+
listingId: {
|
|
576
|
+
type: 'string',
|
|
577
|
+
format: 'uuid',
|
|
698
578
|
},
|
|
699
|
-
|
|
700
|
-
type: '
|
|
701
|
-
format: '
|
|
579
|
+
propertyId: {
|
|
580
|
+
type: 'string',
|
|
581
|
+
format: 'uuid',
|
|
702
582
|
},
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
format: 'int64',
|
|
583
|
+
listingType: {
|
|
584
|
+
$ref: '#/components/schemas/SchemaEnum3',
|
|
706
585
|
},
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
format: 'int64',
|
|
586
|
+
status: {
|
|
587
|
+
$ref: '#/components/schemas/StatusEnum',
|
|
710
588
|
},
|
|
711
|
-
|
|
589
|
+
price: {
|
|
590
|
+
type: 'number',
|
|
591
|
+
},
|
|
592
|
+
property: {
|
|
593
|
+
$ref: '#/components/schemas/PropertyDetailsResponse',
|
|
594
|
+
},
|
|
595
|
+
listedBy: {
|
|
596
|
+
$ref: '#/components/schemas/ListedByResponse',
|
|
597
|
+
},
|
|
598
|
+
createdAt: {
|
|
712
599
|
type: 'string',
|
|
600
|
+
format: 'date-time',
|
|
713
601
|
},
|
|
714
|
-
|
|
715
|
-
type: '
|
|
716
|
-
format: '
|
|
602
|
+
publishedAt: {
|
|
603
|
+
type: 'string',
|
|
604
|
+
format: 'date-time',
|
|
717
605
|
},
|
|
718
|
-
|
|
719
|
-
type: '
|
|
720
|
-
format: '
|
|
606
|
+
expiresAt: {
|
|
607
|
+
type: 'string',
|
|
608
|
+
format: 'date-time',
|
|
721
609
|
},
|
|
722
610
|
},
|
|
723
611
|
required: [
|
|
724
|
-
'
|
|
725
|
-
'
|
|
726
|
-
'
|
|
727
|
-
'
|
|
728
|
-
'
|
|
729
|
-
'
|
|
612
|
+
'createdAt',
|
|
613
|
+
'listedBy',
|
|
614
|
+
'listingId',
|
|
615
|
+
'listingType',
|
|
616
|
+
'price',
|
|
617
|
+
'property',
|
|
618
|
+
'propertyId',
|
|
619
|
+
'status',
|
|
730
620
|
],
|
|
731
621
|
};
|
|
732
622
|
export const MeasurementResponseSchema = {
|
|
@@ -747,18 +637,42 @@ export const MeasurementResponseSchema = {
|
|
|
747
637
|
},
|
|
748
638
|
required: ['totalArea'],
|
|
749
639
|
};
|
|
750
|
-
export const
|
|
640
|
+
export const PhotoResponseSchema = {
|
|
751
641
|
type: 'object',
|
|
752
642
|
properties: {
|
|
753
|
-
|
|
754
|
-
|
|
643
|
+
id: {
|
|
644
|
+
type: 'integer',
|
|
645
|
+
format: 'int64',
|
|
755
646
|
},
|
|
756
|
-
|
|
757
|
-
|
|
647
|
+
key: {
|
|
648
|
+
type: 'string',
|
|
649
|
+
},
|
|
650
|
+
url: {
|
|
651
|
+
type: 'string',
|
|
652
|
+
},
|
|
653
|
+
width: {
|
|
654
|
+
type: 'integer',
|
|
655
|
+
format: 'int32',
|
|
656
|
+
},
|
|
657
|
+
height: {
|
|
658
|
+
type: 'integer',
|
|
659
|
+
format: 'int32',
|
|
660
|
+
},
|
|
661
|
+
},
|
|
662
|
+
required: ['height', 'id', 'key', 'url', 'width'],
|
|
663
|
+
};
|
|
664
|
+
export const PropertyDetailsResponseSchema = {
|
|
665
|
+
type: 'object',
|
|
666
|
+
properties: {
|
|
667
|
+
propertyType: {
|
|
668
|
+
$ref: '#/components/schemas/ItemsEnum',
|
|
758
669
|
},
|
|
759
670
|
address: {
|
|
760
671
|
$ref: '#/components/schemas/AddressResponse',
|
|
761
672
|
},
|
|
673
|
+
measurement: {
|
|
674
|
+
$ref: '#/components/schemas/MeasurementResponse',
|
|
675
|
+
},
|
|
762
676
|
description: {
|
|
763
677
|
type: 'array',
|
|
764
678
|
items: {
|
|
@@ -777,14 +691,21 @@ export const PropertyEditorViewResponseSchema = {
|
|
|
777
691
|
$ref: '#/components/schemas/PropertySpaceViewResponse',
|
|
778
692
|
},
|
|
779
693
|
},
|
|
694
|
+
images: {
|
|
695
|
+
type: 'array',
|
|
696
|
+
items: {
|
|
697
|
+
$ref: '#/components/schemas/PhotoResponse',
|
|
698
|
+
},
|
|
699
|
+
},
|
|
780
700
|
},
|
|
781
701
|
required: [
|
|
782
702
|
'address',
|
|
783
703
|
'amenities',
|
|
784
704
|
'description',
|
|
705
|
+
'images',
|
|
785
706
|
'measurement',
|
|
707
|
+
'propertyType',
|
|
786
708
|
'spaces',
|
|
787
|
-
'type',
|
|
788
709
|
],
|
|
789
710
|
};
|
|
790
711
|
export const PropertySpaceViewResponseSchema = {
|
|
@@ -814,101 +735,187 @@ export const PropertySpaceViewResponseSchema = {
|
|
|
814
735
|
},
|
|
815
736
|
required: ['name', 'photoCount', 'type'],
|
|
816
737
|
};
|
|
817
|
-
export const
|
|
738
|
+
export const AmenityCatalogDtoSchema = {
|
|
818
739
|
type: 'object',
|
|
819
740
|
properties: {
|
|
820
|
-
|
|
821
|
-
type: '
|
|
822
|
-
format: '
|
|
741
|
+
id: {
|
|
742
|
+
type: 'integer',
|
|
743
|
+
format: 'int32',
|
|
823
744
|
},
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
745
|
+
category: {
|
|
746
|
+
$ref: '#/components/schemas/CategoryEnum',
|
|
747
|
+
},
|
|
748
|
+
name: {
|
|
749
|
+
type: 'array',
|
|
750
|
+
items: {
|
|
751
|
+
$ref: '#/components/schemas/LangTextResponse',
|
|
752
|
+
},
|
|
827
753
|
},
|
|
828
754
|
},
|
|
829
|
-
required: ['
|
|
755
|
+
required: ['category', 'id', 'name'],
|
|
830
756
|
};
|
|
831
|
-
export const
|
|
757
|
+
export const GroupedAmenitySchema = {
|
|
832
758
|
type: 'object',
|
|
833
759
|
properties: {
|
|
834
|
-
|
|
835
|
-
|
|
760
|
+
propertyGroup: {
|
|
761
|
+
$ref: '#/components/schemas/SchemaEnum',
|
|
762
|
+
},
|
|
763
|
+
spaceType: {
|
|
764
|
+
$ref: '#/components/schemas/SchemaEnum2',
|
|
765
|
+
},
|
|
766
|
+
amenities: {
|
|
767
|
+
type: 'array',
|
|
768
|
+
items: {
|
|
769
|
+
$ref: '#/components/schemas/AmenityCatalogDto',
|
|
770
|
+
},
|
|
836
771
|
},
|
|
837
772
|
},
|
|
838
|
-
required: ['
|
|
773
|
+
required: ['amenities'],
|
|
839
774
|
};
|
|
840
|
-
export const
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
775
|
+
export const HomespotAmenitiesSchema = {
|
|
776
|
+
type: 'object',
|
|
777
|
+
properties: {
|
|
778
|
+
data: {
|
|
779
|
+
type: 'array',
|
|
780
|
+
items: {
|
|
781
|
+
$ref: '#/components/schemas/GroupedAmenity',
|
|
782
|
+
},
|
|
847
783
|
},
|
|
848
|
-
|
|
784
|
+
},
|
|
785
|
+
required: ['data'],
|
|
849
786
|
};
|
|
850
|
-
export const
|
|
787
|
+
export const PropertyCardViewResponseSchema = {
|
|
851
788
|
type: 'object',
|
|
852
789
|
properties: {
|
|
853
|
-
|
|
790
|
+
id: {
|
|
854
791
|
type: 'string',
|
|
855
792
|
format: 'uuid',
|
|
856
793
|
},
|
|
857
|
-
|
|
794
|
+
type: {
|
|
795
|
+
$ref: '#/components/schemas/ItemsEnum',
|
|
796
|
+
},
|
|
797
|
+
title: {
|
|
798
|
+
type: 'string',
|
|
799
|
+
},
|
|
800
|
+
districtId: {
|
|
801
|
+
type: 'integer',
|
|
802
|
+
format: 'int64',
|
|
803
|
+
},
|
|
804
|
+
streetId: {
|
|
805
|
+
type: 'integer',
|
|
806
|
+
format: 'int64',
|
|
807
|
+
},
|
|
808
|
+
coverPhoto: {
|
|
809
|
+
type: 'string',
|
|
810
|
+
},
|
|
811
|
+
uploadDate: {
|
|
812
|
+
type: 'string',
|
|
813
|
+
format: 'date-time',
|
|
814
|
+
},
|
|
815
|
+
},
|
|
816
|
+
required: [
|
|
817
|
+
'coverPhoto',
|
|
818
|
+
'districtId',
|
|
819
|
+
'id',
|
|
820
|
+
'streetId',
|
|
821
|
+
'title',
|
|
822
|
+
'type',
|
|
823
|
+
'uploadDate',
|
|
824
|
+
],
|
|
825
|
+
};
|
|
826
|
+
export const SpaceViewResponseSchema = {
|
|
827
|
+
type: 'object',
|
|
828
|
+
properties: {
|
|
829
|
+
spaceId: {
|
|
858
830
|
type: 'string',
|
|
859
831
|
format: 'uuid',
|
|
860
832
|
},
|
|
861
|
-
|
|
862
|
-
|
|
833
|
+
name: {
|
|
834
|
+
type: 'string',
|
|
863
835
|
},
|
|
864
|
-
|
|
865
|
-
$ref: '#/components/schemas/
|
|
836
|
+
type: {
|
|
837
|
+
$ref: '#/components/schemas/TypeEnum2',
|
|
866
838
|
},
|
|
867
|
-
|
|
839
|
+
area: {
|
|
868
840
|
type: 'number',
|
|
841
|
+
format: 'double',
|
|
869
842
|
},
|
|
870
|
-
|
|
871
|
-
|
|
843
|
+
photos: {
|
|
844
|
+
type: 'array',
|
|
845
|
+
items: {
|
|
846
|
+
$ref: '#/components/schemas/PhotoResponse',
|
|
847
|
+
},
|
|
872
848
|
},
|
|
873
|
-
|
|
874
|
-
|
|
849
|
+
amenities: {
|
|
850
|
+
type: 'array',
|
|
851
|
+
items: {
|
|
852
|
+
$ref: '#/components/schemas/AmenityViewResponse',
|
|
853
|
+
},
|
|
854
|
+
uniqueItems: true,
|
|
875
855
|
},
|
|
876
|
-
|
|
856
|
+
description: {
|
|
857
|
+
type: 'array',
|
|
858
|
+
items: {
|
|
859
|
+
$ref: '#/components/schemas/LangTextResponse',
|
|
860
|
+
},
|
|
861
|
+
},
|
|
862
|
+
},
|
|
863
|
+
required: ['amenities', 'description', 'name', 'photos', 'type'],
|
|
864
|
+
};
|
|
865
|
+
export const SpaceEditorViewResponseSchema = {
|
|
866
|
+
type: 'object',
|
|
867
|
+
properties: {
|
|
868
|
+
id: {
|
|
877
869
|
type: 'string',
|
|
878
|
-
format: '
|
|
870
|
+
format: 'uuid',
|
|
879
871
|
},
|
|
880
|
-
|
|
872
|
+
type: {
|
|
873
|
+
$ref: '#/components/schemas/TypeEnum2',
|
|
874
|
+
},
|
|
875
|
+
name: {
|
|
881
876
|
type: 'string',
|
|
882
|
-
format: 'date-time',
|
|
883
877
|
},
|
|
884
|
-
|
|
878
|
+
area: {
|
|
879
|
+
type: 'number',
|
|
880
|
+
format: 'double',
|
|
881
|
+
},
|
|
882
|
+
coverImage: {
|
|
885
883
|
type: 'string',
|
|
886
|
-
|
|
884
|
+
},
|
|
885
|
+
imageCount: {
|
|
886
|
+
type: 'integer',
|
|
887
|
+
format: 'int32',
|
|
887
888
|
},
|
|
888
889
|
},
|
|
889
|
-
required: [
|
|
890
|
-
'createdAt',
|
|
891
|
-
'listedBy',
|
|
892
|
-
'listingId',
|
|
893
|
-
'listingType',
|
|
894
|
-
'price',
|
|
895
|
-
'property',
|
|
896
|
-
'propertyId',
|
|
897
|
-
'status',
|
|
898
|
-
],
|
|
890
|
+
required: ['imageCount', 'name', 'type'],
|
|
899
891
|
};
|
|
900
|
-
export const
|
|
892
|
+
export const SpacesEditorViewResponseSchema = {
|
|
901
893
|
type: 'object',
|
|
902
894
|
properties: {
|
|
903
|
-
|
|
904
|
-
|
|
895
|
+
spaces: {
|
|
896
|
+
type: 'array',
|
|
897
|
+
items: {
|
|
898
|
+
$ref: '#/components/schemas/SpaceEditorViewResponse',
|
|
899
|
+
},
|
|
905
900
|
},
|
|
906
|
-
|
|
907
|
-
|
|
901
|
+
wasGrouped: {
|
|
902
|
+
type: 'boolean',
|
|
903
|
+
},
|
|
904
|
+
},
|
|
905
|
+
required: ['spaces', 'wasGrouped'],
|
|
906
|
+
};
|
|
907
|
+
export const PropertyEditorViewResponseSchema = {
|
|
908
|
+
type: 'object',
|
|
909
|
+
properties: {
|
|
910
|
+
type: {
|
|
911
|
+
$ref: '#/components/schemas/ItemsEnum',
|
|
908
912
|
},
|
|
909
913
|
measurement: {
|
|
910
914
|
$ref: '#/components/schemas/MeasurementResponse',
|
|
911
915
|
},
|
|
916
|
+
address: {
|
|
917
|
+
$ref: '#/components/schemas/AddressResponse',
|
|
918
|
+
},
|
|
912
919
|
description: {
|
|
913
920
|
type: 'array',
|
|
914
921
|
items: {
|
|
@@ -927,21 +934,14 @@ export const PropertyDetailsResponseSchema = {
|
|
|
927
934
|
$ref: '#/components/schemas/PropertySpaceViewResponse',
|
|
928
935
|
},
|
|
929
936
|
},
|
|
930
|
-
images: {
|
|
931
|
-
type: 'array',
|
|
932
|
-
items: {
|
|
933
|
-
$ref: '#/components/schemas/PhotoResponse',
|
|
934
|
-
},
|
|
935
|
-
},
|
|
936
937
|
},
|
|
937
938
|
required: [
|
|
938
939
|
'address',
|
|
939
940
|
'amenities',
|
|
940
941
|
'description',
|
|
941
|
-
'images',
|
|
942
942
|
'measurement',
|
|
943
|
-
'propertyType',
|
|
944
943
|
'spaces',
|
|
944
|
+
'type',
|
|
945
945
|
],
|
|
946
946
|
};
|
|
947
947
|
export const ListingCardResponseSchema = {
|
|
@@ -1130,6 +1130,10 @@ export const CategoryEnumSchema = {
|
|
|
1130
1130
|
'SECURITY',
|
|
1131
1131
|
],
|
|
1132
1132
|
};
|
|
1133
|
+
export const StatusEnumSchema = {
|
|
1134
|
+
type: 'string',
|
|
1135
|
+
enum: ['ACTIVE', 'PAUSED', 'EXPIRED'],
|
|
1136
|
+
};
|
|
1133
1137
|
export const TypeEnum2Schema = {
|
|
1134
1138
|
type: 'string',
|
|
1135
1139
|
enum: [
|
|
@@ -1147,8 +1151,4 @@ export const TypeEnum2Schema = {
|
|
|
1147
1151
|
'OTHER',
|
|
1148
1152
|
],
|
|
1149
1153
|
};
|
|
1150
|
-
export const StatusEnumSchema = {
|
|
1151
|
-
type: 'string',
|
|
1152
|
-
enum: ['ACTIVE', 'PAUSED', 'EXPIRED'],
|
|
1153
|
-
};
|
|
1154
1154
|
//# sourceMappingURL=schemas.gen.js.map
|