@homespot-sdk/core 0.0.363 → 0.0.364
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/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 +390 -0
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +470 -0
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +6 -2
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +31 -2
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +2 -1
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +10 -0
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +210 -2
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +694 -13
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +411 -2
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/types.gen.d.ts
CHANGED
|
@@ -312,6 +312,74 @@ export type CheckoutRequest = {
|
|
|
312
312
|
export type IdResponseInteger = {
|
|
313
313
|
id: number;
|
|
314
314
|
};
|
|
315
|
+
export type AddressNames = {
|
|
316
|
+
region?: {
|
|
317
|
+
[key: string]: string;
|
|
318
|
+
};
|
|
319
|
+
district?: {
|
|
320
|
+
[key: string]: string;
|
|
321
|
+
};
|
|
322
|
+
subdistrict?: {
|
|
323
|
+
[key: string]: string;
|
|
324
|
+
};
|
|
325
|
+
street?: {
|
|
326
|
+
[key: string]: string;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
export type AddressRef = {
|
|
330
|
+
regionId?: number;
|
|
331
|
+
districtId?: number;
|
|
332
|
+
subdistrictId?: number;
|
|
333
|
+
streetId?: number;
|
|
334
|
+
names?: AddressNames;
|
|
335
|
+
cadastreCode?: string;
|
|
336
|
+
coordinates?: Coordinates;
|
|
337
|
+
};
|
|
338
|
+
export type Coordinates = {
|
|
339
|
+
lat?: number;
|
|
340
|
+
lng?: number;
|
|
341
|
+
};
|
|
342
|
+
export type Offer = {
|
|
343
|
+
deal: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
|
|
344
|
+
price: number;
|
|
345
|
+
};
|
|
346
|
+
export type PhotoInternalRequest = {
|
|
347
|
+
photo: string;
|
|
348
|
+
width: number;
|
|
349
|
+
height?: number;
|
|
350
|
+
};
|
|
351
|
+
export type PropertyCreationRequest = {
|
|
352
|
+
draftId: string;
|
|
353
|
+
contactId?: number;
|
|
354
|
+
propertyType: 'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE';
|
|
355
|
+
address: AddressRef;
|
|
356
|
+
photoUrls: Array<PhotoInternalRequest>;
|
|
357
|
+
/**
|
|
358
|
+
* Areas per space type. A null entry records a space whose area is unknown.
|
|
359
|
+
*/
|
|
360
|
+
spaces: {
|
|
361
|
+
[key: string]: Array<number>;
|
|
362
|
+
};
|
|
363
|
+
totalArea: number;
|
|
364
|
+
livingArea?: number;
|
|
365
|
+
balconyArea?: number;
|
|
366
|
+
status?: 'OLD_BUILDING' | 'NEW_BUILDING' | 'UNDER_CONSTRUCTION' | 'FINISHED';
|
|
367
|
+
condition?: 'NEWLY_RENOVATED' | 'OLD_RENOVATED' | 'CURRENT_RENOVATION' | 'REPAIRING' | 'WHITE_FRAME' | 'BLACK_FRAME' | 'GREEN_FRAME' | 'WHITE_PLUS';
|
|
368
|
+
totalFloors?: number;
|
|
369
|
+
floorAt?: number;
|
|
370
|
+
amenities: Array<number>;
|
|
371
|
+
title: string;
|
|
372
|
+
description: {
|
|
373
|
+
[key: string]: string;
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
export type Submission = {
|
|
377
|
+
property: PropertyCreationRequest;
|
|
378
|
+
offer?: Offer;
|
|
379
|
+
};
|
|
380
|
+
export type PhotosRequest = {
|
|
381
|
+
photos: Array<PhotoRequest>;
|
|
382
|
+
};
|
|
315
383
|
export type ContactInfoRequest = {
|
|
316
384
|
firstName?: string;
|
|
317
385
|
lastName?: string;
|
|
@@ -1153,6 +1221,54 @@ export type RoleResponse = {
|
|
|
1153
1221
|
description: string;
|
|
1154
1222
|
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'>;
|
|
1155
1223
|
};
|
|
1224
|
+
export type Form = {
|
|
1225
|
+
id?: string;
|
|
1226
|
+
state?: 'OPEN' | 'SENT' | 'REPLACED' | 'EXPIRED';
|
|
1227
|
+
expiresAt?: Date;
|
|
1228
|
+
prefill?: Prefill;
|
|
1229
|
+
};
|
|
1230
|
+
export type LocationSummary = {
|
|
1231
|
+
id: number;
|
|
1232
|
+
parentId?: number;
|
|
1233
|
+
type: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
|
|
1234
|
+
names: {
|
|
1235
|
+
[key: string]: string;
|
|
1236
|
+
};
|
|
1237
|
+
fullNames: {
|
|
1238
|
+
[key: string]: string;
|
|
1239
|
+
};
|
|
1240
|
+
viewport: Viewport;
|
|
1241
|
+
};
|
|
1242
|
+
export type Owner = {
|
|
1243
|
+
id?: number;
|
|
1244
|
+
name?: string;
|
|
1245
|
+
phone?: string;
|
|
1246
|
+
};
|
|
1247
|
+
export type Prefill = {
|
|
1248
|
+
owner?: Owner;
|
|
1249
|
+
propertyType?: 'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE';
|
|
1250
|
+
place?: LocationSummary;
|
|
1251
|
+
spaces?: {
|
|
1252
|
+
[key: string]: Array<number>;
|
|
1253
|
+
};
|
|
1254
|
+
totalArea?: number;
|
|
1255
|
+
livingArea?: number;
|
|
1256
|
+
balconyArea?: number;
|
|
1257
|
+
status?: 'OLD_BUILDING' | 'NEW_BUILDING' | 'UNDER_CONSTRUCTION' | 'FINISHED';
|
|
1258
|
+
condition?: 'NEWLY_RENOVATED' | 'OLD_RENOVATED' | 'CURRENT_RENOVATION' | 'REPAIRING' | 'WHITE_FRAME' | 'BLACK_FRAME' | 'GREEN_FRAME' | 'WHITE_PLUS';
|
|
1259
|
+
totalFloors?: number;
|
|
1260
|
+
floorAt?: number;
|
|
1261
|
+
amenities?: Array<number>;
|
|
1262
|
+
title?: string;
|
|
1263
|
+
description?: string;
|
|
1264
|
+
offer?: Offer;
|
|
1265
|
+
};
|
|
1266
|
+
export type Viewport = {
|
|
1267
|
+
south: number;
|
|
1268
|
+
west: number;
|
|
1269
|
+
north: number;
|
|
1270
|
+
east: number;
|
|
1271
|
+
};
|
|
1156
1272
|
export type AddressResponse = {
|
|
1157
1273
|
region: LocationResponse;
|
|
1158
1274
|
district: LocationResponse;
|
|
@@ -3712,6 +3828,60 @@ export type PostPublicWebhooksFlittResponses = {
|
|
|
3712
3828
|
*/
|
|
3713
3829
|
200: unknown;
|
|
3714
3830
|
};
|
|
3831
|
+
export type GetPublicTelegramPropertyFormsByFormIdData = {
|
|
3832
|
+
body?: never;
|
|
3833
|
+
headers?: {
|
|
3834
|
+
'X-Telegram-Init-Data'?: string;
|
|
3835
|
+
};
|
|
3836
|
+
path: {
|
|
3837
|
+
formId: string;
|
|
3838
|
+
};
|
|
3839
|
+
query?: never;
|
|
3840
|
+
url: '/public/telegram/property-forms/{formId}';
|
|
3841
|
+
};
|
|
3842
|
+
export type GetPublicTelegramPropertyFormsByFormIdResponses = {
|
|
3843
|
+
/**
|
|
3844
|
+
* OK
|
|
3845
|
+
*/
|
|
3846
|
+
200: Form;
|
|
3847
|
+
};
|
|
3848
|
+
export type GetPublicTelegramPropertyFormsByFormIdResponse = GetPublicTelegramPropertyFormsByFormIdResponses[keyof GetPublicTelegramPropertyFormsByFormIdResponses];
|
|
3849
|
+
export type PostPublicTelegramPropertyFormsByFormIdData = {
|
|
3850
|
+
body: Submission;
|
|
3851
|
+
headers?: {
|
|
3852
|
+
'X-Telegram-Init-Data'?: string;
|
|
3853
|
+
};
|
|
3854
|
+
path: {
|
|
3855
|
+
formId: string;
|
|
3856
|
+
};
|
|
3857
|
+
query?: never;
|
|
3858
|
+
url: '/public/telegram/property-forms/{formId}';
|
|
3859
|
+
};
|
|
3860
|
+
export type PostPublicTelegramPropertyFormsByFormIdResponses = {
|
|
3861
|
+
/**
|
|
3862
|
+
* No Content
|
|
3863
|
+
*/
|
|
3864
|
+
204: void;
|
|
3865
|
+
};
|
|
3866
|
+
export type PostPublicTelegramPropertyFormsByFormIdResponse = PostPublicTelegramPropertyFormsByFormIdResponses[keyof PostPublicTelegramPropertyFormsByFormIdResponses];
|
|
3867
|
+
export type PostPublicTelegramPropertyFormsByFormIdPhotosData = {
|
|
3868
|
+
body: PhotosRequest;
|
|
3869
|
+
headers?: {
|
|
3870
|
+
'X-Telegram-Init-Data'?: string;
|
|
3871
|
+
};
|
|
3872
|
+
path: {
|
|
3873
|
+
formId: string;
|
|
3874
|
+
};
|
|
3875
|
+
query?: never;
|
|
3876
|
+
url: '/public/telegram/property-forms/{formId}/photos';
|
|
3877
|
+
};
|
|
3878
|
+
export type PostPublicTelegramPropertyFormsByFormIdPhotosResponses = {
|
|
3879
|
+
/**
|
|
3880
|
+
* OK
|
|
3881
|
+
*/
|
|
3882
|
+
200: Array<PresignedUrlResponse>;
|
|
3883
|
+
};
|
|
3884
|
+
export type PostPublicTelegramPropertyFormsByFormIdPhotosResponse = PostPublicTelegramPropertyFormsByFormIdPhotosResponses[keyof PostPublicTelegramPropertyFormsByFormIdPhotosResponses];
|
|
3715
3885
|
export type PostPublicRecomendationsByTokenListingsByExternalListingIdRateData = {
|
|
3716
3886
|
body: RateRecommendationItemRequest;
|
|
3717
3887
|
path: {
|
|
@@ -4397,6 +4567,7 @@ export type GetContactData = {
|
|
|
4397
4567
|
hasOpenTask?: boolean;
|
|
4398
4568
|
assignedTo?: Array<string>;
|
|
4399
4569
|
createdBy?: string;
|
|
4570
|
+
contactId?: number;
|
|
4400
4571
|
contactName?: string;
|
|
4401
4572
|
contactPhone?: string;
|
|
4402
4573
|
contactEmail?: string;
|
|
@@ -4405,6 +4576,8 @@ export type GetContactData = {
|
|
|
4405
4576
|
contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
|
|
4406
4577
|
createdFrom?: Date;
|
|
4407
4578
|
createdTo?: Date;
|
|
4579
|
+
updatedFrom?: Date;
|
|
4580
|
+
updatedTo?: Date;
|
|
4408
4581
|
/**
|
|
4409
4582
|
* Zero-based page index (0..N)
|
|
4410
4583
|
*/
|
|
@@ -4769,6 +4942,26 @@ export type GetStatsContactsAcquisitionResponses = {
|
|
|
4769
4942
|
200: ContactAcquisitionResponse;
|
|
4770
4943
|
};
|
|
4771
4944
|
export type GetStatsContactsAcquisitionResponse = GetStatsContactsAcquisitionResponses[keyof GetStatsContactsAcquisitionResponses];
|
|
4945
|
+
export type GetPublicTelegramPropertyFormsByFormIdOwnersData = {
|
|
4946
|
+
body?: never;
|
|
4947
|
+
headers?: {
|
|
4948
|
+
'X-Telegram-Init-Data'?: string;
|
|
4949
|
+
};
|
|
4950
|
+
path: {
|
|
4951
|
+
formId: string;
|
|
4952
|
+
};
|
|
4953
|
+
query: {
|
|
4954
|
+
query: string;
|
|
4955
|
+
};
|
|
4956
|
+
url: '/public/telegram/property-forms/{formId}/owners';
|
|
4957
|
+
};
|
|
4958
|
+
export type GetPublicTelegramPropertyFormsByFormIdOwnersResponses = {
|
|
4959
|
+
/**
|
|
4960
|
+
* OK
|
|
4961
|
+
*/
|
|
4962
|
+
200: Array<Owner>;
|
|
4963
|
+
};
|
|
4964
|
+
export type GetPublicTelegramPropertyFormsByFormIdOwnersResponse = GetPublicTelegramPropertyFormsByFormIdOwnersResponses[keyof GetPublicTelegramPropertyFormsByFormIdOwnersResponses];
|
|
4772
4965
|
export type GetPublicRecomendationsByTokenItemsData = {
|
|
4773
4966
|
body?: never;
|
|
4774
4967
|
path: {
|
|
@@ -5207,6 +5400,9 @@ export type GetListingData = {
|
|
|
5207
5400
|
body?: never;
|
|
5208
5401
|
path?: never;
|
|
5209
5402
|
query?: {
|
|
5403
|
+
propertyId?: number;
|
|
5404
|
+
listingId?: number;
|
|
5405
|
+
ssId?: number;
|
|
5210
5406
|
states?: Array<'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED'>;
|
|
5211
5407
|
agreementTypes?: Array<'EXCLUSIVE' | 'NON_EXCLUSIVE'>;
|
|
5212
5408
|
agreementExpiresFrom?: Date;
|
|
@@ -5225,6 +5421,8 @@ export type GetListingData = {
|
|
|
5225
5421
|
priceMax?: number;
|
|
5226
5422
|
createdFrom?: Date;
|
|
5227
5423
|
createdTo?: Date;
|
|
5424
|
+
updatedFrom?: Date;
|
|
5425
|
+
updatedTo?: Date;
|
|
5228
5426
|
platforms?: Array<'SS' | 'MY_HOME'>;
|
|
5229
5427
|
platformExpiresFrom?: Date;
|
|
5230
5428
|
platformExpiresTo?: Date;
|
|
@@ -5259,6 +5457,9 @@ export type GetListingGroupsData = {
|
|
|
5259
5457
|
path?: never;
|
|
5260
5458
|
query: {
|
|
5261
5459
|
groupBy: 'STATE' | 'PROPERTY_TYPE' | 'LISTING_TYPE' | 'ASSIGNED_TO' | 'CONTACT' | 'DISTRICT' | 'PLATFORM' | 'BOOST_TIER' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
|
|
5460
|
+
propertyId?: number;
|
|
5461
|
+
listingId?: number;
|
|
5462
|
+
ssId?: number;
|
|
5262
5463
|
states?: Array<'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED'>;
|
|
5263
5464
|
agreementTypes?: Array<'EXCLUSIVE' | 'NON_EXCLUSIVE'>;
|
|
5264
5465
|
agreementExpiresFrom?: Date;
|
|
@@ -5277,6 +5478,8 @@ export type GetListingGroupsData = {
|
|
|
5277
5478
|
priceMax?: number;
|
|
5278
5479
|
createdFrom?: Date;
|
|
5279
5480
|
createdTo?: Date;
|
|
5481
|
+
updatedFrom?: Date;
|
|
5482
|
+
updatedTo?: Date;
|
|
5280
5483
|
platforms?: Array<'SS' | 'MY_HOME'>;
|
|
5281
5484
|
platformExpiresFrom?: Date;
|
|
5282
5485
|
platformExpiresTo?: Date;
|
|
@@ -5298,6 +5501,7 @@ export type GetInterestData = {
|
|
|
5298
5501
|
body?: never;
|
|
5299
5502
|
path?: never;
|
|
5300
5503
|
query?: {
|
|
5504
|
+
interestId?: number;
|
|
5301
5505
|
statuses?: Array<'UNPUBLISHED' | 'PUBLISHED' | 'CLOSED'>;
|
|
5302
5506
|
listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
|
|
5303
5507
|
propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
|
|
@@ -5306,7 +5510,7 @@ export type GetInterestData = {
|
|
|
5306
5510
|
contactName?: string;
|
|
5307
5511
|
contactPhone?: string;
|
|
5308
5512
|
assignedTo?: Array<string>;
|
|
5309
|
-
createdBy?: string
|
|
5513
|
+
createdBy?: Array<string>;
|
|
5310
5514
|
locationType?: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
|
|
5311
5515
|
locationId?: string;
|
|
5312
5516
|
priceMin?: number;
|
|
@@ -5363,6 +5567,7 @@ export type GetInterestGroupsData = {
|
|
|
5363
5567
|
path?: never;
|
|
5364
5568
|
query: {
|
|
5365
5569
|
groupBy: 'STATUS' | 'LISTING_TYPE' | 'PROPERTY_TYPE' | 'ASSIGNED_TO' | 'CREATED_BY' | 'CONTACT' | 'DISTRICT' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
|
|
5570
|
+
interestId?: number;
|
|
5366
5571
|
statuses?: Array<'UNPUBLISHED' | 'PUBLISHED' | 'CLOSED'>;
|
|
5367
5572
|
listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
|
|
5368
5573
|
propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
|
|
@@ -5371,7 +5576,7 @@ export type GetInterestGroupsData = {
|
|
|
5371
5576
|
contactName?: string;
|
|
5372
5577
|
contactPhone?: string;
|
|
5373
5578
|
assignedTo?: Array<string>;
|
|
5374
|
-
createdBy?: string
|
|
5579
|
+
createdBy?: Array<string>;
|
|
5375
5580
|
locationType?: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
|
|
5376
5581
|
locationId?: string;
|
|
5377
5582
|
priceMin?: number;
|
|
@@ -5644,6 +5849,7 @@ export type GetContactGroupsData = {
|
|
|
5644
5849
|
hasOpenTask?: boolean;
|
|
5645
5850
|
assignedTo?: Array<string>;
|
|
5646
5851
|
createdBy?: string;
|
|
5852
|
+
contactId?: number;
|
|
5647
5853
|
contactName?: string;
|
|
5648
5854
|
contactPhone?: string;
|
|
5649
5855
|
contactEmail?: string;
|
|
@@ -5652,6 +5858,8 @@ export type GetContactGroupsData = {
|
|
|
5652
5858
|
contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
|
|
5653
5859
|
createdFrom?: Date;
|
|
5654
5860
|
createdTo?: Date;
|
|
5861
|
+
updatedFrom?: Date;
|
|
5862
|
+
updatedTo?: Date;
|
|
5655
5863
|
};
|
|
5656
5864
|
url: '/contact/groups';
|
|
5657
5865
|
};
|