@homespot-sdk/core 0.0.326 → 0.0.328

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.
@@ -1268,6 +1268,14 @@ export const zGroupedPermissionsResponse = z.object({
1268
1268
  ]),
1269
1269
  permissions: z.array(zPermissionResponse),
1270
1270
  });
1271
+ export const zListingContactResponseUuid = z.object({
1272
+ id: z.uuid(),
1273
+ name: z.optional(z.string()),
1274
+ lastName: z.optional(z.string()),
1275
+ phone: z.optional(z.string()),
1276
+ email: z.optional(z.string()),
1277
+ profilePicture: z.optional(z.string()),
1278
+ });
1271
1279
  export const zInvitationDetailsResponse = z.object({
1272
1280
  invitationId: z.uuid(),
1273
1281
  agencyId: z.uuid(),
@@ -1553,6 +1561,21 @@ export const zPropertyPageResponse = z.object({
1553
1561
  updatedAt: z.iso.datetime(),
1554
1562
  closeReason: z.optional(zPropertyCloseReasonResponse),
1555
1563
  });
1564
+ export const zListingContactResponseLong = z.object({
1565
+ id: z.coerce
1566
+ .bigint()
1567
+ .min(BigInt('-9223372036854775808'), {
1568
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1569
+ })
1570
+ .max(BigInt('9223372036854775807'), {
1571
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1572
+ }),
1573
+ name: z.optional(z.string()),
1574
+ lastName: z.optional(z.string()),
1575
+ phone: z.optional(z.string()),
1576
+ email: z.optional(z.string()),
1577
+ profilePicture: z.optional(z.string()),
1578
+ });
1556
1579
  export const zContactId = z.object({
1557
1580
  value: z.optional(z.coerce
1558
1581
  .bigint()
@@ -2076,6 +2099,22 @@ export const zContactInfoResponse = z.object({
2076
2099
  phoneNumber: z.string(),
2077
2100
  email: z.optional(z.string()),
2078
2101
  });
2102
+ export const zContactInterestResponse = z.object({
2103
+ id: z.coerce
2104
+ .bigint()
2105
+ .min(BigInt('-9223372036854775808'), {
2106
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2107
+ })
2108
+ .max(BigInt('9223372036854775807'), {
2109
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2110
+ }),
2111
+ title: z.string(),
2112
+ status: z.enum(['UNPUBLISHED', 'PUBLISHED', 'CLOSED']),
2113
+ shareToken: z.uuid(),
2114
+ createdAt: z.iso.datetime(),
2115
+ criteria: zCriteria,
2116
+ recommendations: zRecommendationStats,
2117
+ });
2079
2118
  export const zContactPropertyResponse = z.object({
2080
2119
  publicId: z.coerce
2081
2120
  .bigint()
@@ -2164,7 +2203,7 @@ export const zClient360Response = z.object({
2164
2203
  ]),
2165
2204
  createdAt: z.iso.datetime(),
2166
2205
  updatedAt: z.iso.datetime(),
2167
- interests: z.array(zInterestResponse),
2206
+ interests: z.array(zContactInterestResponse),
2168
2207
  properties: z.array(zContactPropertyResponse),
2169
2208
  });
2170
2209
  export const zAssignedAgent = z.object({
@@ -2197,6 +2236,155 @@ export const zPhoneDuplicateCheckResponse = z.object({
2197
2236
  policy: z.enum(['ALLOW', 'WARN', 'PREVENT']),
2198
2237
  matches: z.array(zDuplicateContactInfo),
2199
2238
  });
2239
+ export const zListingTypePrice = z.object({
2240
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
2241
+ price: z.number(),
2242
+ });
2243
+ export const zPreview = z.object({
2244
+ type: z.string(),
2245
+ });
2246
+ export const zInterestPreview = zPreview.and(z.object({
2247
+ interestId: z.coerce
2248
+ .bigint()
2249
+ .min(BigInt('-9223372036854775808'), {
2250
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2251
+ })
2252
+ .max(BigInt('9223372036854775807'), {
2253
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2254
+ }),
2255
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
2256
+ propertyTypes: z.array(z.enum([
2257
+ 'HOUSE',
2258
+ 'TOWN_HOUSE',
2259
+ 'COUNTRY_HOUSE',
2260
+ 'VILLA',
2261
+ 'COTTAGE',
2262
+ 'APARTMENT',
2263
+ 'DUPLEX',
2264
+ 'TRIPLEX',
2265
+ 'SEMI_BASEMENT',
2266
+ 'ATTIC',
2267
+ 'AGRICULTURAL_LAND',
2268
+ 'RESIDENTIAL_LAND',
2269
+ 'HOTEL_ROOM',
2270
+ 'MOTEL_ROOM',
2271
+ 'CO_LIVING_SPACE',
2272
+ 'OFFICE',
2273
+ 'COMMERCIAL_SPACE',
2274
+ 'CO_WORKING_SPACE',
2275
+ 'WAREHOUSE',
2276
+ 'GARAGE',
2277
+ ])),
2278
+ budget: z.optional(zRangeBigDecimal),
2279
+ primaryLocation: z.optional(zLocationResponse),
2280
+ recommendationCount: z
2281
+ .int()
2282
+ .min(-2147483648, {
2283
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
2284
+ })
2285
+ .max(2147483647, {
2286
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
2287
+ }),
2288
+ type: z.literal('INTEREST'),
2289
+ }));
2290
+ export const zPropertyPreview = zPreview.and(z.object({
2291
+ propertyId: z.coerce
2292
+ .bigint()
2293
+ .min(BigInt('-9223372036854775808'), {
2294
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2295
+ })
2296
+ .max(BigInt('9223372036854775807'), {
2297
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2298
+ }),
2299
+ propertyType: z.enum([
2300
+ 'HOUSE',
2301
+ 'TOWN_HOUSE',
2302
+ 'COUNTRY_HOUSE',
2303
+ 'VILLA',
2304
+ 'COTTAGE',
2305
+ 'APARTMENT',
2306
+ 'DUPLEX',
2307
+ 'TRIPLEX',
2308
+ 'SEMI_BASEMENT',
2309
+ 'ATTIC',
2310
+ 'AGRICULTURAL_LAND',
2311
+ 'RESIDENTIAL_LAND',
2312
+ 'HOTEL_ROOM',
2313
+ 'MOTEL_ROOM',
2314
+ 'CO_LIVING_SPACE',
2315
+ 'OFFICE',
2316
+ 'COMMERCIAL_SPACE',
2317
+ 'CO_WORKING_SPACE',
2318
+ 'WAREHOUSE',
2319
+ 'GARAGE',
2320
+ ]),
2321
+ state: z.enum([
2322
+ 'IN_REGISTRATION',
2323
+ 'UNLISTED',
2324
+ 'LISTED_INTERNALLY',
2325
+ 'LISTED',
2326
+ 'CLOSED',
2327
+ ]),
2328
+ title: z.optional(z.string()),
2329
+ coverUrl: z.optional(z.string()),
2330
+ listingTypes: z.array(zListingTypePrice),
2331
+ type: z.literal('PROPERTY'),
2332
+ }));
2333
+ export const zCard = z.object({
2334
+ contactId: z.coerce
2335
+ .bigint()
2336
+ .min(BigInt('-9223372036854775808'), {
2337
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2338
+ })
2339
+ .max(BigInt('9223372036854775807'), {
2340
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2341
+ }),
2342
+ contactName: z.optional(z.string()),
2343
+ phoneNumber: z.optional(z.string()),
2344
+ priority: z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']),
2345
+ status: z.enum([
2346
+ 'NEW',
2347
+ 'ON_HOLD',
2348
+ 'COLD',
2349
+ 'WARM',
2350
+ 'HOT',
2351
+ 'WAITING_PAYMENT',
2352
+ 'LOST',
2353
+ 'WON',
2354
+ ]),
2355
+ assignedTo: z.optional(zAssignedToResponse),
2356
+ totalCommission: z.number(),
2357
+ preview: z.optional(z.union([zInterestPreview, zPropertyPreview])),
2358
+ });
2359
+ export const zPagedModelCard = z.object({
2360
+ content: z.optional(z.array(zCard)),
2361
+ page: z.optional(zPageMetadata),
2362
+ });
2363
+ export const zColumn = z.object({
2364
+ status: z.enum([
2365
+ 'NEW',
2366
+ 'ON_HOLD',
2367
+ 'COLD',
2368
+ 'WARM',
2369
+ 'HOT',
2370
+ 'WAITING_PAYMENT',
2371
+ 'LOST',
2372
+ 'WON',
2373
+ ]),
2374
+ totalCommission: z.number(),
2375
+ totalContacts: z.coerce
2376
+ .bigint()
2377
+ .min(BigInt('-9223372036854775808'), {
2378
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
2379
+ })
2380
+ .max(BigInt('9223372036854775807'), {
2381
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
2382
+ }),
2383
+ cards: zPagedModelCard,
2384
+ });
2385
+ export const zContactKanbanResponse = z.object({
2386
+ columns: z.array(zColumn),
2387
+ });
2200
2388
  export const zAddressViewResponse = z.object({
2201
2389
  country: z.string(),
2202
2390
  city: z.string(),
@@ -2896,6 +3084,24 @@ export const zPutContactByContactIdAssignmentData = z.object({
2896
3084
  * No Content
2897
3085
  */
2898
3086
  export const zPutContactByContactIdAssignmentResponse = z.void();
3087
+ export const zPutContactByContactIdArchiveData = z.object({
3088
+ body: z.optional(z.never()),
3089
+ path: z.object({
3090
+ contactId: z.coerce
3091
+ .bigint()
3092
+ .min(BigInt('-9223372036854775808'), {
3093
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
3094
+ })
3095
+ .max(BigInt('9223372036854775807'), {
3096
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
3097
+ }),
3098
+ }),
3099
+ query: z.optional(z.never()),
3100
+ });
3101
+ /**
3102
+ * No Content
3103
+ */
3104
+ export const zPutContactByContactIdArchiveResponse = z.void();
2899
3105
  export const zPutContactMergeData = z.object({
2900
3106
  body: zContactMergeRequest,
2901
3107
  path: z.optional(z.never()),
@@ -3815,6 +4021,7 @@ export const zGetContactData = z.object({
3815
4021
  .max(2147483647, {
3816
4022
  error: 'Invalid value: Expected int32 to be <= 2147483647',
3817
4023
  })),
4024
+ includeArchived: z.optional(z.boolean()).default(false),
3818
4025
  page: z.optional(z.int().gte(0)).default(0),
3819
4026
  size: z.optional(z.int().gte(1)).default(20),
3820
4027
  sort: z.optional(z.array(z.string())),
@@ -4052,6 +4259,17 @@ export const zGetPublicOauthCallbackData = z.object({
4052
4259
  error_description: z.optional(z.string()),
4053
4260
  })),
4054
4261
  });
4262
+ export const zGetPublicMemberByMemberIdData = z.object({
4263
+ body: z.optional(z.never()),
4264
+ path: z.object({
4265
+ memberId: z.uuid(),
4266
+ }),
4267
+ query: z.optional(z.never()),
4268
+ });
4269
+ /**
4270
+ * OK
4271
+ */
4272
+ export const zGetPublicMemberByMemberIdResponse = zListingContactResponseUuid;
4055
4273
  export const zGetPublicInvitationByInvitationIdData = z.object({
4056
4274
  body: z.optional(z.never()),
4057
4275
  path: z.object({
@@ -4119,6 +4337,18 @@ export const zGetPropertyByPropertyIdPageData = z.object({
4119
4337
  * OK
4120
4338
  */
4121
4339
  export const zGetPropertyByPropertyIdPageResponse = zPropertyPageResponse;
4340
+ export const zGetPropertyByExternalPropertyIdListingByExternalListingIdData = z.object({
4341
+ body: z.optional(z.never()),
4342
+ path: z.object({
4343
+ externalPropertyId: z.uuid(),
4344
+ externalListingId: z.uuid(),
4345
+ }),
4346
+ query: z.optional(z.never()),
4347
+ });
4348
+ /**
4349
+ * OK
4350
+ */
4351
+ export const zGetPropertyByExternalPropertyIdListingByExternalListingIdResponse = zListingContactResponseLong;
4122
4352
  export const zGetOauthData = z.object({
4123
4353
  body: z.optional(z.never()),
4124
4354
  path: z.optional(z.never()),
@@ -4635,6 +4865,24 @@ export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecision
4635
4865
  * OK
4636
4866
  */
4637
4867
  export const zGetContactsByContactIdInterestsByInterestIdRecommendationsDecisionsResponse = z.array(zRecommendationDecisionResponse);
4868
+ export const zDeleteContactByContactIdData = z.object({
4869
+ body: z.optional(z.never()),
4870
+ path: z.object({
4871
+ contactId: z.coerce
4872
+ .bigint()
4873
+ .min(BigInt('-9223372036854775808'), {
4874
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
4875
+ })
4876
+ .max(BigInt('9223372036854775807'), {
4877
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
4878
+ }),
4879
+ }),
4880
+ query: z.optional(z.never()),
4881
+ });
4882
+ /**
4883
+ * No Content
4884
+ */
4885
+ export const zDeleteContactByContactIdResponse = z.void();
4638
4886
  export const zGetContactByContactIdData = z.object({
4639
4887
  body: z.optional(z.never()),
4640
4888
  path: z.object({
@@ -4810,6 +5058,252 @@ export const zGetContactGroupsData = z.object({
4810
5058
  * OK
4811
5059
  */
4812
5060
  export const zGetContactGroupsResponse = z.array(zGroupCount);
5061
+ export const zGetContactBoardData = z.object({
5062
+ body: z.optional(z.never()),
5063
+ path: z.optional(z.never()),
5064
+ query: z.optional(z.object({
5065
+ statuses: z.optional(z.array(z.enum([
5066
+ 'NEW',
5067
+ 'ON_HOLD',
5068
+ 'COLD',
5069
+ 'WARM',
5070
+ 'HOT',
5071
+ 'WAITING_PAYMENT',
5072
+ 'LOST',
5073
+ 'WON',
5074
+ ]))),
5075
+ priorities: z.optional(z.array(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']))),
5076
+ isSearching: z.optional(z.boolean()),
5077
+ isListing: z.optional(z.boolean()),
5078
+ assignedTo: z.optional(z.array(z.string())),
5079
+ createdBy: z.optional(z.uuid()),
5080
+ contactName: z.optional(z.string()),
5081
+ contactPhone: z.optional(z.string()),
5082
+ contactEmail: z.optional(z.string()),
5083
+ sourceTypes: z.optional(z.array(z.enum([
5084
+ 'MY_HOME',
5085
+ 'SS',
5086
+ 'HOME_SPOT',
5087
+ 'AGENCY_MEMBER',
5088
+ 'FACEBOOK',
5089
+ 'INSTAGRAM',
5090
+ 'WHATSAPP',
5091
+ 'UNKNOWN',
5092
+ ]))),
5093
+ contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
5094
+ createdFrom: z.optional(z.iso.date()),
5095
+ createdTo: z.optional(z.iso.date()),
5096
+ listingTypes: z.optional(z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']))),
5097
+ propertyTypes: z.optional(z.array(z.enum([
5098
+ 'HOUSE',
5099
+ 'TOWN_HOUSE',
5100
+ 'COUNTRY_HOUSE',
5101
+ 'VILLA',
5102
+ 'COTTAGE',
5103
+ 'APARTMENT',
5104
+ 'DUPLEX',
5105
+ 'TRIPLEX',
5106
+ 'SEMI_BASEMENT',
5107
+ 'ATTIC',
5108
+ 'AGRICULTURAL_LAND',
5109
+ 'RESIDENTIAL_LAND',
5110
+ 'HOTEL_ROOM',
5111
+ 'MOTEL_ROOM',
5112
+ 'CO_LIVING_SPACE',
5113
+ 'OFFICE',
5114
+ 'COMMERCIAL_SPACE',
5115
+ 'CO_WORKING_SPACE',
5116
+ 'WAREHOUSE',
5117
+ 'GARAGE',
5118
+ ]))),
5119
+ regionId: z.optional(z.coerce
5120
+ .bigint()
5121
+ .min(BigInt('-9223372036854775808'), {
5122
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5123
+ })
5124
+ .max(BigInt('9223372036854775807'), {
5125
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5126
+ })),
5127
+ districtId: z.optional(z.coerce
5128
+ .bigint()
5129
+ .min(BigInt('-9223372036854775808'), {
5130
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5131
+ })
5132
+ .max(BigInt('9223372036854775807'), {
5133
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5134
+ })),
5135
+ subDistrictId: z.optional(z.coerce
5136
+ .bigint()
5137
+ .min(BigInt('-9223372036854775808'), {
5138
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5139
+ })
5140
+ .max(BigInt('9223372036854775807'), {
5141
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5142
+ })),
5143
+ streetId: z.optional(z.coerce
5144
+ .bigint()
5145
+ .min(BigInt('-9223372036854775808'), {
5146
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5147
+ })
5148
+ .max(BigInt('9223372036854775807'), {
5149
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5150
+ })),
5151
+ priceMin: z.optional(z.number()),
5152
+ priceMax: z.optional(z.number()),
5153
+ areaMin: z.optional(z.number()),
5154
+ areaMax: z.optional(z.number()),
5155
+ roomsMin: z.optional(z
5156
+ .int()
5157
+ .min(-2147483648, {
5158
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5159
+ })
5160
+ .max(2147483647, {
5161
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5162
+ })),
5163
+ roomsMax: z.optional(z
5164
+ .int()
5165
+ .min(-2147483648, {
5166
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5167
+ })
5168
+ .max(2147483647, {
5169
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5170
+ })),
5171
+ })),
5172
+ });
5173
+ /**
5174
+ * OK
5175
+ */
5176
+ export const zGetContactBoardResponse = zContactKanbanResponse;
5177
+ export const zGetContactBoardByStatusCardsData = z.object({
5178
+ body: z.optional(z.never()),
5179
+ path: z.object({
5180
+ status: z.enum([
5181
+ 'NEW',
5182
+ 'ON_HOLD',
5183
+ 'COLD',
5184
+ 'WARM',
5185
+ 'HOT',
5186
+ 'WAITING_PAYMENT',
5187
+ 'LOST',
5188
+ 'WON',
5189
+ ]),
5190
+ }),
5191
+ query: z.optional(z.object({
5192
+ statuses: z.optional(z.array(z.enum([
5193
+ 'NEW',
5194
+ 'ON_HOLD',
5195
+ 'COLD',
5196
+ 'WARM',
5197
+ 'HOT',
5198
+ 'WAITING_PAYMENT',
5199
+ 'LOST',
5200
+ 'WON',
5201
+ ]))),
5202
+ priorities: z.optional(z.array(z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']))),
5203
+ isSearching: z.optional(z.boolean()),
5204
+ isListing: z.optional(z.boolean()),
5205
+ assignedTo: z.optional(z.array(z.string())),
5206
+ createdBy: z.optional(z.uuid()),
5207
+ contactName: z.optional(z.string()),
5208
+ contactPhone: z.optional(z.string()),
5209
+ contactEmail: z.optional(z.string()),
5210
+ sourceTypes: z.optional(z.array(z.enum([
5211
+ 'MY_HOME',
5212
+ 'SS',
5213
+ 'HOME_SPOT',
5214
+ 'AGENCY_MEMBER',
5215
+ 'FACEBOOK',
5216
+ 'INSTAGRAM',
5217
+ 'WHATSAPP',
5218
+ 'UNKNOWN',
5219
+ ]))),
5220
+ contactGenders: z.optional(z.array(z.enum(['MALE', 'FEMALE', 'UNKNOWN']))),
5221
+ createdFrom: z.optional(z.iso.date()),
5222
+ createdTo: z.optional(z.iso.date()),
5223
+ listingTypes: z.optional(z.array(z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']))),
5224
+ propertyTypes: z.optional(z.array(z.enum([
5225
+ 'HOUSE',
5226
+ 'TOWN_HOUSE',
5227
+ 'COUNTRY_HOUSE',
5228
+ 'VILLA',
5229
+ 'COTTAGE',
5230
+ 'APARTMENT',
5231
+ 'DUPLEX',
5232
+ 'TRIPLEX',
5233
+ 'SEMI_BASEMENT',
5234
+ 'ATTIC',
5235
+ 'AGRICULTURAL_LAND',
5236
+ 'RESIDENTIAL_LAND',
5237
+ 'HOTEL_ROOM',
5238
+ 'MOTEL_ROOM',
5239
+ 'CO_LIVING_SPACE',
5240
+ 'OFFICE',
5241
+ 'COMMERCIAL_SPACE',
5242
+ 'CO_WORKING_SPACE',
5243
+ 'WAREHOUSE',
5244
+ 'GARAGE',
5245
+ ]))),
5246
+ regionId: z.optional(z.coerce
5247
+ .bigint()
5248
+ .min(BigInt('-9223372036854775808'), {
5249
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5250
+ })
5251
+ .max(BigInt('9223372036854775807'), {
5252
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5253
+ })),
5254
+ districtId: z.optional(z.coerce
5255
+ .bigint()
5256
+ .min(BigInt('-9223372036854775808'), {
5257
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5258
+ })
5259
+ .max(BigInt('9223372036854775807'), {
5260
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5261
+ })),
5262
+ subDistrictId: z.optional(z.coerce
5263
+ .bigint()
5264
+ .min(BigInt('-9223372036854775808'), {
5265
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5266
+ })
5267
+ .max(BigInt('9223372036854775807'), {
5268
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5269
+ })),
5270
+ streetId: z.optional(z.coerce
5271
+ .bigint()
5272
+ .min(BigInt('-9223372036854775808'), {
5273
+ error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
5274
+ })
5275
+ .max(BigInt('9223372036854775807'), {
5276
+ error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
5277
+ })),
5278
+ priceMin: z.optional(z.number()),
5279
+ priceMax: z.optional(z.number()),
5280
+ areaMin: z.optional(z.number()),
5281
+ areaMax: z.optional(z.number()),
5282
+ roomsMin: z.optional(z
5283
+ .int()
5284
+ .min(-2147483648, {
5285
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5286
+ })
5287
+ .max(2147483647, {
5288
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5289
+ })),
5290
+ roomsMax: z.optional(z
5291
+ .int()
5292
+ .min(-2147483648, {
5293
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
5294
+ })
5295
+ .max(2147483647, {
5296
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
5297
+ })),
5298
+ page: z.optional(z.int().gte(0)).default(0),
5299
+ size: z.optional(z.int().gte(1)).default(20),
5300
+ sort: z.optional(z.array(z.string())),
5301
+ })),
5302
+ });
5303
+ /**
5304
+ * OK
5305
+ */
5306
+ export const zGetContactBoardByStatusCardsResponse = zPagedModelCard;
4813
5307
  export const zGetAgencyByAgencyIdOwnerData = z.object({
4814
5308
  body: z.optional(z.never()),
4815
5309
  path: z.object({