@quesmed/types 1.0.29 → 1.1.0

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,14 @@
1
+ import { Id } from './Type';
2
+ export interface IAuthor {
3
+ id: Id;
4
+ createdAt: string | Date;
5
+ updatedAt: string | Date;
6
+ name: string;
7
+ qualifications: string | null;
8
+ title: string;
9
+ description: string;
10
+ avatar: string;
11
+ linkedIn: string;
12
+ twitter: string;
13
+ facebook: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import { IAuthor } from './Author';
2
+ import { Id } from './Type';
3
+ export interface IBook {
4
+ id: Id;
5
+ createdAt: string | Date;
6
+ updatedAt: string | Date;
7
+ name: string;
8
+ publisher: string;
9
+ publishDate: string | Date;
10
+ pages: number;
11
+ format: string;
12
+ language: string;
13
+ type: string;
14
+ ISBN: number;
15
+ price: number;
16
+ avatar: string;
17
+ heroImg: string;
18
+ description: string;
19
+ chapters: string | string[];
20
+ stripePriceId: string;
21
+ authors: IAuthor[];
22
+ }
package/models/Book.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/models/Topic.d.ts CHANGED
@@ -1,8 +1,16 @@
1
1
  import { IConcept } from './Concept';
2
2
  import { Id } from './Type';
3
+ export declare enum ETopicType {
4
+ BASIC_SCIENCE = 0,
5
+ CLINICAL = 1,
6
+ ANATOMY = 2,
7
+ DATA_INTERPRETATION = 3,
8
+ PSA = 4
9
+ }
3
10
  export interface ITopic {
4
11
  id: Id;
5
12
  name: string;
6
13
  clinical: boolean;
7
14
  concepts?: IConcept[];
15
+ typeId: ETopicType | null;
8
16
  }
package/models/Topic.js CHANGED
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ETopicType = void 0;
4
+ var ETopicType;
5
+ (function (ETopicType) {
6
+ ETopicType[ETopicType["BASIC_SCIENCE"] = 0] = "BASIC_SCIENCE";
7
+ ETopicType[ETopicType["CLINICAL"] = 1] = "CLINICAL";
8
+ ETopicType[ETopicType["ANATOMY"] = 2] = "ANATOMY";
9
+ ETopicType[ETopicType["DATA_INTERPRETATION"] = 3] = "DATA_INTERPRETATION";
10
+ ETopicType[ETopicType["PSA"] = 4] = "PSA";
11
+ })(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
package/models/Type.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export declare type Id = number;
2
2
  export declare type Count = {
3
- count: number;
4
- }[];
3
+ count: string;
4
+ };
5
5
  export declare type Sum = {
6
- sum: number;
7
- }[];
6
+ sum: string;
7
+ };
package/models/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './Author';
2
+ export * from './Book';
1
3
  export * from './Card';
2
4
  export * from './Chapter';
3
5
  export * from './Concept';
package/models/index.js CHANGED
@@ -10,6 +10,8 @@ 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("./Author"), exports);
14
+ __exportStar(require("./Book"), exports);
13
15
  __exportStar(require("./Card"), exports);
14
16
  __exportStar(require("./Chapter"), exports);
15
17
  __exportStar(require("./Concept"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.0.29",
3
+ "version": "1.1.0",
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 { IAuthor } from '../../models';
2
+ export interface IAuthorData extends IAuthor {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IBook } from '../../models';
2
+ export interface IBookData extends IBook {
3
+ }
4
+ export interface IBookVar {
5
+ id: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,5 @@
1
+ export * from './author';
2
+ export * from './book';
1
3
  export * from './feedback';
2
4
  export * from './sampleCards';
3
5
  export * from './sampleQuestions';
@@ -10,6 +10,8 @@ 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("./author"), exports);
14
+ __exportStar(require("./book"), exports);
13
15
  __exportStar(require("./feedback"), exports);
14
16
  __exportStar(require("./sampleCards"), exports);
15
17
  __exportStar(require("./sampleQuestions"), exports);
@@ -1,10 +1,10 @@
1
- import { Id, ITopic } from '../../../models';
1
+ import { ETopicType, Id, ITopic } from '../../../models';
2
2
  export interface ITopicVar {
3
3
  id: Id;
4
4
  }
5
5
  export declare type ITopicData = ITopic;
6
6
  export interface ITopicsVar {
7
- filter: 'clinical' | 'pre-clinical' | 'interpretation';
7
+ filter: ETopicType;
8
8
  }
9
9
  export interface ITopicInfo {
10
10
  id: number;