@homespot-sdk/core 0.0.217 → 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 = {
@@ -94,7 +126,7 @@ export type CreateAgencyRequest = {
94
126
  };
95
127
  export type PhotoRequest = {
96
128
  photo: string;
97
- type: TypeEnum2;
129
+ type: TypeEnum3;
98
130
  width: number;
99
131
  height?: number;
100
132
  };
@@ -120,14 +152,14 @@ export type DepositFundsRequest = {
120
152
  export type IdResponseInteger = {
121
153
  id: number;
122
154
  };
123
- export type RateRecommendationItemRequest = {
124
- decision: SchemaEnum;
125
- note?: string;
126
- };
127
155
  export type CaptureLeadRequest = {
128
156
  contactInfo: ContactInfoRequest;
129
157
  note?: string;
130
158
  };
159
+ export type RateRecommendationItemRequest = {
160
+ decision: SchemaEnum;
161
+ note?: string;
162
+ };
131
163
  export type LeadId = {
132
164
  value?: number;
133
165
  };
@@ -258,38 +290,6 @@ export type InterestId = {
258
290
  export type IdResponseUuid = {
259
291
  id: string;
260
292
  };
261
- export type WebsiteRequest = {
262
- url?: string;
263
- };
264
- export type ThemeRequest = {
265
- primaryColor: number;
266
- };
267
- export type SocialMediaRequest = {
268
- type: TypeEnum3;
269
- url?: string;
270
- };
271
- export type SocialMediasRequest = {
272
- data: Array<SocialMediaRequest>;
273
- };
274
- export type MultiLangTextRequest = {
275
- data: Array<TextRequest>;
276
- };
277
- export type TextRequest = {
278
- language: SchemaEnum3;
279
- text?: string;
280
- };
281
- export type WhitelabelSectionRequest = {
282
- title: MultiLangTextRequest;
283
- body: MultiLangTextRequest;
284
- };
285
- export type WhitelabelReviewRequest = {
286
- quote: MultiLangTextRequest;
287
- name: MultiLangTextRequest;
288
- status: MultiLangTextRequest;
289
- };
290
- export type EstablishedYearRequest = {
291
- year: number;
292
- };
293
293
  export type OrganizationSummaryViewResponse = {
294
294
  agencyId: string;
295
295
  isOwner: boolean;
@@ -415,7 +415,7 @@ export type AgencyStatsResponse = {
415
415
  operatingSince: number;
416
416
  };
417
417
  export type LangTextResponse = {
418
- language: SchemaEnum3;
418
+ language: LanguageEnum;
419
419
  text: string;
420
420
  };
421
421
  export type MemberResponse = {
@@ -427,17 +427,17 @@ export type MemberResponse = {
427
427
  profilePictureUrl?: string;
428
428
  };
429
429
  export type ReviewResponse = {
430
- quote?: LangTextResponse;
431
- name?: LangTextResponse;
432
- status?: LangTextResponse;
430
+ quote?: Array<LangTextResponse>;
431
+ name?: Array<LangTextResponse>;
432
+ status?: Array<LangTextResponse>;
433
433
  };
434
434
  export type SegmentResponse = {
435
- title?: LangTextResponse;
436
- body?: LangTextResponse;
435
+ title?: Array<LangTextResponse>;
436
+ body?: Array<LangTextResponse>;
437
437
  };
438
438
  export type SocialLinkResponse = {
439
439
  url: string;
440
- type: TypeEnum3;
440
+ type: TypeEnum;
441
441
  };
442
442
  export type WhitelabelResponse = {
443
443
  theme: number;
@@ -485,11 +485,11 @@ export type IntentResponse = {
485
485
  };
486
486
  export type LeadGridResponse = {
487
487
  id: number;
488
- createdBy: string;
488
+ createdBy?: string;
489
489
  assignedTo?: string;
490
490
  assignedToName?: string;
491
491
  assignedToPhoto?: string;
492
- status: SchemaEnum4;
492
+ status: SchemaEnum3;
493
493
  contactFullName?: string;
494
494
  contactGender?: GenderEnum;
495
495
  contactPhoneNumber: string;
@@ -547,7 +547,7 @@ export type ActiveBoostResponse = {
547
547
  expiresAt: Date;
548
548
  };
549
549
  export type AgreementResponse = {
550
- agreement: TypeEnum;
550
+ agreement: TypeEnum2;
551
551
  expiryDate?: Date;
552
552
  };
553
553
  export type AssignedMember = {
@@ -666,29 +666,149 @@ export type AgencyProfileResponse = {
666
666
  phone: string;
667
667
  address: AddressViewResponse;
668
668
  };
669
+ export type WhitelabelActiveResponse = {
670
+ active?: boolean;
671
+ };
669
672
  export type SchemaEnum = 'MAYBE' | 'DISLIKE' | 'LIKE' | 'VISIT';
670
673
  export type SchemaEnum2 = 'NEW' | 'ACTIVE' | 'PAYMENT_FAILED' | 'INACTIVE';
671
- export type SchemaEnum3 = 'ka' | 'en' | 'ru';
672
- 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';
673
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';
674
678
  export type ClientTypeEnum = 'LISTING' | 'SEEKING';
675
679
  export type ListingTypeEnum = 'SALE' | 'RENT' | 'DAILY_RENT' | 'PLEDGE';
676
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';
677
681
  export type GenderEnum = 'MALE' | 'FEMALE' | 'UNKNOWN';
678
- export type TypeEnum = 'EXCLUSIVE' | 'NON_EXCLUSIVE';
682
+ export type TypeEnum2 = 'EXCLUSIVE' | 'NON_EXCLUSIVE';
679
683
  export type PriorityEnum = 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
680
684
  export type ItemsEnum2 = 'WHATSAPP' | 'VIBER' | 'PHONE_CALL';
681
- export type TypeEnum2 = 'JPEG' | 'JPG' | 'PNG' | 'WEBP';
685
+ export type TypeEnum3 = 'JPEG' | 'JPG' | 'PNG' | 'WEBP';
682
686
  export type OutcomeEnum = 'CONVERTED' | 'LOST' | 'DISQUALIFIED';
683
687
  export type PlatformEnum = 'SS' | 'MY_HOME';
684
688
  export type TierEnum = 'VIP' | 'VIP_PLUS' | 'SUPER_VIP';
685
689
  export type CommissionTypeEnum = 'FIXED_SALE' | 'FIXED_RENT' | 'PERCENTAGE' | 'MONTHS_OF_RENT';
686
- export type TypeEnum3 = 'FACEBOOK' | 'YOUTUBE' | 'INSTAGRAM' | 'TIKTOK' | 'LINKEDIN';
687
690
  export type StatusEnum = 'DRAFT' | 'AWAITING_CLIENT_REVIEW' | 'CLOSED';
688
691
  export type GroupEnum = 'AGENCY' | 'INVITATION' | 'ROLE' | 'MEMBER' | 'LEAD' | 'CLIENT' | 'PROPERTY';
689
692
  export type StatusEnum2 = 'PENDING' | 'ACCEPTED' | 'CANCELLED' | 'EXPIRED';
690
- export type SourceTypeEnum = 'MY_HOME' | 'SS' | 'UNKNOWN';
693
+ export type SourceTypeEnum = 'MY_HOME' | 'SS' | 'HOME_SPOT' | 'UNKNOWN';
691
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];
692
812
  export type DeleteRolesByRoleIdData = {
693
813
  body?: never;
694
814
  path: {
@@ -1134,6 +1254,20 @@ export type PostRolesResponses = {
1134
1254
  201: IdResponseInteger;
1135
1255
  };
1136
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
+ };
1137
1271
  export type PostPublicRecomendationsByRecommendationsIdItemsByItemIdRateData = {
1138
1272
  body: RateRecommendationItemRequest;
1139
1273
  path: {
@@ -1571,123 +1705,6 @@ export type PostAgencyResponses = {
1571
1705
  201: IdResponseUuid;
1572
1706
  };
1573
1707
  export type PostAgencyResponse = PostAgencyResponses[keyof PostAgencyResponses];
1574
- export type PatchWhitelabelWebsiteData = {
1575
- body: WebsiteRequest;
1576
- path?: never;
1577
- query?: never;
1578
- url: '/whitelabel/website';
1579
- };
1580
- export type PatchWhitelabelWebsiteResponses = {
1581
- /**
1582
- * No Content
1583
- */
1584
- 204: void;
1585
- };
1586
- export type PatchWhitelabelWebsiteResponse = PatchWhitelabelWebsiteResponses[keyof PatchWhitelabelWebsiteResponses];
1587
- export type PatchWhitelabelThemeData = {
1588
- body: ThemeRequest;
1589
- path?: never;
1590
- query?: never;
1591
- url: '/whitelabel/theme';
1592
- };
1593
- export type PatchWhitelabelThemeResponses = {
1594
- /**
1595
- * No Content
1596
- */
1597
- 204: void;
1598
- };
1599
- export type PatchWhitelabelThemeResponse = PatchWhitelabelThemeResponses[keyof PatchWhitelabelThemeResponses];
1600
- export type PatchWhitelabelSocialLinksData = {
1601
- body: SocialMediasRequest;
1602
- path?: never;
1603
- query?: never;
1604
- url: '/whitelabel/social-links';
1605
- };
1606
- export type PatchWhitelabelSocialLinksResponses = {
1607
- /**
1608
- * No Content
1609
- */
1610
- 204: void;
1611
- };
1612
- export type PatchWhitelabelSocialLinksResponse = PatchWhitelabelSocialLinksResponses[keyof PatchWhitelabelSocialLinksResponses];
1613
- export type PatchWhitelabelSloganData = {
1614
- body: WhitelabelSectionRequest;
1615
- path?: never;
1616
- query?: never;
1617
- url: '/whitelabel/slogan';
1618
- };
1619
- export type PatchWhitelabelSloganResponses = {
1620
- /**
1621
- * No Content
1622
- */
1623
- 204: void;
1624
- };
1625
- export type PatchWhitelabelSloganResponse = PatchWhitelabelSloganResponses[keyof PatchWhitelabelSloganResponses];
1626
- export type PatchWhitelabelReviewsData = {
1627
- body: Array<WhitelabelReviewRequest>;
1628
- path?: never;
1629
- query?: never;
1630
- url: '/whitelabel/reviews';
1631
- };
1632
- export type PatchWhitelabelReviewsResponses = {
1633
- /**
1634
- * No Content
1635
- */
1636
- 204: void;
1637
- };
1638
- export type PatchWhitelabelReviewsResponse = PatchWhitelabelReviewsResponses[keyof PatchWhitelabelReviewsResponses];
1639
- export type PatchWhitelabelReviewSectionData = {
1640
- body: WhitelabelSectionRequest;
1641
- path?: never;
1642
- query?: never;
1643
- url: '/whitelabel/review-section';
1644
- };
1645
- export type PatchWhitelabelReviewSectionResponses = {
1646
- /**
1647
- * No Content
1648
- */
1649
- 204: void;
1650
- };
1651
- export type PatchWhitelabelReviewSectionResponse = PatchWhitelabelReviewSectionResponses[keyof PatchWhitelabelReviewSectionResponses];
1652
- export type PatchWhitelabelOurTeamData = {
1653
- body: WhitelabelSectionRequest;
1654
- path?: never;
1655
- query?: never;
1656
- url: '/whitelabel/our-team';
1657
- };
1658
- export type PatchWhitelabelOurTeamResponses = {
1659
- /**
1660
- * No Content
1661
- */
1662
- 204: void;
1663
- };
1664
- export type PatchWhitelabelOurTeamResponse = PatchWhitelabelOurTeamResponses[keyof PatchWhitelabelOurTeamResponses];
1665
- export type PatchWhitelabelEstablishedYearData = {
1666
- body: EstablishedYearRequest;
1667
- path?: never;
1668
- query?: never;
1669
- url: '/whitelabel/established-year';
1670
- };
1671
- export type PatchWhitelabelEstablishedYearResponses = {
1672
- /**
1673
- * No Content
1674
- */
1675
- 204: void;
1676
- };
1677
- export type PatchWhitelabelEstablishedYearResponse = PatchWhitelabelEstablishedYearResponses[keyof PatchWhitelabelEstablishedYearResponses];
1678
- export type PatchWhitelabelContactUsData = {
1679
- body: WhitelabelSectionRequest;
1680
- path?: never;
1681
- query?: never;
1682
- url: '/whitelabel/contact-us';
1683
- };
1684
- export type PatchWhitelabelContactUsResponses = {
1685
- /**
1686
- * No Content
1687
- */
1688
- 204: void;
1689
- };
1690
- export type PatchWhitelabelContactUsResponse = PatchWhitelabelContactUsResponses[keyof PatchWhitelabelContactUsResponses];
1691
1708
  export type GetUserMeData = {
1692
1709
  body?: never;
1693
1710
  path?: never;
@@ -1807,9 +1824,7 @@ export type GetPublicAgencySubdomainBySubdomainLandingData = {
1807
1824
  path: {
1808
1825
  subdomain: string;
1809
1826
  };
1810
- query?: {
1811
- language?: SchemaEnum3;
1812
- };
1827
+ query?: never;
1813
1828
  url: '/public/agency/subdomain/{subdomain}/landing';
1814
1829
  };
1815
1830
  export type GetPublicAgencySubdomainBySubdomainLandingResponses = {
@@ -1865,7 +1880,7 @@ export type GetLeadData = {
1865
1880
  body?: never;
1866
1881
  path?: never;
1867
1882
  query?: {
1868
- status?: SchemaEnum4;
1883
+ status?: SchemaEnum3;
1869
1884
  isSearching?: boolean;
1870
1885
  isListing?: boolean;
1871
1886
  /**
@@ -1909,7 +1924,7 @@ export type GetLeadMineData = {
1909
1924
  body?: never;
1910
1925
  path?: never;
1911
1926
  query?: {
1912
- status?: SchemaEnum4;
1927
+ status?: SchemaEnum3;
1913
1928
  isSearching?: boolean;
1914
1929
  isListing?: boolean;
1915
1930
  /**
@@ -2095,6 +2110,36 @@ export type GetAgencyByAgencyIdResponses = {
2095
2110
  200: AgencyProfileResponse;
2096
2111
  };
2097
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];
2098
2143
  export type DeleteMemberByMemberIdData = {
2099
2144
  body?: never;
2100
2145
  path: {