@streamscloud/embeddable 14.0.0-rc.0 → 14.0.0

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 (165) hide show
  1. package/dist/core/analytics.profile-id.d.ts +5 -0
  2. package/dist/core/{analytics.installation-id.js → analytics.profile-id.js} +10 -20
  3. package/dist/external-api/data-providers/internal-media-center-analytics-handler.d.ts +14 -14
  4. package/dist/external-api/data-providers/internal-media-center-analytics-handler.js +19 -170
  5. package/dist/external-api/data-providers/internal-media-center-data-provider.svelte.js +6 -6
  6. package/dist/external-api/data-providers/internal-post-analytics-handler.d.ts +7 -7
  7. package/dist/external-api/data-providers/internal-post-analytics-handler.js +11 -72
  8. package/dist/external-api/data-providers/internal-stream-analytics-handler.d.ts +13 -12
  9. package/dist/external-api/data-providers/internal-stream-analytics-handler.js +18 -162
  10. package/dist/external-api/data-providers/mocks/index.d.ts +5 -0
  11. package/dist/external-api/data-providers/mocks/index.js +5 -0
  12. package/dist/{media-center/categories-following → external-api/data-providers/mocks}/mock-categories-following-handler.svelte.d.ts +1 -1
  13. package/dist/external-api/data-providers/mocks/mock-content-management-handler.svelte.d.ts +29 -0
  14. package/dist/external-api/data-providers/mocks/mock-content-management-handler.svelte.js +61 -0
  15. package/dist/{media-center/membership → external-api/data-providers/mocks}/mock-membership-handler.svelte.d.ts +1 -1
  16. package/dist/{media-center/navigation → external-api/data-providers/mocks}/mock-navigation-handler.svelte.d.ts +1 -2
  17. package/dist/{posts/social-interactions → external-api/data-providers/mocks}/mock-post-social-interactions-handler.svelte.d.ts +1 -2
  18. package/dist/{posts/social-interactions → external-api/data-providers/mocks}/mock-post-social-interactions-handler.svelte.js +17 -6
  19. package/dist/external-api/data-providers/mocks/operations.generated.d.ts +115 -0
  20. package/dist/external-api/data-providers/mocks/operations.generated.js +377 -0
  21. package/dist/external-api/data-providers/mocks/operations.graphql +18 -0
  22. package/dist/external-api/data-providers/post-data-loaders/mapper.js +3 -1
  23. package/dist/media-center/config/types.d.ts +7 -1
  24. package/dist/media-center/content-management/index.d.ts +1 -0
  25. package/dist/media-center/content-management/index.js +1 -0
  26. package/dist/media-center/content-management/types.d.ts +24 -0
  27. package/dist/media-center/content-management/types.js +1 -0
  28. package/dist/media-center/index.d.ts +2 -1
  29. package/dist/media-center/media-center/cmp.media-center-proxy.svelte +2 -2
  30. package/dist/media-center/media-center/discover/data-loading.d.ts +3 -0
  31. package/dist/media-center/media-center/discover/data-loading.js +13 -2
  32. package/dist/media-center/media-center/discover/discover-view-handler.svelte.d.ts +23 -0
  33. package/dist/media-center/media-center/discover/discover-view-handler.svelte.js +88 -0
  34. package/dist/media-center/media-center/discover/discover-view.svelte +90 -47
  35. package/dist/media-center/media-center/discover/discover-view.svelte.d.ts +2 -2
  36. package/dist/media-center/media-center/footer/media-center-footer.svelte +1 -1
  37. package/dist/media-center/media-center/handlers/index.d.ts +1 -0
  38. package/dist/media-center/media-center/handlers/index.js +1 -0
  39. package/dist/media-center/media-center/handlers/media-center-content-handler.svelte.d.ts +62 -0
  40. package/dist/media-center/media-center/handlers/media-center-content-handler.svelte.js +144 -0
  41. package/dist/media-center/media-center/header/media-center-header-mobile.svelte +10 -7
  42. package/dist/media-center/media-center/header/media-center-header.svelte +1 -1
  43. package/dist/media-center/media-center/media-center-context.svelte.d.ts +3 -2
  44. package/dist/media-center/media-center/media-center-context.svelte.js +30 -11
  45. package/dist/media-center/media-center/media-center-view.svelte +31 -13
  46. package/dist/media-center/media-center/menu/menu.svelte +16 -7
  47. package/dist/media-center/media-center/menu/menu.svelte.d.ts +1 -0
  48. package/dist/media-center/media-center/menu/popular-streams-panel-handler.svelte.d.ts +7 -0
  49. package/dist/media-center/media-center/menu/popular-streams-panel-handler.svelte.js +23 -8
  50. package/dist/media-center/media-center/moments/moments-feed-handler.svelte.d.ts +19 -2
  51. package/dist/media-center/media-center/moments/moments-feed-handler.svelte.js +51 -6
  52. package/dist/media-center/media-center/moments/moments-state.svelte.d.ts +2 -0
  53. package/dist/media-center/media-center/moments/moments-state.svelte.js +16 -1
  54. package/dist/media-center/media-center/posts-feed/posts-feed-handler.svelte.d.ts +24 -4
  55. package/dist/media-center/media-center/posts-feed/posts-feed-handler.svelte.js +90 -9
  56. package/dist/media-center/media-center/streams-feed/streams-feed-handler.svelte.d.ts +18 -3
  57. package/dist/media-center/media-center/streams-feed/streams-feed-handler.svelte.js +64 -9
  58. package/dist/media-center/media-center/streams-in-category/streams-in-category-panel.svelte +2 -6
  59. package/dist/posts/controls/index.d.ts +2 -1
  60. package/dist/posts/controls/index.js +2 -1
  61. package/dist/posts/controls/post-actions-generator.svelte.d.ts +20 -0
  62. package/dist/posts/controls/post-actions-generator.svelte.js +27 -0
  63. package/dist/posts/controls/post-actions-handler.svelte.d.ts +26 -0
  64. package/dist/posts/controls/post-actions-handler.svelte.js +56 -0
  65. package/dist/posts/index.d.ts +1 -0
  66. package/dist/posts/model/types.d.ts +1 -0
  67. package/dist/posts/post-viewer/cmp.post-viewer.svelte +6 -7
  68. package/dist/posts/post-viewer/cmp.post-viewer.svelte.d.ts +2 -2
  69. package/dist/posts/post-viewer/mapper.js +1 -0
  70. package/dist/posts/posts-player/cmp.posts-player.svelte +2 -1
  71. package/dist/posts/posts-player/cmp.posts-player.svelte.d.ts +2 -0
  72. package/dist/posts/posts-player/index.d.ts +2 -0
  73. package/dist/posts/posts-player/index.js +2 -1
  74. package/dist/posts/posts-player/posts-player-proxy.svelte +2 -1
  75. package/dist/posts/posts-player/posts-player-proxy.svelte.d.ts +3 -1
  76. package/dist/posts/posts-player/posts-player-view.svelte +132 -34
  77. package/dist/posts/posts-player/types.d.ts +13 -3
  78. package/dist/posts/sharing/index.d.ts +1 -0
  79. package/dist/posts/sharing/index.js +1 -0
  80. package/dist/posts/sharing/types.d.ts +5 -0
  81. package/dist/posts/sharing/types.js +1 -0
  82. package/dist/posts/social-interactions/types.d.ts +0 -1
  83. package/dist/streams/controls/index.d.ts +1 -0
  84. package/dist/streams/controls/index.js +1 -0
  85. package/dist/streams/controls/stream-actions-generator.svelte.d.ts +31 -0
  86. package/dist/streams/controls/stream-actions-generator.svelte.js +42 -0
  87. package/dist/streams/index.d.ts +1 -0
  88. package/dist/streams/index.js +1 -0
  89. package/dist/streams/layout/cmp.layout.svelte +4 -1
  90. package/dist/streams/layout/cmp.layout.svelte.d.ts +1 -0
  91. package/dist/streams/layout/element-views/cmp.short-video-stream-element.svelte +1 -0
  92. package/dist/streams/layout/models/mapper.js +1 -0
  93. package/dist/streams/sharing/index.d.ts +1 -0
  94. package/dist/streams/sharing/index.js +1 -0
  95. package/dist/streams/sharing/types.d.ts +5 -0
  96. package/dist/streams/sharing/types.js +1 -0
  97. package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte +43 -1
  98. package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte.d.ts +9 -0
  99. package/dist/streams/streams-player/cmp.streams-player.svelte +2 -1
  100. package/dist/streams/streams-player/cmp.streams-player.svelte.d.ts +2 -0
  101. package/dist/streams/streams-player/index.d.ts +2 -0
  102. package/dist/streams/streams-player/index.js +2 -1
  103. package/dist/streams/streams-player/streams-player-proxy.svelte +2 -1
  104. package/dist/streams/streams-player/streams-player-proxy.svelte.d.ts +2 -0
  105. package/dist/streams/streams-player/streams-player-view.svelte +150 -34
  106. package/dist/streams/streams-player/types.d.ts +8 -0
  107. package/dist/ui/button/resources/button-theme.svelte +2 -4
  108. package/dist/ui/card-actions/card-action-container.d.ts +2 -0
  109. package/dist/ui/card-actions/card-action-container.js +17 -0
  110. package/dist/ui/card-actions/cmp.card-action.svelte +28 -0
  111. package/dist/ui/card-actions/cmp.card-action.svelte.d.ts +10 -0
  112. package/dist/ui/card-actions/cmp.card-actions.svelte +71 -0
  113. package/dist/ui/card-actions/cmp.card-actions.svelte.d.ts +9 -0
  114. package/dist/ui/card-actions/index.d.ts +4 -0
  115. package/dist/ui/card-actions/index.js +3 -0
  116. package/dist/ui/card-actions/types.d.ts +9 -0
  117. package/dist/ui/card-actions/types.js +1 -0
  118. package/dist/ui/icon/cmp.icon.svelte +1 -1
  119. package/dist/ui/player/button/cmp.player-button.svelte +1 -3
  120. package/dist/ui/player/button/cmp.player-buttons-group.svelte +1 -3
  121. package/dist/ui/player/button/cmp.responsive-player-buttons-group.svelte +53 -0
  122. package/dist/ui/player/button/cmp.responsive-player-buttons-group.svelte.d.ts +10 -0
  123. package/dist/ui/player/button/index.d.ts +1 -0
  124. package/dist/ui/player/button/index.js +1 -0
  125. package/dist/{content-player → ui/player/content-player}/cmp.content-player.svelte +7 -29
  126. package/dist/{content-player → ui/player/content-player}/cmp.content-player.svelte.d.ts +11 -15
  127. package/dist/ui/player/content-player/content-player-config.svelte.d.ts +29 -0
  128. package/dist/ui/player/content-player/content-player-config.svelte.js +27 -0
  129. package/dist/{content-player → ui/player/content-player}/content-player-settings.svelte.d.ts +3 -3
  130. package/dist/{content-player → ui/player/content-player}/content-player-settings.svelte.js +2 -2
  131. package/dist/{content-player → ui/player/content-player}/controls-and-attachments.svelte +18 -65
  132. package/dist/{content-player → ui/player/content-player}/controls-and-attachments.svelte.d.ts +11 -14
  133. package/dist/{content-player → ui/player/content-player}/overview-panel.svelte +2 -4
  134. package/dist/{content-player → ui/player/content-player}/overview-panel.svelte.d.ts +5 -14
  135. package/dist/{content-player → ui/player/content-player}/ui-manager.svelte.d.ts +3 -2
  136. package/dist/{content-player → ui/player/content-player}/ui-manager.svelte.js +3 -2
  137. package/dist/ui/player/providers/chunks-player-buffer/player-chunk-item.svelte.d.ts +0 -2
  138. package/dist/ui/player/providers/chunks-player-buffer/player-chunk-item.svelte.js +1 -3
  139. package/dist/ui/player/providers/chunks-player-buffer/player-chunk.svelte.d.ts +3 -2
  140. package/dist/ui/player/providers/chunks-player-buffer/player-chunk.svelte.js +11 -5
  141. package/dist/ui/player/providers/chunks-player-buffer/player-chunks-manager.svelte.d.ts +3 -0
  142. package/dist/ui/player/providers/chunks-player-buffer/player-chunks-manager.svelte.js +74 -8
  143. package/dist/ui/player/providers/default-chunks-player-buffer.svelte.d.ts +2 -0
  144. package/dist/ui/player/providers/default-chunks-player-buffer.svelte.js +15 -4
  145. package/dist/ui/player/providers/default-feed-player-buffer.svelte.d.ts +1 -0
  146. package/dist/ui/player/providers/default-feed-player-buffer.svelte.js +27 -5
  147. package/dist/ui/player/providers/types.d.ts +1 -0
  148. package/dist/ui/player/slider/cmp.player-slider.svelte.d.ts +5 -14
  149. package/dist/ui/player/slider-horizontal/cmp.slider.svelte +2 -6
  150. package/dist/ui/player/slider-horizontal/cmp.slider.svelte.d.ts +5 -12
  151. package/dist/ui/shadow-dom/cmp.shadow-root.svelte +11 -6
  152. package/dist/ui/shadow-dom/colors.scss +2 -0
  153. package/package.json +7 -3
  154. package/dist/content-player/content-player-config.svelte.d.ts +0 -51
  155. package/dist/content-player/content-player-config.svelte.js +0 -48
  156. package/dist/core/analytics.installation-id.d.ts +0 -5
  157. package/dist/external-api/data-providers/mapper.d.ts +0 -3
  158. package/dist/external-api/data-providers/mapper.js +0 -18
  159. package/dist/posts/controls/cmp.controls.svelte +0 -120
  160. package/dist/posts/controls/cmp.controls.svelte.d.ts +0 -16
  161. /package/dist/{media-center/categories-following → external-api/data-providers/mocks}/mock-categories-following-handler.svelte.js +0 -0
  162. /package/dist/{media-center/membership → external-api/data-providers/mocks}/mock-membership-handler.svelte.js +0 -0
  163. /package/dist/{media-center/navigation → external-api/data-providers/mocks}/mock-navigation-handler.svelte.js +0 -0
  164. /package/dist/{content-player → ui/player/content-player}/index.d.ts +0 -0
  165. /package/dist/{content-player → ui/player/content-player}/index.js +0 -0
@@ -1,4 +1,4 @@
1
- import type { IContentCategoryFollowingHandler } from './types';
1
+ import type { IContentCategoryFollowingHandler } from '../../../media-center/categories-following';
2
2
  export declare class MockCategoryFollowingProvider implements IContentCategoryFollowingHandler {
3
3
  private categoriesMap;
4
4
  getIsFollowed: (categoryId: string) => Promise<{
@@ -0,0 +1,29 @@
1
+ import type { IMediaCenterContentManagementHandler } from '../../../media-center/content-management';
2
+ import type { PostPlayerModel } from '../../../posts/posts-player/types';
3
+ import type { StreamPlayerModel } from '../../../streams/streams-player/types';
4
+ import type { Client } from '@urql/core';
5
+ export declare class MockMediaCenterContentManagementHandler implements IMediaCenterContentManagementHandler {
6
+ private graphql;
7
+ constructor(graphql: Client);
8
+ onHandlerMounted: (api: Parameters<IMediaCenterContentManagementHandler["onHandlerMounted"]>[0]) => void;
9
+ editPost: (postId: string) => Promise<{
10
+ post: PostPlayerModel;
11
+ categories: string[];
12
+ isPublished: boolean;
13
+ } | null>;
14
+ editArticle: (postId: string) => Promise<{
15
+ post: PostPlayerModel;
16
+ categories: string[];
17
+ isPublished: boolean;
18
+ } | null>;
19
+ deletePost: (postId: string) => Promise<boolean>;
20
+ editStream: (streamId: string) => Promise<{
21
+ stream: StreamPlayerModel;
22
+ categories: string[];
23
+ isPublished: boolean;
24
+ } | null>;
25
+ deleteStream: (streamId: string) => Promise<boolean>;
26
+ deleteStreamPage: (streamPageId: string) => Promise<boolean>;
27
+ private _getUpdatedPost;
28
+ private _getUpdatedStream;
29
+ }
@@ -0,0 +1,61 @@
1
+ import { Status, StreamStatus } from '../../../core/enums';
2
+ import { mapToStreamPlayerModel } from '../stream-data-loaders/mapper';
3
+ import { GetPostDocument, GetStreamDocument } from './operations.generated';
4
+ import { mapToPostPlayerModel } from '../post-data-loaders/mapper';
5
+ export class MockMediaCenterContentManagementHandler {
6
+ graphql;
7
+ constructor(graphql) {
8
+ this.graphql = graphql;
9
+ }
10
+ onHandlerMounted = (api) => {
11
+ console.warn('MockContentCategoryFollowingHandler.onHandlerMounted called', api);
12
+ };
13
+ editPost = async (postId) => {
14
+ console.log('MockContentCategoryFollowingHandler.editPost', postId);
15
+ return await this._getUpdatedPost(postId);
16
+ };
17
+ editArticle = async (postId) => {
18
+ console.log('MockContentCategoryFollowingHandler.editArticle', postId);
19
+ return await this._getUpdatedPost(postId);
20
+ };
21
+ deletePost = (postId) => {
22
+ console.log('MockContentCategoryFollowingHandler.deletePost', postId);
23
+ return Promise.resolve(true);
24
+ };
25
+ editStream = async (streamId) => {
26
+ console.log('MockContentCategoryFollowingHandler.editStream', streamId);
27
+ return await this._getUpdatedStream(streamId);
28
+ };
29
+ deleteStream = (streamId) => {
30
+ console.log('MockContentCategoryFollowingHandler.deleteStream', streamId);
31
+ return Promise.resolve(true);
32
+ };
33
+ deleteStreamPage = (streamPageId) => {
34
+ console.log('MockContentCategoryFollowingHandler.deleteStreamPage', streamPageId);
35
+ return Promise.resolve(true);
36
+ };
37
+ _getUpdatedPost = async (id) => {
38
+ const payload = await this.graphql.query(GetPostDocument, { id }).toPromise();
39
+ const post = payload.data?.posts.items[0];
40
+ if (!post) {
41
+ return null;
42
+ }
43
+ return {
44
+ post: mapToPostPlayerModel(post),
45
+ categories: post.categoryIds,
46
+ isPublished: post.status === Status.Published
47
+ };
48
+ };
49
+ _getUpdatedStream = async (id) => {
50
+ const payload = await this.graphql.query(GetStreamDocument, { id }).toPromise();
51
+ const stream = payload.data?.embedStream;
52
+ if (!stream) {
53
+ return null;
54
+ }
55
+ return {
56
+ stream: mapToStreamPlayerModel(stream),
57
+ categories: stream.categoryIds,
58
+ isPublished: stream.status === StreamStatus.Published
59
+ };
60
+ };
61
+ }
@@ -1,4 +1,4 @@
1
- import type { IMediaCenterMembershipHandler } from './types';
1
+ import type { IMediaCenterMembershipHandler } from '../../../media-center/membership';
2
2
  export declare class MockMembershipHandler implements IMediaCenterMembershipHandler {
3
3
  private isJoined;
4
4
  getIsJoined: () => Promise<{
@@ -1,5 +1,4 @@
1
- import type { MediaCenterState } from './';
2
- import type { IMediaCenterNavigationHandler } from './types';
1
+ import type { MediaCenterState, IMediaCenterNavigationHandler } from '../../../media-center/navigation';
3
2
  export declare class MockNavigationHandler implements IMediaCenterNavigationHandler {
4
3
  private onChangeCallback;
5
4
  constructor(onChangeCallback: (state: MediaCenterState) => void);
@@ -1,9 +1,8 @@
1
- import type { IPostSocialInteractionsHandler } from './types';
1
+ import type { IPostSocialInteractionsHandler } from '../../../posts';
2
2
  export declare class MockPostSocialInteractionsHandler implements IPostSocialInteractionsHandler {
3
3
  private postsMap;
4
4
  getIsLiked: (postId: string) => Promise<{
5
5
  readonly isLiked: boolean;
6
6
  }>;
7
7
  toggleLike: (postId: string) => void;
8
- share: (postId: string) => void;
9
8
  }
@@ -1,5 +1,5 @@
1
1
  export class MockPostSocialInteractionsHandler {
2
- postsMap = $state([]);
2
+ postsMap = [];
3
3
  getIsLiked = (postId) => {
4
4
  const entry = this.postsMap.find((c) => c.id === postId);
5
5
  if (entry) {
@@ -10,7 +10,7 @@ export class MockPostSocialInteractionsHandler {
10
10
  });
11
11
  }
12
12
  else {
13
- const newEntry = { id: postId, isLiked: Math.random() < 0.5 };
13
+ const newEntry = new IsLikedStore(postId, Math.random() < 0.5);
14
14
  this.postsMap.push(newEntry);
15
15
  return Promise.resolve({
16
16
  get isLiked() {
@@ -22,13 +22,24 @@ export class MockPostSocialInteractionsHandler {
22
22
  toggleLike = (postId) => {
23
23
  const entry = this.postsMap.find((c) => c.id === postId);
24
24
  if (entry) {
25
- entry.isLiked = !entry.isLiked;
25
+ entry.toggle();
26
26
  }
27
27
  else {
28
- this.postsMap.push({ id: postId, isLiked: true });
28
+ this.postsMap.push(new IsLikedStore(postId, true));
29
29
  }
30
30
  };
31
- share = (postId) => {
32
- console.log('onShare', postId);
31
+ }
32
+ class IsLikedStore {
33
+ id;
34
+ _isLiked = $state(false);
35
+ constructor(postId, isLiked) {
36
+ this.id = postId;
37
+ this._isLiked = isLiked;
38
+ }
39
+ get isLiked() {
40
+ return this._isLiked;
41
+ }
42
+ toggle = () => {
43
+ this._isLiked = !this._isLiked;
33
44
  };
34
45
  }
@@ -0,0 +1,115 @@
1
+ import type * as SchemaTypes from '../../../../gql/types';
2
+ import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
3
+ export type GetPostQueryVariables = SchemaTypes.Exact<{
4
+ id: SchemaTypes.Scalars['String']['input'];
5
+ image_scale?: SchemaTypes.InputMaybe<SchemaTypes.ImageScale>;
6
+ }>;
7
+ export type GetPostQuery = {
8
+ posts: {
9
+ items: Array<{
10
+ categoryIds: Array<string>;
11
+ status: SchemaTypes.Status;
12
+ id: string;
13
+ enableSocialInteractions: boolean;
14
+ viewsCount: number;
15
+ displayDate: any;
16
+ ownerProfile: {
17
+ id: string;
18
+ type: SchemaTypes.ProfileType;
19
+ };
20
+ allProducts: Array<{
21
+ id: string;
22
+ title: string;
23
+ shortDescription: string | null;
24
+ link: string | null;
25
+ media: Array<{
26
+ url: string;
27
+ thumbnailUrl: string | null;
28
+ type: SchemaTypes.MediaType;
29
+ }>;
30
+ brand: {
31
+ name: string;
32
+ } | null;
33
+ priceAndAvailability: {
34
+ currency: SchemaTypes.Currency;
35
+ price: number;
36
+ productSalePrices: Array<{
37
+ salePrice: number;
38
+ salePriceEffectiveDateFrom: any | null;
39
+ salePriceEffectiveDateTo: any | null;
40
+ }> | null;
41
+ };
42
+ }>;
43
+ ad: {
44
+ id: string;
45
+ title: string;
46
+ description: string | null;
47
+ price: number | null;
48
+ priceInfo: string | null;
49
+ currency: SchemaTypes.Currency | null;
50
+ type: SchemaTypes.AdType;
51
+ ctaButton: {
52
+ background: string;
53
+ textColor: string;
54
+ text: string;
55
+ url: string;
56
+ border: string;
57
+ } | null;
58
+ media: Array<{
59
+ url: string;
60
+ thumbnailUrl: string | null;
61
+ type: SchemaTypes.MediaType;
62
+ }>;
63
+ } | null;
64
+ postData: {
65
+ media: Array<{
66
+ url: string;
67
+ thumbnailUrl: string | null;
68
+ type: SchemaTypes.MediaType;
69
+ }>;
70
+ articleData: {
71
+ title: string;
72
+ kicker: string | null;
73
+ articleId: string;
74
+ } | null;
75
+ mediaData: {
76
+ text: string | null;
77
+ } | null;
78
+ momentData: {
79
+ text: string | null;
80
+ } | null;
81
+ shortVideoData: {
82
+ text: string | null;
83
+ } | null;
84
+ videoData: {
85
+ title: string | null;
86
+ text: string | null;
87
+ } | null;
88
+ };
89
+ }>;
90
+ };
91
+ };
92
+ export type GetStreamQueryVariables = SchemaTypes.Exact<{
93
+ id: SchemaTypes.Scalars['String']['input'];
94
+ }>;
95
+ export type GetStreamQuery = {
96
+ embedStream: {
97
+ categoryIds: Array<string>;
98
+ status: SchemaTypes.StreamStatus;
99
+ id: string;
100
+ title: string;
101
+ subTitle: string | null;
102
+ createdAt: any;
103
+ publishedAt: any | null;
104
+ pagesCount: number;
105
+ cover: {
106
+ url: string;
107
+ } | null;
108
+ ownerProfile: {
109
+ id: string;
110
+ type: SchemaTypes.ProfileType;
111
+ };
112
+ } | null;
113
+ };
114
+ export declare const GetPostDocument: DocumentNode<GetPostQuery, GetPostQueryVariables>;
115
+ export declare const GetStreamDocument: DocumentNode<GetStreamQuery, GetStreamQueryVariables>;
@@ -0,0 +1,377 @@
1
+ export const GetPostDocument = {
2
+ kind: 'Document',
3
+ definitions: [
4
+ {
5
+ kind: 'OperationDefinition',
6
+ operation: 'query',
7
+ name: { kind: 'Name', value: 'GetPost' },
8
+ variableDefinitions: [
9
+ {
10
+ kind: 'VariableDefinition',
11
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
12
+ type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } }
13
+ },
14
+ {
15
+ kind: 'VariableDefinition',
16
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } },
17
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageScale' } },
18
+ defaultValue: { kind: 'EnumValue', value: 'ORIGINAL_ENCODED' }
19
+ }
20
+ ],
21
+ selectionSet: {
22
+ kind: 'SelectionSet',
23
+ selections: [
24
+ {
25
+ kind: 'Field',
26
+ alias: { kind: 'Name', value: 'posts' },
27
+ name: { kind: 'Name', value: 'embedPosts' },
28
+ arguments: [
29
+ {
30
+ kind: 'Argument',
31
+ name: { kind: 'Name', value: 'input' },
32
+ value: {
33
+ kind: 'ObjectValue',
34
+ fields: [
35
+ {
36
+ kind: 'ObjectField',
37
+ name: { kind: 'Name', value: 'filter' },
38
+ value: {
39
+ kind: 'ObjectValue',
40
+ fields: [
41
+ {
42
+ kind: 'ObjectField',
43
+ name: { kind: 'Name', value: 'ids' },
44
+ value: { kind: 'ListValue', values: [{ kind: 'Variable', name: { kind: 'Name', value: 'id' } }] }
45
+ }
46
+ ]
47
+ }
48
+ }
49
+ ]
50
+ }
51
+ }
52
+ ],
53
+ selectionSet: {
54
+ kind: 'SelectionSet',
55
+ selections: [
56
+ {
57
+ kind: 'Field',
58
+ name: { kind: 'Name', value: 'items' },
59
+ selectionSet: {
60
+ kind: 'SelectionSet',
61
+ selections: [
62
+ { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PostsPlayerPayloadFragment' } },
63
+ { kind: 'Field', name: { kind: 'Name', value: 'categoryIds' } },
64
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } }
65
+ ]
66
+ }
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ ]
72
+ }
73
+ },
74
+ {
75
+ kind: 'FragmentDefinition',
76
+ name: { kind: 'Name', value: 'PostViewerPayloadFragment' },
77
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } },
78
+ selectionSet: {
79
+ kind: 'SelectionSet',
80
+ selections: [
81
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
82
+ { kind: 'Field', name: { kind: 'Name', value: 'enableSocialInteractions' } },
83
+ {
84
+ kind: 'Field',
85
+ name: { kind: 'Name', value: 'allProducts' },
86
+ selectionSet: {
87
+ kind: 'SelectionSet',
88
+ selections: [
89
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
90
+ { kind: 'Field', name: { kind: 'Name', value: 'title' } },
91
+ { kind: 'Field', name: { kind: 'Name', value: 'shortDescription' } },
92
+ { kind: 'Field', name: { kind: 'Name', value: 'link' } },
93
+ {
94
+ kind: 'Field',
95
+ name: { kind: 'Name', value: 'media' },
96
+ selectionSet: {
97
+ kind: 'SelectionSet',
98
+ selections: [
99
+ {
100
+ kind: 'Field',
101
+ name: { kind: 'Name', value: 'url' },
102
+ arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'EnumValue', value: 'SMALL' } }]
103
+ },
104
+ {
105
+ kind: 'Field',
106
+ name: { kind: 'Name', value: 'thumbnailUrl' },
107
+ arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'EnumValue', value: 'SMALL' } }]
108
+ },
109
+ { kind: 'Field', name: { kind: 'Name', value: 'type' } }
110
+ ]
111
+ }
112
+ },
113
+ {
114
+ kind: 'Field',
115
+ name: { kind: 'Name', value: 'brand' },
116
+ selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'name' } }] }
117
+ },
118
+ {
119
+ kind: 'Field',
120
+ name: { kind: 'Name', value: 'priceAndAvailability' },
121
+ selectionSet: {
122
+ kind: 'SelectionSet',
123
+ selections: [
124
+ { kind: 'Field', name: { kind: 'Name', value: 'currency' } },
125
+ { kind: 'Field', name: { kind: 'Name', value: 'price' } },
126
+ {
127
+ kind: 'Field',
128
+ name: { kind: 'Name', value: 'productSalePrices' },
129
+ selectionSet: {
130
+ kind: 'SelectionSet',
131
+ selections: [
132
+ { kind: 'Field', name: { kind: 'Name', value: 'salePrice' } },
133
+ { kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateFrom' } },
134
+ { kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateTo' } }
135
+ ]
136
+ }
137
+ }
138
+ ]
139
+ }
140
+ }
141
+ ]
142
+ }
143
+ },
144
+ {
145
+ kind: 'Field',
146
+ name: { kind: 'Name', value: 'ad' },
147
+ selectionSet: {
148
+ kind: 'SelectionSet',
149
+ selections: [
150
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
151
+ { kind: 'Field', name: { kind: 'Name', value: 'title' } },
152
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
153
+ { kind: 'Field', name: { kind: 'Name', value: 'price' } },
154
+ { kind: 'Field', name: { kind: 'Name', value: 'priceInfo' } },
155
+ { kind: 'Field', name: { kind: 'Name', value: 'currency' } },
156
+ {
157
+ kind: 'Field',
158
+ name: { kind: 'Name', value: 'ctaButton' },
159
+ selectionSet: {
160
+ kind: 'SelectionSet',
161
+ selections: [
162
+ { kind: 'Field', name: { kind: 'Name', value: 'background' } },
163
+ { kind: 'Field', name: { kind: 'Name', value: 'textColor' } },
164
+ { kind: 'Field', name: { kind: 'Name', value: 'text' } },
165
+ { kind: 'Field', name: { kind: 'Name', value: 'url' } },
166
+ { kind: 'Field', name: { kind: 'Name', value: 'border' } }
167
+ ]
168
+ }
169
+ },
170
+ { kind: 'Field', name: { kind: 'Name', value: 'type' } },
171
+ {
172
+ kind: 'Field',
173
+ name: { kind: 'Name', value: 'media' },
174
+ selectionSet: {
175
+ kind: 'SelectionSet',
176
+ selections: [
177
+ {
178
+ kind: 'Field',
179
+ name: { kind: 'Name', value: 'url' },
180
+ arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'EnumValue', value: 'SMALL' } }]
181
+ },
182
+ {
183
+ kind: 'Field',
184
+ name: { kind: 'Name', value: 'thumbnailUrl' },
185
+ arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'EnumValue', value: 'SMALL' } }]
186
+ },
187
+ { kind: 'Field', name: { kind: 'Name', value: 'type' } }
188
+ ]
189
+ }
190
+ }
191
+ ]
192
+ }
193
+ },
194
+ {
195
+ kind: 'Field',
196
+ name: { kind: 'Name', value: 'postData' },
197
+ selectionSet: {
198
+ kind: 'SelectionSet',
199
+ selections: [
200
+ {
201
+ kind: 'Field',
202
+ name: { kind: 'Name', value: 'media' },
203
+ selectionSet: {
204
+ kind: 'SelectionSet',
205
+ selections: [
206
+ {
207
+ kind: 'Field',
208
+ name: { kind: 'Name', value: 'url' },
209
+ arguments: [
210
+ {
211
+ kind: 'Argument',
212
+ name: { kind: 'Name', value: 'scale' },
213
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } }
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ kind: 'Field',
219
+ name: { kind: 'Name', value: 'thumbnailUrl' },
220
+ arguments: [
221
+ {
222
+ kind: 'Argument',
223
+ name: { kind: 'Name', value: 'scale' },
224
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } }
225
+ }
226
+ ]
227
+ },
228
+ { kind: 'Field', name: { kind: 'Name', value: 'type' } }
229
+ ]
230
+ }
231
+ },
232
+ {
233
+ kind: 'Field',
234
+ name: { kind: 'Name', value: 'articleData' },
235
+ selectionSet: {
236
+ kind: 'SelectionSet',
237
+ selections: [
238
+ { kind: 'Field', name: { kind: 'Name', value: 'title' } },
239
+ { kind: 'Field', name: { kind: 'Name', value: 'kicker' } },
240
+ { kind: 'Field', name: { kind: 'Name', value: 'articleId' } }
241
+ ]
242
+ }
243
+ },
244
+ {
245
+ kind: 'Field',
246
+ name: { kind: 'Name', value: 'mediaData' },
247
+ selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'text' } }] }
248
+ },
249
+ {
250
+ kind: 'Field',
251
+ name: { kind: 'Name', value: 'momentData' },
252
+ selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'text' } }] }
253
+ },
254
+ {
255
+ kind: 'Field',
256
+ name: { kind: 'Name', value: 'shortVideoData' },
257
+ selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'text' } }] }
258
+ },
259
+ {
260
+ kind: 'Field',
261
+ name: { kind: 'Name', value: 'videoData' },
262
+ selectionSet: {
263
+ kind: 'SelectionSet',
264
+ selections: [
265
+ { kind: 'Field', name: { kind: 'Name', value: 'title' } },
266
+ { kind: 'Field', name: { kind: 'Name', value: 'text' } }
267
+ ]
268
+ }
269
+ }
270
+ ]
271
+ }
272
+ },
273
+ { kind: 'Field', name: { kind: 'Name', value: 'viewsCount' } },
274
+ { kind: 'Field', name: { kind: 'Name', value: 'displayDate' } }
275
+ ]
276
+ }
277
+ },
278
+ {
279
+ kind: 'FragmentDefinition',
280
+ name: { kind: 'Name', value: 'PostsPlayerPayloadFragment' },
281
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } },
282
+ selectionSet: {
283
+ kind: 'SelectionSet',
284
+ selections: [
285
+ { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PostViewerPayloadFragment' } },
286
+ {
287
+ kind: 'Field',
288
+ name: { kind: 'Name', value: 'ownerProfile' },
289
+ selectionSet: {
290
+ kind: 'SelectionSet',
291
+ selections: [
292
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
293
+ { kind: 'Field', name: { kind: 'Name', value: 'type' } }
294
+ ]
295
+ }
296
+ }
297
+ ]
298
+ }
299
+ }
300
+ ]
301
+ };
302
+ export const GetStreamDocument = {
303
+ kind: 'Document',
304
+ definitions: [
305
+ {
306
+ kind: 'OperationDefinition',
307
+ operation: 'query',
308
+ name: { kind: 'Name', value: 'GetStream' },
309
+ variableDefinitions: [
310
+ {
311
+ kind: 'VariableDefinition',
312
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
313
+ type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } } }
314
+ }
315
+ ],
316
+ selectionSet: {
317
+ kind: 'SelectionSet',
318
+ selections: [
319
+ {
320
+ kind: 'Field',
321
+ name: { kind: 'Name', value: 'embedStream' },
322
+ arguments: [
323
+ {
324
+ kind: 'Argument',
325
+ name: { kind: 'Name', value: 'input' },
326
+ value: {
327
+ kind: 'ObjectValue',
328
+ fields: [{ kind: 'ObjectField', name: { kind: 'Name', value: 'id' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } } }]
329
+ }
330
+ }
331
+ ],
332
+ selectionSet: {
333
+ kind: 'SelectionSet',
334
+ selections: [
335
+ { kind: 'FragmentSpread', name: { kind: 'Name', value: 'StreamPlayerPayloadFragment' } },
336
+ { kind: 'Field', name: { kind: 'Name', value: 'categoryIds' } },
337
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } }
338
+ ]
339
+ }
340
+ }
341
+ ]
342
+ }
343
+ },
344
+ {
345
+ kind: 'FragmentDefinition',
346
+ name: { kind: 'Name', value: 'StreamPlayerPayloadFragment' },
347
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Stream' } },
348
+ selectionSet: {
349
+ kind: 'SelectionSet',
350
+ selections: [
351
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
352
+ { kind: 'Field', name: { kind: 'Name', value: 'title' } },
353
+ { kind: 'Field', name: { kind: 'Name', value: 'subTitle' } },
354
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
355
+ { kind: 'Field', name: { kind: 'Name', value: 'publishedAt' } },
356
+ {
357
+ kind: 'Field',
358
+ name: { kind: 'Name', value: 'cover' },
359
+ selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'url' } }] }
360
+ },
361
+ {
362
+ kind: 'Field',
363
+ name: { kind: 'Name', value: 'ownerProfile' },
364
+ selectionSet: {
365
+ kind: 'SelectionSet',
366
+ selections: [
367
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
368
+ { kind: 'Field', name: { kind: 'Name', value: 'type' } }
369
+ ]
370
+ }
371
+ },
372
+ { kind: 'Field', name: { kind: 'Name', value: 'pagesCount' } }
373
+ ]
374
+ }
375
+ }
376
+ ]
377
+ };