@quesmed/types 2.5.58 → 2.5.59
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/dist/cjs/models/Preset.d.ts +15 -2
- package/dist/cjs/resolvers/mutation/restricted/preset.d.ts +11 -4
- package/dist/cjs/resolvers/mutation/restricted/preset.js +39 -1
- package/dist/mjs/models/Preset.d.ts +15 -2
- package/dist/mjs/resolvers/mutation/restricted/preset.d.ts +11 -4
- package/dist/mjs/resolvers/mutation/restricted/preset.js +39 -1
- package/package.json +1 -1
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
import { ETopicType } from
|
|
2
|
-
import { Id } from
|
|
1
|
+
import { ETopicType } from './Topic';
|
|
2
|
+
import { Id } from './Type';
|
|
3
|
+
import { IUniversity } from './University';
|
|
4
|
+
export interface IPresetTopic {
|
|
5
|
+
id: Id;
|
|
6
|
+
name: string;
|
|
7
|
+
concepts: Id[];
|
|
8
|
+
}
|
|
3
9
|
export interface IPreset {
|
|
4
10
|
id: Id;
|
|
11
|
+
createdAt: number | Date;
|
|
12
|
+
updatedAt: number | Date;
|
|
5
13
|
userId: Id;
|
|
6
14
|
name: string;
|
|
7
15
|
topicType: ETopicType;
|
|
8
16
|
likes: number;
|
|
17
|
+
university: IUniversity;
|
|
18
|
+
total: number;
|
|
19
|
+
correct: number;
|
|
20
|
+
incorrect: number;
|
|
21
|
+
topics: IPresetTopic[];
|
|
9
22
|
}
|
|
10
23
|
export interface IPresetConcepts {
|
|
11
24
|
id: Id;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IPreset } from
|
|
3
|
-
import {
|
|
1
|
+
import { ETopicType, Id } from '../../../models';
|
|
2
|
+
import { IPreset } from '../../../models/Preset';
|
|
3
|
+
import { RestrictedData } from '../../types';
|
|
4
4
|
export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
|
|
5
5
|
export type IDeletePresetData = RestrictedData<boolean, 'deletePreset'>;
|
|
6
6
|
export interface IDeletePresetVar {
|
|
@@ -18,6 +18,13 @@ export interface IEditPresetVar {
|
|
|
18
18
|
data: {
|
|
19
19
|
name?: string;
|
|
20
20
|
topicType?: ETopicType;
|
|
21
|
-
conceptIds?:
|
|
21
|
+
conceptIds?: Id[];
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
+
export declare const CREATE_PRESET: import("@apollo/client").DocumentNode;
|
|
25
|
+
export type ICreatePresetData = RestrictedData<IPreset, 'createPreset'>;
|
|
26
|
+
export interface ICreatePresetVar {
|
|
27
|
+
name: string;
|
|
28
|
+
topicType: ETopicType;
|
|
29
|
+
conceptIds: Id[];
|
|
30
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EDIT_PRESET = exports.DUPLICATE_PRESET = exports.DELETE_PRESET = void 0;
|
|
3
|
+
exports.CREATE_PRESET = exports.EDIT_PRESET = exports.DUPLICATE_PRESET = exports.DELETE_PRESET = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.DELETE_PRESET = (0, client_1.gql) `
|
|
6
6
|
mutation DeletePreset($presetId: Int!) {
|
|
@@ -18,6 +18,14 @@ exports.DUPLICATE_PRESET = (0, client_1.gql) `
|
|
|
18
18
|
name
|
|
19
19
|
topicType
|
|
20
20
|
likes
|
|
21
|
+
topics {
|
|
22
|
+
id
|
|
23
|
+
name
|
|
24
|
+
concepts {
|
|
25
|
+
id
|
|
26
|
+
name
|
|
27
|
+
}
|
|
28
|
+
}
|
|
21
29
|
}
|
|
22
30
|
}
|
|
23
31
|
}
|
|
@@ -31,6 +39,36 @@ exports.EDIT_PRESET = (0, client_1.gql) `
|
|
|
31
39
|
name
|
|
32
40
|
topicType
|
|
33
41
|
likes
|
|
42
|
+
topics {
|
|
43
|
+
id
|
|
44
|
+
name
|
|
45
|
+
concepts {
|
|
46
|
+
id
|
|
47
|
+
name
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
exports.CREATE_PRESET = (0, client_1.gql) `
|
|
55
|
+
mutation CreatePreset($data: CreatePresetInput!) {
|
|
56
|
+
restricted {
|
|
57
|
+
createPreset(data: $data) {
|
|
58
|
+
id
|
|
59
|
+
createdAt
|
|
60
|
+
userId
|
|
61
|
+
name
|
|
62
|
+
topicType
|
|
63
|
+
likes
|
|
64
|
+
topics {
|
|
65
|
+
id
|
|
66
|
+
name
|
|
67
|
+
concepts {
|
|
68
|
+
id
|
|
69
|
+
name
|
|
70
|
+
}
|
|
71
|
+
}
|
|
34
72
|
}
|
|
35
73
|
}
|
|
36
74
|
}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
import { ETopicType } from
|
|
2
|
-
import { Id } from
|
|
1
|
+
import { ETopicType } from './Topic';
|
|
2
|
+
import { Id } from './Type';
|
|
3
|
+
import { IUniversity } from './University';
|
|
4
|
+
export interface IPresetTopic {
|
|
5
|
+
id: Id;
|
|
6
|
+
name: string;
|
|
7
|
+
concepts: Id[];
|
|
8
|
+
}
|
|
3
9
|
export interface IPreset {
|
|
4
10
|
id: Id;
|
|
11
|
+
createdAt: number | Date;
|
|
12
|
+
updatedAt: number | Date;
|
|
5
13
|
userId: Id;
|
|
6
14
|
name: string;
|
|
7
15
|
topicType: ETopicType;
|
|
8
16
|
likes: number;
|
|
17
|
+
university: IUniversity;
|
|
18
|
+
total: number;
|
|
19
|
+
correct: number;
|
|
20
|
+
incorrect: number;
|
|
21
|
+
topics: IPresetTopic[];
|
|
9
22
|
}
|
|
10
23
|
export interface IPresetConcepts {
|
|
11
24
|
id: Id;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IPreset } from
|
|
3
|
-
import {
|
|
1
|
+
import { ETopicType, Id } from '../../../models';
|
|
2
|
+
import { IPreset } from '../../../models/Preset';
|
|
3
|
+
import { RestrictedData } from '../../types';
|
|
4
4
|
export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
|
|
5
5
|
export type IDeletePresetData = RestrictedData<boolean, 'deletePreset'>;
|
|
6
6
|
export interface IDeletePresetVar {
|
|
@@ -18,6 +18,13 @@ export interface IEditPresetVar {
|
|
|
18
18
|
data: {
|
|
19
19
|
name?: string;
|
|
20
20
|
topicType?: ETopicType;
|
|
21
|
-
conceptIds?:
|
|
21
|
+
conceptIds?: Id[];
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
+
export declare const CREATE_PRESET: import("@apollo/client").DocumentNode;
|
|
25
|
+
export type ICreatePresetData = RestrictedData<IPreset, 'createPreset'>;
|
|
26
|
+
export interface ICreatePresetVar {
|
|
27
|
+
name: string;
|
|
28
|
+
topicType: ETopicType;
|
|
29
|
+
conceptIds: Id[];
|
|
30
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql } from
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
2
|
export const DELETE_PRESET = gql `
|
|
3
3
|
mutation DeletePreset($presetId: Int!) {
|
|
4
4
|
restricted {
|
|
@@ -15,6 +15,14 @@ export const DUPLICATE_PRESET = gql `
|
|
|
15
15
|
name
|
|
16
16
|
topicType
|
|
17
17
|
likes
|
|
18
|
+
topics {
|
|
19
|
+
id
|
|
20
|
+
name
|
|
21
|
+
concepts {
|
|
22
|
+
id
|
|
23
|
+
name
|
|
24
|
+
}
|
|
25
|
+
}
|
|
18
26
|
}
|
|
19
27
|
}
|
|
20
28
|
}
|
|
@@ -28,6 +36,36 @@ export const EDIT_PRESET = gql `
|
|
|
28
36
|
name
|
|
29
37
|
topicType
|
|
30
38
|
likes
|
|
39
|
+
topics {
|
|
40
|
+
id
|
|
41
|
+
name
|
|
42
|
+
concepts {
|
|
43
|
+
id
|
|
44
|
+
name
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
export const CREATE_PRESET = gql `
|
|
52
|
+
mutation CreatePreset($data: CreatePresetInput!) {
|
|
53
|
+
restricted {
|
|
54
|
+
createPreset(data: $data) {
|
|
55
|
+
id
|
|
56
|
+
createdAt
|
|
57
|
+
userId
|
|
58
|
+
name
|
|
59
|
+
topicType
|
|
60
|
+
likes
|
|
61
|
+
topics {
|
|
62
|
+
id
|
|
63
|
+
name
|
|
64
|
+
concepts {
|
|
65
|
+
id
|
|
66
|
+
name
|
|
67
|
+
}
|
|
68
|
+
}
|
|
31
69
|
}
|
|
32
70
|
}
|
|
33
71
|
}
|