@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.
- package/models/Author.d.ts +14 -0
- package/models/Author.js +2 -0
- package/models/Book.d.ts +22 -0
- package/models/Book.js +2 -0
- package/models/Topic.d.ts +8 -0
- package/models/Topic.js +9 -0
- package/models/Type.d.ts +4 -4
- package/models/index.d.ts +2 -0
- package/models/index.js +2 -0
- package/package.json +1 -1
- package/resolvers/query/author.d.ts +3 -0
- package/resolvers/query/author.js +2 -0
- package/resolvers/query/book.d.ts +6 -0
- package/resolvers/query/book.js +2 -0
- package/resolvers/query/index.d.ts +2 -0
- package/resolvers/query/index.js +2 -0
- package/resolvers/query/restricted/topics.d.ts +2 -2
|
@@ -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
|
+
}
|
package/models/Author.js
ADDED
package/models/Book.d.ts
ADDED
|
@@ -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
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
package/models/index.d.ts
CHANGED
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
package/resolvers/query/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("./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:
|
|
7
|
+
filter: ETopicType;
|
|
8
8
|
}
|
|
9
9
|
export interface ITopicInfo {
|
|
10
10
|
id: number;
|