@homespot-sdk/core 0.0.118 → 0.0.119
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/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 +133 -208
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +149 -211
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +28 -24
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +92 -72
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +331 -291
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +729 -1005
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +336 -322
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -47,16 +47,7 @@ export const BatchAssignRoleRequestSchema = {
|
|
|
47
47
|
},
|
|
48
48
|
required: ['memberIds', 'roleId'],
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
51
|
-
type: 'object',
|
|
52
|
-
properties: {
|
|
53
|
-
status: {
|
|
54
|
-
$ref: '#/components/schemas/SchemaEnum',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
required: ['status'],
|
|
58
|
-
};
|
|
59
|
-
export const SourceRequestSchema = {
|
|
50
|
+
export const RecordSourceRequestSchema = {
|
|
60
51
|
type: 'object',
|
|
61
52
|
properties: {
|
|
62
53
|
sourceUrl: {
|
|
@@ -64,7 +55,7 @@ export const SourceRequestSchema = {
|
|
|
64
55
|
},
|
|
65
56
|
},
|
|
66
57
|
};
|
|
67
|
-
export const
|
|
58
|
+
export const NoteRequestSchema = {
|
|
68
59
|
type: 'object',
|
|
69
60
|
properties: {
|
|
70
61
|
note: {
|
|
@@ -72,7 +63,7 @@ export const UpdateNoteRequestSchema = {
|
|
|
72
63
|
},
|
|
73
64
|
},
|
|
74
65
|
};
|
|
75
|
-
export const
|
|
66
|
+
export const IntentRequestSchema = {
|
|
76
67
|
type: 'object',
|
|
77
68
|
properties: {
|
|
78
69
|
clientType: {
|
|
@@ -156,7 +147,7 @@ export const ContactInfoRequestSchema = {
|
|
|
156
147
|
},
|
|
157
148
|
required: ['phone'],
|
|
158
149
|
};
|
|
159
|
-
export const
|
|
150
|
+
export const ReassignMemberRequestSchema = {
|
|
160
151
|
type: 'object',
|
|
161
152
|
properties: {
|
|
162
153
|
memberId: {
|
|
@@ -166,14 +157,23 @@ export const AssignToMemberRequestSchema = {
|
|
|
166
157
|
},
|
|
167
158
|
required: ['memberId'],
|
|
168
159
|
};
|
|
169
|
-
export const
|
|
160
|
+
export const ReprioritizeClientRequestSchema = {
|
|
170
161
|
type: 'object',
|
|
171
162
|
properties: {
|
|
172
|
-
|
|
163
|
+
priority: {
|
|
164
|
+
$ref: '#/components/schemas/PriorityEnum',
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
|
+
export const CaptureInterestRequestSchema = {
|
|
169
|
+
type: 'object',
|
|
170
|
+
properties: {
|
|
171
|
+
propertyTypes: {
|
|
173
172
|
type: 'array',
|
|
174
173
|
items: {
|
|
175
174
|
$ref: '#/components/schemas/PropertyTypeEnum',
|
|
176
175
|
},
|
|
176
|
+
minItems: 1,
|
|
177
177
|
uniqueItems: true,
|
|
178
178
|
},
|
|
179
179
|
listingType: {
|
|
@@ -201,37 +201,29 @@ export const ClientRequirementRequestSchema = {
|
|
|
201
201
|
type: 'integer',
|
|
202
202
|
format: 'int32',
|
|
203
203
|
},
|
|
204
|
-
|
|
204
|
+
totalAreaMin: {
|
|
205
205
|
type: 'number',
|
|
206
206
|
format: 'double',
|
|
207
207
|
},
|
|
208
|
-
|
|
208
|
+
totalAreaMax: {
|
|
209
209
|
type: 'number',
|
|
210
210
|
format: 'double',
|
|
211
211
|
},
|
|
212
|
-
|
|
212
|
+
livingAreaMin: {
|
|
213
213
|
type: 'number',
|
|
214
214
|
format: 'double',
|
|
215
215
|
},
|
|
216
|
-
|
|
216
|
+
livingAreaMax: {
|
|
217
217
|
type: 'number',
|
|
218
218
|
format: 'double',
|
|
219
219
|
},
|
|
220
|
-
|
|
220
|
+
location: {
|
|
221
221
|
$ref: '#/components/schemas/LocationRefRequest',
|
|
222
222
|
},
|
|
223
223
|
},
|
|
224
|
-
required: ['listingType', '
|
|
225
|
-
};
|
|
226
|
-
export const UpdatePriorityRequestSchema = {
|
|
227
|
-
type: 'object',
|
|
228
|
-
properties: {
|
|
229
|
-
priority: {
|
|
230
|
-
$ref: '#/components/schemas/PriorityEnum',
|
|
231
|
-
},
|
|
232
|
-
},
|
|
224
|
+
required: ['listingType', 'propertyTypes'],
|
|
233
225
|
};
|
|
234
|
-
export const
|
|
226
|
+
export const UpdateContactPreferencesRequestSchema = {
|
|
235
227
|
type: 'object',
|
|
236
228
|
properties: {
|
|
237
229
|
contactMethods: {
|
|
@@ -239,13 +231,12 @@ export const UpdateContactMethodsRequestSchema = {
|
|
|
239
231
|
items: {
|
|
240
232
|
$ref: '#/components/schemas/ItemsEnum2',
|
|
241
233
|
},
|
|
242
|
-
uniqueItems: true,
|
|
243
234
|
},
|
|
244
235
|
favoriteContactMethod: {
|
|
245
236
|
$ref: '#/components/schemas/ItemsEnum2',
|
|
246
237
|
},
|
|
247
238
|
},
|
|
248
|
-
required: ['contactMethods'
|
|
239
|
+
required: ['contactMethods'],
|
|
249
240
|
};
|
|
250
241
|
export const AddressRequestSchema = {
|
|
251
242
|
type: 'object',
|
|
@@ -283,24 +274,20 @@ export const CreateAgencyRequestSchema = {
|
|
|
283
274
|
properties: {
|
|
284
275
|
name: {
|
|
285
276
|
type: 'string',
|
|
286
|
-
minLength: 1,
|
|
287
277
|
},
|
|
288
278
|
email: {
|
|
289
279
|
type: 'string',
|
|
290
280
|
format: 'email',
|
|
291
|
-
minLength: 1,
|
|
292
281
|
},
|
|
293
282
|
seats: {
|
|
294
283
|
type: 'integer',
|
|
295
284
|
format: 'int32',
|
|
296
285
|
},
|
|
297
|
-
|
|
286
|
+
subdomain: {
|
|
298
287
|
type: 'string',
|
|
299
|
-
minLength: 1,
|
|
300
288
|
},
|
|
301
289
|
phone: {
|
|
302
290
|
type: 'string',
|
|
303
|
-
minLength: 1,
|
|
304
291
|
},
|
|
305
292
|
address: {
|
|
306
293
|
$ref: '#/components/schemas/AddressRequest',
|
|
@@ -316,7 +303,7 @@ export const CreateAgencyRequestSchema = {
|
|
|
316
303
|
'name',
|
|
317
304
|
'phone',
|
|
318
305
|
'seats',
|
|
319
|
-
'
|
|
306
|
+
'subdomain',
|
|
320
307
|
'yearSince',
|
|
321
308
|
],
|
|
322
309
|
};
|
|
@@ -378,7 +365,7 @@ export const IdResponseIntegerSchema = {
|
|
|
378
365
|
},
|
|
379
366
|
required: ['id'],
|
|
380
367
|
};
|
|
381
|
-
export const
|
|
368
|
+
export const CaptureLeadRequestSchema = {
|
|
382
369
|
type: 'object',
|
|
383
370
|
properties: {
|
|
384
371
|
contactInfo: {
|
|
@@ -389,49 +376,60 @@ export const CreateLeadRequestSchema = {
|
|
|
389
376
|
maxLength: 500,
|
|
390
377
|
minLength: 0,
|
|
391
378
|
},
|
|
392
|
-
|
|
379
|
+
sourceLink: {
|
|
393
380
|
type: 'string',
|
|
394
381
|
},
|
|
395
382
|
},
|
|
396
383
|
required: ['contactInfo'],
|
|
397
384
|
};
|
|
398
|
-
export const
|
|
385
|
+
export const LeadIdSchema = {
|
|
399
386
|
type: 'object',
|
|
400
387
|
properties: {
|
|
401
|
-
|
|
388
|
+
value: {
|
|
402
389
|
type: 'integer',
|
|
403
390
|
format: 'int64',
|
|
404
391
|
},
|
|
405
392
|
},
|
|
406
|
-
required: ['id'],
|
|
407
393
|
};
|
|
408
|
-
export const
|
|
394
|
+
export const RecordOutcomeRequestSchema = {
|
|
409
395
|
type: 'object',
|
|
410
396
|
properties: {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
format: 'email',
|
|
397
|
+
outcome: {
|
|
398
|
+
$ref: '#/components/schemas/OutcomeEnum',
|
|
414
399
|
},
|
|
415
|
-
|
|
416
|
-
type: '
|
|
417
|
-
format: 'int32',
|
|
400
|
+
reason: {
|
|
401
|
+
type: 'string',
|
|
418
402
|
},
|
|
419
403
|
},
|
|
420
|
-
required: ['
|
|
404
|
+
required: ['outcome'],
|
|
421
405
|
};
|
|
422
|
-
export const
|
|
406
|
+
export const BulkRecruitmentRequestSchema = {
|
|
423
407
|
type: 'object',
|
|
424
408
|
properties: {
|
|
425
409
|
emails: {
|
|
426
410
|
type: 'array',
|
|
427
411
|
items: {
|
|
428
|
-
$ref: '#/components/schemas/
|
|
412
|
+
$ref: '#/components/schemas/RecruitmentRequest',
|
|
429
413
|
},
|
|
430
414
|
minItems: 1,
|
|
431
415
|
},
|
|
432
416
|
},
|
|
433
417
|
required: ['emails'],
|
|
434
418
|
};
|
|
419
|
+
export const RecruitmentRequestSchema = {
|
|
420
|
+
type: 'object',
|
|
421
|
+
properties: {
|
|
422
|
+
email: {
|
|
423
|
+
type: 'string',
|
|
424
|
+
format: 'email',
|
|
425
|
+
},
|
|
426
|
+
roleId: {
|
|
427
|
+
type: 'integer',
|
|
428
|
+
format: 'int32',
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
required: ['email', 'roleId'],
|
|
432
|
+
};
|
|
435
433
|
export const AuthRequestSchema = {
|
|
436
434
|
type: 'object',
|
|
437
435
|
properties: {
|
|
@@ -466,7 +464,7 @@ export const AgencyPrincipalDtoSchema = {
|
|
|
466
464
|
},
|
|
467
465
|
},
|
|
468
466
|
};
|
|
469
|
-
export const
|
|
467
|
+
export const OnboardClientRequestSchema = {
|
|
470
468
|
type: 'object',
|
|
471
469
|
properties: {
|
|
472
470
|
contactInfo: {
|
|
@@ -480,7 +478,6 @@ export const CreateClientRequestSchema = {
|
|
|
480
478
|
items: {
|
|
481
479
|
$ref: '#/components/schemas/ItemsEnum2',
|
|
482
480
|
},
|
|
483
|
-
minItems: 1,
|
|
484
481
|
uniqueItems: true,
|
|
485
482
|
},
|
|
486
483
|
favoriteContactMethod: {
|
|
@@ -489,8 +486,30 @@ export const CreateClientRequestSchema = {
|
|
|
489
486
|
priority: {
|
|
490
487
|
$ref: '#/components/schemas/PriorityEnum',
|
|
491
488
|
},
|
|
489
|
+
convertedFromLeadId: {
|
|
490
|
+
type: 'integer',
|
|
491
|
+
format: 'int64',
|
|
492
|
+
},
|
|
493
|
+
},
|
|
494
|
+
required: ['contactInfo', 'contactMethods'],
|
|
495
|
+
};
|
|
496
|
+
export const ClientIdSchema = {
|
|
497
|
+
type: 'object',
|
|
498
|
+
properties: {
|
|
499
|
+
value: {
|
|
500
|
+
type: 'integer',
|
|
501
|
+
format: 'int64',
|
|
502
|
+
},
|
|
503
|
+
},
|
|
504
|
+
};
|
|
505
|
+
export const InterestIdSchema = {
|
|
506
|
+
type: 'object',
|
|
507
|
+
properties: {
|
|
508
|
+
value: {
|
|
509
|
+
type: 'integer',
|
|
510
|
+
format: 'int64',
|
|
511
|
+
},
|
|
492
512
|
},
|
|
493
|
-
required: ['contactInfo', 'contactMethods', 'favoriteContactMethod'],
|
|
494
513
|
};
|
|
495
514
|
export const IdResponseUUIDSchema = {
|
|
496
515
|
type: 'object',
|
|
@@ -586,7 +605,7 @@ export const OrganizationSummaryViewResponseSchema = {
|
|
|
586
605
|
agencyName: {
|
|
587
606
|
type: 'string',
|
|
588
607
|
},
|
|
589
|
-
|
|
608
|
+
subdomain: {
|
|
590
609
|
type: 'string',
|
|
591
610
|
},
|
|
592
611
|
roleId: {
|
|
@@ -607,7 +626,7 @@ export const OrganizationSummaryViewResponseSchema = {
|
|
|
607
626
|
},
|
|
608
627
|
},
|
|
609
628
|
status: {
|
|
610
|
-
$ref: '#/components/schemas/
|
|
629
|
+
$ref: '#/components/schemas/SchemaEnum',
|
|
611
630
|
},
|
|
612
631
|
},
|
|
613
632
|
required: [
|
|
@@ -618,7 +637,7 @@ export const OrganizationSummaryViewResponseSchema = {
|
|
|
618
637
|
'permissions',
|
|
619
638
|
'roleName',
|
|
620
639
|
'status',
|
|
621
|
-
'
|
|
640
|
+
'subdomain',
|
|
622
641
|
],
|
|
623
642
|
};
|
|
624
643
|
export const UserContextViewResponseSchema = {
|
|
@@ -708,6 +727,36 @@ export const RoleResponseSchema = {
|
|
|
708
727
|
},
|
|
709
728
|
required: ['description', 'id', 'name', 'permissions'],
|
|
710
729
|
};
|
|
730
|
+
export const GroupedPermissionsResponseSchema = {
|
|
731
|
+
type: 'object',
|
|
732
|
+
properties: {
|
|
733
|
+
group: {
|
|
734
|
+
$ref: '#/components/schemas/GroupEnum',
|
|
735
|
+
},
|
|
736
|
+
permissions: {
|
|
737
|
+
type: 'array',
|
|
738
|
+
items: {
|
|
739
|
+
$ref: '#/components/schemas/PermissionResponse',
|
|
740
|
+
},
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
required: ['group', 'permissions'],
|
|
744
|
+
};
|
|
745
|
+
export const PermissionResponseSchema = {
|
|
746
|
+
type: 'object',
|
|
747
|
+
properties: {
|
|
748
|
+
permission: {
|
|
749
|
+
$ref: '#/components/schemas/ItemsEnum',
|
|
750
|
+
},
|
|
751
|
+
implied: {
|
|
752
|
+
type: 'array',
|
|
753
|
+
items: {
|
|
754
|
+
$ref: '#/components/schemas/ItemsEnum',
|
|
755
|
+
},
|
|
756
|
+
},
|
|
757
|
+
},
|
|
758
|
+
required: ['implied', 'permission'],
|
|
759
|
+
};
|
|
711
760
|
export const InvitationDetailsResponseSchema = {
|
|
712
761
|
type: 'object',
|
|
713
762
|
properties: {
|
|
@@ -753,7 +802,7 @@ export const AgencySummaryResponseSchema = {
|
|
|
753
802
|
seats: {
|
|
754
803
|
type: 'string',
|
|
755
804
|
},
|
|
756
|
-
|
|
805
|
+
subdomain: {
|
|
757
806
|
type: 'string',
|
|
758
807
|
},
|
|
759
808
|
phone: {
|
|
@@ -762,11 +811,11 @@ export const AgencySummaryResponseSchema = {
|
|
|
762
811
|
website: {
|
|
763
812
|
type: 'string',
|
|
764
813
|
},
|
|
765
|
-
|
|
814
|
+
establishedYear: {
|
|
766
815
|
type: 'string',
|
|
767
816
|
},
|
|
768
817
|
status: {
|
|
769
|
-
$ref: '#/components/schemas/
|
|
818
|
+
$ref: '#/components/schemas/SchemaEnum',
|
|
770
819
|
},
|
|
771
820
|
logo: {
|
|
772
821
|
type: 'string',
|
|
@@ -774,14 +823,14 @@ export const AgencySummaryResponseSchema = {
|
|
|
774
823
|
},
|
|
775
824
|
required: [
|
|
776
825
|
'email',
|
|
826
|
+
'establishedYear',
|
|
777
827
|
'id',
|
|
778
828
|
'name',
|
|
779
829
|
'owner',
|
|
780
830
|
'phone',
|
|
781
831
|
'seats',
|
|
782
832
|
'status',
|
|
783
|
-
'
|
|
784
|
-
'yearSince',
|
|
833
|
+
'subdomain',
|
|
785
834
|
],
|
|
786
835
|
};
|
|
787
836
|
export const PagedModelAgencySummaryResponseSchema = {
|
|
@@ -798,36 +847,6 @@ export const PagedModelAgencySummaryResponseSchema = {
|
|
|
798
847
|
},
|
|
799
848
|
},
|
|
800
849
|
};
|
|
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',
|
|
811
|
-
},
|
|
812
|
-
},
|
|
813
|
-
},
|
|
814
|
-
required: ['group', 'permissions'],
|
|
815
|
-
};
|
|
816
|
-
export const PermissionResponseSchema = {
|
|
817
|
-
type: 'object',
|
|
818
|
-
properties: {
|
|
819
|
-
permission: {
|
|
820
|
-
$ref: '#/components/schemas/ItemsEnum',
|
|
821
|
-
},
|
|
822
|
-
implied: {
|
|
823
|
-
type: 'array',
|
|
824
|
-
items: {
|
|
825
|
-
$ref: '#/components/schemas/ItemsEnum',
|
|
826
|
-
},
|
|
827
|
-
},
|
|
828
|
-
},
|
|
829
|
-
required: ['implied', 'permission'],
|
|
830
|
-
};
|
|
831
850
|
export const MemberViewResponseSchema = {
|
|
832
851
|
type: 'object',
|
|
833
852
|
properties: {
|
|
@@ -931,7 +950,7 @@ export const IntentResponseSchema = {
|
|
|
931
950
|
},
|
|
932
951
|
required: ['clientType', 'id', 'listingType', 'propertyType'],
|
|
933
952
|
};
|
|
934
|
-
export const
|
|
953
|
+
export const LeadGridResponseSchema = {
|
|
935
954
|
type: 'object',
|
|
936
955
|
properties: {
|
|
937
956
|
id: {
|
|
@@ -947,7 +966,7 @@ export const LeadProjectionResponseSchema = {
|
|
|
947
966
|
format: 'uuid',
|
|
948
967
|
},
|
|
949
968
|
status: {
|
|
950
|
-
$ref: '#/components/schemas/
|
|
969
|
+
$ref: '#/components/schemas/SchemaEnum2',
|
|
951
970
|
},
|
|
952
971
|
contactFullName: {
|
|
953
972
|
type: 'string',
|
|
@@ -992,13 +1011,13 @@ export const LeadProjectionResponseSchema = {
|
|
|
992
1011
|
'status',
|
|
993
1012
|
],
|
|
994
1013
|
};
|
|
995
|
-
export const
|
|
1014
|
+
export const PagedModelLeadGridResponseSchema = {
|
|
996
1015
|
type: 'object',
|
|
997
1016
|
properties: {
|
|
998
1017
|
content: {
|
|
999
1018
|
type: 'array',
|
|
1000
1019
|
items: {
|
|
1001
|
-
$ref: '#/components/schemas/
|
|
1020
|
+
$ref: '#/components/schemas/LeadGridResponse',
|
|
1002
1021
|
},
|
|
1003
1022
|
},
|
|
1004
1023
|
page: {
|
|
@@ -1051,7 +1070,7 @@ export const PagedModelInvitationViewResponseSchema = {
|
|
|
1051
1070
|
},
|
|
1052
1071
|
},
|
|
1053
1072
|
};
|
|
1054
|
-
export const
|
|
1073
|
+
export const ClientGridResponseSchema = {
|
|
1055
1074
|
type: 'object',
|
|
1056
1075
|
properties: {
|
|
1057
1076
|
id: {
|
|
@@ -1107,18 +1126,6 @@ export const ClientProjectionResponseSchema = {
|
|
|
1107
1126
|
priority: {
|
|
1108
1127
|
$ref: '#/components/schemas/PriorityEnum',
|
|
1109
1128
|
},
|
|
1110
|
-
requirements: {
|
|
1111
|
-
type: 'array',
|
|
1112
|
-
items: {
|
|
1113
|
-
$ref: '#/components/schemas/RequirementResponse',
|
|
1114
|
-
},
|
|
1115
|
-
},
|
|
1116
|
-
properties: {
|
|
1117
|
-
type: 'array',
|
|
1118
|
-
items: {
|
|
1119
|
-
$ref: '#/components/schemas/PropertyResponse',
|
|
1120
|
-
},
|
|
1121
|
-
},
|
|
1122
1129
|
},
|
|
1123
1130
|
required: [
|
|
1124
1131
|
'contactMethods',
|
|
@@ -1129,13 +1136,13 @@ export const ClientProjectionResponseSchema = {
|
|
|
1129
1136
|
'isSearching',
|
|
1130
1137
|
],
|
|
1131
1138
|
};
|
|
1132
|
-
export const
|
|
1139
|
+
export const PagedModelClientGridResponseSchema = {
|
|
1133
1140
|
type: 'object',
|
|
1134
1141
|
properties: {
|
|
1135
1142
|
content: {
|
|
1136
1143
|
type: 'array',
|
|
1137
1144
|
items: {
|
|
1138
|
-
$ref: '#/components/schemas/
|
|
1145
|
+
$ref: '#/components/schemas/ClientGridResponse',
|
|
1139
1146
|
},
|
|
1140
1147
|
},
|
|
1141
1148
|
page: {
|
|
@@ -1143,92 +1150,6 @@ export const PagedModelClientProjectionResponseSchema = {
|
|
|
1143
1150
|
},
|
|
1144
1151
|
},
|
|
1145
1152
|
};
|
|
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: {
|
|
1167
|
-
type: 'array',
|
|
1168
|
-
items: {
|
|
1169
|
-
$ref: '#/components/schemas/PropertyTypeEnum',
|
|
1170
|
-
},
|
|
1171
|
-
},
|
|
1172
|
-
listingType: {
|
|
1173
|
-
$ref: '#/components/schemas/ListingTypeEnum',
|
|
1174
|
-
},
|
|
1175
|
-
priceMin: {
|
|
1176
|
-
type: 'number',
|
|
1177
|
-
},
|
|
1178
|
-
priceMax: {
|
|
1179
|
-
type: 'number',
|
|
1180
|
-
},
|
|
1181
|
-
bedroomsMin: {
|
|
1182
|
-
type: 'integer',
|
|
1183
|
-
format: 'int32',
|
|
1184
|
-
},
|
|
1185
|
-
bedroomsMax: {
|
|
1186
|
-
type: 'integer',
|
|
1187
|
-
format: 'int32',
|
|
1188
|
-
},
|
|
1189
|
-
bathroomsMin: {
|
|
1190
|
-
type: 'integer',
|
|
1191
|
-
format: 'int32',
|
|
1192
|
-
},
|
|
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: {
|
|
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
|
-
},
|
|
1229
|
-
},
|
|
1230
|
-
required: ['id', 'listingType', 'propertyType'],
|
|
1231
|
-
};
|
|
1232
1153
|
export const AddressViewResponseSchema = {
|
|
1233
1154
|
type: 'object',
|
|
1234
1155
|
properties: {
|
|
@@ -1263,7 +1184,7 @@ export const AgencyProfileResponseSchema = {
|
|
|
1263
1184
|
type: 'integer',
|
|
1264
1185
|
format: 'int32',
|
|
1265
1186
|
},
|
|
1266
|
-
|
|
1187
|
+
subdomain: {
|
|
1267
1188
|
type: 'string',
|
|
1268
1189
|
},
|
|
1269
1190
|
phone: {
|
|
@@ -1272,7 +1193,7 @@ export const AgencyProfileResponseSchema = {
|
|
|
1272
1193
|
address: {
|
|
1273
1194
|
$ref: '#/components/schemas/AddressViewResponse',
|
|
1274
1195
|
},
|
|
1275
|
-
|
|
1196
|
+
establishedYear: {
|
|
1276
1197
|
type: 'integer',
|
|
1277
1198
|
format: 'int32',
|
|
1278
1199
|
},
|
|
@@ -1280,14 +1201,18 @@ export const AgencyProfileResponseSchema = {
|
|
|
1280
1201
|
required: [
|
|
1281
1202
|
'address',
|
|
1282
1203
|
'email',
|
|
1204
|
+
'establishedYear',
|
|
1283
1205
|
'name',
|
|
1284
1206
|
'phone',
|
|
1285
1207
|
'seats',
|
|
1286
|
-
'
|
|
1287
|
-
'yearSince',
|
|
1208
|
+
'subdomain',
|
|
1288
1209
|
],
|
|
1289
1210
|
};
|
|
1290
1211
|
export const SchemaEnumSchema = {
|
|
1212
|
+
type: 'string',
|
|
1213
|
+
enum: ['NEW', 'ACTIVE', 'PAYMENT_FAILED', 'INACTIVE'],
|
|
1214
|
+
};
|
|
1215
|
+
export const SchemaEnum2Schema = {
|
|
1291
1216
|
type: 'string',
|
|
1292
1217
|
enum: [
|
|
1293
1218
|
'NEW',
|
|
@@ -1298,10 +1223,6 @@ export const SchemaEnumSchema = {
|
|
|
1298
1223
|
'LOST',
|
|
1299
1224
|
],
|
|
1300
1225
|
};
|
|
1301
|
-
export const SchemaEnum2Schema = {
|
|
1302
|
-
type: 'string',
|
|
1303
|
-
enum: ['NEW', 'ACTIVE', 'PAYMENT_FAILED', 'INACTIVE'],
|
|
1304
|
-
};
|
|
1305
1226
|
export const ItemsEnumSchema = {
|
|
1306
1227
|
type: 'string',
|
|
1307
1228
|
enum: [
|
|
@@ -1316,6 +1237,11 @@ export const ItemsEnumSchema = {
|
|
|
1316
1237
|
'LEAD_WRITE',
|
|
1317
1238
|
'LEAD_READ_ALL',
|
|
1318
1239
|
'LEAD_WRITE_ALL',
|
|
1240
|
+
'CLIENT_READ',
|
|
1241
|
+
'CLIENT_WRITE',
|
|
1242
|
+
'CLIENT_READ_ALL',
|
|
1243
|
+
'CLIENT_WRITE_ALL',
|
|
1244
|
+
'PROPERTY_READ_ALL',
|
|
1319
1245
|
],
|
|
1320
1246
|
};
|
|
1321
1247
|
export const ClientTypeEnumSchema = {
|
|
@@ -1367,17 +1293,29 @@ export const TypeEnumSchema = {
|
|
|
1367
1293
|
type: 'string',
|
|
1368
1294
|
enum: ['FACEBOOK', 'YOUTUBE', 'INSTAGRAM', 'TIKTOK', 'LINKEDIN'],
|
|
1369
1295
|
};
|
|
1296
|
+
export const OutcomeEnumSchema = {
|
|
1297
|
+
type: 'string',
|
|
1298
|
+
enum: ['CONVERTED', 'LOST', 'DISQUALIFIED'],
|
|
1299
|
+
};
|
|
1370
1300
|
export const TypeEnum2Schema = {
|
|
1371
1301
|
type: 'string',
|
|
1372
1302
|
enum: ['JPEG', 'JPG', 'PNG', 'WEBP'],
|
|
1373
1303
|
};
|
|
1374
|
-
export const
|
|
1304
|
+
export const GroupEnumSchema = {
|
|
1375
1305
|
type: 'string',
|
|
1376
|
-
enum: [
|
|
1306
|
+
enum: [
|
|
1307
|
+
'AGENCY',
|
|
1308
|
+
'INVITATION',
|
|
1309
|
+
'ROLE',
|
|
1310
|
+
'MEMBER',
|
|
1311
|
+
'LEAD',
|
|
1312
|
+
'CLIENT',
|
|
1313
|
+
'PROPERTY',
|
|
1314
|
+
],
|
|
1377
1315
|
};
|
|
1378
|
-
export const
|
|
1316
|
+
export const StatusEnumSchema = {
|
|
1379
1317
|
type: 'string',
|
|
1380
|
-
enum: ['
|
|
1318
|
+
enum: ['PENDING', 'ACCEPTED', 'CANCELLED', 'EXPIRED'],
|
|
1381
1319
|
};
|
|
1382
1320
|
export const SourceTypeEnumSchema = {
|
|
1383
1321
|
type: 'string',
|