@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.
@@ -1,8 +1,8 @@
1
1
  import { Id } from './Type';
2
2
  export interface IAuthor {
3
3
  id: Id;
4
- createdAt: string | Date;
5
- updatedAt: string | Date;
4
+ createdAt: number;
5
+ updatedAt: number;
6
6
  name: string;
7
7
  qualifications: string | null;
8
8
  title: string;
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: string | Date;
6
- updatedAt: string | Date;
5
+ createdAt: number;
6
+ updatedAt: number;
7
7
  name: string;
8
8
  publisher: string;
9
- publishDate: string | Date;
9
+ publishDate: number;
10
10
  pages: number;
11
11
  format: string;
12
12
  language: string;
@@ -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: string | Date;
8
- updatedAt: string | Date;
7
+ createdAt: number;
8
+ updatedAt: number;
9
9
  explanation: string | null;
10
10
  typeId: ETopicType | null;
11
11
  pictures: IChapterPicture[];
@@ -4,8 +4,8 @@ import { Id } from './Type';
4
4
  import { IVideo } from './Video';
5
5
  export interface IConcept {
6
6
  id: Id;
7
- createdAt: string | Date;
8
- updatedAt: string | Date;
7
+ createdAt: number;
8
+ updatedAt: number;
9
9
  name: string;
10
10
  chapterId: Id;
11
11
  chapter: IChapter;
@@ -1,7 +1,7 @@
1
1
  import { Id } from './Type';
2
2
  export interface IFeedback {
3
3
  id: Id;
4
- createdAt: string | Date;
4
+ createdAt: number;
5
5
  name: string;
6
6
  feedback: string;
7
7
  university: string;
package/models/File.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Id } from './Type';
2
2
  export interface IFile {
3
3
  id: Id;
4
- createdAt: string | Date;
5
- updatedAt: string | Date;
4
+ createdAt: number;
5
+ updatedAt: number;
6
6
  title: string;
7
7
  url: string;
8
8
  videoId?: number;
@@ -2,8 +2,8 @@ import { ITopic } from './Topic';
2
2
  import { Id } from './Type';
3
3
  export interface IPicture {
4
4
  id: Id;
5
- createdAt: string | Date;
6
- updatedAt: string | Date;
5
+ createdAt: number;
6
+ updatedAt: number;
7
7
  name: string;
8
8
  caption: string;
9
9
  path: string;
package/models/Picture.js CHANGED
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- ;
4
- ;
5
- ;
6
- ;
@@ -1,5 +1 @@
1
- ;
2
- ;
3
- ;
4
- ;
5
1
  export {};
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: string | Date;
4
+ createdAt: number;
5
5
  name: string;
6
6
  affiliateId: Id;
7
7
  }
8
8
  export interface IPromoReport {
9
9
  id: Id;
10
- date: string | Date;
10
+ date: number;
11
11
  couponId: Id;
12
12
  userId: Id;
13
13
  subscriptionId: Id;
@@ -1,7 +1,7 @@
1
1
  import { Id } from './Type';
2
2
  export interface ISubscription {
3
3
  id: Id;
4
- createdAt: string | Date;
4
+ createdAt: number;
5
5
  name: string;
6
6
  description: string | null;
7
7
  price: number;
package/models/Video.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { IConcept } from "./Concept";
2
- import { IFile } from "./File";
3
- import { Id } from "./Type";
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: string | Date;
7
- updatedAt: string | Date;
8
- startTime: string | Date;
9
- endTime: string | Date;
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: string | Date | null;
20
- sent1hrPushAt: string | Date | null;
21
- send24hrPushAt: string | Date | null;
22
- sent24hrPushAt: string | Date | null;
19
+ send1hrPushAt: number | null;
20
+ sent1hrPushAt: number | null;
21
+ send24hrPushAt: number | null;
22
+ sent24hrPushAt: number | null;
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.4.2",
3
+ "version": "1.4.6",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -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
+ `;
@@ -1 +1,8 @@
1
- export {};
1
+ import { gql } from '@apollo/client';
2
+ export const AGORA_TOKEN = gql `
3
+ mutation AgoraToken($platformId: Int!, $channel: String!, $uid: Int!) {
4
+ restricted {
5
+ agoraToken(platformId: $platformId, channel: $channel, uid: $uid)
6
+ }
7
+ }
8
+ `;
@@ -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<IOsceGroup, 'osceMarksheetAction'>;
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 declare type IOsceMatchmakingVar = null;
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;