@streamscloud/embeddable 9.0.0 → 10.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 (119) hide show
  1. package/dist/content-player/cmp.content-player.svelte +1 -1
  2. package/dist/content-player/content-player-config.svelte.d.ts +4 -4
  3. package/dist/content-player/controls-and-attachments.svelte +1 -1
  4. package/dist/content-player/header.svelte +1 -1
  5. package/dist/core/document.event-handlers.d.ts +1 -0
  6. package/dist/core/document.event-handlers.js +3 -0
  7. package/dist/media-center/config/internal-media-center-analytics-handler.d.ts +1 -1
  8. package/dist/media-center/config/internal-media-center-config.js +34 -44
  9. package/dist/media-center/config/operations.generated.d.ts +0 -104
  10. package/dist/media-center/config/operations.generated.js +0 -320
  11. package/dist/media-center/config/operations.graphql +0 -24
  12. package/dist/media-center/config/types.d.ts +7 -9
  13. package/dist/media-center/media-center/cmp.media-center.svelte +27 -7
  14. package/dist/media-center/media-center/cmp.media-center.svelte.d.ts +2 -2
  15. package/dist/media-center/media-center/discover-panel-handler.svelte.d.ts +2 -2
  16. package/dist/media-center/media-center/discover-panel.svelte +1 -1
  17. package/dist/media-center/media-center/discover-panel.svelte.d.ts +2 -1
  18. package/dist/media-center/media-center/post-player-provider-generator.d.ts +2 -2
  19. package/dist/media-center/media-center/post-player-provider-generator.js +2 -1
  20. package/dist/media-center/media-center/streams-in-category-panel-handler.svelte.d.ts +5 -2
  21. package/dist/media-center/media-center/streams-in-category-panel-handler.svelte.js +5 -0
  22. package/dist/media-center/media-center/streams-in-category-panel.svelte +2 -2
  23. package/dist/media-center/media-center/streams-in-category-panel.svelte.d.ts +3 -2
  24. package/dist/media-center/media-center/streams-player-provider-generator.d.ts +8 -0
  25. package/dist/media-center/media-center/streams-player-provider-generator.js +36 -0
  26. package/dist/media-center/media-center/types.d.ts +0 -6
  27. package/dist/posts/controls/cmp.controls.svelte +1 -1
  28. package/dist/posts/data-loaders/index.d.ts +1 -0
  29. package/dist/posts/data-loaders/index.js +1 -0
  30. package/dist/posts/{posts-player → data-loaders}/mapper.d.ts +1 -1
  31. package/dist/{short-videos/data-providers → posts/data-loaders}/operations.generated.d.ts +82 -4
  32. package/dist/{short-videos/data-providers → posts/data-loaders}/operations.generated.js +232 -3
  33. package/dist/posts/data-loaders/operations.graphql +17 -0
  34. package/dist/posts/data-loaders/posts-loader.d.ts +19 -0
  35. package/dist/posts/data-loaders/posts-loader.js +28 -0
  36. package/dist/posts/posts-player/index.d.ts +27 -6
  37. package/dist/posts/posts-player/index.js +2 -3
  38. package/dist/posts/posts-player/posts-player-view.svelte +29 -13
  39. package/dist/posts/posts-player/types.d.ts +2 -2
  40. package/dist/short-videos/data-providers/internal-short-video-player-items-provider.d.ts +5 -6
  41. package/dist/short-videos/data-providers/internal-short-video-player-items-provider.js +12 -32
  42. package/dist/short-videos/short-videos-player/index.d.ts +2 -3
  43. package/dist/short-videos/short-videos-player/index.js +1 -1
  44. package/dist/streams/data-loaders/index.d.ts +2 -0
  45. package/dist/streams/data-loaders/index.js +2 -0
  46. package/dist/streams/{stream-player → data-loaders}/mapper.d.ts +1 -1
  47. package/dist/streams/{stream-player → data-loaders}/operations.generated.d.ts +27 -24
  48. package/dist/streams/{stream-player → data-loaders}/operations.generated.js +18 -17
  49. package/dist/streams/{stream-player → data-loaders}/operations.graphql +6 -3
  50. package/dist/streams/data-loaders/stream-pages-loader.d.ts +10 -0
  51. package/dist/streams/data-loaders/stream-pages-loader.js +33 -0
  52. package/dist/streams/data-loaders/streams-loader.d.ts +19 -0
  53. package/dist/streams/data-loaders/streams-loader.js +28 -0
  54. package/dist/streams/{stream-player → streams-player}/index.d.ts +21 -22
  55. package/dist/streams/{stream-player → streams-player}/index.js +9 -7
  56. package/dist/streams/streams-player/internal-streams-player-data-provider.d.ts +16 -0
  57. package/dist/streams/streams-player/internal-streams-player-data-provider.js +55 -0
  58. package/dist/streams/{stream-player → streams-player}/stream-overview.svelte +18 -15
  59. package/dist/streams/{stream-player → streams-player}/stream-overview.svelte.d.ts +2 -2
  60. package/dist/streams/streams-player/streams-player-buffer.svelte.d.ts +8 -0
  61. package/dist/streams/streams-player/streams-player-buffer.svelte.js +15 -0
  62. package/dist/streams/{stream-player/stream-player-view.svelte → streams-player/streams-player-view.svelte} +69 -55
  63. package/dist/streams/streams-player/streams-player-view.svelte.d.ts +8 -0
  64. package/dist/streams/{stream-player → streams-player}/types.d.ts +9 -7
  65. package/dist/ui/{player-button → player/button}/cmp.player-button.svelte +1 -1
  66. package/dist/ui/{player-button → player/button}/cmp.player-button.svelte.d.ts +1 -1
  67. package/dist/ui/{player-button → player/button}/cmp.player-buttons-group.svelte +1 -1
  68. package/dist/ui/{player-button → player/button}/types.d.ts +1 -1
  69. package/dist/ui/player/button/types.js +1 -0
  70. package/dist/ui/player/providers/chunks-player-buffer/index.d.ts +2 -0
  71. package/dist/ui/player/providers/chunks-player-buffer/index.js +2 -0
  72. package/dist/ui/player/providers/chunks-player-buffer/player-chunk-item.svelte.d.ts +11 -0
  73. package/dist/ui/player/providers/chunks-player-buffer/player-chunk-item.svelte.js +11 -0
  74. package/dist/ui/player/providers/chunks-player-buffer/player-chunk.svelte.d.ts +31 -0
  75. package/dist/ui/player/providers/chunks-player-buffer/player-chunk.svelte.js +67 -0
  76. package/dist/ui/player/providers/chunks-player-buffer/player-chunks-manager.svelte.d.ts +23 -0
  77. package/dist/ui/player/providers/chunks-player-buffer/player-chunks-manager.svelte.js +119 -0
  78. package/dist/ui/player/providers/default-chunks-player-buffer.svelte.d.ts +20 -0
  79. package/dist/ui/player/providers/default-chunks-player-buffer.svelte.js +47 -0
  80. package/dist/ui/player/providers/default-feed-player-buffer.svelte.d.ts +27 -0
  81. package/dist/ui/player/providers/default-feed-player-buffer.svelte.js +78 -0
  82. package/dist/ui/player/providers/index.d.ts +3 -0
  83. package/dist/ui/player/providers/index.js +2 -0
  84. package/dist/ui/player/providers/types.d.ts +49 -0
  85. package/dist/ui/{player-slider → player/slider}/cmp.player-slider.svelte +7 -20
  86. package/dist/ui/{player-slider → player/slider}/cmp.player-slider.svelte.d.ts +4 -4
  87. package/dist/ui/{player-slider → player/slider}/index.d.ts +0 -2
  88. package/dist/ui/{player-slider → player/slider}/index.js +0 -1
  89. package/dist/ui/player/slider/types.d.ts +16 -0
  90. package/dist/ui/player/slider/types.js +1 -0
  91. package/package.json +4 -4
  92. package/dist/posts/posts-player/operations.generated.d.ts +0 -80
  93. package/dist/posts/posts-player/operations.generated.js +0 -229
  94. package/dist/posts/posts-player/operations.graphql +0 -7
  95. package/dist/short-videos/data-providers/operations.graphql +0 -9
  96. package/dist/streams/stream-player/internal-stream-player-data-provider.d.ts +0 -12
  97. package/dist/streams/stream-player/internal-stream-player-data-provider.js +0 -48
  98. package/dist/streams/stream-player/stream-player-buffer.svelte.d.ts +0 -28
  99. package/dist/streams/stream-player/stream-player-buffer.svelte.js +0 -79
  100. package/dist/streams/stream-player/stream-player-view.svelte.d.ts +0 -8
  101. package/dist/ui/player-button/types.js +0 -1
  102. package/dist/ui/player-slider/player-buffer.svelte.d.ts +0 -32
  103. package/dist/ui/player-slider/player-buffer.svelte.js +0 -76
  104. package/dist/ui/player-slider/types.d.ts +0 -26
  105. /package/dist/posts/{posts-player → data-loaders}/mapper.js +0 -0
  106. /package/dist/streams/{stream-player → data-loaders}/mapper.js +0 -0
  107. /package/dist/streams/{stream-player → streams-player}/internal-stream-analytics-handler.d.ts +0 -0
  108. /package/dist/streams/{stream-player → streams-player}/internal-stream-analytics-handler.js +0 -0
  109. /package/dist/streams/{stream-player → streams-player}/stream-player-localization.d.ts +0 -0
  110. /package/dist/streams/{stream-player → streams-player}/stream-player-localization.js +0 -0
  111. /package/dist/streams/{stream-player → streams-player}/types.js +0 -0
  112. /package/dist/ui/{player-button → player/button}/cmp.player-buttons-group.svelte.d.ts +0 -0
  113. /package/dist/ui/{player-button → player/button}/index.d.ts +0 -0
  114. /package/dist/ui/{player-button → player/button}/index.js +0 -0
  115. /package/dist/ui/{player-slider → player/providers}/types.js +0 -0
  116. /package/dist/ui/{player-slider → player/slider}/prevent-slider-scroll.d.ts +0 -0
  117. /package/dist/ui/{player-slider → player/slider}/prevent-slider-scroll.js +0 -0
  118. /package/dist/ui/{player-slider → player/slider}/wheel-gestures-adapter.d.ts +0 -0
  119. /package/dist/ui/{player-slider → player/slider}/wheel-gestures-adapter.js +0 -0
@@ -11,7 +11,7 @@ import { ContentPlayerLocalization } from './content-player-localization';
11
11
  import { handleEsc } from '../core/document.event-handlers';
12
12
  import { PostViewer } from '../posts/post-viewer';
13
13
  import { Loading } from '../ui/loading';
14
- import { PlayerSlider } from '../ui/player-slider';
14
+ import { PlayerSlider } from '../ui/player/slider';
15
15
  import { SwipeIndicator } from '../ui/swipe-indicator';
16
16
  import { default as ControlsAndAttachments } from './controls-and-attachments.svelte';
17
17
  import { default as Header } from './header.svelte';
@@ -1,8 +1,8 @@
1
1
  import type { MediaCenterData } from '../media-center/model/types';
2
2
  import { type IPostModel, PostModel } from '../posts/model';
3
3
  import type { IPostSocialInteractionsHandler } from '../posts/social-interactions';
4
- import type { IPlayerBuffer } from '../ui/player-slider';
5
- import type { PlayerSliderCallbacks } from '../ui/player-slider/types';
4
+ import type { IPlayerBuffer } from '../ui/player/providers';
5
+ import type { PlayerSliderCallbacks } from '../ui/player/slider/types';
6
6
  import { ContentPlayerSettings } from './content-player-settings';
7
7
  import { ContentPlayerUIManager } from './ui-manager.svelte';
8
8
  export declare class ContentPlayerConfig<T extends {
@@ -11,7 +11,7 @@ export declare class ContentPlayerConfig<T extends {
11
11
  playerBuffer: IPlayerBuffer<T> | null;
12
12
  readonly settings: ContentPlayerSettings;
13
13
  readonly callbacks: ContentPlayerCallbacks | null;
14
- readonly playerSliderCallbacks: PlayerSliderCallbacks<T> | undefined;
14
+ readonly playerSliderCallbacks: PlayerSliderCallbacks | undefined;
15
15
  readonly socialInteractionsHandler: IPostSocialInteractionsHandler | undefined;
16
16
  readonly uiManager: ContentPlayerUIManager;
17
17
  private _mediaCenterData;
@@ -25,7 +25,7 @@ export declare class ContentPlayerConfig<T extends {
25
25
  mediaCenterData?: MediaCenterData;
26
26
  settings?: ContentPlayerSettings;
27
27
  callbacks?: ContentPlayerCallbacks;
28
- playerSliderCallbacks?: PlayerSliderCallbacks<T>;
28
+ playerSliderCallbacks?: PlayerSliderCallbacks;
29
29
  trackingParams?: ContentPlayerTrackingParams | null;
30
30
  });
31
31
  get mediaCenterControlsPanel(): MediaCenterData['controlsPanel'] | null;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">import { slideHorizontally } from '../core/transitions';
2
2
  import { PostAttachments } from '../posts/attachments';
3
3
  import { PostControls } from '../posts/controls';
4
- import { PlayerButton } from '../ui/player-button';
4
+ import { PlayerButton } from '../ui/player/button';
5
5
  import { ContentPlayerConfig } from './content-player-config.svelte';
6
6
  import IconChevronDown from '@fluentui/svg-icons/icons/chevron_down_28_regular.svg?raw';
7
7
  import IconChevronUp from '@fluentui/svg-icons/icons/chevron_up_28_regular.svg?raw';
@@ -1,4 +1,4 @@
1
- <script lang="ts">import { PlayerButton } from '../ui/player-button';
1
+ <script lang="ts">import { PlayerButton } from '../ui/player/button';
2
2
  import { ContentPlayerConfig } from './content-player-config.svelte';
3
3
  import { ContentPlayerLocalization } from './content-player-localization';
4
4
  import IconDismiss from '@fluentui/svg-icons/icons/dismiss_28_regular.svg?raw';
@@ -1 +1,2 @@
1
1
  export declare const handleEsc: (event: KeyboardEvent, callback: () => void) => void;
2
+ export declare const isTouchDevice: () => boolean;
@@ -3,3 +3,6 @@ export const handleEsc = (event, callback) => {
3
3
  callback();
4
4
  }
5
5
  };
6
+ export const isTouchDevice = () => {
7
+ return 'ontouchstart' in window || navigator.maxTouchPoints > 0;
8
+ };
@@ -1,5 +1,5 @@
1
1
  import type { IPostAnalyticsHandler } from '../../posts/posts-player/types';
2
- import type { IStreamAnalyticsHandler } from '../../streams/stream-player/types';
2
+ import type { IStreamAnalyticsHandler } from '../../streams/streams-player/types';
3
3
  export declare class InternalMediaCenterAnalyticsHandler implements IPostAnalyticsHandler, IStreamAnalyticsHandler {
4
4
  constructor(graphqlOrigin: string | undefined);
5
5
  setOrganizationId: (organizationId: string) => void;
@@ -1,11 +1,11 @@
1
1
  import { Status, StreamStatus } from '../../core/enums';
2
2
  import { createLocalGQLClient } from '../../core/graphql';
3
3
  import { MockCategoryFollowingProvider } from '../categories-following/mock-categories-following-handler.svelte';
4
- import { mapToPostPlayerModel } from '../../posts/posts-player/mapper';
4
+ import { getPostsCursor } from '../../posts/data-loaders';
5
5
  import { MockPostSocialInteractionsHandler } from '../../posts/social-interactions/mock-post-social-interactions-handler.svelte';
6
- import { InternalStreamPlayerDataProvider } from '../../streams/stream-player/internal-stream-player-data-provider';
6
+ import { getStreamPagesCursor, getStreamsCursor } from '../../streams/data-loaders';
7
7
  import { InternalMediaCenterAnalyticsHandler } from './internal-media-center-analytics-handler';
8
- import { GetMediaPageConfigDocument, GetPostsDocument, GetStreamsDocument } from './operations.generated';
8
+ import { GetMediaPageConfigDocument } from './operations.generated';
9
9
  export class InternalMediaCenterConfig {
10
10
  mediaPageId;
11
11
  postsPlayer;
@@ -17,52 +17,42 @@ export class InternalMediaCenterConfig {
17
17
  this.graphql = createLocalGQLClient(graphqlOrigin);
18
18
  this.postsPlayer = {
19
19
  getPostsCursor: async ({ filter, limit, continuationToken }) => {
20
- const payload = await this.graphql
21
- .query(GetPostsDocument, {
22
- input: {
23
- filter: {
24
- mediaPageId: this.mediaPageId,
25
- types: filter.types,
26
- statuses: [Status.Published],
27
- categoryId: filter.categoryId,
28
- excludeIds: filter.excludeIds
29
- },
30
- limit,
31
- continuationToken
32
- }
33
- })
34
- .toPromise();
35
- const posts = payload.data?.posts?.items || [];
36
- return {
37
- items: posts.map(mapToPostPlayerModel),
38
- continuationToken: payload.data?.posts?.continuationToken || null
39
- };
20
+ return await getPostsCursor({
21
+ filter: {
22
+ mediaPageId: this.mediaPageId,
23
+ types: filter.types,
24
+ statuses: [Status.Published],
25
+ categoryId: filter.categoryId,
26
+ excludeIds: filter.excludeIds
27
+ },
28
+ continuationToken,
29
+ limit,
30
+ graphql: this.graphql
31
+ });
40
32
  }
41
33
  };
42
34
  this.streamPlayer = {
43
35
  getStreamsCursor: async ({ filter, limit, continuationToken }) => {
44
- const payload = await this.graphql
45
- .query(GetStreamsDocument, {
46
- input: {
47
- filter: {
48
- mediaPageId: this.mediaPageId,
49
- categoryId: filter.categoryId,
50
- excludeIds: filter.excludeIds,
51
- statuses: [StreamStatus.Published],
52
- showInFeed: true
53
- },
54
- limit,
55
- continuationToken
56
- }
57
- })
58
- .toPromise();
59
- const streams = payload.data?.streams.items ?? [];
60
- return {
61
- items: streams.map((x) => ({ id: x.id, title: x.title, subTitle: x.subTitle, cover: x.cover?.url ?? null })),
62
- continuationToken: payload.data?.streams?.continuationToken ?? null
63
- };
36
+ return await getStreamsCursor({
37
+ filter: {
38
+ mediaPageId: this.mediaPageId,
39
+ categoryId: filter.categoryId,
40
+ excludeIds: filter.excludeIds,
41
+ statuses: [StreamStatus.Published],
42
+ showInFeed: true
43
+ },
44
+ limit,
45
+ continuationToken,
46
+ graphql: this.graphql
47
+ });
64
48
  },
65
- streamPlayerDataProvider: new InternalStreamPlayerDataProvider({ graphql: this.graphql })
49
+ getStreamPages: async (streamId, continuationToken) => {
50
+ return await getStreamPagesCursor({
51
+ streamId,
52
+ continuationToken,
53
+ graphql: this.graphql
54
+ });
55
+ }
66
56
  };
67
57
  this.handlers = {
68
58
  analyticsHandler: new InternalMediaCenterAnalyticsHandler(graphqlOrigin),
@@ -23,108 +23,4 @@ export type GetMediaPageConfigQuery = {
23
23
  } | null;
24
24
  } | null;
25
25
  };
26
- export type GetPostsQueryVariables = SchemaTypes.Exact<{
27
- input: SchemaTypes.EmbedPostsInput;
28
- image_scale?: SchemaTypes.InputMaybe<SchemaTypes.ImageScale>;
29
- }>;
30
- export type GetPostsQuery = {
31
- posts: {
32
- continuationToken: string | null;
33
- items: Array<{
34
- id: string;
35
- enableSocialInteractions: boolean;
36
- ownerProfile: {
37
- id: string;
38
- type: SchemaTypes.ProfileType;
39
- };
40
- allProducts: Array<{
41
- id: string;
42
- title: string;
43
- shortDescription: string | null;
44
- link: string | null;
45
- media: Array<{
46
- url: string;
47
- thumbnailUrl: string | null;
48
- type: SchemaTypes.MediaType;
49
- }>;
50
- brand: {
51
- name: string;
52
- } | null;
53
- priceAndAvailability: {
54
- currency: SchemaTypes.Currency;
55
- price: number;
56
- productSalePrices: Array<{
57
- salePrice: number;
58
- salePriceEffectiveDateFrom: any | null;
59
- salePriceEffectiveDateTo: any | null;
60
- }> | null;
61
- };
62
- }>;
63
- ad: {
64
- id: string;
65
- title: string;
66
- description: string | null;
67
- price: number | null;
68
- priceInfo: string | null;
69
- currency: SchemaTypes.Currency | null;
70
- type: SchemaTypes.AdType;
71
- ctaButton: {
72
- background: string;
73
- textColor: string;
74
- text: string;
75
- url: string;
76
- border: string;
77
- } | null;
78
- media: Array<{
79
- url: string;
80
- thumbnailUrl: string | null;
81
- type: SchemaTypes.MediaType;
82
- }>;
83
- } | null;
84
- postData: {
85
- media: Array<{
86
- url: string;
87
- thumbnailUrl: string | null;
88
- type: SchemaTypes.MediaType;
89
- }>;
90
- articleData: {
91
- title: string;
92
- kicker: string | null;
93
- articleId: string;
94
- } | null;
95
- mediaData: {
96
- text: string | null;
97
- } | null;
98
- momentData: {
99
- text: string | null;
100
- } | null;
101
- shortVideoData: {
102
- text: string | null;
103
- } | null;
104
- videoData: {
105
- title: string | null;
106
- text: string | null;
107
- } | null;
108
- };
109
- }>;
110
- };
111
- };
112
- export type GetStreamsQueryVariables = SchemaTypes.Exact<{
113
- input: SchemaTypes.EmbedStreamsInput;
114
- }>;
115
- export type GetStreamsQuery = {
116
- streams: {
117
- continuationToken: string | null;
118
- items: Array<{
119
- id: string;
120
- title: string;
121
- subTitle: string | null;
122
- cover: {
123
- url: string;
124
- } | null;
125
- }>;
126
- };
127
- };
128
26
  export declare const GetMediaPageConfigDocument: DocumentNode<GetMediaPageConfigQuery, GetMediaPageConfigQueryVariables>;
129
- export declare const GetPostsDocument: DocumentNode<GetPostsQuery, GetPostsQueryVariables>;
130
- export declare const GetStreamsDocument: DocumentNode<GetStreamsQuery, GetStreamsQueryVariables>;
@@ -84,323 +84,3 @@ export const GetMediaPageConfigDocument = {
84
84
  }
85
85
  ]
86
86
  };
87
- export const GetPostsDocument = {
88
- kind: 'Document',
89
- definitions: [
90
- {
91
- kind: 'OperationDefinition',
92
- operation: 'query',
93
- name: { kind: 'Name', value: 'GetPosts' },
94
- variableDefinitions: [
95
- {
96
- kind: 'VariableDefinition',
97
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
98
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'EmbedPostsInput' } } }
99
- },
100
- {
101
- kind: 'VariableDefinition',
102
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } },
103
- type: { kind: 'NamedType', name: { kind: 'Name', value: 'ImageScale' } },
104
- defaultValue: { kind: 'EnumValue', value: 'ORIGINAL_ENCODED' }
105
- }
106
- ],
107
- selectionSet: {
108
- kind: 'SelectionSet',
109
- selections: [
110
- {
111
- kind: 'Field',
112
- alias: { kind: 'Name', value: 'posts' },
113
- name: { kind: 'Name', value: 'embedPosts' },
114
- arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'input' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } } }],
115
- selectionSet: {
116
- kind: 'SelectionSet',
117
- selections: [
118
- {
119
- kind: 'Field',
120
- name: { kind: 'Name', value: 'items' },
121
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'PostsPlayerPayloadFragment' } }] }
122
- },
123
- { kind: 'Field', name: { kind: 'Name', value: 'continuationToken' } }
124
- ]
125
- }
126
- }
127
- ]
128
- }
129
- },
130
- {
131
- kind: 'FragmentDefinition',
132
- name: { kind: 'Name', value: 'PostViewerPayloadFragment' },
133
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } },
134
- selectionSet: {
135
- kind: 'SelectionSet',
136
- selections: [
137
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
138
- { kind: 'Field', name: { kind: 'Name', value: 'enableSocialInteractions' } },
139
- {
140
- kind: 'Field',
141
- name: { kind: 'Name', value: 'allProducts' },
142
- selectionSet: {
143
- kind: 'SelectionSet',
144
- selections: [
145
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
146
- { kind: 'Field', name: { kind: 'Name', value: 'title' } },
147
- { kind: 'Field', name: { kind: 'Name', value: 'shortDescription' } },
148
- { kind: 'Field', name: { kind: 'Name', value: 'link' } },
149
- {
150
- kind: 'Field',
151
- name: { kind: 'Name', value: 'media' },
152
- selectionSet: {
153
- kind: 'SelectionSet',
154
- selections: [
155
- {
156
- kind: 'Field',
157
- name: { kind: 'Name', value: 'url' },
158
- arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'EnumValue', value: 'SMALL' } }]
159
- },
160
- {
161
- kind: 'Field',
162
- name: { kind: 'Name', value: 'thumbnailUrl' },
163
- arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'EnumValue', value: 'SMALL' } }]
164
- },
165
- { kind: 'Field', name: { kind: 'Name', value: 'type' } }
166
- ]
167
- }
168
- },
169
- {
170
- kind: 'Field',
171
- name: { kind: 'Name', value: 'brand' },
172
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'name' } }] }
173
- },
174
- {
175
- kind: 'Field',
176
- name: { kind: 'Name', value: 'priceAndAvailability' },
177
- selectionSet: {
178
- kind: 'SelectionSet',
179
- selections: [
180
- { kind: 'Field', name: { kind: 'Name', value: 'currency' } },
181
- { kind: 'Field', name: { kind: 'Name', value: 'price' } },
182
- {
183
- kind: 'Field',
184
- name: { kind: 'Name', value: 'productSalePrices' },
185
- selectionSet: {
186
- kind: 'SelectionSet',
187
- selections: [
188
- { kind: 'Field', name: { kind: 'Name', value: 'salePrice' } },
189
- { kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateFrom' } },
190
- { kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateTo' } }
191
- ]
192
- }
193
- }
194
- ]
195
- }
196
- }
197
- ]
198
- }
199
- },
200
- {
201
- kind: 'Field',
202
- name: { kind: 'Name', value: 'ad' },
203
- selectionSet: {
204
- kind: 'SelectionSet',
205
- selections: [
206
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
207
- { kind: 'Field', name: { kind: 'Name', value: 'title' } },
208
- { kind: 'Field', name: { kind: 'Name', value: 'description' } },
209
- { kind: 'Field', name: { kind: 'Name', value: 'price' } },
210
- { kind: 'Field', name: { kind: 'Name', value: 'priceInfo' } },
211
- { kind: 'Field', name: { kind: 'Name', value: 'currency' } },
212
- {
213
- kind: 'Field',
214
- name: { kind: 'Name', value: 'ctaButton' },
215
- selectionSet: {
216
- kind: 'SelectionSet',
217
- selections: [
218
- { kind: 'Field', name: { kind: 'Name', value: 'background' } },
219
- { kind: 'Field', name: { kind: 'Name', value: 'textColor' } },
220
- { kind: 'Field', name: { kind: 'Name', value: 'text' } },
221
- { kind: 'Field', name: { kind: 'Name', value: 'url' } },
222
- { kind: 'Field', name: { kind: 'Name', value: 'border' } }
223
- ]
224
- }
225
- },
226
- { kind: 'Field', name: { kind: 'Name', value: 'type' } },
227
- {
228
- kind: 'Field',
229
- name: { kind: 'Name', value: 'media' },
230
- selectionSet: {
231
- kind: 'SelectionSet',
232
- selections: [
233
- {
234
- kind: 'Field',
235
- name: { kind: 'Name', value: 'url' },
236
- arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'EnumValue', value: 'SMALL' } }]
237
- },
238
- {
239
- kind: 'Field',
240
- name: { kind: 'Name', value: 'thumbnailUrl' },
241
- arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'EnumValue', value: 'SMALL' } }]
242
- },
243
- { kind: 'Field', name: { kind: 'Name', value: 'type' } }
244
- ]
245
- }
246
- }
247
- ]
248
- }
249
- },
250
- {
251
- kind: 'Field',
252
- name: { kind: 'Name', value: 'postData' },
253
- selectionSet: {
254
- kind: 'SelectionSet',
255
- selections: [
256
- {
257
- kind: 'Field',
258
- name: { kind: 'Name', value: 'media' },
259
- selectionSet: {
260
- kind: 'SelectionSet',
261
- selections: [
262
- {
263
- kind: 'Field',
264
- name: { kind: 'Name', value: 'url' },
265
- arguments: [
266
- {
267
- kind: 'Argument',
268
- name: { kind: 'Name', value: 'scale' },
269
- value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } }
270
- }
271
- ]
272
- },
273
- {
274
- kind: 'Field',
275
- name: { kind: 'Name', value: 'thumbnailUrl' },
276
- arguments: [
277
- {
278
- kind: 'Argument',
279
- name: { kind: 'Name', value: 'scale' },
280
- value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } }
281
- }
282
- ]
283
- },
284
- { kind: 'Field', name: { kind: 'Name', value: 'type' } }
285
- ]
286
- }
287
- },
288
- {
289
- kind: 'Field',
290
- name: { kind: 'Name', value: 'articleData' },
291
- selectionSet: {
292
- kind: 'SelectionSet',
293
- selections: [
294
- { kind: 'Field', name: { kind: 'Name', value: 'title' } },
295
- { kind: 'Field', name: { kind: 'Name', value: 'kicker' } },
296
- { kind: 'Field', name: { kind: 'Name', value: 'articleId' } }
297
- ]
298
- }
299
- },
300
- {
301
- kind: 'Field',
302
- name: { kind: 'Name', value: 'mediaData' },
303
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'text' } }] }
304
- },
305
- {
306
- kind: 'Field',
307
- name: { kind: 'Name', value: 'momentData' },
308
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'text' } }] }
309
- },
310
- {
311
- kind: 'Field',
312
- name: { kind: 'Name', value: 'shortVideoData' },
313
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'text' } }] }
314
- },
315
- {
316
- kind: 'Field',
317
- name: { kind: 'Name', value: 'videoData' },
318
- selectionSet: {
319
- kind: 'SelectionSet',
320
- selections: [
321
- { kind: 'Field', name: { kind: 'Name', value: 'title' } },
322
- { kind: 'Field', name: { kind: 'Name', value: 'text' } }
323
- ]
324
- }
325
- }
326
- ]
327
- }
328
- }
329
- ]
330
- }
331
- },
332
- {
333
- kind: 'FragmentDefinition',
334
- name: { kind: 'Name', value: 'PostsPlayerPayloadFragment' },
335
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } },
336
- selectionSet: {
337
- kind: 'SelectionSet',
338
- selections: [
339
- { kind: 'FragmentSpread', name: { kind: 'Name', value: 'PostViewerPayloadFragment' } },
340
- {
341
- kind: 'Field',
342
- name: { kind: 'Name', value: 'ownerProfile' },
343
- selectionSet: {
344
- kind: 'SelectionSet',
345
- selections: [
346
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
347
- { kind: 'Field', name: { kind: 'Name', value: 'type' } }
348
- ]
349
- }
350
- }
351
- ]
352
- }
353
- }
354
- ]
355
- };
356
- export const GetStreamsDocument = {
357
- kind: 'Document',
358
- definitions: [
359
- {
360
- kind: 'OperationDefinition',
361
- operation: 'query',
362
- name: { kind: 'Name', value: 'GetStreams' },
363
- variableDefinitions: [
364
- {
365
- kind: 'VariableDefinition',
366
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'input' } },
367
- type: { kind: 'NonNullType', type: { kind: 'NamedType', name: { kind: 'Name', value: 'EmbedStreamsInput' } } }
368
- }
369
- ],
370
- selectionSet: {
371
- kind: 'SelectionSet',
372
- selections: [
373
- {
374
- kind: 'Field',
375
- alias: { kind: 'Name', value: 'streams' },
376
- name: { kind: 'Name', value: 'embedStreams' },
377
- arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'input' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'input' } } }],
378
- selectionSet: {
379
- kind: 'SelectionSet',
380
- selections: [
381
- {
382
- kind: 'Field',
383
- name: { kind: 'Name', value: 'items' },
384
- selectionSet: {
385
- kind: 'SelectionSet',
386
- selections: [
387
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
388
- {
389
- kind: 'Field',
390
- name: { kind: 'Name', value: 'cover' },
391
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'url' } }] }
392
- },
393
- { kind: 'Field', name: { kind: 'Name', value: 'title' } },
394
- { kind: 'Field', name: { kind: 'Name', value: 'subTitle' } }
395
- ]
396
- }
397
- },
398
- { kind: 'Field', name: { kind: 'Name', value: 'continuationToken' } }
399
- ]
400
- }
401
- }
402
- ]
403
- }
404
- }
405
- ]
406
- };
@@ -18,27 +18,3 @@ query GetMediaPageConfig($mediaPageId: String!) {
18
18
  }
19
19
  }
20
20
  }
21
-
22
- # noinspection GraphQLSchemaValidation
23
- query GetPosts($input: EmbedPostsInput!, $image_scale: ImageScale = ORIGINAL_ENCODED) {
24
- posts: embedPosts(input: $input) {
25
- items {
26
- ...PostsPlayerPayloadFragment
27
- }
28
- continuationToken
29
- }
30
- }
31
-
32
- query GetStreams($input: EmbedStreamsInput!) {
33
- streams: embedStreams(input: $input) {
34
- items {
35
- id
36
- cover {
37
- url
38
- }
39
- title
40
- subTitle
41
- }
42
- continuationToken
43
- }
44
- }