@homespot-sdk/core 0.0.345 → 0.0.346

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.
Files changed (61) hide show
  1. package/dist/property/schemas.gen.d.ts +4 -0
  2. package/dist/property/schemas.gen.d.ts.map +1 -1
  3. package/dist/property/schemas.gen.js +4 -0
  4. package/dist/property/schemas.gen.js.map +1 -1
  5. package/dist/property/types.gen.d.ts +1 -0
  6. package/dist/property/types.gen.d.ts.map +1 -1
  7. package/dist/property/zod.gen.d.ts +3 -0
  8. package/dist/property/zod.gen.d.ts.map +1 -1
  9. package/dist/property/zod.gen.js +8 -0
  10. package/dist/property/zod.gen.js.map +1 -1
  11. package/dist/registration/schemas.gen.d.ts +4 -0
  12. package/dist/registration/schemas.gen.d.ts.map +1 -1
  13. package/dist/registration/schemas.gen.js +4 -0
  14. package/dist/registration/schemas.gen.js.map +1 -1
  15. package/dist/registration/types.gen.d.ts +1 -0
  16. package/dist/registration/types.gen.d.ts.map +1 -1
  17. package/dist/registration/zod.gen.d.ts +3 -0
  18. package/dist/registration/zod.gen.d.ts.map +1 -1
  19. package/dist/registration/zod.gen.js +8 -0
  20. package/dist/registration/zod.gen.js.map +1 -1
  21. package/dist/rem/index.d.ts +2 -2
  22. package/dist/rem/index.d.ts.map +1 -1
  23. package/dist/rem/index.js +1 -1
  24. package/dist/rem/index.js.map +1 -1
  25. package/dist/rem/schemas.gen.d.ts +49 -142
  26. package/dist/rem/schemas.gen.d.ts.map +1 -1
  27. package/dist/rem/schemas.gen.js +60 -161
  28. package/dist/rem/schemas.gen.js.map +1 -1
  29. package/dist/rem/sdk.gen.d.ts +4 -9
  30. package/dist/rem/sdk.gen.d.ts.map +1 -1
  31. package/dist/rem/sdk.gen.js +14 -48
  32. package/dist/rem/sdk.gen.js.map +1 -1
  33. package/dist/rem/transformers.gen.d.ts +2 -3
  34. package/dist/rem/transformers.gen.d.ts.map +1 -1
  35. package/dist/rem/transformers.gen.js +4 -15
  36. package/dist/rem/transformers.gen.js.map +1 -1
  37. package/dist/rem/types.gen.d.ts +63 -173
  38. package/dist/rem/types.gen.d.ts.map +1 -1
  39. package/dist/rem/zod.gen.d.ts +187 -289
  40. package/dist/rem/zod.gen.d.ts.map +1 -1
  41. package/dist/rem/zod.gen.js +98 -170
  42. package/dist/rem/zod.gen.js.map +1 -1
  43. package/dist/utils/index.d.ts +2 -2
  44. package/dist/utils/index.d.ts.map +1 -1
  45. package/dist/utils/index.js +1 -1
  46. package/dist/utils/index.js.map +1 -1
  47. package/dist/utils/schemas.gen.d.ts +27 -0
  48. package/dist/utils/schemas.gen.d.ts.map +1 -1
  49. package/dist/utils/schemas.gen.js +27 -0
  50. package/dist/utils/schemas.gen.js.map +1 -1
  51. package/dist/utils/sdk.gen.d.ts +2 -2
  52. package/dist/utils/sdk.gen.d.ts.map +1 -1
  53. package/dist/utils/sdk.gen.js +1 -4
  54. package/dist/utils/sdk.gen.js.map +1 -1
  55. package/dist/utils/types.gen.d.ts +26 -12
  56. package/dist/utils/types.gen.d.ts.map +1 -1
  57. package/dist/utils/zod.gen.d.ts +27 -8
  58. package/dist/utils/zod.gen.d.ts.map +1 -1
  59. package/dist/utils/zod.gen.js +70 -7
  60. package/dist/utils/zod.gen.js.map +1 -1
  61. package/package.json +1 -1
@@ -134,6 +134,7 @@ export type CaptureInterestRequest = {
134
134
  };
135
135
  export type LocationTargetRequest = {
136
136
  id: number;
137
+ parentId?: number;
137
138
  type: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
138
139
  };
139
140
  export type TitleRequest = {
@@ -180,19 +181,9 @@ export type ReorderTodoTemplatesRequest = {
180
181
  export type RecolorStageRequest = {
181
182
  color: string;
182
183
  };
183
- export type DeactivateStageRequest = {
184
- migrateToStageId?: string;
185
- };
186
184
  export type ReorderStagesRequest = {
187
185
  stageIds: Array<string>;
188
186
  };
189
- export type SetTaskSettingsRequest = {
190
- defaultBoardId: string;
191
- /**
192
- * Active stage of the default board; null = entry stage at use time
193
- */
194
- defaultStageId?: string;
195
- };
196
187
  export type AddressRequest = {
197
188
  country: string;
198
189
  city: string;
@@ -618,9 +609,6 @@ export type TaskDetailResponse = {
618
609
  stageId: string;
619
610
  stageName: string;
620
611
  stageColor: string;
621
- /**
622
- * Fractional index within the stage
623
- */
624
612
  rank: string;
625
613
  stageEnteredAt: Date;
626
614
  title: string;
@@ -682,7 +670,6 @@ export type BoardCardsResponse = {
682
670
  boardId: string;
683
671
  name: string;
684
672
  kind?: 'OWNER' | 'SEEKER';
685
- archived: boolean;
686
673
  members: Array<MemberPeekResponse>;
687
674
  columns: Array<Column>;
688
675
  };
@@ -702,6 +689,8 @@ export type CursorPageTaskCardResponse = {
702
689
  };
703
690
  export type TaskCardResponse = {
704
691
  taskId: string;
692
+ stageId: string;
693
+ stageName: string;
705
694
  title: string;
706
695
  hasDescription: boolean;
707
696
  commentCount: number;
@@ -716,9 +705,6 @@ export type TaskCardResponse = {
716
705
  contactAssignedTo?: string;
717
706
  primaryContent?: TaskContentInterest | TaskContentProperty;
718
707
  participants: Array<string>;
719
- /**
720
- * Fractional index within the stage. Cards arrive in this order; holding every neighbour's key is what lets the client compute a drop target locally and render the reorder before the PATCH returns.
721
- */
722
708
  rank: string;
723
709
  stageEnteredAt: Date;
724
710
  daysInStage: number;
@@ -726,6 +712,9 @@ export type TaskCardResponse = {
726
712
  totalTodos: number;
727
713
  hasLeftoverOpenTodos: boolean;
728
714
  expectedCloseDate?: Date;
715
+ outcome?: 'WON' | 'LOST';
716
+ lostReason?: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
717
+ closedAt?: Date;
729
718
  };
730
719
  export type TaskContent = {
731
720
  type: string;
@@ -747,32 +736,6 @@ export type StageCardsResponse = {
747
736
  members: Array<MemberPeekResponse>;
748
737
  data: CursorPageTaskCardResponse;
749
738
  };
750
- export type ClosedTaskResponse = {
751
- taskId: string;
752
- title: string;
753
- value?: number;
754
- ownerId?: string;
755
- primaryContactId?: number;
756
- primaryContact?: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
757
- contactAssignedTo?: string;
758
- outcome: 'WON' | 'LOST';
759
- lostReason?: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
760
- closedAt: Date;
761
- /**
762
- * Stage the task closed from
763
- */
764
- stageName: string;
765
- };
766
- export type PageMetadata = {
767
- size?: number;
768
- number?: number;
769
- totalElements?: number;
770
- totalPages?: number;
771
- };
772
- export type PagedModelClosedTaskResponse = {
773
- content?: Array<ClosedTaskResponse>;
774
- page?: PageMetadata;
775
- };
776
739
  export type BoardWinRate = {
777
740
  boardId: string;
778
741
  name: string;
@@ -974,6 +937,12 @@ export type StatsEnvelopeDemandStats = {
974
937
  computedAt: Date;
975
938
  data: DemandStats;
976
939
  };
940
+ export type PageMetadata = {
941
+ size?: number;
942
+ number?: number;
943
+ totalElements?: number;
944
+ totalPages?: number;
945
+ };
977
946
  export type PagedModelRoleResponse = {
978
947
  content?: Array<RoleResponse>;
979
948
  page?: PageMetadata;
@@ -1657,7 +1626,6 @@ export type BoardSummaryResponse = {
1657
1626
  boardId: string;
1658
1627
  kind?: 'OWNER' | 'SEEKER';
1659
1628
  name: string;
1660
- archived: boolean;
1661
1629
  stages: Array<StageSummaryResponse>;
1662
1630
  };
1663
1631
  export type StageSummaryResponse = {
@@ -1670,7 +1638,6 @@ export type BoardResponse = {
1670
1638
  boardId: string;
1671
1639
  kind?: 'OWNER' | 'SEEKER';
1672
1640
  name: string;
1673
- archived: boolean;
1674
1641
  stages: Array<StageResponse>;
1675
1642
  createdAt: Date;
1676
1643
  };
@@ -1679,7 +1646,6 @@ export type StageResponse = {
1679
1646
  name: string;
1680
1647
  color: string;
1681
1648
  position: number;
1682
- active: boolean;
1683
1649
  todoTemplates: Array<TodoTemplateResponse>;
1684
1650
  };
1685
1651
  export type TodoTemplateResponse = {
@@ -1687,10 +1653,6 @@ export type TodoTemplateResponse = {
1687
1653
  title: string;
1688
1654
  position: number;
1689
1655
  };
1690
- export type TaskSettingsResponse = {
1691
- defaultBoardId?: string;
1692
- defaultStageId?: string;
1693
- };
1694
1656
  export type AddressViewResponse = {
1695
1657
  country: string;
1696
1658
  city: string;
@@ -2557,21 +2519,6 @@ export type PutContactMergeResponses = {
2557
2519
  204: void;
2558
2520
  };
2559
2521
  export type PutContactMergeResponse = PutContactMergeResponses[keyof PutContactMergeResponses];
2560
- export type PutBoardByBoardIdUnarchiveData = {
2561
- body?: never;
2562
- path: {
2563
- boardId: string;
2564
- };
2565
- query?: never;
2566
- url: '/board/{boardId}/unarchive';
2567
- };
2568
- export type PutBoardByBoardIdUnarchiveResponses = {
2569
- /**
2570
- * No Content
2571
- */
2572
- 204: void;
2573
- };
2574
- export type PutBoardByBoardIdUnarchiveResponse = PutBoardByBoardIdUnarchiveResponses[keyof PutBoardByBoardIdUnarchiveResponses];
2575
2522
  export type PutBoardByBoardIdStageByStageIdTemplateByTemplateIdRenameData = {
2576
2523
  body: RenameRequest;
2577
2524
  path: {
@@ -2637,38 +2584,6 @@ export type PutBoardByBoardIdStageByStageIdRecolorResponses = {
2637
2584
  204: void;
2638
2585
  };
2639
2586
  export type PutBoardByBoardIdStageByStageIdRecolorResponse = PutBoardByBoardIdStageByStageIdRecolorResponses[keyof PutBoardByBoardIdStageByStageIdRecolorResponses];
2640
- export type PutBoardByBoardIdStageByStageIdReactivateData = {
2641
- body?: never;
2642
- path: {
2643
- boardId: string;
2644
- stageId: string;
2645
- };
2646
- query?: never;
2647
- url: '/board/{boardId}/stage/{stageId}/reactivate';
2648
- };
2649
- export type PutBoardByBoardIdStageByStageIdReactivateResponses = {
2650
- /**
2651
- * No Content
2652
- */
2653
- 204: void;
2654
- };
2655
- export type PutBoardByBoardIdStageByStageIdReactivateResponse = PutBoardByBoardIdStageByStageIdReactivateResponses[keyof PutBoardByBoardIdStageByStageIdReactivateResponses];
2656
- export type PutBoardByBoardIdStageByStageIdDeactivateData = {
2657
- body?: DeactivateStageRequest;
2658
- path: {
2659
- boardId: string;
2660
- stageId: string;
2661
- };
2662
- query?: never;
2663
- url: '/board/{boardId}/stage/{stageId}/deactivate';
2664
- };
2665
- export type PutBoardByBoardIdStageByStageIdDeactivateResponses = {
2666
- /**
2667
- * No Content
2668
- */
2669
- 204: void;
2670
- };
2671
- export type PutBoardByBoardIdStageByStageIdDeactivateResponse = PutBoardByBoardIdStageByStageIdDeactivateResponses[keyof PutBoardByBoardIdStageByStageIdDeactivateResponses];
2672
2587
  export type PutBoardByBoardIdStageOrderData = {
2673
2588
  body: ReorderStagesRequest;
2674
2589
  path: {
@@ -2699,47 +2614,6 @@ export type PutBoardByBoardIdRenameResponses = {
2699
2614
  204: void;
2700
2615
  };
2701
2616
  export type PutBoardByBoardIdRenameResponse = PutBoardByBoardIdRenameResponses[keyof PutBoardByBoardIdRenameResponses];
2702
- export type PutBoardByBoardIdArchiveData = {
2703
- body?: never;
2704
- path: {
2705
- boardId: string;
2706
- };
2707
- query?: never;
2708
- url: '/board/{boardId}/archive';
2709
- };
2710
- export type PutBoardByBoardIdArchiveResponses = {
2711
- /**
2712
- * No Content
2713
- */
2714
- 204: void;
2715
- };
2716
- export type PutBoardByBoardIdArchiveResponse = PutBoardByBoardIdArchiveResponses[keyof PutBoardByBoardIdArchiveResponses];
2717
- export type GetBoardSettingsData = {
2718
- body?: never;
2719
- path?: never;
2720
- query?: never;
2721
- url: '/board/settings';
2722
- };
2723
- export type GetBoardSettingsResponses = {
2724
- /**
2725
- * OK
2726
- */
2727
- 200: TaskSettingsResponse;
2728
- };
2729
- export type GetBoardSettingsResponse = GetBoardSettingsResponses[keyof GetBoardSettingsResponses];
2730
- export type PutBoardSettingsData = {
2731
- body: SetTaskSettingsRequest;
2732
- path?: never;
2733
- query?: never;
2734
- url: '/board/settings';
2735
- };
2736
- export type PutBoardSettingsResponses = {
2737
- /**
2738
- * No Content
2739
- */
2740
- 204: void;
2741
- };
2742
- export type PutBoardSettingsResponse = PutBoardSettingsResponses[keyof PutBoardSettingsResponses];
2743
2617
  export type PutAgencyByAgencyIdDetailsData = {
2744
2618
  body: CreateAgencyRequest;
2745
2619
  path: {
@@ -4058,7 +3932,12 @@ export type GetTaskBoardByBoardIdData = {
4058
3932
  path: {
4059
3933
  boardId: string;
4060
3934
  };
4061
- query?: never;
3935
+ query?: {
3936
+ status?: 'ACTIVE' | 'WON' | 'LOST' | 'CLOSED';
3937
+ assignedTo?: Array<string>;
3938
+ from?: Date;
3939
+ to?: Date;
3940
+ };
4062
3941
  url: '/task/board/{boardId}';
4063
3942
  };
4064
3943
  export type GetTaskBoardByBoardIdResponses = {
@@ -4068,54 +3947,29 @@ export type GetTaskBoardByBoardIdResponses = {
4068
3947
  200: BoardCardsResponse;
4069
3948
  };
4070
3949
  export type GetTaskBoardByBoardIdResponse = GetTaskBoardByBoardIdResponses[keyof GetTaskBoardByBoardIdResponses];
4071
- export type GetTaskBoardByBoardIdStageByStageIdCardsData = {
3950
+ export type GetTaskBoardByBoardIdCardsData = {
4072
3951
  body?: never;
4073
3952
  path: {
4074
3953
  boardId: string;
4075
- stageId: string;
4076
3954
  };
4077
3955
  query?: {
3956
+ stageId?: string;
3957
+ status?: 'ACTIVE' | 'WON' | 'LOST' | 'CLOSED';
3958
+ assignedTo?: Array<string>;
3959
+ from?: Date;
3960
+ to?: Date;
4078
3961
  cursor?: string;
4079
3962
  limit?: number;
4080
3963
  };
4081
- url: '/task/board/{boardId}/stage/{stageId}/cards';
3964
+ url: '/task/board/{boardId}/cards';
4082
3965
  };
4083
- export type GetTaskBoardByBoardIdStageByStageIdCardsResponses = {
3966
+ export type GetTaskBoardByBoardIdCardsResponses = {
4084
3967
  /**
4085
3968
  * OK
4086
3969
  */
4087
3970
  200: StageCardsResponse;
4088
3971
  };
4089
- export type GetTaskBoardByBoardIdStageByStageIdCardsResponse = GetTaskBoardByBoardIdStageByStageIdCardsResponses[keyof GetTaskBoardByBoardIdStageByStageIdCardsResponses];
4090
- export type GetTaskBoardByBoardIdClosedData = {
4091
- body?: never;
4092
- path: {
4093
- boardId: string;
4094
- };
4095
- query?: {
4096
- outcome?: 'WON' | 'LOST';
4097
- /**
4098
- * Zero-based page index (0..N)
4099
- */
4100
- page?: number;
4101
- /**
4102
- * The size of the page to be returned
4103
- */
4104
- size?: number;
4105
- /**
4106
- * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
4107
- */
4108
- sort?: Array<string>;
4109
- };
4110
- url: '/task/board/{boardId}/closed';
4111
- };
4112
- export type GetTaskBoardByBoardIdClosedResponses = {
4113
- /**
4114
- * OK
4115
- */
4116
- 200: PagedModelClosedTaskResponse;
4117
- };
4118
- export type GetTaskBoardByBoardIdClosedResponse = GetTaskBoardByBoardIdClosedResponses[keyof GetTaskBoardByBoardIdClosedResponses];
3972
+ export type GetTaskBoardByBoardIdCardsResponse = GetTaskBoardByBoardIdCardsResponses[keyof GetTaskBoardByBoardIdCardsResponses];
4119
3973
  export type GetStatisticsWinRateData = {
4120
3974
  body?: never;
4121
3975
  path?: never;
@@ -5039,6 +4893,24 @@ export type GetContactGroupsResponses = {
5039
4893
  200: Array<GroupCount>;
5040
4894
  };
5041
4895
  export type GetContactGroupsResponse = GetContactGroupsResponses[keyof GetContactGroupsResponses];
4896
+ export type DeleteBoardByBoardIdData = {
4897
+ body?: never;
4898
+ path: {
4899
+ boardId: string;
4900
+ };
4901
+ query?: {
4902
+ migrateToBoard?: string;
4903
+ migrateToStage?: string;
4904
+ };
4905
+ url: '/board/{boardId}';
4906
+ };
4907
+ export type DeleteBoardByBoardIdResponses = {
4908
+ /**
4909
+ * No Content
4910
+ */
4911
+ 204: void;
4912
+ };
4913
+ export type DeleteBoardByBoardIdResponse = DeleteBoardByBoardIdResponses[keyof DeleteBoardByBoardIdResponses];
5042
4914
  export type GetBoardByBoardIdData = {
5043
4915
  body?: never;
5044
4916
  path: {
@@ -5237,6 +5109,24 @@ export type DeleteContactsByContactIdInterestsByInterestIdListingsByExternalList
5237
5109
  204: void;
5238
5110
  };
5239
5111
  export type DeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponse = DeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponses[keyof DeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponses];
5112
+ export type DeleteBoardByBoardIdStageByStageIdData = {
5113
+ body?: never;
5114
+ path: {
5115
+ boardId: string;
5116
+ stageId: string;
5117
+ };
5118
+ query?: {
5119
+ migrateTo?: string;
5120
+ };
5121
+ url: '/board/{boardId}/stage/{stageId}';
5122
+ };
5123
+ export type DeleteBoardByBoardIdStageByStageIdResponses = {
5124
+ /**
5125
+ * No Content
5126
+ */
5127
+ 204: void;
5128
+ };
5129
+ export type DeleteBoardByBoardIdStageByStageIdResponse = DeleteBoardByBoardIdStageByStageIdResponses[keyof DeleteBoardByBoardIdStageByStageIdResponses];
5240
5130
  export type DeleteBoardByBoardIdStageByStageIdTemplateByTemplateIdData = {
5241
5131
  body?: never;
5242
5132
  path: {