@quesmed/types-rn 2.5.61 → 2.5.63

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.5.61",
3
+ "version": "2.5.63",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,10 +1,16 @@
1
- import { IPreset, Id } from '../../../models';
1
+ import { ETopicType, IPreset, Id } from '../../../models';
2
2
  import { RestrictedData } from '../../types';
3
3
  export interface IPresetsVar {
4
- userId: Id;
5
- search: string;
6
- timestamp: number;
7
- limit: number;
4
+ userId?: Id;
5
+ topicType?: ETopicType;
6
+ search?: string;
7
+ timestamp?: number;
8
+ limit?: number;
8
9
  }
9
10
  export type IPresetsData = RestrictedData<IPreset[], 'presets'>;
10
11
  export declare const PRESETS: import("@apollo/client").DocumentNode;
12
+ export interface IPresetVar {
13
+ id: Id;
14
+ }
15
+ export type IPresetData = RestrictedData<IPreset, 'preset'>;
16
+ export declare const PRESET: import("@apollo/client").DocumentNode;
@@ -1,12 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PRESETS = void 0;
3
+ exports.PRESET = exports.PRESETS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.PRESETS = (0, client_1.gql) `
6
- query Presets($userId: Int, $search: String, $timestamp: Int, $limit: Int) {
6
+ query Presets(
7
+ $userId: Int
8
+ $topicType: Int
9
+ $search: String
10
+ $timestamp: Int
11
+ $limit: Int
12
+ ) {
7
13
  restricted {
8
14
  presets(
9
15
  userId: $userId
16
+ topicType: $topicType
10
17
  search: $search
11
18
  timestamp: $timestamp
12
19
  limit: $limit
@@ -38,3 +45,34 @@ exports.PRESETS = (0, client_1.gql) `
38
45
  }
39
46
  }
40
47
  `;
48
+ exports.PRESET = (0, client_1.gql) `
49
+ query Preset($id: Int) {
50
+ restricted {
51
+ presets(id: $id) {
52
+ id
53
+ createdAt
54
+ updatedAt
55
+ name
56
+ likes
57
+ topicType
58
+ total
59
+ correct
60
+ incorrect
61
+ userId
62
+ university {
63
+ id
64
+ name
65
+ country
66
+ }
67
+ topics {
68
+ id
69
+ name
70
+ concepts {
71
+ id
72
+ name
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ `;