@quesmed/types 1.4.2 → 1.4.6
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/Author.d.ts +2 -2
- package/models/Book.d.ts +3 -3
- package/models/Chapter.d.ts +2 -2
- package/models/Concept.d.ts +2 -2
- package/models/Feedback.d.ts +1 -1
- package/models/File.d.ts +2 -2
- package/models/Picture.d.ts +2 -2
- package/models/Picture.js +0 -4
- package/models/Picture.mjs +0 -4
- package/models/Promo.d.ts +2 -2
- package/models/Subscription.d.ts +1 -1
- package/models/Video.d.ts +11 -11
- package/package.json +1 -1
- package/resolvers/mutation/restricted/agora.d.ts +3 -1
- package/resolvers/mutation/restricted/agora.js +9 -0
- package/resolvers/mutation/restricted/agora.mjs +8 -1
- package/resolvers/query/restricted/osce.d.ts +1 -1
- package/resolvers/subscription/osce.d.ts +4 -2
package/models/Author.d.ts
CHANGED
package/models/Book.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { IAuthor } from './Author';
|
|
|
2
2
|
import { Id } from './Type';
|
|
3
3
|
export interface IBook {
|
|
4
4
|
id: Id;
|
|
5
|
-
createdAt:
|
|
6
|
-
updatedAt:
|
|
5
|
+
createdAt: number;
|
|
6
|
+
updatedAt: number;
|
|
7
7
|
name: string;
|
|
8
8
|
publisher: string;
|
|
9
|
-
publishDate:
|
|
9
|
+
publishDate: number;
|
|
10
10
|
pages: number;
|
|
11
11
|
format: string;
|
|
12
12
|
language: string;
|
package/models/Chapter.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { ETopicType } from './Topic';
|
|
|
4
4
|
import { Id } from './Type';
|
|
5
5
|
export interface IChapter {
|
|
6
6
|
id: Id;
|
|
7
|
-
createdAt:
|
|
8
|
-
updatedAt:
|
|
7
|
+
createdAt: number;
|
|
8
|
+
updatedAt: number;
|
|
9
9
|
explanation: string | null;
|
|
10
10
|
typeId: ETopicType | null;
|
|
11
11
|
pictures: IChapterPicture[];
|
package/models/Concept.d.ts
CHANGED
package/models/Feedback.d.ts
CHANGED
package/models/File.d.ts
CHANGED
package/models/Picture.d.ts
CHANGED
package/models/Picture.js
CHANGED
package/models/Promo.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Id } from './Type';
|
|
2
2
|
export interface ICoupon {
|
|
3
3
|
id: Id;
|
|
4
|
-
createdAt:
|
|
4
|
+
createdAt: number;
|
|
5
5
|
name: string;
|
|
6
6
|
affiliateId: Id;
|
|
7
7
|
}
|
|
8
8
|
export interface IPromoReport {
|
|
9
9
|
id: Id;
|
|
10
|
-
date:
|
|
10
|
+
date: number;
|
|
11
11
|
couponId: Id;
|
|
12
12
|
userId: Id;
|
|
13
13
|
subscriptionId: Id;
|
package/models/Subscription.d.ts
CHANGED
package/models/Video.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IConcept } from
|
|
2
|
-
import { IFile } from
|
|
3
|
-
import { Id } from
|
|
1
|
+
import { IConcept } from './Concept';
|
|
2
|
+
import { IFile } from './File';
|
|
3
|
+
import { Id } from './Type';
|
|
4
4
|
export interface IVideo {
|
|
5
5
|
id: Id;
|
|
6
|
-
createdAt:
|
|
7
|
-
updatedAt:
|
|
8
|
-
startTime:
|
|
9
|
-
endTime:
|
|
6
|
+
createdAt: number;
|
|
7
|
+
updatedAt: number;
|
|
8
|
+
startTime: number;
|
|
9
|
+
endTime: number;
|
|
10
10
|
title: string;
|
|
11
11
|
museId: string;
|
|
12
12
|
thumbnail: string;
|
|
@@ -16,8 +16,8 @@ export interface IVideo {
|
|
|
16
16
|
duration: number;
|
|
17
17
|
concepts: IConcept[];
|
|
18
18
|
files: IFile[];
|
|
19
|
-
send1hrPushAt:
|
|
20
|
-
sent1hrPushAt:
|
|
21
|
-
send24hrPushAt:
|
|
22
|
-
sent24hrPushAt:
|
|
19
|
+
send1hrPushAt: number | null;
|
|
20
|
+
sent1hrPushAt: number | null;
|
|
21
|
+
send24hrPushAt: number | null;
|
|
22
|
+
sent24hrPushAt: number | null;
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { EPlatformId } from '../../..';
|
|
2
2
|
import { Id } from '../../../models';
|
|
3
|
+
import { RestrictedData } from '../../types';
|
|
4
|
+
export declare const AGORA_TOKEN: import("@apollo/client").DocumentNode;
|
|
3
5
|
export interface IAgoraTokenVar {
|
|
4
6
|
platformId: EPlatformId;
|
|
5
7
|
channel: string;
|
|
6
8
|
uid: Id;
|
|
7
9
|
}
|
|
8
|
-
export declare type IAgoraTokenData = string
|
|
10
|
+
export declare type IAgoraTokenData = RestrictedData<string, 'agoraToken'>;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGORA_TOKEN = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.AGORA_TOKEN = (0, client_1.gql) `
|
|
6
|
+
mutation AgoraToken($platformId: Int!, $channel: String!, $uid: Int!) {
|
|
7
|
+
restricted {
|
|
8
|
+
agoraToken(platformId: $platformId, channel: $channel, uid: $uid)
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
@@ -32,7 +32,7 @@ export interface IOsceStationVar {
|
|
|
32
32
|
export declare type IOsceStationData = RestrictedData<graphqlNormalize & IOsceStation, 'osceStation'>;
|
|
33
33
|
export declare const OSCE_TOPICS: import("@apollo/client").DocumentNode;
|
|
34
34
|
export declare type IOsceTopicsVar = null;
|
|
35
|
-
export declare type IOsceTopicsData = RestrictedData<graphqlNormalize & ITopic, 'osceTopics'>;
|
|
35
|
+
export declare type IOsceTopicsData = RestrictedData<(graphqlNormalize & ITopic)[], 'osceTopics'>;
|
|
36
36
|
export declare const SEARCH_OSCE_STATIONS: import("@apollo/client").DocumentNode;
|
|
37
37
|
export interface ISearchOsceStationsVar {
|
|
38
38
|
search: string;
|
|
@@ -32,7 +32,7 @@ export interface IOsceMarksheetAction {
|
|
|
32
32
|
endedAt: Date | null;
|
|
33
33
|
action: EOsceMarksheetAction;
|
|
34
34
|
}
|
|
35
|
-
export declare type IOsceMarksheetActionData = RootData<
|
|
35
|
+
export declare type IOsceMarksheetActionData = RootData<IOsceMarksheetAction, 'osceMarksheetAction'>;
|
|
36
36
|
export declare const OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
|
|
37
37
|
export interface IOsceMatchmakingAction {
|
|
38
38
|
osceMarksheetId: Id;
|
|
@@ -46,7 +46,9 @@ export interface IOsceMatchmakingAction {
|
|
|
46
46
|
completed: boolean;
|
|
47
47
|
}
|
|
48
48
|
export declare type IOsceMatchmakingData = RootData<IOsceMatchmakingAction, 'osceMatchmaking'>;
|
|
49
|
-
export
|
|
49
|
+
export interface IOsceMatchmakingVar {
|
|
50
|
+
userId: Id;
|
|
51
|
+
}
|
|
50
52
|
export declare const OSCE_MATCHMAKING_USERS: import("@apollo/client").DocumentNode;
|
|
51
53
|
export declare type IOsceMatchmakingUsersData = RootData<number, 'osceMatchmakingUsers'>;
|
|
52
54
|
export declare type IOsceMatchmakingUsersVar = null;
|