@homespot-sdk/core 0.0.324 → 0.0.326

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.
@@ -210,6 +210,10 @@ export const zCaptureInterestRequest = z.object({
210
210
  export const zTitleRequest = z.object({
211
211
  title: z.string().min(1).max(50),
212
212
  });
213
+ export const zRateRecommendationItemRequest = z.object({
214
+ decision: z.enum(['MAYBE', 'DISLIKE', 'LIKE']),
215
+ note: z.optional(z.string().min(0).max(100)),
216
+ });
213
217
  export const zRecommendListingRequest = z.object({
214
218
  externalPropertyId: z.uuid(),
215
219
  externalListingId: z.uuid(),
@@ -363,10 +367,6 @@ export const zIdResponseInteger = z.object({
363
367
  error: 'Invalid value: Expected int32 to be <= 2147483647',
364
368
  }),
365
369
  });
366
- export const zRateRecommendationItemRequest = z.object({
367
- decision: z.enum(['MAYBE', 'DISLIKE', 'LIKE']),
368
- note: z.optional(z.string().min(0).max(100)),
369
- });
370
370
  export const zContactInfoRequest = z.object({
371
371
  firstName: z.optional(z.string().min(1).max(20)),
372
372
  lastName: z.optional(z.string().min(1).max(20)),
@@ -507,28 +507,8 @@ export const zProblemDetail = z.object({
507
507
  export const zIdResponseUuid = z.object({
508
508
  id: z.uuid(),
509
509
  });
510
- export const zCreateListingRequest = z.object({
511
- listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
512
- askingPrice: z.number(),
513
- });
514
510
  export const zAddDealRequest = z.object({
515
- listingId: z.coerce
516
- .bigint()
517
- .min(BigInt('-9223372036854775808'), {
518
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
519
- })
520
- .max(BigInt('9223372036854775807'), {
521
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
522
- }),
523
- commissionType: z.enum([
524
- 'FIXED_SALE',
525
- 'FIXED_RENT',
526
- 'PERCENTAGE',
527
- 'MONTHS_OF_RENT',
528
- ]),
529
- rate: z.optional(z.number()),
530
- amount: z.optional(z.number()),
531
- factor: z.optional(z.number()),
511
+ type: z.string(),
532
512
  });
533
513
  export const zCloseListingRequest = z.object({
534
514
  withdrawExternal: z.optional(z.boolean()),
@@ -1051,6 +1031,106 @@ export const zAddressResponse = z.object({
1051
1031
  lat: z.number(),
1052
1032
  lng: z.number(),
1053
1033
  });
1034
+ export const zBoundingBox = z.object({
1035
+ minLat: z.number(),
1036
+ maxLat: z.number(),
1037
+ minLng: z.number(),
1038
+ maxLng: z.number(),
1039
+ });
1040
+ export const zRangeBigDecimal = z.object({
1041
+ min: z.optional(z.number()),
1042
+ max: z.optional(z.number()),
1043
+ });
1044
+ export const zRangeDouble = z.object({
1045
+ min: z.optional(z.number()),
1046
+ max: z.optional(z.number()),
1047
+ });
1048
+ export const zRangeInteger = z.object({
1049
+ min: z.optional(z
1050
+ .int()
1051
+ .min(-2147483648, {
1052
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1053
+ })
1054
+ .max(2147483647, {
1055
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1056
+ })),
1057
+ max: z.optional(z
1058
+ .int()
1059
+ .min(-2147483648, {
1060
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1061
+ })
1062
+ .max(2147483647, {
1063
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1064
+ })),
1065
+ });
1066
+ export const zCriteria = z.object({
1067
+ propertyTypes: z.array(z.enum([
1068
+ 'HOUSE',
1069
+ 'TOWN_HOUSE',
1070
+ 'COUNTRY_HOUSE',
1071
+ 'VILLA',
1072
+ 'COTTAGE',
1073
+ 'APARTMENT',
1074
+ 'DUPLEX',
1075
+ 'TRIPLEX',
1076
+ 'SEMI_BASEMENT',
1077
+ 'ATTIC',
1078
+ 'AGRICULTURAL_LAND',
1079
+ 'RESIDENTIAL_LAND',
1080
+ 'HOTEL_ROOM',
1081
+ 'MOTEL_ROOM',
1082
+ 'CO_LIVING_SPACE',
1083
+ 'OFFICE',
1084
+ 'COMMERCIAL_SPACE',
1085
+ 'CO_WORKING_SPACE',
1086
+ 'WAREHOUSE',
1087
+ 'GARAGE',
1088
+ ])),
1089
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
1090
+ budget: z.optional(zRangeBigDecimal),
1091
+ bedrooms: z.optional(zRangeInteger),
1092
+ bathrooms: z.optional(zRangeInteger),
1093
+ totalArea: z.optional(zRangeDouble),
1094
+ livingArea: z.optional(zRangeDouble),
1095
+ region: z.optional(zLocationResponse),
1096
+ district: z.optional(zLocationResponse),
1097
+ subDistrict: z.optional(zLocationResponse),
1098
+ street: z.optional(zLocationResponse),
1099
+ });
1100
+ export const zRecommendationStats = z.object({
1101
+ total: z
1102
+ .int()
1103
+ .min(-2147483648, {
1104
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1105
+ })
1106
+ .max(2147483647, {
1107
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1108
+ }),
1109
+ liked: z
1110
+ .int()
1111
+ .min(-2147483648, {
1112
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1113
+ })
1114
+ .max(2147483647, {
1115
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1116
+ }),
1117
+ disliked: z
1118
+ .int()
1119
+ .min(-2147483648, {
1120
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1121
+ })
1122
+ .max(2147483647, {
1123
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1124
+ }),
1125
+ undecided: z
1126
+ .int()
1127
+ .min(-2147483648, {
1128
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1129
+ })
1130
+ .max(2147483647, {
1131
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1132
+ }),
1133
+ });
1054
1134
  export const zRecommendationsCardView = z.object({
1055
1135
  decision: z.optional(z.enum(['MAYBE', 'DISLIKE', 'LIKE'])),
1056
1136
  clientNote: z.optional(z.string()),
@@ -1122,15 +1202,8 @@ export const zPagedModelRecommendationsCardView = z.object({
1122
1202
  content: z.optional(z.array(zRecommendationsCardView)),
1123
1203
  page: z.optional(zPageMetadata),
1124
1204
  });
1125
- export const zRecommendationResponse = z.object({
1126
- shareToken: z.uuid(),
1127
- title: z.string(),
1128
- createdAt: z.iso.datetime(),
1129
- status: z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']),
1130
- recommendations: zPagedModelRecommendationsCardView,
1131
- });
1132
- export const zRecommendationDecisionResponse = z.object({
1133
- itemId: z.coerce
1205
+ export const zInterestResponse = z.object({
1206
+ id: z.coerce
1134
1207
  .bigint()
1135
1208
  .min(BigInt('-9223372036854775808'), {
1136
1209
  error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
@@ -1138,6 +1211,16 @@ export const zRecommendationDecisionResponse = z.object({
1138
1211
  .max(BigInt('9223372036854775807'), {
1139
1212
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1140
1213
  }),
1214
+ title: z.string(),
1215
+ status: z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']),
1216
+ shareToken: z.uuid(),
1217
+ createdAt: z.iso.datetime(),
1218
+ criteria: zCriteria,
1219
+ recommendationStats: zRecommendationStats,
1220
+ boundedBox: z.optional(zBoundingBox),
1221
+ recommendations: zPagedModelRecommendationsCardView,
1222
+ });
1223
+ export const zRecommendationDecisionResponse = z.object({
1141
1224
  externalPropertyId: z.uuid(),
1142
1225
  externalListingId: z.uuid(),
1143
1226
  decision: z.enum(['MAYBE', 'DISLIKE', 'LIKE']),
@@ -1304,6 +1387,172 @@ export const zWhitelabelResponse = z.object({
1304
1387
  socialLinks: z.optional(z.array(zSocialLinkResponse)),
1305
1388
  website: z.optional(z.string()),
1306
1389
  });
1390
+ export const zAgreementResponse = z.object({
1391
+ agreement: z.enum(['EXCLUSIVE', 'NON_EXCLUSIVE']),
1392
+ expiryDate: z.optional(z.iso.date()),
1393
+ });
1394
+ export const zBoostResponse = z.object({
1395
+ tier: z.enum(['VIP', 'VIP_PLUS', 'SUPER_VIP']),
1396
+ status: z.enum(['PENDING', 'ACTIVE', 'FAIL_NO_BALANCE', 'FAILED']),
1397
+ activatedAt: z.optional(z.iso.date()),
1398
+ expiresAt: z.optional(z.iso.date()),
1399
+ });
1400
+ export const zColoredListingResponse = z.object({
1401
+ activatedAt: z.iso.date(),
1402
+ expiresAt: z.iso.date(),
1403
+ });
1404
+ export const zDealResponse = z.object({
1405
+ type: z.string(),
1406
+ });
1407
+ export const zFixed = zAddDealRequest
1408
+ .and(z.object({
1409
+ amount: z.number(),
1410
+ }))
1411
+ .and(zDealResponse)
1412
+ .and(z.object({
1413
+ amount: z.number(),
1414
+ commission: z.optional(z.number()),
1415
+ type: z.literal('FIXED'),
1416
+ }));
1417
+ export const zMonthsOfRent = zAddDealRequest
1418
+ .and(z.object({
1419
+ factor: z.number(),
1420
+ }))
1421
+ .and(zDealResponse)
1422
+ .and(z.object({
1423
+ factor: z.number(),
1424
+ commission: z.optional(z.number()),
1425
+ type: z.literal('MONTHS_OF_RENT'),
1426
+ }));
1427
+ export const zPercentage = zAddDealRequest
1428
+ .and(z.object({
1429
+ rate: z.number().gte(0).lte(1),
1430
+ }))
1431
+ .and(zDealResponse)
1432
+ .and(z.object({
1433
+ rate: z.number(),
1434
+ commission: z.optional(z.number()),
1435
+ type: z.literal('PERCENTAGE'),
1436
+ }));
1437
+ export const zCreateListingRequest = z.object({
1438
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
1439
+ askingPrice: z.number(),
1440
+ deal: z.optional(z.union([zFixed, zMonthsOfRent, zPercentage])),
1441
+ });
1442
+ export const zPlatformListingResponse = z.object({
1443
+ platformId: z.optional(z.coerce
1444
+ .bigint()
1445
+ .min(BigInt('-9223372036854775808'), {
1446
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1447
+ })
1448
+ .max(BigInt('9223372036854775807'), {
1449
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1450
+ })),
1451
+ platformType: z.enum(['SS', 'MY_HOME']),
1452
+ status: z.enum(['PENDING', 'SYNDICATED', 'FAILED', 'EXPIRED']),
1453
+ listedAt: z.optional(z.iso.date()),
1454
+ expiresAt: z.optional(z.iso.date()),
1455
+ renewedAt: z.optional(z.iso.date()),
1456
+ boost: z.optional(zBoostResponse),
1457
+ coloredListing: z.optional(zColoredListingResponse),
1458
+ });
1459
+ export const zPropertyCloseReasonResponse = z.object({
1460
+ closedAt: z.iso.datetime(),
1461
+ reason: z.enum([
1462
+ 'DEAL_CLOSED',
1463
+ 'OWNER_WITHDREW',
1464
+ 'MANDATE_EXPIRED',
1465
+ 'OTHER',
1466
+ ]),
1467
+ });
1468
+ export const zPropertyDetailsResponse = z.object({
1469
+ title: z.string(),
1470
+ coverPhoto: z.optional(z.string()),
1471
+ photoCount: z.optional(z
1472
+ .int()
1473
+ .min(-2147483648, {
1474
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1475
+ })
1476
+ .max(2147483647, {
1477
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1478
+ })),
1479
+ totalArea: z.number(),
1480
+ livingArea: z.optional(z.number()),
1481
+ balconyArea: z.optional(z.number()),
1482
+ address: zAddressResponse,
1483
+ });
1484
+ export const zPropertyListingResponse = z.object({
1485
+ publicId: z.coerce
1486
+ .bigint()
1487
+ .min(BigInt('-9223372036854775808'), {
1488
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1489
+ })
1490
+ .max(BigInt('9223372036854775807'), {
1491
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1492
+ }),
1493
+ listingId: z.uuid(),
1494
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
1495
+ marketplaceStatus: z.enum([
1496
+ 'PENDING',
1497
+ 'ACTIVE',
1498
+ 'PAUSED',
1499
+ 'EXPIRED',
1500
+ 'FAILED',
1501
+ ]),
1502
+ crmState: z.enum(['OPEN', 'CLOSED']),
1503
+ isProcessing: z.boolean(),
1504
+ price: z.number(),
1505
+ deal: z.optional(z.union([zFixed, zMonthsOfRent, zPercentage])),
1506
+ platformListings: z.array(zPlatformListingResponse),
1507
+ createdAt: z.iso.datetime(),
1508
+ closedAt: z.optional(z.iso.datetime()),
1509
+ });
1510
+ export const zPropertyPageResponse = z.object({
1511
+ publicId: z.coerce
1512
+ .bigint()
1513
+ .min(BigInt('-9223372036854775808'), {
1514
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1515
+ })
1516
+ .max(BigInt('9223372036854775807'), {
1517
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1518
+ }),
1519
+ propertyId: z.uuid(),
1520
+ type: z.enum([
1521
+ 'HOUSE',
1522
+ 'TOWN_HOUSE',
1523
+ 'COUNTRY_HOUSE',
1524
+ 'VILLA',
1525
+ 'COTTAGE',
1526
+ 'APARTMENT',
1527
+ 'DUPLEX',
1528
+ 'TRIPLEX',
1529
+ 'SEMI_BASEMENT',
1530
+ 'ATTIC',
1531
+ 'AGRICULTURAL_LAND',
1532
+ 'RESIDENTIAL_LAND',
1533
+ 'HOTEL_ROOM',
1534
+ 'MOTEL_ROOM',
1535
+ 'CO_LIVING_SPACE',
1536
+ 'OFFICE',
1537
+ 'COMMERCIAL_SPACE',
1538
+ 'CO_WORKING_SPACE',
1539
+ 'WAREHOUSE',
1540
+ 'GARAGE',
1541
+ ]),
1542
+ state: z.enum([
1543
+ 'IN_REGISTRATION',
1544
+ 'UNLISTED',
1545
+ 'LISTED_INTERNALLY',
1546
+ 'LISTED',
1547
+ 'CLOSED',
1548
+ ]),
1549
+ details: z.optional(zPropertyDetailsResponse),
1550
+ agreement: zAgreementResponse,
1551
+ listings: z.array(zPropertyListingResponse),
1552
+ createdAt: z.iso.datetime(),
1553
+ updatedAt: z.iso.datetime(),
1554
+ closeReason: z.optional(zPropertyCloseReasonResponse),
1555
+ });
1307
1556
  export const zContactId = z.object({
1308
1557
  value: z.optional(z.coerce
1309
1558
  .bigint()
@@ -1606,7 +1855,7 @@ export const zListingGridView = z.object({
1606
1855
  ])),
1607
1856
  listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
1608
1857
  price: z.optional(z.number()),
1609
- commissionType: z.optional(z.enum(['FIXED_SALE', 'FIXED_RENT', 'PERCENTAGE', 'MONTHS_OF_RENT'])),
1858
+ commissionType: z.optional(z.enum(['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'])),
1610
1859
  commission: z.optional(z.number()),
1611
1860
  platforms: z.optional(z.array(zPlatformView)),
1612
1861
  createdAt: z.optional(z.iso.datetime()),
@@ -1701,155 +1950,45 @@ export const zMessageContent = z.union([
1701
1950
  })
1702
1951
  .and(zText),
1703
1952
  z
1704
- .object({
1705
- kind: z.literal('UNSUPPORTED'),
1706
- })
1707
- .and(zUnsupported),
1708
- ]);
1709
- export const zMessageView = z.object({
1710
- id: z.uuid(),
1711
- seq: z.coerce
1712
- .bigint()
1713
- .min(BigInt('-9223372036854775808'), {
1714
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1715
- })
1716
- .max(BigInt('9223372036854775807'), {
1717
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1718
- }),
1719
- direction: z.enum(['INBOUND', 'OUTBOUND']),
1720
- content: zMessageContent,
1721
- status: z.enum(['RECEIVED', 'PENDING', 'SENT', 'FAILED']),
1722
- sentAt: z.iso.datetime(),
1723
- failureReason: z.optional(z.string()),
1724
- sentBy: z.optional(zSentBy),
1725
- });
1726
- export const zThreadUpdates = z.object({
1727
- customerReadUpTo: z.optional(z.iso.datetime()),
1728
- messages: z.optional(z.array(zMessageView)),
1729
- nextSeq: z.optional(z.coerce
1730
- .bigint()
1731
- .min(BigInt('-9223372036854775808'), {
1732
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1733
- })
1734
- .max(BigInt('9223372036854775807'), {
1735
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1736
- })),
1737
- hasMore: z.optional(z.boolean()),
1738
- });
1739
- export const zCursorPageMessageView = z.object({
1740
- items: z.optional(z.array(zMessageView)),
1741
- nextCursor: z.optional(z.string()),
1742
- hasNext: z.optional(z.boolean()),
1743
- });
1744
- export const zRangeBigDecimal = z.object({
1745
- min: z.optional(z.number()),
1746
- max: z.optional(z.number()),
1747
- });
1748
- export const zRangeDouble = z.object({
1749
- min: z.optional(z.number()),
1750
- max: z.optional(z.number()),
1751
- });
1752
- export const zRangeInteger = z.object({
1753
- min: z.optional(z
1754
- .int()
1755
- .min(-2147483648, {
1756
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1757
- })
1758
- .max(2147483647, {
1759
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1760
- })),
1761
- max: z.optional(z
1762
- .int()
1763
- .min(-2147483648, {
1764
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1765
- })
1766
- .max(2147483647, {
1767
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1768
- })),
1769
- });
1770
- export const zCriteria = z.object({
1771
- propertyTypes: z.array(z.enum([
1772
- 'HOUSE',
1773
- 'TOWN_HOUSE',
1774
- 'COUNTRY_HOUSE',
1775
- 'VILLA',
1776
- 'COTTAGE',
1777
- 'APARTMENT',
1778
- 'DUPLEX',
1779
- 'TRIPLEX',
1780
- 'SEMI_BASEMENT',
1781
- 'ATTIC',
1782
- 'AGRICULTURAL_LAND',
1783
- 'RESIDENTIAL_LAND',
1784
- 'HOTEL_ROOM',
1785
- 'MOTEL_ROOM',
1786
- 'CO_LIVING_SPACE',
1787
- 'OFFICE',
1788
- 'COMMERCIAL_SPACE',
1789
- 'CO_WORKING_SPACE',
1790
- 'WAREHOUSE',
1791
- 'GARAGE',
1792
- ])),
1793
- listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
1794
- budget: z.optional(zRangeBigDecimal),
1795
- bedrooms: z.optional(zRangeInteger),
1796
- bathrooms: z.optional(zRangeInteger),
1797
- totalArea: z.optional(zRangeDouble),
1798
- livingArea: z.optional(zRangeDouble),
1799
- region: z.optional(zLocationResponse),
1800
- district: z.optional(zLocationResponse),
1801
- subDistrict: z.optional(zLocationResponse),
1802
- street: z.optional(zLocationResponse),
1803
- });
1804
- export const zRecommendationStats = z.object({
1805
- total: z
1806
- .int()
1807
- .min(-2147483648, {
1808
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1809
- })
1810
- .max(2147483647, {
1811
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1812
- }),
1813
- liked: z
1814
- .int()
1815
- .min(-2147483648, {
1816
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1817
- })
1818
- .max(2147483647, {
1819
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1820
- }),
1821
- disliked: z
1822
- .int()
1823
- .min(-2147483648, {
1824
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1953
+ .object({
1954
+ kind: z.literal('UNSUPPORTED'),
1825
1955
  })
1826
- .max(2147483647, {
1827
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1828
- }),
1829
- undecided: z
1830
- .int()
1831
- .min(-2147483648, {
1832
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1956
+ .and(zUnsupported),
1957
+ ]);
1958
+ export const zMessageView = z.object({
1959
+ id: z.uuid(),
1960
+ seq: z.coerce
1961
+ .bigint()
1962
+ .min(BigInt('-9223372036854775808'), {
1963
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1833
1964
  })
1834
- .max(2147483647, {
1835
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1965
+ .max(BigInt('9223372036854775807'), {
1966
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1836
1967
  }),
1968
+ direction: z.enum(['INBOUND', 'OUTBOUND']),
1969
+ content: zMessageContent,
1970
+ status: z.enum(['RECEIVED', 'PENDING', 'SENT', 'FAILED']),
1971
+ sentAt: z.iso.datetime(),
1972
+ failureReason: z.optional(z.string()),
1973
+ sentBy: z.optional(zSentBy),
1837
1974
  });
1838
- export const zInterestResponse = z.object({
1839
- id: z.coerce
1975
+ export const zThreadUpdates = z.object({
1976
+ customerReadUpTo: z.optional(z.iso.datetime()),
1977
+ messages: z.optional(z.array(zMessageView)),
1978
+ nextSeq: z.optional(z.coerce
1840
1979
  .bigint()
1841
1980
  .min(BigInt('-9223372036854775808'), {
1842
1981
  error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1843
1982
  })
1844
1983
  .max(BigInt('9223372036854775807'), {
1845
1984
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1846
- }),
1847
- title: z.string(),
1848
- status: z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']),
1849
- shareToken: z.uuid(),
1850
- createdAt: z.iso.datetime(),
1851
- criteria: zCriteria,
1852
- recommendations: zRecommendationStats,
1985
+ })),
1986
+ hasMore: z.optional(z.boolean()),
1987
+ });
1988
+ export const zCursorPageMessageView = z.object({
1989
+ items: z.optional(z.array(zMessageView)),
1990
+ nextCursor: z.optional(z.string()),
1991
+ hasNext: z.optional(z.boolean()),
1853
1992
  });
1854
1993
  export const zCommentView = z.object({
1855
1994
  id: z.uuid(),
@@ -1920,14 +2059,6 @@ export const zPagedModelContactGridResponse = z.object({
1920
2059
  content: z.optional(z.array(zContactGridResponse)),
1921
2060
  page: z.optional(zPageMetadata),
1922
2061
  });
1923
- export const zActiveItemsResult = z.object({
1924
- propertyIds: z.optional(z.array(zPropertyId)),
1925
- interestIds: z.optional(z.array(zInterestId)),
1926
- });
1927
- export const zAgreementResponse = z.object({
1928
- agreement: z.enum(['EXCLUSIVE', 'NON_EXCLUSIVE']),
1929
- expiryDate: z.optional(z.iso.date()),
1930
- });
1931
2062
  export const zAssignedMember = z.object({
1932
2063
  memberId: z.uuid(),
1933
2064
  name: z.string(),
@@ -1945,22 +2076,6 @@ export const zContactInfoResponse = z.object({
1945
2076
  phoneNumber: z.string(),
1946
2077
  email: z.optional(z.string()),
1947
2078
  });
1948
- export const zPropertyDetailsResponse = z.object({
1949
- title: z.string(),
1950
- coverPhoto: z.optional(z.string()),
1951
- photoCount: z.optional(z
1952
- .int()
1953
- .min(-2147483648, {
1954
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1955
- })
1956
- .max(2147483647, {
1957
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1958
- })),
1959
- totalArea: z.number(),
1960
- livingArea: z.optional(z.number()),
1961
- balconyArea: z.optional(z.number()),
1962
- address: zAddressResponse,
1963
- });
1964
2079
  export const zContactPropertyResponse = z.object({
1965
2080
  publicId: z.coerce
1966
2081
  .bigint()
@@ -2423,7 +2538,16 @@ export const zGetContactsByContactIdInterestsByInterestIdData = z.object({
2423
2538
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2424
2539
  }),
2425
2540
  }),
2426
- query: z.optional(z.never()),
2541
+ query: z.optional(z.object({
2542
+ decision: z.optional(z.enum(['MAYBE', 'DISLIKE', 'LIKE'])),
2543
+ swLat: z.optional(z.number()),
2544
+ swLng: z.optional(z.number()),
2545
+ neLat: z.optional(z.number()),
2546
+ neLng: z.optional(z.number()),
2547
+ page: z.optional(z.int().gte(0)).default(0),
2548
+ size: z.optional(z.int().gte(1)).default(20),
2549
+ sort: z.optional(z.array(z.string())),
2550
+ })),
2427
2551
  });
2428
2552
  /**
2429
2553
  * OK
@@ -2559,6 +2683,33 @@ export const zPutContactsByContactIdInterestsByInterestIdPublishData = z.object(
2559
2683
  * No Content
2560
2684
  */
2561
2685
  export const zPutContactsByContactIdInterestsByInterestIdPublishResponse = z.void();
2686
+ export const zPutContactsByContactIdInterestsByInterestIdListingsByExternalListingIdRateData = z.object({
2687
+ body: zRateRecommendationItemRequest,
2688
+ path: z.object({
2689
+ contactId: z.coerce
2690
+ .bigint()
2691
+ .min(BigInt('-9223372036854775808'), {
2692
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2693
+ })
2694
+ .max(BigInt('9223372036854775807'), {
2695
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2696
+ }),
2697
+ interestId: z.coerce
2698
+ .bigint()
2699
+ .min(BigInt('-9223372036854775808'), {
2700
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2701
+ })
2702
+ .max(BigInt('9223372036854775807'), {
2703
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2704
+ }),
2705
+ externalListingId: z.uuid(),
2706
+ }),
2707
+ query: z.optional(z.never()),
2708
+ });
2709
+ /**
2710
+ * No Content
2711
+ */
2712
+ export const zPutContactsByContactIdInterestsByInterestIdListingsByExternalListingIdRateResponse = z.void();
2562
2713
  export const zPutContactsByContactIdInterestsByInterestIdItemsData = z.object({
2563
2714
  body: zRecommendListingRequest,
2564
2715
  path: z.object({
@@ -2971,25 +3122,18 @@ export const zPostPublicWebhooksFlittData = z.object({
2971
3122
  path: z.optional(z.never()),
2972
3123
  query: z.optional(z.never()),
2973
3124
  });
2974
- export const zPostPublicRecomendationsByTokenItemsByItemIdRateData = z.object({
3125
+ export const zPostPublicRecomendationsByTokenListingsByExternalListingIdRateData = z.object({
2975
3126
  body: zRateRecommendationItemRequest,
2976
3127
  path: z.object({
2977
3128
  token: z.uuid(),
2978
- itemId: z.coerce
2979
- .bigint()
2980
- .min(BigInt('-9223372036854775808'), {
2981
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2982
- })
2983
- .max(BigInt('9223372036854775807'), {
2984
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2985
- }),
3129
+ externalListingId: z.uuid(),
2986
3130
  }),
2987
3131
  query: z.optional(z.never()),
2988
3132
  });
2989
3133
  /**
2990
3134
  * No Content
2991
3135
  */
2992
- export const zPostPublicRecomendationsByTokenItemsByItemIdRateResponse = z.void();
3136
+ export const zPostPublicRecomendationsByTokenListingsByExternalListingIdRateResponse = z.void();
2993
3137
  export const zPostPublicOtpPhoneData = z.object({
2994
3138
  body: zPhoneRequest,
2995
3139
  path: z.optional(z.never()),
@@ -3224,6 +3368,40 @@ export const zPostContactsByContactIdPropertiesByPropertyIdListingsData = z.obje
3224
3368
  * Created
3225
3369
  */
3226
3370
  export const zPostContactsByContactIdPropertiesByPropertyIdListingsResponse = zIdResponseUuid;
3371
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdResumeData = z.object({
3372
+ body: z.optional(z.never()),
3373
+ path: z.object({
3374
+ contactId: z.coerce
3375
+ .bigint()
3376
+ .min(BigInt('-9223372036854775808'), {
3377
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3378
+ })
3379
+ .max(BigInt('9223372036854775807'), {
3380
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3381
+ }),
3382
+ propertyId: z.coerce
3383
+ .bigint()
3384
+ .min(BigInt('-9223372036854775808'), {
3385
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3386
+ })
3387
+ .max(BigInt('9223372036854775807'), {
3388
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3389
+ }),
3390
+ listingId: z.coerce
3391
+ .bigint()
3392
+ .min(BigInt('-9223372036854775808'), {
3393
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3394
+ })
3395
+ .max(BigInt('9223372036854775807'), {
3396
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3397
+ }),
3398
+ }),
3399
+ query: z.optional(z.never()),
3400
+ });
3401
+ /**
3402
+ * No Content
3403
+ */
3404
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdResumeResponse = z.void();
3227
3405
  export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdReopenData = z.object({
3228
3406
  body: z.optional(z.never()),
3229
3407
  path: z.object({
@@ -3258,6 +3436,74 @@ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdRe
3258
3436
  * No Content
3259
3437
  */
3260
3438
  export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdReopenResponse = z.void();
3439
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdRenewData = z.object({
3440
+ body: z.optional(z.never()),
3441
+ path: z.object({
3442
+ contactId: z.coerce
3443
+ .bigint()
3444
+ .min(BigInt('-9223372036854775808'), {
3445
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3446
+ })
3447
+ .max(BigInt('9223372036854775807'), {
3448
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3449
+ }),
3450
+ propertyId: z.coerce
3451
+ .bigint()
3452
+ .min(BigInt('-9223372036854775808'), {
3453
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3454
+ })
3455
+ .max(BigInt('9223372036854775807'), {
3456
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3457
+ }),
3458
+ listingId: z.coerce
3459
+ .bigint()
3460
+ .min(BigInt('-9223372036854775808'), {
3461
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3462
+ })
3463
+ .max(BigInt('9223372036854775807'), {
3464
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3465
+ }),
3466
+ }),
3467
+ query: z.optional(z.never()),
3468
+ });
3469
+ /**
3470
+ * No Content
3471
+ */
3472
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdRenewResponse = z.void();
3473
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdPauseData = z.object({
3474
+ body: z.optional(z.never()),
3475
+ path: z.object({
3476
+ contactId: z.coerce
3477
+ .bigint()
3478
+ .min(BigInt('-9223372036854775808'), {
3479
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3480
+ })
3481
+ .max(BigInt('9223372036854775807'), {
3482
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3483
+ }),
3484
+ propertyId: z.coerce
3485
+ .bigint()
3486
+ .min(BigInt('-9223372036854775808'), {
3487
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3488
+ })
3489
+ .max(BigInt('9223372036854775807'), {
3490
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3491
+ }),
3492
+ listingId: z.coerce
3493
+ .bigint()
3494
+ .min(BigInt('-9223372036854775808'), {
3495
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3496
+ })
3497
+ .max(BigInt('9223372036854775807'), {
3498
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3499
+ }),
3500
+ }),
3501
+ query: z.optional(z.never()),
3502
+ });
3503
+ /**
3504
+ * No Content
3505
+ */
3506
+ export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdPauseResponse = z.void();
3261
3507
  export const zDeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealData = z.object({
3262
3508
  body: z.optional(z.never()),
3263
3509
  path: z.object({
@@ -3293,7 +3539,7 @@ export const zDeleteContactsByContactIdPropertiesByPropertyIdListingsByListingId
3293
3539
  */
3294
3540
  export const zDeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponse = z.void();
3295
3541
  export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealData = z.object({
3296
- body: zAddDealRequest,
3542
+ body: z.union([zFixed, zMonthsOfRent, zPercentage]),
3297
3543
  path: z.object({
3298
3544
  contactId: z.coerce
3299
3545
  .bigint()
@@ -3755,6 +4001,10 @@ export const zGetPublicRecomendationsByTokenItemsData = z.object({
3755
4001
  }),
3756
4002
  query: z.optional(z.object({
3757
4003
  decision: z.optional(z.enum(['MAYBE', 'DISLIKE', 'LIKE'])),
4004
+ swLat: z.optional(z.number()),
4005
+ swLng: z.optional(z.number()),
4006
+ neLat: z.optional(z.number()),
4007
+ neLng: z.optional(z.number()),
3758
4008
  page: z.optional(z.int().gte(0)).default(0),
3759
4009
  size: z.optional(z.int().gte(1)).default(20),
3760
4010
  sort: z.optional(z.array(z.string())),
@@ -3763,7 +4013,7 @@ export const zGetPublicRecomendationsByTokenItemsData = z.object({
3763
4013
  /**
3764
4014
  * OK
3765
4015
  */
3766
- export const zGetPublicRecomendationsByTokenItemsResponse = zRecommendationResponse;
4016
+ export const zGetPublicRecomendationsByTokenItemsResponse = zInterestResponse;
3767
4017
  export const zGetPublicRecomendationsByTokenDecisionsData = z.object({
3768
4018
  body: z.optional(z.never()),
3769
4019
  path: z.object({
@@ -3851,6 +4101,24 @@ export const zGetPublicAgencySubdomainBySubDomainData = z.object({
3851
4101
  * OK
3852
4102
  */
3853
4103
  export const zGetPublicAgencySubdomainBySubDomainResponse = zAgencySummaryResponse;
4104
+ export const zGetPropertyByPropertyIdPageData = z.object({
4105
+ body: z.optional(z.never()),
4106
+ path: z.object({
4107
+ propertyId: z.coerce
4108
+ .bigint()
4109
+ .min(BigInt('-9223372036854775808'), {
4110
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
4111
+ })
4112
+ .max(BigInt('9223372036854775807'), {
4113
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4114
+ }),
4115
+ }),
4116
+ query: z.optional(z.never()),
4117
+ });
4118
+ /**
4119
+ * OK
4120
+ */
4121
+ export const zGetPropertyByPropertyIdPageResponse = zPropertyPageResponse;
3854
4122
  export const zGetOauthData = z.object({
3855
4123
  body: z.optional(z.never()),
3856
4124
  path: z.optional(z.never()),
@@ -3907,6 +4175,17 @@ export const zGetOauthGoogleAuthorizeData = z.object({
3907
4175
  * OK
3908
4176
  */
3909
4177
  export const zGetOauthGoogleAuthorizeResponse = z.record(z.string(), z.string());
4178
+ export const zDeleteNotificationsData = z.object({
4179
+ body: z.optional(z.never()),
4180
+ path: z.optional(z.never()),
4181
+ query: z.optional(z.object({
4182
+ target: z.optional(z.string()),
4183
+ })),
4184
+ });
4185
+ /**
4186
+ * No Content
4187
+ */
4188
+ export const zDeleteNotificationsResponse = z.void();
3910
4189
  export const zGetNotificationsData = z.object({
3911
4190
  body: z.optional(z.never()),
3912
4191
  path: z.optional(z.never()),
@@ -4330,7 +4609,7 @@ export const zGetConversationsByConversationIdUpdatesData = z.object({
4330
4609
  * OK
4331
4610
  */
4332
4611
  export const zGetConversationsByConversationIdUpdatesResponse = zThreadUpdates;
4333
- export const zGetContactsByContactIdInterestsByInterestIdRecommendationsData = z.object({
4612
+ export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsData = z.object({
4334
4613
  body: z.optional(z.never()),
4335
4614
  path: z.object({
4336
4615
  contactId: z.coerce
@@ -4350,17 +4629,12 @@ export const zGetContactsByContactIdInterestsByInterestIdRecommendationsData = z
4350
4629
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4351
4630
  }),
4352
4631
  }),
4353
- query: z.optional(z.object({
4354
- decision: z.optional(z.enum(['MAYBE', 'DISLIKE', 'LIKE'])),
4355
- page: z.optional(z.int().gte(0)).default(0),
4356
- size: z.optional(z.int().gte(1)).default(20),
4357
- sort: z.optional(z.array(z.string())),
4358
- })),
4632
+ query: z.optional(z.never()),
4359
4633
  });
4360
4634
  /**
4361
4635
  * OK
4362
4636
  */
4363
- export const zGetContactsByContactIdInterestsByInterestIdRecommendationsResponse = zRecommendationResponse;
4637
+ export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponse = z.array(zRecommendationDecisionResponse);
4364
4638
  export const zGetContactByContactIdData = z.object({
4365
4639
  body: z.optional(z.never()),
4366
4640
  path: z.object({
@@ -4379,24 +4653,6 @@ export const zGetContactByContactIdData = z.object({
4379
4653
  * OK
4380
4654
  */
4381
4655
  export const zGetContactByContactIdResponse = zContactGridResponse;
4382
- export const zGetContactByContactIdOpenItemsData = z.object({
4383
- body: z.optional(z.never()),
4384
- path: z.object({
4385
- contactId: z.coerce
4386
- .bigint()
4387
- .min(BigInt('-9223372036854775808'), {
4388
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
4389
- })
4390
- .max(BigInt('9223372036854775807'), {
4391
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4392
- }),
4393
- }),
4394
- query: z.optional(z.never()),
4395
- });
4396
- /**
4397
- * OK
4398
- */
4399
- export const zGetContactByContactIdOpenItemsResponse = zActiveItemsResult;
4400
4656
  export const zGetContactByContactId360Data = z.object({
4401
4657
  body: z.optional(z.never()),
4402
4658
  path: z.object({
@@ -4659,7 +4915,7 @@ export const zDeleteContactsByContactIdPropertiesByPropertyIdListingsByListingId
4659
4915
  * No Content
4660
4916
  */
4661
4917
  export const zDeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdResponse = z.void();
4662
- export const zDeleteContactsByContactIdInterestsByInterestIdItemsByItemIdData = z.object({
4918
+ export const zDeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdData = z.object({
4663
4919
  body: z.optional(z.never()),
4664
4920
  path: z.object({
4665
4921
  contactId: z.coerce
@@ -4678,19 +4934,12 @@ export const zDeleteContactsByContactIdInterestsByInterestIdItemsByItemIdData =
4678
4934
  .max(BigInt('9223372036854775807'), {
4679
4935
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4680
4936
  }),
4681
- itemId: z.coerce
4682
- .bigint()
4683
- .min(BigInt('-9223372036854775808'), {
4684
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
4685
- })
4686
- .max(BigInt('9223372036854775807'), {
4687
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4688
- }),
4937
+ externalListingId: z.uuid(),
4689
4938
  }),
4690
4939
  query: z.optional(z.never()),
4691
4940
  });
4692
4941
  /**
4693
4942
  * No Content
4694
4943
  */
4695
- export const zDeleteContactsByContactIdInterestsByInterestIdItemsByItemIdResponse = z.void();
4944
+ export const zDeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponse = z.void();
4696
4945
  //# sourceMappingURL=zod.gen.js.map