@quesmed/types 2.1.13 → 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/dist/cjs/models/Type.d.ts +0 -1
- package/dist/cjs/models/Video.d.ts +6 -0
- package/dist/cjs/models/Video.js +8 -0
- package/dist/cjs/resolvers/mutation/restricted/notification.d.ts +1 -1
- package/dist/cjs/resolvers/query/restricted/video.d.ts +4 -2
- package/dist/cjs/resolvers/query/restricted/video.js +7 -2
- package/dist/cjs/resolvers/query/video.js +12 -2
- package/dist/mjs/models/Type.d.ts +0 -1
- package/dist/mjs/models/Video.d.ts +6 -0
- package/dist/mjs/models/Video.js +7 -1
- package/dist/mjs/resolvers/mutation/restricted/notification.d.ts +1 -1
- package/dist/mjs/resolvers/query/restricted/video.d.ts +4 -2
- package/dist/mjs/resolvers/query/restricted/video.js +7 -2
- package/dist/mjs/resolvers/query/video.js +12 -2
- package/package.json +1 -1
|
@@ -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/dist/cjs/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 = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ENotificationActionType, ENotificationType, Id, INotification } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export interface IAddNotificationInput {
|
|
4
|
-
|
|
4
|
+
fromUserId: Id | null;
|
|
5
5
|
userId: Id | null;
|
|
6
6
|
commentId: Id | null;
|
|
7
7
|
conceptId: Id | null;
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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/dist/mjs/models/Video.js
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var EVideoFilter;
|
|
2
|
+
(function (EVideoFilter) {
|
|
3
|
+
EVideoFilter[EVideoFilter["NEW"] = 0] = "NEW";
|
|
4
|
+
EVideoFilter[EVideoFilter["POPULAR"] = 1] = "POPULAR";
|
|
5
|
+
EVideoFilter[EVideoFilter["PERSONAL"] = 2] = "PERSONAL";
|
|
6
|
+
EVideoFilter[EVideoFilter["LIVE"] = 3] = "LIVE";
|
|
7
|
+
})(EVideoFilter || (EVideoFilter = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ENotificationActionType, ENotificationType, Id, INotification } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export interface IAddNotificationInput {
|
|
4
|
-
|
|
4
|
+
fromUserId: Id | null;
|
|
5
5
|
userId: Id | null;
|
|
6
6
|
commentId: Id | null;
|
|
7
7
|
conceptId: Id | null;
|
|
@@ -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
|
}
|
|
@@ -63,9 +63,14 @@ export const VIDEO = gql `
|
|
|
63
63
|
}
|
|
64
64
|
`;
|
|
65
65
|
export const VIDEOS = gql `
|
|
66
|
-
query Videos($filter:
|
|
66
|
+
query Videos($platform: Int!, $filter: Int!, $search: String, $limit: Int!) {
|
|
67
67
|
restricted {
|
|
68
|
-
videos(
|
|
68
|
+
videos(
|
|
69
|
+
platform: $platform
|
|
70
|
+
filter: $filter
|
|
71
|
+
search: $search
|
|
72
|
+
limit: $limit
|
|
73
|
+
) {
|
|
69
74
|
id
|
|
70
75
|
title
|
|
71
76
|
museId
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
import { PICTURE_FIELDS, VIDEO_FILE_FIELDS } from '../fragments';
|
|
3
3
|
export const SAMPLE_VIDEOS = gql `
|
|
4
|
-
query SampleVideos(
|
|
5
|
-
|
|
4
|
+
query SampleVideos(
|
|
5
|
+
$platform: Int!
|
|
6
|
+
$filter: Int!
|
|
7
|
+
$search: String
|
|
8
|
+
$limit: Int!
|
|
9
|
+
) {
|
|
10
|
+
videos(
|
|
11
|
+
platform: $platform
|
|
12
|
+
filter: $filter
|
|
13
|
+
search: $search
|
|
14
|
+
limit: $limit
|
|
15
|
+
) {
|
|
6
16
|
id
|
|
7
17
|
title
|
|
8
18
|
museId
|