@quesmed/types-rn 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/models/User.d.ts
CHANGED
|
@@ -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 {
|
package/package.json
CHANGED
|
@@ -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
|
}
|