@quesmed/types 2.4.16 → 2.4.17
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/conceptExplanation.d.ts +6 -11
- package/dist/cjs/resolvers/query/restricted/conceptExplanation.js +2 -2
- package/dist/cjs/utils/wordsToNumber.js +3 -0
- package/dist/mjs/resolvers/query/restricted/conceptExplanation.d.ts +6 -11
- package/dist/mjs/resolvers/query/restricted/conceptExplanation.js +3 -3
- package/dist/mjs/utils/wordsToNumber.js +3 -0
- package/package.json +1 -1
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { graphqlNormalize, RestrictedData } from
|
|
2
|
-
export
|
|
3
|
-
conceptId: number;
|
|
1
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
|
+
export interface IQuesBookDict {
|
|
4
3
|
topicId: number;
|
|
4
|
+
conceptId: number;
|
|
5
5
|
chapterId: number;
|
|
6
6
|
explanation: string;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
export interface IConceptExplanationVar {
|
|
9
|
-
|
|
10
|
-
conceptName: string;
|
|
11
|
-
conceptId: number;
|
|
12
|
-
topicId: number;
|
|
13
|
-
chapterId: number;
|
|
14
|
-
};
|
|
9
|
+
chapterId: number;
|
|
15
10
|
}
|
|
16
|
-
export declare type IConceptExplanationData = RestrictedData<graphqlNormalize & string,
|
|
11
|
+
export declare type IConceptExplanationData = RestrictedData<graphqlNormalize & string, 'conceptExplanation'>;
|
|
17
12
|
export declare const CONCEPT_EXPLANATION: import("@apollo/client").DocumentNode;
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CONCEPT_EXPLANATION = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.CONCEPT_EXPLANATION = (0, client_1.gql) `
|
|
6
|
-
query conceptExplanation($
|
|
6
|
+
query conceptExplanation($chapterId: Int!) {
|
|
7
7
|
restricted {
|
|
8
|
-
conceptExplanation(
|
|
8
|
+
conceptExplanation(chapterId: $chapterId)
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
`;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { graphqlNormalize, RestrictedData } from
|
|
2
|
-
export
|
|
3
|
-
conceptId: number;
|
|
1
|
+
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
2
|
+
export interface IQuesBookDict {
|
|
4
3
|
topicId: number;
|
|
4
|
+
conceptId: number;
|
|
5
5
|
chapterId: number;
|
|
6
6
|
explanation: string;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
export interface IConceptExplanationVar {
|
|
9
|
-
|
|
10
|
-
conceptName: string;
|
|
11
|
-
conceptId: number;
|
|
12
|
-
topicId: number;
|
|
13
|
-
chapterId: number;
|
|
14
|
-
};
|
|
9
|
+
chapterId: number;
|
|
15
10
|
}
|
|
16
|
-
export declare type IConceptExplanationData = RestrictedData<graphqlNormalize & string,
|
|
11
|
+
export declare type IConceptExplanationData = RestrictedData<graphqlNormalize & string, 'conceptExplanation'>;
|
|
17
12
|
export declare const CONCEPT_EXPLANATION: import("@apollo/client").DocumentNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { gql } from
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
2
|
export const CONCEPT_EXPLANATION = gql `
|
|
3
|
-
query conceptExplanation($
|
|
3
|
+
query conceptExplanation($chapterId: Int!) {
|
|
4
4
|
restricted {
|
|
5
|
-
conceptExplanation(
|
|
5
|
+
conceptExplanation(chapterId: $chapterId)
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
`;
|