@homespot-sdk/core 0.0.329 → 0.0.331

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.
@@ -824,6 +824,13 @@ export type CursorPageNotificationView = {
824
824
  nextCursor?: string;
825
825
  hasNext?: boolean;
826
826
  };
827
+ export type ListingExpired = {
828
+ contactId?: ContactId;
829
+ propertyId?: PropertyId;
830
+ listingId?: number;
831
+ propertyTitle?: string;
832
+ kind: 'LISTING_EXPIRED';
833
+ };
827
834
  export type MemberId = {
828
835
  value?: string;
829
836
  };
@@ -835,6 +842,16 @@ export type NewMessage = {
835
842
  displayName?: string;
836
843
  kind: 'NEW_MESSAGE';
837
844
  };
845
+ export type NewSeekerRating = {
846
+ id?: InterestId;
847
+ contactId?: ContactId;
848
+ contactName?: string;
849
+ propertyId?: PropertyId;
850
+ propertyTitle?: string;
851
+ decision?: 'MAYBE' | 'DISLIKE' | 'LIKE';
852
+ notePreview?: string;
853
+ kind: 'NEW_SEEKER_RATING';
854
+ };
838
855
  export type NotificationContent = unknown;
839
856
  export type NotificationFeed = {
840
857
  unreadCount: number;
@@ -843,12 +860,15 @@ export type NotificationFeed = {
843
860
  export type NotificationView = {
844
861
  id: string;
845
862
  seq: number;
846
- type: 'NEW_MESSAGE' | 'CONTACT_ASSIGNED';
863
+ type: 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED';
847
864
  targetId?: string;
848
- payload: ContactAssigned | NewMessage;
865
+ payload: ContactAssigned | ListingExpired | NewMessage | NewSeekerRating;
849
866
  createdAt: Date;
850
867
  read: boolean;
851
868
  };
869
+ export type PropertyId = {
870
+ value?: number;
871
+ };
852
872
  export type UnreadCount = {
853
873
  count: number;
854
874
  };
@@ -915,9 +935,6 @@ export type MeetingDetailView = {
915
935
  attendees: Array<AttendeeView>;
916
936
  createdAt: Date;
917
937
  };
918
- export type PropertyId = {
919
- value?: number;
920
- };
921
938
  export type AssignedToResponse = {
922
939
  memberId: string;
923
940
  firstName: string;
@@ -1052,14 +1069,15 @@ export type CommentView = {
1052
1069
  authorId: string;
1053
1070
  authorFirstName: string;
1054
1071
  authorLastName: string;
1055
- sentByPicture?: string;
1072
+ profilePictureUrl?: string;
1056
1073
  body: string;
1057
1074
  createdAt: Date;
1058
1075
  editedAt?: Date;
1059
1076
  };
1060
- export type PagedModelCommentView = {
1061
- content?: Array<CommentView>;
1062
- page?: PageMetadata;
1077
+ export type CursorPageCommentView = {
1078
+ items?: Array<CommentView>;
1079
+ nextCursor?: string;
1080
+ hasNext?: boolean;
1063
1081
  };
1064
1082
  export type ContactGridResponse = {
1065
1083
  id: number;
@@ -1172,17 +1190,23 @@ export type Card = {
1172
1190
  status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
1173
1191
  assignedTo?: AssignedToResponse;
1174
1192
  totalCommission: number;
1193
+ updatedAt: Date;
1175
1194
  preview?: InterestPreview | PropertyPreview;
1176
1195
  };
1177
1196
  export type Column = {
1178
1197
  status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
1179
1198
  totalCommission: number;
1180
1199
  totalContacts: number;
1181
- cards: PagedModelCard;
1200
+ cards: CursorPageCard;
1182
1201
  };
1183
1202
  export type ContactKanbanResponse = {
1184
1203
  columns: Array<Column>;
1185
1204
  };
1205
+ export type CursorPageCard = {
1206
+ items?: Array<Card>;
1207
+ nextCursor?: string;
1208
+ hasNext?: boolean;
1209
+ };
1186
1210
  export type InterestPreview = Omit<Preview, 'type'> & {
1187
1211
  interestId: number;
1188
1212
  listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
@@ -1196,10 +1220,6 @@ export type ListingTypePrice = {
1196
1220
  listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
1197
1221
  price: number;
1198
1222
  };
1199
- export type PagedModelCard = {
1200
- content?: Array<Card>;
1201
- page?: PageMetadata;
1202
- };
1203
1223
  export type Preview = {
1204
1224
  type: string;
1205
1225
  };
@@ -2722,18 +2742,8 @@ export type GetContactsByContactIdCommentsData = {
2722
2742
  };
2723
2743
  query?: {
2724
2744
  onlyMine?: boolean;
2725
- /**
2726
- * Zero-based page index (0..N)
2727
- */
2728
- page?: number;
2729
- /**
2730
- * The size of the page to be returned
2731
- */
2732
- size?: number;
2733
- /**
2734
- * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
2735
- */
2736
- sort?: Array<string>;
2745
+ cursor?: string;
2746
+ limit?: number;
2737
2747
  };
2738
2748
  url: '/contacts/{contactId}/comments';
2739
2749
  };
@@ -2741,7 +2751,7 @@ export type GetContactsByContactIdCommentsResponses = {
2741
2751
  /**
2742
2752
  * OK
2743
2753
  */
2744
- 200: PagedModelCommentView;
2754
+ 200: CursorPageCommentView;
2745
2755
  };
2746
2756
  export type GetContactsByContactIdCommentsResponse = GetContactsByContactIdCommentsResponses[keyof GetContactsByContactIdCommentsResponses];
2747
2757
  export type PostContactsByContactIdCommentsData = {
@@ -3757,18 +3767,8 @@ export type GetContactBoardByStatusCardsData = {
3757
3767
  areaMax?: number;
3758
3768
  roomsMin?: number;
3759
3769
  roomsMax?: number;
3760
- /**
3761
- * Zero-based page index (0..N)
3762
- */
3763
- page?: number;
3764
- /**
3765
- * The size of the page to be returned
3766
- */
3767
- size?: number;
3768
- /**
3769
- * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
3770
- */
3771
- sort?: Array<string>;
3770
+ cursor?: string;
3771
+ limit?: number;
3772
3772
  };
3773
3773
  url: '/contact/board/{status}/cards';
3774
3774
  };
@@ -3776,7 +3776,7 @@ export type GetContactBoardByStatusCardsResponses = {
3776
3776
  /**
3777
3777
  * OK
3778
3778
  */
3779
- 200: PagedModelCard;
3779
+ 200: CursorPageCard;
3780
3780
  };
3781
3781
  export type GetContactBoardByStatusCardsResponse = GetContactBoardByStatusCardsResponses[keyof GetContactBoardByStatusCardsResponses];
3782
3782
  export type GetAgencyByAgencyIdOwnerData = {