@quesmed/types 2.6.84 → 2.6.85
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/dist/cjs/resolvers/query/restricted/chapter.d.ts +7 -0
- package/dist/cjs/resolvers/query/restricted/chapter.js +14 -0
- package/dist/cjs/resolvers/query/restricted/index.d.ts +1 -1
- package/dist/cjs/resolvers/query/restricted/index.js +1 -1
- package/dist/mjs/resolvers/query/restricted/chapter.d.ts +7 -0
- package/dist/mjs/resolvers/query/restricted/chapter.js +11 -0
- package/dist/mjs/resolvers/query/restricted/index.d.ts +1 -1
- package/dist/mjs/resolvers/query/restricted/index.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/resolvers/query/restricted/conceptExplanation.d.ts +0 -12
- package/dist/cjs/resolvers/query/restricted/conceptExplanation.js +0 -11
- package/dist/mjs/resolvers/query/restricted/conceptExplanation.d.ts +0 -12
- package/dist/mjs/resolvers/query/restricted/conceptExplanation.js +0 -8
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
|
+
import { IChapter } from '../../../models';
|
|
3
|
+
export interface IChapterVar {
|
|
4
|
+
id: number;
|
|
5
|
+
}
|
|
6
|
+
export type IChapterData = RestrictedData<graphqlNormalize & IChapter, 'chapter'>;
|
|
7
|
+
export declare const CHAPTER: import("@apollo/client").DocumentNode;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHAPTER = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.CHAPTER = (0, client_1.gql) `
|
|
6
|
+
query chapter($id: Int!) {
|
|
7
|
+
restricted {
|
|
8
|
+
chapter(id: $id) {
|
|
9
|
+
id
|
|
10
|
+
explanation
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./chapter"), exports);
|
|
18
18
|
__exportStar(require("./concepts"), exports);
|
|
19
19
|
__exportStar(require("./global"), exports);
|
|
20
20
|
__exportStar(require("./marksheet"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
|
+
import { IChapter } from '../../../models';
|
|
3
|
+
export interface IChapterVar {
|
|
4
|
+
id: number;
|
|
5
|
+
}
|
|
6
|
+
export type IChapterData = RestrictedData<graphqlNormalize & IChapter, 'chapter'>;
|
|
7
|
+
export declare const CHAPTER: import("@apollo/client").DocumentNode;
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
|
-
export interface IQuesBookDict {
|
|
3
|
-
topicId: number;
|
|
4
|
-
conceptId: number;
|
|
5
|
-
chapterId: number;
|
|
6
|
-
explanation: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IConceptExplanationVar {
|
|
9
|
-
chapterId: number;
|
|
10
|
-
}
|
|
11
|
-
export type IConceptExplanationData = RestrictedData<graphqlNormalize & string, 'conceptExplanation'>;
|
|
12
|
-
export declare const CONCEPT_EXPLANATION: import("@apollo/client").DocumentNode;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONCEPT_EXPLANATION = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
exports.CONCEPT_EXPLANATION = (0, client_1.gql) `
|
|
6
|
-
query conceptExplanation($chapterId: Int!) {
|
|
7
|
-
restricted {
|
|
8
|
-
conceptExplanation(chapterId: $chapterId)
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
|
-
export interface IQuesBookDict {
|
|
3
|
-
topicId: number;
|
|
4
|
-
conceptId: number;
|
|
5
|
-
chapterId: number;
|
|
6
|
-
explanation: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IConceptExplanationVar {
|
|
9
|
-
chapterId: number;
|
|
10
|
-
}
|
|
11
|
-
export type IConceptExplanationData = RestrictedData<graphqlNormalize & string, 'conceptExplanation'>;
|
|
12
|
-
export declare const CONCEPT_EXPLANATION: import("@apollo/client").DocumentNode;
|