@quesmed/types-rn 2.6.82 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.82",
3
+ "version": "2.6.83",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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;
@@ -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
+ };