@quesmed/types-rn 2.6.123 → 2.6.125

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.123",
3
+ "version": "2.6.125",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,5 +1,5 @@
1
- import { EProductDuration, EProductType, ESubSource, IEntitlement, IProductFeedback, IUser } from '../../../models';
2
- import { AdminData } from '../../types';
1
+ import type { EProductDuration, EProductType, ESubSource, IEntitlement, IProductFeedback, IUser } from '../../../models';
2
+ import type { AdminData } from '../../types';
3
3
  export declare const IMPORT_STATS: import("@apollo/client").DocumentNode;
4
4
  export interface IImportStats {
5
5
  totalBatches: number;
@@ -35,6 +35,7 @@ export type IEarningsVar = {
35
35
  force: boolean;
36
36
  subType: ESubType;
37
37
  source: ESubSource;
38
+ universityId: number | null;
38
39
  };
39
40
  export type IEarningsData = AdminData<IRevenue[], 'earnings'>;
40
41
  export declare const USER_STATUS: import("@apollo/client").DocumentNode;
@@ -68,11 +69,16 @@ export interface IUserBreakdown {
68
69
  key: string;
69
70
  value: number;
70
71
  }>;
72
+ universities: Array<{
73
+ key: string;
74
+ value: number;
75
+ }>;
71
76
  }
72
77
  export type IUserBreakdownVar = {
73
78
  from: Date | number | null;
74
79
  to: Date | number | null;
75
80
  force: boolean;
81
+ subscribed: boolean | null;
76
82
  };
77
83
  export type IUserBreakdownData = AdminData<IUserBreakdown, 'userBreakdown'>;
78
84
  export declare const USER_FEEDBACKS: import("@apollo/client").DocumentNode;
@@ -126,3 +132,26 @@ export type IQuestionStatsVar = {
126
132
  productId: EProductType;
127
133
  };
128
134
  export type IQuestionStatsData = AdminData<IQuestionStats, 'questionStats'>;
135
+ export interface ICancellationReason {
136
+ total: number;
137
+ feedbacks: Array<IUser>;
138
+ }
139
+ export type ICancellationReasonVar = {
140
+ from: Date | number | null;
141
+ to: Date | number | null;
142
+ force: boolean;
143
+ productId: EProductType;
144
+ source: ESubSource | null;
145
+ };
146
+ export type ICancellationReasonData = AdminData<ICancellationReason, 'userCancellationReasons'>;
147
+ export declare const USER_CANCELLATION_REASONS: import("@apollo/client").DocumentNode;
148
+ export type IDropdownOptionsVar = {
149
+ table: string | null;
150
+ search: string | null;
151
+ force: boolean;
152
+ };
153
+ export type IDropdownOptionsData = AdminData<Array<{
154
+ key: string;
155
+ value: number;
156
+ }>, 'dropdownOptions'>;
157
+ export declare const DROPDOWN_OPTIONS: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QUESTION_STATS = exports.USER_FEEDBACKS = exports.USER_BREAKDOWN = exports.USER_STATUS = exports.ESubType = exports.EARNINGS = exports.IMPORT_STATS = void 0;
3
+ exports.DROPDOWN_OPTIONS = exports.USER_CANCELLATION_REASONS = exports.QUESTION_STATS = exports.USER_FEEDBACKS = exports.USER_BREAKDOWN = exports.USER_STATUS = exports.ESubType = exports.EARNINGS = exports.IMPORT_STATS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.IMPORT_STATS = (0, client_1.gql) `
6
6
  query ImportStats($from: Date, $to: Date, $force: Boolean) {
@@ -23,11 +23,13 @@ exports.EARNINGS = (0, client_1.gql) `
23
23
  $to: Date
24
24
  $force: Boolean!
25
25
  $source: Int
26
+ $universityId: Int
26
27
  ) {
27
28
  admin {
28
29
  earnings(
29
30
  subType: $subType
30
31
  duration: $duration
32
+ universityId: $universityId
31
33
  from: $from
32
34
  to: $to
33
35
  force: $force
@@ -65,9 +67,19 @@ exports.USER_STATUS = (0, client_1.gql) `
65
67
  }
66
68
  `;
67
69
  exports.USER_BREAKDOWN = (0, client_1.gql) `
68
- query UserBreakdown($from: Date, $to: Date, $force: Boolean!) {
70
+ query UserBreakdown(
71
+ $from: Date
72
+ $to: Date
73
+ $subscribed: Boolean
74
+ $force: Boolean!
75
+ ) {
69
76
  admin {
70
- userBreakdown(from: $from, to: $to, force: $force) {
77
+ userBreakdown(
78
+ from: $from
79
+ to: $to
80
+ subscribed: $subscribed
81
+ force: $force
82
+ ) {
71
83
  devices {
72
84
  key
73
85
  value
@@ -84,6 +96,10 @@ exports.USER_BREAKDOWN = (0, client_1.gql) `
84
96
  key
85
97
  value
86
98
  }
99
+ universities {
100
+ key
101
+ value
102
+ }
87
103
  }
88
104
  }
89
105
  }
@@ -195,3 +211,54 @@ exports.QUESTION_STATS = (0, client_1.gql) `
195
211
  }
196
212
  }
197
213
  `;
214
+ exports.USER_CANCELLATION_REASONS = (0, client_1.gql) `
215
+ query UserCancellationReasons(
216
+ $productId: Int
217
+ $from: Date
218
+ $to: Date
219
+ $source: Int
220
+ $force: Boolean!
221
+ ) {
222
+ admin {
223
+ userCancellationReasons(
224
+ force: $force
225
+ from: $from
226
+ to: $to
227
+ productId: $productId
228
+ source: $source
229
+ ) {
230
+ total
231
+ feedbacks {
232
+ id
233
+ username
234
+ displayName
235
+ firstName
236
+ lastName
237
+ createdAt
238
+ subscriptions(active: true) {
239
+ id
240
+ comment
241
+ feedback
242
+ periodEndAt
243
+ updatedAt
244
+ product {
245
+ id
246
+ name
247
+ duration
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
254
+ `;
255
+ exports.DROPDOWN_OPTIONS = (0, client_1.gql) `
256
+ query DropdownOptions($table: String, $search: String, $force: Boolean!) {
257
+ admin {
258
+ dropdownOptions(force: $force, search: $search, table: $table) {
259
+ key
260
+ value
261
+ }
262
+ }
263
+ }
264
+ `;