@quesmed/types-rn 2.6.26 → 2.6.28

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.
@@ -1,5 +1,5 @@
1
1
  import { IConcept } from './Concept';
2
- import { ETopicType } from './Topic';
2
+ import { EProductType, IEntitlement } from './Product';
3
3
  import { Id } from './Type';
4
4
  export declare enum EPresetType {
5
5
  PRE_DEFINED = 0,
@@ -11,7 +11,8 @@ export interface IPreset {
11
11
  updatedAt: number | Date;
12
12
  userId: Id;
13
13
  name: string;
14
- topicType: ETopicType;
14
+ entitlementId: EProductType;
15
+ entitlement: IEntitlement;
15
16
  likes: number;
16
17
  correctQuestions: number;
17
18
  incorrectQuestions: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.26",
3
+ "version": "2.6.28",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,6 +1,6 @@
1
1
  import { ApolloCache } from '@apollo/client';
2
2
  import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
3
- import { ETopicType, Id } from '../../../models';
3
+ import { EProductType, Id } from '../../../models';
4
4
  import { IPreset } from '../../../models/Preset';
5
5
  import { RestrictedData } from '../../types';
6
6
  export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
@@ -21,7 +21,7 @@ export interface IEditPresetVar {
21
21
  presetId: number;
22
22
  data: {
23
23
  name?: string;
24
- topicType?: ETopicType;
24
+ entitlementId: EProductType;
25
25
  conceptIds?: Id[];
26
26
  };
27
27
  }
@@ -30,7 +30,7 @@ export type ICreatePresetData = RestrictedData<IPreset, 'createPreset'>;
30
30
  export interface ICreatePresetVar {
31
31
  data: {
32
32
  name: string;
33
- topicType: ETopicType;
33
+ entitlementId: EProductType;
34
34
  conceptIds: Id[];
35
35
  };
36
36
  }
@@ -53,7 +53,11 @@ exports.DUPLICATE_PRESET = (0, client_1.gql) `
53
53
  updatedAt
54
54
  name
55
55
  likes
56
- topicType
56
+ entitlementId
57
+ entitlement {
58
+ id
59
+ name
60
+ }
57
61
  correctQuestions
58
62
  incorrectQuestions
59
63
  completedQuestions
@@ -106,7 +110,11 @@ exports.EDIT_PRESET = (0, client_1.gql) `
106
110
  updatedAt
107
111
  name
108
112
  likes
109
- topicType
113
+ entitlementId
114
+ entitlement {
115
+ id
116
+ name
117
+ }
110
118
  correctQuestions
111
119
  incorrectQuestions
112
120
  completedQuestions
@@ -135,7 +143,11 @@ exports.CREATE_PRESET = (0, client_1.gql) `
135
143
  updatedAt
136
144
  name
137
145
  likes
138
- topicType
146
+ entitlementId
147
+ entitlement {
148
+ id
149
+ name
150
+ }
139
151
  correctQuestions
140
152
  incorrectQuestions
141
153
  completedQuestions
@@ -1,8 +1,8 @@
1
- import { ETopicType, IPreset, Id } from '../../../models';
1
+ import { EProductType, IPreset, Id } from '../../../models';
2
2
  import { ESortOrder } from '../../enums';
3
3
  import { RestrictedData } from '../../types';
4
4
  export interface IPresetsVar {
5
- topicType?: ETopicType;
5
+ entitlementId?: EProductType;
6
6
  search?: string;
7
7
  timestamp?: number;
8
8
  limit?: number;
@@ -12,6 +12,7 @@ export type IPresetsData = RestrictedData<IPreset[], 'presets'>;
12
12
  export declare const PRESETS: import("@apollo/client").DocumentNode;
13
13
  export interface IPreDefinedPresetsVar {
14
14
  search?: string;
15
+ entitlementId?: EProductType;
15
16
  order?: ESortOrder;
16
17
  }
17
18
  export type IPreDefinedPresetsData = RestrictedData<IPreset[], 'preDefinedPresets'>;
@@ -4,7 +4,7 @@ exports.PRESET = exports.PRE_DEFINED_PRESETS = exports.PRESETS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.PRESETS = (0, client_1.gql) `
6
6
  query Presets(
7
- $topicType: Int
7
+ $entitlementId: Int
8
8
  $search: String
9
9
  $timestamp: Int
10
10
  $limit: Int
@@ -12,7 +12,7 @@ exports.PRESETS = (0, client_1.gql) `
12
12
  ) {
13
13
  restricted {
14
14
  presets(
15
- topicType: $topicType
15
+ entitlementId: $entitlementId
16
16
  search: $search
17
17
  timestamp: $timestamp
18
18
  limit: $limit
@@ -23,7 +23,11 @@ exports.PRESETS = (0, client_1.gql) `
23
23
  updatedAt
24
24
  name
25
25
  likes
26
- topicType
26
+ entitlementId
27
+ entitlement {
28
+ id
29
+ name
30
+ }
27
31
  correctQuestions
28
32
  incorrectQuestions
29
33
  completedQuestions
@@ -44,15 +48,19 @@ exports.PRESETS = (0, client_1.gql) `
44
48
  }
45
49
  `;
46
50
  exports.PRE_DEFINED_PRESETS = (0, client_1.gql) `
47
- query PreDefinedPresets($search: String, $order: Int) {
51
+ query PreDefinedPresets($entitlementId: Int,$search: String, $order: Int) {
48
52
  restricted {
49
- preDefinedPresets(search: $search, order: $order) {
53
+ preDefinedPresets(entitlementId: $entitlementId, search: $search, order: $order) {
50
54
  id
51
55
  createdAt
52
56
  updatedAt
53
57
  name
54
58
  likes
55
- topicType
59
+ entitlementId
60
+ entitlement {
61
+ id
62
+ name
63
+ }
56
64
  correctQuestions
57
65
  incorrectQuestions
58
66
  completedQuestions
@@ -81,7 +89,11 @@ exports.PRESET = (0, client_1.gql) `
81
89
  updatedAt
82
90
  name
83
91
  likes
84
- topicType
92
+ entitlementId
93
+ entitlement {
94
+ id
95
+ name
96
+ }
85
97
  correctQuestions
86
98
  incorrectQuestions
87
99
  completedQuestions