@quesmed/types-rn 2.4.30 → 2.4.33

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.
Files changed (64) hide show
  1. package/index.js +5 -1
  2. package/models/Chapter.d.ts +0 -2
  3. package/models/Marksheet.d.ts +1 -1
  4. package/models/Question.d.ts +3 -3
  5. package/models/Type.d.ts +3 -3
  6. package/models/User.d.ts +2 -2
  7. package/models/index.js +5 -1
  8. package/package.json +6 -6
  9. package/resolvers/apollo.d.ts +1 -1
  10. package/resolvers/fragments/index.js +5 -1
  11. package/resolvers/index.js +5 -1
  12. package/resolvers/mutation/admin/algoliaSync.d.ts +8 -8
  13. package/resolvers/mutation/admin/index.js +5 -1
  14. package/resolvers/mutation/admin/notification.d.ts +4 -4
  15. package/resolvers/mutation/admin/token.d.ts +2 -2
  16. package/resolvers/mutation/index.js +5 -1
  17. package/resolvers/mutation/restricted/agora.d.ts +1 -1
  18. package/resolvers/mutation/restricted/contactUs.d.ts +1 -1
  19. package/resolvers/mutation/restricted/index.js +5 -1
  20. package/resolvers/mutation/restricted/marksheet.d.ts +13 -13
  21. package/resolvers/mutation/restricted/mockTest.d.ts +3 -3
  22. package/resolvers/mutation/restricted/notification.d.ts +8 -8
  23. package/resolvers/mutation/restricted/osce.d.ts +16 -16
  24. package/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -6
  25. package/resolvers/mutation/restricted/todo.d.ts +6 -6
  26. package/resolvers/mutation/restricted/token.d.ts +4 -4
  27. package/resolvers/mutation/restricted/users.d.ts +9 -9
  28. package/resolvers/mutation/restricted/video.d.ts +1 -1
  29. package/resolvers/mutation/stripe.d.ts +3 -3
  30. package/resolvers/mutation/users.d.ts +4 -4
  31. package/resolvers/mutation/validUserToken/index.js +5 -1
  32. package/resolvers/mutation/validUserToken/user.d.ts +3 -3
  33. package/resolvers/query/admin/getUserToken.d.ts +1 -1
  34. package/resolvers/query/admin/index.js +5 -1
  35. package/resolvers/query/author.d.ts +1 -1
  36. package/resolvers/query/blog.d.ts +4 -4
  37. package/resolvers/query/book.d.ts +3 -3
  38. package/resolvers/query/feedback.d.ts +2 -2
  39. package/resolvers/query/index.js +5 -1
  40. package/resolvers/query/product.d.ts +1 -1
  41. package/resolvers/query/restricted/conceptExplanation.d.ts +1 -1
  42. package/resolvers/query/restricted/global.d.ts +4 -4
  43. package/resolvers/query/restricted/index.js +5 -1
  44. package/resolvers/query/restricted/marksheet.d.ts +13 -13
  45. package/resolvers/query/restricted/mockTests.d.ts +2 -2
  46. package/resolvers/query/restricted/notification.d.ts +1 -1
  47. package/resolvers/query/restricted/osce.d.ts +9 -9
  48. package/resolvers/query/restricted/quesBook.d.ts +4 -4
  49. package/resolvers/query/restricted/question.d.ts +1 -1
  50. package/resolvers/query/restricted/todos.d.ts +2 -2
  51. package/resolvers/query/restricted/topics.d.ts +2 -2
  52. package/resolvers/query/restricted/university.d.ts +1 -1
  53. package/resolvers/query/restricted/user.d.ts +4 -4
  54. package/resolvers/query/restricted/video.d.ts +2 -2
  55. package/resolvers/query/sample.d.ts +5 -5
  56. package/resolvers/query/university.d.ts +1 -1
  57. package/resolvers/query/user.d.ts +2 -2
  58. package/resolvers/query/video.d.ts +3 -3
  59. package/resolvers/subscription/index.js +5 -1
  60. package/resolvers/subscription/marksheet.d.ts +3 -3
  61. package/resolvers/subscription/notification.d.ts +2 -2
  62. package/resolvers/subscription/osce.d.ts +6 -6
  63. package/resolvers/types.d.ts +3 -3
  64. package/utils/index.js +5 -1
@@ -28,7 +28,7 @@ export interface IMarksheetInfo {
28
28
  users: IUser[];
29
29
  activeUsers: IUser[];
30
30
  }
31
- export declare type IOnMarksheetChangeData = RootData<IMarksheetInfo, 'onMarksheetChange'>;
31
+ export type IOnMarksheetChangeData = RootData<IMarksheetInfo, 'onMarksheetChange'>;
32
32
  export declare const ON_MARKSHEET_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
33
33
  export declare const ON_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
34
34
  /**
@@ -45,7 +45,7 @@ export interface IPreStartMarksheetData {
45
45
  marksheetId: Id;
46
46
  user: IUser;
47
47
  }
48
- export declare type IOnPreStartMarksheetChangeData = RootData<IPreStartMarksheetData, 'onPreStartMarksheetChange'>;
48
+ export type IOnPreStartMarksheetChangeData = RootData<IPreStartMarksheetData, 'onPreStartMarksheetChange'>;
49
49
  export declare const ON_PRESTART_MARKSHEET_CHANGE_KEY = "ON_PRESTART_MARKSHEET_CHANGE_KEY";
50
50
  export declare const ON_PRESTART_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
51
51
  /**
@@ -68,6 +68,6 @@ export interface IMarksheetMarkData {
68
68
  user: IUser;
69
69
  striked?: number[];
70
70
  }
71
- export declare type IOnMarksheetMarkChangeData = RootData<IMarksheetMarkData, 'onMarksheetMarkChange'>;
71
+ export type IOnMarksheetMarkChangeData = RootData<IMarksheetMarkData, 'onMarksheetMarkChange'>;
72
72
  export declare const ON_MARKSHEET_MARK_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
73
73
  export declare const ON_MARKSHEET_MARK_CHANGE: import("@apollo/client").DocumentNode;
@@ -8,8 +8,8 @@ export interface INewNotification {
8
8
  userId: Id;
9
9
  notification: INotification[];
10
10
  }
11
- export declare type IOnNotificationPublisherData = RootData<INewNotification, 'onNotificationArise'>;
12
- export declare type IOnNotificationAriseData = RootData<INotification[], 'onNotificationArise'>;
11
+ export type IOnNotificationPublisherData = RootData<INewNotification, 'onNotificationArise'>;
12
+ export type IOnNotificationAriseData = RootData<INotification[], 'onNotificationArise'>;
13
13
  export declare const ON_NOTIFICATION_ARISE = "ON_NOTIFICATION_ARISE";
14
14
  export declare const NOTIFICATION_ARISE: import("@apollo/client").DocumentNode;
15
15
  export declare const onNotificationArise: ({ client, subscriptionData, }: OnSubscriptionDataOptions<IOnNotificationAriseData>) => void;
@@ -20,7 +20,7 @@ export declare const OSCE_ROLE_CHANGE: import("@apollo/client").DocumentNode;
20
20
  export interface IOsceRoleChangedVar {
21
21
  osceMarksheetId: Id;
22
22
  }
23
- export declare type IOsceRoleChangedData = RootData<IOsceGroup, 'osceRoleChange'>;
23
+ export type IOsceRoleChangedData = RootData<IOsceGroup, 'osceRoleChange'>;
24
24
  export declare const OSCE_MARKSHEET_ACTION: import("@apollo/client").DocumentNode;
25
25
  export interface IOsceMarksheetActionVar {
26
26
  osceMarksheetId: Id;
@@ -34,7 +34,7 @@ export interface IOsceMarksheetAction {
34
34
  endedAt: Date | null;
35
35
  action: EOsceMarksheetAction;
36
36
  }
37
- export declare type IOsceMarksheetActionData = RootData<IOsceMarksheetAction, 'osceMarksheetAction'>;
37
+ export type IOsceMarksheetActionData = RootData<IOsceMarksheetAction, 'osceMarksheetAction'>;
38
38
  export declare const OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
39
39
  export interface IOsceMatchmakingAction {
40
40
  osceMarksheetId: Id;
@@ -52,10 +52,10 @@ export interface IOsceMatchmakingAction {
52
52
  export interface IOsceMatchmakingVar {
53
53
  userId: Id;
54
54
  }
55
- export declare type IOsceMatchmakingData = RootData<IOsceMatchmakingAction, 'osceMatchmaking'>;
55
+ export type IOsceMatchmakingData = RootData<IOsceMatchmakingAction, 'osceMatchmaking'>;
56
56
  export declare const OSCE_MATCHMAKING_USERS: import("@apollo/client").DocumentNode;
57
- export declare type IOsceMatchmakingUsersVar = null;
58
- export declare type IOsceMatchmakingUsersData = RootData<[
57
+ export type IOsceMatchmakingUsersVar = null;
58
+ export type IOsceMatchmakingUsersData = RootData<[
59
59
  number,
60
60
  number
61
61
  ], 'osceMatchmakingUsers'>;
@@ -63,4 +63,4 @@ export declare const OSCE_MARKSHEET_TIMER: import("@apollo/client").DocumentNode
63
63
  export interface IOsceMarksheetTimerVar {
64
64
  osceMarksheetId: number;
65
65
  }
66
- export declare type IOsceMarksheetTimerData = RootData<IOsceMarksheetTimer, 'osceMarksheetTimer'>;
66
+ export type IOsceMarksheetTimerData = RootData<IOsceMarksheetTimer, 'osceMarksheetTimer'>;
@@ -1,10 +1,10 @@
1
1
  export interface graphqlNormalize {
2
2
  __typename?: string;
3
3
  }
4
- export declare type RestrictedData<T, K extends keyof any> = {
4
+ export type RestrictedData<T, K extends keyof any> = {
5
5
  restricted: Record<K, T>;
6
6
  };
7
- export declare type AdminData<T, K extends keyof any> = {
7
+ export type AdminData<T, K extends keyof any> = {
8
8
  admin: Record<K, T>;
9
9
  };
10
- export declare type RootData<T, K extends keyof any> = Record<K, T>;
10
+ export type RootData<T, K extends keyof any> = Record<K, T>;
package/utils/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];