@homespot-sdk/core 0.0.336 → 0.0.338
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 +251 -95
- package/dist/rem/schemas.gen.d.ts.map +1 -1
- package/dist/rem/schemas.gen.js +367 -194
- package/dist/rem/schemas.gen.js.map +1 -1
- package/dist/rem/sdk.gen.d.ts +4 -1
- package/dist/rem/sdk.gen.d.ts.map +1 -1
- package/dist/rem/sdk.gen.js +15 -0
- package/dist/rem/sdk.gen.js.map +1 -1
- package/dist/rem/transformers.gen.d.ts.map +1 -1
- package/dist/rem/transformers.gen.js +8 -14
- package/dist/rem/transformers.gen.js.map +1 -1
- package/dist/rem/types.gen.d.ts +194 -53
- package/dist/rem/types.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.d.ts +2103 -1179
- package/dist/rem/zod.gen.d.ts.map +1 -1
- package/dist/rem/zod.gen.js +499 -167
- package/dist/rem/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/rem/schemas.gen.js
CHANGED
|
@@ -194,19 +194,15 @@ export const RolesRequestSchema = {
|
|
|
194
194
|
items: {
|
|
195
195
|
type: 'string',
|
|
196
196
|
enum: [
|
|
197
|
-
'
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
'
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
'
|
|
206
|
-
'CONTACT_WRITE',
|
|
207
|
-
'CONTACT_READ_ALL',
|
|
208
|
-
'CONTACT_WRITE_ALL',
|
|
209
|
-
'PROPERTY_READ_ALL',
|
|
197
|
+
'MANAGE_AGENCY',
|
|
198
|
+
'MANAGE_ROLE',
|
|
199
|
+
'MANAGE_MEMBER',
|
|
200
|
+
'CREATE_DELETE_MEMBER',
|
|
201
|
+
'CREATE_CONTACT',
|
|
202
|
+
'DELETE_CONTACT',
|
|
203
|
+
'MANAGE_CONTACT',
|
|
204
|
+
'MANAGE_ANY_CONTACT',
|
|
205
|
+
'ASSIGN_CONTACT',
|
|
210
206
|
],
|
|
211
207
|
},
|
|
212
208
|
},
|
|
@@ -1150,19 +1146,15 @@ export const AgencyPrincipalDtoSchema = {
|
|
|
1150
1146
|
items: {
|
|
1151
1147
|
type: 'string',
|
|
1152
1148
|
enum: [
|
|
1153
|
-
'
|
|
1154
|
-
'
|
|
1155
|
-
'
|
|
1156
|
-
'
|
|
1157
|
-
'
|
|
1158
|
-
'
|
|
1159
|
-
'
|
|
1160
|
-
'
|
|
1161
|
-
'
|
|
1162
|
-
'CONTACT_WRITE',
|
|
1163
|
-
'CONTACT_READ_ALL',
|
|
1164
|
-
'CONTACT_WRITE_ALL',
|
|
1165
|
-
'PROPERTY_READ_ALL',
|
|
1149
|
+
'MANAGE_AGENCY',
|
|
1150
|
+
'MANAGE_ROLE',
|
|
1151
|
+
'MANAGE_MEMBER',
|
|
1152
|
+
'CREATE_DELETE_MEMBER',
|
|
1153
|
+
'CREATE_CONTACT',
|
|
1154
|
+
'DELETE_CONTACT',
|
|
1155
|
+
'MANAGE_CONTACT',
|
|
1156
|
+
'MANAGE_ANY_CONTACT',
|
|
1157
|
+
'ASSIGN_CONTACT',
|
|
1166
1158
|
],
|
|
1167
1159
|
},
|
|
1168
1160
|
uniqueItems: true,
|
|
@@ -1599,19 +1591,15 @@ export const OrganizationSummaryViewResponseSchema = {
|
|
|
1599
1591
|
items: {
|
|
1600
1592
|
type: 'string',
|
|
1601
1593
|
enum: [
|
|
1602
|
-
'
|
|
1603
|
-
'
|
|
1604
|
-
'
|
|
1605
|
-
'
|
|
1606
|
-
'
|
|
1607
|
-
'
|
|
1608
|
-
'
|
|
1609
|
-
'
|
|
1610
|
-
'
|
|
1611
|
-
'CONTACT_WRITE',
|
|
1612
|
-
'CONTACT_READ_ALL',
|
|
1613
|
-
'CONTACT_WRITE_ALL',
|
|
1614
|
-
'PROPERTY_READ_ALL',
|
|
1594
|
+
'MANAGE_AGENCY',
|
|
1595
|
+
'MANAGE_ROLE',
|
|
1596
|
+
'MANAGE_MEMBER',
|
|
1597
|
+
'CREATE_DELETE_MEMBER',
|
|
1598
|
+
'CREATE_CONTACT',
|
|
1599
|
+
'DELETE_CONTACT',
|
|
1600
|
+
'MANAGE_CONTACT',
|
|
1601
|
+
'MANAGE_ANY_CONTACT',
|
|
1602
|
+
'ASSIGN_CONTACT',
|
|
1615
1603
|
],
|
|
1616
1604
|
},
|
|
1617
1605
|
},
|
|
@@ -2309,19 +2297,15 @@ export const RoleResponseSchema = {
|
|
|
2309
2297
|
items: {
|
|
2310
2298
|
type: 'string',
|
|
2311
2299
|
enum: [
|
|
2312
|
-
'
|
|
2313
|
-
'
|
|
2314
|
-
'
|
|
2315
|
-
'
|
|
2316
|
-
'
|
|
2317
|
-
'
|
|
2318
|
-
'
|
|
2319
|
-
'
|
|
2320
|
-
'
|
|
2321
|
-
'CONTACT_WRITE',
|
|
2322
|
-
'CONTACT_READ_ALL',
|
|
2323
|
-
'CONTACT_WRITE_ALL',
|
|
2324
|
-
'PROPERTY_READ_ALL',
|
|
2300
|
+
'MANAGE_AGENCY',
|
|
2301
|
+
'MANAGE_ROLE',
|
|
2302
|
+
'MANAGE_MEMBER',
|
|
2303
|
+
'CREATE_DELETE_MEMBER',
|
|
2304
|
+
'CREATE_CONTACT',
|
|
2305
|
+
'DELETE_CONTACT',
|
|
2306
|
+
'MANAGE_CONTACT',
|
|
2307
|
+
'MANAGE_ANY_CONTACT',
|
|
2308
|
+
'ASSIGN_CONTACT',
|
|
2325
2309
|
],
|
|
2326
2310
|
},
|
|
2327
2311
|
},
|
|
@@ -2693,14 +2677,7 @@ export const GroupedPermissionsResponseSchema = {
|
|
|
2693
2677
|
properties: {
|
|
2694
2678
|
group: {
|
|
2695
2679
|
type: 'string',
|
|
2696
|
-
enum: [
|
|
2697
|
-
'AGENCY',
|
|
2698
|
-
'INVITATION',
|
|
2699
|
-
'ROLE',
|
|
2700
|
-
'MEMBER',
|
|
2701
|
-
'CONTACT',
|
|
2702
|
-
'PROPERTY',
|
|
2703
|
-
],
|
|
2680
|
+
enum: ['AGENCY', 'ROLE', 'MEMBER', 'CONTACT'],
|
|
2704
2681
|
},
|
|
2705
2682
|
permissions: {
|
|
2706
2683
|
type: 'array',
|
|
@@ -2717,44 +2694,19 @@ export const PermissionResponseSchema = {
|
|
|
2717
2694
|
permission: {
|
|
2718
2695
|
type: 'string',
|
|
2719
2696
|
enum: [
|
|
2720
|
-
'
|
|
2721
|
-
'
|
|
2722
|
-
'
|
|
2723
|
-
'
|
|
2724
|
-
'
|
|
2725
|
-
'
|
|
2726
|
-
'
|
|
2727
|
-
'
|
|
2728
|
-
'
|
|
2729
|
-
'CONTACT_WRITE',
|
|
2730
|
-
'CONTACT_READ_ALL',
|
|
2731
|
-
'CONTACT_WRITE_ALL',
|
|
2732
|
-
'PROPERTY_READ_ALL',
|
|
2697
|
+
'MANAGE_AGENCY',
|
|
2698
|
+
'MANAGE_ROLE',
|
|
2699
|
+
'MANAGE_MEMBER',
|
|
2700
|
+
'CREATE_DELETE_MEMBER',
|
|
2701
|
+
'CREATE_CONTACT',
|
|
2702
|
+
'DELETE_CONTACT',
|
|
2703
|
+
'MANAGE_CONTACT',
|
|
2704
|
+
'MANAGE_ANY_CONTACT',
|
|
2705
|
+
'ASSIGN_CONTACT',
|
|
2733
2706
|
],
|
|
2734
2707
|
},
|
|
2735
|
-
implied: {
|
|
2736
|
-
type: 'array',
|
|
2737
|
-
items: {
|
|
2738
|
-
type: 'string',
|
|
2739
|
-
enum: [
|
|
2740
|
-
'AGENCY_WRITE',
|
|
2741
|
-
'INVITATION_READ',
|
|
2742
|
-
'INVITATION_WRITE',
|
|
2743
|
-
'ROLE_READ',
|
|
2744
|
-
'ROLE_WRITE',
|
|
2745
|
-
'MEMBER_READ',
|
|
2746
|
-
'MEMBER_WRITE',
|
|
2747
|
-
'MEETING_READ_ALL',
|
|
2748
|
-
'CONTACT_READ',
|
|
2749
|
-
'CONTACT_WRITE',
|
|
2750
|
-
'CONTACT_READ_ALL',
|
|
2751
|
-
'CONTACT_WRITE_ALL',
|
|
2752
|
-
'PROPERTY_READ_ALL',
|
|
2753
|
-
],
|
|
2754
|
-
},
|
|
2755
|
-
},
|
|
2756
2708
|
},
|
|
2757
|
-
required: ['
|
|
2709
|
+
required: ['permission'],
|
|
2758
2710
|
};
|
|
2759
2711
|
export const ListingContactResponseUUIDSchema = {
|
|
2760
2712
|
type: 'object',
|
|
@@ -3336,30 +3288,80 @@ export const PropertyPageResponseSchema = {
|
|
|
3336
3288
|
'updatedAt',
|
|
3337
3289
|
],
|
|
3338
3290
|
};
|
|
3339
|
-
export const
|
|
3340
|
-
|
|
3291
|
+
export const ContactPersonalDetailsSchema = {
|
|
3292
|
+
discriminator: {
|
|
3293
|
+
propertyName: 'status',
|
|
3294
|
+
mapping: {
|
|
3295
|
+
VISIBLE: '#/components/schemas/ContactPersonalDetailsVisible',
|
|
3296
|
+
RESTRICTED: '#/components/schemas/ContactPersonalDetailsRestricted',
|
|
3297
|
+
},
|
|
3298
|
+
},
|
|
3299
|
+
required: ['status'],
|
|
3300
|
+
};
|
|
3301
|
+
export const ContactPersonalDetailsRestrictedSchema = {
|
|
3341
3302
|
properties: {
|
|
3342
|
-
|
|
3343
|
-
type: '
|
|
3344
|
-
|
|
3303
|
+
requires: {
|
|
3304
|
+
type: 'array',
|
|
3305
|
+
items: {
|
|
3306
|
+
type: 'string',
|
|
3307
|
+
enum: [
|
|
3308
|
+
'MANAGE_AGENCY',
|
|
3309
|
+
'MANAGE_ROLE',
|
|
3310
|
+
'MANAGE_MEMBER',
|
|
3311
|
+
'CREATE_DELETE_MEMBER',
|
|
3312
|
+
'CREATE_CONTACT',
|
|
3313
|
+
'DELETE_CONTACT',
|
|
3314
|
+
'MANAGE_CONTACT',
|
|
3315
|
+
'MANAGE_ANY_CONTACT',
|
|
3316
|
+
'ASSIGN_CONTACT',
|
|
3317
|
+
],
|
|
3318
|
+
},
|
|
3319
|
+
uniqueItems: true,
|
|
3345
3320
|
},
|
|
3346
|
-
|
|
3321
|
+
status: {
|
|
3347
3322
|
type: 'string',
|
|
3323
|
+
enum: ['RESTRICTED'],
|
|
3348
3324
|
},
|
|
3349
|
-
|
|
3325
|
+
},
|
|
3326
|
+
required: ['status'],
|
|
3327
|
+
};
|
|
3328
|
+
export const ContactPersonalDetailsVisibleSchema = {
|
|
3329
|
+
properties: {
|
|
3330
|
+
phoneNumber: {
|
|
3350
3331
|
type: 'string',
|
|
3351
3332
|
},
|
|
3352
|
-
|
|
3333
|
+
fullName: {
|
|
3353
3334
|
type: 'string',
|
|
3354
3335
|
},
|
|
3355
3336
|
email: {
|
|
3356
3337
|
type: 'string',
|
|
3357
3338
|
},
|
|
3358
|
-
|
|
3339
|
+
status: {
|
|
3359
3340
|
type: 'string',
|
|
3341
|
+
enum: ['VISIBLE'],
|
|
3360
3342
|
},
|
|
3361
3343
|
},
|
|
3362
|
-
required: ['
|
|
3344
|
+
required: ['status'],
|
|
3345
|
+
};
|
|
3346
|
+
export const ListingOwnerContactResponseSchema = {
|
|
3347
|
+
type: 'object',
|
|
3348
|
+
properties: {
|
|
3349
|
+
contactId: {
|
|
3350
|
+
type: 'integer',
|
|
3351
|
+
format: 'int64',
|
|
3352
|
+
},
|
|
3353
|
+
personalDetails: {
|
|
3354
|
+
oneOf: [
|
|
3355
|
+
{
|
|
3356
|
+
$ref: '#/components/schemas/ContactPersonalDetailsRestricted',
|
|
3357
|
+
},
|
|
3358
|
+
{
|
|
3359
|
+
$ref: '#/components/schemas/ContactPersonalDetailsVisible',
|
|
3360
|
+
},
|
|
3361
|
+
],
|
|
3362
|
+
},
|
|
3363
|
+
},
|
|
3364
|
+
required: ['contactId', 'personalDetails'],
|
|
3363
3365
|
};
|
|
3364
3366
|
export const AgentCommentedSchema = {
|
|
3365
3367
|
properties: {
|
|
@@ -3942,18 +3944,7 @@ export const AssignedToResponseSchema = {
|
|
|
3942
3944
|
},
|
|
3943
3945
|
required: ['email', 'firstName', 'lastName', 'memberId'],
|
|
3944
3946
|
};
|
|
3945
|
-
export const
|
|
3946
|
-
discriminator: {
|
|
3947
|
-
propertyName: 'status',
|
|
3948
|
-
},
|
|
3949
|
-
properties: {
|
|
3950
|
-
status: {
|
|
3951
|
-
type: 'string',
|
|
3952
|
-
},
|
|
3953
|
-
},
|
|
3954
|
-
required: ['status'],
|
|
3955
|
-
};
|
|
3956
|
-
export const ListingGridViewSchema = {
|
|
3947
|
+
export const ListingGridResponseSchema = {
|
|
3957
3948
|
type: 'object',
|
|
3958
3949
|
properties: {
|
|
3959
3950
|
externalPropertyId: {
|
|
@@ -3972,13 +3963,17 @@ export const ListingGridViewSchema = {
|
|
|
3972
3963
|
type: 'integer',
|
|
3973
3964
|
format: 'int64',
|
|
3974
3965
|
},
|
|
3975
|
-
|
|
3966
|
+
contactId: {
|
|
3967
|
+
type: 'integer',
|
|
3968
|
+
format: 'int64',
|
|
3969
|
+
},
|
|
3970
|
+
personalDetails: {
|
|
3976
3971
|
oneOf: [
|
|
3977
3972
|
{
|
|
3978
|
-
$ref: '#/components/schemas/
|
|
3973
|
+
$ref: '#/components/schemas/ContactPersonalDetailsRestricted',
|
|
3979
3974
|
},
|
|
3980
3975
|
{
|
|
3981
|
-
$ref: '#/components/schemas/
|
|
3976
|
+
$ref: '#/components/schemas/ContactPersonalDetailsVisible',
|
|
3982
3977
|
},
|
|
3983
3978
|
],
|
|
3984
3979
|
},
|
|
@@ -4078,14 +4073,28 @@ export const ListingGridViewSchema = {
|
|
|
4078
4073
|
format: 'date-time',
|
|
4079
4074
|
},
|
|
4080
4075
|
},
|
|
4076
|
+
required: [
|
|
4077
|
+
'agreementType',
|
|
4078
|
+
'contactId',
|
|
4079
|
+
'createdAt',
|
|
4080
|
+
'externalPropertyId',
|
|
4081
|
+
'featuredPhotos',
|
|
4082
|
+
'personalDetails',
|
|
4083
|
+
'platforms',
|
|
4084
|
+
'propertyId',
|
|
4085
|
+
'propertyState',
|
|
4086
|
+
'propertyType',
|
|
4087
|
+
'title',
|
|
4088
|
+
'updatedAt',
|
|
4089
|
+
],
|
|
4081
4090
|
};
|
|
4082
|
-
export const
|
|
4091
|
+
export const PagedModelListingGridResponseSchema = {
|
|
4083
4092
|
type: 'object',
|
|
4084
4093
|
properties: {
|
|
4085
4094
|
content: {
|
|
4086
4095
|
type: 'array',
|
|
4087
4096
|
items: {
|
|
4088
|
-
$ref: '#/components/schemas/
|
|
4097
|
+
$ref: '#/components/schemas/ListingGridResponse',
|
|
4089
4098
|
},
|
|
4090
4099
|
},
|
|
4091
4100
|
page: {
|
|
@@ -4118,62 +4127,6 @@ export const PlatformViewSchema = {
|
|
|
4118
4127
|
},
|
|
4119
4128
|
},
|
|
4120
4129
|
};
|
|
4121
|
-
export const RestrictedSchema = {
|
|
4122
|
-
allOf: [
|
|
4123
|
-
{
|
|
4124
|
-
$ref: '#/components/schemas/ContactView',
|
|
4125
|
-
},
|
|
4126
|
-
{
|
|
4127
|
-
type: 'object',
|
|
4128
|
-
properties: {
|
|
4129
|
-
requires: {
|
|
4130
|
-
type: 'array',
|
|
4131
|
-
items: {
|
|
4132
|
-
type: 'string',
|
|
4133
|
-
enum: [
|
|
4134
|
-
'AGENCY_WRITE',
|
|
4135
|
-
'INVITATION_READ',
|
|
4136
|
-
'INVITATION_WRITE',
|
|
4137
|
-
'ROLE_READ',
|
|
4138
|
-
'ROLE_WRITE',
|
|
4139
|
-
'MEMBER_READ',
|
|
4140
|
-
'MEMBER_WRITE',
|
|
4141
|
-
'MEETING_READ_ALL',
|
|
4142
|
-
'CONTACT_READ',
|
|
4143
|
-
'CONTACT_WRITE',
|
|
4144
|
-
'CONTACT_READ_ALL',
|
|
4145
|
-
'CONTACT_WRITE_ALL',
|
|
4146
|
-
'PROPERTY_READ_ALL',
|
|
4147
|
-
],
|
|
4148
|
-
},
|
|
4149
|
-
uniqueItems: true,
|
|
4150
|
-
},
|
|
4151
|
-
},
|
|
4152
|
-
},
|
|
4153
|
-
],
|
|
4154
|
-
};
|
|
4155
|
-
export const VisibleSchema = {
|
|
4156
|
-
allOf: [
|
|
4157
|
-
{
|
|
4158
|
-
$ref: '#/components/schemas/ContactView',
|
|
4159
|
-
},
|
|
4160
|
-
{
|
|
4161
|
-
type: 'object',
|
|
4162
|
-
properties: {
|
|
4163
|
-
id: {
|
|
4164
|
-
type: 'integer',
|
|
4165
|
-
format: 'int64',
|
|
4166
|
-
},
|
|
4167
|
-
phoneNumber: {
|
|
4168
|
-
type: 'string',
|
|
4169
|
-
},
|
|
4170
|
-
fullName: {
|
|
4171
|
-
type: 'string',
|
|
4172
|
-
},
|
|
4173
|
-
},
|
|
4174
|
-
},
|
|
4175
|
-
],
|
|
4176
|
-
};
|
|
4177
4130
|
export const GroupCountSchema = {
|
|
4178
4131
|
type: 'object',
|
|
4179
4132
|
properties: {
|
|
@@ -4236,6 +4189,172 @@ export const PagedModelInvitationViewResponseSchema = {
|
|
|
4236
4189
|
},
|
|
4237
4190
|
},
|
|
4238
4191
|
};
|
|
4192
|
+
export const AreaRangeSchema = {
|
|
4193
|
+
type: 'object',
|
|
4194
|
+
properties: {
|
|
4195
|
+
min: {
|
|
4196
|
+
type: 'number',
|
|
4197
|
+
format: 'double',
|
|
4198
|
+
},
|
|
4199
|
+
max: {
|
|
4200
|
+
type: 'number',
|
|
4201
|
+
format: 'double',
|
|
4202
|
+
},
|
|
4203
|
+
},
|
|
4204
|
+
};
|
|
4205
|
+
export const InterestGridResponseSchema = {
|
|
4206
|
+
type: 'object',
|
|
4207
|
+
properties: {
|
|
4208
|
+
interestId: {
|
|
4209
|
+
type: 'integer',
|
|
4210
|
+
format: 'int64',
|
|
4211
|
+
},
|
|
4212
|
+
contactId: {
|
|
4213
|
+
type: 'integer',
|
|
4214
|
+
format: 'int64',
|
|
4215
|
+
},
|
|
4216
|
+
personalDetails: {
|
|
4217
|
+
oneOf: [
|
|
4218
|
+
{
|
|
4219
|
+
$ref: '#/components/schemas/ContactPersonalDetailsRestricted',
|
|
4220
|
+
},
|
|
4221
|
+
{
|
|
4222
|
+
$ref: '#/components/schemas/ContactPersonalDetailsVisible',
|
|
4223
|
+
},
|
|
4224
|
+
],
|
|
4225
|
+
},
|
|
4226
|
+
assignedTo: {
|
|
4227
|
+
$ref: '#/components/schemas/AssignedToResponse',
|
|
4228
|
+
},
|
|
4229
|
+
createdBy: {
|
|
4230
|
+
type: 'string',
|
|
4231
|
+
format: 'uuid',
|
|
4232
|
+
},
|
|
4233
|
+
propertyTypes: {
|
|
4234
|
+
type: 'array',
|
|
4235
|
+
items: {
|
|
4236
|
+
type: 'string',
|
|
4237
|
+
enum: [
|
|
4238
|
+
'HOUSE',
|
|
4239
|
+
'TOWN_HOUSE',
|
|
4240
|
+
'COUNTRY_HOUSE',
|
|
4241
|
+
'VILLA',
|
|
4242
|
+
'COTTAGE',
|
|
4243
|
+
'APARTMENT',
|
|
4244
|
+
'DUPLEX',
|
|
4245
|
+
'TRIPLEX',
|
|
4246
|
+
'SEMI_BASEMENT',
|
|
4247
|
+
'ATTIC',
|
|
4248
|
+
'AGRICULTURAL_LAND',
|
|
4249
|
+
'RESIDENTIAL_LAND',
|
|
4250
|
+
'HOTEL_ROOM',
|
|
4251
|
+
'MOTEL_ROOM',
|
|
4252
|
+
'CO_LIVING_SPACE',
|
|
4253
|
+
'OFFICE',
|
|
4254
|
+
'COMMERCIAL_SPACE',
|
|
4255
|
+
'CO_WORKING_SPACE',
|
|
4256
|
+
'WAREHOUSE',
|
|
4257
|
+
'GARAGE',
|
|
4258
|
+
],
|
|
4259
|
+
},
|
|
4260
|
+
},
|
|
4261
|
+
listingType: {
|
|
4262
|
+
type: 'string',
|
|
4263
|
+
enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
|
|
4264
|
+
},
|
|
4265
|
+
priceRange: {
|
|
4266
|
+
$ref: '#/components/schemas/PriceRange',
|
|
4267
|
+
},
|
|
4268
|
+
bedrooms: {
|
|
4269
|
+
$ref: '#/components/schemas/RoomRange',
|
|
4270
|
+
},
|
|
4271
|
+
totalArea: {
|
|
4272
|
+
$ref: '#/components/schemas/AreaRange',
|
|
4273
|
+
},
|
|
4274
|
+
livingArea: {
|
|
4275
|
+
$ref: '#/components/schemas/AreaRange',
|
|
4276
|
+
},
|
|
4277
|
+
region: {
|
|
4278
|
+
$ref: '#/components/schemas/LocationResponse',
|
|
4279
|
+
},
|
|
4280
|
+
district: {
|
|
4281
|
+
$ref: '#/components/schemas/LocationResponse',
|
|
4282
|
+
},
|
|
4283
|
+
subdistrict: {
|
|
4284
|
+
$ref: '#/components/schemas/LocationResponse',
|
|
4285
|
+
},
|
|
4286
|
+
street: {
|
|
4287
|
+
$ref: '#/components/schemas/LocationResponse',
|
|
4288
|
+
},
|
|
4289
|
+
status: {
|
|
4290
|
+
type: 'string',
|
|
4291
|
+
enum: ['UNPUBLISHED', 'PUBLISHED', 'CLOSED'],
|
|
4292
|
+
},
|
|
4293
|
+
},
|
|
4294
|
+
required: [
|
|
4295
|
+
'createdBy',
|
|
4296
|
+
'interestId',
|
|
4297
|
+
'listingType',
|
|
4298
|
+
'personalDetails',
|
|
4299
|
+
'propertyTypes',
|
|
4300
|
+
'status',
|
|
4301
|
+
],
|
|
4302
|
+
};
|
|
4303
|
+
export const MoneySchema = {
|
|
4304
|
+
type: 'object',
|
|
4305
|
+
properties: {
|
|
4306
|
+
amount: {
|
|
4307
|
+
type: 'number',
|
|
4308
|
+
},
|
|
4309
|
+
negative: {
|
|
4310
|
+
type: 'boolean',
|
|
4311
|
+
},
|
|
4312
|
+
positive: {
|
|
4313
|
+
type: 'boolean',
|
|
4314
|
+
},
|
|
4315
|
+
zeroOrPositive: {
|
|
4316
|
+
type: 'boolean',
|
|
4317
|
+
},
|
|
4318
|
+
},
|
|
4319
|
+
};
|
|
4320
|
+
export const PagedModelInterestGridResponseSchema = {
|
|
4321
|
+
type: 'object',
|
|
4322
|
+
properties: {
|
|
4323
|
+
content: {
|
|
4324
|
+
type: 'array',
|
|
4325
|
+
items: {
|
|
4326
|
+
$ref: '#/components/schemas/InterestGridResponse',
|
|
4327
|
+
},
|
|
4328
|
+
},
|
|
4329
|
+
page: {
|
|
4330
|
+
$ref: '#/components/schemas/PageMetadata',
|
|
4331
|
+
},
|
|
4332
|
+
},
|
|
4333
|
+
};
|
|
4334
|
+
export const PriceRangeSchema = {
|
|
4335
|
+
type: 'object',
|
|
4336
|
+
properties: {
|
|
4337
|
+
min: {
|
|
4338
|
+
$ref: '#/components/schemas/Money',
|
|
4339
|
+
},
|
|
4340
|
+
max: {
|
|
4341
|
+
$ref: '#/components/schemas/Money',
|
|
4342
|
+
},
|
|
4343
|
+
},
|
|
4344
|
+
};
|
|
4345
|
+
export const RoomRangeSchema = {
|
|
4346
|
+
type: 'object',
|
|
4347
|
+
properties: {
|
|
4348
|
+
min: {
|
|
4349
|
+
type: 'integer',
|
|
4350
|
+
format: 'int32',
|
|
4351
|
+
},
|
|
4352
|
+
max: {
|
|
4353
|
+
type: 'integer',
|
|
4354
|
+
format: 'int32',
|
|
4355
|
+
},
|
|
4356
|
+
},
|
|
4357
|
+
};
|
|
4239
4358
|
export const CursorPageInboxResponseSchema = {
|
|
4240
4359
|
type: 'object',
|
|
4241
4360
|
properties: {
|
|
@@ -4555,19 +4674,20 @@ export const ContactGridResponseSchema = {
|
|
|
4555
4674
|
type: 'string',
|
|
4556
4675
|
enum: ['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'],
|
|
4557
4676
|
},
|
|
4558
|
-
|
|
4559
|
-
|
|
4677
|
+
personalDetails: {
|
|
4678
|
+
oneOf: [
|
|
4679
|
+
{
|
|
4680
|
+
$ref: '#/components/schemas/ContactPersonalDetailsRestricted',
|
|
4681
|
+
},
|
|
4682
|
+
{
|
|
4683
|
+
$ref: '#/components/schemas/ContactPersonalDetailsVisible',
|
|
4684
|
+
},
|
|
4685
|
+
],
|
|
4560
4686
|
},
|
|
4561
4687
|
gender: {
|
|
4562
4688
|
type: 'string',
|
|
4563
4689
|
enum: ['MALE', 'FEMALE', 'UNKNOWN'],
|
|
4564
4690
|
},
|
|
4565
|
-
phoneNumber: {
|
|
4566
|
-
type: 'string',
|
|
4567
|
-
},
|
|
4568
|
-
email: {
|
|
4569
|
-
type: 'string',
|
|
4570
|
-
},
|
|
4571
4691
|
sourceType: {
|
|
4572
4692
|
type: 'string',
|
|
4573
4693
|
enum: [
|
|
@@ -4604,6 +4724,7 @@ export const ContactGridResponseSchema = {
|
|
|
4604
4724
|
'id',
|
|
4605
4725
|
'isListing',
|
|
4606
4726
|
'isSearching',
|
|
4727
|
+
'personalDetails',
|
|
4607
4728
|
'status',
|
|
4608
4729
|
'updatedAt',
|
|
4609
4730
|
],
|
|
@@ -4666,7 +4787,14 @@ export const Client360ResponseSchema = {
|
|
|
4666
4787
|
type: 'string',
|
|
4667
4788
|
},
|
|
4668
4789
|
contactInfo: {
|
|
4669
|
-
|
|
4790
|
+
oneOf: [
|
|
4791
|
+
{
|
|
4792
|
+
$ref: '#/components/schemas/ContactInfoRestricted',
|
|
4793
|
+
},
|
|
4794
|
+
{
|
|
4795
|
+
$ref: '#/components/schemas/ContactInfoVisible',
|
|
4796
|
+
},
|
|
4797
|
+
],
|
|
4670
4798
|
},
|
|
4671
4799
|
source: {
|
|
4672
4800
|
$ref: '#/components/schemas/SourceResponse',
|
|
@@ -4752,7 +4880,43 @@ export const CommunicationPreferenceResponseSchema = {
|
|
|
4752
4880
|
required: ['contactMethods'],
|
|
4753
4881
|
};
|
|
4754
4882
|
export const ContactInfoResponseSchema = {
|
|
4755
|
-
|
|
4883
|
+
discriminator: {
|
|
4884
|
+
propertyName: 'status',
|
|
4885
|
+
mapping: {
|
|
4886
|
+
VISIBLE: '#/components/schemas/ContactInfoVisible',
|
|
4887
|
+
RESTRICTED: '#/components/schemas/ContactInfoRestricted',
|
|
4888
|
+
},
|
|
4889
|
+
},
|
|
4890
|
+
required: ['status'],
|
|
4891
|
+
};
|
|
4892
|
+
export const ContactInfoRestrictedSchema = {
|
|
4893
|
+
properties: {
|
|
4894
|
+
requires: {
|
|
4895
|
+
type: 'array',
|
|
4896
|
+
items: {
|
|
4897
|
+
type: 'string',
|
|
4898
|
+
enum: [
|
|
4899
|
+
'MANAGE_AGENCY',
|
|
4900
|
+
'MANAGE_ROLE',
|
|
4901
|
+
'MANAGE_MEMBER',
|
|
4902
|
+
'CREATE_DELETE_MEMBER',
|
|
4903
|
+
'CREATE_CONTACT',
|
|
4904
|
+
'DELETE_CONTACT',
|
|
4905
|
+
'MANAGE_CONTACT',
|
|
4906
|
+
'MANAGE_ANY_CONTACT',
|
|
4907
|
+
'ASSIGN_CONTACT',
|
|
4908
|
+
],
|
|
4909
|
+
},
|
|
4910
|
+
uniqueItems: true,
|
|
4911
|
+
},
|
|
4912
|
+
status: {
|
|
4913
|
+
type: 'string',
|
|
4914
|
+
enum: ['RESTRICTED'],
|
|
4915
|
+
},
|
|
4916
|
+
},
|
|
4917
|
+
required: ['status'],
|
|
4918
|
+
};
|
|
4919
|
+
export const ContactInfoVisibleSchema = {
|
|
4756
4920
|
properties: {
|
|
4757
4921
|
firstName: {
|
|
4758
4922
|
type: 'string',
|
|
@@ -4770,8 +4934,12 @@ export const ContactInfoResponseSchema = {
|
|
|
4770
4934
|
email: {
|
|
4771
4935
|
type: 'string',
|
|
4772
4936
|
},
|
|
4937
|
+
status: {
|
|
4938
|
+
type: 'string',
|
|
4939
|
+
enum: ['VISIBLE'],
|
|
4940
|
+
},
|
|
4773
4941
|
},
|
|
4774
|
-
required: ['
|
|
4942
|
+
required: ['status'],
|
|
4775
4943
|
};
|
|
4776
4944
|
export const ContactInterestResponseSchema = {
|
|
4777
4945
|
type: 'object',
|
|
@@ -4992,11 +5160,15 @@ export const CardSchema = {
|
|
|
4992
5160
|
type: 'integer',
|
|
4993
5161
|
format: 'int64',
|
|
4994
5162
|
},
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5163
|
+
personalDetails: {
|
|
5164
|
+
oneOf: [
|
|
5165
|
+
{
|
|
5166
|
+
$ref: '#/components/schemas/ContactPersonalDetailsRestricted',
|
|
5167
|
+
},
|
|
5168
|
+
{
|
|
5169
|
+
$ref: '#/components/schemas/ContactPersonalDetailsVisible',
|
|
5170
|
+
},
|
|
5171
|
+
],
|
|
5000
5172
|
},
|
|
5001
5173
|
priority: {
|
|
5002
5174
|
type: 'string',
|
|
@@ -5038,6 +5210,7 @@ export const CardSchema = {
|
|
|
5038
5210
|
},
|
|
5039
5211
|
required: [
|
|
5040
5212
|
'contactId',
|
|
5213
|
+
'personalDetails',
|
|
5041
5214
|
'priority',
|
|
5042
5215
|
'status',
|
|
5043
5216
|
'totalCommission',
|