@homespot-sdk/core 0.0.210 → 0.0.212

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.
Files changed (41) hide show
  1. package/dist/property/index.d.ts +2 -2
  2. package/dist/property/index.d.ts.map +1 -1
  3. package/dist/property/index.js +1 -1
  4. package/dist/property/index.js.map +1 -1
  5. package/dist/property/schemas.gen.d.ts +233 -233
  6. package/dist/property/schemas.gen.d.ts.map +1 -1
  7. package/dist/property/schemas.gen.js +280 -280
  8. package/dist/property/schemas.gen.js.map +1 -1
  9. package/dist/property/sdk.gen.d.ts +3 -2
  10. package/dist/property/sdk.gen.d.ts.map +1 -1
  11. package/dist/property/sdk.gen.js +16 -7
  12. package/dist/property/sdk.gen.js.map +1 -1
  13. package/dist/property/transformers.gen.d.ts +2 -2
  14. package/dist/property/transformers.gen.d.ts.map +1 -1
  15. package/dist/property/transformers.gen.js +9 -9
  16. package/dist/property/transformers.gen.js.map +1 -1
  17. package/dist/property/types.gen.d.ts +103 -91
  18. package/dist/property/types.gen.d.ts.map +1 -1
  19. package/dist/property/zod.gen.d.ts +604 -551
  20. package/dist/property/zod.gen.d.ts.map +1 -1
  21. package/dist/property/zod.gen.js +128 -123
  22. package/dist/property/zod.gen.js.map +1 -1
  23. package/dist/rem/index.d.ts +2 -2
  24. package/dist/rem/index.d.ts.map +1 -1
  25. package/dist/rem/index.js +1 -1
  26. package/dist/rem/index.js.map +1 -1
  27. package/dist/rem/schemas.gen.d.ts +46 -38
  28. package/dist/rem/schemas.gen.d.ts.map +1 -1
  29. package/dist/rem/schemas.gen.js +46 -36
  30. package/dist/rem/schemas.gen.js.map +1 -1
  31. package/dist/rem/sdk.gen.d.ts +3 -3
  32. package/dist/rem/sdk.gen.d.ts.map +1 -1
  33. package/dist/rem/sdk.gen.js +6 -6
  34. package/dist/rem/sdk.gen.js.map +1 -1
  35. package/dist/rem/types.gen.d.ts +43 -39
  36. package/dist/rem/types.gen.d.ts.map +1 -1
  37. package/dist/rem/zod.gen.d.ts +212 -187
  38. package/dist/rem/zod.gen.d.ts.map +1 -1
  39. package/dist/rem/zod.gen.js +110 -99
  40. package/dist/rem/zod.gen.js.map +1 -1
  41. package/package.json +1 -1
@@ -409,7 +409,25 @@ export const zAgencyProfileResponse = z.object({
409
409
  error: 'Invalid value: Expected int32 to be <= 2147483647',
410
410
  }),
411
411
  });
412
- export const zSchemaEnum = z.enum([
412
+ export const zSchemaEnum = z.enum(['MAYBE', 'DISLIKE', 'LIKE', 'VISIT']);
413
+ export const zRateRecommendationItemRequest = z.object({
414
+ decision: zSchemaEnum,
415
+ note: z.optional(z.string().min(0).max(100)),
416
+ });
417
+ export const zRecommendationDecisionResponse = z.object({
418
+ itemId: z.coerce
419
+ .bigint()
420
+ .min(BigInt('-9223372036854775808'), {
421
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
422
+ })
423
+ .max(BigInt('9223372036854775807'), {
424
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
425
+ }),
426
+ externalPropertyId: z.uuid(),
427
+ externalListingId: z.uuid(),
428
+ decision: zSchemaEnum,
429
+ });
430
+ export const zSchemaEnum2 = z.enum([
413
431
  'NEW',
414
432
  'ACTIVE',
415
433
  'PAYMENT_FAILED',
@@ -425,14 +443,14 @@ export const zAgencySummaryResponse = z.object({
425
443
  phone: z.string(),
426
444
  website: z.optional(z.string()),
427
445
  establishedYear: z.string(),
428
- status: zSchemaEnum,
446
+ status: zSchemaEnum2,
429
447
  logo: z.optional(z.string()),
430
448
  });
431
449
  export const zPagedModelAgencySummaryResponse = z.object({
432
450
  content: z.optional(z.array(zAgencySummaryResponse)),
433
451
  page: z.optional(zPageMetadata),
434
452
  });
435
- export const zSchemaEnum2 = z.enum([
453
+ export const zSchemaEnum3 = z.enum([
436
454
  'NEW',
437
455
  'ATTEMPTED_CONTACT',
438
456
  'CONTACTED',
@@ -485,7 +503,7 @@ export const zOrganizationSummaryViewResponse = z.object({
485
503
  memberId: z.uuid(),
486
504
  roleName: z.string(),
487
505
  permissions: z.array(zItemsEnum),
488
- status: zSchemaEnum,
506
+ status: zSchemaEnum2,
489
507
  });
490
508
  export const zUserContextViewResponse = z.object({
491
509
  user: zUserSummaryViewResponse,
@@ -628,6 +646,64 @@ export const zPropertyCreationRequest = z.object({
628
646
  title: z.string().min(1),
629
647
  description: z.record(z.string(), z.string()),
630
648
  });
649
+ export const zRecommendationsCardView = z.object({
650
+ recommendationItemId: z.coerce
651
+ .bigint()
652
+ .min(BigInt('-9223372036854775808'), {
653
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
654
+ })
655
+ .max(BigInt('9223372036854775807'), {
656
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
657
+ }),
658
+ decision: z.optional(zSchemaEnum),
659
+ clientNote: z.optional(z.string()),
660
+ ownerClientId: z.coerce
661
+ .bigint()
662
+ .min(BigInt('-9223372036854775808'), {
663
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
664
+ })
665
+ .max(BigInt('9223372036854775807'), {
666
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
667
+ }),
668
+ listingId: z.coerce
669
+ .bigint()
670
+ .min(BigInt('-9223372036854775808'), {
671
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
672
+ })
673
+ .max(BigInt('9223372036854775807'), {
674
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
675
+ }),
676
+ externalListingId: z.uuid(),
677
+ listingType: zListingTypeEnum,
678
+ price: z.number(),
679
+ propertyId: z.coerce
680
+ .bigint()
681
+ .min(BigInt('-9223372036854775808'), {
682
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
683
+ })
684
+ .max(BigInt('9223372036854775807'), {
685
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
686
+ }),
687
+ externalPropertyId: z.uuid(),
688
+ type: zPropertyTypeEnum,
689
+ coverPhoto: z.optional(z.string()),
690
+ photoCount: z.optional(z
691
+ .int()
692
+ .min(-2147483648, {
693
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
694
+ })
695
+ .max(2147483647, {
696
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
697
+ })),
698
+ totalArea: z.number(),
699
+ livingArea: z.optional(z.number()),
700
+ balconyArea: z.optional(z.number()),
701
+ address: zAddressResponse,
702
+ });
703
+ export const zPagedModelRecommendationsCardView = z.object({
704
+ content: z.optional(z.array(zRecommendationsCardView)),
705
+ page: z.optional(zPageMetadata),
706
+ });
631
707
  export const zIntentResponse = z.object({
632
708
  id: z.coerce
633
709
  .bigint()
@@ -790,8 +866,14 @@ export const zOnboardClientRequest = z.object({
790
866
  })),
791
867
  });
792
868
  export const zOnboardClientFromSourceResult = z.object({
793
- listingType: zListingTypeEnum,
794
- askingPrice: z.number(),
869
+ clientId: z.coerce
870
+ .bigint()
871
+ .min(BigInt('-9223372036854775808'), {
872
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
873
+ })
874
+ .max(BigInt('9223372036854775807'), {
875
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
876
+ }),
795
877
  firstName: z.optional(z.string()),
796
878
  lastName: z.optional(z.string()),
797
879
  gender: zGenderEnum,
@@ -801,6 +883,8 @@ export const zOnboardClientFromSourceResult = z.object({
801
883
  contactMethods: z.array(zItemsEnum2),
802
884
  favoriteContactMethod: z.optional(zItemsEnum2),
803
885
  priority: zPriorityEnum,
886
+ listingType: zListingTypeEnum,
887
+ askingPrice: z.number(),
804
888
  propertyCreationRequest: zPropertyCreationRequest,
805
889
  photosForUpload: z.array(zPresignedResult),
806
890
  });
@@ -822,74 +906,6 @@ export const zSocialMediaRequest = z.object({
822
906
  export const zSocialMediasRequest = z.object({
823
907
  data: z.array(zSocialMediaRequest).min(1).max(5),
824
908
  });
825
- export const zDecisionEnum = z.enum(['MAYBE', 'DISLIKE', 'LIKE', 'VISIT']);
826
- export const zRateRecommendationItemRequest = z.object({
827
- decision: zDecisionEnum,
828
- note: z.optional(z.string().min(0).max(100)),
829
- });
830
- export const zRecommendationsCardView = z.object({
831
- recommendationItemId: 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
- decision: z.optional(zDecisionEnum),
840
- clientNote: z.optional(z.string()),
841
- listingId: z.coerce
842
- .bigint()
843
- .min(BigInt('-9223372036854775808'), {
844
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
845
- })
846
- .max(BigInt('9223372036854775807'), {
847
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
848
- }),
849
- externalListingId: z.uuid(),
850
- listingType: zListingTypeEnum,
851
- price: z.number(),
852
- propertyId: z.coerce
853
- .bigint()
854
- .min(BigInt('-9223372036854775808'), {
855
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
856
- })
857
- .max(BigInt('9223372036854775807'), {
858
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
859
- }),
860
- externalPropertyId: z.uuid(),
861
- type: zPropertyTypeEnum,
862
- coverPhoto: z.optional(z.string()),
863
- photoCount: z.optional(z
864
- .int()
865
- .min(-2147483648, {
866
- error: 'Invalid value: Expected int32 to be >= -2147483648',
867
- })
868
- .max(2147483647, {
869
- error: 'Invalid value: Expected int32 to be <= 2147483647',
870
- })),
871
- totalArea: z.number(),
872
- livingArea: z.optional(z.number()),
873
- balconyArea: z.optional(z.number()),
874
- address: zAddressResponse,
875
- });
876
- export const zPagedModelRecommendationsCardView = z.object({
877
- content: z.optional(z.array(zRecommendationsCardView)),
878
- page: z.optional(zPageMetadata),
879
- });
880
- export const zRecommendationIdsResponse = z.object({
881
- itemId: z.coerce
882
- .bigint()
883
- .min(BigInt('-9223372036854775808'), {
884
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
885
- })
886
- .max(BigInt('9223372036854775807'), {
887
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
888
- }),
889
- externalPropertyId: z.uuid(),
890
- externalListingId: z.uuid(),
891
- decision: zDecisionEnum,
892
- });
893
909
  export const zOutcomeEnum = z.enum(['CONVERTED', 'LOST', 'DISQUALIFIED']);
894
910
  export const zRecordOutcomeRequest = z.object({
895
911
  outcome: zOutcomeEnum,
@@ -1062,7 +1078,7 @@ export const zLeadGridResponse = z.object({
1062
1078
  }),
1063
1079
  createdBy: z.uuid(),
1064
1080
  assignedTo: z.optional(z.uuid()),
1065
- status: zSchemaEnum2,
1081
+ status: zSchemaEnum3,
1066
1082
  contactFullName: z.optional(z.string()),
1067
1083
  contactGender: z.optional(zGenderEnum),
1068
1084
  contactPhoneNumber: z.string(),
@@ -1994,7 +2010,7 @@ export const zPostClientsByClientIdInterestsByInterestIdCancelledData = z.object
1994
2010
  * No Content
1995
2011
  */
1996
2012
  export const zPostClientsByClientIdInterestsByInterestIdCancelledResponse = z.void();
1997
- export const zPostClientsSourceStartData = z.object({
2013
+ export const zPostClientsSourceData = z.object({
1998
2014
  body: zCaptureClientFromSourceRequest,
1999
2015
  path: z.optional(z.never()),
2000
2016
  query: z.optional(z.never()),
@@ -2002,7 +2018,7 @@ export const zPostClientsSourceStartData = z.object({
2002
2018
  /**
2003
2019
  * Created
2004
2020
  */
2005
- export const zPostClientsSourceStartResponse = zOnboardClientFromSourceResult;
2021
+ export const zPostClientsSourceResponse = zOnboardClientFromSourceResult;
2006
2022
  export const zPostAgencyData = z.object({
2007
2023
  body: zCreateAgencyRequest,
2008
2024
  path: z.optional(z.never()),
@@ -2054,6 +2070,7 @@ export const zGetPublicRecomendationsByRecommendationsIdItemsData = z.object({
2054
2070
  recommendationsId: z.uuid(),
2055
2071
  }),
2056
2072
  query: z.optional(z.object({
2073
+ decision: z.optional(zSchemaEnum),
2057
2074
  page: z.optional(z.int().gte(0)).default(0),
2058
2075
  size: z.optional(z.int().gte(1)).default(20),
2059
2076
  sort: z.optional(z.array(z.string())),
@@ -2063,6 +2080,17 @@ export const zGetPublicRecomendationsByRecommendationsIdItemsData = z.object({
2063
2080
  * OK
2064
2081
  */
2065
2082
  export const zGetPublicRecomendationsByRecommendationsIdItemsResponse = zRecommendationResponse;
2083
+ export const zGetPublicRecomendationsByRecommendationsIdDecisionsData = z.object({
2084
+ body: z.optional(z.never()),
2085
+ path: z.object({
2086
+ recommendationsId: z.uuid(),
2087
+ }),
2088
+ query: z.optional(z.never()),
2089
+ });
2090
+ /**
2091
+ * OK
2092
+ */
2093
+ export const zGetPublicRecomendationsByRecommendationsIdDecisionsResponse = z.array(zRecommendationDecisionResponse);
2066
2094
  export const zGetPublicPermissionsData = z.object({
2067
2095
  body: z.optional(z.never()),
2068
2096
  path: z.optional(z.never()),
@@ -2089,7 +2117,7 @@ export const zGetPublicAgencyData = z.object({
2089
2117
  body: z.optional(z.never()),
2090
2118
  path: z.optional(z.never()),
2091
2119
  query: z.optional(z.object({
2092
- status: z.optional(zSchemaEnum),
2120
+ status: z.optional(zSchemaEnum2),
2093
2121
  page: z.optional(z.int().gte(0)).default(0),
2094
2122
  size: z.optional(z.int().gte(1)).default(10),
2095
2123
  sort: z.optional(z.array(z.string())).default(['name,ASC']),
@@ -2135,7 +2163,7 @@ export const zGetLeadData = z.object({
2135
2163
  body: z.optional(z.never()),
2136
2164
  path: z.optional(z.never()),
2137
2165
  query: z.optional(z.object({
2138
- status: z.optional(zSchemaEnum2),
2166
+ status: z.optional(zSchemaEnum3),
2139
2167
  isSearching: z.optional(z.boolean()),
2140
2168
  isListing: z.optional(z.boolean()),
2141
2169
  page: z.optional(z.int().gte(0)).default(0),
@@ -2169,7 +2197,7 @@ export const zGetLeadMineData = z.object({
2169
2197
  body: z.optional(z.never()),
2170
2198
  path: z.optional(z.never()),
2171
2199
  query: z.optional(z.object({
2172
- status: z.optional(zSchemaEnum2),
2200
+ status: z.optional(zSchemaEnum3),
2173
2201
  isSearching: z.optional(z.boolean()),
2174
2202
  isListing: z.optional(z.boolean()),
2175
2203
  page: z.optional(z.int().gte(0)).default(0),
@@ -2195,6 +2223,7 @@ export const zGetClientsByClientIdRecommendationsByRecommendationsIdData = z.obj
2195
2223
  recommendationsId: z.uuid(),
2196
2224
  }),
2197
2225
  query: z.optional(z.object({
2226
+ decision: z.optional(zSchemaEnum),
2198
2227
  page: z.optional(z.int().gte(0)).default(0),
2199
2228
  size: z.optional(z.int().gte(1)).default(20),
2200
2229
  sort: z.optional(z.array(z.string())),
@@ -2204,25 +2233,6 @@ export const zGetClientsByClientIdRecommendationsByRecommendationsIdData = z.obj
2204
2233
  * OK
2205
2234
  */
2206
2235
  export const zGetClientsByClientIdRecommendationsByRecommendationsIdResponse = zRecommendationResponse;
2207
- export const zGetClientsByClientIdRecommendationsByRecommendationsIdIdsData = z.object({
2208
- body: z.optional(z.never()),
2209
- path: z.object({
2210
- clientId: z.coerce
2211
- .bigint()
2212
- .min(BigInt('-9223372036854775808'), {
2213
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2214
- })
2215
- .max(BigInt('9223372036854775807'), {
2216
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2217
- }),
2218
- recommendationsId: z.uuid(),
2219
- }),
2220
- query: z.optional(z.never()),
2221
- });
2222
- /**
2223
- * OK
2224
- */
2225
- export const zGetClientsByClientIdRecommendationsByRecommendationsIdIdsResponse = z.array(zRecommendationIdsResponse);
2226
2236
  export const zGetClientsByClientIdRecommendationsInterestByInterestIdData = z.object({
2227
2237
  body: z.optional(z.never()),
2228
2238
  path: z.object({
@@ -2244,6 +2254,7 @@ export const zGetClientsByClientIdRecommendationsInterestByInterestIdData = z.ob
2244
2254
  }),
2245
2255
  }),
2246
2256
  query: z.optional(z.object({
2257
+ decision: z.optional(zSchemaEnum),
2247
2258
  page: z.optional(z.int().gte(0)).default(0),
2248
2259
  size: z.optional(z.int().gte(1)).default(20),
2249
2260
  sort: z.optional(z.array(z.string())),