@homespot-sdk/core 0.0.113 → 0.0.115

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 +215 -1044
  8. package/dist/registration/schemas.gen.d.ts.map +1 -1
  9. package/dist/registration/schemas.gen.js +247 -1113
  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 +232 -1023
  20. package/dist/registration/types.gen.d.ts.map +1 -1
  21. package/dist/registration/zod.gen.d.ts +655 -2825
  22. package/dist/registration/zod.gen.d.ts.map +1 -1
  23. package/dist/registration/zod.gen.js +194 -1274
  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()),
11
+ export const zMeasurementRequest = z.object({
12
+ totalArea: z.number().gte(1),
13
+ livingArea: z.optional(z.number()),
14
+ balconyArea: z.optional(z.number()),
160
15
  });
161
- export const zUserSummaryViewResponse = z.object({
162
- email: z.string(),
163
- firstName: z.string(),
164
- lastName: z.string(),
16
+ export const zTitleAndDescriptionRequest = z.object({
17
+ title: z.optional(z.string()),
18
+ description: z.optional(z.record(z.string(), z.string())),
165
19
  });
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
- })),
199
- });
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),
220
39
  });
221
- export const zAddressViewResponse = z.object({
40
+ export const zPhotoReorderRequest = z.object({
41
+ photos: z.array(z.string()).min(1),
42
+ });
43
+ export const zAddressResponse = z.object({
44
+ placeId: z.string(),
45
+ cadastralCode: z.string(),
46
+ fullAddressName: 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),
74
+ export const zSpaceRequest = z.object({
75
+ type: zTypeEnum,
76
+ area: z.number(),
302
77
  });
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()),
78
+ export const zSpacesRequest = z.object({
79
+ spaces: z.array(zSpaceRequest),
308
80
  });
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,
326
- });
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,26 +104,19 @@ 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
- export const zPropertyTypeEnum = z.enum([
119
+ export const zDraftTypeEnum = z.enum([
360
120
  'HOUSE',
361
121
  'TOWN_HOUSE',
362
122
  'COUNTRY_HOUSE',
@@ -378,147 +138,38 @@ 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),
141
+ export const zStartRegistrationRequest = z.object({
142
+ draftType: zDraftTypeEnum,
439
143
  });
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,
451
- 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
- })),
144
+ export const zAgencyStartRegistrationRequest = z.object({
145
+ draftType: zDraftTypeEnum,
146
+ ownerId: z.string().min(1),
495
147
  });
496
- export const zPropertyResponse = z.object({
148
+ export const zDraftCardResponse = z.object({
149
+ id: z.uuid(),
150
+ type: zDraftTypeEnum,
151
+ title: z.string(),
152
+ city: z.optional(z.string()),
153
+ street: z.optional(z.string()),
154
+ coverPhoto: z.optional(z.string()),
155
+ uploadDate: z.iso.datetime(),
156
+ });
157
+ export const zLanguageEnum = z.enum(['KA', 'EN', 'RU']);
158
+ export const zLangTextResponse = z.object({
159
+ language: zLanguageEnum,
160
+ text: z.string(),
161
+ });
162
+ export const zRegistrationDraftResponse = z.object({
497
163
  propertyId: z.uuid(),
498
- 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
164
+ ownerId: z.string(),
165
+ type: zDraftTypeEnum,
166
+ title: z.string(),
167
+ description: z.array(zLangTextResponse),
168
+ measurements: z.optional(zMeasurementResponse),
169
+ address: z.optional(zAddressResponse),
170
+ spaces: z.array(zSpaceResponse),
171
+ photos: z.array(zPhotosKeyUrlResponse),
172
+ amenities: z.array(z
522
173
  .int()
523
174
  .min(-2147483648, {
524
175
  error: 'Invalid value: Expected int32 to be >= -2147483648',
@@ -526,794 +177,164 @@ export const zRequirementResponse = z.object({
526
177
  .max(2147483647, {
527
178
  error: 'Invalid value: Expected int32 to be <= 2147483647',
528
179
  })),
529
- bathroomsMin: z.optional(z
180
+ pages: z.array(z.string()),
181
+ total: z
530
182
  .int()
531
183
  .min(-2147483648, {
532
184
  error: 'Invalid value: Expected int32 to be >= -2147483648',
533
185
  })
534
186
  .max(2147483647, {
535
187
  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
682
- .bigint()
683
- .min(BigInt('-9223372036854775808'), {
684
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
685
- })
686
- .max(BigInt('9223372036854775807'), {
687
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
688
188
  }),
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),
706
- });
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
718
- .bigint()
719
- .min(BigInt('-9223372036854775808'), {
720
- error: 'Invalid value: Expected int64 to be >= -9223372036854775808',
721
- })
722
- .max(BigInt('9223372036854775807'), {
723
- error: 'Invalid value: Expected int64 to be <= 9223372036854775807',
724
- })),
725
- 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
- }),
755
- }),
756
- query: z.optional(z.never()),
189
+ group: zGroupEnum,
757
190
  });
758
191
  /**
759
- * No Content
192
+ * property draft status
760
193
  */
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()),
194
+ export const zStatusEnum = z.enum([
195
+ 'IN_REGISTRATION',
196
+ 'PROCESSING',
197
+ 'COMPLETED',
198
+ ]);
199
+ export const zDraftStatusResponse = z.object({
200
+ status: zStatusEnum,
775
201
  });
776
- /**
777
- * No Content
778
- */
779
- export const zUpdateRoleResponse = z.void();
780
- export const zAssignRoleData = z.object({
781
- body: zAssignRoleRequest,
202
+ export const zRegisterSpacesData = z.object({
203
+ body: zSpacesRequest,
782
204
  path: z.object({
783
- memberId: z.uuid(),
205
+ draftId: z.uuid(),
784
206
  }),
785
207
  query: z.optional(z.never()),
786
208
  });
787
209
  /**
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
210
+ * OK
798
211
  */
799
- export const zAssignRoleBatchResponse = z.void();
800
- export const zChangeStatusData = z.object({
801
- body: zChangeStatusRequest,
212
+ export const zRegisterSpacesResponse = zRegistrationProgressDto;
213
+ export const zRequestPresignedUrlsData = z.object({
214
+ body: zPhotosRequest,
802
215
  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
- }),
216
+ draftId: z.uuid(),
811
217
  }),
812
218
  query: z.optional(z.never()),
813
219
  });
814
220
  /**
815
- * No Content
221
+ * OK
816
222
  */
817
- export const zChangeStatusResponse = z.void();
818
- export const zUpdateSourceData = z.object({
819
- body: zSourceRequest,
223
+ export const zRequestPresignedUrlsResponse = zPresignedUrlsResponse;
224
+ export const zRegisterMeasurementsData = z.object({
225
+ body: zMeasurementRequest,
820
226
  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
- }),
227
+ draftId: z.uuid(),
829
228
  }),
830
229
  query: z.optional(z.never()),
831
230
  });
832
231
  /**
833
- * No Content
232
+ * OK
834
233
  */
835
- export const zUpdateSourceResponse = z.void();
836
- export const zUpdateNoteData = z.object({
837
- body: zUpdateNoteRequest,
234
+ export const zRegisterMeasurementsResponse = zRegistrationProgressDto;
235
+ export const zRegisterDescriptionData = z.object({
236
+ body: zTitleAndDescriptionRequest,
838
237
  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
- }),
238
+ draftId: z.uuid(),
847
239
  }),
848
240
  query: z.optional(z.never()),
849
241
  });
850
242
  /**
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
243
+ * OK
879
244
  */
880
- export const zRemoveIntentResponse = z.void();
881
- export const zAddIntentData = z.object({
882
- body: zLeadIntentRequest,
245
+ export const zRegisterDescriptionResponse = zRegistrationProgressDto;
246
+ export const zRegisterAmenitiesData = z.object({
247
+ body: zAmenitiesRequest,
883
248
  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
- }),
249
+ draftId: z.uuid(),
892
250
  }),
893
251
  query: z.optional(z.never()),
894
252
  });
895
253
  /**
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
254
+ * OK
924
255
  */
925
- export const zUpdateIntentResponse = z.void();
926
- export const zUpdateContactInfoData = z.object({
927
- body: zContactInfoRequest,
256
+ export const zRegisterAmenitiesResponse = zRegistrationProgressDto;
257
+ export const zRegisterAddressData = z.object({
258
+ body: zAddressRequest,
928
259
  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
- }),
260
+ draftId: z.uuid(),
937
261
  }),
938
262
  query: z.optional(z.never()),
939
263
  });
940
264
  /**
941
- * No Content
265
+ * OK
942
266
  */
943
- export const zUpdateContactInfoResponse = z.void();
944
- export const zAssignToAgentData = z.object({
945
- body: zAssignToMemberRequest,
267
+ export const zRegisterAddressResponse = zRegistrationProgressDto;
268
+ export const zReorderPhotosData = z.object({
269
+ body: zPhotoReorderRequest,
946
270
  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
- }),
271
+ draftId: z.uuid(),
955
272
  }),
956
273
  query: z.optional(z.never()),
957
274
  });
958
275
  /**
959
276
  * No Content
960
277
  */
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
- }),
278
+ export const zReorderPhotosResponse = z.void();
279
+ export const zStartRegistrationData = z.object({
280
+ body: zStartRegistrationRequest,
281
+ path: z.optional(z.never()),
974
282
  query: z.optional(z.never()),
975
283
  });
976
284
  /**
977
- * No Content
285
+ * Created
978
286
  */
979
- export const zUpdateSource1Response = z.void();
980
- export const zRemoveClientRequirementData = z.object({
287
+ export const zStartRegistrationResponse = zRegistrationProgressDto;
288
+ export const zGetDraftData = z.object({
981
289
  body: z.optional(z.never()),
982
290
  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
- }),
1099
- }),
1100
- query: z.optional(z.never()),
1101
- });
1102
- /**
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
- }),
291
+ draftId: z.uuid(),
1117
292
  }),
1118
293
  query: z.optional(z.never()),
1119
294
  });
1120
295
  /**
1121
- * No Content
296
+ * OK
1122
297
  */
1123
- export const zAssignToAgent1Response = z.void();
1124
- export const zCorrectRegistrationDetailsData = z.object({
1125
- body: zCreateAgencyRequest,
298
+ export const zGetDraftResponse = zRegistrationDraftResponse;
299
+ export const zRestartRegistrationData = z.object({
300
+ body: zStartRegistrationRequest,
1126
301
  path: z.object({
1127
- agencyId: z.uuid(),
302
+ draftId: z.uuid(),
1128
303
  }),
1129
304
  query: z.optional(z.never()),
1130
305
  });
1131
306
  /**
1132
- * No Content
307
+ * OK
1133
308
  */
1134
- export const zCorrectRegistrationDetailsResponse = z.void();
1135
- export const zActivateAgencyData = z.object({
309
+ export const zRestartRegistrationResponse = zRegistrationProgressDto;
310
+ export const zCompleteRegistrationData = z.object({
1136
311
  body: z.optional(z.never()),
1137
312
  path: z.object({
1138
- agencyId: z.uuid(),
313
+ draftId: z.uuid(),
1139
314
  }),
1140
315
  query: z.optional(z.never()),
1141
316
  });
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()),
317
+ export const zNotifyPhotoUploadData = z.object({
318
+ body: zPhotosRequest,
1240
319
  path: z.object({
1241
- invitationId: z.uuid(),
1242
- }),
1243
- query: z.object({
1244
- agencyId: z.uuid(),
320
+ draftId: z.uuid(),
1245
321
  }),
1246
- });
1247
- export const zRequestPrincipleData = z.object({
1248
- body: zAuthRequest,
1249
- path: z.optional(z.never()),
1250
322
  query: z.optional(z.never()),
1251
323
  });
1252
324
  /**
1253
325
  * OK
1254
326
  */
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,
327
+ export const zNotifyPhotoUploadResponse = zRegistrationProgressDto;
328
+ export const zStartRegistrationForAgencyData = z.object({
329
+ body: zAgencyStartRegistrationRequest,
1273
330
  path: z.optional(z.never()),
1274
331
  query: z.optional(z.never()),
1275
332
  });
1276
333
  /**
1277
334
  * Created
1278
335
  */
1279
- export const zCreateClientResponse = zIdResponseLong;
1280
- export const zCreateAgencyData = z.object({
1281
- body: zCreateAgencyRequest,
1282
- path: z.optional(z.never()),
1283
- query: z.optional(z.never()),
1284
- });
1285
- /**
1286
- * Created
1287
- */
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({
336
+ export const zStartRegistrationForAgencyResponse = zRegistrationProgressDto;
337
+ export const zGetDraftsData = z.object({
1317
338
  body: z.optional(z.never()),
1318
339
  path: z.optional(z.never()),
1319
340
  query: z.optional(z.never()),
@@ -1321,151 +342,50 @@ export const zGetMeData = z.object({
1321
342
  /**
1322
343
  * OK
1323
344
  */
1324
- export const zGetMeResponse = zUserContextViewResponse;
1325
- export const zGetInvitationDetailsData = z.object({
345
+ export const zGetDraftsResponse = z.array(zDraftCardResponse);
346
+ export const zGetDraftStatusData = z.object({
1326
347
  body: z.optional(z.never()),
1327
348
  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({
1353
- body: z.optional(z.never()),
1354
- path: z.object({
1355
- subDomain: z.string(),
349
+ draftId: z.uuid(),
1356
350
  }),
1357
351
  query: z.optional(z.never()),
1358
352
  });
1359
353
  /**
1360
354
  * OK
1361
355
  */
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({
356
+ export const zGetDraftStatusResponse = zDraftStatusResponse;
357
+ export const zDeleteDraftData = z.object({
1394
358
  body: z.optional(z.never()),
1395
359
  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
- }),
360
+ draftId: z.uuid(),
1404
361
  }),
1405
362
  query: z.optional(z.never()),
1406
363
  });
1407
364
  /**
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
365
+ * No Content
1425
366
  */
1426
- export const zSearchMyLeadsResponse = zPagedModelLeadProjectionResponse;
1427
- export const zGetClientByIdData = z.object({
367
+ export const zDeleteDraftResponse = z.void();
368
+ export const zDeleteAllPhotosData = z.object({
1428
369
  body: z.optional(z.never()),
1429
370
  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
- }),
371
+ draftId: z.uuid(),
1438
372
  }),
1439
373
  query: z.optional(z.never()),
1440
374
  });
1441
375
  /**
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
376
+ * No Content
1458
377
  */
1459
- export const zSearchMyClientsResponse = zPagedModelClientProjectionResponse;
1460
- export const zGetAgencyData = z.object({
378
+ export const zDeleteAllPhotosResponse = z.void();
379
+ export const zDeletePhotoData = z.object({
1461
380
  body: z.optional(z.never()),
1462
381
  path: z.object({
1463
- agencyId: z.uuid(),
382
+ draftId: z.uuid(),
383
+ photoKey: z.string(),
1464
384
  }),
1465
385
  query: z.optional(z.never()),
1466
386
  });
1467
387
  /**
1468
- * OK
388
+ * No Content
1469
389
  */
1470
- export const zGetAgencyResponse = zAgencyProfileResponse;
390
+ export const zDeletePhotoResponse = z.void();
1471
391
  //# sourceMappingURL=zod.gen.js.map