@quesmed/types-rn 2.2.47 → 2.2.48
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
|
@@ -69,14 +69,12 @@ export interface IUser {
|
|
|
69
69
|
accessLevel: IAccessLevel;
|
|
70
70
|
elo: number;
|
|
71
71
|
marksheets: IMarksheet[];
|
|
72
|
-
userCompletedQuestions: IUserCompletedQuestions[];
|
|
73
|
-
userCompletedCards: IUserCompletedCards[];
|
|
74
72
|
marksheetsCount?: number | null;
|
|
75
|
-
completedQuestions:
|
|
73
|
+
completedQuestions: IUserCompletedQuestion[];
|
|
76
74
|
completedQuestionsCount?: number | null;
|
|
77
75
|
completedCorrectQuestionsCount?: number | null;
|
|
78
76
|
completedIncorrectQuestionsCount?: number | null;
|
|
79
|
-
completedCards:
|
|
77
|
+
completedCards: IUserCompletedCard[];
|
|
80
78
|
completedCardsCount?: number | null;
|
|
81
79
|
completedGreenCardsCount?: number | null;
|
|
82
80
|
completedYellowCardsCount?: number | null;
|
|
@@ -87,7 +85,7 @@ export interface IUser {
|
|
|
87
85
|
}
|
|
88
86
|
export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear): IClassYear;
|
|
89
87
|
export declare function currentClassGroup(createdAtUnix: number, classYear: IClassYear): EClassYearGroup;
|
|
90
|
-
export interface
|
|
88
|
+
export interface IUserCompletedQuestion {
|
|
91
89
|
id: Id;
|
|
92
90
|
createdAt: number | Date;
|
|
93
91
|
updatedAt: number | Date;
|
|
@@ -98,7 +96,7 @@ export interface IUserCompletedQuestions {
|
|
|
98
96
|
question: IQuestion;
|
|
99
97
|
concept: IConcept;
|
|
100
98
|
}
|
|
101
|
-
export interface
|
|
99
|
+
export interface IUserCompletedCard {
|
|
102
100
|
id: Id;
|
|
103
101
|
createdAt: number | Date;
|
|
104
102
|
updatedAt: number | Date;
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { ApolloCache } from '@apollo/client';
|
|
|
2
2
|
import { Id, ITodo } from '../../../models';
|
|
3
3
|
import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../../apollo';
|
|
4
4
|
import { graphqlNormalize, RestrictedData } from '../../types';
|
|
5
|
+
import { IUserCompletedCard } from './../../../models/User';
|
|
5
6
|
export declare const BUILD_TODO: import("@apollo/client").DocumentNode;
|
|
6
7
|
export interface IBuildTodoInput {
|
|
7
8
|
unseen: number;
|
|
@@ -28,13 +29,14 @@ export declare const ADD_TO_DAILY_STACK: import("@apollo/client").DocumentNode;
|
|
|
28
29
|
export interface IAddToDailyStackVar {
|
|
29
30
|
conceptIds: Id[];
|
|
30
31
|
}
|
|
31
|
-
export declare type IAddToDailyStackData = RestrictedData<graphqlNormalize &
|
|
32
|
+
export declare type IAddToDailyStackData = RestrictedData<(graphqlNormalize & IUserCompletedCard)[], 'addToDailyStack'>;
|
|
32
33
|
export declare const REMOVE_FROM_DAILY_STACK: import("@apollo/client").DocumentNode;
|
|
33
34
|
export interface IRemoveFromDailyStackVar {
|
|
34
|
-
cardId
|
|
35
|
-
todoId
|
|
35
|
+
cardId?: Id;
|
|
36
|
+
todoId?: Id;
|
|
37
|
+
conceptId?: Id;
|
|
36
38
|
}
|
|
37
|
-
export declare type IRemoveFromDailyStackData = RestrictedData<graphqlNormalize &
|
|
39
|
+
export declare type IRemoveFromDailyStackData = RestrictedData<(graphqlNormalize & IUserCompletedCard)[], 'removeFromDailyStack'>;
|
|
38
40
|
export declare const REFRESH_DAILY_TASK: import("@apollo/client").DocumentNode;
|
|
39
41
|
export declare type IRefreshDailyTaskVar = null;
|
|
40
42
|
export declare type IRefreshDailyTaskData = RestrictedData<graphqlNormalize & ITodo, 'refreshDailyTask'>;
|
|
@@ -84,41 +84,41 @@ exports.ADD_TO_DAILY_STACK = (0, client_1.gql) `
|
|
|
84
84
|
restricted {
|
|
85
85
|
addToDailyStack(conceptIds: $conceptIds) {
|
|
86
86
|
id
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
createdAt
|
|
88
|
+
updatedAt
|
|
89
|
+
concept {
|
|
89
90
|
id
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
name
|
|
92
|
+
}
|
|
93
|
+
lastSeen
|
|
94
|
+
reviewDate
|
|
95
|
+
score
|
|
96
|
+
iteration
|
|
97
|
+
optimalFactor
|
|
98
|
+
card {
|
|
99
|
+
id
|
|
100
|
+
question
|
|
101
|
+
explanation
|
|
102
|
+
pictures {
|
|
103
|
+
...PictureFields
|
|
98
104
|
}
|
|
99
|
-
score
|
|
100
|
-
timeTaken
|
|
101
105
|
}
|
|
102
|
-
source
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
109
|
`;
|
|
107
110
|
exports.REMOVE_FROM_DAILY_STACK = (0, client_1.gql) `
|
|
108
|
-
mutation RemoveFromDailyStack($cardId: Int
|
|
111
|
+
mutation RemoveFromDailyStack($cardId: Int, $todoId: Int, $conceptId: Int) {
|
|
109
112
|
restricted {
|
|
110
|
-
removeFromDailyStack(
|
|
113
|
+
removeFromDailyStack(
|
|
114
|
+
cardId: $cardId
|
|
115
|
+
todoId: $todoId
|
|
116
|
+
conceptId: $conceptId
|
|
117
|
+
) {
|
|
111
118
|
id
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
cardId
|
|
116
|
-
score
|
|
117
|
-
timeTaken
|
|
118
|
-
card {
|
|
119
|
-
question
|
|
120
|
-
explanation
|
|
121
|
-
}
|
|
119
|
+
concept {
|
|
120
|
+
id
|
|
121
|
+
name
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|