@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.
@@ -107,25 +107,25 @@ export type LocationTargetRequest = {
107
107
  export type CommentBodyRequest = {
108
108
  body: string;
109
109
  };
110
- export type ContactStatusRequest = {
111
- status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'CLOSED';
112
- };
113
- export type ReprioritizeClientRequest = {
114
- priority: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
115
- };
116
- export type RecordLostContactRequest = {
117
- reason: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
118
- };
119
- export type UpdateContactPreferencesRequest = {
120
- contactMethods: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
121
- favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
110
+ export type PhoneNumberRequest = {
111
+ phoneNumber: string;
122
112
  };
123
- export type ContactInfoRequest = {
113
+ export type UpdateContactDetailsRequest = {
124
114
  firstName?: string;
115
+ nullifyFirstName?: boolean;
125
116
  lastName?: string;
117
+ nullifyLastName?: boolean;
126
118
  gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
127
119
  email?: string;
128
- phone: string;
120
+ nullifyEmail?: boolean;
121
+ contactMethods?: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
122
+ favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
123
+ nullifyFavoriteContactMethod?: boolean;
124
+ status?: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'CLOSED';
125
+ priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
126
+ };
127
+ export type RecordLostContactRequest = {
128
+ reason: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
129
129
  };
130
130
  export type ReassignMemberRequest = {
131
131
  memberId: string;
@@ -183,6 +183,22 @@ export type RateRecommendationItemRequest = {
183
183
  decision: 'MAYBE' | 'DISLIKE' | 'LIKE' | 'VISIT';
184
184
  note?: string;
185
185
  };
186
+ export type SendMessageRequest = {
187
+ text: string;
188
+ };
189
+ export type ProblemDetail = {
190
+ type?: string;
191
+ title?: string;
192
+ status?: number;
193
+ detail?: string;
194
+ instance?: string;
195
+ properties?: {
196
+ [key: string]: unknown;
197
+ };
198
+ };
199
+ export type SendMessageResponse = {
200
+ messageId?: string;
201
+ };
186
202
  export type AttendeeRequest = {
187
203
  role: 'ORGANIZER' | 'MEMBER' | 'OWNER' | 'CLIENT' | 'OTHER';
188
204
  memberId?: string;
@@ -255,8 +271,15 @@ export type InterestId = {
255
271
  export type IdResponseUuid = {
256
272
  id: string;
257
273
  };
274
+ export type ContactInfoRequest = {
275
+ firstName?: string;
276
+ lastName?: string;
277
+ gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
278
+ email?: string;
279
+ };
258
280
  export type OnboardClientRequest = {
259
281
  contactInfo: ContactInfoRequest;
282
+ phoneNumber: string;
260
283
  contactMethods: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
261
284
  favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
262
285
  priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
@@ -588,6 +611,57 @@ export type PagedModelInvitationViewResponse = {
588
611
  content?: Array<InvitationViewResponse>;
589
612
  page?: PageMetadata;
590
613
  };
614
+ export type CursorPageInboxResponse = {
615
+ items?: Array<InboxResponse>;
616
+ nextCursor?: string;
617
+ hasNext?: boolean;
618
+ };
619
+ export type InboxResponse = {
620
+ conversationId?: string;
621
+ lastMessageAt?: Date;
622
+ unreadCount?: number;
623
+ lastMessagePreview?: string;
624
+ direction?: 'INBOUND' | 'OUTBOUND';
625
+ channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
626
+ contactId?: number;
627
+ isReachable?: boolean;
628
+ contactFirstName?: string;
629
+ contactLastName?: string;
630
+ managedBy?: string;
631
+ memberFirstName?: string;
632
+ memberLastName?: string;
633
+ memberPicture?: string;
634
+ };
635
+ export type CursorPageMessageView = {
636
+ items?: Array<MessageView>;
637
+ nextCursor?: string;
638
+ hasNext?: boolean;
639
+ };
640
+ export type MessageContent = {
641
+ '@type': string;
642
+ };
643
+ export type MessageView = {
644
+ id?: string;
645
+ direction?: 'INBOUND' | 'OUTBOUND';
646
+ content?: Text | Unsupported;
647
+ status?: 'RECEIVED' | 'PENDING' | 'SENT' | 'DELIVERED' | 'READ' | 'FAILED';
648
+ sentAt?: Date;
649
+ deliveredAt?: Date;
650
+ readAt?: Date;
651
+ failureReason?: string;
652
+ sentByMemberId?: string;
653
+ sentByFirstName?: string;
654
+ sentByLastName?: string;
655
+ sentByPicture?: string;
656
+ };
657
+ export type Text = Omit<MessageContent, '@type'> & {
658
+ body?: string;
659
+ '@type': 'Text';
660
+ };
661
+ export type Unsupported = Omit<MessageContent, '@type'> & {
662
+ kind?: string;
663
+ '@type': 'Unsupported';
664
+ };
591
665
  export type ConstantInterestResponse = {
592
666
  id: number;
593
667
  propertyTypes: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
@@ -614,6 +688,7 @@ export type CommentView = {
614
688
  authorId: string;
615
689
  authorFirstName: string;
616
690
  authorLastName: string;
691
+ sentByPicture?: string;
617
692
  body: string;
618
693
  createdAt: Date;
619
694
  editedAt?: Date;
@@ -643,11 +718,6 @@ export type PagedModelContactGridResponse = {
643
718
  content?: Array<ContactGridResponse>;
644
719
  page?: PageMetadata;
645
720
  };
646
- export type ActiveBoostResponse = {
647
- tier: 'VIP' | 'VIP_PLUS' | 'SUPER_VIP';
648
- activatedAt: Date;
649
- expiresAt: Date;
650
- };
651
721
  export type AgreementResponse = {
652
722
  agreement: 'EXCLUSIVE' | 'NON_EXCLUSIVE';
653
723
  expiryDate?: Date;
@@ -675,10 +745,6 @@ export type Client360Response = {
675
745
  interests: Array<ConstantInterestResponse>;
676
746
  properties: Array<ContactPropertyResponse>;
677
747
  };
678
- export type ColoredListingResponse = {
679
- activatedAt: Date;
680
- expiresAt: Date;
681
- };
682
748
  export type CommunicationPreferenceResponse = {
683
749
  preferredContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
684
750
  contactMethods: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
@@ -690,14 +756,6 @@ export type ContactInfoResponse = {
690
756
  phoneNumber: string;
691
757
  email?: string;
692
758
  };
693
- export type ContactListingsResponse = {
694
- publicId: number;
695
- listingId: string;
696
- listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
697
- price: number;
698
- deal?: DealResponse;
699
- platformListings: Array<PlatformListingResponse>;
700
- };
701
759
  export type ContactPropertyResponse = {
702
760
  publicId: number;
703
761
  propertyId: string;
@@ -705,23 +763,7 @@ export type ContactPropertyResponse = {
705
763
  state: 'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED';
706
764
  details?: PropertyDetailsResponse;
707
765
  agreement: AgreementResponse;
708
- listings: Array<ContactListingsResponse>;
709
- };
710
- export type DealResponse = {
711
- type: 'FIXED_SALE' | 'FIXED_RENT' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
712
- rate?: number;
713
- fixedAmount?: number;
714
- months?: number;
715
- commission: number;
716
- };
717
- export type PlatformListingResponse = {
718
- platformId: number;
719
- platformType: 'SS' | 'MY_HOME';
720
- uploadDate: Date;
721
- expiryDate: Date;
722
- renewedDate?: Date;
723
- boost?: ActiveBoostResponse;
724
- coloredListing?: ColoredListingResponse;
766
+ listings: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
725
767
  };
726
768
  export type PropertyDetailsResponse = {
727
769
  title: string;
@@ -1158,36 +1200,36 @@ export type PutContactsByContactIdCommentsByCommentIdResponses = {
1158
1200
  */
1159
1201
  200: unknown;
1160
1202
  };
1161
- export type PutContactByContactIdUpdateStatusData = {
1162
- body: ContactStatusRequest;
1203
+ export type PutContactByContactIdUpdatePhoneNumberData = {
1204
+ body: PhoneNumberRequest;
1163
1205
  path: {
1164
1206
  contactId: number;
1165
1207
  };
1166
1208
  query?: never;
1167
- url: '/contact/{contactId}/update-status';
1209
+ url: '/contact/{contactId}/update-phone-number';
1168
1210
  };
1169
- export type PutContactByContactIdUpdateStatusResponses = {
1211
+ export type PutContactByContactIdUpdatePhoneNumberResponses = {
1170
1212
  /**
1171
1213
  * No Content
1172
1214
  */
1173
1215
  204: void;
1174
1216
  };
1175
- export type PutContactByContactIdUpdateStatusResponse = PutContactByContactIdUpdateStatusResponses[keyof PutContactByContactIdUpdateStatusResponses];
1176
- export type PutContactByContactIdPriorityData = {
1177
- body: ReprioritizeClientRequest;
1217
+ export type PutContactByContactIdUpdatePhoneNumberResponse = PutContactByContactIdUpdatePhoneNumberResponses[keyof PutContactByContactIdUpdatePhoneNumberResponses];
1218
+ export type PutContactByContactIdUpdateContactDetailsData = {
1219
+ body: UpdateContactDetailsRequest;
1178
1220
  path: {
1179
1221
  contactId: number;
1180
1222
  };
1181
1223
  query?: never;
1182
- url: '/contact/{contactId}/priority';
1224
+ url: '/contact/{contactId}/update-contact-details';
1183
1225
  };
1184
- export type PutContactByContactIdPriorityResponses = {
1226
+ export type PutContactByContactIdUpdateContactDetailsResponses = {
1185
1227
  /**
1186
1228
  * No Content
1187
1229
  */
1188
1230
  204: void;
1189
1231
  };
1190
- export type PutContactByContactIdPriorityResponse = PutContactByContactIdPriorityResponses[keyof PutContactByContactIdPriorityResponses];
1232
+ export type PutContactByContactIdUpdateContactDetailsResponse = PutContactByContactIdUpdateContactDetailsResponses[keyof PutContactByContactIdUpdateContactDetailsResponses];
1191
1233
  export type PutContactByContactIdLostData = {
1192
1234
  body: RecordLostContactRequest;
1193
1235
  path: {
@@ -1203,36 +1245,6 @@ export type PutContactByContactIdLostResponses = {
1203
1245
  204: void;
1204
1246
  };
1205
1247
  export type PutContactByContactIdLostResponse = PutContactByContactIdLostResponses[keyof PutContactByContactIdLostResponses];
1206
- export type PutContactByContactIdContactPreferencesData = {
1207
- body: UpdateContactPreferencesRequest;
1208
- path: {
1209
- contactId: number;
1210
- };
1211
- query?: never;
1212
- url: '/contact/{contactId}/contact-preferences';
1213
- };
1214
- export type PutContactByContactIdContactPreferencesResponses = {
1215
- /**
1216
- * No Content
1217
- */
1218
- 204: void;
1219
- };
1220
- export type PutContactByContactIdContactPreferencesResponse = PutContactByContactIdContactPreferencesResponses[keyof PutContactByContactIdContactPreferencesResponses];
1221
- export type PutContactByContactIdContactInfoData = {
1222
- body: ContactInfoRequest;
1223
- path: {
1224
- contactId: number;
1225
- };
1226
- query?: never;
1227
- url: '/contact/{contactId}/contact-info';
1228
- };
1229
- export type PutContactByContactIdContactInfoResponses = {
1230
- /**
1231
- * No Content
1232
- */
1233
- 204: void;
1234
- };
1235
- export type PutContactByContactIdContactInfoResponse = PutContactByContactIdContactInfoResponses[keyof PutContactByContactIdContactInfoResponses];
1236
1248
  export type PutContactByContactIdCloseData = {
1237
1249
  body?: never;
1238
1250
  path: {
@@ -1508,6 +1520,32 @@ export type PostPublicRecomendationsByRecommendationsIdItemsByItemIdRateResponse
1508
1520
  204: void;
1509
1521
  };
1510
1522
  export type PostPublicRecomendationsByRecommendationsIdItemsByItemIdRateResponse = PostPublicRecomendationsByRecommendationsIdItemsByItemIdRateResponses[keyof PostPublicRecomendationsByRecommendationsIdItemsByItemIdRateResponses];
1523
+ export type PostMessagingConversationsByConversationIdMessagesData = {
1524
+ body: SendMessageRequest;
1525
+ path: {
1526
+ conversationId: string;
1527
+ };
1528
+ query?: never;
1529
+ url: '/messaging/conversations/{conversationId}/messages';
1530
+ };
1531
+ export type PostMessagingConversationsByConversationIdMessagesErrors = {
1532
+ /**
1533
+ * Channel needs re-authorization
1534
+ */
1535
+ 409: ProblemDetail;
1536
+ /**
1537
+ * Free-form messaging window closed
1538
+ */
1539
+ 422: ProblemDetail;
1540
+ };
1541
+ export type PostMessagingConversationsByConversationIdMessagesError = PostMessagingConversationsByConversationIdMessagesErrors[keyof PostMessagingConversationsByConversationIdMessagesErrors];
1542
+ export type PostMessagingConversationsByConversationIdMessagesResponses = {
1543
+ /**
1544
+ * Message persisted and sent
1545
+ */
1546
+ 201: SendMessageResponse;
1547
+ };
1548
+ export type PostMessagingConversationsByConversationIdMessagesResponse = PostMessagingConversationsByConversationIdMessagesResponses[keyof PostMessagingConversationsByConversationIdMessagesResponses];
1511
1549
  export type PostMemberPresignedUrlsData = {
1512
1550
  body: PhotoRequest;
1513
1551
  path?: never;
@@ -2408,6 +2446,58 @@ export type GetListingGroupsResponses = {
2408
2446
  200: Array<GroupCount>;
2409
2447
  };
2410
2448
  export type GetListingGroupsResponse = GetListingGroupsResponses[keyof GetListingGroupsResponses];
2449
+ export type GetInboxData = {
2450
+ body?: never;
2451
+ path?: never;
2452
+ query?: {
2453
+ status?: 'OPEN' | 'RESOLVED';
2454
+ cursor?: string;
2455
+ limit?: number;
2456
+ };
2457
+ url: '/inbox';
2458
+ };
2459
+ export type GetInboxResponses = {
2460
+ /**
2461
+ * OK
2462
+ */
2463
+ 200: CursorPageInboxResponse;
2464
+ };
2465
+ export type GetInboxResponse = GetInboxResponses[keyof GetInboxResponses];
2466
+ export type GetInboxAgencyData = {
2467
+ body?: never;
2468
+ path?: never;
2469
+ query?: {
2470
+ status?: 'OPEN' | 'RESOLVED';
2471
+ cursor?: string;
2472
+ limit?: number;
2473
+ };
2474
+ url: '/inbox/agency';
2475
+ };
2476
+ export type GetInboxAgencyResponses = {
2477
+ /**
2478
+ * OK
2479
+ */
2480
+ 200: CursorPageInboxResponse;
2481
+ };
2482
+ export type GetInboxAgencyResponse = GetInboxAgencyResponses[keyof GetInboxAgencyResponses];
2483
+ export type GetConversationsByConversationIdMessagesData = {
2484
+ body?: never;
2485
+ path: {
2486
+ conversationId: string;
2487
+ };
2488
+ query?: {
2489
+ cursor?: string;
2490
+ limit?: number;
2491
+ };
2492
+ url: '/conversations/{conversationId}/messages';
2493
+ };
2494
+ export type GetConversationsByConversationIdMessagesResponses = {
2495
+ /**
2496
+ * OK
2497
+ */
2498
+ 200: CursorPageMessageView;
2499
+ };
2500
+ export type GetConversationsByConversationIdMessagesResponse = GetConversationsByConversationIdMessagesResponses[keyof GetConversationsByConversationIdMessagesResponses];
2411
2501
  export type GetContactsByContactIdRecommendationsByRecommendationsIdData = {
2412
2502
  body?: never;
2413
2503
  path: {