@homespot-sdk/core 0.0.318 → 0.0.320
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/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 +427 -0
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +471 -0
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +6 -1
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +31 -1
- 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 +78 -0
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +189 -0
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +498 -0
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +362 -0
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/zod.gen.js
CHANGED
|
@@ -608,6 +608,296 @@ export const zUserContextViewResponse = z.object({
|
|
|
608
608
|
user: zUserSummaryViewResponse,
|
|
609
609
|
organizations: z.array(zOrganizationSummaryViewResponse),
|
|
610
610
|
});
|
|
611
|
+
export const zExpiringAgreement = z.object({
|
|
612
|
+
propertyId: z.optional(z.coerce
|
|
613
|
+
.bigint()
|
|
614
|
+
.min(BigInt('-9223372036854775808'), {
|
|
615
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
616
|
+
})
|
|
617
|
+
.max(BigInt('9223372036854775807'), {
|
|
618
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
619
|
+
})),
|
|
620
|
+
externalId: z.optional(z.uuid()),
|
|
621
|
+
title: z.optional(z.string()),
|
|
622
|
+
expiresAt: z.optional(z.iso.date()),
|
|
623
|
+
});
|
|
624
|
+
export const zExpiringPlatformListing = z.object({
|
|
625
|
+
platform: z.optional(z.enum(['SS', 'MY_HOME'])),
|
|
626
|
+
platformId: z.optional(z.coerce
|
|
627
|
+
.bigint()
|
|
628
|
+
.min(BigInt('-9223372036854775808'), {
|
|
629
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
630
|
+
})
|
|
631
|
+
.max(BigInt('9223372036854775807'), {
|
|
632
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
633
|
+
})),
|
|
634
|
+
propertyTitle: z.optional(z.string()),
|
|
635
|
+
expiresAt: z.optional(z.iso.date()),
|
|
636
|
+
});
|
|
637
|
+
export const zListingTypeAgg = z.object({
|
|
638
|
+
listingType: z.optional(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
|
|
639
|
+
count: z.optional(z.coerce
|
|
640
|
+
.bigint()
|
|
641
|
+
.min(BigInt('-9223372036854775808'), {
|
|
642
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
643
|
+
})
|
|
644
|
+
.max(BigInt('9223372036854775807'), {
|
|
645
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
646
|
+
})),
|
|
647
|
+
pipelineValue: z.optional(z.number()),
|
|
648
|
+
estimatedCommission: z.optional(z.number()),
|
|
649
|
+
});
|
|
650
|
+
export const zSlice = z.object({
|
|
651
|
+
key: z.string(),
|
|
652
|
+
count: z.coerce
|
|
653
|
+
.bigint()
|
|
654
|
+
.min(BigInt('-9223372036854775808'), {
|
|
655
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
656
|
+
})
|
|
657
|
+
.max(BigInt('9223372036854775807'), {
|
|
658
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
659
|
+
}),
|
|
660
|
+
});
|
|
661
|
+
export const zPortfolioStats = z.object({
|
|
662
|
+
propertiesByState: z.array(zSlice),
|
|
663
|
+
listings: z.array(zListingTypeAgg),
|
|
664
|
+
expiringAgreementsCount: z.coerce
|
|
665
|
+
.bigint()
|
|
666
|
+
.min(BigInt('-9223372036854775808'), {
|
|
667
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
668
|
+
})
|
|
669
|
+
.max(BigInt('9223372036854775807'), {
|
|
670
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
671
|
+
}),
|
|
672
|
+
expiringAgreements: z.array(zExpiringAgreement),
|
|
673
|
+
expiringPlatformCount: z.coerce
|
|
674
|
+
.bigint()
|
|
675
|
+
.min(BigInt('-9223372036854775808'), {
|
|
676
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
677
|
+
})
|
|
678
|
+
.max(BigInt('9223372036854775807'), {
|
|
679
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
680
|
+
}),
|
|
681
|
+
expiringPlatformListings: z.array(zExpiringPlatformListing),
|
|
682
|
+
});
|
|
683
|
+
export const zStatsEnvelopePortfolioStats = z.object({
|
|
684
|
+
period: z.string(),
|
|
685
|
+
computedAt: z.iso.datetime(),
|
|
686
|
+
data: zPortfolioStats,
|
|
687
|
+
});
|
|
688
|
+
export const zTrendPoint = z.object({
|
|
689
|
+
date: z.optional(z.iso.date()),
|
|
690
|
+
count: z.optional(z.coerce
|
|
691
|
+
.bigint()
|
|
692
|
+
.min(BigInt('-9223372036854775808'), {
|
|
693
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
694
|
+
})
|
|
695
|
+
.max(BigInt('9223372036854775807'), {
|
|
696
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
697
|
+
})),
|
|
698
|
+
});
|
|
699
|
+
export const zPipelineStats = z.object({
|
|
700
|
+
total: z.coerce
|
|
701
|
+
.bigint()
|
|
702
|
+
.min(BigInt('-9223372036854775808'), {
|
|
703
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
704
|
+
})
|
|
705
|
+
.max(BigInt('9223372036854775807'), {
|
|
706
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
707
|
+
}),
|
|
708
|
+
won: z.coerce
|
|
709
|
+
.bigint()
|
|
710
|
+
.min(BigInt('-9223372036854775808'), {
|
|
711
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
712
|
+
})
|
|
713
|
+
.max(BigInt('9223372036854775807'), {
|
|
714
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
715
|
+
}),
|
|
716
|
+
conversionRatePercent: z.number(),
|
|
717
|
+
unassigned: z.coerce
|
|
718
|
+
.bigint()
|
|
719
|
+
.min(BigInt('-9223372036854775808'), {
|
|
720
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
721
|
+
})
|
|
722
|
+
.max(BigInt('9223372036854775807'), {
|
|
723
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
724
|
+
}),
|
|
725
|
+
newContactsTrend: z.array(zTrendPoint),
|
|
726
|
+
status: z.array(zSlice),
|
|
727
|
+
sourceAttribution: z.array(zSlice),
|
|
728
|
+
lostReasons: z.array(zSlice),
|
|
729
|
+
});
|
|
730
|
+
export const zStatsEnvelopePipelineStats = z.object({
|
|
731
|
+
period: z.string(),
|
|
732
|
+
computedAt: z.iso.datetime(),
|
|
733
|
+
data: zPipelineStats,
|
|
734
|
+
});
|
|
735
|
+
export const zRow = z.object({
|
|
736
|
+
memberId: z.uuid(),
|
|
737
|
+
firstName: z.string(),
|
|
738
|
+
lastName: z.string(),
|
|
739
|
+
photo: z.string(),
|
|
740
|
+
contactsAssigned: z.coerce
|
|
741
|
+
.bigint()
|
|
742
|
+
.min(BigInt('-9223372036854775808'), {
|
|
743
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
744
|
+
})
|
|
745
|
+
.max(BigInt('9223372036854775807'), {
|
|
746
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
747
|
+
}),
|
|
748
|
+
converted: z.coerce
|
|
749
|
+
.bigint()
|
|
750
|
+
.min(BigInt('-9223372036854775808'), {
|
|
751
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
752
|
+
})
|
|
753
|
+
.max(BigInt('9223372036854775807'), {
|
|
754
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
755
|
+
}),
|
|
756
|
+
conversionRatePct: z.number(),
|
|
757
|
+
recommendationsSent: z.coerce
|
|
758
|
+
.bigint()
|
|
759
|
+
.min(BigInt('-9223372036854775808'), {
|
|
760
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
761
|
+
})
|
|
762
|
+
.max(BigInt('9223372036854775807'), {
|
|
763
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
764
|
+
}),
|
|
765
|
+
recommendationsRated: z.coerce
|
|
766
|
+
.bigint()
|
|
767
|
+
.min(BigInt('-9223372036854775808'), {
|
|
768
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
769
|
+
})
|
|
770
|
+
.max(BigInt('9223372036854775807'), {
|
|
771
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
772
|
+
}),
|
|
773
|
+
likeRatePct: z.number(),
|
|
774
|
+
});
|
|
775
|
+
export const zLeaderboardStats = z.object({
|
|
776
|
+
rows: z.array(zRow),
|
|
777
|
+
});
|
|
778
|
+
export const zStatsEnvelopeLeaderboardStats = z.object({
|
|
779
|
+
period: z.string(),
|
|
780
|
+
computedAt: z.iso.datetime(),
|
|
781
|
+
data: zLeaderboardStats,
|
|
782
|
+
});
|
|
783
|
+
export const zAwaitingConversation = z.object({
|
|
784
|
+
conversationId: z.uuid(),
|
|
785
|
+
contactId: z.coerce
|
|
786
|
+
.bigint()
|
|
787
|
+
.min(BigInt('-9223372036854775808'), {
|
|
788
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
789
|
+
})
|
|
790
|
+
.max(BigInt('9223372036854775807'), {
|
|
791
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
792
|
+
}),
|
|
793
|
+
channelType: z.enum(['FACEBOOK', 'INSTAGRAM', 'WHATSAPP']),
|
|
794
|
+
lastMessagePreview: z.string(),
|
|
795
|
+
lastInboundAt: z.iso.datetime(),
|
|
796
|
+
unreadCount: z
|
|
797
|
+
.int()
|
|
798
|
+
.min(-2147483648, {
|
|
799
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
800
|
+
})
|
|
801
|
+
.max(2147483647, {
|
|
802
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
803
|
+
}),
|
|
804
|
+
reachable: z.boolean(),
|
|
805
|
+
});
|
|
806
|
+
export const zInboxStats = z.object({
|
|
807
|
+
openConversations: z.coerce
|
|
808
|
+
.bigint()
|
|
809
|
+
.min(BigInt('-9223372036854775808'), {
|
|
810
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
811
|
+
})
|
|
812
|
+
.max(BigInt('9223372036854775807'), {
|
|
813
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
814
|
+
}),
|
|
815
|
+
unreadMessages: z.coerce
|
|
816
|
+
.bigint()
|
|
817
|
+
.min(BigInt('-9223372036854775808'), {
|
|
818
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
819
|
+
})
|
|
820
|
+
.max(BigInt('9223372036854775807'), {
|
|
821
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
822
|
+
}),
|
|
823
|
+
newConversations: z.coerce
|
|
824
|
+
.bigint()
|
|
825
|
+
.min(BigInt('-9223372036854775808'), {
|
|
826
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
827
|
+
})
|
|
828
|
+
.max(BigInt('9223372036854775807'), {
|
|
829
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
830
|
+
}),
|
|
831
|
+
awaitingReplyCount: z.coerce
|
|
832
|
+
.bigint()
|
|
833
|
+
.min(BigInt('-9223372036854775808'), {
|
|
834
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
835
|
+
})
|
|
836
|
+
.max(BigInt('9223372036854775807'), {
|
|
837
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
838
|
+
}),
|
|
839
|
+
awaitingUnreachableCount: z.coerce
|
|
840
|
+
.bigint()
|
|
841
|
+
.min(BigInt('-9223372036854775808'), {
|
|
842
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
843
|
+
})
|
|
844
|
+
.max(BigInt('9223372036854775807'), {
|
|
845
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
846
|
+
}),
|
|
847
|
+
awaitingReply: z.array(zAwaitingConversation),
|
|
848
|
+
medianResponseSeconds: z.coerce
|
|
849
|
+
.bigint()
|
|
850
|
+
.min(BigInt('-9223372036854775808'), {
|
|
851
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
852
|
+
})
|
|
853
|
+
.max(BigInt('9223372036854775807'), {
|
|
854
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
855
|
+
}),
|
|
856
|
+
inboundByChannel: z.array(zSlice),
|
|
857
|
+
});
|
|
858
|
+
export const zStatsEnvelopeInboxStats = z.object({
|
|
859
|
+
period: z.string(),
|
|
860
|
+
computedAt: z.iso.datetime(),
|
|
861
|
+
data: zInboxStats,
|
|
862
|
+
});
|
|
863
|
+
export const zDistrictDemand = z.object({
|
|
864
|
+
districtId: z.optional(z.coerce
|
|
865
|
+
.bigint()
|
|
866
|
+
.min(BigInt('-9223372036854775808'), {
|
|
867
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
868
|
+
})
|
|
869
|
+
.max(BigInt('9223372036854775807'), {
|
|
870
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
871
|
+
})),
|
|
872
|
+
name: z.optional(z.string()),
|
|
873
|
+
count: z.optional(z.coerce
|
|
874
|
+
.bigint()
|
|
875
|
+
.min(BigInt('-9223372036854775808'), {
|
|
876
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
877
|
+
})
|
|
878
|
+
.max(BigInt('9223372036854775807'), {
|
|
879
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
880
|
+
})),
|
|
881
|
+
});
|
|
882
|
+
export const zDemandStats = z.object({
|
|
883
|
+
activeInterests: z.optional(z.coerce
|
|
884
|
+
.bigint()
|
|
885
|
+
.min(BigInt('-9223372036854775808'), {
|
|
886
|
+
error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
|
|
887
|
+
})
|
|
888
|
+
.max(BigInt('9223372036854775807'), {
|
|
889
|
+
error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
|
|
890
|
+
})),
|
|
891
|
+
byListingType: z.optional(z.array(zSlice)),
|
|
892
|
+
byPropertyType: z.optional(z.array(zSlice)),
|
|
893
|
+
budgetBuckets: z.optional(z.array(zSlice)),
|
|
894
|
+
topDistricts: z.optional(z.array(zDistrictDemand)),
|
|
895
|
+
});
|
|
896
|
+
export const zStatsEnvelopeDemandStats = z.object({
|
|
897
|
+
period: z.string(),
|
|
898
|
+
computedAt: z.iso.datetime(),
|
|
899
|
+
data: zDemandStats,
|
|
900
|
+
});
|
|
611
901
|
export const zPageMetadata = z.object({
|
|
612
902
|
size: z.optional(z.coerce
|
|
613
903
|
.bigint()
|
|
@@ -3027,6 +3317,78 @@ export const zGetUserMeData = z.object({
|
|
|
3027
3317
|
* OK
|
|
3028
3318
|
*/
|
|
3029
3319
|
export const zGetUserMeResponse = zUserContextViewResponse;
|
|
3320
|
+
export const zGetStatisticsPortfolioData = z.object({
|
|
3321
|
+
body: z.optional(z.never()),
|
|
3322
|
+
path: z.optional(z.never()),
|
|
3323
|
+
query: z.optional(z.object({
|
|
3324
|
+
agreementWindowDays: z
|
|
3325
|
+
.optional(z
|
|
3326
|
+
.int()
|
|
3327
|
+
.min(-2147483648, {
|
|
3328
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3329
|
+
})
|
|
3330
|
+
.max(2147483647, {
|
|
3331
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3332
|
+
}))
|
|
3333
|
+
.default(30),
|
|
3334
|
+
platformWindowDays: z
|
|
3335
|
+
.optional(z
|
|
3336
|
+
.int()
|
|
3337
|
+
.min(-2147483648, {
|
|
3338
|
+
error: 'Invalid value: Expected int32 to be >= -2147483648',
|
|
3339
|
+
})
|
|
3340
|
+
.max(2147483647, {
|
|
3341
|
+
error: 'Invalid value: Expected int32 to be <= 2147483647',
|
|
3342
|
+
}))
|
|
3343
|
+
.default(7),
|
|
3344
|
+
})),
|
|
3345
|
+
});
|
|
3346
|
+
/**
|
|
3347
|
+
* OK
|
|
3348
|
+
*/
|
|
3349
|
+
export const zGetStatisticsPortfolioResponse = zStatsEnvelopePortfolioStats;
|
|
3350
|
+
export const zGetStatisticsPipelineData = z.object({
|
|
3351
|
+
body: z.optional(z.never()),
|
|
3352
|
+
path: z.optional(z.never()),
|
|
3353
|
+
query: z.optional(z.object({
|
|
3354
|
+
period: z.optional(z.string()).default('30d'),
|
|
3355
|
+
})),
|
|
3356
|
+
});
|
|
3357
|
+
/**
|
|
3358
|
+
* OK
|
|
3359
|
+
*/
|
|
3360
|
+
export const zGetStatisticsPipelineResponse = zStatsEnvelopePipelineStats;
|
|
3361
|
+
export const zGetStatisticsLeaderboardData = z.object({
|
|
3362
|
+
body: z.optional(z.never()),
|
|
3363
|
+
path: z.optional(z.never()),
|
|
3364
|
+
query: z.optional(z.object({
|
|
3365
|
+
period: z.optional(z.string()).default('30d'),
|
|
3366
|
+
})),
|
|
3367
|
+
});
|
|
3368
|
+
/**
|
|
3369
|
+
* OK
|
|
3370
|
+
*/
|
|
3371
|
+
export const zGetStatisticsLeaderboardResponse = zStatsEnvelopeLeaderboardStats;
|
|
3372
|
+
export const zGetStatisticsInboxData = z.object({
|
|
3373
|
+
body: z.optional(z.never()),
|
|
3374
|
+
path: z.optional(z.never()),
|
|
3375
|
+
query: z.optional(z.object({
|
|
3376
|
+
period: z.optional(z.string()).default('30d'),
|
|
3377
|
+
})),
|
|
3378
|
+
});
|
|
3379
|
+
/**
|
|
3380
|
+
* OK
|
|
3381
|
+
*/
|
|
3382
|
+
export const zGetStatisticsInboxResponse = zStatsEnvelopeInboxStats;
|
|
3383
|
+
export const zGetStatisticsDemandData = z.object({
|
|
3384
|
+
body: z.optional(z.never()),
|
|
3385
|
+
path: z.optional(z.never()),
|
|
3386
|
+
query: z.optional(z.never()),
|
|
3387
|
+
});
|
|
3388
|
+
/**
|
|
3389
|
+
* OK
|
|
3390
|
+
*/
|
|
3391
|
+
export const zGetStatisticsDemandResponse = zStatsEnvelopeDemandStats;
|
|
3030
3392
|
export const zGetPublicRecomendationsByTokenItemsData = z.object({
|
|
3031
3393
|
body: z.optional(z.never()),
|
|
3032
3394
|
path: z.object({
|