@homespot-sdk/core 0.0.364 → 0.0.366

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 (59) hide show
  1. package/dist/property/index.d.ts +2 -2
  2. package/dist/property/index.d.ts.map +1 -1
  3. package/dist/property/index.js +1 -1
  4. package/dist/property/index.js.map +1 -1
  5. package/dist/property/schemas.gen.d.ts +145 -1
  6. package/dist/property/schemas.gen.d.ts.map +1 -1
  7. package/dist/property/schemas.gen.js +152 -0
  8. package/dist/property/schemas.gen.js.map +1 -1
  9. package/dist/property/sdk.gen.d.ts +11 -3
  10. package/dist/property/sdk.gen.d.ts.map +1 -1
  11. package/dist/property/sdk.gen.js +61 -3
  12. package/dist/property/sdk.gen.js.map +1 -1
  13. package/dist/property/transformers.gen.d.ts +3 -1
  14. package/dist/property/transformers.gen.d.ts.map +1 -1
  15. package/dist/property/transformers.gen.js +12 -0
  16. package/dist/property/transformers.gen.js.map +1 -1
  17. package/dist/property/types.gen.d.ts +215 -0
  18. package/dist/property/types.gen.d.ts.map +1 -1
  19. package/dist/property/zod.gen.d.ts +222 -0
  20. package/dist/property/zod.gen.d.ts.map +1 -1
  21. package/dist/property/zod.gen.js +163 -0
  22. package/dist/property/zod.gen.js.map +1 -1
  23. package/dist/rem/index.d.ts +2 -2
  24. package/dist/rem/index.d.ts.map +1 -1
  25. package/dist/rem/index.js +1 -1
  26. package/dist/rem/index.js.map +1 -1
  27. package/dist/rem/schemas.gen.d.ts +199 -33
  28. package/dist/rem/schemas.gen.d.ts.map +1 -1
  29. package/dist/rem/schemas.gen.js +229 -31
  30. package/dist/rem/schemas.gen.js.map +1 -1
  31. package/dist/rem/sdk.gen.d.ts +7 -6
  32. package/dist/rem/sdk.gen.d.ts.map +1 -1
  33. package/dist/rem/sdk.gen.js +38 -13
  34. package/dist/rem/sdk.gen.js.map +1 -1
  35. package/dist/rem/types.gen.d.ts +197 -39
  36. package/dist/rem/types.gen.d.ts.map +1 -1
  37. package/dist/rem/zod.gen.d.ts +272 -26
  38. package/dist/rem/zod.gen.d.ts.map +1 -1
  39. package/dist/rem/zod.gen.js +223 -16
  40. package/dist/rem/zod.gen.js.map +1 -1
  41. package/dist/utils/index.d.ts +2 -2
  42. package/dist/utils/index.d.ts.map +1 -1
  43. package/dist/utils/index.js +1 -1
  44. package/dist/utils/index.js.map +1 -1
  45. package/dist/utils/schemas.gen.d.ts +37 -0
  46. package/dist/utils/schemas.gen.d.ts.map +1 -1
  47. package/dist/utils/schemas.gen.js +37 -0
  48. package/dist/utils/schemas.gen.js.map +1 -1
  49. package/dist/utils/sdk.gen.d.ts +2 -1
  50. package/dist/utils/sdk.gen.d.ts.map +1 -1
  51. package/dist/utils/sdk.gen.js +8 -0
  52. package/dist/utils/sdk.gen.js.map +1 -1
  53. package/dist/utils/types.gen.d.ts +24 -0
  54. package/dist/utils/types.gen.d.ts.map +1 -1
  55. package/dist/utils/zod.gen.d.ts +29 -0
  56. package/dist/utils/zod.gen.d.ts.map +1 -1
  57. package/dist/utils/zod.gen.js +34 -0
  58. package/dist/utils/zod.gen.js.map +1 -1
  59. package/package.json +1 -1
@@ -85,6 +85,31 @@ export type SetTaskCommissionRequest = {
85
85
  export type RenameTodoRequest = {
86
86
  title: string;
87
87
  };
88
+ export type SaveSocialPostTemplateRequest = {
89
+ /**
90
+ * Lines with {{key}} placeholders
91
+ */
92
+ text: string;
93
+ /**
94
+ * The version the text was read at; null while the group had HomeSpot's text
95
+ */
96
+ version?: number;
97
+ };
98
+ export type PostTemplateView = {
99
+ group: 'HOUSE_GROUP' | 'APARTMENT_GROUP' | 'HOSPITALITY_GROUP' | 'LAND_GROUP' | 'BUSINESS_GROUP' | 'STORAGE_GROUP';
100
+ /**
101
+ * Lines with {{key}} placeholders
102
+ */
103
+ text: string;
104
+ /**
105
+ * False while the group has HomeSpot's text
106
+ */
107
+ customized: boolean;
108
+ /**
109
+ * Sent back when saving; null while the group has HomeSpot's text
110
+ */
111
+ version?: number;
112
+ };
88
113
  export type RolesRequest = {
89
114
  name: string;
90
115
  description: string;
@@ -165,6 +190,26 @@ export type UpdateContactDetailsRequest = {
165
190
  favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
166
191
  nullifyFavoriteContactMethod?: boolean;
167
192
  };
193
+ export type ExternalListingManualSaveRequest = {
194
+ listingId: number;
195
+ /**
196
+ * Which portal the listing is on; needed for a bare number, and a link has to agree with it
197
+ */
198
+ platform?: 'SS' | 'MY_HOME';
199
+ /**
200
+ * The listing's link on ss.ge or myhome.ge, or its number
201
+ */
202
+ portalListing: string;
203
+ listedAt?: Date;
204
+ /**
205
+ * When the agent last renewed it on the portal; today, to mark it renewed
206
+ */
207
+ renewedAt?: Date;
208
+ /**
209
+ * When the portal says it ends; left out, 30 days after renewedAt or else listedAt
210
+ */
211
+ expiresAt?: Date;
212
+ };
168
213
  export type ReassignMemberRequest = {
169
214
  memberId: string;
170
215
  };
@@ -543,7 +588,6 @@ export type PublishSocialPostRequest = {
543
588
  * In post order
544
589
  */
545
590
  photos: Array<Photo>;
546
- templateId?: string;
547
591
  };
548
592
  export type FocusView = {
549
593
  x: number;
@@ -564,7 +608,6 @@ export type SocialPostView = {
564
608
  */
565
609
  ratio?: 'LANDSCAPE' | 'SQUARE' | 'PORTRAIT';
566
610
  photos: Array<PhotoView>;
567
- templateId?: string;
568
611
  failureReason?: 'RECONNECT_REQUIRED' | 'PERMISSION_MISSING' | 'PAGE_PUBLISHING_AUTHORIZATION' | 'RATE_LIMITED' | 'BAD_MEDIA' | 'UNCONFIRMED' | 'UNKNOWN';
569
612
  failureDetail?: string;
570
613
  /**
@@ -674,10 +717,6 @@ export type ExternalListingBoostRequest = {
674
717
  tier: 'VIP' | 'VIP_PLUS' | 'SUPER_VIP';
675
718
  numberOfDays: number;
676
719
  };
677
- export type OnboardFromSourceRequest = {
678
- sourceLink: string;
679
- phone: string;
680
- };
681
720
  export type CreateBoardRequest = {
682
721
  kind?: 'OWNER' | 'SEEKER';
683
722
  name: string;
@@ -1203,6 +1242,43 @@ export type ContactAcquisitionResponse = {
1203
1242
  series: Array<ChannelSeries>;
1204
1243
  total: number;
1205
1244
  };
1245
+ export type PostTemplates = {
1246
+ /**
1247
+ * One per property group
1248
+ */
1249
+ templates: Array<PostTemplateView>;
1250
+ /**
1251
+ * What a text can hold as {{key}}, with the groups each fact applies to
1252
+ */
1253
+ facts: Array<TemplateFact>;
1254
+ limits: TemplateLimits;
1255
+ };
1256
+ export type TemplateFact = {
1257
+ /**
1258
+ * Written in a text as {{key}}
1259
+ */
1260
+ key: string;
1261
+ /**
1262
+ * In Georgian
1263
+ */
1264
+ label: string;
1265
+ /**
1266
+ * A value as a listing fills it in, in Georgian
1267
+ */
1268
+ example: string;
1269
+ groups: Array<'HOUSE_GROUP' | 'APARTMENT_GROUP' | 'HOSPITALITY_GROUP' | 'LAND_GROUP' | 'BUSINESS_GROUP' | 'STORAGE_GROUP'>;
1270
+ };
1271
+ export type TemplateLimits = {
1272
+ /**
1273
+ * In code points, as the composer counts
1274
+ */
1275
+ maxLength: number;
1276
+ maxHashtags: number;
1277
+ /**
1278
+ * @ tags
1279
+ */
1280
+ maxTags: number;
1281
+ };
1206
1282
  export type PageMetadata = {
1207
1283
  size?: number;
1208
1284
  number?: number;
@@ -1501,13 +1577,17 @@ export type DealResponse = {
1501
1577
  export type PlatformListingResponse = {
1502
1578
  platformId?: number;
1503
1579
  platformType: 'SS' | 'MY_HOME';
1504
- status: 'PENDING' | 'SYNDICATED' | 'FAILED' | 'EXPIRED' | 'WITHDRAWING' | 'WITHDRAWN';
1580
+ status: 'PENDING' | 'SYNDICATED' | 'FAILED' | 'EXPIRED' | 'WITHDRAWING' | 'WITHDRAWN' | 'MANUAL';
1505
1581
  listedAt?: Date;
1506
1582
  expiresAt?: Date;
1507
1583
  renewedAt?: Date;
1508
1584
  failureReason?: string;
1509
1585
  boost?: BoostResponse;
1510
1586
  coloredListing?: ColoredListingResponse;
1587
+ /**
1588
+ * Opens the listing on the portal, once the portal gave it a number
1589
+ */
1590
+ url?: string;
1511
1591
  };
1512
1592
  export type PropertyCloseReasonResponse = {
1513
1593
  closedAt: Date;
@@ -1899,21 +1979,12 @@ export type ListingGridResponse = {
1899
1979
  agreementExpiresAt?: Date;
1900
1980
  propertyState: 'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED';
1901
1981
  listingType?: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
1902
- /**
1903
- * Whether the agency still works the listing; null for a property without one
1904
- */
1905
1982
  listingState?: 'OPEN' | 'CLOSED';
1906
- /**
1907
- * The listing on HomeSpot's own marketplace; null for a property without one
1908
- */
1909
1983
  marketplaceStatus?: 'ACTIVE' | 'PAUSED' | 'EXPIRED';
1910
1984
  price?: number;
1911
1985
  commissionType?: 'NOT_SET' | 'FIXED' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
1912
1986
  commission?: number;
1913
1987
  platforms: Array<PlatformView>;
1914
- /**
1915
- * Where the listing is posted on Facebook / Instagram: the latest published post per channel
1916
- */
1917
1988
  socialPosts: Array<SocialPostLink>;
1918
1989
  createdAt: Date;
1919
1990
  updatedAt: Date;
@@ -1925,19 +1996,14 @@ export type PagedModelListingGridResponse = {
1925
1996
  export type PlatformView = {
1926
1997
  platformId?: number;
1927
1998
  platform?: 'SS' | 'MY_HOME';
1928
- /**
1929
- * PENDING until the portal answers; SYNDICATED while live
1930
- */
1931
- status: 'PENDING' | 'SYNDICATED' | 'FAILED' | 'EXPIRED' | 'WITHDRAWING' | 'WITHDRAWN';
1999
+ status: 'PENDING' | 'SYNDICATED' | 'FAILED' | 'EXPIRED' | 'WITHDRAWING' | 'WITHDRAWN' | 'MANUAL';
1932
2000
  expiresAt?: Date;
1933
2001
  tier?: 'VIP' | 'VIP_PLUS' | 'SUPER_VIP';
1934
2002
  boostExpiresAt?: Date;
2003
+ url?: string;
1935
2004
  };
1936
2005
  export type SocialPostLink = {
1937
2006
  channel: 'FACEBOOK' | 'INSTAGRAM';
1938
- /**
1939
- * Opens the post on Facebook / Instagram
1940
- */
1941
2007
  permalink: string;
1942
2008
  };
1943
2009
  export type GroupCount = {
@@ -2075,6 +2141,14 @@ export type ComposerLimits = {
2075
2141
  * In Unicode code points: an emoji counts once, as [...text].length counts in JavaScript (text.length counts it twice)
2076
2142
  */
2077
2143
  maxCaptionLength: number;
2144
+ /**
2145
+ * Null where the channel caps none (Facebook)
2146
+ */
2147
+ maxHashtags?: number;
2148
+ /**
2149
+ * @ tags; null where the channel caps none (Facebook)
2150
+ */
2151
+ maxTags?: number;
2078
2152
  };
2079
2153
  export type ComposerPhoto = {
2080
2154
  /**
@@ -2095,13 +2169,17 @@ export type ComposerPhoto = {
2095
2169
  export type ComposerPreview = {
2096
2170
  channel: 'FACEBOOK' | 'INSTAGRAM';
2097
2171
  /**
2098
- * The built-in Georgian template filled in from the listing; a line with nothing to fill it is left out
2172
+ * 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
2099
2173
  */
2100
2174
  caption: string;
2101
2175
  /**
2102
- * The template the text came from, sent back on publish; null for the built-in one
2176
+ * The property group whose template the caption came from: the one an Edit template opens
2177
+ */
2178
+ group: 'HOUSE_GROUP' | 'APARTMENT_GROUP' | 'HOSPITALITY_GROUP' | 'LAND_GROUP' | 'BUSINESS_GROUP' | 'STORAGE_GROUP';
2179
+ /**
2180
+ * The facts whose lines were left out because the listing doesn't have them; the agent can fill them in on the property
2103
2181
  */
2104
- templateId?: string;
2182
+ leftOut: Array<LeftOutFact>;
2105
2183
  limits: ComposerLimits;
2106
2184
  /**
2107
2185
  * The shapes the agent can pick; empty on Facebook, which keeps each photo's own
@@ -2120,6 +2198,16 @@ export type ComposerPreview = {
2120
2198
  */
2121
2199
  access: 'ALLOWED' | 'NOT_CONNECTED' | 'RECONNECT_REQUIRED';
2122
2200
  };
2201
+ export type LeftOutFact = {
2202
+ /**
2203
+ * As the template writes it, e.g. property.bedrooms
2204
+ */
2205
+ key: string;
2206
+ /**
2207
+ * In Georgian
2208
+ */
2209
+ label: string;
2210
+ };
2123
2211
  export type CursorPageSocialCommentThreadResponse = {
2124
2212
  items?: Array<SocialCommentThreadResponse>;
2125
2213
  nextCursor?: string;
@@ -2335,6 +2423,10 @@ export type MemberCurationView = {
2335
2423
  profilePictureUrl?: string;
2336
2424
  isFeatured?: boolean;
2337
2425
  };
2426
+ export type ExternalListingManualRemoveRequest = {
2427
+ listingId: number;
2428
+ platform: 'SS' | 'MY_HOME';
2429
+ };
2338
2430
  export type PutWhitelabelWebsiteData = {
2339
2431
  body: WebsiteRequest;
2340
2432
  path?: never;
@@ -2771,6 +2863,42 @@ export type PutTaskTodoByTodoIdCompleteResponses = {
2771
2863
  204: void;
2772
2864
  };
2773
2865
  export type PutTaskTodoByTodoIdCompleteResponse = PutTaskTodoByTodoIdCompleteResponses[keyof PutTaskTodoByTodoIdCompleteResponses];
2866
+ export type DeleteSocialPostTemplatesByGroupData = {
2867
+ body?: never;
2868
+ path: {
2869
+ group: 'HOUSE_GROUP' | 'APARTMENT_GROUP' | 'HOSPITALITY_GROUP' | 'LAND_GROUP' | 'BUSINESS_GROUP' | 'STORAGE_GROUP';
2870
+ };
2871
+ query?: never;
2872
+ url: '/social-post-templates/{group}';
2873
+ };
2874
+ export type DeleteSocialPostTemplatesByGroupResponses = {
2875
+ /**
2876
+ * OK
2877
+ */
2878
+ 200: PostTemplateView;
2879
+ };
2880
+ export type DeleteSocialPostTemplatesByGroupResponse = DeleteSocialPostTemplatesByGroupResponses[keyof DeleteSocialPostTemplatesByGroupResponses];
2881
+ export type PutSocialPostTemplatesByGroupData = {
2882
+ body: SaveSocialPostTemplateRequest;
2883
+ path: {
2884
+ group: 'HOUSE_GROUP' | 'APARTMENT_GROUP' | 'HOSPITALITY_GROUP' | 'LAND_GROUP' | 'BUSINESS_GROUP' | 'STORAGE_GROUP';
2885
+ };
2886
+ query?: never;
2887
+ url: '/social-post-templates/{group}';
2888
+ };
2889
+ export type PutSocialPostTemplatesByGroupErrors = {
2890
+ /**
2891
+ * The group's text was saved or reset since it was read
2892
+ */
2893
+ 409: unknown;
2894
+ };
2895
+ export type PutSocialPostTemplatesByGroupResponses = {
2896
+ /**
2897
+ * OK
2898
+ */
2899
+ 200: PostTemplateView;
2900
+ };
2901
+ export type PutSocialPostTemplatesByGroupResponse = PutSocialPostTemplatesByGroupResponses[keyof PutSocialPostTemplatesByGroupResponses];
2774
2902
  export type DeleteRolesByRoleIdData = {
2775
2903
  body?: never;
2776
2904
  path: {
@@ -3144,6 +3272,36 @@ export type PutContactByContactIdUpdateContactDetailsResponses = {
3144
3272
  204: void;
3145
3273
  };
3146
3274
  export type PutContactByContactIdUpdateContactDetailsResponse = PutContactByContactIdUpdateContactDetailsResponses[keyof PutContactByContactIdUpdateContactDetailsResponses];
3275
+ export type DeleteContactByContactIdPropertyByPropertyIdExternalListingManualData = {
3276
+ body: ExternalListingManualRemoveRequest;
3277
+ path: {
3278
+ contactId: number;
3279
+ propertyId: number;
3280
+ };
3281
+ query?: never;
3282
+ url: '/contact/{contactId}/property/{propertyId}/external-listing/manual';
3283
+ };
3284
+ export type DeleteContactByContactIdPropertyByPropertyIdExternalListingManualResponses = {
3285
+ /**
3286
+ * OK
3287
+ */
3288
+ 200: unknown;
3289
+ };
3290
+ export type PutContactByContactIdPropertyByPropertyIdExternalListingManualData = {
3291
+ body: ExternalListingManualSaveRequest;
3292
+ path: {
3293
+ contactId: number;
3294
+ propertyId: number;
3295
+ };
3296
+ query?: never;
3297
+ url: '/contact/{contactId}/property/{propertyId}/external-listing/manual';
3298
+ };
3299
+ export type PutContactByContactIdPropertyByPropertyIdExternalListingManualResponses = {
3300
+ /**
3301
+ * OK
3302
+ */
3303
+ 200: unknown;
3304
+ };
3147
3305
  export type PutContactByContactIdAssignmentData = {
3148
3306
  body: ReassignMemberRequest;
3149
3307
  path: {
@@ -4658,19 +4816,6 @@ export type PostContactByContactIdPropertyByPropertyIdExternalListingBoostRespon
4658
4816
  */
4659
4817
  200: unknown;
4660
4818
  };
4661
- export type PostContactSourceData = {
4662
- body: OnboardFromSourceRequest;
4663
- path?: never;
4664
- query?: never;
4665
- url: '/contact/source';
4666
- };
4667
- export type PostContactSourceResponses = {
4668
- /**
4669
- * Created
4670
- */
4671
- 201: IdResponseLong;
4672
- };
4673
- export type PostContactSourceResponse = PostContactSourceResponses[keyof PostContactSourceResponses];
4674
4819
  export type GetBoardData = {
4675
4820
  body?: never;
4676
4821
  path?: never;
@@ -4942,6 +5087,19 @@ export type GetStatsContactsAcquisitionResponses = {
4942
5087
  200: ContactAcquisitionResponse;
4943
5088
  };
4944
5089
  export type GetStatsContactsAcquisitionResponse = GetStatsContactsAcquisitionResponses[keyof GetStatsContactsAcquisitionResponses];
5090
+ export type GetSocialPostTemplatesData = {
5091
+ body?: never;
5092
+ path?: never;
5093
+ query?: never;
5094
+ url: '/social-post-templates';
5095
+ };
5096
+ export type GetSocialPostTemplatesResponses = {
5097
+ /**
5098
+ * OK
5099
+ */
5100
+ 200: PostTemplates;
5101
+ };
5102
+ export type GetSocialPostTemplatesResponse = GetSocialPostTemplatesResponses[keyof GetSocialPostTemplatesResponses];
4945
5103
  export type GetPublicTelegramPropertyFormsByFormIdOwnersData = {
4946
5104
  body?: never;
4947
5105
  headers?: {