@streamscloud/embeddable 3.2.6 → 3.2.7

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.
@@ -34,6 +34,7 @@ export const mapShortVideoViewerModel = (payload) => {
34
34
  const mapToShortVideoViewerAdModel = (payload) => {
35
35
  return {
36
36
  id: payload.id,
37
+ type: payload.type,
37
38
  image: getMediaItemImageUrl(payload.media[0]),
38
39
  title: payload.title,
39
40
  description: payload.description,
@@ -1,4 +1,4 @@
1
- import type { Currency } from '../../core/enums';
1
+ import { AdType, type Currency } from '../../core/enums';
2
2
  export type ShortVideoViewerModel = {
3
3
  id: string;
4
4
  media: {
@@ -22,6 +22,7 @@ export type ShortVideoViewerHeadingModel = {
22
22
  };
23
23
  export type ShortVideoViewerAdModel = {
24
24
  id: string;
25
+ type: AdType;
25
26
  image: string | null;
26
27
  title: string;
27
28
  description: string | null;
@@ -1 +1 @@
1
- export {};
1
+ import { AdType } from '../../core/enums';
@@ -41,6 +41,7 @@ export const mapToShortVideoViewerModel = (model) => {
41
41
  const mapToAdViewModel = (model) => {
42
42
  return {
43
43
  id: model.id,
44
+ type: model.type,
44
45
  image: model.image,
45
46
  title: model.title,
46
47
  description: model.description,
@@ -1,4 +1,4 @@
1
- import type { Currency } from '../../../core/enums';
1
+ import { AdType, type Currency } from '../../../core/enums';
2
2
  import type { StreamLayoutMediaItemModel } from './stream-layout-media-item-model';
3
3
  import type { StreamLayoutPostHeaderModel } from './stream-layout-post-header-model';
4
4
  export type StreamLayoutShortVideoModel = {
@@ -13,6 +13,7 @@ export type StreamLayoutShortVideoModel = {
13
13
  };
14
14
  export type StreamLayoutShortVideoAdModel = {
15
15
  id: string;
16
+ type: AdType;
16
17
  image: string | null;
17
18
  title: string;
18
19
  description: string | null;
@@ -1 +1 @@
1
- export {};
1
+ import { AdType } from '../../../core/enums';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/embeddable",
3
- "version": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "author": "StreamsCloud",
5
5
  "repository": "https://github.com/StreamsCloud/streamscloud-frontend-packages.git",
6
6
  "type": "module",