@homespot-sdk/core 0.0.122 → 0.0.125

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 (35) hide show
  1. package/dist/registration/index.d.ts +1 -1
  2. package/dist/registration/index.d.ts.map +1 -1
  3. package/dist/registration/schemas.gen.d.ts +50 -49
  4. package/dist/registration/schemas.gen.d.ts.map +1 -1
  5. package/dist/registration/schemas.gen.js +53 -63
  6. package/dist/registration/schemas.gen.js.map +1 -1
  7. package/dist/registration/types.gen.d.ts +17 -16
  8. package/dist/registration/types.gen.d.ts.map +1 -1
  9. package/dist/registration/zod.gen.d.ts +40 -37
  10. package/dist/registration/zod.gen.d.ts.map +1 -1
  11. package/dist/registration/zod.gen.js +88 -17
  12. package/dist/registration/zod.gen.js.map +1 -1
  13. package/dist/rem/index.d.ts +2 -2
  14. package/dist/rem/index.d.ts.map +1 -1
  15. package/dist/rem/index.js +1 -1
  16. package/dist/rem/index.js.map +1 -1
  17. package/dist/rem/schemas.gen.d.ts +536 -5
  18. package/dist/rem/schemas.gen.d.ts.map +1 -1
  19. package/dist/rem/schemas.gen.js +574 -5
  20. package/dist/rem/schemas.gen.js.map +1 -1
  21. package/dist/rem/sdk.gen.d.ts +5 -1
  22. package/dist/rem/sdk.gen.d.ts.map +1 -1
  23. package/dist/rem/sdk.gen.js +30 -1
  24. package/dist/rem/sdk.gen.js.map +1 -1
  25. package/dist/rem/transformers.gen.d.ts +2 -1
  26. package/dist/rem/transformers.gen.d.ts.map +1 -1
  27. package/dist/rem/transformers.gen.js +49 -0
  28. package/dist/rem/transformers.gen.js.map +1 -1
  29. package/dist/rem/types.gen.d.ts +230 -5
  30. package/dist/rem/types.gen.d.ts.map +1 -1
  31. package/dist/rem/zod.gen.d.ts +1014 -9
  32. package/dist/rem/zod.gen.d.ts.map +1 -1
  33. package/dist/rem/zod.gen.js +390 -5
  34. package/dist/rem/zod.gen.js.map +1 -1
  35. package/package.json +1 -1
@@ -103,7 +103,7 @@ export const LocationRefRequestSchema = {
103
103
  type: 'integer',
104
104
  format: 'int64',
105
105
  },
106
- subDistrictId: {
106
+ subdistrictId: {
107
107
  type: 'integer',
108
108
  format: 'int64',
109
109
  },
@@ -157,6 +157,81 @@ export const ReassignMemberRequestSchema = {
157
157
  },
158
158
  required: ['memberId'],
159
159
  };
160
+ export const AgreementRequestSchema = {
161
+ type: 'object',
162
+ properties: {
163
+ type: {
164
+ $ref: '#/components/schemas/TypeEnum',
165
+ },
166
+ expiresAt: {
167
+ type: 'string',
168
+ format: 'date',
169
+ },
170
+ },
171
+ required: ['type'],
172
+ };
173
+ export const EmailAddressSchema = {
174
+ type: 'object',
175
+ properties: {
176
+ value: {
177
+ type: 'string',
178
+ },
179
+ },
180
+ };
181
+ export const FullNameSchema = {
182
+ type: 'object',
183
+ properties: {
184
+ firstName: {
185
+ $ref: '#/components/schemas/Name',
186
+ },
187
+ lastName: {
188
+ $ref: '#/components/schemas/Name',
189
+ },
190
+ },
191
+ };
192
+ export const NameSchema = {
193
+ type: 'object',
194
+ properties: {
195
+ value: {
196
+ type: 'string',
197
+ },
198
+ },
199
+ };
200
+ export const SpotAgencyPrincipalSchema = {
201
+ type: 'object',
202
+ properties: {
203
+ id: {
204
+ type: 'string',
205
+ },
206
+ email: {
207
+ $ref: '#/components/schemas/EmailAddress',
208
+ },
209
+ fullName: {
210
+ $ref: '#/components/schemas/FullName',
211
+ },
212
+ memberId: {
213
+ type: 'string',
214
+ format: 'uuid',
215
+ },
216
+ agencyId: {
217
+ type: 'string',
218
+ format: 'uuid',
219
+ },
220
+ permissions: {
221
+ type: 'array',
222
+ items: {
223
+ $ref: '#/components/schemas/ItemsEnum',
224
+ },
225
+ uniqueItems: true,
226
+ },
227
+ isActive: {
228
+ type: 'boolean',
229
+ },
230
+ isOwner: {
231
+ type: 'boolean',
232
+ },
233
+ },
234
+ };
160
235
  export const ReprioritizeClientRequestSchema = {
161
236
  type: 'object',
162
237
  properties: {
@@ -311,7 +386,7 @@ export const SocialMediaRequestSchema = {
311
386
  type: 'object',
312
387
  properties: {
313
388
  type: {
314
- $ref: '#/components/schemas/TypeEnum',
389
+ $ref: '#/components/schemas/TypeEnum2',
315
390
  },
316
391
  url: {
317
392
  type: 'string',
@@ -502,6 +577,28 @@ export const ClientIdSchema = {
502
577
  },
503
578
  },
504
579
  };
580
+ export const AddDealRequestSchema = {
581
+ type: 'object',
582
+ properties: {
583
+ listingId: {
584
+ type: 'integer',
585
+ format: 'int64',
586
+ },
587
+ commissionType: {
588
+ $ref: '#/components/schemas/CommissionTypeEnum',
589
+ },
590
+ rate: {
591
+ type: 'number',
592
+ },
593
+ amount: {
594
+ type: 'number',
595
+ },
596
+ factor: {
597
+ type: 'number',
598
+ },
599
+ },
600
+ required: ['commissionType', 'listingId'],
601
+ };
505
602
  export const InterestIdSchema = {
506
603
  type: 'object',
507
604
  properties: {
@@ -530,7 +627,7 @@ export const PhotoRequestSchema = {
530
627
  minLength: 0,
531
628
  },
532
629
  type: {
533
- $ref: '#/components/schemas/TypeEnum2',
630
+ $ref: '#/components/schemas/TypeEnum3',
534
631
  },
535
632
  width: {
536
633
  type: 'integer',
@@ -1150,6 +1247,452 @@ export const PagedModelClientGridResponseSchema = {
1150
1247
  },
1151
1248
  },
1152
1249
  };
1250
+ export const ActiveBoostResponseSchema = {
1251
+ type: 'object',
1252
+ properties: {
1253
+ tier: {
1254
+ $ref: '#/components/schemas/TierEnum',
1255
+ },
1256
+ activatedAt: {
1257
+ type: 'string',
1258
+ format: 'date',
1259
+ },
1260
+ expiresAt: {
1261
+ type: 'string',
1262
+ format: 'date',
1263
+ },
1264
+ },
1265
+ required: ['activatedAt', 'expiresAt', 'tier'],
1266
+ };
1267
+ export const AddressResponseSchema = {
1268
+ type: 'object',
1269
+ properties: {
1270
+ regionId: {
1271
+ type: 'integer',
1272
+ format: 'int64',
1273
+ },
1274
+ districtId: {
1275
+ type: 'integer',
1276
+ format: 'int64',
1277
+ },
1278
+ subdistrictId: {
1279
+ type: 'integer',
1280
+ format: 'int64',
1281
+ },
1282
+ streetId: {
1283
+ type: 'integer',
1284
+ format: 'int64',
1285
+ },
1286
+ cadastreCode: {
1287
+ type: 'string',
1288
+ },
1289
+ lat: {
1290
+ type: 'number',
1291
+ format: 'double',
1292
+ },
1293
+ lng: {
1294
+ type: 'number',
1295
+ format: 'double',
1296
+ },
1297
+ },
1298
+ required: [
1299
+ 'districtId',
1300
+ 'lat',
1301
+ 'lng',
1302
+ 'regionId',
1303
+ 'streetId',
1304
+ 'subdistrictId',
1305
+ ],
1306
+ };
1307
+ export const AgreementResponseSchema = {
1308
+ type: 'object',
1309
+ properties: {
1310
+ agreement: {
1311
+ $ref: '#/components/schemas/TypeEnum',
1312
+ },
1313
+ expiryDate: {
1314
+ type: 'string',
1315
+ format: 'date',
1316
+ },
1317
+ },
1318
+ required: ['agreement'],
1319
+ };
1320
+ export const AssignedMemberSchema = {
1321
+ type: 'object',
1322
+ properties: {
1323
+ memberId: {
1324
+ type: 'string',
1325
+ format: 'uuid',
1326
+ },
1327
+ name: {
1328
+ type: 'string',
1329
+ },
1330
+ phone: {
1331
+ type: 'string',
1332
+ },
1333
+ email: {
1334
+ type: 'string',
1335
+ },
1336
+ },
1337
+ required: ['email', 'memberId', 'name', 'phone'],
1338
+ };
1339
+ export const Client360ResponseSchema = {
1340
+ type: 'object',
1341
+ properties: {
1342
+ clientId: {
1343
+ type: 'integer',
1344
+ format: 'int64',
1345
+ },
1346
+ agencyId: {
1347
+ type: 'string',
1348
+ format: 'uuid',
1349
+ },
1350
+ clientUserId: {
1351
+ type: 'string',
1352
+ },
1353
+ createdBy: {
1354
+ type: 'string',
1355
+ format: 'uuid',
1356
+ },
1357
+ assignedMember: {
1358
+ $ref: '#/components/schemas/AssignedMember',
1359
+ },
1360
+ contactInfo: {
1361
+ $ref: '#/components/schemas/ContactInfoResponse',
1362
+ },
1363
+ source: {
1364
+ $ref: '#/components/schemas/SourceResponse',
1365
+ },
1366
+ communicationPreference: {
1367
+ $ref: '#/components/schemas/CommunicationPreferenceResponse',
1368
+ },
1369
+ isSearching: {
1370
+ type: 'boolean',
1371
+ },
1372
+ isListing: {
1373
+ type: 'boolean',
1374
+ },
1375
+ priority: {
1376
+ $ref: '#/components/schemas/PriorityEnum',
1377
+ },
1378
+ createdAt: {
1379
+ type: 'string',
1380
+ format: 'date-time',
1381
+ },
1382
+ updatedAt: {
1383
+ type: 'string',
1384
+ format: 'date-time',
1385
+ },
1386
+ interests: {
1387
+ type: 'array',
1388
+ items: {
1389
+ $ref: '#/components/schemas/ClientInterestResponse',
1390
+ },
1391
+ },
1392
+ properties: {
1393
+ type: 'array',
1394
+ items: {
1395
+ $ref: '#/components/schemas/ClientPropertyResponse',
1396
+ },
1397
+ },
1398
+ },
1399
+ required: [
1400
+ 'agencyId',
1401
+ 'clientId',
1402
+ 'contactInfo',
1403
+ 'createdAt',
1404
+ 'createdBy',
1405
+ 'interests',
1406
+ 'isListing',
1407
+ 'isSearching',
1408
+ 'properties',
1409
+ 'source',
1410
+ 'updatedAt',
1411
+ ],
1412
+ };
1413
+ export const ClientInterestResponseSchema = {
1414
+ type: 'object',
1415
+ properties: {
1416
+ id: {
1417
+ type: 'integer',
1418
+ format: 'int64',
1419
+ },
1420
+ propertyTypes: {
1421
+ type: 'array',
1422
+ items: {
1423
+ $ref: '#/components/schemas/PropertyTypeEnum',
1424
+ },
1425
+ uniqueItems: true,
1426
+ },
1427
+ listingType: {
1428
+ $ref: '#/components/schemas/ListingTypeEnum',
1429
+ },
1430
+ priceMin: {
1431
+ type: 'number',
1432
+ },
1433
+ priceMax: {
1434
+ type: 'number',
1435
+ },
1436
+ bedroomsMin: {
1437
+ type: 'integer',
1438
+ format: 'int32',
1439
+ },
1440
+ bedroomsMax: {
1441
+ type: 'integer',
1442
+ format: 'int32',
1443
+ },
1444
+ bathroomsMin: {
1445
+ type: 'integer',
1446
+ format: 'int32',
1447
+ },
1448
+ bathroomsMax: {
1449
+ type: 'integer',
1450
+ format: 'int32',
1451
+ },
1452
+ totalAreaMin: {
1453
+ type: 'number',
1454
+ format: 'double',
1455
+ },
1456
+ totalAreaMax: {
1457
+ type: 'number',
1458
+ format: 'double',
1459
+ },
1460
+ livingAreaMin: {
1461
+ type: 'number',
1462
+ format: 'double',
1463
+ },
1464
+ livingAreaMax: {
1465
+ type: 'number',
1466
+ format: 'double',
1467
+ },
1468
+ location: {
1469
+ $ref: '#/components/schemas/LocationRefRequest',
1470
+ },
1471
+ active: {
1472
+ type: 'boolean',
1473
+ },
1474
+ },
1475
+ required: ['active', 'id', 'listingType', 'propertyTypes'],
1476
+ };
1477
+ export const ClientListingsResponseSchema = {
1478
+ type: 'object',
1479
+ properties: {
1480
+ publicId: {
1481
+ type: 'integer',
1482
+ format: 'int64',
1483
+ },
1484
+ listingId: {
1485
+ type: 'string',
1486
+ format: 'uuid',
1487
+ },
1488
+ listingType: {
1489
+ $ref: '#/components/schemas/ListingTypeEnum',
1490
+ },
1491
+ price: {
1492
+ type: 'number',
1493
+ },
1494
+ deal: {
1495
+ $ref: '#/components/schemas/DealResponse',
1496
+ },
1497
+ platformListings: {
1498
+ type: 'array',
1499
+ items: {
1500
+ $ref: '#/components/schemas/PlatformListingResponse',
1501
+ },
1502
+ },
1503
+ },
1504
+ required: [
1505
+ 'listingId',
1506
+ 'listingType',
1507
+ 'platformListings',
1508
+ 'price',
1509
+ 'publicId',
1510
+ ],
1511
+ };
1512
+ export const ClientPropertyResponseSchema = {
1513
+ type: 'object',
1514
+ properties: {
1515
+ publicId: {
1516
+ type: 'integer',
1517
+ format: 'int64',
1518
+ },
1519
+ propertyId: {
1520
+ type: 'string',
1521
+ format: 'uuid',
1522
+ },
1523
+ type: {
1524
+ $ref: '#/components/schemas/PropertyTypeEnum',
1525
+ },
1526
+ state: {
1527
+ $ref: '#/components/schemas/StateEnum',
1528
+ },
1529
+ details: {
1530
+ $ref: '#/components/schemas/PropertyDetailsResponse',
1531
+ },
1532
+ agreement: {
1533
+ $ref: '#/components/schemas/AgreementResponse',
1534
+ },
1535
+ listings: {
1536
+ type: 'array',
1537
+ items: {
1538
+ $ref: '#/components/schemas/ClientListingsResponse',
1539
+ },
1540
+ },
1541
+ },
1542
+ required: [
1543
+ 'agreement',
1544
+ 'listings',
1545
+ 'propertyId',
1546
+ 'publicId',
1547
+ 'state',
1548
+ 'type',
1549
+ ],
1550
+ };
1551
+ export const ColoredListingResponseSchema = {
1552
+ type: 'object',
1553
+ properties: {
1554
+ activatedAt: {
1555
+ type: 'string',
1556
+ format: 'date',
1557
+ },
1558
+ expiresAt: {
1559
+ type: 'string',
1560
+ format: 'date',
1561
+ },
1562
+ },
1563
+ required: ['activatedAt', 'expiresAt'],
1564
+ };
1565
+ export const CommunicationPreferenceResponseSchema = {
1566
+ type: 'object',
1567
+ properties: {
1568
+ preferredContactMethod: {
1569
+ $ref: '#/components/schemas/ItemsEnum2',
1570
+ },
1571
+ contactMethods: {
1572
+ type: 'array',
1573
+ items: {
1574
+ $ref: '#/components/schemas/ItemsEnum2',
1575
+ },
1576
+ },
1577
+ },
1578
+ required: ['contactMethods'],
1579
+ };
1580
+ export const ContactInfoResponseSchema = {
1581
+ type: 'object',
1582
+ properties: {
1583
+ firstName: {
1584
+ type: 'string',
1585
+ },
1586
+ lastName: {
1587
+ type: 'string',
1588
+ },
1589
+ gender: {
1590
+ $ref: '#/components/schemas/GenderEnum',
1591
+ },
1592
+ phoneNumber: {
1593
+ type: 'string',
1594
+ },
1595
+ email: {
1596
+ type: 'string',
1597
+ },
1598
+ },
1599
+ required: ['gender', 'phoneNumber'],
1600
+ };
1601
+ export const DealResponseSchema = {
1602
+ type: 'object',
1603
+ properties: {
1604
+ type: {
1605
+ $ref: '#/components/schemas/CommissionTypeEnum',
1606
+ },
1607
+ rate: {
1608
+ type: 'number',
1609
+ },
1610
+ fixedAmount: {
1611
+ type: 'number',
1612
+ },
1613
+ months: {
1614
+ type: 'number',
1615
+ },
1616
+ commission: {
1617
+ type: 'number',
1618
+ },
1619
+ },
1620
+ required: ['commission', 'type'],
1621
+ };
1622
+ export const PlatformListingResponseSchema = {
1623
+ type: 'object',
1624
+ properties: {
1625
+ platformId: {
1626
+ type: 'integer',
1627
+ format: 'int64',
1628
+ },
1629
+ platformType: {
1630
+ $ref: '#/components/schemas/PlatformTypeEnum',
1631
+ },
1632
+ uploadDate: {
1633
+ type: 'string',
1634
+ format: 'date',
1635
+ },
1636
+ expiryDate: {
1637
+ type: 'string',
1638
+ format: 'date',
1639
+ },
1640
+ renewedDate: {
1641
+ type: 'string',
1642
+ format: 'date',
1643
+ },
1644
+ boost: {
1645
+ $ref: '#/components/schemas/ActiveBoostResponse',
1646
+ },
1647
+ coloredListing: {
1648
+ $ref: '#/components/schemas/ColoredListingResponse',
1649
+ },
1650
+ },
1651
+ required: ['expiryDate', 'platformId', 'platformType', 'uploadDate'],
1652
+ };
1653
+ export const PropertyDetailsResponseSchema = {
1654
+ type: 'object',
1655
+ properties: {
1656
+ title: {
1657
+ type: 'string',
1658
+ },
1659
+ coverPhoto: {
1660
+ type: 'string',
1661
+ },
1662
+ photoCount: {
1663
+ type: 'integer',
1664
+ format: 'int32',
1665
+ },
1666
+ totalArea: {
1667
+ type: 'number',
1668
+ format: 'double',
1669
+ },
1670
+ livingArea: {
1671
+ type: 'number',
1672
+ format: 'double',
1673
+ },
1674
+ balconyArea: {
1675
+ type: 'number',
1676
+ format: 'double',
1677
+ },
1678
+ address: {
1679
+ $ref: '#/components/schemas/AddressResponse',
1680
+ },
1681
+ },
1682
+ required: ['address', 'title', 'totalArea'],
1683
+ };
1684
+ export const SourceResponseSchema = {
1685
+ type: 'object',
1686
+ properties: {
1687
+ sourceType: {
1688
+ $ref: '#/components/schemas/SourceTypeEnum',
1689
+ },
1690
+ sourceLink: {
1691
+ type: 'string',
1692
+ },
1693
+ },
1694
+ required: ['sourceType'],
1695
+ };
1153
1696
  export const AddressViewResponseSchema = {
1154
1697
  type: 'object',
1155
1698
  properties: {
@@ -1281,6 +1824,10 @@ export const GenderEnumSchema = {
1281
1824
  type: 'string',
1282
1825
  enum: ['MALE', 'FEMALE', 'UNKNOWN'],
1283
1826
  };
1827
+ export const TypeEnumSchema = {
1828
+ type: 'string',
1829
+ enum: ['EXCLUSIVE', 'NON_EXCLUSIVE'],
1830
+ };
1284
1831
  export const PriorityEnumSchema = {
1285
1832
  type: 'string',
1286
1833
  enum: ['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'],
@@ -1289,7 +1836,7 @@ export const ItemsEnum2Schema = {
1289
1836
  type: 'string',
1290
1837
  enum: ['WHATSAPP', 'VIBER', 'PHONE_CALL'],
1291
1838
  };
1292
- export const TypeEnumSchema = {
1839
+ export const TypeEnum2Schema = {
1293
1840
  type: 'string',
1294
1841
  enum: ['FACEBOOK', 'YOUTUBE', 'INSTAGRAM', 'TIKTOK', 'LINKEDIN'],
1295
1842
  };
@@ -1297,7 +1844,11 @@ export const OutcomeEnumSchema = {
1297
1844
  type: 'string',
1298
1845
  enum: ['CONVERTED', 'LOST', 'DISQUALIFIED'],
1299
1846
  };
1300
- export const TypeEnum2Schema = {
1847
+ export const CommissionTypeEnumSchema = {
1848
+ type: 'string',
1849
+ enum: ['FIXED_SALE', 'FIXED_RENT', 'PERCENTAGE', 'MONTHS_OF_RENT'],
1850
+ };
1851
+ export const TypeEnum3Schema = {
1301
1852
  type: 'string',
1302
1853
  enum: ['JPEG', 'JPG', 'PNG', 'WEBP'],
1303
1854
  };
@@ -1330,4 +1881,22 @@ export const SourceTypeEnumSchema = {
1330
1881
  'UNKNOWN',
1331
1882
  ],
1332
1883
  };
1884
+ export const TierEnumSchema = {
1885
+ type: 'string',
1886
+ enum: ['VIP', 'VIP_PLUS', 'SUPER_VIP'],
1887
+ };
1888
+ export const StateEnumSchema = {
1889
+ type: 'string',
1890
+ enum: [
1891
+ 'IN_REGISTRATION',
1892
+ 'UNLISTED',
1893
+ 'LISTED_INTERNALLY',
1894
+ 'LISTED',
1895
+ 'CLOSED',
1896
+ ],
1897
+ };
1898
+ export const PlatformTypeEnumSchema = {
1899
+ type: 'string',
1900
+ enum: ['SS', 'MY_HOME'],
1901
+ };
1333
1902
  //# sourceMappingURL=schemas.gen.js.map