@quesmed/types-rn 2.4.35 → 2.4.37
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/User.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ export declare enum EClassYearGroup {
|
|
|
15
15
|
PRECLINICAL = 0,
|
|
16
16
|
CLINICAL = 1
|
|
17
17
|
}
|
|
18
|
+
export declare enum EUserConceptStatus {
|
|
19
|
+
UNREAD = 0,
|
|
20
|
+
COMPLETED = 1,
|
|
21
|
+
UN_IMPORTANT = 2,
|
|
22
|
+
IMPORTANT = 3
|
|
23
|
+
}
|
|
18
24
|
export declare const classYearGroup: {
|
|
19
25
|
[key: string]: EClassYearGroup;
|
|
20
26
|
};
|
|
@@ -166,3 +172,13 @@ export interface IUserQuestionsFirstAttempt {
|
|
|
166
172
|
questionId: Id;
|
|
167
173
|
answer: boolean;
|
|
168
174
|
}
|
|
175
|
+
export interface IUserConceptStatus {
|
|
176
|
+
id: Id;
|
|
177
|
+
createdAt: number | Date;
|
|
178
|
+
updatedAt: number | Date;
|
|
179
|
+
conceptId: Id;
|
|
180
|
+
userId: Id;
|
|
181
|
+
status: EUserConceptStatus;
|
|
182
|
+
user: IUser;
|
|
183
|
+
concept: IConcept;
|
|
184
|
+
}
|
package/models/User.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.currentClassGroup = exports.currentClassYear = exports.EPracticeIntensity = exports.classYearGroup = exports.EClassYearGroup = exports.classYears = void 0;
|
|
3
|
+
exports.currentClassGroup = exports.currentClassYear = exports.EPracticeIntensity = exports.classYearGroup = exports.EUserConceptStatus = exports.EClassYearGroup = exports.classYears = void 0;
|
|
4
4
|
const luxon_1 = require("luxon");
|
|
5
5
|
exports.classYears = [
|
|
6
6
|
'Year 1',
|
|
@@ -15,6 +15,13 @@ var EClassYearGroup;
|
|
|
15
15
|
EClassYearGroup[EClassYearGroup["PRECLINICAL"] = 0] = "PRECLINICAL";
|
|
16
16
|
EClassYearGroup[EClassYearGroup["CLINICAL"] = 1] = "CLINICAL";
|
|
17
17
|
})(EClassYearGroup = exports.EClassYearGroup || (exports.EClassYearGroup = {}));
|
|
18
|
+
var EUserConceptStatus;
|
|
19
|
+
(function (EUserConceptStatus) {
|
|
20
|
+
EUserConceptStatus[EUserConceptStatus["UNREAD"] = 0] = "UNREAD";
|
|
21
|
+
EUserConceptStatus[EUserConceptStatus["COMPLETED"] = 1] = "COMPLETED";
|
|
22
|
+
EUserConceptStatus[EUserConceptStatus["UN_IMPORTANT"] = 2] = "UN_IMPORTANT";
|
|
23
|
+
EUserConceptStatus[EUserConceptStatus["IMPORTANT"] = 3] = "IMPORTANT";
|
|
24
|
+
})(EUserConceptStatus = exports.EUserConceptStatus || (exports.EUserConceptStatus = {}));
|
|
18
25
|
exports.classYearGroup = {
|
|
19
26
|
'Year 1': EClassYearGroup.PRECLINICAL,
|
|
20
27
|
'Year 2': EClassYearGroup.PRECLINICAL,
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUser } from '../../../models';
|
|
1
|
+
import { EUserConceptStatus, Id, IUser, IUserConceptStatus } from '../../../models';
|
|
2
2
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
3
3
|
export declare const RESET_PROGRESS: import("@apollo/client").DocumentNode;
|
|
4
4
|
export interface IResetProgressVar {
|
|
@@ -37,3 +37,9 @@ export declare const TOC_ACCEPT: import("@apollo/client").DocumentNode;
|
|
|
37
37
|
export type ITocAcceptVar = null;
|
|
38
38
|
export type ITocAcceptData = RestrictedData<string, 'tocAccept'>;
|
|
39
39
|
export type ICompletedCardsData = Pick<IUser, 'completedCards' | 'completedCardsCount'>;
|
|
40
|
+
export type IUpsertUserConceptStatusVar = {
|
|
41
|
+
conceptId: Id;
|
|
42
|
+
status: EUserConceptStatus;
|
|
43
|
+
};
|
|
44
|
+
export type IUpsertUserConceptStatusData = RestrictedData<graphqlNormalize & IUserConceptStatus, 'upsertUserConceptStatus'>;
|
|
45
|
+
export declare const UPSERT_USER_CONCEPT_STATUS: import("@apollo/client").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TOC_ACCEPT = exports.RENEW_TOKEN = exports.UPDATE_USER = exports.DELETE_USER = exports.RESET_PROGRESS = void 0;
|
|
3
|
+
exports.UPSERT_USER_CONCEPT_STATUS = exports.TOC_ACCEPT = exports.RENEW_TOKEN = exports.UPDATE_USER = exports.DELETE_USER = exports.RESET_PROGRESS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.RESET_PROGRESS = (0, client_1.gql) `
|
|
6
6
|
mutation ResetProgress($questions: Boolean, $cards: Boolean) {
|
|
@@ -55,3 +55,16 @@ exports.TOC_ACCEPT = (0, client_1.gql) `
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
`;
|
|
58
|
+
exports.UPSERT_USER_CONCEPT_STATUS = (0, client_1.gql) `
|
|
59
|
+
mutation IpsertUserConceptStatus($conceptId: Int!, $status: Int!) {
|
|
60
|
+
restricted {
|
|
61
|
+
upsertUserConceptStatus(conceptId: $conceptId, status: $status) {
|
|
62
|
+
id
|
|
63
|
+
status
|
|
64
|
+
conceptId
|
|
65
|
+
userId
|
|
66
|
+
createdAt
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
`;
|