@quesmed/types 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 {
@@ -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
+ `;
@@ -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 {
@@ -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
  }[];
@@ -421,6 +421,7 @@ export const getQuestionHighlightOptimisticResponse = (userId, highlights, quest
421
421
  __typename: 'HighlightNode',
422
422
  tag: '',
423
423
  color: '',
424
+ part: '',
424
425
  ...highlight,
425
426
  })),
426
427
  __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;
@@ -20,11 +20,13 @@ export const EARNINGS = gql `
20
20
  $to: Date
21
21
  $force: Boolean!
22
22
  $source: Int
23
+ $universityId: Int
23
24
  ) {
24
25
  admin {
25
26
  earnings(
26
27
  subType: $subType
27
28
  duration: $duration
29
+ universityId: $universityId
28
30
  from: $from
29
31
  to: $to
30
32
  force: $force
@@ -62,9 +64,19 @@ export const USER_STATUS = gql `
62
64
  }
63
65
  `;
64
66
  export const USER_BREAKDOWN = gql `
65
- query UserBreakdown($from: Date, $to: Date, $force: Boolean!) {
67
+ query UserBreakdown(
68
+ $from: Date
69
+ $to: Date
70
+ $subscribed: Boolean
71
+ $force: Boolean!
72
+ ) {
66
73
  admin {
67
- userBreakdown(from: $from, to: $to, force: $force) {
74
+ userBreakdown(
75
+ from: $from
76
+ to: $to
77
+ subscribed: $subscribed
78
+ force: $force
79
+ ) {
68
80
  devices {
69
81
  key
70
82
  value
@@ -192,3 +204,54 @@ export const QUESTION_STATS = gql `
192
204
  }
193
205
  }
194
206
  `;
207
+ export const USER_CANCELLATION_REASONS = gql `
208
+ query UserCancellationReasons(
209
+ $productId: Int
210
+ $from: Date
211
+ $to: Date
212
+ $source: Int
213
+ $force: Boolean!
214
+ ) {
215
+ admin {
216
+ userCancellationReasons(
217
+ force: $force
218
+ from: $from
219
+ to: $to
220
+ productId: $productId
221
+ source: $source
222
+ ) {
223
+ total
224
+ feedbacks {
225
+ id
226
+ username
227
+ displayName
228
+ firstName
229
+ lastName
230
+ createdAt
231
+ subscriptions(active: true) {
232
+ id
233
+ comment
234
+ feedback
235
+ periodEndAt
236
+ updatedAt
237
+ product {
238
+ id
239
+ name
240
+ duration
241
+ }
242
+ }
243
+ }
244
+ }
245
+ }
246
+ }
247
+ `;
248
+ export const DROPDOWN_OPTIONS = gql `
249
+ query DropdownOptions($table: String, $search: String, $force: Boolean!) {
250
+ admin {
251
+ dropdownOptions(force: $force, search: $search, table: $table) {
252
+ key
253
+ value
254
+ }
255
+ }
256
+ }
257
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.122",
3
+ "version": "2.6.124",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",