@homespot-sdk/core 0.0.357 → 0.0.359
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 +655 -219
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +718 -221
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +14 -12
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +40 -5
- 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 +76 -0
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +361 -126
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +1110 -204
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +521 -114
- 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
|
@@ -423,10 +423,10 @@ export const zSubscriptionAddressRequest = z.object({
|
|
|
423
423
|
export const zSubscribeRequest = z.object({
|
|
424
424
|
plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
|
|
425
425
|
billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
|
|
426
|
-
name: z.string(),
|
|
427
|
-
email: z.email(),
|
|
428
|
-
phone: z.string(),
|
|
429
|
-
subdomain: z.string(),
|
|
426
|
+
name: z.string().min(1),
|
|
427
|
+
email: z.email().min(1),
|
|
428
|
+
phone: z.string().min(1),
|
|
429
|
+
subdomain: z.string().min(1),
|
|
430
430
|
address: zSubscriptionAddressRequest,
|
|
431
431
|
});
|
|
432
432
|
export const zSubscriptionCheckoutResponse = z.object({
|
|
@@ -443,114 +443,6 @@ export const zSubscriptionCheckoutResponse = z.object({
|
|
|
443
443
|
'SUPERSEDED',
|
|
444
444
|
])),
|
|
445
445
|
});
|
|
446
|
-
export const zProblemDetail = z.object({
|
|
447
|
-
type: z.optional(z.url()),
|
|
448
|
-
title: z.optional(z.string()),
|
|
449
|
-
status: z.optional(z
|
|
450
|
-
.int()
|
|
451
|
-
.min(-2147483648, {
|
|
452
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
453
|
-
})
|
|
454
|
-
.max(2147483647, {
|
|
455
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
456
|
-
})),
|
|
457
|
-
detail: z.optional(z.string()),
|
|
458
|
-
instance: z.optional(z.url()),
|
|
459
|
-
properties: z.optional(z.record(z.string(), z.unknown())),
|
|
460
|
-
});
|
|
461
|
-
export const zAgencyRegistrationConflictResponse = z.object({
|
|
462
|
-
type: z.url(),
|
|
463
|
-
title: z.string(),
|
|
464
|
-
status: z
|
|
465
|
-
.int()
|
|
466
|
-
.min(-2147483648, {
|
|
467
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
468
|
-
})
|
|
469
|
-
.max(2147483647, {
|
|
470
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
471
|
-
}),
|
|
472
|
-
detail: z.string(),
|
|
473
|
-
instance: z.url(),
|
|
474
|
-
conflicts: z.array(z.enum(['OWNER', 'NAME', 'SUBDOMAIN'])),
|
|
475
|
-
code: z.enum(['AGENCY_REGISTRATION_CONFLICT']),
|
|
476
|
-
});
|
|
477
|
-
export const zConcurrentModificationResponse = z.object({
|
|
478
|
-
type: z.url(),
|
|
479
|
-
title: z.string(),
|
|
480
|
-
status: z
|
|
481
|
-
.int()
|
|
482
|
-
.min(-2147483648, {
|
|
483
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
484
|
-
})
|
|
485
|
-
.max(2147483647, {
|
|
486
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
487
|
-
}),
|
|
488
|
-
detail: z.string(),
|
|
489
|
-
instance: z.url(),
|
|
490
|
-
code: z.enum(['CONCURRENT_MODIFICATION']),
|
|
491
|
-
});
|
|
492
|
-
export const zDataIntegrityConflictResponse = z.object({
|
|
493
|
-
type: z.url(),
|
|
494
|
-
title: z.string(),
|
|
495
|
-
status: z
|
|
496
|
-
.int()
|
|
497
|
-
.min(-2147483648, {
|
|
498
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
499
|
-
})
|
|
500
|
-
.max(2147483647, {
|
|
501
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
502
|
-
}),
|
|
503
|
-
detail: z.string(),
|
|
504
|
-
instance: z.url(),
|
|
505
|
-
code: z.enum(['DATA_INTEGRITY_CONFLICT']),
|
|
506
|
-
});
|
|
507
|
-
export const zSubscriptionStateConflictResponse = z.object({
|
|
508
|
-
type: z.url(),
|
|
509
|
-
title: z.string(),
|
|
510
|
-
status: z
|
|
511
|
-
.int()
|
|
512
|
-
.min(-2147483648, {
|
|
513
|
-
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
514
|
-
})
|
|
515
|
-
.max(2147483647, {
|
|
516
|
-
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
517
|
-
}),
|
|
518
|
-
detail: z.string(),
|
|
519
|
-
instance: z.url(),
|
|
520
|
-
subscriptionId: z.uuid(),
|
|
521
|
-
subscriptionStatus: z.enum([
|
|
522
|
-
'PENDING',
|
|
523
|
-
'TRIALING',
|
|
524
|
-
'ACTIVE',
|
|
525
|
-
'PAST_DUE',
|
|
526
|
-
'CANCELLED',
|
|
527
|
-
'EXPIRED',
|
|
528
|
-
'SUPERSEDED',
|
|
529
|
-
]),
|
|
530
|
-
code: z.enum(['SUBSCRIPTION_STATE_CONFLICT']),
|
|
531
|
-
});
|
|
532
|
-
export const zSubscriptionConflictResponse = z.union([
|
|
533
|
-
z
|
|
534
|
-
.object({
|
|
535
|
-
code: z.literal('AGENCY_REGISTRATION_CONFLICT'),
|
|
536
|
-
})
|
|
537
|
-
.and(zAgencyRegistrationConflictResponse),
|
|
538
|
-
z
|
|
539
|
-
.object({
|
|
540
|
-
code: z.literal('SUBSCRIPTION_STATE_CONFLICT'),
|
|
541
|
-
})
|
|
542
|
-
.and(zSubscriptionStateConflictResponse),
|
|
543
|
-
z
|
|
544
|
-
.object({
|
|
545
|
-
code: z.literal('CONCURRENT_MODIFICATION'),
|
|
546
|
-
})
|
|
547
|
-
.and(zConcurrentModificationResponse),
|
|
548
|
-
z
|
|
549
|
-
.object({
|
|
550
|
-
code: z.literal('DATA_INTEGRITY_CONFLICT'),
|
|
551
|
-
})
|
|
552
|
-
.and(zDataIntegrityConflictResponse),
|
|
553
|
-
]);
|
|
554
446
|
export const zChangePlanRequest = z.object({
|
|
555
447
|
plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
|
|
556
448
|
billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
|
|
@@ -596,6 +488,11 @@ export const zOauthConnectionResponse = z.object({
|
|
|
596
488
|
createdAt: z.iso.datetime(),
|
|
597
489
|
updatedAt: z.iso.datetime(),
|
|
598
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(),
|
|
599
496
|
});
|
|
600
497
|
export const zAttendeeRequest = z.object({
|
|
601
498
|
role: z.enum(['ORGANIZER', 'MEMBER', 'OWNER', 'CLIENT', 'OTHER']),
|
|
@@ -690,6 +587,21 @@ export const zAgencyPrincipalDto = z.object({
|
|
|
690
587
|
export const zSendMessageRequest = z.object({
|
|
691
588
|
text: z.string().min(0).max(2000),
|
|
692
589
|
});
|
|
590
|
+
export const zProblemDetail = z.object({
|
|
591
|
+
type: z.optional(z.url()),
|
|
592
|
+
title: z.optional(z.string()),
|
|
593
|
+
status: z.optional(z
|
|
594
|
+
.int()
|
|
595
|
+
.min(-2147483648, {
|
|
596
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
597
|
+
})
|
|
598
|
+
.max(2147483647, {
|
|
599
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
600
|
+
})),
|
|
601
|
+
detail: z.optional(z.string()),
|
|
602
|
+
instance: z.optional(z.url()),
|
|
603
|
+
properties: z.optional(z.record(z.string(), z.unknown())),
|
|
604
|
+
});
|
|
693
605
|
export const zStartPropertyRegistrationRequest = z.object({
|
|
694
606
|
propertyType: z.enum([
|
|
695
607
|
'HOUSE',
|
|
@@ -737,6 +649,68 @@ export const zRegistrationProgressResponse = z.object({
|
|
|
737
649
|
export const zAddDealRequest = z.object({
|
|
738
650
|
type: z.string(),
|
|
739
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
|
+
});
|
|
740
714
|
export const zCloseListingRequest = z.object({
|
|
741
715
|
withdrawExternal: z.optional(z.boolean()),
|
|
742
716
|
});
|
|
@@ -776,6 +750,17 @@ export const zIdResponseLong = z.object({
|
|
|
776
750
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
777
751
|
}),
|
|
778
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
|
+
});
|
|
779
764
|
export const zExternalListingPublishRequest = z.object({
|
|
780
765
|
platform: z.enum(['SS', 'MY_HOME']),
|
|
781
766
|
listingId: z.coerce
|
|
@@ -1378,6 +1363,98 @@ export const zStageCardsResponse = z.object({
|
|
|
1378
1363
|
members: z.array(zMemberPeekResponse),
|
|
1379
1364
|
data: zCursorPageTaskCardResponse,
|
|
1380
1365
|
});
|
|
1366
|
+
export const zSubscriptionResponse = z.object({
|
|
1367
|
+
subscriptionId: z.uuid(),
|
|
1368
|
+
plan: z.enum(['STARTER', 'PRO', 'ENTERPRISE']),
|
|
1369
|
+
billingCycle: z.enum(['MONTHLY', 'ANNUAL']),
|
|
1370
|
+
priceMinorUnits: z.coerce
|
|
1371
|
+
.bigint()
|
|
1372
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1373
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1374
|
+
})
|
|
1375
|
+
.max(BigInt('9223372036854775807'), {
|
|
1376
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1377
|
+
}),
|
|
1378
|
+
currency: z.string(),
|
|
1379
|
+
seats: z
|
|
1380
|
+
.int()
|
|
1381
|
+
.min(-2147483648, {
|
|
1382
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1383
|
+
})
|
|
1384
|
+
.max(2147483647, {
|
|
1385
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1386
|
+
}),
|
|
1387
|
+
monthlyContactLimit: z
|
|
1388
|
+
.int()
|
|
1389
|
+
.min(-2147483648, {
|
|
1390
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1391
|
+
})
|
|
1392
|
+
.max(2147483647, {
|
|
1393
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1394
|
+
}),
|
|
1395
|
+
trialDays: z
|
|
1396
|
+
.int()
|
|
1397
|
+
.min(-2147483648, {
|
|
1398
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
1399
|
+
})
|
|
1400
|
+
.max(2147483647, {
|
|
1401
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
1402
|
+
}),
|
|
1403
|
+
status: z.enum([
|
|
1404
|
+
'PENDING',
|
|
1405
|
+
'TRIALING',
|
|
1406
|
+
'ACTIVE',
|
|
1407
|
+
'PAST_DUE',
|
|
1408
|
+
'CANCELLED',
|
|
1409
|
+
'EXPIRED',
|
|
1410
|
+
'SUPERSEDED',
|
|
1411
|
+
]),
|
|
1412
|
+
live: z.boolean(),
|
|
1413
|
+
trialEndsAt: z.optional(z.iso.datetime()),
|
|
1414
|
+
paidThroughAt: z.optional(z.iso.datetime()),
|
|
1415
|
+
accessEndsAt: z.optional(z.iso.datetime()),
|
|
1416
|
+
pastDueSince: z.optional(z.iso.datetime()),
|
|
1417
|
+
lastChargedAt: z.optional(z.iso.datetime()),
|
|
1418
|
+
createdAt: z.iso.datetime(),
|
|
1419
|
+
activatedAt: z.optional(z.iso.datetime()),
|
|
1420
|
+
cancelledAt: z.optional(z.iso.datetime()),
|
|
1421
|
+
checkoutExpiresAt: z.optional(z.iso.datetime()),
|
|
1422
|
+
});
|
|
1423
|
+
export const zPaymentResponse = z.object({
|
|
1424
|
+
id: z.uuid(),
|
|
1425
|
+
subscriptionId: z.uuid(),
|
|
1426
|
+
flittPaymentId: z.string(),
|
|
1427
|
+
flittOrderId: z.string(),
|
|
1428
|
+
orderStatus: z.string(),
|
|
1429
|
+
tranType: z.optional(z.string()),
|
|
1430
|
+
outcome: z.enum([
|
|
1431
|
+
'APPLIED',
|
|
1432
|
+
'TRIAL_STARTED',
|
|
1433
|
+
'DUPLICATE',
|
|
1434
|
+
'NOT_APPLIED_CANCELLED',
|
|
1435
|
+
'NOT_APPLIED_SUPERSEDED',
|
|
1436
|
+
'REJECTED_AMOUNT',
|
|
1437
|
+
'REJECTED_CURRENCY',
|
|
1438
|
+
'IGNORED_TRANSACTION_TYPE',
|
|
1439
|
+
'DECLINED',
|
|
1440
|
+
'REVERSED',
|
|
1441
|
+
'REVERSAL_IGNORED',
|
|
1442
|
+
'RECORDED',
|
|
1443
|
+
]),
|
|
1444
|
+
amountMinorUnits: z.optional(z.coerce
|
|
1445
|
+
.bigint()
|
|
1446
|
+
.min(BigInt('-9223372036854775808'), {
|
|
1447
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
1448
|
+
})
|
|
1449
|
+
.max(BigInt('9223372036854775807'), {
|
|
1450
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
1451
|
+
})),
|
|
1452
|
+
currency: z.optional(z.string()),
|
|
1453
|
+
responseCode: z.optional(z.string()),
|
|
1454
|
+
responseDescription: z.optional(z.string()),
|
|
1455
|
+
orderTime: z.optional(z.iso.datetime()),
|
|
1456
|
+
receivedAt: z.iso.datetime(),
|
|
1457
|
+
});
|
|
1381
1458
|
export const zBucket = z.object({
|
|
1382
1459
|
count: z.coerce
|
|
1383
1460
|
.bigint()
|
|
@@ -2020,10 +2097,18 @@ export const zPlatformListingResponse = z.object({
|
|
|
2020
2097
|
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2021
2098
|
})),
|
|
2022
2099
|
platformType: z.enum(['SS', 'MY_HOME']),
|
|
2023
|
-
status: z.enum([
|
|
2100
|
+
status: z.enum([
|
|
2101
|
+
'PENDING',
|
|
2102
|
+
'SYNDICATED',
|
|
2103
|
+
'FAILED',
|
|
2104
|
+
'EXPIRED',
|
|
2105
|
+
'WITHDRAWING',
|
|
2106
|
+
'WITHDRAWN',
|
|
2107
|
+
]),
|
|
2024
2108
|
listedAt: z.optional(z.iso.date()),
|
|
2025
2109
|
expiresAt: z.optional(z.iso.date()),
|
|
2026
2110
|
renewedAt: z.optional(z.iso.date()),
|
|
2111
|
+
failureReason: z.optional(z.string()),
|
|
2027
2112
|
boost: z.optional(zBoostResponse),
|
|
2028
2113
|
coloredListing: z.optional(zColoredListingResponse),
|
|
2029
2114
|
});
|
|
@@ -2052,6 +2137,53 @@ export const zPropertyDetailsResponse = z.object({
|
|
|
2052
2137
|
balconyArea: z.optional(z.number()),
|
|
2053
2138
|
address: zAddressResponse,
|
|
2054
2139
|
});
|
|
2140
|
+
export const zSocialPostStats = z.object({
|
|
2141
|
+
likes: z
|
|
2142
|
+
.int()
|
|
2143
|
+
.min(-2147483648, {
|
|
2144
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2145
|
+
})
|
|
2146
|
+
.max(2147483647, {
|
|
2147
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2148
|
+
}),
|
|
2149
|
+
comments: z
|
|
2150
|
+
.int()
|
|
2151
|
+
.min(-2147483648, {
|
|
2152
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2153
|
+
})
|
|
2154
|
+
.max(2147483647, {
|
|
2155
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2156
|
+
}),
|
|
2157
|
+
shares: z
|
|
2158
|
+
.int()
|
|
2159
|
+
.min(-2147483648, {
|
|
2160
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2161
|
+
})
|
|
2162
|
+
.max(2147483647, {
|
|
2163
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2164
|
+
}),
|
|
2165
|
+
fetchedAt: z.iso.datetime(),
|
|
2166
|
+
});
|
|
2167
|
+
export const zSocialPostResponse = z.object({
|
|
2168
|
+
postId: z.uuid(),
|
|
2169
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
2170
|
+
status: z.enum(['PUBLISHING', 'PUBLISHED', 'FAILED', 'REMOVED']),
|
|
2171
|
+
caption: z.string(),
|
|
2172
|
+
thumbnailUrl: z.optional(z.string()),
|
|
2173
|
+
permalink: z.optional(z.string()),
|
|
2174
|
+
publishedAt: z.optional(z.iso.datetime()),
|
|
2175
|
+
createdBy: zMemberPeekResponse,
|
|
2176
|
+
failureReason: z.optional(z.enum([
|
|
2177
|
+
'RECONNECT_REQUIRED',
|
|
2178
|
+
'PERMISSION_MISSING',
|
|
2179
|
+
'PAGE_PUBLISHING_AUTHORIZATION',
|
|
2180
|
+
'RATE_LIMITED',
|
|
2181
|
+
'BAD_MEDIA',
|
|
2182
|
+
'UNCONFIRMED',
|
|
2183
|
+
'UNKNOWN',
|
|
2184
|
+
])),
|
|
2185
|
+
stats: z.optional(zSocialPostStats),
|
|
2186
|
+
});
|
|
2055
2187
|
export const zPropertyListingResponse = z.object({
|
|
2056
2188
|
publicId: z.coerce
|
|
2057
2189
|
.bigint()
|
|
@@ -2069,6 +2201,7 @@ export const zPropertyListingResponse = z.object({
|
|
|
2069
2201
|
price: z.number(),
|
|
2070
2202
|
deal: z.optional(z.union([zFixed, zMonthsOfRent, zPercentage])),
|
|
2071
2203
|
platformListings: z.array(zPlatformListingResponse),
|
|
2204
|
+
socialPosts: z.array(zSocialPostResponse),
|
|
2072
2205
|
createdAt: z.iso.datetime(),
|
|
2073
2206
|
closedAt: z.optional(z.iso.datetime()),
|
|
2074
2207
|
});
|
|
@@ -2143,6 +2276,15 @@ export const zListingOwnerContactResponse = z.object({
|
|
|
2143
2276
|
export const zCommentId = z.object({
|
|
2144
2277
|
value: z.optional(z.uuid()),
|
|
2145
2278
|
});
|
|
2279
|
+
export const zConnectionId = z.object({
|
|
2280
|
+
value: z.optional(z.uuid()),
|
|
2281
|
+
});
|
|
2282
|
+
export const zChannelReauthRequired = z.object({
|
|
2283
|
+
connectionId: z.optional(zConnectionId),
|
|
2284
|
+
channelType: z.optional(z.enum(['FACEBOOK', 'INSTAGRAM', 'WHATSAPP', 'TIKTOK'])),
|
|
2285
|
+
displayName: z.optional(z.string()),
|
|
2286
|
+
kind: z.enum(['CHANNEL_REAUTH_REQUIRED']),
|
|
2287
|
+
});
|
|
2146
2288
|
export const zContactId = z.object({
|
|
2147
2289
|
value: z.optional(z.coerce
|
|
2148
2290
|
.bigint()
|
|
@@ -2228,6 +2370,34 @@ export const zNewSeekerRating = z.object({
|
|
|
2228
2370
|
notePreview: z.optional(z.string()),
|
|
2229
2371
|
kind: z.enum(['NEW_SEEKER_RATING']),
|
|
2230
2372
|
});
|
|
2373
|
+
export const zSocialPostId = z.object({
|
|
2374
|
+
value: z.optional(z.uuid()),
|
|
2375
|
+
});
|
|
2376
|
+
export const zSocialPostFailed = z.object({
|
|
2377
|
+
postId: z.optional(zSocialPostId),
|
|
2378
|
+
contactId: z.optional(zContactId),
|
|
2379
|
+
propertyId: z.optional(zPropertyId),
|
|
2380
|
+
listingId: z.optional(z.coerce
|
|
2381
|
+
.bigint()
|
|
2382
|
+
.min(BigInt('-9223372036854775808'), {
|
|
2383
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2384
|
+
})
|
|
2385
|
+
.max(BigInt('9223372036854775807'), {
|
|
2386
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2387
|
+
})),
|
|
2388
|
+
propertyTitle: z.optional(z.string()),
|
|
2389
|
+
channel: z.optional(z.enum(['FACEBOOK', 'INSTAGRAM'])),
|
|
2390
|
+
reason: z.optional(z.enum([
|
|
2391
|
+
'RECONNECT_REQUIRED',
|
|
2392
|
+
'PERMISSION_MISSING',
|
|
2393
|
+
'PAGE_PUBLISHING_AUTHORIZATION',
|
|
2394
|
+
'RATE_LIMITED',
|
|
2395
|
+
'BAD_MEDIA',
|
|
2396
|
+
'UNCONFIRMED',
|
|
2397
|
+
'UNKNOWN',
|
|
2398
|
+
])),
|
|
2399
|
+
kind: z.enum(['SOCIAL_POST_FAILED']),
|
|
2400
|
+
});
|
|
2231
2401
|
export const zSubscriptionId = z.object({
|
|
2232
2402
|
value: z.optional(z.uuid()),
|
|
2233
2403
|
});
|
|
@@ -2293,14 +2463,18 @@ export const zNotificationView = z.object({
|
|
|
2293
2463
|
'SUBSCRIPTION_ENDING',
|
|
2294
2464
|
'SUBSCRIPTION_EXPIRED',
|
|
2295
2465
|
'SUBSCRIPTION_PAYMENT_REVERSED',
|
|
2466
|
+
'CHANNEL_REAUTH_REQUIRED',
|
|
2467
|
+
'SOCIAL_POST_FAILED',
|
|
2296
2468
|
]),
|
|
2297
2469
|
targetId: z.optional(z.string()),
|
|
2298
2470
|
payload: z.union([
|
|
2299
2471
|
zAgentCommented,
|
|
2472
|
+
zChannelReauthRequired,
|
|
2300
2473
|
zContactAssigned,
|
|
2301
2474
|
zListingExpired,
|
|
2302
2475
|
zNewMessage,
|
|
2303
2476
|
zNewSeekerRating,
|
|
2477
|
+
zSocialPostFailed,
|
|
2304
2478
|
zSubscriptionEnding,
|
|
2305
2479
|
zSubscriptionExpired,
|
|
2306
2480
|
zSubscriptionPaymentFailed,
|
|
@@ -2491,6 +2665,10 @@ export const zPlatformView = z.object({
|
|
|
2491
2665
|
tier: z.optional(z.enum(['VIP', 'VIP_PLUS', 'SUPER_VIP'])),
|
|
2492
2666
|
boostExpiresAt: z.optional(z.iso.date()),
|
|
2493
2667
|
});
|
|
2668
|
+
export const zSocialPostLink = z.object({
|
|
2669
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
2670
|
+
permalink: z.string(),
|
|
2671
|
+
});
|
|
2494
2672
|
export const zListingGridResponse = z.object({
|
|
2495
2673
|
externalPropertyId: z.uuid(),
|
|
2496
2674
|
externalListingId: z.optional(z.uuid()),
|
|
@@ -2562,6 +2740,7 @@ export const zListingGridResponse = z.object({
|
|
|
2562
2740
|
commissionType: z.optional(z.enum(['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'])),
|
|
2563
2741
|
commission: z.optional(z.number()),
|
|
2564
2742
|
platforms: z.array(zPlatformView),
|
|
2743
|
+
socialPosts: z.array(zSocialPostLink),
|
|
2565
2744
|
createdAt: z.iso.datetime(),
|
|
2566
2745
|
updatedAt: z.iso.datetime(),
|
|
2567
2746
|
});
|
|
@@ -2790,6 +2969,62 @@ export const zCursorPageMessageView = z.object({
|
|
|
2790
2969
|
nextCursor: z.optional(z.string()),
|
|
2791
2970
|
hasNext: z.optional(z.boolean()),
|
|
2792
2971
|
});
|
|
2972
|
+
export const zComposerLimits = z.object({
|
|
2973
|
+
maxPhotos: z
|
|
2974
|
+
.int()
|
|
2975
|
+
.min(-2147483648, {
|
|
2976
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2977
|
+
})
|
|
2978
|
+
.max(2147483647, {
|
|
2979
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2980
|
+
}),
|
|
2981
|
+
maxCaptionLength: z
|
|
2982
|
+
.int()
|
|
2983
|
+
.min(-2147483648, {
|
|
2984
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
2985
|
+
})
|
|
2986
|
+
.max(2147483647, {
|
|
2987
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
2988
|
+
}),
|
|
2989
|
+
});
|
|
2990
|
+
export const zComposerPhoto = z.object({
|
|
2991
|
+
photoId: z.coerce
|
|
2992
|
+
.bigint()
|
|
2993
|
+
.min(BigInt('-9223372036854775808'), {
|
|
2994
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
2995
|
+
})
|
|
2996
|
+
.max(BigInt('9223372036854775807'), {
|
|
2997
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
2998
|
+
}),
|
|
2999
|
+
url: z.string(),
|
|
3000
|
+
width: z
|
|
3001
|
+
.int()
|
|
3002
|
+
.min(-2147483648, {
|
|
3003
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3004
|
+
})
|
|
3005
|
+
.max(2147483647, {
|
|
3006
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3007
|
+
}),
|
|
3008
|
+
height: z
|
|
3009
|
+
.int()
|
|
3010
|
+
.min(-2147483648, {
|
|
3011
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3012
|
+
})
|
|
3013
|
+
.max(2147483647, {
|
|
3014
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3015
|
+
}),
|
|
3016
|
+
selectedByDefault: z.boolean(),
|
|
3017
|
+
});
|
|
3018
|
+
export const zComposerPreview = z.object({
|
|
3019
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
3020
|
+
caption: z.string(),
|
|
3021
|
+
templateId: z.optional(z.uuid()),
|
|
3022
|
+
limits: zComposerLimits,
|
|
3023
|
+
ratios: z.array(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
|
|
3024
|
+
defaultRatio: z.optional(z.enum(['LANDSCAPE', 'SQUARE', 'PORTRAIT'])),
|
|
3025
|
+
photos: z.array(zComposerPhoto),
|
|
3026
|
+
access: z.enum(['ALLOWED', 'NOT_CONNECTED', 'RECONNECT_REQUIRED']),
|
|
3027
|
+
});
|
|
2793
3028
|
export const zContactGridResponse = z.object({
|
|
2794
3029
|
id: z.coerce
|
|
2795
3030
|
.bigint()
|
|
@@ -4202,13 +4437,17 @@ export const zGetSubscriptionsData = z.object({
|
|
|
4202
4437
|
path: z.optional(z.never()),
|
|
4203
4438
|
query: z.optional(z.never()),
|
|
4204
4439
|
});
|
|
4440
|
+
/**
|
|
4441
|
+
* OK
|
|
4442
|
+
*/
|
|
4443
|
+
export const zGetSubscriptionsResponse = zSubscriptionResponse;
|
|
4205
4444
|
export const zPostSubscriptionsData = z.object({
|
|
4206
4445
|
body: zSubscribeRequest,
|
|
4207
4446
|
path: z.optional(z.never()),
|
|
4208
4447
|
query: z.optional(z.never()),
|
|
4209
4448
|
});
|
|
4210
4449
|
/**
|
|
4211
|
-
*
|
|
4450
|
+
* OK
|
|
4212
4451
|
*/
|
|
4213
4452
|
export const zPostSubscriptionsResponse = zSubscriptionCheckoutResponse;
|
|
4214
4453
|
export const zPostSubscriptionsResumeData = z.object({
|
|
@@ -4608,6 +4847,75 @@ export const zPostContactsByContactIdPropertiesByPropertyIdListingsData = z.obje
|
|
|
4608
4847
|
* Created
|
|
4609
4848
|
*/
|
|
4610
4849
|
export const zPostContactsByContactIdPropertiesByPropertyIdListingsResponse = zIdResponseUuid;
|
|
4850
|
+
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsData = z.object({
|
|
4851
|
+
body: zPublishSocialPostRequest,
|
|
4852
|
+
path: z.object({
|
|
4853
|
+
contactId: z.coerce
|
|
4854
|
+
.bigint()
|
|
4855
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4856
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4857
|
+
})
|
|
4858
|
+
.max(BigInt('9223372036854775807'), {
|
|
4859
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4860
|
+
}),
|
|
4861
|
+
propertyId: z.coerce
|
|
4862
|
+
.bigint()
|
|
4863
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4864
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4865
|
+
})
|
|
4866
|
+
.max(BigInt('9223372036854775807'), {
|
|
4867
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4868
|
+
}),
|
|
4869
|
+
listingId: z.coerce
|
|
4870
|
+
.bigint()
|
|
4871
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4872
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4873
|
+
})
|
|
4874
|
+
.max(BigInt('9223372036854775807'), {
|
|
4875
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4876
|
+
}),
|
|
4877
|
+
}),
|
|
4878
|
+
query: z.optional(z.never()),
|
|
4879
|
+
});
|
|
4880
|
+
/**
|
|
4881
|
+
* Accepted
|
|
4882
|
+
*/
|
|
4883
|
+
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsResponse = zSocialPostView;
|
|
4884
|
+
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsByPostIdRetryData = z.object({
|
|
4885
|
+
body: z.optional(z.never()),
|
|
4886
|
+
path: z.object({
|
|
4887
|
+
contactId: z.coerce
|
|
4888
|
+
.bigint()
|
|
4889
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4890
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4891
|
+
})
|
|
4892
|
+
.max(BigInt('9223372036854775807'), {
|
|
4893
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4894
|
+
}),
|
|
4895
|
+
propertyId: z.coerce
|
|
4896
|
+
.bigint()
|
|
4897
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4898
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4899
|
+
})
|
|
4900
|
+
.max(BigInt('9223372036854775807'), {
|
|
4901
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4902
|
+
}),
|
|
4903
|
+
listingId: z.coerce
|
|
4904
|
+
.bigint()
|
|
4905
|
+
.min(BigInt('-9223372036854775808'), {
|
|
4906
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
4907
|
+
})
|
|
4908
|
+
.max(BigInt('9223372036854775807'), {
|
|
4909
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
4910
|
+
}),
|
|
4911
|
+
postId: z.uuid(),
|
|
4912
|
+
}),
|
|
4913
|
+
query: z.optional(z.never()),
|
|
4914
|
+
});
|
|
4915
|
+
/**
|
|
4916
|
+
* Accepted
|
|
4917
|
+
*/
|
|
4918
|
+
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsByPostIdRetryResponse = zSocialPostView;
|
|
4611
4919
|
export const zPostContactsByContactIdPropertiesByPropertyIdListingsByListingIdResumeData = z.object({
|
|
4612
4920
|
body: z.optional(z.never()),
|
|
4613
4921
|
path: z.object({
|
|
@@ -4998,6 +5306,28 @@ export const zPostContactData = z.object({
|
|
|
4998
5306
|
* Created
|
|
4999
5307
|
*/
|
|
5000
5308
|
export const zPostContactResponse = zIdResponseLong;
|
|
5309
|
+
export const zPostContactByContactIdPropertyByPropertyIdExternalListingWithdrawData = z.object({
|
|
5310
|
+
body: zExternalListingWithdrawRequest,
|
|
5311
|
+
path: z.object({
|
|
5312
|
+
contactId: z.coerce
|
|
5313
|
+
.bigint()
|
|
5314
|
+
.min(BigInt('-9223372036854775808'), {
|
|
5315
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5316
|
+
})
|
|
5317
|
+
.max(BigInt('9223372036854775807'), {
|
|
5318
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5319
|
+
}),
|
|
5320
|
+
propertyId: z.coerce
|
|
5321
|
+
.bigint()
|
|
5322
|
+
.min(BigInt('-9223372036854775808'), {
|
|
5323
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
5324
|
+
})
|
|
5325
|
+
.max(BigInt('9223372036854775807'), {
|
|
5326
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
5327
|
+
}),
|
|
5328
|
+
}),
|
|
5329
|
+
query: z.optional(z.never()),
|
|
5330
|
+
});
|
|
5001
5331
|
export const zPostContactByContactIdPropertyByPropertyIdExternalListingPublishData = z.object({
|
|
5002
5332
|
body: zExternalListingPublishRequest,
|
|
5003
5333
|
path: z.object({
|
|
@@ -5210,6 +5540,10 @@ export const zGetSubscriptionsPaymentsData = z.object({
|
|
|
5210
5540
|
path: z.optional(z.never()),
|
|
5211
5541
|
query: z.optional(z.never()),
|
|
5212
5542
|
});
|
|
5543
|
+
/**
|
|
5544
|
+
* OK
|
|
5545
|
+
*/
|
|
5546
|
+
export const zGetSubscriptionsPaymentsResponse = z.array(zPaymentResponse);
|
|
5213
5547
|
export const zGetStatsPipelineCommissionData = z.object({
|
|
5214
5548
|
body: z.optional(z.never()),
|
|
5215
5549
|
path: z.optional(z.never()),
|
|
@@ -5654,6 +5988,7 @@ export const zGetListingData = z.object({
|
|
|
5654
5988
|
platforms: z.optional(z.array(z.enum(['SS', 'MY_HOME']))),
|
|
5655
5989
|
platformExpiresFrom: z.optional(z.iso.date()),
|
|
5656
5990
|
platformExpiresTo: z.optional(z.iso.date()),
|
|
5991
|
+
socialChannels: z.optional(z.array(z.enum(['FACEBOOK', 'INSTAGRAM']))),
|
|
5657
5992
|
boostTiers: z.optional(z.array(z.string())),
|
|
5658
5993
|
boostExpiresFrom: z.optional(z.iso.date()),
|
|
5659
5994
|
boostExpiresTo: z.optional(z.iso.date()),
|
|
@@ -5756,6 +6091,7 @@ export const zGetListingGroupsData = z.object({
|
|
|
5756
6091
|
platforms: z.optional(z.array(z.enum(['SS', 'MY_HOME']))),
|
|
5757
6092
|
platformExpiresFrom: z.optional(z.iso.date()),
|
|
5758
6093
|
platformExpiresTo: z.optional(z.iso.date()),
|
|
6094
|
+
socialChannels: z.optional(z.array(z.enum(['FACEBOOK', 'INSTAGRAM']))),
|
|
5759
6095
|
boostTiers: z.optional(z.array(z.string())),
|
|
5760
6096
|
boostExpiresFrom: z.optional(z.iso.date()),
|
|
5761
6097
|
boostExpiresTo: z.optional(z.iso.date()),
|
|
@@ -6072,6 +6408,77 @@ export const zGetConversationsByConversationIdUpdatesData = z.object({
|
|
|
6072
6408
|
* OK
|
|
6073
6409
|
*/
|
|
6074
6410
|
export const zGetConversationsByConversationIdUpdatesResponse = zThreadUpdates;
|
|
6411
|
+
export const zGetContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsByPostIdData = z.object({
|
|
6412
|
+
body: z.optional(z.never()),
|
|
6413
|
+
path: z.object({
|
|
6414
|
+
contactId: z.coerce
|
|
6415
|
+
.bigint()
|
|
6416
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6417
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6418
|
+
})
|
|
6419
|
+
.max(BigInt('9223372036854775807'), {
|
|
6420
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6421
|
+
}),
|
|
6422
|
+
propertyId: z.coerce
|
|
6423
|
+
.bigint()
|
|
6424
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6425
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6426
|
+
})
|
|
6427
|
+
.max(BigInt('9223372036854775807'), {
|
|
6428
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6429
|
+
}),
|
|
6430
|
+
listingId: z.coerce
|
|
6431
|
+
.bigint()
|
|
6432
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6433
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6434
|
+
})
|
|
6435
|
+
.max(BigInt('9223372036854775807'), {
|
|
6436
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6437
|
+
}),
|
|
6438
|
+
postId: z.uuid(),
|
|
6439
|
+
}),
|
|
6440
|
+
query: z.optional(z.never()),
|
|
6441
|
+
});
|
|
6442
|
+
/**
|
|
6443
|
+
* OK
|
|
6444
|
+
*/
|
|
6445
|
+
export const zGetContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsByPostIdResponse = zSocialPostView;
|
|
6446
|
+
export const zGetContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsPreviewData = z.object({
|
|
6447
|
+
body: z.optional(z.never()),
|
|
6448
|
+
path: z.object({
|
|
6449
|
+
contactId: z.coerce
|
|
6450
|
+
.bigint()
|
|
6451
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6452
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6453
|
+
})
|
|
6454
|
+
.max(BigInt('9223372036854775807'), {
|
|
6455
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6456
|
+
}),
|
|
6457
|
+
propertyId: z.coerce
|
|
6458
|
+
.bigint()
|
|
6459
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6460
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6461
|
+
})
|
|
6462
|
+
.max(BigInt('9223372036854775807'), {
|
|
6463
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6464
|
+
}),
|
|
6465
|
+
listingId: z.coerce
|
|
6466
|
+
.bigint()
|
|
6467
|
+
.min(BigInt('-9223372036854775808'), {
|
|
6468
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
6469
|
+
})
|
|
6470
|
+
.max(BigInt('9223372036854775807'), {
|
|
6471
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
6472
|
+
}),
|
|
6473
|
+
}),
|
|
6474
|
+
query: z.object({
|
|
6475
|
+
channel: z.enum(['FACEBOOK', 'INSTAGRAM']),
|
|
6476
|
+
}),
|
|
6477
|
+
});
|
|
6478
|
+
/**
|
|
6479
|
+
* OK
|
|
6480
|
+
*/
|
|
6481
|
+
export const zGetContactsByContactIdPropertiesByPropertyIdListingsByListingIdSocialPostsPreviewResponse = zComposerPreview;
|
|
6075
6482
|
export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsData = z.object({
|
|
6076
6483
|
body: z.optional(z.never()),
|
|
6077
6484
|
path: z.object({
|