@quesmed/types 2.6.89 → 2.6.91
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/models/User.d.ts +2 -2
- package/dist/cjs/resolvers/mutation/restricted/users.d.ts +2 -2
- package/dist/cjs/resolvers/mutation/restricted/users.js +3 -2
- package/dist/cjs/resolvers/query/restricted/osce.js +0 -2
- package/dist/cjs/resolvers/query/restricted/qBank.js +0 -4
- package/dist/mjs/models/User.d.ts +2 -2
- package/dist/mjs/resolvers/mutation/restricted/users.d.ts +2 -2
- package/dist/mjs/resolvers/mutation/restricted/users.js +3 -2
- package/dist/mjs/resolvers/query/restricted/osce.js +0 -2
- package/dist/mjs/resolvers/query/restricted/qBank.js +0 -4
- package/package.json +1 -1
|
@@ -119,8 +119,8 @@ export interface IProductFeedback {
|
|
|
119
119
|
id: Id;
|
|
120
120
|
userId: Id;
|
|
121
121
|
productId: EProductType;
|
|
122
|
-
rating: number;
|
|
123
|
-
feedback: string;
|
|
122
|
+
rating: number | null;
|
|
123
|
+
feedback: string | null;
|
|
124
124
|
createdAt: number | Date;
|
|
125
125
|
}
|
|
126
126
|
export interface IUser {
|
|
@@ -45,8 +45,8 @@ export type IUpdateUserData = RestrictedData<{
|
|
|
45
45
|
}, 'updateUser'>;
|
|
46
46
|
export declare const UPDATE_USER_SETTINGS: import("@apollo/client").DocumentNode;
|
|
47
47
|
export interface IAddProductFeedbackVar {
|
|
48
|
-
rating
|
|
49
|
-
feedback
|
|
48
|
+
rating?: number;
|
|
49
|
+
feedback?: string;
|
|
50
50
|
}
|
|
51
51
|
export type IAddProductFeedbackData = RestrictedData<IProductFeedback & graphqlNormalize, 'addProductFeedback'>;
|
|
52
52
|
export declare const ADD_PRODUCT_FEEDBACK: import("@apollo/client").DocumentNode;
|
|
@@ -74,7 +74,7 @@ exports.UPDATE_USER_SETTINGS = (0, client_1.gql) `
|
|
|
74
74
|
}
|
|
75
75
|
`;
|
|
76
76
|
exports.ADD_PRODUCT_FEEDBACK = (0, client_1.gql) `
|
|
77
|
-
mutation AddProductFeedback($rating: Int
|
|
77
|
+
mutation AddProductFeedback($rating: Int, $feedback: String) {
|
|
78
78
|
restricted {
|
|
79
79
|
addProductFeedback(rating: $rating, feedback: $feedback) {
|
|
80
80
|
id
|
|
@@ -90,7 +90,8 @@ exports.ADD_PRODUCT_FEEDBACK = (0, client_1.gql) `
|
|
|
90
90
|
const optimisticAddProductFeedback = (input) => ({
|
|
91
91
|
restricted: {
|
|
92
92
|
addProductFeedback: {
|
|
93
|
-
|
|
93
|
+
rating: input.rating || null,
|
|
94
|
+
feedback: input.feedback || null,
|
|
94
95
|
createdAt: new Date(),
|
|
95
96
|
userId: 1,
|
|
96
97
|
productId: 1,
|
|
@@ -14,8 +14,6 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
|
|
|
14
14
|
settings {
|
|
15
15
|
productSettings {
|
|
16
16
|
examDate
|
|
17
|
-
rating
|
|
18
|
-
feedback
|
|
19
17
|
nextFeedbackDate
|
|
20
18
|
}
|
|
21
19
|
}
|
|
@@ -146,8 +144,6 @@ exports.DASHBOARD = (0, client_1.gql) `
|
|
|
146
144
|
settings {
|
|
147
145
|
productSettings {
|
|
148
146
|
examDate
|
|
149
|
-
rating
|
|
150
|
-
feedback
|
|
151
147
|
nextFeedbackDate
|
|
152
148
|
}
|
|
153
149
|
}
|
|
@@ -119,8 +119,8 @@ export interface IProductFeedback {
|
|
|
119
119
|
id: Id;
|
|
120
120
|
userId: Id;
|
|
121
121
|
productId: EProductType;
|
|
122
|
-
rating: number;
|
|
123
|
-
feedback: string;
|
|
122
|
+
rating: number | null;
|
|
123
|
+
feedback: string | null;
|
|
124
124
|
createdAt: number | Date;
|
|
125
125
|
}
|
|
126
126
|
export interface IUser {
|
|
@@ -45,8 +45,8 @@ export type IUpdateUserData = RestrictedData<{
|
|
|
45
45
|
}, 'updateUser'>;
|
|
46
46
|
export declare const UPDATE_USER_SETTINGS: import("@apollo/client").DocumentNode;
|
|
47
47
|
export interface IAddProductFeedbackVar {
|
|
48
|
-
rating
|
|
49
|
-
feedback
|
|
48
|
+
rating?: number;
|
|
49
|
+
feedback?: string;
|
|
50
50
|
}
|
|
51
51
|
export type IAddProductFeedbackData = RestrictedData<IProductFeedback & graphqlNormalize, 'addProductFeedback'>;
|
|
52
52
|
export declare const ADD_PRODUCT_FEEDBACK: import("@apollo/client").DocumentNode;
|
|
@@ -71,7 +71,7 @@ export const UPDATE_USER_SETTINGS = gql `
|
|
|
71
71
|
}
|
|
72
72
|
`;
|
|
73
73
|
export const ADD_PRODUCT_FEEDBACK = gql `
|
|
74
|
-
mutation AddProductFeedback($rating: Int
|
|
74
|
+
mutation AddProductFeedback($rating: Int, $feedback: String) {
|
|
75
75
|
restricted {
|
|
76
76
|
addProductFeedback(rating: $rating, feedback: $feedback) {
|
|
77
77
|
id
|
|
@@ -87,7 +87,8 @@ export const ADD_PRODUCT_FEEDBACK = gql `
|
|
|
87
87
|
export const optimisticAddProductFeedback = (input) => ({
|
|
88
88
|
restricted: {
|
|
89
89
|
addProductFeedback: {
|
|
90
|
-
|
|
90
|
+
rating: input.rating || null,
|
|
91
|
+
feedback: input.feedback || null,
|
|
91
92
|
createdAt: new Date(),
|
|
92
93
|
userId: 1,
|
|
93
94
|
productId: 1,
|
|
@@ -11,8 +11,6 @@ export const DASHBOARD_QBANK = gql `
|
|
|
11
11
|
settings {
|
|
12
12
|
productSettings {
|
|
13
13
|
examDate
|
|
14
|
-
rating
|
|
15
|
-
feedback
|
|
16
14
|
nextFeedbackDate
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -143,8 +141,6 @@ export const DASHBOARD = gql `
|
|
|
143
141
|
settings {
|
|
144
142
|
productSettings {
|
|
145
143
|
examDate
|
|
146
|
-
rating
|
|
147
|
-
feedback
|
|
148
144
|
nextFeedbackDate
|
|
149
145
|
}
|
|
150
146
|
}
|