@homespot-sdk/core 0.0.358 → 0.0.360
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/property/index.d.ts +2 -2
- package/dist/property/index.d.ts.map +1 -1
- package/dist/property/index.js +1 -1
- package/dist/property/index.js.map +1 -1
- package/dist/property/schemas.gen.d.ts +92 -0
- package/dist/property/schemas.gen.d.ts.map +1 -1
- package/dist/property/schemas.gen.js +99 -0
- package/dist/property/schemas.gen.js.map +1 -1
- package/dist/property/sdk.gen.d.ts +6 -2
- package/dist/property/sdk.gen.d.ts.map +1 -1
- package/dist/property/sdk.gen.js +34 -2
- package/dist/property/sdk.gen.js.map +1 -1
- package/dist/property/transformers.gen.d.ts +5 -1
- package/dist/property/transformers.gen.d.ts.map +1 -1
- package/dist/property/transformers.gen.js +40 -0
- package/dist/property/transformers.gen.js.map +1 -1
- package/dist/property/types.gen.d.ts +86 -0
- package/dist/property/types.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.d.ts +271 -6
- package/dist/property/zod.gen.d.ts.map +1 -1
- package/dist/property/zod.gen.js +98 -0
- package/dist/property/zod.gen.js.map +1 -1
- 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 +758 -141
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +829 -127
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +8 -2
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +45 -2
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +6 -1
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +56 -0
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +387 -45
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +2093 -270
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +577 -47
- package/dist/rem/zod.gen.js.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/schemas.gen.d.ts +72 -0
- package/dist/utils/schemas.gen.d.ts.map +1 -1
- package/dist/utils/schemas.gen.js +72 -0
- package/dist/utils/schemas.gen.js.map +1 -1
- package/dist/utils/sdk.gen.d.ts +10 -1
- package/dist/utils/sdk.gen.d.ts.map +1 -1
- package/dist/utils/sdk.gen.js +9 -0
- package/dist/utils/sdk.gen.js.map +1 -1
- package/dist/utils/types.gen.d.ts +73 -0
- package/dist/utils/types.gen.d.ts.map +1 -1
- package/dist/utils/zod.gen.d.ts +157 -0
- package/dist/utils/zod.gen.d.ts.map +1 -1
- package/dist/utils/zod.gen.js +122 -0
- package/dist/utils/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/zod.gen.js
CHANGED
|
@@ -64,7 +64,7 @@ export const zUpdateEmailRequest = z.object({
|
|
|
64
64
|
email: z.email().min(1),
|
|
65
65
|
});
|
|
66
66
|
export const zCommentBodyRequest = z.object({
|
|
67
|
-
body: z.string().min(0).max(
|
|
67
|
+
body: z.string().min(0).max(6300),
|
|
68
68
|
});
|
|
69
69
|
export const zSetTaskValueRequest = z.object({
|
|
70
70
|
value: z.optional(z.number()),
|
|
@@ -488,6 +488,11 @@ export const zOauthConnectionResponse = z.object({
|
|
|
488
488
|
createdAt: z.iso.datetime(),
|
|
489
489
|
updatedAt: z.iso.datetime(),
|
|
490
490
|
revokedAt: z.optional(z.iso.datetime()),
|
|
491
|
+
canPublish: z.boolean(),
|
|
492
|
+
canReadComments: z.boolean(),
|
|
493
|
+
canReply: z.boolean(),
|
|
494
|
+
canReadStats: z.boolean(),
|
|
495
|
+
reconnectRequired: z.boolean(),
|
|
491
496
|
});
|
|
492
497
|
export const zAttendeeRequest = z.object({
|
|
493
498
|
role: z.enum(['ORGANIZER', 'MEMBER', 'OWNER', 'CLIENT', 'OTHER']),
|
|
@@ -644,6 +649,68 @@ export const zRegistrationProgressResponse = z.object({
|
|
|
644
649
|
export const zAddDealRequest = z.object({
|
|
645
650
|
type: z.string(),
|
|
646
651
|
});
|
|
652
|
+
export const zFocusRequest = z.object({
|
|
653
|
+
x: z.number(),
|
|
654
|
+
y: z.number(),
|
|
655
|
+
});
|
|
656
|
+
export const zPhoto = z.object({
|
|
657
|
+
photoId: z.coerce
|
|
658
|
+
.bigint()
|
|
659
|
+
.min(BigInt('-9223372036854775808'), {
|
|
660
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
661
|
+
})
|
|
662
|
+
.max(BigInt('9223372036854775807'), {
|
|
663
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
664
|
+
}),
|
|
665
|
+
mode: z.optional(z.enum(['AUTO', 'CROP', 'FIT'])),
|
|
666
|
+
focus: z.optional(zFocusRequest),
|
|
667
|
+
});
|
|
668
|
+
export const zPublishSocialPostRequest = z.object({
|
|
669
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
670
|
+
caption: z.string(),
|
|
671
|
+
ratio: z.optional(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
|
|
672
|
+
photos: z.array(zPhoto),
|
|
673
|
+
templateId: z.optional(z.uuid()),
|
|
674
|
+
});
|
|
675
|
+
export const zFocusView = z.object({
|
|
676
|
+
x: z.number(),
|
|
677
|
+
y: z.number(),
|
|
678
|
+
});
|
|
679
|
+
export const zPhotoView = z.object({
|
|
680
|
+
photoId: z.coerce
|
|
681
|
+
.bigint()
|
|
682
|
+
.min(BigInt('-9223372036854775808'), {
|
|
683
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
684
|
+
})
|
|
685
|
+
.max(BigInt('9223372036854775807'), {
|
|
686
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
687
|
+
}),
|
|
688
|
+
mode: z.enum(['AUTO', 'CROP', 'FIT']),
|
|
689
|
+
focus: zFocusView,
|
|
690
|
+
});
|
|
691
|
+
export const zSocialPostView = z.object({
|
|
692
|
+
id: z.uuid(),
|
|
693
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
694
|
+
status: z.enum(['PUBLISHING', 'PUBLISHED', 'FAILED', 'REMOVED']),
|
|
695
|
+
caption: z.string(),
|
|
696
|
+
ratio: z.optional(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
|
|
697
|
+
photos: z.array(zPhotoView),
|
|
698
|
+
templateId: z.optional(z.uuid()),
|
|
699
|
+
failureReason: z.optional(z.enum([
|
|
700
|
+
'RECONNECT_REQUIRED',
|
|
701
|
+
'PERMISSION_MISSING',
|
|
702
|
+
'PAGE_PUBLISHING_AUTHORIZATION',
|
|
703
|
+
'RATE_LIMITED',
|
|
704
|
+
'BAD_MEDIA',
|
|
705
|
+
'UNCONFIRMED',
|
|
706
|
+
'UNKNOWN',
|
|
707
|
+
])),
|
|
708
|
+
failureDetail: z.optional(z.string()),
|
|
709
|
+
permalink: z.optional(z.string()),
|
|
710
|
+
publishedAt: z.optional(z.iso.datetime()),
|
|
711
|
+
createdBy: z.uuid(),
|
|
712
|
+
createdAt: z.iso.datetime(),
|
|
713
|
+
});
|
|
647
714
|
export const zCloseListingRequest = z.object({
|
|
648
715
|
withdrawExternal: z.optional(z.boolean()),
|
|
649
716
|
});
|
|
@@ -683,6 +750,17 @@ export const zIdResponseLong = z.object({
|
|
|
683
750
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
684
751
|
}),
|
|
685
752
|
});
|
|
753
|
+
export const zExternalListingWithdrawRequest = z.object({
|
|
754
|
+
platform: z.enum(['SS', 'MY_HOME']),
|
|
755
|
+
listingId: z.coerce
|
|
756
|
+
.bigint()
|
|
757
|
+
.min(BigInt('-9223372036854775808'), {
|
|
758
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
759
|
+
})
|
|
760
|
+
.max(BigInt('9223372036854775807'), {
|
|
761
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
762
|
+
}),
|
|
763
|
+
});
|
|
686
764
|
export const zExternalListingPublishRequest = z.object({
|
|
687
765
|
platform: z.enum(['SS', 'MY_HOME']),
|
|
688
766
|
listingId: z.coerce
|
|
@@ -838,30 +916,6 @@ export const zUserContextViewResponse = z.object({
|
|
|
838
916
|
user: zUserSummaryViewResponse,
|
|
839
917
|
organizations: z.array(zOrganizationSummaryViewResponse),
|
|
840
918
|
});
|
|
841
|
-
export const zCommentView = z.object({
|
|
842
|
-
id: z.uuid(),
|
|
843
|
-
contactId: z.optional(z.coerce
|
|
844
|
-
.bigint()
|
|
845
|
-
.min(BigInt('-9223372036854775808'), {
|
|
846
|
-
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
847
|
-
})
|
|
848
|
-
.max(BigInt('9223372036854775807'), {
|
|
849
|
-
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
850
|
-
})),
|
|
851
|
-
taskId: z.optional(z.uuid()),
|
|
852
|
-
authorId: z.uuid(),
|
|
853
|
-
authorFirstName: z.string(),
|
|
854
|
-
authorLastName: z.string(),
|
|
855
|
-
profilePictureUrl: z.optional(z.string()),
|
|
856
|
-
body: z.string(),
|
|
857
|
-
createdAt: z.iso.datetime(),
|
|
858
|
-
editedAt: z.optional(z.iso.datetime()),
|
|
859
|
-
});
|
|
860
|
-
export const zCursorPageCommentView = z.object({
|
|
861
|
-
items: z.optional(z.array(zCommentView)),
|
|
862
|
-
nextCursor: z.optional(z.string()),
|
|
863
|
-
hasNext: z.optional(z.boolean()),
|
|
864
|
-
});
|
|
865
919
|
export const zContactPersonalDetails = z.unknown();
|
|
866
920
|
export const zContactPersonalDetailsRestricted = z.object({
|
|
867
921
|
requires: z.optional(z.array(z.enum([
|
|
@@ -886,6 +940,55 @@ export const zContactPersonalDetailsVisible = z.object({
|
|
|
886
940
|
email: z.optional(z.string()),
|
|
887
941
|
status: z.enum(['VISIBLE']),
|
|
888
942
|
});
|
|
943
|
+
export const zContactMentionView = z.object({
|
|
944
|
+
contactId: z.coerce
|
|
945
|
+
.bigint()
|
|
946
|
+
.min(BigInt('-9223372036854775808'), {
|
|
947
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
948
|
+
})
|
|
949
|
+
.max(BigInt('9223372036854775807'), {
|
|
950
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
951
|
+
}),
|
|
952
|
+
personalDetails: z.union([
|
|
953
|
+
zContactPersonalDetailsRestricted,
|
|
954
|
+
zContactPersonalDetailsVisible,
|
|
955
|
+
]),
|
|
956
|
+
contactAssignedTo: z.optional(z.uuid()),
|
|
957
|
+
});
|
|
958
|
+
export const zMemberPeekResponse = z.object({
|
|
959
|
+
memberId: z.uuid(),
|
|
960
|
+
firstName: z.string(),
|
|
961
|
+
lastName: z.string(),
|
|
962
|
+
photo: z.optional(z.string()),
|
|
963
|
+
phone: z.optional(z.string()),
|
|
964
|
+
email: z.string(),
|
|
965
|
+
});
|
|
966
|
+
export const zCommentView = z.object({
|
|
967
|
+
id: z.uuid(),
|
|
968
|
+
contactId: z.optional(z.coerce
|
|
969
|
+
.bigint()
|
|
970
|
+
.min(BigInt('-9223372036854775808'), {
|
|
971
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
972
|
+
})
|
|
973
|
+
.max(BigInt('9223372036854775807'), {
|
|
974
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
975
|
+
})),
|
|
976
|
+
taskId: z.optional(z.uuid()),
|
|
977
|
+
authorId: z.uuid(),
|
|
978
|
+
authorFirstName: z.string(),
|
|
979
|
+
authorLastName: z.string(),
|
|
980
|
+
profilePictureUrl: z.optional(z.string()),
|
|
981
|
+
body: z.string(),
|
|
982
|
+
mentionedMembers: z.array(zMemberPeekResponse),
|
|
983
|
+
mentionedContacts: z.array(zContactMentionView),
|
|
984
|
+
createdAt: z.iso.datetime(),
|
|
985
|
+
editedAt: z.optional(z.iso.datetime()),
|
|
986
|
+
});
|
|
987
|
+
export const zCursorPageCommentView = z.object({
|
|
988
|
+
items: z.optional(z.array(zCommentView)),
|
|
989
|
+
nextCursor: z.optional(z.string()),
|
|
990
|
+
hasNext: z.optional(z.boolean()),
|
|
991
|
+
});
|
|
889
992
|
export const zContactLink = z.object({
|
|
890
993
|
contactId: z.coerce
|
|
891
994
|
.bigint()
|
|
@@ -965,14 +1068,6 @@ export const zLocationResponse = z.object({
|
|
|
965
1068
|
}),
|
|
966
1069
|
names: z.array(zLangTextResponse),
|
|
967
1070
|
});
|
|
968
|
-
export const zMemberPeekResponse = z.object({
|
|
969
|
-
memberId: z.uuid(),
|
|
970
|
-
firstName: z.string(),
|
|
971
|
-
lastName: z.string(),
|
|
972
|
-
photo: z.optional(z.string()),
|
|
973
|
-
phone: z.optional(z.string()),
|
|
974
|
-
email: z.string(),
|
|
975
|
-
});
|
|
976
1071
|
export const zParticipant = z.object({
|
|
977
1072
|
memberId: z.uuid(),
|
|
978
1073
|
firstName: z.string(),
|
|
@@ -1100,17 +1195,6 @@ export const zTaskDetailResponse = z.object({
|
|
|
1100
1195
|
todoGroups: z.array(zTodoGroup),
|
|
1101
1196
|
timeline: z.array(zTimelineEntry),
|
|
1102
1197
|
});
|
|
1103
|
-
export const zContactTaskResponse = z.object({
|
|
1104
|
-
taskId: z.uuid(),
|
|
1105
|
-
title: z.string(),
|
|
1106
|
-
boardId: z.uuid(),
|
|
1107
|
-
boardName: z.string(),
|
|
1108
|
-
stageId: z.uuid(),
|
|
1109
|
-
stageName: z.string(),
|
|
1110
|
-
outcome: z.optional(z.enum(['WON', 'LOST'])),
|
|
1111
|
-
value: z.optional(z.number()),
|
|
1112
|
-
primary: z.boolean(),
|
|
1113
|
-
});
|
|
1114
1198
|
export const zTaskContent = z.object({
|
|
1115
1199
|
type: z.string(),
|
|
1116
1200
|
});
|
|
@@ -1162,6 +1246,98 @@ export const zTaskContentProperty = zTaskContent.and(z.object({
|
|
|
1162
1246
|
title: z.optional(z.string()),
|
|
1163
1247
|
type: z.literal('PROPERTY'),
|
|
1164
1248
|
}));
|
|
1249
|
+
export const zContactTaskCardResponse = z.object({
|
|
1250
|
+
taskId: z.uuid(),
|
|
1251
|
+
stageId: z.uuid(),
|
|
1252
|
+
stageName: z.string(),
|
|
1253
|
+
title: z.string(),
|
|
1254
|
+
hasDescription: z.boolean(),
|
|
1255
|
+
commentCount: z
|
|
1256
|
+
.int()
|
|
1257
|
+
.min(-2147483648, {
|
|
1258
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1259
|
+
})
|
|
1260
|
+
.max(2147483647, {
|
|
1261
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1262
|
+
}),
|
|
1263
|
+
contactCount: z
|
|
1264
|
+
.int()
|
|
1265
|
+
.min(-2147483648, {
|
|
1266
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1267
|
+
})
|
|
1268
|
+
.max(2147483647, {
|
|
1269
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1270
|
+
}),
|
|
1271
|
+
priority: z.enum(['LOW', 'MEDIUM', 'HIGH', 'CRITICAL']),
|
|
1272
|
+
value: z.optional(z.number()),
|
|
1273
|
+
commissionType: z.optional(z.enum(['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'])),
|
|
1274
|
+
commissionValue: z.optional(z.number()),
|
|
1275
|
+
ownerId: z.optional(z.uuid()),
|
|
1276
|
+
primaryContactId: z.optional(z.coerce
|
|
1277
|
+
.bigint()
|
|
1278
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1279
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1280
|
+
})
|
|
1281
|
+
.max(BigInt('9223372036854775807'), {
|
|
1282
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1283
|
+
})),
|
|
1284
|
+
primaryContact: z.optional(z.union([
|
|
1285
|
+
zContactPersonalDetailsRestricted,
|
|
1286
|
+
zContactPersonalDetailsVisible,
|
|
1287
|
+
])),
|
|
1288
|
+
contactAssignedTo: z.optional(z.uuid()),
|
|
1289
|
+
primaryContent: z.optional(z.union([zTaskContentInterest, zTaskContentProperty])),
|
|
1290
|
+
participants: z.array(z.uuid()),
|
|
1291
|
+
rank: z.string(),
|
|
1292
|
+
stageEnteredAt: z.iso.datetime(),
|
|
1293
|
+
daysInStage: z.coerce
|
|
1294
|
+
.bigint()
|
|
1295
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1296
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1297
|
+
})
|
|
1298
|
+
.max(BigInt('9223372036854775807'), {
|
|
1299
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1300
|
+
}),
|
|
1301
|
+
openTodos: z.coerce
|
|
1302
|
+
.bigint()
|
|
1303
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1304
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1305
|
+
})
|
|
1306
|
+
.max(BigInt('9223372036854775807'), {
|
|
1307
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1308
|
+
}),
|
|
1309
|
+
totalTodos: z.coerce
|
|
1310
|
+
.bigint()
|
|
1311
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1312
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1313
|
+
})
|
|
1314
|
+
.max(BigInt('9223372036854775807'), {
|
|
1315
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1316
|
+
}),
|
|
1317
|
+
hasLeftoverOpenTodos: z.boolean(),
|
|
1318
|
+
expectedCloseDate: z.optional(z.iso.date()),
|
|
1319
|
+
outcome: z.optional(z.enum(['WON', 'LOST'])),
|
|
1320
|
+
lostReason: z.optional(z.enum([
|
|
1321
|
+
'NOT_WORKING_WITH_AGENTS',
|
|
1322
|
+
'NOT_RESPONDING',
|
|
1323
|
+
'ALREADY_SOLD',
|
|
1324
|
+
'COULD_NOT_NEGOTIATE_PRICE',
|
|
1325
|
+
'CHOSE_ANOTHER_AGENCY',
|
|
1326
|
+
'CHANGED_PLANS',
|
|
1327
|
+
'OUT_OF_BUDGET',
|
|
1328
|
+
'SPAM',
|
|
1329
|
+
'OTHER',
|
|
1330
|
+
])),
|
|
1331
|
+
closedAt: z.optional(z.iso.datetime()),
|
|
1332
|
+
boardId: z.uuid(),
|
|
1333
|
+
boardName: z.string(),
|
|
1334
|
+
stageColor: z.string(),
|
|
1335
|
+
primary: z.boolean(),
|
|
1336
|
+
});
|
|
1337
|
+
export const zContactTasksResponse = z.object({
|
|
1338
|
+
members: z.array(zMemberPeekResponse),
|
|
1339
|
+
items: z.array(zContactTaskCardResponse),
|
|
1340
|
+
});
|
|
1165
1341
|
export const zTaskCardResponse = z.object({
|
|
1166
1342
|
taskId: z.uuid(),
|
|
1167
1343
|
stageId: z.uuid(),
|
|
@@ -2019,10 +2195,18 @@ export const zPlatformListingResponse = z.object({
|
|
|
2019
2195
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2020
2196
|
})),
|
|
2021
2197
|
platformType: z.enum(['SS', 'MY_HOME']),
|
|
2022
|
-
status: z.enum([
|
|
2198
|
+
status: z.enum([
|
|
2199
|
+
'PENDING',
|
|
2200
|
+
'SYNDICATED',
|
|
2201
|
+
'FAILED',
|
|
2202
|
+
'EXPIRED',
|
|
2203
|
+
'WITHDRAWING',
|
|
2204
|
+
'WITHDRAWN',
|
|
2205
|
+
]),
|
|
2023
2206
|
listedAt: z.optional(z.iso.date()),
|
|
2024
2207
|
expiresAt: z.optional(z.iso.date()),
|
|
2025
2208
|
renewedAt: z.optional(z.iso.date()),
|
|
2209
|
+
failureReason: z.optional(z.string()),
|
|
2026
2210
|
boost: z.optional(zBoostResponse),
|
|
2027
2211
|
coloredListing: z.optional(zColoredListingResponse),
|
|
2028
2212
|
});
|
|
@@ -2051,6 +2235,53 @@ export const zPropertyDetailsResponse = z.object({
|
|
|
2051
2235
|
balconyArea: z.optional(z.number()),
|
|
2052
2236
|
address: zAddressResponse,
|
|
2053
2237
|
});
|
|
2238
|
+
export const zSocialPostStats = z.object({
|
|
2239
|
+
likes: z
|
|
2240
|
+
.int()
|
|
2241
|
+
.min(-2147483648, {
|
|
2242
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2243
|
+
})
|
|
2244
|
+
.max(2147483647, {
|
|
2245
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2246
|
+
}),
|
|
2247
|
+
comments: z
|
|
2248
|
+
.int()
|
|
2249
|
+
.min(-2147483648, {
|
|
2250
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2251
|
+
})
|
|
2252
|
+
.max(2147483647, {
|
|
2253
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2254
|
+
}),
|
|
2255
|
+
shares: z
|
|
2256
|
+
.int()
|
|
2257
|
+
.min(-2147483648, {
|
|
2258
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2259
|
+
})
|
|
2260
|
+
.max(2147483647, {
|
|
2261
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2262
|
+
}),
|
|
2263
|
+
fetchedAt: z.iso.datetime(),
|
|
2264
|
+
});
|
|
2265
|
+
export const zSocialPostResponse = z.object({
|
|
2266
|
+
postId: z.uuid(),
|
|
2267
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
2268
|
+
status: z.enum(['PUBLISHING', 'PUBLISHED', 'FAILED', 'REMOVED']),
|
|
2269
|
+
caption: z.string(),
|
|
2270
|
+
thumbnailUrl: z.optional(z.string()),
|
|
2271
|
+
permalink: z.optional(z.string()),
|
|
2272
|
+
publishedAt: z.optional(z.iso.datetime()),
|
|
2273
|
+
createdBy: zMemberPeekResponse,
|
|
2274
|
+
failureReason: z.optional(z.enum([
|
|
2275
|
+
'RECONNECT_REQUIRED',
|
|
2276
|
+
'PERMISSION_MISSING',
|
|
2277
|
+
'PAGE_PUBLISHING_AUTHORIZATION',
|
|
2278
|
+
'RATE_LIMITED',
|
|
2279
|
+
'BAD_MEDIA',
|
|
2280
|
+
'UNCONFIRMED',
|
|
2281
|
+
'UNKNOWN',
|
|
2282
|
+
])),
|
|
2283
|
+
stats: z.optional(zSocialPostStats),
|
|
2284
|
+
});
|
|
2054
2285
|
export const zPropertyListingResponse = z.object({
|
|
2055
2286
|
publicId: z.coerce
|
|
2056
2287
|
.bigint()
|
|
@@ -2068,6 +2299,7 @@ export const zPropertyListingResponse = z.object({
|
|
|
2068
2299
|
price: z.number(),
|
|
2069
2300
|
deal: z.optional(z.union([zFixed, zMonthsOfRent, zPercentage])),
|
|
2070
2301
|
platformListings: z.array(zPlatformListingResponse),
|
|
2302
|
+
socialPosts: z.array(zSocialPostResponse),
|
|
2071
2303
|
createdAt: z.iso.datetime(),
|
|
2072
2304
|
closedAt: z.optional(z.iso.datetime()),
|
|
2073
2305
|
});
|
|
@@ -2142,6 +2374,15 @@ export const zListingOwnerContactResponse = z.object({
|
|
|
2142
2374
|
export const zCommentId = z.object({
|
|
2143
2375
|
value: z.optional(z.uuid()),
|
|
2144
2376
|
});
|
|
2377
|
+
export const zConnectionId = z.object({
|
|
2378
|
+
value: z.optional(z.uuid()),
|
|
2379
|
+
});
|
|
2380
|
+
export const zChannelReauthRequired = z.object({
|
|
2381
|
+
connectionId: z.optional(zConnectionId),
|
|
2382
|
+
channelType: z.optional(z.enum(['FACEBOOK', 'INSTAGRAM', 'WHATSAPP', 'TIKTOK'])),
|
|
2383
|
+
displayName: z.optional(z.string()),
|
|
2384
|
+
kind: z.enum(['CHANNEL_REAUTH_REQUIRED']),
|
|
2385
|
+
});
|
|
2145
2386
|
export const zContactId = z.object({
|
|
2146
2387
|
value: z.optional(z.coerce
|
|
2147
2388
|
.bigint()
|
|
@@ -2227,6 +2468,34 @@ export const zNewSeekerRating = z.object({
|
|
|
2227
2468
|
notePreview: z.optional(z.string()),
|
|
2228
2469
|
kind: z.enum(['NEW_SEEKER_RATING']),
|
|
2229
2470
|
});
|
|
2471
|
+
export const zSocialPostId = z.object({
|
|
2472
|
+
value: z.optional(z.uuid()),
|
|
2473
|
+
});
|
|
2474
|
+
export const zSocialPostFailed = z.object({
|
|
2475
|
+
postId: z.optional(zSocialPostId),
|
|
2476
|
+
contactId: z.optional(zContactId),
|
|
2477
|
+
propertyId: z.optional(zPropertyId),
|
|
2478
|
+
listingId: z.optional(z.coerce
|
|
2479
|
+
.bigint()
|
|
2480
|
+
.min(BigInt('-9223372036854775808'), {
|
|
2481
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2482
|
+
})
|
|
2483
|
+
.max(BigInt('9223372036854775807'), {
|
|
2484
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2485
|
+
})),
|
|
2486
|
+
propertyTitle: z.optional(z.string()),
|
|
2487
|
+
channel: z.optional(z.enum(['FACEBOOK', 'INSTAGRAM'])),
|
|
2488
|
+
reason: z.optional(z.enum([
|
|
2489
|
+
'RECONNECT_REQUIRED',
|
|
2490
|
+
'PERMISSION_MISSING',
|
|
2491
|
+
'PAGE_PUBLISHING_AUTHORIZATION',
|
|
2492
|
+
'RATE_LIMITED',
|
|
2493
|
+
'BAD_MEDIA',
|
|
2494
|
+
'UNCONFIRMED',
|
|
2495
|
+
'UNKNOWN',
|
|
2496
|
+
])),
|
|
2497
|
+
kind: z.enum(['SOCIAL_POST_FAILED']),
|
|
2498
|
+
});
|
|
2230
2499
|
export const zSubscriptionId = z.object({
|
|
2231
2500
|
value: z.optional(z.uuid()),
|
|
2232
2501
|
});
|
|
@@ -2262,6 +2531,15 @@ export const zSubscriptionPaymentReversed = z.object({
|
|
|
2262
2531
|
export const zTaskId = z.object({
|
|
2263
2532
|
value: z.optional(z.uuid()),
|
|
2264
2533
|
});
|
|
2534
|
+
export const zMemberMentioned = z.object({
|
|
2535
|
+
commentId: z.optional(zCommentId),
|
|
2536
|
+
contactId: z.optional(zContactId),
|
|
2537
|
+
taskId: z.optional(zTaskId),
|
|
2538
|
+
authorId: z.optional(zMemberId),
|
|
2539
|
+
author: z.optional(z.string()),
|
|
2540
|
+
commentSnippet: z.optional(z.string()),
|
|
2541
|
+
kind: z.enum(['MEMBER_MENTIONED']),
|
|
2542
|
+
});
|
|
2265
2543
|
export const zTaskCommented = z.object({
|
|
2266
2544
|
commentId: z.optional(zCommentId),
|
|
2267
2545
|
taskId: z.optional(zTaskId),
|
|
@@ -2283,6 +2561,7 @@ export const zNotificationView = z.object({
|
|
|
2283
2561
|
type: z.enum([
|
|
2284
2562
|
'AGENT_COMMENTED',
|
|
2285
2563
|
'TASK_COMMENTED',
|
|
2564
|
+
'MEMBER_MENTIONED',
|
|
2286
2565
|
'EXTERNAL_LISTING_EXPIRED',
|
|
2287
2566
|
'LISTING_EXPIRED',
|
|
2288
2567
|
'NEW_SEEKER_RATING',
|
|
@@ -2292,14 +2571,19 @@ export const zNotificationView = z.object({
|
|
|
2292
2571
|
'SUBSCRIPTION_ENDING',
|
|
2293
2572
|
'SUBSCRIPTION_EXPIRED',
|
|
2294
2573
|
'SUBSCRIPTION_PAYMENT_REVERSED',
|
|
2574
|
+
'CHANNEL_REAUTH_REQUIRED',
|
|
2575
|
+
'SOCIAL_POST_FAILED',
|
|
2295
2576
|
]),
|
|
2296
2577
|
targetId: z.optional(z.string()),
|
|
2297
2578
|
payload: z.union([
|
|
2298
2579
|
zAgentCommented,
|
|
2580
|
+
zChannelReauthRequired,
|
|
2299
2581
|
zContactAssigned,
|
|
2300
2582
|
zListingExpired,
|
|
2583
|
+
zMemberMentioned,
|
|
2301
2584
|
zNewMessage,
|
|
2302
2585
|
zNewSeekerRating,
|
|
2586
|
+
zSocialPostFailed,
|
|
2303
2587
|
zSubscriptionEnding,
|
|
2304
2588
|
zSubscriptionExpired,
|
|
2305
2589
|
zSubscriptionPaymentFailed,
|
|
@@ -2490,6 +2774,10 @@ export const zPlatformView = z.object({
|
|
|
2490
2774
|
tier: z.optional(z.enum(['VIP', 'VIP_PLUS', 'SUPER_VIP'])),
|
|
2491
2775
|
boostExpiresAt: z.optional(z.iso.date()),
|
|
2492
2776
|
});
|
|
2777
|
+
export const zSocialPostLink = z.object({
|
|
2778
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
2779
|
+
permalink: z.string(),
|
|
2780
|
+
});
|
|
2493
2781
|
export const zListingGridResponse = z.object({
|
|
2494
2782
|
externalPropertyId: z.uuid(),
|
|
2495
2783
|
externalListingId: z.optional(z.uuid()),
|
|
@@ -2561,6 +2849,7 @@ export const zListingGridResponse = z.object({
|
|
|
2561
2849
|
commissionType: z.optional(z.enum(['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'])),
|
|
2562
2850
|
commission: z.optional(z.number()),
|
|
2563
2851
|
platforms: z.array(zPlatformView),
|
|
2852
|
+
socialPosts: z.array(zSocialPostLink),
|
|
2564
2853
|
createdAt: z.iso.datetime(),
|
|
2565
2854
|
updatedAt: z.iso.datetime(),
|
|
2566
2855
|
});
|
|
@@ -2789,6 +3078,62 @@ export const zCursorPageMessageView = z.object({
|
|
|
2789
3078
|
nextCursor: z.optional(z.string()),
|
|
2790
3079
|
hasNext: z.optional(z.boolean()),
|
|
2791
3080
|
});
|
|
3081
|
+
export const zComposerLimits = z.object({
|
|
3082
|
+
maxPhotos: z
|
|
3083
|
+
.int()
|
|
3084
|
+
.min(-2147483648, {
|
|
3085
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3086
|
+
})
|
|
3087
|
+
.max(2147483647, {
|
|
3088
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3089
|
+
}),
|
|
3090
|
+
maxCaptionLength: z
|
|
3091
|
+
.int()
|
|
3092
|
+
.min(-2147483648, {
|
|
3093
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3094
|
+
})
|
|
3095
|
+
.max(2147483647, {
|
|
3096
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3097
|
+
}),
|
|
3098
|
+
});
|
|
3099
|
+
export const zComposerPhoto = z.object({
|
|
3100
|
+
photoId: z.coerce
|
|
3101
|
+
.bigint()
|
|
3102
|
+
.min(BigInt('-9223372036854775808'), {
|
|
3103
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
3104
|
+
})
|
|
3105
|
+
.max(BigInt('9223372036854775807'), {
|
|
3106
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
3107
|
+
}),
|
|
3108
|
+
url: z.string(),
|
|
3109
|
+
width: z
|
|
3110
|
+
.int()
|
|
3111
|
+
.min(-2147483648, {
|
|
3112
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3113
|
+
})
|
|
3114
|
+
.max(2147483647, {
|
|
3115
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3116
|
+
}),
|
|
3117
|
+
height: z
|
|
3118
|
+
.int()
|
|
3119
|
+
.min(-2147483648, {
|
|
3120
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3121
|
+
})
|
|
3122
|
+
.max(2147483647, {
|
|
3123
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3124
|
+
}),
|
|
3125
|
+
selectedByDefault: z.boolean(),
|
|
3126
|
+
});
|
|
3127
|
+
export const zComposerPreview = z.object({
|
|
3128
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
3129
|
+
caption: z.string(),
|
|
3130
|
+
templateId: z.optional(z.uuid()),
|
|
3131
|
+
limits: zComposerLimits,
|
|
3132
|
+
ratios: z.array(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
|
|
3133
|
+
defaultRatio: z.optional(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
|
|
3134
|
+
photos: z.array(zComposerPhoto),
|
|
3135
|
+
access: z.enum(['ALLOWED', 'NOT_CONNECTED', 'RECONNECT_REQUIRED']),
|
|
3136
|
+
});
|
|
2792
3137
|
export const zContactGridResponse = z.object({
|
|
2793
3138
|
id: z.coerce
|
|
2794
3139
|
.bigint()
|
|
@@ -2959,7 +3304,7 @@ export const zClient360Response = z.object({
|
|
|
2959
3304
|
updatedAt: z.iso.datetime(),
|
|
2960
3305
|
interests: z.array(zContactInterestResponse),
|
|
2961
3306
|
properties: z.array(zContactPropertyResponse),
|
|
2962
|
-
tasks:
|
|
3307
|
+
tasks: zContactTasksResponse,
|
|
2963
3308
|
});
|
|
2964
3309
|
export const zAssignedAgent = z.object({
|
|
2965
3310
|
memberId: z.uuid(),
|
|
@@ -4611,6 +4956,75 @@ export const zPostContactsByContactIdPropertiesByPropertyIdListingsData = z.obje
|
|
|
4611
4956
|
* Created
|
|
4612
4957
|
*/
|
|
4613
4958
|
export const zPostContactsByContactIdPropertiesByPropertyIdListingsResponse = zIdResponseUuid;
|
|
4959
|
+
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsData = z.object({
|
|
4960
|
+
body: zPublishSocialPostRequest,
|
|
4961
|
+
path: z.object({
|
|
4962
|
+
contactId: z.coerce
|
|
4963
|
+
.bigint()
|
|
4964
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4965
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4966
|
+
})
|
|
4967
|
+
.max(BigInt('9223372036854775807'), {
|
|
4968
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4969
|
+
}),
|
|
4970
|
+
propertyId: z.coerce
|
|
4971
|
+
.bigint()
|
|
4972
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4973
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4974
|
+
})
|
|
4975
|
+
.max(BigInt('9223372036854775807'), {
|
|
4976
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4977
|
+
}),
|
|
4978
|
+
listingId: z.coerce
|
|
4979
|
+
.bigint()
|
|
4980
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4981
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4982
|
+
})
|
|
4983
|
+
.max(BigInt('9223372036854775807'), {
|
|
4984
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4985
|
+
}),
|
|
4986
|
+
}),
|
|
4987
|
+
query: z.optional(z.never()),
|
|
4988
|
+
});
|
|
4989
|
+
/**
|
|
4990
|
+
* Accepted
|
|
4991
|
+
*/
|
|
4992
|
+
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsResponse = zSocialPostView;
|
|
4993
|
+
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsByPostIdRetryData = z.object({
|
|
4994
|
+
body: z.optional(z.never()),
|
|
4995
|
+
path: z.object({
|
|
4996
|
+
contactId: z.coerce
|
|
4997
|
+
.bigint()
|
|
4998
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4999
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5000
|
+
})
|
|
5001
|
+
.max(BigInt('9223372036854775807'), {
|
|
5002
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5003
|
+
}),
|
|
5004
|
+
propertyId: z.coerce
|
|
5005
|
+
.bigint()
|
|
5006
|
+
.min(BigInt('-9223372036854775808'), {
|
|
5007
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5008
|
+
})
|
|
5009
|
+
.max(BigInt('9223372036854775807'), {
|
|
5010
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5011
|
+
}),
|
|
5012
|
+
listingId: z.coerce
|
|
5013
|
+
.bigint()
|
|
5014
|
+
.min(BigInt('-9223372036854775808'), {
|
|
5015
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5016
|
+
})
|
|
5017
|
+
.max(BigInt('9223372036854775807'), {
|
|
5018
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5019
|
+
}),
|
|
5020
|
+
postId: z.uuid(),
|
|
5021
|
+
}),
|
|
5022
|
+
query: z.optional(z.never()),
|
|
5023
|
+
});
|
|
5024
|
+
/**
|
|
5025
|
+
* Accepted
|
|
5026
|
+
*/
|
|
5027
|
+
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsByPostIdRetryResponse = zSocialPostView;
|
|
4614
5028
|
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdResumeData = z.object({
|
|
4615
5029
|
body: z.optional(z.never()),
|
|
4616
5030
|
path: z.object({
|
|
@@ -5001,6 +5415,28 @@ export const zPostContactData = z.object({
|
|
|
5001
5415
|
* Created
|
|
5002
5416
|
*/
|
|
5003
5417
|
export const zPostContactResponse = zIdResponseLong;
|
|
5418
|
+
export const zPostContactByContactIdPropertyByPropertyIdExternalListingWithdrawData = z.object({
|
|
5419
|
+
body: zExternalListingWithdrawRequest,
|
|
5420
|
+
path: z.object({
|
|
5421
|
+
contactId: z.coerce
|
|
5422
|
+
.bigint()
|
|
5423
|
+
.min(BigInt('-9223372036854775808'), {
|
|
5424
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5425
|
+
})
|
|
5426
|
+
.max(BigInt('9223372036854775807'), {
|
|
5427
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5428
|
+
}),
|
|
5429
|
+
propertyId: z.coerce
|
|
5430
|
+
.bigint()
|
|
5431
|
+
.min(BigInt('-9223372036854775808'), {
|
|
5432
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5433
|
+
})
|
|
5434
|
+
.max(BigInt('9223372036854775807'), {
|
|
5435
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5436
|
+
}),
|
|
5437
|
+
}),
|
|
5438
|
+
query: z.optional(z.never()),
|
|
5439
|
+
});
|
|
5004
5440
|
export const zPostContactByContactIdPropertyByPropertyIdExternalListingPublishData = z.object({
|
|
5005
5441
|
body: zExternalListingPublishRequest,
|
|
5006
5442
|
path: z.object({
|
|
@@ -5163,7 +5599,7 @@ export const zGetTaskByContactByContactIdData = z.object({
|
|
|
5163
5599
|
/**
|
|
5164
5600
|
* OK
|
|
5165
5601
|
*/
|
|
5166
|
-
export const zGetTaskByContactByContactIdResponse =
|
|
5602
|
+
export const zGetTaskByContactByContactIdResponse = zContactTasksResponse;
|
|
5167
5603
|
export const zGetTaskBoardByBoardIdData = z.object({
|
|
5168
5604
|
body: z.optional(z.never()),
|
|
5169
5605
|
path: z.object({
|
|
@@ -5661,6 +6097,7 @@ export const zGetListingData = z.object({
|
|
|
5661
6097
|
platforms: z.optional(z.array(z.enum(['SS', 'MY_HOME']))),
|
|
5662
6098
|
platformExpiresFrom: z.optional(z.iso.date()),
|
|
5663
6099
|
platformExpiresTo: z.optional(z.iso.date()),
|
|
6100
|
+
socialChannels: z.optional(z.array(z.enum(['FACEBOOK', 'INSTAGRAM']))),
|
|
5664
6101
|
boostTiers: z.optional(z.array(z.string())),
|
|
5665
6102
|
boostExpiresFrom: z.optional(z.iso.date()),
|
|
5666
6103
|
boostExpiresTo: z.optional(z.iso.date()),
|
|
@@ -5763,6 +6200,7 @@ export const zGetListingGroupsData = z.object({
|
|
|
5763
6200
|
platforms: z.optional(z.array(z.enum(['SS', 'MY_HOME']))),
|
|
5764
6201
|
platformExpiresFrom: z.optional(z.iso.date()),
|
|
5765
6202
|
platformExpiresTo: z.optional(z.iso.date()),
|
|
6203
|
+
socialChannels: z.optional(z.array(z.enum(['FACEBOOK', 'INSTAGRAM']))),
|
|
5766
6204
|
boostTiers: z.optional(z.array(z.string())),
|
|
5767
6205
|
boostExpiresFrom: z.optional(z.iso.date()),
|
|
5768
6206
|
boostExpiresTo: z.optional(z.iso.date()),
|
|
@@ -6079,6 +6517,77 @@ export const zGetConversationsByConversationIdUpdatesData = z.object({
|
|
|
6079
6517
|
* OK
|
|
6080
6518
|
*/
|
|
6081
6519
|
export const zGetConversationsByConversationIdUpdatesResponse = zThreadUpdates;
|
|
6520
|
+
export const zGetContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsByPostIdData = z.object({
|
|
6521
|
+
body: z.optional(z.never()),
|
|
6522
|
+
path: z.object({
|
|
6523
|
+
contactId: z.coerce
|
|
6524
|
+
.bigint()
|
|
6525
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6526
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6527
|
+
})
|
|
6528
|
+
.max(BigInt('9223372036854775807'), {
|
|
6529
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6530
|
+
}),
|
|
6531
|
+
propertyId: z.coerce
|
|
6532
|
+
.bigint()
|
|
6533
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6534
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6535
|
+
})
|
|
6536
|
+
.max(BigInt('9223372036854775807'), {
|
|
6537
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6538
|
+
}),
|
|
6539
|
+
listingId: z.coerce
|
|
6540
|
+
.bigint()
|
|
6541
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6542
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6543
|
+
})
|
|
6544
|
+
.max(BigInt('9223372036854775807'), {
|
|
6545
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6546
|
+
}),
|
|
6547
|
+
postId: z.uuid(),
|
|
6548
|
+
}),
|
|
6549
|
+
query: z.optional(z.never()),
|
|
6550
|
+
});
|
|
6551
|
+
/**
|
|
6552
|
+
* OK
|
|
6553
|
+
*/
|
|
6554
|
+
export const zGetContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsByPostIdResponse = zSocialPostView;
|
|
6555
|
+
export const zGetContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsPreviewData = z.object({
|
|
6556
|
+
body: z.optional(z.never()),
|
|
6557
|
+
path: z.object({
|
|
6558
|
+
contactId: z.coerce
|
|
6559
|
+
.bigint()
|
|
6560
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6561
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6562
|
+
})
|
|
6563
|
+
.max(BigInt('9223372036854775807'), {
|
|
6564
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6565
|
+
}),
|
|
6566
|
+
propertyId: z.coerce
|
|
6567
|
+
.bigint()
|
|
6568
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6569
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6570
|
+
})
|
|
6571
|
+
.max(BigInt('9223372036854775807'), {
|
|
6572
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6573
|
+
}),
|
|
6574
|
+
listingId: z.coerce
|
|
6575
|
+
.bigint()
|
|
6576
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6577
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6578
|
+
})
|
|
6579
|
+
.max(BigInt('9223372036854775807'), {
|
|
6580
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6581
|
+
}),
|
|
6582
|
+
}),
|
|
6583
|
+
query: z.object({
|
|
6584
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
6585
|
+
}),
|
|
6586
|
+
});
|
|
6587
|
+
/**
|
|
6588
|
+
* OK
|
|
6589
|
+
*/
|
|
6590
|
+
export const zGetContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsPreviewResponse = zComposerPreview;
|
|
6082
6591
|
export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsData = z.object({
|
|
6083
6592
|
body: z.optional(z.never()),
|
|
6084
6593
|
path: z.object({
|
|
@@ -6225,6 +6734,27 @@ export const zGetContactGroupsData = z.object({
|
|
|
6225
6734
|
* OK
|
|
6226
6735
|
*/
|
|
6227
6736
|
export const zGetContactGroupsResponse = z.array(zGroupCount);
|
|
6737
|
+
export const zGetCommentsMentionsData = z.object({
|
|
6738
|
+
body: z.optional(z.never()),
|
|
6739
|
+
path: z.optional(z.never()),
|
|
6740
|
+
query: z.optional(z.object({
|
|
6741
|
+
cursor: z.optional(z.string()),
|
|
6742
|
+
limit: z
|
|
6743
|
+
.optional(z
|
|
6744
|
+
.int()
|
|
6745
|
+
.min(-2147483648, {
|
|
6746
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
6747
|
+
})
|
|
6748
|
+
.max(2147483647, {
|
|
6749
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
6750
|
+
}))
|
|
6751
|
+
.default(10),
|
|
6752
|
+
})),
|
|
6753
|
+
});
|
|
6754
|
+
/**
|
|
6755
|
+
* OK
|
|
6756
|
+
*/
|
|
6757
|
+
export const zGetCommentsMentionsResponse = zCursorPageCommentView;
|
|
6228
6758
|
export const zDeleteBoardByBoardIdData = z.object({
|
|
6229
6759
|
body: z.optional(z.never()),
|
|
6230
6760
|
path: z.object({
|