@quesmed/types 2.5.28 → 2.5.30

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 { Id } from './Type';
2
2
  export declare enum EProductType {
3
+ ALL = 0,
3
4
  QBANK = 1,
4
5
  OSCE = 2,
5
6
  BUNDLE = 3,
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EAppType = exports.EProductType = void 0;
4
4
  var EProductType;
5
5
  (function (EProductType) {
6
+ EProductType[EProductType["ALL"] = 0] = "ALL";
6
7
  EProductType[EProductType["QBANK"] = 1] = "QBANK";
7
8
  EProductType[EProductType["OSCE"] = 2] = "OSCE";
8
9
  EProductType[EProductType["BUNDLE"] = 3] = "BUNDLE";
@@ -1,4 +1,7 @@
1
- import { IProduct } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
1
+ import { EProductType, IProduct } from '../../models';
2
+ import { RootData, graphqlNormalize } from '../types';
3
3
  export type IProductsData = RootData<(graphqlNormalize & IProduct)[], 'products'>;
4
+ export interface IProductsVar {
5
+ typeId: EProductType;
6
+ }
4
7
  export declare const PRODUCTS: import("@apollo/client").DocumentNode;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PRODUCTS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.PRODUCTS = (0, client_1.gql) `
6
- query Products {
7
- products {
6
+ query Products($typeId: Int!) {
7
+ products(typeId: $typeId) {
8
8
  id
9
9
  createdAt
10
10
  description
@@ -1,5 +1,6 @@
1
1
  import { Id } from './Type';
2
2
  export declare enum EProductType {
3
+ ALL = 0,
3
4
  QBANK = 1,
4
5
  OSCE = 2,
5
6
  BUNDLE = 3,
@@ -1,5 +1,6 @@
1
1
  export var EProductType;
2
2
  (function (EProductType) {
3
+ EProductType[EProductType["ALL"] = 0] = "ALL";
3
4
  EProductType[EProductType["QBANK"] = 1] = "QBANK";
4
5
  EProductType[EProductType["OSCE"] = 2] = "OSCE";
5
6
  EProductType[EProductType["BUNDLE"] = 3] = "BUNDLE";
@@ -1,4 +1,7 @@
1
- import { IProduct } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
1
+ import { EProductType, IProduct } from '../../models';
2
+ import { RootData, graphqlNormalize } from '../types';
3
3
  export type IProductsData = RootData<(graphqlNormalize & IProduct)[], 'products'>;
4
+ export interface IProductsVar {
5
+ typeId: EProductType;
6
+ }
4
7
  export declare const PRODUCTS: import("@apollo/client").DocumentNode;
@@ -1,7 +1,7 @@
1
1
  import { gql } from '@apollo/client';
2
2
  export const PRODUCTS = gql `
3
- query Products {
4
- products {
3
+ query Products($typeId: Int!) {
4
+ products(typeId: $typeId) {
5
5
  id
6
6
  createdAt
7
7
  description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.28",
3
+ "version": "2.5.30",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",