@homespot-sdk/core 0.0.339 → 0.0.341

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.
@@ -50,10 +50,45 @@ export type VerifyEmailRequest = {
50
50
  export type UpdateEmailRequest = {
51
51
  email: string;
52
52
  };
53
+ export type CommentBodyRequest = {
54
+ body: string;
55
+ };
56
+ export type SetTaskValueRequest = {
57
+ value?: number;
58
+ };
59
+ export type TransferTaskRequest = {
60
+ targetBoardId: string;
61
+ targetStageId: string;
62
+ };
63
+ export type RenameTaskRequest = {
64
+ title: string;
65
+ };
66
+ export type MoveTaskRequest = {
67
+ targetStageId: string;
68
+ };
69
+ export type MarkTaskLostRequest = {
70
+ reason: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
71
+ };
72
+ export type SetExpectedCloseDateRequest = {
73
+ expectedCloseDate?: Date;
74
+ };
75
+ export type DescribeTaskRequest = {
76
+ description?: string;
77
+ };
78
+ export type SetTaskCommissionRequest = {
79
+ type: 'NOT_SET' | 'FIXED' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
80
+ /**
81
+ * Amount for FIXED, fraction (0,1] for PERCENTAGE, factor for MONTHS_OF_RENT
82
+ */
83
+ value?: number;
84
+ };
85
+ export type RenameTodoRequest = {
86
+ title: string;
87
+ };
53
88
  export type RolesRequest = {
54
89
  name: string;
55
90
  description: string;
56
- permissions: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT'>;
91
+ permissions: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL'>;
57
92
  };
58
93
  export type AssignRoleRequest = {
59
94
  roleId: number;
@@ -112,9 +147,6 @@ export type RecommendListingRequest = {
112
147
  externalPropertyId: string;
113
148
  externalListingId: string;
114
149
  };
115
- export type CommentBodyRequest = {
116
- body: string;
117
- };
118
150
  export type PhoneRequest = {
119
151
  phoneNumber: string;
120
152
  };
@@ -131,14 +163,6 @@ export type UpdateContactDetailsRequest = {
131
163
  contactMethods?: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
132
164
  favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
133
165
  nullifyFavoriteContactMethod?: boolean;
134
- status?: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
135
- priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
136
- };
137
- export type ReopenRequest = {
138
- status?: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
139
- };
140
- export type RecordLostContactRequest = {
141
- reason: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
142
166
  };
143
167
  export type ReassignMemberRequest = {
144
168
  memberId: string;
@@ -147,6 +171,28 @@ export type ContactMergeRequest = {
147
171
  survivorContactId: number;
148
172
  loserContactId: number;
149
173
  };
174
+ export type RenameRequest = {
175
+ name: string;
176
+ };
177
+ export type ReorderTodoTemplatesRequest = {
178
+ templateIds: Array<string>;
179
+ };
180
+ export type RecolorStageRequest = {
181
+ color: string;
182
+ };
183
+ export type DeactivateStageRequest = {
184
+ migrateToStageId?: string;
185
+ };
186
+ export type ReorderStagesRequest = {
187
+ stageIds: Array<string>;
188
+ };
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
+ };
150
196
  export type AddressRequest = {
151
197
  country: string;
152
198
  city: string;
@@ -193,6 +239,38 @@ export type TransferFundsRequest = {
193
239
  export type DepositFundsRequest = {
194
240
  amount: number;
195
241
  };
242
+ export type ConnectLinkResponse = {
243
+ link?: string;
244
+ expiresAt?: Date;
245
+ };
246
+ export type IdResponseUuid = {
247
+ id: string;
248
+ };
249
+ export type OpenTaskRequest = {
250
+ boardId: string;
251
+ /**
252
+ * Target stage; defaults to the board's entry stage
253
+ */
254
+ stageId?: string;
255
+ title: string;
256
+ contactIds?: Array<number>;
257
+ /**
258
+ * Defaults to the acting member
259
+ */
260
+ ownerId?: string;
261
+ };
262
+ export type LinkPropertyRequest = {
263
+ contactId: number;
264
+ propertyId: number;
265
+ };
266
+ export type LinkInterestRequest = {
267
+ contactId: number;
268
+ interestId: number;
269
+ };
270
+ export type CreateAdHocTodoRequest = {
271
+ taskId: string;
272
+ title: string;
273
+ };
196
274
  export type SubscribeRequest = {
197
275
  plan: 'STARTER' | 'PRO' | 'ENTERPRISE';
198
276
  billingCycle: 'MONTHLY' | 'ANNUAL';
@@ -289,7 +367,7 @@ export type AuthRequest = {
289
367
  };
290
368
  export type AgencyPrincipalDto = {
291
369
  memberId?: string;
292
- permissions?: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT'>;
370
+ permissions?: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL'>;
293
371
  isActive?: boolean;
294
372
  isOwner?: boolean;
295
373
  phoneVerified?: boolean;
@@ -307,9 +385,6 @@ export type ProblemDetail = {
307
385
  [key: string]: unknown;
308
386
  };
309
387
  };
310
- export type IdResponseUuid = {
311
- id: string;
312
- };
313
388
  export type AddDealRequest = {
314
389
  type: string;
315
390
  };
@@ -355,7 +430,6 @@ export type OnboardClientRequest = {
355
430
  phoneNumber: string;
356
431
  contactMethods: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
357
432
  favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
358
- priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
359
433
  };
360
434
  export type IdResponseLong = {
361
435
  id: number;
@@ -374,6 +448,26 @@ export type OnboardFromSourceRequest = {
374
448
  sourceLink: string;
375
449
  phone: string;
376
450
  };
451
+ export type CreateBoardRequest = {
452
+ kind?: 'OWNER' | 'SEEKER';
453
+ name: string;
454
+ stages?: Array<StageSpecRequest>;
455
+ };
456
+ export type StageSpecRequest = {
457
+ name: string;
458
+ color: string;
459
+ };
460
+ export type AddStageRequest = {
461
+ name: string;
462
+ color: string;
463
+ };
464
+ export type AddTodoTemplateRequest = {
465
+ title: string;
466
+ /**
467
+ * Also spawn this template onto the open tasks currently in the stage
468
+ */
469
+ applyToTasksInStage: boolean;
470
+ };
377
471
  export type ProvisionAgencyRequest = {
378
472
  /**
379
473
  * The customer's existing user account id
@@ -414,7 +508,7 @@ export type OrganizationSummaryViewResponse = {
414
508
  memberId: string;
415
509
  profilePictureUrl?: string;
416
510
  roleName: string;
417
- permissions: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT'>;
511
+ permissions: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL'>;
418
512
  status: 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE' | 'SUSPENDED';
419
513
  phone: string;
420
514
  isPhoneVerified: boolean;
@@ -428,6 +522,246 @@ export type UserSummaryViewResponse = {
428
522
  firstName: string;
429
523
  lastName: string;
430
524
  };
525
+ export type CommentView = {
526
+ id: string;
527
+ contactId?: number;
528
+ taskId?: string;
529
+ authorId: string;
530
+ authorFirstName: string;
531
+ authorLastName: string;
532
+ profilePictureUrl?: string;
533
+ body: string;
534
+ createdAt: Date;
535
+ editedAt?: Date;
536
+ };
537
+ export type CursorPageCommentView = {
538
+ items?: Array<CommentView>;
539
+ nextCursor?: string;
540
+ hasNext?: boolean;
541
+ };
542
+ export type ContactLink = {
543
+ contactId: number;
544
+ primary: boolean;
545
+ personalDetails: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
546
+ contactAssignedTo?: string;
547
+ };
548
+ export type ContactPersonalDetails = unknown;
549
+ export type ContactPersonalDetailsRestricted = {
550
+ requires?: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL'>;
551
+ status: 'RESTRICTED';
552
+ };
553
+ export type ContactPersonalDetailsVisible = {
554
+ phoneNumber?: string;
555
+ fullName?: string;
556
+ email?: string;
557
+ status: 'VISIBLE';
558
+ };
559
+ export type InterestLink = {
560
+ interestId: number;
561
+ contactId: number;
562
+ title?: string;
563
+ };
564
+ export type Participant = {
565
+ memberId: string;
566
+ firstName?: string;
567
+ lastName?: string;
568
+ photo?: string;
569
+ owner: boolean;
570
+ };
571
+ export type PropertyLink = {
572
+ propertyId: number;
573
+ contactId: number;
574
+ title?: string;
575
+ };
576
+ export type TaskDetailResponse = {
577
+ taskId: string;
578
+ boardId: string;
579
+ boardName: string;
580
+ stageId: string;
581
+ stageName: string;
582
+ stageColor: string;
583
+ stageEnteredAt: Date;
584
+ title: string;
585
+ description?: string;
586
+ value?: number;
587
+ commissionType: 'NOT_SET' | 'FIXED' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
588
+ commissionValue?: number;
589
+ expectedCloseDate?: Date;
590
+ ownerId?: string;
591
+ outcome?: 'WON' | 'LOST';
592
+ lostReason?: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
593
+ closedAt?: Date;
594
+ createdBy?: string;
595
+ createdAt: Date;
596
+ contacts: Array<ContactLink>;
597
+ participants: Array<Participant>;
598
+ interests: Array<InterestLink>;
599
+ properties: Array<PropertyLink>;
600
+ todoGroups: Array<TodoGroup>;
601
+ timeline: Array<TimelineEntry>;
602
+ };
603
+ export type TimelineEntry = {
604
+ fromStageId?: string;
605
+ fromStageName?: string;
606
+ toStageId?: string;
607
+ toStageName?: string;
608
+ boardChanged: boolean;
609
+ outcome?: 'WON' | 'LOST';
610
+ movedBy?: string;
611
+ occurredAt: Date;
612
+ };
613
+ export type TodoGroup = {
614
+ kind: 'CURRENT_STAGE' | 'LEFTOVER' | 'AD_HOC';
615
+ stageId?: string;
616
+ stageName?: string;
617
+ todos: Array<TodoItem>;
618
+ };
619
+ export type TodoItem = {
620
+ todoId: string;
621
+ title: string;
622
+ position: number;
623
+ fromTemplate: boolean;
624
+ completedAt?: Date;
625
+ completedBy?: string;
626
+ };
627
+ export type ContactTaskResponse = {
628
+ taskId: string;
629
+ title: string;
630
+ boardId: string;
631
+ boardName: string;
632
+ stageId: string;
633
+ stageName: string;
634
+ outcome?: 'WON' | 'LOST';
635
+ value?: number;
636
+ primary: boolean;
637
+ };
638
+ export type BoardGridResponse = {
639
+ boardId: string;
640
+ name: string;
641
+ kind?: 'OWNER' | 'SEEKER';
642
+ archived: boolean;
643
+ columns: Array<Column>;
644
+ };
645
+ export type Card = {
646
+ taskId: string;
647
+ title: string;
648
+ value?: number;
649
+ ownerId?: string;
650
+ primaryContactId?: number;
651
+ primaryContact?: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
652
+ contactAssignedTo?: string;
653
+ stageEnteredAt: Date;
654
+ daysInStage: number;
655
+ openTodos: number;
656
+ totalTodos: number;
657
+ hasLeftoverOpenTodos: boolean;
658
+ };
659
+ export type Column = {
660
+ stageId: string;
661
+ name: string;
662
+ color: string;
663
+ position: number;
664
+ totalTasks: number;
665
+ totalValue: number;
666
+ cards: CursorPageCard;
667
+ };
668
+ export type CursorPageCard = {
669
+ items?: Array<Card>;
670
+ nextCursor?: string;
671
+ hasNext?: boolean;
672
+ };
673
+ export type ClosedTaskResponse = {
674
+ taskId: string;
675
+ title: string;
676
+ value?: number;
677
+ ownerId?: string;
678
+ primaryContactId?: number;
679
+ primaryContact?: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
680
+ contactAssignedTo?: string;
681
+ outcome: 'WON' | 'LOST';
682
+ lostReason?: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
683
+ closedAt: Date;
684
+ /**
685
+ * Stage the task closed from
686
+ */
687
+ stageName: string;
688
+ };
689
+ export type PageMetadata = {
690
+ size?: number;
691
+ number?: number;
692
+ totalElements?: number;
693
+ totalPages?: number;
694
+ };
695
+ export type PagedModelClosedTaskResponse = {
696
+ content?: Array<ClosedTaskResponse>;
697
+ page?: PageMetadata;
698
+ };
699
+ export type BoardWinRate = {
700
+ boardId: string;
701
+ name: string;
702
+ won: number;
703
+ lost: number;
704
+ winRatePct: number;
705
+ };
706
+ export type MemberWinRate = {
707
+ memberId: string;
708
+ won: number;
709
+ lost: number;
710
+ winRatePct: number;
711
+ };
712
+ export type StatsEnvelopeWinRateStats = {
713
+ period: string;
714
+ computedAt: Date;
715
+ data: WinRateStats;
716
+ };
717
+ export type WinRateStats = {
718
+ won: number;
719
+ lost: number;
720
+ winRatePct: number;
721
+ boards: Array<BoardWinRate>;
722
+ members: Array<MemberWinRate>;
723
+ };
724
+ export type StageVelocity = {
725
+ boardId: string;
726
+ boardName: string;
727
+ stageId: string;
728
+ stageName: string;
729
+ position: number;
730
+ avgDaysInStage: number;
731
+ /**
732
+ * Completed stays measured
733
+ */
734
+ samples: number;
735
+ };
736
+ export type StatsEnvelopeTaskVelocityStats = {
737
+ period: string;
738
+ computedAt: Date;
739
+ data: TaskVelocityStats;
740
+ };
741
+ export type TaskVelocityStats = {
742
+ stages: Array<StageVelocity>;
743
+ };
744
+ export type BoardFunnel = {
745
+ boardId: string;
746
+ name: string;
747
+ kind?: string;
748
+ stages: Array<StageSlice>;
749
+ };
750
+ export type StageSlice = {
751
+ stageId: string;
752
+ name: string;
753
+ position: number;
754
+ openTasks: number;
755
+ openValue: number;
756
+ };
757
+ export type StatsEnvelopeTaskFunnelStats = {
758
+ period: string;
759
+ computedAt: Date;
760
+ data: TaskFunnelStats;
761
+ };
762
+ export type TaskFunnelStats = {
763
+ boards: Array<BoardFunnel>;
764
+ };
431
765
  export type DealTypePrice = {
432
766
  listingType?: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
433
767
  buckets?: Array<Slice>;
@@ -493,13 +827,9 @@ export type StatsEnvelopePortfolioStats = {
493
827
  };
494
828
  export type PipelineStats = {
495
829
  total: number;
496
- won: number;
497
- conversionRatePercent: number;
498
830
  unassigned: number;
499
831
  newContactsTrend: Array<TrendPoint>;
500
- status: Array<Slice>;
501
832
  sourceAttribution: Array<Slice>;
502
- lostReasons: Array<Slice>;
503
833
  };
504
834
  export type StatsEnvelopePipelineStats = {
505
835
  period: string;
@@ -518,9 +848,12 @@ export type Row = {
518
848
  firstName: string;
519
849
  lastName: string;
520
850
  photo: string;
521
- contactsAssigned: number;
522
- converted: number;
523
- conversionRatePct: number;
851
+ tasksWon: number;
852
+ wonValue: number;
853
+ /**
854
+ * Fixed amount, or rate/factor × task value (null-value tasks skipped)
855
+ */
856
+ commission: number;
524
857
  recommendationsSent: number;
525
858
  recommendationsRated: number;
526
859
  likeRatePct: number;
@@ -572,12 +905,6 @@ export type StatsEnvelopeDemandStats = {
572
905
  computedAt: Date;
573
906
  data: DemandStats;
574
907
  };
575
- export type PageMetadata = {
576
- size?: number;
577
- number?: number;
578
- totalElements?: number;
579
- totalPages?: number;
580
- };
581
908
  export type PagedModelRoleResponse = {
582
909
  content?: Array<RoleResponse>;
583
910
  page?: PageMetadata;
@@ -588,7 +915,7 @@ export type RoleResponse = {
588
915
  isSystem?: boolean;
589
916
  isOwner?: boolean;
590
917
  description: string;
591
- permissions: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT'>;
918
+ permissions: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL'>;
592
919
  };
593
920
  export type AddressResponse = {
594
921
  region: LocationResponse;
@@ -676,11 +1003,11 @@ export type RecommendationDecisionResponse = {
676
1003
  decision: 'MAYBE' | 'DISLIKE' | 'LIKE';
677
1004
  };
678
1005
  export type GroupedPermissionsResponse = {
679
- group: 'AGENCY' | 'ROLE' | 'MEMBER' | 'CONTACT';
1006
+ group: 'AGENCY' | 'ROLE' | 'MEMBER' | 'CONTACT' | 'BOARD' | 'DEAL';
680
1007
  permissions: Array<PermissionResponse>;
681
1008
  };
682
1009
  export type PermissionResponse = {
683
- permission: 'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT';
1010
+ permission: 'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL';
684
1011
  };
685
1012
  export type ListingContactResponseUuid = {
686
1013
  id: string;
@@ -828,17 +1155,6 @@ export type PropertyPageResponse = {
828
1155
  updatedAt: Date;
829
1156
  closeReason?: PropertyCloseReasonResponse;
830
1157
  };
831
- export type ContactPersonalDetails = unknown;
832
- export type ContactPersonalDetailsRestricted = {
833
- requires?: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT'>;
834
- status: 'RESTRICTED';
835
- };
836
- export type ContactPersonalDetailsVisible = {
837
- phoneNumber?: string;
838
- fullName?: string;
839
- email?: string;
840
- status: 'VISIBLE';
841
- };
842
1158
  export type ListingOwnerContactResponse = {
843
1159
  contactId: number;
844
1160
  personalDetails: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
@@ -909,15 +1225,26 @@ export type NotificationFeed = {
909
1225
  export type NotificationView = {
910
1226
  id: string;
911
1227
  seq: number;
912
- type: 'AGENT_COMMENTED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED';
1228
+ type: 'AGENT_COMMENTED' | 'TASK_COMMENTED' | 'EXTERNAL_LISTING_EXPIRED' | 'LISTING_EXPIRED' | 'NEW_SEEKER_RATING' | 'NEW_MESSAGE' | 'CONTACT_ASSIGNED';
913
1229
  targetId?: string;
914
- payload: AgentCommented | ContactAssigned | ListingExpired | NewMessage | NewSeekerRating;
1230
+ payload: AgentCommented | ContactAssigned | ListingExpired | NewMessage | NewSeekerRating | TaskCommented;
915
1231
  createdAt: Date;
916
1232
  read: boolean;
917
1233
  };
918
1234
  export type PropertyId = {
919
1235
  value?: number;
920
1236
  };
1237
+ export type TaskCommented = {
1238
+ commentId?: CommentId;
1239
+ taskId?: TaskId;
1240
+ authorId?: MemberId;
1241
+ author?: string;
1242
+ commentSnippet?: string;
1243
+ kind: 'TASK_COMMENTED';
1244
+ };
1245
+ export type TaskId = {
1246
+ value?: string;
1247
+ };
921
1248
  export type UnreadCount = {
922
1249
  count: number;
923
1250
  };
@@ -1151,29 +1478,11 @@ export type CursorPageMessageView = {
1151
1478
  nextCursor?: string;
1152
1479
  hasNext?: boolean;
1153
1480
  };
1154
- export type CommentView = {
1155
- id: string;
1156
- contactId: number;
1157
- authorId: string;
1158
- authorFirstName: string;
1159
- authorLastName: string;
1160
- profilePictureUrl?: string;
1161
- body: string;
1162
- createdAt: Date;
1163
- editedAt?: Date;
1164
- };
1165
- export type CursorPageCommentView = {
1166
- items?: Array<CommentView>;
1167
- nextCursor?: string;
1168
- hasNext?: boolean;
1169
- };
1170
1481
  export type ContactGridResponse = {
1171
1482
  id: number;
1172
1483
  createdBy?: string;
1173
1484
  assignedTo?: AssignedToResponse;
1174
1485
  title?: string;
1175
- status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
1176
- priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
1177
1486
  personalDetails: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
1178
1487
  gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
1179
1488
  sourceType?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
@@ -1205,12 +1514,11 @@ export type Client360Response = {
1205
1514
  communicationPreference?: CommunicationPreferenceResponse;
1206
1515
  isSearching: boolean;
1207
1516
  isListing: boolean;
1208
- priority: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
1209
- status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
1210
1517
  createdAt: Date;
1211
1518
  updatedAt: Date;
1212
1519
  interests: Array<ContactInterestResponse>;
1213
1520
  properties: Array<ContactPropertyResponse>;
1521
+ tasks: Array<ContactTaskResponse>;
1214
1522
  };
1215
1523
  export type CommunicationPreferenceResponse = {
1216
1524
  preferredContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
@@ -1218,7 +1526,7 @@ export type CommunicationPreferenceResponse = {
1218
1526
  };
1219
1527
  export type ContactInfoResponse = unknown;
1220
1528
  export type ContactInfoRestricted = {
1221
- requires?: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT'>;
1529
+ requires?: Array<'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL'>;
1222
1530
  status: 'RESTRICTED';
1223
1531
  };
1224
1532
  export type ContactInfoVisible = {
@@ -1260,7 +1568,6 @@ export type AssignedAgent = {
1260
1568
  };
1261
1569
  export type DuplicateContactInfo = {
1262
1570
  contactId: number;
1263
- isActive: boolean;
1264
1571
  firstName?: string;
1265
1572
  lastName?: string;
1266
1573
  gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
@@ -1274,54 +1581,43 @@ export type PhoneDuplicateCheckResponse = {
1274
1581
  policy: 'ALLOW' | 'WARN' | 'PREVENT';
1275
1582
  matches: Array<DuplicateContactInfo>;
1276
1583
  };
1277
- export type Card = {
1278
- contactId: number;
1279
- personalDetails: ContactPersonalDetailsRestricted | ContactPersonalDetailsVisible;
1280
- priority: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
1281
- status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
1282
- assignedTo?: AssignedToResponse;
1283
- totalCommission: number;
1284
- updatedAt: Date;
1285
- preview?: InterestPreview | PropertyPreview;
1286
- };
1287
- export type Column = {
1288
- status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
1289
- totalCommission: number;
1290
- totalContacts: number;
1291
- cards: CursorPageCard;
1292
- };
1293
- export type ContactKanbanResponse = {
1294
- columns: Array<Column>;
1584
+ export type BoardSummaryResponse = {
1585
+ boardId: string;
1586
+ kind?: 'OWNER' | 'SEEKER';
1587
+ name: string;
1588
+ archived: boolean;
1589
+ stages: Array<StageSummaryResponse>;
1295
1590
  };
1296
- export type CursorPageCard = {
1297
- items?: Array<Card>;
1298
- nextCursor?: string;
1299
- hasNext?: boolean;
1591
+ export type StageSummaryResponse = {
1592
+ stageId: string;
1593
+ name: string;
1594
+ color: string;
1595
+ position: number;
1300
1596
  };
1301
- export type InterestPreview = Omit<Preview, 'type'> & {
1302
- interestId: number;
1303
- listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
1304
- propertyTypes: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
1305
- budget?: RangeBigDecimal;
1306
- primaryLocation?: LocationResponse;
1307
- recommendationCount: number;
1308
- type: 'INTEREST';
1597
+ export type BoardResponse = {
1598
+ boardId: string;
1599
+ kind?: 'OWNER' | 'SEEKER';
1600
+ name: string;
1601
+ archived: boolean;
1602
+ stages: Array<StageResponse>;
1603
+ createdAt: Date;
1309
1604
  };
1310
- export type ListingTypePrice = {
1311
- listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
1312
- price: number;
1605
+ export type StageResponse = {
1606
+ stageId: string;
1607
+ name: string;
1608
+ color: string;
1609
+ position: number;
1610
+ active: boolean;
1611
+ todoTemplates: Array<TodoTemplateResponse>;
1313
1612
  };
1314
- export type Preview = {
1315
- type: string;
1613
+ export type TodoTemplateResponse = {
1614
+ templateId: string;
1615
+ title: string;
1616
+ position: number;
1316
1617
  };
1317
- export type PropertyPreview = Omit<Preview, 'type'> & {
1318
- propertyId: number;
1319
- propertyType: 'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE';
1320
- state: 'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED';
1321
- title?: string;
1322
- coverUrl?: string;
1323
- listingTypes: Array<ListingTypePrice>;
1324
- type: 'PROPERTY';
1618
+ export type TaskSettingsResponse = {
1619
+ defaultBoardId?: string;
1620
+ defaultStageId?: string;
1325
1621
  };
1326
1622
  export type AddressViewResponse = {
1327
1623
  country: string;
@@ -1531,17 +1827,274 @@ export type PutUserMeEmailRequestResponses = {
1531
1827
  */
1532
1828
  200: unknown;
1533
1829
  };
1534
- export type DeleteRolesByRoleIdData = {
1830
+ export type DeleteTasksByTaskIdCommentsByCommentIdData = {
1535
1831
  body?: never;
1536
1832
  path: {
1537
- roleId: number;
1833
+ taskId: string;
1834
+ commentId: string;
1538
1835
  };
1539
1836
  query?: never;
1540
- url: '/roles/{roleId}';
1837
+ url: '/tasks/{taskId}/comments/{commentId}';
1541
1838
  };
1542
- export type DeleteRolesByRoleIdResponses = {
1839
+ export type DeleteTasksByTaskIdCommentsByCommentIdResponses = {
1543
1840
  /**
1544
- * No Content
1841
+ * OK
1842
+ */
1843
+ 200: unknown;
1844
+ };
1845
+ export type PutTasksByTaskIdCommentsByCommentIdData = {
1846
+ body: CommentBodyRequest;
1847
+ path: {
1848
+ taskId: string;
1849
+ commentId: string;
1850
+ };
1851
+ query?: never;
1852
+ url: '/tasks/{taskId}/comments/{commentId}';
1853
+ };
1854
+ export type PutTasksByTaskIdCommentsByCommentIdResponses = {
1855
+ /**
1856
+ * OK
1857
+ */
1858
+ 200: unknown;
1859
+ };
1860
+ export type PutTaskByTaskIdWonData = {
1861
+ body?: never;
1862
+ path: {
1863
+ taskId: string;
1864
+ };
1865
+ query?: never;
1866
+ url: '/task/{taskId}/won';
1867
+ };
1868
+ export type PutTaskByTaskIdWonResponses = {
1869
+ /**
1870
+ * No Content
1871
+ */
1872
+ 204: void;
1873
+ };
1874
+ export type PutTaskByTaskIdWonResponse = PutTaskByTaskIdWonResponses[keyof PutTaskByTaskIdWonResponses];
1875
+ export type PutTaskByTaskIdValueData = {
1876
+ body: SetTaskValueRequest;
1877
+ path: {
1878
+ taskId: string;
1879
+ };
1880
+ query?: never;
1881
+ url: '/task/{taskId}/value';
1882
+ };
1883
+ export type PutTaskByTaskIdValueResponses = {
1884
+ /**
1885
+ * No Content
1886
+ */
1887
+ 204: void;
1888
+ };
1889
+ export type PutTaskByTaskIdValueResponse = PutTaskByTaskIdValueResponses[keyof PutTaskByTaskIdValueResponses];
1890
+ export type PutTaskByTaskIdTransferData = {
1891
+ body: TransferTaskRequest;
1892
+ path: {
1893
+ taskId: string;
1894
+ };
1895
+ query?: never;
1896
+ url: '/task/{taskId}/transfer';
1897
+ };
1898
+ export type PutTaskByTaskIdTransferResponses = {
1899
+ /**
1900
+ * No Content
1901
+ */
1902
+ 204: void;
1903
+ };
1904
+ export type PutTaskByTaskIdTransferResponse = PutTaskByTaskIdTransferResponses[keyof PutTaskByTaskIdTransferResponses];
1905
+ export type PutTaskByTaskIdReopenData = {
1906
+ body?: never;
1907
+ path: {
1908
+ taskId: string;
1909
+ };
1910
+ query?: never;
1911
+ url: '/task/{taskId}/reopen';
1912
+ };
1913
+ export type PutTaskByTaskIdReopenResponses = {
1914
+ /**
1915
+ * No Content
1916
+ */
1917
+ 204: void;
1918
+ };
1919
+ export type PutTaskByTaskIdReopenResponse = PutTaskByTaskIdReopenResponses[keyof PutTaskByTaskIdReopenResponses];
1920
+ export type PutTaskByTaskIdRenameData = {
1921
+ body: RenameTaskRequest;
1922
+ path: {
1923
+ taskId: string;
1924
+ };
1925
+ query?: never;
1926
+ url: '/task/{taskId}/rename';
1927
+ };
1928
+ export type PutTaskByTaskIdRenameResponses = {
1929
+ /**
1930
+ * No Content
1931
+ */
1932
+ 204: void;
1933
+ };
1934
+ export type PutTaskByTaskIdRenameResponse = PutTaskByTaskIdRenameResponses[keyof PutTaskByTaskIdRenameResponses];
1935
+ export type PutTaskByTaskIdOwnerByMemberIdData = {
1936
+ body?: never;
1937
+ path: {
1938
+ taskId: string;
1939
+ memberId: string;
1940
+ };
1941
+ query?: never;
1942
+ url: '/task/{taskId}/owner/{memberId}';
1943
+ };
1944
+ export type PutTaskByTaskIdOwnerByMemberIdResponses = {
1945
+ /**
1946
+ * No Content
1947
+ */
1948
+ 204: void;
1949
+ };
1950
+ export type PutTaskByTaskIdOwnerByMemberIdResponse = PutTaskByTaskIdOwnerByMemberIdResponses[keyof PutTaskByTaskIdOwnerByMemberIdResponses];
1951
+ export type PutTaskByTaskIdMoveData = {
1952
+ body: MoveTaskRequest;
1953
+ path: {
1954
+ taskId: string;
1955
+ };
1956
+ query?: never;
1957
+ url: '/task/{taskId}/move';
1958
+ };
1959
+ export type PutTaskByTaskIdMoveResponses = {
1960
+ /**
1961
+ * No Content
1962
+ */
1963
+ 204: void;
1964
+ };
1965
+ export type PutTaskByTaskIdMoveResponse = PutTaskByTaskIdMoveResponses[keyof PutTaskByTaskIdMoveResponses];
1966
+ export type PutTaskByTaskIdLostData = {
1967
+ body: MarkTaskLostRequest;
1968
+ path: {
1969
+ taskId: string;
1970
+ };
1971
+ query?: never;
1972
+ url: '/task/{taskId}/lost';
1973
+ };
1974
+ export type PutTaskByTaskIdLostResponses = {
1975
+ /**
1976
+ * No Content
1977
+ */
1978
+ 204: void;
1979
+ };
1980
+ export type PutTaskByTaskIdLostResponse = PutTaskByTaskIdLostResponses[keyof PutTaskByTaskIdLostResponses];
1981
+ export type PutTaskByTaskIdExpectedCloseDateData = {
1982
+ body: SetExpectedCloseDateRequest;
1983
+ path: {
1984
+ taskId: string;
1985
+ };
1986
+ query?: never;
1987
+ url: '/task/{taskId}/expected-close-date';
1988
+ };
1989
+ export type PutTaskByTaskIdExpectedCloseDateResponses = {
1990
+ /**
1991
+ * No Content
1992
+ */
1993
+ 204: void;
1994
+ };
1995
+ export type PutTaskByTaskIdExpectedCloseDateResponse = PutTaskByTaskIdExpectedCloseDateResponses[keyof PutTaskByTaskIdExpectedCloseDateResponses];
1996
+ export type PutTaskByTaskIdDescriptionData = {
1997
+ body: DescribeTaskRequest;
1998
+ path: {
1999
+ taskId: string;
2000
+ };
2001
+ query?: never;
2002
+ url: '/task/{taskId}/description';
2003
+ };
2004
+ export type PutTaskByTaskIdDescriptionResponses = {
2005
+ /**
2006
+ * No Content
2007
+ */
2008
+ 204: void;
2009
+ };
2010
+ export type PutTaskByTaskIdDescriptionResponse = PutTaskByTaskIdDescriptionResponses[keyof PutTaskByTaskIdDescriptionResponses];
2011
+ export type PutTaskByTaskIdContactByContactIdPrimaryData = {
2012
+ body?: never;
2013
+ path: {
2014
+ taskId: string;
2015
+ contactId: number;
2016
+ };
2017
+ query?: never;
2018
+ url: '/task/{taskId}/contact/{contactId}/primary';
2019
+ };
2020
+ export type PutTaskByTaskIdContactByContactIdPrimaryResponses = {
2021
+ /**
2022
+ * No Content
2023
+ */
2024
+ 204: void;
2025
+ };
2026
+ export type PutTaskByTaskIdContactByContactIdPrimaryResponse = PutTaskByTaskIdContactByContactIdPrimaryResponses[keyof PutTaskByTaskIdContactByContactIdPrimaryResponses];
2027
+ export type PutTaskByTaskIdCommissionData = {
2028
+ body: SetTaskCommissionRequest;
2029
+ path: {
2030
+ taskId: string;
2031
+ };
2032
+ query?: never;
2033
+ url: '/task/{taskId}/commission';
2034
+ };
2035
+ export type PutTaskByTaskIdCommissionResponses = {
2036
+ /**
2037
+ * No Content
2038
+ */
2039
+ 204: void;
2040
+ };
2041
+ export type PutTaskByTaskIdCommissionResponse = PutTaskByTaskIdCommissionResponses[keyof PutTaskByTaskIdCommissionResponses];
2042
+ export type PutTaskTodoByTodoIdReopenData = {
2043
+ body?: never;
2044
+ path: {
2045
+ todoId: string;
2046
+ };
2047
+ query?: never;
2048
+ url: '/task-todo/{todoId}/reopen';
2049
+ };
2050
+ export type PutTaskTodoByTodoIdReopenResponses = {
2051
+ /**
2052
+ * No Content
2053
+ */
2054
+ 204: void;
2055
+ };
2056
+ export type PutTaskTodoByTodoIdReopenResponse = PutTaskTodoByTodoIdReopenResponses[keyof PutTaskTodoByTodoIdReopenResponses];
2057
+ export type PutTaskTodoByTodoIdRenameData = {
2058
+ body: RenameTodoRequest;
2059
+ path: {
2060
+ todoId: string;
2061
+ };
2062
+ query?: never;
2063
+ url: '/task-todo/{todoId}/rename';
2064
+ };
2065
+ export type PutTaskTodoByTodoIdRenameResponses = {
2066
+ /**
2067
+ * No Content
2068
+ */
2069
+ 204: void;
2070
+ };
2071
+ export type PutTaskTodoByTodoIdRenameResponse = PutTaskTodoByTodoIdRenameResponses[keyof PutTaskTodoByTodoIdRenameResponses];
2072
+ export type PutTaskTodoByTodoIdCompleteData = {
2073
+ body?: never;
2074
+ path: {
2075
+ todoId: string;
2076
+ };
2077
+ query?: never;
2078
+ url: '/task-todo/{todoId}/complete';
2079
+ };
2080
+ export type PutTaskTodoByTodoIdCompleteResponses = {
2081
+ /**
2082
+ * No Content
2083
+ */
2084
+ 204: void;
2085
+ };
2086
+ export type PutTaskTodoByTodoIdCompleteResponse = PutTaskTodoByTodoIdCompleteResponses[keyof PutTaskTodoByTodoIdCompleteResponses];
2087
+ export type DeleteRolesByRoleIdData = {
2088
+ body?: never;
2089
+ path: {
2090
+ roleId: number;
2091
+ };
2092
+ query?: never;
2093
+ url: '/roles/{roleId}';
2094
+ };
2095
+ export type DeleteRolesByRoleIdResponses = {
2096
+ /**
2097
+ * No Content
1545
2098
  */
1546
2099
  204: void;
1547
2100
  };
@@ -1904,94 +2457,217 @@ export type PutContactByContactIdUpdateContactDetailsResponses = {
1904
2457
  204: void;
1905
2458
  };
1906
2459
  export type PutContactByContactIdUpdateContactDetailsResponse = PutContactByContactIdUpdateContactDetailsResponses[keyof PutContactByContactIdUpdateContactDetailsResponses];
1907
- export type PutContactByContactIdReopenData = {
1908
- body: ReopenRequest;
2460
+ export type PutContactByContactIdAssignmentData = {
2461
+ body: ReassignMemberRequest;
1909
2462
  path: {
1910
2463
  contactId: number;
1911
2464
  };
1912
2465
  query?: never;
1913
- url: '/contact/{contactId}/reopen';
2466
+ url: '/contact/{contactId}/assignment';
1914
2467
  };
1915
- export type PutContactByContactIdReopenResponses = {
2468
+ export type PutContactByContactIdAssignmentResponses = {
1916
2469
  /**
1917
2470
  * No Content
1918
2471
  */
1919
2472
  204: void;
1920
2473
  };
1921
- export type PutContactByContactIdReopenResponse = PutContactByContactIdReopenResponses[keyof PutContactByContactIdReopenResponses];
1922
- export type PutContactByContactIdLostData = {
1923
- body: RecordLostContactRequest;
2474
+ export type PutContactByContactIdAssignmentResponse = PutContactByContactIdAssignmentResponses[keyof PutContactByContactIdAssignmentResponses];
2475
+ export type PutContactMergeData = {
2476
+ body: ContactMergeRequest;
2477
+ path?: never;
2478
+ query?: never;
2479
+ url: '/contact/merge';
2480
+ };
2481
+ export type PutContactMergeResponses = {
2482
+ /**
2483
+ * No Content
2484
+ */
2485
+ 204: void;
2486
+ };
2487
+ export type PutContactMergeResponse = PutContactMergeResponses[keyof PutContactMergeResponses];
2488
+ export type PutBoardByBoardIdUnarchiveData = {
2489
+ body?: never;
1924
2490
  path: {
1925
- contactId: number;
2491
+ boardId: string;
2492
+ };
2493
+ query?: never;
2494
+ url: '/board/{boardId}/unarchive';
2495
+ };
2496
+ export type PutBoardByBoardIdUnarchiveResponses = {
2497
+ /**
2498
+ * No Content
2499
+ */
2500
+ 204: void;
2501
+ };
2502
+ export type PutBoardByBoardIdUnarchiveResponse = PutBoardByBoardIdUnarchiveResponses[keyof PutBoardByBoardIdUnarchiveResponses];
2503
+ export type PutBoardByBoardIdStageByStageIdTemplateByTemplateIdRenameData = {
2504
+ body: RenameRequest;
2505
+ path: {
2506
+ boardId: string;
2507
+ stageId: string;
2508
+ templateId: string;
2509
+ };
2510
+ query?: never;
2511
+ url: '/board/{boardId}/stage/{stageId}/template/{templateId}/rename';
2512
+ };
2513
+ export type PutBoardByBoardIdStageByStageIdTemplateByTemplateIdRenameResponses = {
2514
+ /**
2515
+ * No Content
2516
+ */
2517
+ 204: void;
2518
+ };
2519
+ export type PutBoardByBoardIdStageByStageIdTemplateByTemplateIdRenameResponse = PutBoardByBoardIdStageByStageIdTemplateByTemplateIdRenameResponses[keyof PutBoardByBoardIdStageByStageIdTemplateByTemplateIdRenameResponses];
2520
+ export type PutBoardByBoardIdStageByStageIdTemplateOrderData = {
2521
+ body: ReorderTodoTemplatesRequest;
2522
+ path: {
2523
+ boardId: string;
2524
+ stageId: string;
1926
2525
  };
1927
2526
  query?: never;
1928
- url: '/contact/{contactId}/lost';
2527
+ url: '/board/{boardId}/stage/{stageId}/template-order';
1929
2528
  };
1930
- export type PutContactByContactIdLostResponses = {
2529
+ export type PutBoardByBoardIdStageByStageIdTemplateOrderResponses = {
1931
2530
  /**
1932
2531
  * No Content
1933
2532
  */
1934
2533
  204: void;
1935
2534
  };
1936
- export type PutContactByContactIdLostResponse = PutContactByContactIdLostResponses[keyof PutContactByContactIdLostResponses];
1937
- export type PutContactByContactIdCloseData = {
2535
+ export type PutBoardByBoardIdStageByStageIdTemplateOrderResponse = PutBoardByBoardIdStageByStageIdTemplateOrderResponses[keyof PutBoardByBoardIdStageByStageIdTemplateOrderResponses];
2536
+ export type PutBoardByBoardIdStageByStageIdRenameData = {
2537
+ body: RenameRequest;
2538
+ path: {
2539
+ boardId: string;
2540
+ stageId: string;
2541
+ };
2542
+ query?: never;
2543
+ url: '/board/{boardId}/stage/{stageId}/rename';
2544
+ };
2545
+ export type PutBoardByBoardIdStageByStageIdRenameResponses = {
2546
+ /**
2547
+ * No Content
2548
+ */
2549
+ 204: void;
2550
+ };
2551
+ export type PutBoardByBoardIdStageByStageIdRenameResponse = PutBoardByBoardIdStageByStageIdRenameResponses[keyof PutBoardByBoardIdStageByStageIdRenameResponses];
2552
+ export type PutBoardByBoardIdStageByStageIdRecolorData = {
2553
+ body: RecolorStageRequest;
2554
+ path: {
2555
+ boardId: string;
2556
+ stageId: string;
2557
+ };
2558
+ query?: never;
2559
+ url: '/board/{boardId}/stage/{stageId}/recolor';
2560
+ };
2561
+ export type PutBoardByBoardIdStageByStageIdRecolorResponses = {
2562
+ /**
2563
+ * No Content
2564
+ */
2565
+ 204: void;
2566
+ };
2567
+ export type PutBoardByBoardIdStageByStageIdRecolorResponse = PutBoardByBoardIdStageByStageIdRecolorResponses[keyof PutBoardByBoardIdStageByStageIdRecolorResponses];
2568
+ export type PutBoardByBoardIdStageByStageIdReactivateData = {
1938
2569
  body?: never;
1939
2570
  path: {
1940
- contactId: number;
2571
+ boardId: string;
2572
+ stageId: string;
1941
2573
  };
1942
2574
  query?: never;
1943
- url: '/contact/{contactId}/close';
2575
+ url: '/board/{boardId}/stage/{stageId}/reactivate';
1944
2576
  };
1945
- export type PutContactByContactIdCloseResponses = {
2577
+ export type PutBoardByBoardIdStageByStageIdReactivateResponses = {
1946
2578
  /**
1947
2579
  * No Content
1948
2580
  */
1949
2581
  204: void;
1950
2582
  };
1951
- export type PutContactByContactIdCloseResponse = PutContactByContactIdCloseResponses[keyof PutContactByContactIdCloseResponses];
1952
- export type PutContactByContactIdAssignmentData = {
1953
- body: ReassignMemberRequest;
2583
+ export type PutBoardByBoardIdStageByStageIdReactivateResponse = PutBoardByBoardIdStageByStageIdReactivateResponses[keyof PutBoardByBoardIdStageByStageIdReactivateResponses];
2584
+ export type PutBoardByBoardIdStageByStageIdDeactivateData = {
2585
+ body?: DeactivateStageRequest;
1954
2586
  path: {
1955
- contactId: number;
2587
+ boardId: string;
2588
+ stageId: string;
1956
2589
  };
1957
2590
  query?: never;
1958
- url: '/contact/{contactId}/assignment';
2591
+ url: '/board/{boardId}/stage/{stageId}/deactivate';
1959
2592
  };
1960
- export type PutContactByContactIdAssignmentResponses = {
2593
+ export type PutBoardByBoardIdStageByStageIdDeactivateResponses = {
1961
2594
  /**
1962
2595
  * No Content
1963
2596
  */
1964
2597
  204: void;
1965
2598
  };
1966
- export type PutContactByContactIdAssignmentResponse = PutContactByContactIdAssignmentResponses[keyof PutContactByContactIdAssignmentResponses];
1967
- export type PutContactByContactIdArchiveData = {
2599
+ export type PutBoardByBoardIdStageByStageIdDeactivateResponse = PutBoardByBoardIdStageByStageIdDeactivateResponses[keyof PutBoardByBoardIdStageByStageIdDeactivateResponses];
2600
+ export type PutBoardByBoardIdStageOrderData = {
2601
+ body: ReorderStagesRequest;
2602
+ path: {
2603
+ boardId: string;
2604
+ };
2605
+ query?: never;
2606
+ url: '/board/{boardId}/stage-order';
2607
+ };
2608
+ export type PutBoardByBoardIdStageOrderResponses = {
2609
+ /**
2610
+ * No Content
2611
+ */
2612
+ 204: void;
2613
+ };
2614
+ export type PutBoardByBoardIdStageOrderResponse = PutBoardByBoardIdStageOrderResponses[keyof PutBoardByBoardIdStageOrderResponses];
2615
+ export type PutBoardByBoardIdRenameData = {
2616
+ body: RenameRequest;
2617
+ path: {
2618
+ boardId: string;
2619
+ };
2620
+ query?: never;
2621
+ url: '/board/{boardId}/rename';
2622
+ };
2623
+ export type PutBoardByBoardIdRenameResponses = {
2624
+ /**
2625
+ * No Content
2626
+ */
2627
+ 204: void;
2628
+ };
2629
+ export type PutBoardByBoardIdRenameResponse = PutBoardByBoardIdRenameResponses[keyof PutBoardByBoardIdRenameResponses];
2630
+ export type PutBoardByBoardIdArchiveData = {
1968
2631
  body?: never;
1969
2632
  path: {
1970
- contactId: number;
2633
+ boardId: string;
1971
2634
  };
1972
2635
  query?: never;
1973
- url: '/contact/{contactId}/archive';
2636
+ url: '/board/{boardId}/archive';
1974
2637
  };
1975
- export type PutContactByContactIdArchiveResponses = {
2638
+ export type PutBoardByBoardIdArchiveResponses = {
1976
2639
  /**
1977
2640
  * No Content
1978
2641
  */
1979
2642
  204: void;
1980
2643
  };
1981
- export type PutContactByContactIdArchiveResponse = PutContactByContactIdArchiveResponses[keyof PutContactByContactIdArchiveResponses];
1982
- export type PutContactMergeData = {
1983
- body: ContactMergeRequest;
2644
+ export type PutBoardByBoardIdArchiveResponse = PutBoardByBoardIdArchiveResponses[keyof PutBoardByBoardIdArchiveResponses];
2645
+ export type GetBoardSettingsData = {
2646
+ body?: never;
1984
2647
  path?: never;
1985
2648
  query?: never;
1986
- url: '/contact/merge';
2649
+ url: '/board/settings';
1987
2650
  };
1988
- export type PutContactMergeResponses = {
2651
+ export type GetBoardSettingsResponses = {
2652
+ /**
2653
+ * OK
2654
+ */
2655
+ 200: TaskSettingsResponse;
2656
+ };
2657
+ export type GetBoardSettingsResponse = GetBoardSettingsResponses[keyof GetBoardSettingsResponses];
2658
+ export type PutBoardSettingsData = {
2659
+ body: SetTaskSettingsRequest;
2660
+ path?: never;
2661
+ query?: never;
2662
+ url: '/board/settings';
2663
+ };
2664
+ export type PutBoardSettingsResponses = {
1989
2665
  /**
1990
2666
  * No Content
1991
2667
  */
1992
2668
  204: void;
1993
2669
  };
1994
- export type PutContactMergeResponse = PutContactMergeResponses[keyof PutContactMergeResponses];
2670
+ export type PutBoardSettingsResponse = PutBoardSettingsResponses[keyof PutBoardSettingsResponses];
1995
2671
  export type PutAgencyByAgencyIdDetailsData = {
1996
2672
  body: CreateAgencyRequest;
1997
2673
  path: {
@@ -2159,9 +2835,176 @@ export type PostWalletDepositResponses = {
2159
2835
  /**
2160
2836
  * No Content
2161
2837
  */
2162
- 204: void;
2838
+ 204: void;
2839
+ };
2840
+ export type PostWalletDepositResponse = PostWalletDepositResponses[keyof PostWalletDepositResponses];
2841
+ export type PostTelegramConnectLinkData = {
2842
+ body?: never;
2843
+ path?: never;
2844
+ query?: never;
2845
+ url: '/telegram/connect-link';
2846
+ };
2847
+ export type PostTelegramConnectLinkResponses = {
2848
+ /**
2849
+ * OK
2850
+ */
2851
+ 200: ConnectLinkResponse;
2852
+ };
2853
+ export type PostTelegramConnectLinkResponse = PostTelegramConnectLinkResponses[keyof PostTelegramConnectLinkResponses];
2854
+ export type GetTasksByTaskIdCommentsData = {
2855
+ body?: never;
2856
+ path: {
2857
+ taskId: string;
2858
+ };
2859
+ query?: {
2860
+ onlyMine?: boolean;
2861
+ cursor?: string;
2862
+ limit?: number;
2863
+ };
2864
+ url: '/tasks/{taskId}/comments';
2865
+ };
2866
+ export type GetTasksByTaskIdCommentsResponses = {
2867
+ /**
2868
+ * OK
2869
+ */
2870
+ 200: CursorPageCommentView;
2871
+ };
2872
+ export type GetTasksByTaskIdCommentsResponse = GetTasksByTaskIdCommentsResponses[keyof GetTasksByTaskIdCommentsResponses];
2873
+ export type PostTasksByTaskIdCommentsData = {
2874
+ body: CommentBodyRequest;
2875
+ path: {
2876
+ taskId: string;
2877
+ };
2878
+ query?: never;
2879
+ url: '/tasks/{taskId}/comments';
2880
+ };
2881
+ export type PostTasksByTaskIdCommentsResponses = {
2882
+ /**
2883
+ * OK
2884
+ */
2885
+ 200: IdResponseUuid;
2886
+ };
2887
+ export type PostTasksByTaskIdCommentsResponse = PostTasksByTaskIdCommentsResponses[keyof PostTasksByTaskIdCommentsResponses];
2888
+ export type PostTaskData = {
2889
+ body: OpenTaskRequest;
2890
+ path?: never;
2891
+ query?: never;
2892
+ url: '/task';
2893
+ };
2894
+ export type PostTaskResponses = {
2895
+ /**
2896
+ * Created
2897
+ */
2898
+ 201: IdResponseUuid;
2899
+ };
2900
+ export type PostTaskResponse = PostTaskResponses[keyof PostTaskResponses];
2901
+ export type PostTaskByTaskIdPropertyData = {
2902
+ body: LinkPropertyRequest;
2903
+ path: {
2904
+ taskId: string;
2905
+ };
2906
+ query?: never;
2907
+ url: '/task/{taskId}/property';
2908
+ };
2909
+ export type PostTaskByTaskIdPropertyResponses = {
2910
+ /**
2911
+ * No Content
2912
+ */
2913
+ 204: void;
2914
+ };
2915
+ export type PostTaskByTaskIdPropertyResponse = PostTaskByTaskIdPropertyResponses[keyof PostTaskByTaskIdPropertyResponses];
2916
+ export type DeleteTaskByTaskIdParticipantByMemberIdData = {
2917
+ body?: never;
2918
+ path: {
2919
+ taskId: string;
2920
+ memberId: string;
2921
+ };
2922
+ query?: never;
2923
+ url: '/task/{taskId}/participant/{memberId}';
2924
+ };
2925
+ export type DeleteTaskByTaskIdParticipantByMemberIdResponses = {
2926
+ /**
2927
+ * No Content
2928
+ */
2929
+ 204: void;
2930
+ };
2931
+ export type DeleteTaskByTaskIdParticipantByMemberIdResponse = DeleteTaskByTaskIdParticipantByMemberIdResponses[keyof DeleteTaskByTaskIdParticipantByMemberIdResponses];
2932
+ export type PostTaskByTaskIdParticipantByMemberIdData = {
2933
+ body?: never;
2934
+ path: {
2935
+ taskId: string;
2936
+ memberId: string;
2937
+ };
2938
+ query?: never;
2939
+ url: '/task/{taskId}/participant/{memberId}';
2940
+ };
2941
+ export type PostTaskByTaskIdParticipantByMemberIdResponses = {
2942
+ /**
2943
+ * No Content
2944
+ */
2945
+ 204: void;
2946
+ };
2947
+ export type PostTaskByTaskIdParticipantByMemberIdResponse = PostTaskByTaskIdParticipantByMemberIdResponses[keyof PostTaskByTaskIdParticipantByMemberIdResponses];
2948
+ export type PostTaskByTaskIdInterestData = {
2949
+ body: LinkInterestRequest;
2950
+ path: {
2951
+ taskId: string;
2952
+ };
2953
+ query?: never;
2954
+ url: '/task/{taskId}/interest';
2955
+ };
2956
+ export type PostTaskByTaskIdInterestResponses = {
2957
+ /**
2958
+ * No Content
2959
+ */
2960
+ 204: void;
2961
+ };
2962
+ export type PostTaskByTaskIdInterestResponse = PostTaskByTaskIdInterestResponses[keyof PostTaskByTaskIdInterestResponses];
2963
+ export type DeleteTaskByTaskIdContactByContactIdData = {
2964
+ body?: never;
2965
+ path: {
2966
+ taskId: string;
2967
+ contactId: number;
2968
+ };
2969
+ query?: never;
2970
+ url: '/task/{taskId}/contact/{contactId}';
2971
+ };
2972
+ export type DeleteTaskByTaskIdContactByContactIdResponses = {
2973
+ /**
2974
+ * No Content
2975
+ */
2976
+ 204: void;
2977
+ };
2978
+ export type DeleteTaskByTaskIdContactByContactIdResponse = DeleteTaskByTaskIdContactByContactIdResponses[keyof DeleteTaskByTaskIdContactByContactIdResponses];
2979
+ export type PostTaskByTaskIdContactByContactIdData = {
2980
+ body?: never;
2981
+ path: {
2982
+ taskId: string;
2983
+ contactId: number;
2984
+ };
2985
+ query?: never;
2986
+ url: '/task/{taskId}/contact/{contactId}';
2987
+ };
2988
+ export type PostTaskByTaskIdContactByContactIdResponses = {
2989
+ /**
2990
+ * No Content
2991
+ */
2992
+ 204: void;
2993
+ };
2994
+ export type PostTaskByTaskIdContactByContactIdResponse = PostTaskByTaskIdContactByContactIdResponses[keyof PostTaskByTaskIdContactByContactIdResponses];
2995
+ export type PostTaskTodoData = {
2996
+ body: CreateAdHocTodoRequest;
2997
+ path?: never;
2998
+ query?: never;
2999
+ url: '/task-todo';
3000
+ };
3001
+ export type PostTaskTodoResponses = {
3002
+ /**
3003
+ * Created
3004
+ */
3005
+ 201: IdResponseUuid;
2163
3006
  };
2164
- export type PostWalletDepositResponse = PostWalletDepositResponses[keyof PostWalletDepositResponses];
3007
+ export type PostTaskTodoResponse = PostTaskTodoResponses[keyof PostTaskTodoResponses];
2165
3008
  export type DeleteSubscriptionsData = {
2166
3009
  body?: never;
2167
3010
  path?: never;
@@ -2227,6 +3070,21 @@ export type PostRolesResponses = {
2227
3070
  201: IdResponseInteger;
2228
3071
  };
2229
3072
  export type PostRolesResponse = PostRolesResponses[keyof PostRolesResponses];
3073
+ export type PostPublicWebhooksTelegramData = {
3074
+ body: string;
3075
+ headers?: {
3076
+ 'X-Telegram-Bot-Api-Secret-Token'?: string;
3077
+ };
3078
+ path?: never;
3079
+ query?: never;
3080
+ url: '/public/webhooks/telegram';
3081
+ };
3082
+ export type PostPublicWebhooksTelegramResponses = {
3083
+ /**
3084
+ * OK
3085
+ */
3086
+ 200: unknown;
3087
+ };
2230
3088
  export type GetPublicWebhooksMetaWaData = {
2231
3089
  body?: never;
2232
3090
  path?: never;
@@ -2864,10 +3722,9 @@ export type GetContactData = {
2864
3722
  body?: never;
2865
3723
  path?: never;
2866
3724
  query?: {
2867
- statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON'>;
2868
- priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
2869
3725
  isSearching?: boolean;
2870
3726
  isListing?: boolean;
3727
+ hasOpenTask?: boolean;
2871
3728
  assignedTo?: Array<string>;
2872
3729
  createdBy?: string;
2873
3730
  contactName?: string;
@@ -2877,19 +3734,6 @@ export type GetContactData = {
2877
3734
  contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
2878
3735
  createdFrom?: Date;
2879
3736
  createdTo?: Date;
2880
- listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
2881
- propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
2882
- regionId?: number;
2883
- districtId?: number;
2884
- subDistrictId?: number;
2885
- streetId?: number;
2886
- priceMin?: number;
2887
- priceMax?: number;
2888
- areaMin?: number;
2889
- areaMax?: number;
2890
- roomsMin?: number;
2891
- roomsMax?: number;
2892
- includeArchived?: boolean;
2893
3737
  /**
2894
3738
  * Zero-based page index (0..N)
2895
3739
  */
@@ -2968,6 +3812,63 @@ export type PostContactSourceResponses = {
2968
3812
  201: IdResponseLong;
2969
3813
  };
2970
3814
  export type PostContactSourceResponse = PostContactSourceResponses[keyof PostContactSourceResponses];
3815
+ export type GetBoardData = {
3816
+ body?: never;
3817
+ path?: never;
3818
+ query?: never;
3819
+ url: '/board';
3820
+ };
3821
+ export type GetBoardResponses = {
3822
+ /**
3823
+ * OK
3824
+ */
3825
+ 200: Array<BoardSummaryResponse>;
3826
+ };
3827
+ export type GetBoardResponse = GetBoardResponses[keyof GetBoardResponses];
3828
+ export type PostBoardData = {
3829
+ body: CreateBoardRequest;
3830
+ path?: never;
3831
+ query?: never;
3832
+ url: '/board';
3833
+ };
3834
+ export type PostBoardResponses = {
3835
+ /**
3836
+ * Created
3837
+ */
3838
+ 201: IdResponseUuid;
3839
+ };
3840
+ export type PostBoardResponse = PostBoardResponses[keyof PostBoardResponses];
3841
+ export type PostBoardByBoardIdStageData = {
3842
+ body: AddStageRequest;
3843
+ path: {
3844
+ boardId: string;
3845
+ };
3846
+ query?: never;
3847
+ url: '/board/{boardId}/stage';
3848
+ };
3849
+ export type PostBoardByBoardIdStageResponses = {
3850
+ /**
3851
+ * Created
3852
+ */
3853
+ 201: IdResponseUuid;
3854
+ };
3855
+ export type PostBoardByBoardIdStageResponse = PostBoardByBoardIdStageResponses[keyof PostBoardByBoardIdStageResponses];
3856
+ export type PostBoardByBoardIdStageByStageIdTemplateData = {
3857
+ body: AddTodoTemplateRequest;
3858
+ path: {
3859
+ boardId: string;
3860
+ stageId: string;
3861
+ };
3862
+ query?: never;
3863
+ url: '/board/{boardId}/stage/{stageId}/template';
3864
+ };
3865
+ export type PostBoardByBoardIdStageByStageIdTemplateResponses = {
3866
+ /**
3867
+ * Created
3868
+ */
3869
+ 201: IdResponseUuid;
3870
+ };
3871
+ export type PostBoardByBoardIdStageByStageIdTemplateResponse = PostBoardByBoardIdStageByStageIdTemplateResponses[keyof PostBoardByBoardIdStageByStageIdTemplateResponses];
2971
3872
  export type PostApiAdminSubscriptionsProvisionData = {
2972
3873
  body: ProvisionAgencyRequest;
2973
3874
  path?: never;
@@ -3020,6 +3921,157 @@ export type GetUserMeResponses = {
3020
3921
  200: UserContextViewResponse;
3021
3922
  };
3022
3923
  export type GetUserMeResponse = GetUserMeResponses[keyof GetUserMeResponses];
3924
+ export type DeleteTaskByTaskIdData = {
3925
+ body?: never;
3926
+ path: {
3927
+ taskId: string;
3928
+ };
3929
+ query?: never;
3930
+ url: '/task/{taskId}';
3931
+ };
3932
+ export type DeleteTaskByTaskIdResponses = {
3933
+ /**
3934
+ * No Content
3935
+ */
3936
+ 204: void;
3937
+ };
3938
+ export type DeleteTaskByTaskIdResponse = DeleteTaskByTaskIdResponses[keyof DeleteTaskByTaskIdResponses];
3939
+ export type GetTaskByTaskIdData = {
3940
+ body?: never;
3941
+ path: {
3942
+ taskId: string;
3943
+ };
3944
+ query?: never;
3945
+ url: '/task/{taskId}';
3946
+ };
3947
+ export type GetTaskByTaskIdResponses = {
3948
+ /**
3949
+ * OK
3950
+ */
3951
+ 200: TaskDetailResponse;
3952
+ };
3953
+ export type GetTaskByTaskIdResponse = GetTaskByTaskIdResponses[keyof GetTaskByTaskIdResponses];
3954
+ export type GetTaskByContactByContactIdData = {
3955
+ body?: never;
3956
+ path: {
3957
+ contactId: number;
3958
+ };
3959
+ query?: never;
3960
+ url: '/task/by-contact/{contactId}';
3961
+ };
3962
+ export type GetTaskByContactByContactIdResponses = {
3963
+ /**
3964
+ * OK
3965
+ */
3966
+ 200: Array<ContactTaskResponse>;
3967
+ };
3968
+ export type GetTaskByContactByContactIdResponse = GetTaskByContactByContactIdResponses[keyof GetTaskByContactByContactIdResponses];
3969
+ export type GetTaskBoardByBoardIdData = {
3970
+ body?: never;
3971
+ path: {
3972
+ boardId: string;
3973
+ };
3974
+ query?: never;
3975
+ url: '/task/board/{boardId}';
3976
+ };
3977
+ export type GetTaskBoardByBoardIdResponses = {
3978
+ /**
3979
+ * OK
3980
+ */
3981
+ 200: BoardGridResponse;
3982
+ };
3983
+ export type GetTaskBoardByBoardIdResponse = GetTaskBoardByBoardIdResponses[keyof GetTaskBoardByBoardIdResponses];
3984
+ export type GetTaskBoardByBoardIdStageByStageIdCardsData = {
3985
+ body?: never;
3986
+ path: {
3987
+ boardId: string;
3988
+ stageId: string;
3989
+ };
3990
+ query?: {
3991
+ cursor?: string;
3992
+ limit?: number;
3993
+ };
3994
+ url: '/task/board/{boardId}/stage/{stageId}/cards';
3995
+ };
3996
+ export type GetTaskBoardByBoardIdStageByStageIdCardsResponses = {
3997
+ /**
3998
+ * OK
3999
+ */
4000
+ 200: CursorPageCard;
4001
+ };
4002
+ export type GetTaskBoardByBoardIdStageByStageIdCardsResponse = GetTaskBoardByBoardIdStageByStageIdCardsResponses[keyof GetTaskBoardByBoardIdStageByStageIdCardsResponses];
4003
+ export type GetTaskBoardByBoardIdClosedData = {
4004
+ body?: never;
4005
+ path: {
4006
+ boardId: string;
4007
+ };
4008
+ query?: {
4009
+ outcome?: 'WON' | 'LOST';
4010
+ /**
4011
+ * Zero-based page index (0..N)
4012
+ */
4013
+ page?: number;
4014
+ /**
4015
+ * The size of the page to be returned
4016
+ */
4017
+ size?: number;
4018
+ /**
4019
+ * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
4020
+ */
4021
+ sort?: Array<string>;
4022
+ };
4023
+ url: '/task/board/{boardId}/closed';
4024
+ };
4025
+ export type GetTaskBoardByBoardIdClosedResponses = {
4026
+ /**
4027
+ * OK
4028
+ */
4029
+ 200: PagedModelClosedTaskResponse;
4030
+ };
4031
+ export type GetTaskBoardByBoardIdClosedResponse = GetTaskBoardByBoardIdClosedResponses[keyof GetTaskBoardByBoardIdClosedResponses];
4032
+ export type GetStatisticsWinRateData = {
4033
+ body?: never;
4034
+ path?: never;
4035
+ query?: {
4036
+ period?: string;
4037
+ };
4038
+ url: '/statistics/win-rate';
4039
+ };
4040
+ export type GetStatisticsWinRateResponses = {
4041
+ /**
4042
+ * OK
4043
+ */
4044
+ 200: StatsEnvelopeWinRateStats;
4045
+ };
4046
+ export type GetStatisticsWinRateResponse = GetStatisticsWinRateResponses[keyof GetStatisticsWinRateResponses];
4047
+ export type GetStatisticsTaskVelocityData = {
4048
+ body?: never;
4049
+ path?: never;
4050
+ query?: {
4051
+ period?: string;
4052
+ };
4053
+ url: '/statistics/task-velocity';
4054
+ };
4055
+ export type GetStatisticsTaskVelocityResponses = {
4056
+ /**
4057
+ * OK
4058
+ */
4059
+ 200: StatsEnvelopeTaskVelocityStats;
4060
+ };
4061
+ export type GetStatisticsTaskVelocityResponse = GetStatisticsTaskVelocityResponses[keyof GetStatisticsTaskVelocityResponses];
4062
+ export type GetStatisticsTaskFunnelData = {
4063
+ body?: never;
4064
+ path?: never;
4065
+ query?: never;
4066
+ url: '/statistics/task-funnel';
4067
+ };
4068
+ export type GetStatisticsTaskFunnelResponses = {
4069
+ /**
4070
+ * OK
4071
+ */
4072
+ 200: StatsEnvelopeTaskFunnelStats;
4073
+ };
4074
+ export type GetStatisticsTaskFunnelResponse = GetStatisticsTaskFunnelResponses[keyof GetStatisticsTaskFunnelResponses];
3023
4075
  export type GetStatisticsSupplyData = {
3024
4076
  body?: never;
3025
4077
  path?: never;
@@ -3458,7 +4510,7 @@ export type GetMemberData = {
3458
4510
  path?: never;
3459
4511
  query?: {
3460
4512
  roleId?: number;
3461
- permission?: 'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT';
4513
+ permission?: 'MANAGE_AGENCY' | 'MANAGE_ROLE' | 'MANAGE_MEMBER' | 'CREATE_DELETE_MEMBER' | 'CREATE_CONTACT' | 'DELETE_CONTACT' | 'MANAGE_CONTACT' | 'MANAGE_ANY_CONTACT' | 'ASSIGN_CONTACT' | 'MANAGE_BOARD' | 'MANAGE_DEAL' | 'DELETE_DEAL';
3462
4514
  /**
3463
4515
  * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
3464
4516
  */
@@ -3869,11 +4921,10 @@ export type GetContactGroupsData = {
3869
4921
  body?: never;
3870
4922
  path?: never;
3871
4923
  query: {
3872
- groupBy: 'ASSIGNED_TO' | 'CREATED_BY' | 'PRIORITY' | 'STATUS' | 'SOURCE_TYPE' | 'IS_SEARCHING' | 'IS_LISTING' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
3873
- statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON'>;
3874
- priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
4924
+ groupBy: 'ASSIGNED_TO' | 'CREATED_BY' | 'SOURCE_TYPE' | 'IS_SEARCHING' | 'IS_LISTING' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
3875
4925
  isSearching?: boolean;
3876
4926
  isListing?: boolean;
4927
+ hasOpenTask?: boolean;
3877
4928
  assignedTo?: Array<string>;
3878
4929
  createdBy?: string;
3879
4930
  contactName?: string;
@@ -3883,18 +4934,6 @@ export type GetContactGroupsData = {
3883
4934
  contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
3884
4935
  createdFrom?: Date;
3885
4936
  createdTo?: Date;
3886
- listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
3887
- propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
3888
- regionId?: number;
3889
- districtId?: number;
3890
- subDistrictId?: number;
3891
- streetId?: number;
3892
- priceMin?: number;
3893
- priceMax?: number;
3894
- areaMin?: number;
3895
- areaMax?: number;
3896
- roomsMin?: number;
3897
- roomsMax?: number;
3898
4937
  };
3899
4938
  url: '/contact/groups';
3900
4939
  };
@@ -3905,88 +4944,21 @@ export type GetContactGroupsResponses = {
3905
4944
  200: Array<GroupCount>;
3906
4945
  };
3907
4946
  export type GetContactGroupsResponse = GetContactGroupsResponses[keyof GetContactGroupsResponses];
3908
- export type GetContactBoardData = {
3909
- body?: never;
3910
- path?: never;
3911
- query?: {
3912
- statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON'>;
3913
- priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
3914
- isSearching?: boolean;
3915
- isListing?: boolean;
3916
- assignedTo?: Array<string>;
3917
- createdBy?: string;
3918
- contactName?: string;
3919
- contactPhone?: string;
3920
- contactEmail?: string;
3921
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
3922
- contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
3923
- createdFrom?: Date;
3924
- createdTo?: Date;
3925
- listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
3926
- propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
3927
- regionId?: number;
3928
- districtId?: number;
3929
- subDistrictId?: number;
3930
- streetId?: number;
3931
- priceMin?: number;
3932
- priceMax?: number;
3933
- areaMin?: number;
3934
- areaMax?: number;
3935
- roomsMin?: number;
3936
- roomsMax?: number;
3937
- };
3938
- url: '/contact/board';
3939
- };
3940
- export type GetContactBoardResponses = {
3941
- /**
3942
- * OK
3943
- */
3944
- 200: ContactKanbanResponse;
3945
- };
3946
- export type GetContactBoardResponse = GetContactBoardResponses[keyof GetContactBoardResponses];
3947
- export type GetContactBoardByStatusCardsData = {
4947
+ export type GetBoardByBoardIdData = {
3948
4948
  body?: never;
3949
4949
  path: {
3950
- status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON';
3951
- };
3952
- query?: {
3953
- statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'WON'>;
3954
- priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
3955
- isSearching?: boolean;
3956
- isListing?: boolean;
3957
- assignedTo?: Array<string>;
3958
- createdBy?: string;
3959
- contactName?: string;
3960
- contactPhone?: string;
3961
- contactEmail?: string;
3962
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
3963
- contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
3964
- createdFrom?: Date;
3965
- createdTo?: Date;
3966
- listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
3967
- propertyTypes?: Array<'HOUSE' | 'TOWN_HOUSE' | 'COUNTRY_HOUSE' | 'VILLA' | 'COTTAGE' | 'APARTMENT' | 'DUPLEX' | 'TRIPLEX' | 'SEMI_BASEMENT' | 'ATTIC' | 'AGRICULTURAL_LAND' | 'RESIDENTIAL_LAND' | 'HOTEL_ROOM' | 'MOTEL_ROOM' | 'CO_LIVING_SPACE' | 'OFFICE' | 'COMMERCIAL_SPACE' | 'CO_WORKING_SPACE' | 'WAREHOUSE' | 'GARAGE'>;
3968
- regionId?: number;
3969
- districtId?: number;
3970
- subDistrictId?: number;
3971
- streetId?: number;
3972
- priceMin?: number;
3973
- priceMax?: number;
3974
- areaMin?: number;
3975
- areaMax?: number;
3976
- roomsMin?: number;
3977
- roomsMax?: number;
3978
- cursor?: string;
3979
- limit?: number;
4950
+ boardId: string;
3980
4951
  };
3981
- url: '/contact/board/{status}/cards';
4952
+ query?: never;
4953
+ url: '/board/{boardId}';
3982
4954
  };
3983
- export type GetContactBoardByStatusCardsResponses = {
4955
+ export type GetBoardByBoardIdResponses = {
3984
4956
  /**
3985
4957
  * OK
3986
4958
  */
3987
- 200: CursorPageCard;
4959
+ 200: BoardResponse;
3988
4960
  };
3989
- export type GetContactBoardByStatusCardsResponse = GetContactBoardByStatusCardsResponses[keyof GetContactBoardByStatusCardsResponses];
4961
+ export type GetBoardByBoardIdResponse = GetBoardByBoardIdResponses[keyof GetBoardByBoardIdResponses];
3990
4962
  export type GetAgencyByAgencyIdOwnerData = {
3991
4963
  body?: never;
3992
4964
  path: {
@@ -4045,6 +5017,53 @@ export type GetAgencyFeaturedMembersResponses = {
4045
5017
  200: Array<MemberCurationView>;
4046
5018
  };
4047
5019
  export type GetAgencyFeaturedMembersResponse = GetAgencyFeaturedMembersResponses[keyof GetAgencyFeaturedMembersResponses];
5020
+ export type DeleteTaskByTaskIdPropertyByPropertyIdData = {
5021
+ body?: never;
5022
+ path: {
5023
+ taskId: string;
5024
+ propertyId: number;
5025
+ };
5026
+ query?: never;
5027
+ url: '/task/{taskId}/property/{propertyId}';
5028
+ };
5029
+ export type DeleteTaskByTaskIdPropertyByPropertyIdResponses = {
5030
+ /**
5031
+ * No Content
5032
+ */
5033
+ 204: void;
5034
+ };
5035
+ export type DeleteTaskByTaskIdPropertyByPropertyIdResponse = DeleteTaskByTaskIdPropertyByPropertyIdResponses[keyof DeleteTaskByTaskIdPropertyByPropertyIdResponses];
5036
+ export type DeleteTaskByTaskIdInterestByInterestIdData = {
5037
+ body?: never;
5038
+ path: {
5039
+ taskId: string;
5040
+ interestId: number;
5041
+ };
5042
+ query?: never;
5043
+ url: '/task/{taskId}/interest/{interestId}';
5044
+ };
5045
+ export type DeleteTaskByTaskIdInterestByInterestIdResponses = {
5046
+ /**
5047
+ * No Content
5048
+ */
5049
+ 204: void;
5050
+ };
5051
+ export type DeleteTaskByTaskIdInterestByInterestIdResponse = DeleteTaskByTaskIdInterestByInterestIdResponses[keyof DeleteTaskByTaskIdInterestByInterestIdResponses];
5052
+ export type DeleteTaskTodoByTodoIdData = {
5053
+ body?: never;
5054
+ path: {
5055
+ todoId: string;
5056
+ };
5057
+ query?: never;
5058
+ url: '/task-todo/{todoId}';
5059
+ };
5060
+ export type DeleteTaskTodoByTodoIdResponses = {
5061
+ /**
5062
+ * No Content
5063
+ */
5064
+ 204: void;
5065
+ };
5066
+ export type DeleteTaskTodoByTodoIdResponse = DeleteTaskTodoByTodoIdResponses[keyof DeleteTaskTodoByTodoIdResponses];
4048
5067
  export type DeleteOauthGoogleData = {
4049
5068
  body?: never;
4050
5069
  path?: never;
@@ -4123,4 +5142,21 @@ export type DeleteContactsByContactIdInterestsByInterestIdListingsByExternalList
4123
5142
  204: void;
4124
5143
  };
4125
5144
  export type DeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponse = DeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponses[keyof DeleteContactsByContactIdInterestsByInterestIdListingsByExternalListingIdResponses];
5145
+ export type DeleteBoardByBoardIdStageByStageIdTemplateByTemplateIdData = {
5146
+ body?: never;
5147
+ path: {
5148
+ boardId: string;
5149
+ stageId: string;
5150
+ templateId: string;
5151
+ };
5152
+ query?: never;
5153
+ url: '/board/{boardId}/stage/{stageId}/template/{templateId}';
5154
+ };
5155
+ export type DeleteBoardByBoardIdStageByStageIdTemplateByTemplateIdResponses = {
5156
+ /**
5157
+ * No Content
5158
+ */
5159
+ 204: void;
5160
+ };
5161
+ export type DeleteBoardByBoardIdStageByStageIdTemplateByTemplateIdResponse = DeleteBoardByBoardIdStageByStageIdTemplateByTemplateIdResponses[keyof DeleteBoardByBoardIdStageByStageIdTemplateByTemplateIdResponses];
4126
5162
  //# sourceMappingURL=types.gen.d.ts.map