@homespot-sdk/core 1.0.2 → 1.0.5

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.
@@ -14,28 +14,21 @@ export type SocialMediaRequest = {
14
14
  export type SocialMediasRequest = {
15
15
  data: Array<SocialMediaRequest>;
16
16
  };
17
- export type MultiLangTextRequest = {
18
- data: Array<TextRequest>;
19
- };
20
- export type TextRequest = {
21
- language: 'ka' | 'en' | 'ru';
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
17
  export type UpdateFeaturedMembersRequest = {
34
18
  memberIds: Array<string>;
35
19
  };
36
20
  export type EstablishedYearRequest = {
37
21
  year: number;
38
22
  };
23
+ export type UpdateWhitelabelContentRequest = {
24
+ content: {
25
+ [key: string]: unknown;
26
+ };
27
+ contentVersion: number;
28
+ };
29
+ export type WhitelabelContentSavedResponse = {
30
+ contentVersion: number;
31
+ };
39
32
  export type VerifyPhoneRequest = {
40
33
  phone: string;
41
34
  otp: string;
@@ -229,6 +222,20 @@ export type RecolorStageRequest = {
229
222
  export type ReorderStagesRequest = {
230
223
  stageIds: Array<string>;
231
224
  };
225
+ export type VideoRequest = {
226
+ title: string;
227
+ description?: string;
228
+ /**
229
+ * The video's object key in the guides bucket
230
+ */
231
+ videoKey: string;
232
+ };
233
+ export type OrderRequest = {
234
+ /**
235
+ * Every video's id, first shown first
236
+ */
237
+ ids: Array<string>;
238
+ };
232
239
  export type AddressRequest = {
233
240
  country: string;
234
241
  city: string;
@@ -276,6 +283,10 @@ export type PlanLimitResponse = {
276
283
  */
277
284
  allowed?: number;
278
285
  };
286
+ export type WhitelabelImageResponse = {
287
+ id: string;
288
+ url: string;
289
+ };
279
290
  export type ConnectLinkResponse = {
280
291
  link?: string;
281
292
  expiresAt?: Date;
@@ -803,6 +814,9 @@ export type AdminCheckoutResponse = {
803
814
  checkoutUrl?: string;
804
815
  subscriptionId?: string;
805
816
  };
817
+ export type Created = {
818
+ id: string;
819
+ };
806
820
  export type PositionTaskRequest = {
807
821
  targetStageId: string;
808
822
  /**
@@ -1573,15 +1587,6 @@ export type MemberResponse = {
1573
1587
  email: string;
1574
1588
  profilePictureUrl?: string;
1575
1589
  };
1576
- export type ReviewResponse = {
1577
- quote?: Array<LangTextResponse>;
1578
- name?: Array<LangTextResponse>;
1579
- status?: Array<LangTextResponse>;
1580
- };
1581
- export type SegmentResponse = {
1582
- title?: Array<LangTextResponse>;
1583
- body?: Array<LangTextResponse>;
1584
- };
1585
1590
  export type SocialLinkResponse = {
1586
1591
  url: string;
1587
1592
  type: 'FACEBOOK' | 'YOUTUBE' | 'INSTAGRAM' | 'TIKTOK' | 'LINKEDIN';
@@ -1591,13 +1596,24 @@ export type WhitelabelResponse = {
1591
1596
  name: string;
1592
1597
  logoUrl?: string;
1593
1598
  coverUrl?: string;
1594
- slogan?: SegmentResponse;
1599
+ /**
1600
+ * The site's text and layout, as the frontend last saved them; empty until then
1601
+ */
1602
+ content: {
1603
+ [key: string]: unknown;
1604
+ };
1605
+ /**
1606
+ * Sent back with the next content save
1607
+ */
1608
+ contentVersion: number;
1609
+ /**
1610
+ * The URL of each image the content can point at, by image id
1611
+ */
1612
+ images: {
1613
+ [key: string]: string;
1614
+ };
1595
1615
  stats: AgencyStatsResponse;
1596
- ourTeam?: SegmentResponse;
1597
1616
  members: Array<MemberResponse>;
1598
- review?: SegmentResponse;
1599
- reviews?: Array<ReviewResponse>;
1600
- contactUs?: SegmentResponse;
1601
1617
  agencyInfo?: AgencyContactInfoResponse;
1602
1618
  socialLinks?: Array<SocialLinkResponse>;
1603
1619
  website?: string;
@@ -2157,6 +2173,23 @@ export type InboxResponse = {
2157
2173
  memberLastName?: string;
2158
2174
  memberPicture?: string;
2159
2175
  };
2176
+ export type GuideVideoView = {
2177
+ id: string;
2178
+ title: string;
2179
+ description?: string;
2180
+ /**
2181
+ * Plays straight from the guides bucket
2182
+ */
2183
+ videoUrl: string;
2184
+ /**
2185
+ * When the user first played it; null if never
2186
+ */
2187
+ startedAt?: Date;
2188
+ /**
2189
+ * When the user first watched past 80% of it; null if not yet
2190
+ */
2191
+ finishedAt?: Date;
2192
+ };
2160
2193
  export type Image = {
2161
2194
  urls?: Array<string>;
2162
2195
  kind: 'IMAGE';
@@ -2568,58 +2601,6 @@ export type PutWhitelabelSocialLinksResponses = {
2568
2601
  204: void;
2569
2602
  };
2570
2603
  export type PutWhitelabelSocialLinksResponse = PutWhitelabelSocialLinksResponses[keyof PutWhitelabelSocialLinksResponses];
2571
- export type PutWhitelabelSloganData = {
2572
- body: WhitelabelSectionRequest;
2573
- path?: never;
2574
- query?: never;
2575
- url: '/whitelabel/slogan';
2576
- };
2577
- export type PutWhitelabelSloganResponses = {
2578
- /**
2579
- * No Content
2580
- */
2581
- 204: void;
2582
- };
2583
- export type PutWhitelabelSloganResponse = PutWhitelabelSloganResponses[keyof PutWhitelabelSloganResponses];
2584
- export type PutWhitelabelReviewsData = {
2585
- body: Array<WhitelabelReviewRequest>;
2586
- path?: never;
2587
- query?: never;
2588
- url: '/whitelabel/reviews';
2589
- };
2590
- export type PutWhitelabelReviewsResponses = {
2591
- /**
2592
- * No Content
2593
- */
2594
- 204: void;
2595
- };
2596
- export type PutWhitelabelReviewsResponse = PutWhitelabelReviewsResponses[keyof PutWhitelabelReviewsResponses];
2597
- export type PutWhitelabelReviewSectionData = {
2598
- body: WhitelabelSectionRequest;
2599
- path?: never;
2600
- query?: never;
2601
- url: '/whitelabel/review-section';
2602
- };
2603
- export type PutWhitelabelReviewSectionResponses = {
2604
- /**
2605
- * No Content
2606
- */
2607
- 204: void;
2608
- };
2609
- export type PutWhitelabelReviewSectionResponse = PutWhitelabelReviewSectionResponses[keyof PutWhitelabelReviewSectionResponses];
2610
- export type PutWhitelabelOurTeamData = {
2611
- body: WhitelabelSectionRequest;
2612
- path?: never;
2613
- query?: never;
2614
- url: '/whitelabel/our-team';
2615
- };
2616
- export type PutWhitelabelOurTeamResponses = {
2617
- /**
2618
- * No Content
2619
- */
2620
- 204: void;
2621
- };
2622
- export type PutWhitelabelOurTeamResponse = PutWhitelabelOurTeamResponses[keyof PutWhitelabelOurTeamResponses];
2623
2604
  export type PutWhitelabelFeaturedMembersData = {
2624
2605
  body: UpdateFeaturedMembersRequest;
2625
2606
  path?: never;
@@ -2646,19 +2627,25 @@ export type PutWhitelabelEstablishedYearResponses = {
2646
2627
  204: void;
2647
2628
  };
2648
2629
  export type PutWhitelabelEstablishedYearResponse = PutWhitelabelEstablishedYearResponses[keyof PutWhitelabelEstablishedYearResponses];
2649
- export type PutWhitelabelContactUsData = {
2650
- body: WhitelabelSectionRequest;
2630
+ export type PutWhitelabelContentData = {
2631
+ body: UpdateWhitelabelContentRequest;
2651
2632
  path?: never;
2652
2633
  query?: never;
2653
- url: '/whitelabel/contact-us';
2634
+ url: '/whitelabel/content';
2654
2635
  };
2655
- export type PutWhitelabelContactUsResponses = {
2636
+ export type PutWhitelabelContentErrors = {
2656
2637
  /**
2657
- * No Content
2638
+ * The content was saved since it was read
2658
2639
  */
2659
- 204: void;
2640
+ 409: unknown;
2641
+ };
2642
+ export type PutWhitelabelContentResponses = {
2643
+ /**
2644
+ * OK
2645
+ */
2646
+ 200: WhitelabelContentSavedResponse;
2660
2647
  };
2661
- export type PutWhitelabelContactUsResponse = PutWhitelabelContactUsResponses[keyof PutWhitelabelContactUsResponses];
2648
+ export type PutWhitelabelContentResponse = PutWhitelabelContentResponses[keyof PutWhitelabelContentResponses];
2662
2649
  export type PutUserMePhoneVerifyData = {
2663
2650
  body: VerifyPhoneRequest;
2664
2651
  path?: never;
@@ -3527,6 +3514,49 @@ export type PutBoardByBoardIdRenameResponses = {
3527
3514
  204: void;
3528
3515
  };
3529
3516
  export type PutBoardByBoardIdRenameResponse = PutBoardByBoardIdRenameResponses[keyof PutBoardByBoardIdRenameResponses];
3517
+ export type DeleteApiAdminGuideVideosByIdData = {
3518
+ body?: never;
3519
+ path: {
3520
+ id: string;
3521
+ };
3522
+ query?: never;
3523
+ url: '/api/admin/guide-videos/{id}';
3524
+ };
3525
+ export type DeleteApiAdminGuideVideosByIdResponses = {
3526
+ /**
3527
+ * No Content
3528
+ */
3529
+ 204: void;
3530
+ };
3531
+ export type DeleteApiAdminGuideVideosByIdResponse = DeleteApiAdminGuideVideosByIdResponses[keyof DeleteApiAdminGuideVideosByIdResponses];
3532
+ export type PutApiAdminGuideVideosByIdData = {
3533
+ body: VideoRequest;
3534
+ path: {
3535
+ id: string;
3536
+ };
3537
+ query?: never;
3538
+ url: '/api/admin/guide-videos/{id}';
3539
+ };
3540
+ export type PutApiAdminGuideVideosByIdResponses = {
3541
+ /**
3542
+ * No Content
3543
+ */
3544
+ 204: void;
3545
+ };
3546
+ export type PutApiAdminGuideVideosByIdResponse = PutApiAdminGuideVideosByIdResponses[keyof PutApiAdminGuideVideosByIdResponses];
3547
+ export type PutApiAdminGuideVideosOrderData = {
3548
+ body: OrderRequest;
3549
+ path?: never;
3550
+ query?: never;
3551
+ url: '/api/admin/guide-videos/order';
3552
+ };
3553
+ export type PutApiAdminGuideVideosOrderResponses = {
3554
+ /**
3555
+ * No Content
3556
+ */
3557
+ 204: void;
3558
+ };
3559
+ export type PutApiAdminGuideVideosOrderResponse = PutApiAdminGuideVideosOrderResponses[keyof PutApiAdminGuideVideosOrderResponses];
3530
3560
  export type PutAgencySettingsInfoData = {
3531
3561
  body: UpdateAgencyInfoRequest;
3532
3562
  path?: never;
@@ -3615,6 +3645,39 @@ export type PostWhitelabelPresignedUrlsNotifyCoverResponses = {
3615
3645
  200: UploadAcknowledgmentResponse;
3616
3646
  };
3617
3647
  export type PostWhitelabelPresignedUrlsNotifyCoverResponse = PostWhitelabelPresignedUrlsNotifyCoverResponses[keyof PostWhitelabelPresignedUrlsNotifyCoverResponses];
3648
+ export type GetWhitelabelImagesData = {
3649
+ body?: never;
3650
+ path?: never;
3651
+ query?: never;
3652
+ url: '/whitelabel/images';
3653
+ };
3654
+ export type GetWhitelabelImagesResponses = {
3655
+ /**
3656
+ * OK
3657
+ */
3658
+ 200: Array<WhitelabelImageResponse>;
3659
+ };
3660
+ export type GetWhitelabelImagesResponse = GetWhitelabelImagesResponses[keyof GetWhitelabelImagesResponses];
3661
+ export type PostWhitelabelImagesData = {
3662
+ body: PhotoRequest;
3663
+ path?: never;
3664
+ query?: never;
3665
+ url: '/whitelabel/images';
3666
+ };
3667
+ export type PostWhitelabelImagesErrors = {
3668
+ /**
3669
+ * The plan doesn't include the agency website
3670
+ */
3671
+ 402: PlanLimitResponse;
3672
+ };
3673
+ export type PostWhitelabelImagesError = PostWhitelabelImagesErrors[keyof PostWhitelabelImagesErrors];
3674
+ export type PostWhitelabelImagesResponses = {
3675
+ /**
3676
+ * OK
3677
+ */
3678
+ 200: WhitelabelImageResponse;
3679
+ };
3680
+ export type PostWhitelabelImagesResponse = PostWhitelabelImagesResponses[keyof PostWhitelabelImagesResponses];
3618
3681
  export type PostWhitelabelDeactivateData = {
3619
3682
  body?: never;
3620
3683
  path?: never;
@@ -4383,6 +4446,36 @@ export type PostInternalPrincipleResponses = {
4383
4446
  200: AgencyPrincipalDto;
4384
4447
  };
4385
4448
  export type PostInternalPrincipleResponse = PostInternalPrincipleResponses[keyof PostInternalPrincipleResponses];
4449
+ export type PostGuideVideosByIdStartData = {
4450
+ body?: never;
4451
+ path: {
4452
+ id: string;
4453
+ };
4454
+ query?: never;
4455
+ url: '/guide-videos/{id}/start';
4456
+ };
4457
+ export type PostGuideVideosByIdStartResponses = {
4458
+ /**
4459
+ * No Content
4460
+ */
4461
+ 204: void;
4462
+ };
4463
+ export type PostGuideVideosByIdStartResponse = PostGuideVideosByIdStartResponses[keyof PostGuideVideosByIdStartResponses];
4464
+ export type PostGuideVideosByIdFinishData = {
4465
+ body?: never;
4466
+ path: {
4467
+ id: string;
4468
+ };
4469
+ query?: never;
4470
+ url: '/guide-videos/{id}/finish';
4471
+ };
4472
+ export type PostGuideVideosByIdFinishResponses = {
4473
+ /**
4474
+ * No Content
4475
+ */
4476
+ 204: void;
4477
+ };
4478
+ export type PostGuideVideosByIdFinishResponse = PostGuideVideosByIdFinishResponses[keyof PostGuideVideosByIdFinishResponses];
4386
4479
  export type PostConversationsByConversationIdReadData = {
4387
4480
  body?: never;
4388
4481
  path: {
@@ -4988,6 +5081,19 @@ export type PostApiAdminSubscriptionsCheckoutResponses = {
4988
5081
  201: AdminCheckoutResponse;
4989
5082
  };
4990
5083
  export type PostApiAdminSubscriptionsCheckoutResponse = PostApiAdminSubscriptionsCheckoutResponses[keyof PostApiAdminSubscriptionsCheckoutResponses];
5084
+ export type PostApiAdminGuideVideosData = {
5085
+ body: VideoRequest;
5086
+ path?: never;
5087
+ query?: never;
5088
+ url: '/api/admin/guide-videos';
5089
+ };
5090
+ export type PostApiAdminGuideVideosResponses = {
5091
+ /**
5092
+ * Created
5093
+ */
5094
+ 201: Created;
5095
+ };
5096
+ export type PostApiAdminGuideVideosResponse = PostApiAdminGuideVideosResponses[keyof PostApiAdminGuideVideosResponses];
4991
5097
  export type PatchTaskByTaskIdPositionData = {
4992
5098
  body: PositionTaskRequest;
4993
5099
  path: {
@@ -5912,6 +6018,19 @@ export type GetInboxAgencyResponses = {
5912
6018
  200: CursorPageInboxResponse;
5913
6019
  };
5914
6020
  export type GetInboxAgencyResponse = GetInboxAgencyResponses[keyof GetInboxAgencyResponses];
6021
+ export type GetGuideVideosData = {
6022
+ body?: never;
6023
+ path?: never;
6024
+ query?: never;
6025
+ url: '/guide-videos';
6026
+ };
6027
+ export type GetGuideVideosResponses = {
6028
+ /**
6029
+ * OK
6030
+ */
6031
+ 200: Array<GuideVideoView>;
6032
+ };
6033
+ export type GetGuideVideosResponse = GetGuideVideosResponses[keyof GetGuideVideosResponses];
5915
6034
  export type GetConversationsByConversationIdUpdatesData = {
5916
6035
  body?: never;
5917
6036
  path: {
@@ -6266,6 +6385,21 @@ export type GetAgencyFeaturedMembersResponses = {
6266
6385
  200: Array<MemberCurationView>;
6267
6386
  };
6268
6387
  export type GetAgencyFeaturedMembersResponse = GetAgencyFeaturedMembersResponses[keyof GetAgencyFeaturedMembersResponses];
6388
+ export type DeleteWhitelabelImagesByImageIdData = {
6389
+ body?: never;
6390
+ path: {
6391
+ imageId: string;
6392
+ };
6393
+ query?: never;
6394
+ url: '/whitelabel/images/{imageId}';
6395
+ };
6396
+ export type DeleteWhitelabelImagesByImageIdResponses = {
6397
+ /**
6398
+ * No Content
6399
+ */
6400
+ 204: void;
6401
+ };
6402
+ export type DeleteWhitelabelImagesByImageIdResponse = DeleteWhitelabelImagesByImageIdResponses[keyof DeleteWhitelabelImagesByImageIdResponses];
6269
6403
  export type DeleteTaskByTaskIdPropertyByPropertyIdData = {
6270
6404
  body?: never;
6271
6405
  path: {