@homespot-sdk/core 0.0.303 → 0.0.305
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 +324 -161
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +351 -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 +186 -88
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +431 -332
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +204 -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,68 @@ 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
|
+
title: {
|
|
447
|
+
type: 'string',
|
|
448
|
+
maxLength: 500,
|
|
449
|
+
minLength: 1,
|
|
450
|
+
},
|
|
451
|
+
nullifyTitle: {
|
|
452
|
+
type: 'boolean',
|
|
453
|
+
},
|
|
454
|
+
firstName: {
|
|
455
|
+
type: 'string',
|
|
456
|
+
maxLength: 20,
|
|
457
|
+
minLength: 1,
|
|
458
|
+
},
|
|
459
|
+
nullifyFirstName: {
|
|
460
|
+
type: 'boolean',
|
|
461
|
+
},
|
|
462
|
+
lastName: {
|
|
463
|
+
type: 'string',
|
|
464
|
+
maxLength: 20,
|
|
465
|
+
minLength: 1,
|
|
466
|
+
},
|
|
467
|
+
nullifyLastName: {
|
|
468
|
+
type: 'boolean',
|
|
469
|
+
},
|
|
470
|
+
gender: {
|
|
471
|
+
type: 'string',
|
|
472
|
+
enum: ['MALE', 'FEMALE', 'UNKNOWN'],
|
|
473
|
+
},
|
|
474
|
+
email: {
|
|
475
|
+
type: 'string',
|
|
476
|
+
format: 'email',
|
|
477
|
+
},
|
|
478
|
+
nullifyEmail: {
|
|
479
|
+
type: 'boolean',
|
|
480
|
+
},
|
|
481
|
+
contactMethods: {
|
|
482
|
+
type: 'array',
|
|
483
|
+
items: {
|
|
484
|
+
type: 'string',
|
|
485
|
+
enum: ['WHATSAPP', 'VIBER', 'PHONE_CALL'],
|
|
486
|
+
},
|
|
487
|
+
},
|
|
488
|
+
favoriteContactMethod: {
|
|
489
|
+
type: 'string',
|
|
490
|
+
enum: ['WHATSAPP', 'VIBER', 'PHONE_CALL'],
|
|
491
|
+
},
|
|
492
|
+
nullifyFavoriteContactMethod: {
|
|
493
|
+
type: 'boolean',
|
|
494
|
+
},
|
|
436
495
|
status: {
|
|
437
496
|
type: 'string',
|
|
438
497
|
enum: [
|
|
@@ -446,18 +505,11 @@ export const ContactStatusRequestSchema = {
|
|
|
446
505
|
'CLOSED',
|
|
447
506
|
],
|
|
448
507
|
},
|
|
449
|
-
},
|
|
450
|
-
required: ['status'],
|
|
451
|
-
};
|
|
452
|
-
export const ReprioritizeClientRequestSchema = {
|
|
453
|
-
type: 'object',
|
|
454
|
-
properties: {
|
|
455
508
|
priority: {
|
|
456
509
|
type: 'string',
|
|
457
510
|
enum: ['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'],
|
|
458
511
|
},
|
|
459
512
|
},
|
|
460
|
-
required: ['priority'],
|
|
461
513
|
};
|
|
462
514
|
export const RecordLostContactRequestSchema = {
|
|
463
515
|
type: 'object',
|
|
@@ -479,52 +531,6 @@ export const RecordLostContactRequestSchema = {
|
|
|
479
531
|
},
|
|
480
532
|
required: ['reason'],
|
|
481
533
|
};
|
|
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
534
|
export const ReassignMemberRequestSchema = {
|
|
529
535
|
type: 'object',
|
|
530
536
|
properties: {
|
|
@@ -730,6 +736,53 @@ export const RateRecommendationItemRequestSchema = {
|
|
|
730
736
|
},
|
|
731
737
|
required: ['decision'],
|
|
732
738
|
};
|
|
739
|
+
export const SendMessageRequestSchema = {
|
|
740
|
+
type: 'object',
|
|
741
|
+
properties: {
|
|
742
|
+
text: {
|
|
743
|
+
type: 'string',
|
|
744
|
+
maxLength: 2000,
|
|
745
|
+
minLength: 0,
|
|
746
|
+
},
|
|
747
|
+
},
|
|
748
|
+
required: ['text'],
|
|
749
|
+
};
|
|
750
|
+
export const ProblemDetailSchema = {
|
|
751
|
+
type: 'object',
|
|
752
|
+
properties: {
|
|
753
|
+
type: {
|
|
754
|
+
type: 'string',
|
|
755
|
+
format: 'uri',
|
|
756
|
+
},
|
|
757
|
+
title: {
|
|
758
|
+
type: 'string',
|
|
759
|
+
},
|
|
760
|
+
status: {
|
|
761
|
+
type: 'integer',
|
|
762
|
+
format: 'int32',
|
|
763
|
+
},
|
|
764
|
+
detail: {
|
|
765
|
+
type: 'string',
|
|
766
|
+
},
|
|
767
|
+
instance: {
|
|
768
|
+
type: 'string',
|
|
769
|
+
format: 'uri',
|
|
770
|
+
},
|
|
771
|
+
properties: {
|
|
772
|
+
type: 'object',
|
|
773
|
+
additionalProperties: {},
|
|
774
|
+
},
|
|
775
|
+
},
|
|
776
|
+
};
|
|
777
|
+
export const SendMessageResponseSchema = {
|
|
778
|
+
type: 'object',
|
|
779
|
+
properties: {
|
|
780
|
+
messageId: {
|
|
781
|
+
type: 'string',
|
|
782
|
+
format: 'uuid',
|
|
783
|
+
},
|
|
784
|
+
},
|
|
785
|
+
};
|
|
733
786
|
export const AttendeeRequestSchema = {
|
|
734
787
|
type: 'object',
|
|
735
788
|
properties: {
|
|
@@ -1007,12 +1060,53 @@ export const IdResponseUUIDSchema = {
|
|
|
1007
1060
|
},
|
|
1008
1061
|
required: ['id'],
|
|
1009
1062
|
};
|
|
1063
|
+
export const ContactInfoRequestSchema = {
|
|
1064
|
+
type: 'object',
|
|
1065
|
+
properties: {
|
|
1066
|
+
firstName: {
|
|
1067
|
+
type: 'string',
|
|
1068
|
+
maxLength: 20,
|
|
1069
|
+
minLength: 1,
|
|
1070
|
+
},
|
|
1071
|
+
lastName: {
|
|
1072
|
+
type: 'string',
|
|
1073
|
+
maxLength: 20,
|
|
1074
|
+
minLength: 1,
|
|
1075
|
+
},
|
|
1076
|
+
gender: {
|
|
1077
|
+
type: 'string',
|
|
1078
|
+
enum: ['MALE', 'FEMALE', 'UNKNOWN'],
|
|
1079
|
+
},
|
|
1080
|
+
email: {
|
|
1081
|
+
type: 'string',
|
|
1082
|
+
format: 'email',
|
|
1083
|
+
},
|
|
1084
|
+
},
|
|
1085
|
+
};
|
|
1086
|
+
export const ContactTitleRequestSchema = {
|
|
1087
|
+
type: 'object',
|
|
1088
|
+
properties: {
|
|
1089
|
+
title: {
|
|
1090
|
+
type: 'string',
|
|
1091
|
+
maxLength: 500,
|
|
1092
|
+
minLength: 1,
|
|
1093
|
+
},
|
|
1094
|
+
},
|
|
1095
|
+
};
|
|
1010
1096
|
export const OnboardClientRequestSchema = {
|
|
1011
1097
|
type: 'object',
|
|
1012
1098
|
properties: {
|
|
1099
|
+
title: {
|
|
1100
|
+
$ref: '#/components/schemas/ContactTitleRequest',
|
|
1101
|
+
},
|
|
1013
1102
|
contactInfo: {
|
|
1014
1103
|
$ref: '#/components/schemas/ContactInfoRequest',
|
|
1015
1104
|
},
|
|
1105
|
+
phoneNumber: {
|
|
1106
|
+
type: 'string',
|
|
1107
|
+
maxLength: 20,
|
|
1108
|
+
minLength: 1,
|
|
1109
|
+
},
|
|
1016
1110
|
contactMethods: {
|
|
1017
1111
|
type: 'array',
|
|
1018
1112
|
items: {
|
|
@@ -1030,7 +1124,7 @@ export const OnboardClientRequestSchema = {
|
|
|
1030
1124
|
enum: ['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'],
|
|
1031
1125
|
},
|
|
1032
1126
|
},
|
|
1033
|
-
required: ['contactInfo', 'contactMethods'],
|
|
1127
|
+
required: ['contactInfo', 'contactMethods', 'phoneNumber', 'title'],
|
|
1034
1128
|
};
|
|
1035
1129
|
export const IdResponseLongSchema = {
|
|
1036
1130
|
type: 'object',
|
|
@@ -2391,6 +2485,197 @@ export const PagedModelInvitationViewResponseSchema = {
|
|
|
2391
2485
|
},
|
|
2392
2486
|
},
|
|
2393
2487
|
};
|
|
2488
|
+
export const CursorPageInboxResponseSchema = {
|
|
2489
|
+
type: 'object',
|
|
2490
|
+
properties: {
|
|
2491
|
+
items: {
|
|
2492
|
+
type: 'array',
|
|
2493
|
+
items: {
|
|
2494
|
+
$ref: '#/components/schemas/InboxResponse',
|
|
2495
|
+
},
|
|
2496
|
+
},
|
|
2497
|
+
nextCursor: {
|
|
2498
|
+
type: 'string',
|
|
2499
|
+
},
|
|
2500
|
+
hasNext: {
|
|
2501
|
+
type: 'boolean',
|
|
2502
|
+
},
|
|
2503
|
+
},
|
|
2504
|
+
};
|
|
2505
|
+
export const InboxResponseSchema = {
|
|
2506
|
+
type: 'object',
|
|
2507
|
+
properties: {
|
|
2508
|
+
conversationId: {
|
|
2509
|
+
type: 'string',
|
|
2510
|
+
format: 'uuid',
|
|
2511
|
+
},
|
|
2512
|
+
lastMessageAt: {
|
|
2513
|
+
type: 'string',
|
|
2514
|
+
format: 'date-time',
|
|
2515
|
+
},
|
|
2516
|
+
unreadCount: {
|
|
2517
|
+
type: 'integer',
|
|
2518
|
+
format: 'int32',
|
|
2519
|
+
},
|
|
2520
|
+
lastMessagePreview: {
|
|
2521
|
+
type: 'string',
|
|
2522
|
+
},
|
|
2523
|
+
direction: {
|
|
2524
|
+
type: 'string',
|
|
2525
|
+
enum: ['INBOUND', 'OUTBOUND'],
|
|
2526
|
+
},
|
|
2527
|
+
channelType: {
|
|
2528
|
+
type: 'string',
|
|
2529
|
+
enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP'],
|
|
2530
|
+
},
|
|
2531
|
+
contactId: {
|
|
2532
|
+
type: 'integer',
|
|
2533
|
+
format: 'int64',
|
|
2534
|
+
},
|
|
2535
|
+
isReachable: {
|
|
2536
|
+
type: 'boolean',
|
|
2537
|
+
},
|
|
2538
|
+
contactFirstName: {
|
|
2539
|
+
type: 'string',
|
|
2540
|
+
},
|
|
2541
|
+
contactLastName: {
|
|
2542
|
+
type: 'string',
|
|
2543
|
+
},
|
|
2544
|
+
managedBy: {
|
|
2545
|
+
type: 'string',
|
|
2546
|
+
format: 'uuid',
|
|
2547
|
+
},
|
|
2548
|
+
memberFirstName: {
|
|
2549
|
+
type: 'string',
|
|
2550
|
+
},
|
|
2551
|
+
memberLastName: {
|
|
2552
|
+
type: 'string',
|
|
2553
|
+
},
|
|
2554
|
+
memberPicture: {
|
|
2555
|
+
type: 'string',
|
|
2556
|
+
},
|
|
2557
|
+
},
|
|
2558
|
+
};
|
|
2559
|
+
export const CursorPageMessageViewSchema = {
|
|
2560
|
+
type: 'object',
|
|
2561
|
+
properties: {
|
|
2562
|
+
items: {
|
|
2563
|
+
type: 'array',
|
|
2564
|
+
items: {
|
|
2565
|
+
$ref: '#/components/schemas/MessageView',
|
|
2566
|
+
},
|
|
2567
|
+
},
|
|
2568
|
+
nextCursor: {
|
|
2569
|
+
type: 'string',
|
|
2570
|
+
},
|
|
2571
|
+
hasNext: {
|
|
2572
|
+
type: 'boolean',
|
|
2573
|
+
},
|
|
2574
|
+
},
|
|
2575
|
+
};
|
|
2576
|
+
export const MessageContentSchema = {
|
|
2577
|
+
discriminator: {
|
|
2578
|
+
propertyName: '@type',
|
|
2579
|
+
},
|
|
2580
|
+
properties: {
|
|
2581
|
+
'@type': {
|
|
2582
|
+
type: 'string',
|
|
2583
|
+
},
|
|
2584
|
+
},
|
|
2585
|
+
required: ['@type'],
|
|
2586
|
+
};
|
|
2587
|
+
export const MessageViewSchema = {
|
|
2588
|
+
type: 'object',
|
|
2589
|
+
properties: {
|
|
2590
|
+
id: {
|
|
2591
|
+
type: 'string',
|
|
2592
|
+
format: 'uuid',
|
|
2593
|
+
},
|
|
2594
|
+
direction: {
|
|
2595
|
+
type: 'string',
|
|
2596
|
+
enum: ['INBOUND', 'OUTBOUND'],
|
|
2597
|
+
},
|
|
2598
|
+
content: {
|
|
2599
|
+
oneOf: [
|
|
2600
|
+
{
|
|
2601
|
+
$ref: '#/components/schemas/Text',
|
|
2602
|
+
},
|
|
2603
|
+
{
|
|
2604
|
+
$ref: '#/components/schemas/Unsupported',
|
|
2605
|
+
},
|
|
2606
|
+
],
|
|
2607
|
+
},
|
|
2608
|
+
status: {
|
|
2609
|
+
type: 'string',
|
|
2610
|
+
enum: [
|
|
2611
|
+
'RECEIVED',
|
|
2612
|
+
'PENDING',
|
|
2613
|
+
'SENT',
|
|
2614
|
+
'DELIVERED',
|
|
2615
|
+
'READ',
|
|
2616
|
+
'FAILED',
|
|
2617
|
+
],
|
|
2618
|
+
},
|
|
2619
|
+
sentAt: {
|
|
2620
|
+
type: 'string',
|
|
2621
|
+
format: 'date-time',
|
|
2622
|
+
},
|
|
2623
|
+
deliveredAt: {
|
|
2624
|
+
type: 'string',
|
|
2625
|
+
format: 'date-time',
|
|
2626
|
+
},
|
|
2627
|
+
readAt: {
|
|
2628
|
+
type: 'string',
|
|
2629
|
+
format: 'date-time',
|
|
2630
|
+
},
|
|
2631
|
+
failureReason: {
|
|
2632
|
+
type: 'string',
|
|
2633
|
+
},
|
|
2634
|
+
sentByMemberId: {
|
|
2635
|
+
type: 'string',
|
|
2636
|
+
format: 'uuid',
|
|
2637
|
+
},
|
|
2638
|
+
sentByFirstName: {
|
|
2639
|
+
type: 'string',
|
|
2640
|
+
},
|
|
2641
|
+
sentByLastName: {
|
|
2642
|
+
type: 'string',
|
|
2643
|
+
},
|
|
2644
|
+
sentByPicture: {
|
|
2645
|
+
type: 'string',
|
|
2646
|
+
},
|
|
2647
|
+
},
|
|
2648
|
+
};
|
|
2649
|
+
export const TextSchema = {
|
|
2650
|
+
allOf: [
|
|
2651
|
+
{
|
|
2652
|
+
$ref: '#/components/schemas/MessageContent',
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
type: 'object',
|
|
2656
|
+
properties: {
|
|
2657
|
+
body: {
|
|
2658
|
+
type: 'string',
|
|
2659
|
+
},
|
|
2660
|
+
},
|
|
2661
|
+
},
|
|
2662
|
+
],
|
|
2663
|
+
};
|
|
2664
|
+
export const UnsupportedSchema = {
|
|
2665
|
+
allOf: [
|
|
2666
|
+
{
|
|
2667
|
+
$ref: '#/components/schemas/MessageContent',
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
type: 'object',
|
|
2671
|
+
properties: {
|
|
2672
|
+
kind: {
|
|
2673
|
+
type: 'string',
|
|
2674
|
+
},
|
|
2675
|
+
},
|
|
2676
|
+
},
|
|
2677
|
+
],
|
|
2678
|
+
};
|
|
2394
2679
|
export const ConstantInterestResponseSchema = {
|
|
2395
2680
|
type: 'object',
|
|
2396
2681
|
properties: {
|
|
@@ -2508,6 +2793,9 @@ export const CommentViewSchema = {
|
|
|
2508
2793
|
authorLastName: {
|
|
2509
2794
|
type: 'string',
|
|
2510
2795
|
},
|
|
2796
|
+
sentByPicture: {
|
|
2797
|
+
type: 'string',
|
|
2798
|
+
},
|
|
2511
2799
|
body: {
|
|
2512
2800
|
type: 'string',
|
|
2513
2801
|
},
|
|
@@ -2558,6 +2846,9 @@ export const ContactGridResponseSchema = {
|
|
|
2558
2846
|
assignedTo: {
|
|
2559
2847
|
$ref: '#/components/schemas/AssignedToResponse',
|
|
2560
2848
|
},
|
|
2849
|
+
title: {
|
|
2850
|
+
type: 'string',
|
|
2851
|
+
},
|
|
2561
2852
|
status: {
|
|
2562
2853
|
type: 'string',
|
|
2563
2854
|
enum: [
|
|
@@ -2642,24 +2933,6 @@ export const PagedModelContactGridResponseSchema = {
|
|
|
2642
2933
|
},
|
|
2643
2934
|
},
|
|
2644
2935
|
};
|
|
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
2936
|
export const AgreementResponseSchema = {
|
|
2664
2937
|
type: 'object',
|
|
2665
2938
|
properties: {
|
|
@@ -2714,6 +2987,9 @@ export const Client360ResponseSchema = {
|
|
|
2714
2987
|
assignedMember: {
|
|
2715
2988
|
$ref: '#/components/schemas/AssignedMember',
|
|
2716
2989
|
},
|
|
2990
|
+
contactTitle: {
|
|
2991
|
+
type: 'string',
|
|
2992
|
+
},
|
|
2717
2993
|
contactInfo: {
|
|
2718
2994
|
$ref: '#/components/schemas/ContactInfoResponse',
|
|
2719
2995
|
},
|
|
@@ -2768,20 +3044,6 @@ export const Client360ResponseSchema = {
|
|
|
2768
3044
|
'updatedAt',
|
|
2769
3045
|
],
|
|
2770
3046
|
};
|
|
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
3047
|
export const CommunicationPreferenceResponseSchema = {
|
|
2786
3048
|
type: 'object',
|
|
2787
3049
|
properties: {
|
|
@@ -2821,42 +3083,6 @@ export const ContactInfoResponseSchema = {
|
|
|
2821
3083
|
},
|
|
2822
3084
|
required: ['gender', 'phoneNumber'],
|
|
2823
3085
|
};
|
|
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
3086
|
export const ContactPropertyResponseSchema = {
|
|
2861
3087
|
type: 'object',
|
|
2862
3088
|
properties: {
|
|
@@ -2912,7 +3138,8 @@ export const ContactPropertyResponseSchema = {
|
|
|
2912
3138
|
listings: {
|
|
2913
3139
|
type: 'array',
|
|
2914
3140
|
items: {
|
|
2915
|
-
|
|
3141
|
+
type: 'string',
|
|
3142
|
+
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
2916
3143
|
},
|
|
2917
3144
|
},
|
|
2918
3145
|
},
|
|
@@ -2925,60 +3152,6 @@ export const ContactPropertyResponseSchema = {
|
|
|
2925
3152
|
'type',
|
|
2926
3153
|
],
|
|
2927
3154
|
};
|
|
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
3155
|
export const PropertyDetailsResponseSchema = {
|
|
2983
3156
|
type: 'object',
|
|
2984
3157
|
properties: {
|