@homespot-sdk/core 1.0.5 → 1.0.7
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/README.md +17 -4
- 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 +160 -36
- package/dist/property/schemas.gen.d.ts.map +1 -1
- package/dist/property/schemas.gen.js +177 -67
- package/dist/property/schemas.gen.js.map +1 -1
- package/dist/property/sdk.gen.d.ts +30 -5
- package/dist/property/sdk.gen.d.ts.map +1 -1
- package/dist/property/sdk.gen.js +74 -10
- package/dist/property/sdk.gen.js.map +1 -1
- package/dist/property/transformers.gen.d.ts +5 -2
- package/dist/property/transformers.gen.d.ts.map +1 -1
- package/dist/property/transformers.gen.js +27 -4
- package/dist/property/transformers.gen.js.map +1 -1
- package/dist/property/types.gen.d.ts +191 -26
- package/dist/property/types.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.d.ts +276 -154
- package/dist/property/zod.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.js +146 -43
- 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 +122 -31
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +140 -30
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +15 -13
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +28 -48
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +2 -4
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +10 -18
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +100 -110
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +229 -168
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +93 -80
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/types.gen.d.ts
CHANGED
|
@@ -111,10 +111,6 @@ export type RolesRequest = {
|
|
|
111
111
|
export type AssignRoleRequest = {
|
|
112
112
|
roleId: number;
|
|
113
113
|
};
|
|
114
|
-
export type BatchAssignRoleRequest = {
|
|
115
|
-
roleId: number;
|
|
116
|
-
memberIds: Array<string>;
|
|
117
|
-
};
|
|
118
114
|
export type UpdateMeetingRequest = {
|
|
119
115
|
title?: string;
|
|
120
116
|
description?: string;
|
|
@@ -287,10 +283,6 @@ export type WhitelabelImageResponse = {
|
|
|
287
283
|
id: string;
|
|
288
284
|
url: string;
|
|
289
285
|
};
|
|
290
|
-
export type ConnectLinkResponse = {
|
|
291
|
-
link?: string;
|
|
292
|
-
expiresAt?: Date;
|
|
293
|
-
};
|
|
294
286
|
export type IdResponseUuid = {
|
|
295
287
|
id: string;
|
|
296
288
|
};
|
|
@@ -492,6 +484,9 @@ export type OauthConnectionResponse = {
|
|
|
492
484
|
pageName?: string;
|
|
493
485
|
createdAt: Date;
|
|
494
486
|
updatedAt: Date;
|
|
487
|
+
/**
|
|
488
|
+
* When the agency disconnected it, or another agency took it over; null while it is the agency's, including when it only needs reconnecting
|
|
489
|
+
*/
|
|
495
490
|
revokedAt?: Date;
|
|
496
491
|
canPublish: boolean;
|
|
497
492
|
canReadComments: boolean;
|
|
@@ -558,6 +553,27 @@ export type AgencyPrincipalDto = {
|
|
|
558
553
|
isOwner?: boolean;
|
|
559
554
|
phoneVerified?: boolean;
|
|
560
555
|
};
|
|
556
|
+
export type ConnectStep = {
|
|
557
|
+
kind: string;
|
|
558
|
+
};
|
|
559
|
+
export type DeepLink = Omit<ConnectStep, 'kind'> & {
|
|
560
|
+
url: string;
|
|
561
|
+
expiresAt: Date;
|
|
562
|
+
kind: 'DeepLink';
|
|
563
|
+
};
|
|
564
|
+
export type Popup = Omit<ConnectStep, 'kind'> & {
|
|
565
|
+
appId: string;
|
|
566
|
+
configId: string;
|
|
567
|
+
graphApiVersion: string;
|
|
568
|
+
kind: 'Popup';
|
|
569
|
+
};
|
|
570
|
+
export type Redirect = Omit<ConnectStep, 'kind'> & {
|
|
571
|
+
url: string;
|
|
572
|
+
kind: 'Redirect';
|
|
573
|
+
};
|
|
574
|
+
export type Requested = Omit<ConnectStep, 'kind'> & {
|
|
575
|
+
kind: 'Requested';
|
|
576
|
+
};
|
|
561
577
|
export type SendMessageRequest = {
|
|
562
578
|
text: string;
|
|
563
579
|
};
|
|
@@ -1893,9 +1909,9 @@ export type NotificationFeed = {
|
|
|
1893
1909
|
export type NotificationView = {
|
|
1894
1910
|
id: string;
|
|
1895
1911
|
seq: number;
|
|
1896
|
-
type: 'AGENT_COMMENTED' | 'TASK_COMMENTED' | 'MEMBER_MENTIONED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED' | 'SUBSCRIPTION_PAYMENT_FAILED' | 'SUBSCRIPTION_ENDING' | 'SUBSCRIPTION_EXPIRED' | 'SUBSCRIPTION_PAYMENT_REVERSED' | 'DISCOUNT_ENDING' | 'AI_MESSAGES_RUNNING_LOW' | 'AI_MESSAGES_USED_UP' | 'CHANNEL_REAUTH_REQUIRED' | 'CHANNEL_TAKEN_OVER' | 'SOCIAL_POST_FAILED' | 'SOCIAL_POST_COMMENTED';
|
|
1912
|
+
type: 'AGENT_COMMENTED' | 'TASK_COMMENTED' | 'MEMBER_MENTIONED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED' | 'SUBSCRIPTION_PAYMENT_FAILED' | 'SUBSCRIPTION_ENDING' | 'SUBSCRIPTION_EXPIRED' | 'SUBSCRIPTION_PAYMENT_REVERSED' | 'DISCOUNT_ENDING' | 'AI_MESSAGES_RUNNING_LOW' | 'AI_MESSAGES_USED_UP' | 'CHANNEL_REAUTH_REQUIRED' | 'CHANNEL_TAKEN_OVER' | 'PORTAL_ACCESS_CHANGED' | 'SOCIAL_POST_FAILED' | 'SOCIAL_POST_COMMENTED';
|
|
1897
1913
|
targetId?: string;
|
|
1898
|
-
payload: AgentCommented | AiMessagesRunningLow | AiMessagesUsedUp | ChannelReauthRequired | ChannelTakenOver | ContactAssigned | DiscountEnding | ListingExpired | MemberMentioned | NewMessage | NewSeekerRating | SocialPostCommented | SocialPostFailed | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented;
|
|
1914
|
+
payload: AgentCommented | AiMessagesRunningLow | AiMessagesUsedUp | ChannelReauthRequired | ChannelTakenOver | ContactAssigned | DiscountEnding | ListingExpired | MemberMentioned | NewMessage | NewSeekerRating | PortalAccessChanged | SocialPostCommented | SocialPostFailed | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented;
|
|
1899
1915
|
/**
|
|
1900
1916
|
* How many times this came while unread; the payload is the latest. For SOCIAL_POST_COMMENTED: the new comments on the post since its notification was last read. Starts again at 1 once read
|
|
1901
1917
|
*/
|
|
@@ -1903,6 +1919,11 @@ export type NotificationView = {
|
|
|
1903
1919
|
createdAt: Date;
|
|
1904
1920
|
read: boolean;
|
|
1905
1921
|
};
|
|
1922
|
+
export type PortalAccessChanged = {
|
|
1923
|
+
portal?: 'SS' | 'MY_HOME';
|
|
1924
|
+
granted?: boolean;
|
|
1925
|
+
kind: 'PORTAL_ACCESS_CHANGED';
|
|
1926
|
+
};
|
|
1906
1927
|
export type PropertyId = {
|
|
1907
1928
|
value?: number;
|
|
1908
1929
|
};
|
|
@@ -2151,6 +2172,30 @@ export type RoomRange = {
|
|
|
2151
2172
|
min?: number;
|
|
2152
2173
|
max?: number;
|
|
2153
2174
|
};
|
|
2175
|
+
export type IntegrationView = {
|
|
2176
|
+
key: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'TELEGRAM';
|
|
2177
|
+
scope: 'AGENCY' | 'PERSONAL';
|
|
2178
|
+
/**
|
|
2179
|
+
* RECONNECT_REQUIRED: still the agency's, but HomeSpot can't use it until it is connected again; UNAVAILABLE: HomeSpot can't connect it yet
|
|
2180
|
+
*/
|
|
2181
|
+
state: 'CONNECTED' | 'RECONNECT_REQUIRED' | 'NOT_CONNECTED' | 'PENDING' | 'UNAVAILABLE';
|
|
2182
|
+
/**
|
|
2183
|
+
* Whether the caller may connect, reconnect or disconnect it
|
|
2184
|
+
*/
|
|
2185
|
+
canManage: boolean;
|
|
2186
|
+
/**
|
|
2187
|
+
* The page, account or number it is connected to; null when it isn't connected, and for Telegram
|
|
2188
|
+
*/
|
|
2189
|
+
accountName?: string;
|
|
2190
|
+
/**
|
|
2191
|
+
* That account's picture, when the platform gives one
|
|
2192
|
+
*/
|
|
2193
|
+
accountPicture?: string;
|
|
2194
|
+
/**
|
|
2195
|
+
* When it was connected; null when it isn't
|
|
2196
|
+
*/
|
|
2197
|
+
connectedAt?: Date;
|
|
2198
|
+
};
|
|
2154
2199
|
export type CursorPageInboxResponse = {
|
|
2155
2200
|
items?: Array<InboxResponse>;
|
|
2156
2201
|
nextCursor?: string;
|
|
@@ -3033,19 +3078,6 @@ export type PutMemberByMemberIdRoleResponses = {
|
|
|
3033
3078
|
204: void;
|
|
3034
3079
|
};
|
|
3035
3080
|
export type PutMemberByMemberIdRoleResponse = PutMemberByMemberIdRoleResponses[keyof PutMemberByMemberIdRoleResponses];
|
|
3036
|
-
export type PutMemberRoleData = {
|
|
3037
|
-
body: BatchAssignRoleRequest;
|
|
3038
|
-
path?: never;
|
|
3039
|
-
query?: never;
|
|
3040
|
-
url: '/member/role';
|
|
3041
|
-
};
|
|
3042
|
-
export type PutMemberRoleResponses = {
|
|
3043
|
-
/**
|
|
3044
|
-
* No Content
|
|
3045
|
-
*/
|
|
3046
|
-
204: void;
|
|
3047
|
-
};
|
|
3048
|
-
export type PutMemberRoleResponse = PutMemberRoleResponses[keyof PutMemberRoleResponses];
|
|
3049
3081
|
export type PutMeetingsByMeetingIdData = {
|
|
3050
3082
|
body: UpdateMeetingRequest;
|
|
3051
3083
|
path: {
|
|
@@ -3711,19 +3743,6 @@ export type PostWhitelabelActivateResponses = {
|
|
|
3711
3743
|
204: void;
|
|
3712
3744
|
};
|
|
3713
3745
|
export type PostWhitelabelActivateResponse = PostWhitelabelActivateResponses[keyof PostWhitelabelActivateResponses];
|
|
3714
|
-
export type PostTelegramConnectLinkData = {
|
|
3715
|
-
body?: never;
|
|
3716
|
-
path?: never;
|
|
3717
|
-
query?: never;
|
|
3718
|
-
url: '/telegram/connect-link';
|
|
3719
|
-
};
|
|
3720
|
-
export type PostTelegramConnectLinkResponses = {
|
|
3721
|
-
/**
|
|
3722
|
-
* OK
|
|
3723
|
-
*/
|
|
3724
|
-
200: ConnectLinkResponse;
|
|
3725
|
-
};
|
|
3726
|
-
export type PostTelegramConnectLinkResponse = PostTelegramConnectLinkResponses[keyof PostTelegramConnectLinkResponses];
|
|
3727
3746
|
export type GetTasksByTaskIdCommentsData = {
|
|
3728
3747
|
body?: never;
|
|
3729
3748
|
path: {
|
|
@@ -4446,6 +4465,21 @@ export type PostInternalPrincipleResponses = {
|
|
|
4446
4465
|
200: AgencyPrincipalDto;
|
|
4447
4466
|
};
|
|
4448
4467
|
export type PostInternalPrincipleResponse = PostInternalPrincipleResponses[keyof PostInternalPrincipleResponses];
|
|
4468
|
+
export type PostIntegrationsByKeyConnectData = {
|
|
4469
|
+
body?: never;
|
|
4470
|
+
path: {
|
|
4471
|
+
key: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'TELEGRAM';
|
|
4472
|
+
};
|
|
4473
|
+
query?: never;
|
|
4474
|
+
url: '/integrations/{key}/connect';
|
|
4475
|
+
};
|
|
4476
|
+
export type PostIntegrationsByKeyConnectResponses = {
|
|
4477
|
+
/**
|
|
4478
|
+
* OK
|
|
4479
|
+
*/
|
|
4480
|
+
200: DeepLink | Popup | Redirect | Requested;
|
|
4481
|
+
};
|
|
4482
|
+
export type PostIntegrationsByKeyConnectResponse = PostIntegrationsByKeyConnectResponses[keyof PostIntegrationsByKeyConnectResponses];
|
|
4449
4483
|
export type PostGuideVideosByIdStartData = {
|
|
4450
4484
|
body?: never;
|
|
4451
4485
|
path: {
|
|
@@ -5571,80 +5605,6 @@ export type GetPropertyByExternalPropertyIdListingByExternalListingIdResponses =
|
|
|
5571
5605
|
200: ListingOwnerContactResponse;
|
|
5572
5606
|
};
|
|
5573
5607
|
export type GetPropertyByExternalPropertyIdListingByExternalListingIdResponse = GetPropertyByExternalPropertyIdListingByExternalListingIdResponses[keyof GetPropertyByExternalPropertyIdListingByExternalListingIdResponses];
|
|
5574
|
-
export type GetOauthData = {
|
|
5575
|
-
body?: never;
|
|
5576
|
-
path?: never;
|
|
5577
|
-
query?: never;
|
|
5578
|
-
url: '/oauth';
|
|
5579
|
-
};
|
|
5580
|
-
export type GetOauthResponses = {
|
|
5581
|
-
/**
|
|
5582
|
-
* OK
|
|
5583
|
-
*/
|
|
5584
|
-
200: Array<OauthConnectionResponse>;
|
|
5585
|
-
};
|
|
5586
|
-
export type GetOauthResponse = GetOauthResponses[keyof GetOauthResponses];
|
|
5587
|
-
export type DeleteOauthByChannelData = {
|
|
5588
|
-
body?: never;
|
|
5589
|
-
path: {
|
|
5590
|
-
channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
|
|
5591
|
-
};
|
|
5592
|
-
query?: never;
|
|
5593
|
-
url: '/oauth/{channel}';
|
|
5594
|
-
};
|
|
5595
|
-
export type DeleteOauthByChannelResponses = {
|
|
5596
|
-
/**
|
|
5597
|
-
* OK
|
|
5598
|
-
*/
|
|
5599
|
-
200: unknown;
|
|
5600
|
-
};
|
|
5601
|
-
export type GetOauthByChannelData = {
|
|
5602
|
-
body?: never;
|
|
5603
|
-
path: {
|
|
5604
|
-
channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
|
|
5605
|
-
};
|
|
5606
|
-
query?: never;
|
|
5607
|
-
url: '/oauth/{channel}';
|
|
5608
|
-
};
|
|
5609
|
-
export type GetOauthByChannelResponses = {
|
|
5610
|
-
/**
|
|
5611
|
-
* OK
|
|
5612
|
-
*/
|
|
5613
|
-
200: OauthConnectionResponse;
|
|
5614
|
-
};
|
|
5615
|
-
export type GetOauthByChannelResponse = GetOauthByChannelResponses[keyof GetOauthByChannelResponses];
|
|
5616
|
-
export type GetOauthByChannelAuthorizeData = {
|
|
5617
|
-
body?: never;
|
|
5618
|
-
path: {
|
|
5619
|
-
channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
|
|
5620
|
-
};
|
|
5621
|
-
query?: never;
|
|
5622
|
-
url: '/oauth/{channel}/authorize';
|
|
5623
|
-
};
|
|
5624
|
-
export type GetOauthByChannelAuthorizeResponses = {
|
|
5625
|
-
/**
|
|
5626
|
-
* OK
|
|
5627
|
-
*/
|
|
5628
|
-
200: {
|
|
5629
|
-
[key: string]: string;
|
|
5630
|
-
};
|
|
5631
|
-
};
|
|
5632
|
-
export type GetOauthByChannelAuthorizeResponse = GetOauthByChannelAuthorizeResponses[keyof GetOauthByChannelAuthorizeResponses];
|
|
5633
|
-
export type GetOauthWhatsappEmbeddedSignupConfigData = {
|
|
5634
|
-
body?: never;
|
|
5635
|
-
path?: never;
|
|
5636
|
-
query?: never;
|
|
5637
|
-
url: '/oauth/whatsapp/embedded-signup-config';
|
|
5638
|
-
};
|
|
5639
|
-
export type GetOauthWhatsappEmbeddedSignupConfigResponses = {
|
|
5640
|
-
/**
|
|
5641
|
-
* OK
|
|
5642
|
-
*/
|
|
5643
|
-
200: {
|
|
5644
|
-
[key: string]: string;
|
|
5645
|
-
};
|
|
5646
|
-
};
|
|
5647
|
-
export type GetOauthWhatsappEmbeddedSignupConfigResponse = GetOauthWhatsappEmbeddedSignupConfigResponses[keyof GetOauthWhatsappEmbeddedSignupConfigResponses];
|
|
5648
5608
|
export type GetOauthGoogleAuthorizeData = {
|
|
5649
5609
|
body?: never;
|
|
5650
5610
|
path?: never;
|
|
@@ -5967,11 +5927,25 @@ export type GetInterestGroupsResponses = {
|
|
|
5967
5927
|
200: Array<GroupCount>;
|
|
5968
5928
|
};
|
|
5969
5929
|
export type GetInterestGroupsResponse = GetInterestGroupsResponses[keyof GetInterestGroupsResponses];
|
|
5930
|
+
export type GetIntegrationsData = {
|
|
5931
|
+
body?: never;
|
|
5932
|
+
path?: never;
|
|
5933
|
+
query?: never;
|
|
5934
|
+
url: '/integrations';
|
|
5935
|
+
};
|
|
5936
|
+
export type GetIntegrationsResponses = {
|
|
5937
|
+
/**
|
|
5938
|
+
* OK
|
|
5939
|
+
*/
|
|
5940
|
+
200: Array<IntegrationView>;
|
|
5941
|
+
};
|
|
5942
|
+
export type GetIntegrationsResponse = GetIntegrationsResponses[keyof GetIntegrationsResponses];
|
|
5970
5943
|
export type GetInboxData = {
|
|
5971
5944
|
body?: never;
|
|
5972
5945
|
path?: never;
|
|
5973
5946
|
query?: {
|
|
5974
5947
|
status?: 'OPEN' | 'RESOLVED';
|
|
5948
|
+
channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
|
|
5975
5949
|
cursor?: string;
|
|
5976
5950
|
limit?: number;
|
|
5977
5951
|
};
|
|
@@ -6006,6 +5980,7 @@ export type GetInboxAgencyData = {
|
|
|
6006
5980
|
path?: never;
|
|
6007
5981
|
query?: {
|
|
6008
5982
|
status?: 'OPEN' | 'RESOLVED';
|
|
5983
|
+
channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
|
|
6009
5984
|
cursor?: string;
|
|
6010
5985
|
limit?: number;
|
|
6011
5986
|
};
|
|
@@ -6489,6 +6464,21 @@ export type DeleteMemberByMemberIdResponses = {
|
|
|
6489
6464
|
204: void;
|
|
6490
6465
|
};
|
|
6491
6466
|
export type DeleteMemberByMemberIdResponse = DeleteMemberByMemberIdResponses[keyof DeleteMemberByMemberIdResponses];
|
|
6467
|
+
export type DeleteIntegrationsByKeyData = {
|
|
6468
|
+
body?: never;
|
|
6469
|
+
path: {
|
|
6470
|
+
key: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'TELEGRAM';
|
|
6471
|
+
};
|
|
6472
|
+
query?: never;
|
|
6473
|
+
url: '/integrations/{key}';
|
|
6474
|
+
};
|
|
6475
|
+
export type DeleteIntegrationsByKeyResponses = {
|
|
6476
|
+
/**
|
|
6477
|
+
* No Content
|
|
6478
|
+
*/
|
|
6479
|
+
204: void;
|
|
6480
|
+
};
|
|
6481
|
+
export type DeleteIntegrationsByKeyResponse = DeleteIntegrationsByKeyResponses[keyof DeleteIntegrationsByKeyResponses];
|
|
6492
6482
|
export type DeleteConversationsByConversationIdPresenceData = {
|
|
6493
6483
|
body?: never;
|
|
6494
6484
|
path: {
|