@homespot-sdk/core 0.0.329 → 0.0.330

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.
@@ -1630,6 +1630,40 @@ export const zNewMessage = z.object({
1630
1630
  kind: z.enum(['NEW_MESSAGE']),
1631
1631
  });
1632
1632
  export const zNotificationContent = z.unknown();
1633
+ export const zPropertyId = z.object({
1634
+ value: z.optional(z.coerce
1635
+ .bigint()
1636
+ .min(BigInt('-9223372036854775808'), {
1637
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1638
+ })
1639
+ .max(BigInt('9223372036854775807'), {
1640
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1641
+ })),
1642
+ });
1643
+ export const zListingExpired = z.object({
1644
+ contactId: z.optional(zContactId),
1645
+ propertyId: z.optional(zPropertyId),
1646
+ listingId: z.optional(z.coerce
1647
+ .bigint()
1648
+ .min(BigInt('-9223372036854775808'), {
1649
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1650
+ })
1651
+ .max(BigInt('9223372036854775807'), {
1652
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1653
+ })),
1654
+ propertyTitle: z.optional(z.string()),
1655
+ kind: z.enum(['LISTING_EXPIRED']),
1656
+ });
1657
+ export const zNewSeekerRating = z.object({
1658
+ id: z.optional(zInterestId),
1659
+ contactId: z.optional(zContactId),
1660
+ contactName: z.optional(z.string()),
1661
+ propertyId: z.optional(zPropertyId),
1662
+ propertyTitle: z.optional(z.string()),
1663
+ decision: z.optional(z.enum(['MAYBE', 'DISLIKE', 'LIKE'])),
1664
+ notePreview: z.optional(z.string()),
1665
+ kind: z.enum(['NEW_SEEKER_RATING']),
1666
+ });
1633
1667
  export const zNotificationView = z.object({
1634
1668
  id: z.uuid(),
1635
1669
  seq: z.coerce
@@ -1640,9 +1674,20 @@ export const zNotificationView = z.object({
1640
1674
  .max(BigInt('9223372036854775807'), {
1641
1675
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1642
1676
  }),
1643
- type: z.enum(['NEW_MESSAGE', 'CONTACT_ASSIGNED']),
1677
+ type: z.enum([
1678
+ 'EXTERNAL_LISTING_EXPIRED',
1679
+ 'LISTING_EXPIRED',
1680
+ 'NEW_SEEKER_RATING',
1681
+ 'NEW_MESSAGE',
1682
+ 'CONTACT_ASSIGNED',
1683
+ ]),
1644
1684
  targetId: z.optional(z.string()),
1645
- payload: z.union([zContactAssigned, zNewMessage]),
1685
+ payload: z.union([
1686
+ zContactAssigned,
1687
+ zListingExpired,
1688
+ zNewMessage,
1689
+ zNewSeekerRating,
1690
+ ]),
1646
1691
  createdAt: z.iso.datetime(),
1647
1692
  read: z.boolean(),
1648
1693
  });
@@ -1758,16 +1803,6 @@ export const zAttendeeView = z.object({
1758
1803
  email: z.optional(z.string()),
1759
1804
  displayName: z.optional(z.string()),
1760
1805
  });
1761
- export const zPropertyId = z.object({
1762
- value: z.optional(z.coerce
1763
- .bigint()
1764
- .min(BigInt('-9223372036854775808'), {
1765
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1766
- })
1767
- .max(BigInt('9223372036854775807'), {
1768
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1769
- })),
1770
- });
1771
1806
  export const zMeetingDetailView = z.object({
1772
1807
  meetingId: z.uuid(),
1773
1808
  agencyId: z.uuid(),
@@ -2038,7 +2073,7 @@ export const zCommentView = z.object({
2038
2073
  authorId: z.uuid(),
2039
2074
  authorFirstName: z.string(),
2040
2075
  authorLastName: z.string(),
2041
- sentByPicture: z.optional(z.string()),
2076
+ profilePictureUrl: z.optional(z.string()),
2042
2077
  body: z.string(),
2043
2078
  createdAt: z.iso.datetime(),
2044
2079
  editedAt: z.optional(z.iso.datetime()),
@@ -2366,11 +2401,13 @@ export const zCard = z.object({
2366
2401
  ]),
2367
2402
  assignedTo: z.optional(zAssignedToResponse),
2368
2403
  totalCommission: z.number(),
2404
+ updatedAt: z.iso.datetime(),
2369
2405
  preview: z.optional(z.union([zInterestPreview, zPropertyPreview])),
2370
2406
  });
2371
- export const zPagedModelCard = z.object({
2372
- content: z.optional(z.array(zCard)),
2373
- page: z.optional(zPageMetadata),
2407
+ export const zCursorPageCard = z.object({
2408
+ items: z.optional(z.array(zCard)),
2409
+ nextCursor: z.optional(z.string()),
2410
+ hasNext: z.optional(z.boolean()),
2374
2411
  });
2375
2412
  export const zColumn = z.object({
2376
2413
  status: z.enum([
@@ -2392,7 +2429,7 @@ export const zColumn = z.object({
2392
2429
  .max(BigInt('9223372036854775807'), {
2393
2430
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2394
2431
  }),
2395
- cards: zPagedModelCard,
2432
+ cards: zCursorPageCard,
2396
2433
  });
2397
2434
  export const zContactKanbanResponse = z.object({
2398
2435
  columns: z.array(zColumn),
@@ -5307,15 +5344,23 @@ export const zGetContactBoardByStatusCardsData = z.object({
5307
5344
  .max(2147483647, {
5308
5345
  error: 'Invalid value: Expected int32 to be <= 2147483647',
5309
5346
  })),
5310
- page: z.optional(z.int().gte(0)).default(0),
5311
- size: z.optional(z.int().gte(1)).default(20),
5312
- sort: z.optional(z.array(z.string())),
5347
+ cursor: z.optional(z.string()),
5348
+ limit: z
5349
+ .optional(z
5350
+ .int()
5351
+ .min(-2147483648, {
5352
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5353
+ })
5354
+ .max(2147483647, {
5355
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5356
+ }))
5357
+ .default(20),
5313
5358
  })),
5314
5359
  });
5315
5360
  /**
5316
5361
  * OK
5317
5362
  */
5318
- export const zGetContactBoardByStatusCardsResponse = zPagedModelCard;
5363
+ export const zGetContactBoardByStatusCardsResponse = zCursorPageCard;
5319
5364
  export const zGetAgencyByAgencyIdOwnerData = z.object({
5320
5365
  body: z.optional(z.never()),
5321
5366
  path: z.object({