@homespot-sdk/core 0.0.300 → 0.0.302

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.
@@ -56,7 +56,7 @@ export type UpdateEmailRequest = {
56
56
  export type RolesRequest = {
57
57
  name: string;
58
58
  description: string;
59
- permissions: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'LEAD_READ' | 'LEAD_WRITE' | 'LEAD_READ_ALL' | 'LEAD_WRITE_ALL' | 'CLIENT_READ' | 'CLIENT_WRITE' | 'CLIENT_READ_ALL' | 'CLIENT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
59
+ permissions: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'CONTACT_READ' | 'CONTACT_WRITE' | 'CONTACT_READ_ALL' | 'CONTACT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
60
60
  };
61
61
  export type AssignRoleRequest = {
62
62
  roleId: number;
@@ -78,42 +78,6 @@ export type RescheduleRequest = {
78
78
  start: Date;
79
79
  durationMinutes?: number;
80
80
  };
81
- export type RecordSourceRequest = {
82
- sourceUrl?: string;
83
- };
84
- export type NoteRequest = {
85
- note?: string;
86
- };
87
- export type RecordLostLeadRequest = {
88
- reason: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
89
- };
90
- export type IntentRequest = {
91
- clientType: 'LISTING' | 'SEEKING';
92
- listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
93
- 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';
94
- price?: PriceRangeRequest;
95
- targetLocation?: LocationTargetRequest;
96
- area?: number;
97
- numberOfRooms?: number;
98
- };
99
- export type LocationTargetRequest = {
100
- id: number;
101
- type: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
102
- };
103
- export type PriceRangeRequest = {
104
- min?: number;
105
- max?: number;
106
- };
107
- export type ContactInfoRequest = {
108
- firstName?: string;
109
- lastName?: string;
110
- gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
111
- email?: string;
112
- phone: string;
113
- };
114
- export type ReassignMemberRequest = {
115
- memberId: string;
116
- };
117
81
  export type RenameClientRecommendationsRequest = {
118
82
  name?: string;
119
83
  };
@@ -121,9 +85,6 @@ export type AgreementRequest = {
121
85
  type: 'EXCLUSIVE' | 'NON_EXCLUSIVE';
122
86
  expiresAt?: Date;
123
87
  };
124
- export type ReprioritizeClientRequest = {
125
- priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
126
- };
127
88
  export type CaptureInterestRequest = {
128
89
  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'>;
129
90
  listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
@@ -139,10 +100,36 @@ export type CaptureInterestRequest = {
139
100
  livingAreaMax?: number;
140
101
  location?: LocationTargetRequest;
141
102
  };
103
+ export type LocationTargetRequest = {
104
+ id: number;
105
+ type: 'REGION' | 'DISTRICT' | 'SUBDISTRICT' | 'STREET';
106
+ };
107
+ export type CommentBodyRequest = {
108
+ body: string;
109
+ };
110
+ export type ContactStatusRequest = {
111
+ status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WORM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'CLOSED';
112
+ };
113
+ export type ReprioritizeClientRequest = {
114
+ priority: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
115
+ };
116
+ export type RecordLostContactRequest = {
117
+ reason: 'NOT_WORKING_WITH_AGENTS' | 'NOT_RESPONDING' | 'ALREADY_SOLD' | 'COULD_NOT_NEGOTIATE_PRICE' | 'CHOSE_ANOTHER_AGENCY' | 'CHANGED_PLANS' | 'OUT_OF_BUDGET' | 'SPAM' | 'OTHER';
118
+ };
142
119
  export type UpdateContactPreferencesRequest = {
143
120
  contactMethods: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
144
121
  favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
145
122
  };
123
+ export type ContactInfoRequest = {
124
+ firstName?: string;
125
+ lastName?: string;
126
+ gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
127
+ email?: string;
128
+ phone: string;
129
+ };
130
+ export type ReassignMemberRequest = {
131
+ memberId: string;
132
+ };
146
133
  export type AddressRequest = {
147
134
  country: string;
148
135
  city: string;
@@ -192,10 +179,6 @@ export type DepositFundsRequest = {
192
179
  export type IdResponseInteger = {
193
180
  id: number;
194
181
  };
195
- export type CaptureLeadRequest = {
196
- contactInfo: ContactInfoRequest;
197
- note?: string;
198
- };
199
182
  export type RateRecommendationItemRequest = {
200
183
  decision: 'MAYBE' | 'DISLIKE' | 'LIKE' | 'VISIT';
201
184
  note?: string;
@@ -203,7 +186,7 @@ export type RateRecommendationItemRequest = {
203
186
  export type AttendeeRequest = {
204
187
  role: 'ORGANIZER' | 'MEMBER' | 'OWNER' | 'CLIENT' | 'OTHER';
205
188
  memberId?: string;
206
- clientId?: number;
189
+ contactId?: number;
207
190
  email?: string;
208
191
  name?: string;
209
192
  };
@@ -231,13 +214,6 @@ export type MeetingResponse = {
231
214
  googleEventId?: string;
232
215
  calendarLink?: string;
233
216
  };
234
- export type LeadId = {
235
- value?: number;
236
- };
237
- export type OnboardFromSourceRequest = {
238
- sourceLink: string;
239
- phone: string;
240
- };
241
217
  export type BulkRecruitmentRequest = {
242
218
  emails: Array<RecruitmentRequest>;
243
219
  };
@@ -251,97 +227,10 @@ export type AuthRequest = {
251
227
  };
252
228
  export type AgencyPrincipalDto = {
253
229
  memberId?: string;
254
- permissions?: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'LEAD_READ' | 'LEAD_WRITE' | 'LEAD_READ_ALL' | 'LEAD_WRITE_ALL' | 'CLIENT_READ' | 'CLIENT_WRITE' | 'CLIENT_READ_ALL' | 'CLIENT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
230
+ permissions?: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'CONTACT_READ' | 'CONTACT_WRITE' | 'CONTACT_READ_ALL' | 'CONTACT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
255
231
  isActive?: boolean;
256
232
  isOwner?: boolean;
257
233
  };
258
- export type OnboardClientRequest = {
259
- contactInfo: ContactInfoRequest;
260
- contactMethods: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
261
- favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
262
- priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
263
- convertedFromLeadId?: number;
264
- };
265
- export type AddressNames = {
266
- region?: {
267
- [key: string]: string;
268
- };
269
- district?: {
270
- [key: string]: string;
271
- };
272
- subdistrict?: {
273
- [key: string]: string;
274
- };
275
- street?: {
276
- [key: string]: string;
277
- };
278
- };
279
- export type AddressRef = {
280
- regionId?: number;
281
- districtId?: number;
282
- subdistrictId?: number;
283
- streetId?: number;
284
- names?: AddressNames;
285
- cadastreCode?: string;
286
- coordinates?: Coordinates;
287
- };
288
- export type ClientOnboardedResponse = {
289
- clientId: number;
290
- importedProperty?: ImportedPropertyDraft;
291
- };
292
- export type ContactSummary = {
293
- firstName?: string;
294
- lastName?: string;
295
- gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
296
- email?: string;
297
- phone?: string;
298
- };
299
- export type Coordinates = {
300
- lat?: number;
301
- lng?: number;
302
- };
303
- export type ImportedPropertyDraft = {
304
- contact?: ContactSummary;
305
- listingType?: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
306
- askingPrice?: number;
307
- propertyCreationRequest?: PropertyCreationRequest;
308
- photosForUpload?: Array<PresignedResult>;
309
- };
310
- export type PhotoInternalRequest = {
311
- photo: string;
312
- width: number;
313
- height?: number;
314
- };
315
- export type PhotoKey = {
316
- value?: string;
317
- };
318
- export type PresignedResult = {
319
- originalName?: string;
320
- key?: PhotoKey;
321
- presignedUrl?: string;
322
- };
323
- export type PropertyCreationRequest = {
324
- draftId: string;
325
- clientId?: number;
326
- 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';
327
- address: AddressRef;
328
- photoUrls: Array<PhotoInternalRequest>;
329
- spaces: {
330
- [key: string]: Array<number>;
331
- };
332
- totalArea: number;
333
- livingArea?: number;
334
- balconyArea?: number;
335
- status?: 'OLD_BUILDING' | 'NEW_BUILDING' | 'UNDER_CONSTRUCTION' | 'FINISHED';
336
- condition?: 'NEWLY_RENOVATED' | 'OLD_RENOVATED' | 'CURRENT_RENOVATION' | 'REPAIRING' | 'WHITE_FRAME' | 'BLACK_FRAME' | 'GREEN_FRAME' | 'WHITE_PLUS';
337
- totalFloors?: number;
338
- floorAt?: number;
339
- amenities: Array<number>;
340
- title: string;
341
- description: {
342
- [key: string]: string;
343
- };
344
- };
345
234
  export type CreateClientRecommendationsRequest = {
346
235
  title: string;
347
236
  interestId: number;
@@ -353,16 +242,6 @@ export type RecommendListingRequest = {
353
242
  externalPropertyId: string;
354
243
  externalListingId: string;
355
244
  };
356
- export type ExternalListingPublishRequest = {
357
- platform: 'SS' | 'MY_HOME';
358
- listingId: number;
359
- };
360
- export type ExternalListingBoostRequest = {
361
- platform: 'SS' | 'MY_HOME';
362
- listingId: number;
363
- tier: 'VIP' | 'VIP_PLUS' | 'SUPER_VIP';
364
- numberOfDays: number;
365
- };
366
245
  export type AddDealRequest = {
367
246
  listingId: number;
368
247
  commissionType: 'FIXED_SALE' | 'FIXED_RENT' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
@@ -376,6 +255,29 @@ export type InterestId = {
376
255
  export type IdResponseUuid = {
377
256
  id: string;
378
257
  };
258
+ export type OnboardClientRequest = {
259
+ contactInfo: ContactInfoRequest;
260
+ contactMethods: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
261
+ favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
262
+ priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
263
+ };
264
+ export type IdResponseLong = {
265
+ id: number;
266
+ };
267
+ export type ExternalListingPublishRequest = {
268
+ platform: 'SS' | 'MY_HOME';
269
+ listingId: number;
270
+ };
271
+ export type ExternalListingBoostRequest = {
272
+ platform: 'SS' | 'MY_HOME';
273
+ listingId: number;
274
+ tier: 'VIP' | 'VIP_PLUS' | 'SUPER_VIP';
275
+ numberOfDays: number;
276
+ };
277
+ export type OnboardFromSourceRequest = {
278
+ sourceLink: string;
279
+ phone: string;
280
+ };
379
281
  export type OrganizationSummaryViewResponse = {
380
282
  agencyId: string;
381
283
  isOwner: boolean;
@@ -385,7 +287,7 @@ export type OrganizationSummaryViewResponse = {
385
287
  memberId: string;
386
288
  profilePictureUrl?: string;
387
289
  roleName: string;
388
- permissions: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'LEAD_READ' | 'LEAD_WRITE' | 'LEAD_READ_ALL' | 'LEAD_WRITE_ALL' | 'CLIENT_READ' | 'CLIENT_WRITE' | 'CLIENT_READ_ALL' | 'CLIENT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
290
+ permissions: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'CONTACT_READ' | 'CONTACT_WRITE' | 'CONTACT_READ_ALL' | 'CONTACT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
389
291
  status: 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE';
390
292
  };
391
293
  export type UserContextViewResponse = {
@@ -413,7 +315,7 @@ export type RoleResponse = {
413
315
  isSystem?: boolean;
414
316
  isOwner?: boolean;
415
317
  description: string;
416
- permissions: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'LEAD_READ' | 'LEAD_WRITE' | 'LEAD_READ_ALL' | 'LEAD_WRITE_ALL' | 'CLIENT_READ' | 'CLIENT_WRITE' | 'CLIENT_READ_ALL' | 'CLIENT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
318
+ permissions: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'CONTACT_READ' | 'CONTACT_WRITE' | 'CONTACT_READ_ALL' | 'CONTACT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
417
319
  };
418
320
  export type AddressResponse = {
419
321
  region: LocationResponse;
@@ -447,7 +349,7 @@ export type RecommendationsCardView = {
447
349
  recommendationItemId: number;
448
350
  decision?: 'MAYBE' | 'DISLIKE' | 'LIKE' | 'VISIT';
449
351
  clientNote?: string;
450
- ownerClientId: number;
352
+ ownerContactId: number;
451
353
  listingId: number;
452
354
  externalListingId: string;
453
355
  listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
@@ -469,12 +371,12 @@ export type RecommendationDecisionResponse = {
469
371
  decision: 'MAYBE' | 'DISLIKE' | 'LIKE' | 'VISIT';
470
372
  };
471
373
  export type GroupedPermissionsResponse = {
472
- group: 'AGENCY' | 'INVITATION' | 'ROLE' | 'MEMBER' | 'LEAD' | 'CLIENT' | 'PROPERTY';
374
+ group: 'AGENCY' | 'INVITATION' | 'ROLE' | 'MEMBER' | 'CONTACT' | 'PROPERTY';
473
375
  permissions: Array<PermissionResponse>;
474
376
  };
475
377
  export type PermissionResponse = {
476
- permission: 'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'LEAD_READ' | 'LEAD_WRITE' | 'LEAD_READ_ALL' | 'LEAD_WRITE_ALL' | 'CLIENT_READ' | 'CLIENT_WRITE' | 'CLIENT_READ_ALL' | 'CLIENT_WRITE_ALL' | 'PROPERTY_READ_ALL';
477
- implied: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'LEAD_READ' | 'LEAD_WRITE' | 'LEAD_READ_ALL' | 'LEAD_WRITE_ALL' | 'CLIENT_READ' | 'CLIENT_WRITE' | 'CLIENT_READ_ALL' | 'CLIENT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
378
+ permission: 'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'CONTACT_READ' | 'CONTACT_WRITE' | 'CONTACT_READ_ALL' | 'CONTACT_WRITE_ALL' | 'PROPERTY_READ_ALL';
379
+ implied: Array<'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'CONTACT_READ' | 'CONTACT_WRITE' | 'CONTACT_READ_ALL' | 'CONTACT_WRITE_ALL' | 'PROPERTY_READ_ALL'>;
478
380
  };
479
381
  export type InvitationDetailsResponse = {
480
382
  invitationId: string;
@@ -594,7 +496,7 @@ export type PagedModelMeetingCalendarView = {
594
496
  export type AttendeeView = {
595
497
  role: 'ORGANIZER' | 'MEMBER' | 'OWNER' | 'CLIENT' | 'OTHER';
596
498
  memberId?: string;
597
- clientId?: number;
499
+ contactId?: number;
598
500
  email?: string;
599
501
  displayName?: string;
600
502
  };
@@ -633,7 +535,7 @@ export type ListingGridView = {
633
535
  externalListingId?: string;
634
536
  propertyId?: number;
635
537
  listingId?: number;
636
- clientId?: number;
538
+ contactId?: number;
637
539
  contactPhoneNumber?: string;
638
540
  contactFullName?: string;
639
541
  assignedTo?: AssignedToResponse;
@@ -671,42 +573,6 @@ export type GroupCount = {
671
573
  label: string;
672
574
  count: number;
673
575
  };
674
- export type IntentResponse = {
675
- id: number;
676
- clientType: 'LISTING' | 'SEEKING';
677
- listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
678
- 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';
679
- priceMin?: number;
680
- priceMax?: number;
681
- area?: number;
682
- numberOfRooms?: number;
683
- region?: LocationResponse;
684
- district?: LocationResponse;
685
- subDistrict?: LocationResponse;
686
- street?: LocationResponse;
687
- };
688
- export type LeadGridResponse = {
689
- id: number;
690
- createdBy?: string;
691
- assignedTo?: AssignedToResponse;
692
- status: 'NEW' | 'ON_HOLD' | 'LOST' | 'CONVERTED';
693
- contactFullName?: string;
694
- contactGender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
695
- contactPhoneNumber: string;
696
- contactEmail?: string;
697
- note?: string;
698
- sourceType: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN';
699
- sourceLink?: string;
700
- isSearching: boolean;
701
- isListing: boolean;
702
- createdAt?: Date;
703
- updatedAt?: Date;
704
- intents?: Array<IntentResponse>;
705
- };
706
- export type PagedModelLeadGridResponse = {
707
- content?: Array<LeadGridResponse>;
708
- page?: PageMetadata;
709
- };
710
576
  export type InvitationViewResponse = {
711
577
  invitationId: string;
712
578
  email: string;
@@ -720,31 +586,7 @@ export type PagedModelInvitationViewResponse = {
720
586
  content?: Array<InvitationViewResponse>;
721
587
  page?: PageMetadata;
722
588
  };
723
- export type AssignedAgent = {
724
- memberId: string;
725
- firstName: string;
726
- lastName: string;
727
- photo?: string;
728
- phone?: string;
729
- };
730
- export type DuplicateContactInfo = {
731
- type: 'LEAD' | 'CLIENT';
732
- contactId: number;
733
- isActive: boolean;
734
- firstName?: string;
735
- lastName?: string;
736
- gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
737
- email?: string;
738
- phone: string;
739
- contactMethods?: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
740
- favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
741
- assignedTo?: AssignedAgent;
742
- };
743
- export type PhoneDuplicateCheckResponse = {
744
- policy: 'ALLOW' | 'WARN' | 'PREVENT';
745
- matches: Array<DuplicateContactInfo>;
746
- };
747
- export type ClientInterestResponse = {
589
+ export type ConstantInterestResponse = {
748
590
  id: number;
749
591
  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'>;
750
592
  listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
@@ -764,25 +606,39 @@ export type ClientInterestResponse = {
764
606
  street?: LocationResponse;
765
607
  active: boolean;
766
608
  };
767
- export type ClientGridResponse = {
609
+ export type CommentView = {
610
+ id: string;
611
+ contactId: number;
612
+ authorId: string;
613
+ authorFirstName: string;
614
+ authorLastName: string;
615
+ body: string;
616
+ createdAt: Date;
617
+ editedAt?: Date;
618
+ };
619
+ export type PagedModelCommentView = {
620
+ content?: Array<CommentView>;
621
+ page?: PageMetadata;
622
+ };
623
+ export type ContactGridResponse = {
768
624
  id: number;
769
- createdBy: string;
770
- leadId?: number;
625
+ createdBy?: string;
771
626
  assignedTo?: AssignedToResponse;
772
- contactFullName?: string;
773
- contactPhoneNumber: string;
774
- contactGender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
775
- contactEmail?: string;
776
- sourceType?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN';
627
+ status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WORM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'CLOSED';
628
+ priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
629
+ contactName?: string;
630
+ gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
631
+ phoneNumber?: string;
632
+ email?: string;
633
+ sourceType?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'UNKNOWN';
777
634
  sourceLink?: string;
778
635
  isSearching: boolean;
779
636
  isListing: boolean;
780
- contactMethods: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
781
- favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
782
- priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
637
+ createdAt: Date;
638
+ updatedAt: Date;
783
639
  };
784
- export type PagedModelClientGridResponse = {
785
- content?: Array<ClientGridResponse>;
640
+ export type PagedModelContactGridResponse = {
641
+ content?: Array<ContactGridResponse>;
786
642
  page?: PageMetadata;
787
643
  };
788
644
  export type ActiveBoostResponse = {
@@ -801,9 +657,9 @@ export type AssignedMember = {
801
657
  email: string;
802
658
  };
803
659
  export type Client360Response = {
804
- clientId: number;
660
+ contactId: number;
805
661
  agencyId: string;
806
- clientUserId?: string;
662
+ contactUserId?: string;
807
663
  createdBy: string;
808
664
  assignedMember?: AssignedMember;
809
665
  contactInfo: ContactInfoResponse;
@@ -814,25 +670,8 @@ export type Client360Response = {
814
670
  priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
815
671
  createdAt: Date;
816
672
  updatedAt: Date;
817
- interests: Array<ClientInterestResponse>;
818
- properties: Array<ClientPropertyResponse>;
819
- };
820
- export type ClientListingsResponse = {
821
- publicId: number;
822
- listingId: string;
823
- listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
824
- price: number;
825
- deal?: DealResponse;
826
- platformListings: Array<PlatformListingResponse>;
827
- };
828
- export type ClientPropertyResponse = {
829
- publicId: number;
830
- propertyId: string;
831
- type: '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';
832
- state: 'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED';
833
- details?: PropertyDetailsResponse;
834
- agreement: AgreementResponse;
835
- listings: Array<ClientListingsResponse>;
673
+ interests: Array<ConstantInterestResponse>;
674
+ properties: Array<ContactPropertyResponse>;
836
675
  };
837
676
  export type ColoredListingResponse = {
838
677
  activatedAt: Date;
@@ -849,6 +688,23 @@ export type ContactInfoResponse = {
849
688
  phoneNumber: string;
850
689
  email?: string;
851
690
  };
691
+ export type ContactListingsResponse = {
692
+ publicId: number;
693
+ listingId: string;
694
+ listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
695
+ price: number;
696
+ deal?: DealResponse;
697
+ platformListings: Array<PlatformListingResponse>;
698
+ };
699
+ export type ContactPropertyResponse = {
700
+ publicId: number;
701
+ propertyId: string;
702
+ type: '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';
703
+ state: 'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED';
704
+ details?: PropertyDetailsResponse;
705
+ agreement: AgreementResponse;
706
+ listings: Array<ContactListingsResponse>;
707
+ };
852
708
  export type DealResponse = {
853
709
  type: 'FIXED_SALE' | 'FIXED_RENT' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
854
710
  rate?: number;
@@ -875,9 +731,32 @@ export type PropertyDetailsResponse = {
875
731
  address: AddressResponse;
876
732
  };
877
733
  export type SourceResponse = {
878
- sourceType: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN';
734
+ sourceType: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'UNKNOWN';
879
735
  sourceLink?: string;
880
736
  };
737
+ export type AssignedAgent = {
738
+ memberId: string;
739
+ firstName: string;
740
+ lastName: string;
741
+ photo?: string;
742
+ phone?: string;
743
+ };
744
+ export type DuplicateContactInfo = {
745
+ contactId: number;
746
+ isActive: boolean;
747
+ firstName?: string;
748
+ lastName?: string;
749
+ gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
750
+ email?: string;
751
+ phone: string;
752
+ contactMethods?: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
753
+ favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
754
+ assignedTo?: AssignedAgent;
755
+ };
756
+ export type PhoneDuplicateCheckResponse = {
757
+ policy: 'ALLOW' | 'WARN' | 'PREVENT';
758
+ matches: Array<DuplicateContactInfo>;
759
+ };
881
760
  export type AddressViewResponse = {
882
761
  country: string;
883
762
  city: string;
@@ -1200,250 +1079,188 @@ export type PutMeetingsByMeetingIdCancelResponses = {
1200
1079
  204: void;
1201
1080
  };
1202
1081
  export type PutMeetingsByMeetingIdCancelResponse = PutMeetingsByMeetingIdCancelResponses[keyof PutMeetingsByMeetingIdCancelResponses];
1203
- export type PutLeadsByLeadIdSourceData = {
1204
- body: RecordSourceRequest;
1082
+ export type PutContactsByContactIdRecommendationsByRecommendationsIdTitleData = {
1083
+ body: RenameClientRecommendationsRequest;
1205
1084
  path: {
1206
- leadId: number;
1085
+ contactId: number;
1086
+ recommendationsId: string;
1207
1087
  };
1208
1088
  query?: never;
1209
- url: '/leads/{leadId}/source';
1089
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/title';
1210
1090
  };
1211
- export type PutLeadsByLeadIdSourceResponses = {
1091
+ export type PutContactsByContactIdRecommendationsByRecommendationsIdTitleResponses = {
1212
1092
  /**
1213
1093
  * No Content
1214
1094
  */
1215
1095
  204: void;
1216
1096
  };
1217
- export type PutLeadsByLeadIdSourceResponse = PutLeadsByLeadIdSourceResponses[keyof PutLeadsByLeadIdSourceResponses];
1218
- export type PutLeadsByLeadIdOnHoldData = {
1219
- body?: never;
1097
+ export type PutContactsByContactIdRecommendationsByRecommendationsIdTitleResponse = PutContactsByContactIdRecommendationsByRecommendationsIdTitleResponses[keyof PutContactsByContactIdRecommendationsByRecommendationsIdTitleResponses];
1098
+ export type PutContactsByContactIdPropertiesByPropertyIdAgreementData = {
1099
+ body: AgreementRequest;
1220
1100
  path: {
1221
- leadId: number;
1101
+ contactId: number;
1102
+ propertyId: number;
1222
1103
  };
1223
1104
  query?: never;
1224
- url: '/leads/{leadId}/on-hold';
1105
+ url: '/contacts/{contactId}/properties/{propertyId}/agreement';
1225
1106
  };
1226
- export type PutLeadsByLeadIdOnHoldResponses = {
1107
+ export type PutContactsByContactIdPropertiesByPropertyIdAgreementResponses = {
1227
1108
  /**
1228
- * No Content
1109
+ * OK
1229
1110
  */
1230
- 204: void;
1111
+ 200: unknown;
1231
1112
  };
1232
- export type PutLeadsByLeadIdOnHoldResponse = PutLeadsByLeadIdOnHoldResponses[keyof PutLeadsByLeadIdOnHoldResponses];
1233
- export type PutLeadsByLeadIdNoteData = {
1234
- body: NoteRequest;
1113
+ export type PutContactsByContactIdInterestsByInterestIdData = {
1114
+ body: CaptureInterestRequest;
1235
1115
  path: {
1236
- leadId: number;
1116
+ contactId: number;
1117
+ interestId: number;
1237
1118
  };
1238
1119
  query?: never;
1239
- url: '/leads/{leadId}/note';
1120
+ url: '/contacts/{contactId}/interests/{interestId}';
1240
1121
  };
1241
- export type PutLeadsByLeadIdNoteResponses = {
1122
+ export type PutContactsByContactIdInterestsByInterestIdResponses = {
1242
1123
  /**
1243
1124
  * No Content
1244
1125
  */
1245
1126
  204: void;
1246
1127
  };
1247
- export type PutLeadsByLeadIdNoteResponse = PutLeadsByLeadIdNoteResponses[keyof PutLeadsByLeadIdNoteResponses];
1248
- export type PutLeadsByLeadIdLostData = {
1249
- body: RecordLostLeadRequest;
1128
+ export type PutContactsByContactIdInterestsByInterestIdResponse = PutContactsByContactIdInterestsByInterestIdResponses[keyof PutContactsByContactIdInterestsByInterestIdResponses];
1129
+ export type DeleteContactsByContactIdCommentsByCommentIdData = {
1130
+ body?: never;
1250
1131
  path: {
1251
- leadId: number;
1132
+ contactId: number;
1133
+ commentId: string;
1252
1134
  };
1253
1135
  query?: never;
1254
- url: '/leads/{leadId}/lost';
1136
+ url: '/contacts/{contactId}/comments/{commentId}';
1255
1137
  };
1256
- export type PutLeadsByLeadIdLostResponses = {
1138
+ export type DeleteContactsByContactIdCommentsByCommentIdResponses = {
1257
1139
  /**
1258
- * No Content
1140
+ * OK
1259
1141
  */
1260
- 204: void;
1261
- };
1262
- export type PutLeadsByLeadIdLostResponse = PutLeadsByLeadIdLostResponses[keyof PutLeadsByLeadIdLostResponses];
1263
- export type DeleteLeadsByLeadIdIntentsByIntentIdData = {
1264
- body?: never;
1265
- path: {
1266
- leadId: number;
1267
- intentId: number;
1268
- };
1269
- query?: never;
1270
- url: '/leads/{leadId}/intents/{intentId}';
1271
- };
1272
- export type DeleteLeadsByLeadIdIntentsByIntentIdResponses = {
1273
- /**
1274
- * No Content
1275
- */
1276
- 204: void;
1277
- };
1278
- export type DeleteLeadsByLeadIdIntentsByIntentIdResponse = DeleteLeadsByLeadIdIntentsByIntentIdResponses[keyof DeleteLeadsByLeadIdIntentsByIntentIdResponses];
1279
- export type PutLeadsByLeadIdIntentsByIntentIdData = {
1280
- body: IntentRequest;
1281
- path: {
1282
- leadId: number;
1283
- intentId: number;
1284
- };
1285
- query?: never;
1286
- url: '/leads/{leadId}/intents/{intentId}';
1287
- };
1288
- export type PutLeadsByLeadIdIntentsByIntentIdResponses = {
1289
- /**
1290
- * No Content
1291
- */
1292
- 204: void;
1142
+ 200: unknown;
1293
1143
  };
1294
- export type PutLeadsByLeadIdIntentsByIntentIdResponse = PutLeadsByLeadIdIntentsByIntentIdResponses[keyof PutLeadsByLeadIdIntentsByIntentIdResponses];
1295
- export type PutLeadsByLeadIdContactInfoData = {
1296
- body: ContactInfoRequest;
1144
+ export type PutContactsByContactIdCommentsByCommentIdData = {
1145
+ body: CommentBodyRequest;
1297
1146
  path: {
1298
- leadId: number;
1147
+ contactId: number;
1148
+ commentId: string;
1299
1149
  };
1300
1150
  query?: never;
1301
- url: '/leads/{leadId}/contact-info';
1151
+ url: '/contacts/{contactId}/comments/{commentId}';
1302
1152
  };
1303
- export type PutLeadsByLeadIdContactInfoResponses = {
1153
+ export type PutContactsByContactIdCommentsByCommentIdResponses = {
1304
1154
  /**
1305
- * No Content
1155
+ * OK
1306
1156
  */
1307
- 204: void;
1157
+ 200: unknown;
1308
1158
  };
1309
- export type PutLeadsByLeadIdContactInfoResponse = PutLeadsByLeadIdContactInfoResponses[keyof PutLeadsByLeadIdContactInfoResponses];
1310
- export type PutLeadsByLeadIdAssignmentData = {
1311
- body: ReassignMemberRequest;
1159
+ export type PutContactByContactIdUpdateStatusData = {
1160
+ body: ContactStatusRequest;
1312
1161
  path: {
1313
- leadId: number;
1162
+ contactId: number;
1314
1163
  };
1315
1164
  query?: never;
1316
- url: '/leads/{leadId}/assignment';
1165
+ url: '/contact/{contactId}/update-status';
1317
1166
  };
1318
- export type PutLeadsByLeadIdAssignmentResponses = {
1167
+ export type PutContactByContactIdUpdateStatusResponses = {
1319
1168
  /**
1320
1169
  * No Content
1321
1170
  */
1322
1171
  204: void;
1323
1172
  };
1324
- export type PutLeadsByLeadIdAssignmentResponse = PutLeadsByLeadIdAssignmentResponses[keyof PutLeadsByLeadIdAssignmentResponses];
1325
- export type PutClientsByClientIdSourceData = {
1326
- body: RecordSourceRequest;
1173
+ export type PutContactByContactIdUpdateStatusResponse = PutContactByContactIdUpdateStatusResponses[keyof PutContactByContactIdUpdateStatusResponses];
1174
+ export type PutContactByContactIdPriorityData = {
1175
+ body: ReprioritizeClientRequest;
1327
1176
  path: {
1328
- clientId: number;
1177
+ contactId: number;
1329
1178
  };
1330
1179
  query?: never;
1331
- url: '/clients/{clientId}/source';
1180
+ url: '/contact/{contactId}/priority';
1332
1181
  };
1333
- export type PutClientsByClientIdSourceResponses = {
1182
+ export type PutContactByContactIdPriorityResponses = {
1334
1183
  /**
1335
1184
  * No Content
1336
1185
  */
1337
1186
  204: void;
1338
1187
  };
1339
- export type PutClientsByClientIdSourceResponse = PutClientsByClientIdSourceResponses[keyof PutClientsByClientIdSourceResponses];
1340
- export type PutClientsByClientIdRecommendationsByRecommendationsIdTitleData = {
1341
- body: RenameClientRecommendationsRequest;
1188
+ export type PutContactByContactIdPriorityResponse = PutContactByContactIdPriorityResponses[keyof PutContactByContactIdPriorityResponses];
1189
+ export type PutContactByContactIdLostData = {
1190
+ body: RecordLostContactRequest;
1342
1191
  path: {
1343
- clientId: number;
1344
- recommendationsId: string;
1192
+ contactId: number;
1345
1193
  };
1346
1194
  query?: never;
1347
- url: '/clients/{clientId}/recommendations/{recommendationsId}/title';
1195
+ url: '/contact/{contactId}/lost';
1348
1196
  };
1349
- export type PutClientsByClientIdRecommendationsByRecommendationsIdTitleResponses = {
1197
+ export type PutContactByContactIdLostResponses = {
1350
1198
  /**
1351
1199
  * No Content
1352
1200
  */
1353
1201
  204: void;
1354
1202
  };
1355
- export type PutClientsByClientIdRecommendationsByRecommendationsIdTitleResponse = PutClientsByClientIdRecommendationsByRecommendationsIdTitleResponses[keyof PutClientsByClientIdRecommendationsByRecommendationsIdTitleResponses];
1356
- export type PutClientsByClientIdPropertiesByPropertyIdAgreementData = {
1357
- body: AgreementRequest;
1358
- path: {
1359
- clientId: number;
1360
- propertyId: number;
1361
- };
1362
- query?: never;
1363
- url: '/clients/{clientId}/properties/{propertyId}/agreement';
1364
- };
1365
- export type PutClientsByClientIdPropertiesByPropertyIdAgreementResponses = {
1366
- /**
1367
- * OK
1368
- */
1369
- 200: unknown;
1370
- };
1371
- export type PutClientsByClientIdPriorityData = {
1372
- body: ReprioritizeClientRequest;
1373
- path: {
1374
- clientId: number;
1375
- };
1376
- query?: never;
1377
- url: '/clients/{clientId}/priority';
1378
- };
1379
- export type PutClientsByClientIdPriorityResponses = {
1380
- /**
1381
- * No Content
1382
- */
1383
- 204: void;
1384
- };
1385
- export type PutClientsByClientIdPriorityResponse = PutClientsByClientIdPriorityResponses[keyof PutClientsByClientIdPriorityResponses];
1386
- export type PutClientsByClientIdInterestsByInterestIdData = {
1387
- body: CaptureInterestRequest;
1203
+ export type PutContactByContactIdLostResponse = PutContactByContactIdLostResponses[keyof PutContactByContactIdLostResponses];
1204
+ export type PutContactByContactIdContactPreferencesData = {
1205
+ body: UpdateContactPreferencesRequest;
1388
1206
  path: {
1389
- clientId: number;
1390
- interestId: number;
1207
+ contactId: number;
1391
1208
  };
1392
1209
  query?: never;
1393
- url: '/clients/{clientId}/interests/{interestId}';
1210
+ url: '/contact/{contactId}/contact-preferences';
1394
1211
  };
1395
- export type PutClientsByClientIdInterestsByInterestIdResponses = {
1212
+ export type PutContactByContactIdContactPreferencesResponses = {
1396
1213
  /**
1397
1214
  * No Content
1398
1215
  */
1399
1216
  204: void;
1400
1217
  };
1401
- export type PutClientsByClientIdInterestsByInterestIdResponse = PutClientsByClientIdInterestsByInterestIdResponses[keyof PutClientsByClientIdInterestsByInterestIdResponses];
1402
- export type PutClientsByClientIdContactPreferencesData = {
1403
- body: UpdateContactPreferencesRequest;
1218
+ export type PutContactByContactIdContactPreferencesResponse = PutContactByContactIdContactPreferencesResponses[keyof PutContactByContactIdContactPreferencesResponses];
1219
+ export type PutContactByContactIdContactInfoData = {
1220
+ body: ContactInfoRequest;
1404
1221
  path: {
1405
- clientId: number;
1222
+ contactId: number;
1406
1223
  };
1407
1224
  query?: never;
1408
- url: '/clients/{clientId}/contact-preferences';
1225
+ url: '/contact/{contactId}/contact-info';
1409
1226
  };
1410
- export type PutClientsByClientIdContactPreferencesResponses = {
1227
+ export type PutContactByContactIdContactInfoResponses = {
1411
1228
  /**
1412
1229
  * No Content
1413
1230
  */
1414
1231
  204: void;
1415
1232
  };
1416
- export type PutClientsByClientIdContactPreferencesResponse = PutClientsByClientIdContactPreferencesResponses[keyof PutClientsByClientIdContactPreferencesResponses];
1417
- export type PutClientsByClientIdContactInfoData = {
1418
- body: ContactInfoRequest;
1233
+ export type PutContactByContactIdContactInfoResponse = PutContactByContactIdContactInfoResponses[keyof PutContactByContactIdContactInfoResponses];
1234
+ export type PutContactByContactIdCloseData = {
1235
+ body?: never;
1419
1236
  path: {
1420
- clientId: number;
1237
+ contactId: number;
1421
1238
  };
1422
1239
  query?: never;
1423
- url: '/clients/{clientId}/contact-info';
1240
+ url: '/contact/{contactId}/close';
1424
1241
  };
1425
- export type PutClientsByClientIdContactInfoResponses = {
1242
+ export type PutContactByContactIdCloseResponses = {
1426
1243
  /**
1427
1244
  * No Content
1428
1245
  */
1429
1246
  204: void;
1430
1247
  };
1431
- export type PutClientsByClientIdContactInfoResponse = PutClientsByClientIdContactInfoResponses[keyof PutClientsByClientIdContactInfoResponses];
1432
- export type PutClientsByClientIdAssignmentData = {
1248
+ export type PutContactByContactIdCloseResponse = PutContactByContactIdCloseResponses[keyof PutContactByContactIdCloseResponses];
1249
+ export type PutContactByContactIdAssignmentData = {
1433
1250
  body: ReassignMemberRequest;
1434
1251
  path: {
1435
- clientId: number;
1252
+ contactId: number;
1436
1253
  };
1437
1254
  query?: never;
1438
- url: '/clients/{clientId}/assignment';
1255
+ url: '/contact/{contactId}/assignment';
1439
1256
  };
1440
- export type PutClientsByClientIdAssignmentResponses = {
1257
+ export type PutContactByContactIdAssignmentResponses = {
1441
1258
  /**
1442
1259
  * No Content
1443
1260
  */
1444
1261
  204: void;
1445
1262
  };
1446
- export type PutClientsByClientIdAssignmentResponse = PutClientsByClientIdAssignmentResponses[keyof PutClientsByClientIdAssignmentResponses];
1263
+ export type PutContactByContactIdAssignmentResponse = PutContactByContactIdAssignmentResponses[keyof PutContactByContactIdAssignmentResponses];
1447
1264
  export type PutAgencyByAgencyIdDetailsData = {
1448
1265
  body: CreateAgencyRequest;
1449
1266
  path: {
@@ -1641,15 +1458,33 @@ export type PostRolesResponses = {
1641
1458
  201: IdResponseInteger;
1642
1459
  };
1643
1460
  export type PostRolesResponse = PostRolesResponses[keyof PostRolesResponses];
1644
- export type PostPublicSelfAgencyByAgencyIdLeadData = {
1645
- body: CaptureLeadRequest;
1646
- path: {
1647
- agencyId: string;
1461
+ export type GetPublicWebhookFbData = {
1462
+ body?: never;
1463
+ path?: never;
1464
+ query: {
1465
+ 'hub.mode': string;
1466
+ 'hub.verify_token': string;
1467
+ 'hub.challenge': string;
1468
+ };
1469
+ url: '/public/webhook/fb';
1470
+ };
1471
+ export type GetPublicWebhookFbResponses = {
1472
+ /**
1473
+ * OK
1474
+ */
1475
+ 200: string;
1476
+ };
1477
+ export type GetPublicWebhookFbResponse = GetPublicWebhookFbResponses[keyof GetPublicWebhookFbResponses];
1478
+ export type PostPublicWebhookFbData = {
1479
+ body: string;
1480
+ headers?: {
1481
+ 'X-Hub-Signature-256'?: string;
1648
1482
  };
1483
+ path?: never;
1649
1484
  query?: never;
1650
- url: '/public/self/agency/{agencyId}/lead';
1485
+ url: '/public/webhook/fb';
1651
1486
  };
1652
- export type PostPublicSelfAgencyByAgencyIdLeadResponses = {
1487
+ export type PostPublicWebhookFbResponses = {
1653
1488
  /**
1654
1489
  * OK
1655
1490
  */
@@ -1740,46 +1575,6 @@ export type PostMeetingsByMeetingIdAttendeesResponses = {
1740
1575
  204: void;
1741
1576
  };
1742
1577
  export type PostMeetingsByMeetingIdAttendeesResponse = PostMeetingsByMeetingIdAttendeesResponses[keyof PostMeetingsByMeetingIdAttendeesResponses];
1743
- export type PostLeadsData = {
1744
- body: CaptureLeadRequest;
1745
- path?: never;
1746
- query?: never;
1747
- url: '/leads';
1748
- };
1749
- export type PostLeadsResponses = {
1750
- /**
1751
- * Created
1752
- */
1753
- 201: LeadId;
1754
- };
1755
- export type PostLeadsResponse = PostLeadsResponses[keyof PostLeadsResponses];
1756
- export type PostLeadsByLeadIdIntentsData = {
1757
- body: IntentRequest;
1758
- path: {
1759
- leadId: number;
1760
- };
1761
- query?: never;
1762
- url: '/leads/{leadId}/intents';
1763
- };
1764
- export type PostLeadsByLeadIdIntentsResponses = {
1765
- /**
1766
- * Created
1767
- */
1768
- 201: unknown;
1769
- };
1770
- export type PostLeadsSourceData = {
1771
- body: OnboardFromSourceRequest;
1772
- path?: never;
1773
- query?: never;
1774
- url: '/leads/source';
1775
- };
1776
- export type PostLeadsSourceResponses = {
1777
- /**
1778
- * Created
1779
- */
1780
- 201: LeadId;
1781
- };
1782
- export type PostLeadsSourceResponse = PostLeadsSourceResponses[keyof PostLeadsSourceResponses];
1783
1578
  export type GetInvitationData = {
1784
1579
  body?: never;
1785
1580
  path?: never;
@@ -1847,236 +1642,331 @@ export type PostInternalPrincipleResponses = {
1847
1642
  200: AgencyPrincipalDto;
1848
1643
  };
1849
1644
  export type PostInternalPrincipleResponse = PostInternalPrincipleResponses[keyof PostInternalPrincipleResponses];
1850
- export type PostClientsData = {
1851
- body: OnboardClientRequest;
1852
- path?: never;
1853
- query?: never;
1854
- url: '/clients';
1855
- };
1856
- export type PostClientsResponses = {
1857
- /**
1858
- * Created
1859
- */
1860
- 201: ClientOnboardedResponse;
1861
- };
1862
- export type PostClientsResponse = PostClientsResponses[keyof PostClientsResponses];
1863
- export type PostClientsByClientIdRecommendationsData = {
1645
+ export type PostContactsByContactIdRecommendationsData = {
1864
1646
  body: CreateClientRecommendationsRequest;
1865
1647
  path: {
1866
- clientId: number;
1648
+ contactId: number;
1867
1649
  };
1868
1650
  query?: never;
1869
- url: '/clients/{clientId}/recommendations';
1651
+ url: '/contacts/{contactId}/recommendations';
1870
1652
  };
1871
- export type PostClientsByClientIdRecommendationsResponses = {
1653
+ export type PostContactsByContactIdRecommendationsResponses = {
1872
1654
  /**
1873
1655
  * Created
1874
1656
  */
1875
1657
  201: RecommendationsId;
1876
1658
  };
1877
- export type PostClientsByClientIdRecommendationsResponse = PostClientsByClientIdRecommendationsResponses[keyof PostClientsByClientIdRecommendationsResponses];
1878
- export type PostClientsByClientIdRecommendationsByRecommendationsIdSubmitData = {
1659
+ export type PostContactsByContactIdRecommendationsResponse = PostContactsByContactIdRecommendationsResponses[keyof PostContactsByContactIdRecommendationsResponses];
1660
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdSubmitData = {
1879
1661
  body?: never;
1880
1662
  path: {
1881
- clientId: number;
1663
+ contactId: number;
1882
1664
  recommendationsId: string;
1883
1665
  };
1884
1666
  query?: never;
1885
- url: '/clients/{clientId}/recommendations/{recommendationsId}/submit';
1667
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/submit';
1886
1668
  };
1887
- export type PostClientsByClientIdRecommendationsByRecommendationsIdSubmitResponses = {
1669
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdSubmitResponses = {
1888
1670
  /**
1889
1671
  * No Content
1890
1672
  */
1891
1673
  204: void;
1892
1674
  };
1893
- export type PostClientsByClientIdRecommendationsByRecommendationsIdSubmitResponse = PostClientsByClientIdRecommendationsByRecommendationsIdSubmitResponses[keyof PostClientsByClientIdRecommendationsByRecommendationsIdSubmitResponses];
1894
- export type PostClientsByClientIdRecommendationsByRecommendationsIdReviseData = {
1675
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdSubmitResponse = PostContactsByContactIdRecommendationsByRecommendationsIdSubmitResponses[keyof PostContactsByContactIdRecommendationsByRecommendationsIdSubmitResponses];
1676
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdReviseData = {
1895
1677
  body?: never;
1896
1678
  path: {
1897
- clientId: number;
1679
+ contactId: number;
1898
1680
  recommendationsId: string;
1899
1681
  };
1900
1682
  query?: never;
1901
- url: '/clients/{clientId}/recommendations/{recommendationsId}/revise';
1683
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/revise';
1902
1684
  };
1903
- export type PostClientsByClientIdRecommendationsByRecommendationsIdReviseResponses = {
1685
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdReviseResponses = {
1904
1686
  /**
1905
1687
  * No Content
1906
1688
  */
1907
1689
  204: void;
1908
1690
  };
1909
- export type PostClientsByClientIdRecommendationsByRecommendationsIdReviseResponse = PostClientsByClientIdRecommendationsByRecommendationsIdReviseResponses[keyof PostClientsByClientIdRecommendationsByRecommendationsIdReviseResponses];
1910
- export type PostClientsByClientIdRecommendationsByRecommendationsIdItemsData = {
1691
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdReviseResponse = PostContactsByContactIdRecommendationsByRecommendationsIdReviseResponses[keyof PostContactsByContactIdRecommendationsByRecommendationsIdReviseResponses];
1692
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdItemsData = {
1911
1693
  body: RecommendListingRequest;
1912
1694
  path: {
1913
- clientId: number;
1695
+ contactId: number;
1914
1696
  recommendationsId: string;
1915
1697
  };
1916
1698
  query?: never;
1917
- url: '/clients/{clientId}/recommendations/{recommendationsId}/items';
1699
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/items';
1918
1700
  };
1919
- export type PostClientsByClientIdRecommendationsByRecommendationsIdItemsResponses = {
1701
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdItemsResponses = {
1920
1702
  /**
1921
1703
  * Created
1922
1704
  */
1923
1705
  201: unknown;
1924
1706
  };
1925
- export type PostClientsByClientIdRecommendationsByRecommendationsIdCloseData = {
1707
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdCloseData = {
1926
1708
  body?: never;
1927
1709
  path: {
1928
- clientId: number;
1710
+ contactId: number;
1929
1711
  recommendationsId: string;
1930
1712
  };
1931
1713
  query?: never;
1932
- url: '/clients/{clientId}/recommendations/{recommendationsId}/close';
1714
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/close';
1933
1715
  };
1934
- export type PostClientsByClientIdRecommendationsByRecommendationsIdCloseResponses = {
1716
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdCloseResponses = {
1935
1717
  /**
1936
1718
  * No Content
1937
1719
  */
1938
1720
  204: void;
1939
1721
  };
1940
- export type PostClientsByClientIdRecommendationsByRecommendationsIdCloseResponse = PostClientsByClientIdRecommendationsByRecommendationsIdCloseResponses[keyof PostClientsByClientIdRecommendationsByRecommendationsIdCloseResponses];
1941
- export type PostClientsByClientIdPropertyByPropertyIdExternalListingPublishData = {
1942
- body: ExternalListingPublishRequest;
1943
- path: {
1944
- clientId: number;
1945
- propertyId: number;
1946
- };
1947
- query?: never;
1948
- url: '/clients/{clientId}/property/{propertyId}/external-listing/publish';
1949
- };
1950
- export type PostClientsByClientIdPropertyByPropertyIdExternalListingPublishResponses = {
1951
- /**
1952
- * OK
1953
- */
1954
- 200: unknown;
1955
- };
1956
- export type PostClientsByClientIdPropertyByPropertyIdExternalListingBoostData = {
1957
- body: ExternalListingBoostRequest;
1958
- path: {
1959
- clientId: number;
1960
- propertyId: number;
1961
- };
1962
- query?: never;
1963
- url: '/clients/{clientId}/property/{propertyId}/external-listing/boost';
1964
- };
1965
- export type PostClientsByClientIdPropertyByPropertyIdExternalListingBoostResponses = {
1966
- /**
1967
- * OK
1968
- */
1969
- 200: unknown;
1970
- };
1971
- export type DeleteClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealData = {
1722
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdCloseResponse = PostContactsByContactIdRecommendationsByRecommendationsIdCloseResponses[keyof PostContactsByContactIdRecommendationsByRecommendationsIdCloseResponses];
1723
+ export type DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealData = {
1972
1724
  body?: never;
1973
1725
  path: {
1974
- clientId: number;
1726
+ contactId: number;
1975
1727
  propertyId: number;
1976
1728
  listingId: number;
1977
1729
  };
1978
1730
  query?: never;
1979
- url: '/clients/{clientId}/properties/{propertyId}/listings/{listingId}/deal';
1731
+ url: '/contacts/{contactId}/properties/{propertyId}/listings/{listingId}/deal';
1980
1732
  };
1981
- export type DeleteClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses = {
1733
+ export type DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses = {
1982
1734
  /**
1983
1735
  * No Content
1984
1736
  */
1985
1737
  204: void;
1986
1738
  };
1987
- export type DeleteClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponse = DeleteClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses[keyof DeleteClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses];
1988
- export type PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealData = {
1739
+ export type DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponse = DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses[keyof DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses];
1740
+ export type PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealData = {
1989
1741
  body: AddDealRequest;
1990
1742
  path: {
1991
- clientId: number;
1743
+ contactId: number;
1992
1744
  propertyId: number;
1993
1745
  listingId: number;
1994
1746
  };
1995
1747
  query?: never;
1996
- url: '/clients/{clientId}/properties/{propertyId}/listings/{listingId}/deal';
1748
+ url: '/contacts/{contactId}/properties/{propertyId}/listings/{listingId}/deal';
1997
1749
  };
1998
- export type PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses = {
1750
+ export type PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses = {
1999
1751
  /**
2000
1752
  * No Content
2001
1753
  */
2002
1754
  204: void;
2003
1755
  };
2004
- export type PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponse = PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses[keyof PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses];
2005
- export type PostClientsByClientIdInterestsData = {
1756
+ export type PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponse = PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses[keyof PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses];
1757
+ export type PostContactsByContactIdInterestsData = {
2006
1758
  body: CaptureInterestRequest;
2007
1759
  path: {
2008
- clientId: number;
1760
+ contactId: number;
2009
1761
  };
2010
1762
  query?: never;
2011
- url: '/clients/{clientId}/interests';
1763
+ url: '/contacts/{contactId}/interests';
2012
1764
  };
2013
- export type PostClientsByClientIdInterestsResponses = {
1765
+ export type PostContactsByContactIdInterestsResponses = {
2014
1766
  /**
2015
1767
  * Created
2016
1768
  */
2017
1769
  201: InterestId;
2018
1770
  };
2019
- export type PostClientsByClientIdInterestsResponse = PostClientsByClientIdInterestsResponses[keyof PostClientsByClientIdInterestsResponses];
2020
- export type PostClientsByClientIdInterestsByInterestIdFulfilledData = {
1771
+ export type PostContactsByContactIdInterestsResponse = PostContactsByContactIdInterestsResponses[keyof PostContactsByContactIdInterestsResponses];
1772
+ export type PostContactsByContactIdInterestsByInterestIdFulfilledData = {
2021
1773
  body?: never;
2022
1774
  path: {
2023
- clientId: number;
1775
+ contactId: number;
2024
1776
  interestId: number;
2025
1777
  };
2026
1778
  query?: never;
2027
- url: '/clients/{clientId}/interests/{interestId}/fulfilled';
1779
+ url: '/contacts/{contactId}/interests/{interestId}/fulfilled';
2028
1780
  };
2029
- export type PostClientsByClientIdInterestsByInterestIdFulfilledResponses = {
1781
+ export type PostContactsByContactIdInterestsByInterestIdFulfilledResponses = {
2030
1782
  /**
2031
1783
  * No Content
2032
1784
  */
2033
1785
  204: void;
2034
1786
  };
2035
- export type PostClientsByClientIdInterestsByInterestIdFulfilledResponse = PostClientsByClientIdInterestsByInterestIdFulfilledResponses[keyof PostClientsByClientIdInterestsByInterestIdFulfilledResponses];
2036
- export type PostClientsByClientIdInterestsByInterestIdCancelledData = {
1787
+ export type PostContactsByContactIdInterestsByInterestIdFulfilledResponse = PostContactsByContactIdInterestsByInterestIdFulfilledResponses[keyof PostContactsByContactIdInterestsByInterestIdFulfilledResponses];
1788
+ export type PostContactsByContactIdInterestsByInterestIdCancelledData = {
2037
1789
  body?: never;
2038
1790
  path: {
2039
- clientId: number;
1791
+ contactId: number;
2040
1792
  interestId: number;
2041
1793
  };
2042
1794
  query?: never;
2043
- url: '/clients/{clientId}/interests/{interestId}/cancelled';
1795
+ url: '/contacts/{contactId}/interests/{interestId}/cancelled';
2044
1796
  };
2045
- export type PostClientsByClientIdInterestsByInterestIdCancelledResponses = {
1797
+ export type PostContactsByContactIdInterestsByInterestIdCancelledResponses = {
2046
1798
  /**
2047
1799
  * No Content
2048
1800
  */
2049
1801
  204: void;
2050
1802
  };
2051
- export type PostClientsByClientIdInterestsByInterestIdCancelledResponse = PostClientsByClientIdInterestsByInterestIdCancelledResponses[keyof PostClientsByClientIdInterestsByInterestIdCancelledResponses];
2052
- export type PostClientsSourceData = {
2053
- body: OnboardFromSourceRequest;
1803
+ export type PostContactsByContactIdInterestsByInterestIdCancelledResponse = PostContactsByContactIdInterestsByInterestIdCancelledResponses[keyof PostContactsByContactIdInterestsByInterestIdCancelledResponses];
1804
+ export type DeleteContactsByContactIdCommentsData = {
1805
+ body?: never;
1806
+ path: {
1807
+ contactId: number;
1808
+ };
1809
+ query?: never;
1810
+ url: '/contacts/{contactId}/comments';
1811
+ };
1812
+ export type DeleteContactsByContactIdCommentsResponses = {
1813
+ /**
1814
+ * OK
1815
+ */
1816
+ 200: unknown;
1817
+ };
1818
+ export type GetContactsByContactIdCommentsData = {
1819
+ body?: never;
1820
+ path: {
1821
+ contactId: number;
1822
+ };
1823
+ query?: {
1824
+ onlyMine?: boolean;
1825
+ /**
1826
+ * Zero-based page index (0..N)
1827
+ */
1828
+ page?: number;
1829
+ /**
1830
+ * The size of the page to be returned
1831
+ */
1832
+ size?: number;
1833
+ /**
1834
+ * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
1835
+ */
1836
+ sort?: Array<string>;
1837
+ };
1838
+ url: '/contacts/{contactId}/comments';
1839
+ };
1840
+ export type GetContactsByContactIdCommentsResponses = {
1841
+ /**
1842
+ * OK
1843
+ */
1844
+ 200: PagedModelCommentView;
1845
+ };
1846
+ export type GetContactsByContactIdCommentsResponse = GetContactsByContactIdCommentsResponses[keyof GetContactsByContactIdCommentsResponses];
1847
+ export type PostContactsByContactIdCommentsData = {
1848
+ body: CommentBodyRequest;
1849
+ path: {
1850
+ contactId: number;
1851
+ };
1852
+ query?: never;
1853
+ url: '/contacts/{contactId}/comments';
1854
+ };
1855
+ export type PostContactsByContactIdCommentsResponses = {
1856
+ /**
1857
+ * OK
1858
+ */
1859
+ 200: IdResponseUuid;
1860
+ };
1861
+ export type PostContactsByContactIdCommentsResponse = PostContactsByContactIdCommentsResponses[keyof PostContactsByContactIdCommentsResponses];
1862
+ export type GetContactData = {
1863
+ body?: never;
1864
+ path?: never;
1865
+ query?: {
1866
+ statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WORM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'CLOSED'>;
1867
+ priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
1868
+ isSearching?: boolean;
1869
+ isListing?: boolean;
1870
+ assignedTo?: Array<string>;
1871
+ createdBy?: string;
1872
+ contactName?: string;
1873
+ contactPhone?: string;
1874
+ contactEmail?: string;
1875
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'UNKNOWN'>;
1876
+ contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
1877
+ createdFrom?: Date;
1878
+ createdTo?: Date;
1879
+ clientTypes?: Array<'LISTING' | 'SEEKING'>;
1880
+ listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
1881
+ 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'>;
1882
+ regionId?: number;
1883
+ districtId?: number;
1884
+ subDistrictId?: number;
1885
+ streetId?: number;
1886
+ priceMin?: number;
1887
+ priceMax?: number;
1888
+ areaMin?: number;
1889
+ areaMax?: number;
1890
+ roomsMin?: number;
1891
+ roomsMax?: number;
1892
+ /**
1893
+ * Zero-based page index (0..N)
1894
+ */
1895
+ page?: number;
1896
+ /**
1897
+ * The size of the page to be returned
1898
+ */
1899
+ size?: number;
1900
+ /**
1901
+ * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
1902
+ */
1903
+ sort?: Array<string>;
1904
+ };
1905
+ url: '/contact';
1906
+ };
1907
+ export type GetContactResponses = {
1908
+ /**
1909
+ * OK
1910
+ */
1911
+ 200: PagedModelContactGridResponse;
1912
+ };
1913
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1914
+ export type PostContactData = {
1915
+ body: OnboardClientRequest;
2054
1916
  path?: never;
2055
1917
  query?: never;
2056
- url: '/clients/source';
1918
+ url: '/contact';
2057
1919
  };
2058
- export type PostClientsSourceResponses = {
1920
+ export type PostContactResponses = {
2059
1921
  /**
2060
1922
  * Created
2061
1923
  */
2062
- 201: ClientOnboardedResponse;
1924
+ 201: IdResponseLong;
2063
1925
  };
2064
- export type PostClientsSourceResponse = PostClientsSourceResponses[keyof PostClientsSourceResponses];
2065
- export type PostClientsFromLeadByLeadIdData = {
2066
- body?: never;
1926
+ export type PostContactResponse = PostContactResponses[keyof PostContactResponses];
1927
+ export type PostContactByContactIdPropertyByPropertyIdExternalListingPublishData = {
1928
+ body: ExternalListingPublishRequest;
2067
1929
  path: {
2068
- leadId: number;
1930
+ contactId: number;
1931
+ propertyId: number;
2069
1932
  };
2070
1933
  query?: never;
2071
- url: '/clients/from-lead/{leadId}';
1934
+ url: '/contact/{contactId}/property/{propertyId}/external-listing/publish';
2072
1935
  };
2073
- export type PostClientsFromLeadByLeadIdResponses = {
1936
+ export type PostContactByContactIdPropertyByPropertyIdExternalListingPublishResponses = {
1937
+ /**
1938
+ * OK
1939
+ */
1940
+ 200: unknown;
1941
+ };
1942
+ export type PostContactByContactIdPropertyByPropertyIdExternalListingBoostData = {
1943
+ body: ExternalListingBoostRequest;
1944
+ path: {
1945
+ contactId: number;
1946
+ propertyId: number;
1947
+ };
1948
+ query?: never;
1949
+ url: '/contact/{contactId}/property/{propertyId}/external-listing/boost';
1950
+ };
1951
+ export type PostContactByContactIdPropertyByPropertyIdExternalListingBoostResponses = {
1952
+ /**
1953
+ * OK
1954
+ */
1955
+ 200: unknown;
1956
+ };
1957
+ export type PostContactSourceData = {
1958
+ body: OnboardFromSourceRequest;
1959
+ path?: never;
1960
+ query?: never;
1961
+ url: '/contact/source';
1962
+ };
1963
+ export type PostContactSourceResponses = {
2074
1964
  /**
2075
1965
  * Created
2076
1966
  */
2077
- 201: ClientOnboardedResponse;
1967
+ 201: IdResponseLong;
2078
1968
  };
2079
- export type PostClientsFromLeadByLeadIdResponse = PostClientsFromLeadByLeadIdResponses[keyof PostClientsFromLeadByLeadIdResponses];
1969
+ export type PostContactSourceResponse = PostContactSourceResponses[keyof PostContactSourceResponses];
2080
1970
  export type GetAgencyData = {
2081
1971
  body?: never;
2082
1972
  path?: never;
@@ -2339,7 +2229,7 @@ export type GetMemberData = {
2339
2229
  path?: never;
2340
2230
  query?: {
2341
2231
  roleId?: number;
2342
- permission?: 'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'LEAD_READ' | 'LEAD_WRITE' | 'LEAD_READ_ALL' | 'LEAD_WRITE_ALL' | 'CLIENT_READ' | 'CLIENT_WRITE' | 'CLIENT_READ_ALL' | 'CLIENT_WRITE_ALL' | 'PROPERTY_READ_ALL';
2232
+ permission?: 'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'MEETING_READ_ALL' | 'CONTACT_READ' | 'CONTACT_WRITE' | 'CONTACT_READ_ALL' | 'CONTACT_WRITE_ALL' | 'PROPERTY_READ_ALL';
2343
2233
  /**
2344
2234
  * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
2345
2235
  */
@@ -2402,7 +2292,7 @@ export type GetListingData = {
2402
2292
  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'>;
2403
2293
  listingTypes?: Array<string>;
2404
2294
  commissionTypes?: Array<string>;
2405
- clientId?: number;
2295
+ contactId?: number;
2406
2296
  contactName?: string;
2407
2297
  contactPhone?: string;
2408
2298
  assignedTo?: Array<string>;
@@ -2461,7 +2351,7 @@ export type GetListingGroupsData = {
2461
2351
  body?: never;
2462
2352
  path?: never;
2463
2353
  query: {
2464
- groupBy: 'STATE' | 'PROPERTY_TYPE' | 'LISTING_TYPE' | 'ASSIGNED_TO' | 'CLIENT' | 'REGION' | 'PLATFORM' | 'BOOST_TIER' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
2354
+ groupBy: 'STATE' | 'PROPERTY_TYPE' | 'LISTING_TYPE' | 'ASSIGNED_TO' | 'CONTACT' | 'REGION' | 'PLATFORM' | 'BOOST_TIER' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
2465
2355
  states?: Array<'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED'>;
2466
2356
  agreementTypes?: Array<'EXCLUSIVE' | 'NON_EXCLUSIVE'>;
2467
2357
  agreementExpiresFrom?: Date;
@@ -2469,7 +2359,7 @@ export type GetListingGroupsData = {
2469
2359
  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'>;
2470
2360
  listingTypes?: Array<string>;
2471
2361
  commissionTypes?: Array<string>;
2472
- clientId?: number;
2362
+ contactId?: number;
2473
2363
  contactName?: string;
2474
2364
  contactPhone?: string;
2475
2365
  assignedTo?: Array<string>;
@@ -2497,133 +2387,10 @@ export type GetListingGroupsResponses = {
2497
2387
  200: Array<GroupCount>;
2498
2388
  };
2499
2389
  export type GetListingGroupsResponse = GetListingGroupsResponses[keyof GetListingGroupsResponses];
2500
- export type GetLeadData = {
2501
- body?: never;
2502
- path?: never;
2503
- query?: {
2504
- statuses?: Array<'NEW' | 'ON_HOLD' | 'LOST' | 'CONVERTED'>;
2505
- isSearching?: boolean;
2506
- isListing?: boolean;
2507
- assignedTo?: Array<string>;
2508
- createdBy?: string;
2509
- phone?: string;
2510
- contactName?: string;
2511
- email?: string;
2512
- note?: string;
2513
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN'>;
2514
- contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
2515
- createdFrom?: Date;
2516
- createdTo?: Date;
2517
- clientTypes?: Array<'LISTING' | 'SEEKING'>;
2518
- listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
2519
- 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'>;
2520
- regionId?: number;
2521
- districtId?: number;
2522
- subDistrictId?: number;
2523
- streetId?: number;
2524
- priceMin?: number;
2525
- priceMax?: number;
2526
- areaMin?: number;
2527
- areaMax?: number;
2528
- roomsMin?: number;
2529
- roomsMax?: number;
2530
- /**
2531
- * Zero-based page index (0..N)
2532
- */
2533
- page?: number;
2534
- /**
2535
- * The size of the page to be returned
2536
- */
2537
- size?: number;
2538
- /**
2539
- * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
2540
- */
2541
- sort?: Array<string>;
2542
- };
2543
- url: '/lead';
2544
- };
2545
- export type GetLeadResponses = {
2546
- /**
2547
- * OK
2548
- */
2549
- 200: PagedModelLeadGridResponse;
2550
- };
2551
- export type GetLeadResponse = GetLeadResponses[keyof GetLeadResponses];
2552
- export type GetLeadByLeadIdData = {
2390
+ export type GetContactsByContactIdRecommendationsByRecommendationsIdData = {
2553
2391
  body?: never;
2554
2392
  path: {
2555
- leadId: number;
2556
- };
2557
- query?: never;
2558
- url: '/lead/{leadId}';
2559
- };
2560
- export type GetLeadByLeadIdResponses = {
2561
- /**
2562
- * OK
2563
- */
2564
- 200: LeadGridResponse;
2565
- };
2566
- export type GetLeadByLeadIdResponse = GetLeadByLeadIdResponses[keyof GetLeadByLeadIdResponses];
2567
- export type GetLeadGroupsData = {
2568
- body?: never;
2569
- path?: never;
2570
- query: {
2571
- groupBy: 'ASSIGNED_TO' | 'CREATED_BY' | 'STATUS' | 'SOURCE_TYPE' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH' | 'CLIENT_TYPE' | 'LISTING_TYPE' | 'PROPERTY_TYPE';
2572
- statuses?: Array<'NEW' | 'ON_HOLD' | 'LOST' | 'CONVERTED'>;
2573
- isSearching?: boolean;
2574
- isListing?: boolean;
2575
- assignedTo?: Array<string>;
2576
- createdBy?: string;
2577
- phone?: string;
2578
- contactName?: string;
2579
- email?: string;
2580
- note?: string;
2581
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN'>;
2582
- contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
2583
- createdFrom?: Date;
2584
- createdTo?: Date;
2585
- clientTypes?: Array<'LISTING' | 'SEEKING'>;
2586
- listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
2587
- 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'>;
2588
- regionId?: number;
2589
- districtId?: number;
2590
- subDistrictId?: number;
2591
- streetId?: number;
2592
- priceMin?: number;
2593
- priceMax?: number;
2594
- areaMin?: number;
2595
- areaMax?: number;
2596
- roomsMin?: number;
2597
- roomsMax?: number;
2598
- };
2599
- url: '/lead/groups';
2600
- };
2601
- export type GetLeadGroupsResponses = {
2602
- /**
2603
- * OK
2604
- */
2605
- 200: Array<GroupCount>;
2606
- };
2607
- export type GetLeadGroupsResponse = GetLeadGroupsResponses[keyof GetLeadGroupsResponses];
2608
- export type GetContactsData = {
2609
- body?: never;
2610
- path?: never;
2611
- query: {
2612
- phone: string;
2613
- };
2614
- url: '/contacts';
2615
- };
2616
- export type GetContactsResponses = {
2617
- /**
2618
- * OK
2619
- */
2620
- 200: PhoneDuplicateCheckResponse;
2621
- };
2622
- export type GetContactsResponse = GetContactsResponses[keyof GetContactsResponses];
2623
- export type GetClientsByClientIdRecommendationsByRecommendationsIdData = {
2624
- body?: never;
2625
- path: {
2626
- clientId: number;
2393
+ contactId: number;
2627
2394
  recommendationsId: string;
2628
2395
  };
2629
2396
  query?: {
@@ -2641,19 +2408,19 @@ export type GetClientsByClientIdRecommendationsByRecommendationsIdData = {
2641
2408
  */
2642
2409
  sort?: Array<string>;
2643
2410
  };
2644
- url: '/clients/{clientId}/recommendations/{recommendationsId}';
2411
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}';
2645
2412
  };
2646
- export type GetClientsByClientIdRecommendationsByRecommendationsIdResponses = {
2413
+ export type GetContactsByContactIdRecommendationsByRecommendationsIdResponses = {
2647
2414
  /**
2648
2415
  * OK
2649
2416
  */
2650
2417
  200: RecommendationResponse;
2651
2418
  };
2652
- export type GetClientsByClientIdRecommendationsByRecommendationsIdResponse = GetClientsByClientIdRecommendationsByRecommendationsIdResponses[keyof GetClientsByClientIdRecommendationsByRecommendationsIdResponses];
2653
- export type GetClientsByClientIdRecommendationsInterestByInterestIdData = {
2419
+ export type GetContactsByContactIdRecommendationsByRecommendationsIdResponse = GetContactsByContactIdRecommendationsByRecommendationsIdResponses[keyof GetContactsByContactIdRecommendationsByRecommendationsIdResponses];
2420
+ export type GetContactsByContactIdRecommendationsInterestByInterestIdData = {
2654
2421
  body?: never;
2655
2422
  path: {
2656
- clientId: number;
2423
+ contactId: number;
2657
2424
  interestId: number;
2658
2425
  };
2659
2426
  query?: {
@@ -2671,126 +2438,117 @@ export type GetClientsByClientIdRecommendationsInterestByInterestIdData = {
2671
2438
  */
2672
2439
  sort?: Array<string>;
2673
2440
  };
2674
- url: '/clients/{clientId}/recommendations/interest/{interestId}';
2441
+ url: '/contacts/{contactId}/recommendations/interest/{interestId}';
2675
2442
  };
2676
- export type GetClientsByClientIdRecommendationsInterestByInterestIdResponses = {
2443
+ export type GetContactsByContactIdRecommendationsInterestByInterestIdResponses = {
2677
2444
  /**
2678
2445
  * OK
2679
2446
  */
2680
2447
  200: RecommendationResponse;
2681
2448
  };
2682
- export type GetClientsByClientIdRecommendationsInterestByInterestIdResponse = GetClientsByClientIdRecommendationsInterestByInterestIdResponses[keyof GetClientsByClientIdRecommendationsInterestByInterestIdResponses];
2683
- export type GetClientsByClientIdInterestsRecommendationByRecommendationIdData = {
2449
+ export type GetContactsByContactIdRecommendationsInterestByInterestIdResponse = GetContactsByContactIdRecommendationsInterestByInterestIdResponses[keyof GetContactsByContactIdRecommendationsInterestByInterestIdResponses];
2450
+ export type GetContactsByContactIdInterestsRecommendationByRecommendationIdData = {
2684
2451
  body?: never;
2685
2452
  path: {
2686
- clientId: number;
2453
+ contactId: number;
2687
2454
  recommendationId: string;
2688
2455
  };
2689
2456
  query?: never;
2690
- url: '/clients/{clientId}/interests/recommendation/{recommendationId}';
2457
+ url: '/contacts/{contactId}/interests/recommendation/{recommendationId}';
2691
2458
  };
2692
- export type GetClientsByClientIdInterestsRecommendationByRecommendationIdResponses = {
2459
+ export type GetContactsByContactIdInterestsRecommendationByRecommendationIdResponses = {
2693
2460
  /**
2694
2461
  * OK
2695
2462
  */
2696
- 200: ClientInterestResponse;
2463
+ 200: ConstantInterestResponse;
2697
2464
  };
2698
- export type GetClientsByClientIdInterestsRecommendationByRecommendationIdResponse = GetClientsByClientIdInterestsRecommendationByRecommendationIdResponses[keyof GetClientsByClientIdInterestsRecommendationByRecommendationIdResponses];
2699
- export type GetClientData = {
2465
+ export type GetContactsByContactIdInterestsRecommendationByRecommendationIdResponse = GetContactsByContactIdInterestsRecommendationByRecommendationIdResponses[keyof GetContactsByContactIdInterestsRecommendationByRecommendationIdResponses];
2466
+ export type GetContactByContactIdData = {
2700
2467
  body?: never;
2701
- path?: never;
2702
- query?: {
2703
- isSearching?: boolean;
2704
- isListing?: boolean;
2705
- assignedTo?: Array<string>;
2706
- createdBy?: string;
2707
- priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
2708
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN'>;
2709
- contactMethods?: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
2710
- contactName?: string;
2711
- contactPhone?: string;
2712
- contactEmail?: string;
2713
- createdFrom?: Date;
2714
- createdTo?: Date;
2715
- /**
2716
- * Zero-based page index (0..N)
2717
- */
2718
- page?: number;
2719
- /**
2720
- * The size of the page to be returned
2721
- */
2722
- size?: number;
2723
- /**
2724
- * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
2725
- */
2726
- sort?: Array<string>;
2468
+ path: {
2469
+ contactId: number;
2727
2470
  };
2728
- url: '/client';
2471
+ query?: never;
2472
+ url: '/contact/{contactId}';
2729
2473
  };
2730
- export type GetClientResponses = {
2474
+ export type GetContactByContactIdResponses = {
2731
2475
  /**
2732
2476
  * OK
2733
2477
  */
2734
- 200: PagedModelClientGridResponse;
2478
+ 200: ContactGridResponse;
2735
2479
  };
2736
- export type GetClientResponse = GetClientResponses[keyof GetClientResponses];
2737
- export type GetClientByClientIdData = {
2480
+ export type GetContactByContactIdResponse = GetContactByContactIdResponses[keyof GetContactByContactIdResponses];
2481
+ export type GetContactByContactId360Data = {
2738
2482
  body?: never;
2739
2483
  path: {
2740
- clientId: number;
2484
+ contactId: number;
2741
2485
  };
2742
2486
  query?: never;
2743
- url: '/client/{clientId}';
2487
+ url: '/contact/{contactId}/360';
2744
2488
  };
2745
- export type GetClientByClientIdResponses = {
2489
+ export type GetContactByContactId360Responses = {
2746
2490
  /**
2747
2491
  * OK
2748
2492
  */
2749
- 200: ClientGridResponse;
2493
+ 200: Client360Response;
2750
2494
  };
2751
- export type GetClientByClientIdResponse = GetClientByClientIdResponses[keyof GetClientByClientIdResponses];
2752
- export type GetClientByClientId360Data = {
2495
+ export type GetContactByContactId360Response = GetContactByContactId360Responses[keyof GetContactByContactId360Responses];
2496
+ export type GetContactPhoneCheckerData = {
2753
2497
  body?: never;
2754
- path: {
2755
- clientId: number;
2498
+ path?: never;
2499
+ query: {
2500
+ phone: string;
2756
2501
  };
2757
- query?: never;
2758
- url: '/client/{clientId}/360';
2502
+ url: '/contact/phone-checker';
2759
2503
  };
2760
- export type GetClientByClientId360Responses = {
2504
+ export type GetContactPhoneCheckerResponses = {
2761
2505
  /**
2762
2506
  * OK
2763
2507
  */
2764
- 200: Client360Response;
2508
+ 200: PhoneDuplicateCheckResponse;
2765
2509
  };
2766
- export type GetClientByClientId360Response = GetClientByClientId360Responses[keyof GetClientByClientId360Responses];
2767
- export type GetClientGroupsData = {
2510
+ export type GetContactPhoneCheckerResponse = GetContactPhoneCheckerResponses[keyof GetContactPhoneCheckerResponses];
2511
+ export type GetContactGroupsData = {
2768
2512
  body?: never;
2769
2513
  path?: never;
2770
2514
  query: {
2771
- groupBy: 'ASSIGNED_TO' | 'CREATED_BY' | 'PRIORITY' | 'SOURCE_TYPE' | 'IS_SEARCHING' | 'IS_LISTING' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
2515
+ groupBy: 'ASSIGNED_TO' | 'CREATED_BY' | 'PRIORITY' | 'STATUS' | 'SOURCE_TYPE' | 'IS_SEARCHING' | 'IS_LISTING' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
2516
+ statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WORM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'CLOSED'>;
2517
+ priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
2772
2518
  isSearching?: boolean;
2773
2519
  isListing?: boolean;
2774
2520
  assignedTo?: Array<string>;
2775
2521
  createdBy?: string;
2776
- priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
2777
- sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN'>;
2778
- contactMethods?: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
2779
2522
  contactName?: string;
2780
2523
  contactPhone?: string;
2781
2524
  contactEmail?: string;
2525
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'UNKNOWN'>;
2526
+ contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
2782
2527
  createdFrom?: Date;
2783
2528
  createdTo?: Date;
2529
+ clientTypes?: Array<'LISTING' | 'SEEKING'>;
2530
+ listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
2531
+ 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'>;
2532
+ regionId?: number;
2533
+ districtId?: number;
2534
+ subDistrictId?: number;
2535
+ streetId?: number;
2536
+ priceMin?: number;
2537
+ priceMax?: number;
2538
+ areaMin?: number;
2539
+ areaMax?: number;
2540
+ roomsMin?: number;
2541
+ roomsMax?: number;
2784
2542
  };
2785
- url: '/client/groups';
2543
+ url: '/contact/groups';
2786
2544
  };
2787
- export type GetClientGroupsResponses = {
2545
+ export type GetContactGroupsResponses = {
2788
2546
  /**
2789
2547
  * OK
2790
2548
  */
2791
2549
  200: Array<GroupCount>;
2792
2550
  };
2793
- export type GetClientGroupsResponse = GetClientGroupsResponses[keyof GetClientGroupsResponses];
2551
+ export type GetContactGroupsResponse = GetContactGroupsResponses[keyof GetContactGroupsResponses];
2794
2552
  export type GetAgencyByAgencyIdOwnerData = {
2795
2553
  body?: never;
2796
2554
  path: {
@@ -2876,35 +2634,21 @@ export type DeleteMemberByMemberIdResponses = {
2876
2634
  204: void;
2877
2635
  };
2878
2636
  export type DeleteMemberByMemberIdResponse = DeleteMemberByMemberIdResponses[keyof DeleteMemberByMemberIdResponses];
2879
- export type DeleteLeadsByLeadIdData = {
2880
- body?: never;
2881
- path: {
2882
- leadId: number;
2883
- };
2884
- query?: never;
2885
- url: '/leads/{leadId}';
2886
- };
2887
- export type DeleteLeadsByLeadIdResponses = {
2888
- /**
2889
- * OK
2890
- */
2891
- 200: unknown;
2892
- };
2893
- export type DeleteClientsByClientIdRecommendationsByRecommendationsIdItemsByItemIdData = {
2637
+ export type DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdData = {
2894
2638
  body?: never;
2895
2639
  path: {
2896
- clientId: number;
2640
+ contactId: number;
2897
2641
  recommendationsId: string;
2898
2642
  itemId: number;
2899
2643
  };
2900
2644
  query?: never;
2901
- url: '/clients/{clientId}/recommendations/{recommendationsId}/items/{itemId}';
2645
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/items/{itemId}';
2902
2646
  };
2903
- export type DeleteClientsByClientIdRecommendationsByRecommendationsIdItemsByItemIdResponses = {
2647
+ export type DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdResponses = {
2904
2648
  /**
2905
2649
  * No Content
2906
2650
  */
2907
2651
  204: void;
2908
2652
  };
2909
- export type DeleteClientsByClientIdRecommendationsByRecommendationsIdItemsByItemIdResponse = DeleteClientsByClientIdRecommendationsByRecommendationsIdItemsByItemIdResponses[keyof DeleteClientsByClientIdRecommendationsByRecommendationsIdItemsByItemIdResponses];
2653
+ export type DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdResponse = DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdResponses[keyof DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdResponses];
2910
2654
  //# sourceMappingURL=types.gen.d.ts.map