@homespot-sdk/validators 0.0.641 → 0.0.642

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
@@ -26,6 +26,123 @@ const BatchAssignRoleRequest = zod_1.z
26
26
  memberIds: zod_1.z.array(zod_1.z.string().uuid()).min(1),
27
27
  })
28
28
  .passthrough();
29
+ const ChangeStatusRequest = zod_1.z
30
+ .object({
31
+ status: zod_1.z.enum([
32
+ 'NEW',
33
+ 'ATTEMPTED_CONTACT',
34
+ 'CONTACTED',
35
+ 'DISQUALIFIED',
36
+ 'CONVERTED',
37
+ 'LOST',
38
+ ]),
39
+ })
40
+ .passthrough();
41
+ const SourceRequest = zod_1.z.object({ sourceUrl: zod_1.z.string().min(1) }).passthrough();
42
+ const PriceRangeRequest = zod_1.z
43
+ .object({ min: zod_1.z.number(), max: zod_1.z.number() })
44
+ .partial()
45
+ .passthrough();
46
+ const LocationRefRequest = zod_1.z
47
+ .object({
48
+ regionId: zod_1.z.number().int(),
49
+ cityId: zod_1.z.number().int(),
50
+ districtId: zod_1.z.number().int(),
51
+ subDistrictId: zod_1.z.number().int(),
52
+ streetId: zod_1.z.number().int(),
53
+ })
54
+ .partial()
55
+ .passthrough();
56
+ const SearchIntentRequest = zod_1.z
57
+ .object({
58
+ propertyType: zod_1.z.enum([
59
+ 'HOUSE',
60
+ 'TOWN_HOUSE',
61
+ 'COUNTRY_HOUSE',
62
+ 'VILLA',
63
+ 'COTTAGE',
64
+ 'APARTMENT',
65
+ 'DUPLEX',
66
+ 'TRIPLEX',
67
+ 'SEMI_BASEMENT',
68
+ 'ATTIC',
69
+ 'AGRICULTURAL_LAND',
70
+ 'RESIDENTIAL_LAND',
71
+ 'HOTEL_ROOM',
72
+ 'MOTEL_ROOM',
73
+ 'CO_LIVING_SPACE',
74
+ 'OFFICE',
75
+ 'COMMERCIAL_SPACE',
76
+ 'CO_WORKING_SPACE',
77
+ 'WAREHOUSE',
78
+ 'GARAGE',
79
+ ]),
80
+ dealType: zod_1.z.enum(['BUY', 'RENT']),
81
+ budget: PriceRangeRequest.optional(),
82
+ targetLocation: LocationRefRequest.optional(),
83
+ area: zod_1.z.number().optional(),
84
+ numberOfRooms: zod_1.z.number().int().optional(),
85
+ })
86
+ .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
+ const ContactInfoRequest = zod_1.z
136
+ .object({
137
+ firstName: zod_1.z.string().optional(),
138
+ lastName: zod_1.z.string().optional(),
139
+ email: zod_1.z.string().email().optional(),
140
+ phone: zod_1.z.string().min(1),
141
+ })
142
+ .passthrough();
143
+ const AssignToMemberRequest = zod_1.z
144
+ .object({ memberId: zod_1.z.string().uuid() })
145
+ .passthrough();
29
146
  const AddressRequest = zod_1.z
30
147
  .object({
31
148
  country: zod_1.z.string().min(0).max(100),
@@ -61,8 +178,15 @@ const SocialMediaRequest = zod_1.z
61
178
  const SocialMediasRequest = zod_1.z
62
179
  .object({ data: zod_1.z.array(SocialMediaRequest).min(1).max(5) })
63
180
  .passthrough();
181
+ const CreateLeadRequest = zod_1.z
182
+ .object({
183
+ contactInfo: ContactInfoRequest,
184
+ note: zod_1.z.string().min(0).max(500).optional(),
185
+ sourceUrl: zod_1.z.string().optional(),
186
+ })
187
+ .passthrough();
64
188
  const InvitationDetailsRequest = zod_1.z
65
- .object({ email: zod_1.z.string().min(1), roleId: zod_1.z.number().int() })
189
+ .object({ email: zod_1.z.string().email(), roleId: zod_1.z.number().int() })
66
190
  .passthrough();
67
191
  const InviteMemberRequest = zod_1.z
68
192
  .object({ emails: zod_1.z.array(InvitationDetailsRequest).min(1) })
@@ -138,18 +262,18 @@ const SortObject = zod_1.z
138
262
  const PageableObject = zod_1.z
139
263
  .object({
140
264
  offset: zod_1.z.number().int(),
265
+ unpaged: zod_1.z.boolean(),
141
266
  paged: zod_1.z.boolean(),
142
267
  pageNumber: zod_1.z.number().int(),
143
268
  pageSize: zod_1.z.number().int(),
144
269
  sort: SortObject,
145
- unpaged: zod_1.z.boolean(),
146
270
  })
147
271
  .partial()
148
272
  .passthrough();
149
273
  const PageRoleResponse = zod_1.z
150
274
  .object({
151
- totalElements: zod_1.z.number().int(),
152
275
  totalPages: zod_1.z.number().int(),
276
+ totalElements: zod_1.z.number().int(),
153
277
  size: zod_1.z.number().int(),
154
278
  content: zod_1.z.array(RoleResponse),
155
279
  number: zod_1.z.number().int(),
@@ -200,26 +324,6 @@ const PagedModelAgencySummaryResponse = zod_1.z
200
324
  .object({ content: zod_1.z.array(AgencySummaryResponse), page: PageMetadata })
201
325
  .partial()
202
326
  .passthrough();
203
- const AddressViewResponse = zod_1.z
204
- .object({
205
- country: zod_1.z.string(),
206
- city: zod_1.z.string(),
207
- district: zod_1.z.string(),
208
- subdistrict: zod_1.z.string(),
209
- street: zod_1.z.string(),
210
- })
211
- .passthrough();
212
- const AgencyProfileResponse = zod_1.z
213
- .object({
214
- name: zod_1.z.string(),
215
- email: zod_1.z.string(),
216
- seats: zod_1.z.number().int(),
217
- subDomain: zod_1.z.string(),
218
- phone: zod_1.z.string(),
219
- address: AddressViewResponse,
220
- yearSince: zod_1.z.number().int(),
221
- })
222
- .passthrough();
223
327
  const PermissionResponse = zod_1.z
224
328
  .object({
225
329
  permission: zod_1.z.enum([
@@ -264,6 +368,122 @@ const PagedModelMemberViewResponse = zod_1.z
264
368
  .object({ content: zod_1.z.array(MemberViewResponse), page: PageMetadata })
265
369
  .partial()
266
370
  .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
408
+ .object({
409
+ propertyType: zod_1.z.enum([
410
+ 'HOUSE',
411
+ 'TOWN_HOUSE',
412
+ 'COUNTRY_HOUSE',
413
+ 'VILLA',
414
+ 'COTTAGE',
415
+ 'APARTMENT',
416
+ 'DUPLEX',
417
+ 'TRIPLEX',
418
+ 'SEMI_BASEMENT',
419
+ 'ATTIC',
420
+ 'AGRICULTURAL_LAND',
421
+ 'RESIDENTIAL_LAND',
422
+ 'HOTEL_ROOM',
423
+ 'MOTEL_ROOM',
424
+ 'CO_LIVING_SPACE',
425
+ 'OFFICE',
426
+ 'COMMERCIAL_SPACE',
427
+ 'CO_WORKING_SPACE',
428
+ 'WAREHOUSE',
429
+ 'GARAGE',
430
+ ]),
431
+ dealType: zod_1.z.enum(['BUY', 'RENT']),
432
+ desiredPriceMin: zod_1.z.number().optional(),
433
+ desiredPriceMax: zod_1.z.number().optional(),
434
+ regionId: zod_1.z.number().int().optional(),
435
+ cityId: zod_1.z.number().int().optional(),
436
+ districtId: zod_1.z.number().int().optional(),
437
+ subDistrictId: zod_1.z.number().int().optional(),
438
+ streetId: zod_1.z.number().int().optional(),
439
+ lat: zod_1.z.number().optional(),
440
+ lng: zod_1.z.number().optional(),
441
+ area: zod_1.z.number().optional(),
442
+ numberOfRooms: zod_1.z.number().int().optional(),
443
+ })
444
+ .passthrough();
445
+ const LeadProjectionResponse = zod_1.z
446
+ .object({
447
+ id: zod_1.z.string().uuid(),
448
+ createdBy: zod_1.z.string().uuid(),
449
+ assignedTo: zod_1.z.string().uuid().optional(),
450
+ status: zod_1.z.enum([
451
+ 'NEW',
452
+ 'ATTEMPTED_CONTACT',
453
+ 'CONTACTED',
454
+ 'DISQUALIFIED',
455
+ 'CONVERTED',
456
+ 'LOST',
457
+ ]),
458
+ contactFullName: zod_1.z.string().optional(),
459
+ contactPhoneNumber: zod_1.z.string(),
460
+ contactEmail: zod_1.z.string().optional(),
461
+ noteTitle: zod_1.z.string().optional(),
462
+ noteContent: zod_1.z.string().optional(),
463
+ sourceType: zod_1.z.string().optional(),
464
+ 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(),
469
+ })
470
+ .passthrough();
471
+ const PageLeadProjectionResponse = zod_1.z
472
+ .object({
473
+ totalPages: zod_1.z.number().int(),
474
+ totalElements: zod_1.z.number().int(),
475
+ size: zod_1.z.number().int(),
476
+ content: zod_1.z.array(LeadProjectionResponse),
477
+ number: zod_1.z.number().int(),
478
+ first: zod_1.z.boolean(),
479
+ last: zod_1.z.boolean(),
480
+ numberOfElements: zod_1.z.number().int(),
481
+ pageable: PageableObject,
482
+ sort: SortObject,
483
+ empty: zod_1.z.boolean(),
484
+ })
485
+ .partial()
486
+ .passthrough();
267
487
  const InvitationViewResponse = zod_1.z
268
488
  .object({
269
489
  invitationId: zod_1.z.string().uuid(),
@@ -279,14 +499,46 @@ const PagedModelInvitationViewResponse = zod_1.z
279
499
  .object({ content: zod_1.z.array(InvitationViewResponse), page: PageMetadata })
280
500
  .partial()
281
501
  .passthrough();
502
+ const AddressViewResponse = zod_1.z
503
+ .object({
504
+ country: zod_1.z.string(),
505
+ city: zod_1.z.string(),
506
+ district: zod_1.z.string(),
507
+ subdistrict: zod_1.z.string(),
508
+ street: zod_1.z.string(),
509
+ })
510
+ .passthrough();
511
+ const AgencyProfileResponse = zod_1.z
512
+ .object({
513
+ name: zod_1.z.string(),
514
+ email: zod_1.z.string(),
515
+ seats: zod_1.z.number().int(),
516
+ subDomain: zod_1.z.string(),
517
+ phone: zod_1.z.string(),
518
+ address: AddressViewResponse,
519
+ yearSince: zod_1.z.number().int(),
520
+ })
521
+ .passthrough();
282
522
  exports.schemas = {
283
523
  RolesRequest,
284
524
  AssignRoleRequest,
285
525
  BatchAssignRoleRequest,
526
+ ChangeStatusRequest,
527
+ SourceRequest,
528
+ PriceRangeRequest,
529
+ LocationRefRequest,
530
+ SearchIntentRequest,
531
+ UpdateNoteRequest,
532
+ CoordinatesRequest,
533
+ AddressRefRequest,
534
+ ListingIntentRequest,
535
+ ContactInfoRequest,
536
+ AssignToMemberRequest,
286
537
  AddressRequest,
287
538
  CreateAgencyRequest,
288
539
  SocialMediaRequest,
289
540
  SocialMediasRequest,
541
+ CreateLeadRequest,
290
542
  InvitationDetailsRequest,
291
543
  InviteMemberRequest,
292
544
  PhotoRequest,
@@ -305,14 +557,18 @@ exports.schemas = {
305
557
  AgencySummaryResponse,
306
558
  PageMetadata,
307
559
  PagedModelAgencySummaryResponse,
308
- AddressViewResponse,
309
- AgencyProfileResponse,
310
560
  PermissionResponse,
311
561
  GroupedPermissionsResponse,
312
562
  MemberViewResponse,
313
563
  PagedModelMemberViewResponse,
564
+ SearchIntentResponse,
565
+ ListingIntentResponse,
566
+ LeadProjectionResponse,
567
+ PageLeadProjectionResponse,
314
568
  InvitationViewResponse,
315
569
  PagedModelInvitationViewResponse,
570
+ AddressViewResponse,
571
+ AgencyProfileResponse,
316
572
  };
317
573
  const endpoints = (0, core_1.makeApi)([
318
574
  {
@@ -329,6 +585,20 @@ const endpoints = (0, core_1.makeApi)([
329
585
  ],
330
586
  response: zod_1.z.void(),
331
587
  },
588
+ {
589
+ method: 'get',
590
+ path: '/agency/:agencyId',
591
+ alias: 'getAgency',
592
+ requestFormat: 'json',
593
+ parameters: [
594
+ {
595
+ name: 'agencyId',
596
+ type: 'Path',
597
+ schema: zod_1.z.string().uuid(),
598
+ },
599
+ ],
600
+ response: zod_1.z.void(),
601
+ },
332
602
  {
333
603
  method: 'put',
334
604
  path: '/agency/:agencyId/activate',
@@ -478,6 +748,289 @@ const endpoints = (0, core_1.makeApi)([
478
748
  ],
479
749
  response: zod_1.z.void(),
480
750
  },
751
+ {
752
+ method: 'get',
753
+ path: '/lead',
754
+ alias: 'searchLeads',
755
+ requestFormat: 'json',
756
+ parameters: [
757
+ {
758
+ name: 'status',
759
+ type: 'Query',
760
+ schema: zod_1.z
761
+ .enum([
762
+ 'NEW',
763
+ 'ATTEMPTED_CONTACT',
764
+ 'CONTACTED',
765
+ 'DISQUALIFIED',
766
+ 'CONVERTED',
767
+ 'LOST',
768
+ ])
769
+ .optional(),
770
+ },
771
+ {
772
+ name: 'isSearcher',
773
+ type: 'Query',
774
+ schema: zod_1.z.boolean().optional(),
775
+ },
776
+ {
777
+ name: 'isLister',
778
+ type: 'Query',
779
+ schema: zod_1.z.boolean().optional(),
780
+ },
781
+ {
782
+ name: 'page',
783
+ type: 'Query',
784
+ schema: zod_1.z.number().int().gte(0).optional().default(0),
785
+ },
786
+ {
787
+ name: 'size',
788
+ type: 'Query',
789
+ schema: zod_1.z.number().int().gte(1).optional().default(20),
790
+ },
791
+ {
792
+ name: 'sort',
793
+ type: 'Query',
794
+ schema: zod_1.z.array(zod_1.z.string()).optional(),
795
+ },
796
+ ],
797
+ response: zod_1.z.void(),
798
+ },
799
+ {
800
+ method: 'post',
801
+ path: '/lead',
802
+ alias: 'createLead',
803
+ requestFormat: 'json',
804
+ parameters: [
805
+ {
806
+ name: 'body',
807
+ type: 'Body',
808
+ schema: CreateLeadRequest,
809
+ },
810
+ ],
811
+ response: zod_1.z.void(),
812
+ },
813
+ {
814
+ method: 'get',
815
+ path: '/lead/:leadId',
816
+ alias: 'getLeadById',
817
+ requestFormat: 'json',
818
+ parameters: [
819
+ {
820
+ name: 'leadId',
821
+ type: 'Path',
822
+ schema: zod_1.z.string().uuid(),
823
+ },
824
+ ],
825
+ response: zod_1.z.void(),
826
+ },
827
+ {
828
+ method: 'delete',
829
+ path: '/lead/:leadId',
830
+ alias: 'removeIntent',
831
+ requestFormat: 'json',
832
+ parameters: [
833
+ {
834
+ name: 'leadId',
835
+ type: 'Path',
836
+ schema: zod_1.z.string().uuid(),
837
+ },
838
+ {
839
+ name: 'index',
840
+ type: 'Query',
841
+ schema: zod_1.z.number().int(),
842
+ },
843
+ {
844
+ name: 'type',
845
+ type: 'Query',
846
+ schema: zod_1.z.enum(['SEARCH', 'LISTING']),
847
+ },
848
+ ],
849
+ response: zod_1.z.void(),
850
+ },
851
+ {
852
+ method: 'put',
853
+ path: '/lead/:leadId/assign',
854
+ alias: 'assignToAgent',
855
+ requestFormat: 'json',
856
+ parameters: [
857
+ {
858
+ name: 'body',
859
+ type: 'Body',
860
+ schema: zod_1.z.object({ memberId: zod_1.z.string().uuid() }).passthrough(),
861
+ },
862
+ {
863
+ name: 'leadId',
864
+ type: 'Path',
865
+ schema: zod_1.z.string().uuid(),
866
+ },
867
+ ],
868
+ response: zod_1.z.void(),
869
+ },
870
+ {
871
+ method: 'put',
872
+ path: '/lead/:leadId/contact-info',
873
+ alias: 'updateContactInfo',
874
+ requestFormat: 'json',
875
+ parameters: [
876
+ {
877
+ name: 'body',
878
+ type: 'Body',
879
+ schema: ContactInfoRequest,
880
+ },
881
+ {
882
+ name: 'leadId',
883
+ type: 'Path',
884
+ schema: zod_1.z.string().uuid(),
885
+ },
886
+ ],
887
+ response: zod_1.z.void(),
888
+ },
889
+ {
890
+ method: 'put',
891
+ path: '/lead/:leadId/listing-intents',
892
+ alias: 'updateListingIntent',
893
+ requestFormat: 'json',
894
+ parameters: [
895
+ {
896
+ name: 'body',
897
+ type: 'Body',
898
+ schema: ListingIntentRequest,
899
+ },
900
+ {
901
+ name: 'leadId',
902
+ type: 'Path',
903
+ schema: zod_1.z.string().uuid(),
904
+ },
905
+ {
906
+ name: 'index',
907
+ type: 'Query',
908
+ schema: zod_1.z.number().int(),
909
+ },
910
+ ],
911
+ response: zod_1.z.void(),
912
+ },
913
+ {
914
+ method: 'post',
915
+ path: '/lead/:leadId/listing-intents',
916
+ alias: 'addListingIntent',
917
+ requestFormat: 'json',
918
+ parameters: [
919
+ {
920
+ name: 'body',
921
+ type: 'Body',
922
+ schema: ListingIntentRequest,
923
+ },
924
+ {
925
+ name: 'leadId',
926
+ type: 'Path',
927
+ schema: zod_1.z.string().uuid(),
928
+ },
929
+ ],
930
+ response: zod_1.z.void(),
931
+ },
932
+ {
933
+ method: 'put',
934
+ path: '/lead/:leadId/note',
935
+ alias: 'updateNote',
936
+ requestFormat: 'json',
937
+ parameters: [
938
+ {
939
+ name: 'body',
940
+ type: 'Body',
941
+ schema: zod_1.z.object({ note: zod_1.z.string().min(1) }).passthrough(),
942
+ },
943
+ {
944
+ name: 'leadId',
945
+ type: 'Path',
946
+ schema: zod_1.z.string().uuid(),
947
+ },
948
+ ],
949
+ response: zod_1.z.void(),
950
+ },
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
+ {
995
+ method: 'put',
996
+ path: '/lead/:leadId/source',
997
+ alias: 'updateSource',
998
+ requestFormat: 'json',
999
+ parameters: [
1000
+ {
1001
+ name: 'body',
1002
+ type: 'Body',
1003
+ schema: zod_1.z
1004
+ .object({ sourceUrl: zod_1.z.string().min(1) })
1005
+ .passthrough(),
1006
+ },
1007
+ {
1008
+ name: 'leadId',
1009
+ type: 'Path',
1010
+ schema: zod_1.z.string().uuid(),
1011
+ },
1012
+ ],
1013
+ response: zod_1.z.void(),
1014
+ },
1015
+ {
1016
+ method: 'put',
1017
+ path: '/lead/:leadId/status',
1018
+ alias: 'changeStatus',
1019
+ requestFormat: 'json',
1020
+ parameters: [
1021
+ {
1022
+ name: 'body',
1023
+ type: 'Body',
1024
+ schema: ChangeStatusRequest,
1025
+ },
1026
+ {
1027
+ name: 'leadId',
1028
+ type: 'Path',
1029
+ schema: zod_1.z.string().uuid(),
1030
+ },
1031
+ ],
1032
+ response: zod_1.z.void(),
1033
+ },
481
1034
  {
482
1035
  method: 'get',
483
1036
  path: '/member',
@@ -574,20 +1127,6 @@ const endpoints = (0, core_1.makeApi)([
574
1127
  ],
575
1128
  response: zod_1.z.void(),
576
1129
  },
577
- {
578
- method: 'get',
579
- path: '/public/agency/:agencyId',
580
- alias: 'getAgency',
581
- requestFormat: 'json',
582
- parameters: [
583
- {
584
- name: 'agencyId',
585
- type: 'Path',
586
- schema: zod_1.z.string().uuid(),
587
- },
588
- ],
589
- response: zod_1.z.void(),
590
- },
591
1130
  {
592
1131
  method: 'get',
593
1132
  path: '/public/agency/roles/permissions',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homespot-sdk/validators",
3
- "version": "0.0.641",
3
+ "version": "0.0.642",
4
4
  "main": "dist/index.js",
5
5
  "types": "src/index.ts",
6
6
  "files": [