@quesmed/types-rn 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,
package/models/Product.js CHANGED
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.5.28",
3
+ "version": "2.5.30",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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