@homespot-sdk/validators 0.0.643 → 0.0.645

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/index.js CHANGED
@@ -39,6 +39,7 @@ const ChangeStatusRequest = zod_1.z
39
39
  })
40
40
  .passthrough();
41
41
  const SourceRequest = zod_1.z.object({ sourceUrl: zod_1.z.string().min(1) }).passthrough();
42
+ const UpdateNoteRequest = zod_1.z.object({ note: zod_1.z.string().min(1) }).passthrough();
42
43
  const PriceRangeRequest = zod_1.z
43
44
  .object({ min: zod_1.z.number(), max: zod_1.z.number() })
44
45
  .partial()
@@ -46,15 +47,16 @@ const PriceRangeRequest = zod_1.z
46
47
  const LocationRefRequest = zod_1.z
47
48
  .object({
48
49
  regionId: zod_1.z.number().int(),
49
- cityId: zod_1.z.number().int(),
50
50
  districtId: zod_1.z.number().int(),
51
51
  subDistrictId: zod_1.z.number().int(),
52
52
  streetId: zod_1.z.number().int(),
53
53
  })
54
54
  .partial()
55
55
  .passthrough();
56
- const SearchIntentRequest = zod_1.z
56
+ const LeadIntentRequest = zod_1.z
57
57
  .object({
58
+ clientType: zod_1.z.enum(['LISTING', 'SEEKING']),
59
+ listingType: zod_1.z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
58
60
  propertyType: zod_1.z.enum([
59
61
  'HOUSE',
60
62
  'TOWN_HOUSE',
@@ -77,61 +79,12 @@ const SearchIntentRequest = zod_1.z
77
79
  'WAREHOUSE',
78
80
  'GARAGE',
79
81
  ]),
80
- dealType: zod_1.z.enum(['BUY', 'RENT']),
81
- budget: PriceRangeRequest.optional(),
82
+ price: PriceRangeRequest.optional(),
82
83
  targetLocation: LocationRefRequest.optional(),
83
84
  area: zod_1.z.number().optional(),
84
85
  numberOfRooms: zod_1.z.number().int().optional(),
85
86
  })
86
87
  .passthrough();
87
- const UpdateNoteRequest = zod_1.z.object({ note: zod_1.z.string().min(1) }).passthrough();
88
- const CoordinatesRequest = zod_1.z
89
- .object({
90
- lat: zod_1.z.number().gte(-90).lte(90),
91
- lng: zod_1.z.number().gte(-90).lte(90),
92
- })
93
- .passthrough();
94
- const AddressRefRequest = zod_1.z
95
- .object({
96
- regionId: zod_1.z.number().int().optional(),
97
- cityId: zod_1.z.number().int().optional(),
98
- districtId: zod_1.z.number().int().optional(),
99
- subDistrictId: zod_1.z.number().int().optional(),
100
- streetId: zod_1.z.number().int().optional(),
101
- coordinates: CoordinatesRequest,
102
- })
103
- .passthrough();
104
- const ListingIntentRequest = zod_1.z
105
- .object({
106
- propertyType: zod_1.z.enum([
107
- 'HOUSE',
108
- 'TOWN_HOUSE',
109
- 'COUNTRY_HOUSE',
110
- 'VILLA',
111
- 'COTTAGE',
112
- 'APARTMENT',
113
- 'DUPLEX',
114
- 'TRIPLEX',
115
- 'SEMI_BASEMENT',
116
- 'ATTIC',
117
- 'AGRICULTURAL_LAND',
118
- 'RESIDENTIAL_LAND',
119
- 'HOTEL_ROOM',
120
- 'MOTEL_ROOM',
121
- 'CO_LIVING_SPACE',
122
- 'OFFICE',
123
- 'COMMERCIAL_SPACE',
124
- 'CO_WORKING_SPACE',
125
- 'WAREHOUSE',
126
- 'GARAGE',
127
- ]),
128
- dealType: zod_1.z.enum(['BUY', 'RENT']),
129
- desiredPrice: PriceRangeRequest.optional(),
130
- address: AddressRefRequest.optional(),
131
- area: zod_1.z.number().optional(),
132
- numberOfRooms: zod_1.z.number().int().optional(),
133
- })
134
- .passthrough();
135
88
  const ContactInfoRequest = zod_1.z
136
89
  .object({
137
90
  firstName: zod_1.z.string().optional(),
@@ -262,26 +215,26 @@ const SortObject = zod_1.z
262
215
  const PageableObject = zod_1.z
263
216
  .object({
264
217
  offset: zod_1.z.number().int(),
265
- unpaged: zod_1.z.boolean(),
218
+ sort: SortObject,
266
219
  paged: zod_1.z.boolean(),
267
220
  pageNumber: zod_1.z.number().int(),
268
221
  pageSize: zod_1.z.number().int(),
269
- sort: SortObject,
222
+ unpaged: zod_1.z.boolean(),
270
223
  })
271
224
  .partial()
272
225
  .passthrough();
273
226
  const PageRoleResponse = zod_1.z
274
227
  .object({
275
- totalPages: zod_1.z.number().int(),
276
228
  totalElements: zod_1.z.number().int(),
229
+ totalPages: zod_1.z.number().int(),
277
230
  size: zod_1.z.number().int(),
278
231
  content: zod_1.z.array(RoleResponse),
279
232
  number: zod_1.z.number().int(),
280
233
  first: zod_1.z.boolean(),
281
234
  last: zod_1.z.boolean(),
235
+ sort: SortObject,
282
236
  numberOfElements: zod_1.z.number().int(),
283
237
  pageable: PageableObject,
284
- sort: SortObject,
285
238
  empty: zod_1.z.boolean(),
286
239
  })
287
240
  .partial()
@@ -368,44 +321,10 @@ const PagedModelMemberViewResponse = zod_1.z
368
321
  .object({ content: zod_1.z.array(MemberViewResponse), page: PageMetadata })
369
322
  .partial()
370
323
  .passthrough();
371
- const SearchIntentResponse = zod_1.z
372
- .object({
373
- propertyType: zod_1.z.enum([
374
- 'HOUSE',
375
- 'TOWN_HOUSE',
376
- 'COUNTRY_HOUSE',
377
- 'VILLA',
378
- 'COTTAGE',
379
- 'APARTMENT',
380
- 'DUPLEX',
381
- 'TRIPLEX',
382
- 'SEMI_BASEMENT',
383
- 'ATTIC',
384
- 'AGRICULTURAL_LAND',
385
- 'RESIDENTIAL_LAND',
386
- 'HOTEL_ROOM',
387
- 'MOTEL_ROOM',
388
- 'CO_LIVING_SPACE',
389
- 'OFFICE',
390
- 'COMMERCIAL_SPACE',
391
- 'CO_WORKING_SPACE',
392
- 'WAREHOUSE',
393
- 'GARAGE',
394
- ]),
395
- dealType: zod_1.z.enum(['BUY', 'RENT']),
396
- budgetMin: zod_1.z.number().optional(),
397
- budgetMax: zod_1.z.number().optional(),
398
- regionId: zod_1.z.number().int().optional(),
399
- cityId: zod_1.z.number().int().optional(),
400
- districtId: zod_1.z.number().int().optional(),
401
- subDistrictId: zod_1.z.number().int().optional(),
402
- streetId: zod_1.z.number().int().optional(),
403
- area: zod_1.z.number().optional(),
404
- numberOfRooms: zod_1.z.number().int().optional(),
405
- })
406
- .passthrough();
407
- const ListingIntentResponse = zod_1.z
324
+ const IntentResponse = zod_1.z
408
325
  .object({
326
+ clientType: zod_1.z.enum(['LISTING', 'SEEKING']),
327
+ listingType: zod_1.z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
409
328
  propertyType: zod_1.z.enum([
410
329
  'HOUSE',
411
330
  'TOWN_HOUSE',
@@ -428,16 +347,12 @@ const ListingIntentResponse = zod_1.z
428
347
  'WAREHOUSE',
429
348
  'GARAGE',
430
349
  ]),
431
- dealType: zod_1.z.enum(['BUY', 'RENT']),
432
- desiredPriceMin: zod_1.z.number().optional(),
433
- desiredPriceMax: zod_1.z.number().optional(),
350
+ priceMin: zod_1.z.number().optional(),
351
+ priceMax: zod_1.z.number().optional(),
434
352
  regionId: zod_1.z.number().int().optional(),
435
- cityId: zod_1.z.number().int().optional(),
436
353
  districtId: zod_1.z.number().int().optional(),
437
354
  subDistrictId: zod_1.z.number().int().optional(),
438
355
  streetId: zod_1.z.number().int().optional(),
439
- lat: zod_1.z.number().optional(),
440
- lng: zod_1.z.number().optional(),
441
356
  area: zod_1.z.number().optional(),
442
357
  numberOfRooms: zod_1.z.number().int().optional(),
443
358
  })
@@ -458,28 +373,26 @@ const LeadProjectionResponse = zod_1.z
458
373
  contactFullName: zod_1.z.string().optional(),
459
374
  contactPhoneNumber: zod_1.z.string(),
460
375
  contactEmail: zod_1.z.string().optional(),
461
- noteTitle: zod_1.z.string().optional(),
462
- noteContent: zod_1.z.string().optional(),
376
+ note: zod_1.z.string().optional(),
463
377
  sourceType: zod_1.z.string().optional(),
464
378
  sourceLink: zod_1.z.string().optional(),
465
- isSearcher: zod_1.z.boolean(),
466
- isLister: zod_1.z.boolean(),
467
- searchIntents: zod_1.z.array(SearchIntentResponse).optional(),
468
- listingIntents: zod_1.z.array(ListingIntentResponse).optional(),
379
+ isSearching: zod_1.z.boolean(),
380
+ isListing: zod_1.z.boolean(),
381
+ intents: zod_1.z.array(IntentResponse).optional(),
469
382
  })
470
383
  .passthrough();
471
384
  const PageLeadProjectionResponse = zod_1.z
472
385
  .object({
473
- totalPages: zod_1.z.number().int(),
474
386
  totalElements: zod_1.z.number().int(),
387
+ totalPages: zod_1.z.number().int(),
475
388
  size: zod_1.z.number().int(),
476
389
  content: zod_1.z.array(LeadProjectionResponse),
477
390
  number: zod_1.z.number().int(),
478
391
  first: zod_1.z.boolean(),
479
392
  last: zod_1.z.boolean(),
393
+ sort: SortObject,
480
394
  numberOfElements: zod_1.z.number().int(),
481
395
  pageable: PageableObject,
482
- sort: SortObject,
483
396
  empty: zod_1.z.boolean(),
484
397
  })
485
398
  .partial()
@@ -525,13 +438,10 @@ exports.schemas = {
525
438
  BatchAssignRoleRequest,
526
439
  ChangeStatusRequest,
527
440
  SourceRequest,
441
+ UpdateNoteRequest,
528
442
  PriceRangeRequest,
529
443
  LocationRefRequest,
530
- SearchIntentRequest,
531
- UpdateNoteRequest,
532
- CoordinatesRequest,
533
- AddressRefRequest,
534
- ListingIntentRequest,
444
+ LeadIntentRequest,
535
445
  ContactInfoRequest,
536
446
  AssignToMemberRequest,
537
447
  AddressRequest,
@@ -561,8 +471,7 @@ exports.schemas = {
561
471
  GroupedPermissionsResponse,
562
472
  MemberViewResponse,
563
473
  PagedModelMemberViewResponse,
564
- SearchIntentResponse,
565
- ListingIntentResponse,
474
+ IntentResponse,
566
475
  LeadProjectionResponse,
567
476
  PageLeadProjectionResponse,
568
477
  InvitationViewResponse,
@@ -840,11 +749,6 @@ const endpoints = (0, core_1.makeApi)([
840
749
  type: 'Query',
841
750
  schema: zod_1.z.number().int(),
842
751
  },
843
- {
844
- name: 'type',
845
- type: 'Query',
846
- schema: zod_1.z.enum(['SEARCH', 'LISTING']),
847
- },
848
752
  ],
849
753
  response: zod_1.z.void(),
850
754
  },
@@ -888,14 +792,14 @@ const endpoints = (0, core_1.makeApi)([
888
792
  },
889
793
  {
890
794
  method: 'put',
891
- path: '/lead/:leadId/listing-intents',
892
- alias: 'updateListingIntent',
795
+ path: '/lead/:leadId/intent',
796
+ alias: 'updateIntent',
893
797
  requestFormat: 'json',
894
798
  parameters: [
895
799
  {
896
800
  name: 'body',
897
801
  type: 'Body',
898
- schema: ListingIntentRequest,
802
+ schema: LeadIntentRequest,
899
803
  },
900
804
  {
901
805
  name: 'leadId',
@@ -912,14 +816,14 @@ const endpoints = (0, core_1.makeApi)([
912
816
  },
913
817
  {
914
818
  method: 'post',
915
- path: '/lead/:leadId/listing-intents',
916
- alias: 'addListingIntent',
819
+ path: '/lead/:leadId/intent',
820
+ alias: 'addIntent',
917
821
  requestFormat: 'json',
918
822
  parameters: [
919
823
  {
920
824
  name: 'body',
921
825
  type: 'Body',
922
- schema: ListingIntentRequest,
826
+ schema: LeadIntentRequest,
923
827
  },
924
828
  {
925
829
  name: 'leadId',
@@ -948,49 +852,6 @@ const endpoints = (0, core_1.makeApi)([
948
852
  ],
949
853
  response: zod_1.z.void(),
950
854
  },
951
- {
952
- method: 'put',
953
- path: '/lead/:leadId/search-intents',
954
- alias: 'updateSearchIntent',
955
- requestFormat: 'json',
956
- parameters: [
957
- {
958
- name: 'body',
959
- type: 'Body',
960
- schema: SearchIntentRequest,
961
- },
962
- {
963
- name: 'leadId',
964
- type: 'Path',
965
- schema: zod_1.z.string().uuid(),
966
- },
967
- {
968
- name: 'index',
969
- type: 'Query',
970
- schema: zod_1.z.number().int(),
971
- },
972
- ],
973
- response: zod_1.z.void(),
974
- },
975
- {
976
- method: 'post',
977
- path: '/lead/:leadId/search-intents',
978
- alias: 'addSearchIntent',
979
- requestFormat: 'json',
980
- parameters: [
981
- {
982
- name: 'body',
983
- type: 'Body',
984
- schema: SearchIntentRequest,
985
- },
986
- {
987
- name: 'leadId',
988
- type: 'Path',
989
- schema: zod_1.z.string().uuid(),
990
- },
991
- ],
992
- response: zod_1.z.void(),
993
- },
994
855
  {
995
856
  method: 'put',
996
857
  path: '/lead/:leadId/source',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homespot-sdk/validators",
3
- "version": "0.0.643",
3
+ "version": "0.0.645",
4
4
  "main": "dist/index.js",
5
5
  "types": "src/index.ts",
6
6
  "files": [
package/src/index.ts CHANGED
@@ -38,6 +38,7 @@ const ChangeStatusRequest = z
38
38
  })
39
39
  .passthrough();
40
40
  const SourceRequest = z.object({ sourceUrl: z.string().min(1) }).passthrough();
41
+ const UpdateNoteRequest = z.object({ note: z.string().min(1) }).passthrough();
41
42
  const PriceRangeRequest = z
42
43
  .object({ min: z.number(), max: z.number() })
43
44
  .partial()
@@ -45,15 +46,16 @@ const PriceRangeRequest = z
45
46
  const LocationRefRequest = z
46
47
  .object({
47
48
  regionId: z.number().int(),
48
- cityId: z.number().int(),
49
49
  districtId: z.number().int(),
50
50
  subDistrictId: z.number().int(),
51
51
  streetId: z.number().int(),
52
52
  })
53
53
  .partial()
54
54
  .passthrough();
55
- const SearchIntentRequest = z
55
+ const LeadIntentRequest = z
56
56
  .object({
57
+ clientType: z.enum(['LISTING', 'SEEKING']),
58
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
57
59
  propertyType: z.enum([
58
60
  'HOUSE',
59
61
  'TOWN_HOUSE',
@@ -76,61 +78,12 @@ const SearchIntentRequest = z
76
78
  'WAREHOUSE',
77
79
  'GARAGE',
78
80
  ]),
79
- dealType: z.enum(['BUY', 'RENT']),
80
- budget: PriceRangeRequest.optional(),
81
+ price: PriceRangeRequest.optional(),
81
82
  targetLocation: LocationRefRequest.optional(),
82
83
  area: z.number().optional(),
83
84
  numberOfRooms: z.number().int().optional(),
84
85
  })
85
86
  .passthrough();
86
- const UpdateNoteRequest = z.object({ note: z.string().min(1) }).passthrough();
87
- const CoordinatesRequest = z
88
- .object({
89
- lat: z.number().gte(-90).lte(90),
90
- lng: z.number().gte(-90).lte(90),
91
- })
92
- .passthrough();
93
- const AddressRefRequest = z
94
- .object({
95
- regionId: z.number().int().optional(),
96
- cityId: z.number().int().optional(),
97
- districtId: z.number().int().optional(),
98
- subDistrictId: z.number().int().optional(),
99
- streetId: z.number().int().optional(),
100
- coordinates: CoordinatesRequest,
101
- })
102
- .passthrough();
103
- const ListingIntentRequest = z
104
- .object({
105
- propertyType: z.enum([
106
- 'HOUSE',
107
- 'TOWN_HOUSE',
108
- 'COUNTRY_HOUSE',
109
- 'VILLA',
110
- 'COTTAGE',
111
- 'APARTMENT',
112
- 'DUPLEX',
113
- 'TRIPLEX',
114
- 'SEMI_BASEMENT',
115
- 'ATTIC',
116
- 'AGRICULTURAL_LAND',
117
- 'RESIDENTIAL_LAND',
118
- 'HOTEL_ROOM',
119
- 'MOTEL_ROOM',
120
- 'CO_LIVING_SPACE',
121
- 'OFFICE',
122
- 'COMMERCIAL_SPACE',
123
- 'CO_WORKING_SPACE',
124
- 'WAREHOUSE',
125
- 'GARAGE',
126
- ]),
127
- dealType: z.enum(['BUY', 'RENT']),
128
- desiredPrice: PriceRangeRequest.optional(),
129
- address: AddressRefRequest.optional(),
130
- area: z.number().optional(),
131
- numberOfRooms: z.number().int().optional(),
132
- })
133
- .passthrough();
134
87
  const ContactInfoRequest = z
135
88
  .object({
136
89
  firstName: z.string().optional(),
@@ -265,26 +218,26 @@ const SortObject = z
265
218
  const PageableObject = z
266
219
  .object({
267
220
  offset: z.number().int(),
268
- unpaged: z.boolean(),
221
+ sort: SortObject,
269
222
  paged: z.boolean(),
270
223
  pageNumber: z.number().int(),
271
224
  pageSize: z.number().int(),
272
- sort: SortObject,
225
+ unpaged: z.boolean(),
273
226
  })
274
227
  .partial()
275
228
  .passthrough();
276
229
  const PageRoleResponse = z
277
230
  .object({
278
- totalPages: z.number().int(),
279
231
  totalElements: z.number().int(),
232
+ totalPages: z.number().int(),
280
233
  size: z.number().int(),
281
234
  content: z.array(RoleResponse),
282
235
  number: z.number().int(),
283
236
  first: z.boolean(),
284
237
  last: z.boolean(),
238
+ sort: SortObject,
285
239
  numberOfElements: z.number().int(),
286
240
  pageable: PageableObject,
287
- sort: SortObject,
288
241
  empty: z.boolean(),
289
242
  })
290
243
  .partial()
@@ -373,44 +326,10 @@ const PagedModelMemberViewResponse = z
373
326
  .object({ content: z.array(MemberViewResponse), page: PageMetadata })
374
327
  .partial()
375
328
  .passthrough();
376
- const SearchIntentResponse = z
377
- .object({
378
- propertyType: z.enum([
379
- 'HOUSE',
380
- 'TOWN_HOUSE',
381
- 'COUNTRY_HOUSE',
382
- 'VILLA',
383
- 'COTTAGE',
384
- 'APARTMENT',
385
- 'DUPLEX',
386
- 'TRIPLEX',
387
- 'SEMI_BASEMENT',
388
- 'ATTIC',
389
- 'AGRICULTURAL_LAND',
390
- 'RESIDENTIAL_LAND',
391
- 'HOTEL_ROOM',
392
- 'MOTEL_ROOM',
393
- 'CO_LIVING_SPACE',
394
- 'OFFICE',
395
- 'COMMERCIAL_SPACE',
396
- 'CO_WORKING_SPACE',
397
- 'WAREHOUSE',
398
- 'GARAGE',
399
- ]),
400
- dealType: z.enum(['BUY', 'RENT']),
401
- budgetMin: z.number().optional(),
402
- budgetMax: z.number().optional(),
403
- regionId: z.number().int().optional(),
404
- cityId: z.number().int().optional(),
405
- districtId: z.number().int().optional(),
406
- subDistrictId: z.number().int().optional(),
407
- streetId: z.number().int().optional(),
408
- area: z.number().optional(),
409
- numberOfRooms: z.number().int().optional(),
410
- })
411
- .passthrough();
412
- const ListingIntentResponse = z
329
+ const IntentResponse = z
413
330
  .object({
331
+ clientType: z.enum(['LISTING', 'SEEKING']),
332
+ listingType: z.enum(['SALE', 'RENT', 'DAILY_RENT', 'PLEDGE']),
414
333
  propertyType: z.enum([
415
334
  'HOUSE',
416
335
  'TOWN_HOUSE',
@@ -433,16 +352,12 @@ const ListingIntentResponse = z
433
352
  'WAREHOUSE',
434
353
  'GARAGE',
435
354
  ]),
436
- dealType: z.enum(['BUY', 'RENT']),
437
- desiredPriceMin: z.number().optional(),
438
- desiredPriceMax: z.number().optional(),
355
+ priceMin: z.number().optional(),
356
+ priceMax: z.number().optional(),
439
357
  regionId: z.number().int().optional(),
440
- cityId: z.number().int().optional(),
441
358
  districtId: z.number().int().optional(),
442
359
  subDistrictId: z.number().int().optional(),
443
360
  streetId: z.number().int().optional(),
444
- lat: z.number().optional(),
445
- lng: z.number().optional(),
446
361
  area: z.number().optional(),
447
362
  numberOfRooms: z.number().int().optional(),
448
363
  })
@@ -463,28 +378,26 @@ const LeadProjectionResponse = z
463
378
  contactFullName: z.string().optional(),
464
379
  contactPhoneNumber: z.string(),
465
380
  contactEmail: z.string().optional(),
466
- noteTitle: z.string().optional(),
467
- noteContent: z.string().optional(),
381
+ note: z.string().optional(),
468
382
  sourceType: z.string().optional(),
469
383
  sourceLink: z.string().optional(),
470
- isSearcher: z.boolean(),
471
- isLister: z.boolean(),
472
- searchIntents: z.array(SearchIntentResponse).optional(),
473
- listingIntents: z.array(ListingIntentResponse).optional(),
384
+ isSearching: z.boolean(),
385
+ isListing: z.boolean(),
386
+ intents: z.array(IntentResponse).optional(),
474
387
  })
475
388
  .passthrough();
476
389
  const PageLeadProjectionResponse = z
477
390
  .object({
478
- totalPages: z.number().int(),
479
391
  totalElements: z.number().int(),
392
+ totalPages: z.number().int(),
480
393
  size: z.number().int(),
481
394
  content: z.array(LeadProjectionResponse),
482
395
  number: z.number().int(),
483
396
  first: z.boolean(),
484
397
  last: z.boolean(),
398
+ sort: SortObject,
485
399
  numberOfElements: z.number().int(),
486
400
  pageable: PageableObject,
487
- sort: SortObject,
488
401
  empty: z.boolean(),
489
402
  })
490
403
  .partial()
@@ -531,13 +444,10 @@ export const schemas = {
531
444
  BatchAssignRoleRequest,
532
445
  ChangeStatusRequest,
533
446
  SourceRequest,
447
+ UpdateNoteRequest,
534
448
  PriceRangeRequest,
535
449
  LocationRefRequest,
536
- SearchIntentRequest,
537
- UpdateNoteRequest,
538
- CoordinatesRequest,
539
- AddressRefRequest,
540
- ListingIntentRequest,
450
+ LeadIntentRequest,
541
451
  ContactInfoRequest,
542
452
  AssignToMemberRequest,
543
453
  AddressRequest,
@@ -567,8 +477,7 @@ export const schemas = {
567
477
  GroupedPermissionsResponse,
568
478
  MemberViewResponse,
569
479
  PagedModelMemberViewResponse,
570
- SearchIntentResponse,
571
- ListingIntentResponse,
480
+ IntentResponse,
572
481
  LeadProjectionResponse,
573
482
  PageLeadProjectionResponse,
574
483
  InvitationViewResponse,
@@ -847,11 +756,6 @@ const endpoints = makeApi([
847
756
  type: 'Query',
848
757
  schema: z.number().int(),
849
758
  },
850
- {
851
- name: 'type',
852
- type: 'Query',
853
- schema: z.enum(['SEARCH', 'LISTING']),
854
- },
855
759
  ],
856
760
  response: z.void(),
857
761
  },
@@ -895,14 +799,14 @@ const endpoints = makeApi([
895
799
  },
896
800
  {
897
801
  method: 'put',
898
- path: '/lead/:leadId/listing-intents',
899
- alias: 'updateListingIntent',
802
+ path: '/lead/:leadId/intent',
803
+ alias: 'updateIntent',
900
804
  requestFormat: 'json',
901
805
  parameters: [
902
806
  {
903
807
  name: 'body',
904
808
  type: 'Body',
905
- schema: ListingIntentRequest,
809
+ schema: LeadIntentRequest,
906
810
  },
907
811
  {
908
812
  name: 'leadId',
@@ -919,14 +823,14 @@ const endpoints = makeApi([
919
823
  },
920
824
  {
921
825
  method: 'post',
922
- path: '/lead/:leadId/listing-intents',
923
- alias: 'addListingIntent',
826
+ path: '/lead/:leadId/intent',
827
+ alias: 'addIntent',
924
828
  requestFormat: 'json',
925
829
  parameters: [
926
830
  {
927
831
  name: 'body',
928
832
  type: 'Body',
929
- schema: ListingIntentRequest,
833
+ schema: LeadIntentRequest,
930
834
  },
931
835
  {
932
836
  name: 'leadId',
@@ -955,49 +859,6 @@ const endpoints = makeApi([
955
859
  ],
956
860
  response: z.void(),
957
861
  },
958
- {
959
- method: 'put',
960
- path: '/lead/:leadId/search-intents',
961
- alias: 'updateSearchIntent',
962
- requestFormat: 'json',
963
- parameters: [
964
- {
965
- name: 'body',
966
- type: 'Body',
967
- schema: SearchIntentRequest,
968
- },
969
- {
970
- name: 'leadId',
971
- type: 'Path',
972
- schema: z.string().uuid(),
973
- },
974
- {
975
- name: 'index',
976
- type: 'Query',
977
- schema: z.number().int(),
978
- },
979
- ],
980
- response: z.void(),
981
- },
982
- {
983
- method: 'post',
984
- path: '/lead/:leadId/search-intents',
985
- alias: 'addSearchIntent',
986
- requestFormat: 'json',
987
- parameters: [
988
- {
989
- name: 'body',
990
- type: 'Body',
991
- schema: SearchIntentRequest,
992
- },
993
- {
994
- name: 'leadId',
995
- type: 'Path',
996
- schema: z.string().uuid(),
997
- },
998
- ],
999
- response: z.void(),
1000
- },
1001
862
  {
1002
863
  method: 'put',
1003
864
  path: '/lead/:leadId/source',