@quesmed/types 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.
@@ -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
+ `;
@@ -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;
@@ -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
@@ -81,6 +93,10 @@ export const USER_BREAKDOWN = gql `
81
93
  key
82
94
  value
83
95
  }
96
+ universities {
97
+ key
98
+ value
99
+ }
84
100
  }
85
101
  }
86
102
  }
@@ -192,3 +208,54 @@ export const QUESTION_STATS = gql `
192
208
  }
193
209
  }
194
210
  `;
211
+ export const USER_CANCELLATION_REASONS = gql `
212
+ query UserCancellationReasons(
213
+ $productId: Int
214
+ $from: Date
215
+ $to: Date
216
+ $source: Int
217
+ $force: Boolean!
218
+ ) {
219
+ admin {
220
+ userCancellationReasons(
221
+ force: $force
222
+ from: $from
223
+ to: $to
224
+ productId: $productId
225
+ source: $source
226
+ ) {
227
+ total
228
+ feedbacks {
229
+ id
230
+ username
231
+ displayName
232
+ firstName
233
+ lastName
234
+ createdAt
235
+ subscriptions(active: true) {
236
+ id
237
+ comment
238
+ feedback
239
+ periodEndAt
240
+ updatedAt
241
+ product {
242
+ id
243
+ name
244
+ duration
245
+ }
246
+ }
247
+ }
248
+ }
249
+ }
250
+ }
251
+ `;
252
+ export const DROPDOWN_OPTIONS = gql `
253
+ query DropdownOptions($table: String, $search: String, $force: Boolean!) {
254
+ admin {
255
+ dropdownOptions(force: $force, search: $search, table: $table) {
256
+ key
257
+ value
258
+ }
259
+ }
260
+ }
261
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.123",
3
+ "version": "2.6.125",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",