@quesmed/types 2.5.42 → 2.5.43

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,6 +1,12 @@
1
1
  import { RestrictedData } from "../../types";
2
+ import { IPreset } from "../../../models/Preset";
2
3
  export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
3
4
  export type IDeletePresetData = RestrictedData<boolean, 'deletePreset'>;
4
5
  export interface IDeletePresetVar {
5
6
  presetId: number;
6
7
  }
8
+ export declare const DUPLICATE_PRESET: import("@apollo/client").DocumentNode;
9
+ export type IDuplicatePresetData = RestrictedData<IPreset, 'duplicatePreset'>;
10
+ export interface IDuplicatePresetVar {
11
+ presetId: number;
12
+ }
@@ -1,11 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DELETE_PRESET = void 0;
3
+ 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
- mutation DeletePreset {
6
+ mutation DeletePreset($presetId: Int!) {
7
7
  restricted {
8
- deletePreset
8
+ deletePreset(presetId: $presetId)
9
+ }
10
+ }
11
+ `;
12
+ exports.DUPLICATE_PRESET = (0, client_1.gql) `
13
+ mutation DuplicatePreset($presetId: Int!) {
14
+ restricted {
15
+ duplicatePreset(presetId: $presetId) {
16
+ id
17
+ userId
18
+ name
19
+ topicType
20
+ likes
21
+ }
9
22
  }
10
23
  }
11
24
  `;
@@ -1,6 +1,12 @@
1
1
  import { RestrictedData } from "../../types";
2
+ import { IPreset } from "../../../models/Preset";
2
3
  export declare const DELETE_PRESET: import("@apollo/client").DocumentNode;
3
4
  export type IDeletePresetData = RestrictedData<boolean, 'deletePreset'>;
4
5
  export interface IDeletePresetVar {
5
6
  presetId: number;
6
7
  }
8
+ export declare const DUPLICATE_PRESET: import("@apollo/client").DocumentNode;
9
+ export type IDuplicatePresetData = RestrictedData<IPreset, 'duplicatePreset'>;
10
+ export interface IDuplicatePresetVar {
11
+ presetId: number;
12
+ }
@@ -1,8 +1,21 @@
1
1
  import { gql } from "@apollo/client";
2
2
  export const DELETE_PRESET = gql `
3
- mutation DeletePreset {
3
+ mutation DeletePreset($presetId: Int!) {
4
4
  restricted {
5
- deletePreset
5
+ deletePreset(presetId: $presetId)
6
+ }
7
+ }
8
+ `;
9
+ export const DUPLICATE_PRESET = gql `
10
+ mutation DuplicatePreset($presetId: Int!) {
11
+ restricted {
12
+ duplicatePreset(presetId: $presetId) {
13
+ id
14
+ userId
15
+ name
16
+ topicType
17
+ likes
18
+ }
6
19
  }
7
20
  }
8
21
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.42",
3
+ "version": "2.5.43",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",