@homespot-sdk/core 0.0.346 → 0.0.347

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.
@@ -1238,141 +1238,7 @@ export const zStageCardsResponse = z.object({
1238
1238
  members: z.array(zMemberPeekResponse),
1239
1239
  data: zCursorPageTaskCardResponse,
1240
1240
  });
1241
- export const zBoardWinRate = z.object({
1242
- boardId: z.uuid(),
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
1253
- .bigint()
1254
- .min(BigInt('-9223372036854775808'), {
1255
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1256
- })
1257
- .max(BigInt('9223372036854775807'), {
1258
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1259
- }),
1260
- winRatePct: z.number(),
1261
- });
1262
- export const zMemberWinRate = z.object({
1263
- memberId: z.uuid(),
1264
- won: z.coerce
1265
- .bigint()
1266
- .min(BigInt('-9223372036854775808'), {
1267
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
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(),
1281
- });
1282
- export const zWinRateStats = z.object({
1283
- won: z.coerce
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
1292
- .bigint()
1293
- .min(BigInt('-9223372036854775808'), {
1294
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1295
- })
1296
- .max(BigInt('9223372036854775807'), {
1297
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1298
- }),
1299
- winRatePct: z.number(),
1300
- boards: z.array(zBoardWinRate),
1301
- members: z.array(zMemberWinRate),
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
1323
- .bigint()
1324
- .min(BigInt('-9223372036854775808'), {
1325
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1326
- })
1327
- .max(BigInt('9223372036854775807'), {
1328
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1329
- }),
1330
- });
1331
- export const zTaskVelocityStats = z.object({
1332
- stages: z.array(zStageVelocity),
1333
- });
1334
- export const zStatsEnvelopeTaskVelocityStats = z.object({
1335
- period: z.string(),
1336
- computedAt: z.iso.datetime(),
1337
- data: zTaskVelocityStats,
1338
- });
1339
- export const zStageSlice = z.object({
1340
- stageId: z.uuid(),
1341
- name: z.string(),
1342
- position: z
1343
- .int()
1344
- .min(-2147483648, {
1345
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1346
- })
1347
- .max(2147483647, {
1348
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1349
- }),
1350
- openTasks: z.coerce
1351
- .bigint()
1352
- .min(BigInt('-9223372036854775808'), {
1353
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1354
- })
1355
- .max(BigInt('9223372036854775807'), {
1356
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1357
- }),
1358
- openValue: z.number(),
1359
- });
1360
- export const zBoardFunnel = z.object({
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),
1241
+ export const zBucket = z.object({
1376
1242
  count: z.optional(z.coerce
1377
1243
  .bigint()
1378
1244
  .min(BigInt('-9223372036854775808'), {
@@ -1381,110 +1247,37 @@ export const zLocationCount = z.object({
1381
1247
  .max(BigInt('9223372036854775807'), {
1382
1248
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1383
1249
  })),
1250
+ value: z.optional(z.number()),
1251
+ commission: z.optional(z.number()),
1384
1252
  });
1385
- export const zSlice = z.object({
1386
- key: z.string(),
1387
- count: z.coerce
1388
- .bigint()
1389
- .min(BigInt('-9223372036854775808'), {
1390
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1391
- })
1392
- .max(BigInt('9223372036854775807'), {
1393
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1394
- }),
1395
- });
1396
- export const zDealTypePrice = z.object({
1397
- listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
1398
- buckets: z.optional(z.array(zSlice)),
1399
- });
1400
- export const zSupplyStats = z.object({
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()),
1253
+ export const zPipelineCommissionResponse = z.object({
1254
+ from: z.optional(z.iso.date()),
1255
+ to: z.optional(z.iso.date()),
1256
+ won: z.optional(zBucket),
1257
+ lost: z.optional(zBucket),
1258
+ pending: z.optional(zBucket),
1259
+ total: z.optional(zBucket),
1457
1260
  });
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
1261
+ export const zChannelSeries = z.object({
1262
+ channel: z.optional(z.enum([
1263
+ 'MY_HOME',
1264
+ 'SS',
1265
+ 'HOME_SPOT',
1266
+ 'AGENCY_MEMBER',
1267
+ 'FACEBOOK',
1268
+ 'INSTAGRAM',
1269
+ 'WHATSAPP',
1270
+ 'UNKNOWN',
1271
+ ])),
1272
+ points: z.optional(z.array(z.coerce
1471
1273
  .bigint()
1472
1274
  .min(BigInt('-9223372036854775808'), {
1473
1275
  error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1474
1276
  })
1475
1277
  .max(BigInt('9223372036854775807'), {
1476
1278
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1477
- }),
1478
- expiringPlatformListings: z.array(zExpiringPlatformListing),
1479
- });
1480
- export const zStatsEnvelopePortfolioStats = z.object({
1481
- period: z.string(),
1482
- computedAt: z.iso.datetime(),
1483
- data: zPortfolioStats,
1484
- });
1485
- export const zTrendPoint = z.object({
1486
- date: z.optional(z.iso.date()),
1487
- count: z.optional(z.coerce
1279
+ }))),
1280
+ total: z.optional(z.coerce
1488
1281
  .bigint()
1489
1282
  .min(BigInt('-9223372036854775808'), {
1490
1283
  error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
@@ -1493,160 +1286,13 @@ export const zTrendPoint = z.object({
1493
1286
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1494
1287
  })),
1495
1288
  });
1496
- export const zPipelineStats = z.object({
1497
- total: z.coerce
1498
- .bigint()
1499
- .min(BigInt('-9223372036854775808'), {
1500
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1501
- })
1502
- .max(BigInt('9223372036854775807'), {
1503
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1504
- }),
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
- });
1587
- export const zInboxStats = z.object({
1588
- openConversations: z.coerce
1589
- .bigint()
1590
- .min(BigInt('-9223372036854775808'), {
1591
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1592
- })
1593
- .max(BigInt('9223372036854775807'), {
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
1630
- .bigint()
1631
- .min(BigInt('-9223372036854775808'), {
1632
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1633
- })
1634
- .max(BigInt('9223372036854775807'), {
1635
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1636
- }),
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
1289
+ export const zContactAcquisitionResponse = z.object({
1290
+ from: z.optional(z.iso.date()),
1291
+ to: z.optional(z.iso.date()),
1292
+ granularity: z.optional(z.enum(['DAY', 'WEEK', 'MONTH'])),
1293
+ buckets: z.optional(z.array(z.iso.date())),
1294
+ series: z.optional(z.array(zChannelSeries)),
1295
+ total: z.optional(z.coerce
1650
1296
  .bigint()
1651
1297
  .min(BigInt('-9223372036854775808'), {
1652
1298
  error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
@@ -1654,15 +1300,6 @@ export const zDemandStats = z.object({
1654
1300
  .max(BigInt('9223372036854775807'), {
1655
1301
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1656
1302
  })),
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
1303
  });
1667
1304
  export const zPageMetadata = z.object({
1668
1305
  size: z.optional(z.coerce
@@ -5286,118 +4923,33 @@ export const zGetTaskBoardByBoardIdCardsData = z.object({
5286
4923
  * OK
5287
4924
  */
5288
4925
  export const zGetTaskBoardByBoardIdCardsResponse = zStageCardsResponse;
5289
- export const zGetStatisticsWinRateData = z.object({
4926
+ export const zGetStatsPipelineCommissionData = z.object({
5290
4927
  body: z.optional(z.never()),
5291
4928
  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({
5321
- body: z.optional(z.never()),
5322
- path: z.optional(z.never()),
5323
- query: z.optional(z.never()),
5324
- });
5325
- /**
5326
- * OK
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
- })),
5365
- });
5366
- /**
5367
- * OK
5368
- */
5369
- export const zGetStatisticsPipelineResponse = zStatsEnvelopePipelineStats;
5370
- export const zGetStatisticsLeaderboardData = z.object({
5371
- body: z.optional(z.never()),
5372
- path: z.optional(z.never()),
5373
- query: z.optional(z.object({
5374
- period: z.optional(z.string()).default('30d'),
5375
- })),
5376
- });
5377
- /**
5378
- * OK
5379
- */
5380
- export const zGetStatisticsLeaderboardResponse = zStatsEnvelopeLeaderboardStats;
5381
- export const zGetStatisticsInboxData = z.object({
5382
- body: z.optional(z.never()),
5383
- path: z.optional(z.never()),
5384
- query: z.optional(z.object({
5385
- period: z.optional(z.string()).default('30d'),
5386
- })),
4929
+ query: z.object({
4930
+ from: z.iso.date(),
4931
+ to: z.iso.date(),
4932
+ memberId: z.optional(z.uuid()),
4933
+ }),
5387
4934
  });
5388
4935
  /**
5389
4936
  * OK
5390
4937
  */
5391
- export const zGetStatisticsInboxResponse = zStatsEnvelopeInboxStats;
5392
- export const zGetStatisticsDemandData = z.object({
4938
+ export const zGetStatsPipelineCommissionResponse = zPipelineCommissionResponse;
4939
+ export const zGetStatsContactsAcquisitionData = z.object({
5393
4940
  body: z.optional(z.never()),
5394
4941
  path: z.optional(z.never()),
5395
- query: z.optional(z.never()),
4942
+ query: z.object({
4943
+ from: z.iso.date(),
4944
+ to: z.iso.date(),
4945
+ granularity: z.optional(z.enum(['DAY', 'WEEK', 'MONTH'])),
4946
+ memberId: z.optional(z.uuid()),
4947
+ }),
5396
4948
  });
5397
4949
  /**
5398
4950
  * OK
5399
4951
  */
5400
- export const zGetStatisticsDemandResponse = zStatsEnvelopeDemandStats;
4952
+ export const zGetStatsContactsAcquisitionResponse = zContactAcquisitionResponse;
5401
4953
  export const zGetPublicRecomendationsByTokenItemsData = z.object({
5402
4954
  body: z.optional(z.never()),
5403
4955
  path: z.object({