@homespot-sdk/core 0.0.342 → 0.0.344

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.
@@ -1988,6 +1988,28 @@ export const CursorPageCommentViewSchema = {
1988
1988
  },
1989
1989
  },
1990
1990
  };
1991
+ export const AssignedToResponseSchema = {
1992
+ type: 'object',
1993
+ properties: {
1994
+ memberId: {
1995
+ type: 'string',
1996
+ format: 'uuid',
1997
+ },
1998
+ firstName: {
1999
+ type: 'string',
2000
+ },
2001
+ lastName: {
2002
+ type: 'string',
2003
+ },
2004
+ photo: {
2005
+ type: 'string',
2006
+ },
2007
+ email: {
2008
+ type: 'string',
2009
+ },
2010
+ },
2011
+ required: ['email', 'firstName', 'lastName', 'memberId'],
2012
+ };
1991
2013
  export const ContactLinkSchema = {
1992
2014
  type: 'object',
1993
2015
  properties: {
@@ -2087,30 +2109,88 @@ export const InterestLinkSchema = {
2087
2109
  title: {
2088
2110
  type: 'string',
2089
2111
  },
2112
+ propertyTypes: {
2113
+ type: 'array',
2114
+ items: {
2115
+ type: 'string',
2116
+ enum: [
2117
+ 'HOUSE',
2118
+ 'TOWN_HOUSE',
2119
+ 'COUNTRY_HOUSE',
2120
+ 'VILLA',
2121
+ 'COTTAGE',
2122
+ 'APARTMENT',
2123
+ 'DUPLEX',
2124
+ 'TRIPLEX',
2125
+ 'SEMI_BASEMENT',
2126
+ 'ATTIC',
2127
+ 'AGRICULTURAL_LAND',
2128
+ 'RESIDENTIAL_LAND',
2129
+ 'HOTEL_ROOM',
2130
+ 'MOTEL_ROOM',
2131
+ 'CO_LIVING_SPACE',
2132
+ 'OFFICE',
2133
+ 'COMMERCIAL_SPACE',
2134
+ 'CO_WORKING_SPACE',
2135
+ 'WAREHOUSE',
2136
+ 'GARAGE',
2137
+ ],
2138
+ },
2139
+ },
2140
+ listingType: {
2141
+ type: 'string',
2142
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
2143
+ },
2090
2144
  },
2091
2145
  required: ['contactId', 'interestId'],
2092
2146
  };
2093
- export const ParticipantSchema = {
2147
+ export const LangTextResponseSchema = {
2094
2148
  type: 'object',
2095
2149
  properties: {
2096
- memberId: {
2150
+ language: {
2097
2151
  type: 'string',
2098
- format: 'uuid',
2152
+ enum: ['ka', 'en', 'ru'],
2099
2153
  },
2100
- firstName: {
2154
+ text: {
2101
2155
  type: 'string',
2102
2156
  },
2103
- lastName: {
2157
+ },
2158
+ required: ['language', 'text'],
2159
+ };
2160
+ export const ListingDetailsSchema = {
2161
+ type: 'object',
2162
+ properties: {
2163
+ type: {
2104
2164
  type: 'string',
2165
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
2105
2166
  },
2106
- photo: {
2167
+ askingPrice: {
2168
+ type: 'number',
2169
+ },
2170
+ commissionType: {
2107
2171
  type: 'string',
2172
+ enum: ['NOT_SET', 'FIXED', 'PERCENTAGE', 'MONTHS_OF_RENT'],
2108
2173
  },
2109
- owner: {
2110
- type: 'boolean',
2174
+ commission: {
2175
+ type: 'number',
2111
2176
  },
2112
2177
  },
2113
- required: ['memberId', 'owner'],
2178
+ };
2179
+ export const LocationResponseSchema = {
2180
+ type: 'object',
2181
+ properties: {
2182
+ id: {
2183
+ type: 'integer',
2184
+ format: 'int64',
2185
+ },
2186
+ names: {
2187
+ type: 'array',
2188
+ items: {
2189
+ $ref: '#/components/schemas/LangTextResponse',
2190
+ },
2191
+ },
2192
+ },
2193
+ required: ['id', 'names'],
2114
2194
  };
2115
2195
  export const PropertyLinkSchema = {
2116
2196
  type: 'object',
@@ -2126,6 +2206,46 @@ export const PropertyLinkSchema = {
2126
2206
  title: {
2127
2207
  type: 'string',
2128
2208
  },
2209
+ type: {
2210
+ type: 'string',
2211
+ enum: [
2212
+ 'HOUSE',
2213
+ 'TOWN_HOUSE',
2214
+ 'COUNTRY_HOUSE',
2215
+ 'VILLA',
2216
+ 'COTTAGE',
2217
+ 'APARTMENT',
2218
+ 'DUPLEX',
2219
+ 'TRIPLEX',
2220
+ 'SEMI_BASEMENT',
2221
+ 'ATTIC',
2222
+ 'AGRICULTURAL_LAND',
2223
+ 'RESIDENTIAL_LAND',
2224
+ 'HOTEL_ROOM',
2225
+ 'MOTEL_ROOM',
2226
+ 'CO_LIVING_SPACE',
2227
+ 'OFFICE',
2228
+ 'COMMERCIAL_SPACE',
2229
+ 'CO_WORKING_SPACE',
2230
+ 'WAREHOUSE',
2231
+ 'GARAGE',
2232
+ ],
2233
+ },
2234
+ coverPhoto: {
2235
+ type: 'string',
2236
+ },
2237
+ location: {
2238
+ type: 'array',
2239
+ items: {
2240
+ $ref: '#/components/schemas/LocationResponse',
2241
+ },
2242
+ },
2243
+ listingDetails: {
2244
+ type: 'array',
2245
+ items: {
2246
+ $ref: '#/components/schemas/ListingDetails',
2247
+ },
2248
+ },
2129
2249
  },
2130
2250
  required: ['contactId', 'propertyId'],
2131
2251
  };
@@ -2177,9 +2297,8 @@ export const TaskDetailResponseSchema = {
2177
2297
  type: 'string',
2178
2298
  format: 'date',
2179
2299
  },
2180
- ownerId: {
2181
- type: 'string',
2182
- format: 'uuid',
2300
+ owner: {
2301
+ $ref: '#/components/schemas/AssignedToResponse',
2183
2302
  },
2184
2303
  outcome: {
2185
2304
  type: 'string',
@@ -2220,7 +2339,7 @@ export const TaskDetailResponseSchema = {
2220
2339
  participants: {
2221
2340
  type: 'array',
2222
2341
  items: {
2223
- $ref: '#/components/schemas/Participant',
2342
+ $ref: '#/components/schemas/AssignedToResponse',
2224
2343
  },
2225
2344
  },
2226
2345
  interests: {
@@ -2894,19 +3013,6 @@ export const DealTypePriceSchema = {
2894
3013
  },
2895
3014
  },
2896
3015
  };
2897
- export const LangTextResponseSchema = {
2898
- type: 'object',
2899
- properties: {
2900
- language: {
2901
- type: 'string',
2902
- enum: ['ka', 'en', 'ru'],
2903
- },
2904
- text: {
2905
- type: 'string',
2906
- },
2907
- },
2908
- required: ['language', 'text'],
2909
- };
2910
3016
  export const LocationCountSchema = {
2911
3017
  type: 'object',
2912
3018
  properties: {
@@ -2919,22 +3025,6 @@ export const LocationCountSchema = {
2919
3025
  },
2920
3026
  },
2921
3027
  };
2922
- export const LocationResponseSchema = {
2923
- type: 'object',
2924
- properties: {
2925
- id: {
2926
- type: 'integer',
2927
- format: 'int64',
2928
- },
2929
- names: {
2930
- type: 'array',
2931
- items: {
2932
- $ref: '#/components/schemas/LangTextResponse',
2933
- },
2934
- },
2935
- },
2936
- required: ['id', 'names'],
2937
- };
2938
3028
  export const SliceSchema = {
2939
3029
  type: 'object',
2940
3030
  properties: {
@@ -4391,6 +4481,11 @@ export const PropertyPageResponseSchema = {
4391
4481
  type: 'integer',
4392
4482
  format: 'int64',
4393
4483
  },
4484
+ contactId: {
4485
+ type: 'integer',
4486
+ format: 'int64',
4487
+ description: 'The owner contact this property hangs off. Every listing write is addressed by (contactId, propertyId, listingId), so the page carries the first of the three.',
4488
+ },
4394
4489
  propertyId: {
4395
4490
  type: 'string',
4396
4491
  format: 'uuid',
@@ -4456,6 +4551,7 @@ export const PropertyPageResponseSchema = {
4456
4551
  },
4457
4552
  required: [
4458
4553
  'agreement',
4554
+ 'contactId',
4459
4555
  'createdAt',
4460
4556
  'listings',
4461
4557
  'propertyId',
@@ -5082,27 +5178,28 @@ export const MeetingDetailViewSchema = {
5082
5178
  'type',
5083
5179
  ],
5084
5180
  };
5085
- export const AssignedToResponseSchema = {
5181
+ export const AddressViewSchema = {
5086
5182
  type: 'object',
5087
5183
  properties: {
5088
- memberId: {
5184
+ en: {
5089
5185
  type: 'string',
5090
- format: 'uuid',
5091
5186
  },
5092
- firstName: {
5187
+ ka: {
5093
5188
  type: 'string',
5094
5189
  },
5095
- lastName: {
5190
+ ru: {
5096
5191
  type: 'string',
5097
5192
  },
5098
- photo: {
5099
- type: 'string',
5193
+ streetId: {
5194
+ type: 'integer',
5195
+ format: 'int64',
5100
5196
  },
5101
- email: {
5102
- type: 'string',
5197
+ parentId: {
5198
+ type: 'integer',
5199
+ format: 'int64',
5103
5200
  },
5104
5201
  },
5105
- required: ['email', 'firstName', 'lastName', 'memberId'],
5202
+ required: ['en', 'ka', 'ru'],
5106
5203
  };
5107
5204
  export const ListingGridResponseSchema = {
5108
5205
  type: 'object',
@@ -5168,17 +5265,8 @@ export const ListingGridResponseSchema = {
5168
5265
  title: {
5169
5266
  type: 'string',
5170
5267
  },
5171
- region: {
5172
- $ref: '#/components/schemas/LocationResponse',
5173
- },
5174
- district: {
5175
- $ref: '#/components/schemas/LocationResponse',
5176
- },
5177
- subdistrict: {
5178
- $ref: '#/components/schemas/LocationResponse',
5179
- },
5180
- street: {
5181
- $ref: '#/components/schemas/LocationResponse',
5268
+ address: {
5269
+ $ref: '#/components/schemas/AddressView',
5182
5270
  },
5183
5271
  featuredPhotos: {
5184
5272
  type: 'array',
@@ -5434,17 +5522,8 @@ export const InterestGridResponseSchema = {
5434
5522
  livingArea: {
5435
5523
  $ref: '#/components/schemas/AreaRange',
5436
5524
  },
5437
- region: {
5438
- $ref: '#/components/schemas/LocationResponse',
5439
- },
5440
- district: {
5441
- $ref: '#/components/schemas/LocationResponse',
5442
- },
5443
- subdistrict: {
5444
- $ref: '#/components/schemas/LocationResponse',
5445
- },
5446
- street: {
5447
- $ref: '#/components/schemas/LocationResponse',
5525
+ address: {
5526
+ $ref: '#/components/schemas/AddressView',
5448
5527
  },
5449
5528
  status: {
5450
5529
  type: 'string',