@quesmed/types 1.0.15 → 1.0.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.
@@ -0,0 +1,8 @@
1
+ import { Id } from './Type';
2
+ export interface IFeedback {
3
+ id: Id;
4
+ createdAt: string | Date;
5
+ name: string;
6
+ feedback: string;
7
+ university: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@ export interface IMockTest {
4
4
  id: Id;
5
5
  title: string;
6
6
  clinical: boolean;
7
+ passingMark: number;
7
8
  questions: IQuestion[];
8
9
  }
9
10
  export interface IUserMockTest {
@@ -2,11 +2,11 @@ import { IOsceStation, IOsceStationMark, IOsceType } from './OsceStation';
2
2
  import { Id } from './Type';
3
3
  import { IUser } from './User';
4
4
  export interface IOsceMarksheetUser {
5
- id: Id;
6
- createdAt: Date | string;
5
+ id: Id | null;
6
+ createdAt: Date | string | null;
7
7
  osceMarksheetId: Id;
8
- userId: Id;
9
- user?: IUser;
8
+ userId: Id | null;
9
+ user: IUser | null;
10
10
  role: EOsceRoles;
11
11
  }
12
12
  export interface IOsceMarksheetMark {
@@ -3,7 +3,7 @@ export interface ISubscription {
3
3
  id: Id;
4
4
  createdAt: string | Date;
5
5
  name: string;
6
- description?: string;
6
+ description: string | null;
7
7
  price: number;
8
8
  stripePriceId: string;
9
9
  duration: number;
package/models/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './Card';
2
2
  export * from './Chapter';
3
3
  export * from './Concept';
4
+ export * from './Feedback';
4
5
  export * from './File';
5
6
  export * from './Marksheet';
6
7
  export * from './MockTest';
@@ -14,6 +15,6 @@ export * from './Todo';
14
15
  export * from './Token';
15
16
  export * from './Topic';
16
17
  export * from './Type';
18
+ export * from './University';
17
19
  export * from './User';
18
20
  export * from './Video';
19
- export * from './University';
package/models/index.js CHANGED
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./Card"), exports);
14
14
  __exportStar(require("./Chapter"), exports);
15
15
  __exportStar(require("./Concept"), exports);
16
+ __exportStar(require("./Feedback"), exports);
16
17
  __exportStar(require("./File"), exports);
17
18
  __exportStar(require("./Marksheet"), exports);
18
19
  __exportStar(require("./MockTest"), exports);
@@ -26,6 +27,6 @@ __exportStar(require("./Todo"), exports);
26
27
  __exportStar(require("./Token"), exports);
27
28
  __exportStar(require("./Topic"), exports);
28
29
  __exportStar(require("./Type"), exports);
30
+ __exportStar(require("./University"), exports);
29
31
  __exportStar(require("./User"), exports);
30
32
  __exportStar(require("./Video"), exports);
31
- __exportStar(require("./University"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "main": "index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,3 @@
1
+ import { IFeedback } from '../../models';
2
+ export interface IFeedbackData extends IFeedback {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,7 @@
1
+ export * from './feedback';
1
2
  export * from './sampleCards';
2
3
  export * from './sampleQuestions';
4
+ export * from './subscription';
3
5
  export * from './university';
4
6
  export * from './user';
5
7
  export * from './video';
@@ -10,8 +10,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./feedback"), exports);
13
14
  __exportStar(require("./sampleCards"), exports);
14
15
  __exportStar(require("./sampleQuestions"), exports);
16
+ __exportStar(require("./subscription"), exports);
15
17
  __exportStar(require("./university"), exports);
16
18
  __exportStar(require("./user"), exports);
17
19
  __exportStar(require("./video"), exports);
@@ -0,0 +1,3 @@
1
+ import { ISubscription } from '../../models';
2
+ export interface ISubscriptionData extends ISubscription {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { EOsceMarksheetAction, EOsceRoles, Id, IUser } from '../../models';
1
+ import { EOsceMarksheetAction, EOsceRoles, Id, IOsceMarksheetUser, IUser } from '../../models';
2
2
  export declare const ROLE_CHANGED = "ROLE_CHANGED";
3
3
  export declare const OSCE_MARKSHEET_ACTION = "OSCE_MARKSHEET_ACTION";
4
4
  export interface IOsceGroupMember {
@@ -7,26 +7,9 @@ export interface IOsceGroupMember {
7
7
  }
8
8
  export interface IOsceGroup {
9
9
  agoraId: string;
10
- members: [
11
- {
12
- role: EOsceRoles.CANDIDATE;
13
- user: IUser | null;
14
- },
15
- {
16
- role: EOsceRoles.EXAMINER;
17
- user: IUser | null;
18
- },
19
- {
20
- role: EOsceRoles.ACTOR;
21
- user: IUser | null;
22
- },
23
- {
24
- role: EOsceRoles.OBSERVER;
25
- user: IUser | null;
26
- }
27
- ];
10
+ members: IOsceMarksheetUser[];
28
11
  }
29
- export declare const OsceGroupInit: IOsceGroup['members'];
12
+ export declare const OsceGroupInit: (osceMarksheetId: number) => IOsceMarksheetUser[];
30
13
  export interface IRoleChangedVar {
31
14
  agoraId: string;
32
15
  }
@@ -4,21 +4,38 @@ exports.OsceGroupInit = exports.OSCE_MARKSHEET_ACTION = exports.ROLE_CHANGED = v
4
4
  const models_1 = require("../../models");
5
5
  exports.ROLE_CHANGED = 'ROLE_CHANGED';
6
6
  exports.OSCE_MARKSHEET_ACTION = 'OSCE_MARKSHEET_ACTION';
7
- exports.OsceGroupInit = [
7
+ const OsceGroupInit = (osceMarksheetId) => [
8
8
  {
9
- role: models_1.EOsceRoles.CANDIDATE,
9
+ id: null,
10
+ createdAt: null,
11
+ osceMarksheetId,
12
+ userId: null,
10
13
  user: null,
14
+ role: models_1.EOsceRoles.CANDIDATE,
11
15
  },
12
16
  {
13
- role: models_1.EOsceRoles.EXAMINER,
17
+ id: null,
18
+ createdAt: null,
19
+ osceMarksheetId,
20
+ userId: null,
14
21
  user: null,
22
+ role: models_1.EOsceRoles.EXAMINER,
15
23
  },
16
24
  {
17
- role: models_1.EOsceRoles.ACTOR,
25
+ id: null,
26
+ createdAt: null,
27
+ osceMarksheetId,
28
+ userId: null,
18
29
  user: null,
30
+ role: models_1.EOsceRoles.ACTOR,
19
31
  },
20
32
  {
21
- role: models_1.EOsceRoles.OBSERVER,
33
+ id: null,
34
+ createdAt: null,
35
+ osceMarksheetId,
36
+ userId: null,
22
37
  user: null,
38
+ role: models_1.EOsceRoles.OBSERVER,
23
39
  },
24
40
  ];
41
+ exports.OsceGroupInit = OsceGroupInit;