@homespot-sdk/core 1.0.3 → 1.0.6

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.
Files changed (46) hide show
  1. package/README.md +17 -4
  2. package/dist/property/index.d.ts +2 -2
  3. package/dist/property/index.d.ts.map +1 -1
  4. package/dist/property/index.js +1 -1
  5. package/dist/property/index.js.map +1 -1
  6. package/dist/property/schemas.gen.d.ts +160 -0
  7. package/dist/property/schemas.gen.d.ts.map +1 -1
  8. package/dist/property/schemas.gen.js +177 -0
  9. package/dist/property/schemas.gen.js.map +1 -1
  10. package/dist/property/sdk.gen.d.ts +30 -1
  11. package/dist/property/sdk.gen.d.ts.map +1 -1
  12. package/dist/property/sdk.gen.js +74 -1
  13. package/dist/property/sdk.gen.js.map +1 -1
  14. package/dist/property/transformers.gen.d.ts +5 -1
  15. package/dist/property/transformers.gen.d.ts.map +1 -1
  16. package/dist/property/transformers.gen.js +31 -0
  17. package/dist/property/transformers.gen.js.map +1 -1
  18. package/dist/property/types.gen.d.ts +191 -0
  19. package/dist/property/types.gen.d.ts.map +1 -1
  20. package/dist/property/zod.gen.d.ts +276 -0
  21. package/dist/property/zod.gen.d.ts.map +1 -1
  22. package/dist/property/zod.gen.js +146 -0
  23. package/dist/property/zod.gen.js.map +1 -1
  24. package/dist/rem/index.d.ts +2 -2
  25. package/dist/rem/index.d.ts.map +1 -1
  26. package/dist/rem/index.js +1 -1
  27. package/dist/rem/index.js.map +1 -1
  28. package/dist/rem/schemas.gen.d.ts +178 -113
  29. package/dist/rem/schemas.gen.d.ts.map +1 -1
  30. package/dist/rem/schemas.gen.js +204 -112
  31. package/dist/rem/schemas.gen.js.map +1 -1
  32. package/dist/rem/sdk.gen.d.ts +35 -6
  33. package/dist/rem/sdk.gen.d.ts.map +1 -1
  34. package/dist/rem/sdk.gen.js +65 -39
  35. package/dist/rem/sdk.gen.js.map +1 -1
  36. package/dist/rem/transformers.gen.d.ts +2 -1
  37. package/dist/rem/transformers.gen.d.ts.map +1 -1
  38. package/dist/rem/transformers.gen.js +10 -0
  39. package/dist/rem/transformers.gen.js.map +1 -1
  40. package/dist/rem/types.gen.d.ts +188 -91
  41. package/dist/rem/types.gen.d.ts.map +1 -1
  42. package/dist/rem/zod.gen.d.ts +301 -601
  43. package/dist/rem/zod.gen.d.ts.map +1 -1
  44. package/dist/rem/zod.gen.js +161 -79
  45. package/dist/rem/zod.gen.js.map +1 -1
  46. package/package.json +1 -1
@@ -14,28 +14,21 @@ export type SocialMediaRequest = {
14
14
  export type SocialMediasRequest = {
15
15
  data: Array<SocialMediaRequest>;
16
16
  };
17
- export type MultiLangTextRequest = {
18
- data: Array<TextRequest>;
19
- };
20
- export type TextRequest = {
21
- language: 'ka' | 'en' | 'ru';
22
- text?: string;
23
- };
24
- export type WhitelabelSectionRequest = {
25
- title: MultiLangTextRequest;
26
- body: MultiLangTextRequest;
27
- };
28
- export type WhitelabelReviewRequest = {
29
- quote: MultiLangTextRequest;
30
- name: MultiLangTextRequest;
31
- status: MultiLangTextRequest;
32
- };
33
17
  export type UpdateFeaturedMembersRequest = {
34
18
  memberIds: Array<string>;
35
19
  };
36
20
  export type EstablishedYearRequest = {
37
21
  year: number;
38
22
  };
23
+ export type UpdateWhitelabelContentRequest = {
24
+ content: {
25
+ [key: string]: unknown;
26
+ };
27
+ contentVersion: number;
28
+ };
29
+ export type WhitelabelContentSavedResponse = {
30
+ contentVersion: number;
31
+ };
39
32
  export type VerifyPhoneRequest = {
40
33
  phone: string;
41
34
  otp: string;
@@ -290,6 +283,10 @@ export type PlanLimitResponse = {
290
283
  */
291
284
  allowed?: number;
292
285
  };
286
+ export type WhitelabelImageResponse = {
287
+ id: string;
288
+ url: string;
289
+ };
293
290
  export type ConnectLinkResponse = {
294
291
  link?: string;
295
292
  expiresAt?: Date;
@@ -495,6 +492,9 @@ export type OauthConnectionResponse = {
495
492
  pageName?: string;
496
493
  createdAt: Date;
497
494
  updatedAt: Date;
495
+ /**
496
+ * When the agency disconnected it, or another agency took it over; null while it is the agency's, including when it only needs reconnecting
497
+ */
498
498
  revokedAt?: Date;
499
499
  canPublish: boolean;
500
500
  canReadComments: boolean;
@@ -561,6 +561,27 @@ export type AgencyPrincipalDto = {
561
561
  isOwner?: boolean;
562
562
  phoneVerified?: boolean;
563
563
  };
564
+ export type ConnectStep = {
565
+ kind: string;
566
+ };
567
+ export type DeepLink = Omit<ConnectStep, 'kind'> & {
568
+ url: string;
569
+ expiresAt: Date;
570
+ kind: 'DeepLink';
571
+ };
572
+ export type Popup = Omit<ConnectStep, 'kind'> & {
573
+ appId: string;
574
+ configId: string;
575
+ graphApiVersion: string;
576
+ kind: 'Popup';
577
+ };
578
+ export type Redirect = Omit<ConnectStep, 'kind'> & {
579
+ url: string;
580
+ kind: 'Redirect';
581
+ };
582
+ export type Requested = Omit<ConnectStep, 'kind'> & {
583
+ kind: 'Requested';
584
+ };
564
585
  export type SendMessageRequest = {
565
586
  text: string;
566
587
  };
@@ -1590,15 +1611,6 @@ export type MemberResponse = {
1590
1611
  email: string;
1591
1612
  profilePictureUrl?: string;
1592
1613
  };
1593
- export type ReviewResponse = {
1594
- quote?: Array<LangTextResponse>;
1595
- name?: Array<LangTextResponse>;
1596
- status?: Array<LangTextResponse>;
1597
- };
1598
- export type SegmentResponse = {
1599
- title?: Array<LangTextResponse>;
1600
- body?: Array<LangTextResponse>;
1601
- };
1602
1614
  export type SocialLinkResponse = {
1603
1615
  url: string;
1604
1616
  type: 'FACEBOOK' | 'YOUTUBE' | 'INSTAGRAM' | 'TIKTOK' | 'LINKEDIN';
@@ -1608,13 +1620,24 @@ export type WhitelabelResponse = {
1608
1620
  name: string;
1609
1621
  logoUrl?: string;
1610
1622
  coverUrl?: string;
1611
- slogan?: SegmentResponse;
1623
+ /**
1624
+ * The site's text and layout, as the frontend last saved them; empty until then
1625
+ */
1626
+ content: {
1627
+ [key: string]: unknown;
1628
+ };
1629
+ /**
1630
+ * Sent back with the next content save
1631
+ */
1632
+ contentVersion: number;
1633
+ /**
1634
+ * The URL of each image the content can point at, by image id
1635
+ */
1636
+ images: {
1637
+ [key: string]: string;
1638
+ };
1612
1639
  stats: AgencyStatsResponse;
1613
- ourTeam?: SegmentResponse;
1614
1640
  members: Array<MemberResponse>;
1615
- review?: SegmentResponse;
1616
- reviews?: Array<ReviewResponse>;
1617
- contactUs?: SegmentResponse;
1618
1641
  agencyInfo?: AgencyContactInfoResponse;
1619
1642
  socialLinks?: Array<SocialLinkResponse>;
1620
1643
  website?: string;
@@ -1894,9 +1917,9 @@ export type NotificationFeed = {
1894
1917
  export type NotificationView = {
1895
1918
  id: string;
1896
1919
  seq: number;
1897
- 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';
1920
+ 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';
1898
1921
  targetId?: string;
1899
- payload: AgentCommented | AiMessagesRunningLow | AiMessagesUsedUp | ChannelReauthRequired | ChannelTakenOver | ContactAssigned | DiscountEnding | ListingExpired | MemberMentioned | NewMessage | NewSeekerRating | SocialPostCommented | SocialPostFailed | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented;
1922
+ payload: AgentCommented | AiMessagesRunningLow | AiMessagesUsedUp | ChannelReauthRequired | ChannelTakenOver | ContactAssigned | DiscountEnding | ListingExpired | MemberMentioned | NewMessage | NewSeekerRating | PortalAccessChanged | SocialPostCommented | SocialPostFailed | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented;
1900
1923
  /**
1901
1924
  * 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
1902
1925
  */
@@ -1904,6 +1927,11 @@ export type NotificationView = {
1904
1927
  createdAt: Date;
1905
1928
  read: boolean;
1906
1929
  };
1930
+ export type PortalAccessChanged = {
1931
+ portal?: 'SS' | 'MY_HOME';
1932
+ granted?: boolean;
1933
+ kind: 'PORTAL_ACCESS_CHANGED';
1934
+ };
1907
1935
  export type PropertyId = {
1908
1936
  value?: number;
1909
1937
  };
@@ -2152,6 +2180,30 @@ export type RoomRange = {
2152
2180
  min?: number;
2153
2181
  max?: number;
2154
2182
  };
2183
+ export type IntegrationView = {
2184
+ key: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'TELEGRAM';
2185
+ scope: 'AGENCY' | 'PERSONAL';
2186
+ /**
2187
+ * RECONNECT_REQUIRED: still the agency's, but HomeSpot can't use it until it is connected again; UNAVAILABLE: HomeSpot can't connect it yet
2188
+ */
2189
+ state: 'CONNECTED' | 'RECONNECT_REQUIRED' | 'NOT_CONNECTED' | 'PENDING' | 'UNAVAILABLE';
2190
+ /**
2191
+ * Whether the caller may connect, reconnect or disconnect it
2192
+ */
2193
+ canManage: boolean;
2194
+ /**
2195
+ * The page, account or number it is connected to; null when it isn't connected, and for Telegram
2196
+ */
2197
+ accountName?: string;
2198
+ /**
2199
+ * That account's picture, when the platform gives one
2200
+ */
2201
+ accountPicture?: string;
2202
+ /**
2203
+ * When it was connected; null when it isn't
2204
+ */
2205
+ connectedAt?: Date;
2206
+ };
2155
2207
  export type CursorPageInboxResponse = {
2156
2208
  items?: Array<InboxResponse>;
2157
2209
  nextCursor?: string;
@@ -2602,58 +2654,6 @@ export type PutWhitelabelSocialLinksResponses = {
2602
2654
  204: void;
2603
2655
  };
2604
2656
  export type PutWhitelabelSocialLinksResponse = PutWhitelabelSocialLinksResponses[keyof PutWhitelabelSocialLinksResponses];
2605
- export type PutWhitelabelSloganData = {
2606
- body: WhitelabelSectionRequest;
2607
- path?: never;
2608
- query?: never;
2609
- url: '/whitelabel/slogan';
2610
- };
2611
- export type PutWhitelabelSloganResponses = {
2612
- /**
2613
- * No Content
2614
- */
2615
- 204: void;
2616
- };
2617
- export type PutWhitelabelSloganResponse = PutWhitelabelSloganResponses[keyof PutWhitelabelSloganResponses];
2618
- export type PutWhitelabelReviewsData = {
2619
- body: Array<WhitelabelReviewRequest>;
2620
- path?: never;
2621
- query?: never;
2622
- url: '/whitelabel/reviews';
2623
- };
2624
- export type PutWhitelabelReviewsResponses = {
2625
- /**
2626
- * No Content
2627
- */
2628
- 204: void;
2629
- };
2630
- export type PutWhitelabelReviewsResponse = PutWhitelabelReviewsResponses[keyof PutWhitelabelReviewsResponses];
2631
- export type PutWhitelabelReviewSectionData = {
2632
- body: WhitelabelSectionRequest;
2633
- path?: never;
2634
- query?: never;
2635
- url: '/whitelabel/review-section';
2636
- };
2637
- export type PutWhitelabelReviewSectionResponses = {
2638
- /**
2639
- * No Content
2640
- */
2641
- 204: void;
2642
- };
2643
- export type PutWhitelabelReviewSectionResponse = PutWhitelabelReviewSectionResponses[keyof PutWhitelabelReviewSectionResponses];
2644
- export type PutWhitelabelOurTeamData = {
2645
- body: WhitelabelSectionRequest;
2646
- path?: never;
2647
- query?: never;
2648
- url: '/whitelabel/our-team';
2649
- };
2650
- export type PutWhitelabelOurTeamResponses = {
2651
- /**
2652
- * No Content
2653
- */
2654
- 204: void;
2655
- };
2656
- export type PutWhitelabelOurTeamResponse = PutWhitelabelOurTeamResponses[keyof PutWhitelabelOurTeamResponses];
2657
2657
  export type PutWhitelabelFeaturedMembersData = {
2658
2658
  body: UpdateFeaturedMembersRequest;
2659
2659
  path?: never;
@@ -2680,19 +2680,25 @@ export type PutWhitelabelEstablishedYearResponses = {
2680
2680
  204: void;
2681
2681
  };
2682
2682
  export type PutWhitelabelEstablishedYearResponse = PutWhitelabelEstablishedYearResponses[keyof PutWhitelabelEstablishedYearResponses];
2683
- export type PutWhitelabelContactUsData = {
2684
- body: WhitelabelSectionRequest;
2683
+ export type PutWhitelabelContentData = {
2684
+ body: UpdateWhitelabelContentRequest;
2685
2685
  path?: never;
2686
2686
  query?: never;
2687
- url: '/whitelabel/contact-us';
2687
+ url: '/whitelabel/content';
2688
2688
  };
2689
- export type PutWhitelabelContactUsResponses = {
2689
+ export type PutWhitelabelContentErrors = {
2690
2690
  /**
2691
- * No Content
2691
+ * The content was saved since it was read
2692
2692
  */
2693
- 204: void;
2693
+ 409: unknown;
2694
+ };
2695
+ export type PutWhitelabelContentResponses = {
2696
+ /**
2697
+ * OK
2698
+ */
2699
+ 200: WhitelabelContentSavedResponse;
2694
2700
  };
2695
- export type PutWhitelabelContactUsResponse = PutWhitelabelContactUsResponses[keyof PutWhitelabelContactUsResponses];
2701
+ export type PutWhitelabelContentResponse = PutWhitelabelContentResponses[keyof PutWhitelabelContentResponses];
2696
2702
  export type PutUserMePhoneVerifyData = {
2697
2703
  body: VerifyPhoneRequest;
2698
2704
  path?: never;
@@ -3692,6 +3698,39 @@ export type PostWhitelabelPresignedUrlsNotifyCoverResponses = {
3692
3698
  200: UploadAcknowledgmentResponse;
3693
3699
  };
3694
3700
  export type PostWhitelabelPresignedUrlsNotifyCoverResponse = PostWhitelabelPresignedUrlsNotifyCoverResponses[keyof PostWhitelabelPresignedUrlsNotifyCoverResponses];
3701
+ export type GetWhitelabelImagesData = {
3702
+ body?: never;
3703
+ path?: never;
3704
+ query?: never;
3705
+ url: '/whitelabel/images';
3706
+ };
3707
+ export type GetWhitelabelImagesResponses = {
3708
+ /**
3709
+ * OK
3710
+ */
3711
+ 200: Array<WhitelabelImageResponse>;
3712
+ };
3713
+ export type GetWhitelabelImagesResponse = GetWhitelabelImagesResponses[keyof GetWhitelabelImagesResponses];
3714
+ export type PostWhitelabelImagesData = {
3715
+ body: PhotoRequest;
3716
+ path?: never;
3717
+ query?: never;
3718
+ url: '/whitelabel/images';
3719
+ };
3720
+ export type PostWhitelabelImagesErrors = {
3721
+ /**
3722
+ * The plan doesn't include the agency website
3723
+ */
3724
+ 402: PlanLimitResponse;
3725
+ };
3726
+ export type PostWhitelabelImagesError = PostWhitelabelImagesErrors[keyof PostWhitelabelImagesErrors];
3727
+ export type PostWhitelabelImagesResponses = {
3728
+ /**
3729
+ * OK
3730
+ */
3731
+ 200: WhitelabelImageResponse;
3732
+ };
3733
+ export type PostWhitelabelImagesResponse = PostWhitelabelImagesResponses[keyof PostWhitelabelImagesResponses];
3695
3734
  export type PostWhitelabelDeactivateData = {
3696
3735
  body?: never;
3697
3736
  path?: never;
@@ -4460,6 +4499,21 @@ export type PostInternalPrincipleResponses = {
4460
4499
  200: AgencyPrincipalDto;
4461
4500
  };
4462
4501
  export type PostInternalPrincipleResponse = PostInternalPrincipleResponses[keyof PostInternalPrincipleResponses];
4502
+ export type PostIntegrationsByKeyConnectData = {
4503
+ body?: never;
4504
+ path: {
4505
+ key: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'TELEGRAM';
4506
+ };
4507
+ query?: never;
4508
+ url: '/integrations/{key}/connect';
4509
+ };
4510
+ export type PostIntegrationsByKeyConnectResponses = {
4511
+ /**
4512
+ * OK
4513
+ */
4514
+ 200: DeepLink | Popup | Redirect | Requested;
4515
+ };
4516
+ export type PostIntegrationsByKeyConnectResponse = PostIntegrationsByKeyConnectResponses[keyof PostIntegrationsByKeyConnectResponses];
4463
4517
  export type PostGuideVideosByIdStartData = {
4464
4518
  body?: never;
4465
4519
  path: {
@@ -5981,6 +6035,19 @@ export type GetInterestGroupsResponses = {
5981
6035
  200: Array<GroupCount>;
5982
6036
  };
5983
6037
  export type GetInterestGroupsResponse = GetInterestGroupsResponses[keyof GetInterestGroupsResponses];
6038
+ export type GetIntegrationsData = {
6039
+ body?: never;
6040
+ path?: never;
6041
+ query?: never;
6042
+ url: '/integrations';
6043
+ };
6044
+ export type GetIntegrationsResponses = {
6045
+ /**
6046
+ * OK
6047
+ */
6048
+ 200: Array<IntegrationView>;
6049
+ };
6050
+ export type GetIntegrationsResponse = GetIntegrationsResponses[keyof GetIntegrationsResponses];
5984
6051
  export type GetInboxData = {
5985
6052
  body?: never;
5986
6053
  path?: never;
@@ -6399,6 +6466,21 @@ export type GetAgencyFeaturedMembersResponses = {
6399
6466
  200: Array<MemberCurationView>;
6400
6467
  };
6401
6468
  export type GetAgencyFeaturedMembersResponse = GetAgencyFeaturedMembersResponses[keyof GetAgencyFeaturedMembersResponses];
6469
+ export type DeleteWhitelabelImagesByImageIdData = {
6470
+ body?: never;
6471
+ path: {
6472
+ imageId: string;
6473
+ };
6474
+ query?: never;
6475
+ url: '/whitelabel/images/{imageId}';
6476
+ };
6477
+ export type DeleteWhitelabelImagesByImageIdResponses = {
6478
+ /**
6479
+ * No Content
6480
+ */
6481
+ 204: void;
6482
+ };
6483
+ export type DeleteWhitelabelImagesByImageIdResponse = DeleteWhitelabelImagesByImageIdResponses[keyof DeleteWhitelabelImagesByImageIdResponses];
6402
6484
  export type DeleteTaskByTaskIdPropertyByPropertyIdData = {
6403
6485
  body?: never;
6404
6486
  path: {
@@ -6488,6 +6570,21 @@ export type DeleteMemberByMemberIdResponses = {
6488
6570
  204: void;
6489
6571
  };
6490
6572
  export type DeleteMemberByMemberIdResponse = DeleteMemberByMemberIdResponses[keyof DeleteMemberByMemberIdResponses];
6573
+ export type DeleteIntegrationsByKeyData = {
6574
+ body?: never;
6575
+ path: {
6576
+ key: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK' | 'TELEGRAM';
6577
+ };
6578
+ query?: never;
6579
+ url: '/integrations/{key}';
6580
+ };
6581
+ export type DeleteIntegrationsByKeyResponses = {
6582
+ /**
6583
+ * No Content
6584
+ */
6585
+ 204: void;
6586
+ };
6587
+ export type DeleteIntegrationsByKeyResponse = DeleteIntegrationsByKeyResponses[keyof DeleteIntegrationsByKeyResponses];
6491
6588
  export type DeleteConversationsByConversationIdPresenceData = {
6492
6589
  body?: never;
6493
6590
  path: {