@homespot-sdk/core 0.0.317 → 0.0.319

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 (55) hide show
  1. package/dist/property/client.gen.d.ts.map +1 -1
  2. package/dist/property/client.gen.js +1 -3
  3. package/dist/property/client.gen.js.map +1 -1
  4. package/dist/property/schemas.gen.d.ts +2 -2
  5. package/dist/property/schemas.gen.js +2 -2
  6. package/dist/property/schemas.gen.js.map +1 -1
  7. package/dist/property/types.gen.d.ts +3 -3
  8. package/dist/property/types.gen.d.ts.map +1 -1
  9. package/dist/property/zod.gen.d.ts +4 -4
  10. package/dist/property/zod.gen.d.ts.map +1 -1
  11. package/dist/property/zod.gen.js +22 -16
  12. package/dist/property/zod.gen.js.map +1 -1
  13. package/dist/registration/client.gen.d.ts.map +1 -1
  14. package/dist/registration/client.gen.js +1 -3
  15. package/dist/registration/client.gen.js.map +1 -1
  16. package/dist/registration/schemas.gen.d.ts +2 -2
  17. package/dist/registration/schemas.gen.js +2 -2
  18. package/dist/registration/schemas.gen.js.map +1 -1
  19. package/dist/registration/types.gen.d.ts +3 -3
  20. package/dist/registration/types.gen.d.ts.map +1 -1
  21. package/dist/registration/zod.gen.d.ts +5 -5
  22. package/dist/registration/zod.gen.d.ts.map +1 -1
  23. package/dist/registration/zod.gen.js +22 -16
  24. package/dist/registration/zod.gen.js.map +1 -1
  25. package/dist/rem/client.gen.d.ts.map +1 -1
  26. package/dist/rem/client.gen.js +1 -3
  27. package/dist/rem/client.gen.js.map +1 -1
  28. package/dist/rem/index.d.ts +2 -2
  29. package/dist/rem/index.d.ts.map +1 -1
  30. package/dist/rem/index.js +1 -1
  31. package/dist/rem/index.js.map +1 -1
  32. package/dist/rem/schemas.gen.d.ts +476 -41
  33. package/dist/rem/schemas.gen.d.ts.map +1 -1
  34. package/dist/rem/schemas.gen.js +483 -47
  35. package/dist/rem/schemas.gen.js.map +1 -1
  36. package/dist/rem/sdk.gen.d.ts +10 -1
  37. package/dist/rem/sdk.gen.d.ts.map +1 -1
  38. package/dist/rem/sdk.gen.js +64 -1
  39. package/dist/rem/sdk.gen.js.map +1 -1
  40. package/dist/rem/transformers.gen.d.ts +7 -1
  41. package/dist/rem/transformers.gen.d.ts.map +1 -1
  42. package/dist/rem/transformers.gen.js +116 -8
  43. package/dist/rem/transformers.gen.js.map +1 -1
  44. package/dist/rem/types.gen.d.ts +263 -14
  45. package/dist/rem/types.gen.d.ts.map +1 -1
  46. package/dist/rem/zod.gen.d.ts +535 -26
  47. package/dist/rem/zod.gen.d.ts.map +1 -1
  48. package/dist/rem/zod.gen.js +417 -13
  49. package/dist/rem/zod.gen.js.map +1 -1
  50. package/dist/utils/client.gen.d.ts.map +1 -1
  51. package/dist/utils/client.gen.js +1 -3
  52. package/dist/utils/client.gen.js.map +1 -1
  53. package/dist/utils/types.gen.d.ts +1 -1
  54. package/dist/utils/types.gen.d.ts.map +1 -1
  55. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  export type ClientOptions = {
2
- baseUrl: 'https://gateway.dev.homespot.ge/rem' | (string & {});
2
+ baseUrl: 'http://gateway.dev.homespot.ge' | (string & {});
3
3
  };
4
4
  export type WebsiteRequest = {
5
5
  url?: string;
@@ -126,6 +126,10 @@ export type RecordLostContactRequest = {
126
126
  export type ReassignMemberRequest = {
127
127
  memberId: string;
128
128
  };
129
+ export type ContactMergeRequest = {
130
+ survivorContactId: number;
131
+ loserContactId: number;
132
+ };
129
133
  export type AddressRequest = {
130
134
  country: string;
131
135
  city: string;
@@ -191,6 +195,22 @@ export type ContactSelfRegisterRequest = {
191
195
  commentBody: string;
192
196
  otp: string;
193
197
  };
198
+ export type ConnectWhatsAppRequest = {
199
+ code?: string;
200
+ wabaId?: string;
201
+ phoneNumberId?: string;
202
+ };
203
+ export type OauthConnectionResponse = {
204
+ agencyId: string;
205
+ userId: string;
206
+ provider: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
207
+ status: 'ACTIVE' | 'REVOKED';
208
+ pagePicture?: string;
209
+ pageName?: string;
210
+ createdAt: Date;
211
+ updatedAt: Date;
212
+ revokedAt?: Date;
213
+ };
194
214
  export type AttendeeRequest = {
195
215
  role: 'ORGANIZER' | 'MEMBER' | 'OWNER' | 'CLIENT' | 'OTHER';
196
216
  memberId?: string;
@@ -238,6 +258,7 @@ export type AgencyPrincipalDto = {
238
258
  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'>;
239
259
  isActive?: boolean;
240
260
  isOwner?: boolean;
261
+ phoneVerified?: boolean;
241
262
  };
242
263
  export type SendMessageRequest = {
243
264
  text: string;
@@ -308,6 +329,7 @@ export type OrganizationSummaryViewResponse = {
308
329
  roleName: string;
309
330
  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'>;
310
331
  status: 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE';
332
+ isPhoneVerified: boolean;
311
333
  };
312
334
  export type UserContextViewResponse = {
313
335
  user: UserSummaryViewResponse;
@@ -318,6 +340,118 @@ export type UserSummaryViewResponse = {
318
340
  firstName: string;
319
341
  lastName: string;
320
342
  };
343
+ export type ExpiringAgreement = {
344
+ propertyId?: number;
345
+ externalId?: string;
346
+ title?: string;
347
+ expiresAt?: Date;
348
+ };
349
+ export type ExpiringPlatformListing = {
350
+ platform?: string;
351
+ platformId?: number;
352
+ propertyTitle?: string;
353
+ expiresAt?: Date;
354
+ };
355
+ export type ListingTypeAgg = {
356
+ listingType?: string;
357
+ count?: number;
358
+ pipelineValue?: number;
359
+ estimatedCommission?: number;
360
+ };
361
+ export type PortfolioStats = {
362
+ propertiesByState?: Array<Slice>;
363
+ listings?: Array<ListingTypeAgg>;
364
+ expiringAgreementsCount?: number;
365
+ expiringAgreements?: Array<ExpiringAgreement>;
366
+ expiringPlatformCount?: number;
367
+ expiringPlatformListings?: Array<ExpiringPlatformListing>;
368
+ };
369
+ export type Slice = {
370
+ key?: string;
371
+ count?: number;
372
+ };
373
+ export type StatsEnvelopePortfolioStats = {
374
+ period?: string;
375
+ computedAt?: Date;
376
+ data?: PortfolioStats;
377
+ };
378
+ export type PipelineStats = {
379
+ total?: number;
380
+ won?: number;
381
+ conversionRatePercent?: number;
382
+ unassigned?: number;
383
+ newContactsTrend?: Array<TrendPoint>;
384
+ status?: Array<Slice>;
385
+ sourceAttribution?: Array<Slice>;
386
+ lostReasons?: Array<Slice>;
387
+ };
388
+ export type StatsEnvelopePipelineStats = {
389
+ period?: string;
390
+ computedAt?: Date;
391
+ data?: PipelineStats;
392
+ };
393
+ export type TrendPoint = {
394
+ date?: Date;
395
+ count?: number;
396
+ };
397
+ export type LeaderboardStats = {
398
+ rows?: Array<Row>;
399
+ };
400
+ export type Row = {
401
+ memberId?: string;
402
+ firstName?: string;
403
+ lastName?: string;
404
+ photo?: string;
405
+ contactsAssigned?: number;
406
+ converted?: number;
407
+ conversionRatePct?: number;
408
+ recommendationsSent?: number;
409
+ recommendationsRated?: number;
410
+ likeRatePct?: number;
411
+ };
412
+ export type StatsEnvelopeLeaderboardStats = {
413
+ period?: string;
414
+ computedAt?: Date;
415
+ data?: LeaderboardStats;
416
+ };
417
+ export type AwaitingConversation = {
418
+ conversationId?: string;
419
+ contactId?: number;
420
+ channelType?: string;
421
+ lastMessagePreview?: string;
422
+ lastInboundAt?: Date;
423
+ unreadCount?: number;
424
+ };
425
+ export type InboxStats = {
426
+ openConversations?: number;
427
+ unreadMessages?: number;
428
+ awaitingReplyCount?: number;
429
+ awaitingReply?: Array<AwaitingConversation>;
430
+ medianResponseSeconds?: number;
431
+ inboundByChannel?: Array<Slice>;
432
+ };
433
+ export type StatsEnvelopeInboxStats = {
434
+ period?: string;
435
+ computedAt?: Date;
436
+ data?: InboxStats;
437
+ };
438
+ export type DemandStats = {
439
+ activeInterests?: number;
440
+ byListingType?: Array<Slice>;
441
+ byPropertyType?: Array<Slice>;
442
+ budgetBuckets?: Array<Slice>;
443
+ topDistricts?: Array<DistrictDemand>;
444
+ };
445
+ export type DistrictDemand = {
446
+ districtId?: number;
447
+ name?: string;
448
+ count?: number;
449
+ };
450
+ export type StatsEnvelopeDemandStats = {
451
+ period?: string;
452
+ computedAt?: Date;
453
+ data?: DemandStats;
454
+ };
321
455
  export type PageMetadata = {
322
456
  size?: number;
323
457
  number?: number;
@@ -466,17 +600,6 @@ export type WhitelabelResponse = {
466
600
  socialLinks?: Array<SocialLinkResponse>;
467
601
  website?: string;
468
602
  };
469
- export type OauthConnectionResponse = {
470
- agencyId: string;
471
- userId: string;
472
- provider: 'FACEBOOK' | 'INSTAGRAM' | 'WHATSAPP';
473
- status: 'ACTIVE' | 'REVOKED';
474
- pagePicture?: string;
475
- pageName?: string;
476
- createdAt: Date;
477
- updatedAt: Date;
478
- revokedAt?: Date;
479
- };
480
603
  export type ContactAssigned = {
481
604
  contactId?: ContactId;
482
605
  contactName?: string;
@@ -1343,6 +1466,19 @@ export type PutContactByContactIdAssignmentResponses = {
1343
1466
  204: void;
1344
1467
  };
1345
1468
  export type PutContactByContactIdAssignmentResponse = PutContactByContactIdAssignmentResponses[keyof PutContactByContactIdAssignmentResponses];
1469
+ export type PutContactMergeData = {
1470
+ body: ContactMergeRequest;
1471
+ path?: never;
1472
+ query?: never;
1473
+ url: '/contact/merge';
1474
+ };
1475
+ export type PutContactMergeResponses = {
1476
+ /**
1477
+ * No Content
1478
+ */
1479
+ 204: void;
1480
+ };
1481
+ export type PutContactMergeResponse = PutContactMergeResponses[keyof PutContactMergeResponses];
1346
1482
  export type PutAgencyByAgencyIdDetailsData = {
1347
1483
  body: CreateAgencyRequest;
1348
1484
  path: {
@@ -1690,6 +1826,19 @@ export type PostPublicContactAgencyByAgencyIdResponses = {
1690
1826
  */
1691
1827
  201: unknown;
1692
1828
  };
1829
+ export type PostOauthWhatsappConnectData = {
1830
+ body: ConnectWhatsAppRequest;
1831
+ path?: never;
1832
+ query?: never;
1833
+ url: '/oauth/whatsapp/connect';
1834
+ };
1835
+ export type PostOauthWhatsappConnectResponses = {
1836
+ /**
1837
+ * OK
1838
+ */
1839
+ 200: OauthConnectionResponse;
1840
+ };
1841
+ export type PostOauthWhatsappConnectResponse = PostOauthWhatsappConnectResponses[keyof PostOauthWhatsappConnectResponses];
1693
1842
  export type PostNotificationsReadData = {
1694
1843
  body?: never;
1695
1844
  path?: never;
@@ -1731,6 +1880,19 @@ export type PostMemberPresignedUrlsNotifyResponses = {
1731
1880
  200: UploadAcknowledgmentResponse;
1732
1881
  };
1733
1882
  export type PostMemberPresignedUrlsNotifyResponse = PostMemberPresignedUrlsNotifyResponses[keyof PostMemberPresignedUrlsNotifyResponses];
1883
+ export type PostMemberPhoneConfirmData = {
1884
+ body: VerifyPhoneRequest;
1885
+ path?: never;
1886
+ query?: never;
1887
+ url: '/member/phone/confirm';
1888
+ };
1889
+ export type PostMemberPhoneConfirmResponses = {
1890
+ /**
1891
+ * No Content
1892
+ */
1893
+ 204: void;
1894
+ };
1895
+ export type PostMemberPhoneConfirmResponse = PostMemberPhoneConfirmResponses[keyof PostMemberPhoneConfirmResponses];
1734
1896
  export type PostMeetingsData = {
1735
1897
  body: CreateMeetingRequest;
1736
1898
  path?: never;
@@ -2103,7 +2265,6 @@ export type GetContactData = {
2103
2265
  contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
2104
2266
  createdFrom?: Date;
2105
2267
  createdTo?: Date;
2106
- clientTypes?: Array<'LISTING' | 'SEEKING'>;
2107
2268
  listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
2108
2269
  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'>;
2109
2270
  regionId?: number;
@@ -2233,6 +2394,80 @@ export type GetUserMeResponses = {
2233
2394
  200: UserContextViewResponse;
2234
2395
  };
2235
2396
  export type GetUserMeResponse = GetUserMeResponses[keyof GetUserMeResponses];
2397
+ export type GetStatisticsPortfolioData = {
2398
+ body?: never;
2399
+ path?: never;
2400
+ query?: {
2401
+ agreementWindowDays?: number;
2402
+ platformWindowDays?: number;
2403
+ };
2404
+ url: '/statistics/portfolio';
2405
+ };
2406
+ export type GetStatisticsPortfolioResponses = {
2407
+ /**
2408
+ * OK
2409
+ */
2410
+ 200: StatsEnvelopePortfolioStats;
2411
+ };
2412
+ export type GetStatisticsPortfolioResponse = GetStatisticsPortfolioResponses[keyof GetStatisticsPortfolioResponses];
2413
+ export type GetStatisticsPipelineData = {
2414
+ body?: never;
2415
+ path?: never;
2416
+ query?: {
2417
+ period?: string;
2418
+ };
2419
+ url: '/statistics/pipeline';
2420
+ };
2421
+ export type GetStatisticsPipelineResponses = {
2422
+ /**
2423
+ * OK
2424
+ */
2425
+ 200: StatsEnvelopePipelineStats;
2426
+ };
2427
+ export type GetStatisticsPipelineResponse = GetStatisticsPipelineResponses[keyof GetStatisticsPipelineResponses];
2428
+ export type GetStatisticsLeaderboardData = {
2429
+ body?: never;
2430
+ path?: never;
2431
+ query?: {
2432
+ period?: string;
2433
+ };
2434
+ url: '/statistics/leaderboard';
2435
+ };
2436
+ export type GetStatisticsLeaderboardResponses = {
2437
+ /**
2438
+ * OK
2439
+ */
2440
+ 200: StatsEnvelopeLeaderboardStats;
2441
+ };
2442
+ export type GetStatisticsLeaderboardResponse = GetStatisticsLeaderboardResponses[keyof GetStatisticsLeaderboardResponses];
2443
+ export type GetStatisticsInboxData = {
2444
+ body?: never;
2445
+ path?: never;
2446
+ query?: {
2447
+ period?: string;
2448
+ };
2449
+ url: '/statistics/inbox';
2450
+ };
2451
+ export type GetStatisticsInboxResponses = {
2452
+ /**
2453
+ * OK
2454
+ */
2455
+ 200: StatsEnvelopeInboxStats;
2456
+ };
2457
+ export type GetStatisticsInboxResponse = GetStatisticsInboxResponses[keyof GetStatisticsInboxResponses];
2458
+ export type GetStatisticsDemandData = {
2459
+ body?: never;
2460
+ path?: never;
2461
+ query?: never;
2462
+ url: '/statistics/demand';
2463
+ };
2464
+ export type GetStatisticsDemandResponses = {
2465
+ /**
2466
+ * OK
2467
+ */
2468
+ 200: StatsEnvelopeDemandStats;
2469
+ };
2470
+ export type GetStatisticsDemandResponse = GetStatisticsDemandResponses[keyof GetStatisticsDemandResponses];
2236
2471
  export type GetPublicRecomendationsByTokenItemsData = {
2237
2472
  body?: never;
2238
2473
  path: {
@@ -2455,6 +2690,21 @@ export type GetOauthByChannelAuthorizeResponses = {
2455
2690
  };
2456
2691
  };
2457
2692
  export type GetOauthByChannelAuthorizeResponse = GetOauthByChannelAuthorizeResponses[keyof GetOauthByChannelAuthorizeResponses];
2693
+ export type GetOauthWhatsappEmbeddedSignupConfigData = {
2694
+ body?: never;
2695
+ path?: never;
2696
+ query?: never;
2697
+ url: '/oauth/whatsapp/embedded-signup-config';
2698
+ };
2699
+ export type GetOauthWhatsappEmbeddedSignupConfigResponses = {
2700
+ /**
2701
+ * OK
2702
+ */
2703
+ 200: {
2704
+ [key: string]: string;
2705
+ };
2706
+ };
2707
+ export type GetOauthWhatsappEmbeddedSignupConfigResponse = GetOauthWhatsappEmbeddedSignupConfigResponses[keyof GetOauthWhatsappEmbeddedSignupConfigResponses];
2458
2708
  export type GetOauthGoogleAuthorizeData = {
2459
2709
  body?: never;
2460
2710
  path?: never;
@@ -2824,7 +3074,6 @@ export type GetContactGroupsData = {
2824
3074
  contactGenders?: Array<'MALE' | 'FEMALE' | 'UNKNOWN'>;
2825
3075
  createdFrom?: Date;
2826
3076
  createdTo?: Date;
2827
- clientTypes?: Array<'LISTING' | 'SEEKING'>;
2828
3077
  listingTypes?: Array<'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE'>;
2829
3078
  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'>;
2830
3079
  regionId?: number;