@homespot-sdk/core 0.0.326 → 0.0.328
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 +263 -1
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +351 -1
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +7 -1
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +30 -0
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +5 -1
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +228 -1
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +1469 -376
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +495 -1
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/types.gen.d.ts
CHANGED
|
@@ -648,6 +648,14 @@ export type PermissionResponse = {
|
|
|
648
648
|
permission: 'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'CONTACT_READ' | 'CONTACT_WRITE' | 'CONTACT_READ_ALL' | 'CONTACT_WRITE_ALL' | 'PROPERTY_READ_ALL';
|
|
649
649
|
implied: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'CONTACT_READ' | 'CONTACT_WRITE' | 'CONTACT_READ_ALL' | 'CONTACT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
|
|
650
650
|
};
|
|
651
|
+
export type ListingContactResponseUuid = {
|
|
652
|
+
id: string;
|
|
653
|
+
name?: string;
|
|
654
|
+
lastName?: string;
|
|
655
|
+
phone?: string;
|
|
656
|
+
email?: string;
|
|
657
|
+
profilePicture?: string;
|
|
658
|
+
};
|
|
651
659
|
export type InvitationDetailsResponse = {
|
|
652
660
|
invitationId: string;
|
|
653
661
|
agencyId: string;
|
|
@@ -786,6 +794,14 @@ export type PropertyPageResponse = {
|
|
|
786
794
|
updatedAt: Date;
|
|
787
795
|
closeReason?: PropertyCloseReasonResponse;
|
|
788
796
|
};
|
|
797
|
+
export type ListingContactResponseLong = {
|
|
798
|
+
id: number;
|
|
799
|
+
name?: string;
|
|
800
|
+
lastName?: string;
|
|
801
|
+
phone?: string;
|
|
802
|
+
email?: string;
|
|
803
|
+
profilePicture?: string;
|
|
804
|
+
};
|
|
789
805
|
export type ContactAssigned = {
|
|
790
806
|
contactId?: ContactId;
|
|
791
807
|
contactName?: string;
|
|
@@ -1086,7 +1102,7 @@ export type Client360Response = {
|
|
|
1086
1102
|
status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
|
|
1087
1103
|
createdAt: Date;
|
|
1088
1104
|
updatedAt: Date;
|
|
1089
|
-
interests: Array<
|
|
1105
|
+
interests: Array<ContactInterestResponse>;
|
|
1090
1106
|
properties: Array<ContactPropertyResponse>;
|
|
1091
1107
|
};
|
|
1092
1108
|
export type CommunicationPreferenceResponse = {
|
|
@@ -1100,6 +1116,15 @@ export type ContactInfoResponse = {
|
|
|
1100
1116
|
phoneNumber: string;
|
|
1101
1117
|
email?: string;
|
|
1102
1118
|
};
|
|
1119
|
+
export type ContactInterestResponse = {
|
|
1120
|
+
id: number;
|
|
1121
|
+
title: string;
|
|
1122
|
+
status: 'UNPUBLISHED' | 'PUBLISHED' | 'CLOSED';
|
|
1123
|
+
shareToken: string;
|
|
1124
|
+
createdAt: Date;
|
|
1125
|
+
criteria: Criteria;
|
|
1126
|
+
recommendations: RecommendationStats;
|
|
1127
|
+
};
|
|
1103
1128
|
export type ContactPropertyResponse = {
|
|
1104
1129
|
publicId: number;
|
|
1105
1130
|
propertyId: string;
|
|
@@ -1136,6 +1161,54 @@ export type PhoneDuplicateCheckResponse = {
|
|
|
1136
1161
|
policy: 'ALLOW' | 'WARN' | 'PREVENT';
|
|
1137
1162
|
matches: Array<DuplicateContactInfo>;
|
|
1138
1163
|
};
|
|
1164
|
+
export type Card = {
|
|
1165
|
+
contactId: number;
|
|
1166
|
+
contactName?: string;
|
|
1167
|
+
phoneNumber?: string;
|
|
1168
|
+
priority: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
|
|
1169
|
+
status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
|
|
1170
|
+
assignedTo?: AssignedToResponse;
|
|
1171
|
+
totalCommission: number;
|
|
1172
|
+
preview?: InterestPreview | PropertyPreview;
|
|
1173
|
+
};
|
|
1174
|
+
export type Column = {
|
|
1175
|
+
status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
|
|
1176
|
+
totalCommission: number;
|
|
1177
|
+
totalContacts: number;
|
|
1178
|
+
cards: PagedModelCard;
|
|
1179
|
+
};
|
|
1180
|
+
export type ContactKanbanResponse = {
|
|
1181
|
+
columns: Array<Column>;
|
|
1182
|
+
};
|
|
1183
|
+
export type InterestPreview = Omit<Preview, 'type'> & {
|
|
1184
|
+
interestId: number;
|
|
1185
|
+
listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
|
|
1186
|
+
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'>;
|
|
1187
|
+
budget?: RangeBigDecimal;
|
|
1188
|
+
primaryLocation?: LocationResponse;
|
|
1189
|
+
recommendationCount: number;
|
|
1190
|
+
type: 'INTEREST';
|
|
1191
|
+
};
|
|
1192
|
+
export type ListingTypePrice = {
|
|
1193
|
+
listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
|
|
1194
|
+
price: number;
|
|
1195
|
+
};
|
|
1196
|
+
export type PagedModelCard = {
|
|
1197
|
+
content?: Array<Card>;
|
|
1198
|
+
page?: PageMetadata;
|
|
1199
|
+
};
|
|
1200
|
+
export type Preview = {
|
|
1201
|
+
type: string;
|
|
1202
|
+
};
|
|
1203
|
+
export type PropertyPreview = Omit<Preview, 'type'> & {
|
|
1204
|
+
propertyId: number;
|
|
1205
|
+
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';
|
|
1206
|
+
state: 'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED';
|
|
1207
|
+
title?: string;
|
|
1208
|
+
coverUrl?: string;
|
|
1209
|
+
listingTypes: Array<ListingTypePrice>;
|
|
1210
|
+
type: 'PROPERTY';
|
|
1211
|
+
};
|
|
1139
1212
|
export type AddressViewResponse = {
|
|
1140
1213
|
country: string;
|
|
1141
1214
|
city: string;
|
|
@@ -1777,6 +1850,21 @@ export type PutContactByContactIdAssignmentResponses = {
|
|
|
1777
1850
|
204: void;
|
|
1778
1851
|
};
|
|
1779
1852
|
export type PutContactByContactIdAssignmentResponse = PutContactByContactIdAssignmentResponses[keyof PutContactByContactIdAssignmentResponses];
|
|
1853
|
+
export type PutContactByContactIdArchiveData = {
|
|
1854
|
+
body?: never;
|
|
1855
|
+
path: {
|
|
1856
|
+
contactId: number;
|
|
1857
|
+
};
|
|
1858
|
+
query?: never;
|
|
1859
|
+
url: '/contact/{contactId}/archive';
|
|
1860
|
+
};
|
|
1861
|
+
export type PutContactByContactIdArchiveResponses = {
|
|
1862
|
+
/**
|
|
1863
|
+
* No Content
|
|
1864
|
+
*/
|
|
1865
|
+
204: void;
|
|
1866
|
+
};
|
|
1867
|
+
export type PutContactByContactIdArchiveResponse = PutContactByContactIdArchiveResponses[keyof PutContactByContactIdArchiveResponses];
|
|
1780
1868
|
export type PutContactMergeData = {
|
|
1781
1869
|
body: ContactMergeRequest;
|
|
1782
1870
|
path?: never;
|
|
@@ -2697,6 +2785,7 @@ export type GetContactData = {
|
|
|
2697
2785
|
areaMax?: number;
|
|
2698
2786
|
roomsMin?: number;
|
|
2699
2787
|
roomsMax?: number;
|
|
2788
|
+
includeArchived?: boolean;
|
|
2700
2789
|
/**
|
|
2701
2790
|
* Zero-based page index (0..N)
|
|
2702
2791
|
*/
|
|
@@ -2994,6 +3083,21 @@ export type GetPublicOauthCallbackResponses = {
|
|
|
2994
3083
|
*/
|
|
2995
3084
|
200: unknown;
|
|
2996
3085
|
};
|
|
3086
|
+
export type GetPublicMemberByMemberIdData = {
|
|
3087
|
+
body?: never;
|
|
3088
|
+
path: {
|
|
3089
|
+
memberId: string;
|
|
3090
|
+
};
|
|
3091
|
+
query?: never;
|
|
3092
|
+
url: '/public/member/{memberId}';
|
|
3093
|
+
};
|
|
3094
|
+
export type GetPublicMemberByMemberIdResponses = {
|
|
3095
|
+
/**
|
|
3096
|
+
* OK
|
|
3097
|
+
*/
|
|
3098
|
+
200: ListingContactResponseUuid;
|
|
3099
|
+
};
|
|
3100
|
+
export type GetPublicMemberByMemberIdResponse = GetPublicMemberByMemberIdResponses[keyof GetPublicMemberByMemberIdResponses];
|
|
2997
3101
|
export type GetPublicInvitationByInvitationIdData = {
|
|
2998
3102
|
body?: never;
|
|
2999
3103
|
path: {
|
|
@@ -3083,6 +3187,22 @@ export type GetPropertyByPropertyIdPageResponses = {
|
|
|
3083
3187
|
200: PropertyPageResponse;
|
|
3084
3188
|
};
|
|
3085
3189
|
export type GetPropertyByPropertyIdPageResponse = GetPropertyByPropertyIdPageResponses[keyof GetPropertyByPropertyIdPageResponses];
|
|
3190
|
+
export type GetPropertyByExternalPropertyIdListingByExternalListingIdData = {
|
|
3191
|
+
body?: never;
|
|
3192
|
+
path: {
|
|
3193
|
+
externalPropertyId: string;
|
|
3194
|
+
externalListingId: string;
|
|
3195
|
+
};
|
|
3196
|
+
query?: never;
|
|
3197
|
+
url: '/property/{externalPropertyId}/listing/{externalListingId}';
|
|
3198
|
+
};
|
|
3199
|
+
export type GetPropertyByExternalPropertyIdListingByExternalListingIdResponses = {
|
|
3200
|
+
/**
|
|
3201
|
+
* OK
|
|
3202
|
+
*/
|
|
3203
|
+
200: ListingContactResponseLong;
|
|
3204
|
+
};
|
|
3205
|
+
export type GetPropertyByExternalPropertyIdListingByExternalListingIdResponse = GetPropertyByExternalPropertyIdListingByExternalListingIdResponses[keyof GetPropertyByExternalPropertyIdListingByExternalListingIdResponses];
|
|
3086
3206
|
export type GetOauthData = {
|
|
3087
3207
|
body?: never;
|
|
3088
3208
|
path?: never;
|
|
@@ -3464,6 +3584,21 @@ export type GetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsR
|
|
|
3464
3584
|
200: Array<RecommendationDecisionResponse>;
|
|
3465
3585
|
};
|
|
3466
3586
|
export type GetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponse = GetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponses[keyof GetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponses];
|
|
3587
|
+
export type DeleteContactByContactIdData = {
|
|
3588
|
+
body?: never;
|
|
3589
|
+
path: {
|
|
3590
|
+
contactId: number;
|
|
3591
|
+
};
|
|
3592
|
+
query?: never;
|
|
3593
|
+
url: '/contact/{contactId}';
|
|
3594
|
+
};
|
|
3595
|
+
export type DeleteContactByContactIdResponses = {
|
|
3596
|
+
/**
|
|
3597
|
+
* No Content
|
|
3598
|
+
*/
|
|
3599
|
+
204: void;
|
|
3600
|
+
};
|
|
3601
|
+
export type DeleteContactByContactIdResponse = DeleteContactByContactIdResponses[keyof DeleteContactByContactIdResponses];
|
|
3467
3602
|
export type GetContactByContactIdData = {
|
|
3468
3603
|
body?: never;
|
|
3469
3604
|
path: {
|
|
@@ -3549,6 +3684,98 @@ export type GetContactGroupsResponses = {
|
|
|
3549
3684
|
200: Array<GroupCount>;
|
|
3550
3685
|
};
|
|
3551
3686
|
export type GetContactGroupsResponse = GetContactGroupsResponses[keyof GetContactGroupsResponses];
|
|
3687
|
+
export type GetContactBoardData = {
|
|
3688
|
+
body?: never;
|
|
3689
|
+
path?: never;
|
|
3690
|
+
query?: {
|
|
3691
|
+
statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON'>;
|
|
3692
|
+
priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
|
|
3693
|
+
isSearching?: boolean;
|
|
3694
|
+
isListing?: boolean;
|
|
3695
|
+
assignedTo?: Array<string>;
|
|
3696
|
+
createdBy?: string;
|
|
3697
|
+
contactName?: string;
|
|
3698
|
+
contactPhone?: string;
|
|
3699
|
+
contactEmail?: string;
|
|
3700
|
+
sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
|
|
3701
|
+
contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
|
|
3702
|
+
createdFrom?: Date;
|
|
3703
|
+
createdTo?: Date;
|
|
3704
|
+
listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
|
|
3705
|
+
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'>;
|
|
3706
|
+
regionId?: number;
|
|
3707
|
+
districtId?: number;
|
|
3708
|
+
subDistrictId?: number;
|
|
3709
|
+
streetId?: number;
|
|
3710
|
+
priceMin?: number;
|
|
3711
|
+
priceMax?: number;
|
|
3712
|
+
areaMin?: number;
|
|
3713
|
+
areaMax?: number;
|
|
3714
|
+
roomsMin?: number;
|
|
3715
|
+
roomsMax?: number;
|
|
3716
|
+
};
|
|
3717
|
+
url: '/contact/board';
|
|
3718
|
+
};
|
|
3719
|
+
export type GetContactBoardResponses = {
|
|
3720
|
+
/**
|
|
3721
|
+
* OK
|
|
3722
|
+
*/
|
|
3723
|
+
200: ContactKanbanResponse;
|
|
3724
|
+
};
|
|
3725
|
+
export type GetContactBoardResponse = GetContactBoardResponses[keyof GetContactBoardResponses];
|
|
3726
|
+
export type GetContactBoardByStatusCardsData = {
|
|
3727
|
+
body?: never;
|
|
3728
|
+
path: {
|
|
3729
|
+
status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
|
|
3730
|
+
};
|
|
3731
|
+
query?: {
|
|
3732
|
+
statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON'>;
|
|
3733
|
+
priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
|
|
3734
|
+
isSearching?: boolean;
|
|
3735
|
+
isListing?: boolean;
|
|
3736
|
+
assignedTo?: Array<string>;
|
|
3737
|
+
createdBy?: string;
|
|
3738
|
+
contactName?: string;
|
|
3739
|
+
contactPhone?: string;
|
|
3740
|
+
contactEmail?: string;
|
|
3741
|
+
sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
|
|
3742
|
+
contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
|
|
3743
|
+
createdFrom?: Date;
|
|
3744
|
+
createdTo?: Date;
|
|
3745
|
+
listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
|
|
3746
|
+
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'>;
|
|
3747
|
+
regionId?: number;
|
|
3748
|
+
districtId?: number;
|
|
3749
|
+
subDistrictId?: number;
|
|
3750
|
+
streetId?: number;
|
|
3751
|
+
priceMin?: number;
|
|
3752
|
+
priceMax?: number;
|
|
3753
|
+
areaMin?: number;
|
|
3754
|
+
areaMax?: number;
|
|
3755
|
+
roomsMin?: number;
|
|
3756
|
+
roomsMax?: number;
|
|
3757
|
+
/**
|
|
3758
|
+
* Zero-based page index (0..N)
|
|
3759
|
+
*/
|
|
3760
|
+
page?: number;
|
|
3761
|
+
/**
|
|
3762
|
+
* The size of the page to be returned
|
|
3763
|
+
*/
|
|
3764
|
+
size?: number;
|
|
3765
|
+
/**
|
|
3766
|
+
* Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
3767
|
+
*/
|
|
3768
|
+
sort?: Array<string>;
|
|
3769
|
+
};
|
|
3770
|
+
url: '/contact/board/{status}/cards';
|
|
3771
|
+
};
|
|
3772
|
+
export type GetContactBoardByStatusCardsResponses = {
|
|
3773
|
+
/**
|
|
3774
|
+
* OK
|
|
3775
|
+
*/
|
|
3776
|
+
200: PagedModelCard;
|
|
3777
|
+
};
|
|
3778
|
+
export type GetContactBoardByStatusCardsResponse = GetContactBoardByStatusCardsResponses[keyof GetContactBoardByStatusCardsResponses];
|
|
3552
3779
|
export type GetAgencyByAgencyIdOwnerData = {
|
|
3553
3780
|
body?: never;
|
|
3554
3781
|
path: {
|