@quesmed/types 1.4.15 → 1.4.16
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/models/User.d.ts
CHANGED
|
@@ -8,10 +8,12 @@ import { Id } from './Type';
|
|
|
8
8
|
export declare type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
|
|
9
9
|
export interface IPayload {
|
|
10
10
|
id: Id;
|
|
11
|
+
displayName: string;
|
|
11
12
|
firstName: string;
|
|
12
13
|
lastName: string;
|
|
13
14
|
username: string;
|
|
14
15
|
accessLevel: string;
|
|
16
|
+
tocAccepted: boolean;
|
|
15
17
|
exp: number;
|
|
16
18
|
stripeSubscriptionEndDate: number | null;
|
|
17
19
|
stripeQBankSubscriptionEndDate: number | null;
|
|
@@ -20,9 +22,11 @@ export interface IPayload {
|
|
|
20
22
|
}
|
|
21
23
|
export interface IUser {
|
|
22
24
|
id: Id;
|
|
25
|
+
displayName: string;
|
|
23
26
|
username: string;
|
|
24
27
|
firstName: string;
|
|
25
28
|
lastName: string;
|
|
29
|
+
tocAccepted: boolean;
|
|
26
30
|
classYear: IClassYear;
|
|
27
31
|
graduationYear: number;
|
|
28
32
|
universityId: number;
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IUser } from '../../../models';
|
|
2
|
+
import { RestrictedData } from '../../types';
|
|
2
3
|
export interface IResetProgressVar {
|
|
3
4
|
questions?: boolean;
|
|
4
5
|
cards?: boolean;
|
|
@@ -6,6 +7,7 @@ export interface IResetProgressVar {
|
|
|
6
7
|
export interface IResetProgressData extends IUser {
|
|
7
8
|
}
|
|
8
9
|
export interface IUserInput {
|
|
10
|
+
displayName?: string;
|
|
9
11
|
firstName?: string;
|
|
10
12
|
lastName?: string;
|
|
11
13
|
classYear?: string;
|
|
@@ -23,3 +25,6 @@ export interface IRenewTokenVar {
|
|
|
23
25
|
days?: number;
|
|
24
26
|
}
|
|
25
27
|
export declare type IRenewTokenData = string;
|
|
28
|
+
export declare const TOC_ACCEPT: import("@apollo/client").DocumentNode;
|
|
29
|
+
export declare type ITocAcceptVar = null;
|
|
30
|
+
export declare type ITocAcceptData = RestrictedData<string, 'tocAccept'>;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOC_ACCEPT = void 0;
|
|
4
|
+
const client_1 = require("@apollo/client");
|
|
5
|
+
exports.TOC_ACCEPT = (0, client_1.gql) `
|
|
6
|
+
mutation TocAccept {
|
|
7
|
+
restricted {
|
|
8
|
+
tocAccept
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|