@homespot-sdk/core 0.0.216 → 0.0.218

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.
@@ -1,6 +1,38 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: 'https://gateway.dev.homespot.ge/rem' | (string & {});
3
3
  };
4
+ export type WebsiteRequest = {
5
+ url?: string;
6
+ };
7
+ export type ThemeRequest = {
8
+ primaryColor: number;
9
+ };
10
+ export type SocialMediaRequest = {
11
+ type: TypeEnum;
12
+ url?: string;
13
+ };
14
+ export type SocialMediasRequest = {
15
+ data: Array<SocialMediaRequest>;
16
+ };
17
+ export type MultiLangTextRequest = {
18
+ data: Array<TextRequest>;
19
+ };
20
+ export type TextRequest = {
21
+ language: LanguageEnum;
22
+ text?: string;
23
+ };
24
+ export type WhitelabelSectionRequest = {
25
+ title: MultiLangTextRequest;
26
+ body: MultiLangTextRequest;
27
+ };
28
+ export type WhitelabelReviewRequest = {
29
+ quote: MultiLangTextRequest;
30
+ name: MultiLangTextRequest;
31
+ status: MultiLangTextRequest;
32
+ };
33
+ export type EstablishedYearRequest = {
34
+ year: number;
35
+ };
4
36
  export type RolesRequest = {
5
37
  name: string;
6
38
  description: string;
@@ -52,7 +84,7 @@ export type RenameClientRecommendationsRequest = {
52
84
  name?: string;
53
85
  };
54
86
  export type AgreementRequest = {
55
- type: TypeEnum;
87
+ type: TypeEnum2;
56
88
  expiresAt?: Date;
57
89
  };
58
90
  export type ReprioritizeClientRequest = {
@@ -91,11 +123,10 @@ export type CreateAgencyRequest = {
91
123
  subdomain: string;
92
124
  phone: string;
93
125
  address: AddressRequest;
94
- establishedYear: number;
95
126
  };
96
127
  export type PhotoRequest = {
97
128
  photo: string;
98
- type: TypeEnum2;
129
+ type: TypeEnum3;
99
130
  width: number;
100
131
  height?: number;
101
132
  };
@@ -121,14 +152,14 @@ export type DepositFundsRequest = {
121
152
  export type IdResponseInteger = {
122
153
  id: number;
123
154
  };
124
- export type RateRecommendationItemRequest = {
125
- decision: SchemaEnum;
126
- note?: string;
127
- };
128
155
  export type CaptureLeadRequest = {
129
156
  contactInfo: ContactInfoRequest;
130
157
  note?: string;
131
158
  };
159
+ export type RateRecommendationItemRequest = {
160
+ decision: SchemaEnum;
161
+ note?: string;
162
+ };
132
163
  export type LeadId = {
133
164
  value?: number;
134
165
  };
@@ -259,38 +290,6 @@ export type InterestId = {
259
290
  export type IdResponseUuid = {
260
291
  id: string;
261
292
  };
262
- export type WebsiteRequest = {
263
- url?: string;
264
- };
265
- export type ThemeRequest = {
266
- primaryColor: number;
267
- };
268
- export type SocialMediaRequest = {
269
- type: TypeEnum3;
270
- url?: string;
271
- };
272
- export type SocialMediasRequest = {
273
- data: Array<SocialMediaRequest>;
274
- };
275
- export type MultiLangTextRequest = {
276
- data: Array<TextRequest>;
277
- };
278
- export type TextRequest = {
279
- language: SchemaEnum3;
280
- text?: string;
281
- };
282
- export type WhitelabelSectionRequest = {
283
- title: MultiLangTextRequest;
284
- body: MultiLangTextRequest;
285
- };
286
- export type WhitelabelReviewRequest = {
287
- quote: MultiLangTextRequest;
288
- name: MultiLangTextRequest;
289
- status: MultiLangTextRequest;
290
- };
291
- export type EstablishedYearRequest = {
292
- year: number;
293
- };
294
293
  export type OrganizationSummaryViewResponse = {
295
294
  agencyId: string;
296
295
  isOwner: boolean;
@@ -416,7 +415,7 @@ export type AgencyStatsResponse = {
416
415
  operatingSince: number;
417
416
  };
418
417
  export type LangTextResponse = {
419
- language: SchemaEnum3;
418
+ language: LanguageEnum;
420
419
  text: string;
421
420
  };
422
421
  export type MemberResponse = {
@@ -428,17 +427,17 @@ export type MemberResponse = {
428
427
  profilePictureUrl?: string;
429
428
  };
430
429
  export type ReviewResponse = {
431
- quote?: LangTextResponse;
432
- name?: LangTextResponse;
433
- status?: LangTextResponse;
430
+ quote?: Array<LangTextResponse>;
431
+ name?: Array<LangTextResponse>;
432
+ status?: Array<LangTextResponse>;
434
433
  };
435
434
  export type SegmentResponse = {
436
- title?: LangTextResponse;
437
- body?: LangTextResponse;
435
+ title?: Array<LangTextResponse>;
436
+ body?: Array<LangTextResponse>;
438
437
  };
439
438
  export type SocialLinkResponse = {
440
439
  url: string;
441
- type: TypeEnum3;
440
+ type: TypeEnum;
442
441
  };
443
442
  export type WhitelabelResponse = {
444
443
  theme: number;
@@ -486,11 +485,11 @@ export type IntentResponse = {
486
485
  };
487
486
  export type LeadGridResponse = {
488
487
  id: number;
489
- createdBy: string;
488
+ createdBy?: string;
490
489
  assignedTo?: string;
491
490
  assignedToName?: string;
492
491
  assignedToPhoto?: string;
493
- status: SchemaEnum4;
492
+ status: SchemaEnum3;
494
493
  contactFullName?: string;
495
494
  contactGender?: GenderEnum;
496
495
  contactPhoneNumber: string;
@@ -548,7 +547,7 @@ export type ActiveBoostResponse = {
548
547
  expiresAt: Date;
549
548
  };
550
549
  export type AgreementResponse = {
551
- agreement: TypeEnum;
550
+ agreement: TypeEnum2;
552
551
  expiryDate?: Date;
553
552
  };
554
553
  export type AssignedMember = {
@@ -667,29 +666,149 @@ export type AgencyProfileResponse = {
667
666
  phone: string;
668
667
  address: AddressViewResponse;
669
668
  };
669
+ export type WhitelabelActiveResponse = {
670
+ active?: boolean;
671
+ };
670
672
  export type SchemaEnum = 'MAYBE' | 'DISLIKE' | 'LIKE' | 'VISIT';
671
673
  export type SchemaEnum2 = 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE';
672
- export type SchemaEnum3 = 'ka' | 'en' | 'ru';
673
- export type SchemaEnum4 = 'NEW' | 'ATTEMPTED_CONTACT' | 'CONTACTED' | 'DISQUALIFIED' | 'CONVERTED' | 'LOST';
674
+ export type SchemaEnum3 = 'NEW' | 'ATTEMPTED_CONTACT' | 'CONTACTED' | 'DISQUALIFIED' | 'CONVERTED' | 'LOST';
675
+ export type TypeEnum = 'FACEBOOK' | 'YOUTUBE' | 'INSTAGRAM' | 'TIKTOK' | 'LINKEDIN';
676
+ export type LanguageEnum = 'ka' | 'en' | 'ru';
674
677
  export type ItemsEnum = 'AGENCY_WRITE' | 'INVITATION_READ' | 'INVITATION_WRITE' | 'ROLE_READ' | 'ROLE_WRITE' | 'MEMBER_READ' | 'MEMBER_WRITE' | 'LEAD_READ' | 'LEAD_WRITE' | 'LEAD_READ_ALL' | 'LEAD_WRITE_ALL' | 'CLIENT_READ' | 'CLIENT_WRITE' | 'CLIENT_READ_ALL' | 'CLIENT_WRITE_ALL' | 'PROPERTY_READ_ALL';
675
678
  export type ClientTypeEnum = 'LISTING' | 'SEEKING';
676
679
  export type ListingTypeEnum = 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
677
680
  export type PropertyTypeEnum = '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';
678
681
  export type GenderEnum = 'MALE' | 'FEMALE' | 'UNKNOWN';
679
- export type TypeEnum = 'EXCLUSIVE' | 'NON_EXCLUSIVE';
682
+ export type TypeEnum2 = 'EXCLUSIVE' | 'NON_EXCLUSIVE';
680
683
  export type PriorityEnum = 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
681
684
  export type ItemsEnum2 = 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
682
- export type TypeEnum2 = 'JPEG' | 'JPG' | 'PNG' | 'WEBP';
685
+ export type TypeEnum3 = 'JPEG' | 'JPG' | 'PNG' | 'WEBP';
683
686
  export type OutcomeEnum = 'CONVERTED' | 'LOST' | 'DISQUALIFIED';
684
687
  export type PlatformEnum = 'SS' | 'MY_HOME';
685
688
  export type TierEnum = 'VIP' | 'VIP_PLUS' | 'SUPER_VIP';
686
689
  export type CommissionTypeEnum = 'FIXED_SALE' | 'FIXED_RENT' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
687
- export type TypeEnum3 = 'FACEBOOK' | 'YOUTUBE' | 'INSTAGRAM' | 'TIKTOK' | 'LINKEDIN';
688
690
  export type StatusEnum = 'DRAFT' | 'AWAITING_CLIENT_REVIEW' | 'CLOSED';
689
691
  export type GroupEnum = 'AGENCY' | 'INVITATION' | 'ROLE' | 'MEMBER' | 'LEAD' | 'CLIENT' | 'PROPERTY';
690
692
  export type StatusEnum2 = 'PENDING' | 'ACCEPTED' | 'CANCELLED' | 'EXPIRED';
691
- export type SourceTypeEnum = 'MY_HOME' | 'SS' | 'UNKNOWN';
693
+ export type SourceTypeEnum = 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN';
692
694
  export type StateEnum = 'IN_REGISTRATION' | 'UNLISTED' | 'LISTED_INTERNALLY' | 'LISTED' | 'CLOSED';
695
+ export type PutWhitelabelWebsiteData = {
696
+ body: WebsiteRequest;
697
+ path?: never;
698
+ query?: never;
699
+ url: '/whitelabel/website';
700
+ };
701
+ export type PutWhitelabelWebsiteResponses = {
702
+ /**
703
+ * No Content
704
+ */
705
+ 204: void;
706
+ };
707
+ export type PutWhitelabelWebsiteResponse = PutWhitelabelWebsiteResponses[keyof PutWhitelabelWebsiteResponses];
708
+ export type PutWhitelabelThemeData = {
709
+ body: ThemeRequest;
710
+ path?: never;
711
+ query?: never;
712
+ url: '/whitelabel/theme';
713
+ };
714
+ export type PutWhitelabelThemeResponses = {
715
+ /**
716
+ * No Content
717
+ */
718
+ 204: void;
719
+ };
720
+ export type PutWhitelabelThemeResponse = PutWhitelabelThemeResponses[keyof PutWhitelabelThemeResponses];
721
+ export type PutWhitelabelSocialLinksData = {
722
+ body: SocialMediasRequest;
723
+ path?: never;
724
+ query?: never;
725
+ url: '/whitelabel/social-links';
726
+ };
727
+ export type PutWhitelabelSocialLinksResponses = {
728
+ /**
729
+ * No Content
730
+ */
731
+ 204: void;
732
+ };
733
+ export type PutWhitelabelSocialLinksResponse = PutWhitelabelSocialLinksResponses[keyof PutWhitelabelSocialLinksResponses];
734
+ export type PutWhitelabelSloganData = {
735
+ body: WhitelabelSectionRequest;
736
+ path?: never;
737
+ query?: never;
738
+ url: '/whitelabel/slogan';
739
+ };
740
+ export type PutWhitelabelSloganResponses = {
741
+ /**
742
+ * No Content
743
+ */
744
+ 204: void;
745
+ };
746
+ export type PutWhitelabelSloganResponse = PutWhitelabelSloganResponses[keyof PutWhitelabelSloganResponses];
747
+ export type PutWhitelabelReviewsData = {
748
+ body: Array<WhitelabelReviewRequest>;
749
+ path?: never;
750
+ query?: never;
751
+ url: '/whitelabel/reviews';
752
+ };
753
+ export type PutWhitelabelReviewsResponses = {
754
+ /**
755
+ * No Content
756
+ */
757
+ 204: void;
758
+ };
759
+ export type PutWhitelabelReviewsResponse = PutWhitelabelReviewsResponses[keyof PutWhitelabelReviewsResponses];
760
+ export type PutWhitelabelReviewSectionData = {
761
+ body: WhitelabelSectionRequest;
762
+ path?: never;
763
+ query?: never;
764
+ url: '/whitelabel/review-section';
765
+ };
766
+ export type PutWhitelabelReviewSectionResponses = {
767
+ /**
768
+ * No Content
769
+ */
770
+ 204: void;
771
+ };
772
+ export type PutWhitelabelReviewSectionResponse = PutWhitelabelReviewSectionResponses[keyof PutWhitelabelReviewSectionResponses];
773
+ export type PutWhitelabelOurTeamData = {
774
+ body: WhitelabelSectionRequest;
775
+ path?: never;
776
+ query?: never;
777
+ url: '/whitelabel/our-team';
778
+ };
779
+ export type PutWhitelabelOurTeamResponses = {
780
+ /**
781
+ * No Content
782
+ */
783
+ 204: void;
784
+ };
785
+ export type PutWhitelabelOurTeamResponse = PutWhitelabelOurTeamResponses[keyof PutWhitelabelOurTeamResponses];
786
+ export type PutWhitelabelEstablishedYearData = {
787
+ body: EstablishedYearRequest;
788
+ path?: never;
789
+ query?: never;
790
+ url: '/whitelabel/established-year';
791
+ };
792
+ export type PutWhitelabelEstablishedYearResponses = {
793
+ /**
794
+ * No Content
795
+ */
796
+ 204: void;
797
+ };
798
+ export type PutWhitelabelEstablishedYearResponse = PutWhitelabelEstablishedYearResponses[keyof PutWhitelabelEstablishedYearResponses];
799
+ export type PutWhitelabelContactUsData = {
800
+ body: WhitelabelSectionRequest;
801
+ path?: never;
802
+ query?: never;
803
+ url: '/whitelabel/contact-us';
804
+ };
805
+ export type PutWhitelabelContactUsResponses = {
806
+ /**
807
+ * No Content
808
+ */
809
+ 204: void;
810
+ };
811
+ export type PutWhitelabelContactUsResponse = PutWhitelabelContactUsResponses[keyof PutWhitelabelContactUsResponses];
693
812
  export type DeleteRolesByRoleIdData = {
694
813
  body?: never;
695
814
  path: {
@@ -1135,6 +1254,20 @@ export type PostRolesResponses = {
1135
1254
  201: IdResponseInteger;
1136
1255
  };
1137
1256
  export type PostRolesResponse = PostRolesResponses[keyof PostRolesResponses];
1257
+ export type PostPublicSelfAgencyByAgencyIdLeadData = {
1258
+ body: CaptureLeadRequest;
1259
+ path: {
1260
+ agencyId: string;
1261
+ };
1262
+ query?: never;
1263
+ url: '/public/self/agency/{agencyId}/lead';
1264
+ };
1265
+ export type PostPublicSelfAgencyByAgencyIdLeadResponses = {
1266
+ /**
1267
+ * OK
1268
+ */
1269
+ 200: unknown;
1270
+ };
1138
1271
  export type PostPublicRecomendationsByRecommendationsIdItemsByItemIdRateData = {
1139
1272
  body: RateRecommendationItemRequest;
1140
1273
  path: {
@@ -1572,123 +1705,6 @@ export type PostAgencyResponses = {
1572
1705
  201: IdResponseUuid;
1573
1706
  };
1574
1707
  export type PostAgencyResponse = PostAgencyResponses[keyof PostAgencyResponses];
1575
- export type PatchWhitelabelWebsiteData = {
1576
- body: WebsiteRequest;
1577
- path?: never;
1578
- query?: never;
1579
- url: '/whitelabel/website';
1580
- };
1581
- export type PatchWhitelabelWebsiteResponses = {
1582
- /**
1583
- * No Content
1584
- */
1585
- 204: void;
1586
- };
1587
- export type PatchWhitelabelWebsiteResponse = PatchWhitelabelWebsiteResponses[keyof PatchWhitelabelWebsiteResponses];
1588
- export type PatchWhitelabelThemeData = {
1589
- body: ThemeRequest;
1590
- path?: never;
1591
- query?: never;
1592
- url: '/whitelabel/theme';
1593
- };
1594
- export type PatchWhitelabelThemeResponses = {
1595
- /**
1596
- * No Content
1597
- */
1598
- 204: void;
1599
- };
1600
- export type PatchWhitelabelThemeResponse = PatchWhitelabelThemeResponses[keyof PatchWhitelabelThemeResponses];
1601
- export type PatchWhitelabelSocialLinksData = {
1602
- body: SocialMediasRequest;
1603
- path?: never;
1604
- query?: never;
1605
- url: '/whitelabel/social-links';
1606
- };
1607
- export type PatchWhitelabelSocialLinksResponses = {
1608
- /**
1609
- * No Content
1610
- */
1611
- 204: void;
1612
- };
1613
- export type PatchWhitelabelSocialLinksResponse = PatchWhitelabelSocialLinksResponses[keyof PatchWhitelabelSocialLinksResponses];
1614
- export type PatchWhitelabelSloganData = {
1615
- body: WhitelabelSectionRequest;
1616
- path?: never;
1617
- query?: never;
1618
- url: '/whitelabel/slogan';
1619
- };
1620
- export type PatchWhitelabelSloganResponses = {
1621
- /**
1622
- * No Content
1623
- */
1624
- 204: void;
1625
- };
1626
- export type PatchWhitelabelSloganResponse = PatchWhitelabelSloganResponses[keyof PatchWhitelabelSloganResponses];
1627
- export type PatchWhitelabelReviewsData = {
1628
- body: Array<WhitelabelReviewRequest>;
1629
- path?: never;
1630
- query?: never;
1631
- url: '/whitelabel/reviews';
1632
- };
1633
- export type PatchWhitelabelReviewsResponses = {
1634
- /**
1635
- * No Content
1636
- */
1637
- 204: void;
1638
- };
1639
- export type PatchWhitelabelReviewsResponse = PatchWhitelabelReviewsResponses[keyof PatchWhitelabelReviewsResponses];
1640
- export type PatchWhitelabelReviewSectionData = {
1641
- body: WhitelabelSectionRequest;
1642
- path?: never;
1643
- query?: never;
1644
- url: '/whitelabel/review-section';
1645
- };
1646
- export type PatchWhitelabelReviewSectionResponses = {
1647
- /**
1648
- * No Content
1649
- */
1650
- 204: void;
1651
- };
1652
- export type PatchWhitelabelReviewSectionResponse = PatchWhitelabelReviewSectionResponses[keyof PatchWhitelabelReviewSectionResponses];
1653
- export type PatchWhitelabelOurTeamData = {
1654
- body: WhitelabelSectionRequest;
1655
- path?: never;
1656
- query?: never;
1657
- url: '/whitelabel/our-team';
1658
- };
1659
- export type PatchWhitelabelOurTeamResponses = {
1660
- /**
1661
- * No Content
1662
- */
1663
- 204: void;
1664
- };
1665
- export type PatchWhitelabelOurTeamResponse = PatchWhitelabelOurTeamResponses[keyof PatchWhitelabelOurTeamResponses];
1666
- export type PatchWhitelabelEstablishedYearData = {
1667
- body: EstablishedYearRequest;
1668
- path?: never;
1669
- query?: never;
1670
- url: '/whitelabel/established-year';
1671
- };
1672
- export type PatchWhitelabelEstablishedYearResponses = {
1673
- /**
1674
- * No Content
1675
- */
1676
- 204: void;
1677
- };
1678
- export type PatchWhitelabelEstablishedYearResponse = PatchWhitelabelEstablishedYearResponses[keyof PatchWhitelabelEstablishedYearResponses];
1679
- export type PatchWhitelabelContactUsData = {
1680
- body: WhitelabelSectionRequest;
1681
- path?: never;
1682
- query?: never;
1683
- url: '/whitelabel/contact-us';
1684
- };
1685
- export type PatchWhitelabelContactUsResponses = {
1686
- /**
1687
- * No Content
1688
- */
1689
- 204: void;
1690
- };
1691
- export type PatchWhitelabelContactUsResponse = PatchWhitelabelContactUsResponses[keyof PatchWhitelabelContactUsResponses];
1692
1708
  export type GetUserMeData = {
1693
1709
  body?: never;
1694
1710
  path?: never;
@@ -1808,9 +1824,7 @@ export type GetPublicAgencySubdomainBySubdomainLandingData = {
1808
1824
  path: {
1809
1825
  subdomain: string;
1810
1826
  };
1811
- query?: {
1812
- language?: SchemaEnum3;
1813
- };
1827
+ query?: never;
1814
1828
  url: '/public/agency/subdomain/{subdomain}/landing';
1815
1829
  };
1816
1830
  export type GetPublicAgencySubdomainBySubdomainLandingResponses = {
@@ -1866,7 +1880,7 @@ export type GetLeadData = {
1866
1880
  body?: never;
1867
1881
  path?: never;
1868
1882
  query?: {
1869
- status?: SchemaEnum4;
1883
+ status?: SchemaEnum3;
1870
1884
  isSearching?: boolean;
1871
1885
  isListing?: boolean;
1872
1886
  /**
@@ -1910,7 +1924,7 @@ export type GetLeadMineData = {
1910
1924
  body?: never;
1911
1925
  path?: never;
1912
1926
  query?: {
1913
- status?: SchemaEnum4;
1927
+ status?: SchemaEnum3;
1914
1928
  isSearching?: boolean;
1915
1929
  isListing?: boolean;
1916
1930
  /**
@@ -2096,6 +2110,36 @@ export type GetAgencyByAgencyIdResponses = {
2096
2110
  200: AgencyProfileResponse;
2097
2111
  };
2098
2112
  export type GetAgencyByAgencyIdResponse = GetAgencyByAgencyIdResponses[keyof GetAgencyByAgencyIdResponses];
2113
+ export type GetAgencySubdomainBySubdomainLandingData = {
2114
+ body?: never;
2115
+ path: {
2116
+ subdomain: string;
2117
+ };
2118
+ query?: never;
2119
+ url: '/agency/subdomain/{subdomain}/landing';
2120
+ };
2121
+ export type GetAgencySubdomainBySubdomainLandingResponses = {
2122
+ /**
2123
+ * OK
2124
+ */
2125
+ 200: WhitelabelResponse;
2126
+ };
2127
+ export type GetAgencySubdomainBySubdomainLandingResponse = GetAgencySubdomainBySubdomainLandingResponses[keyof GetAgencySubdomainBySubdomainLandingResponses];
2128
+ export type GetAgencySubdomainBySubdomainActiveData = {
2129
+ body?: never;
2130
+ path: {
2131
+ subdomain: string;
2132
+ };
2133
+ query?: never;
2134
+ url: '/agency/subdomain/{subdomain}/active';
2135
+ };
2136
+ export type GetAgencySubdomainBySubdomainActiveResponses = {
2137
+ /**
2138
+ * OK
2139
+ */
2140
+ 200: WhitelabelActiveResponse;
2141
+ };
2142
+ export type GetAgencySubdomainBySubdomainActiveResponse = GetAgencySubdomainBySubdomainActiveResponses[keyof GetAgencySubdomainBySubdomainActiveResponses];
2099
2143
  export type DeleteMemberByMemberIdData = {
2100
2144
  body?: never;
2101
2145
  path: {