@homespot-sdk/core 0.0.313 → 0.0.315

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.
@@ -291,14 +291,6 @@ export const RescheduleRequestSchema = {
291
291
  },
292
292
  required: ['start'],
293
293
  };
294
- export const RenameClientRecommendationsRequestSchema = {
295
- type: 'object',
296
- properties: {
297
- name: {
298
- type: 'string',
299
- },
300
- },
301
- };
302
294
  export const AgreementRequestSchema = {
303
295
  type: 'object',
304
296
  properties: {
@@ -716,7 +708,7 @@ export const RateRecommendationItemRequestSchema = {
716
708
  properties: {
717
709
  decision: {
718
710
  type: 'string',
719
- enum: ['MAYBE', 'DISLIKE', 'LIKE', 'VISIT'],
711
+ enum: ['MAYBE', 'DISLIKE', 'LIKE'],
720
712
  },
721
713
  note: {
722
714
  type: 'string',
@@ -1019,43 +1011,6 @@ export const IdResponseUUIDSchema = {
1019
1011
  },
1020
1012
  required: ['id'],
1021
1013
  };
1022
- export const CreateClientRecommendationsRequestSchema = {
1023
- type: 'object',
1024
- properties: {
1025
- title: {
1026
- type: 'string',
1027
- minLength: 1,
1028
- },
1029
- interestId: {
1030
- type: 'integer',
1031
- format: 'int64',
1032
- },
1033
- },
1034
- required: ['interestId', 'title'],
1035
- };
1036
- export const RecommendationsIdSchema = {
1037
- type: 'object',
1038
- properties: {
1039
- value: {
1040
- type: 'string',
1041
- format: 'uuid',
1042
- },
1043
- },
1044
- };
1045
- export const RecommendListingRequestSchema = {
1046
- type: 'object',
1047
- properties: {
1048
- externalPropertyId: {
1049
- type: 'string',
1050
- format: 'uuid',
1051
- },
1052
- externalListingId: {
1053
- type: 'string',
1054
- format: 'uuid',
1055
- },
1056
- },
1057
- required: ['externalListingId', 'externalPropertyId'],
1058
- };
1059
1014
  export const AddDealRequestSchema = {
1060
1015
  type: 'object',
1061
1016
  properties: {
@@ -1088,6 +1043,31 @@ export const InterestIdSchema = {
1088
1043
  },
1089
1044
  },
1090
1045
  };
1046
+ export const TitleRequestSchema = {
1047
+ type: 'object',
1048
+ properties: {
1049
+ title: {
1050
+ type: 'string',
1051
+ maxLength: 50,
1052
+ minLength: 1,
1053
+ },
1054
+ },
1055
+ required: ['title'],
1056
+ };
1057
+ export const RecommendListingRequestSchema = {
1058
+ type: 'object',
1059
+ properties: {
1060
+ externalPropertyId: {
1061
+ type: 'string',
1062
+ format: 'uuid',
1063
+ },
1064
+ externalListingId: {
1065
+ type: 'string',
1066
+ format: 'uuid',
1067
+ },
1068
+ },
1069
+ required: ['externalListingId', 'externalPropertyId'],
1070
+ };
1091
1071
  export const OnboardClientRequestSchema = {
1092
1072
  type: 'object',
1093
1073
  properties: {
@@ -1430,7 +1410,7 @@ export const PagedModelRecommendationsCardViewSchema = {
1430
1410
  export const RecommendationResponseSchema = {
1431
1411
  type: 'object',
1432
1412
  properties: {
1433
- recommendationsId: {
1413
+ shareToken: {
1434
1414
  type: 'string',
1435
1415
  format: 'uuid',
1436
1416
  },
@@ -1443,30 +1423,20 @@ export const RecommendationResponseSchema = {
1443
1423
  },
1444
1424
  status: {
1445
1425
  type: 'string',
1446
- enum: ['DRAFT', 'AWAITING_CLIENT_REVIEW', 'CLOSED'],
1426
+ enum: ['DRAFT', 'SHARED', 'CLOSED'],
1447
1427
  },
1448
1428
  recommendations: {
1449
1429
  $ref: '#/components/schemas/PagedModelRecommendationsCardView',
1450
1430
  },
1451
1431
  },
1452
- required: [
1453
- 'createdAt',
1454
- 'recommendations',
1455
- 'recommendationsId',
1456
- 'status',
1457
- 'title',
1458
- ],
1432
+ required: ['createdAt', 'recommendations', 'shareToken', 'status', 'title'],
1459
1433
  };
1460
1434
  export const RecommendationsCardViewSchema = {
1461
1435
  type: 'object',
1462
1436
  properties: {
1463
- recommendationItemId: {
1464
- type: 'integer',
1465
- format: 'int64',
1466
- },
1467
1437
  decision: {
1468
1438
  type: 'string',
1469
- enum: ['MAYBE', 'DISLIKE', 'LIKE', 'VISIT'],
1439
+ enum: ['MAYBE', 'DISLIKE', 'LIKE'],
1470
1440
  },
1471
1441
  clientNote: {
1472
1442
  type: 'string',
@@ -1555,7 +1525,6 @@ export const RecommendationsCardViewSchema = {
1555
1525
  'ownerContactId',
1556
1526
  'price',
1557
1527
  'propertyId',
1558
- 'recommendationItemId',
1559
1528
  'totalArea',
1560
1529
  'type',
1561
1530
  ],
@@ -1577,7 +1546,7 @@ export const RecommendationDecisionResponseSchema = {
1577
1546
  },
1578
1547
  decision: {
1579
1548
  type: 'string',
1580
- enum: ['MAYBE', 'DISLIKE', 'LIKE', 'VISIT'],
1549
+ enum: ['MAYBE', 'DISLIKE', 'LIKE'],
1581
1550
  },
1582
1551
  },
1583
1552
  required: ['decision', 'externalListingId', 'externalPropertyId', 'itemId'],
@@ -1983,7 +1952,7 @@ export const ContactAssignedSchema = {
1983
1952
  },
1984
1953
  kind: {
1985
1954
  type: 'string',
1986
- enum: ['NEW_CONTACT'],
1955
+ enum: ['CONTACT_ASSIGNED'],
1987
1956
  },
1988
1957
  },
1989
1958
  required: ['kind'],
@@ -2062,7 +2031,7 @@ export const NotificationContentSchema = {
2062
2031
  propertyName: 'kind',
2063
2032
  mapping: {
2064
2033
  NEW_MESSAGE: '#/components/schemas/NewMessage',
2065
- NEW_CONTACT: '#/components/schemas/ContactAssigned',
2034
+ CONTACT_ASSIGNED: '#/components/schemas/ContactAssigned',
2066
2035
  },
2067
2036
  },
2068
2037
  required: ['kind'],
@@ -2729,11 +2698,27 @@ export const InboxResponseSchema = {
2729
2698
  },
2730
2699
  },
2731
2700
  };
2701
+ export const ImageSchema = {
2702
+ properties: {
2703
+ urls: {
2704
+ type: 'array',
2705
+ items: {
2706
+ type: 'string',
2707
+ },
2708
+ },
2709
+ kind: {
2710
+ type: 'string',
2711
+ enum: ['IMAGE'],
2712
+ },
2713
+ },
2714
+ required: ['kind'],
2715
+ };
2732
2716
  export const MessageContentSchema = {
2733
2717
  discriminator: {
2734
2718
  propertyName: 'kind',
2735
2719
  mapping: {
2736
2720
  TEXT: '#/components/schemas/Text',
2721
+ IMAGE: '#/components/schemas/Image',
2737
2722
  UNSUPPORTED: '#/components/schemas/Unsupported',
2738
2723
  },
2739
2724
  },
@@ -2860,13 +2845,9 @@ export const CursorPageMessageViewSchema = {
2860
2845
  },
2861
2846
  },
2862
2847
  };
2863
- export const ConstantInterestResponseSchema = {
2848
+ export const CriteriaSchema = {
2864
2849
  type: 'object',
2865
2850
  properties: {
2866
- id: {
2867
- type: 'integer',
2868
- format: 'int64',
2869
- },
2870
2851
  propertyTypes: {
2871
2852
  type: 'array',
2872
2853
  items: {
@@ -2900,61 +2881,133 @@ export const ConstantInterestResponseSchema = {
2900
2881
  type: 'string',
2901
2882
  enum: ['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE'],
2902
2883
  },
2903
- priceMin: {
2904
- type: 'number',
2884
+ budget: {
2885
+ $ref: '#/components/schemas/RangeBigDecimal',
2905
2886
  },
2906
- priceMax: {
2907
- type: 'number',
2887
+ bedrooms: {
2888
+ $ref: '#/components/schemas/RangeInteger',
2908
2889
  },
2909
- bedroomsMin: {
2910
- type: 'integer',
2911
- format: 'int32',
2890
+ bathrooms: {
2891
+ $ref: '#/components/schemas/RangeInteger',
2912
2892
  },
2913
- bedroomsMax: {
2914
- type: 'integer',
2915
- format: 'int32',
2893
+ totalArea: {
2894
+ $ref: '#/components/schemas/RangeDouble',
2916
2895
  },
2917
- bathroomsMin: {
2918
- type: 'integer',
2919
- format: 'int32',
2896
+ livingArea: {
2897
+ $ref: '#/components/schemas/RangeDouble',
2920
2898
  },
2921
- bathroomsMax: {
2899
+ region: {
2900
+ $ref: '#/components/schemas/LocationResponse',
2901
+ },
2902
+ district: {
2903
+ $ref: '#/components/schemas/LocationResponse',
2904
+ },
2905
+ subDistrict: {
2906
+ $ref: '#/components/schemas/LocationResponse',
2907
+ },
2908
+ street: {
2909
+ $ref: '#/components/schemas/LocationResponse',
2910
+ },
2911
+ },
2912
+ required: ['listingType', 'propertyTypes'],
2913
+ };
2914
+ export const InterestResponseSchema = {
2915
+ type: 'object',
2916
+ properties: {
2917
+ id: {
2922
2918
  type: 'integer',
2923
- format: 'int32',
2919
+ format: 'int64',
2924
2920
  },
2925
- totalAreaMin: {
2921
+ title: {
2922
+ type: 'string',
2923
+ },
2924
+ status: {
2925
+ type: 'string',
2926
+ enum: ['DRAFT', 'SHARED', 'CLOSED'],
2927
+ },
2928
+ shareToken: {
2929
+ type: 'string',
2930
+ format: 'uuid',
2931
+ },
2932
+ createdAt: {
2933
+ type: 'string',
2934
+ format: 'date-time',
2935
+ },
2936
+ criteria: {
2937
+ $ref: '#/components/schemas/Criteria',
2938
+ },
2939
+ recommendations: {
2940
+ $ref: '#/components/schemas/RecommendationStats',
2941
+ },
2942
+ },
2943
+ required: [
2944
+ 'createdAt',
2945
+ 'criteria',
2946
+ 'id',
2947
+ 'recommendations',
2948
+ 'shareToken',
2949
+ 'status',
2950
+ 'title',
2951
+ ],
2952
+ };
2953
+ export const RangeBigDecimalSchema = {
2954
+ type: 'object',
2955
+ properties: {
2956
+ min: {
2926
2957
  type: 'number',
2927
- format: 'double',
2928
2958
  },
2929
- totalAreaMax: {
2959
+ max: {
2930
2960
  type: 'number',
2931
- format: 'double',
2932
2961
  },
2933
- livingAreaMin: {
2962
+ },
2963
+ };
2964
+ export const RangeDoubleSchema = {
2965
+ type: 'object',
2966
+ properties: {
2967
+ min: {
2934
2968
  type: 'number',
2935
2969
  format: 'double',
2936
2970
  },
2937
- livingAreaMax: {
2971
+ max: {
2938
2972
  type: 'number',
2939
2973
  format: 'double',
2940
2974
  },
2941
- region: {
2942
- $ref: '#/components/schemas/LocationResponse',
2975
+ },
2976
+ };
2977
+ export const RangeIntegerSchema = {
2978
+ type: 'object',
2979
+ properties: {
2980
+ min: {
2981
+ type: 'integer',
2982
+ format: 'int32',
2943
2983
  },
2944
- district: {
2945
- $ref: '#/components/schemas/LocationResponse',
2984
+ max: {
2985
+ type: 'integer',
2986
+ format: 'int32',
2946
2987
  },
2947
- subDistrict: {
2948
- $ref: '#/components/schemas/LocationResponse',
2988
+ },
2989
+ };
2990
+ export const RecommendationStatsSchema = {
2991
+ type: 'object',
2992
+ properties: {
2993
+ total: {
2994
+ type: 'integer',
2995
+ format: 'int32',
2949
2996
  },
2950
- street: {
2951
- $ref: '#/components/schemas/LocationResponse',
2997
+ liked: {
2998
+ type: 'integer',
2999
+ format: 'int32',
2952
3000
  },
2953
- active: {
2954
- type: 'boolean',
3001
+ disliked: {
3002
+ type: 'integer',
3003
+ format: 'int32',
3004
+ },
3005
+ undecided: {
3006
+ type: 'integer',
3007
+ format: 'int32',
2955
3008
  },
2956
3009
  },
2957
- required: ['active', 'id', 'listingType', 'propertyTypes'],
3010
+ required: ['disliked', 'liked', 'total', 'undecided'],
2958
3011
  };
2959
3012
  export const CommentViewSchema = {
2960
3013
  type: 'object',
@@ -3193,6 +3246,19 @@ export const Client360ResponseSchema = {
3193
3246
  type: 'string',
3194
3247
  enum: ['CRITICAL', 'HIGH', 'MEDIUM', 'LOW'],
3195
3248
  },
3249
+ status: {
3250
+ type: 'string',
3251
+ enum: [
3252
+ 'NEW',
3253
+ 'ON_HOLD',
3254
+ 'COLD',
3255
+ 'WARM',
3256
+ 'HOT',
3257
+ 'WAITING_PAYMENT',
3258
+ 'LOST',
3259
+ 'WON',
3260
+ ],
3261
+ },
3196
3262
  createdAt: {
3197
3263
  type: 'string',
3198
3264
  format: 'date-time',
@@ -3204,7 +3270,7 @@ export const Client360ResponseSchema = {
3204
3270
  interests: {
3205
3271
  type: 'array',
3206
3272
  items: {
3207
- $ref: '#/components/schemas/ConstantInterestResponse',
3273
+ $ref: '#/components/schemas/InterestResponse',
3208
3274
  },
3209
3275
  },
3210
3276
  properties: {
@@ -3223,8 +3289,10 @@ export const Client360ResponseSchema = {
3223
3289
  'interests',
3224
3290
  'isListing',
3225
3291
  'isSearching',
3292
+ 'priority',
3226
3293
  'properties',
3227
3294
  'source',
3295
+ 'status',
3228
3296
  'updatedAt',
3229
3297
  ],
3230
3298
  };