@quesmed/types-rn 2.6.147 → 2.6.149

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.
@@ -9,7 +9,9 @@ export declare enum EBatchType {
9
9
  CHAPTER = 2,
10
10
  VIDEO = 3,
11
11
  MOCK_TEST = 4,
12
- CONCEPT = 5
12
+ CONCEPT = 5,
13
+ TOPIC = 6,
14
+ CARD = 7
13
15
  }
14
16
  export declare enum EContentType {
15
17
  MARKDOWN = 0,
package/models/Content.js CHANGED
@@ -9,6 +9,8 @@ var EBatchType;
9
9
  EBatchType[EBatchType["VIDEO"] = 3] = "VIDEO";
10
10
  EBatchType[EBatchType["MOCK_TEST"] = 4] = "MOCK_TEST";
11
11
  EBatchType[EBatchType["CONCEPT"] = 5] = "CONCEPT";
12
+ EBatchType[EBatchType["TOPIC"] = 6] = "TOPIC";
13
+ EBatchType[EBatchType["CARD"] = 7] = "CARD";
12
14
  })(EBatchType = exports.EBatchType || (exports.EBatchType = {}));
13
15
  var EContentType;
14
16
  (function (EContentType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.147",
3
+ "version": "2.6.149",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -58,12 +58,14 @@ export interface IUpdateBatchVar {
58
58
  }
59
59
  export type IUpdateBatchData = AdminData<IContentResult, 'updateBatch'>;
60
60
  export declare const UPDATE_BATCH: import("@apollo/client").DocumentNode;
61
- export interface IPublicBatchVar {
62
- batchId: string;
61
+ export type IToggleVisibilityVar = {
62
+ batchId?: string;
63
63
  visibility: boolean;
64
- }
65
- export type IPublicBatchData = AdminData<IContentResult, 'publicBatch'>;
66
- export declare const PUBLIC_BATCH: import("@apollo/client").DocumentNode;
64
+ type?: EBatchType;
65
+ ids?: number[];
66
+ };
67
+ export type IToggleVisibilityData = AdminData<IContentResult, 'toggleVisibility'>;
68
+ export declare const TOGGLE_VISIBILITY: import("@apollo/client").DocumentNode;
67
69
  export interface IUploadImagesVar {
68
70
  file: FileData;
69
71
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REDIS_CALL = exports.GET_PRODUCT_TRANSACTIONS = exports.CONTACT_SYNC_STATUS = exports.CONTACT_SYNC = exports.CLONE_CONTENT = exports.DELETE_IMAGES = exports.QUEUE_STATUS = exports.DELETE_RECORDS = exports.DOWNLOAD_IMAGES = exports.UPLOAD_FILES = exports.DELETE_FILES = exports.ES3Folder = exports.UPLOAD_IMAGES = exports.PUBLIC_BATCH = exports.UPDATE_BATCH = exports.IMPORT_BATCH = exports.VALIDATE_MOCKTEST = exports.VALIDATE_UCAT_QUESTIONS = exports.VALIDATE_QUESTIONS = exports.VALIDATE_STATIONS = exports.VALIDATE_BOOK = void 0;
3
+ exports.REDIS_CALL = exports.GET_PRODUCT_TRANSACTIONS = exports.CONTACT_SYNC_STATUS = exports.CONTACT_SYNC = exports.CLONE_CONTENT = exports.DELETE_IMAGES = exports.QUEUE_STATUS = exports.DELETE_RECORDS = exports.DOWNLOAD_IMAGES = exports.UPLOAD_FILES = exports.DELETE_FILES = exports.ES3Folder = exports.UPLOAD_IMAGES = exports.TOGGLE_VISIBILITY = exports.UPDATE_BATCH = exports.IMPORT_BATCH = exports.VALIDATE_MOCKTEST = exports.VALIDATE_UCAT_QUESTIONS = exports.VALIDATE_QUESTIONS = exports.VALIDATE_STATIONS = exports.VALIDATE_BOOK = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.VALIDATE_BOOK = (0, client_1.gql) `
6
6
  mutation ValidateBook($input: ValidateBookInput!) {
@@ -93,10 +93,10 @@ exports.UPDATE_BATCH = (0, client_1.gql) `
93
93
  }
94
94
  }
95
95
  `;
96
- exports.PUBLIC_BATCH = (0, client_1.gql) `
97
- mutation PublicBatch($batchId: String!, $visibility: Boolean!) {
96
+ exports.TOGGLE_VISIBILITY = (0, client_1.gql) `
97
+ mutation ToggleVisibility($input: VisibilityInput!) {
98
98
  admin {
99
- publicBatch(batchId: $batchId, visibility: $visibility) {
99
+ toggleVisibility(input: $input) {
100
100
  batchId
101
101
  logFile
102
102
  status
@@ -5,7 +5,9 @@ export type IRefreshMtvVar = {
5
5
  };
6
6
  export type IRefreshMtvData = AdminData<boolean, 'refreshMtv'>;
7
7
  export declare const REFRESH_WIKI: import("@apollo/client").DocumentNode;
8
- export type IRefreshWikiVar = null;
8
+ export type IRefreshWikiVar = {
9
+ chapterIds?: number[];
10
+ };
9
11
  export type IRefreshWikiData = AdminData<boolean, 'refreshWiki'>;
10
12
  export declare const RESET_QUES_DIFFICULTY: import("@apollo/client").DocumentNode;
11
13
  export type IResetQueDifficultyVar = null;
@@ -10,9 +10,9 @@ exports.REFRESH_MTV = (0, client_1.gql) `
10
10
  }
11
11
  `;
12
12
  exports.REFRESH_WIKI = (0, client_1.gql) `
13
- mutation RefreshWiki {
13
+ mutation RefreshWiki($chapterIds: [Int]) {
14
14
  admin {
15
- refreshWiki
15
+ refreshWiki(chapterIds: $chapterIds)
16
16
  }
17
17
  }
18
18
  `;
@@ -22,6 +22,7 @@ export interface IRevenue {
22
22
  subscriptionCount: number;
23
23
  totalEarning: number;
24
24
  invoiceCount: number;
25
+ breakdown: IRevenue[];
25
26
  }
26
27
  export declare enum ESubType {
27
28
  ALL = 0,
@@ -144,7 +145,7 @@ export type IAppUsageGraphVar = {
144
145
  year: number | null;
145
146
  force: boolean;
146
147
  productIds: EProductType[];
147
- groupBy: 'question' | 'quiz';
148
+ groupBy: 'question' | 'quiz' | 'station';
148
149
  };
149
150
  export type IAppUsageGraphData = AdminData<Array<ITimeSeriesData>, 'appUsageGraph'>;
150
151
  export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
@@ -50,6 +50,17 @@ exports.EARNINGS = (0, client_1.gql) `
50
50
  subscriptionCount
51
51
  totalEarning
52
52
  invoiceCount
53
+ breakdown {
54
+ entitlement {
55
+ id
56
+ name
57
+ }
58
+ duration
59
+ name
60
+ subscriptionCount
61
+ totalEarning
62
+ invoiceCount
63
+ }
53
64
  }
54
65
  }
55
66
  }