@homespot-sdk/core 0.0.367 → 0.0.369

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.
@@ -759,7 +759,7 @@ export type AdminCheckoutRequest = {
759
759
  * AI messages the agency shares each month; 0 means no AI
760
760
  */
761
761
  aiMessages: number;
762
- features: Array<'SOCIAL_POSTS' | 'AGENCY_BRANDING'>;
762
+ features: Array<'SOCIAL_POSTS' | 'AGENCY_BRANDING' | 'UNBRANDED_POSTS'>;
763
763
  /**
764
764
  * Free-trial days; 0 charges immediately
765
765
  */
@@ -796,7 +796,7 @@ export type OrganizationSummaryViewResponse = {
796
796
  profilePictureUrl?: string;
797
797
  roleName: string;
798
798
  permissions: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL'>;
799
- status: 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE' | 'SUSPENDED';
799
+ status: 'NEW' | 'ACTIVE' | 'SUSPENDED';
800
800
  phone: string;
801
801
  isPhoneVerified: boolean;
802
802
  /**
@@ -1079,7 +1079,7 @@ export type SubscriptionResponse = {
1079
1079
  * AI messages the agency shares each month; 0 means no AI
1080
1080
  */
1081
1081
  aiMessages: number;
1082
- features: Array<'SOCIAL_POSTS' | 'AGENCY_BRANDING'>;
1082
+ features: Array<'SOCIAL_POSTS' | 'AGENCY_BRANDING' | 'UNBRANDED_POSTS'>;
1083
1083
  trialDays: number;
1084
1084
  status: 'PENDING' | 'TRIALING' | 'ACTIVE' | 'PAST_DUE' | 'CANCELLED' | 'EXPIRED' | 'SUPERSEDED';
1085
1085
  /**
@@ -1135,7 +1135,7 @@ export type PlanResponse = {
1135
1135
  activeListings: Usage;
1136
1136
  aiMessages: AiMessages;
1137
1137
  boards: Usage;
1138
- features: Array<'SOCIAL_POSTS' | 'AGENCY_BRANDING'>;
1138
+ features: Array<'SOCIAL_POSTS' | 'AGENCY_BRANDING' | 'UNBRANDED_POSTS'>;
1139
1139
  };
1140
1140
  export type Trial = {
1141
1141
  endsAt: Date;
@@ -1470,7 +1470,7 @@ export type PlanOffer = {
1470
1470
  * A month's AI messages, shared by the whole agency
1471
1471
  */
1472
1472
  aiMessages: number;
1473
- features: Array<'SOCIAL_POSTS' | 'AGENCY_BRANDING'>;
1473
+ features: Array<'SOCIAL_POSTS' | 'AGENCY_BRANDING' | 'UNBRANDED_POSTS'>;
1474
1474
  };
1475
1475
  export type TrialOffer = {
1476
1476
  days: number;
@@ -1510,7 +1510,7 @@ export type AgencySummaryResponse = {
1510
1510
  subdomain: string;
1511
1511
  phone: string;
1512
1512
  establishedYear?: number;
1513
- status: 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE' | 'SUSPENDED';
1513
+ status: 'NEW' | 'ACTIVE' | 'SUSPENDED';
1514
1514
  logo?: string;
1515
1515
  theme?: number;
1516
1516
  };
@@ -1759,6 +1759,12 @@ export type ChannelReauthRequired = {
1759
1759
  displayName?: string;
1760
1760
  kind: 'CHANNEL_REAUTH_REQUIRED';
1761
1761
  };
1762
+ export type ChannelTakenOver = {
1763
+ connectionId?: ConnectionId;
1764
+ channelType?: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'TIKTOK';
1765
+ displayName?: string;
1766
+ kind: 'CHANNEL_TAKEN_OVER';
1767
+ };
1762
1768
  export type CommentId = {
1763
1769
  value?: string;
1764
1770
  };
@@ -1834,9 +1840,9 @@ export type NotificationFeed = {
1834
1840
  export type NotificationView = {
1835
1841
  id: string;
1836
1842
  seq: number;
1837
- 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' | 'TRIAL_ENDING' | 'TRIAL_ENDED' | 'DISCOUNT_ENDING' | 'AI_MESSAGES_RUNNING_LOW' | 'AI_MESSAGES_USED_UP' | 'CHANNEL_REAUTH_REQUIRED' | 'SOCIAL_POST_FAILED' | 'SOCIAL_POST_COMMENTED';
1843
+ 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' | 'TRIAL_ENDING' | 'TRIAL_ENDED' | 'DISCOUNT_ENDING' | 'AI_MESSAGES_RUNNING_LOW' | 'AI_MESSAGES_USED_UP' | 'CHANNEL_REAUTH_REQUIRED' | 'CHANNEL_TAKEN_OVER' | 'SOCIAL_POST_FAILED' | 'SOCIAL_POST_COMMENTED';
1838
1844
  targetId?: string;
1839
- payload: AgentCommented | AiMessagesRunningLow | AiMessagesUsedUp | ChannelReauthRequired | ContactAssigned | DiscountEnding | ListingExpired | MemberMentioned | NewMessage | NewSeekerRating | SocialPostCommented | SocialPostFailed | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented | TrialEnded | TrialEnding;
1845
+ payload: AgentCommented | AiMessagesRunningLow | AiMessagesUsedUp | ChannelReauthRequired | ChannelTakenOver | ContactAssigned | DiscountEnding | ListingExpired | MemberMentioned | NewMessage | NewSeekerRating | SocialPostCommented | SocialPostFailed | SubscriptionEnding | SubscriptionExpired | SubscriptionPaymentFailed | SubscriptionPaymentReversed | TaskCommented | TrialEnded | TrialEnding;
1840
1846
  /**
1841
1847
  * 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
1842
1848
  */
@@ -2170,7 +2176,7 @@ export type CursorPageMessageView = {
2170
2176
  export type ComposerLimits = {
2171
2177
  maxPhotos: number;
2172
2178
  /**
2173
- * In Unicode code points: an emoji counts once, as [...text].length counts in JavaScript (text.length counts it twice)
2179
+ * Of the agent's text, with room left for the credit when there is one. In Unicode code points: an emoji counts once, as [...text].length counts in JavaScript (text.length counts it twice)
2174
2180
  */
2175
2181
  maxCaptionLength: number;
2176
2182
  /**
@@ -2204,6 +2210,10 @@ export type ComposerPreview = {
2204
2210
  * The agency's text for the property's group (HomeSpot's until it writes one), filled in from the listing; a line with a fact the listing lacks is left out
2205
2211
  */
2206
2212
  caption: string;
2213
+ /**
2214
+ * HomeSpot's line, which publishing adds under the text on a plan without UNBRANDED_POSTS (Free and Plus): show it under the text box, where the agent can't edit it, and don't send it with the caption. Null on a plan that can take it out (Pro): there it is in the caption, as text
2215
+ */
2216
+ credit?: string;
2207
2217
  /**
2208
2218
  * The property group whose template the caption came from: the one an Edit template opens
2209
2219
  */
@@ -2450,6 +2460,12 @@ export type TodoTemplateResponse = {
2450
2460
  title: string;
2451
2461
  position: number;
2452
2462
  };
2463
+ export type StageTaskCountResponse = {
2464
+ stageId: string;
2465
+ open: number;
2466
+ won: number;
2467
+ lost: number;
2468
+ };
2453
2469
  export type AddressViewResponse = {
2454
2470
  country: string;
2455
2471
  city: string;
@@ -5335,7 +5351,7 @@ export type GetPublicAgencyData = {
5335
5351
  body?: never;
5336
5352
  path?: never;
5337
5353
  query?: {
5338
- status?: 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE' | 'SUSPENDED';
5354
+ status?: 'NEW' | 'ACTIVE' | 'SUSPENDED';
5339
5355
  /**
5340
5356
  * Zero-based page index (0..N)
5341
5357
  */
@@ -6108,6 +6124,7 @@ export type DeleteBoardByBoardIdData = {
6108
6124
  query?: {
6109
6125
  migrateToBoard?: string;
6110
6126
  migrateToStage?: string;
6127
+ deleteTasks?: boolean;
6111
6128
  };
6112
6129
  url: '/board/{boardId}';
6113
6130
  };
@@ -6133,6 +6150,21 @@ export type GetBoardByBoardIdResponses = {
6133
6150
  200: BoardResponse;
6134
6151
  };
6135
6152
  export type GetBoardByBoardIdResponse = GetBoardByBoardIdResponses[keyof GetBoardByBoardIdResponses];
6153
+ export type GetBoardByBoardIdTaskCountsData = {
6154
+ body?: never;
6155
+ path: {
6156
+ boardId: string;
6157
+ };
6158
+ query?: never;
6159
+ url: '/board/{boardId}/task-counts';
6160
+ };
6161
+ export type GetBoardByBoardIdTaskCountsResponses = {
6162
+ /**
6163
+ * OK
6164
+ */
6165
+ 200: Array<StageTaskCountResponse>;
6166
+ };
6167
+ export type GetBoardByBoardIdTaskCountsResponse = GetBoardByBoardIdTaskCountsResponses[keyof GetBoardByBoardIdTaskCountsResponses];
6136
6168
  export type GetAgencyData = {
6137
6169
  body?: never;
6138
6170
  path?: never;
@@ -6352,6 +6384,7 @@ export type DeleteBoardByBoardIdStageByStageIdData = {
6352
6384
  };
6353
6385
  query?: {
6354
6386
  migrateTo?: string;
6387
+ deleteTasks?: boolean;
6355
6388
  };
6356
6389
  url: '/board/{boardId}/stage/{stageId}';
6357
6390
  };