@quesmed/types 2.6.41 → 2.6.42

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,4 +1,4 @@
1
- import { IEntitlement } from './Product';
1
+ import { EProductType, IEntitlement } from './Product';
2
2
  import { Id } from './Type';
3
3
  export interface IFeedback {
4
4
  id: Id;
@@ -7,5 +7,6 @@ export interface IFeedback {
7
7
  name: string;
8
8
  feedback: string;
9
9
  university: string;
10
- product: IEntitlement;
10
+ productId: EProductType | null;
11
+ product: IEntitlement | null;
11
12
  }
@@ -10,6 +10,7 @@ import { IVideo } from './Video';
10
10
  export interface IOsceType {
11
11
  id: Id;
12
12
  name: string;
13
+ index: number;
13
14
  completed: number;
14
15
  total: number;
15
16
  avgScore: number;
@@ -68,6 +68,7 @@ export interface IEntitlement {
68
68
  export interface IEntitlementStats {
69
69
  id: EProductType;
70
70
  name: string;
71
+ index: number;
71
72
  displayName: string;
72
73
  totalQuestions?: number | null;
73
74
  completedQuestions?: number | null;
@@ -1,5 +1,7 @@
1
- import { IFeedback } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
1
+ import { EProductType, IFeedback } from '../../models';
2
+ import { RootData, graphqlNormalize } from '../types';
3
3
  export type IFeedbackData = RootData<(graphqlNormalize & IFeedback)[], 'feedback'>;
4
- export type IFeedbackVar = null;
4
+ export type IFeedbackVar = {
5
+ productId?: EProductType;
6
+ };
5
7
  export declare const FEEDBACK: import("@apollo/client").DocumentNode;
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FEEDBACK = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.FEEDBACK = (0, client_1.gql) `
6
- query Feedback {
7
- feedback {
6
+ query Feedback($productId: Int) {
7
+ feedback(productId: $productId) {
8
8
  id
9
9
  name
10
10
  feedback
11
11
  university
12
+ productId
12
13
  product {
13
14
  id
14
15
  name
@@ -16,6 +16,7 @@ exports.OSCE_STATS = (0, client_1.gql) `
16
16
  completed
17
17
  id
18
18
  name
19
+ index
19
20
  total
20
21
  }
21
22
  }
@@ -20,6 +20,7 @@ exports.PRODUCT_STATS = (0, client_1.gql) `
20
20
  types {
21
21
  id
22
22
  name
23
+ index
23
24
  totalQuestions
24
25
  completedQuestions
25
26
  correctQuestions
@@ -1,4 +1,4 @@
1
- import { IEntitlement } from './Product';
1
+ import { EProductType, IEntitlement } from './Product';
2
2
  import { Id } from './Type';
3
3
  export interface IFeedback {
4
4
  id: Id;
@@ -7,5 +7,6 @@ export interface IFeedback {
7
7
  name: string;
8
8
  feedback: string;
9
9
  university: string;
10
- product: IEntitlement;
10
+ productId: EProductType | null;
11
+ product: IEntitlement | null;
11
12
  }
@@ -10,6 +10,7 @@ import { IVideo } from './Video';
10
10
  export interface IOsceType {
11
11
  id: Id;
12
12
  name: string;
13
+ index: number;
13
14
  completed: number;
14
15
  total: number;
15
16
  avgScore: number;
@@ -68,6 +68,7 @@ export interface IEntitlement {
68
68
  export interface IEntitlementStats {
69
69
  id: EProductType;
70
70
  name: string;
71
+ index: number;
71
72
  displayName: string;
72
73
  totalQuestions?: number | null;
73
74
  completedQuestions?: number | null;
@@ -1,5 +1,7 @@
1
- import { IFeedback } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
1
+ import { EProductType, IFeedback } from '../../models';
2
+ import { RootData, graphqlNormalize } from '../types';
3
3
  export type IFeedbackData = RootData<(graphqlNormalize & IFeedback)[], 'feedback'>;
4
- export type IFeedbackVar = null;
4
+ export type IFeedbackVar = {
5
+ productId?: EProductType;
6
+ };
5
7
  export declare const FEEDBACK: import("@apollo/client").DocumentNode;
@@ -1,11 +1,12 @@
1
1
  import { gql } from '@apollo/client';
2
2
  export const FEEDBACK = gql `
3
- query Feedback {
4
- feedback {
3
+ query Feedback($productId: Int) {
4
+ feedback(productId: $productId) {
5
5
  id
6
6
  name
7
7
  feedback
8
8
  university
9
+ productId
9
10
  product {
10
11
  id
11
12
  name
@@ -13,6 +13,7 @@ export const OSCE_STATS = gql `
13
13
  completed
14
14
  id
15
15
  name
16
+ index
16
17
  total
17
18
  }
18
19
  }
@@ -17,6 +17,7 @@ export const PRODUCT_STATS = gql `
17
17
  types {
18
18
  id
19
19
  name
20
+ index
20
21
  totalQuestions
21
22
  completedQuestions
22
23
  correctQuestions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.41",
3
+ "version": "2.6.42",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",