@quesmed/types 2.6.116 → 2.6.118

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.
@@ -0,0 +1,20 @@
1
+ import { ISubscription } from './Subscription';
2
+ export interface IInvoice {
3
+ id: string;
4
+ amount_due: number;
5
+ amount_paid: number;
6
+ amount_remaining: number;
7
+ status: string;
8
+ subscriptionId: string;
9
+ billing_reason?: string;
10
+ collection_method?: string;
11
+ total?: number;
12
+ tax?: number;
13
+ total_excluding_tax?: number;
14
+ payment_intent?: string;
15
+ metadata?: Record<string, any>;
16
+ createdAt: number | Date;
17
+ updatedAt: number | Date;
18
+ renewed: boolean;
19
+ subscription?: ISubscription;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ import { IInvoice } from './Invoice';
1
2
  import { IProduct } from './Product';
2
3
  import { Id } from './Type';
3
4
  import { IClassYear, IUser } from './User';
@@ -33,4 +34,5 @@ export interface ISubscription {
33
34
  invoiced: number;
34
35
  feedback: ECancelReasons | null;
35
36
  comment: string;
37
+ invoices?: IInvoice[];
36
38
  }
@@ -10,6 +10,7 @@ export * from './Difficulty';
10
10
  export * from './Feedback';
11
11
  export * from './File';
12
12
  export * from './Highlight';
13
+ export * from './Invoice';
13
14
  export * from './Marksheet';
14
15
  export * from './MockTest';
15
16
  export * from './Note';
@@ -26,6 +26,7 @@ __exportStar(require("./Difficulty"), exports);
26
26
  __exportStar(require("./Feedback"), exports);
27
27
  __exportStar(require("./File"), exports);
28
28
  __exportStar(require("./Highlight"), exports);
29
+ __exportStar(require("./Invoice"), exports);
29
30
  __exportStar(require("./Marksheet"), exports);
30
31
  __exportStar(require("./MockTest"), exports);
31
32
  __exportStar(require("./Note"), exports);
@@ -19,8 +19,9 @@ export interface IRevenue {
19
19
  entitlement: IEntitlement;
20
20
  duration: number;
21
21
  name: string;
22
- count: number;
23
- total: number;
22
+ subscriptionCount: number;
23
+ totalEarning: number;
24
+ invoiceCount: number;
24
25
  }
25
26
  export declare enum ESubType {
26
27
  ALL = 0,
@@ -100,29 +101,22 @@ export type IUserFeedbackVar = {
100
101
  };
101
102
  export type IUserFeedbackData = AdminData<IUserFeedback, 'userFeedbacks'>;
102
103
  export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
104
+ export interface IStats {
105
+ id: number;
106
+ name: string;
107
+ count: number;
108
+ voteScore: number;
109
+ firstAttemptScore: number;
110
+ score: number;
111
+ lastEditScore: number;
112
+ }
103
113
  export interface IQuestionStats {
104
114
  totalQuestions: number;
105
115
  totalMockQuestions: number;
106
- mockTests: Array<{
107
- id: number;
108
- name: string;
109
- count: number;
110
- }>;
111
- mockCategories: Array<{
112
- id: number;
113
- name: string;
114
- count: number;
115
- }>;
116
- entitlements: Array<{
117
- id: number;
118
- name: string;
119
- count: number;
120
- }>;
121
- difficulties: Array<{
122
- id: number;
123
- name: string;
124
- count: number;
125
- }>;
116
+ mockTests: Array<IStats>;
117
+ mockCategories: Array<IStats>;
118
+ entitlements: Array<IStats>;
119
+ difficulties: Array<IStats>;
126
120
  }
127
121
  export type IQuestionStatsVar = {
128
122
  from: Date | number | null;
@@ -37,8 +37,9 @@ exports.EARNINGS = (0, client_1.gql) `
37
37
  }
38
38
  duration
39
39
  name
40
- count
41
- total
40
+ subscriptionCount
41
+ totalEarning
42
+ invoiceCount
42
43
  }
43
44
  }
44
45
  }
@@ -156,21 +157,37 @@ exports.QUESTION_STATS = (0, client_1.gql) `
156
157
  id
157
158
  name
158
159
  count
160
+ voteScore
161
+ firstAttemptScore
162
+ score
163
+ lastEditScore
159
164
  }
160
165
  mockCategories {
161
166
  id
162
167
  name
163
168
  count
169
+ voteScore
170
+ firstAttemptScore
171
+ score
172
+ lastEditScore
164
173
  }
165
174
  entitlements {
166
175
  id
167
176
  name
168
177
  count
178
+ voteScore
179
+ firstAttemptScore
180
+ score
181
+ lastEditScore
169
182
  }
170
183
  difficulties {
171
184
  id
172
185
  name
173
186
  count
187
+ voteScore
188
+ firstAttemptScore
189
+ score
190
+ lastEditScore
174
191
  }
175
192
  }
176
193
  }
@@ -0,0 +1,20 @@
1
+ import { ISubscription } from './Subscription';
2
+ export interface IInvoice {
3
+ id: string;
4
+ amount_due: number;
5
+ amount_paid: number;
6
+ amount_remaining: number;
7
+ status: string;
8
+ subscriptionId: string;
9
+ billing_reason?: string;
10
+ collection_method?: string;
11
+ total?: number;
12
+ tax?: number;
13
+ total_excluding_tax?: number;
14
+ payment_intent?: string;
15
+ metadata?: Record<string, any>;
16
+ createdAt: number | Date;
17
+ updatedAt: number | Date;
18
+ renewed: boolean;
19
+ subscription?: ISubscription;
20
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ import { IInvoice } from './Invoice';
1
2
  import { IProduct } from './Product';
2
3
  import { Id } from './Type';
3
4
  import { IClassYear, IUser } from './User';
@@ -33,4 +34,5 @@ export interface ISubscription {
33
34
  invoiced: number;
34
35
  feedback: ECancelReasons | null;
35
36
  comment: string;
37
+ invoices?: IInvoice[];
36
38
  }
@@ -10,6 +10,7 @@ export * from './Difficulty';
10
10
  export * from './Feedback';
11
11
  export * from './File';
12
12
  export * from './Highlight';
13
+ export * from './Invoice';
13
14
  export * from './Marksheet';
14
15
  export * from './MockTest';
15
16
  export * from './Note';
@@ -10,6 +10,7 @@ export * from './Difficulty';
10
10
  export * from './Feedback';
11
11
  export * from './File';
12
12
  export * from './Highlight';
13
+ export * from './Invoice';
13
14
  export * from './Marksheet';
14
15
  export * from './MockTest';
15
16
  export * from './Note';
@@ -19,8 +19,9 @@ export interface IRevenue {
19
19
  entitlement: IEntitlement;
20
20
  duration: number;
21
21
  name: string;
22
- count: number;
23
- total: number;
22
+ subscriptionCount: number;
23
+ totalEarning: number;
24
+ invoiceCount: number;
24
25
  }
25
26
  export declare enum ESubType {
26
27
  ALL = 0,
@@ -100,29 +101,22 @@ export type IUserFeedbackVar = {
100
101
  };
101
102
  export type IUserFeedbackData = AdminData<IUserFeedback, 'userFeedbacks'>;
102
103
  export declare const QUESTION_STATS: import("@apollo/client").DocumentNode;
104
+ export interface IStats {
105
+ id: number;
106
+ name: string;
107
+ count: number;
108
+ voteScore: number;
109
+ firstAttemptScore: number;
110
+ score: number;
111
+ lastEditScore: number;
112
+ }
103
113
  export interface IQuestionStats {
104
114
  totalQuestions: number;
105
115
  totalMockQuestions: number;
106
- mockTests: Array<{
107
- id: number;
108
- name: string;
109
- count: number;
110
- }>;
111
- mockCategories: Array<{
112
- id: number;
113
- name: string;
114
- count: number;
115
- }>;
116
- entitlements: Array<{
117
- id: number;
118
- name: string;
119
- count: number;
120
- }>;
121
- difficulties: Array<{
122
- id: number;
123
- name: string;
124
- count: number;
125
- }>;
116
+ mockTests: Array<IStats>;
117
+ mockCategories: Array<IStats>;
118
+ entitlements: Array<IStats>;
119
+ difficulties: Array<IStats>;
126
120
  }
127
121
  export type IQuestionStatsVar = {
128
122
  from: Date | number | null;
@@ -34,8 +34,9 @@ export const EARNINGS = gql `
34
34
  }
35
35
  duration
36
36
  name
37
- count
38
- total
37
+ subscriptionCount
38
+ totalEarning
39
+ invoiceCount
39
40
  }
40
41
  }
41
42
  }
@@ -153,21 +154,37 @@ export const QUESTION_STATS = gql `
153
154
  id
154
155
  name
155
156
  count
157
+ voteScore
158
+ firstAttemptScore
159
+ score
160
+ lastEditScore
156
161
  }
157
162
  mockCategories {
158
163
  id
159
164
  name
160
165
  count
166
+ voteScore
167
+ firstAttemptScore
168
+ score
169
+ lastEditScore
161
170
  }
162
171
  entitlements {
163
172
  id
164
173
  name
165
174
  count
175
+ voteScore
176
+ firstAttemptScore
177
+ score
178
+ lastEditScore
166
179
  }
167
180
  difficulties {
168
181
  id
169
182
  name
170
183
  count
184
+ voteScore
185
+ firstAttemptScore
186
+ score
187
+ lastEditScore
171
188
  }
172
189
  }
173
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.116",
3
+ "version": "2.6.118",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",