@homespot-sdk/core 0.0.114 → 0.0.116

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 (49) hide show
  1. package/dist/registration/client.gen.js +1 -1
  2. package/dist/registration/client.gen.js.map +1 -1
  3. package/dist/registration/index.d.ts +2 -2
  4. package/dist/registration/index.d.ts.map +1 -1
  5. package/dist/registration/index.js +1 -1
  6. package/dist/registration/index.js.map +1 -1
  7. package/dist/registration/schemas.gen.d.ts +232 -1043
  8. package/dist/registration/schemas.gen.d.ts.map +1 -1
  9. package/dist/registration/schemas.gen.js +251 -1099
  10. package/dist/registration/schemas.gen.js.map +1 -1
  11. package/dist/registration/sdk.gen.d.ts +19 -51
  12. package/dist/registration/sdk.gen.d.ts.map +1 -1
  13. package/dist/registration/sdk.gen.js +38 -275
  14. package/dist/registration/sdk.gen.js.map +1 -1
  15. package/dist/registration/transformers.gen.d.ts +2 -3
  16. package/dist/registration/transformers.gen.d.ts.map +1 -1
  17. package/dist/registration/transformers.gen.js +4 -28
  18. package/dist/registration/transformers.gen.js.map +1 -1
  19. package/dist/registration/types.gen.d.ts +237 -1023
  20. package/dist/registration/types.gen.d.ts.map +1 -1
  21. package/dist/registration/zod.gen.d.ts +603 -2763
  22. package/dist/registration/zod.gen.d.ts.map +1 -1
  23. package/dist/registration/zod.gen.js +210 -1271
  24. package/dist/registration/zod.gen.js.map +1 -1
  25. package/dist/rem/client.gen.js +1 -1
  26. package/dist/rem/client.gen.js.map +1 -1
  27. package/dist/rem/index.d.ts +2 -2
  28. package/dist/rem/index.d.ts.map +1 -1
  29. package/dist/rem/index.js +1 -1
  30. package/dist/rem/index.js.map +1 -1
  31. package/dist/rem/schemas.gen.d.ts +1045 -216
  32. package/dist/rem/schemas.gen.d.ts.map +1 -1
  33. package/dist/rem/schemas.gen.js +1111 -245
  34. package/dist/rem/schemas.gen.js.map +1 -1
  35. package/dist/rem/sdk.gen.d.ts +51 -19
  36. package/dist/rem/sdk.gen.d.ts.map +1 -1
  37. package/dist/rem/sdk.gen.js +275 -38
  38. package/dist/rem/sdk.gen.js.map +1 -1
  39. package/dist/rem/transformers.gen.d.ts +3 -2
  40. package/dist/rem/transformers.gen.d.ts.map +1 -1
  41. package/dist/rem/transformers.gen.js +28 -4
  42. package/dist/rem/transformers.gen.js.map +1 -1
  43. package/dist/rem/types.gen.d.ts +1023 -232
  44. package/dist/rem/types.gen.d.ts.map +1 -1
  45. package/dist/rem/zod.gen.d.ts +2823 -653
  46. package/dist/rem/zod.gen.d.ts.map +1 -1
  47. package/dist/rem/zod.gen.js +1274 -194
  48. package/dist/rem/zod.gen.js.map +1 -1
  49. package/package.json +1 -1
@@ -1,151 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { z } from 'zod';
3
- export const zAssignRoleRequest = z.object({
4
- roleId: z
5
- .int()
6
- .min(-2147483648, {
7
- error: 'Invalid value: Expected int32 to be >= -2147483648',
8
- })
9
- .max(2147483647, {
10
- error: 'Invalid value: Expected int32 to be <= 2147483647',
11
- }),
12
- });
13
- export const zBatchAssignRoleRequest = z.object({
14
- roleId: z
15
- .int()
16
- .min(-2147483648, {
17
- error: 'Invalid value: Expected int32 to be >= -2147483648',
18
- })
19
- .max(2147483647, {
20
- error: 'Invalid value: Expected int32 to be <= 2147483647',
21
- }),
22
- memberIds: z.array(z.uuid()).min(1),
23
- });
24
- export const zSourceRequest = z.object({
25
- sourceUrl: z.optional(z.string()),
26
- });
27
- export const zUpdateNoteRequest = z.object({
28
- note: z.optional(z.string()),
29
- });
30
- export const zLocationRefRequest = z.object({
31
- regionId: z.optional(z.coerce
32
- .bigint()
33
- .min(BigInt('-9223372036854775808'), {
34
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
35
- })
36
- .max(BigInt('9223372036854775807'), {
37
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
38
- })),
39
- districtId: z.optional(z.coerce
40
- .bigint()
41
- .min(BigInt('-9223372036854775808'), {
42
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
43
- })
44
- .max(BigInt('9223372036854775807'), {
45
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
46
- })),
47
- subDistrictId: z.optional(z.coerce
48
- .bigint()
49
- .min(BigInt('-9223372036854775808'), {
50
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
51
- })
52
- .max(BigInt('9223372036854775807'), {
53
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
54
- })),
55
- streetId: z.optional(z.coerce
56
- .bigint()
57
- .min(BigInt('-9223372036854775808'), {
58
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
59
- })
60
- .max(BigInt('9223372036854775807'), {
61
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
62
- })),
63
- });
64
- export const zPriceRangeRequest = z.object({
65
- min: z.optional(z.number()),
66
- max: z.optional(z.number()),
67
- });
68
- export const zAssignToMemberRequest = z.object({
69
- memberId: z.uuid(),
70
- });
71
- export const zAddressRequest = z.object({
72
- country: z.string().min(0).max(100),
73
- city: z.string().min(0).max(100),
74
- district: z.string().min(0).max(100),
75
- subdistrict: z.string().min(0).max(100),
76
- street: z.string().min(0).max(255),
77
- });
78
- export const zCreateAgencyRequest = z.object({
79
- name: z.string().min(1),
80
- email: z.email().min(1),
81
- seats: z
82
- .int()
83
- .min(-2147483648, {
84
- error: 'Invalid value: Expected int32 to be >= -2147483648',
85
- })
86
- .max(2147483647, {
87
- error: 'Invalid value: Expected int32 to be <= 2147483647',
88
- }),
89
- subDomain: z.string().min(1),
90
- phone: z.string().min(1),
91
- address: zAddressRequest,
92
- yearSince: z
93
- .int()
94
- .min(-2147483648, {
95
- error: 'Invalid value: Expected int32 to be >= -2147483648',
96
- })
97
- .max(2147483647, {
98
- error: 'Invalid value: Expected int32 to be <= 2147483647',
99
- }),
100
- });
101
- export const zTransferFundsRequest = z.object({
102
- transferTo: z.uuid(),
103
- amount: z.number(),
104
- });
105
- export const zDepositFundsRequest = z.object({
106
- amount: z.number(),
107
- });
108
- export const zIdResponseInteger = z.object({
109
- id: z
110
- .int()
111
- .min(-2147483648, {
112
- error: 'Invalid value: Expected int32 to be >= -2147483648',
113
- })
114
- .max(2147483647, {
115
- error: 'Invalid value: Expected int32 to be <= 2147483647',
116
- }),
117
- });
118
- export const zIdResponseLong = z.object({
119
- id: z.coerce
120
- .bigint()
121
- .min(BigInt('-9223372036854775808'), {
122
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
123
- })
124
- .max(BigInt('9223372036854775807'), {
125
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
126
- }),
127
- });
128
- export const zInvitationDetailsRequest = z.object({
129
- email: z.email(),
130
- roleId: z
131
- .int()
132
- .min(-2147483648, {
133
- error: 'Invalid value: Expected int32 to be >= -2147483648',
134
- })
135
- .max(2147483647, {
136
- error: 'Invalid value: Expected int32 to be <= 2147483647',
137
- }),
138
- });
139
- export const zInviteMemberRequest = z.object({
140
- emails: z.array(zInvitationDetailsRequest).min(1),
141
- });
142
- export const zAuthRequest = z.object({
143
- sub: z.optional(z.string()),
144
- agencyId: z.optional(z.uuid()),
145
- });
146
- export const zIdResponseUuid = z.object({
147
- id: z.uuid(),
148
- });
149
3
  export const zPresignedUrlResponse = z.object({
150
4
  originalName: z.string(),
151
5
  key: z.string(),
@@ -154,182 +8,95 @@ export const zPresignedUrlResponse = z.object({
154
8
  export const zPresignedUrlsResponse = z.object({
155
9
  data: z.array(zPresignedUrlResponse),
156
10
  });
157
- export const zUploadAcknowledgmentResponse = z.object({
158
- success: z.array(z.string()),
159
- fail: z.array(z.string()),
160
- });
161
- export const zUserSummaryViewResponse = z.object({
162
- email: z.string(),
163
- firstName: z.string(),
164
- lastName: z.string(),
11
+ export const zMeasurementRequest = z.object({
12
+ totalArea: z.number().gte(1),
13
+ livingArea: z.optional(z.number()),
14
+ balconyArea: z.optional(z.number()),
165
15
  });
166
- export const zPageMetadata = z.object({
167
- size: z.optional(z.coerce
168
- .bigint()
169
- .min(BigInt('-9223372036854775808'), {
170
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
171
- })
172
- .max(BigInt('9223372036854775807'), {
173
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
174
- })),
175
- number: z.optional(z.coerce
176
- .bigint()
177
- .min(BigInt('-9223372036854775808'), {
178
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
179
- })
180
- .max(BigInt('9223372036854775807'), {
181
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
182
- })),
183
- totalElements: z.optional(z.coerce
184
- .bigint()
185
- .min(BigInt('-9223372036854775808'), {
186
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
187
- })
188
- .max(BigInt('9223372036854775807'), {
189
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
190
- })),
191
- totalPages: z.optional(z.coerce
192
- .bigint()
193
- .min(BigInt('-9223372036854775808'), {
194
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
195
- })
196
- .max(BigInt('9223372036854775807'), {
197
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
198
- })),
16
+ export const zTitleAndDescriptionRequest = z.object({
17
+ title: z.optional(z.string()),
18
+ description: z.optional(z.record(z.string(), z.string())),
199
19
  });
200
- export const zMemberViewResponse = z.object({
201
- userId: z.string(),
202
- firstName: z.string(),
203
- lastName: z.string(),
204
- phone: z.optional(z.string()),
205
- email: z.string(),
206
- roleId: z
20
+ export const zAmenitiesRequest = z.object({
21
+ amenities: z.optional(z.array(z
207
22
  .int()
208
23
  .min(-2147483648, {
209
24
  error: 'Invalid value: Expected int32 to be >= -2147483648',
210
25
  })
211
26
  .max(2147483647, {
212
27
  error: 'Invalid value: Expected int32 to be <= 2147483647',
213
- }),
214
- roleName: z.string(),
215
- joinedAt: z.iso.datetime(),
28
+ }))),
216
29
  });
217
- export const zPagedModelMemberViewResponse = z.object({
218
- content: z.optional(z.array(zMemberViewResponse)),
219
- page: z.optional(zPageMetadata),
30
+ export const zAddressRequest = z.object({
31
+ placeId: z.string().min(0).max(255),
32
+ cadastralCode: z.string().min(0).max(255),
33
+ fullName: z.string().min(0).max(500),
34
+ lat: z.number().gte(-90).lte(90),
35
+ lng: z.number().gte(-180).lte(180),
36
+ country: z.string().min(0).max(100),
37
+ city: z.string().min(0).max(100),
38
+ street: z.string().min(0).max(255),
39
+ });
40
+ export const zPhotoReorderRequest = z.object({
41
+ photos: z.array(z.string()).min(1),
220
42
  });
221
- export const zAddressViewResponse = z.object({
43
+ export const zAddressResponse = z.object({
44
+ placeId: z.string(),
45
+ cadastralCode: z.string(),
46
+ fullName: z.string(),
47
+ lat: z.number(),
48
+ lng: z.number(),
222
49
  country: z.string(),
223
50
  city: z.string(),
224
- district: z.string(),
225
- subdistrict: z.string(),
226
51
  street: z.string(),
227
52
  });
228
- export const zAgencyProfileResponse = z.object({
229
- name: z.string(),
230
- email: z.string(),
231
- seats: z
232
- .int()
233
- .min(-2147483648, {
234
- error: 'Invalid value: Expected int32 to be >= -2147483648',
235
- })
236
- .max(2147483647, {
237
- error: 'Invalid value: Expected int32 to be <= 2147483647',
238
- }),
239
- subDomain: z.string(),
240
- phone: z.string(),
241
- address: zAddressViewResponse,
242
- yearSince: z
243
- .int()
244
- .min(-2147483648, {
245
- error: 'Invalid value: Expected int32 to be >= -2147483648',
246
- })
247
- .max(2147483647, {
248
- error: 'Invalid value: Expected int32 to be <= 2147483647',
249
- }),
250
- });
251
- export const zSchemaEnum = z.enum([
252
- 'NEW',
253
- 'ATTEMPTED_CONTACT',
254
- 'CONTACTED',
255
- 'DISQUALIFIED',
256
- 'CONVERTED',
257
- 'LOST',
258
- ]);
259
- export const zChangeStatusRequest = z.object({
260
- status: zSchemaEnum,
261
- });
262
- export const zSchemaEnum2 = z.enum([
263
- 'NEW',
264
- 'ACTIVE',
265
- 'PAYMENT_FAILED',
266
- 'INACTIVE',
267
- ]);
268
- export const zAgencySummaryResponse = z.object({
269
- id: z.uuid(),
270
- owner: z.string(),
271
- name: z.string(),
272
- email: z.string(),
273
- seats: z.string(),
274
- subDomain: z.string(),
275
- phone: z.string(),
276
- website: z.optional(z.string()),
277
- yearSince: z.string(),
278
- status: zSchemaEnum2,
279
- logo: z.optional(z.string()),
53
+ export const zMeasurementResponse = z.object({
54
+ totalArea: z.number(),
55
+ livingArea: z.optional(z.number()),
56
+ balconyArea: z.optional(z.number()),
280
57
  });
281
- export const zPagedModelAgencySummaryResponse = z.object({
282
- content: z.optional(z.array(zAgencySummaryResponse)),
283
- page: z.optional(zPageMetadata),
58
+ export const zPhotosKeyUrlResponse = z.object({
59
+ key: z.optional(z.string()),
60
+ url: z.optional(z.string()),
284
61
  });
285
- export const zItemsEnum = z.enum([
286
- 'AGENCY_WRITE',
287
- 'INVITATION_READ',
288
- 'INVITATION_WRITE',
289
- 'ROLE_READ',
290
- 'ROLE_WRITE',
291
- 'MEMBER_READ',
292
- 'MEMBER_WRITE',
293
- 'LEAD_READ',
294
- 'LEAD_WRITE',
295
- 'LEAD_READ_ALL',
296
- 'LEAD_WRITE_ALL',
62
+ export const zTypeEnum = z.enum([
63
+ 'BEDROOM',
64
+ 'BATHROOM',
65
+ 'KITCHEN',
66
+ 'LIVING_ROOM',
67
+ 'GARAGE',
68
+ 'BACKYARD',
69
+ 'GYM',
70
+ 'LAUNDRY',
71
+ 'HOME_THEATRE',
72
+ 'GAME_ROOM',
297
73
  ]);
298
- export const zRolesRequest = z.object({
299
- name: z.string().min(1),
300
- description: z.string().min(1),
301
- permissions: z.array(zItemsEnum),
302
- });
303
- export const zAgencyPrincipalDto = z.object({
304
- memberId: z.optional(z.uuid()),
305
- permissions: z.optional(z.array(zItemsEnum)),
306
- isActive: z.optional(z.boolean()),
307
- isOwner: z.optional(z.boolean()),
74
+ export const zSpaceRequest = z.object({
75
+ type: zTypeEnum,
76
+ area: z.number(),
308
77
  });
309
- export const zOrganizationSummaryViewResponse = z.object({
310
- agencyId: z.uuid(),
311
- isOwner: z.boolean(),
312
- agencyName: z.string(),
313
- subDomain: z.string(),
314
- roleId: z.optional(z
315
- .int()
316
- .min(-2147483648, {
317
- error: 'Invalid value: Expected int32 to be >= -2147483648',
318
- })
319
- .max(2147483647, {
320
- error: 'Invalid value: Expected int32 to be <= 2147483647',
321
- })),
322
- memberId: z.uuid(),
323
- roleName: z.string(),
324
- permissions: z.array(zItemsEnum),
325
- status: zSchemaEnum2,
78
+ export const zSpacesRequest = z.object({
79
+ spaces: z.array(zSpaceRequest),
326
80
  });
327
- export const zUserContextViewResponse = z.object({
328
- user: zUserSummaryViewResponse,
329
- organizations: z.array(zOrganizationSummaryViewResponse),
81
+ export const zSpaceResponse = z.object({
82
+ type: z.optional(zTypeEnum),
83
+ area: z.optional(z.number()),
330
84
  });
331
- export const zRoleResponse = z.object({
332
- id: z
85
+ /**
86
+ * property group being registered
87
+ */
88
+ export const zGroupEnum = z.enum([
89
+ 'HOUSE_GROUP',
90
+ 'APARTMENT_GROUP',
91
+ 'HOSPITALITY_GROUP',
92
+ 'LAND_GROUP',
93
+ 'BUSINESS_GROUP',
94
+ 'STORAGE_GROUP',
95
+ ]);
96
+ export const zRegistrationProgressDto = z.object({
97
+ registrationId: z.uuid(),
98
+ pages: z.array(z.string()),
99
+ total: z
333
100
  .int()
334
101
  .min(-2147483648, {
335
102
  error: 'Invalid value: Expected int32 to be >= -2147483648',
@@ -337,25 +104,18 @@ export const zRoleResponse = z.object({
337
104
  .max(2147483647, {
338
105
  error: 'Invalid value: Expected int32 to be <= 2147483647',
339
106
  }),
340
- name: z.string(),
341
- description: z.string(),
342
- permissions: z.array(zItemsEnum),
107
+ group: zGroupEnum,
343
108
  });
344
- export const zPagedModelRoleResponse = z.object({
345
- content: z.optional(z.array(zRoleResponse)),
346
- page: z.optional(zPageMetadata),
109
+ export const zTypeEnum2 = z.enum(['JPEG', 'JPG', 'PNG', 'WEBP']);
110
+ export const zPhotoRequest = z.object({
111
+ photo: z.string().min(0).max(255),
112
+ type: zTypeEnum2,
113
+ width: z.int().gte(10).lte(11000),
114
+ height: z.optional(z.int().gte(10).lte(11000)),
347
115
  });
348
- export const zPermissionResponse = z.object({
349
- permission: zItemsEnum,
350
- implied: z.array(zItemsEnum),
116
+ export const zPhotosRequest = z.object({
117
+ photos: z.array(zPhotoRequest).min(1).max(30),
351
118
  });
352
- export const zClientTypeEnum = z.enum(['LISTING', 'SEEKING']);
353
- export const zListingTypeEnum = z.enum([
354
- 'SALE',
355
- 'RENT',
356
- 'DAILY_RENT',
357
- 'PLEDGE',
358
- ]);
359
119
  export const zPropertyTypeEnum = z.enum([
360
120
  'HOUSE',
361
121
  'TOWN_HOUSE',
@@ -378,307 +138,12 @@ export const zPropertyTypeEnum = z.enum([
378
138
  'WAREHOUSE',
379
139
  'GARAGE',
380
140
  ]);
381
- export const zLeadIntentRequest = z.object({
382
- clientType: zClientTypeEnum,
383
- listingType: zListingTypeEnum,
384
- propertyType: zPropertyTypeEnum,
385
- price: z.optional(zPriceRangeRequest),
386
- targetLocation: z.optional(zLocationRefRequest),
387
- area: z.optional(z.number()),
388
- numberOfRooms: z.optional(z
389
- .int()
390
- .min(-2147483648, {
391
- error: 'Invalid value: Expected int32 to be >= -2147483648',
392
- })
393
- .max(2147483647, {
394
- error: 'Invalid value: Expected int32 to be <= 2147483647',
395
- })),
396
- });
397
- export const zClientRequirementRequest = z.object({
398
- propertyType: z.array(zPropertyTypeEnum),
399
- listingType: zListingTypeEnum,
400
- priceMin: z.optional(z.number()),
401
- priceMax: z.optional(z.number()),
402
- bedroomsMin: z.optional(z
403
- .int()
404
- .min(-2147483648, {
405
- error: 'Invalid value: Expected int32 to be >= -2147483648',
406
- })
407
- .max(2147483647, {
408
- error: 'Invalid value: Expected int32 to be <= 2147483647',
409
- })),
410
- bedroomsMax: z.optional(z
411
- .int()
412
- .min(-2147483648, {
413
- error: 'Invalid value: Expected int32 to be >= -2147483648',
414
- })
415
- .max(2147483647, {
416
- error: 'Invalid value: Expected int32 to be <= 2147483647',
417
- })),
418
- bathroomsMin: z.optional(z
419
- .int()
420
- .min(-2147483648, {
421
- error: 'Invalid value: Expected int32 to be >= -2147483648',
422
- })
423
- .max(2147483647, {
424
- error: 'Invalid value: Expected int32 to be <= 2147483647',
425
- })),
426
- bathroomsMax: z.optional(z
427
- .int()
428
- .min(-2147483648, {
429
- error: 'Invalid value: Expected int32 to be >= -2147483648',
430
- })
431
- .max(2147483647, {
432
- error: 'Invalid value: Expected int32 to be <= 2147483647',
433
- })),
434
- totalMin: z.optional(z.number()),
435
- totalMax: z.optional(z.number()),
436
- livingMin: z.optional(z.number()),
437
- livingMax: z.optional(z.number()),
438
- targetLocation: z.optional(zLocationRefRequest),
439
- });
440
- export const zIntentResponse = z.object({
441
- id: z.coerce
442
- .bigint()
443
- .min(BigInt('-9223372036854775808'), {
444
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
445
- })
446
- .max(BigInt('9223372036854775807'), {
447
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
448
- }),
449
- clientType: zClientTypeEnum,
450
- listingType: zListingTypeEnum,
141
+ export const zStartRegistrationRequest = z.object({
451
142
  propertyType: zPropertyTypeEnum,
452
- priceMin: z.optional(z.number()),
453
- priceMax: z.optional(z.number()),
454
- regionId: z.optional(z.coerce
455
- .bigint()
456
- .min(BigInt('-9223372036854775808'), {
457
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
458
- })
459
- .max(BigInt('9223372036854775807'), {
460
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
461
- })),
462
- districtId: z.optional(z.coerce
463
- .bigint()
464
- .min(BigInt('-9223372036854775808'), {
465
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
466
- })
467
- .max(BigInt('9223372036854775807'), {
468
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
469
- })),
470
- subDistrictId: z.optional(z.coerce
471
- .bigint()
472
- .min(BigInt('-9223372036854775808'), {
473
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
474
- })
475
- .max(BigInt('9223372036854775807'), {
476
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
477
- })),
478
- streetId: z.optional(z.coerce
479
- .bigint()
480
- .min(BigInt('-9223372036854775808'), {
481
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
482
- })
483
- .max(BigInt('9223372036854775807'), {
484
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
485
- })),
486
- area: z.optional(z.number()),
487
- numberOfRooms: z.optional(z
488
- .int()
489
- .min(-2147483648, {
490
- error: 'Invalid value: Expected int32 to be >= -2147483648',
491
- })
492
- .max(2147483647, {
493
- error: 'Invalid value: Expected int32 to be <= 2147483647',
494
- })),
495
143
  });
496
- export const zPropertyResponse = z.object({
497
- propertyId: z.uuid(),
144
+ export const zAgencyStartRegistrationRequest = z.object({
498
145
  propertyType: zPropertyTypeEnum,
499
- });
500
- export const zRequirementResponse = z.object({
501
- id: z.coerce
502
- .bigint()
503
- .min(BigInt('-9223372036854775808'), {
504
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
505
- })
506
- .max(BigInt('9223372036854775807'), {
507
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
508
- }),
509
- propertyType: z.array(zPropertyTypeEnum),
510
- listingType: zListingTypeEnum,
511
- priceMin: z.optional(z.number()),
512
- priceMax: z.optional(z.number()),
513
- bedroomsMin: z.optional(z
514
- .int()
515
- .min(-2147483648, {
516
- error: 'Invalid value: Expected int32 to be >= -2147483648',
517
- })
518
- .max(2147483647, {
519
- error: 'Invalid value: Expected int32 to be <= 2147483647',
520
- })),
521
- bedroomsMax: z.optional(z
522
- .int()
523
- .min(-2147483648, {
524
- error: 'Invalid value: Expected int32 to be >= -2147483648',
525
- })
526
- .max(2147483647, {
527
- error: 'Invalid value: Expected int32 to be <= 2147483647',
528
- })),
529
- bathroomsMin: z.optional(z
530
- .int()
531
- .min(-2147483648, {
532
- error: 'Invalid value: Expected int32 to be >= -2147483648',
533
- })
534
- .max(2147483647, {
535
- error: 'Invalid value: Expected int32 to be <= 2147483647',
536
- })),
537
- bathroomsMax: z.optional(z
538
- .int()
539
- .min(-2147483648, {
540
- error: 'Invalid value: Expected int32 to be >= -2147483648',
541
- })
542
- .max(2147483647, {
543
- error: 'Invalid value: Expected int32 to be <= 2147483647',
544
- })),
545
- totalMin: z.optional(z.number()),
546
- totalMax: z.optional(z.number()),
547
- livingMin: z.optional(z.number()),
548
- livingMax: z.optional(z.number()),
549
- regionId: z.optional(z.coerce
550
- .bigint()
551
- .min(BigInt('-9223372036854775808'), {
552
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
553
- })
554
- .max(BigInt('9223372036854775807'), {
555
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
556
- })),
557
- districtId: z.optional(z.coerce
558
- .bigint()
559
- .min(BigInt('-9223372036854775808'), {
560
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
561
- })
562
- .max(BigInt('9223372036854775807'), {
563
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
564
- })),
565
- subDistrictId: z.optional(z.coerce
566
- .bigint()
567
- .min(BigInt('-9223372036854775808'), {
568
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
569
- })
570
- .max(BigInt('9223372036854775807'), {
571
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
572
- })),
573
- streetId: z.optional(z.coerce
574
- .bigint()
575
- .min(BigInt('-9223372036854775808'), {
576
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
577
- })
578
- .max(BigInt('9223372036854775807'), {
579
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
580
- })),
581
- });
582
- export const zGenderEnum = z.enum(['MALE', 'FEMALE', 'UNKNOWN']);
583
- export const zContactInfoRequest = z.object({
584
- firstName: z.optional(z.string()),
585
- lastName: z.optional(z.string()),
586
- gender: z.optional(zGenderEnum),
587
- email: z.optional(z.email()),
588
- phone: z.string().min(1),
589
- });
590
- export const zCreateLeadRequest = z.object({
591
- contactInfo: zContactInfoRequest,
592
- note: z.optional(z.string().min(0).max(500)),
593
- sourceUrl: z.optional(z.string()),
594
- });
595
- export const zPriorityEnum = z.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW']);
596
- export const zUpdatePriorityRequest = z.object({
597
- priority: z.optional(zPriorityEnum),
598
- });
599
- export const zItemsEnum2 = z.enum(['WHATSAPP', 'VIBER', 'PHONE_CALL']);
600
- export const zUpdateContactMethodsRequest = z.object({
601
- contactMethods: z.array(zItemsEnum2),
602
- favoriteContactMethod: zItemsEnum2,
603
- });
604
- export const zCreateClientRequest = z.object({
605
- contactInfo: zContactInfoRequest,
606
- sourceUrl: z.optional(z.string()),
607
- contactMethods: z.array(zItemsEnum2).min(1),
608
- favoriteContactMethod: zItemsEnum2,
609
- priority: z.optional(zPriorityEnum),
610
- });
611
- export const zTypeEnum = z.enum([
612
- 'FACEBOOK',
613
- 'YOUTUBE',
614
- 'INSTAGRAM',
615
- 'TIKTOK',
616
- 'LINKEDIN',
617
- ]);
618
- export const zSocialMediaRequest = z.object({
619
- type: zTypeEnum,
620
- url: z.optional(z.string()),
621
- });
622
- export const zSocialMediasRequest = z.object({
623
- data: z.array(zSocialMediaRequest).min(1).max(5),
624
- });
625
- export const zTypeEnum2 = z.enum(['JPEG', 'JPG', 'PNG', 'WEBP']);
626
- export const zPhotoRequest = z.object({
627
- photo: z.string().min(0).max(255),
628
- type: zTypeEnum2,
629
- width: z.int().gte(10).lte(11000),
630
- height: z.optional(z.int().gte(10).lte(11000)),
631
- });
632
- export const zStatusEnum = z.enum([
633
- 'PENDING',
634
- 'ACCEPTED',
635
- 'CANCELLED',
636
- 'EXPIRED',
637
- ]);
638
- export const zInvitationDetailsResponse = z.object({
639
- invitationId: z.uuid(),
640
- agencyId: z.uuid(),
641
- email: z.string(),
642
- status: zStatusEnum,
643
- agencyName: z.string(),
644
- agencyLogo: z.optional(z.string()),
645
- });
646
- export const zInvitationViewResponse = z.object({
647
- invitationId: z.uuid(),
648
- email: z.string(),
649
- status: zStatusEnum,
650
- createdAt: z.iso.datetime(),
651
- expiresAt: z.iso.datetime(),
652
- acceptedAt: z.optional(z.iso.datetime()),
653
- acceptedBy: z.optional(z.string()),
654
- });
655
- export const zPagedModelInvitationViewResponse = z.object({
656
- content: z.optional(z.array(zInvitationViewResponse)),
657
- page: z.optional(zPageMetadata),
658
- });
659
- export const zGroupEnum = z.enum([
660
- 'AGENCY',
661
- 'INVITATION',
662
- 'ROLE',
663
- 'MEMBER',
664
- 'LEAD',
665
- ]);
666
- export const zGroupedPermissionsResponse = z.object({
667
- group: zGroupEnum,
668
- permissions: z.array(zPermissionResponse),
669
- });
670
- export const zSourceTypeEnum = z.enum([
671
- 'MY_HOME',
672
- 'SS',
673
- 'FACEBOOK',
674
- 'YOUTUBE',
675
- 'INSTAGRAM',
676
- 'TIKTOK',
677
- 'LINKEDIN',
678
- 'UNKNOWN',
679
- ]);
680
- export const zLeadProjectionResponse = z.object({
681
- id: z.coerce
146
+ clientId: z.coerce
682
147
  .bigint()
683
148
  .min(BigInt('-9223372036854775808'), {
684
149
  error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
@@ -686,35 +151,27 @@ export const zLeadProjectionResponse = z.object({
686
151
  .max(BigInt('9223372036854775807'), {
687
152
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
688
153
  }),
689
- createdBy: z.uuid(),
690
- assignedTo: z.optional(z.uuid()),
691
- status: zSchemaEnum,
692
- contactFullName: z.optional(z.string()),
693
- contactGender: z.optional(zGenderEnum),
694
- contactPhoneNumber: z.string(),
695
- contactEmail: z.optional(z.string()),
696
- note: z.optional(z.string()),
697
- sourceType: z.optional(zSourceTypeEnum),
698
- sourceLink: z.optional(z.string()),
699
- isSearching: z.boolean(),
700
- isListing: z.boolean(),
701
- intents: z.optional(z.array(zIntentResponse)),
702
- });
703
- export const zPagedModelLeadProjectionResponse = z.object({
704
- content: z.optional(z.array(zLeadProjectionResponse)),
705
- page: z.optional(zPageMetadata),
154
+ ownerId: z.optional(z.string()),
706
155
  });
707
- export const zClientProjectionResponse = z.object({
708
- id: 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
- createdBy: z.uuid(),
717
- leadId: z.optional(z.coerce
156
+ export const zDraftCardResponse = z.object({
157
+ id: z.uuid(),
158
+ type: zPropertyTypeEnum,
159
+ title: z.string(),
160
+ city: z.optional(z.string()),
161
+ street: z.optional(z.string()),
162
+ coverPhoto: z.optional(z.string()),
163
+ uploadDate: z.iso.datetime(),
164
+ });
165
+ export const zLanguageEnum = z.enum(['KA', 'EN', 'RU']);
166
+ export const zLangTextResponse = z.object({
167
+ language: zLanguageEnum,
168
+ text: z.string(),
169
+ });
170
+ export const zRegistrationDraftResponse = z.object({
171
+ propertyId: z.uuid(),
172
+ ownershipType: z.string(),
173
+ userId: z.optional(z.string()),
174
+ clientId: z.optional(z.coerce
718
175
  .bigint()
719
176
  .min(BigInt('-9223372036854775808'), {
720
177
  error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
@@ -722,598 +179,181 @@ export const zClientProjectionResponse = z.object({
722
179
  .max(BigInt('9223372036854775807'), {
723
180
  error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
724
181
  })),
725
- assignedTo: z.optional(z.uuid()),
726
- contactFullName: z.optional(z.string()),
727
- contactPhoneNumber: z.string(),
728
- contactGender: z.optional(zGenderEnum),
729
- contactEmail: z.optional(z.string()),
730
- sourceType: z.optional(zSourceTypeEnum),
731
- sourceLink: z.optional(z.string()),
732
- isSearching: z.boolean(),
733
- isListing: z.boolean(),
734
- contactMethods: z.array(zItemsEnum2),
735
- favoriteContactMethod: z.optional(zItemsEnum2),
736
- priority: z.optional(zPriorityEnum),
737
- requirements: z.optional(z.array(zRequirementResponse)),
738
- properties: z.optional(z.array(zPropertyResponse)),
739
- });
740
- export const zPagedModelClientProjectionResponse = z.object({
741
- content: z.optional(z.array(zClientProjectionResponse)),
742
- page: z.optional(zPageMetadata),
743
- });
744
- export const zRemoveRoleData = z.object({
745
- body: z.optional(z.never()),
746
- path: z.object({
747
- roleId: z
748
- .int()
749
- .min(-2147483648, {
750
- error: 'Invalid value: Expected int32 to be >= -2147483648',
751
- })
752
- .max(2147483647, {
753
- error: 'Invalid value: Expected int32 to be <= 2147483647',
754
- }),
182
+ agencyId: z.optional(z.uuid()),
183
+ memberId: z.optional(z.uuid()),
184
+ type: zPropertyTypeEnum,
185
+ title: z.string(),
186
+ description: z.array(zLangTextResponse),
187
+ measurements: z.optional(zMeasurementResponse),
188
+ address: z.optional(zAddressResponse),
189
+ spaces: z.array(zSpaceResponse),
190
+ photos: z.array(zPhotosKeyUrlResponse),
191
+ amenities: z.array(z
192
+ .int()
193
+ .min(-2147483648, {
194
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
195
+ })
196
+ .max(2147483647, {
197
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
198
+ })),
199
+ pages: z.array(z.string()),
200
+ total: z
201
+ .int()
202
+ .min(-2147483648, {
203
+ error: 'Invalid value: Expected int32 to be >= -2147483648',
204
+ })
205
+ .max(2147483647, {
206
+ error: 'Invalid value: Expected int32 to be <= 2147483647',
755
207
  }),
756
- query: z.optional(z.never()),
208
+ group: zGroupEnum,
757
209
  });
758
210
  /**
759
- * No Content
211
+ * property draft status
760
212
  */
761
- export const zRemoveRoleResponse = z.void();
762
- export const zUpdateRoleData = z.object({
763
- body: zRolesRequest,
764
- path: z.object({
765
- roleId: z
766
- .int()
767
- .min(-2147483648, {
768
- error: 'Invalid value: Expected int32 to be >= -2147483648',
769
- })
770
- .max(2147483647, {
771
- error: 'Invalid value: Expected int32 to be <= 2147483647',
772
- }),
773
- }),
774
- query: z.optional(z.never()),
213
+ export const zStatusEnum = z.enum([
214
+ 'IN_REGISTRATION',
215
+ 'PROCESSING',
216
+ 'COMPLETED',
217
+ ]);
218
+ export const zDraftStatusResponse = z.object({
219
+ status: zStatusEnum,
775
220
  });
776
- /**
777
- * No Content
778
- */
779
- export const zUpdateRoleResponse = z.void();
780
- export const zAssignRoleData = z.object({
781
- body: zAssignRoleRequest,
221
+ export const zRegisterSpacesData = z.object({
222
+ body: zSpacesRequest,
782
223
  path: z.object({
783
- memberId: z.uuid(),
224
+ draftId: z.uuid(),
784
225
  }),
785
226
  query: z.optional(z.never()),
786
227
  });
787
228
  /**
788
- * No Content
789
- */
790
- export const zAssignRoleResponse = z.void();
791
- export const zAssignRoleBatchData = z.object({
792
- body: zBatchAssignRoleRequest,
793
- path: z.optional(z.never()),
794
- query: z.optional(z.never()),
795
- });
796
- /**
797
- * No Content
229
+ * OK
798
230
  */
799
- export const zAssignRoleBatchResponse = z.void();
800
- export const zChangeStatusData = z.object({
801
- body: zChangeStatusRequest,
231
+ export const zRegisterSpacesResponse = zRegistrationProgressDto;
232
+ export const zRequestPresignedUrlsData = z.object({
233
+ body: zPhotosRequest,
802
234
  path: z.object({
803
- leadId: z.coerce
804
- .bigint()
805
- .min(BigInt('-9223372036854775808'), {
806
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
807
- })
808
- .max(BigInt('9223372036854775807'), {
809
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
810
- }),
235
+ draftId: z.uuid(),
811
236
  }),
812
237
  query: z.optional(z.never()),
813
238
  });
814
239
  /**
815
- * No Content
240
+ * OK
816
241
  */
817
- export const zChangeStatusResponse = z.void();
818
- export const zUpdateSourceData = z.object({
819
- body: zSourceRequest,
242
+ export const zRequestPresignedUrlsResponse = zPresignedUrlsResponse;
243
+ export const zRegisterMeasurementsData = z.object({
244
+ body: zMeasurementRequest,
820
245
  path: z.object({
821
- leadId: z.coerce
822
- .bigint()
823
- .min(BigInt('-9223372036854775808'), {
824
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
825
- })
826
- .max(BigInt('9223372036854775807'), {
827
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
828
- }),
246
+ draftId: z.uuid(),
829
247
  }),
830
248
  query: z.optional(z.never()),
831
249
  });
832
250
  /**
833
- * No Content
251
+ * OK
834
252
  */
835
- export const zUpdateSourceResponse = z.void();
836
- export const zUpdateNoteData = z.object({
837
- body: zUpdateNoteRequest,
253
+ export const zRegisterMeasurementsResponse = zRegistrationProgressDto;
254
+ export const zRegisterDescriptionData = z.object({
255
+ body: zTitleAndDescriptionRequest,
838
256
  path: z.object({
839
- leadId: 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
- }),
257
+ draftId: z.uuid(),
847
258
  }),
848
259
  query: z.optional(z.never()),
849
260
  });
850
261
  /**
851
- * No Content
852
- */
853
- export const zUpdateNoteResponse = z.void();
854
- export const zRemoveIntentData = z.object({
855
- body: z.optional(z.never()),
856
- path: z.object({
857
- leadId: z.coerce
858
- .bigint()
859
- .min(BigInt('-9223372036854775808'), {
860
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
861
- })
862
- .max(BigInt('9223372036854775807'), {
863
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
864
- }),
865
- }),
866
- query: z.object({
867
- intentId: z.coerce
868
- .bigint()
869
- .min(BigInt('-9223372036854775808'), {
870
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
871
- })
872
- .max(BigInt('9223372036854775807'), {
873
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
874
- }),
875
- }),
876
- });
877
- /**
878
- * No Content
262
+ * OK
879
263
  */
880
- export const zRemoveIntentResponse = z.void();
881
- export const zAddIntentData = z.object({
882
- body: zLeadIntentRequest,
264
+ export const zRegisterDescriptionResponse = zRegistrationProgressDto;
265
+ export const zRegisterAmenitiesData = z.object({
266
+ body: zAmenitiesRequest,
883
267
  path: z.object({
884
- leadId: z.coerce
885
- .bigint()
886
- .min(BigInt('-9223372036854775808'), {
887
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
888
- })
889
- .max(BigInt('9223372036854775807'), {
890
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
891
- }),
268
+ draftId: z.uuid(),
892
269
  }),
893
270
  query: z.optional(z.never()),
894
271
  });
895
272
  /**
896
- * No Content
897
- */
898
- export const zAddIntentResponse = z.void();
899
- export const zUpdateIntentData = z.object({
900
- body: zLeadIntentRequest,
901
- path: z.object({
902
- leadId: z.coerce
903
- .bigint()
904
- .min(BigInt('-9223372036854775808'), {
905
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
906
- })
907
- .max(BigInt('9223372036854775807'), {
908
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
909
- }),
910
- }),
911
- query: z.object({
912
- intentId: z.coerce
913
- .bigint()
914
- .min(BigInt('-9223372036854775808'), {
915
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
916
- })
917
- .max(BigInt('9223372036854775807'), {
918
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
919
- }),
920
- }),
921
- });
922
- /**
923
- * No Content
273
+ * OK
924
274
  */
925
- export const zUpdateIntentResponse = z.void();
926
- export const zUpdateContactInfoData = z.object({
927
- body: zContactInfoRequest,
275
+ export const zRegisterAmenitiesResponse = zRegistrationProgressDto;
276
+ export const zRegisterAddressData = z.object({
277
+ body: zAddressRequest,
928
278
  path: z.object({
929
- leadId: z.coerce
930
- .bigint()
931
- .min(BigInt('-9223372036854775808'), {
932
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
933
- })
934
- .max(BigInt('9223372036854775807'), {
935
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
936
- }),
279
+ draftId: z.uuid(),
937
280
  }),
938
281
  query: z.optional(z.never()),
939
282
  });
940
283
  /**
941
- * No Content
284
+ * OK
942
285
  */
943
- export const zUpdateContactInfoResponse = z.void();
944
- export const zAssignToAgentData = z.object({
945
- body: zAssignToMemberRequest,
286
+ export const zRegisterAddressResponse = zRegistrationProgressDto;
287
+ export const zReorderPhotosData = z.object({
288
+ body: zPhotoReorderRequest,
946
289
  path: z.object({
947
- leadId: z.coerce
948
- .bigint()
949
- .min(BigInt('-9223372036854775808'), {
950
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
951
- })
952
- .max(BigInt('9223372036854775807'), {
953
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
954
- }),
290
+ draftId: z.uuid(),
955
291
  }),
956
292
  query: z.optional(z.never()),
957
293
  });
958
294
  /**
959
295
  * No Content
960
296
  */
961
- export const zAssignToAgentResponse = z.void();
962
- export const zUpdateSource1Data = z.object({
963
- body: zSourceRequest,
964
- path: z.object({
965
- clientId: z.coerce
966
- .bigint()
967
- .min(BigInt('-9223372036854775808'), {
968
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
969
- })
970
- .max(BigInt('9223372036854775807'), {
971
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
972
- }),
973
- }),
297
+ export const zReorderPhotosResponse = z.void();
298
+ export const zStartRegistrationData = z.object({
299
+ body: zStartRegistrationRequest,
300
+ path: z.optional(z.never()),
974
301
  query: z.optional(z.never()),
975
302
  });
976
303
  /**
977
- * No Content
304
+ * Created
978
305
  */
979
- export const zUpdateSource1Response = z.void();
980
- export const zRemoveClientRequirementData = z.object({
306
+ export const zStartRegistrationResponse = zRegistrationProgressDto;
307
+ export const zGetDraftData = z.object({
981
308
  body: z.optional(z.never()),
982
309
  path: z.object({
983
- clientId: z.coerce
984
- .bigint()
985
- .min(BigInt('-9223372036854775808'), {
986
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
987
- })
988
- .max(BigInt('9223372036854775807'), {
989
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
990
- }),
991
- }),
992
- query: z.object({
993
- requirementId: z.coerce
994
- .bigint()
995
- .min(BigInt('-9223372036854775808'), {
996
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
997
- })
998
- .max(BigInt('9223372036854775807'), {
999
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1000
- }),
1001
- }),
1002
- });
1003
- /**
1004
- * No Content
1005
- */
1006
- export const zRemoveClientRequirementResponse = z.void();
1007
- export const zAddClientRequirementData = z.object({
1008
- body: zClientRequirementRequest,
1009
- path: z.object({
1010
- clientId: z.coerce
1011
- .bigint()
1012
- .min(BigInt('-9223372036854775808'), {
1013
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1014
- })
1015
- .max(BigInt('9223372036854775807'), {
1016
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1017
- }),
1018
- }),
1019
- query: z.optional(z.never()),
1020
- });
1021
- /**
1022
- * No Content
1023
- */
1024
- export const zAddClientRequirementResponse = z.void();
1025
- export const zUpdateClientRequirementData = z.object({
1026
- body: zClientRequirementRequest,
1027
- path: z.object({
1028
- clientId: z.coerce
1029
- .bigint()
1030
- .min(BigInt('-9223372036854775808'), {
1031
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1032
- })
1033
- .max(BigInt('9223372036854775807'), {
1034
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1035
- }),
1036
- }),
1037
- query: z.object({
1038
- requirementId: z.coerce
1039
- .bigint()
1040
- .min(BigInt('-9223372036854775808'), {
1041
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1042
- })
1043
- .max(BigInt('9223372036854775807'), {
1044
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1045
- }),
1046
- }),
1047
- });
1048
- /**
1049
- * No Content
1050
- */
1051
- export const zUpdateClientRequirementResponse = z.void();
1052
- export const zUpdatePriorityData = z.object({
1053
- body: zUpdatePriorityRequest,
1054
- path: z.object({
1055
- clientId: z.coerce
1056
- .bigint()
1057
- .min(BigInt('-9223372036854775808'), {
1058
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1059
- })
1060
- .max(BigInt('9223372036854775807'), {
1061
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1062
- }),
1063
- }),
1064
- query: z.optional(z.never()),
1065
- });
1066
- /**
1067
- * No Content
1068
- */
1069
- export const zUpdatePriorityResponse = z.void();
1070
- export const zUpdateContactMethodsData = z.object({
1071
- body: zUpdateContactMethodsRequest,
1072
- path: z.object({
1073
- clientId: z.coerce
1074
- .bigint()
1075
- .min(BigInt('-9223372036854775808'), {
1076
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1077
- })
1078
- .max(BigInt('9223372036854775807'), {
1079
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1080
- }),
1081
- }),
1082
- query: z.optional(z.never()),
1083
- });
1084
- /**
1085
- * No Content
1086
- */
1087
- export const zUpdateContactMethodsResponse = z.void();
1088
- export const zUpdateContactInfo1Data = z.object({
1089
- body: zContactInfoRequest,
1090
- path: z.object({
1091
- clientId: z.coerce
1092
- .bigint()
1093
- .min(BigInt('-9223372036854775808'), {
1094
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1095
- })
1096
- .max(BigInt('9223372036854775807'), {
1097
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1098
- }),
310
+ draftId: z.uuid(),
1099
311
  }),
1100
312
  query: z.optional(z.never()),
1101
313
  });
1102
314
  /**
1103
- * No Content
1104
- */
1105
- export const zUpdateContactInfo1Response = z.void();
1106
- export const zAssignToAgent1Data = z.object({
1107
- body: zAssignToMemberRequest,
1108
- path: z.object({
1109
- clientId: z.coerce
1110
- .bigint()
1111
- .min(BigInt('-9223372036854775808'), {
1112
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1113
- })
1114
- .max(BigInt('9223372036854775807'), {
1115
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1116
- }),
1117
- }),
1118
- query: z.optional(z.never()),
1119
- });
1120
- /**
1121
- * No Content
315
+ * OK
1122
316
  */
1123
- export const zAssignToAgent1Response = z.void();
1124
- export const zCorrectRegistrationDetailsData = z.object({
1125
- body: zCreateAgencyRequest,
317
+ export const zGetDraftResponse = zRegistrationDraftResponse;
318
+ export const zRestartRegistrationData = z.object({
319
+ body: zStartRegistrationRequest,
1126
320
  path: z.object({
1127
- agencyId: z.uuid(),
321
+ draftId: z.uuid(),
1128
322
  }),
1129
323
  query: z.optional(z.never()),
1130
324
  });
1131
325
  /**
1132
- * No Content
326
+ * OK
1133
327
  */
1134
- export const zCorrectRegistrationDetailsResponse = z.void();
1135
- export const zActivateAgencyData = z.object({
328
+ export const zRestartRegistrationResponse = zRegistrationProgressDto;
329
+ export const zCompleteRegistrationData = z.object({
1136
330
  body: z.optional(z.never()),
1137
331
  path: z.object({
1138
- agencyId: z.uuid(),
332
+ draftId: z.uuid(),
1139
333
  }),
1140
334
  query: z.optional(z.never()),
1141
335
  });
1142
- /**
1143
- * No Content
1144
- */
1145
- export const zActivateAgencyResponse = z.void();
1146
- export const zUpdateSocialUrlsData = z.object({
1147
- body: zSocialMediasRequest,
1148
- path: z.optional(z.never()),
1149
- query: z.optional(z.never()),
1150
- });
1151
- /**
1152
- * No Content
1153
- */
1154
- export const zUpdateSocialUrlsResponse = z.void();
1155
- export const zTransferFundsData = z.object({
1156
- body: zTransferFundsRequest,
1157
- path: z.optional(z.never()),
1158
- query: z.optional(z.never()),
1159
- });
1160
- /**
1161
- * No Content
1162
- */
1163
- export const zTransferFundsResponse = z.void();
1164
- export const zDepositFundsData = z.object({
1165
- body: zDepositFundsRequest,
1166
- path: z.optional(z.never()),
1167
- query: z.optional(z.never()),
1168
- });
1169
- /**
1170
- * No Content
1171
- */
1172
- export const zDepositFundsResponse = z.void();
1173
- export const zListRolesData = z.object({
1174
- body: z.optional(z.never()),
1175
- path: z.optional(z.never()),
1176
- query: z.optional(z.object({
1177
- page: z.optional(z.int().gte(0)).default(0),
1178
- size: z.optional(z.int().gte(1)).default(20),
1179
- sort: z.optional(z.array(z.string())),
1180
- })),
1181
- });
1182
- /**
1183
- * OK
1184
- */
1185
- export const zListRolesResponse = zPagedModelRoleResponse;
1186
- export const zCreateRoleData = z.object({
1187
- body: zRolesRequest,
1188
- path: z.optional(z.never()),
1189
- query: z.optional(z.never()),
1190
- });
1191
- /**
1192
- * Created
1193
- */
1194
- export const zCreateRoleResponse = zIdResponseInteger;
1195
- export const zSearchLeadsData = z.object({
1196
- body: z.optional(z.never()),
1197
- path: z.optional(z.never()),
1198
- query: z.optional(z.object({
1199
- status: z.optional(zSchemaEnum),
1200
- isSearching: z.optional(z.boolean()),
1201
- isListing: z.optional(z.boolean()),
1202
- page: z.optional(z.int().gte(0)).default(0),
1203
- size: z.optional(z.int().gte(1)).default(20),
1204
- sort: z.optional(z.array(z.string())),
1205
- })),
1206
- });
1207
- /**
1208
- * OK
1209
- */
1210
- export const zSearchLeadsResponse = zPagedModelLeadProjectionResponse;
1211
- export const zCreateLeadData = z.object({
1212
- body: zCreateLeadRequest,
1213
- path: z.optional(z.never()),
1214
- query: z.optional(z.never()),
1215
- });
1216
- /**
1217
- * Created
1218
- */
1219
- export const zCreateLeadResponse = zIdResponseLong;
1220
- export const zGetSentInvitationsData = z.object({
1221
- body: z.optional(z.never()),
1222
- path: z.optional(z.never()),
1223
- query: z.optional(z.object({
1224
- page: z.optional(z.int().gte(0)).default(0),
1225
- size: z.optional(z.int().gte(1)).default(10),
1226
- sort: z.optional(z.array(z.string())).default(['createdAt,ASC']),
1227
- })),
1228
- });
1229
- /**
1230
- * OK
1231
- */
1232
- export const zGetSentInvitationsResponse = zPagedModelInvitationViewResponse;
1233
- export const zSendInvitationData = z.object({
1234
- body: zInviteMemberRequest,
1235
- path: z.optional(z.never()),
1236
- query: z.optional(z.never()),
1237
- });
1238
- export const zAcceptInvitationData = z.object({
1239
- body: z.optional(z.never()),
336
+ export const zNotifyPhotoUploadData = z.object({
337
+ body: zPhotosRequest,
1240
338
  path: z.object({
1241
- invitationId: z.uuid(),
1242
- }),
1243
- query: z.object({
1244
- agencyId: z.uuid(),
339
+ draftId: z.uuid(),
1245
340
  }),
1246
- });
1247
- export const zRequestPrincipleData = z.object({
1248
- body: zAuthRequest,
1249
- path: z.optional(z.never()),
1250
341
  query: z.optional(z.never()),
1251
342
  });
1252
343
  /**
1253
344
  * OK
1254
345
  */
1255
- export const zRequestPrincipleResponse = zAgencyPrincipalDto;
1256
- export const zSearchClientsData = z.object({
1257
- body: z.optional(z.never()),
1258
- path: z.optional(z.never()),
1259
- query: z.optional(z.object({
1260
- isSearching: z.optional(z.boolean()),
1261
- isListing: z.optional(z.boolean()),
1262
- page: z.optional(z.int().gte(0)).default(0),
1263
- size: z.optional(z.int().gte(1)).default(20),
1264
- sort: z.optional(z.array(z.string())),
1265
- })),
1266
- });
1267
- /**
1268
- * OK
1269
- */
1270
- export const zSearchClientsResponse = zPagedModelClientProjectionResponse;
1271
- export const zCreateClientData = z.object({
1272
- body: zCreateClientRequest,
1273
- path: z.optional(z.never()),
1274
- query: z.optional(z.never()),
1275
- });
1276
- /**
1277
- * Created
1278
- */
1279
- export const zCreateClientResponse = zIdResponseLong;
1280
- export const zCreateAgencyData = z.object({
1281
- body: zCreateAgencyRequest,
346
+ export const zNotifyPhotoUploadResponse = zRegistrationProgressDto;
347
+ export const zStartRegistrationForAgencyData = z.object({
348
+ body: zAgencyStartRegistrationRequest,
1282
349
  path: z.optional(z.never()),
1283
350
  query: z.optional(z.never()),
1284
351
  });
1285
352
  /**
1286
353
  * Created
1287
354
  */
1288
- export const zCreateAgencyResponse = zIdResponseUuid;
1289
- export const zGeneratePresignedUrlData = z.object({
1290
- body: zPhotoRequest,
1291
- path: z.optional(z.never()),
1292
- query: z.optional(z.never()),
1293
- });
1294
- /**
1295
- * OK
1296
- */
1297
- export const zGeneratePresignedUrlResponse = zPresignedUrlsResponse;
1298
- export const zNotifyLogoUploadCompletionData = z.object({
1299
- body: zPhotoRequest,
1300
- path: z.optional(z.never()),
1301
- query: z.optional(z.never()),
1302
- });
1303
- /**
1304
- * OK
1305
- */
1306
- export const zNotifyLogoUploadCompletionResponse = zUploadAcknowledgmentResponse;
1307
- export const zNotifyCoverUploadCompletionData = z.object({
1308
- body: zPhotoRequest,
1309
- path: z.optional(z.never()),
1310
- query: z.optional(z.never()),
1311
- });
1312
- /**
1313
- * OK
1314
- */
1315
- export const zNotifyCoverUploadCompletionResponse = zUploadAcknowledgmentResponse;
1316
- export const zGetMeData = z.object({
355
+ export const zStartRegistrationForAgencyResponse = zRegistrationProgressDto;
356
+ export const zGetDraftsData = z.object({
1317
357
  body: z.optional(z.never()),
1318
358
  path: z.optional(z.never()),
1319
359
  query: z.optional(z.never()),
@@ -1321,151 +361,50 @@ export const zGetMeData = z.object({
1321
361
  /**
1322
362
  * OK
1323
363
  */
1324
- export const zGetMeResponse = zUserContextViewResponse;
1325
- export const zGetInvitationDetailsData = z.object({
1326
- body: z.optional(z.never()),
1327
- path: z.object({
1328
- invitationId: z.uuid(),
1329
- }),
1330
- query: z.object({
1331
- agencyId: z.uuid(),
1332
- }),
1333
- });
1334
- /**
1335
- * OK
1336
- */
1337
- export const zGetInvitationDetailsResponse = zInvitationDetailsResponse;
1338
- export const zGetAllAgenciesData = z.object({
1339
- body: z.optional(z.never()),
1340
- path: z.optional(z.never()),
1341
- query: z.optional(z.object({
1342
- status: z.optional(zSchemaEnum2),
1343
- page: z.optional(z.int().gte(0)).default(0),
1344
- size: z.optional(z.int().gte(1)).default(10),
1345
- sort: z.optional(z.array(z.string())).default(['name,ASC']),
1346
- })),
1347
- });
1348
- /**
1349
- * OK
1350
- */
1351
- export const zGetAllAgenciesResponse = zPagedModelAgencySummaryResponse;
1352
- export const zGetAgencyBySubdomainData = z.object({
364
+ export const zGetDraftsResponse = z.array(zDraftCardResponse);
365
+ export const zGetDraftStatusData = z.object({
1353
366
  body: z.optional(z.never()),
1354
367
  path: z.object({
1355
- subDomain: z.string(),
368
+ draftId: z.uuid(),
1356
369
  }),
1357
370
  query: z.optional(z.never()),
1358
371
  });
1359
372
  /**
1360
373
  * OK
1361
374
  */
1362
- export const zGetAgencyBySubdomainResponse = zAgencySummaryResponse;
1363
- export const zListPermissionCatalogData = z.object({
1364
- body: z.optional(z.never()),
1365
- path: z.optional(z.never()),
1366
- query: z.optional(z.never()),
1367
- });
1368
- /**
1369
- * OK
1370
- */
1371
- export const zListPermissionCatalogResponse = z.array(zGroupedPermissionsResponse);
1372
- export const zGetAllMembersData = z.object({
1373
- body: z.optional(z.never()),
1374
- path: z.optional(z.never()),
1375
- query: z.optional(z.object({
1376
- roleId: z.optional(z
1377
- .int()
1378
- .min(-2147483648, {
1379
- error: 'Invalid value: Expected int32 to be >= -2147483648',
1380
- })
1381
- .max(2147483647, {
1382
- error: 'Invalid value: Expected int32 to be <= 2147483647',
1383
- })),
1384
- page: z.optional(z.int().gte(0)).default(0),
1385
- size: z.optional(z.int().gte(1)).default(10),
1386
- sort: z.optional(z.array(z.string())).default(['joinedAt,DESC']),
1387
- })),
1388
- });
1389
- /**
1390
- * OK
1391
- */
1392
- export const zGetAllMembersResponse = zPagedModelMemberViewResponse;
1393
- export const zGetLeadByIdData = z.object({
375
+ export const zGetDraftStatusResponse = zDraftStatusResponse;
376
+ export const zDeleteDraftData = z.object({
1394
377
  body: z.optional(z.never()),
1395
378
  path: z.object({
1396
- leadId: z.coerce
1397
- .bigint()
1398
- .min(BigInt('-9223372036854775808'), {
1399
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1400
- })
1401
- .max(BigInt('9223372036854775807'), {
1402
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1403
- }),
379
+ draftId: z.uuid(),
1404
380
  }),
1405
381
  query: z.optional(z.never()),
1406
382
  });
1407
383
  /**
1408
- * OK
1409
- */
1410
- export const zGetLeadByIdResponse = zLeadProjectionResponse;
1411
- export const zSearchMyLeadsData = z.object({
1412
- body: z.optional(z.never()),
1413
- path: z.optional(z.never()),
1414
- query: z.optional(z.object({
1415
- status: z.optional(zSchemaEnum),
1416
- isSearching: z.optional(z.boolean()),
1417
- isListing: z.optional(z.boolean()),
1418
- page: z.optional(z.int().gte(0)).default(0),
1419
- size: z.optional(z.int().gte(1)).default(20),
1420
- sort: z.optional(z.array(z.string())),
1421
- })),
1422
- });
1423
- /**
1424
- * OK
384
+ * No Content
1425
385
  */
1426
- export const zSearchMyLeadsResponse = zPagedModelLeadProjectionResponse;
1427
- export const zGetClientByIdData = z.object({
386
+ export const zDeleteDraftResponse = z.void();
387
+ export const zDeleteAllPhotosData = z.object({
1428
388
  body: z.optional(z.never()),
1429
389
  path: z.object({
1430
- clientId: z.coerce
1431
- .bigint()
1432
- .min(BigInt('-9223372036854775808'), {
1433
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
1434
- })
1435
- .max(BigInt('9223372036854775807'), {
1436
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
1437
- }),
390
+ draftId: z.uuid(),
1438
391
  }),
1439
392
  query: z.optional(z.never()),
1440
393
  });
1441
394
  /**
1442
- * OK
1443
- */
1444
- export const zGetClientByIdResponse = zClientProjectionResponse;
1445
- export const zSearchMyClientsData = z.object({
1446
- body: z.optional(z.never()),
1447
- path: z.optional(z.never()),
1448
- query: z.optional(z.object({
1449
- isSearching: z.optional(z.boolean()),
1450
- isListing: z.optional(z.boolean()),
1451
- page: z.optional(z.int().gte(0)).default(0),
1452
- size: z.optional(z.int().gte(1)).default(20),
1453
- sort: z.optional(z.array(z.string())),
1454
- })),
1455
- });
1456
- /**
1457
- * OK
395
+ * No Content
1458
396
  */
1459
- export const zSearchMyClientsResponse = zPagedModelClientProjectionResponse;
1460
- export const zGetAgencyData = z.object({
397
+ export const zDeleteAllPhotosResponse = z.void();
398
+ export const zDeletePhotoData = z.object({
1461
399
  body: z.optional(z.never()),
1462
400
  path: z.object({
1463
- agencyId: z.uuid(),
401
+ draftId: z.uuid(),
402
+ photoKey: z.string(),
1464
403
  }),
1465
404
  query: z.optional(z.never()),
1466
405
  });
1467
406
  /**
1468
- * OK
407
+ * No Content
1469
408
  */
1470
- export const zGetAgencyResponse = zAgencyProfileResponse;
409
+ export const zDeletePhotoResponse = z.void();
1471
410
  //# sourceMappingURL=zod.gen.js.map