@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.
- package/dist/registration/client.gen.js +1 -1
- package/dist/registration/client.gen.js.map +1 -1
- package/dist/registration/index.d.ts +2 -2
- package/dist/registration/index.d.ts.map +1 -1
- package/dist/registration/index.js +1 -1
- package/dist/registration/index.js.map +1 -1
- package/dist/registration/schemas.gen.d.ts +215 -1044
- package/dist/registration/schemas.gen.d.ts.map +1 -1
- package/dist/registration/schemas.gen.js +247 -1113
- package/dist/registration/schemas.gen.js.map +1 -1
- package/dist/registration/sdk.gen.d.ts +19 -51
- package/dist/registration/sdk.gen.d.ts.map +1 -1
- package/dist/registration/sdk.gen.js +38 -275
- package/dist/registration/sdk.gen.js.map +1 -1
- package/dist/registration/transformers.gen.d.ts +2 -3
- package/dist/registration/transformers.gen.d.ts.map +1 -1
- package/dist/registration/transformers.gen.js +4 -28
- package/dist/registration/transformers.gen.js.map +1 -1
- package/dist/registration/types.gen.d.ts +232 -1023
- package/dist/registration/types.gen.d.ts.map +1 -1
- package/dist/registration/zod.gen.d.ts +655 -2825
- package/dist/registration/zod.gen.d.ts.map +1 -1
- package/dist/registration/zod.gen.js +194 -1274
- package/dist/registration/zod.gen.js.map +1 -1
- package/dist/rem/client.gen.js +1 -1
- package/dist/rem/client.gen.js.map +1 -1
- package/dist/rem/index.d.ts +2 -2
- package/dist/rem/index.d.ts.map +1 -1
- package/dist/rem/index.js +1 -1
- package/dist/rem/index.js.map +1 -1
- package/dist/rem/schemas.gen.d.ts +1045 -216
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +1111 -245
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +51 -19
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +275 -38
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts +3 -2
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +28 -4
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +1023 -232
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +2823 -653
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +1274 -194
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -1,54 +1,506 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export const
|
|
2
|
+
export const RolesRequestSchema = {
|
|
3
3
|
type: 'object',
|
|
4
4
|
properties: {
|
|
5
|
-
|
|
6
|
-
|
|
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',
|
|
7
92
|
},
|
|
8
93
|
area: {
|
|
9
94
|
type: 'number',
|
|
10
95
|
format: 'double',
|
|
11
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
|
+
},
|
|
12
156
|
},
|
|
13
|
-
required: ['
|
|
157
|
+
required: ['phone'],
|
|
14
158
|
};
|
|
15
|
-
export const
|
|
159
|
+
export const AssignToMemberRequestSchema = {
|
|
16
160
|
type: 'object',
|
|
17
161
|
properties: {
|
|
18
|
-
|
|
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: {
|
|
19
173
|
type: 'array',
|
|
20
174
|
items: {
|
|
21
|
-
$ref: '#/components/schemas/
|
|
175
|
+
$ref: '#/components/schemas/PropertyTypeEnum',
|
|
22
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
|
+
},
|
|
223
|
+
},
|
|
224
|
+
required: ['listingType', 'propertyType'],
|
|
225
|
+
};
|
|
226
|
+
export const UpdatePriorityRequestSchema = {
|
|
227
|
+
type: 'object',
|
|
228
|
+
properties: {
|
|
229
|
+
priority: {
|
|
230
|
+
$ref: '#/components/schemas/PriorityEnum',
|
|
23
231
|
},
|
|
24
232
|
},
|
|
25
|
-
required: ['spaces'],
|
|
26
233
|
};
|
|
27
|
-
export const
|
|
234
|
+
export const UpdateContactMethodsRequestSchema = {
|
|
28
235
|
type: 'object',
|
|
29
236
|
properties: {
|
|
30
|
-
|
|
237
|
+
contactMethods: {
|
|
238
|
+
type: 'array',
|
|
239
|
+
items: {
|
|
240
|
+
$ref: '#/components/schemas/ItemsEnum2',
|
|
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: {
|
|
31
254
|
type: 'string',
|
|
32
|
-
|
|
33
|
-
|
|
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,
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
required: ['city', 'country', 'district', 'street', 'subdistrict'],
|
|
280
|
+
};
|
|
281
|
+
export const CreateAgencyRequestSchema = {
|
|
282
|
+
type: 'object',
|
|
283
|
+
properties: {
|
|
284
|
+
name: {
|
|
285
|
+
type: 'string',
|
|
286
|
+
minLength: 1,
|
|
287
|
+
},
|
|
288
|
+
email: {
|
|
289
|
+
type: 'string',
|
|
290
|
+
format: 'email',
|
|
291
|
+
minLength: 1,
|
|
34
292
|
},
|
|
35
|
-
|
|
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: {
|
|
36
339
|
type: 'array',
|
|
37
|
-
description: 'multiform pages',
|
|
38
340
|
items: {
|
|
39
|
-
|
|
341
|
+
$ref: '#/components/schemas/SocialMediaRequest',
|
|
40
342
|
},
|
|
343
|
+
maxItems: 5,
|
|
344
|
+
minItems: 1,
|
|
345
|
+
},
|
|
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',
|
|
41
367
|
},
|
|
42
|
-
|
|
368
|
+
},
|
|
369
|
+
required: ['amount'],
|
|
370
|
+
};
|
|
371
|
+
export const IdResponseIntegerSchema = {
|
|
372
|
+
type: 'object',
|
|
373
|
+
properties: {
|
|
374
|
+
id: {
|
|
43
375
|
type: 'integer',
|
|
44
376
|
format: 'int32',
|
|
45
|
-
description: 'total pages',
|
|
46
377
|
},
|
|
47
|
-
|
|
48
|
-
|
|
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',
|
|
466
|
+
},
|
|
467
|
+
},
|
|
468
|
+
};
|
|
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',
|
|
49
501
|
},
|
|
50
502
|
},
|
|
51
|
-
required: ['
|
|
503
|
+
required: ['id'],
|
|
52
504
|
};
|
|
53
505
|
export const PhotoRequestSchema = {
|
|
54
506
|
type: 'object',
|
|
@@ -76,20 +528,6 @@ export const PhotoRequestSchema = {
|
|
|
76
528
|
},
|
|
77
529
|
required: ['photo', 'type', 'width'],
|
|
78
530
|
};
|
|
79
|
-
export const PhotosRequestSchema = {
|
|
80
|
-
type: 'object',
|
|
81
|
-
properties: {
|
|
82
|
-
photos: {
|
|
83
|
-
type: 'array',
|
|
84
|
-
items: {
|
|
85
|
-
$ref: '#/components/schemas/PhotoRequest',
|
|
86
|
-
},
|
|
87
|
-
maxItems: 30,
|
|
88
|
-
minItems: 1,
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
required: ['photos'],
|
|
92
|
-
};
|
|
93
531
|
export const PresignedUrlResponseSchema = {
|
|
94
532
|
type: 'object',
|
|
95
533
|
properties: {
|
|
@@ -117,382 +555,778 @@ export const PresignedUrlsResponseSchema = {
|
|
|
117
555
|
},
|
|
118
556
|
required: ['data'],
|
|
119
557
|
};
|
|
120
|
-
export const
|
|
558
|
+
export const UploadAcknowledgmentResponseSchema = {
|
|
121
559
|
type: 'object',
|
|
122
560
|
properties: {
|
|
123
|
-
|
|
124
|
-
type: '
|
|
125
|
-
|
|
126
|
-
|
|
561
|
+
success: {
|
|
562
|
+
type: 'array',
|
|
563
|
+
items: {
|
|
564
|
+
type: 'string',
|
|
565
|
+
},
|
|
127
566
|
},
|
|
128
|
-
|
|
129
|
-
type: '
|
|
130
|
-
|
|
567
|
+
fail: {
|
|
568
|
+
type: 'array',
|
|
569
|
+
items: {
|
|
570
|
+
type: 'string',
|
|
571
|
+
},
|
|
131
572
|
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
573
|
+
},
|
|
574
|
+
required: ['fail', 'success'],
|
|
575
|
+
};
|
|
576
|
+
export const OrganizationSummaryViewResponseSchema = {
|
|
577
|
+
type: 'object',
|
|
578
|
+
properties: {
|
|
579
|
+
agencyId: {
|
|
580
|
+
type: 'string',
|
|
581
|
+
format: 'uuid',
|
|
582
|
+
},
|
|
583
|
+
isOwner: {
|
|
584
|
+
type: 'boolean',
|
|
585
|
+
},
|
|
586
|
+
agencyName: {
|
|
587
|
+
type: 'string',
|
|
588
|
+
},
|
|
589
|
+
subDomain: {
|
|
590
|
+
type: 'string',
|
|
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
|
+
},
|
|
612
|
+
},
|
|
613
|
+
required: [
|
|
614
|
+
'agencyId',
|
|
615
|
+
'agencyName',
|
|
616
|
+
'isOwner',
|
|
617
|
+
'memberId',
|
|
618
|
+
'permissions',
|
|
619
|
+
'roleName',
|
|
620
|
+
'status',
|
|
621
|
+
'subDomain',
|
|
622
|
+
],
|
|
623
|
+
};
|
|
624
|
+
export const UserContextViewResponseSchema = {
|
|
625
|
+
type: 'object',
|
|
626
|
+
properties: {
|
|
627
|
+
user: {
|
|
628
|
+
$ref: '#/components/schemas/UserSummaryViewResponse',
|
|
629
|
+
},
|
|
630
|
+
organizations: {
|
|
631
|
+
type: 'array',
|
|
632
|
+
items: {
|
|
633
|
+
$ref: '#/components/schemas/OrganizationSummaryViewResponse',
|
|
634
|
+
},
|
|
635
|
+
},
|
|
636
|
+
},
|
|
637
|
+
required: ['organizations', 'user'],
|
|
638
|
+
};
|
|
639
|
+
export const UserSummaryViewResponseSchema = {
|
|
640
|
+
type: 'object',
|
|
641
|
+
properties: {
|
|
642
|
+
email: {
|
|
643
|
+
type: 'string',
|
|
644
|
+
},
|
|
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',
|
|
135
686
|
},
|
|
136
687
|
},
|
|
137
|
-
required: ['totalArea'],
|
|
138
688
|
};
|
|
139
|
-
export const
|
|
689
|
+
export const RoleResponseSchema = {
|
|
140
690
|
type: 'object',
|
|
141
691
|
properties: {
|
|
142
|
-
|
|
692
|
+
id: {
|
|
693
|
+
type: 'integer',
|
|
694
|
+
format: 'int32',
|
|
695
|
+
},
|
|
696
|
+
name: {
|
|
143
697
|
type: 'string',
|
|
144
698
|
},
|
|
145
699
|
description: {
|
|
146
|
-
type: '
|
|
147
|
-
|
|
148
|
-
|
|
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
|
+
},
|
|
795
|
+
},
|
|
796
|
+
page: {
|
|
797
|
+
$ref: '#/components/schemas/PageMetadata',
|
|
798
|
+
},
|
|
799
|
+
},
|
|
800
|
+
};
|
|
801
|
+
export const GroupedPermissionsResponseSchema = {
|
|
802
|
+
type: 'object',
|
|
803
|
+
properties: {
|
|
804
|
+
group: {
|
|
805
|
+
$ref: '#/components/schemas/GroupEnum',
|
|
806
|
+
},
|
|
807
|
+
permissions: {
|
|
808
|
+
type: 'array',
|
|
809
|
+
items: {
|
|
810
|
+
$ref: '#/components/schemas/PermissionResponse',
|
|
149
811
|
},
|
|
150
812
|
},
|
|
151
813
|
},
|
|
814
|
+
required: ['group', 'permissions'],
|
|
152
815
|
};
|
|
153
|
-
export const
|
|
816
|
+
export const PermissionResponseSchema = {
|
|
154
817
|
type: 'object',
|
|
155
818
|
properties: {
|
|
156
|
-
|
|
819
|
+
permission: {
|
|
820
|
+
$ref: '#/components/schemas/ItemsEnum',
|
|
821
|
+
},
|
|
822
|
+
implied: {
|
|
157
823
|
type: 'array',
|
|
158
824
|
items: {
|
|
159
|
-
|
|
160
|
-
format: 'int32',
|
|
825
|
+
$ref: '#/components/schemas/ItemsEnum',
|
|
161
826
|
},
|
|
162
827
|
},
|
|
163
828
|
},
|
|
829
|
+
required: ['implied', 'permission'],
|
|
164
830
|
};
|
|
165
|
-
export const
|
|
831
|
+
export const MemberViewResponseSchema = {
|
|
166
832
|
type: 'object',
|
|
167
833
|
properties: {
|
|
168
|
-
|
|
834
|
+
userId: {
|
|
169
835
|
type: 'string',
|
|
170
|
-
maxLength: 255,
|
|
171
|
-
minLength: 0,
|
|
172
836
|
},
|
|
173
|
-
|
|
837
|
+
firstName: {
|
|
174
838
|
type: 'string',
|
|
175
|
-
maxLength: 255,
|
|
176
|
-
minLength: 0,
|
|
177
839
|
},
|
|
178
|
-
|
|
840
|
+
lastName: {
|
|
179
841
|
type: 'string',
|
|
180
|
-
maxLength: 500,
|
|
181
|
-
minLength: 0,
|
|
182
|
-
},
|
|
183
|
-
lat: {
|
|
184
|
-
type: 'number',
|
|
185
|
-
format: 'double',
|
|
186
|
-
maximum: 90,
|
|
187
|
-
minimum: -90,
|
|
188
842
|
},
|
|
189
|
-
|
|
190
|
-
type: '
|
|
191
|
-
format: 'double',
|
|
192
|
-
maximum: 180,
|
|
193
|
-
minimum: -180,
|
|
843
|
+
phone: {
|
|
844
|
+
type: 'string',
|
|
194
845
|
},
|
|
195
|
-
|
|
846
|
+
email: {
|
|
196
847
|
type: 'string',
|
|
197
|
-
maxLength: 100,
|
|
198
|
-
minLength: 0,
|
|
199
848
|
},
|
|
200
|
-
|
|
849
|
+
roleId: {
|
|
850
|
+
type: 'integer',
|
|
851
|
+
format: 'int32',
|
|
852
|
+
},
|
|
853
|
+
roleName: {
|
|
201
854
|
type: 'string',
|
|
202
|
-
maxLength: 100,
|
|
203
|
-
minLength: 0,
|
|
204
855
|
},
|
|
205
|
-
|
|
856
|
+
joinedAt: {
|
|
206
857
|
type: 'string',
|
|
207
|
-
|
|
208
|
-
minLength: 0,
|
|
858
|
+
format: 'date-time',
|
|
209
859
|
},
|
|
210
860
|
},
|
|
211
861
|
required: [
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'street',
|
|
862
|
+
'email',
|
|
863
|
+
'firstName',
|
|
864
|
+
'joinedAt',
|
|
865
|
+
'lastName',
|
|
866
|
+
'roleId',
|
|
867
|
+
'roleName',
|
|
868
|
+
'userId',
|
|
220
869
|
],
|
|
221
870
|
};
|
|
222
|
-
export const
|
|
871
|
+
export const PagedModelMemberViewResponseSchema = {
|
|
223
872
|
type: 'object',
|
|
224
873
|
properties: {
|
|
225
|
-
|
|
874
|
+
content: {
|
|
226
875
|
type: 'array',
|
|
227
876
|
items: {
|
|
228
|
-
|
|
877
|
+
$ref: '#/components/schemas/MemberViewResponse',
|
|
229
878
|
},
|
|
230
|
-
minItems: 1,
|
|
231
879
|
},
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
};
|
|
235
|
-
export const StartRegistrationRequestSchema = {
|
|
236
|
-
type: 'object',
|
|
237
|
-
properties: {
|
|
238
|
-
draftType: {
|
|
239
|
-
$ref: '#/components/schemas/DraftTypeEnum',
|
|
880
|
+
page: {
|
|
881
|
+
$ref: '#/components/schemas/PageMetadata',
|
|
240
882
|
},
|
|
241
883
|
},
|
|
242
|
-
required: ['draftType'],
|
|
243
884
|
};
|
|
244
|
-
export const
|
|
885
|
+
export const IntentResponseSchema = {
|
|
245
886
|
type: 'object',
|
|
246
887
|
properties: {
|
|
247
|
-
|
|
248
|
-
|
|
888
|
+
id: {
|
|
889
|
+
type: 'integer',
|
|
890
|
+
format: 'int64',
|
|
249
891
|
},
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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',
|
|
253
930
|
},
|
|
254
931
|
},
|
|
255
|
-
required: ['
|
|
932
|
+
required: ['clientType', 'id', 'listingType', 'propertyType'],
|
|
256
933
|
};
|
|
257
|
-
export const
|
|
934
|
+
export const LeadProjectionResponseSchema = {
|
|
258
935
|
type: 'object',
|
|
259
936
|
properties: {
|
|
260
|
-
|
|
937
|
+
id: {
|
|
938
|
+
type: 'integer',
|
|
939
|
+
format: 'int64',
|
|
940
|
+
},
|
|
941
|
+
createdBy: {
|
|
261
942
|
type: 'string',
|
|
943
|
+
format: 'uuid',
|
|
262
944
|
},
|
|
263
|
-
|
|
945
|
+
assignedTo: {
|
|
264
946
|
type: 'string',
|
|
947
|
+
format: 'uuid',
|
|
948
|
+
},
|
|
949
|
+
status: {
|
|
950
|
+
$ref: '#/components/schemas/SchemaEnum',
|
|
265
951
|
},
|
|
266
|
-
|
|
952
|
+
contactFullName: {
|
|
267
953
|
type: 'string',
|
|
268
954
|
},
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
format: 'double',
|
|
955
|
+
contactGender: {
|
|
956
|
+
$ref: '#/components/schemas/GenderEnum',
|
|
272
957
|
},
|
|
273
|
-
|
|
274
|
-
type: '
|
|
275
|
-
format: 'double',
|
|
958
|
+
contactPhoneNumber: {
|
|
959
|
+
type: 'string',
|
|
276
960
|
},
|
|
277
|
-
|
|
961
|
+
contactEmail: {
|
|
278
962
|
type: 'string',
|
|
279
963
|
},
|
|
280
|
-
|
|
964
|
+
note: {
|
|
281
965
|
type: 'string',
|
|
282
966
|
},
|
|
283
|
-
|
|
967
|
+
sourceType: {
|
|
968
|
+
$ref: '#/components/schemas/SourceTypeEnum',
|
|
969
|
+
},
|
|
970
|
+
sourceLink: {
|
|
284
971
|
type: 'string',
|
|
285
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
|
+
},
|
|
286
985
|
},
|
|
287
986
|
required: [
|
|
288
|
-
'
|
|
289
|
-
'
|
|
290
|
-
'
|
|
291
|
-
'
|
|
292
|
-
'
|
|
293
|
-
'
|
|
294
|
-
'placeId',
|
|
295
|
-
'street',
|
|
987
|
+
'contactPhoneNumber',
|
|
988
|
+
'createdBy',
|
|
989
|
+
'id',
|
|
990
|
+
'isListing',
|
|
991
|
+
'isSearching',
|
|
992
|
+
'status',
|
|
296
993
|
],
|
|
297
994
|
};
|
|
298
|
-
export const
|
|
995
|
+
export const PagedModelLeadProjectionResponseSchema = {
|
|
299
996
|
type: 'object',
|
|
300
997
|
properties: {
|
|
301
|
-
|
|
302
|
-
|
|
998
|
+
content: {
|
|
999
|
+
type: 'array',
|
|
1000
|
+
items: {
|
|
1001
|
+
$ref: '#/components/schemas/LeadProjectionResponse',
|
|
1002
|
+
},
|
|
303
1003
|
},
|
|
304
|
-
|
|
305
|
-
|
|
1004
|
+
page: {
|
|
1005
|
+
$ref: '#/components/schemas/PageMetadata',
|
|
306
1006
|
},
|
|
307
1007
|
},
|
|
308
|
-
required: ['language', 'text'],
|
|
309
1008
|
};
|
|
310
|
-
export const
|
|
1009
|
+
export const InvitationViewResponseSchema = {
|
|
311
1010
|
type: 'object',
|
|
312
1011
|
properties: {
|
|
313
|
-
|
|
314
|
-
type: '
|
|
315
|
-
format: '
|
|
1012
|
+
invitationId: {
|
|
1013
|
+
type: 'string',
|
|
1014
|
+
format: 'uuid',
|
|
316
1015
|
},
|
|
317
|
-
|
|
318
|
-
type: '
|
|
319
|
-
format: 'double',
|
|
1016
|
+
email: {
|
|
1017
|
+
type: 'string',
|
|
320
1018
|
},
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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',
|
|
324
1036
|
},
|
|
325
1037
|
},
|
|
326
|
-
required: ['
|
|
1038
|
+
required: ['createdAt', 'email', 'expiresAt', 'invitationId', 'status'],
|
|
327
1039
|
};
|
|
328
|
-
export const
|
|
1040
|
+
export const PagedModelInvitationViewResponseSchema = {
|
|
329
1041
|
type: 'object',
|
|
330
1042
|
properties: {
|
|
331
|
-
|
|
332
|
-
type: '
|
|
1043
|
+
content: {
|
|
1044
|
+
type: 'array',
|
|
1045
|
+
items: {
|
|
1046
|
+
$ref: '#/components/schemas/InvitationViewResponse',
|
|
1047
|
+
},
|
|
333
1048
|
},
|
|
334
|
-
|
|
335
|
-
|
|
1049
|
+
page: {
|
|
1050
|
+
$ref: '#/components/schemas/PageMetadata',
|
|
336
1051
|
},
|
|
337
1052
|
},
|
|
338
1053
|
};
|
|
339
|
-
export const
|
|
1054
|
+
export const ClientProjectionResponseSchema = {
|
|
340
1055
|
type: 'object',
|
|
341
1056
|
properties: {
|
|
342
|
-
|
|
1057
|
+
id: {
|
|
1058
|
+
type: 'integer',
|
|
1059
|
+
format: 'int64',
|
|
1060
|
+
},
|
|
1061
|
+
createdBy: {
|
|
343
1062
|
type: 'string',
|
|
344
1063
|
format: 'uuid',
|
|
345
1064
|
},
|
|
346
|
-
|
|
1065
|
+
leadId: {
|
|
1066
|
+
type: 'integer',
|
|
1067
|
+
format: 'int64',
|
|
1068
|
+
},
|
|
1069
|
+
assignedTo: {
|
|
347
1070
|
type: 'string',
|
|
1071
|
+
format: 'uuid',
|
|
348
1072
|
},
|
|
349
|
-
|
|
350
|
-
|
|
1073
|
+
contactFullName: {
|
|
1074
|
+
type: 'string',
|
|
351
1075
|
},
|
|
352
|
-
|
|
1076
|
+
contactPhoneNumber: {
|
|
353
1077
|
type: 'string',
|
|
354
1078
|
},
|
|
355
|
-
|
|
1079
|
+
contactGender: {
|
|
1080
|
+
$ref: '#/components/schemas/GenderEnum',
|
|
1081
|
+
},
|
|
1082
|
+
contactEmail: {
|
|
1083
|
+
type: 'string',
|
|
1084
|
+
},
|
|
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: {
|
|
356
1098
|
type: 'array',
|
|
357
1099
|
items: {
|
|
358
|
-
$ref: '#/components/schemas/
|
|
1100
|
+
$ref: '#/components/schemas/ItemsEnum2',
|
|
359
1101
|
},
|
|
1102
|
+
uniqueItems: true,
|
|
360
1103
|
},
|
|
361
|
-
|
|
362
|
-
$ref: '#/components/schemas/
|
|
1104
|
+
favoriteContactMethod: {
|
|
1105
|
+
$ref: '#/components/schemas/ItemsEnum2',
|
|
363
1106
|
},
|
|
364
|
-
|
|
365
|
-
$ref: '#/components/schemas/
|
|
1107
|
+
priority: {
|
|
1108
|
+
$ref: '#/components/schemas/PriorityEnum',
|
|
366
1109
|
},
|
|
367
|
-
|
|
1110
|
+
requirements: {
|
|
368
1111
|
type: 'array',
|
|
369
1112
|
items: {
|
|
370
|
-
$ref: '#/components/schemas/
|
|
1113
|
+
$ref: '#/components/schemas/RequirementResponse',
|
|
371
1114
|
},
|
|
372
1115
|
},
|
|
373
|
-
|
|
1116
|
+
properties: {
|
|
374
1117
|
type: 'array',
|
|
375
1118
|
items: {
|
|
376
|
-
$ref: '#/components/schemas/
|
|
1119
|
+
$ref: '#/components/schemas/PropertyResponse',
|
|
377
1120
|
},
|
|
378
1121
|
},
|
|
379
|
-
|
|
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: {
|
|
380
1136
|
type: 'array',
|
|
381
1137
|
items: {
|
|
382
|
-
|
|
383
|
-
format: 'int32',
|
|
1138
|
+
$ref: '#/components/schemas/ClientProjectionResponse',
|
|
384
1139
|
},
|
|
385
1140
|
},
|
|
386
|
-
|
|
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: {
|
|
387
1167
|
type: 'array',
|
|
388
1168
|
items: {
|
|
389
|
-
|
|
1169
|
+
$ref: '#/components/schemas/PropertyTypeEnum',
|
|
390
1170
|
},
|
|
391
1171
|
},
|
|
392
|
-
|
|
1172
|
+
listingType: {
|
|
1173
|
+
$ref: '#/components/schemas/ListingTypeEnum',
|
|
1174
|
+
},
|
|
1175
|
+
priceMin: {
|
|
1176
|
+
type: 'number',
|
|
1177
|
+
},
|
|
1178
|
+
priceMax: {
|
|
1179
|
+
type: 'number',
|
|
1180
|
+
},
|
|
1181
|
+
bedroomsMin: {
|
|
393
1182
|
type: 'integer',
|
|
394
1183
|
format: 'int32',
|
|
395
1184
|
},
|
|
396
|
-
|
|
397
|
-
|
|
1185
|
+
bedroomsMax: {
|
|
1186
|
+
type: 'integer',
|
|
1187
|
+
format: 'int32',
|
|
398
1188
|
},
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
'description',
|
|
403
|
-
'group',
|
|
404
|
-
'ownerId',
|
|
405
|
-
'pages',
|
|
406
|
-
'photos',
|
|
407
|
-
'propertyId',
|
|
408
|
-
'spaces',
|
|
409
|
-
'title',
|
|
410
|
-
'total',
|
|
411
|
-
'type',
|
|
412
|
-
],
|
|
413
|
-
};
|
|
414
|
-
export const SpaceResponseSchema = {
|
|
415
|
-
type: 'object',
|
|
416
|
-
properties: {
|
|
417
|
-
type: {
|
|
418
|
-
$ref: '#/components/schemas/TypeEnum',
|
|
1189
|
+
bathroomsMin: {
|
|
1190
|
+
type: 'integer',
|
|
1191
|
+
format: 'int32',
|
|
419
1192
|
},
|
|
420
|
-
|
|
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: {
|
|
421
1206
|
type: 'number',
|
|
422
1207
|
format: 'double',
|
|
423
1208
|
},
|
|
1209
|
+
livingMax: {
|
|
1210
|
+
type: 'number',
|
|
1211
|
+
format: 'double',
|
|
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
|
+
},
|
|
424
1229
|
},
|
|
1230
|
+
required: ['id', 'listingType', 'propertyType'],
|
|
425
1231
|
};
|
|
426
|
-
export const
|
|
1232
|
+
export const AddressViewResponseSchema = {
|
|
427
1233
|
type: 'object',
|
|
428
1234
|
properties: {
|
|
429
|
-
|
|
430
|
-
type: 'string',
|
|
431
|
-
format: 'uuid',
|
|
432
|
-
},
|
|
433
|
-
type: {
|
|
434
|
-
$ref: '#/components/schemas/DraftTypeEnum',
|
|
435
|
-
},
|
|
436
|
-
title: {
|
|
1235
|
+
country: {
|
|
437
1236
|
type: 'string',
|
|
438
1237
|
},
|
|
439
1238
|
city: {
|
|
440
1239
|
type: 'string',
|
|
441
1240
|
},
|
|
442
|
-
|
|
1241
|
+
district: {
|
|
443
1242
|
type: 'string',
|
|
444
1243
|
},
|
|
445
|
-
|
|
1244
|
+
subdistrict: {
|
|
446
1245
|
type: 'string',
|
|
447
1246
|
},
|
|
448
|
-
|
|
1247
|
+
street: {
|
|
449
1248
|
type: 'string',
|
|
450
|
-
format: 'date-time',
|
|
451
1249
|
},
|
|
452
1250
|
},
|
|
453
|
-
required: ['
|
|
1251
|
+
required: ['city', 'country', 'district', 'street', 'subdistrict'],
|
|
454
1252
|
};
|
|
455
|
-
export const
|
|
1253
|
+
export const AgencyProfileResponseSchema = {
|
|
456
1254
|
type: 'object',
|
|
457
1255
|
properties: {
|
|
458
|
-
|
|
459
|
-
|
|
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',
|
|
460
1278
|
},
|
|
461
1279
|
},
|
|
462
|
-
required: [
|
|
1280
|
+
required: [
|
|
1281
|
+
'address',
|
|
1282
|
+
'email',
|
|
1283
|
+
'name',
|
|
1284
|
+
'phone',
|
|
1285
|
+
'seats',
|
|
1286
|
+
'subDomain',
|
|
1287
|
+
'yearSince',
|
|
1288
|
+
],
|
|
463
1289
|
};
|
|
464
|
-
export const
|
|
1290
|
+
export const SchemaEnumSchema = {
|
|
465
1291
|
type: 'string',
|
|
466
1292
|
enum: [
|
|
467
|
-
'
|
|
468
|
-
'
|
|
469
|
-
'
|
|
470
|
-
'
|
|
471
|
-
'
|
|
472
|
-
'
|
|
473
|
-
'GYM',
|
|
474
|
-
'LAUNDRY',
|
|
475
|
-
'HOME_THEATRE',
|
|
476
|
-
'GAME_ROOM',
|
|
1293
|
+
'NEW',
|
|
1294
|
+
'ATTEMPTED_CONTACT',
|
|
1295
|
+
'CONTACTED',
|
|
1296
|
+
'DISQUALIFIED',
|
|
1297
|
+
'CONVERTED',
|
|
1298
|
+
'LOST',
|
|
477
1299
|
],
|
|
478
1300
|
};
|
|
479
|
-
export const
|
|
1301
|
+
export const SchemaEnum2Schema = {
|
|
1302
|
+
type: 'string',
|
|
1303
|
+
enum: ['NEW', 'ACTIVE', 'PAYMENT_FAILED', 'INACTIVE'],
|
|
1304
|
+
};
|
|
1305
|
+
export const ItemsEnumSchema = {
|
|
480
1306
|
type: 'string',
|
|
481
|
-
description: 'property group being registered',
|
|
482
1307
|
enum: [
|
|
483
|
-
'
|
|
484
|
-
'
|
|
485
|
-
'
|
|
486
|
-
'
|
|
487
|
-
'
|
|
488
|
-
'
|
|
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',
|
|
489
1319
|
],
|
|
490
1320
|
};
|
|
491
|
-
export const
|
|
1321
|
+
export const ClientTypeEnumSchema = {
|
|
492
1322
|
type: 'string',
|
|
493
|
-
enum: ['
|
|
1323
|
+
enum: ['LISTING', 'SEEKING'],
|
|
494
1324
|
};
|
|
495
|
-
export const
|
|
1325
|
+
export const ListingTypeEnumSchema = {
|
|
1326
|
+
type: 'string',
|
|
1327
|
+
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
1328
|
+
};
|
|
1329
|
+
export const PropertyTypeEnumSchema = {
|
|
496
1330
|
type: 'string',
|
|
497
1331
|
enum: [
|
|
498
1332
|
'HOUSE',
|
|
@@ -517,13 +1351,45 @@ export const DraftTypeEnumSchema = {
|
|
|
517
1351
|
'GARAGE',
|
|
518
1352
|
],
|
|
519
1353
|
};
|
|
520
|
-
export const
|
|
1354
|
+
export const GenderEnumSchema = {
|
|
1355
|
+
type: 'string',
|
|
1356
|
+
enum: ['MALE', 'FEMALE', 'UNKNOWN'],
|
|
1357
|
+
};
|
|
1358
|
+
export const PriorityEnumSchema = {
|
|
521
1359
|
type: 'string',
|
|
522
|
-
enum: ['
|
|
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'],
|
|
523
1373
|
};
|
|
524
1374
|
export const StatusEnumSchema = {
|
|
525
1375
|
type: 'string',
|
|
526
|
-
|
|
527
|
-
|
|
1376
|
+
enum: ['PENDING', 'ACCEPTED', 'CANCELLED', 'EXPIRED'],
|
|
1377
|
+
};
|
|
1378
|
+
export const GroupEnumSchema = {
|
|
1379
|
+
type: 'string',
|
|
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
|
+
],
|
|
528
1394
|
};
|
|
529
1395
|
//# sourceMappingURL=schemas.gen.js.map
|