@homespot-sdk/core 0.0.325 → 0.0.327

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.
@@ -1031,6 +1031,106 @@ export const zAddressResponse = z.object({
1031
1031
  lat: z.number(),
1032
1032
  lng: z.number(),
1033
1033
  });
1034
+ export const zBoundingBox = z.object({
1035
+ minLat: z.number(),
1036
+ maxLat: z.number(),
1037
+ minLng: z.number(),
1038
+ maxLng: z.number(),
1039
+ });
1040
+ export const zRangeBigDecimal = z.object({
1041
+ min: z.optional(z.number()),
1042
+ max: z.optional(z.number()),
1043
+ });
1044
+ export const zRangeDouble = z.object({
1045
+ min: z.optional(z.number()),
1046
+ max: z.optional(z.number()),
1047
+ });
1048
+ export const zRangeInteger = z.object({
1049
+ min: z.optional(z
1050
+ .int()
1051
+ .min(-2147483648, {
1052
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1053
+ })
1054
+ .max(2147483647, {
1055
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1056
+ })),
1057
+ max: z.optional(z
1058
+ .int()
1059
+ .min(-2147483648, {
1060
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1061
+ })
1062
+ .max(2147483647, {
1063
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1064
+ })),
1065
+ });
1066
+ export const zCriteria = z.object({
1067
+ propertyTypes: z.array(z.enum([
1068
+ 'HOUSE',
1069
+ 'TOWN_HOUSE',
1070
+ 'COUNTRY_HOUSE',
1071
+ 'VILLA',
1072
+ 'COTTAGE',
1073
+ 'APARTMENT',
1074
+ 'DUPLEX',
1075
+ 'TRIPLEX',
1076
+ 'SEMI_BASEMENT',
1077
+ 'ATTIC',
1078
+ 'AGRICULTURAL_LAND',
1079
+ 'RESIDENTIAL_LAND',
1080
+ 'HOTEL_ROOM',
1081
+ 'MOTEL_ROOM',
1082
+ 'CO_LIVING_SPACE',
1083
+ 'OFFICE',
1084
+ 'COMMERCIAL_SPACE',
1085
+ 'CO_WORKING_SPACE',
1086
+ 'WAREHOUSE',
1087
+ 'GARAGE',
1088
+ ])),
1089
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
1090
+ budget: z.optional(zRangeBigDecimal),
1091
+ bedrooms: z.optional(zRangeInteger),
1092
+ bathrooms: z.optional(zRangeInteger),
1093
+ totalArea: z.optional(zRangeDouble),
1094
+ livingArea: z.optional(zRangeDouble),
1095
+ region: z.optional(zLocationResponse),
1096
+ district: z.optional(zLocationResponse),
1097
+ subDistrict: z.optional(zLocationResponse),
1098
+ street: z.optional(zLocationResponse),
1099
+ });
1100
+ export const zRecommendationStats = z.object({
1101
+ total: z
1102
+ .int()
1103
+ .min(-2147483648, {
1104
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1105
+ })
1106
+ .max(2147483647, {
1107
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1108
+ }),
1109
+ liked: z
1110
+ .int()
1111
+ .min(-2147483648, {
1112
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1113
+ })
1114
+ .max(2147483647, {
1115
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1116
+ }),
1117
+ disliked: z
1118
+ .int()
1119
+ .min(-2147483648, {
1120
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1121
+ })
1122
+ .max(2147483647, {
1123
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1124
+ }),
1125
+ undecided: z
1126
+ .int()
1127
+ .min(-2147483648, {
1128
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
1129
+ })
1130
+ .max(2147483647, {
1131
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
1132
+ }),
1133
+ });
1034
1134
  export const zRecommendationsCardView = z.object({
1035
1135
  decision: z.optional(z.enum(['MAYBE', 'DISLIKE', 'LIKE'])),
1036
1136
  clientNote: z.optional(z.string()),
@@ -1102,11 +1202,22 @@ export const zPagedModelRecommendationsCardView = z.object({
1102
1202
  content: z.optional(z.array(zRecommendationsCardView)),
1103
1203
  page: z.optional(zPageMetadata),
1104
1204
  });
1105
- export const zRecommendationResponse = z.object({
1106
- shareToken: z.uuid(),
1205
+ export const zInterestResponse = z.object({
1206
+ id: z.coerce
1207
+ .bigint()
1208
+ .min(BigInt('-9223372036854775808'), {
1209
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1210
+ })
1211
+ .max(BigInt('9223372036854775807'), {
1212
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1213
+ }),
1107
1214
  title: z.string(),
1108
- createdAt: z.iso.datetime(),
1109
1215
  status: z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']),
1216
+ shareToken: z.uuid(),
1217
+ createdAt: z.iso.datetime(),
1218
+ criteria: zCriteria,
1219
+ recommendationStats: zRecommendationStats,
1220
+ boundedBox: z.optional(zBoundingBox),
1110
1221
  recommendations: zPagedModelRecommendationsCardView,
1111
1222
  });
1112
1223
  export const zRecommendationDecisionResponse = z.object({
@@ -1879,116 +1990,6 @@ export const zCursorPageMessageView = z.object({
1879
1990
  nextCursor: z.optional(z.string()),
1880
1991
  hasNext: z.optional(z.boolean()),
1881
1992
  });
1882
- export const zRangeBigDecimal = z.object({
1883
- min: z.optional(z.number()),
1884
- max: z.optional(z.number()),
1885
- });
1886
- export const zRangeDouble = z.object({
1887
- min: z.optional(z.number()),
1888
- max: z.optional(z.number()),
1889
- });
1890
- export const zRangeInteger = z.object({
1891
- min: z.optional(z
1892
- .int()
1893
- .min(-2147483648, {
1894
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1895
- })
1896
- .max(2147483647, {
1897
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1898
- })),
1899
- max: z.optional(z
1900
- .int()
1901
- .min(-2147483648, {
1902
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1903
- })
1904
- .max(2147483647, {
1905
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1906
- })),
1907
- });
1908
- export const zCriteria = z.object({
1909
- propertyTypes: z.array(z.enum([
1910
- 'HOUSE',
1911
- 'TOWN_HOUSE',
1912
- 'COUNTRY_HOUSE',
1913
- 'VILLA',
1914
- 'COTTAGE',
1915
- 'APARTMENT',
1916
- 'DUPLEX',
1917
- 'TRIPLEX',
1918
- 'SEMI_BASEMENT',
1919
- 'ATTIC',
1920
- 'AGRICULTURAL_LAND',
1921
- 'RESIDENTIAL_LAND',
1922
- 'HOTEL_ROOM',
1923
- 'MOTEL_ROOM',
1924
- 'CO_LIVING_SPACE',
1925
- 'OFFICE',
1926
- 'COMMERCIAL_SPACE',
1927
- 'CO_WORKING_SPACE',
1928
- 'WAREHOUSE',
1929
- 'GARAGE',
1930
- ])),
1931
- listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
1932
- budget: z.optional(zRangeBigDecimal),
1933
- bedrooms: z.optional(zRangeInteger),
1934
- bathrooms: z.optional(zRangeInteger),
1935
- totalArea: z.optional(zRangeDouble),
1936
- livingArea: z.optional(zRangeDouble),
1937
- region: z.optional(zLocationResponse),
1938
- district: z.optional(zLocationResponse),
1939
- subDistrict: z.optional(zLocationResponse),
1940
- street: z.optional(zLocationResponse),
1941
- });
1942
- export const zRecommendationStats = z.object({
1943
- total: z
1944
- .int()
1945
- .min(-2147483648, {
1946
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1947
- })
1948
- .max(2147483647, {
1949
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1950
- }),
1951
- liked: z
1952
- .int()
1953
- .min(-2147483648, {
1954
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1955
- })
1956
- .max(2147483647, {
1957
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1958
- }),
1959
- disliked: z
1960
- .int()
1961
- .min(-2147483648, {
1962
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1963
- })
1964
- .max(2147483647, {
1965
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1966
- }),
1967
- undecided: z
1968
- .int()
1969
- .min(-2147483648, {
1970
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1971
- })
1972
- .max(2147483647, {
1973
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1974
- }),
1975
- });
1976
- export const zInterestResponse = z.object({
1977
- id: z.coerce
1978
- .bigint()
1979
- .min(BigInt('-9223372036854775808'), {
1980
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1981
- })
1982
- .max(BigInt('9223372036854775807'), {
1983
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1984
- }),
1985
- title: z.string(),
1986
- status: z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']),
1987
- shareToken: z.uuid(),
1988
- createdAt: z.iso.datetime(),
1989
- criteria: zCriteria,
1990
- recommendations: zRecommendationStats,
1991
- });
1992
1993
  export const zCommentView = z.object({
1993
1994
  id: z.uuid(),
1994
1995
  contactId: z.coerce
@@ -2075,6 +2076,22 @@ export const zContactInfoResponse = z.object({
2075
2076
  phoneNumber: z.string(),
2076
2077
  email: z.optional(z.string()),
2077
2078
  });
2079
+ export const zContactInterestResponse = z.object({
2080
+ id: z.coerce
2081
+ .bigint()
2082
+ .min(BigInt('-9223372036854775808'), {
2083
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2084
+ })
2085
+ .max(BigInt('9223372036854775807'), {
2086
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2087
+ }),
2088
+ title: z.string(),
2089
+ status: z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']),
2090
+ shareToken: z.uuid(),
2091
+ createdAt: z.iso.datetime(),
2092
+ criteria: zCriteria,
2093
+ recommendations: zRecommendationStats,
2094
+ });
2078
2095
  export const zContactPropertyResponse = z.object({
2079
2096
  publicId: z.coerce
2080
2097
  .bigint()
@@ -2163,7 +2180,7 @@ export const zClient360Response = z.object({
2163
2180
  ]),
2164
2181
  createdAt: z.iso.datetime(),
2165
2182
  updatedAt: z.iso.datetime(),
2166
- interests: z.array(zInterestResponse),
2183
+ interests: z.array(zContactInterestResponse),
2167
2184
  properties: z.array(zContactPropertyResponse),
2168
2185
  });
2169
2186
  export const zAssignedAgent = z.object({
@@ -2196,25 +2213,170 @@ export const zPhoneDuplicateCheckResponse = z.object({
2196
2213
  policy: z.enum(['ALLOW', 'WARN', 'PREVENT']),
2197
2214
  matches: z.array(zDuplicateContactInfo),
2198
2215
  });
2199
- export const zAddressViewResponse = z.object({
2200
- country: z.string(),
2201
- city: z.string(),
2202
- district: z.string(),
2203
- subdistrict: z.string(),
2204
- street: z.string(),
2216
+ export const zPreview = z.object({
2217
+ type: z.string(),
2205
2218
  });
2206
- export const zAgencyProfileResponse = z.object({
2207
- name: z.string(),
2208
- email: z.string(),
2209
- seats: z
2210
- .int()
2211
- .min(-2147483648, {
2212
- error: 'Invalid value: Expected int32 to be >= -2147483648',
2219
+ export const zInterestPreview = zPreview.and(z.object({
2220
+ interestId: z.coerce
2221
+ .bigint()
2222
+ .min(BigInt('-9223372036854775808'), {
2223
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2213
2224
  })
2214
- .max(2147483647, {
2215
- error: 'Invalid value: Expected int32 to be <= 2147483647',
2225
+ .max(BigInt('9223372036854775807'), {
2226
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2216
2227
  }),
2217
- subdomain: z.string(),
2228
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
2229
+ propertyTypes: z.array(z.enum([
2230
+ 'HOUSE',
2231
+ 'TOWN_HOUSE',
2232
+ 'COUNTRY_HOUSE',
2233
+ 'VILLA',
2234
+ 'COTTAGE',
2235
+ 'APARTMENT',
2236
+ 'DUPLEX',
2237
+ 'TRIPLEX',
2238
+ 'SEMI_BASEMENT',
2239
+ 'ATTIC',
2240
+ 'AGRICULTURAL_LAND',
2241
+ 'RESIDENTIAL_LAND',
2242
+ 'HOTEL_ROOM',
2243
+ 'MOTEL_ROOM',
2244
+ 'CO_LIVING_SPACE',
2245
+ 'OFFICE',
2246
+ 'COMMERCIAL_SPACE',
2247
+ 'CO_WORKING_SPACE',
2248
+ 'WAREHOUSE',
2249
+ 'GARAGE',
2250
+ ])),
2251
+ budget: z.optional(zRangeBigDecimal),
2252
+ primaryLocation: z.optional(zLocationResponse),
2253
+ recommendationCount: z
2254
+ .int()
2255
+ .min(-2147483648, {
2256
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2257
+ })
2258
+ .max(2147483647, {
2259
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2260
+ }),
2261
+ type: z.literal('INTEREST'),
2262
+ }));
2263
+ export const zPropertyPreview = zPreview.and(z.object({
2264
+ propertyId: z.coerce
2265
+ .bigint()
2266
+ .min(BigInt('-9223372036854775808'), {
2267
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2268
+ })
2269
+ .max(BigInt('9223372036854775807'), {
2270
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2271
+ }),
2272
+ propertyType: z.enum([
2273
+ 'HOUSE',
2274
+ 'TOWN_HOUSE',
2275
+ 'COUNTRY_HOUSE',
2276
+ 'VILLA',
2277
+ 'COTTAGE',
2278
+ 'APARTMENT',
2279
+ 'DUPLEX',
2280
+ 'TRIPLEX',
2281
+ 'SEMI_BASEMENT',
2282
+ 'ATTIC',
2283
+ 'AGRICULTURAL_LAND',
2284
+ 'RESIDENTIAL_LAND',
2285
+ 'HOTEL_ROOM',
2286
+ 'MOTEL_ROOM',
2287
+ 'CO_LIVING_SPACE',
2288
+ 'OFFICE',
2289
+ 'COMMERCIAL_SPACE',
2290
+ 'CO_WORKING_SPACE',
2291
+ 'WAREHOUSE',
2292
+ 'GARAGE',
2293
+ ]),
2294
+ state: z.enum([
2295
+ 'IN_REGISTRATION',
2296
+ 'UNLISTED',
2297
+ 'LISTED_INTERNALLY',
2298
+ 'LISTED',
2299
+ 'CLOSED',
2300
+ ]),
2301
+ title: z.optional(z.string()),
2302
+ coverUrl: z.optional(z.string()),
2303
+ listingTypes: z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'])),
2304
+ type: z.literal('PROPERTY'),
2305
+ }));
2306
+ export const zCard = z.object({
2307
+ contactId: z.coerce
2308
+ .bigint()
2309
+ .min(BigInt('-9223372036854775808'), {
2310
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2311
+ })
2312
+ .max(BigInt('9223372036854775807'), {
2313
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2314
+ }),
2315
+ contactName: z.optional(z.string()),
2316
+ phoneNumber: z.optional(z.string()),
2317
+ priority: z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']),
2318
+ status: z.enum([
2319
+ 'NEW',
2320
+ 'ON_HOLD',
2321
+ 'COLD',
2322
+ 'WARM',
2323
+ 'HOT',
2324
+ 'WAITING_PAYMENT',
2325
+ 'LOST',
2326
+ 'WON',
2327
+ ]),
2328
+ assignedTo: z.optional(zAssignedToResponse),
2329
+ totalCommission: z.number(),
2330
+ preview: z.optional(z.union([zInterestPreview, zPropertyPreview])),
2331
+ });
2332
+ export const zPagedModelCard = z.object({
2333
+ content: z.optional(z.array(zCard)),
2334
+ page: z.optional(zPageMetadata),
2335
+ });
2336
+ export const zColumn = z.object({
2337
+ status: z.enum([
2338
+ 'NEW',
2339
+ 'ON_HOLD',
2340
+ 'COLD',
2341
+ 'WARM',
2342
+ 'HOT',
2343
+ 'WAITING_PAYMENT',
2344
+ 'LOST',
2345
+ 'WON',
2346
+ ]),
2347
+ totalCommission: z.number(),
2348
+ totalContacts: z.coerce
2349
+ .bigint()
2350
+ .min(BigInt('-9223372036854775808'), {
2351
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2352
+ })
2353
+ .max(BigInt('9223372036854775807'), {
2354
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2355
+ }),
2356
+ cards: zPagedModelCard,
2357
+ });
2358
+ export const zContactKanbanResponse = z.object({
2359
+ columns: z.array(zColumn),
2360
+ });
2361
+ export const zAddressViewResponse = z.object({
2362
+ country: z.string(),
2363
+ city: z.string(),
2364
+ district: z.string(),
2365
+ subdistrict: z.string(),
2366
+ street: z.string(),
2367
+ });
2368
+ export const zAgencyProfileResponse = z.object({
2369
+ name: z.string(),
2370
+ email: z.string(),
2371
+ seats: z
2372
+ .int()
2373
+ .min(-2147483648, {
2374
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2375
+ })
2376
+ .max(2147483647, {
2377
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2378
+ }),
2379
+ subdomain: z.string(),
2218
2380
  phone: z.string(),
2219
2381
  duplicatePolicy: z.enum(['ALLOW', 'WARN', 'PREVENT']),
2220
2382
  contactAssignPolicy: z.enum(['MANUAL', 'ROUND_ROBIN', 'SMART']),
@@ -2537,7 +2699,16 @@ export const zGetContactsByContactIdInterestsByInterestIdData = z.object({
2537
2699
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2538
2700
  }),
2539
2701
  }),
2540
- query: z.optional(z.never()),
2702
+ query: z.optional(z.object({
2703
+ decision: z.optional(z.enum(['MAYBE', 'DISLIKE', 'LIKE'])),
2704
+ swLat: z.optional(z.number()),
2705
+ swLng: z.optional(z.number()),
2706
+ neLat: z.optional(z.number()),
2707
+ neLng: z.optional(z.number()),
2708
+ page: z.optional(z.int().gte(0)).default(0),
2709
+ size: z.optional(z.int().gte(1)).default(20),
2710
+ sort: z.optional(z.array(z.string())),
2711
+ })),
2541
2712
  });
2542
2713
  /**
2543
2714
  * OK
@@ -2886,6 +3057,24 @@ export const zPutContactByContactIdAssignmentData = z.object({
2886
3057
  * No Content
2887
3058
  */
2888
3059
  export const zPutContactByContactIdAssignmentResponse = z.void();
3060
+ export const zPutContactByContactIdArchiveData = z.object({
3061
+ body: z.optional(z.never()),
3062
+ path: z.object({
3063
+ contactId: z.coerce
3064
+ .bigint()
3065
+ .min(BigInt('-9223372036854775808'), {
3066
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3067
+ })
3068
+ .max(BigInt('9223372036854775807'), {
3069
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3070
+ }),
3071
+ }),
3072
+ query: z.optional(z.never()),
3073
+ });
3074
+ /**
3075
+ * No Content
3076
+ */
3077
+ export const zPutContactByContactIdArchiveResponse = z.void();
2889
3078
  export const zPutContactMergeData = z.object({
2890
3079
  body: zContactMergeRequest,
2891
3080
  path: z.optional(z.never()),
@@ -3805,6 +3994,7 @@ export const zGetContactData = z.object({
3805
3994
  .max(2147483647, {
3806
3995
  error: 'Invalid value: Expected int32 to be <= 2147483647',
3807
3996
  })),
3997
+ includeArchived: z.optional(z.boolean()).default(false),
3808
3998
  page: z.optional(z.int().gte(0)).default(0),
3809
3999
  size: z.optional(z.int().gte(1)).default(20),
3810
4000
  sort: z.optional(z.array(z.string())),
@@ -3991,6 +4181,10 @@ export const zGetPublicRecomendationsByTokenItemsData = z.object({
3991
4181
  }),
3992
4182
  query: z.optional(z.object({
3993
4183
  decision: z.optional(z.enum(['MAYBE', 'DISLIKE', 'LIKE'])),
4184
+ swLat: z.optional(z.number()),
4185
+ swLng: z.optional(z.number()),
4186
+ neLat: z.optional(z.number()),
4187
+ neLng: z.optional(z.number()),
3994
4188
  page: z.optional(z.int().gte(0)).default(0),
3995
4189
  size: z.optional(z.int().gte(1)).default(20),
3996
4190
  sort: z.optional(z.array(z.string())),
@@ -3999,7 +4193,7 @@ export const zGetPublicRecomendationsByTokenItemsData = z.object({
3999
4193
  /**
4000
4194
  * OK
4001
4195
  */
4002
- export const zGetPublicRecomendationsByTokenItemsResponse = zRecommendationResponse;
4196
+ export const zGetPublicRecomendationsByTokenItemsResponse = zInterestResponse;
4003
4197
  export const zGetPublicRecomendationsByTokenDecisionsData = z.object({
4004
4198
  body: z.optional(z.never()),
4005
4199
  path: z.object({
@@ -4595,7 +4789,7 @@ export const zGetConversationsByConversationIdUpdatesData = z.object({
4595
4789
  * OK
4596
4790
  */
4597
4791
  export const zGetConversationsByConversationIdUpdatesResponse = zThreadUpdates;
4598
- export const zGetContactsByContactIdInterestsByInterestIdRecommendationsData = z.object({
4792
+ export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsData = z.object({
4599
4793
  body: z.optional(z.never()),
4600
4794
  path: z.object({
4601
4795
  contactId: z.coerce
@@ -4615,17 +4809,30 @@ export const zGetContactsByContactIdInterestsByInterestIdRecommendationsData = z
4615
4809
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4616
4810
  }),
4617
4811
  }),
4618
- query: z.optional(z.object({
4619
- decision: z.optional(z.enum(['MAYBE', 'DISLIKE', 'LIKE'])),
4620
- page: z.optional(z.int().gte(0)).default(0),
4621
- size: z.optional(z.int().gte(1)).default(20),
4622
- sort: z.optional(z.array(z.string())),
4623
- })),
4812
+ query: z.optional(z.never()),
4624
4813
  });
4625
4814
  /**
4626
4815
  * OK
4627
4816
  */
4628
- export const zGetContactsByContactIdInterestsByInterestIdRecommendationsResponse = zRecommendationResponse;
4817
+ export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponse = z.array(zRecommendationDecisionResponse);
4818
+ export const zDeleteContactByContactIdData = z.object({
4819
+ body: z.optional(z.never()),
4820
+ path: z.object({
4821
+ contactId: z.coerce
4822
+ .bigint()
4823
+ .min(BigInt('-9223372036854775808'), {
4824
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
4825
+ })
4826
+ .max(BigInt('9223372036854775807'), {
4827
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4828
+ }),
4829
+ }),
4830
+ query: z.optional(z.never()),
4831
+ });
4832
+ /**
4833
+ * No Content
4834
+ */
4835
+ export const zDeleteContactByContactIdResponse = z.void();
4629
4836
  export const zGetContactByContactIdData = z.object({
4630
4837
  body: z.optional(z.never()),
4631
4838
  path: z.object({
@@ -4801,6 +5008,252 @@ export const zGetContactGroupsData = z.object({
4801
5008
  * OK
4802
5009
  */
4803
5010
  export const zGetContactGroupsResponse = z.array(zGroupCount);
5011
+ export const zGetContactBoardData = z.object({
5012
+ body: z.optional(z.never()),
5013
+ path: z.optional(z.never()),
5014
+ query: z.optional(z.object({
5015
+ statuses: z.optional(z.array(z.enum([
5016
+ 'NEW',
5017
+ 'ON_HOLD',
5018
+ 'COLD',
5019
+ 'WARM',
5020
+ 'HOT',
5021
+ 'WAITING_PAYMENT',
5022
+ 'LOST',
5023
+ 'WON',
5024
+ ]))),
5025
+ priorities: z.optional(z.array(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']))),
5026
+ isSearching: z.optional(z.boolean()),
5027
+ isListing: z.optional(z.boolean()),
5028
+ assignedTo: z.optional(z.array(z.string())),
5029
+ createdBy: z.optional(z.uuid()),
5030
+ contactName: z.optional(z.string()),
5031
+ contactPhone: z.optional(z.string()),
5032
+ contactEmail: z.optional(z.string()),
5033
+ sourceTypes: z.optional(z.array(z.enum([
5034
+ 'MY_HOME',
5035
+ 'SS',
5036
+ 'HOME_SPOT',
5037
+ 'AGENCY_MEMBER',
5038
+ 'FACEBOOK',
5039
+ 'INSTAGRAM',
5040
+ 'WHATSAPP',
5041
+ 'UNKNOWN',
5042
+ ]))),
5043
+ contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
5044
+ createdFrom: z.optional(z.iso.date()),
5045
+ createdTo: z.optional(z.iso.date()),
5046
+ listingTypes: z.optional(z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']))),
5047
+ propertyTypes: z.optional(z.array(z.enum([
5048
+ 'HOUSE',
5049
+ 'TOWN_HOUSE',
5050
+ 'COUNTRY_HOUSE',
5051
+ 'VILLA',
5052
+ 'COTTAGE',
5053
+ 'APARTMENT',
5054
+ 'DUPLEX',
5055
+ 'TRIPLEX',
5056
+ 'SEMI_BASEMENT',
5057
+ 'ATTIC',
5058
+ 'AGRICULTURAL_LAND',
5059
+ 'RESIDENTIAL_LAND',
5060
+ 'HOTEL_ROOM',
5061
+ 'MOTEL_ROOM',
5062
+ 'CO_LIVING_SPACE',
5063
+ 'OFFICE',
5064
+ 'COMMERCIAL_SPACE',
5065
+ 'CO_WORKING_SPACE',
5066
+ 'WAREHOUSE',
5067
+ 'GARAGE',
5068
+ ]))),
5069
+ regionId: z.optional(z.coerce
5070
+ .bigint()
5071
+ .min(BigInt('-9223372036854775808'), {
5072
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5073
+ })
5074
+ .max(BigInt('9223372036854775807'), {
5075
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5076
+ })),
5077
+ districtId: z.optional(z.coerce
5078
+ .bigint()
5079
+ .min(BigInt('-9223372036854775808'), {
5080
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5081
+ })
5082
+ .max(BigInt('9223372036854775807'), {
5083
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5084
+ })),
5085
+ subDistrictId: z.optional(z.coerce
5086
+ .bigint()
5087
+ .min(BigInt('-9223372036854775808'), {
5088
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5089
+ })
5090
+ .max(BigInt('9223372036854775807'), {
5091
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5092
+ })),
5093
+ streetId: z.optional(z.coerce
5094
+ .bigint()
5095
+ .min(BigInt('-9223372036854775808'), {
5096
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5097
+ })
5098
+ .max(BigInt('9223372036854775807'), {
5099
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5100
+ })),
5101
+ priceMin: z.optional(z.number()),
5102
+ priceMax: z.optional(z.number()),
5103
+ areaMin: z.optional(z.number()),
5104
+ areaMax: z.optional(z.number()),
5105
+ roomsMin: z.optional(z
5106
+ .int()
5107
+ .min(-2147483648, {
5108
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5109
+ })
5110
+ .max(2147483647, {
5111
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5112
+ })),
5113
+ roomsMax: z.optional(z
5114
+ .int()
5115
+ .min(-2147483648, {
5116
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5117
+ })
5118
+ .max(2147483647, {
5119
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5120
+ })),
5121
+ })),
5122
+ });
5123
+ /**
5124
+ * OK
5125
+ */
5126
+ export const zGetContactBoardResponse = zContactKanbanResponse;
5127
+ export const zGetContactBoardByStatusCardsData = z.object({
5128
+ body: z.optional(z.never()),
5129
+ path: z.object({
5130
+ status: z.enum([
5131
+ 'NEW',
5132
+ 'ON_HOLD',
5133
+ 'COLD',
5134
+ 'WARM',
5135
+ 'HOT',
5136
+ 'WAITING_PAYMENT',
5137
+ 'LOST',
5138
+ 'WON',
5139
+ ]),
5140
+ }),
5141
+ query: z.optional(z.object({
5142
+ statuses: z.optional(z.array(z.enum([
5143
+ 'NEW',
5144
+ 'ON_HOLD',
5145
+ 'COLD',
5146
+ 'WARM',
5147
+ 'HOT',
5148
+ 'WAITING_PAYMENT',
5149
+ 'LOST',
5150
+ 'WON',
5151
+ ]))),
5152
+ priorities: z.optional(z.array(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']))),
5153
+ isSearching: z.optional(z.boolean()),
5154
+ isListing: z.optional(z.boolean()),
5155
+ assignedTo: z.optional(z.array(z.string())),
5156
+ createdBy: z.optional(z.uuid()),
5157
+ contactName: z.optional(z.string()),
5158
+ contactPhone: z.optional(z.string()),
5159
+ contactEmail: z.optional(z.string()),
5160
+ sourceTypes: z.optional(z.array(z.enum([
5161
+ 'MY_HOME',
5162
+ 'SS',
5163
+ 'HOME_SPOT',
5164
+ 'AGENCY_MEMBER',
5165
+ 'FACEBOOK',
5166
+ 'INSTAGRAM',
5167
+ 'WHATSAPP',
5168
+ 'UNKNOWN',
5169
+ ]))),
5170
+ contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
5171
+ createdFrom: z.optional(z.iso.date()),
5172
+ createdTo: z.optional(z.iso.date()),
5173
+ listingTypes: z.optional(z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']))),
5174
+ propertyTypes: z.optional(z.array(z.enum([
5175
+ 'HOUSE',
5176
+ 'TOWN_HOUSE',
5177
+ 'COUNTRY_HOUSE',
5178
+ 'VILLA',
5179
+ 'COTTAGE',
5180
+ 'APARTMENT',
5181
+ 'DUPLEX',
5182
+ 'TRIPLEX',
5183
+ 'SEMI_BASEMENT',
5184
+ 'ATTIC',
5185
+ 'AGRICULTURAL_LAND',
5186
+ 'RESIDENTIAL_LAND',
5187
+ 'HOTEL_ROOM',
5188
+ 'MOTEL_ROOM',
5189
+ 'CO_LIVING_SPACE',
5190
+ 'OFFICE',
5191
+ 'COMMERCIAL_SPACE',
5192
+ 'CO_WORKING_SPACE',
5193
+ 'WAREHOUSE',
5194
+ 'GARAGE',
5195
+ ]))),
5196
+ regionId: z.optional(z.coerce
5197
+ .bigint()
5198
+ .min(BigInt('-9223372036854775808'), {
5199
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5200
+ })
5201
+ .max(BigInt('9223372036854775807'), {
5202
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5203
+ })),
5204
+ districtId: z.optional(z.coerce
5205
+ .bigint()
5206
+ .min(BigInt('-9223372036854775808'), {
5207
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5208
+ })
5209
+ .max(BigInt('9223372036854775807'), {
5210
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5211
+ })),
5212
+ subDistrictId: z.optional(z.coerce
5213
+ .bigint()
5214
+ .min(BigInt('-9223372036854775808'), {
5215
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5216
+ })
5217
+ .max(BigInt('9223372036854775807'), {
5218
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5219
+ })),
5220
+ streetId: z.optional(z.coerce
5221
+ .bigint()
5222
+ .min(BigInt('-9223372036854775808'), {
5223
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5224
+ })
5225
+ .max(BigInt('9223372036854775807'), {
5226
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5227
+ })),
5228
+ priceMin: z.optional(z.number()),
5229
+ priceMax: z.optional(z.number()),
5230
+ areaMin: z.optional(z.number()),
5231
+ areaMax: z.optional(z.number()),
5232
+ roomsMin: z.optional(z
5233
+ .int()
5234
+ .min(-2147483648, {
5235
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5236
+ })
5237
+ .max(2147483647, {
5238
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5239
+ })),
5240
+ roomsMax: z.optional(z
5241
+ .int()
5242
+ .min(-2147483648, {
5243
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5244
+ })
5245
+ .max(2147483647, {
5246
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5247
+ })),
5248
+ page: z.optional(z.int().gte(0)).default(0),
5249
+ size: z.optional(z.int().gte(1)).default(20),
5250
+ sort: z.optional(z.array(z.string())),
5251
+ })),
5252
+ });
5253
+ /**
5254
+ * OK
5255
+ */
5256
+ export const zGetContactBoardByStatusCardsResponse = zPagedModelCard;
4804
5257
  export const zGetAgencyByAgencyIdOwnerData = z.object({
4805
5258
  body: z.optional(z.never()),
4806
5259
  path: z.object({