@streamscloud/streams-api-client 2.0.0 → 2.1.1

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.
@@ -0,0 +1,2 @@
1
+ export { DataType, ParameterType } from './types';
2
+ export type { ComponentProps, ParameterValue, Parameters } from './types';
@@ -0,0 +1 @@
1
+ export { DataType, ParameterType } from './types.js';
@@ -0,0 +1,19 @@
1
+ import type { ComponentData } from '../components-data';
2
+ export declare const DataType: {
3
+ Stream: string;
4
+ ShortVideo: string;
5
+ };
6
+ export declare const ParameterType: {
7
+ String: string;
8
+ Text: string;
9
+ Number: string;
10
+ Color: string;
11
+ };
12
+ export type ParameterValue = unknown;
13
+ export type Parameters = {
14
+ [key: string]: ParameterValue;
15
+ };
16
+ export type ComponentProps = {
17
+ parameters?: Parameters;
18
+ data?: ComponentData;
19
+ };
@@ -0,0 +1,12 @@
1
+ const DataType = {
2
+ Stream: 'STREAM',
3
+ ShortVideo: 'SHORT_VIDEO'
4
+ };
5
+ const ParameterType = {
6
+ String: 'STRING',
7
+ Text: 'TEXT',
8
+ Number: 'NUMBER',
9
+ Color: 'COLOR'
10
+ };
11
+
12
+ export { DataType, ParameterType };
@@ -1,3 +1,3 @@
1
- var EmbedStreamsQuery = "query Streams($input: StreamsInput!) {\n streams(input: $input) {\n items {\n id\n cover {\n url\n }\n }\n continuationToken\n }\n}";
1
+ var EmbedStreamsQuery = "query EmbedStreams($input: EmbedStreamsInput!) {\n embedStreams(input: $input) {\n items {\n id\n cover {\n url\n }\n }\n continuationToken\n }\n}";
2
2
 
3
3
  export { EmbedStreamsQuery as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/streams-api-client",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -22,6 +22,10 @@
22
22
  "./services": {
23
23
  "import": "./dist/services/index.js",
24
24
  "types": "./dist/services/index.d.ts"
25
+ },
26
+ "./components": {
27
+ "import": "./dist/components/index.js",
28
+ "types": "./dist/components/index.d.ts"
25
29
  }
26
30
  },
27
31
  "files": [