@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.
- 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 +145 -1
- package/dist/property/schemas.gen.d.ts.map +1 -1
- package/dist/property/schemas.gen.js +152 -0
- package/dist/property/schemas.gen.js.map +1 -1
- package/dist/property/sdk.gen.d.ts +11 -3
- package/dist/property/sdk.gen.d.ts.map +1 -1
- package/dist/property/sdk.gen.js +61 -3
- package/dist/property/sdk.gen.js.map +1 -1
- package/dist/property/transformers.gen.d.ts +3 -1
- package/dist/property/transformers.gen.d.ts.map +1 -1
- package/dist/property/transformers.gen.js +12 -0
- package/dist/property/transformers.gen.js.map +1 -1
- package/dist/property/types.gen.d.ts +215 -0
- package/dist/property/types.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.d.ts +222 -0
- package/dist/property/zod.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.js +163 -0
- 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 +199 -33
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +229 -31
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +7 -6
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +38 -13
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +197 -39
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +272 -26
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +223 -16
- package/dist/rem/zod.gen.js.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/schemas.gen.d.ts +37 -0
- package/dist/utils/schemas.gen.d.ts.map +1 -1
- package/dist/utils/schemas.gen.js +37 -0
- package/dist/utils/schemas.gen.js.map +1 -1
- package/dist/utils/sdk.gen.d.ts +2 -1
- package/dist/utils/sdk.gen.d.ts.map +1 -1
- package/dist/utils/sdk.gen.js +8 -0
- package/dist/utils/sdk.gen.js.map +1 -1
- package/dist/utils/types.gen.d.ts +24 -0
- package/dist/utils/types.gen.d.ts.map +1 -1
- package/dist/utils/zod.gen.d.ts +29 -0
- package/dist/utils/zod.gen.d.ts.map +1 -1
- package/dist/utils/zod.gen.js +34 -0
- package/dist/utils/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -290,6 +290,51 @@ export const RenameTodoRequestSchema = {
|
|
|
290
290
|
},
|
|
291
291
|
required: ['title'],
|
|
292
292
|
};
|
|
293
|
+
export const SaveSocialPostTemplateRequestSchema = {
|
|
294
|
+
type: 'object',
|
|
295
|
+
properties: {
|
|
296
|
+
text: {
|
|
297
|
+
type: 'string',
|
|
298
|
+
description: 'Lines with {{key}} placeholders',
|
|
299
|
+
},
|
|
300
|
+
version: {
|
|
301
|
+
type: 'integer',
|
|
302
|
+
format: 'int32',
|
|
303
|
+
description: "The version the text was read at; null while the group had HomeSpot's text",
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
required: ['text'],
|
|
307
|
+
};
|
|
308
|
+
export const PostTemplateViewSchema = {
|
|
309
|
+
type: 'object',
|
|
310
|
+
properties: {
|
|
311
|
+
group: {
|
|
312
|
+
type: 'string',
|
|
313
|
+
enum: [
|
|
314
|
+
'HOUSE_GROUP',
|
|
315
|
+
'APARTMENT_GROUP',
|
|
316
|
+
'HOSPITALITY_GROUP',
|
|
317
|
+
'LAND_GROUP',
|
|
318
|
+
'BUSINESS_GROUP',
|
|
319
|
+
'STORAGE_GROUP',
|
|
320
|
+
],
|
|
321
|
+
},
|
|
322
|
+
text: {
|
|
323
|
+
type: 'string',
|
|
324
|
+
description: 'Lines with {{key}} placeholders',
|
|
325
|
+
},
|
|
326
|
+
customized: {
|
|
327
|
+
type: 'boolean',
|
|
328
|
+
description: "False while the group has HomeSpot's text",
|
|
329
|
+
},
|
|
330
|
+
version: {
|
|
331
|
+
type: 'integer',
|
|
332
|
+
format: 'int32',
|
|
333
|
+
description: "Sent back when saving; null while the group has HomeSpot's text",
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
required: ['customized', 'group', 'text'],
|
|
337
|
+
};
|
|
293
338
|
export const RolesRequestSchema = {
|
|
294
339
|
type: 'object',
|
|
295
340
|
properties: {
|
|
@@ -629,6 +674,40 @@ export const UpdateContactDetailsRequestSchema = {
|
|
|
629
674
|
},
|
|
630
675
|
},
|
|
631
676
|
};
|
|
677
|
+
export const ExternalListingManualSaveRequestSchema = {
|
|
678
|
+
type: 'object',
|
|
679
|
+
properties: {
|
|
680
|
+
listingId: {
|
|
681
|
+
type: 'integer',
|
|
682
|
+
format: 'int64',
|
|
683
|
+
},
|
|
684
|
+
platform: {
|
|
685
|
+
type: 'string',
|
|
686
|
+
description: 'Which portal the listing is on; needed for a bare number, and a link has to agree with it',
|
|
687
|
+
enum: ['SS', 'MY_HOME'],
|
|
688
|
+
},
|
|
689
|
+
portalListing: {
|
|
690
|
+
type: 'string',
|
|
691
|
+
description: "The listing's link on ss.ge or myhome.ge, or its number",
|
|
692
|
+
minLength: 1,
|
|
693
|
+
},
|
|
694
|
+
listedAt: {
|
|
695
|
+
type: 'string',
|
|
696
|
+
format: 'date',
|
|
697
|
+
},
|
|
698
|
+
renewedAt: {
|
|
699
|
+
type: 'string',
|
|
700
|
+
format: 'date',
|
|
701
|
+
description: 'When the agent last renewed it on the portal; today, to mark it renewed',
|
|
702
|
+
},
|
|
703
|
+
expiresAt: {
|
|
704
|
+
type: 'string',
|
|
705
|
+
format: 'date',
|
|
706
|
+
description: 'When the portal says it ends; left out, 30 days after renewedAt or else listedAt',
|
|
707
|
+
},
|
|
708
|
+
},
|
|
709
|
+
required: ['listingId', 'portalListing'],
|
|
710
|
+
};
|
|
632
711
|
export const ReassignMemberRequestSchema = {
|
|
633
712
|
type: 'object',
|
|
634
713
|
properties: {
|
|
@@ -1994,10 +2073,6 @@ export const PublishSocialPostRequestSchema = {
|
|
|
1994
2073
|
$ref: '#/components/schemas/Photo',
|
|
1995
2074
|
},
|
|
1996
2075
|
},
|
|
1997
|
-
templateId: {
|
|
1998
|
-
type: 'string',
|
|
1999
|
-
format: 'uuid',
|
|
2000
|
-
},
|
|
2001
2076
|
},
|
|
2002
2077
|
required: ['caption', 'channel', 'photos'],
|
|
2003
2078
|
};
|
|
@@ -2061,10 +2136,6 @@ export const SocialPostViewSchema = {
|
|
|
2061
2136
|
$ref: '#/components/schemas/PhotoView',
|
|
2062
2137
|
},
|
|
2063
2138
|
},
|
|
2064
|
-
templateId: {
|
|
2065
|
-
type: 'string',
|
|
2066
|
-
format: 'uuid',
|
|
2067
|
-
},
|
|
2068
2139
|
failureReason: {
|
|
2069
2140
|
type: 'string',
|
|
2070
2141
|
enum: [
|
|
@@ -2347,19 +2418,6 @@ export const ExternalListingBoostRequestSchema = {
|
|
|
2347
2418
|
},
|
|
2348
2419
|
required: ['listingId', 'numberOfDays', 'platform', 'tier'],
|
|
2349
2420
|
};
|
|
2350
|
-
export const OnboardFromSourceRequestSchema = {
|
|
2351
|
-
type: 'object',
|
|
2352
|
-
properties: {
|
|
2353
|
-
sourceLink: {
|
|
2354
|
-
type: 'string',
|
|
2355
|
-
},
|
|
2356
|
-
phone: {
|
|
2357
|
-
type: 'string',
|
|
2358
|
-
minLength: 1,
|
|
2359
|
-
},
|
|
2360
|
-
},
|
|
2361
|
-
required: ['phone', 'sourceLink'],
|
|
2362
|
-
};
|
|
2363
2421
|
export const CreateBoardRequestSchema = {
|
|
2364
2422
|
type: 'object',
|
|
2365
2423
|
properties: {
|
|
@@ -4390,6 +4448,81 @@ export const ContactAcquisitionResponseSchema = {
|
|
|
4390
4448
|
},
|
|
4391
4449
|
required: ['buckets', 'from', 'granularity', 'series', 'to', 'total'],
|
|
4392
4450
|
};
|
|
4451
|
+
export const PostTemplatesSchema = {
|
|
4452
|
+
type: 'object',
|
|
4453
|
+
properties: {
|
|
4454
|
+
templates: {
|
|
4455
|
+
type: 'array',
|
|
4456
|
+
description: 'One per property group',
|
|
4457
|
+
items: {
|
|
4458
|
+
$ref: '#/components/schemas/PostTemplateView',
|
|
4459
|
+
},
|
|
4460
|
+
},
|
|
4461
|
+
facts: {
|
|
4462
|
+
type: 'array',
|
|
4463
|
+
description: 'What a text can hold as {{key}}, with the groups each fact applies to',
|
|
4464
|
+
items: {
|
|
4465
|
+
$ref: '#/components/schemas/TemplateFact',
|
|
4466
|
+
},
|
|
4467
|
+
},
|
|
4468
|
+
limits: {
|
|
4469
|
+
$ref: '#/components/schemas/TemplateLimits',
|
|
4470
|
+
},
|
|
4471
|
+
},
|
|
4472
|
+
required: ['facts', 'limits', 'templates'],
|
|
4473
|
+
};
|
|
4474
|
+
export const TemplateFactSchema = {
|
|
4475
|
+
type: 'object',
|
|
4476
|
+
properties: {
|
|
4477
|
+
key: {
|
|
4478
|
+
type: 'string',
|
|
4479
|
+
description: 'Written in a text as {{key}}',
|
|
4480
|
+
},
|
|
4481
|
+
label: {
|
|
4482
|
+
type: 'string',
|
|
4483
|
+
description: 'In Georgian',
|
|
4484
|
+
},
|
|
4485
|
+
example: {
|
|
4486
|
+
type: 'string',
|
|
4487
|
+
description: 'A value as a listing fills it in, in Georgian',
|
|
4488
|
+
},
|
|
4489
|
+
groups: {
|
|
4490
|
+
type: 'array',
|
|
4491
|
+
items: {
|
|
4492
|
+
type: 'string',
|
|
4493
|
+
enum: [
|
|
4494
|
+
'HOUSE_GROUP',
|
|
4495
|
+
'APARTMENT_GROUP',
|
|
4496
|
+
'HOSPITALITY_GROUP',
|
|
4497
|
+
'LAND_GROUP',
|
|
4498
|
+
'BUSINESS_GROUP',
|
|
4499
|
+
'STORAGE_GROUP',
|
|
4500
|
+
],
|
|
4501
|
+
},
|
|
4502
|
+
},
|
|
4503
|
+
},
|
|
4504
|
+
required: ['example', 'groups', 'key', 'label'],
|
|
4505
|
+
};
|
|
4506
|
+
export const TemplateLimitsSchema = {
|
|
4507
|
+
type: 'object',
|
|
4508
|
+
properties: {
|
|
4509
|
+
maxLength: {
|
|
4510
|
+
type: 'integer',
|
|
4511
|
+
format: 'int32',
|
|
4512
|
+
description: 'In code points, as the composer counts',
|
|
4513
|
+
},
|
|
4514
|
+
maxHashtags: {
|
|
4515
|
+
type: 'integer',
|
|
4516
|
+
format: 'int32',
|
|
4517
|
+
},
|
|
4518
|
+
maxTags: {
|
|
4519
|
+
type: 'integer',
|
|
4520
|
+
format: 'int32',
|
|
4521
|
+
description: '@ tags',
|
|
4522
|
+
},
|
|
4523
|
+
},
|
|
4524
|
+
required: ['maxHashtags', 'maxLength', 'maxTags'],
|
|
4525
|
+
};
|
|
4393
4526
|
export const PageMetadataSchema = {
|
|
4394
4527
|
type: 'object',
|
|
4395
4528
|
properties: {
|
|
@@ -5548,6 +5681,7 @@ export const PlatformListingResponseSchema = {
|
|
|
5548
5681
|
'EXPIRED',
|
|
5549
5682
|
'WITHDRAWING',
|
|
5550
5683
|
'WITHDRAWN',
|
|
5684
|
+
'MANUAL',
|
|
5551
5685
|
],
|
|
5552
5686
|
},
|
|
5553
5687
|
listedAt: {
|
|
@@ -5571,6 +5705,10 @@ export const PlatformListingResponseSchema = {
|
|
|
5571
5705
|
coloredListing: {
|
|
5572
5706
|
$ref: '#/components/schemas/ColoredListingResponse',
|
|
5573
5707
|
},
|
|
5708
|
+
url: {
|
|
5709
|
+
type: 'string',
|
|
5710
|
+
description: 'Opens the listing on the portal, once the portal gave it a number',
|
|
5711
|
+
},
|
|
5574
5712
|
},
|
|
5575
5713
|
required: ['platformType', 'status'],
|
|
5576
5714
|
};
|
|
@@ -7016,12 +7154,10 @@ export const ListingGridResponseSchema = {
|
|
|
7016
7154
|
},
|
|
7017
7155
|
listingState: {
|
|
7018
7156
|
type: 'string',
|
|
7019
|
-
description: 'Whether the agency still works the listing; null for a property without one',
|
|
7020
7157
|
enum: ['OPEN', 'CLOSED'],
|
|
7021
7158
|
},
|
|
7022
7159
|
marketplaceStatus: {
|
|
7023
7160
|
type: 'string',
|
|
7024
|
-
description: "The listing on HomeSpot's own marketplace; null for a property without one",
|
|
7025
7161
|
enum: ['ACTIVE', 'PAUSED', 'EXPIRED'],
|
|
7026
7162
|
},
|
|
7027
7163
|
price: {
|
|
@@ -7042,7 +7178,6 @@ export const ListingGridResponseSchema = {
|
|
|
7042
7178
|
},
|
|
7043
7179
|
socialPosts: {
|
|
7044
7180
|
type: 'array',
|
|
7045
|
-
description: 'Where the listing is posted on Facebook / Instagram: the latest published post per channel',
|
|
7046
7181
|
items: {
|
|
7047
7182
|
$ref: '#/components/schemas/SocialPostLink',
|
|
7048
7183
|
},
|
|
@@ -7099,7 +7234,6 @@ export const PlatformViewSchema = {
|
|
|
7099
7234
|
},
|
|
7100
7235
|
status: {
|
|
7101
7236
|
type: 'string',
|
|
7102
|
-
description: 'PENDING until the portal answers; SYNDICATED while live',
|
|
7103
7237
|
enum: [
|
|
7104
7238
|
'PENDING',
|
|
7105
7239
|
'SYNDICATED',
|
|
@@ -7107,6 +7241,7 @@ export const PlatformViewSchema = {
|
|
|
7107
7241
|
'EXPIRED',
|
|
7108
7242
|
'WITHDRAWING',
|
|
7109
7243
|
'WITHDRAWN',
|
|
7244
|
+
'MANUAL',
|
|
7110
7245
|
],
|
|
7111
7246
|
},
|
|
7112
7247
|
expiresAt: {
|
|
@@ -7121,6 +7256,9 @@ export const PlatformViewSchema = {
|
|
|
7121
7256
|
type: 'string',
|
|
7122
7257
|
format: 'date',
|
|
7123
7258
|
},
|
|
7259
|
+
url: {
|
|
7260
|
+
type: 'string',
|
|
7261
|
+
},
|
|
7124
7262
|
},
|
|
7125
7263
|
required: ['status'],
|
|
7126
7264
|
};
|
|
@@ -7133,7 +7271,6 @@ export const SocialPostLinkSchema = {
|
|
|
7133
7271
|
},
|
|
7134
7272
|
permalink: {
|
|
7135
7273
|
type: 'string',
|
|
7136
|
-
description: 'Opens the post on Facebook / Instagram',
|
|
7137
7274
|
},
|
|
7138
7275
|
},
|
|
7139
7276
|
required: ['channel', 'permalink'],
|
|
@@ -7622,6 +7759,16 @@ export const ComposerLimitsSchema = {
|
|
|
7622
7759
|
format: 'int32',
|
|
7623
7760
|
description: 'In Unicode code points: an emoji counts once, as [...text].length counts in JavaScript (text.length counts it twice)',
|
|
7624
7761
|
},
|
|
7762
|
+
maxHashtags: {
|
|
7763
|
+
type: 'integer',
|
|
7764
|
+
format: 'int32',
|
|
7765
|
+
description: 'Null where the channel caps none (Facebook)',
|
|
7766
|
+
},
|
|
7767
|
+
maxTags: {
|
|
7768
|
+
type: 'integer',
|
|
7769
|
+
format: 'int32',
|
|
7770
|
+
description: '@ tags; null where the channel caps none (Facebook)',
|
|
7771
|
+
},
|
|
7625
7772
|
},
|
|
7626
7773
|
required: ['maxCaptionLength', 'maxPhotos'],
|
|
7627
7774
|
};
|
|
@@ -7661,12 +7808,26 @@ export const ComposerPreviewSchema = {
|
|
|
7661
7808
|
},
|
|
7662
7809
|
caption: {
|
|
7663
7810
|
type: 'string',
|
|
7664
|
-
description:
|
|
7811
|
+
description: "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",
|
|
7665
7812
|
},
|
|
7666
|
-
|
|
7813
|
+
group: {
|
|
7667
7814
|
type: 'string',
|
|
7668
|
-
|
|
7669
|
-
|
|
7815
|
+
description: 'The property group whose template the caption came from: the one an Edit template opens',
|
|
7816
|
+
enum: [
|
|
7817
|
+
'HOUSE_GROUP',
|
|
7818
|
+
'APARTMENT_GROUP',
|
|
7819
|
+
'HOSPITALITY_GROUP',
|
|
7820
|
+
'LAND_GROUP',
|
|
7821
|
+
'BUSINESS_GROUP',
|
|
7822
|
+
'STORAGE_GROUP',
|
|
7823
|
+
],
|
|
7824
|
+
},
|
|
7825
|
+
leftOut: {
|
|
7826
|
+
type: 'array',
|
|
7827
|
+
description: "The facts whose lines were left out because the listing doesn't have them; the agent can fill them in on the property",
|
|
7828
|
+
items: {
|
|
7829
|
+
$ref: '#/components/schemas/LeftOutFact',
|
|
7830
|
+
},
|
|
7670
7831
|
},
|
|
7671
7832
|
limits: {
|
|
7672
7833
|
$ref: '#/components/schemas/ComposerLimits',
|
|
@@ -7697,7 +7858,30 @@ export const ComposerPreviewSchema = {
|
|
|
7697
7858
|
enum: ['ALLOWED', 'NOT_CONNECTED', 'RECONNECT_REQUIRED'],
|
|
7698
7859
|
},
|
|
7699
7860
|
},
|
|
7700
|
-
required: [
|
|
7861
|
+
required: [
|
|
7862
|
+
'access',
|
|
7863
|
+
'caption',
|
|
7864
|
+
'channel',
|
|
7865
|
+
'group',
|
|
7866
|
+
'leftOut',
|
|
7867
|
+
'limits',
|
|
7868
|
+
'photos',
|
|
7869
|
+
'ratios',
|
|
7870
|
+
],
|
|
7871
|
+
};
|
|
7872
|
+
export const LeftOutFactSchema = {
|
|
7873
|
+
type: 'object',
|
|
7874
|
+
properties: {
|
|
7875
|
+
key: {
|
|
7876
|
+
type: 'string',
|
|
7877
|
+
description: 'As the template writes it, e.g. property.bedrooms',
|
|
7878
|
+
},
|
|
7879
|
+
label: {
|
|
7880
|
+
type: 'string',
|
|
7881
|
+
description: 'In Georgian',
|
|
7882
|
+
},
|
|
7883
|
+
},
|
|
7884
|
+
required: ['key', 'label'],
|
|
7701
7885
|
};
|
|
7702
7886
|
export const CursorPageSocialCommentThreadResponseSchema = {
|
|
7703
7887
|
type: 'object',
|
|
@@ -8571,4 +8755,18 @@ export const MemberCurationViewSchema = {
|
|
|
8571
8755
|
},
|
|
8572
8756
|
},
|
|
8573
8757
|
};
|
|
8758
|
+
export const ExternalListingManualRemoveRequestSchema = {
|
|
8759
|
+
type: 'object',
|
|
8760
|
+
properties: {
|
|
8761
|
+
listingId: {
|
|
8762
|
+
type: 'integer',
|
|
8763
|
+
format: 'int64',
|
|
8764
|
+
},
|
|
8765
|
+
platform: {
|
|
8766
|
+
type: 'string',
|
|
8767
|
+
enum: ['SS', 'MY_HOME'],
|
|
8768
|
+
},
|
|
8769
|
+
},
|
|
8770
|
+
required: ['listingId', 'platform'],
|
|
8771
|
+
};
|
|
8574
8772
|
//# sourceMappingURL=schemas.gen.js.map
|