@homespot-sdk/core 1.0.2 → 1.0.3

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.
@@ -229,6 +229,20 @@ export type RecolorStageRequest = {
229
229
  export type ReorderStagesRequest = {
230
230
  stageIds: Array<string>;
231
231
  };
232
+ export type VideoRequest = {
233
+ title: string;
234
+ description?: string;
235
+ /**
236
+ * The video's object key in the guides bucket
237
+ */
238
+ videoKey: string;
239
+ };
240
+ export type OrderRequest = {
241
+ /**
242
+ * Every video's id, first shown first
243
+ */
244
+ ids: Array<string>;
245
+ };
232
246
  export type AddressRequest = {
233
247
  country: string;
234
248
  city: string;
@@ -803,6 +817,9 @@ export type AdminCheckoutResponse = {
803
817
  checkoutUrl?: string;
804
818
  subscriptionId?: string;
805
819
  };
820
+ export type Created = {
821
+ id: string;
822
+ };
806
823
  export type PositionTaskRequest = {
807
824
  targetStageId: string;
808
825
  /**
@@ -2157,6 +2174,23 @@ export type InboxResponse = {
2157
2174
  memberLastName?: string;
2158
2175
  memberPicture?: string;
2159
2176
  };
2177
+ export type GuideVideoView = {
2178
+ id: string;
2179
+ title: string;
2180
+ description?: string;
2181
+ /**
2182
+ * Plays straight from the guides bucket
2183
+ */
2184
+ videoUrl: string;
2185
+ /**
2186
+ * When the user first played it; null if never
2187
+ */
2188
+ startedAt?: Date;
2189
+ /**
2190
+ * When the user first watched past 80% of it; null if not yet
2191
+ */
2192
+ finishedAt?: Date;
2193
+ };
2160
2194
  export type Image = {
2161
2195
  urls?: Array<string>;
2162
2196
  kind: 'IMAGE';
@@ -3527,6 +3561,49 @@ export type PutBoardByBoardIdRenameResponses = {
3527
3561
  204: void;
3528
3562
  };
3529
3563
  export type PutBoardByBoardIdRenameResponse = PutBoardByBoardIdRenameResponses[keyof PutBoardByBoardIdRenameResponses];
3564
+ export type DeleteApiAdminGuideVideosByIdData = {
3565
+ body?: never;
3566
+ path: {
3567
+ id: string;
3568
+ };
3569
+ query?: never;
3570
+ url: '/api/admin/guide-videos/{id}';
3571
+ };
3572
+ export type DeleteApiAdminGuideVideosByIdResponses = {
3573
+ /**
3574
+ * No Content
3575
+ */
3576
+ 204: void;
3577
+ };
3578
+ export type DeleteApiAdminGuideVideosByIdResponse = DeleteApiAdminGuideVideosByIdResponses[keyof DeleteApiAdminGuideVideosByIdResponses];
3579
+ export type PutApiAdminGuideVideosByIdData = {
3580
+ body: VideoRequest;
3581
+ path: {
3582
+ id: string;
3583
+ };
3584
+ query?: never;
3585
+ url: '/api/admin/guide-videos/{id}';
3586
+ };
3587
+ export type PutApiAdminGuideVideosByIdResponses = {
3588
+ /**
3589
+ * No Content
3590
+ */
3591
+ 204: void;
3592
+ };
3593
+ export type PutApiAdminGuideVideosByIdResponse = PutApiAdminGuideVideosByIdResponses[keyof PutApiAdminGuideVideosByIdResponses];
3594
+ export type PutApiAdminGuideVideosOrderData = {
3595
+ body: OrderRequest;
3596
+ path?: never;
3597
+ query?: never;
3598
+ url: '/api/admin/guide-videos/order';
3599
+ };
3600
+ export type PutApiAdminGuideVideosOrderResponses = {
3601
+ /**
3602
+ * No Content
3603
+ */
3604
+ 204: void;
3605
+ };
3606
+ export type PutApiAdminGuideVideosOrderResponse = PutApiAdminGuideVideosOrderResponses[keyof PutApiAdminGuideVideosOrderResponses];
3530
3607
  export type PutAgencySettingsInfoData = {
3531
3608
  body: UpdateAgencyInfoRequest;
3532
3609
  path?: never;
@@ -4383,6 +4460,36 @@ export type PostInternalPrincipleResponses = {
4383
4460
  200: AgencyPrincipalDto;
4384
4461
  };
4385
4462
  export type PostInternalPrincipleResponse = PostInternalPrincipleResponses[keyof PostInternalPrincipleResponses];
4463
+ export type PostGuideVideosByIdStartData = {
4464
+ body?: never;
4465
+ path: {
4466
+ id: string;
4467
+ };
4468
+ query?: never;
4469
+ url: '/guide-videos/{id}/start';
4470
+ };
4471
+ export type PostGuideVideosByIdStartResponses = {
4472
+ /**
4473
+ * No Content
4474
+ */
4475
+ 204: void;
4476
+ };
4477
+ export type PostGuideVideosByIdStartResponse = PostGuideVideosByIdStartResponses[keyof PostGuideVideosByIdStartResponses];
4478
+ export type PostGuideVideosByIdFinishData = {
4479
+ body?: never;
4480
+ path: {
4481
+ id: string;
4482
+ };
4483
+ query?: never;
4484
+ url: '/guide-videos/{id}/finish';
4485
+ };
4486
+ export type PostGuideVideosByIdFinishResponses = {
4487
+ /**
4488
+ * No Content
4489
+ */
4490
+ 204: void;
4491
+ };
4492
+ export type PostGuideVideosByIdFinishResponse = PostGuideVideosByIdFinishResponses[keyof PostGuideVideosByIdFinishResponses];
4386
4493
  export type PostConversationsByConversationIdReadData = {
4387
4494
  body?: never;
4388
4495
  path: {
@@ -4988,6 +5095,19 @@ export type PostApiAdminSubscriptionsCheckoutResponses = {
4988
5095
  201: AdminCheckoutResponse;
4989
5096
  };
4990
5097
  export type PostApiAdminSubscriptionsCheckoutResponse = PostApiAdminSubscriptionsCheckoutResponses[keyof PostApiAdminSubscriptionsCheckoutResponses];
5098
+ export type PostApiAdminGuideVideosData = {
5099
+ body: VideoRequest;
5100
+ path?: never;
5101
+ query?: never;
5102
+ url: '/api/admin/guide-videos';
5103
+ };
5104
+ export type PostApiAdminGuideVideosResponses = {
5105
+ /**
5106
+ * Created
5107
+ */
5108
+ 201: Created;
5109
+ };
5110
+ export type PostApiAdminGuideVideosResponse = PostApiAdminGuideVideosResponses[keyof PostApiAdminGuideVideosResponses];
4991
5111
  export type PatchTaskByTaskIdPositionData = {
4992
5112
  body: PositionTaskRequest;
4993
5113
  path: {
@@ -5912,6 +6032,19 @@ export type GetInboxAgencyResponses = {
5912
6032
  200: CursorPageInboxResponse;
5913
6033
  };
5914
6034
  export type GetInboxAgencyResponse = GetInboxAgencyResponses[keyof GetInboxAgencyResponses];
6035
+ export type GetGuideVideosData = {
6036
+ body?: never;
6037
+ path?: never;
6038
+ query?: never;
6039
+ url: '/guide-videos';
6040
+ };
6041
+ export type GetGuideVideosResponses = {
6042
+ /**
6043
+ * OK
6044
+ */
6045
+ 200: Array<GuideVideoView>;
6046
+ };
6047
+ export type GetGuideVideosResponse = GetGuideVideosResponses[keyof GetGuideVideosResponses];
5915
6048
  export type GetConversationsByConversationIdUpdatesData = {
5916
6049
  body?: never;
5917
6050
  path: {