@quesmed/types 2.1.12 → 2.1.15

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.
@@ -24,8 +24,8 @@ export interface INotification {
24
24
  updatedAt: number | Date;
25
25
  userId: Id | null;
26
26
  user?: IUser;
27
- parentId: Id | null;
28
- parentUser?: IUser;
27
+ fromUserId: Id | null;
28
+ fromUser?: IUser;
29
29
  commentId: Id | null;
30
30
  comment?: IQuestionComment;
31
31
  conceptId: Id | null;
@@ -33,7 +33,6 @@ export interface INotification {
33
33
  description: string;
34
34
  actionType: ENotificationActionType;
35
35
  type: ENotificationType;
36
- _global: boolean;
37
- _read: boolean;
38
- _deleted: boolean;
36
+ global: boolean;
37
+ read: boolean;
39
38
  }
@@ -5,4 +5,5 @@ export declare type Count = {
5
5
  export declare type Sum = {
6
6
  sum: string;
7
7
  };
8
- export declare type VideoFilter = 'new' | 'popular' | 'personal' | 'live' | 'osce';
8
+ export declare type VideoFilter = 'new' | 'popular' | 'personal' | 'live' | 'osce' | 'qbank';
9
+ export declare const videoFilters: string[];
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.videoFilters = void 0;
4
+ exports.videoFilters = [
5
+ 'new',
6
+ 'popular',
7
+ 'personal',
8
+ 'live',
9
+ 'osce',
10
+ 'qbank',
11
+ ];
@@ -1,16 +1,15 @@
1
1
  import { ENotificationActionType, ENotificationType, Id, INotification } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
3
  export interface IAddNotificationInput {
4
- parentId: Id | null;
4
+ fromUserId: Id | null;
5
5
  userId: Id | null;
6
6
  commentId: Id | null;
7
7
  conceptId: Id | null;
8
8
  description: string;
9
9
  actionType: ENotificationActionType;
10
10
  type: ENotificationType;
11
- _global: boolean;
12
- _read: boolean;
13
- _deleted: boolean;
11
+ global: boolean;
12
+ read: boolean;
14
13
  }
15
14
  export declare type IAddNotificationVar = {
16
15
  data: IAddNotificationInput;
@@ -24,8 +24,8 @@ export interface INotification {
24
24
  updatedAt: number | Date;
25
25
  userId: Id | null;
26
26
  user?: IUser;
27
- parentId: Id | null;
28
- parentUser?: IUser;
27
+ fromUserId: Id | null;
28
+ fromUser?: IUser;
29
29
  commentId: Id | null;
30
30
  comment?: IQuestionComment;
31
31
  conceptId: Id | null;
@@ -33,7 +33,6 @@ export interface INotification {
33
33
  description: string;
34
34
  actionType: ENotificationActionType;
35
35
  type: ENotificationType;
36
- _global: boolean;
37
- _read: boolean;
38
- _deleted: boolean;
36
+ global: boolean;
37
+ read: boolean;
39
38
  }
@@ -5,4 +5,5 @@ export declare type Count = {
5
5
  export declare type Sum = {
6
6
  sum: string;
7
7
  };
8
- export declare type VideoFilter = 'new' | 'popular' | 'personal' | 'live' | 'osce';
8
+ export declare type VideoFilter = 'new' | 'popular' | 'personal' | 'live' | 'osce' | 'qbank';
9
+ export declare const videoFilters: string[];
@@ -1 +1,8 @@
1
- export {};
1
+ export const videoFilters = [
2
+ 'new',
3
+ 'popular',
4
+ 'personal',
5
+ 'live',
6
+ 'osce',
7
+ 'qbank',
8
+ ];
@@ -1,16 +1,15 @@
1
1
  import { ENotificationActionType, ENotificationType, Id, INotification } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
3
  export interface IAddNotificationInput {
4
- parentId: Id | null;
4
+ fromUserId: Id | null;
5
5
  userId: Id | null;
6
6
  commentId: Id | null;
7
7
  conceptId: Id | null;
8
8
  description: string;
9
9
  actionType: ENotificationActionType;
10
10
  type: ENotificationType;
11
- _global: boolean;
12
- _read: boolean;
13
- _deleted: boolean;
11
+ global: boolean;
12
+ read: boolean;
14
13
  }
15
14
  export declare type IAddNotificationVar = {
16
15
  data: IAddNotificationInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.1.12",
3
+ "version": "2.1.15",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",