@quesmed/types-rn 2.1.15 → 2.1.16
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.
package/models/Type.d.ts
CHANGED
package/models/Type.js
CHANGED
package/models/Video.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import { IConcept } from './Concept';
|
|
|
2
2
|
import { IFile } from './File';
|
|
3
3
|
import { IOsceStation } from './OsceStation';
|
|
4
4
|
import { Id } from './Type';
|
|
5
|
+
export declare enum EVideoFilter {
|
|
6
|
+
NEW = 0,
|
|
7
|
+
POPULAR = 1,
|
|
8
|
+
PERSONAL = 2,
|
|
9
|
+
LIVE = 3
|
|
10
|
+
}
|
|
5
11
|
export interface IVideo {
|
|
6
12
|
id: Id;
|
|
7
13
|
createdAt: number | Date;
|
package/models/Video.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EVideoFilter = void 0;
|
|
4
|
+
var EVideoFilter;
|
|
5
|
+
(function (EVideoFilter) {
|
|
6
|
+
EVideoFilter[EVideoFilter["NEW"] = 0] = "NEW";
|
|
7
|
+
EVideoFilter[EVideoFilter["POPULAR"] = 1] = "POPULAR";
|
|
8
|
+
EVideoFilter[EVideoFilter["PERSONAL"] = 2] = "PERSONAL";
|
|
9
|
+
EVideoFilter[EVideoFilter["LIVE"] = 3] = "LIVE";
|
|
10
|
+
})(EVideoFilter = exports.EVideoFilter || (exports.EVideoFilter = {}));
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { Id, IVideo
|
|
1
|
+
import { EVideoFilter, Id, IVideo } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
|
+
import { EPlatformId } from './../../../index';
|
|
3
4
|
export interface IVideoVar {
|
|
4
5
|
id: Id;
|
|
5
6
|
}
|
|
6
7
|
export declare type IVideoData = RestrictedData<graphqlNormalize & IVideo, 'video'>;
|
|
7
8
|
export declare const VIDEO: import("@apollo/client").DocumentNode;
|
|
8
9
|
export interface IVideosVar {
|
|
9
|
-
|
|
10
|
+
platform: EPlatformId;
|
|
11
|
+
filter: EVideoFilter;
|
|
10
12
|
limit: number;
|
|
11
13
|
search?: String;
|
|
12
14
|
}
|
|
@@ -66,9 +66,14 @@ exports.VIDEO = (0, client_1.gql) `
|
|
|
66
66
|
}
|
|
67
67
|
`;
|
|
68
68
|
exports.VIDEOS = (0, client_1.gql) `
|
|
69
|
-
query Videos($filter:
|
|
69
|
+
query Videos($platform: Int!, $filter: Int!, $search: String, $limit: Int!) {
|
|
70
70
|
restricted {
|
|
71
|
-
videos(
|
|
71
|
+
videos(
|
|
72
|
+
platform: $platform
|
|
73
|
+
filter: $filter
|
|
74
|
+
search: $search
|
|
75
|
+
limit: $limit
|
|
76
|
+
) {
|
|
72
77
|
id
|
|
73
78
|
title
|
|
74
79
|
museId
|
package/resolvers/query/video.js
CHANGED
|
@@ -4,8 +4,18 @@ exports.ZOOM_SIGNATURE = exports.SAMPLE_VIDEO = exports.SAMPLE_VIDEOS = void 0;
|
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const fragments_1 = require("../fragments");
|
|
6
6
|
exports.SAMPLE_VIDEOS = (0, client_1.gql) `
|
|
7
|
-
query SampleVideos(
|
|
8
|
-
|
|
7
|
+
query SampleVideos(
|
|
8
|
+
$platform: Int!
|
|
9
|
+
$filter: Int!
|
|
10
|
+
$search: String
|
|
11
|
+
$limit: Int!
|
|
12
|
+
) {
|
|
13
|
+
videos(
|
|
14
|
+
platform: $platform
|
|
15
|
+
filter: $filter
|
|
16
|
+
search: $search
|
|
17
|
+
limit: $limit
|
|
18
|
+
) {
|
|
9
19
|
id
|
|
10
20
|
title
|
|
11
21
|
museId
|