@homespot-sdk/core 0.0.325 → 0.0.327

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.
@@ -565,17 +565,58 @@ export type AddressResponse = {
565
565
  lat: number;
566
566
  lng: number;
567
567
  };
568
- export type PagedModelRecommendationsCardView = {
569
- content?: Array<RecommendationsCardView>;
570
- page?: PageMetadata;
568
+ export type BoundingBox = {
569
+ minLat: number;
570
+ maxLat: number;
571
+ minLng: number;
572
+ maxLng: number;
571
573
  };
572
- export type RecommendationResponse = {
573
- shareToken: string;
574
+ export type Criteria = {
575
+ 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'>;
576
+ listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
577
+ budget?: RangeBigDecimal;
578
+ bedrooms?: RangeInteger;
579
+ bathrooms?: RangeInteger;
580
+ totalArea?: RangeDouble;
581
+ livingArea?: RangeDouble;
582
+ region?: LocationResponse;
583
+ district?: LocationResponse;
584
+ subDistrict?: LocationResponse;
585
+ street?: LocationResponse;
586
+ };
587
+ export type InterestResponse = {
588
+ id: number;
574
589
  title: string;
575
- createdAt: Date;
576
590
  status: 'UNPUBLISHED' | 'PUBLISHED' | 'CLOSED';
591
+ shareToken: string;
592
+ createdAt: Date;
593
+ criteria: Criteria;
594
+ recommendationStats: RecommendationStats;
595
+ boundedBox?: BoundingBox;
577
596
  recommendations: PagedModelRecommendationsCardView;
578
597
  };
598
+ export type PagedModelRecommendationsCardView = {
599
+ content?: Array<RecommendationsCardView>;
600
+ page?: PageMetadata;
601
+ };
602
+ export type RangeBigDecimal = {
603
+ min?: number;
604
+ max?: number;
605
+ };
606
+ export type RangeDouble = {
607
+ min?: number;
608
+ max?: number;
609
+ };
610
+ export type RangeInteger = {
611
+ min?: number;
612
+ max?: number;
613
+ };
614
+ export type RecommendationStats = {
615
+ total: number;
616
+ liked: number;
617
+ disliked: number;
618
+ undecided: number;
619
+ };
579
620
  export type RecommendationsCardView = {
580
621
  decision?: 'MAYBE' | 'DISLIKE' | 'LIKE';
581
622
  clientNote?: string;
@@ -986,46 +1027,6 @@ export type CursorPageMessageView = {
986
1027
  nextCursor?: string;
987
1028
  hasNext?: boolean;
988
1029
  };
989
- export type Criteria = {
990
- 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'>;
991
- listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
992
- budget?: RangeBigDecimal;
993
- bedrooms?: RangeInteger;
994
- bathrooms?: RangeInteger;
995
- totalArea?: RangeDouble;
996
- livingArea?: RangeDouble;
997
- region?: LocationResponse;
998
- district?: LocationResponse;
999
- subDistrict?: LocationResponse;
1000
- street?: LocationResponse;
1001
- };
1002
- export type InterestResponse = {
1003
- id: number;
1004
- title: string;
1005
- status: 'UNPUBLISHED' | 'PUBLISHED' | 'CLOSED';
1006
- shareToken: string;
1007
- createdAt: Date;
1008
- criteria: Criteria;
1009
- recommendations: RecommendationStats;
1010
- };
1011
- export type RangeBigDecimal = {
1012
- min?: number;
1013
- max?: number;
1014
- };
1015
- export type RangeDouble = {
1016
- min?: number;
1017
- max?: number;
1018
- };
1019
- export type RangeInteger = {
1020
- min?: number;
1021
- max?: number;
1022
- };
1023
- export type RecommendationStats = {
1024
- total: number;
1025
- liked: number;
1026
- disliked: number;
1027
- undecided: number;
1028
- };
1029
1030
  export type CommentView = {
1030
1031
  id: string;
1031
1032
  contactId: number;
@@ -1085,7 +1086,7 @@ export type Client360Response = {
1085
1086
  status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
1086
1087
  createdAt: Date;
1087
1088
  updatedAt: Date;
1088
- interests: Array<InterestResponse>;
1089
+ interests: Array<ContactInterestResponse>;
1089
1090
  properties: Array<ContactPropertyResponse>;
1090
1091
  };
1091
1092
  export type CommunicationPreferenceResponse = {
@@ -1099,6 +1100,15 @@ export type ContactInfoResponse = {
1099
1100
  phoneNumber: string;
1100
1101
  email?: string;
1101
1102
  };
1103
+ export type ContactInterestResponse = {
1104
+ id: number;
1105
+ title: string;
1106
+ status: 'UNPUBLISHED' | 'PUBLISHED' | 'CLOSED';
1107
+ shareToken: string;
1108
+ createdAt: Date;
1109
+ criteria: Criteria;
1110
+ recommendations: RecommendationStats;
1111
+ };
1102
1112
  export type ContactPropertyResponse = {
1103
1113
  publicId: number;
1104
1114
  propertyId: string;
@@ -1135,6 +1145,50 @@ export type PhoneDuplicateCheckResponse = {
1135
1145
  policy: 'ALLOW' | 'WARN' | 'PREVENT';
1136
1146
  matches: Array<DuplicateContactInfo>;
1137
1147
  };
1148
+ export type Card = {
1149
+ contactId: number;
1150
+ contactName?: string;
1151
+ phoneNumber?: string;
1152
+ priority: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
1153
+ status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
1154
+ assignedTo?: AssignedToResponse;
1155
+ totalCommission: number;
1156
+ preview?: InterestPreview | PropertyPreview;
1157
+ };
1158
+ export type Column = {
1159
+ status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
1160
+ totalCommission: number;
1161
+ totalContacts: number;
1162
+ cards: PagedModelCard;
1163
+ };
1164
+ export type ContactKanbanResponse = {
1165
+ columns: Array<Column>;
1166
+ };
1167
+ export type InterestPreview = Omit<Preview, 'type'> & {
1168
+ interestId: number;
1169
+ listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
1170
+ 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'>;
1171
+ budget?: RangeBigDecimal;
1172
+ primaryLocation?: LocationResponse;
1173
+ recommendationCount: number;
1174
+ type: 'INTEREST';
1175
+ };
1176
+ export type PagedModelCard = {
1177
+ content?: Array<Card>;
1178
+ page?: PageMetadata;
1179
+ };
1180
+ export type Preview = {
1181
+ type: string;
1182
+ };
1183
+ export type PropertyPreview = Omit<Preview, 'type'> & {
1184
+ propertyId: number;
1185
+ propertyType: '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';
1186
+ state: 'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED';
1187
+ title?: string;
1188
+ coverUrl?: string;
1189
+ listingTypes: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
1190
+ type: 'PROPERTY';
1191
+ };
1138
1192
  export type AddressViewResponse = {
1139
1193
  country: string;
1140
1194
  city: string;
@@ -1500,7 +1554,25 @@ export type GetContactsByContactIdInterestsByInterestIdData = {
1500
1554
  contactId: number;
1501
1555
  interestId: number;
1502
1556
  };
1503
- query?: never;
1557
+ query?: {
1558
+ decision?: 'MAYBE' | 'DISLIKE' | 'LIKE';
1559
+ swLat?: number;
1560
+ swLng?: number;
1561
+ neLat?: number;
1562
+ neLng?: number;
1563
+ /**
1564
+ * Zero-based page index (0..N)
1565
+ */
1566
+ page?: number;
1567
+ /**
1568
+ * The size of the page to be returned
1569
+ */
1570
+ size?: number;
1571
+ /**
1572
+ * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
1573
+ */
1574
+ sort?: Array<string>;
1575
+ };
1504
1576
  url: '/contacts/{contactId}/interests/{interestId}';
1505
1577
  };
1506
1578
  export type GetContactsByContactIdInterestsByInterestIdResponses = {
@@ -1758,6 +1830,21 @@ export type PutContactByContactIdAssignmentResponses = {
1758
1830
  204: void;
1759
1831
  };
1760
1832
  export type PutContactByContactIdAssignmentResponse = PutContactByContactIdAssignmentResponses[keyof PutContactByContactIdAssignmentResponses];
1833
+ export type PutContactByContactIdArchiveData = {
1834
+ body?: never;
1835
+ path: {
1836
+ contactId: number;
1837
+ };
1838
+ query?: never;
1839
+ url: '/contact/{contactId}/archive';
1840
+ };
1841
+ export type PutContactByContactIdArchiveResponses = {
1842
+ /**
1843
+ * No Content
1844
+ */
1845
+ 204: void;
1846
+ };
1847
+ export type PutContactByContactIdArchiveResponse = PutContactByContactIdArchiveResponses[keyof PutContactByContactIdArchiveResponses];
1761
1848
  export type PutContactMergeData = {
1762
1849
  body: ContactMergeRequest;
1763
1850
  path?: never;
@@ -2678,6 +2765,7 @@ export type GetContactData = {
2678
2765
  areaMax?: number;
2679
2766
  roomsMin?: number;
2680
2767
  roomsMax?: number;
2768
+ includeArchived?: boolean;
2681
2769
  /**
2682
2770
  * Zero-based page index (0..N)
2683
2771
  */
@@ -2889,6 +2977,10 @@ export type GetPublicRecomendationsByTokenItemsData = {
2889
2977
  };
2890
2978
  query?: {
2891
2979
  decision?: 'MAYBE' | 'DISLIKE' | 'LIKE';
2980
+ swLat?: number;
2981
+ swLng?: number;
2982
+ neLat?: number;
2983
+ neLng?: number;
2892
2984
  /**
2893
2985
  * Zero-based page index (0..N)
2894
2986
  */
@@ -2908,7 +3000,7 @@ export type GetPublicRecomendationsByTokenItemsResponses = {
2908
3000
  /**
2909
3001
  * OK
2910
3002
  */
2911
- 200: RecommendationResponse;
3003
+ 200: InterestResponse;
2912
3004
  };
2913
3005
  export type GetPublicRecomendationsByTokenItemsResponse = GetPublicRecomendationsByTokenItemsResponses[keyof GetPublicRecomendationsByTokenItemsResponses];
2914
3006
  export type GetPublicRecomendationsByTokenDecisionsData = {
@@ -3425,36 +3517,37 @@ export type GetConversationsByConversationIdUpdatesResponses = {
3425
3517
  200: ThreadUpdates;
3426
3518
  };
3427
3519
  export type GetConversationsByConversationIdUpdatesResponse = GetConversationsByConversationIdUpdatesResponses[keyof GetConversationsByConversationIdUpdatesResponses];
3428
- export type GetContactsByContactIdInterestsByInterestIdRecommendationsData = {
3520
+ export type GetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsData = {
3429
3521
  body?: never;
3430
3522
  path: {
3431
3523
  contactId: number;
3432
3524
  interestId: number;
3433
3525
  };
3434
- query?: {
3435
- decision?: 'MAYBE' | 'DISLIKE' | 'LIKE';
3436
- /**
3437
- * Zero-based page index (0..N)
3438
- */
3439
- page?: number;
3440
- /**
3441
- * The size of the page to be returned
3442
- */
3443
- size?: number;
3444
- /**
3445
- * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
3446
- */
3447
- sort?: Array<string>;
3448
- };
3449
- url: '/contacts/{contactId}/interests/{interestId}/recommendations';
3526
+ query?: never;
3527
+ url: '/contacts/{contactId}/interests/{interestId}/recommendations/decisions';
3450
3528
  };
3451
- export type GetContactsByContactIdInterestsByInterestIdRecommendationsResponses = {
3529
+ export type GetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponses = {
3452
3530
  /**
3453
3531
  * OK
3454
3532
  */
3455
- 200: RecommendationResponse;
3533
+ 200: Array<RecommendationDecisionResponse>;
3534
+ };
3535
+ export type GetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponse = GetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponses[keyof GetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponses];
3536
+ export type DeleteContactByContactIdData = {
3537
+ body?: never;
3538
+ path: {
3539
+ contactId: number;
3540
+ };
3541
+ query?: never;
3542
+ url: '/contact/{contactId}';
3543
+ };
3544
+ export type DeleteContactByContactIdResponses = {
3545
+ /**
3546
+ * No Content
3547
+ */
3548
+ 204: void;
3456
3549
  };
3457
- export type GetContactsByContactIdInterestsByInterestIdRecommendationsResponse = GetContactsByContactIdInterestsByInterestIdRecommendationsResponses[keyof GetContactsByContactIdInterestsByInterestIdRecommendationsResponses];
3550
+ export type DeleteContactByContactIdResponse = DeleteContactByContactIdResponses[keyof DeleteContactByContactIdResponses];
3458
3551
  export type GetContactByContactIdData = {
3459
3552
  body?: never;
3460
3553
  path: {
@@ -3540,6 +3633,98 @@ export type GetContactGroupsResponses = {
3540
3633
  200: Array<GroupCount>;
3541
3634
  };
3542
3635
  export type GetContactGroupsResponse = GetContactGroupsResponses[keyof GetContactGroupsResponses];
3636
+ export type GetContactBoardData = {
3637
+ body?: never;
3638
+ path?: never;
3639
+ query?: {
3640
+ statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON'>;
3641
+ priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
3642
+ isSearching?: boolean;
3643
+ isListing?: boolean;
3644
+ assignedTo?: Array<string>;
3645
+ createdBy?: string;
3646
+ contactName?: string;
3647
+ contactPhone?: string;
3648
+ contactEmail?: string;
3649
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
3650
+ contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
3651
+ createdFrom?: Date;
3652
+ createdTo?: Date;
3653
+ listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
3654
+ 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'>;
3655
+ regionId?: number;
3656
+ districtId?: number;
3657
+ subDistrictId?: number;
3658
+ streetId?: number;
3659
+ priceMin?: number;
3660
+ priceMax?: number;
3661
+ areaMin?: number;
3662
+ areaMax?: number;
3663
+ roomsMin?: number;
3664
+ roomsMax?: number;
3665
+ };
3666
+ url: '/contact/board';
3667
+ };
3668
+ export type GetContactBoardResponses = {
3669
+ /**
3670
+ * OK
3671
+ */
3672
+ 200: ContactKanbanResponse;
3673
+ };
3674
+ export type GetContactBoardResponse = GetContactBoardResponses[keyof GetContactBoardResponses];
3675
+ export type GetContactBoardByStatusCardsData = {
3676
+ body?: never;
3677
+ path: {
3678
+ status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
3679
+ };
3680
+ query?: {
3681
+ statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON'>;
3682
+ priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
3683
+ isSearching?: boolean;
3684
+ isListing?: boolean;
3685
+ assignedTo?: Array<string>;
3686
+ createdBy?: string;
3687
+ contactName?: string;
3688
+ contactPhone?: string;
3689
+ contactEmail?: string;
3690
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
3691
+ contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
3692
+ createdFrom?: Date;
3693
+ createdTo?: Date;
3694
+ listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
3695
+ 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'>;
3696
+ regionId?: number;
3697
+ districtId?: number;
3698
+ subDistrictId?: number;
3699
+ streetId?: number;
3700
+ priceMin?: number;
3701
+ priceMax?: number;
3702
+ areaMin?: number;
3703
+ areaMax?: number;
3704
+ roomsMin?: number;
3705
+ roomsMax?: number;
3706
+ /**
3707
+ * Zero-based page index (0..N)
3708
+ */
3709
+ page?: number;
3710
+ /**
3711
+ * The size of the page to be returned
3712
+ */
3713
+ size?: number;
3714
+ /**
3715
+ * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
3716
+ */
3717
+ sort?: Array<string>;
3718
+ };
3719
+ url: '/contact/board/{status}/cards';
3720
+ };
3721
+ export type GetContactBoardByStatusCardsResponses = {
3722
+ /**
3723
+ * OK
3724
+ */
3725
+ 200: PagedModelCard;
3726
+ };
3727
+ export type GetContactBoardByStatusCardsResponse = GetContactBoardByStatusCardsResponses[keyof GetContactBoardByStatusCardsResponses];
3543
3728
  export type GetAgencyByAgencyIdOwnerData = {
3544
3729
  body?: never;
3545
3730
  path: {