@homespot-sdk/core 0.0.346 → 0.0.348
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 +102 -557
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +126 -598
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +5 -10
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +13 -43
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +5 -10
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +28 -94
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +95 -284
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +304 -845
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +99 -425
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/zod.gen.js
CHANGED
|
@@ -1238,18 +1238,8 @@ export const zStageCardsResponse = z.object({
|
|
|
1238
1238
|
members: z.array(zMemberPeekResponse),
|
|
1239
1239
|
data: zCursorPageTaskCardResponse,
|
|
1240
1240
|
});
|
|
1241
|
-
export const
|
|
1242
|
-
|
|
1243
|
-
name: z.string(),
|
|
1244
|
-
won: z.coerce
|
|
1245
|
-
.bigint()
|
|
1246
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1247
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1248
|
-
})
|
|
1249
|
-
.max(BigInt('9223372036854775807'), {
|
|
1250
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1251
|
-
}),
|
|
1252
|
-
lost: z.coerce
|
|
1241
|
+
export const zBucket = z.object({
|
|
1242
|
+
count: z.coerce
|
|
1253
1243
|
.bigint()
|
|
1254
1244
|
.min(BigInt('-9223372036854775808'), {
|
|
1255
1245
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1257,38 +1247,19 @@ export const zBoardWinRate = z.object({
|
|
|
1257
1247
|
.max(BigInt('9223372036854775807'), {
|
|
1258
1248
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1259
1249
|
}),
|
|
1260
|
-
|
|
1250
|
+
value: z.number(),
|
|
1251
|
+
commission: z.number(),
|
|
1261
1252
|
});
|
|
1262
|
-
export const
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
.max(BigInt('9223372036854775807'), {
|
|
1270
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1271
|
-
}),
|
|
1272
|
-
lost: z.coerce
|
|
1273
|
-
.bigint()
|
|
1274
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1275
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1276
|
-
})
|
|
1277
|
-
.max(BigInt('9223372036854775807'), {
|
|
1278
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1279
|
-
}),
|
|
1280
|
-
winRatePct: z.number(),
|
|
1253
|
+
export const zPipelineCommissionResponse = z.object({
|
|
1254
|
+
from: z.iso.date(),
|
|
1255
|
+
to: z.iso.date(),
|
|
1256
|
+
won: zBucket,
|
|
1257
|
+
lost: zBucket,
|
|
1258
|
+
pending: zBucket,
|
|
1259
|
+
total: zBucket,
|
|
1281
1260
|
});
|
|
1282
|
-
export const
|
|
1283
|
-
|
|
1284
|
-
.bigint()
|
|
1285
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1286
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1287
|
-
})
|
|
1288
|
-
.max(BigInt('9223372036854775807'), {
|
|
1289
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1290
|
-
}),
|
|
1291
|
-
lost: z.coerce
|
|
1261
|
+
export const zOutcomeBucket = z.object({
|
|
1262
|
+
count: z.coerce
|
|
1292
1263
|
.bigint()
|
|
1293
1264
|
.min(BigInt('-9223372036854775808'), {
|
|
1294
1265
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1296,49 +1267,28 @@ export const zWinRateStats = z.object({
|
|
|
1296
1267
|
.max(BigInt('9223372036854775807'), {
|
|
1297
1268
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1298
1269
|
}),
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
export const zStatsEnvelopeWinRateStats = z.object({
|
|
1304
|
-
period: z.string(),
|
|
1305
|
-
computedAt: z.iso.datetime(),
|
|
1306
|
-
data: zWinRateStats,
|
|
1307
|
-
});
|
|
1308
|
-
export const zStageVelocity = z.object({
|
|
1309
|
-
boardId: z.uuid(),
|
|
1310
|
-
boardName: z.string(),
|
|
1311
|
-
stageId: z.uuid(),
|
|
1312
|
-
stageName: z.string(),
|
|
1313
|
-
position: z
|
|
1314
|
-
.int()
|
|
1315
|
-
.min(-2147483648, {
|
|
1316
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1317
|
-
})
|
|
1318
|
-
.max(2147483647, {
|
|
1319
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1320
|
-
}),
|
|
1321
|
-
avgDaysInStage: z.number(),
|
|
1322
|
-
samples: z.coerce
|
|
1270
|
+
share: z.number(),
|
|
1271
|
+
value: z.number(),
|
|
1272
|
+
commission: z.number(),
|
|
1273
|
+
spark: z.array(z.coerce
|
|
1323
1274
|
.bigint()
|
|
1324
1275
|
.min(BigInt('-9223372036854775808'), {
|
|
1325
1276
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1326
1277
|
})
|
|
1327
1278
|
.max(BigInt('9223372036854775807'), {
|
|
1328
1279
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1329
|
-
}),
|
|
1330
|
-
});
|
|
1331
|
-
export const zTaskVelocityStats = z.object({
|
|
1332
|
-
stages: z.array(zStageVelocity),
|
|
1280
|
+
})),
|
|
1333
1281
|
});
|
|
1334
|
-
export const
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1282
|
+
export const zOutcomes = z.object({
|
|
1283
|
+
won: zOutcomeBucket,
|
|
1284
|
+
lost: zOutcomeBucket,
|
|
1285
|
+
pending: zOutcomeBucket,
|
|
1286
|
+
total: zOutcomeBucket,
|
|
1338
1287
|
});
|
|
1339
|
-
export const
|
|
1288
|
+
export const zStageStats = z.object({
|
|
1340
1289
|
stageId: z.uuid(),
|
|
1341
1290
|
name: z.string(),
|
|
1291
|
+
color: z.string(),
|
|
1342
1292
|
position: z
|
|
1343
1293
|
.int()
|
|
1344
1294
|
.min(-2147483648, {
|
|
@@ -1347,7 +1297,7 @@ export const zStageSlice = z.object({
|
|
|
1347
1297
|
.max(2147483647, {
|
|
1348
1298
|
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1349
1299
|
}),
|
|
1350
|
-
|
|
1300
|
+
openCount: z.coerce
|
|
1351
1301
|
.bigint()
|
|
1352
1302
|
.min(BigInt('-9223372036854775808'), {
|
|
1353
1303
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1355,25 +1305,9 @@ export const zStageSlice = z.object({
|
|
|
1355
1305
|
.max(BigInt('9223372036854775807'), {
|
|
1356
1306
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1357
1307
|
}),
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
boardId: z.uuid(),
|
|
1362
|
-
name: z.string(),
|
|
1363
|
-
kind: z.optional(z.string()),
|
|
1364
|
-
stages: z.array(zStageSlice),
|
|
1365
|
-
});
|
|
1366
|
-
export const zTaskFunnelStats = z.object({
|
|
1367
|
-
boards: z.array(zBoardFunnel),
|
|
1368
|
-
});
|
|
1369
|
-
export const zStatsEnvelopeTaskFunnelStats = z.object({
|
|
1370
|
-
period: z.string(),
|
|
1371
|
-
computedAt: z.iso.datetime(),
|
|
1372
|
-
data: zTaskFunnelStats,
|
|
1373
|
-
});
|
|
1374
|
-
export const zLocationCount = z.object({
|
|
1375
|
-
location: z.optional(zLocationResponse),
|
|
1376
|
-
count: z.optional(z.coerce
|
|
1308
|
+
value: z.number(),
|
|
1309
|
+
commission: z.number(),
|
|
1310
|
+
avgAgeSeconds: z.optional(z.coerce
|
|
1377
1311
|
.bigint()
|
|
1378
1312
|
.min(BigInt('-9223372036854775808'), {
|
|
1379
1313
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1382,8 +1316,18 @@ export const zLocationCount = z.object({
|
|
|
1382
1316
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1383
1317
|
})),
|
|
1384
1318
|
});
|
|
1385
|
-
export const
|
|
1386
|
-
|
|
1319
|
+
export const zBoardStatsResponse = z.object({
|
|
1320
|
+
boardId: z.uuid(),
|
|
1321
|
+
boardName: z.string(),
|
|
1322
|
+
from: z.iso.date(),
|
|
1323
|
+
to: z.iso.date(),
|
|
1324
|
+
granularity: z.enum(['DAY', 'WEEK', 'MONTH']),
|
|
1325
|
+
buckets: z.array(z.iso.date()),
|
|
1326
|
+
outcomes: zOutcomes,
|
|
1327
|
+
stages: z.array(zStageStats),
|
|
1328
|
+
});
|
|
1329
|
+
export const zSegment = z.object({
|
|
1330
|
+
kind: z.enum(['LISTER_ONLY', 'SEEKER_ONLY', 'BOTH', 'NEITHER']),
|
|
1387
1331
|
count: z.coerce
|
|
1388
1332
|
.bigint()
|
|
1389
1333
|
.min(BigInt('-9223372036854775808'), {
|
|
@@ -1392,82 +1336,13 @@ export const zSlice = z.object({
|
|
|
1392
1336
|
.max(BigInt('9223372036854775807'), {
|
|
1393
1337
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1394
1338
|
}),
|
|
1339
|
+
share: z.number(),
|
|
1395
1340
|
});
|
|
1396
|
-
export const
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
activeListings: z.optional(z.coerce
|
|
1402
|
-
.bigint()
|
|
1403
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1404
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1405
|
-
})
|
|
1406
|
-
.max(BigInt('9223372036854775807'), {
|
|
1407
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1408
|
-
})),
|
|
1409
|
-
byListingType: z.optional(z.array(zSlice)),
|
|
1410
|
-
byPropertyType: z.optional(z.array(zSlice)),
|
|
1411
|
-
priceByDealType: z.optional(z.array(zDealTypePrice)),
|
|
1412
|
-
topDistricts: z.optional(z.array(zLocationCount)),
|
|
1413
|
-
});
|
|
1414
|
-
export const zStatsEnvelopeSupplyStats = z.object({
|
|
1415
|
-
period: z.string(),
|
|
1416
|
-
computedAt: z.iso.datetime(),
|
|
1417
|
-
data: zSupplyStats,
|
|
1418
|
-
});
|
|
1419
|
-
export const zExpiringAgreement = z.object({
|
|
1420
|
-
propertyId: z.optional(z.coerce
|
|
1421
|
-
.bigint()
|
|
1422
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1423
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1424
|
-
})
|
|
1425
|
-
.max(BigInt('9223372036854775807'), {
|
|
1426
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1427
|
-
})),
|
|
1428
|
-
externalId: z.optional(z.uuid()),
|
|
1429
|
-
title: z.optional(z.string()),
|
|
1430
|
-
expiresAt: z.optional(z.iso.date()),
|
|
1431
|
-
});
|
|
1432
|
-
export const zExpiringPlatformListing = z.object({
|
|
1433
|
-
platform: z.optional(z.enum(['SS', 'MY_HOME'])),
|
|
1434
|
-
platformId: z.optional(z.coerce
|
|
1435
|
-
.bigint()
|
|
1436
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1437
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1438
|
-
})
|
|
1439
|
-
.max(BigInt('9223372036854775807'), {
|
|
1440
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1441
|
-
})),
|
|
1442
|
-
propertyTitle: z.optional(z.string()),
|
|
1443
|
-
expiresAt: z.optional(z.iso.date()),
|
|
1444
|
-
});
|
|
1445
|
-
export const zListingTypeAgg = z.object({
|
|
1446
|
-
listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
|
|
1447
|
-
count: z.optional(z.coerce
|
|
1448
|
-
.bigint()
|
|
1449
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1450
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1451
|
-
})
|
|
1452
|
-
.max(BigInt('9223372036854775807'), {
|
|
1453
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1454
|
-
})),
|
|
1455
|
-
pipelineValue: z.optional(z.number()),
|
|
1456
|
-
estimatedCommission: z.optional(z.number()),
|
|
1457
|
-
});
|
|
1458
|
-
export const zPortfolioStats = z.object({
|
|
1459
|
-
propertiesByState: z.array(zSlice),
|
|
1460
|
-
listings: z.array(zListingTypeAgg),
|
|
1461
|
-
expiringAgreementsCount: z.coerce
|
|
1462
|
-
.bigint()
|
|
1463
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1464
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1465
|
-
})
|
|
1466
|
-
.max(BigInt('9223372036854775807'), {
|
|
1467
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1468
|
-
}),
|
|
1469
|
-
expiringAgreements: z.array(zExpiringAgreement),
|
|
1470
|
-
expiringPlatformCount: z.coerce
|
|
1341
|
+
export const zContactSegmentsResponse = z.object({
|
|
1342
|
+
from: z.iso.date(),
|
|
1343
|
+
to: z.iso.date(),
|
|
1344
|
+
segments: z.array(zSegment),
|
|
1345
|
+
total: z.coerce
|
|
1471
1346
|
.bigint()
|
|
1472
1347
|
.min(BigInt('-9223372036854775808'), {
|
|
1473
1348
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1475,16 +1350,19 @@ export const zPortfolioStats = z.object({
|
|
|
1475
1350
|
.max(BigInt('9223372036854775807'), {
|
|
1476
1351
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1477
1352
|
}),
|
|
1478
|
-
expiringPlatformListings: z.array(zExpiringPlatformListing),
|
|
1479
1353
|
});
|
|
1480
|
-
export const
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1354
|
+
export const zChannelSeries = z.object({
|
|
1355
|
+
channel: z.enum([
|
|
1356
|
+
'MY_HOME',
|
|
1357
|
+
'SS',
|
|
1358
|
+
'HOME_SPOT',
|
|
1359
|
+
'AGENCY_MEMBER',
|
|
1360
|
+
'FACEBOOK',
|
|
1361
|
+
'INSTAGRAM',
|
|
1362
|
+
'WHATSAPP',
|
|
1363
|
+
'UNKNOWN',
|
|
1364
|
+
]),
|
|
1365
|
+
points: z.array(z.coerce
|
|
1488
1366
|
.bigint()
|
|
1489
1367
|
.min(BigInt('-9223372036854775808'), {
|
|
1490
1368
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1492,8 +1370,6 @@ export const zTrendPoint = z.object({
|
|
|
1492
1370
|
.max(BigInt('9223372036854775807'), {
|
|
1493
1371
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1494
1372
|
})),
|
|
1495
|
-
});
|
|
1496
|
-
export const zPipelineStats = z.object({
|
|
1497
1373
|
total: z.coerce
|
|
1498
1374
|
.bigint()
|
|
1499
1375
|
.min(BigInt('-9223372036854775808'), {
|
|
@@ -1502,131 +1378,14 @@ export const zPipelineStats = z.object({
|
|
|
1502
1378
|
.max(BigInt('9223372036854775807'), {
|
|
1503
1379
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1504
1380
|
}),
|
|
1505
|
-
unassigned: z.coerce
|
|
1506
|
-
.bigint()
|
|
1507
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1508
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1509
|
-
})
|
|
1510
|
-
.max(BigInt('9223372036854775807'), {
|
|
1511
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1512
|
-
}),
|
|
1513
|
-
newContactsTrend: z.array(zTrendPoint),
|
|
1514
|
-
sourceAttribution: z.array(zSlice),
|
|
1515
|
-
});
|
|
1516
|
-
export const zStatsEnvelopePipelineStats = z.object({
|
|
1517
|
-
period: z.string(),
|
|
1518
|
-
computedAt: z.iso.datetime(),
|
|
1519
|
-
data: zPipelineStats,
|
|
1520
|
-
});
|
|
1521
|
-
export const zRow = z.object({
|
|
1522
|
-
memberId: z.uuid(),
|
|
1523
|
-
firstName: z.string(),
|
|
1524
|
-
lastName: z.string(),
|
|
1525
|
-
photo: z.string(),
|
|
1526
|
-
tasksWon: z.coerce
|
|
1527
|
-
.bigint()
|
|
1528
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1529
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1530
|
-
})
|
|
1531
|
-
.max(BigInt('9223372036854775807'), {
|
|
1532
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1533
|
-
}),
|
|
1534
|
-
wonValue: z.number(),
|
|
1535
|
-
commission: z.number(),
|
|
1536
|
-
recommendationsSent: z.coerce
|
|
1537
|
-
.bigint()
|
|
1538
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1539
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1540
|
-
})
|
|
1541
|
-
.max(BigInt('9223372036854775807'), {
|
|
1542
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1543
|
-
}),
|
|
1544
|
-
recommendationsRated: z.coerce
|
|
1545
|
-
.bigint()
|
|
1546
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1547
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1548
|
-
})
|
|
1549
|
-
.max(BigInt('9223372036854775807'), {
|
|
1550
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1551
|
-
}),
|
|
1552
|
-
likeRatePct: z.number(),
|
|
1553
|
-
});
|
|
1554
|
-
export const zLeaderboardStats = z.object({
|
|
1555
|
-
rows: z.array(zRow),
|
|
1556
|
-
});
|
|
1557
|
-
export const zStatsEnvelopeLeaderboardStats = z.object({
|
|
1558
|
-
period: z.string(),
|
|
1559
|
-
computedAt: z.iso.datetime(),
|
|
1560
|
-
data: zLeaderboardStats,
|
|
1561
|
-
});
|
|
1562
|
-
export const zAwaitingConversation = z.object({
|
|
1563
|
-
conversationId: z.uuid(),
|
|
1564
|
-
contactId: z.coerce
|
|
1565
|
-
.bigint()
|
|
1566
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1567
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1568
|
-
})
|
|
1569
|
-
.max(BigInt('9223372036854775807'), {
|
|
1570
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1571
|
-
}),
|
|
1572
|
-
firstName: z.optional(z.string()),
|
|
1573
|
-
lastName: z.optional(z.string()),
|
|
1574
|
-
channelType: z.enum(['FACEBOOK', 'INSTAGRAM', 'WHATSAPP']),
|
|
1575
|
-
lastMessagePreview: z.string(),
|
|
1576
|
-
lastInboundAt: z.iso.datetime(),
|
|
1577
|
-
unreadCount: z
|
|
1578
|
-
.int()
|
|
1579
|
-
.min(-2147483648, {
|
|
1580
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1581
|
-
})
|
|
1582
|
-
.max(2147483647, {
|
|
1583
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1584
|
-
}),
|
|
1585
|
-
reachable: z.boolean(),
|
|
1586
1381
|
});
|
|
1587
|
-
export const
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1595
|
-
}),
|
|
1596
|
-
unreadMessages: z.coerce
|
|
1597
|
-
.bigint()
|
|
1598
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1599
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1600
|
-
})
|
|
1601
|
-
.max(BigInt('9223372036854775807'), {
|
|
1602
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1603
|
-
}),
|
|
1604
|
-
newConversations: z.coerce
|
|
1605
|
-
.bigint()
|
|
1606
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1607
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1608
|
-
})
|
|
1609
|
-
.max(BigInt('9223372036854775807'), {
|
|
1610
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1611
|
-
}),
|
|
1612
|
-
awaitingReplyCount: z.coerce
|
|
1613
|
-
.bigint()
|
|
1614
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1615
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1616
|
-
})
|
|
1617
|
-
.max(BigInt('9223372036854775807'), {
|
|
1618
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1619
|
-
}),
|
|
1620
|
-
awaitingUnreachableCount: z.coerce
|
|
1621
|
-
.bigint()
|
|
1622
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1623
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1624
|
-
})
|
|
1625
|
-
.max(BigInt('9223372036854775807'), {
|
|
1626
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1627
|
-
}),
|
|
1628
|
-
awaitingReply: z.array(zAwaitingConversation),
|
|
1629
|
-
medianResponseSeconds: z.coerce
|
|
1382
|
+
export const zContactAcquisitionResponse = z.object({
|
|
1383
|
+
from: z.iso.date(),
|
|
1384
|
+
to: z.iso.date(),
|
|
1385
|
+
granularity: z.enum(['DAY', 'WEEK', 'MONTH']),
|
|
1386
|
+
buckets: z.array(z.iso.date()),
|
|
1387
|
+
series: z.array(zChannelSeries),
|
|
1388
|
+
total: z.coerce
|
|
1630
1389
|
.bigint()
|
|
1631
1390
|
.min(BigInt('-9223372036854775808'), {
|
|
1632
1391
|
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
@@ -1634,35 +1393,6 @@ export const zInboxStats = z.object({
|
|
|
1634
1393
|
.max(BigInt('9223372036854775807'), {
|
|
1635
1394
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1636
1395
|
}),
|
|
1637
|
-
inboundByChannel: z.array(zSlice),
|
|
1638
|
-
});
|
|
1639
|
-
export const zStatsEnvelopeInboxStats = z.object({
|
|
1640
|
-
period: z.string(),
|
|
1641
|
-
computedAt: z.iso.datetime(),
|
|
1642
|
-
data: zInboxStats,
|
|
1643
|
-
});
|
|
1644
|
-
export const zDealTypeBudget = z.object({
|
|
1645
|
-
listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
|
|
1646
|
-
buckets: z.optional(z.array(zSlice)),
|
|
1647
|
-
});
|
|
1648
|
-
export const zDemandStats = z.object({
|
|
1649
|
-
activeInterests: z.optional(z.coerce
|
|
1650
|
-
.bigint()
|
|
1651
|
-
.min(BigInt('-9223372036854775808'), {
|
|
1652
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1653
|
-
})
|
|
1654
|
-
.max(BigInt('9223372036854775807'), {
|
|
1655
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1656
|
-
})),
|
|
1657
|
-
byListingType: z.optional(z.array(zSlice)),
|
|
1658
|
-
byPropertyType: z.optional(z.array(zSlice)),
|
|
1659
|
-
budgetByDealType: z.optional(z.array(zDealTypeBudget)),
|
|
1660
|
-
topDistricts: z.optional(z.array(zLocationCount)),
|
|
1661
|
-
});
|
|
1662
|
-
export const zStatsEnvelopeDemandStats = z.object({
|
|
1663
|
-
period: z.string(),
|
|
1664
|
-
computedAt: z.iso.datetime(),
|
|
1665
|
-
data: zDemandStats,
|
|
1666
1396
|
});
|
|
1667
1397
|
export const zPageMetadata = z.object({
|
|
1668
1398
|
size: z.optional(z.coerce
|
|
@@ -5286,118 +5016,62 @@ export const zGetTaskBoardByBoardIdCardsData = z.object({
|
|
|
5286
5016
|
* OK
|
|
5287
5017
|
*/
|
|
5288
5018
|
export const zGetTaskBoardByBoardIdCardsResponse = zStageCardsResponse;
|
|
5289
|
-
export const
|
|
5290
|
-
body: z.optional(z.never()),
|
|
5291
|
-
path: z.optional(z.never()),
|
|
5292
|
-
query: z.optional(z.object({
|
|
5293
|
-
period: z.optional(z.string()).default('30d'),
|
|
5294
|
-
})),
|
|
5295
|
-
});
|
|
5296
|
-
/**
|
|
5297
|
-
* OK
|
|
5298
|
-
*/
|
|
5299
|
-
export const zGetStatisticsWinRateResponse = zStatsEnvelopeWinRateStats;
|
|
5300
|
-
export const zGetStatisticsTaskVelocityData = z.object({
|
|
5301
|
-
body: z.optional(z.never()),
|
|
5302
|
-
path: z.optional(z.never()),
|
|
5303
|
-
query: z.optional(z.object({
|
|
5304
|
-
period: z.optional(z.string()).default('90d'),
|
|
5305
|
-
})),
|
|
5306
|
-
});
|
|
5307
|
-
/**
|
|
5308
|
-
* OK
|
|
5309
|
-
*/
|
|
5310
|
-
export const zGetStatisticsTaskVelocityResponse = zStatsEnvelopeTaskVelocityStats;
|
|
5311
|
-
export const zGetStatisticsTaskFunnelData = z.object({
|
|
5312
|
-
body: z.optional(z.never()),
|
|
5313
|
-
path: z.optional(z.never()),
|
|
5314
|
-
query: z.optional(z.never()),
|
|
5315
|
-
});
|
|
5316
|
-
/**
|
|
5317
|
-
* OK
|
|
5318
|
-
*/
|
|
5319
|
-
export const zGetStatisticsTaskFunnelResponse = zStatsEnvelopeTaskFunnelStats;
|
|
5320
|
-
export const zGetStatisticsSupplyData = z.object({
|
|
5019
|
+
export const zGetStatsPipelineCommissionData = z.object({
|
|
5321
5020
|
body: z.optional(z.never()),
|
|
5322
5021
|
path: z.optional(z.never()),
|
|
5323
|
-
query: z.
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
export const zGetStatisticsSupplyResponse = zStatsEnvelopeSupplyStats;
|
|
5329
|
-
export const zGetStatisticsPortfolioData = z.object({
|
|
5330
|
-
body: z.optional(z.never()),
|
|
5331
|
-
path: z.optional(z.never()),
|
|
5332
|
-
query: z.optional(z.object({
|
|
5333
|
-
agreementWindowDays: z
|
|
5334
|
-
.optional(z
|
|
5335
|
-
.int()
|
|
5336
|
-
.min(-2147483648, {
|
|
5337
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5338
|
-
})
|
|
5339
|
-
.max(2147483647, {
|
|
5340
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5341
|
-
}))
|
|
5342
|
-
.default(30),
|
|
5343
|
-
platformWindowDays: z
|
|
5344
|
-
.optional(z
|
|
5345
|
-
.int()
|
|
5346
|
-
.min(-2147483648, {
|
|
5347
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
5348
|
-
})
|
|
5349
|
-
.max(2147483647, {
|
|
5350
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
5351
|
-
}))
|
|
5352
|
-
.default(7),
|
|
5353
|
-
})),
|
|
5354
|
-
});
|
|
5355
|
-
/**
|
|
5356
|
-
* OK
|
|
5357
|
-
*/
|
|
5358
|
-
export const zGetStatisticsPortfolioResponse = zStatsEnvelopePortfolioStats;
|
|
5359
|
-
export const zGetStatisticsPipelineData = z.object({
|
|
5360
|
-
body: z.optional(z.never()),
|
|
5361
|
-
path: z.optional(z.never()),
|
|
5362
|
-
query: z.optional(z.object({
|
|
5363
|
-
period: z.optional(z.string()).default('30d'),
|
|
5364
|
-
})),
|
|
5022
|
+
query: z.object({
|
|
5023
|
+
from: z.iso.date(),
|
|
5024
|
+
to: z.iso.date(),
|
|
5025
|
+
memberId: z.optional(z.uuid()),
|
|
5026
|
+
}),
|
|
5365
5027
|
});
|
|
5366
5028
|
/**
|
|
5367
5029
|
* OK
|
|
5368
5030
|
*/
|
|
5369
|
-
export const
|
|
5370
|
-
export const
|
|
5031
|
+
export const zGetStatsPipelineCommissionResponse = zPipelineCommissionResponse;
|
|
5032
|
+
export const zGetStatsPipelineBoardsByBoardIdData = z.object({
|
|
5371
5033
|
body: z.optional(z.never()),
|
|
5372
|
-
path: z.
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5034
|
+
path: z.object({
|
|
5035
|
+
boardId: z.uuid(),
|
|
5036
|
+
}),
|
|
5037
|
+
query: z.object({
|
|
5038
|
+
from: z.iso.date(),
|
|
5039
|
+
to: z.iso.date(),
|
|
5040
|
+
granularity: z.optional(z.enum(['DAY', 'WEEK', 'MONTH'])),
|
|
5041
|
+
memberId: z.optional(z.uuid()),
|
|
5042
|
+
}),
|
|
5376
5043
|
});
|
|
5377
5044
|
/**
|
|
5378
5045
|
* OK
|
|
5379
5046
|
*/
|
|
5380
|
-
export const
|
|
5381
|
-
export const
|
|
5047
|
+
export const zGetStatsPipelineBoardsByBoardIdResponse = zBoardStatsResponse;
|
|
5048
|
+
export const zGetStatsContactsSegmentsData = z.object({
|
|
5382
5049
|
body: z.optional(z.never()),
|
|
5383
5050
|
path: z.optional(z.never()),
|
|
5384
|
-
query: z.
|
|
5385
|
-
|
|
5386
|
-
|
|
5051
|
+
query: z.object({
|
|
5052
|
+
from: z.iso.date(),
|
|
5053
|
+
to: z.iso.date(),
|
|
5054
|
+
memberId: z.optional(z.uuid()),
|
|
5055
|
+
}),
|
|
5387
5056
|
});
|
|
5388
5057
|
/**
|
|
5389
5058
|
* OK
|
|
5390
5059
|
*/
|
|
5391
|
-
export const
|
|
5392
|
-
export const
|
|
5060
|
+
export const zGetStatsContactsSegmentsResponse = zContactSegmentsResponse;
|
|
5061
|
+
export const zGetStatsContactsAcquisitionData = z.object({
|
|
5393
5062
|
body: z.optional(z.never()),
|
|
5394
5063
|
path: z.optional(z.never()),
|
|
5395
|
-
query: z.
|
|
5064
|
+
query: z.object({
|
|
5065
|
+
from: z.iso.date(),
|
|
5066
|
+
to: z.iso.date(),
|
|
5067
|
+
granularity: z.optional(z.enum(['DAY', 'WEEK', 'MONTH'])),
|
|
5068
|
+
memberId: z.optional(z.uuid()),
|
|
5069
|
+
}),
|
|
5396
5070
|
});
|
|
5397
5071
|
/**
|
|
5398
5072
|
* OK
|
|
5399
5073
|
*/
|
|
5400
|
-
export const
|
|
5074
|
+
export const zGetStatsContactsAcquisitionResponse = zContactAcquisitionResponse;
|
|
5401
5075
|
export const zGetPublicRecomendationsByTokenItemsData = z.object({
|
|
5402
5076
|
body: z.optional(z.never()),
|
|
5403
5077
|
path: z.object({
|