@homespot-sdk/core 0.0.217 → 0.0.219

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,150 @@ export type AgencyProfileResponse = {
666
666
  phone: string;
667
667
  address: AddressViewResponse;
668
668
  };
669
+ export type WhitelabelActiveResponse = {
670
+ status?: StatusEnum3;
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 StatusEnum3 = 'ACTIVE' | 'INACTIVE' | 'NOT_FOUND';
696
+ export type PutWhitelabelWebsiteData = {
697
+ body: WebsiteRequest;
698
+ path?: never;
699
+ query?: never;
700
+ url: '/whitelabel/website';
701
+ };
702
+ export type PutWhitelabelWebsiteResponses = {
703
+ /**
704
+ * No Content
705
+ */
706
+ 204: void;
707
+ };
708
+ export type PutWhitelabelWebsiteResponse = PutWhitelabelWebsiteResponses[keyof PutWhitelabelWebsiteResponses];
709
+ export type PutWhitelabelThemeData = {
710
+ body: ThemeRequest;
711
+ path?: never;
712
+ query?: never;
713
+ url: '/whitelabel/theme';
714
+ };
715
+ export type PutWhitelabelThemeResponses = {
716
+ /**
717
+ * No Content
718
+ */
719
+ 204: void;
720
+ };
721
+ export type PutWhitelabelThemeResponse = PutWhitelabelThemeResponses[keyof PutWhitelabelThemeResponses];
722
+ export type PutWhitelabelSocialLinksData = {
723
+ body: SocialMediasRequest;
724
+ path?: never;
725
+ query?: never;
726
+ url: '/whitelabel/social-links';
727
+ };
728
+ export type PutWhitelabelSocialLinksResponses = {
729
+ /**
730
+ * No Content
731
+ */
732
+ 204: void;
733
+ };
734
+ export type PutWhitelabelSocialLinksResponse = PutWhitelabelSocialLinksResponses[keyof PutWhitelabelSocialLinksResponses];
735
+ export type PutWhitelabelSloganData = {
736
+ body: WhitelabelSectionRequest;
737
+ path?: never;
738
+ query?: never;
739
+ url: '/whitelabel/slogan';
740
+ };
741
+ export type PutWhitelabelSloganResponses = {
742
+ /**
743
+ * No Content
744
+ */
745
+ 204: void;
746
+ };
747
+ export type PutWhitelabelSloganResponse = PutWhitelabelSloganResponses[keyof PutWhitelabelSloganResponses];
748
+ export type PutWhitelabelReviewsData = {
749
+ body: Array<WhitelabelReviewRequest>;
750
+ path?: never;
751
+ query?: never;
752
+ url: '/whitelabel/reviews';
753
+ };
754
+ export type PutWhitelabelReviewsResponses = {
755
+ /**
756
+ * No Content
757
+ */
758
+ 204: void;
759
+ };
760
+ export type PutWhitelabelReviewsResponse = PutWhitelabelReviewsResponses[keyof PutWhitelabelReviewsResponses];
761
+ export type PutWhitelabelReviewSectionData = {
762
+ body: WhitelabelSectionRequest;
763
+ path?: never;
764
+ query?: never;
765
+ url: '/whitelabel/review-section';
766
+ };
767
+ export type PutWhitelabelReviewSectionResponses = {
768
+ /**
769
+ * No Content
770
+ */
771
+ 204: void;
772
+ };
773
+ export type PutWhitelabelReviewSectionResponse = PutWhitelabelReviewSectionResponses[keyof PutWhitelabelReviewSectionResponses];
774
+ export type PutWhitelabelOurTeamData = {
775
+ body: WhitelabelSectionRequest;
776
+ path?: never;
777
+ query?: never;
778
+ url: '/whitelabel/our-team';
779
+ };
780
+ export type PutWhitelabelOurTeamResponses = {
781
+ /**
782
+ * No Content
783
+ */
784
+ 204: void;
785
+ };
786
+ export type PutWhitelabelOurTeamResponse = PutWhitelabelOurTeamResponses[keyof PutWhitelabelOurTeamResponses];
787
+ export type PutWhitelabelEstablishedYearData = {
788
+ body: EstablishedYearRequest;
789
+ path?: never;
790
+ query?: never;
791
+ url: '/whitelabel/established-year';
792
+ };
793
+ export type PutWhitelabelEstablishedYearResponses = {
794
+ /**
795
+ * No Content
796
+ */
797
+ 204: void;
798
+ };
799
+ export type PutWhitelabelEstablishedYearResponse = PutWhitelabelEstablishedYearResponses[keyof PutWhitelabelEstablishedYearResponses];
800
+ export type PutWhitelabelContactUsData = {
801
+ body: WhitelabelSectionRequest;
802
+ path?: never;
803
+ query?: never;
804
+ url: '/whitelabel/contact-us';
805
+ };
806
+ export type PutWhitelabelContactUsResponses = {
807
+ /**
808
+ * No Content
809
+ */
810
+ 204: void;
811
+ };
812
+ export type PutWhitelabelContactUsResponse = PutWhitelabelContactUsResponses[keyof PutWhitelabelContactUsResponses];
692
813
  export type DeleteRolesByRoleIdData = {
693
814
  body?: never;
694
815
  path: {
@@ -1134,6 +1255,20 @@ export type PostRolesResponses = {
1134
1255
  201: IdResponseInteger;
1135
1256
  };
1136
1257
  export type PostRolesResponse = PostRolesResponses[keyof PostRolesResponses];
1258
+ export type PostPublicSelfAgencyByAgencyIdLeadData = {
1259
+ body: CaptureLeadRequest;
1260
+ path: {
1261
+ agencyId: string;
1262
+ };
1263
+ query?: never;
1264
+ url: '/public/self/agency/{agencyId}/lead';
1265
+ };
1266
+ export type PostPublicSelfAgencyByAgencyIdLeadResponses = {
1267
+ /**
1268
+ * OK
1269
+ */
1270
+ 200: unknown;
1271
+ };
1137
1272
  export type PostPublicRecomendationsByRecommendationsIdItemsByItemIdRateData = {
1138
1273
  body: RateRecommendationItemRequest;
1139
1274
  path: {
@@ -1571,123 +1706,6 @@ export type PostAgencyResponses = {
1571
1706
  201: IdResponseUuid;
1572
1707
  };
1573
1708
  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
1709
  export type GetUserMeData = {
1692
1710
  body?: never;
1693
1711
  path?: never;
@@ -1807,9 +1825,7 @@ export type GetPublicAgencySubdomainBySubdomainLandingData = {
1807
1825
  path: {
1808
1826
  subdomain: string;
1809
1827
  };
1810
- query?: {
1811
- language?: SchemaEnum3;
1812
- };
1828
+ query?: never;
1813
1829
  url: '/public/agency/subdomain/{subdomain}/landing';
1814
1830
  };
1815
1831
  export type GetPublicAgencySubdomainBySubdomainLandingResponses = {
@@ -1865,7 +1881,7 @@ export type GetLeadData = {
1865
1881
  body?: never;
1866
1882
  path?: never;
1867
1883
  query?: {
1868
- status?: SchemaEnum4;
1884
+ status?: SchemaEnum3;
1869
1885
  isSearching?: boolean;
1870
1886
  isListing?: boolean;
1871
1887
  /**
@@ -1909,7 +1925,7 @@ export type GetLeadMineData = {
1909
1925
  body?: never;
1910
1926
  path?: never;
1911
1927
  query?: {
1912
- status?: SchemaEnum4;
1928
+ status?: SchemaEnum3;
1913
1929
  isSearching?: boolean;
1914
1930
  isListing?: boolean;
1915
1931
  /**
@@ -2095,6 +2111,36 @@ export type GetAgencyByAgencyIdResponses = {
2095
2111
  200: AgencyProfileResponse;
2096
2112
  };
2097
2113
  export type GetAgencyByAgencyIdResponse = GetAgencyByAgencyIdResponses[keyof GetAgencyByAgencyIdResponses];
2114
+ export type GetAgencySubdomainBySubdomainLandingData = {
2115
+ body?: never;
2116
+ path: {
2117
+ subdomain: string;
2118
+ };
2119
+ query?: never;
2120
+ url: '/agency/subdomain/{subdomain}/landing';
2121
+ };
2122
+ export type GetAgencySubdomainBySubdomainLandingResponses = {
2123
+ /**
2124
+ * OK
2125
+ */
2126
+ 200: WhitelabelResponse;
2127
+ };
2128
+ export type GetAgencySubdomainBySubdomainLandingResponse = GetAgencySubdomainBySubdomainLandingResponses[keyof GetAgencySubdomainBySubdomainLandingResponses];
2129
+ export type GetAgencySubdomainBySubdomainActiveData = {
2130
+ body?: never;
2131
+ path: {
2132
+ subdomain: string;
2133
+ };
2134
+ query?: never;
2135
+ url: '/agency/subdomain/{subdomain}/active';
2136
+ };
2137
+ export type GetAgencySubdomainBySubdomainActiveResponses = {
2138
+ /**
2139
+ * OK
2140
+ */
2141
+ 200: WhitelabelActiveResponse;
2142
+ };
2143
+ export type GetAgencySubdomainBySubdomainActiveResponse = GetAgencySubdomainBySubdomainActiveResponses[keyof GetAgencySubdomainBySubdomainActiveResponses];
2098
2144
  export type DeleteMemberByMemberIdData = {
2099
2145
  body?: never;
2100
2146
  path: {