@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.
package/models/Product.d.ts
CHANGED
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,4 +1,7 @@
|
|
|
1
|
-
import { IProduct } from '../../models';
|
|
2
|
-
import {
|
|
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
|