@homespot-sdk/core 0.0.102

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 (78) hide show
  1. package/README.md +15 -0
  2. package/dist/client/client.gen.d.ts +3 -0
  3. package/dist/client/client.gen.d.ts.map +1 -0
  4. package/dist/client/client.gen.js +211 -0
  5. package/dist/client/client.gen.js.map +1 -0
  6. package/dist/client/index.d.ts +9 -0
  7. package/dist/client/index.d.ts.map +1 -0
  8. package/dist/client/index.js +17 -0
  9. package/dist/client/index.js.map +1 -0
  10. package/dist/client/types.gen.d.ts +100 -0
  11. package/dist/client/types.gen.d.ts.map +1 -0
  12. package/dist/client/types.gen.js +4 -0
  13. package/dist/client/types.gen.js.map +1 -0
  14. package/dist/client/utils.gen.d.ts +41 -0
  15. package/dist/client/utils.gen.d.ts.map +1 -0
  16. package/dist/client/utils.gen.js +317 -0
  17. package/dist/client/utils.gen.js.map +1 -0
  18. package/dist/client.gen.d.ts +13 -0
  19. package/dist/client.gen.d.ts.map +1 -0
  20. package/dist/client.gen.js +10 -0
  21. package/dist/client.gen.js.map +1 -0
  22. package/dist/core/auth.gen.d.ts +19 -0
  23. package/dist/core/auth.gen.d.ts.map +1 -0
  24. package/dist/core/auth.gen.js +19 -0
  25. package/dist/core/auth.gen.js.map +1 -0
  26. package/dist/core/bodySerializer.gen.d.ts +26 -0
  27. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  28. package/dist/core/bodySerializer.gen.js +61 -0
  29. package/dist/core/bodySerializer.gen.js.map +1 -0
  30. package/dist/core/params.gen.d.ts +44 -0
  31. package/dist/core/params.gen.d.ts.map +1 -0
  32. package/dist/core/params.gen.js +106 -0
  33. package/dist/core/params.gen.js.map +1 -0
  34. package/dist/core/pathSerializer.gen.d.ts +34 -0
  35. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  36. package/dist/core/pathSerializer.gen.js +128 -0
  37. package/dist/core/pathSerializer.gen.js.map +1 -0
  38. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  39. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  40. package/dist/core/queryKeySerializer.gen.js +106 -0
  41. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  42. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  43. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  44. package/dist/core/serverSentEvents.gen.js +144 -0
  45. package/dist/core/serverSentEvents.gen.js.map +1 -0
  46. package/dist/core/types.gen.d.ts +79 -0
  47. package/dist/core/types.gen.d.ts.map +1 -0
  48. package/dist/core/types.gen.js +4 -0
  49. package/dist/core/types.gen.js.map +1 -0
  50. package/dist/core/utils.gen.d.ts +20 -0
  51. package/dist/core/utils.gen.d.ts.map +1 -0
  52. package/dist/core/utils.gen.js +95 -0
  53. package/dist/core/utils.gen.js.map +1 -0
  54. package/dist/index.d.ts +3 -0
  55. package/dist/index.d.ts.map +1 -0
  56. package/dist/index.js +43 -0
  57. package/dist/index.js.map +1 -0
  58. package/dist/schemas.gen.d.ts +955 -0
  59. package/dist/schemas.gen.d.ts.map +1 -0
  60. package/dist/schemas.gen.js +1059 -0
  61. package/dist/schemas.gen.js.map +1 -0
  62. package/dist/sdk.gen.d.ts +53 -0
  63. package/dist/sdk.gen.d.ts.map +1 -0
  64. package/dist/sdk.gen.js +315 -0
  65. package/dist/sdk.gen.js.map +1 -0
  66. package/dist/transformers.gen.d.ts +4 -0
  67. package/dist/transformers.gen.d.ts.map +1 -0
  68. package/dist/transformers.gen.js +39 -0
  69. package/dist/transformers.gen.js.map +1 -0
  70. package/dist/types.gen.d.ts +887 -0
  71. package/dist/types.gen.d.ts.map +1 -0
  72. package/dist/types.gen.js +4 -0
  73. package/dist/types.gen.js.map +1 -0
  74. package/dist/zod.gen.d.ts +1938 -0
  75. package/dist/zod.gen.d.ts.map +1 -0
  76. package/dist/zod.gen.js +1046 -0
  77. package/dist/zod.gen.js.map +1 -0
  78. package/package.json +32 -0
@@ -0,0 +1,1059 @@
1
+ "use strict";
2
+ // This file is auto-generated by @hey-api/openapi-ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ItemsEnumSchema = exports.SchemaEnum2Schema = exports.SchemaEnumSchema = exports.AgencyProfileResponseSchema = exports.AddressViewResponseSchema = exports.PagedModelInvitationViewResponseSchema = exports.InvitationViewResponseSchema = exports.PagedModelLeadProjectionResponseSchema = exports.LeadProjectionResponseSchema = exports.IntentResponseSchema = exports.PagedModelMemberViewResponseSchema = exports.MemberViewResponseSchema = exports.PermissionResponseSchema = exports.GroupedPermissionsResponseSchema = exports.PagedModelAgencySummaryResponseSchema = exports.AgencySummaryResponseSchema = exports.InvitationDetailsResponseSchema = exports.RoleResponseSchema = exports.PagedModelRoleResponseSchema = exports.PageMetadataSchema = exports.UserSummaryViewResponseSchema = exports.UserContextViewResponseSchema = exports.OrganizationSummaryViewResponseSchema = exports.UploadAcknowledgmentResponseSchema = exports.PresignedUrlsResponseSchema = exports.PresignedUrlResponseSchema = exports.PhotoRequestSchema = exports.IdResponseUUIDSchema = exports.InviteMemberRequestSchema = exports.InvitationDetailsRequestSchema = exports.IdResponseLongSchema = exports.CreateLeadRequestSchema = exports.IdResponseSchema = exports.DepositFundsRequestSchema = exports.TransferFundsRequestSchema = exports.SocialMediasRequestSchema = exports.SocialMediaRequestSchema = exports.CreateAgencyRequestSchema = exports.AddressRequestSchema = exports.AssignToMemberRequestSchema = exports.ContactInfoRequestSchema = exports.PriceRangeRequestSchema = exports.LocationRefRequestSchema = exports.LeadIntentRequestSchema = exports.UpdateNoteRequestSchema = exports.SourceRequestSchema = exports.ChangeStatusRequestSchema = exports.BatchAssignRoleRequestSchema = exports.AssignRoleRequestSchema = exports.RolesRequestSchema = void 0;
5
+ exports.SourceTypeEnumSchema = exports.GroupEnumSchema = exports.StatusEnumSchema = exports.TypeEnum2Schema = exports.TypeEnumSchema = exports.PropertyTypeEnumSchema = exports.ListingTypeEnumSchema = exports.ClientTypeEnumSchema = void 0;
6
+ exports.RolesRequestSchema = {
7
+ type: 'object',
8
+ properties: {
9
+ name: {
10
+ type: 'string',
11
+ minLength: 1,
12
+ },
13
+ description: {
14
+ type: 'string',
15
+ minLength: 1,
16
+ },
17
+ permissions: {
18
+ type: 'array',
19
+ items: {
20
+ $ref: '#/components/schemas/ItemsEnum',
21
+ },
22
+ },
23
+ },
24
+ required: ['description', 'name', 'permissions'],
25
+ };
26
+ exports.AssignRoleRequestSchema = {
27
+ type: 'object',
28
+ properties: {
29
+ roleId: {
30
+ type: 'integer',
31
+ format: 'int32',
32
+ },
33
+ },
34
+ required: ['roleId'],
35
+ };
36
+ exports.BatchAssignRoleRequestSchema = {
37
+ type: 'object',
38
+ properties: {
39
+ roleId: {
40
+ type: 'integer',
41
+ format: 'int32',
42
+ },
43
+ memberIds: {
44
+ type: 'array',
45
+ items: {
46
+ type: 'string',
47
+ format: 'uuid',
48
+ },
49
+ minItems: 1,
50
+ },
51
+ },
52
+ required: ['memberIds', 'roleId'],
53
+ };
54
+ exports.ChangeStatusRequestSchema = {
55
+ type: 'object',
56
+ properties: {
57
+ status: {
58
+ $ref: '#/components/schemas/SchemaEnum',
59
+ },
60
+ },
61
+ required: ['status'],
62
+ };
63
+ exports.SourceRequestSchema = {
64
+ type: 'object',
65
+ properties: {
66
+ sourceUrl: {
67
+ type: 'string',
68
+ },
69
+ },
70
+ };
71
+ exports.UpdateNoteRequestSchema = {
72
+ type: 'object',
73
+ properties: {
74
+ note: {
75
+ type: 'string',
76
+ },
77
+ },
78
+ };
79
+ exports.LeadIntentRequestSchema = {
80
+ type: 'object',
81
+ properties: {
82
+ clientType: {
83
+ $ref: '#/components/schemas/ClientTypeEnum',
84
+ },
85
+ listingType: {
86
+ $ref: '#/components/schemas/ListingTypeEnum',
87
+ },
88
+ propertyType: {
89
+ $ref: '#/components/schemas/PropertyTypeEnum',
90
+ },
91
+ price: {
92
+ $ref: '#/components/schemas/PriceRangeRequest',
93
+ },
94
+ targetLocation: {
95
+ $ref: '#/components/schemas/LocationRefRequest',
96
+ },
97
+ area: {
98
+ type: 'number',
99
+ format: 'double',
100
+ },
101
+ numberOfRooms: {
102
+ type: 'integer',
103
+ format: 'int32',
104
+ },
105
+ },
106
+ required: ['clientType', 'listingType', 'propertyType'],
107
+ };
108
+ exports.LocationRefRequestSchema = {
109
+ type: 'object',
110
+ properties: {
111
+ regionId: {
112
+ type: 'integer',
113
+ format: 'int64',
114
+ },
115
+ districtId: {
116
+ type: 'integer',
117
+ format: 'int64',
118
+ },
119
+ subDistrictId: {
120
+ type: 'integer',
121
+ format: 'int64',
122
+ },
123
+ streetId: {
124
+ type: 'integer',
125
+ format: 'int64',
126
+ },
127
+ },
128
+ };
129
+ exports.PriceRangeRequestSchema = {
130
+ type: 'object',
131
+ properties: {
132
+ min: {
133
+ type: 'number',
134
+ },
135
+ max: {
136
+ type: 'number',
137
+ },
138
+ },
139
+ };
140
+ exports.ContactInfoRequestSchema = {
141
+ type: 'object',
142
+ properties: {
143
+ firstName: {
144
+ type: 'string',
145
+ },
146
+ lastName: {
147
+ type: 'string',
148
+ },
149
+ email: {
150
+ type: 'string',
151
+ format: 'email',
152
+ },
153
+ phone: {
154
+ type: 'string',
155
+ minLength: 1,
156
+ },
157
+ },
158
+ required: ['phone'],
159
+ };
160
+ exports.AssignToMemberRequestSchema = {
161
+ type: 'object',
162
+ properties: {
163
+ memberId: {
164
+ type: 'string',
165
+ format: 'uuid',
166
+ },
167
+ },
168
+ required: ['memberId'],
169
+ };
170
+ exports.AddressRequestSchema = {
171
+ type: 'object',
172
+ properties: {
173
+ country: {
174
+ type: 'string',
175
+ maxLength: 100,
176
+ minLength: 0,
177
+ },
178
+ city: {
179
+ type: 'string',
180
+ maxLength: 100,
181
+ minLength: 0,
182
+ },
183
+ district: {
184
+ type: 'string',
185
+ maxLength: 100,
186
+ minLength: 0,
187
+ },
188
+ subdistrict: {
189
+ type: 'string',
190
+ maxLength: 100,
191
+ minLength: 0,
192
+ },
193
+ street: {
194
+ type: 'string',
195
+ maxLength: 255,
196
+ minLength: 0,
197
+ },
198
+ },
199
+ required: ['city', 'country', 'district', 'street', 'subdistrict'],
200
+ };
201
+ exports.CreateAgencyRequestSchema = {
202
+ type: 'object',
203
+ properties: {
204
+ name: {
205
+ type: 'string',
206
+ minLength: 1,
207
+ },
208
+ email: {
209
+ type: 'string',
210
+ format: 'email',
211
+ minLength: 1,
212
+ },
213
+ seats: {
214
+ type: 'integer',
215
+ format: 'int32',
216
+ },
217
+ subDomain: {
218
+ type: 'string',
219
+ minLength: 1,
220
+ },
221
+ phone: {
222
+ type: 'string',
223
+ minLength: 1,
224
+ },
225
+ address: {
226
+ $ref: '#/components/schemas/AddressRequest',
227
+ },
228
+ yearSince: {
229
+ type: 'integer',
230
+ format: 'int32',
231
+ },
232
+ },
233
+ required: [
234
+ 'address',
235
+ 'email',
236
+ 'name',
237
+ 'phone',
238
+ 'seats',
239
+ 'subDomain',
240
+ 'yearSince',
241
+ ],
242
+ };
243
+ exports.SocialMediaRequestSchema = {
244
+ type: 'object',
245
+ properties: {
246
+ type: {
247
+ $ref: '#/components/schemas/TypeEnum',
248
+ },
249
+ url: {
250
+ type: 'string',
251
+ },
252
+ },
253
+ required: ['type'],
254
+ };
255
+ exports.SocialMediasRequestSchema = {
256
+ type: 'object',
257
+ properties: {
258
+ data: {
259
+ type: 'array',
260
+ items: {
261
+ $ref: '#/components/schemas/SocialMediaRequest',
262
+ },
263
+ maxItems: 5,
264
+ minItems: 1,
265
+ },
266
+ },
267
+ required: ['data'],
268
+ };
269
+ exports.TransferFundsRequestSchema = {
270
+ type: 'object',
271
+ properties: {
272
+ transferTo: {
273
+ type: 'string',
274
+ format: 'uuid',
275
+ },
276
+ amount: {
277
+ type: 'number',
278
+ },
279
+ },
280
+ required: ['amount', 'transferTo'],
281
+ };
282
+ exports.DepositFundsRequestSchema = {
283
+ type: 'object',
284
+ properties: {
285
+ amount: {
286
+ type: 'number',
287
+ },
288
+ },
289
+ required: ['amount'],
290
+ };
291
+ exports.IdResponseSchema = {
292
+ type: 'object',
293
+ properties: {
294
+ id: {},
295
+ },
296
+ required: ['id'],
297
+ };
298
+ exports.CreateLeadRequestSchema = {
299
+ type: 'object',
300
+ properties: {
301
+ contactInfo: {
302
+ $ref: '#/components/schemas/ContactInfoRequest',
303
+ },
304
+ note: {
305
+ type: 'string',
306
+ maxLength: 500,
307
+ minLength: 0,
308
+ },
309
+ sourceUrl: {
310
+ type: 'string',
311
+ },
312
+ },
313
+ required: ['contactInfo'],
314
+ };
315
+ exports.IdResponseLongSchema = {
316
+ type: 'object',
317
+ properties: {
318
+ id: {
319
+ type: 'integer',
320
+ format: 'int64',
321
+ },
322
+ },
323
+ required: ['id'],
324
+ };
325
+ exports.InvitationDetailsRequestSchema = {
326
+ type: 'object',
327
+ properties: {
328
+ email: {
329
+ type: 'string',
330
+ format: 'email',
331
+ },
332
+ roleId: {
333
+ type: 'integer',
334
+ format: 'int32',
335
+ },
336
+ },
337
+ required: ['email', 'roleId'],
338
+ };
339
+ exports.InviteMemberRequestSchema = {
340
+ type: 'object',
341
+ properties: {
342
+ emails: {
343
+ type: 'array',
344
+ items: {
345
+ $ref: '#/components/schemas/InvitationDetailsRequest',
346
+ },
347
+ minItems: 1,
348
+ },
349
+ },
350
+ required: ['emails'],
351
+ };
352
+ exports.IdResponseUUIDSchema = {
353
+ type: 'object',
354
+ properties: {
355
+ id: {
356
+ type: 'string',
357
+ format: 'uuid',
358
+ },
359
+ },
360
+ required: ['id'],
361
+ };
362
+ exports.PhotoRequestSchema = {
363
+ type: 'object',
364
+ properties: {
365
+ photo: {
366
+ type: 'string',
367
+ maxLength: 255,
368
+ minLength: 0,
369
+ },
370
+ type: {
371
+ $ref: '#/components/schemas/TypeEnum2',
372
+ },
373
+ width: {
374
+ type: 'integer',
375
+ format: 'int32',
376
+ maximum: 11000,
377
+ minimum: 10,
378
+ },
379
+ height: {
380
+ type: 'integer',
381
+ format: 'int32',
382
+ maximum: 11000,
383
+ minimum: 10,
384
+ },
385
+ },
386
+ required: ['photo', 'type', 'width'],
387
+ };
388
+ exports.PresignedUrlResponseSchema = {
389
+ type: 'object',
390
+ properties: {
391
+ originalName: {
392
+ type: 'string',
393
+ },
394
+ key: {
395
+ type: 'string',
396
+ },
397
+ url: {
398
+ type: 'string',
399
+ },
400
+ },
401
+ required: ['key', 'originalName', 'url'],
402
+ };
403
+ exports.PresignedUrlsResponseSchema = {
404
+ type: 'object',
405
+ properties: {
406
+ data: {
407
+ type: 'array',
408
+ items: {
409
+ $ref: '#/components/schemas/PresignedUrlResponse',
410
+ },
411
+ },
412
+ },
413
+ required: ['data'],
414
+ };
415
+ exports.UploadAcknowledgmentResponseSchema = {
416
+ type: 'object',
417
+ properties: {
418
+ success: {
419
+ type: 'array',
420
+ items: {
421
+ type: 'string',
422
+ },
423
+ },
424
+ fail: {
425
+ type: 'array',
426
+ items: {
427
+ type: 'string',
428
+ },
429
+ },
430
+ },
431
+ required: ['fail', 'success'],
432
+ };
433
+ exports.OrganizationSummaryViewResponseSchema = {
434
+ type: 'object',
435
+ properties: {
436
+ agencyId: {
437
+ type: 'string',
438
+ format: 'uuid',
439
+ },
440
+ isOwner: {
441
+ type: 'boolean',
442
+ },
443
+ agencyName: {
444
+ type: 'string',
445
+ },
446
+ subDomain: {
447
+ type: 'string',
448
+ },
449
+ roleId: {
450
+ type: 'integer',
451
+ format: 'int32',
452
+ },
453
+ memberId: {
454
+ type: 'string',
455
+ format: 'uuid',
456
+ },
457
+ roleName: {
458
+ type: 'string',
459
+ },
460
+ permissions: {
461
+ type: 'array',
462
+ items: {
463
+ $ref: '#/components/schemas/ItemsEnum',
464
+ },
465
+ },
466
+ status: {
467
+ $ref: '#/components/schemas/SchemaEnum2',
468
+ },
469
+ },
470
+ required: [
471
+ 'agencyId',
472
+ 'agencyName',
473
+ 'isOwner',
474
+ 'memberId',
475
+ 'permissions',
476
+ 'roleName',
477
+ 'status',
478
+ 'subDomain',
479
+ ],
480
+ };
481
+ exports.UserContextViewResponseSchema = {
482
+ type: 'object',
483
+ properties: {
484
+ user: {
485
+ $ref: '#/components/schemas/UserSummaryViewResponse',
486
+ },
487
+ organizations: {
488
+ type: 'array',
489
+ items: {
490
+ $ref: '#/components/schemas/OrganizationSummaryViewResponse',
491
+ },
492
+ },
493
+ },
494
+ required: ['organizations', 'user'],
495
+ };
496
+ exports.UserSummaryViewResponseSchema = {
497
+ type: 'object',
498
+ properties: {
499
+ email: {
500
+ type: 'string',
501
+ },
502
+ firstName: {
503
+ type: 'string',
504
+ },
505
+ lastName: {
506
+ type: 'string',
507
+ },
508
+ },
509
+ required: ['email', 'firstName', 'lastName'],
510
+ };
511
+ exports.PageMetadataSchema = {
512
+ type: 'object',
513
+ properties: {
514
+ size: {
515
+ type: 'integer',
516
+ format: 'int64',
517
+ },
518
+ number: {
519
+ type: 'integer',
520
+ format: 'int64',
521
+ },
522
+ totalElements: {
523
+ type: 'integer',
524
+ format: 'int64',
525
+ },
526
+ totalPages: {
527
+ type: 'integer',
528
+ format: 'int64',
529
+ },
530
+ },
531
+ };
532
+ exports.PagedModelRoleResponseSchema = {
533
+ type: 'object',
534
+ properties: {
535
+ content: {
536
+ type: 'array',
537
+ items: {
538
+ $ref: '#/components/schemas/RoleResponse',
539
+ },
540
+ },
541
+ page: {
542
+ $ref: '#/components/schemas/PageMetadata',
543
+ },
544
+ },
545
+ };
546
+ exports.RoleResponseSchema = {
547
+ type: 'object',
548
+ properties: {
549
+ id: {
550
+ type: 'integer',
551
+ format: 'int32',
552
+ },
553
+ name: {
554
+ type: 'string',
555
+ },
556
+ description: {
557
+ type: 'string',
558
+ },
559
+ permissions: {
560
+ type: 'array',
561
+ items: {
562
+ $ref: '#/components/schemas/ItemsEnum',
563
+ },
564
+ },
565
+ },
566
+ required: ['description', 'id', 'name', 'permissions'],
567
+ };
568
+ exports.InvitationDetailsResponseSchema = {
569
+ type: 'object',
570
+ properties: {
571
+ invitationId: {
572
+ type: 'string',
573
+ format: 'uuid',
574
+ },
575
+ agencyId: {
576
+ type: 'string',
577
+ format: 'uuid',
578
+ },
579
+ email: {
580
+ type: 'string',
581
+ },
582
+ status: {
583
+ $ref: '#/components/schemas/StatusEnum',
584
+ },
585
+ agencyName: {
586
+ type: 'string',
587
+ },
588
+ agencyLogo: {
589
+ type: 'string',
590
+ },
591
+ },
592
+ required: ['agencyId', 'agencyName', 'email', 'invitationId', 'status'],
593
+ };
594
+ exports.AgencySummaryResponseSchema = {
595
+ type: 'object',
596
+ properties: {
597
+ id: {
598
+ type: 'string',
599
+ format: 'uuid',
600
+ },
601
+ owner: {
602
+ type: 'string',
603
+ },
604
+ name: {
605
+ type: 'string',
606
+ },
607
+ email: {
608
+ type: 'string',
609
+ },
610
+ seats: {
611
+ type: 'string',
612
+ },
613
+ subDomain: {
614
+ type: 'string',
615
+ },
616
+ phone: {
617
+ type: 'string',
618
+ },
619
+ website: {
620
+ type: 'string',
621
+ },
622
+ yearSince: {
623
+ type: 'string',
624
+ },
625
+ status: {
626
+ $ref: '#/components/schemas/SchemaEnum2',
627
+ },
628
+ logo: {
629
+ type: 'string',
630
+ },
631
+ },
632
+ required: [
633
+ 'email',
634
+ 'id',
635
+ 'name',
636
+ 'owner',
637
+ 'phone',
638
+ 'seats',
639
+ 'status',
640
+ 'subDomain',
641
+ 'yearSince',
642
+ ],
643
+ };
644
+ exports.PagedModelAgencySummaryResponseSchema = {
645
+ type: 'object',
646
+ properties: {
647
+ content: {
648
+ type: 'array',
649
+ items: {
650
+ $ref: '#/components/schemas/AgencySummaryResponse',
651
+ },
652
+ },
653
+ page: {
654
+ $ref: '#/components/schemas/PageMetadata',
655
+ },
656
+ },
657
+ };
658
+ exports.GroupedPermissionsResponseSchema = {
659
+ type: 'object',
660
+ properties: {
661
+ group: {
662
+ $ref: '#/components/schemas/GroupEnum',
663
+ },
664
+ permissions: {
665
+ type: 'array',
666
+ items: {
667
+ $ref: '#/components/schemas/PermissionResponse',
668
+ },
669
+ },
670
+ },
671
+ required: ['group', 'permissions'],
672
+ };
673
+ exports.PermissionResponseSchema = {
674
+ type: 'object',
675
+ properties: {
676
+ permission: {
677
+ $ref: '#/components/schemas/ItemsEnum',
678
+ },
679
+ implied: {
680
+ type: 'array',
681
+ items: {
682
+ $ref: '#/components/schemas/ItemsEnum',
683
+ },
684
+ },
685
+ },
686
+ required: ['implied', 'permission'],
687
+ };
688
+ exports.MemberViewResponseSchema = {
689
+ type: 'object',
690
+ properties: {
691
+ userId: {
692
+ type: 'string',
693
+ },
694
+ firstName: {
695
+ type: 'string',
696
+ },
697
+ lastName: {
698
+ type: 'string',
699
+ },
700
+ phone: {
701
+ type: 'string',
702
+ },
703
+ email: {
704
+ type: 'string',
705
+ },
706
+ roleId: {
707
+ type: 'integer',
708
+ format: 'int32',
709
+ },
710
+ roleName: {
711
+ type: 'string',
712
+ },
713
+ joinedAt: {
714
+ type: 'string',
715
+ format: 'date-time',
716
+ },
717
+ },
718
+ required: [
719
+ 'email',
720
+ 'firstName',
721
+ 'joinedAt',
722
+ 'lastName',
723
+ 'roleId',
724
+ 'roleName',
725
+ 'userId',
726
+ ],
727
+ };
728
+ exports.PagedModelMemberViewResponseSchema = {
729
+ type: 'object',
730
+ properties: {
731
+ content: {
732
+ type: 'array',
733
+ items: {
734
+ $ref: '#/components/schemas/MemberViewResponse',
735
+ },
736
+ },
737
+ page: {
738
+ $ref: '#/components/schemas/PageMetadata',
739
+ },
740
+ },
741
+ };
742
+ exports.IntentResponseSchema = {
743
+ type: 'object',
744
+ properties: {
745
+ id: {
746
+ type: 'integer',
747
+ format: 'int64',
748
+ },
749
+ clientType: {
750
+ $ref: '#/components/schemas/ClientTypeEnum',
751
+ },
752
+ listingType: {
753
+ $ref: '#/components/schemas/ListingTypeEnum',
754
+ },
755
+ propertyType: {
756
+ $ref: '#/components/schemas/PropertyTypeEnum',
757
+ },
758
+ priceMin: {
759
+ type: 'number',
760
+ },
761
+ priceMax: {
762
+ type: 'number',
763
+ },
764
+ regionId: {
765
+ type: 'integer',
766
+ format: 'int64',
767
+ },
768
+ districtId: {
769
+ type: 'integer',
770
+ format: 'int64',
771
+ },
772
+ subDistrictId: {
773
+ type: 'integer',
774
+ format: 'int64',
775
+ },
776
+ streetId: {
777
+ type: 'integer',
778
+ format: 'int64',
779
+ },
780
+ area: {
781
+ type: 'number',
782
+ format: 'double',
783
+ },
784
+ numberOfRooms: {
785
+ type: 'integer',
786
+ format: 'int32',
787
+ },
788
+ },
789
+ required: ['clientType', 'id', 'listingType', 'propertyType'],
790
+ };
791
+ exports.LeadProjectionResponseSchema = {
792
+ type: 'object',
793
+ properties: {
794
+ id: {
795
+ type: 'integer',
796
+ format: 'int64',
797
+ },
798
+ createdBy: {
799
+ type: 'string',
800
+ format: 'uuid',
801
+ },
802
+ assignedTo: {
803
+ type: 'string',
804
+ format: 'uuid',
805
+ },
806
+ status: {
807
+ $ref: '#/components/schemas/SchemaEnum',
808
+ },
809
+ contactFullName: {
810
+ type: 'string',
811
+ },
812
+ contactPhoneNumber: {
813
+ type: 'string',
814
+ },
815
+ contactEmail: {
816
+ type: 'string',
817
+ },
818
+ note: {
819
+ type: 'string',
820
+ },
821
+ sourceType: {
822
+ $ref: '#/components/schemas/SourceTypeEnum',
823
+ },
824
+ sourceLink: {
825
+ type: 'string',
826
+ },
827
+ isSearching: {
828
+ type: 'boolean',
829
+ },
830
+ isListing: {
831
+ type: 'boolean',
832
+ },
833
+ intents: {
834
+ type: 'array',
835
+ items: {
836
+ $ref: '#/components/schemas/IntentResponse',
837
+ },
838
+ },
839
+ },
840
+ required: [
841
+ 'contactPhoneNumber',
842
+ 'createdBy',
843
+ 'id',
844
+ 'isListing',
845
+ 'isSearching',
846
+ 'status',
847
+ ],
848
+ };
849
+ exports.PagedModelLeadProjectionResponseSchema = {
850
+ type: 'object',
851
+ properties: {
852
+ content: {
853
+ type: 'array',
854
+ items: {
855
+ $ref: '#/components/schemas/LeadProjectionResponse',
856
+ },
857
+ },
858
+ page: {
859
+ $ref: '#/components/schemas/PageMetadata',
860
+ },
861
+ },
862
+ };
863
+ exports.InvitationViewResponseSchema = {
864
+ type: 'object',
865
+ properties: {
866
+ invitationId: {
867
+ type: 'string',
868
+ format: 'uuid',
869
+ },
870
+ email: {
871
+ type: 'string',
872
+ },
873
+ status: {
874
+ $ref: '#/components/schemas/StatusEnum',
875
+ },
876
+ createdAt: {
877
+ type: 'string',
878
+ format: 'date-time',
879
+ },
880
+ expiresAt: {
881
+ type: 'string',
882
+ format: 'date-time',
883
+ },
884
+ acceptedAt: {
885
+ type: 'string',
886
+ format: 'date-time',
887
+ },
888
+ acceptedBy: {
889
+ type: 'string',
890
+ },
891
+ },
892
+ required: ['createdAt', 'email', 'expiresAt', 'invitationId', 'status'],
893
+ };
894
+ exports.PagedModelInvitationViewResponseSchema = {
895
+ type: 'object',
896
+ properties: {
897
+ content: {
898
+ type: 'array',
899
+ items: {
900
+ $ref: '#/components/schemas/InvitationViewResponse',
901
+ },
902
+ },
903
+ page: {
904
+ $ref: '#/components/schemas/PageMetadata',
905
+ },
906
+ },
907
+ };
908
+ exports.AddressViewResponseSchema = {
909
+ type: 'object',
910
+ properties: {
911
+ country: {
912
+ type: 'string',
913
+ },
914
+ city: {
915
+ type: 'string',
916
+ },
917
+ district: {
918
+ type: 'string',
919
+ },
920
+ subdistrict: {
921
+ type: 'string',
922
+ },
923
+ street: {
924
+ type: 'string',
925
+ },
926
+ },
927
+ required: ['city', 'country', 'district', 'street', 'subdistrict'],
928
+ };
929
+ exports.AgencyProfileResponseSchema = {
930
+ type: 'object',
931
+ properties: {
932
+ name: {
933
+ type: 'string',
934
+ },
935
+ email: {
936
+ type: 'string',
937
+ },
938
+ seats: {
939
+ type: 'integer',
940
+ format: 'int32',
941
+ },
942
+ subDomain: {
943
+ type: 'string',
944
+ },
945
+ phone: {
946
+ type: 'string',
947
+ },
948
+ address: {
949
+ $ref: '#/components/schemas/AddressViewResponse',
950
+ },
951
+ yearSince: {
952
+ type: 'integer',
953
+ format: 'int32',
954
+ },
955
+ },
956
+ required: [
957
+ 'address',
958
+ 'email',
959
+ 'name',
960
+ 'phone',
961
+ 'seats',
962
+ 'subDomain',
963
+ 'yearSince',
964
+ ],
965
+ };
966
+ exports.SchemaEnumSchema = {
967
+ type: 'string',
968
+ enum: [
969
+ 'NEW',
970
+ 'ATTEMPTED_CONTACT',
971
+ 'CONTACTED',
972
+ 'DISQUALIFIED',
973
+ 'CONVERTED',
974
+ 'LOST',
975
+ ],
976
+ };
977
+ exports.SchemaEnum2Schema = {
978
+ type: 'string',
979
+ enum: ['NEW', 'ACTIVE', 'PAYMENT_FAILED', 'INACTIVE'],
980
+ };
981
+ exports.ItemsEnumSchema = {
982
+ type: 'string',
983
+ enum: [
984
+ 'AGENCY_WRITE',
985
+ 'INVITATION_READ',
986
+ 'INVITATION_WRITE',
987
+ 'ROLE_READ',
988
+ 'ROLE_WRITE',
989
+ 'MEMBER_READ',
990
+ 'MEMBER_WRITE',
991
+ 'LEAD_READ',
992
+ 'LEAD_WRITE',
993
+ 'LEAD_READ_ALL',
994
+ 'LEAD_WRITE_ALL',
995
+ ],
996
+ };
997
+ exports.ClientTypeEnumSchema = {
998
+ type: 'string',
999
+ enum: ['LISTING', 'SEEKING'],
1000
+ };
1001
+ exports.ListingTypeEnumSchema = {
1002
+ type: 'string',
1003
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
1004
+ };
1005
+ exports.PropertyTypeEnumSchema = {
1006
+ type: 'string',
1007
+ enum: [
1008
+ 'HOUSE',
1009
+ 'TOWN_HOUSE',
1010
+ 'COUNTRY_HOUSE',
1011
+ 'VILLA',
1012
+ 'COTTAGE',
1013
+ 'APARTMENT',
1014
+ 'DUPLEX',
1015
+ 'TRIPLEX',
1016
+ 'SEMI_BASEMENT',
1017
+ 'ATTIC',
1018
+ 'AGRICULTURAL_LAND',
1019
+ 'RESIDENTIAL_LAND',
1020
+ 'HOTEL_ROOM',
1021
+ 'MOTEL_ROOM',
1022
+ 'CO_LIVING_SPACE',
1023
+ 'OFFICE',
1024
+ 'COMMERCIAL_SPACE',
1025
+ 'CO_WORKING_SPACE',
1026
+ 'WAREHOUSE',
1027
+ 'GARAGE',
1028
+ ],
1029
+ };
1030
+ exports.TypeEnumSchema = {
1031
+ type: 'string',
1032
+ enum: ['FACEBOOK', 'YOUTUBE', 'INSTAGRAM', 'TIKTOK', 'LINKEDIN'],
1033
+ };
1034
+ exports.TypeEnum2Schema = {
1035
+ type: 'string',
1036
+ enum: ['JPEG', 'JPG', 'PNG', 'WEBP'],
1037
+ };
1038
+ exports.StatusEnumSchema = {
1039
+ type: 'string',
1040
+ enum: ['PENDING', 'ACCEPTED', 'CANCELLED', 'EXPIRED'],
1041
+ };
1042
+ exports.GroupEnumSchema = {
1043
+ type: 'string',
1044
+ enum: ['AGENCY', 'INVITATION', 'ROLE', 'MEMBER', 'LEAD'],
1045
+ };
1046
+ exports.SourceTypeEnumSchema = {
1047
+ type: 'string',
1048
+ enum: [
1049
+ 'MY_HOME',
1050
+ 'SS',
1051
+ 'FACEBOOK',
1052
+ 'YOUTUBE',
1053
+ 'INSTAGRAM',
1054
+ 'TIKTOK',
1055
+ 'LINKEDIN',
1056
+ 'UNKNOWN',
1057
+ ],
1058
+ };
1059
+ //# sourceMappingURL=schemas.gen.js.map