@homespot-sdk/core 0.0.345 → 0.0.347

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 +151 -865
  26. package/dist/rem/schemas.gen.d.ts.map +1 -1
  27. package/dist/rem/schemas.gen.js +124 -880
  28. package/dist/rem/schemas.gen.js.map +1 -1
  29. package/dist/rem/sdk.gen.d.ts +6 -18
  30. package/dist/rem/sdk.gen.d.ts.map +1 -1
  31. package/dist/rem/sdk.gen.js +20 -96
  32. package/dist/rem/sdk.gen.js.map +1 -1
  33. package/dist/rem/transformers.gen.d.ts +4 -12
  34. package/dist/rem/transformers.gen.d.ts.map +1 -1
  35. package/dist/rem/transformers.gen.js +24 -113
  36. package/dist/rem/transformers.gen.js.map +1 -1
  37. package/dist/rem/types.gen.d.ts +100 -480
  38. package/dist/rem/types.gen.d.ts.map +1 -1
  39. package/dist/rem/zod.gen.d.ts +1244 -2109
  40. package/dist/rem/zod.gen.d.ts.map +1 -1
  41. package/dist/rem/zod.gen.js +140 -660
  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,21 +736,31 @@ export type StageCardsResponse = {
747
736
  members: Array<MemberPeekResponse>;
748
737
  data: CursorPageTaskCardResponse;
749
738
  };
750
- export type ClosedTaskResponse = {
751
- taskId: string;
752
- title: string;
739
+ export type Bucket = {
740
+ count?: number;
753
741
  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;
742
+ commission?: number;
743
+ };
744
+ export type PipelineCommissionResponse = {
745
+ from?: Date;
746
+ to?: Date;
747
+ won?: Bucket;
748
+ lost?: Bucket;
749
+ pending?: Bucket;
750
+ total?: Bucket;
751
+ };
752
+ export type ChannelSeries = {
753
+ channel?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
754
+ points?: Array<number>;
755
+ total?: number;
756
+ };
757
+ export type ContactAcquisitionResponse = {
758
+ from?: Date;
759
+ to?: Date;
760
+ granularity?: 'DAY' | 'WEEK' | 'MONTH';
761
+ buckets?: Array<Date>;
762
+ series?: Array<ChannelSeries>;
763
+ total?: number;
765
764
  };
766
765
  export type PageMetadata = {
767
766
  size?: number;
@@ -769,211 +768,6 @@ export type PageMetadata = {
769
768
  totalElements?: number;
770
769
  totalPages?: number;
771
770
  };
772
- export type PagedModelClosedTaskResponse = {
773
- content?: Array<ClosedTaskResponse>;
774
- page?: PageMetadata;
775
- };
776
- export type BoardWinRate = {
777
- boardId: string;
778
- name: string;
779
- won: number;
780
- lost: number;
781
- winRatePct: number;
782
- };
783
- export type MemberWinRate = {
784
- memberId: string;
785
- won: number;
786
- lost: number;
787
- winRatePct: number;
788
- };
789
- export type StatsEnvelopeWinRateStats = {
790
- period: string;
791
- computedAt: Date;
792
- data: WinRateStats;
793
- };
794
- export type WinRateStats = {
795
- won: number;
796
- lost: number;
797
- winRatePct: number;
798
- boards: Array<BoardWinRate>;
799
- members: Array<MemberWinRate>;
800
- };
801
- export type StageVelocity = {
802
- boardId: string;
803
- boardName: string;
804
- stageId: string;
805
- stageName: string;
806
- position: number;
807
- avgDaysInStage: number;
808
- /**
809
- * Completed stays measured
810
- */
811
- samples: number;
812
- };
813
- export type StatsEnvelopeTaskVelocityStats = {
814
- period: string;
815
- computedAt: Date;
816
- data: TaskVelocityStats;
817
- };
818
- export type TaskVelocityStats = {
819
- stages: Array<StageVelocity>;
820
- };
821
- export type BoardFunnel = {
822
- boardId: string;
823
- name: string;
824
- kind?: string;
825
- stages: Array<StageSlice>;
826
- };
827
- export type StageSlice = {
828
- stageId: string;
829
- name: string;
830
- position: number;
831
- openTasks: number;
832
- openValue: number;
833
- };
834
- export type StatsEnvelopeTaskFunnelStats = {
835
- period: string;
836
- computedAt: Date;
837
- data: TaskFunnelStats;
838
- };
839
- export type TaskFunnelStats = {
840
- boards: Array<BoardFunnel>;
841
- };
842
- export type DealTypePrice = {
843
- listingType?: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
844
- buckets?: Array<Slice>;
845
- };
846
- export type LocationCount = {
847
- location?: LocationResponse;
848
- count?: number;
849
- };
850
- export type Slice = {
851
- key: string;
852
- count: number;
853
- };
854
- export type StatsEnvelopeSupplyStats = {
855
- period: string;
856
- computedAt: Date;
857
- data: SupplyStats;
858
- };
859
- export type SupplyStats = {
860
- activeListings?: number;
861
- byListingType?: Array<Slice>;
862
- byPropertyType?: Array<Slice>;
863
- priceByDealType?: Array<DealTypePrice>;
864
- topDistricts?: Array<LocationCount>;
865
- };
866
- export type ExpiringAgreement = {
867
- propertyId?: number;
868
- externalId?: string;
869
- title?: string;
870
- expiresAt?: Date;
871
- };
872
- export type ExpiringPlatformListing = {
873
- platform?: 'SS' | 'MY_HOME';
874
- platformId?: number;
875
- propertyTitle?: string;
876
- expiresAt?: Date;
877
- };
878
- export type ListingTypeAgg = {
879
- listingType?: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
880
- count?: number;
881
- pipelineValue?: number;
882
- estimatedCommission?: number;
883
- };
884
- export type PortfolioStats = {
885
- propertiesByState: Array<Slice>;
886
- listings: Array<ListingTypeAgg>;
887
- expiringAgreementsCount: number;
888
- expiringAgreements: Array<ExpiringAgreement>;
889
- expiringPlatformCount: number;
890
- expiringPlatformListings: Array<ExpiringPlatformListing>;
891
- };
892
- export type StatsEnvelopePortfolioStats = {
893
- period: string;
894
- computedAt: Date;
895
- data: PortfolioStats;
896
- };
897
- export type PipelineStats = {
898
- total: number;
899
- unassigned: number;
900
- newContactsTrend: Array<TrendPoint>;
901
- sourceAttribution: Array<Slice>;
902
- };
903
- export type StatsEnvelopePipelineStats = {
904
- period: string;
905
- computedAt: Date;
906
- data: PipelineStats;
907
- };
908
- export type TrendPoint = {
909
- date?: Date;
910
- count?: number;
911
- };
912
- export type LeaderboardStats = {
913
- rows: Array<Row>;
914
- };
915
- export type Row = {
916
- memberId: string;
917
- firstName: string;
918
- lastName: string;
919
- photo: string;
920
- tasksWon: number;
921
- wonValue: number;
922
- /**
923
- * Fixed amount, or rate/factor × task value (null-value tasks skipped)
924
- */
925
- commission: number;
926
- recommendationsSent: number;
927
- recommendationsRated: number;
928
- likeRatePct: number;
929
- };
930
- export type StatsEnvelopeLeaderboardStats = {
931
- period: string;
932
- computedAt: Date;
933
- data: LeaderboardStats;
934
- };
935
- export type AwaitingConversation = {
936
- conversationId: string;
937
- contactId: number;
938
- firstName?: string;
939
- lastName?: string;
940
- channelType: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
941
- lastMessagePreview: string;
942
- lastInboundAt: Date;
943
- unreadCount: number;
944
- reachable: boolean;
945
- };
946
- export type InboxStats = {
947
- openConversations: number;
948
- unreadMessages: number;
949
- newConversations: number;
950
- awaitingReplyCount: number;
951
- awaitingUnreachableCount: number;
952
- awaitingReply: Array<AwaitingConversation>;
953
- medianResponseSeconds: number;
954
- inboundByChannel: Array<Slice>;
955
- };
956
- export type StatsEnvelopeInboxStats = {
957
- period: string;
958
- computedAt: Date;
959
- data: InboxStats;
960
- };
961
- export type DealTypeBudget = {
962
- listingType?: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
963
- buckets?: Array<Slice>;
964
- };
965
- export type DemandStats = {
966
- activeInterests?: number;
967
- byListingType?: Array<Slice>;
968
- byPropertyType?: Array<Slice>;
969
- budgetByDealType?: Array<DealTypeBudget>;
970
- topDistricts?: Array<LocationCount>;
971
- };
972
- export type StatsEnvelopeDemandStats = {
973
- period: string;
974
- computedAt: Date;
975
- data: DemandStats;
976
- };
977
771
  export type PagedModelRoleResponse = {
978
772
  content?: Array<RoleResponse>;
979
773
  page?: PageMetadata;
@@ -1657,7 +1451,6 @@ export type BoardSummaryResponse = {
1657
1451
  boardId: string;
1658
1452
  kind?: 'OWNER' | 'SEEKER';
1659
1453
  name: string;
1660
- archived: boolean;
1661
1454
  stages: Array<StageSummaryResponse>;
1662
1455
  };
1663
1456
  export type StageSummaryResponse = {
@@ -1670,7 +1463,6 @@ export type BoardResponse = {
1670
1463
  boardId: string;
1671
1464
  kind?: 'OWNER' | 'SEEKER';
1672
1465
  name: string;
1673
- archived: boolean;
1674
1466
  stages: Array<StageResponse>;
1675
1467
  createdAt: Date;
1676
1468
  };
@@ -1679,7 +1471,6 @@ export type StageResponse = {
1679
1471
  name: string;
1680
1472
  color: string;
1681
1473
  position: number;
1682
- active: boolean;
1683
1474
  todoTemplates: Array<TodoTemplateResponse>;
1684
1475
  };
1685
1476
  export type TodoTemplateResponse = {
@@ -1687,10 +1478,6 @@ export type TodoTemplateResponse = {
1687
1478
  title: string;
1688
1479
  position: number;
1689
1480
  };
1690
- export type TaskSettingsResponse = {
1691
- defaultBoardId?: string;
1692
- defaultStageId?: string;
1693
- };
1694
1481
  export type AddressViewResponse = {
1695
1482
  country: string;
1696
1483
  city: string;
@@ -2557,21 +2344,6 @@ export type PutContactMergeResponses = {
2557
2344
  204: void;
2558
2345
  };
2559
2346
  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
2347
  export type PutBoardByBoardIdStageByStageIdTemplateByTemplateIdRenameData = {
2576
2348
  body: RenameRequest;
2577
2349
  path: {
@@ -2637,38 +2409,6 @@ export type PutBoardByBoardIdStageByStageIdRecolorResponses = {
2637
2409
  204: void;
2638
2410
  };
2639
2411
  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
2412
  export type PutBoardByBoardIdStageOrderData = {
2673
2413
  body: ReorderStagesRequest;
2674
2414
  path: {
@@ -2699,47 +2439,6 @@ export type PutBoardByBoardIdRenameResponses = {
2699
2439
  204: void;
2700
2440
  };
2701
2441
  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
2442
  export type PutAgencyByAgencyIdDetailsData = {
2744
2443
  body: CreateAgencyRequest;
2745
2444
  path: {
@@ -4058,7 +3757,12 @@ export type GetTaskBoardByBoardIdData = {
4058
3757
  path: {
4059
3758
  boardId: string;
4060
3759
  };
4061
- query?: never;
3760
+ query?: {
3761
+ status?: 'ACTIVE' | 'WON' | 'LOST' | 'CLOSED';
3762
+ assignedTo?: Array<string>;
3763
+ from?: Date;
3764
+ to?: Date;
3765
+ };
4062
3766
  url: '/task/board/{boardId}';
4063
3767
  };
4064
3768
  export type GetTaskBoardByBoardIdResponses = {
@@ -4068,184 +3772,64 @@ export type GetTaskBoardByBoardIdResponses = {
4068
3772
  200: BoardCardsResponse;
4069
3773
  };
4070
3774
  export type GetTaskBoardByBoardIdResponse = GetTaskBoardByBoardIdResponses[keyof GetTaskBoardByBoardIdResponses];
4071
- export type GetTaskBoardByBoardIdStageByStageIdCardsData = {
3775
+ export type GetTaskBoardByBoardIdCardsData = {
4072
3776
  body?: never;
4073
3777
  path: {
4074
3778
  boardId: string;
4075
- stageId: string;
4076
3779
  };
4077
3780
  query?: {
3781
+ stageId?: string;
3782
+ status?: 'ACTIVE' | 'WON' | 'LOST' | 'CLOSED';
3783
+ assignedTo?: Array<string>;
3784
+ from?: Date;
3785
+ to?: Date;
4078
3786
  cursor?: string;
4079
3787
  limit?: number;
4080
3788
  };
4081
- url: '/task/board/{boardId}/stage/{stageId}/cards';
3789
+ url: '/task/board/{boardId}/cards';
4082
3790
  };
4083
- export type GetTaskBoardByBoardIdStageByStageIdCardsResponses = {
3791
+ export type GetTaskBoardByBoardIdCardsResponses = {
4084
3792
  /**
4085
3793
  * OK
4086
3794
  */
4087
3795
  200: StageCardsResponse;
4088
3796
  };
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];
4119
- export type GetStatisticsWinRateData = {
4120
- body?: never;
4121
- path?: never;
4122
- query?: {
4123
- period?: string;
4124
- };
4125
- url: '/statistics/win-rate';
4126
- };
4127
- export type GetStatisticsWinRateResponses = {
4128
- /**
4129
- * OK
4130
- */
4131
- 200: StatsEnvelopeWinRateStats;
4132
- };
4133
- export type GetStatisticsWinRateResponse = GetStatisticsWinRateResponses[keyof GetStatisticsWinRateResponses];
4134
- export type GetStatisticsTaskVelocityData = {
4135
- body?: never;
4136
- path?: never;
4137
- query?: {
4138
- period?: string;
4139
- };
4140
- url: '/statistics/task-velocity';
4141
- };
4142
- export type GetStatisticsTaskVelocityResponses = {
4143
- /**
4144
- * OK
4145
- */
4146
- 200: StatsEnvelopeTaskVelocityStats;
4147
- };
4148
- export type GetStatisticsTaskVelocityResponse = GetStatisticsTaskVelocityResponses[keyof GetStatisticsTaskVelocityResponses];
4149
- export type GetStatisticsTaskFunnelData = {
4150
- body?: never;
4151
- path?: never;
4152
- query?: never;
4153
- url: '/statistics/task-funnel';
4154
- };
4155
- export type GetStatisticsTaskFunnelResponses = {
4156
- /**
4157
- * OK
4158
- */
4159
- 200: StatsEnvelopeTaskFunnelStats;
4160
- };
4161
- export type GetStatisticsTaskFunnelResponse = GetStatisticsTaskFunnelResponses[keyof GetStatisticsTaskFunnelResponses];
4162
- export type GetStatisticsSupplyData = {
4163
- body?: never;
4164
- path?: never;
4165
- query?: never;
4166
- url: '/statistics/supply';
4167
- };
4168
- export type GetStatisticsSupplyResponses = {
4169
- /**
4170
- * OK
4171
- */
4172
- 200: StatsEnvelopeSupplyStats;
4173
- };
4174
- export type GetStatisticsSupplyResponse = GetStatisticsSupplyResponses[keyof GetStatisticsSupplyResponses];
4175
- export type GetStatisticsPortfolioData = {
3797
+ export type GetTaskBoardByBoardIdCardsResponse = GetTaskBoardByBoardIdCardsResponses[keyof GetTaskBoardByBoardIdCardsResponses];
3798
+ export type GetStatsPipelineCommissionData = {
4176
3799
  body?: never;
4177
3800
  path?: never;
4178
- query?: {
4179
- agreementWindowDays?: number;
4180
- platformWindowDays?: number;
4181
- };
4182
- url: '/statistics/portfolio';
4183
- };
4184
- export type GetStatisticsPortfolioResponses = {
4185
- /**
4186
- * OK
4187
- */
4188
- 200: StatsEnvelopePortfolioStats;
4189
- };
4190
- export type GetStatisticsPortfolioResponse = GetStatisticsPortfolioResponses[keyof GetStatisticsPortfolioResponses];
4191
- export type GetStatisticsPipelineData = {
4192
- body?: never;
4193
- path?: never;
4194
- query?: {
4195
- period?: string;
4196
- };
4197
- url: '/statistics/pipeline';
4198
- };
4199
- export type GetStatisticsPipelineResponses = {
4200
- /**
4201
- * OK
4202
- */
4203
- 200: StatsEnvelopePipelineStats;
4204
- };
4205
- export type GetStatisticsPipelineResponse = GetStatisticsPipelineResponses[keyof GetStatisticsPipelineResponses];
4206
- export type GetStatisticsLeaderboardData = {
4207
- body?: never;
4208
- path?: never;
4209
- query?: {
4210
- period?: string;
3801
+ query: {
3802
+ from: Date;
3803
+ to: Date;
3804
+ memberId?: string;
4211
3805
  };
4212
- url: '/statistics/leaderboard';
3806
+ url: '/stats/pipeline/commission';
4213
3807
  };
4214
- export type GetStatisticsLeaderboardResponses = {
3808
+ export type GetStatsPipelineCommissionResponses = {
4215
3809
  /**
4216
3810
  * OK
4217
3811
  */
4218
- 200: StatsEnvelopeLeaderboardStats;
3812
+ 200: PipelineCommissionResponse;
4219
3813
  };
4220
- export type GetStatisticsLeaderboardResponse = GetStatisticsLeaderboardResponses[keyof GetStatisticsLeaderboardResponses];
4221
- export type GetStatisticsInboxData = {
3814
+ export type GetStatsPipelineCommissionResponse = GetStatsPipelineCommissionResponses[keyof GetStatsPipelineCommissionResponses];
3815
+ export type GetStatsContactsAcquisitionData = {
4222
3816
  body?: never;
4223
3817
  path?: never;
4224
- query?: {
4225
- period?: string;
3818
+ query: {
3819
+ from: Date;
3820
+ to: Date;
3821
+ granularity?: 'DAY' | 'WEEK' | 'MONTH';
3822
+ memberId?: string;
4226
3823
  };
4227
- url: '/statistics/inbox';
4228
- };
4229
- export type GetStatisticsInboxResponses = {
4230
- /**
4231
- * OK
4232
- */
4233
- 200: StatsEnvelopeInboxStats;
4234
- };
4235
- export type GetStatisticsInboxResponse = GetStatisticsInboxResponses[keyof GetStatisticsInboxResponses];
4236
- export type GetStatisticsDemandData = {
4237
- body?: never;
4238
- path?: never;
4239
- query?: never;
4240
- url: '/statistics/demand';
3824
+ url: '/stats/contacts/acquisition';
4241
3825
  };
4242
- export type GetStatisticsDemandResponses = {
3826
+ export type GetStatsContactsAcquisitionResponses = {
4243
3827
  /**
4244
3828
  * OK
4245
3829
  */
4246
- 200: StatsEnvelopeDemandStats;
3830
+ 200: ContactAcquisitionResponse;
4247
3831
  };
4248
- export type GetStatisticsDemandResponse = GetStatisticsDemandResponses[keyof GetStatisticsDemandResponses];
3832
+ export type GetStatsContactsAcquisitionResponse = GetStatsContactsAcquisitionResponses[keyof GetStatsContactsAcquisitionResponses];
4249
3833
  export type GetPublicRecomendationsByTokenItemsData = {
4250
3834
  body?: never;
4251
3835
  path: {
@@ -5039,6 +4623,24 @@ export type GetContactGroupsResponses = {
5039
4623
  200: Array<GroupCount>;
5040
4624
  };
5041
4625
  export type GetContactGroupsResponse = GetContactGroupsResponses[keyof GetContactGroupsResponses];
4626
+ export type DeleteBoardByBoardIdData = {
4627
+ body?: never;
4628
+ path: {
4629
+ boardId: string;
4630
+ };
4631
+ query?: {
4632
+ migrateToBoard?: string;
4633
+ migrateToStage?: string;
4634
+ };
4635
+ url: '/board/{boardId}';
4636
+ };
4637
+ export type DeleteBoardByBoardIdResponses = {
4638
+ /**
4639
+ * No Content
4640
+ */
4641
+ 204: void;
4642
+ };
4643
+ export type DeleteBoardByBoardIdResponse = DeleteBoardByBoardIdResponses[keyof DeleteBoardByBoardIdResponses];
5042
4644
  export type GetBoardByBoardIdData = {
5043
4645
  body?: never;
5044
4646
  path: {
@@ -5237,6 +4839,24 @@ export type DeleteContactsByContactIdInterestsByInterestIdListingsByExternalList
5237
4839
  204: void;
5238
4840
  };
5239
4841
  export type DeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponse = DeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponses[keyof DeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponses];
4842
+ export type DeleteBoardByBoardIdStageByStageIdData = {
4843
+ body?: never;
4844
+ path: {
4845
+ boardId: string;
4846
+ stageId: string;
4847
+ };
4848
+ query?: {
4849
+ migrateTo?: string;
4850
+ };
4851
+ url: '/board/{boardId}/stage/{stageId}';
4852
+ };
4853
+ export type DeleteBoardByBoardIdStageByStageIdResponses = {
4854
+ /**
4855
+ * No Content
4856
+ */
4857
+ 204: void;
4858
+ };
4859
+ export type DeleteBoardByBoardIdStageByStageIdResponse = DeleteBoardByBoardIdStageByStageIdResponses[keyof DeleteBoardByBoardIdStageByStageIdResponses];
5240
4860
  export type DeleteBoardByBoardIdStageByStageIdTemplateByTemplateIdData = {
5241
4861
  body?: never;
5242
4862
  path: {