@homespot-sdk/core 0.0.301 → 0.0.303

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/property/index.d.ts +2 -2
  2. package/dist/property/index.d.ts.map +1 -1
  3. package/dist/property/index.js +1 -1
  4. package/dist/property/index.js.map +1 -1
  5. package/dist/property/schemas.gen.d.ts +27 -1
  6. package/dist/property/schemas.gen.d.ts.map +1 -1
  7. package/dist/property/schemas.gen.js +48 -1
  8. package/dist/property/schemas.gen.js.map +1 -1
  9. package/dist/property/sdk.gen.d.ts +2 -1
  10. package/dist/property/sdk.gen.d.ts.map +1 -1
  11. package/dist/property/sdk.gen.js +9 -0
  12. package/dist/property/sdk.gen.js.map +1 -1
  13. package/dist/property/types.gen.d.ts +23 -1
  14. package/dist/property/types.gen.d.ts.map +1 -1
  15. package/dist/property/zod.gen.d.ts +69 -3
  16. package/dist/property/zod.gen.d.ts.map +1 -1
  17. package/dist/property/zod.gen.js +54 -1
  18. package/dist/property/zod.gen.js.map +1 -1
  19. package/dist/rem/index.d.ts +2 -2
  20. package/dist/rem/index.d.ts.map +1 -1
  21. package/dist/rem/index.js +1 -1
  22. package/dist/rem/index.js.map +1 -1
  23. package/dist/rem/schemas.gen.d.ts +380 -782
  24. package/dist/rem/schemas.gen.d.ts.map +1 -1
  25. package/dist/rem/schemas.gen.js +513 -983
  26. package/dist/rem/schemas.gen.js.map +1 -1
  27. package/dist/rem/sdk.gen.d.ts +47 -54
  28. package/dist/rem/sdk.gen.d.ts.map +1 -1
  29. package/dist/rem/sdk.gen.js +122 -179
  30. package/dist/rem/sdk.gen.js.map +1 -1
  31. package/dist/rem/transformers.gen.d.ts +9 -7
  32. package/dist/rem/transformers.gen.d.ts.map +1 -1
  33. package/dist/rem/transformers.gen.js +50 -30
  34. package/dist/rem/transformers.gen.js.map +1 -1
  35. package/dist/rem/types.gen.d.ts +550 -785
  36. package/dist/rem/types.gen.d.ts.map +1 -1
  37. package/dist/rem/zod.gen.d.ts +1778 -3251
  38. package/dist/rem/zod.gen.d.ts.map +1 -1
  39. package/dist/rem/zod.gen.js +867 -1256
  40. package/dist/rem/zod.gen.js.map +1 -1
  41. package/package.json +1 -1
@@ -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' | 'WARM' | '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;
@@ -549,11 +451,13 @@ export type WhitelabelResponse = {
549
451
  export type OauthConnectionResponse = {
550
452
  agencyId: string;
551
453
  userId: string;
552
- provider: 'GOOGLE' | 'FACEBOOK';
454
+ provider: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
455
+ status: 'ACTIVE' | 'REVOKED';
553
456
  pagePicture?: string;
554
457
  pageName?: string;
555
458
  createdAt: Date;
556
459
  updatedAt: Date;
460
+ revokedAt?: Date;
557
461
  };
558
462
  export type MemberViewResponse = {
559
463
  userId: string;
@@ -594,7 +498,7 @@ export type PagedModelMeetingCalendarView = {
594
498
  export type AttendeeView = {
595
499
  role: 'ORGANIZER' | 'MEMBER' | 'OWNER' | 'CLIENT' | 'OTHER';
596
500
  memberId?: string;
597
- clientId?: number;
501
+ contactId?: number;
598
502
  email?: string;
599
503
  displayName?: string;
600
504
  };
@@ -633,7 +537,7 @@ export type ListingGridView = {
633
537
  externalListingId?: string;
634
538
  propertyId?: number;
635
539
  listingId?: number;
636
- clientId?: number;
540
+ contactId?: number;
637
541
  contactPhoneNumber?: string;
638
542
  contactFullName?: string;
639
543
  assignedTo?: AssignedToResponse;
@@ -671,42 +575,6 @@ export type GroupCount = {
671
575
  label: string;
672
576
  count: number;
673
577
  };
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
578
  export type InvitationViewResponse = {
711
579
  invitationId: string;
712
580
  email: string;
@@ -720,31 +588,7 @@ export type PagedModelInvitationViewResponse = {
720
588
  content?: Array<InvitationViewResponse>;
721
589
  page?: PageMetadata;
722
590
  };
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 = {
591
+ export type ConstantInterestResponse = {
748
592
  id: number;
749
593
  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
594
  listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
@@ -764,25 +608,39 @@ export type ClientInterestResponse = {
764
608
  street?: LocationResponse;
765
609
  active: boolean;
766
610
  };
767
- export type ClientGridResponse = {
611
+ export type CommentView = {
612
+ id: string;
613
+ contactId: number;
614
+ authorId: string;
615
+ authorFirstName: string;
616
+ authorLastName: string;
617
+ body: string;
618
+ createdAt: Date;
619
+ editedAt?: Date;
620
+ };
621
+ export type PagedModelCommentView = {
622
+ content?: Array<CommentView>;
623
+ page?: PageMetadata;
624
+ };
625
+ export type ContactGridResponse = {
768
626
  id: number;
769
- createdBy: string;
770
- leadId?: number;
627
+ createdBy?: string;
771
628
  assignedTo?: AssignedToResponse;
772
- contactFullName?: string;
773
- contactPhoneNumber: string;
774
- contactGender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
775
- contactEmail?: string;
776
- sourceType?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN';
629
+ status: 'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'CLOSED';
630
+ priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
631
+ contactName?: string;
632
+ gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
633
+ phoneNumber?: string;
634
+ email?: string;
635
+ sourceType?: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
777
636
  sourceLink?: string;
778
637
  isSearching: boolean;
779
638
  isListing: boolean;
780
- contactMethods: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
781
- favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
782
- priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
639
+ createdAt: Date;
640
+ updatedAt: Date;
783
641
  };
784
- export type PagedModelClientGridResponse = {
785
- content?: Array<ClientGridResponse>;
642
+ export type PagedModelContactGridResponse = {
643
+ content?: Array<ContactGridResponse>;
786
644
  page?: PageMetadata;
787
645
  };
788
646
  export type ActiveBoostResponse = {
@@ -801,9 +659,9 @@ export type AssignedMember = {
801
659
  email: string;
802
660
  };
803
661
  export type Client360Response = {
804
- clientId: number;
662
+ contactId: number;
805
663
  agencyId: string;
806
- clientUserId?: string;
664
+ contactUserId?: string;
807
665
  createdBy: string;
808
666
  assignedMember?: AssignedMember;
809
667
  contactInfo: ContactInfoResponse;
@@ -814,25 +672,8 @@ export type Client360Response = {
814
672
  priority?: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
815
673
  createdAt: Date;
816
674
  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>;
675
+ interests: Array<ConstantInterestResponse>;
676
+ properties: Array<ContactPropertyResponse>;
836
677
  };
837
678
  export type ColoredListingResponse = {
838
679
  activatedAt: Date;
@@ -849,6 +690,23 @@ export type ContactInfoResponse = {
849
690
  phoneNumber: string;
850
691
  email?: string;
851
692
  };
693
+ export type ContactListingsResponse = {
694
+ publicId: number;
695
+ listingId: string;
696
+ listingType: 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
697
+ price: number;
698
+ deal?: DealResponse;
699
+ platformListings: Array<PlatformListingResponse>;
700
+ };
701
+ export type ContactPropertyResponse = {
702
+ publicId: number;
703
+ propertyId: string;
704
+ 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';
705
+ state: 'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED';
706
+ details?: PropertyDetailsResponse;
707
+ agreement: AgreementResponse;
708
+ listings: Array<ContactListingsResponse>;
709
+ };
852
710
  export type DealResponse = {
853
711
  type: 'FIXED_SALE' | 'FIXED_RENT' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
854
712
  rate?: number;
@@ -875,9 +733,32 @@ export type PropertyDetailsResponse = {
875
733
  address: AddressResponse;
876
734
  };
877
735
  export type SourceResponse = {
878
- sourceType: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN';
736
+ sourceType: 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN';
879
737
  sourceLink?: string;
880
738
  };
739
+ export type AssignedAgent = {
740
+ memberId: string;
741
+ firstName: string;
742
+ lastName: string;
743
+ photo?: string;
744
+ phone?: string;
745
+ };
746
+ export type DuplicateContactInfo = {
747
+ contactId: number;
748
+ isActive: boolean;
749
+ firstName?: string;
750
+ lastName?: string;
751
+ gender?: 'MALE' | 'FEMALE' | 'UNKNOWN';
752
+ email?: string;
753
+ phone: string;
754
+ contactMethods?: Array<'WHATSAPP' | 'VIBER' | 'PHONE_CALL'>;
755
+ favoriteContactMethod?: 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
756
+ assignedTo?: AssignedAgent;
757
+ };
758
+ export type PhoneDuplicateCheckResponse = {
759
+ policy: 'ALLOW' | 'WARN' | 'PREVENT';
760
+ matches: Array<DuplicateContactInfo>;
761
+ };
881
762
  export type AddressViewResponse = {
882
763
  country: string;
883
764
  city: string;
@@ -1200,250 +1081,188 @@ export type PutMeetingsByMeetingIdCancelResponses = {
1200
1081
  204: void;
1201
1082
  };
1202
1083
  export type PutMeetingsByMeetingIdCancelResponse = PutMeetingsByMeetingIdCancelResponses[keyof PutMeetingsByMeetingIdCancelResponses];
1203
- export type PutLeadsByLeadIdSourceData = {
1204
- body: RecordSourceRequest;
1084
+ export type PutContactsByContactIdRecommendationsByRecommendationsIdTitleData = {
1085
+ body: RenameClientRecommendationsRequest;
1205
1086
  path: {
1206
- leadId: number;
1087
+ contactId: number;
1088
+ recommendationsId: string;
1207
1089
  };
1208
1090
  query?: never;
1209
- url: '/leads/{leadId}/source';
1091
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/title';
1210
1092
  };
1211
- export type PutLeadsByLeadIdSourceResponses = {
1093
+ export type PutContactsByContactIdRecommendationsByRecommendationsIdTitleResponses = {
1212
1094
  /**
1213
1095
  * No Content
1214
1096
  */
1215
1097
  204: void;
1216
1098
  };
1217
- export type PutLeadsByLeadIdSourceResponse = PutLeadsByLeadIdSourceResponses[keyof PutLeadsByLeadIdSourceResponses];
1218
- export type PutLeadsByLeadIdOnHoldData = {
1219
- body?: never;
1099
+ export type PutContactsByContactIdRecommendationsByRecommendationsIdTitleResponse = PutContactsByContactIdRecommendationsByRecommendationsIdTitleResponses[keyof PutContactsByContactIdRecommendationsByRecommendationsIdTitleResponses];
1100
+ export type PutContactsByContactIdPropertiesByPropertyIdAgreementData = {
1101
+ body: AgreementRequest;
1220
1102
  path: {
1221
- leadId: number;
1103
+ contactId: number;
1104
+ propertyId: number;
1222
1105
  };
1223
1106
  query?: never;
1224
- url: '/leads/{leadId}/on-hold';
1107
+ url: '/contacts/{contactId}/properties/{propertyId}/agreement';
1225
1108
  };
1226
- export type PutLeadsByLeadIdOnHoldResponses = {
1109
+ export type PutContactsByContactIdPropertiesByPropertyIdAgreementResponses = {
1227
1110
  /**
1228
- * No Content
1111
+ * OK
1229
1112
  */
1230
- 204: void;
1113
+ 200: unknown;
1231
1114
  };
1232
- export type PutLeadsByLeadIdOnHoldResponse = PutLeadsByLeadIdOnHoldResponses[keyof PutLeadsByLeadIdOnHoldResponses];
1233
- export type PutLeadsByLeadIdNoteData = {
1234
- body: NoteRequest;
1115
+ export type PutContactsByContactIdInterestsByInterestIdData = {
1116
+ body: CaptureInterestRequest;
1235
1117
  path: {
1236
- leadId: number;
1118
+ contactId: number;
1119
+ interestId: number;
1237
1120
  };
1238
1121
  query?: never;
1239
- url: '/leads/{leadId}/note';
1122
+ url: '/contacts/{contactId}/interests/{interestId}';
1240
1123
  };
1241
- export type PutLeadsByLeadIdNoteResponses = {
1124
+ export type PutContactsByContactIdInterestsByInterestIdResponses = {
1242
1125
  /**
1243
1126
  * No Content
1244
1127
  */
1245
1128
  204: void;
1246
1129
  };
1247
- export type PutLeadsByLeadIdNoteResponse = PutLeadsByLeadIdNoteResponses[keyof PutLeadsByLeadIdNoteResponses];
1248
- export type PutLeadsByLeadIdLostData = {
1249
- body: RecordLostLeadRequest;
1130
+ export type PutContactsByContactIdInterestsByInterestIdResponse = PutContactsByContactIdInterestsByInterestIdResponses[keyof PutContactsByContactIdInterestsByInterestIdResponses];
1131
+ export type DeleteContactsByContactIdCommentsByCommentIdData = {
1132
+ body?: never;
1250
1133
  path: {
1251
- leadId: number;
1134
+ contactId: number;
1135
+ commentId: string;
1252
1136
  };
1253
1137
  query?: never;
1254
- url: '/leads/{leadId}/lost';
1138
+ url: '/contacts/{contactId}/comments/{commentId}';
1255
1139
  };
1256
- export type PutLeadsByLeadIdLostResponses = {
1140
+ export type DeleteContactsByContactIdCommentsByCommentIdResponses = {
1257
1141
  /**
1258
- * No Content
1142
+ * OK
1259
1143
  */
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;
1293
- };
1294
- export type PutLeadsByLeadIdIntentsByIntentIdResponse = PutLeadsByLeadIdIntentsByIntentIdResponses[keyof PutLeadsByLeadIdIntentsByIntentIdResponses];
1295
- export type PutLeadsByLeadIdContactInfoData = {
1296
- body: ContactInfoRequest;
1297
- path: {
1298
- leadId: number;
1299
- };
1300
- query?: never;
1301
- url: '/leads/{leadId}/contact-info';
1302
- };
1303
- export type PutLeadsByLeadIdContactInfoResponses = {
1304
- /**
1305
- * No Content
1306
- */
1307
- 204: void;
1144
+ 200: unknown;
1308
1145
  };
1309
- export type PutLeadsByLeadIdContactInfoResponse = PutLeadsByLeadIdContactInfoResponses[keyof PutLeadsByLeadIdContactInfoResponses];
1310
- export type PutLeadsByLeadIdAssignmentData = {
1311
- body: ReassignMemberRequest;
1146
+ export type PutContactsByContactIdCommentsByCommentIdData = {
1147
+ body: CommentBodyRequest;
1312
1148
  path: {
1313
- leadId: number;
1149
+ contactId: number;
1150
+ commentId: string;
1314
1151
  };
1315
1152
  query?: never;
1316
- url: '/leads/{leadId}/assignment';
1153
+ url: '/contacts/{contactId}/comments/{commentId}';
1317
1154
  };
1318
- export type PutLeadsByLeadIdAssignmentResponses = {
1155
+ export type PutContactsByContactIdCommentsByCommentIdResponses = {
1319
1156
  /**
1320
- * No Content
1157
+ * OK
1321
1158
  */
1322
- 204: void;
1159
+ 200: unknown;
1323
1160
  };
1324
- export type PutLeadsByLeadIdAssignmentResponse = PutLeadsByLeadIdAssignmentResponses[keyof PutLeadsByLeadIdAssignmentResponses];
1325
- export type PutClientsByClientIdSourceData = {
1326
- body: RecordSourceRequest;
1161
+ export type PutContactByContactIdUpdateStatusData = {
1162
+ body: ContactStatusRequest;
1327
1163
  path: {
1328
- clientId: number;
1164
+ contactId: number;
1329
1165
  };
1330
1166
  query?: never;
1331
- url: '/clients/{clientId}/source';
1167
+ url: '/contact/{contactId}/update-status';
1332
1168
  };
1333
- export type PutClientsByClientIdSourceResponses = {
1169
+ export type PutContactByContactIdUpdateStatusResponses = {
1334
1170
  /**
1335
1171
  * No Content
1336
1172
  */
1337
1173
  204: void;
1338
1174
  };
1339
- export type PutClientsByClientIdSourceResponse = PutClientsByClientIdSourceResponses[keyof PutClientsByClientIdSourceResponses];
1340
- export type PutClientsByClientIdRecommendationsByRecommendationsIdTitleData = {
1341
- body: RenameClientRecommendationsRequest;
1175
+ export type PutContactByContactIdUpdateStatusResponse = PutContactByContactIdUpdateStatusResponses[keyof PutContactByContactIdUpdateStatusResponses];
1176
+ export type PutContactByContactIdPriorityData = {
1177
+ body: ReprioritizeClientRequest;
1342
1178
  path: {
1343
- clientId: number;
1344
- recommendationsId: string;
1179
+ contactId: number;
1345
1180
  };
1346
1181
  query?: never;
1347
- url: '/clients/{clientId}/recommendations/{recommendationsId}/title';
1182
+ url: '/contact/{contactId}/priority';
1348
1183
  };
1349
- export type PutClientsByClientIdRecommendationsByRecommendationsIdTitleResponses = {
1184
+ export type PutContactByContactIdPriorityResponses = {
1350
1185
  /**
1351
1186
  * No Content
1352
1187
  */
1353
1188
  204: void;
1354
1189
  };
1355
- export type PutClientsByClientIdRecommendationsByRecommendationsIdTitleResponse = PutClientsByClientIdRecommendationsByRecommendationsIdTitleResponses[keyof PutClientsByClientIdRecommendationsByRecommendationsIdTitleResponses];
1356
- export type PutClientsByClientIdPropertiesByPropertyIdAgreementData = {
1357
- body: AgreementRequest;
1190
+ export type PutContactByContactIdPriorityResponse = PutContactByContactIdPriorityResponses[keyof PutContactByContactIdPriorityResponses];
1191
+ export type PutContactByContactIdLostData = {
1192
+ body: RecordLostContactRequest;
1358
1193
  path: {
1359
- clientId: number;
1360
- propertyId: number;
1194
+ contactId: number;
1361
1195
  };
1362
1196
  query?: never;
1363
- url: '/clients/{clientId}/properties/{propertyId}/agreement';
1197
+ url: '/contact/{contactId}/lost';
1364
1198
  };
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 = {
1199
+ export type PutContactByContactIdLostResponses = {
1380
1200
  /**
1381
1201
  * No Content
1382
1202
  */
1383
1203
  204: void;
1384
1204
  };
1385
- export type PutClientsByClientIdPriorityResponse = PutClientsByClientIdPriorityResponses[keyof PutClientsByClientIdPriorityResponses];
1386
- export type PutClientsByClientIdInterestsByInterestIdData = {
1387
- body: CaptureInterestRequest;
1205
+ export type PutContactByContactIdLostResponse = PutContactByContactIdLostResponses[keyof PutContactByContactIdLostResponses];
1206
+ export type PutContactByContactIdContactPreferencesData = {
1207
+ body: UpdateContactPreferencesRequest;
1388
1208
  path: {
1389
- clientId: number;
1390
- interestId: number;
1209
+ contactId: number;
1391
1210
  };
1392
1211
  query?: never;
1393
- url: '/clients/{clientId}/interests/{interestId}';
1212
+ url: '/contact/{contactId}/contact-preferences';
1394
1213
  };
1395
- export type PutClientsByClientIdInterestsByInterestIdResponses = {
1214
+ export type PutContactByContactIdContactPreferencesResponses = {
1396
1215
  /**
1397
1216
  * No Content
1398
1217
  */
1399
1218
  204: void;
1400
1219
  };
1401
- export type PutClientsByClientIdInterestsByInterestIdResponse = PutClientsByClientIdInterestsByInterestIdResponses[keyof PutClientsByClientIdInterestsByInterestIdResponses];
1402
- export type PutClientsByClientIdContactPreferencesData = {
1403
- body: UpdateContactPreferencesRequest;
1220
+ export type PutContactByContactIdContactPreferencesResponse = PutContactByContactIdContactPreferencesResponses[keyof PutContactByContactIdContactPreferencesResponses];
1221
+ export type PutContactByContactIdContactInfoData = {
1222
+ body: ContactInfoRequest;
1404
1223
  path: {
1405
- clientId: number;
1224
+ contactId: number;
1406
1225
  };
1407
1226
  query?: never;
1408
- url: '/clients/{clientId}/contact-preferences';
1227
+ url: '/contact/{contactId}/contact-info';
1409
1228
  };
1410
- export type PutClientsByClientIdContactPreferencesResponses = {
1229
+ export type PutContactByContactIdContactInfoResponses = {
1411
1230
  /**
1412
1231
  * No Content
1413
1232
  */
1414
1233
  204: void;
1415
1234
  };
1416
- export type PutClientsByClientIdContactPreferencesResponse = PutClientsByClientIdContactPreferencesResponses[keyof PutClientsByClientIdContactPreferencesResponses];
1417
- export type PutClientsByClientIdContactInfoData = {
1418
- body: ContactInfoRequest;
1235
+ export type PutContactByContactIdContactInfoResponse = PutContactByContactIdContactInfoResponses[keyof PutContactByContactIdContactInfoResponses];
1236
+ export type PutContactByContactIdCloseData = {
1237
+ body?: never;
1419
1238
  path: {
1420
- clientId: number;
1239
+ contactId: number;
1421
1240
  };
1422
1241
  query?: never;
1423
- url: '/clients/{clientId}/contact-info';
1242
+ url: '/contact/{contactId}/close';
1424
1243
  };
1425
- export type PutClientsByClientIdContactInfoResponses = {
1244
+ export type PutContactByContactIdCloseResponses = {
1426
1245
  /**
1427
1246
  * No Content
1428
1247
  */
1429
1248
  204: void;
1430
1249
  };
1431
- export type PutClientsByClientIdContactInfoResponse = PutClientsByClientIdContactInfoResponses[keyof PutClientsByClientIdContactInfoResponses];
1432
- export type PutClientsByClientIdAssignmentData = {
1250
+ export type PutContactByContactIdCloseResponse = PutContactByContactIdCloseResponses[keyof PutContactByContactIdCloseResponses];
1251
+ export type PutContactByContactIdAssignmentData = {
1433
1252
  body: ReassignMemberRequest;
1434
1253
  path: {
1435
- clientId: number;
1254
+ contactId: number;
1436
1255
  };
1437
1256
  query?: never;
1438
- url: '/clients/{clientId}/assignment';
1257
+ url: '/contact/{contactId}/assignment';
1439
1258
  };
1440
- export type PutClientsByClientIdAssignmentResponses = {
1259
+ export type PutContactByContactIdAssignmentResponses = {
1441
1260
  /**
1442
1261
  * No Content
1443
1262
  */
1444
1263
  204: void;
1445
1264
  };
1446
- export type PutClientsByClientIdAssignmentResponse = PutClientsByClientIdAssignmentResponses[keyof PutClientsByClientIdAssignmentResponses];
1265
+ export type PutContactByContactIdAssignmentResponse = PutContactByContactIdAssignmentResponses[keyof PutContactByContactIdAssignmentResponses];
1447
1266
  export type PutAgencyByAgencyIdDetailsData = {
1448
1267
  body: CreateAgencyRequest;
1449
1268
  path: {
@@ -1641,15 +1460,33 @@ export type PostRolesResponses = {
1641
1460
  201: IdResponseInteger;
1642
1461
  };
1643
1462
  export type PostRolesResponse = PostRolesResponses[keyof PostRolesResponses];
1644
- export type PostPublicSelfAgencyByAgencyIdLeadData = {
1645
- body: CaptureLeadRequest;
1646
- path: {
1647
- agencyId: string;
1463
+ export type GetPublicWebhooksMetaData = {
1464
+ body?: never;
1465
+ path?: never;
1466
+ query: {
1467
+ 'hub.mode': string;
1468
+ 'hub.verify_token': string;
1469
+ 'hub.challenge': string;
1470
+ };
1471
+ url: '/public/webhooks/meta';
1472
+ };
1473
+ export type GetPublicWebhooksMetaResponses = {
1474
+ /**
1475
+ * OK
1476
+ */
1477
+ 200: string;
1478
+ };
1479
+ export type GetPublicWebhooksMetaResponse = GetPublicWebhooksMetaResponses[keyof GetPublicWebhooksMetaResponses];
1480
+ export type PostPublicWebhooksMetaData = {
1481
+ body: string;
1482
+ headers?: {
1483
+ 'X-Hub-Signature-256'?: string;
1648
1484
  };
1485
+ path?: never;
1649
1486
  query?: never;
1650
- url: '/public/self/agency/{agencyId}/lead';
1487
+ url: '/public/webhooks/meta';
1651
1488
  };
1652
- export type PostPublicSelfAgencyByAgencyIdLeadResponses = {
1489
+ export type PostPublicWebhooksMetaResponses = {
1653
1490
  /**
1654
1491
  * OK
1655
1492
  */
@@ -1740,46 +1577,6 @@ export type PostMeetingsByMeetingIdAttendeesResponses = {
1740
1577
  204: void;
1741
1578
  };
1742
1579
  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
1580
  export type GetInvitationData = {
1784
1581
  body?: never;
1785
1582
  path?: never;
@@ -1847,236 +1644,331 @@ export type PostInternalPrincipleResponses = {
1847
1644
  200: AgencyPrincipalDto;
1848
1645
  };
1849
1646
  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 = {
1647
+ export type PostContactsByContactIdRecommendationsData = {
1864
1648
  body: CreateClientRecommendationsRequest;
1865
1649
  path: {
1866
- clientId: number;
1650
+ contactId: number;
1867
1651
  };
1868
1652
  query?: never;
1869
- url: '/clients/{clientId}/recommendations';
1653
+ url: '/contacts/{contactId}/recommendations';
1870
1654
  };
1871
- export type PostClientsByClientIdRecommendationsResponses = {
1655
+ export type PostContactsByContactIdRecommendationsResponses = {
1872
1656
  /**
1873
1657
  * Created
1874
1658
  */
1875
1659
  201: RecommendationsId;
1876
1660
  };
1877
- export type PostClientsByClientIdRecommendationsResponse = PostClientsByClientIdRecommendationsResponses[keyof PostClientsByClientIdRecommendationsResponses];
1878
- export type PostClientsByClientIdRecommendationsByRecommendationsIdSubmitData = {
1661
+ export type PostContactsByContactIdRecommendationsResponse = PostContactsByContactIdRecommendationsResponses[keyof PostContactsByContactIdRecommendationsResponses];
1662
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdSubmitData = {
1879
1663
  body?: never;
1880
1664
  path: {
1881
- clientId: number;
1665
+ contactId: number;
1882
1666
  recommendationsId: string;
1883
1667
  };
1884
1668
  query?: never;
1885
- url: '/clients/{clientId}/recommendations/{recommendationsId}/submit';
1669
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/submit';
1886
1670
  };
1887
- export type PostClientsByClientIdRecommendationsByRecommendationsIdSubmitResponses = {
1671
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdSubmitResponses = {
1888
1672
  /**
1889
1673
  * No Content
1890
1674
  */
1891
1675
  204: void;
1892
1676
  };
1893
- export type PostClientsByClientIdRecommendationsByRecommendationsIdSubmitResponse = PostClientsByClientIdRecommendationsByRecommendationsIdSubmitResponses[keyof PostClientsByClientIdRecommendationsByRecommendationsIdSubmitResponses];
1894
- export type PostClientsByClientIdRecommendationsByRecommendationsIdReviseData = {
1677
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdSubmitResponse = PostContactsByContactIdRecommendationsByRecommendationsIdSubmitResponses[keyof PostContactsByContactIdRecommendationsByRecommendationsIdSubmitResponses];
1678
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdReviseData = {
1895
1679
  body?: never;
1896
1680
  path: {
1897
- clientId: number;
1681
+ contactId: number;
1898
1682
  recommendationsId: string;
1899
1683
  };
1900
1684
  query?: never;
1901
- url: '/clients/{clientId}/recommendations/{recommendationsId}/revise';
1685
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/revise';
1902
1686
  };
1903
- export type PostClientsByClientIdRecommendationsByRecommendationsIdReviseResponses = {
1687
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdReviseResponses = {
1904
1688
  /**
1905
1689
  * No Content
1906
1690
  */
1907
1691
  204: void;
1908
1692
  };
1909
- export type PostClientsByClientIdRecommendationsByRecommendationsIdReviseResponse = PostClientsByClientIdRecommendationsByRecommendationsIdReviseResponses[keyof PostClientsByClientIdRecommendationsByRecommendationsIdReviseResponses];
1910
- export type PostClientsByClientIdRecommendationsByRecommendationsIdItemsData = {
1693
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdReviseResponse = PostContactsByContactIdRecommendationsByRecommendationsIdReviseResponses[keyof PostContactsByContactIdRecommendationsByRecommendationsIdReviseResponses];
1694
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdItemsData = {
1911
1695
  body: RecommendListingRequest;
1912
1696
  path: {
1913
- clientId: number;
1697
+ contactId: number;
1914
1698
  recommendationsId: string;
1915
1699
  };
1916
1700
  query?: never;
1917
- url: '/clients/{clientId}/recommendations/{recommendationsId}/items';
1701
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/items';
1918
1702
  };
1919
- export type PostClientsByClientIdRecommendationsByRecommendationsIdItemsResponses = {
1703
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdItemsResponses = {
1920
1704
  /**
1921
1705
  * Created
1922
1706
  */
1923
1707
  201: unknown;
1924
1708
  };
1925
- export type PostClientsByClientIdRecommendationsByRecommendationsIdCloseData = {
1709
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdCloseData = {
1926
1710
  body?: never;
1927
1711
  path: {
1928
- clientId: number;
1712
+ contactId: number;
1929
1713
  recommendationsId: string;
1930
1714
  };
1931
1715
  query?: never;
1932
- url: '/clients/{clientId}/recommendations/{recommendationsId}/close';
1716
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/close';
1933
1717
  };
1934
- export type PostClientsByClientIdRecommendationsByRecommendationsIdCloseResponses = {
1718
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdCloseResponses = {
1935
1719
  /**
1936
1720
  * No Content
1937
1721
  */
1938
1722
  204: void;
1939
1723
  };
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 = {
1724
+ export type PostContactsByContactIdRecommendationsByRecommendationsIdCloseResponse = PostContactsByContactIdRecommendationsByRecommendationsIdCloseResponses[keyof PostContactsByContactIdRecommendationsByRecommendationsIdCloseResponses];
1725
+ export type DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealData = {
1972
1726
  body?: never;
1973
1727
  path: {
1974
- clientId: number;
1728
+ contactId: number;
1975
1729
  propertyId: number;
1976
1730
  listingId: number;
1977
1731
  };
1978
1732
  query?: never;
1979
- url: '/clients/{clientId}/properties/{propertyId}/listings/{listingId}/deal';
1733
+ url: '/contacts/{contactId}/properties/{propertyId}/listings/{listingId}/deal';
1980
1734
  };
1981
- export type DeleteClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses = {
1735
+ export type DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses = {
1982
1736
  /**
1983
1737
  * No Content
1984
1738
  */
1985
1739
  204: void;
1986
1740
  };
1987
- export type DeleteClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponse = DeleteClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses[keyof DeleteClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses];
1988
- export type PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealData = {
1741
+ export type DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponse = DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses[keyof DeleteContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses];
1742
+ export type PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealData = {
1989
1743
  body: AddDealRequest;
1990
1744
  path: {
1991
- clientId: number;
1745
+ contactId: number;
1992
1746
  propertyId: number;
1993
1747
  listingId: number;
1994
1748
  };
1995
1749
  query?: never;
1996
- url: '/clients/{clientId}/properties/{propertyId}/listings/{listingId}/deal';
1750
+ url: '/contacts/{contactId}/properties/{propertyId}/listings/{listingId}/deal';
1997
1751
  };
1998
- export type PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses = {
1752
+ export type PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses = {
1999
1753
  /**
2000
1754
  * No Content
2001
1755
  */
2002
1756
  204: void;
2003
1757
  };
2004
- export type PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponse = PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses[keyof PostClientsByClientIdPropertiesByPropertyIdListingsByListingIdDealResponses];
2005
- export type PostClientsByClientIdInterestsData = {
1758
+ export type PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponse = PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses[keyof PostContactsByContactIdPropertiesByPropertyIdListingsByListingIdDealResponses];
1759
+ export type PostContactsByContactIdInterestsData = {
2006
1760
  body: CaptureInterestRequest;
2007
1761
  path: {
2008
- clientId: number;
1762
+ contactId: number;
2009
1763
  };
2010
1764
  query?: never;
2011
- url: '/clients/{clientId}/interests';
1765
+ url: '/contacts/{contactId}/interests';
2012
1766
  };
2013
- export type PostClientsByClientIdInterestsResponses = {
1767
+ export type PostContactsByContactIdInterestsResponses = {
2014
1768
  /**
2015
1769
  * Created
2016
1770
  */
2017
1771
  201: InterestId;
2018
1772
  };
2019
- export type PostClientsByClientIdInterestsResponse = PostClientsByClientIdInterestsResponses[keyof PostClientsByClientIdInterestsResponses];
2020
- export type PostClientsByClientIdInterestsByInterestIdFulfilledData = {
1773
+ export type PostContactsByContactIdInterestsResponse = PostContactsByContactIdInterestsResponses[keyof PostContactsByContactIdInterestsResponses];
1774
+ export type PostContactsByContactIdInterestsByInterestIdFulfilledData = {
2021
1775
  body?: never;
2022
1776
  path: {
2023
- clientId: number;
1777
+ contactId: number;
2024
1778
  interestId: number;
2025
1779
  };
2026
1780
  query?: never;
2027
- url: '/clients/{clientId}/interests/{interestId}/fulfilled';
1781
+ url: '/contacts/{contactId}/interests/{interestId}/fulfilled';
2028
1782
  };
2029
- export type PostClientsByClientIdInterestsByInterestIdFulfilledResponses = {
1783
+ export type PostContactsByContactIdInterestsByInterestIdFulfilledResponses = {
2030
1784
  /**
2031
1785
  * No Content
2032
1786
  */
2033
1787
  204: void;
2034
1788
  };
2035
- export type PostClientsByClientIdInterestsByInterestIdFulfilledResponse = PostClientsByClientIdInterestsByInterestIdFulfilledResponses[keyof PostClientsByClientIdInterestsByInterestIdFulfilledResponses];
2036
- export type PostClientsByClientIdInterestsByInterestIdCancelledData = {
1789
+ export type PostContactsByContactIdInterestsByInterestIdFulfilledResponse = PostContactsByContactIdInterestsByInterestIdFulfilledResponses[keyof PostContactsByContactIdInterestsByInterestIdFulfilledResponses];
1790
+ export type PostContactsByContactIdInterestsByInterestIdCancelledData = {
2037
1791
  body?: never;
2038
1792
  path: {
2039
- clientId: number;
1793
+ contactId: number;
2040
1794
  interestId: number;
2041
1795
  };
2042
1796
  query?: never;
2043
- url: '/clients/{clientId}/interests/{interestId}/cancelled';
1797
+ url: '/contacts/{contactId}/interests/{interestId}/cancelled';
2044
1798
  };
2045
- export type PostClientsByClientIdInterestsByInterestIdCancelledResponses = {
1799
+ export type PostContactsByContactIdInterestsByInterestIdCancelledResponses = {
2046
1800
  /**
2047
1801
  * No Content
2048
1802
  */
2049
1803
  204: void;
2050
1804
  };
2051
- export type PostClientsByClientIdInterestsByInterestIdCancelledResponse = PostClientsByClientIdInterestsByInterestIdCancelledResponses[keyof PostClientsByClientIdInterestsByInterestIdCancelledResponses];
2052
- export type PostClientsSourceData = {
2053
- body: OnboardFromSourceRequest;
1805
+ export type PostContactsByContactIdInterestsByInterestIdCancelledResponse = PostContactsByContactIdInterestsByInterestIdCancelledResponses[keyof PostContactsByContactIdInterestsByInterestIdCancelledResponses];
1806
+ export type DeleteContactsByContactIdCommentsData = {
1807
+ body?: never;
1808
+ path: {
1809
+ contactId: number;
1810
+ };
1811
+ query?: never;
1812
+ url: '/contacts/{contactId}/comments';
1813
+ };
1814
+ export type DeleteContactsByContactIdCommentsResponses = {
1815
+ /**
1816
+ * OK
1817
+ */
1818
+ 200: unknown;
1819
+ };
1820
+ export type GetContactsByContactIdCommentsData = {
1821
+ body?: never;
1822
+ path: {
1823
+ contactId: number;
1824
+ };
1825
+ query?: {
1826
+ onlyMine?: boolean;
1827
+ /**
1828
+ * Zero-based page index (0..N)
1829
+ */
1830
+ page?: number;
1831
+ /**
1832
+ * The size of the page to be returned
1833
+ */
1834
+ size?: number;
1835
+ /**
1836
+ * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
1837
+ */
1838
+ sort?: Array<string>;
1839
+ };
1840
+ url: '/contacts/{contactId}/comments';
1841
+ };
1842
+ export type GetContactsByContactIdCommentsResponses = {
1843
+ /**
1844
+ * OK
1845
+ */
1846
+ 200: PagedModelCommentView;
1847
+ };
1848
+ export type GetContactsByContactIdCommentsResponse = GetContactsByContactIdCommentsResponses[keyof GetContactsByContactIdCommentsResponses];
1849
+ export type PostContactsByContactIdCommentsData = {
1850
+ body: CommentBodyRequest;
1851
+ path: {
1852
+ contactId: number;
1853
+ };
1854
+ query?: never;
1855
+ url: '/contacts/{contactId}/comments';
1856
+ };
1857
+ export type PostContactsByContactIdCommentsResponses = {
1858
+ /**
1859
+ * OK
1860
+ */
1861
+ 200: IdResponseUuid;
1862
+ };
1863
+ export type PostContactsByContactIdCommentsResponse = PostContactsByContactIdCommentsResponses[keyof PostContactsByContactIdCommentsResponses];
1864
+ export type GetContactData = {
1865
+ body?: never;
1866
+ path?: never;
1867
+ query?: {
1868
+ statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'CLOSED'>;
1869
+ priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
1870
+ isSearching?: boolean;
1871
+ isListing?: boolean;
1872
+ assignedTo?: Array<string>;
1873
+ createdBy?: string;
1874
+ contactName?: string;
1875
+ contactPhone?: string;
1876
+ contactEmail?: string;
1877
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
1878
+ contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
1879
+ createdFrom?: Date;
1880
+ createdTo?: Date;
1881
+ clientTypes?: Array<'LISTING' | 'SEEKING'>;
1882
+ listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
1883
+ 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'>;
1884
+ regionId?: number;
1885
+ districtId?: number;
1886
+ subDistrictId?: number;
1887
+ streetId?: number;
1888
+ priceMin?: number;
1889
+ priceMax?: number;
1890
+ areaMin?: number;
1891
+ areaMax?: number;
1892
+ roomsMin?: number;
1893
+ roomsMax?: number;
1894
+ /**
1895
+ * Zero-based page index (0..N)
1896
+ */
1897
+ page?: number;
1898
+ /**
1899
+ * The size of the page to be returned
1900
+ */
1901
+ size?: number;
1902
+ /**
1903
+ * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
1904
+ */
1905
+ sort?: Array<string>;
1906
+ };
1907
+ url: '/contact';
1908
+ };
1909
+ export type GetContactResponses = {
1910
+ /**
1911
+ * OK
1912
+ */
1913
+ 200: PagedModelContactGridResponse;
1914
+ };
1915
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1916
+ export type PostContactData = {
1917
+ body: OnboardClientRequest;
2054
1918
  path?: never;
2055
1919
  query?: never;
2056
- url: '/clients/source';
1920
+ url: '/contact';
2057
1921
  };
2058
- export type PostClientsSourceResponses = {
1922
+ export type PostContactResponses = {
2059
1923
  /**
2060
1924
  * Created
2061
1925
  */
2062
- 201: ClientOnboardedResponse;
1926
+ 201: IdResponseLong;
2063
1927
  };
2064
- export type PostClientsSourceResponse = PostClientsSourceResponses[keyof PostClientsSourceResponses];
2065
- export type PostClientsFromLeadByLeadIdData = {
2066
- body?: never;
1928
+ export type PostContactResponse = PostContactResponses[keyof PostContactResponses];
1929
+ export type PostContactByContactIdPropertyByPropertyIdExternalListingPublishData = {
1930
+ body: ExternalListingPublishRequest;
1931
+ path: {
1932
+ contactId: number;
1933
+ propertyId: number;
1934
+ };
1935
+ query?: never;
1936
+ url: '/contact/{contactId}/property/{propertyId}/external-listing/publish';
1937
+ };
1938
+ export type PostContactByContactIdPropertyByPropertyIdExternalListingPublishResponses = {
1939
+ /**
1940
+ * OK
1941
+ */
1942
+ 200: unknown;
1943
+ };
1944
+ export type PostContactByContactIdPropertyByPropertyIdExternalListingBoostData = {
1945
+ body: ExternalListingBoostRequest;
2067
1946
  path: {
2068
- leadId: number;
1947
+ contactId: number;
1948
+ propertyId: number;
2069
1949
  };
2070
1950
  query?: never;
2071
- url: '/clients/from-lead/{leadId}';
1951
+ url: '/contact/{contactId}/property/{propertyId}/external-listing/boost';
1952
+ };
1953
+ export type PostContactByContactIdPropertyByPropertyIdExternalListingBoostResponses = {
1954
+ /**
1955
+ * OK
1956
+ */
1957
+ 200: unknown;
1958
+ };
1959
+ export type PostContactSourceData = {
1960
+ body: OnboardFromSourceRequest;
1961
+ path?: never;
1962
+ query?: never;
1963
+ url: '/contact/source';
2072
1964
  };
2073
- export type PostClientsFromLeadByLeadIdResponses = {
1965
+ export type PostContactSourceResponses = {
2074
1966
  /**
2075
1967
  * Created
2076
1968
  */
2077
- 201: ClientOnboardedResponse;
1969
+ 201: IdResponseLong;
2078
1970
  };
2079
- export type PostClientsFromLeadByLeadIdResponse = PostClientsFromLeadByLeadIdResponses[keyof PostClientsFromLeadByLeadIdResponses];
1971
+ export type PostContactSourceResponse = PostContactSourceResponses[keyof PostContactSourceResponses];
2080
1972
  export type GetAgencyData = {
2081
1973
  body?: never;
2082
1974
  path?: never;
@@ -2188,7 +2080,7 @@ export type GetPublicOauthGoogleCallbackResponses = {
2188
2080
  */
2189
2081
  200: unknown;
2190
2082
  };
2191
- export type GetPublicOauthFbCallbackData = {
2083
+ export type GetPublicOauthCallbackData = {
2192
2084
  body?: never;
2193
2085
  path?: never;
2194
2086
  query?: {
@@ -2197,9 +2089,9 @@ export type GetPublicOauthFbCallbackData = {
2197
2089
  error?: string;
2198
2090
  error_description?: string;
2199
2091
  };
2200
- url: '/public/oauth/fb/callback';
2092
+ url: '/public/oauth/callback';
2201
2093
  };
2202
- export type GetPublicOauthFbCallbackResponses = {
2094
+ export type GetPublicOauthCallbackResponses = {
2203
2095
  /**
2204
2096
  * OK
2205
2097
  */
@@ -2279,53 +2171,72 @@ export type GetPublicAgencySubdomainBySubDomainResponses = {
2279
2171
  200: AgencySummaryResponse;
2280
2172
  };
2281
2173
  export type GetPublicAgencySubdomainBySubDomainResponse = GetPublicAgencySubdomainBySubDomainResponses[keyof GetPublicAgencySubdomainBySubDomainResponses];
2282
- export type GetOauthGoogleAuthorizeData = {
2174
+ export type GetOauthData = {
2283
2175
  body?: never;
2284
2176
  path?: never;
2285
2177
  query?: never;
2286
- url: '/oauth/google/authorize';
2178
+ url: '/oauth';
2287
2179
  };
2288
- export type GetOauthGoogleAuthorizeResponses = {
2180
+ export type GetOauthResponses = {
2289
2181
  /**
2290
2182
  * OK
2291
2183
  */
2292
- 200: {
2293
- [key: string]: string;
2294
- };
2184
+ 200: Array<OauthConnectionResponse>;
2295
2185
  };
2296
- export type GetOauthGoogleAuthorizeResponse = GetOauthGoogleAuthorizeResponses[keyof GetOauthGoogleAuthorizeResponses];
2297
- export type DeleteOauthFbData = {
2186
+ export type GetOauthResponse = GetOauthResponses[keyof GetOauthResponses];
2187
+ export type DeleteOauthByChannelData = {
2298
2188
  body?: never;
2299
- path?: never;
2189
+ path: {
2190
+ channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
2191
+ };
2300
2192
  query?: never;
2301
- url: '/oauth/fb';
2193
+ url: '/oauth/{channel}';
2302
2194
  };
2303
- export type DeleteOauthFbResponses = {
2195
+ export type DeleteOauthByChannelResponses = {
2304
2196
  /**
2305
2197
  * OK
2306
2198
  */
2307
2199
  200: unknown;
2308
2200
  };
2309
- export type GetOauthFbData = {
2201
+ export type GetOauthByChannelData = {
2310
2202
  body?: never;
2311
- path?: never;
2203
+ path: {
2204
+ channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
2205
+ };
2312
2206
  query?: never;
2313
- url: '/oauth/fb';
2207
+ url: '/oauth/{channel}';
2314
2208
  };
2315
- export type GetOauthFbResponses = {
2209
+ export type GetOauthByChannelResponses = {
2316
2210
  /**
2317
2211
  * OK
2318
2212
  */
2319
2213
  200: OauthConnectionResponse;
2320
2214
  };
2321
- export type GetOauthFbResponse = GetOauthFbResponses[keyof GetOauthFbResponses];
2322
- export type GetOauthFbAuthorizeData = {
2215
+ export type GetOauthByChannelResponse = GetOauthByChannelResponses[keyof GetOauthByChannelResponses];
2216
+ export type GetOauthByChannelAuthorizeData = {
2217
+ body?: never;
2218
+ path: {
2219
+ channel: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
2220
+ };
2221
+ query?: never;
2222
+ url: '/oauth/{channel}/authorize';
2223
+ };
2224
+ export type GetOauthByChannelAuthorizeResponses = {
2225
+ /**
2226
+ * OK
2227
+ */
2228
+ 200: {
2229
+ [key: string]: string;
2230
+ };
2231
+ };
2232
+ export type GetOauthByChannelAuthorizeResponse = GetOauthByChannelAuthorizeResponses[keyof GetOauthByChannelAuthorizeResponses];
2233
+ export type GetOauthGoogleAuthorizeData = {
2323
2234
  body?: never;
2324
2235
  path?: never;
2325
2236
  query?: never;
2326
- url: '/oauth/fb/authorize';
2237
+ url: '/oauth/google/authorize';
2327
2238
  };
2328
- export type GetOauthFbAuthorizeResponses = {
2239
+ export type GetOauthGoogleAuthorizeResponses = {
2329
2240
  /**
2330
2241
  * OK
2331
2242
  */
@@ -2333,13 +2244,13 @@ export type GetOauthFbAuthorizeResponses = {
2333
2244
  [key: string]: string;
2334
2245
  };
2335
2246
  };
2336
- export type GetOauthFbAuthorizeResponse = GetOauthFbAuthorizeResponses[keyof GetOauthFbAuthorizeResponses];
2247
+ export type GetOauthGoogleAuthorizeResponse = GetOauthGoogleAuthorizeResponses[keyof GetOauthGoogleAuthorizeResponses];
2337
2248
  export type GetMemberData = {
2338
2249
  body?: never;
2339
2250
  path?: never;
2340
2251
  query?: {
2341
2252
  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';
2253
+ 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
2254
  /**
2344
2255
  * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
2345
2256
  */
@@ -2402,7 +2313,7 @@ export type GetListingData = {
2402
2313
  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
2314
  listingTypes?: Array<string>;
2404
2315
  commissionTypes?: Array<string>;
2405
- clientId?: number;
2316
+ contactId?: number;
2406
2317
  contactName?: string;
2407
2318
  contactPhone?: string;
2408
2319
  assignedTo?: Array<string>;
@@ -2461,7 +2372,7 @@ export type GetListingGroupsData = {
2461
2372
  body?: never;
2462
2373
  path?: never;
2463
2374
  query: {
2464
- groupBy: 'STATE' | 'PROPERTY_TYPE' | 'LISTING_TYPE' | 'ASSIGNED_TO' | 'CLIENT' | 'REGION' | 'PLATFORM' | 'BOOST_TIER' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
2375
+ groupBy: 'STATE' | 'PROPERTY_TYPE' | 'LISTING_TYPE' | 'ASSIGNED_TO' | 'CONTACT' | 'REGION' | 'PLATFORM' | 'BOOST_TIER' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
2465
2376
  states?: Array<'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED'>;
2466
2377
  agreementTypes?: Array<'EXCLUSIVE' | 'NON_EXCLUSIVE'>;
2467
2378
  agreementExpiresFrom?: Date;
@@ -2469,7 +2380,7 @@ export type GetListingGroupsData = {
2469
2380
  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
2381
  listingTypes?: Array<string>;
2471
2382
  commissionTypes?: Array<string>;
2472
- clientId?: number;
2383
+ contactId?: number;
2473
2384
  contactName?: string;
2474
2385
  contactPhone?: string;
2475
2386
  assignedTo?: Array<string>;
@@ -2497,133 +2408,10 @@ export type GetListingGroupsResponses = {
2497
2408
  200: Array<GroupCount>;
2498
2409
  };
2499
2410
  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 = {
2553
- body?: never;
2554
- 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 = {
2411
+ export type GetContactsByContactIdRecommendationsByRecommendationsIdData = {
2624
2412
  body?: never;
2625
2413
  path: {
2626
- clientId: number;
2414
+ contactId: number;
2627
2415
  recommendationsId: string;
2628
2416
  };
2629
2417
  query?: {
@@ -2641,19 +2429,19 @@ export type GetClientsByClientIdRecommendationsByRecommendationsIdData = {
2641
2429
  */
2642
2430
  sort?: Array<string>;
2643
2431
  };
2644
- url: '/clients/{clientId}/recommendations/{recommendationsId}';
2432
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}';
2645
2433
  };
2646
- export type GetClientsByClientIdRecommendationsByRecommendationsIdResponses = {
2434
+ export type GetContactsByContactIdRecommendationsByRecommendationsIdResponses = {
2647
2435
  /**
2648
2436
  * OK
2649
2437
  */
2650
2438
  200: RecommendationResponse;
2651
2439
  };
2652
- export type GetClientsByClientIdRecommendationsByRecommendationsIdResponse = GetClientsByClientIdRecommendationsByRecommendationsIdResponses[keyof GetClientsByClientIdRecommendationsByRecommendationsIdResponses];
2653
- export type GetClientsByClientIdRecommendationsInterestByInterestIdData = {
2440
+ export type GetContactsByContactIdRecommendationsByRecommendationsIdResponse = GetContactsByContactIdRecommendationsByRecommendationsIdResponses[keyof GetContactsByContactIdRecommendationsByRecommendationsIdResponses];
2441
+ export type GetContactsByContactIdRecommendationsInterestByInterestIdData = {
2654
2442
  body?: never;
2655
2443
  path: {
2656
- clientId: number;
2444
+ contactId: number;
2657
2445
  interestId: number;
2658
2446
  };
2659
2447
  query?: {
@@ -2671,126 +2459,117 @@ export type GetClientsByClientIdRecommendationsInterestByInterestIdData = {
2671
2459
  */
2672
2460
  sort?: Array<string>;
2673
2461
  };
2674
- url: '/clients/{clientId}/recommendations/interest/{interestId}';
2462
+ url: '/contacts/{contactId}/recommendations/interest/{interestId}';
2675
2463
  };
2676
- export type GetClientsByClientIdRecommendationsInterestByInterestIdResponses = {
2464
+ export type GetContactsByContactIdRecommendationsInterestByInterestIdResponses = {
2677
2465
  /**
2678
2466
  * OK
2679
2467
  */
2680
2468
  200: RecommendationResponse;
2681
2469
  };
2682
- export type GetClientsByClientIdRecommendationsInterestByInterestIdResponse = GetClientsByClientIdRecommendationsInterestByInterestIdResponses[keyof GetClientsByClientIdRecommendationsInterestByInterestIdResponses];
2683
- export type GetClientsByClientIdInterestsRecommendationByRecommendationIdData = {
2470
+ export type GetContactsByContactIdRecommendationsInterestByInterestIdResponse = GetContactsByContactIdRecommendationsInterestByInterestIdResponses[keyof GetContactsByContactIdRecommendationsInterestByInterestIdResponses];
2471
+ export type GetContactsByContactIdInterestsRecommendationByRecommendationIdData = {
2684
2472
  body?: never;
2685
2473
  path: {
2686
- clientId: number;
2474
+ contactId: number;
2687
2475
  recommendationId: string;
2688
2476
  };
2689
2477
  query?: never;
2690
- url: '/clients/{clientId}/interests/recommendation/{recommendationId}';
2478
+ url: '/contacts/{contactId}/interests/recommendation/{recommendationId}';
2691
2479
  };
2692
- export type GetClientsByClientIdInterestsRecommendationByRecommendationIdResponses = {
2480
+ export type GetContactsByContactIdInterestsRecommendationByRecommendationIdResponses = {
2693
2481
  /**
2694
2482
  * OK
2695
2483
  */
2696
- 200: ClientInterestResponse;
2484
+ 200: ConstantInterestResponse;
2697
2485
  };
2698
- export type GetClientsByClientIdInterestsRecommendationByRecommendationIdResponse = GetClientsByClientIdInterestsRecommendationByRecommendationIdResponses[keyof GetClientsByClientIdInterestsRecommendationByRecommendationIdResponses];
2699
- export type GetClientData = {
2486
+ export type GetContactsByContactIdInterestsRecommendationByRecommendationIdResponse = GetContactsByContactIdInterestsRecommendationByRecommendationIdResponses[keyof GetContactsByContactIdInterestsRecommendationByRecommendationIdResponses];
2487
+ export type GetContactByContactIdData = {
2700
2488
  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>;
2489
+ path: {
2490
+ contactId: number;
2727
2491
  };
2728
- url: '/client';
2492
+ query?: never;
2493
+ url: '/contact/{contactId}';
2729
2494
  };
2730
- export type GetClientResponses = {
2495
+ export type GetContactByContactIdResponses = {
2731
2496
  /**
2732
2497
  * OK
2733
2498
  */
2734
- 200: PagedModelClientGridResponse;
2499
+ 200: ContactGridResponse;
2735
2500
  };
2736
- export type GetClientResponse = GetClientResponses[keyof GetClientResponses];
2737
- export type GetClientByClientIdData = {
2501
+ export type GetContactByContactIdResponse = GetContactByContactIdResponses[keyof GetContactByContactIdResponses];
2502
+ export type GetContactByContactId360Data = {
2738
2503
  body?: never;
2739
2504
  path: {
2740
- clientId: number;
2505
+ contactId: number;
2741
2506
  };
2742
2507
  query?: never;
2743
- url: '/client/{clientId}';
2508
+ url: '/contact/{contactId}/360';
2744
2509
  };
2745
- export type GetClientByClientIdResponses = {
2510
+ export type GetContactByContactId360Responses = {
2746
2511
  /**
2747
2512
  * OK
2748
2513
  */
2749
- 200: ClientGridResponse;
2514
+ 200: Client360Response;
2750
2515
  };
2751
- export type GetClientByClientIdResponse = GetClientByClientIdResponses[keyof GetClientByClientIdResponses];
2752
- export type GetClientByClientId360Data = {
2516
+ export type GetContactByContactId360Response = GetContactByContactId360Responses[keyof GetContactByContactId360Responses];
2517
+ export type GetContactPhoneCheckerData = {
2753
2518
  body?: never;
2754
- path: {
2755
- clientId: number;
2519
+ path?: never;
2520
+ query: {
2521
+ phone: string;
2756
2522
  };
2757
- query?: never;
2758
- url: '/client/{clientId}/360';
2523
+ url: '/contact/phone-checker';
2759
2524
  };
2760
- export type GetClientByClientId360Responses = {
2525
+ export type GetContactPhoneCheckerResponses = {
2761
2526
  /**
2762
2527
  * OK
2763
2528
  */
2764
- 200: Client360Response;
2529
+ 200: PhoneDuplicateCheckResponse;
2765
2530
  };
2766
- export type GetClientByClientId360Response = GetClientByClientId360Responses[keyof GetClientByClientId360Responses];
2767
- export type GetClientGroupsData = {
2531
+ export type GetContactPhoneCheckerResponse = GetContactPhoneCheckerResponses[keyof GetContactPhoneCheckerResponses];
2532
+ export type GetContactGroupsData = {
2768
2533
  body?: never;
2769
2534
  path?: never;
2770
2535
  query: {
2771
- groupBy: 'ASSIGNED_TO' | 'CREATED_BY' | 'PRIORITY' | 'SOURCE_TYPE' | 'IS_SEARCHING' | 'IS_LISTING' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
2536
+ groupBy: 'ASSIGNED_TO' | 'CREATED_BY' | 'PRIORITY' | 'STATUS' | 'SOURCE_TYPE' | 'IS_SEARCHING' | 'IS_LISTING' | 'CREATED_AT_DAY' | 'CREATED_AT_WEEK' | 'CREATED_AT_MONTH';
2537
+ statuses?: Array<'NEW' | 'ON_HOLD' | 'COLD' | 'WARM' | 'HOT' | 'WAITING_PAYMENT' | 'LOST' | 'CLOSED'>;
2538
+ priorities?: Array<'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW'>;
2772
2539
  isSearching?: boolean;
2773
2540
  isListing?: boolean;
2774
2541
  assignedTo?: Array<string>;
2775
2542
  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
2543
  contactName?: string;
2780
2544
  contactPhone?: string;
2781
2545
  contactEmail?: string;
2546
+ sourceTypes?: Array<'MY_HOME' | 'SS' | 'HOME_SPOT' | 'AGENCY_MEMBER' | 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP' | 'UNKNOWN'>;
2547
+ contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
2782
2548
  createdFrom?: Date;
2783
2549
  createdTo?: Date;
2550
+ clientTypes?: Array<'LISTING' | 'SEEKING'>;
2551
+ listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
2552
+ 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'>;
2553
+ regionId?: number;
2554
+ districtId?: number;
2555
+ subDistrictId?: number;
2556
+ streetId?: number;
2557
+ priceMin?: number;
2558
+ priceMax?: number;
2559
+ areaMin?: number;
2560
+ areaMax?: number;
2561
+ roomsMin?: number;
2562
+ roomsMax?: number;
2784
2563
  };
2785
- url: '/client/groups';
2564
+ url: '/contact/groups';
2786
2565
  };
2787
- export type GetClientGroupsResponses = {
2566
+ export type GetContactGroupsResponses = {
2788
2567
  /**
2789
2568
  * OK
2790
2569
  */
2791
2570
  200: Array<GroupCount>;
2792
2571
  };
2793
- export type GetClientGroupsResponse = GetClientGroupsResponses[keyof GetClientGroupsResponses];
2572
+ export type GetContactGroupsResponse = GetContactGroupsResponses[keyof GetContactGroupsResponses];
2794
2573
  export type GetAgencyByAgencyIdOwnerData = {
2795
2574
  body?: never;
2796
2575
  path: {
@@ -2876,35 +2655,21 @@ export type DeleteMemberByMemberIdResponses = {
2876
2655
  204: void;
2877
2656
  };
2878
2657
  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 = {
2658
+ export type DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdData = {
2894
2659
  body?: never;
2895
2660
  path: {
2896
- clientId: number;
2661
+ contactId: number;
2897
2662
  recommendationsId: string;
2898
2663
  itemId: number;
2899
2664
  };
2900
2665
  query?: never;
2901
- url: '/clients/{clientId}/recommendations/{recommendationsId}/items/{itemId}';
2666
+ url: '/contacts/{contactId}/recommendations/{recommendationsId}/items/{itemId}';
2902
2667
  };
2903
- export type DeleteClientsByClientIdRecommendationsByRecommendationsIdItemsByItemIdResponses = {
2668
+ export type DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdResponses = {
2904
2669
  /**
2905
2670
  * No Content
2906
2671
  */
2907
2672
  204: void;
2908
2673
  };
2909
- export type DeleteClientsByClientIdRecommendationsByRecommendationsIdItemsByItemIdResponse = DeleteClientsByClientIdRecommendationsByRecommendationsIdItemsByItemIdResponses[keyof DeleteClientsByClientIdRecommendationsByRecommendationsIdItemsByItemIdResponses];
2674
+ export type DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdResponse = DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdResponses[keyof DeleteContactsByContactIdRecommendationsByRecommendationsIdItemsByItemIdResponses];
2910
2675
  //# sourceMappingURL=types.gen.d.ts.map