@homespot-sdk/core 0.0.303 → 0.0.304
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/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 +298 -162
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +324 -178
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +7 -5
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +32 -23
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +4 -1
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +42 -29
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +178 -88
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +412 -332
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +196 -107
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -430,9 +430,60 @@ export const CommentBodyRequestSchema = {
|
|
|
430
430
|
},
|
|
431
431
|
required: ['body'],
|
|
432
432
|
};
|
|
433
|
-
export const
|
|
433
|
+
export const PhoneNumberRequestSchema = {
|
|
434
434
|
type: 'object',
|
|
435
435
|
properties: {
|
|
436
|
+
phoneNumber: {
|
|
437
|
+
type: 'string',
|
|
438
|
+
minLength: 1,
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
required: ['phoneNumber'],
|
|
442
|
+
};
|
|
443
|
+
export const UpdateContactDetailsRequestSchema = {
|
|
444
|
+
type: 'object',
|
|
445
|
+
properties: {
|
|
446
|
+
firstName: {
|
|
447
|
+
type: 'string',
|
|
448
|
+
maxLength: 20,
|
|
449
|
+
minLength: 1,
|
|
450
|
+
},
|
|
451
|
+
nullifyFirstName: {
|
|
452
|
+
type: 'boolean',
|
|
453
|
+
},
|
|
454
|
+
lastName: {
|
|
455
|
+
type: 'string',
|
|
456
|
+
maxLength: 20,
|
|
457
|
+
minLength: 1,
|
|
458
|
+
},
|
|
459
|
+
nullifyLastName: {
|
|
460
|
+
type: 'boolean',
|
|
461
|
+
},
|
|
462
|
+
gender: {
|
|
463
|
+
type: 'string',
|
|
464
|
+
enum: ['MALE', 'FEMALE', 'UNKNOWN'],
|
|
465
|
+
},
|
|
466
|
+
email: {
|
|
467
|
+
type: 'string',
|
|
468
|
+
format: 'email',
|
|
469
|
+
},
|
|
470
|
+
nullifyEmail: {
|
|
471
|
+
type: 'boolean',
|
|
472
|
+
},
|
|
473
|
+
contactMethods: {
|
|
474
|
+
type: 'array',
|
|
475
|
+
items: {
|
|
476
|
+
type: 'string',
|
|
477
|
+
enum: ['WHATSAPP', 'VIBER', 'PHONE_CALL'],
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
favoriteContactMethod: {
|
|
481
|
+
type: 'string',
|
|
482
|
+
enum: ['WHATSAPP', 'VIBER', 'PHONE_CALL'],
|
|
483
|
+
},
|
|
484
|
+
nullifyFavoriteContactMethod: {
|
|
485
|
+
type: 'boolean',
|
|
486
|
+
},
|
|
436
487
|
status: {
|
|
437
488
|
type: 'string',
|
|
438
489
|
enum: [
|
|
@@ -446,18 +497,11 @@ export const ContactStatusRequestSchema = {
|
|
|
446
497
|
'CLOSED',
|
|
447
498
|
],
|
|
448
499
|
},
|
|
449
|
-
},
|
|
450
|
-
required: ['status'],
|
|
451
|
-
};
|
|
452
|
-
export const ReprioritizeClientRequestSchema = {
|
|
453
|
-
type: 'object',
|
|
454
|
-
properties: {
|
|
455
500
|
priority: {
|
|
456
501
|
type: 'string',
|
|
457
502
|
enum: ['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'],
|
|
458
503
|
},
|
|
459
504
|
},
|
|
460
|
-
required: ['priority'],
|
|
461
505
|
};
|
|
462
506
|
export const RecordLostContactRequestSchema = {
|
|
463
507
|
type: 'object',
|
|
@@ -479,52 +523,6 @@ export const RecordLostContactRequestSchema = {
|
|
|
479
523
|
},
|
|
480
524
|
required: ['reason'],
|
|
481
525
|
};
|
|
482
|
-
export const UpdateContactPreferencesRequestSchema = {
|
|
483
|
-
type: 'object',
|
|
484
|
-
properties: {
|
|
485
|
-
contactMethods: {
|
|
486
|
-
type: 'array',
|
|
487
|
-
items: {
|
|
488
|
-
type: 'string',
|
|
489
|
-
enum: ['WHATSAPP', 'VIBER', 'PHONE_CALL'],
|
|
490
|
-
},
|
|
491
|
-
},
|
|
492
|
-
favoriteContactMethod: {
|
|
493
|
-
type: 'string',
|
|
494
|
-
enum: ['WHATSAPP', 'VIBER', 'PHONE_CALL'],
|
|
495
|
-
},
|
|
496
|
-
},
|
|
497
|
-
required: ['contactMethods'],
|
|
498
|
-
};
|
|
499
|
-
export const ContactInfoRequestSchema = {
|
|
500
|
-
type: 'object',
|
|
501
|
-
properties: {
|
|
502
|
-
firstName: {
|
|
503
|
-
type: 'string',
|
|
504
|
-
maxLength: 20,
|
|
505
|
-
minLength: 1,
|
|
506
|
-
},
|
|
507
|
-
lastName: {
|
|
508
|
-
type: 'string',
|
|
509
|
-
maxLength: 20,
|
|
510
|
-
minLength: 1,
|
|
511
|
-
},
|
|
512
|
-
gender: {
|
|
513
|
-
type: 'string',
|
|
514
|
-
enum: ['MALE', 'FEMALE', 'UNKNOWN'],
|
|
515
|
-
},
|
|
516
|
-
email: {
|
|
517
|
-
type: 'string',
|
|
518
|
-
format: 'email',
|
|
519
|
-
},
|
|
520
|
-
phone: {
|
|
521
|
-
type: 'string',
|
|
522
|
-
maxLength: 20,
|
|
523
|
-
minLength: 1,
|
|
524
|
-
},
|
|
525
|
-
},
|
|
526
|
-
required: ['phone'],
|
|
527
|
-
};
|
|
528
526
|
export const ReassignMemberRequestSchema = {
|
|
529
527
|
type: 'object',
|
|
530
528
|
properties: {
|
|
@@ -730,6 +728,53 @@ export const RateRecommendationItemRequestSchema = {
|
|
|
730
728
|
},
|
|
731
729
|
required: ['decision'],
|
|
732
730
|
};
|
|
731
|
+
export const SendMessageRequestSchema = {
|
|
732
|
+
type: 'object',
|
|
733
|
+
properties: {
|
|
734
|
+
text: {
|
|
735
|
+
type: 'string',
|
|
736
|
+
maxLength: 2000,
|
|
737
|
+
minLength: 0,
|
|
738
|
+
},
|
|
739
|
+
},
|
|
740
|
+
required: ['text'],
|
|
741
|
+
};
|
|
742
|
+
export const ProblemDetailSchema = {
|
|
743
|
+
type: 'object',
|
|
744
|
+
properties: {
|
|
745
|
+
type: {
|
|
746
|
+
type: 'string',
|
|
747
|
+
format: 'uri',
|
|
748
|
+
},
|
|
749
|
+
title: {
|
|
750
|
+
type: 'string',
|
|
751
|
+
},
|
|
752
|
+
status: {
|
|
753
|
+
type: 'integer',
|
|
754
|
+
format: 'int32',
|
|
755
|
+
},
|
|
756
|
+
detail: {
|
|
757
|
+
type: 'string',
|
|
758
|
+
},
|
|
759
|
+
instance: {
|
|
760
|
+
type: 'string',
|
|
761
|
+
format: 'uri',
|
|
762
|
+
},
|
|
763
|
+
properties: {
|
|
764
|
+
type: 'object',
|
|
765
|
+
additionalProperties: {},
|
|
766
|
+
},
|
|
767
|
+
},
|
|
768
|
+
};
|
|
769
|
+
export const SendMessageResponseSchema = {
|
|
770
|
+
type: 'object',
|
|
771
|
+
properties: {
|
|
772
|
+
messageId: {
|
|
773
|
+
type: 'string',
|
|
774
|
+
format: 'uuid',
|
|
775
|
+
},
|
|
776
|
+
},
|
|
777
|
+
};
|
|
733
778
|
export const AttendeeRequestSchema = {
|
|
734
779
|
type: 'object',
|
|
735
780
|
properties: {
|
|
@@ -1007,12 +1052,40 @@ export const IdResponseUUIDSchema = {
|
|
|
1007
1052
|
},
|
|
1008
1053
|
required: ['id'],
|
|
1009
1054
|
};
|
|
1055
|
+
export const ContactInfoRequestSchema = {
|
|
1056
|
+
type: 'object',
|
|
1057
|
+
properties: {
|
|
1058
|
+
firstName: {
|
|
1059
|
+
type: 'string',
|
|
1060
|
+
maxLength: 20,
|
|
1061
|
+
minLength: 1,
|
|
1062
|
+
},
|
|
1063
|
+
lastName: {
|
|
1064
|
+
type: 'string',
|
|
1065
|
+
maxLength: 20,
|
|
1066
|
+
minLength: 1,
|
|
1067
|
+
},
|
|
1068
|
+
gender: {
|
|
1069
|
+
type: 'string',
|
|
1070
|
+
enum: ['MALE', 'FEMALE', 'UNKNOWN'],
|
|
1071
|
+
},
|
|
1072
|
+
email: {
|
|
1073
|
+
type: 'string',
|
|
1074
|
+
format: 'email',
|
|
1075
|
+
},
|
|
1076
|
+
},
|
|
1077
|
+
};
|
|
1010
1078
|
export const OnboardClientRequestSchema = {
|
|
1011
1079
|
type: 'object',
|
|
1012
1080
|
properties: {
|
|
1013
1081
|
contactInfo: {
|
|
1014
1082
|
$ref: '#/components/schemas/ContactInfoRequest',
|
|
1015
1083
|
},
|
|
1084
|
+
phoneNumber: {
|
|
1085
|
+
type: 'string',
|
|
1086
|
+
maxLength: 20,
|
|
1087
|
+
minLength: 1,
|
|
1088
|
+
},
|
|
1016
1089
|
contactMethods: {
|
|
1017
1090
|
type: 'array',
|
|
1018
1091
|
items: {
|
|
@@ -1030,7 +1103,7 @@ export const OnboardClientRequestSchema = {
|
|
|
1030
1103
|
enum: ['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'],
|
|
1031
1104
|
},
|
|
1032
1105
|
},
|
|
1033
|
-
required: ['contactInfo', 'contactMethods'],
|
|
1106
|
+
required: ['contactInfo', 'contactMethods', 'phoneNumber'],
|
|
1034
1107
|
};
|
|
1035
1108
|
export const IdResponseLongSchema = {
|
|
1036
1109
|
type: 'object',
|
|
@@ -2391,6 +2464,197 @@ export const PagedModelInvitationViewResponseSchema = {
|
|
|
2391
2464
|
},
|
|
2392
2465
|
},
|
|
2393
2466
|
};
|
|
2467
|
+
export const CursorPageInboxResponseSchema = {
|
|
2468
|
+
type: 'object',
|
|
2469
|
+
properties: {
|
|
2470
|
+
items: {
|
|
2471
|
+
type: 'array',
|
|
2472
|
+
items: {
|
|
2473
|
+
$ref: '#/components/schemas/InboxResponse',
|
|
2474
|
+
},
|
|
2475
|
+
},
|
|
2476
|
+
nextCursor: {
|
|
2477
|
+
type: 'string',
|
|
2478
|
+
},
|
|
2479
|
+
hasNext: {
|
|
2480
|
+
type: 'boolean',
|
|
2481
|
+
},
|
|
2482
|
+
},
|
|
2483
|
+
};
|
|
2484
|
+
export const InboxResponseSchema = {
|
|
2485
|
+
type: 'object',
|
|
2486
|
+
properties: {
|
|
2487
|
+
conversationId: {
|
|
2488
|
+
type: 'string',
|
|
2489
|
+
format: 'uuid',
|
|
2490
|
+
},
|
|
2491
|
+
lastMessageAt: {
|
|
2492
|
+
type: 'string',
|
|
2493
|
+
format: 'date-time',
|
|
2494
|
+
},
|
|
2495
|
+
unreadCount: {
|
|
2496
|
+
type: 'integer',
|
|
2497
|
+
format: 'int32',
|
|
2498
|
+
},
|
|
2499
|
+
lastMessagePreview: {
|
|
2500
|
+
type: 'string',
|
|
2501
|
+
},
|
|
2502
|
+
direction: {
|
|
2503
|
+
type: 'string',
|
|
2504
|
+
enum: ['INBOUND', 'OUTBOUND'],
|
|
2505
|
+
},
|
|
2506
|
+
channelType: {
|
|
2507
|
+
type: 'string',
|
|
2508
|
+
enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP'],
|
|
2509
|
+
},
|
|
2510
|
+
contactId: {
|
|
2511
|
+
type: 'integer',
|
|
2512
|
+
format: 'int64',
|
|
2513
|
+
},
|
|
2514
|
+
isReachable: {
|
|
2515
|
+
type: 'boolean',
|
|
2516
|
+
},
|
|
2517
|
+
contactFirstName: {
|
|
2518
|
+
type: 'string',
|
|
2519
|
+
},
|
|
2520
|
+
contactLastName: {
|
|
2521
|
+
type: 'string',
|
|
2522
|
+
},
|
|
2523
|
+
managedBy: {
|
|
2524
|
+
type: 'string',
|
|
2525
|
+
format: 'uuid',
|
|
2526
|
+
},
|
|
2527
|
+
memberFirstName: {
|
|
2528
|
+
type: 'string',
|
|
2529
|
+
},
|
|
2530
|
+
memberLastName: {
|
|
2531
|
+
type: 'string',
|
|
2532
|
+
},
|
|
2533
|
+
memberPicture: {
|
|
2534
|
+
type: 'string',
|
|
2535
|
+
},
|
|
2536
|
+
},
|
|
2537
|
+
};
|
|
2538
|
+
export const CursorPageMessageViewSchema = {
|
|
2539
|
+
type: 'object',
|
|
2540
|
+
properties: {
|
|
2541
|
+
items: {
|
|
2542
|
+
type: 'array',
|
|
2543
|
+
items: {
|
|
2544
|
+
$ref: '#/components/schemas/MessageView',
|
|
2545
|
+
},
|
|
2546
|
+
},
|
|
2547
|
+
nextCursor: {
|
|
2548
|
+
type: 'string',
|
|
2549
|
+
},
|
|
2550
|
+
hasNext: {
|
|
2551
|
+
type: 'boolean',
|
|
2552
|
+
},
|
|
2553
|
+
},
|
|
2554
|
+
};
|
|
2555
|
+
export const MessageContentSchema = {
|
|
2556
|
+
discriminator: {
|
|
2557
|
+
propertyName: '@type',
|
|
2558
|
+
},
|
|
2559
|
+
properties: {
|
|
2560
|
+
'@type': {
|
|
2561
|
+
type: 'string',
|
|
2562
|
+
},
|
|
2563
|
+
},
|
|
2564
|
+
required: ['@type'],
|
|
2565
|
+
};
|
|
2566
|
+
export const MessageViewSchema = {
|
|
2567
|
+
type: 'object',
|
|
2568
|
+
properties: {
|
|
2569
|
+
id: {
|
|
2570
|
+
type: 'string',
|
|
2571
|
+
format: 'uuid',
|
|
2572
|
+
},
|
|
2573
|
+
direction: {
|
|
2574
|
+
type: 'string',
|
|
2575
|
+
enum: ['INBOUND', 'OUTBOUND'],
|
|
2576
|
+
},
|
|
2577
|
+
content: {
|
|
2578
|
+
oneOf: [
|
|
2579
|
+
{
|
|
2580
|
+
$ref: '#/components/schemas/Text',
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
$ref: '#/components/schemas/Unsupported',
|
|
2584
|
+
},
|
|
2585
|
+
],
|
|
2586
|
+
},
|
|
2587
|
+
status: {
|
|
2588
|
+
type: 'string',
|
|
2589
|
+
enum: [
|
|
2590
|
+
'RECEIVED',
|
|
2591
|
+
'PENDING',
|
|
2592
|
+
'SENT',
|
|
2593
|
+
'DELIVERED',
|
|
2594
|
+
'READ',
|
|
2595
|
+
'FAILED',
|
|
2596
|
+
],
|
|
2597
|
+
},
|
|
2598
|
+
sentAt: {
|
|
2599
|
+
type: 'string',
|
|
2600
|
+
format: 'date-time',
|
|
2601
|
+
},
|
|
2602
|
+
deliveredAt: {
|
|
2603
|
+
type: 'string',
|
|
2604
|
+
format: 'date-time',
|
|
2605
|
+
},
|
|
2606
|
+
readAt: {
|
|
2607
|
+
type: 'string',
|
|
2608
|
+
format: 'date-time',
|
|
2609
|
+
},
|
|
2610
|
+
failureReason: {
|
|
2611
|
+
type: 'string',
|
|
2612
|
+
},
|
|
2613
|
+
sentByMemberId: {
|
|
2614
|
+
type: 'string',
|
|
2615
|
+
format: 'uuid',
|
|
2616
|
+
},
|
|
2617
|
+
sentByFirstName: {
|
|
2618
|
+
type: 'string',
|
|
2619
|
+
},
|
|
2620
|
+
sentByLastName: {
|
|
2621
|
+
type: 'string',
|
|
2622
|
+
},
|
|
2623
|
+
sentByPicture: {
|
|
2624
|
+
type: 'string',
|
|
2625
|
+
},
|
|
2626
|
+
},
|
|
2627
|
+
};
|
|
2628
|
+
export const TextSchema = {
|
|
2629
|
+
allOf: [
|
|
2630
|
+
{
|
|
2631
|
+
$ref: '#/components/schemas/MessageContent',
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
type: 'object',
|
|
2635
|
+
properties: {
|
|
2636
|
+
body: {
|
|
2637
|
+
type: 'string',
|
|
2638
|
+
},
|
|
2639
|
+
},
|
|
2640
|
+
},
|
|
2641
|
+
],
|
|
2642
|
+
};
|
|
2643
|
+
export const UnsupportedSchema = {
|
|
2644
|
+
allOf: [
|
|
2645
|
+
{
|
|
2646
|
+
$ref: '#/components/schemas/MessageContent',
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
type: 'object',
|
|
2650
|
+
properties: {
|
|
2651
|
+
kind: {
|
|
2652
|
+
type: 'string',
|
|
2653
|
+
},
|
|
2654
|
+
},
|
|
2655
|
+
},
|
|
2656
|
+
],
|
|
2657
|
+
};
|
|
2394
2658
|
export const ConstantInterestResponseSchema = {
|
|
2395
2659
|
type: 'object',
|
|
2396
2660
|
properties: {
|
|
@@ -2508,6 +2772,9 @@ export const CommentViewSchema = {
|
|
|
2508
2772
|
authorLastName: {
|
|
2509
2773
|
type: 'string',
|
|
2510
2774
|
},
|
|
2775
|
+
sentByPicture: {
|
|
2776
|
+
type: 'string',
|
|
2777
|
+
},
|
|
2511
2778
|
body: {
|
|
2512
2779
|
type: 'string',
|
|
2513
2780
|
},
|
|
@@ -2642,24 +2909,6 @@ export const PagedModelContactGridResponseSchema = {
|
|
|
2642
2909
|
},
|
|
2643
2910
|
},
|
|
2644
2911
|
};
|
|
2645
|
-
export const ActiveBoostResponseSchema = {
|
|
2646
|
-
type: 'object',
|
|
2647
|
-
properties: {
|
|
2648
|
-
tier: {
|
|
2649
|
-
type: 'string',
|
|
2650
|
-
enum: ['VIP', 'VIP_PLUS', 'SUPER_VIP'],
|
|
2651
|
-
},
|
|
2652
|
-
activatedAt: {
|
|
2653
|
-
type: 'string',
|
|
2654
|
-
format: 'date',
|
|
2655
|
-
},
|
|
2656
|
-
expiresAt: {
|
|
2657
|
-
type: 'string',
|
|
2658
|
-
format: 'date',
|
|
2659
|
-
},
|
|
2660
|
-
},
|
|
2661
|
-
required: ['activatedAt', 'expiresAt', 'tier'],
|
|
2662
|
-
};
|
|
2663
2912
|
export const AgreementResponseSchema = {
|
|
2664
2913
|
type: 'object',
|
|
2665
2914
|
properties: {
|
|
@@ -2768,20 +3017,6 @@ export const Client360ResponseSchema = {
|
|
|
2768
3017
|
'updatedAt',
|
|
2769
3018
|
],
|
|
2770
3019
|
};
|
|
2771
|
-
export const ColoredListingResponseSchema = {
|
|
2772
|
-
type: 'object',
|
|
2773
|
-
properties: {
|
|
2774
|
-
activatedAt: {
|
|
2775
|
-
type: 'string',
|
|
2776
|
-
format: 'date',
|
|
2777
|
-
},
|
|
2778
|
-
expiresAt: {
|
|
2779
|
-
type: 'string',
|
|
2780
|
-
format: 'date',
|
|
2781
|
-
},
|
|
2782
|
-
},
|
|
2783
|
-
required: ['activatedAt', 'expiresAt'],
|
|
2784
|
-
};
|
|
2785
3020
|
export const CommunicationPreferenceResponseSchema = {
|
|
2786
3021
|
type: 'object',
|
|
2787
3022
|
properties: {
|
|
@@ -2821,42 +3056,6 @@ export const ContactInfoResponseSchema = {
|
|
|
2821
3056
|
},
|
|
2822
3057
|
required: ['gender', 'phoneNumber'],
|
|
2823
3058
|
};
|
|
2824
|
-
export const ContactListingsResponseSchema = {
|
|
2825
|
-
type: 'object',
|
|
2826
|
-
properties: {
|
|
2827
|
-
publicId: {
|
|
2828
|
-
type: 'integer',
|
|
2829
|
-
format: 'int64',
|
|
2830
|
-
},
|
|
2831
|
-
listingId: {
|
|
2832
|
-
type: 'string',
|
|
2833
|
-
format: 'uuid',
|
|
2834
|
-
},
|
|
2835
|
-
listingType: {
|
|
2836
|
-
type: 'string',
|
|
2837
|
-
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
2838
|
-
},
|
|
2839
|
-
price: {
|
|
2840
|
-
type: 'number',
|
|
2841
|
-
},
|
|
2842
|
-
deal: {
|
|
2843
|
-
$ref: '#/components/schemas/DealResponse',
|
|
2844
|
-
},
|
|
2845
|
-
platformListings: {
|
|
2846
|
-
type: 'array',
|
|
2847
|
-
items: {
|
|
2848
|
-
$ref: '#/components/schemas/PlatformListingResponse',
|
|
2849
|
-
},
|
|
2850
|
-
},
|
|
2851
|
-
},
|
|
2852
|
-
required: [
|
|
2853
|
-
'listingId',
|
|
2854
|
-
'listingType',
|
|
2855
|
-
'platformListings',
|
|
2856
|
-
'price',
|
|
2857
|
-
'publicId',
|
|
2858
|
-
],
|
|
2859
|
-
};
|
|
2860
3059
|
export const ContactPropertyResponseSchema = {
|
|
2861
3060
|
type: 'object',
|
|
2862
3061
|
properties: {
|
|
@@ -2912,7 +3111,8 @@ export const ContactPropertyResponseSchema = {
|
|
|
2912
3111
|
listings: {
|
|
2913
3112
|
type: 'array',
|
|
2914
3113
|
items: {
|
|
2915
|
-
|
|
3114
|
+
type: 'string',
|
|
3115
|
+
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
2916
3116
|
},
|
|
2917
3117
|
},
|
|
2918
3118
|
},
|
|
@@ -2925,60 +3125,6 @@ export const ContactPropertyResponseSchema = {
|
|
|
2925
3125
|
'type',
|
|
2926
3126
|
],
|
|
2927
3127
|
};
|
|
2928
|
-
export const DealResponseSchema = {
|
|
2929
|
-
type: 'object',
|
|
2930
|
-
properties: {
|
|
2931
|
-
type: {
|
|
2932
|
-
type: 'string',
|
|
2933
|
-
enum: ['FIXED_SALE', 'FIXED_RENT', 'PERCENTAGE', 'MONTHS_OF_RENT'],
|
|
2934
|
-
},
|
|
2935
|
-
rate: {
|
|
2936
|
-
type: 'number',
|
|
2937
|
-
},
|
|
2938
|
-
fixedAmount: {
|
|
2939
|
-
type: 'number',
|
|
2940
|
-
},
|
|
2941
|
-
months: {
|
|
2942
|
-
type: 'number',
|
|
2943
|
-
},
|
|
2944
|
-
commission: {
|
|
2945
|
-
type: 'number',
|
|
2946
|
-
},
|
|
2947
|
-
},
|
|
2948
|
-
required: ['commission', 'type'],
|
|
2949
|
-
};
|
|
2950
|
-
export const PlatformListingResponseSchema = {
|
|
2951
|
-
type: 'object',
|
|
2952
|
-
properties: {
|
|
2953
|
-
platformId: {
|
|
2954
|
-
type: 'integer',
|
|
2955
|
-
format: 'int64',
|
|
2956
|
-
},
|
|
2957
|
-
platformType: {
|
|
2958
|
-
type: 'string',
|
|
2959
|
-
enum: ['SS', 'MY_HOME'],
|
|
2960
|
-
},
|
|
2961
|
-
uploadDate: {
|
|
2962
|
-
type: 'string',
|
|
2963
|
-
format: 'date',
|
|
2964
|
-
},
|
|
2965
|
-
expiryDate: {
|
|
2966
|
-
type: 'string',
|
|
2967
|
-
format: 'date',
|
|
2968
|
-
},
|
|
2969
|
-
renewedDate: {
|
|
2970
|
-
type: 'string',
|
|
2971
|
-
format: 'date',
|
|
2972
|
-
},
|
|
2973
|
-
boost: {
|
|
2974
|
-
$ref: '#/components/schemas/ActiveBoostResponse',
|
|
2975
|
-
},
|
|
2976
|
-
coloredListing: {
|
|
2977
|
-
$ref: '#/components/schemas/ColoredListingResponse',
|
|
2978
|
-
},
|
|
2979
|
-
},
|
|
2980
|
-
required: ['expiryDate', 'platformId', 'platformType', 'uploadDate'],
|
|
2981
|
-
};
|
|
2982
3128
|
export const PropertyDetailsResponseSchema = {
|
|
2983
3129
|
type: 'object',
|
|
2984
3130
|
properties: {
|