@quesmed/types-rn 2.6.122 → 2.6.124

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.
@@ -105,6 +105,7 @@ export interface IOverwriteOpts {
105
105
  batchId: string | null;
106
106
  resetLikes: boolean;
107
107
  resetProgress: boolean;
108
+ resetVotes: boolean;
108
109
  picture: boolean;
109
110
  }
110
111
  export interface IContentArgs {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.122",
3
+ "version": "2.6.124",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -89,7 +89,7 @@ export declare const getQuestionHighlightOptimisticResponse: (userId: number, hi
89
89
  end: number;
90
90
  text: string;
91
91
  color: string;
92
- part?: string | undefined;
92
+ part: string;
93
93
  tag: string;
94
94
  __typename: string;
95
95
  }[];
@@ -434,6 +434,7 @@ const getQuestionHighlightOptimisticResponse = (userId, highlights, questionId)
434
434
  __typename: 'HighlightNode',
435
435
  tag: '',
436
436
  color: '',
437
+ part: '',
437
438
  ...highlight,
438
439
  })),
439
440
  __typename: 'ChapterHighlight',
@@ -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;
@@ -73,6 +74,7 @@ export type IUserBreakdownVar = {
73
74
  from: Date | number | null;
74
75
  to: Date | number | null;
75
76
  force: boolean;
77
+ subscribed: boolean | null;
76
78
  };
77
79
  export type IUserBreakdownData = AdminData<IUserBreakdown, 'userBreakdown'>;
78
80
  export declare const USER_FEEDBACKS: import("@apollo/client").DocumentNode;
@@ -126,3 +128,26 @@ export type IQuestionStatsVar = {
126
128
  productId: EProductType;
127
129
  };
128
130
  export type IQuestionStatsData = AdminData<IQuestionStats, 'questionStats'>;
131
+ export interface ICancellationReason {
132
+ total: number;
133
+ feedbacks: Array<IUser>;
134
+ }
135
+ export type ICancellationReasonVar = {
136
+ from: Date | number | null;
137
+ to: Date | number | null;
138
+ force: boolean;
139
+ productId: EProductType;
140
+ source: ESubSource | null;
141
+ };
142
+ export type ICancellationReasonData = AdminData<ICancellationReason, 'userCancellationReasons'>;
143
+ export declare const USER_CANCELLATION_REASONS: import("@apollo/client").DocumentNode;
144
+ export type IDropdownOptionsVar = {
145
+ table: string | null;
146
+ search: string | null;
147
+ force: boolean;
148
+ };
149
+ export type IDropdownOptionsData = AdminData<Array<{
150
+ key: string;
151
+ value: number;
152
+ }>, 'dropdownOptions'>;
153
+ 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
@@ -195,3 +207,54 @@ exports.QUESTION_STATS = (0, client_1.gql) `
195
207
  }
196
208
  }
197
209
  `;
210
+ exports.USER_CANCELLATION_REASONS = (0, client_1.gql) `
211
+ query UserCancellationReasons(
212
+ $productId: Int
213
+ $from: Date
214
+ $to: Date
215
+ $source: Int
216
+ $force: Boolean!
217
+ ) {
218
+ admin {
219
+ userCancellationReasons(
220
+ force: $force
221
+ from: $from
222
+ to: $to
223
+ productId: $productId
224
+ source: $source
225
+ ) {
226
+ total
227
+ feedbacks {
228
+ id
229
+ username
230
+ displayName
231
+ firstName
232
+ lastName
233
+ createdAt
234
+ subscriptions(active: true) {
235
+ id
236
+ comment
237
+ feedback
238
+ periodEndAt
239
+ updatedAt
240
+ product {
241
+ id
242
+ name
243
+ duration
244
+ }
245
+ }
246
+ }
247
+ }
248
+ }
249
+ }
250
+ `;
251
+ exports.DROPDOWN_OPTIONS = (0, client_1.gql) `
252
+ query DropdownOptions($table: String, $search: String, $force: Boolean!) {
253
+ admin {
254
+ dropdownOptions(force: $force, search: $search, table: $table) {
255
+ key
256
+ value
257
+ }
258
+ }
259
+ }
260
+ `;