@homespot-sdk/core 0.0.302 → 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/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 +26 -0
- package/dist/property/schemas.gen.d.ts.map +1 -1
- package/dist/property/schemas.gen.js +47 -0
- package/dist/property/schemas.gen.js.map +1 -1
- package/dist/property/sdk.gen.d.ts +2 -1
- package/dist/property/sdk.gen.d.ts.map +1 -1
- package/dist/property/sdk.gen.js +9 -0
- package/dist/property/sdk.gen.js.map +1 -1
- package/dist/property/types.gen.d.ts +22 -0
- package/dist/property/types.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.d.ts +66 -0
- package/dist/property/zod.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.js +53 -0
- 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 +311 -167
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +363 -184
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +15 -12
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +53 -38
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +6 -2
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +50 -30
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +237 -126
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +508 -345
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +250 -126
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -430,34 +430,78 @@ 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: [
|
|
439
490
|
'NEW',
|
|
440
491
|
'ON_HOLD',
|
|
441
492
|
'COLD',
|
|
442
|
-
'
|
|
493
|
+
'WARM',
|
|
443
494
|
'HOT',
|
|
444
495
|
'WAITING_PAYMENT',
|
|
445
496
|
'LOST',
|
|
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',
|
|
@@ -1831,7 +1904,11 @@ export const OauthConnectionResponseSchema = {
|
|
|
1831
1904
|
},
|
|
1832
1905
|
provider: {
|
|
1833
1906
|
type: 'string',
|
|
1834
|
-
enum: ['
|
|
1907
|
+
enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP'],
|
|
1908
|
+
},
|
|
1909
|
+
status: {
|
|
1910
|
+
type: 'string',
|
|
1911
|
+
enum: ['ACTIVE', 'REVOKED'],
|
|
1835
1912
|
},
|
|
1836
1913
|
pagePicture: {
|
|
1837
1914
|
type: 'string',
|
|
@@ -1847,8 +1924,19 @@ export const OauthConnectionResponseSchema = {
|
|
|
1847
1924
|
type: 'string',
|
|
1848
1925
|
format: 'date-time',
|
|
1849
1926
|
},
|
|
1927
|
+
revokedAt: {
|
|
1928
|
+
type: 'string',
|
|
1929
|
+
format: 'date-time',
|
|
1930
|
+
},
|
|
1850
1931
|
},
|
|
1851
|
-
required: [
|
|
1932
|
+
required: [
|
|
1933
|
+
'agencyId',
|
|
1934
|
+
'createdAt',
|
|
1935
|
+
'provider',
|
|
1936
|
+
'status',
|
|
1937
|
+
'updatedAt',
|
|
1938
|
+
'userId',
|
|
1939
|
+
],
|
|
1852
1940
|
};
|
|
1853
1941
|
export const MemberViewResponseSchema = {
|
|
1854
1942
|
type: 'object',
|
|
@@ -2376,6 +2464,197 @@ export const PagedModelInvitationViewResponseSchema = {
|
|
|
2376
2464
|
},
|
|
2377
2465
|
},
|
|
2378
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
|
+
};
|
|
2379
2658
|
export const ConstantInterestResponseSchema = {
|
|
2380
2659
|
type: 'object',
|
|
2381
2660
|
properties: {
|
|
@@ -2493,6 +2772,9 @@ export const CommentViewSchema = {
|
|
|
2493
2772
|
authorLastName: {
|
|
2494
2773
|
type: 'string',
|
|
2495
2774
|
},
|
|
2775
|
+
sentByPicture: {
|
|
2776
|
+
type: 'string',
|
|
2777
|
+
},
|
|
2496
2778
|
body: {
|
|
2497
2779
|
type: 'string',
|
|
2498
2780
|
},
|
|
@@ -2549,7 +2831,7 @@ export const ContactGridResponseSchema = {
|
|
|
2549
2831
|
'NEW',
|
|
2550
2832
|
'ON_HOLD',
|
|
2551
2833
|
'COLD',
|
|
2552
|
-
'
|
|
2834
|
+
'WARM',
|
|
2553
2835
|
'HOT',
|
|
2554
2836
|
'WAITING_PAYMENT',
|
|
2555
2837
|
'LOST',
|
|
@@ -2575,7 +2857,16 @@ export const ContactGridResponseSchema = {
|
|
|
2575
2857
|
},
|
|
2576
2858
|
sourceType: {
|
|
2577
2859
|
type: 'string',
|
|
2578
|
-
enum: [
|
|
2860
|
+
enum: [
|
|
2861
|
+
'MY_HOME',
|
|
2862
|
+
'SS',
|
|
2863
|
+
'HOME_SPOT',
|
|
2864
|
+
'AGENCY_MEMBER',
|
|
2865
|
+
'FACEBOOK',
|
|
2866
|
+
'INSTAGRAM',
|
|
2867
|
+
'WHATSAPP',
|
|
2868
|
+
'UNKNOWN',
|
|
2869
|
+
],
|
|
2579
2870
|
},
|
|
2580
2871
|
sourceLink: {
|
|
2581
2872
|
type: 'string',
|
|
@@ -2618,24 +2909,6 @@ export const PagedModelContactGridResponseSchema = {
|
|
|
2618
2909
|
},
|
|
2619
2910
|
},
|
|
2620
2911
|
};
|
|
2621
|
-
export const ActiveBoostResponseSchema = {
|
|
2622
|
-
type: 'object',
|
|
2623
|
-
properties: {
|
|
2624
|
-
tier: {
|
|
2625
|
-
type: 'string',
|
|
2626
|
-
enum: ['VIP', 'VIP_PLUS', 'SUPER_VIP'],
|
|
2627
|
-
},
|
|
2628
|
-
activatedAt: {
|
|
2629
|
-
type: 'string',
|
|
2630
|
-
format: 'date',
|
|
2631
|
-
},
|
|
2632
|
-
expiresAt: {
|
|
2633
|
-
type: 'string',
|
|
2634
|
-
format: 'date',
|
|
2635
|
-
},
|
|
2636
|
-
},
|
|
2637
|
-
required: ['activatedAt', 'expiresAt', 'tier'],
|
|
2638
|
-
};
|
|
2639
2912
|
export const AgreementResponseSchema = {
|
|
2640
2913
|
type: 'object',
|
|
2641
2914
|
properties: {
|
|
@@ -2744,20 +3017,6 @@ export const Client360ResponseSchema = {
|
|
|
2744
3017
|
'updatedAt',
|
|
2745
3018
|
],
|
|
2746
3019
|
};
|
|
2747
|
-
export const ColoredListingResponseSchema = {
|
|
2748
|
-
type: 'object',
|
|
2749
|
-
properties: {
|
|
2750
|
-
activatedAt: {
|
|
2751
|
-
type: 'string',
|
|
2752
|
-
format: 'date',
|
|
2753
|
-
},
|
|
2754
|
-
expiresAt: {
|
|
2755
|
-
type: 'string',
|
|
2756
|
-
format: 'date',
|
|
2757
|
-
},
|
|
2758
|
-
},
|
|
2759
|
-
required: ['activatedAt', 'expiresAt'],
|
|
2760
|
-
};
|
|
2761
3020
|
export const CommunicationPreferenceResponseSchema = {
|
|
2762
3021
|
type: 'object',
|
|
2763
3022
|
properties: {
|
|
@@ -2797,42 +3056,6 @@ export const ContactInfoResponseSchema = {
|
|
|
2797
3056
|
},
|
|
2798
3057
|
required: ['gender', 'phoneNumber'],
|
|
2799
3058
|
};
|
|
2800
|
-
export const ContactListingsResponseSchema = {
|
|
2801
|
-
type: 'object',
|
|
2802
|
-
properties: {
|
|
2803
|
-
publicId: {
|
|
2804
|
-
type: 'integer',
|
|
2805
|
-
format: 'int64',
|
|
2806
|
-
},
|
|
2807
|
-
listingId: {
|
|
2808
|
-
type: 'string',
|
|
2809
|
-
format: 'uuid',
|
|
2810
|
-
},
|
|
2811
|
-
listingType: {
|
|
2812
|
-
type: 'string',
|
|
2813
|
-
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
2814
|
-
},
|
|
2815
|
-
price: {
|
|
2816
|
-
type: 'number',
|
|
2817
|
-
},
|
|
2818
|
-
deal: {
|
|
2819
|
-
$ref: '#/components/schemas/DealResponse',
|
|
2820
|
-
},
|
|
2821
|
-
platformListings: {
|
|
2822
|
-
type: 'array',
|
|
2823
|
-
items: {
|
|
2824
|
-
$ref: '#/components/schemas/PlatformListingResponse',
|
|
2825
|
-
},
|
|
2826
|
-
},
|
|
2827
|
-
},
|
|
2828
|
-
required: [
|
|
2829
|
-
'listingId',
|
|
2830
|
-
'listingType',
|
|
2831
|
-
'platformListings',
|
|
2832
|
-
'price',
|
|
2833
|
-
'publicId',
|
|
2834
|
-
],
|
|
2835
|
-
};
|
|
2836
3059
|
export const ContactPropertyResponseSchema = {
|
|
2837
3060
|
type: 'object',
|
|
2838
3061
|
properties: {
|
|
@@ -2888,7 +3111,8 @@ export const ContactPropertyResponseSchema = {
|
|
|
2888
3111
|
listings: {
|
|
2889
3112
|
type: 'array',
|
|
2890
3113
|
items: {
|
|
2891
|
-
|
|
3114
|
+
type: 'string',
|
|
3115
|
+
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
2892
3116
|
},
|
|
2893
3117
|
},
|
|
2894
3118
|
},
|
|
@@ -2901,60 +3125,6 @@ export const ContactPropertyResponseSchema = {
|
|
|
2901
3125
|
'type',
|
|
2902
3126
|
],
|
|
2903
3127
|
};
|
|
2904
|
-
export const DealResponseSchema = {
|
|
2905
|
-
type: 'object',
|
|
2906
|
-
properties: {
|
|
2907
|
-
type: {
|
|
2908
|
-
type: 'string',
|
|
2909
|
-
enum: ['FIXED_SALE', 'FIXED_RENT', 'PERCENTAGE', 'MONTHS_OF_RENT'],
|
|
2910
|
-
},
|
|
2911
|
-
rate: {
|
|
2912
|
-
type: 'number',
|
|
2913
|
-
},
|
|
2914
|
-
fixedAmount: {
|
|
2915
|
-
type: 'number',
|
|
2916
|
-
},
|
|
2917
|
-
months: {
|
|
2918
|
-
type: 'number',
|
|
2919
|
-
},
|
|
2920
|
-
commission: {
|
|
2921
|
-
type: 'number',
|
|
2922
|
-
},
|
|
2923
|
-
},
|
|
2924
|
-
required: ['commission', 'type'],
|
|
2925
|
-
};
|
|
2926
|
-
export const PlatformListingResponseSchema = {
|
|
2927
|
-
type: 'object',
|
|
2928
|
-
properties: {
|
|
2929
|
-
platformId: {
|
|
2930
|
-
type: 'integer',
|
|
2931
|
-
format: 'int64',
|
|
2932
|
-
},
|
|
2933
|
-
platformType: {
|
|
2934
|
-
type: 'string',
|
|
2935
|
-
enum: ['SS', 'MY_HOME'],
|
|
2936
|
-
},
|
|
2937
|
-
uploadDate: {
|
|
2938
|
-
type: 'string',
|
|
2939
|
-
format: 'date',
|
|
2940
|
-
},
|
|
2941
|
-
expiryDate: {
|
|
2942
|
-
type: 'string',
|
|
2943
|
-
format: 'date',
|
|
2944
|
-
},
|
|
2945
|
-
renewedDate: {
|
|
2946
|
-
type: 'string',
|
|
2947
|
-
format: 'date',
|
|
2948
|
-
},
|
|
2949
|
-
boost: {
|
|
2950
|
-
$ref: '#/components/schemas/ActiveBoostResponse',
|
|
2951
|
-
},
|
|
2952
|
-
coloredListing: {
|
|
2953
|
-
$ref: '#/components/schemas/ColoredListingResponse',
|
|
2954
|
-
},
|
|
2955
|
-
},
|
|
2956
|
-
required: ['expiryDate', 'platformId', 'platformType', 'uploadDate'],
|
|
2957
|
-
};
|
|
2958
3128
|
export const PropertyDetailsResponseSchema = {
|
|
2959
3129
|
type: 'object',
|
|
2960
3130
|
properties: {
|
|
@@ -2991,7 +3161,16 @@ export const SourceResponseSchema = {
|
|
|
2991
3161
|
properties: {
|
|
2992
3162
|
sourceType: {
|
|
2993
3163
|
type: 'string',
|
|
2994
|
-
enum: [
|
|
3164
|
+
enum: [
|
|
3165
|
+
'MY_HOME',
|
|
3166
|
+
'SS',
|
|
3167
|
+
'HOME_SPOT',
|
|
3168
|
+
'AGENCY_MEMBER',
|
|
3169
|
+
'FACEBOOK',
|
|
3170
|
+
'INSTAGRAM',
|
|
3171
|
+
'WHATSAPP',
|
|
3172
|
+
'UNKNOWN',
|
|
3173
|
+
],
|
|
2995
3174
|
},
|
|
2996
3175
|
sourceLink: {
|
|
2997
3176
|
type: 'string',
|