@quesmed/types-rn 2.6.103 → 2.6.105

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.
@@ -99,6 +99,14 @@ export declare enum EAppType {
99
99
  MSRA = 5,
100
100
  PLAB = 6
101
101
  }
102
+ export declare enum EProductDuration {
103
+ ALL = 0,
104
+ ONE = 1,
105
+ TWO = 2,
106
+ THREE = 3,
107
+ SIX = 6,
108
+ TWELVE = 12
109
+ }
102
110
  export interface IEntitlement {
103
111
  id: EProductType;
104
112
  name: string;
package/models/Product.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EAppType = exports.EEntitlementType = exports.EProductType = void 0;
3
+ exports.EProductDuration = exports.EAppType = exports.EEntitlementType = exports.EProductType = void 0;
4
4
  /**
5
5
  * TODO:: Refactor so that it only has product and not entitlements
6
6
  */
@@ -87,3 +87,12 @@ var EAppType;
87
87
  EAppType[EAppType["MSRA"] = 5] = "MSRA";
88
88
  EAppType[EAppType["PLAB"] = 6] = "PLAB";
89
89
  })(EAppType = exports.EAppType || (exports.EAppType = {}));
90
+ var EProductDuration;
91
+ (function (EProductDuration) {
92
+ EProductDuration[EProductDuration["ALL"] = 0] = "ALL";
93
+ EProductDuration[EProductDuration["ONE"] = 1] = "ONE";
94
+ EProductDuration[EProductDuration["TWO"] = 2] = "TWO";
95
+ EProductDuration[EProductDuration["THREE"] = 3] = "THREE";
96
+ EProductDuration[EProductDuration["SIX"] = 6] = "SIX";
97
+ EProductDuration[EProductDuration["TWELVE"] = 12] = "TWELVE";
98
+ })(EProductDuration = exports.EProductDuration || (exports.EProductDuration = {}));
package/models/User.d.ts CHANGED
@@ -15,6 +15,7 @@ export type IUserSubsriptionDates = keyof ExtractKeysWithPattern<IPayload, 'EndD
15
15
  /** TODO:: Change to enum int and rename to EAccessLevel */
16
16
  export declare enum IAccessLevel {
17
17
  SUBSCRIBER = "subscriber",
18
+ SUPER_ADMIN = "superAdmin",
18
19
  ADMINISTRATOR = "administrator",
19
20
  TUTOR = "tutor",
20
21
  DEMO = "demo",
package/models/User.js CHANGED
@@ -7,6 +7,7 @@ const Product_1 = require("./Product");
7
7
  var IAccessLevel;
8
8
  (function (IAccessLevel) {
9
9
  IAccessLevel["SUBSCRIBER"] = "subscriber";
10
+ IAccessLevel["SUPER_ADMIN"] = "superAdmin";
10
11
  IAccessLevel["ADMINISTRATOR"] = "administrator";
11
12
  IAccessLevel["TUTOR"] = "tutor";
12
13
  IAccessLevel["DEMO"] = "demo";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.103",
3
+ "version": "2.6.105",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,5 +1,5 @@
1
1
  import { AdminData, DB_TYPE } from '../../..';
2
- import { EBatchType, EEntitlementType, EMockTestType, EOsceType, EPaceType, EProductType, ETopicType, FileData, IContentArgs, IContentResult, IResultData } from '../../../models';
2
+ import { EBatchType, EEntitlementType, EMockTestType, EOsceType, EPaceType, EProductDuration, EProductType, ETopicType, FileData, IContentArgs, IContentResult, IResultData } from '../../../models';
3
3
  export interface IBookOptions extends Omit<IContentArgs, 'difficulty'> {
4
4
  topicTypeId: ETopicType;
5
5
  entitlementId: EEntitlementType;
@@ -102,3 +102,13 @@ export interface IContactSyncStatusVar {
102
102
  }
103
103
  export type IContactSyncStatusData = AdminData<Omit<IResultData, 'logFile' | 'batchId' | 'recordIds'>, 'contactSyncStatus'>;
104
104
  export declare const CONTACT_SYNC_STATUS: import("@apollo/client").DocumentNode;
105
+ export interface IProductTransactionsVar {
106
+ input: {
107
+ productId: EProductType;
108
+ duration: EProductDuration;
109
+ startDate: Date | number;
110
+ endDate: Date | number;
111
+ };
112
+ }
113
+ export type IProductTransactionsData = AdminData<Omit<IResultData, 'logFile' | 'batchId' | 'recordIds'>, 'getProductTransactions'>;
114
+ export declare const GET_PRODUCT_TRANSACTIONS: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONTACT_SYNC_STATUS = exports.CONTACT_SYNC = exports.CLONE_CONTENT = exports.DELETE_IMAGES = exports.QUEUE_STATUS = exports.DELETE_RECORDS = exports.DOWNLOAD_IMAGES = exports.UPLOAD_IMAGES = exports.PUBLIC_BATCH = exports.UPDATE_BATCH = exports.IMPORT_BATCH = exports.VALIDATE_MOCKTEST = exports.VALIDATE_QUESTIONS = exports.VALIDATE_STATIONS = exports.VALIDATE_BOOK = void 0;
3
+ 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_IMAGES = exports.PUBLIC_BATCH = exports.UPDATE_BATCH = exports.IMPORT_BATCH = exports.VALIDATE_MOCKTEST = 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!) {
@@ -215,3 +215,15 @@ exports.CONTACT_SYNC_STATUS = (0, client_1.gql) `
215
215
  }
216
216
  }
217
217
  `;
218
+ exports.GET_PRODUCT_TRANSACTIONS = (0, client_1.gql) `
219
+ mutation GetProductTransactions($input: ProductTransactionInput!) {
220
+ admin {
221
+ getProductTransactions(input: $input) {
222
+ status
223
+ message
224
+ data
225
+ errors
226
+ }
227
+ }
228
+ }
229
+ `;