@quesmed/types 2.5.43 → 2.5.45

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,6 @@
1
1
  import { RestrictedData } from "../../types";
2
2
  import { IPreset } from "../../../models/Preset";
3
+ import { ETopicType } from "../../../models";
3
4
  export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
4
5
  export type IDeletePresetData = RestrictedData<boolean, 'deletePreset'>;
5
6
  export interface IDeletePresetVar {
@@ -10,3 +11,13 @@ export type IDuplicatePresetData = RestrictedData<IPreset, 'duplicatePreset'>;
10
11
  export interface IDuplicatePresetVar {
11
12
  presetId: number;
12
13
  }
14
+ export declare const EDIT_PRESET: import("@apollo/client").DocumentNode;
15
+ export type IEditPresetData = RestrictedData<IPreset, 'editPreset'>;
16
+ export interface IEditPresetVar {
17
+ presetId: number;
18
+ data: {
19
+ name?: string;
20
+ topicType?: ETopicType;
21
+ conceptIds?: number[];
22
+ };
23
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DUPLICATE_PRESET = exports.DELETE_PRESET = void 0;
3
+ 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!) {
@@ -22,3 +22,16 @@ exports.DUPLICATE_PRESET = (0, client_1.gql) `
22
22
  }
23
23
  }
24
24
  `;
25
+ exports.EDIT_PRESET = (0, client_1.gql) `
26
+ mutation EditPreset($presetId: Int!, $data: EditPresetInput!) {
27
+ restricted {
28
+ editPreset(presetId: $presetId, data: $data) {
29
+ id
30
+ userId
31
+ name
32
+ topicType
33
+ likes
34
+ }
35
+ }
36
+ }
37
+ `;
@@ -89,8 +89,12 @@ exports.OSCE_MARKSHEET_ACTION = (0, client_1.gql) `
89
89
  displayName
90
90
  }
91
91
  members {
92
- id
92
+ osceMarksheetId
93
93
  userId
94
+ user {
95
+ id
96
+ displayName
97
+ }
94
98
  role
95
99
  }
96
100
  feedback
@@ -1,5 +1,6 @@
1
1
  import { RestrictedData } from "../../types";
2
2
  import { IPreset } from "../../../models/Preset";
3
+ import { ETopicType } from "../../../models";
3
4
  export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
4
5
  export type IDeletePresetData = RestrictedData<boolean, 'deletePreset'>;
5
6
  export interface IDeletePresetVar {
@@ -10,3 +11,13 @@ export type IDuplicatePresetData = RestrictedData<IPreset, 'duplicatePreset'>;
10
11
  export interface IDuplicatePresetVar {
11
12
  presetId: number;
12
13
  }
14
+ export declare const EDIT_PRESET: import("@apollo/client").DocumentNode;
15
+ export type IEditPresetData = RestrictedData<IPreset, 'editPreset'>;
16
+ export interface IEditPresetVar {
17
+ presetId: number;
18
+ data: {
19
+ name?: string;
20
+ topicType?: ETopicType;
21
+ conceptIds?: number[];
22
+ };
23
+ }
@@ -19,3 +19,16 @@ export const DUPLICATE_PRESET = gql `
19
19
  }
20
20
  }
21
21
  `;
22
+ export const EDIT_PRESET = gql `
23
+ mutation EditPreset($presetId: Int!, $data: EditPresetInput!) {
24
+ restricted {
25
+ editPreset(presetId: $presetId, data: $data) {
26
+ id
27
+ userId
28
+ name
29
+ topicType
30
+ likes
31
+ }
32
+ }
33
+ }
34
+ `;
@@ -1,6 +1,6 @@
1
1
  import { gql } from '@apollo/client';
2
2
  import { EOsceRoles, } from '../../models';
3
- import { OSCE_MARKSHEET_MARK_FIELDS, OSCE_MATCHMAKING_ACTION_FIELDS } from '../fragments';
3
+ import { OSCE_MARKSHEET_MARK_FIELDS, OSCE_MATCHMAKING_ACTION_FIELDS, } from '../fragments';
4
4
  export const OSCE_ROLE_CHANGE_KEY = 'OSCE_ROLE_CHANGE';
5
5
  export const OSCE_MARKSHEET_ACTION_KEY = 'OSCE_MARKSHEET_ACTION';
6
6
  export const OSCE_MARKSHEET_TIMER_KEY = 'OSCE_MARKSHEET_TIMER';
@@ -85,8 +85,12 @@ export const OSCE_MARKSHEET_ACTION = gql `
85
85
  displayName
86
86
  }
87
87
  members {
88
- id
88
+ osceMarksheetId
89
89
  userId
90
+ user {
91
+ id
92
+ displayName
93
+ }
90
94
  role
91
95
  }
92
96
  feedback
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.43",
3
+ "version": "2.5.45",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",