@homespot-sdk/core 0.0.325 → 0.0.327

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.
@@ -2257,43 +2257,212 @@ export const AddressResponseSchema = {
2257
2257
  },
2258
2258
  required: ['district', 'lat', 'lng', 'region', 'subdistrict'],
2259
2259
  };
2260
- export const PagedModelRecommendationsCardViewSchema = {
2260
+ export const BoundingBoxSchema = {
2261
2261
  type: 'object',
2262
2262
  properties: {
2263
- content: {
2263
+ minLat: {
2264
+ type: 'number',
2265
+ format: 'double',
2266
+ },
2267
+ maxLat: {
2268
+ type: 'number',
2269
+ format: 'double',
2270
+ },
2271
+ minLng: {
2272
+ type: 'number',
2273
+ format: 'double',
2274
+ },
2275
+ maxLng: {
2276
+ type: 'number',
2277
+ format: 'double',
2278
+ },
2279
+ },
2280
+ required: ['maxLat', 'maxLng', 'minLat', 'minLng'],
2281
+ };
2282
+ export const CriteriaSchema = {
2283
+ type: 'object',
2284
+ properties: {
2285
+ propertyTypes: {
2264
2286
  type: 'array',
2265
2287
  items: {
2266
- $ref: '#/components/schemas/RecommendationsCardView',
2288
+ type: 'string',
2289
+ enum: [
2290
+ 'HOUSE',
2291
+ 'TOWN_HOUSE',
2292
+ 'COUNTRY_HOUSE',
2293
+ 'VILLA',
2294
+ 'COTTAGE',
2295
+ 'APARTMENT',
2296
+ 'DUPLEX',
2297
+ 'TRIPLEX',
2298
+ 'SEMI_BASEMENT',
2299
+ 'ATTIC',
2300
+ 'AGRICULTURAL_LAND',
2301
+ 'RESIDENTIAL_LAND',
2302
+ 'HOTEL_ROOM',
2303
+ 'MOTEL_ROOM',
2304
+ 'CO_LIVING_SPACE',
2305
+ 'OFFICE',
2306
+ 'COMMERCIAL_SPACE',
2307
+ 'CO_WORKING_SPACE',
2308
+ 'WAREHOUSE',
2309
+ 'GARAGE',
2310
+ ],
2267
2311
  },
2312
+ uniqueItems: true,
2268
2313
  },
2269
- page: {
2270
- $ref: '#/components/schemas/PageMetadata',
2314
+ listingType: {
2315
+ type: 'string',
2316
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
2317
+ },
2318
+ budget: {
2319
+ $ref: '#/components/schemas/RangeBigDecimal',
2320
+ },
2321
+ bedrooms: {
2322
+ $ref: '#/components/schemas/RangeInteger',
2323
+ },
2324
+ bathrooms: {
2325
+ $ref: '#/components/schemas/RangeInteger',
2326
+ },
2327
+ totalArea: {
2328
+ $ref: '#/components/schemas/RangeDouble',
2329
+ },
2330
+ livingArea: {
2331
+ $ref: '#/components/schemas/RangeDouble',
2332
+ },
2333
+ region: {
2334
+ $ref: '#/components/schemas/LocationResponse',
2335
+ },
2336
+ district: {
2337
+ $ref: '#/components/schemas/LocationResponse',
2338
+ },
2339
+ subDistrict: {
2340
+ $ref: '#/components/schemas/LocationResponse',
2341
+ },
2342
+ street: {
2343
+ $ref: '#/components/schemas/LocationResponse',
2271
2344
  },
2272
2345
  },
2346
+ required: ['listingType', 'propertyTypes'],
2273
2347
  };
2274
- export const RecommendationResponseSchema = {
2348
+ export const InterestResponseSchema = {
2275
2349
  type: 'object',
2276
2350
  properties: {
2277
- shareToken: {
2278
- type: 'string',
2279
- format: 'uuid',
2351
+ id: {
2352
+ type: 'integer',
2353
+ format: 'int64',
2280
2354
  },
2281
2355
  title: {
2282
2356
  type: 'string',
2283
2357
  },
2358
+ status: {
2359
+ type: 'string',
2360
+ enum: ['UNPUBLISHED', 'PUBLISHED', 'CLOSED'],
2361
+ },
2362
+ shareToken: {
2363
+ type: 'string',
2364
+ format: 'uuid',
2365
+ },
2284
2366
  createdAt: {
2285
2367
  type: 'string',
2286
2368
  format: 'date-time',
2287
2369
  },
2288
- status: {
2289
- type: 'string',
2290
- enum: ['UNPUBLISHED', 'PUBLISHED', 'CLOSED'],
2370
+ criteria: {
2371
+ $ref: '#/components/schemas/Criteria',
2372
+ },
2373
+ recommendationStats: {
2374
+ $ref: '#/components/schemas/RecommendationStats',
2375
+ },
2376
+ boundedBox: {
2377
+ $ref: '#/components/schemas/BoundingBox',
2291
2378
  },
2292
2379
  recommendations: {
2293
2380
  $ref: '#/components/schemas/PagedModelRecommendationsCardView',
2294
2381
  },
2295
2382
  },
2296
- required: ['createdAt', 'recommendations', 'shareToken', 'status', 'title'],
2383
+ required: [
2384
+ 'createdAt',
2385
+ 'criteria',
2386
+ 'id',
2387
+ 'recommendationStats',
2388
+ 'recommendations',
2389
+ 'shareToken',
2390
+ 'status',
2391
+ 'title',
2392
+ ],
2393
+ };
2394
+ export const PagedModelRecommendationsCardViewSchema = {
2395
+ type: 'object',
2396
+ properties: {
2397
+ content: {
2398
+ type: 'array',
2399
+ items: {
2400
+ $ref: '#/components/schemas/RecommendationsCardView',
2401
+ },
2402
+ },
2403
+ page: {
2404
+ $ref: '#/components/schemas/PageMetadata',
2405
+ },
2406
+ },
2407
+ };
2408
+ export const RangeBigDecimalSchema = {
2409
+ type: 'object',
2410
+ properties: {
2411
+ min: {
2412
+ type: 'number',
2413
+ },
2414
+ max: {
2415
+ type: 'number',
2416
+ },
2417
+ },
2418
+ };
2419
+ export const RangeDoubleSchema = {
2420
+ type: 'object',
2421
+ properties: {
2422
+ min: {
2423
+ type: 'number',
2424
+ format: 'double',
2425
+ },
2426
+ max: {
2427
+ type: 'number',
2428
+ format: 'double',
2429
+ },
2430
+ },
2431
+ };
2432
+ export const RangeIntegerSchema = {
2433
+ type: 'object',
2434
+ properties: {
2435
+ min: {
2436
+ type: 'integer',
2437
+ format: 'int32',
2438
+ },
2439
+ max: {
2440
+ type: 'integer',
2441
+ format: 'int32',
2442
+ },
2443
+ },
2444
+ };
2445
+ export const RecommendationStatsSchema = {
2446
+ type: 'object',
2447
+ properties: {
2448
+ total: {
2449
+ type: 'integer',
2450
+ format: 'int32',
2451
+ },
2452
+ liked: {
2453
+ type: 'integer',
2454
+ format: 'int32',
2455
+ },
2456
+ disliked: {
2457
+ type: 'integer',
2458
+ format: 'int32',
2459
+ },
2460
+ undecided: {
2461
+ type: 'integer',
2462
+ format: 'int32',
2463
+ },
2464
+ },
2465
+ required: ['disliked', 'liked', 'total', 'undecided'],
2297
2466
  };
2298
2467
  export const RecommendationsCardViewSchema = {
2299
2468
  type: 'object',
@@ -3956,204 +4125,40 @@ export const CursorPageMessageViewSchema = {
3956
4125
  },
3957
4126
  },
3958
4127
  };
3959
- export const CriteriaSchema = {
4128
+ export const CommentViewSchema = {
3960
4129
  type: 'object',
3961
4130
  properties: {
3962
- propertyTypes: {
3963
- type: 'array',
3964
- items: {
3965
- type: 'string',
3966
- enum: [
3967
- 'HOUSE',
3968
- 'TOWN_HOUSE',
3969
- 'COUNTRY_HOUSE',
3970
- 'VILLA',
3971
- 'COTTAGE',
3972
- 'APARTMENT',
3973
- 'DUPLEX',
3974
- 'TRIPLEX',
3975
- 'SEMI_BASEMENT',
3976
- 'ATTIC',
3977
- 'AGRICULTURAL_LAND',
3978
- 'RESIDENTIAL_LAND',
3979
- 'HOTEL_ROOM',
3980
- 'MOTEL_ROOM',
3981
- 'CO_LIVING_SPACE',
3982
- 'OFFICE',
3983
- 'COMMERCIAL_SPACE',
3984
- 'CO_WORKING_SPACE',
3985
- 'WAREHOUSE',
3986
- 'GARAGE',
3987
- ],
3988
- },
3989
- uniqueItems: true,
3990
- },
3991
- listingType: {
4131
+ id: {
3992
4132
  type: 'string',
3993
- enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
4133
+ format: 'uuid',
3994
4134
  },
3995
- budget: {
3996
- $ref: '#/components/schemas/RangeBigDecimal',
4135
+ contactId: {
4136
+ type: 'integer',
4137
+ format: 'int64',
3997
4138
  },
3998
- bedrooms: {
3999
- $ref: '#/components/schemas/RangeInteger',
4139
+ authorId: {
4140
+ type: 'string',
4141
+ format: 'uuid',
4000
4142
  },
4001
- bathrooms: {
4002
- $ref: '#/components/schemas/RangeInteger',
4143
+ authorFirstName: {
4144
+ type: 'string',
4003
4145
  },
4004
- totalArea: {
4005
- $ref: '#/components/schemas/RangeDouble',
4146
+ authorLastName: {
4147
+ type: 'string',
4006
4148
  },
4007
- livingArea: {
4008
- $ref: '#/components/schemas/RangeDouble',
4149
+ sentByPicture: {
4150
+ type: 'string',
4009
4151
  },
4010
- region: {
4011
- $ref: '#/components/schemas/LocationResponse',
4152
+ body: {
4153
+ type: 'string',
4012
4154
  },
4013
- district: {
4014
- $ref: '#/components/schemas/LocationResponse',
4155
+ createdAt: {
4156
+ type: 'string',
4157
+ format: 'date-time',
4015
4158
  },
4016
- subDistrict: {
4017
- $ref: '#/components/schemas/LocationResponse',
4018
- },
4019
- street: {
4020
- $ref: '#/components/schemas/LocationResponse',
4021
- },
4022
- },
4023
- required: ['listingType', 'propertyTypes'],
4024
- };
4025
- export const InterestResponseSchema = {
4026
- type: 'object',
4027
- properties: {
4028
- id: {
4029
- type: 'integer',
4030
- format: 'int64',
4031
- },
4032
- title: {
4033
- type: 'string',
4034
- },
4035
- status: {
4036
- type: 'string',
4037
- enum: ['UNPUBLISHED', 'PUBLISHED', 'CLOSED'],
4038
- },
4039
- shareToken: {
4040
- type: 'string',
4041
- format: 'uuid',
4042
- },
4043
- createdAt: {
4044
- type: 'string',
4045
- format: 'date-time',
4046
- },
4047
- criteria: {
4048
- $ref: '#/components/schemas/Criteria',
4049
- },
4050
- recommendations: {
4051
- $ref: '#/components/schemas/RecommendationStats',
4052
- },
4053
- },
4054
- required: [
4055
- 'createdAt',
4056
- 'criteria',
4057
- 'id',
4058
- 'recommendations',
4059
- 'shareToken',
4060
- 'status',
4061
- 'title',
4062
- ],
4063
- };
4064
- export const RangeBigDecimalSchema = {
4065
- type: 'object',
4066
- properties: {
4067
- min: {
4068
- type: 'number',
4069
- },
4070
- max: {
4071
- type: 'number',
4072
- },
4073
- },
4074
- };
4075
- export const RangeDoubleSchema = {
4076
- type: 'object',
4077
- properties: {
4078
- min: {
4079
- type: 'number',
4080
- format: 'double',
4081
- },
4082
- max: {
4083
- type: 'number',
4084
- format: 'double',
4085
- },
4086
- },
4087
- };
4088
- export const RangeIntegerSchema = {
4089
- type: 'object',
4090
- properties: {
4091
- min: {
4092
- type: 'integer',
4093
- format: 'int32',
4094
- },
4095
- max: {
4096
- type: 'integer',
4097
- format: 'int32',
4098
- },
4099
- },
4100
- };
4101
- export const RecommendationStatsSchema = {
4102
- type: 'object',
4103
- properties: {
4104
- total: {
4105
- type: 'integer',
4106
- format: 'int32',
4107
- },
4108
- liked: {
4109
- type: 'integer',
4110
- format: 'int32',
4111
- },
4112
- disliked: {
4113
- type: 'integer',
4114
- format: 'int32',
4115
- },
4116
- undecided: {
4117
- type: 'integer',
4118
- format: 'int32',
4119
- },
4120
- },
4121
- required: ['disliked', 'liked', 'total', 'undecided'],
4122
- };
4123
- export const CommentViewSchema = {
4124
- type: 'object',
4125
- properties: {
4126
- id: {
4127
- type: 'string',
4128
- format: 'uuid',
4129
- },
4130
- contactId: {
4131
- type: 'integer',
4132
- format: 'int64',
4133
- },
4134
- authorId: {
4135
- type: 'string',
4136
- format: 'uuid',
4137
- },
4138
- authorFirstName: {
4139
- type: 'string',
4140
- },
4141
- authorLastName: {
4142
- type: 'string',
4143
- },
4144
- sentByPicture: {
4145
- type: 'string',
4146
- },
4147
- body: {
4148
- type: 'string',
4149
- },
4150
- createdAt: {
4151
- type: 'string',
4152
- format: 'date-time',
4153
- },
4154
- editedAt: {
4155
- type: 'string',
4156
- format: 'date-time',
4159
+ editedAt: {
4160
+ type: 'string',
4161
+ format: 'date-time',
4157
4162
  },
4158
4163
  },
4159
4164
  required: [
@@ -4367,7 +4372,7 @@ export const Client360ResponseSchema = {
4367
4372
  interests: {
4368
4373
  type: 'array',
4369
4374
  items: {
4370
- $ref: '#/components/schemas/InterestResponse',
4375
+ $ref: '#/components/schemas/ContactInterestResponse',
4371
4376
  },
4372
4377
  },
4373
4378
  properties: {
@@ -4432,6 +4437,45 @@ export const ContactInfoResponseSchema = {
4432
4437
  },
4433
4438
  required: ['gender', 'phoneNumber'],
4434
4439
  };
4440
+ export const ContactInterestResponseSchema = {
4441
+ type: 'object',
4442
+ properties: {
4443
+ id: {
4444
+ type: 'integer',
4445
+ format: 'int64',
4446
+ },
4447
+ title: {
4448
+ type: 'string',
4449
+ },
4450
+ status: {
4451
+ type: 'string',
4452
+ enum: ['UNPUBLISHED', 'PUBLISHED', 'CLOSED'],
4453
+ },
4454
+ shareToken: {
4455
+ type: 'string',
4456
+ format: 'uuid',
4457
+ },
4458
+ createdAt: {
4459
+ type: 'string',
4460
+ format: 'date-time',
4461
+ },
4462
+ criteria: {
4463
+ $ref: '#/components/schemas/Criteria',
4464
+ },
4465
+ recommendations: {
4466
+ $ref: '#/components/schemas/RecommendationStats',
4467
+ },
4468
+ },
4469
+ required: [
4470
+ 'createdAt',
4471
+ 'criteria',
4472
+ 'id',
4473
+ 'recommendations',
4474
+ 'shareToken',
4475
+ 'status',
4476
+ 'title',
4477
+ ],
4478
+ };
4435
4479
  export const ContactPropertyResponseSchema = {
4436
4480
  type: 'object',
4437
4481
  properties: {
@@ -4605,6 +4649,255 @@ export const PhoneDuplicateCheckResponseSchema = {
4605
4649
  },
4606
4650
  required: ['matches', 'policy'],
4607
4651
  };
4652
+ export const CardSchema = {
4653
+ type: 'object',
4654
+ properties: {
4655
+ contactId: {
4656
+ type: 'integer',
4657
+ format: 'int64',
4658
+ },
4659
+ contactName: {
4660
+ type: 'string',
4661
+ },
4662
+ phoneNumber: {
4663
+ type: 'string',
4664
+ },
4665
+ priority: {
4666
+ type: 'string',
4667
+ enum: ['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'],
4668
+ },
4669
+ status: {
4670
+ type: 'string',
4671
+ enum: [
4672
+ 'NEW',
4673
+ 'ON_HOLD',
4674
+ 'COLD',
4675
+ 'WARM',
4676
+ 'HOT',
4677
+ 'WAITING_PAYMENT',
4678
+ 'LOST',
4679
+ 'WON',
4680
+ ],
4681
+ },
4682
+ assignedTo: {
4683
+ $ref: '#/components/schemas/AssignedToResponse',
4684
+ },
4685
+ totalCommission: {
4686
+ type: 'number',
4687
+ },
4688
+ preview: {
4689
+ oneOf: [
4690
+ {
4691
+ $ref: '#/components/schemas/InterestPreview',
4692
+ },
4693
+ {
4694
+ $ref: '#/components/schemas/PropertyPreview',
4695
+ },
4696
+ ],
4697
+ },
4698
+ },
4699
+ required: ['contactId', 'priority', 'status', 'totalCommission'],
4700
+ };
4701
+ export const ColumnSchema = {
4702
+ type: 'object',
4703
+ properties: {
4704
+ status: {
4705
+ type: 'string',
4706
+ enum: [
4707
+ 'NEW',
4708
+ 'ON_HOLD',
4709
+ 'COLD',
4710
+ 'WARM',
4711
+ 'HOT',
4712
+ 'WAITING_PAYMENT',
4713
+ 'LOST',
4714
+ 'WON',
4715
+ ],
4716
+ },
4717
+ totalCommission: {
4718
+ type: 'number',
4719
+ },
4720
+ totalContacts: {
4721
+ type: 'integer',
4722
+ format: 'int64',
4723
+ },
4724
+ cards: {
4725
+ $ref: '#/components/schemas/PagedModelCard',
4726
+ },
4727
+ },
4728
+ required: ['cards', 'status', 'totalCommission', 'totalContacts'],
4729
+ };
4730
+ export const ContactKanbanResponseSchema = {
4731
+ type: 'object',
4732
+ properties: {
4733
+ columns: {
4734
+ type: 'array',
4735
+ items: {
4736
+ $ref: '#/components/schemas/Column',
4737
+ },
4738
+ },
4739
+ },
4740
+ required: ['columns'],
4741
+ };
4742
+ export const InterestPreviewSchema = {
4743
+ allOf: [
4744
+ {
4745
+ $ref: '#/components/schemas/Preview',
4746
+ },
4747
+ {
4748
+ type: 'object',
4749
+ properties: {
4750
+ interestId: {
4751
+ type: 'integer',
4752
+ format: 'int64',
4753
+ },
4754
+ listingType: {
4755
+ type: 'string',
4756
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
4757
+ },
4758
+ propertyTypes: {
4759
+ type: 'array',
4760
+ items: {
4761
+ type: 'string',
4762
+ enum: [
4763
+ 'HOUSE',
4764
+ 'TOWN_HOUSE',
4765
+ 'COUNTRY_HOUSE',
4766
+ 'VILLA',
4767
+ 'COTTAGE',
4768
+ 'APARTMENT',
4769
+ 'DUPLEX',
4770
+ 'TRIPLEX',
4771
+ 'SEMI_BASEMENT',
4772
+ 'ATTIC',
4773
+ 'AGRICULTURAL_LAND',
4774
+ 'RESIDENTIAL_LAND',
4775
+ 'HOTEL_ROOM',
4776
+ 'MOTEL_ROOM',
4777
+ 'CO_LIVING_SPACE',
4778
+ 'OFFICE',
4779
+ 'COMMERCIAL_SPACE',
4780
+ 'CO_WORKING_SPACE',
4781
+ 'WAREHOUSE',
4782
+ 'GARAGE',
4783
+ ],
4784
+ },
4785
+ uniqueItems: true,
4786
+ },
4787
+ budget: {
4788
+ $ref: '#/components/schemas/RangeBigDecimal',
4789
+ },
4790
+ primaryLocation: {
4791
+ $ref: '#/components/schemas/LocationResponse',
4792
+ },
4793
+ recommendationCount: {
4794
+ type: 'integer',
4795
+ format: 'int32',
4796
+ },
4797
+ },
4798
+ },
4799
+ ],
4800
+ required: [
4801
+ 'interestId',
4802
+ 'listingType',
4803
+ 'propertyTypes',
4804
+ 'recommendationCount',
4805
+ ],
4806
+ };
4807
+ export const PagedModelCardSchema = {
4808
+ type: 'object',
4809
+ properties: {
4810
+ content: {
4811
+ type: 'array',
4812
+ items: {
4813
+ $ref: '#/components/schemas/Card',
4814
+ },
4815
+ },
4816
+ page: {
4817
+ $ref: '#/components/schemas/PageMetadata',
4818
+ },
4819
+ },
4820
+ };
4821
+ export const PreviewSchema = {
4822
+ discriminator: {
4823
+ propertyName: 'type',
4824
+ mapping: {
4825
+ PROPERTY: '#/components/schemas/PropertyPreview',
4826
+ INTEREST: '#/components/schemas/InterestPreview',
4827
+ },
4828
+ },
4829
+ properties: {
4830
+ type: {
4831
+ type: 'string',
4832
+ },
4833
+ },
4834
+ required: ['type'],
4835
+ };
4836
+ export const PropertyPreviewSchema = {
4837
+ allOf: [
4838
+ {
4839
+ $ref: '#/components/schemas/Preview',
4840
+ },
4841
+ {
4842
+ type: 'object',
4843
+ properties: {
4844
+ propertyId: {
4845
+ type: 'integer',
4846
+ format: 'int64',
4847
+ },
4848
+ propertyType: {
4849
+ type: 'string',
4850
+ enum: [
4851
+ 'HOUSE',
4852
+ 'TOWN_HOUSE',
4853
+ 'COUNTRY_HOUSE',
4854
+ 'VILLA',
4855
+ 'COTTAGE',
4856
+ 'APARTMENT',
4857
+ 'DUPLEX',
4858
+ 'TRIPLEX',
4859
+ 'SEMI_BASEMENT',
4860
+ 'ATTIC',
4861
+ 'AGRICULTURAL_LAND',
4862
+ 'RESIDENTIAL_LAND',
4863
+ 'HOTEL_ROOM',
4864
+ 'MOTEL_ROOM',
4865
+ 'CO_LIVING_SPACE',
4866
+ 'OFFICE',
4867
+ 'COMMERCIAL_SPACE',
4868
+ 'CO_WORKING_SPACE',
4869
+ 'WAREHOUSE',
4870
+ 'GARAGE',
4871
+ ],
4872
+ },
4873
+ state: {
4874
+ type: 'string',
4875
+ enum: [
4876
+ 'IN_REGISTRATION',
4877
+ 'UNLISTED',
4878
+ 'LISTED_INTERNALLY',
4879
+ 'LISTED',
4880
+ 'CLOSED',
4881
+ ],
4882
+ },
4883
+ title: {
4884
+ type: 'string',
4885
+ },
4886
+ coverUrl: {
4887
+ type: 'string',
4888
+ },
4889
+ listingTypes: {
4890
+ type: 'array',
4891
+ items: {
4892
+ type: 'string',
4893
+ enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
4894
+ },
4895
+ },
4896
+ },
4897
+ },
4898
+ ],
4899
+ required: ['listingTypes', 'propertyId', 'propertyType', 'state'],
4900
+ };
4608
4901
  export const AddressViewResponseSchema = {
4609
4902
  type: 'object',
4610
4903
  properties: {