@homespot-sdk/core 0.0.328 → 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.
@@ -249,6 +249,18 @@ export const zUpdateContactDetailsRequest = z.object({
249
249
  ])),
250
250
  priority: z.optional(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'])),
251
251
  });
252
+ export const zReopenRequest = z.object({
253
+ status: z.optional(z.enum([
254
+ 'NEW',
255
+ 'ON_HOLD',
256
+ 'COLD',
257
+ 'WARM',
258
+ 'HOT',
259
+ 'WAITING_PAYMENT',
260
+ 'LOST',
261
+ 'WON',
262
+ ])),
263
+ });
252
264
  export const zRecordLostContactRequest = z.object({
253
265
  reason: z.enum([
254
266
  'NOT_WORKING_WITH_AGENTS',
@@ -1618,6 +1630,40 @@ export const zNewMessage = z.object({
1618
1630
  kind: z.enum(['NEW_MESSAGE']),
1619
1631
  });
1620
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
+ });
1621
1667
  export const zNotificationView = z.object({
1622
1668
  id: z.uuid(),
1623
1669
  seq: z.coerce
@@ -1628,9 +1674,20 @@ export const zNotificationView = z.object({
1628
1674
  .max(BigInt('9223372036854775807'), {
1629
1675
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1630
1676
  }),
1631
- 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
+ ]),
1632
1684
  targetId: z.optional(z.string()),
1633
- payload: z.union([zContactAssigned, zNewMessage]),
1685
+ payload: z.union([
1686
+ zContactAssigned,
1687
+ zListingExpired,
1688
+ zNewMessage,
1689
+ zNewSeekerRating,
1690
+ ]),
1634
1691
  createdAt: z.iso.datetime(),
1635
1692
  read: z.boolean(),
1636
1693
  });
@@ -1746,16 +1803,6 @@ export const zAttendeeView = z.object({
1746
1803
  email: z.optional(z.string()),
1747
1804
  displayName: z.optional(z.string()),
1748
1805
  });
1749
- export const zPropertyId = z.object({
1750
- value: z.optional(z.coerce
1751
- .bigint()
1752
- .min(BigInt('-9223372036854775808'), {
1753
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1754
- })
1755
- .max(BigInt('9223372036854775807'), {
1756
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1757
- })),
1758
- });
1759
1806
  export const zMeetingDetailView = z.object({
1760
1807
  meetingId: z.uuid(),
1761
1808
  agencyId: z.uuid(),
@@ -2026,7 +2073,7 @@ export const zCommentView = z.object({
2026
2073
  authorId: z.uuid(),
2027
2074
  authorFirstName: z.string(),
2028
2075
  authorLastName: z.string(),
2029
- sentByPicture: z.optional(z.string()),
2076
+ profilePictureUrl: z.optional(z.string()),
2030
2077
  body: z.string(),
2031
2078
  createdAt: z.iso.datetime(),
2032
2079
  editedAt: z.optional(z.iso.datetime()),
@@ -2354,11 +2401,13 @@ export const zCard = z.object({
2354
2401
  ]),
2355
2402
  assignedTo: z.optional(zAssignedToResponse),
2356
2403
  totalCommission: z.number(),
2404
+ updatedAt: z.iso.datetime(),
2357
2405
  preview: z.optional(z.union([zInterestPreview, zPropertyPreview])),
2358
2406
  });
2359
- export const zPagedModelCard = z.object({
2360
- content: z.optional(z.array(zCard)),
2361
- 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()),
2362
2411
  });
2363
2412
  export const zColumn = z.object({
2364
2413
  status: z.enum([
@@ -2380,7 +2429,7 @@ export const zColumn = z.object({
2380
2429
  .max(BigInt('9223372036854775807'), {
2381
2430
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2382
2431
  }),
2383
- cards: zPagedModelCard,
2432
+ cards: zCursorPageCard,
2384
2433
  });
2385
2434
  export const zContactKanbanResponse = z.object({
2386
2435
  columns: z.array(zColumn),
@@ -3013,7 +3062,7 @@ export const zPutContactByContactIdUpdateContactDetailsData = z.object({
3013
3062
  */
3014
3063
  export const zPutContactByContactIdUpdateContactDetailsResponse = z.void();
3015
3064
  export const zPutContactByContactIdReopenData = z.object({
3016
- body: z.optional(z.never()),
3065
+ body: zReopenRequest,
3017
3066
  path: z.object({
3018
3067
  contactId: z.coerce
3019
3068
  .bigint()
@@ -5295,15 +5344,23 @@ export const zGetContactBoardByStatusCardsData = z.object({
5295
5344
  .max(2147483647, {
5296
5345
  error: 'Invalid value: Expected int32 to be <= 2147483647',
5297
5346
  })),
5298
- page: z.optional(z.int().gte(0)).default(0),
5299
- size: z.optional(z.int().gte(1)).default(20),
5300
- 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),
5301
5358
  })),
5302
5359
  });
5303
5360
  /**
5304
5361
  * OK
5305
5362
  */
5306
- export const zGetContactBoardByStatusCardsResponse = zPagedModelCard;
5363
+ export const zGetContactBoardByStatusCardsResponse = zCursorPageCard;
5307
5364
  export const zGetAgencyByAgencyIdOwnerData = z.object({
5308
5365
  body: z.optional(z.never()),
5309
5366
  path: z.object({