@homespot-sdk/core 0.0.106 → 0.0.109

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 (127) hide show
  1. package/dist/registration/client/client.gen.d.ts.map +1 -1
  2. package/dist/registration/client/client.gen.js +15 -19
  3. package/dist/registration/client/client.gen.js.map +1 -1
  4. package/dist/registration/client/index.d.ts.map +1 -1
  5. package/dist/registration/client/index.js +5 -15
  6. package/dist/registration/client/index.js.map +1 -1
  7. package/dist/registration/client/types.gen.d.ts.map +1 -1
  8. package/dist/registration/client/types.gen.js +1 -2
  9. package/dist/registration/client/types.gen.js.map +1 -1
  10. package/dist/registration/client/utils.gen.d.ts.map +1 -1
  11. package/dist/registration/client/utils.gen.js +24 -36
  12. package/dist/registration/client/utils.gen.js.map +1 -1
  13. package/dist/registration/client.gen.d.ts.map +1 -1
  14. package/dist/registration/client.gen.js +3 -6
  15. package/dist/registration/client.gen.js.map +1 -1
  16. package/dist/registration/core/auth.gen.d.ts.map +1 -1
  17. package/dist/registration/core/auth.gen.js +1 -5
  18. package/dist/registration/core/auth.gen.js.map +1 -1
  19. package/dist/registration/core/bodySerializer.gen.d.ts.map +1 -1
  20. package/dist/registration/core/bodySerializer.gen.js +3 -6
  21. package/dist/registration/core/bodySerializer.gen.js.map +1 -1
  22. package/dist/registration/core/params.gen.d.ts.map +1 -1
  23. package/dist/registration/core/params.gen.js +1 -5
  24. package/dist/registration/core/params.gen.js.map +1 -1
  25. package/dist/registration/core/pathSerializer.gen.d.ts.map +1 -1
  26. package/dist/registration/core/pathSerializer.gen.js +11 -20
  27. package/dist/registration/core/pathSerializer.gen.js.map +1 -1
  28. package/dist/registration/core/queryKeySerializer.gen.d.ts.map +1 -1
  29. package/dist/registration/core/queryKeySerializer.gen.js +6 -12
  30. package/dist/registration/core/queryKeySerializer.gen.js.map +1 -1
  31. package/dist/registration/core/serverSentEvents.gen.d.ts.map +1 -1
  32. package/dist/registration/core/serverSentEvents.gen.js +1 -5
  33. package/dist/registration/core/serverSentEvents.gen.js.map +1 -1
  34. package/dist/registration/core/types.gen.d.ts.map +1 -1
  35. package/dist/registration/core/types.gen.js +1 -2
  36. package/dist/registration/core/types.gen.js.map +1 -1
  37. package/dist/registration/core/utils.gen.d.ts.map +1 -1
  38. package/dist/registration/core/utils.gen.js +10 -16
  39. package/dist/registration/core/utils.gen.js.map +1 -1
  40. package/dist/registration/index.d.ts +2 -2
  41. package/dist/registration/index.d.ts.map +1 -1
  42. package/dist/registration/index.js +1 -22
  43. package/dist/registration/index.js.map +1 -1
  44. package/dist/registration/schemas.gen.d.ts +1045 -216
  45. package/dist/registration/schemas.gen.d.ts.map +1 -1
  46. package/dist/registration/schemas.gen.js +1116 -253
  47. package/dist/registration/schemas.gen.js.map +1 -1
  48. package/dist/registration/sdk.gen.d.ts +51 -19
  49. package/dist/registration/sdk.gen.d.ts.map +1 -1
  50. package/dist/registration/sdk.gen.js +276 -60
  51. package/dist/registration/sdk.gen.js.map +1 -1
  52. package/dist/registration/transformers.gen.d.ts +3 -2
  53. package/dist/registration/transformers.gen.d.ts.map +1 -1
  54. package/dist/registration/transformers.gen.js +28 -8
  55. package/dist/registration/transformers.gen.js.map +1 -1
  56. package/dist/registration/types.gen.d.ts +1023 -232
  57. package/dist/registration/types.gen.d.ts.map +1 -1
  58. package/dist/registration/types.gen.js +1 -2
  59. package/dist/registration/types.gen.js.map +1 -1
  60. package/dist/registration/zod.gen.d.ts +2824 -654
  61. package/dist/registration/zod.gen.d.ts.map +1 -1
  62. package/dist/registration/zod.gen.js +1337 -261
  63. package/dist/registration/zod.gen.js.map +1 -1
  64. package/dist/rem/client/client.gen.d.ts.map +1 -1
  65. package/dist/rem/client/client.gen.js +15 -19
  66. package/dist/rem/client/client.gen.js.map +1 -1
  67. package/dist/rem/client/index.d.ts.map +1 -1
  68. package/dist/rem/client/index.js +5 -15
  69. package/dist/rem/client/index.js.map +1 -1
  70. package/dist/rem/client/types.gen.d.ts.map +1 -1
  71. package/dist/rem/client/types.gen.js +1 -2
  72. package/dist/rem/client/types.gen.js.map +1 -1
  73. package/dist/rem/client/utils.gen.d.ts.map +1 -1
  74. package/dist/rem/client/utils.gen.js +24 -36
  75. package/dist/rem/client/utils.gen.js.map +1 -1
  76. package/dist/rem/client.gen.d.ts.map +1 -1
  77. package/dist/rem/client.gen.js +3 -6
  78. package/dist/rem/client.gen.js.map +1 -1
  79. package/dist/rem/core/auth.gen.d.ts.map +1 -1
  80. package/dist/rem/core/auth.gen.js +1 -5
  81. package/dist/rem/core/auth.gen.js.map +1 -1
  82. package/dist/rem/core/bodySerializer.gen.d.ts.map +1 -1
  83. package/dist/rem/core/bodySerializer.gen.js +3 -6
  84. package/dist/rem/core/bodySerializer.gen.js.map +1 -1
  85. package/dist/rem/core/params.gen.d.ts.map +1 -1
  86. package/dist/rem/core/params.gen.js +1 -5
  87. package/dist/rem/core/params.gen.js.map +1 -1
  88. package/dist/rem/core/pathSerializer.gen.d.ts.map +1 -1
  89. package/dist/rem/core/pathSerializer.gen.js +11 -20
  90. package/dist/rem/core/pathSerializer.gen.js.map +1 -1
  91. package/dist/rem/core/queryKeySerializer.gen.d.ts.map +1 -1
  92. package/dist/rem/core/queryKeySerializer.gen.js +6 -12
  93. package/dist/rem/core/queryKeySerializer.gen.js.map +1 -1
  94. package/dist/rem/core/serverSentEvents.gen.d.ts.map +1 -1
  95. package/dist/rem/core/serverSentEvents.gen.js +1 -5
  96. package/dist/rem/core/serverSentEvents.gen.js.map +1 -1
  97. package/dist/rem/core/types.gen.d.ts.map +1 -1
  98. package/dist/rem/core/types.gen.js +1 -2
  99. package/dist/rem/core/types.gen.js.map +1 -1
  100. package/dist/rem/core/utils.gen.d.ts.map +1 -1
  101. package/dist/rem/core/utils.gen.js +10 -16
  102. package/dist/rem/core/utils.gen.js.map +1 -1
  103. package/dist/rem/index.d.ts +2 -2
  104. package/dist/rem/index.d.ts.map +1 -1
  105. package/dist/rem/index.js +1 -54
  106. package/dist/rem/index.js.map +1 -1
  107. package/dist/rem/schemas.gen.d.ts +215 -1044
  108. package/dist/rem/schemas.gen.d.ts.map +1 -1
  109. package/dist/rem/schemas.gen.js +250 -1120
  110. package/dist/rem/schemas.gen.js.map +1 -1
  111. package/dist/rem/sdk.gen.d.ts +19 -51
  112. package/dist/rem/sdk.gen.d.ts.map +1 -1
  113. package/dist/rem/sdk.gen.js +39 -329
  114. package/dist/rem/sdk.gen.js.map +1 -1
  115. package/dist/rem/transformers.gen.d.ts +2 -3
  116. package/dist/rem/transformers.gen.d.ts.map +1 -1
  117. package/dist/rem/transformers.gen.js +4 -33
  118. package/dist/rem/transformers.gen.js.map +1 -1
  119. package/dist/rem/types.gen.d.ts +232 -1023
  120. package/dist/rem/types.gen.d.ts.map +1 -1
  121. package/dist/rem/types.gen.js +1 -2
  122. package/dist/rem/types.gen.js.map +1 -1
  123. package/dist/rem/zod.gen.d.ts +654 -2824
  124. package/dist/rem/zod.gen.d.ts.map +1 -1
  125. package/dist/rem/zod.gen.js +257 -1343
  126. package/dist/rem/zod.gen.js.map +1 -1
  127. package/package.json +13 -11
@@ -1,59 +1,508 @@
1
- "use strict";
2
1
  // This file is auto-generated by @hey-api/openapi-ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.StatusEnumSchema = exports.LanguageEnumSchema = exports.DraftTypeEnumSchema = exports.TypeEnum2Schema = exports.GroupEnumSchema = exports.TypeEnumSchema = exports.DraftStatusResponseSchema = exports.DraftCardResponseSchema = exports.SpaceResponseSchema = exports.RegistrationDraftResponseSchema = exports.PhotosKeyUrlResponseSchema = exports.MeasurementResponseSchema = exports.LangTextResponseSchema = exports.AddressResponseSchema = exports.AgencyStartRegistrationRequestSchema = exports.StartRegistrationRequestSchema = exports.PhotoReorderRequestSchema = exports.AddressRequestSchema = exports.AmenitiesRequestSchema = exports.TitleAndDescriptionRequestSchema = exports.MeasurementRequestSchema = exports.PresignedUrlsResponseSchema = exports.PresignedUrlResponseSchema = exports.PhotosRequestSchema = exports.PhotoRequestSchema = exports.RegistrationProgressDtoSchema = exports.SpacesRequestSchema = exports.SpaceRequestSchema = void 0;
5
- exports.SpaceRequestSchema = {
2
+ export const RolesRequestSchema = {
6
3
  type: 'object',
7
4
  properties: {
8
- type: {
9
- $ref: '#/components/schemas/TypeEnum',
5
+ name: {
6
+ type: 'string',
7
+ minLength: 1,
8
+ },
9
+ description: {
10
+ type: 'string',
11
+ minLength: 1,
12
+ },
13
+ permissions: {
14
+ type: 'array',
15
+ items: {
16
+ $ref: '#/components/schemas/ItemsEnum',
17
+ },
18
+ },
19
+ },
20
+ required: ['description', 'name', 'permissions'],
21
+ };
22
+ export const AssignRoleRequestSchema = {
23
+ type: 'object',
24
+ properties: {
25
+ roleId: {
26
+ type: 'integer',
27
+ format: 'int32',
28
+ },
29
+ },
30
+ required: ['roleId'],
31
+ };
32
+ export const BatchAssignRoleRequestSchema = {
33
+ type: 'object',
34
+ properties: {
35
+ roleId: {
36
+ type: 'integer',
37
+ format: 'int32',
38
+ },
39
+ memberIds: {
40
+ type: 'array',
41
+ items: {
42
+ type: 'string',
43
+ format: 'uuid',
44
+ },
45
+ minItems: 1,
46
+ },
47
+ },
48
+ required: ['memberIds', 'roleId'],
49
+ };
50
+ export const ChangeStatusRequestSchema = {
51
+ type: 'object',
52
+ properties: {
53
+ status: {
54
+ $ref: '#/components/schemas/SchemaEnum',
55
+ },
56
+ },
57
+ required: ['status'],
58
+ };
59
+ export const SourceRequestSchema = {
60
+ type: 'object',
61
+ properties: {
62
+ sourceUrl: {
63
+ type: 'string',
64
+ },
65
+ },
66
+ };
67
+ export const UpdateNoteRequestSchema = {
68
+ type: 'object',
69
+ properties: {
70
+ note: {
71
+ type: 'string',
72
+ },
73
+ },
74
+ };
75
+ export const LeadIntentRequestSchema = {
76
+ type: 'object',
77
+ properties: {
78
+ clientType: {
79
+ $ref: '#/components/schemas/ClientTypeEnum',
80
+ },
81
+ listingType: {
82
+ $ref: '#/components/schemas/ListingTypeEnum',
83
+ },
84
+ propertyType: {
85
+ $ref: '#/components/schemas/PropertyTypeEnum',
86
+ },
87
+ price: {
88
+ $ref: '#/components/schemas/PriceRangeRequest',
89
+ },
90
+ targetLocation: {
91
+ $ref: '#/components/schemas/LocationRefRequest',
10
92
  },
11
93
  area: {
12
94
  type: 'number',
13
95
  format: 'double',
14
96
  },
97
+ numberOfRooms: {
98
+ type: 'integer',
99
+ format: 'int32',
100
+ },
101
+ },
102
+ required: ['clientType', 'listingType', 'propertyType'],
103
+ };
104
+ export const LocationRefRequestSchema = {
105
+ type: 'object',
106
+ properties: {
107
+ regionId: {
108
+ type: 'integer',
109
+ format: 'int64',
110
+ },
111
+ districtId: {
112
+ type: 'integer',
113
+ format: 'int64',
114
+ },
115
+ subDistrictId: {
116
+ type: 'integer',
117
+ format: 'int64',
118
+ },
119
+ streetId: {
120
+ type: 'integer',
121
+ format: 'int64',
122
+ },
123
+ },
124
+ };
125
+ export const PriceRangeRequestSchema = {
126
+ type: 'object',
127
+ properties: {
128
+ min: {
129
+ type: 'number',
130
+ },
131
+ max: {
132
+ type: 'number',
133
+ },
134
+ },
135
+ };
136
+ export const ContactInfoRequestSchema = {
137
+ type: 'object',
138
+ properties: {
139
+ firstName: {
140
+ type: 'string',
141
+ },
142
+ lastName: {
143
+ type: 'string',
144
+ },
145
+ gender: {
146
+ $ref: '#/components/schemas/GenderEnum',
147
+ },
148
+ email: {
149
+ type: 'string',
150
+ format: 'email',
151
+ },
152
+ phone: {
153
+ type: 'string',
154
+ minLength: 1,
155
+ },
156
+ },
157
+ required: ['phone'],
158
+ };
159
+ export const AssignToMemberRequestSchema = {
160
+ type: 'object',
161
+ properties: {
162
+ memberId: {
163
+ type: 'string',
164
+ format: 'uuid',
165
+ },
166
+ },
167
+ required: ['memberId'],
168
+ };
169
+ export const ClientRequirementRequestSchema = {
170
+ type: 'object',
171
+ properties: {
172
+ propertyType: {
173
+ type: 'array',
174
+ items: {
175
+ $ref: '#/components/schemas/PropertyTypeEnum',
176
+ },
177
+ uniqueItems: true,
178
+ },
179
+ listingType: {
180
+ $ref: '#/components/schemas/ListingTypeEnum',
181
+ },
182
+ priceMin: {
183
+ type: 'number',
184
+ },
185
+ priceMax: {
186
+ type: 'number',
187
+ },
188
+ bedroomsMin: {
189
+ type: 'integer',
190
+ format: 'int32',
191
+ },
192
+ bedroomsMax: {
193
+ type: 'integer',
194
+ format: 'int32',
195
+ },
196
+ bathroomsMin: {
197
+ type: 'integer',
198
+ format: 'int32',
199
+ },
200
+ bathroomsMax: {
201
+ type: 'integer',
202
+ format: 'int32',
203
+ },
204
+ totalMin: {
205
+ type: 'number',
206
+ format: 'double',
207
+ },
208
+ totalMax: {
209
+ type: 'number',
210
+ format: 'double',
211
+ },
212
+ livingMin: {
213
+ type: 'number',
214
+ format: 'double',
215
+ },
216
+ livingMax: {
217
+ type: 'number',
218
+ format: 'double',
219
+ },
220
+ targetLocation: {
221
+ $ref: '#/components/schemas/LocationRefRequest',
222
+ },
15
223
  },
16
- required: ['area', 'type'],
224
+ required: ['listingType', 'propertyType'],
17
225
  };
18
- exports.SpacesRequestSchema = {
226
+ export const UpdatePriorityRequestSchema = {
19
227
  type: 'object',
20
228
  properties: {
21
- spaces: {
229
+ priority: {
230
+ $ref: '#/components/schemas/PriorityEnum',
231
+ },
232
+ },
233
+ };
234
+ export const UpdateContactMethodsRequestSchema = {
235
+ type: 'object',
236
+ properties: {
237
+ contactMethods: {
22
238
  type: 'array',
23
239
  items: {
24
- $ref: '#/components/schemas/SpaceRequest',
240
+ $ref: '#/components/schemas/ItemsEnum2',
25
241
  },
242
+ uniqueItems: true,
243
+ },
244
+ favoriteContactMethod: {
245
+ $ref: '#/components/schemas/ItemsEnum2',
246
+ },
247
+ },
248
+ required: ['contactMethods', 'favoriteContactMethod'],
249
+ };
250
+ export const AddressRequestSchema = {
251
+ type: 'object',
252
+ properties: {
253
+ country: {
254
+ type: 'string',
255
+ maxLength: 100,
256
+ minLength: 0,
257
+ },
258
+ city: {
259
+ type: 'string',
260
+ maxLength: 100,
261
+ minLength: 0,
262
+ },
263
+ district: {
264
+ type: 'string',
265
+ maxLength: 100,
266
+ minLength: 0,
267
+ },
268
+ subdistrict: {
269
+ type: 'string',
270
+ maxLength: 100,
271
+ minLength: 0,
272
+ },
273
+ street: {
274
+ type: 'string',
275
+ maxLength: 255,
276
+ minLength: 0,
26
277
  },
27
278
  },
28
- required: ['spaces'],
279
+ required: ['city', 'country', 'district', 'street', 'subdistrict'],
29
280
  };
30
- exports.RegistrationProgressDtoSchema = {
281
+ export const CreateAgencyRequestSchema = {
31
282
  type: 'object',
32
283
  properties: {
33
- registrationId: {
284
+ name: {
34
285
  type: 'string',
35
- format: 'uuid',
36
- description: 'id of the property being registered',
286
+ minLength: 1,
37
287
  },
38
- pages: {
288
+ email: {
289
+ type: 'string',
290
+ format: 'email',
291
+ minLength: 1,
292
+ },
293
+ seats: {
294
+ type: 'integer',
295
+ format: 'int32',
296
+ },
297
+ subDomain: {
298
+ type: 'string',
299
+ minLength: 1,
300
+ },
301
+ phone: {
302
+ type: 'string',
303
+ minLength: 1,
304
+ },
305
+ address: {
306
+ $ref: '#/components/schemas/AddressRequest',
307
+ },
308
+ yearSince: {
309
+ type: 'integer',
310
+ format: 'int32',
311
+ },
312
+ },
313
+ required: [
314
+ 'address',
315
+ 'email',
316
+ 'name',
317
+ 'phone',
318
+ 'seats',
319
+ 'subDomain',
320
+ 'yearSince',
321
+ ],
322
+ };
323
+ export const SocialMediaRequestSchema = {
324
+ type: 'object',
325
+ properties: {
326
+ type: {
327
+ $ref: '#/components/schemas/TypeEnum',
328
+ },
329
+ url: {
330
+ type: 'string',
331
+ },
332
+ },
333
+ required: ['type'],
334
+ };
335
+ export const SocialMediasRequestSchema = {
336
+ type: 'object',
337
+ properties: {
338
+ data: {
39
339
  type: 'array',
40
- description: 'multiform pages',
41
340
  items: {
42
- type: 'string',
341
+ $ref: '#/components/schemas/SocialMediaRequest',
43
342
  },
343
+ maxItems: 5,
344
+ minItems: 1,
44
345
  },
45
- total: {
346
+ },
347
+ required: ['data'],
348
+ };
349
+ export const TransferFundsRequestSchema = {
350
+ type: 'object',
351
+ properties: {
352
+ transferTo: {
353
+ type: 'string',
354
+ format: 'uuid',
355
+ },
356
+ amount: {
357
+ type: 'number',
358
+ },
359
+ },
360
+ required: ['amount', 'transferTo'],
361
+ };
362
+ export const DepositFundsRequestSchema = {
363
+ type: 'object',
364
+ properties: {
365
+ amount: {
366
+ type: 'number',
367
+ },
368
+ },
369
+ required: ['amount'],
370
+ };
371
+ export const IdResponseIntegerSchema = {
372
+ type: 'object',
373
+ properties: {
374
+ id: {
46
375
  type: 'integer',
47
376
  format: 'int32',
48
- description: 'total pages',
49
377
  },
50
- group: {
51
- $ref: '#/components/schemas/GroupEnum',
378
+ },
379
+ required: ['id'],
380
+ };
381
+ export const CreateLeadRequestSchema = {
382
+ type: 'object',
383
+ properties: {
384
+ contactInfo: {
385
+ $ref: '#/components/schemas/ContactInfoRequest',
386
+ },
387
+ note: {
388
+ type: 'string',
389
+ maxLength: 500,
390
+ minLength: 0,
391
+ },
392
+ sourceUrl: {
393
+ type: 'string',
394
+ },
395
+ },
396
+ required: ['contactInfo'],
397
+ };
398
+ export const IdResponseLongSchema = {
399
+ type: 'object',
400
+ properties: {
401
+ id: {
402
+ type: 'integer',
403
+ format: 'int64',
404
+ },
405
+ },
406
+ required: ['id'],
407
+ };
408
+ export const InvitationDetailsRequestSchema = {
409
+ type: 'object',
410
+ properties: {
411
+ email: {
412
+ type: 'string',
413
+ format: 'email',
414
+ },
415
+ roleId: {
416
+ type: 'integer',
417
+ format: 'int32',
418
+ },
419
+ },
420
+ required: ['email', 'roleId'],
421
+ };
422
+ export const InviteMemberRequestSchema = {
423
+ type: 'object',
424
+ properties: {
425
+ emails: {
426
+ type: 'array',
427
+ items: {
428
+ $ref: '#/components/schemas/InvitationDetailsRequest',
429
+ },
430
+ minItems: 1,
431
+ },
432
+ },
433
+ required: ['emails'],
434
+ };
435
+ export const AuthRequestSchema = {
436
+ type: 'object',
437
+ properties: {
438
+ sub: {
439
+ type: 'string',
440
+ },
441
+ agencyId: {
442
+ type: 'string',
443
+ format: 'uuid',
444
+ },
445
+ },
446
+ };
447
+ export const AgencyPrincipalDtoSchema = {
448
+ type: 'object',
449
+ properties: {
450
+ memberId: {
451
+ type: 'string',
452
+ format: 'uuid',
453
+ },
454
+ permissions: {
455
+ type: 'array',
456
+ items: {
457
+ $ref: '#/components/schemas/ItemsEnum',
458
+ },
459
+ uniqueItems: true,
460
+ },
461
+ isActive: {
462
+ type: 'boolean',
463
+ },
464
+ isOwner: {
465
+ type: 'boolean',
52
466
  },
53
467
  },
54
- required: ['group', 'pages', 'registrationId', 'total'],
55
468
  };
56
- exports.PhotoRequestSchema = {
469
+ export const CreateClientRequestSchema = {
470
+ type: 'object',
471
+ properties: {
472
+ contactInfo: {
473
+ $ref: '#/components/schemas/ContactInfoRequest',
474
+ },
475
+ sourceUrl: {
476
+ type: 'string',
477
+ },
478
+ contactMethods: {
479
+ type: 'array',
480
+ items: {
481
+ $ref: '#/components/schemas/ItemsEnum2',
482
+ },
483
+ minItems: 1,
484
+ uniqueItems: true,
485
+ },
486
+ favoriteContactMethod: {
487
+ $ref: '#/components/schemas/ItemsEnum2',
488
+ },
489
+ priority: {
490
+ $ref: '#/components/schemas/PriorityEnum',
491
+ },
492
+ },
493
+ required: ['contactInfo', 'contactMethods', 'favoriteContactMethod'],
494
+ };
495
+ export const IdResponseUUIDSchema = {
496
+ type: 'object',
497
+ properties: {
498
+ id: {
499
+ type: 'string',
500
+ format: 'uuid',
501
+ },
502
+ },
503
+ required: ['id'],
504
+ };
505
+ export const PhotoRequestSchema = {
57
506
  type: 'object',
58
507
  properties: {
59
508
  photo: {
@@ -79,423 +528,805 @@ exports.PhotoRequestSchema = {
79
528
  },
80
529
  required: ['photo', 'type', 'width'],
81
530
  };
82
- exports.PhotosRequestSchema = {
531
+ export const PresignedUrlResponseSchema = {
83
532
  type: 'object',
84
533
  properties: {
85
- photos: {
534
+ originalName: {
535
+ type: 'string',
536
+ },
537
+ key: {
538
+ type: 'string',
539
+ },
540
+ url: {
541
+ type: 'string',
542
+ },
543
+ },
544
+ required: ['key', 'originalName', 'url'],
545
+ };
546
+ export const PresignedUrlsResponseSchema = {
547
+ type: 'object',
548
+ properties: {
549
+ data: {
86
550
  type: 'array',
87
551
  items: {
88
- $ref: '#/components/schemas/PhotoRequest',
552
+ $ref: '#/components/schemas/PresignedUrlResponse',
89
553
  },
90
- maxItems: 30,
91
- minItems: 1,
92
554
  },
93
555
  },
94
- required: ['photos'],
556
+ required: ['data'],
95
557
  };
96
- exports.PresignedUrlResponseSchema = {
558
+ export const UploadAcknowledgmentResponseSchema = {
97
559
  type: 'object',
98
560
  properties: {
99
- originalName: {
561
+ success: {
562
+ type: 'array',
563
+ items: {
564
+ type: 'string',
565
+ },
566
+ },
567
+ fail: {
568
+ type: 'array',
569
+ items: {
570
+ type: 'string',
571
+ },
572
+ },
573
+ },
574
+ required: ['fail', 'success'],
575
+ };
576
+ export const OrganizationSummaryViewResponseSchema = {
577
+ type: 'object',
578
+ properties: {
579
+ agencyId: {
100
580
  type: 'string',
581
+ format: 'uuid',
101
582
  },
102
- key: {
583
+ isOwner: {
584
+ type: 'boolean',
585
+ },
586
+ agencyName: {
103
587
  type: 'string',
104
588
  },
105
- url: {
589
+ subDomain: {
106
590
  type: 'string',
107
591
  },
592
+ roleId: {
593
+ type: 'integer',
594
+ format: 'int32',
595
+ },
596
+ memberId: {
597
+ type: 'string',
598
+ format: 'uuid',
599
+ },
600
+ roleName: {
601
+ type: 'string',
602
+ },
603
+ permissions: {
604
+ type: 'array',
605
+ items: {
606
+ $ref: '#/components/schemas/ItemsEnum',
607
+ },
608
+ },
609
+ status: {
610
+ $ref: '#/components/schemas/SchemaEnum2',
611
+ },
108
612
  },
109
- required: ['key', 'originalName', 'url'],
613
+ required: [
614
+ 'agencyId',
615
+ 'agencyName',
616
+ 'isOwner',
617
+ 'memberId',
618
+ 'permissions',
619
+ 'roleName',
620
+ 'status',
621
+ 'subDomain',
622
+ ],
110
623
  };
111
- exports.PresignedUrlsResponseSchema = {
624
+ export const UserContextViewResponseSchema = {
112
625
  type: 'object',
113
626
  properties: {
114
- data: {
627
+ user: {
628
+ $ref: '#/components/schemas/UserSummaryViewResponse',
629
+ },
630
+ organizations: {
115
631
  type: 'array',
116
632
  items: {
117
- $ref: '#/components/schemas/PresignedUrlResponse',
633
+ $ref: '#/components/schemas/OrganizationSummaryViewResponse',
118
634
  },
119
635
  },
120
636
  },
121
- required: ['data'],
637
+ required: ['organizations', 'user'],
122
638
  };
123
- exports.MeasurementRequestSchema = {
639
+ export const UserSummaryViewResponseSchema = {
124
640
  type: 'object',
125
641
  properties: {
126
- totalArea: {
127
- type: 'number',
128
- format: 'double',
129
- minimum: 1,
642
+ email: {
643
+ type: 'string',
130
644
  },
131
- livingArea: {
132
- type: 'number',
133
- format: 'double',
645
+ firstName: {
646
+ type: 'string',
647
+ },
648
+ lastName: {
649
+ type: 'string',
650
+ },
651
+ },
652
+ required: ['email', 'firstName', 'lastName'],
653
+ };
654
+ export const PageMetadataSchema = {
655
+ type: 'object',
656
+ properties: {
657
+ size: {
658
+ type: 'integer',
659
+ format: 'int64',
660
+ },
661
+ number: {
662
+ type: 'integer',
663
+ format: 'int64',
664
+ },
665
+ totalElements: {
666
+ type: 'integer',
667
+ format: 'int64',
668
+ },
669
+ totalPages: {
670
+ type: 'integer',
671
+ format: 'int64',
672
+ },
673
+ },
674
+ };
675
+ export const PagedModelRoleResponseSchema = {
676
+ type: 'object',
677
+ properties: {
678
+ content: {
679
+ type: 'array',
680
+ items: {
681
+ $ref: '#/components/schemas/RoleResponse',
682
+ },
683
+ },
684
+ page: {
685
+ $ref: '#/components/schemas/PageMetadata',
686
+ },
687
+ },
688
+ };
689
+ export const RoleResponseSchema = {
690
+ type: 'object',
691
+ properties: {
692
+ id: {
693
+ type: 'integer',
694
+ format: 'int32',
695
+ },
696
+ name: {
697
+ type: 'string',
698
+ },
699
+ description: {
700
+ type: 'string',
701
+ },
702
+ permissions: {
703
+ type: 'array',
704
+ items: {
705
+ $ref: '#/components/schemas/ItemsEnum',
706
+ },
707
+ },
708
+ },
709
+ required: ['description', 'id', 'name', 'permissions'],
710
+ };
711
+ export const InvitationDetailsResponseSchema = {
712
+ type: 'object',
713
+ properties: {
714
+ invitationId: {
715
+ type: 'string',
716
+ format: 'uuid',
717
+ },
718
+ agencyId: {
719
+ type: 'string',
720
+ format: 'uuid',
721
+ },
722
+ email: {
723
+ type: 'string',
724
+ },
725
+ status: {
726
+ $ref: '#/components/schemas/StatusEnum',
727
+ },
728
+ agencyName: {
729
+ type: 'string',
730
+ },
731
+ agencyLogo: {
732
+ type: 'string',
733
+ },
734
+ },
735
+ required: ['agencyId', 'agencyName', 'email', 'invitationId', 'status'],
736
+ };
737
+ export const AgencySummaryResponseSchema = {
738
+ type: 'object',
739
+ properties: {
740
+ id: {
741
+ type: 'string',
742
+ format: 'uuid',
743
+ },
744
+ owner: {
745
+ type: 'string',
746
+ },
747
+ name: {
748
+ type: 'string',
749
+ },
750
+ email: {
751
+ type: 'string',
752
+ },
753
+ seats: {
754
+ type: 'string',
755
+ },
756
+ subDomain: {
757
+ type: 'string',
758
+ },
759
+ phone: {
760
+ type: 'string',
761
+ },
762
+ website: {
763
+ type: 'string',
764
+ },
765
+ yearSince: {
766
+ type: 'string',
767
+ },
768
+ status: {
769
+ $ref: '#/components/schemas/SchemaEnum2',
770
+ },
771
+ logo: {
772
+ type: 'string',
773
+ },
774
+ },
775
+ required: [
776
+ 'email',
777
+ 'id',
778
+ 'name',
779
+ 'owner',
780
+ 'phone',
781
+ 'seats',
782
+ 'status',
783
+ 'subDomain',
784
+ 'yearSince',
785
+ ],
786
+ };
787
+ export const PagedModelAgencySummaryResponseSchema = {
788
+ type: 'object',
789
+ properties: {
790
+ content: {
791
+ type: 'array',
792
+ items: {
793
+ $ref: '#/components/schemas/AgencySummaryResponse',
794
+ },
134
795
  },
135
- balconyArea: {
136
- type: 'number',
137
- format: 'double',
796
+ page: {
797
+ $ref: '#/components/schemas/PageMetadata',
138
798
  },
139
799
  },
140
- required: ['totalArea'],
141
800
  };
142
- exports.TitleAndDescriptionRequestSchema = {
801
+ export const GroupedPermissionsResponseSchema = {
143
802
  type: 'object',
144
803
  properties: {
145
- title: {
146
- type: 'string',
804
+ group: {
805
+ $ref: '#/components/schemas/GroupEnum',
147
806
  },
148
- description: {
149
- type: 'object',
150
- additionalProperties: {
151
- type: 'string',
807
+ permissions: {
808
+ type: 'array',
809
+ items: {
810
+ $ref: '#/components/schemas/PermissionResponse',
152
811
  },
153
812
  },
154
813
  },
814
+ required: ['group', 'permissions'],
155
815
  };
156
- exports.AmenitiesRequestSchema = {
816
+ export const PermissionResponseSchema = {
157
817
  type: 'object',
158
818
  properties: {
159
- amenities: {
819
+ permission: {
820
+ $ref: '#/components/schemas/ItemsEnum',
821
+ },
822
+ implied: {
160
823
  type: 'array',
161
824
  items: {
162
- type: 'integer',
163
- format: 'int32',
825
+ $ref: '#/components/schemas/ItemsEnum',
164
826
  },
165
827
  },
166
828
  },
829
+ required: ['implied', 'permission'],
167
830
  };
168
- exports.AddressRequestSchema = {
831
+ export const MemberViewResponseSchema = {
169
832
  type: 'object',
170
833
  properties: {
171
- placeId: {
834
+ userId: {
172
835
  type: 'string',
173
- maxLength: 255,
174
- minLength: 0,
175
836
  },
176
- cadastralCode: {
837
+ firstName: {
177
838
  type: 'string',
178
- maxLength: 255,
179
- minLength: 0,
180
839
  },
181
- fullName: {
840
+ lastName: {
182
841
  type: 'string',
183
- maxLength: 500,
184
- minLength: 0,
185
- },
186
- lat: {
187
- type: 'number',
188
- format: 'double',
189
- maximum: 90,
190
- minimum: -90,
191
842
  },
192
- lng: {
193
- type: 'number',
194
- format: 'double',
195
- maximum: 180,
196
- minimum: -180,
843
+ phone: {
844
+ type: 'string',
197
845
  },
198
- country: {
846
+ email: {
199
847
  type: 'string',
200
- maxLength: 100,
201
- minLength: 0,
202
848
  },
203
- city: {
849
+ roleId: {
850
+ type: 'integer',
851
+ format: 'int32',
852
+ },
853
+ roleName: {
204
854
  type: 'string',
205
- maxLength: 100,
206
- minLength: 0,
207
855
  },
208
- street: {
856
+ joinedAt: {
209
857
  type: 'string',
210
- maxLength: 255,
211
- minLength: 0,
858
+ format: 'date-time',
212
859
  },
213
860
  },
214
861
  required: [
215
- 'cadastralCode',
216
- 'city',
217
- 'country',
218
- 'fullName',
219
- 'lat',
220
- 'lng',
221
- 'placeId',
222
- 'street',
862
+ 'email',
863
+ 'firstName',
864
+ 'joinedAt',
865
+ 'lastName',
866
+ 'roleId',
867
+ 'roleName',
868
+ 'userId',
223
869
  ],
224
870
  };
225
- exports.PhotoReorderRequestSchema = {
871
+ export const PagedModelMemberViewResponseSchema = {
226
872
  type: 'object',
227
873
  properties: {
228
- photos: {
874
+ content: {
229
875
  type: 'array',
230
876
  items: {
231
- type: 'string',
877
+ $ref: '#/components/schemas/MemberViewResponse',
232
878
  },
233
- minItems: 1,
234
879
  },
235
- },
236
- required: ['photos'],
237
- };
238
- exports.StartRegistrationRequestSchema = {
239
- type: 'object',
240
- properties: {
241
- draftType: {
242
- $ref: '#/components/schemas/DraftTypeEnum',
880
+ page: {
881
+ $ref: '#/components/schemas/PageMetadata',
243
882
  },
244
883
  },
245
- required: ['draftType'],
246
884
  };
247
- exports.AgencyStartRegistrationRequestSchema = {
885
+ export const IntentResponseSchema = {
248
886
  type: 'object',
249
887
  properties: {
250
- draftType: {
251
- $ref: '#/components/schemas/DraftTypeEnum',
888
+ id: {
889
+ type: 'integer',
890
+ format: 'int64',
252
891
  },
253
- ownerId: {
254
- type: 'string',
255
- minLength: 1,
892
+ clientType: {
893
+ $ref: '#/components/schemas/ClientTypeEnum',
894
+ },
895
+ listingType: {
896
+ $ref: '#/components/schemas/ListingTypeEnum',
897
+ },
898
+ propertyType: {
899
+ $ref: '#/components/schemas/PropertyTypeEnum',
900
+ },
901
+ priceMin: {
902
+ type: 'number',
903
+ },
904
+ priceMax: {
905
+ type: 'number',
906
+ },
907
+ regionId: {
908
+ type: 'integer',
909
+ format: 'int64',
910
+ },
911
+ districtId: {
912
+ type: 'integer',
913
+ format: 'int64',
914
+ },
915
+ subDistrictId: {
916
+ type: 'integer',
917
+ format: 'int64',
918
+ },
919
+ streetId: {
920
+ type: 'integer',
921
+ format: 'int64',
922
+ },
923
+ area: {
924
+ type: 'number',
925
+ format: 'double',
926
+ },
927
+ numberOfRooms: {
928
+ type: 'integer',
929
+ format: 'int32',
256
930
  },
257
931
  },
258
- required: ['draftType', 'ownerId'],
932
+ required: ['clientType', 'id', 'listingType', 'propertyType'],
259
933
  };
260
- exports.AddressResponseSchema = {
934
+ export const LeadProjectionResponseSchema = {
261
935
  type: 'object',
262
936
  properties: {
263
- placeId: {
937
+ id: {
938
+ type: 'integer',
939
+ format: 'int64',
940
+ },
941
+ createdBy: {
264
942
  type: 'string',
943
+ format: 'uuid',
265
944
  },
266
- cadastralCode: {
945
+ assignedTo: {
267
946
  type: 'string',
947
+ format: 'uuid',
268
948
  },
269
- fullAddressName: {
949
+ status: {
950
+ $ref: '#/components/schemas/SchemaEnum',
951
+ },
952
+ contactFullName: {
270
953
  type: 'string',
271
954
  },
272
- lat: {
273
- type: 'number',
274
- format: 'double',
955
+ contactGender: {
956
+ $ref: '#/components/schemas/GenderEnum',
275
957
  },
276
- lng: {
277
- type: 'number',
278
- format: 'double',
958
+ contactPhoneNumber: {
959
+ type: 'string',
279
960
  },
280
- country: {
961
+ contactEmail: {
281
962
  type: 'string',
282
963
  },
283
- city: {
964
+ note: {
284
965
  type: 'string',
285
966
  },
286
- street: {
967
+ sourceType: {
968
+ $ref: '#/components/schemas/SourceTypeEnum',
969
+ },
970
+ sourceLink: {
287
971
  type: 'string',
288
972
  },
973
+ isSearching: {
974
+ type: 'boolean',
975
+ },
976
+ isListing: {
977
+ type: 'boolean',
978
+ },
979
+ intents: {
980
+ type: 'array',
981
+ items: {
982
+ $ref: '#/components/schemas/IntentResponse',
983
+ },
984
+ },
289
985
  },
290
986
  required: [
291
- 'cadastralCode',
292
- 'city',
293
- 'country',
294
- 'fullAddressName',
295
- 'lat',
296
- 'lng',
297
- 'placeId',
298
- 'street',
987
+ 'contactPhoneNumber',
988
+ 'createdBy',
989
+ 'id',
990
+ 'isListing',
991
+ 'isSearching',
992
+ 'status',
299
993
  ],
300
994
  };
301
- exports.LangTextResponseSchema = {
995
+ export const PagedModelLeadProjectionResponseSchema = {
302
996
  type: 'object',
303
997
  properties: {
304
- language: {
305
- $ref: '#/components/schemas/LanguageEnum',
998
+ content: {
999
+ type: 'array',
1000
+ items: {
1001
+ $ref: '#/components/schemas/LeadProjectionResponse',
1002
+ },
306
1003
  },
307
- text: {
308
- type: 'string',
1004
+ page: {
1005
+ $ref: '#/components/schemas/PageMetadata',
309
1006
  },
310
1007
  },
311
- required: ['language', 'text'],
312
1008
  };
313
- exports.MeasurementResponseSchema = {
1009
+ export const InvitationViewResponseSchema = {
314
1010
  type: 'object',
315
1011
  properties: {
316
- totalArea: {
317
- type: 'number',
318
- format: 'double',
1012
+ invitationId: {
1013
+ type: 'string',
1014
+ format: 'uuid',
319
1015
  },
320
- livingArea: {
321
- type: 'number',
322
- format: 'double',
1016
+ email: {
1017
+ type: 'string',
323
1018
  },
324
- balconyArea: {
325
- type: 'number',
326
- format: 'double',
1019
+ status: {
1020
+ $ref: '#/components/schemas/StatusEnum',
1021
+ },
1022
+ createdAt: {
1023
+ type: 'string',
1024
+ format: 'date-time',
1025
+ },
1026
+ expiresAt: {
1027
+ type: 'string',
1028
+ format: 'date-time',
1029
+ },
1030
+ acceptedAt: {
1031
+ type: 'string',
1032
+ format: 'date-time',
1033
+ },
1034
+ acceptedBy: {
1035
+ type: 'string',
327
1036
  },
328
1037
  },
329
- required: ['totalArea'],
1038
+ required: ['createdAt', 'email', 'expiresAt', 'invitationId', 'status'],
330
1039
  };
331
- exports.PhotosKeyUrlResponseSchema = {
1040
+ export const PagedModelInvitationViewResponseSchema = {
332
1041
  type: 'object',
333
1042
  properties: {
334
- key: {
335
- type: 'string',
1043
+ content: {
1044
+ type: 'array',
1045
+ items: {
1046
+ $ref: '#/components/schemas/InvitationViewResponse',
1047
+ },
336
1048
  },
337
- url: {
338
- type: 'string',
1049
+ page: {
1050
+ $ref: '#/components/schemas/PageMetadata',
339
1051
  },
340
1052
  },
341
1053
  };
342
- exports.RegistrationDraftResponseSchema = {
1054
+ export const ClientProjectionResponseSchema = {
343
1055
  type: 'object',
344
1056
  properties: {
345
- propertyId: {
1057
+ id: {
1058
+ type: 'integer',
1059
+ format: 'int64',
1060
+ },
1061
+ createdBy: {
1062
+ type: 'string',
1063
+ format: 'uuid',
1064
+ },
1065
+ leadId: {
1066
+ type: 'integer',
1067
+ format: 'int64',
1068
+ },
1069
+ assignedTo: {
346
1070
  type: 'string',
347
1071
  format: 'uuid',
348
1072
  },
349
- ownerId: {
1073
+ contactFullName: {
350
1074
  type: 'string',
351
1075
  },
352
- type: {
353
- $ref: '#/components/schemas/DraftTypeEnum',
1076
+ contactPhoneNumber: {
1077
+ type: 'string',
1078
+ },
1079
+ contactGender: {
1080
+ $ref: '#/components/schemas/GenderEnum',
354
1081
  },
355
- title: {
1082
+ contactEmail: {
356
1083
  type: 'string',
357
1084
  },
358
- description: {
1085
+ sourceType: {
1086
+ $ref: '#/components/schemas/SourceTypeEnum',
1087
+ },
1088
+ sourceLink: {
1089
+ type: 'string',
1090
+ },
1091
+ isSearching: {
1092
+ type: 'boolean',
1093
+ },
1094
+ isListing: {
1095
+ type: 'boolean',
1096
+ },
1097
+ contactMethods: {
359
1098
  type: 'array',
360
1099
  items: {
361
- $ref: '#/components/schemas/LangTextResponse',
1100
+ $ref: '#/components/schemas/ItemsEnum2',
362
1101
  },
1102
+ uniqueItems: true,
363
1103
  },
364
- measurements: {
365
- $ref: '#/components/schemas/MeasurementResponse',
1104
+ favoriteContactMethod: {
1105
+ $ref: '#/components/schemas/ItemsEnum2',
366
1106
  },
367
- address: {
368
- $ref: '#/components/schemas/AddressResponse',
1107
+ priority: {
1108
+ $ref: '#/components/schemas/PriorityEnum',
369
1109
  },
370
- spaces: {
1110
+ requirements: {
371
1111
  type: 'array',
372
1112
  items: {
373
- $ref: '#/components/schemas/SpaceResponse',
1113
+ $ref: '#/components/schemas/RequirementResponse',
374
1114
  },
375
1115
  },
376
- photos: {
1116
+ properties: {
377
1117
  type: 'array',
378
1118
  items: {
379
- $ref: '#/components/schemas/PhotosKeyUrlResponse',
1119
+ $ref: '#/components/schemas/PropertyResponse',
380
1120
  },
381
1121
  },
382
- amenities: {
1122
+ },
1123
+ required: [
1124
+ 'contactMethods',
1125
+ 'contactPhoneNumber',
1126
+ 'createdBy',
1127
+ 'id',
1128
+ 'isListing',
1129
+ 'isSearching',
1130
+ ],
1131
+ };
1132
+ export const PagedModelClientProjectionResponseSchema = {
1133
+ type: 'object',
1134
+ properties: {
1135
+ content: {
383
1136
  type: 'array',
384
1137
  items: {
385
- type: 'integer',
386
- format: 'int32',
1138
+ $ref: '#/components/schemas/ClientProjectionResponse',
387
1139
  },
388
1140
  },
389
- pages: {
1141
+ page: {
1142
+ $ref: '#/components/schemas/PageMetadata',
1143
+ },
1144
+ },
1145
+ };
1146
+ export const PropertyResponseSchema = {
1147
+ type: 'object',
1148
+ properties: {
1149
+ propertyId: {
1150
+ type: 'string',
1151
+ format: 'uuid',
1152
+ },
1153
+ propertyType: {
1154
+ $ref: '#/components/schemas/PropertyTypeEnum',
1155
+ },
1156
+ },
1157
+ required: ['propertyId', 'propertyType'],
1158
+ };
1159
+ export const RequirementResponseSchema = {
1160
+ type: 'object',
1161
+ properties: {
1162
+ id: {
1163
+ type: 'integer',
1164
+ format: 'int64',
1165
+ },
1166
+ propertyType: {
390
1167
  type: 'array',
391
1168
  items: {
392
- type: 'string',
1169
+ $ref: '#/components/schemas/PropertyTypeEnum',
393
1170
  },
394
1171
  },
395
- total: {
1172
+ listingType: {
1173
+ $ref: '#/components/schemas/ListingTypeEnum',
1174
+ },
1175
+ priceMin: {
1176
+ type: 'number',
1177
+ },
1178
+ priceMax: {
1179
+ type: 'number',
1180
+ },
1181
+ bedroomsMin: {
396
1182
  type: 'integer',
397
1183
  format: 'int32',
398
1184
  },
399
- group: {
400
- $ref: '#/components/schemas/GroupEnum',
1185
+ bedroomsMax: {
1186
+ type: 'integer',
1187
+ format: 'int32',
401
1188
  },
402
- },
403
- required: [
404
- 'amenities',
405
- 'description',
406
- 'group',
407
- 'ownerId',
408
- 'pages',
409
- 'photos',
410
- 'propertyId',
411
- 'spaces',
412
- 'title',
413
- 'total',
414
- 'type',
415
- ],
416
- };
417
- exports.SpaceResponseSchema = {
418
- type: 'object',
419
- properties: {
420
- type: {
421
- $ref: '#/components/schemas/TypeEnum',
1189
+ bathroomsMin: {
1190
+ type: 'integer',
1191
+ format: 'int32',
422
1192
  },
423
- area: {
1193
+ bathroomsMax: {
1194
+ type: 'integer',
1195
+ format: 'int32',
1196
+ },
1197
+ totalMin: {
1198
+ type: 'number',
1199
+ format: 'double',
1200
+ },
1201
+ totalMax: {
1202
+ type: 'number',
1203
+ format: 'double',
1204
+ },
1205
+ livingMin: {
1206
+ type: 'number',
1207
+ format: 'double',
1208
+ },
1209
+ livingMax: {
424
1210
  type: 'number',
425
1211
  format: 'double',
426
1212
  },
1213
+ regionId: {
1214
+ type: 'integer',
1215
+ format: 'int64',
1216
+ },
1217
+ districtId: {
1218
+ type: 'integer',
1219
+ format: 'int64',
1220
+ },
1221
+ subDistrictId: {
1222
+ type: 'integer',
1223
+ format: 'int64',
1224
+ },
1225
+ streetId: {
1226
+ type: 'integer',
1227
+ format: 'int64',
1228
+ },
427
1229
  },
1230
+ required: ['id', 'listingType', 'propertyType'],
428
1231
  };
429
- exports.DraftCardResponseSchema = {
1232
+ export const AddressViewResponseSchema = {
430
1233
  type: 'object',
431
1234
  properties: {
432
- id: {
433
- type: 'string',
434
- format: 'uuid',
435
- },
436
- type: {
437
- $ref: '#/components/schemas/DraftTypeEnum',
438
- },
439
- title: {
1235
+ country: {
440
1236
  type: 'string',
441
1237
  },
442
1238
  city: {
443
1239
  type: 'string',
444
1240
  },
445
- street: {
1241
+ district: {
446
1242
  type: 'string',
447
1243
  },
448
- coverPhoto: {
1244
+ subdistrict: {
449
1245
  type: 'string',
450
1246
  },
451
- uploadDate: {
1247
+ street: {
452
1248
  type: 'string',
453
- format: 'date-time',
454
1249
  },
455
1250
  },
456
- required: ['id', 'title', 'type', 'uploadDate'],
1251
+ required: ['city', 'country', 'district', 'street', 'subdistrict'],
457
1252
  };
458
- exports.DraftStatusResponseSchema = {
1253
+ export const AgencyProfileResponseSchema = {
459
1254
  type: 'object',
460
1255
  properties: {
461
- status: {
462
- $ref: '#/components/schemas/StatusEnum',
1256
+ name: {
1257
+ type: 'string',
1258
+ },
1259
+ email: {
1260
+ type: 'string',
1261
+ },
1262
+ seats: {
1263
+ type: 'integer',
1264
+ format: 'int32',
1265
+ },
1266
+ subDomain: {
1267
+ type: 'string',
1268
+ },
1269
+ phone: {
1270
+ type: 'string',
1271
+ },
1272
+ address: {
1273
+ $ref: '#/components/schemas/AddressViewResponse',
1274
+ },
1275
+ yearSince: {
1276
+ type: 'integer',
1277
+ format: 'int32',
463
1278
  },
464
1279
  },
465
- required: ['status'],
1280
+ required: [
1281
+ 'address',
1282
+ 'email',
1283
+ 'name',
1284
+ 'phone',
1285
+ 'seats',
1286
+ 'subDomain',
1287
+ 'yearSince',
1288
+ ],
466
1289
  };
467
- exports.TypeEnumSchema = {
1290
+ export const SchemaEnumSchema = {
468
1291
  type: 'string',
469
1292
  enum: [
470
- 'BEDROOM',
471
- 'BATHROOM',
472
- 'KITCHEN',
473
- 'LIVING_ROOM',
474
- 'GARAGE',
475
- 'BACKYARD',
476
- 'GYM',
477
- 'LAUNDRY',
478
- 'HOME_THEATRE',
479
- 'GAME_ROOM',
1293
+ 'NEW',
1294
+ 'ATTEMPTED_CONTACT',
1295
+ 'CONTACTED',
1296
+ 'DISQUALIFIED',
1297
+ 'CONVERTED',
1298
+ 'LOST',
480
1299
  ],
481
1300
  };
482
- exports.GroupEnumSchema = {
1301
+ export const SchemaEnum2Schema = {
1302
+ type: 'string',
1303
+ enum: ['NEW', 'ACTIVE', 'PAYMENT_FAILED', 'INACTIVE'],
1304
+ };
1305
+ export const ItemsEnumSchema = {
483
1306
  type: 'string',
484
- description: 'property group being registered',
485
1307
  enum: [
486
- 'HOUSE_GROUP',
487
- 'APARTMENT_GROUP',
488
- 'HOSPITALITY_GROUP',
489
- 'LAND_GROUP',
490
- 'BUSINESS_GROUP',
491
- 'STORAGE_GROUP',
1308
+ 'AGENCY_WRITE',
1309
+ 'INVITATION_READ',
1310
+ 'INVITATION_WRITE',
1311
+ 'ROLE_READ',
1312
+ 'ROLE_WRITE',
1313
+ 'MEMBER_READ',
1314
+ 'MEMBER_WRITE',
1315
+ 'LEAD_READ',
1316
+ 'LEAD_WRITE',
1317
+ 'LEAD_READ_ALL',
1318
+ 'LEAD_WRITE_ALL',
492
1319
  ],
493
1320
  };
494
- exports.TypeEnum2Schema = {
1321
+ export const ClientTypeEnumSchema = {
495
1322
  type: 'string',
496
- enum: ['JPEG', 'JPG', 'PNG', 'WEBP'],
1323
+ enum: ['LISTING', 'SEEKING'],
1324
+ };
1325
+ export const ListingTypeEnumSchema = {
1326
+ type: 'string',
1327
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
497
1328
  };
498
- exports.DraftTypeEnumSchema = {
1329
+ export const PropertyTypeEnumSchema = {
499
1330
  type: 'string',
500
1331
  enum: [
501
1332
  'HOUSE',
@@ -520,13 +1351,45 @@ exports.DraftTypeEnumSchema = {
520
1351
  'GARAGE',
521
1352
  ],
522
1353
  };
523
- exports.LanguageEnumSchema = {
1354
+ export const GenderEnumSchema = {
1355
+ type: 'string',
1356
+ enum: ['MALE', 'FEMALE', 'UNKNOWN'],
1357
+ };
1358
+ export const PriorityEnumSchema = {
1359
+ type: 'string',
1360
+ enum: ['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'],
1361
+ };
1362
+ export const ItemsEnum2Schema = {
1363
+ type: 'string',
1364
+ enum: ['WHATSAPP', 'VIBER', 'PHONE_CALL'],
1365
+ };
1366
+ export const TypeEnumSchema = {
1367
+ type: 'string',
1368
+ enum: ['FACEBOOK', 'YOUTUBE', 'INSTAGRAM', 'TIKTOK', 'LINKEDIN'],
1369
+ };
1370
+ export const TypeEnum2Schema = {
1371
+ type: 'string',
1372
+ enum: ['JPEG', 'JPG', 'PNG', 'WEBP'],
1373
+ };
1374
+ export const StatusEnumSchema = {
524
1375
  type: 'string',
525
- enum: ['KA', 'EN', 'RU'],
1376
+ enum: ['PENDING', 'ACCEPTED', 'CANCELLED', 'EXPIRED'],
526
1377
  };
527
- exports.StatusEnumSchema = {
1378
+ export const GroupEnumSchema = {
528
1379
  type: 'string',
529
- description: 'property draft status',
530
- enum: ['IN_REGISTRATION', 'PROCESSING', 'COMPLETED'],
1380
+ enum: ['AGENCY', 'INVITATION', 'ROLE', 'MEMBER', 'LEAD'],
1381
+ };
1382
+ export const SourceTypeEnumSchema = {
1383
+ type: 'string',
1384
+ enum: [
1385
+ 'MY_HOME',
1386
+ 'SS',
1387
+ 'FACEBOOK',
1388
+ 'YOUTUBE',
1389
+ 'INSTAGRAM',
1390
+ 'TIKTOK',
1391
+ 'LINKEDIN',
1392
+ 'UNKNOWN',
1393
+ ],
531
1394
  };
532
1395
  //# sourceMappingURL=schemas.gen.js.map