@quesmed/types 2.6.81 → 2.6.83

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.
@@ -113,6 +113,7 @@ export interface IUserSettings {
113
113
  examDate: number | Date | null;
114
114
  nextFeedbackDate: number | Date;
115
115
  feedback: string | null;
116
+ rating: number | null;
116
117
  };
117
118
  }
118
119
  export interface IUser {
@@ -70,6 +70,7 @@ exports.USER_SETTINGS_FIELDS = (0, client_1.gql) `
70
70
  }
71
71
  productSettings {
72
72
  feedback
73
+ rating
73
74
  examDate
74
75
  nextFeedbackDate
75
76
  }
@@ -1,7 +1,7 @@
1
1
  import { ApolloCache } from '@apollo/client';
2
2
  import { EUserLearningStatus, IUser, IUserConceptStatus, IUserSettings, IUserStationStatus, IUserVideoStatus, Id } from '../../../models';
3
3
  import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../../apollo';
4
- import { RestrictedData, graphqlNormalize } from '../../types';
4
+ import { DeepPartial, RestrictedData, graphqlNormalize } from '../../types';
5
5
  export declare const LOGOUT_USER: import("@apollo/client").DocumentNode;
6
6
  export interface ILogoutUserVar {
7
7
  all: boolean;
@@ -45,7 +45,7 @@ export type IUpdateUserData = RestrictedData<{
45
45
  }, 'updateUser'>;
46
46
  export declare const UPDATE_USER_SETTINGS: import("@apollo/client").DocumentNode;
47
47
  export interface IUpdateUserSettingsVar {
48
- input: Omit<IUserSettings, 'id' | 'userId' | 'updatedAt'>;
48
+ input: Omit<DeepPartial<IUserSettings>, 'id' | 'userId' | 'updatedAt'>;
49
49
  }
50
50
  export type IUpdateUserSettingsData = RestrictedData<IUserSettings & graphqlNormalize, 'updateUserSettings'>;
51
51
  export declare const updateCacheOnUpdateUserSettings: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IUpdateUserSettingsData>, options: ApolloUpdateOptions<IUpdateUserSettingsVar>) => void;
@@ -44,6 +44,7 @@ exports.DASHBOARD_OSCE = (0, client_1.gql) `
44
44
  settings {
45
45
  productSettings {
46
46
  examDate
47
+ rating
47
48
  feedback
48
49
  nextFeedbackDate
49
50
  }
@@ -14,6 +14,7 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
14
14
  settings {
15
15
  productSettings {
16
16
  examDate
17
+ rating
17
18
  feedback
18
19
  nextFeedbackDate
19
20
  }
@@ -145,6 +146,7 @@ exports.DASHBOARD = (0, client_1.gql) `
145
146
  settings {
146
147
  productSettings {
147
148
  examDate
149
+ rating
148
150
  feedback
149
151
  nextFeedbackDate
150
152
  }
@@ -16,3 +16,6 @@ export type DotPrefix<T extends string> = T extends '' ? '' : `.${T}`;
16
16
  export type WithRequired<T, K extends keyof T> = T & {
17
17
  [P in K]-?: T[P];
18
18
  };
19
+ export type DeepPartial<T> = {
20
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
21
+ };
@@ -113,6 +113,7 @@ export interface IUserSettings {
113
113
  examDate: number | Date | null;
114
114
  nextFeedbackDate: number | Date;
115
115
  feedback: string | null;
116
+ rating: number | null;
116
117
  };
117
118
  }
118
119
  export interface IUser {
@@ -67,6 +67,7 @@ export const USER_SETTINGS_FIELDS = gql `
67
67
  }
68
68
  productSettings {
69
69
  feedback
70
+ rating
70
71
  examDate
71
72
  nextFeedbackDate
72
73
  }
@@ -1,7 +1,7 @@
1
1
  import { ApolloCache } from '@apollo/client';
2
2
  import { EUserLearningStatus, IUser, IUserConceptStatus, IUserSettings, IUserStationStatus, IUserVideoStatus, Id } from '../../../models';
3
3
  import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../../apollo';
4
- import { RestrictedData, graphqlNormalize } from '../../types';
4
+ import { DeepPartial, RestrictedData, graphqlNormalize } from '../../types';
5
5
  export declare const LOGOUT_USER: import("@apollo/client").DocumentNode;
6
6
  export interface ILogoutUserVar {
7
7
  all: boolean;
@@ -45,7 +45,7 @@ export type IUpdateUserData = RestrictedData<{
45
45
  }, 'updateUser'>;
46
46
  export declare const UPDATE_USER_SETTINGS: import("@apollo/client").DocumentNode;
47
47
  export interface IUpdateUserSettingsVar {
48
- input: Omit<IUserSettings, 'id' | 'userId' | 'updatedAt'>;
48
+ input: Omit<DeepPartial<IUserSettings>, 'id' | 'userId' | 'updatedAt'>;
49
49
  }
50
50
  export type IUpdateUserSettingsData = RestrictedData<IUserSettings & graphqlNormalize, 'updateUserSettings'>;
51
51
  export declare const updateCacheOnUpdateUserSettings: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IUpdateUserSettingsData>, options: ApolloUpdateOptions<IUpdateUserSettingsVar>) => void;
@@ -41,6 +41,7 @@ export const DASHBOARD_OSCE = gql `
41
41
  settings {
42
42
  productSettings {
43
43
  examDate
44
+ rating
44
45
  feedback
45
46
  nextFeedbackDate
46
47
  }
@@ -11,6 +11,7 @@ export const DASHBOARD_QBANK = gql `
11
11
  settings {
12
12
  productSettings {
13
13
  examDate
14
+ rating
14
15
  feedback
15
16
  nextFeedbackDate
16
17
  }
@@ -142,6 +143,7 @@ export const DASHBOARD = gql `
142
143
  settings {
143
144
  productSettings {
144
145
  examDate
146
+ rating
145
147
  feedback
146
148
  nextFeedbackDate
147
149
  }
@@ -16,3 +16,6 @@ export type DotPrefix<T extends string> = T extends '' ? '' : `.${T}`;
16
16
  export type WithRequired<T, K extends keyof T> = T & {
17
17
  [P in K]-?: T[P];
18
18
  };
19
+ export type DeepPartial<T> = {
20
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
21
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.81",
3
+ "version": "2.6.83",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",