@homespot-sdk/core 1.0.3 → 1.0.6

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 (46) hide show
  1. package/README.md +17 -4
  2. package/dist/property/index.d.ts +2 -2
  3. package/dist/property/index.d.ts.map +1 -1
  4. package/dist/property/index.js +1 -1
  5. package/dist/property/index.js.map +1 -1
  6. package/dist/property/schemas.gen.d.ts +160 -0
  7. package/dist/property/schemas.gen.d.ts.map +1 -1
  8. package/dist/property/schemas.gen.js +177 -0
  9. package/dist/property/schemas.gen.js.map +1 -1
  10. package/dist/property/sdk.gen.d.ts +30 -1
  11. package/dist/property/sdk.gen.d.ts.map +1 -1
  12. package/dist/property/sdk.gen.js +74 -1
  13. package/dist/property/sdk.gen.js.map +1 -1
  14. package/dist/property/transformers.gen.d.ts +5 -1
  15. package/dist/property/transformers.gen.d.ts.map +1 -1
  16. package/dist/property/transformers.gen.js +31 -0
  17. package/dist/property/transformers.gen.js.map +1 -1
  18. package/dist/property/types.gen.d.ts +191 -0
  19. package/dist/property/types.gen.d.ts.map +1 -1
  20. package/dist/property/zod.gen.d.ts +276 -0
  21. package/dist/property/zod.gen.d.ts.map +1 -1
  22. package/dist/property/zod.gen.js +146 -0
  23. package/dist/property/zod.gen.js.map +1 -1
  24. package/dist/rem/index.d.ts +2 -2
  25. package/dist/rem/index.d.ts.map +1 -1
  26. package/dist/rem/index.js +1 -1
  27. package/dist/rem/index.js.map +1 -1
  28. package/dist/rem/schemas.gen.d.ts +178 -113
  29. package/dist/rem/schemas.gen.d.ts.map +1 -1
  30. package/dist/rem/schemas.gen.js +204 -112
  31. package/dist/rem/schemas.gen.js.map +1 -1
  32. package/dist/rem/sdk.gen.d.ts +35 -6
  33. package/dist/rem/sdk.gen.d.ts.map +1 -1
  34. package/dist/rem/sdk.gen.js +65 -39
  35. package/dist/rem/sdk.gen.js.map +1 -1
  36. package/dist/rem/transformers.gen.d.ts +2 -1
  37. package/dist/rem/transformers.gen.d.ts.map +1 -1
  38. package/dist/rem/transformers.gen.js +10 -0
  39. package/dist/rem/transformers.gen.js.map +1 -1
  40. package/dist/rem/types.gen.d.ts +188 -91
  41. package/dist/rem/types.gen.d.ts.map +1 -1
  42. package/dist/rem/zod.gen.d.ts +301 -601
  43. package/dist/rem/zod.gen.d.ts.map +1 -1
  44. package/dist/rem/zod.gen.js +161 -79
  45. package/dist/rem/zod.gen.js.map +1 -1
  46. package/package.json +1 -1
@@ -14,6 +14,8 @@ export const ThemeRequestSchema = {
14
14
  primaryColor: {
15
15
  type: 'integer',
16
16
  format: 'int32',
17
+ maximum: 360,
18
+ minimum: 0,
17
19
  },
18
20
  },
19
21
  required: ['primaryColor'],
@@ -40,89 +42,59 @@ export const SocialMediasRequestSchema = {
40
42
  $ref: '#/components/schemas/SocialMediaRequest',
41
43
  },
42
44
  maxItems: 6,
43
- minItems: 1,
45
+ minItems: 0,
44
46
  },
45
47
  },
46
48
  required: ['data'],
47
49
  };
48
- export const MultiLangTextRequestSchema = {
50
+ export const UpdateFeaturedMembersRequestSchema = {
49
51
  type: 'object',
50
52
  properties: {
51
- data: {
53
+ memberIds: {
52
54
  type: 'array',
53
55
  items: {
54
- $ref: '#/components/schemas/TextRequest',
56
+ type: 'string',
57
+ format: 'uuid',
55
58
  },
56
- maxItems: 3,
57
- minItems: 1,
58
- },
59
- },
60
- required: ['data'],
61
- };
62
- export const TextRequestSchema = {
63
- type: 'object',
64
- properties: {
65
- language: {
66
- type: 'string',
67
- enum: ['ka', 'en', 'ru'],
68
- },
69
- text: {
70
- type: 'string',
59
+ maxItems: 50,
60
+ minItems: 0,
71
61
  },
72
62
  },
73
- required: ['language'],
63
+ required: ['memberIds'],
74
64
  };
75
- export const WhitelabelSectionRequestSchema = {
65
+ export const EstablishedYearRequestSchema = {
76
66
  type: 'object',
77
67
  properties: {
78
- title: {
79
- $ref: '#/components/schemas/MultiLangTextRequest',
80
- },
81
- body: {
82
- $ref: '#/components/schemas/MultiLangTextRequest',
68
+ year: {
69
+ type: 'integer',
70
+ format: 'int32',
83
71
  },
84
72
  },
85
- required: ['body', 'title'],
73
+ required: ['year'],
86
74
  };
87
- export const WhitelabelReviewRequestSchema = {
75
+ export const UpdateWhitelabelContentRequestSchema = {
88
76
  type: 'object',
89
77
  properties: {
90
- quote: {
91
- $ref: '#/components/schemas/MultiLangTextRequest',
92
- },
93
- name: {
94
- $ref: '#/components/schemas/MultiLangTextRequest',
95
- },
96
- status: {
97
- $ref: '#/components/schemas/MultiLangTextRequest',
78
+ content: {
79
+ type: 'object',
80
+ additionalProperties: {},
98
81
  },
99
- },
100
- required: ['name', 'quote', 'status'],
101
- };
102
- export const UpdateFeaturedMembersRequestSchema = {
103
- type: 'object',
104
- properties: {
105
- memberIds: {
106
- type: 'array',
107
- items: {
108
- type: 'string',
109
- format: 'uuid',
110
- },
111
- maxItems: 50,
112
- minItems: 0,
82
+ contentVersion: {
83
+ type: 'integer',
84
+ format: 'int32',
113
85
  },
114
86
  },
115
- required: ['memberIds'],
87
+ required: ['content', 'contentVersion'],
116
88
  };
117
- export const EstablishedYearRequestSchema = {
89
+ export const WhitelabelContentSavedResponseSchema = {
118
90
  type: 'object',
119
91
  properties: {
120
- year: {
92
+ contentVersion: {
121
93
  type: 'integer',
122
94
  format: 'int32',
123
95
  },
124
96
  },
125
- required: ['year'],
97
+ required: ['contentVersion'],
126
98
  };
127
99
  export const VerifyPhoneRequestSchema = {
128
100
  type: 'object',
@@ -980,6 +952,19 @@ export const PlanLimitResponseSchema = {
980
952
  },
981
953
  required: ['limit'],
982
954
  };
955
+ export const WhitelabelImageResponseSchema = {
956
+ type: 'object',
957
+ properties: {
958
+ id: {
959
+ type: 'string',
960
+ format: 'uuid',
961
+ },
962
+ url: {
963
+ type: 'string',
964
+ },
965
+ },
966
+ required: ['id', 'url'],
967
+ };
983
968
  export const ConnectLinkResponseSchema = {
984
969
  type: 'object',
985
970
  properties: {
@@ -1620,6 +1605,7 @@ export const OauthConnectionResponseSchema = {
1620
1605
  revokedAt: {
1621
1606
  type: 'string',
1622
1607
  format: 'date-time',
1608
+ description: "When the agency disconnected it, or another agency took it over; null while it is the agency's, including when it only needs reconnecting",
1623
1609
  },
1624
1610
  canPublish: {
1625
1611
  type: 'boolean',
@@ -1858,6 +1844,82 @@ export const AgencyPrincipalDtoSchema = {
1858
1844
  },
1859
1845
  },
1860
1846
  };
1847
+ export const ConnectStepSchema = {
1848
+ discriminator: {
1849
+ propertyName: 'kind',
1850
+ },
1851
+ properties: {
1852
+ kind: {
1853
+ type: 'string',
1854
+ },
1855
+ },
1856
+ required: ['kind'],
1857
+ };
1858
+ export const DeepLinkSchema = {
1859
+ allOf: [
1860
+ {
1861
+ $ref: '#/components/schemas/ConnectStep',
1862
+ },
1863
+ {
1864
+ type: 'object',
1865
+ properties: {
1866
+ url: {
1867
+ type: 'string',
1868
+ },
1869
+ expiresAt: {
1870
+ type: 'string',
1871
+ format: 'date-time',
1872
+ },
1873
+ },
1874
+ },
1875
+ ],
1876
+ required: ['expiresAt', 'url'],
1877
+ };
1878
+ export const PopupSchema = {
1879
+ allOf: [
1880
+ {
1881
+ $ref: '#/components/schemas/ConnectStep',
1882
+ },
1883
+ {
1884
+ type: 'object',
1885
+ properties: {
1886
+ appId: {
1887
+ type: 'string',
1888
+ },
1889
+ configId: {
1890
+ type: 'string',
1891
+ },
1892
+ graphApiVersion: {
1893
+ type: 'string',
1894
+ },
1895
+ },
1896
+ },
1897
+ ],
1898
+ required: ['appId', 'configId', 'graphApiVersion'],
1899
+ };
1900
+ export const RedirectSchema = {
1901
+ allOf: [
1902
+ {
1903
+ $ref: '#/components/schemas/ConnectStep',
1904
+ },
1905
+ {
1906
+ type: 'object',
1907
+ properties: {
1908
+ url: {
1909
+ type: 'string',
1910
+ },
1911
+ },
1912
+ },
1913
+ ],
1914
+ required: ['url'],
1915
+ };
1916
+ export const RequestedSchema = {
1917
+ allOf: [
1918
+ {
1919
+ $ref: '#/components/schemas/ConnectStep',
1920
+ },
1921
+ ],
1922
+ };
1861
1923
  export const SendMessageRequestSchema = {
1862
1924
  type: 'object',
1863
1925
  properties: {
@@ -5582,46 +5644,6 @@ export const MemberResponseSchema = {
5582
5644
  },
5583
5645
  required: ['email', 'firstName', 'lastName', 'memberId'],
5584
5646
  };
5585
- export const ReviewResponseSchema = {
5586
- type: 'object',
5587
- properties: {
5588
- quote: {
5589
- type: 'array',
5590
- items: {
5591
- $ref: '#/components/schemas/LangTextResponse',
5592
- },
5593
- },
5594
- name: {
5595
- type: 'array',
5596
- items: {
5597
- $ref: '#/components/schemas/LangTextResponse',
5598
- },
5599
- },
5600
- status: {
5601
- type: 'array',
5602
- items: {
5603
- $ref: '#/components/schemas/LangTextResponse',
5604
- },
5605
- },
5606
- },
5607
- };
5608
- export const SegmentResponseSchema = {
5609
- type: 'object',
5610
- properties: {
5611
- title: {
5612
- type: 'array',
5613
- items: {
5614
- $ref: '#/components/schemas/LangTextResponse',
5615
- },
5616
- },
5617
- body: {
5618
- type: 'array',
5619
- items: {
5620
- $ref: '#/components/schemas/LangTextResponse',
5621
- },
5622
- },
5623
- },
5624
- };
5625
5647
  export const SocialLinkResponseSchema = {
5626
5648
  type: 'object',
5627
5649
  properties: {
@@ -5651,33 +5673,32 @@ export const WhitelabelResponseSchema = {
5651
5673
  coverUrl: {
5652
5674
  type: 'string',
5653
5675
  },
5654
- slogan: {
5655
- $ref: '#/components/schemas/SegmentResponse',
5676
+ content: {
5677
+ type: 'object',
5678
+ additionalProperties: {},
5679
+ description: "The site's text and layout, as the frontend last saved them; empty until then",
5680
+ },
5681
+ contentVersion: {
5682
+ type: 'integer',
5683
+ format: 'int32',
5684
+ description: 'Sent back with the next content save',
5685
+ },
5686
+ images: {
5687
+ type: 'object',
5688
+ additionalProperties: {
5689
+ type: 'string',
5690
+ },
5691
+ description: 'The URL of each image the content can point at, by image id',
5656
5692
  },
5657
5693
  stats: {
5658
5694
  $ref: '#/components/schemas/AgencyStatsResponse',
5659
5695
  },
5660
- ourTeam: {
5661
- $ref: '#/components/schemas/SegmentResponse',
5662
- },
5663
5696
  members: {
5664
5697
  type: 'array',
5665
5698
  items: {
5666
5699
  $ref: '#/components/schemas/MemberResponse',
5667
5700
  },
5668
5701
  },
5669
- review: {
5670
- $ref: '#/components/schemas/SegmentResponse',
5671
- },
5672
- reviews: {
5673
- type: 'array',
5674
- items: {
5675
- $ref: '#/components/schemas/ReviewResponse',
5676
- },
5677
- },
5678
- contactUs: {
5679
- $ref: '#/components/schemas/SegmentResponse',
5680
- },
5681
5702
  agencyInfo: {
5682
5703
  $ref: '#/components/schemas/AgencyContactInfoResponse',
5683
5704
  },
@@ -5691,7 +5712,15 @@ export const WhitelabelResponseSchema = {
5691
5712
  type: 'string',
5692
5713
  },
5693
5714
  },
5694
- required: ['members', 'name', 'stats', 'theme'],
5715
+ required: [
5716
+ 'content',
5717
+ 'contentVersion',
5718
+ 'images',
5719
+ 'members',
5720
+ 'name',
5721
+ 'stats',
5722
+ 'theme',
5723
+ ],
5695
5724
  };
5696
5725
  export const AgreementResponseSchema = {
5697
5726
  type: 'object',
@@ -6519,6 +6548,7 @@ export const NotificationContentSchema = {
6519
6548
  AI_MESSAGES_USED_UP: '#/components/schemas/AiMessagesUsedUp',
6520
6549
  CHANNEL_REAUTH_REQUIRED: '#/components/schemas/ChannelReauthRequired',
6521
6550
  CHANNEL_TAKEN_OVER: '#/components/schemas/ChannelTakenOver',
6551
+ PORTAL_ACCESS_CHANGED: '#/components/schemas/PortalAccessChanged',
6522
6552
  SOCIAL_POST_FAILED: '#/components/schemas/SocialPostFailed',
6523
6553
  SOCIAL_POST_COMMENTED: '#/components/schemas/SocialPostCommented',
6524
6554
  },
@@ -6569,6 +6599,7 @@ export const NotificationViewSchema = {
6569
6599
  'AI_MESSAGES_USED_UP',
6570
6600
  'CHANNEL_REAUTH_REQUIRED',
6571
6601
  'CHANNEL_TAKEN_OVER',
6602
+ 'PORTAL_ACCESS_CHANGED',
6572
6603
  'SOCIAL_POST_FAILED',
6573
6604
  'SOCIAL_POST_COMMENTED',
6574
6605
  ],
@@ -6611,6 +6642,9 @@ export const NotificationViewSchema = {
6611
6642
  {
6612
6643
  $ref: '#/components/schemas/NewSeekerRating',
6613
6644
  },
6645
+ {
6646
+ $ref: '#/components/schemas/PortalAccessChanged',
6647
+ },
6614
6648
  {
6615
6649
  $ref: '#/components/schemas/SocialPostCommented',
6616
6650
  },
@@ -6649,6 +6683,22 @@ export const NotificationViewSchema = {
6649
6683
  },
6650
6684
  required: ['count', 'createdAt', 'id', 'payload', 'read', 'seq', 'type'],
6651
6685
  };
6686
+ export const PortalAccessChangedSchema = {
6687
+ properties: {
6688
+ portal: {
6689
+ type: 'string',
6690
+ enum: ['SS', 'MY_HOME'],
6691
+ },
6692
+ granted: {
6693
+ type: 'boolean',
6694
+ },
6695
+ kind: {
6696
+ type: 'string',
6697
+ enum: ['PORTAL_ACCESS_CHANGED'],
6698
+ },
6699
+ },
6700
+ required: ['kind'],
6701
+ };
6652
6702
  export const PropertyIdSchema = {
6653
6703
  type: 'object',
6654
6704
  properties: {
@@ -7646,6 +7696,48 @@ export const RoomRangeSchema = {
7646
7696
  },
7647
7697
  },
7648
7698
  };
7699
+ export const IntegrationViewSchema = {
7700
+ type: 'object',
7701
+ properties: {
7702
+ key: {
7703
+ type: 'string',
7704
+ enum: ['FACEBOOK', 'INSTAGRAM', 'WHATSAPP', 'TIKTOK', 'TELEGRAM'],
7705
+ },
7706
+ scope: {
7707
+ type: 'string',
7708
+ enum: ['AGENCY', 'PERSONAL'],
7709
+ },
7710
+ state: {
7711
+ type: 'string',
7712
+ description: "RECONNECT_REQUIRED: still the agency's, but HomeSpot can't use it until it is connected again; UNAVAILABLE: HomeSpot can't connect it yet",
7713
+ enum: [
7714
+ 'CONNECTED',
7715
+ 'RECONNECT_REQUIRED',
7716
+ 'NOT_CONNECTED',
7717
+ 'PENDING',
7718
+ 'UNAVAILABLE',
7719
+ ],
7720
+ },
7721
+ canManage: {
7722
+ type: 'boolean',
7723
+ description: 'Whether the caller may connect, reconnect or disconnect it',
7724
+ },
7725
+ accountName: {
7726
+ type: 'string',
7727
+ description: "The page, account or number it is connected to; null when it isn't connected, and for Telegram",
7728
+ },
7729
+ accountPicture: {
7730
+ type: 'string',
7731
+ description: "That account's picture, when the platform gives one",
7732
+ },
7733
+ connectedAt: {
7734
+ type: 'string',
7735
+ format: 'date-time',
7736
+ description: "When it was connected; null when it isn't",
7737
+ },
7738
+ },
7739
+ required: ['canManage', 'key', 'scope', 'state'],
7740
+ };
7649
7741
  export const CursorPageInboxResponseSchema = {
7650
7742
  type: 'object',
7651
7743
  properties: {