@quesmed/types 2.6.46 → 2.6.47
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/dist/cjs/models/Presentation.d.ts +1 -1
- package/dist/cjs/models/Referrals.d.ts +2 -2
- package/dist/cjs/models/UserSession.d.ts +1 -1
- package/dist/cjs/resolvers/index.d.ts +2 -2
- package/dist/cjs/resolvers/index.js +2 -2
- package/dist/cjs/resolvers/mutation/admin/index.d.ts +1 -1
- package/dist/cjs/resolvers/mutation/admin/index.js +1 -1
- package/dist/cjs/resolvers/mutation/restricted/notification.d.ts +2 -2
- package/dist/cjs/resolvers/query/feedback.d.ts +1 -1
- package/dist/cjs/resolvers/query/feedback.js +2 -2
- package/dist/cjs/resolvers/query/restricted/concepts.d.ts +2 -2
- package/dist/cjs/resolvers/query/restricted/concepts.js +94 -94
- package/dist/cjs/resolvers/query/restricted/preset.js +6 -2
- package/dist/cjs/resolvers/query/restricted/psa.js +6 -1
- package/dist/cjs/resolvers/query/university.d.ts +1 -1
- package/dist/mjs/models/Presentation.d.ts +1 -1
- package/dist/mjs/models/Referrals.d.ts +2 -2
- package/dist/mjs/models/UserSession.d.ts +1 -1
- package/dist/mjs/resolvers/index.d.ts +2 -2
- package/dist/mjs/resolvers/index.js +2 -2
- package/dist/mjs/resolvers/mutation/admin/index.d.ts +1 -1
- package/dist/mjs/resolvers/mutation/admin/index.js +1 -1
- package/dist/mjs/resolvers/mutation/restricted/notification.d.ts +2 -2
- package/dist/mjs/resolvers/query/feedback.d.ts +1 -1
- package/dist/mjs/resolvers/query/feedback.js +2 -2
- package/dist/mjs/resolvers/query/restricted/concepts.d.ts +2 -2
- package/dist/mjs/resolvers/query/restricted/concepts.js +94 -94
- package/dist/mjs/resolvers/query/restricted/preset.js +6 -2
- package/dist/mjs/resolvers/query/restricted/psa.js +6 -1
- package/dist/mjs/resolvers/query/university.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,9 +3,9 @@ import * as mutation from './mutation';
|
|
|
3
3
|
import * as query from './query';
|
|
4
4
|
import * as subscription from './subscription';
|
|
5
5
|
export * from './apollo';
|
|
6
|
-
export * from './types';
|
|
7
|
-
export * from './enums';
|
|
8
6
|
export * from './constants';
|
|
7
|
+
export * from './enums';
|
|
8
|
+
export * from './types';
|
|
9
9
|
export declare namespace Resolvers {
|
|
10
10
|
export import Fragment = fragment;
|
|
11
11
|
export import Muation = mutation;
|
|
@@ -32,9 +32,9 @@ const mutation = __importStar(require("./mutation"));
|
|
|
32
32
|
const query = __importStar(require("./query"));
|
|
33
33
|
const subscription = __importStar(require("./subscription"));
|
|
34
34
|
__exportStar(require("./apollo"), exports);
|
|
35
|
-
__exportStar(require("./types"), exports);
|
|
36
|
-
__exportStar(require("./enums"), exports);
|
|
37
35
|
__exportStar(require("./constants"), exports);
|
|
36
|
+
__exportStar(require("./enums"), exports);
|
|
37
|
+
__exportStar(require("./types"), exports);
|
|
38
38
|
var Resolvers;
|
|
39
39
|
(function (Resolvers) {
|
|
40
40
|
Resolvers.Fragment = fragment;
|
|
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./algoliaSync"), exports);
|
|
18
|
-
__exportStar(require("./token"), exports);
|
|
19
18
|
__exportStar(require("./notification"), exports);
|
|
19
|
+
__exportStar(require("./token"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApolloCache } from '@apollo/client';
|
|
2
2
|
import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
|
|
3
|
-
import { ENotificationActionType, ENotificationType,
|
|
4
|
-
import {
|
|
3
|
+
import { ENotificationActionType, ENotificationType, INotification, Id } from '../../../models';
|
|
4
|
+
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
5
5
|
export interface IAddNotificationInput {
|
|
6
6
|
fromUserId: Id | null;
|
|
7
7
|
userId: Id | null;
|
|
@@ -2,6 +2,6 @@ import { EProductType, IFeedback } from '../../models';
|
|
|
2
2
|
import { RootData, graphqlNormalize } from '../types';
|
|
3
3
|
export type IFeedbackData = RootData<(graphqlNormalize & IFeedback)[], 'feedback'>;
|
|
4
4
|
export type IFeedbackVar = {
|
|
5
|
-
|
|
5
|
+
productIds?: EProductType[];
|
|
6
6
|
};
|
|
7
7
|
export declare const FEEDBACK: import("@apollo/client").DocumentNode;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FEEDBACK = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.FEEDBACK = (0, client_1.gql) `
|
|
6
|
-
query Feedback($
|
|
7
|
-
feedback(
|
|
6
|
+
query Feedback($productIds: [Int]) {
|
|
7
|
+
feedback(productIds: $productIds) {
|
|
8
8
|
id
|
|
9
9
|
name
|
|
10
10
|
feedback
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IConcept, Id } from '../../../models';
|
|
2
|
+
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
3
3
|
export interface IConceptVar {
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
@@ -3,100 +3,100 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CONCEPTS = exports.CONCEPT = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.CONCEPT = (0, client_1.gql) `
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
6
|
+
query Concept($id: Int!) {
|
|
7
|
+
restricted {
|
|
8
|
+
concept(id: $id) {
|
|
9
|
+
id
|
|
10
|
+
name
|
|
11
|
+
status
|
|
12
|
+
totalCards
|
|
13
|
+
topic {
|
|
14
|
+
id
|
|
15
|
+
name
|
|
16
|
+
typeId
|
|
17
|
+
}
|
|
18
|
+
chapter {
|
|
19
|
+
id
|
|
20
|
+
explanation
|
|
21
|
+
pictures {
|
|
22
|
+
id
|
|
23
|
+
createdAt
|
|
24
|
+
updatedAt
|
|
25
|
+
name
|
|
26
|
+
caption
|
|
27
|
+
path
|
|
28
|
+
path512
|
|
29
|
+
path256
|
|
30
|
+
index
|
|
31
|
+
topicId
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
videos {
|
|
35
|
+
id
|
|
36
|
+
status
|
|
37
|
+
title
|
|
38
|
+
museId
|
|
39
|
+
startTime
|
|
40
|
+
endTime
|
|
41
|
+
thumbnail
|
|
42
|
+
concepts {
|
|
43
|
+
id
|
|
44
|
+
name
|
|
45
|
+
}
|
|
46
|
+
live
|
|
47
|
+
description
|
|
48
|
+
duration
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
53
|
`;
|
|
54
54
|
exports.CONCEPTS = (0, client_1.gql) `
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
55
|
+
query Concepts($id: [Int!]!) {
|
|
56
|
+
restricted {
|
|
57
|
+
concepts(id: $id) {
|
|
58
|
+
id
|
|
59
|
+
name
|
|
60
|
+
status
|
|
61
|
+
totalCards
|
|
62
|
+
topic {
|
|
63
|
+
id
|
|
64
|
+
name
|
|
65
|
+
typeId
|
|
66
|
+
}
|
|
67
|
+
chapter {
|
|
68
|
+
id
|
|
69
|
+
explanation
|
|
70
|
+
pictures {
|
|
71
|
+
id
|
|
72
|
+
createdAt
|
|
73
|
+
updatedAt
|
|
74
|
+
name
|
|
75
|
+
caption
|
|
76
|
+
path
|
|
77
|
+
path512
|
|
78
|
+
path256
|
|
79
|
+
index
|
|
80
|
+
topicId
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
videos {
|
|
84
|
+
id
|
|
85
|
+
status
|
|
86
|
+
title
|
|
87
|
+
museId
|
|
88
|
+
startTime
|
|
89
|
+
endTime
|
|
90
|
+
thumbnail
|
|
91
|
+
concepts {
|
|
92
|
+
id
|
|
93
|
+
name
|
|
94
|
+
}
|
|
95
|
+
live
|
|
96
|
+
description
|
|
97
|
+
duration
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
102
|
`;
|
|
@@ -48,9 +48,13 @@ exports.PRESETS = (0, client_1.gql) `
|
|
|
48
48
|
}
|
|
49
49
|
`;
|
|
50
50
|
exports.PRE_DEFINED_PRESETS = (0, client_1.gql) `
|
|
51
|
-
query PreDefinedPresets($entitlementId: Int
|
|
51
|
+
query PreDefinedPresets($entitlementId: Int, $search: String, $order: Int) {
|
|
52
52
|
restricted {
|
|
53
|
-
preDefinedPresets(
|
|
53
|
+
preDefinedPresets(
|
|
54
|
+
entitlementId: $entitlementId
|
|
55
|
+
search: $search
|
|
56
|
+
order: $order
|
|
57
|
+
) {
|
|
54
58
|
id
|
|
55
59
|
createdAt
|
|
56
60
|
updatedAt
|
|
@@ -3,7 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PRESCRIPTIONS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.PRESCRIPTIONS = (0, client_1.gql) `
|
|
6
|
-
query Prescriptions(
|
|
6
|
+
query Prescriptions(
|
|
7
|
+
$typeId: Int!
|
|
8
|
+
$query: String
|
|
9
|
+
$cursor: Int
|
|
10
|
+
$limit: Int
|
|
11
|
+
) {
|
|
7
12
|
restricted {
|
|
8
13
|
prescriptions(
|
|
9
14
|
typeId: $typeId
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Id, IUniversity } from '../../models';
|
|
2
|
-
import { graphqlNormalize, RootData } from '../types';
|
|
3
2
|
import { ESortOrder } from '../enums';
|
|
3
|
+
import { graphqlNormalize, RootData } from '../types';
|
|
4
4
|
export interface IUniversitiesVar {
|
|
5
5
|
id?: Id;
|
|
6
6
|
order?: ESortOrder;
|
|
@@ -3,9 +3,9 @@ import * as mutation from './mutation';
|
|
|
3
3
|
import * as query from './query';
|
|
4
4
|
import * as subscription from './subscription';
|
|
5
5
|
export * from './apollo';
|
|
6
|
-
export * from './types';
|
|
7
|
-
export * from './enums';
|
|
8
6
|
export * from './constants';
|
|
7
|
+
export * from './enums';
|
|
8
|
+
export * from './types';
|
|
9
9
|
export declare namespace Resolvers {
|
|
10
10
|
export import Fragment = fragment;
|
|
11
11
|
export import Muation = mutation;
|
|
@@ -3,9 +3,9 @@ import * as mutation from './mutation';
|
|
|
3
3
|
import * as query from './query';
|
|
4
4
|
import * as subscription from './subscription';
|
|
5
5
|
export * from './apollo';
|
|
6
|
-
export * from './types';
|
|
7
|
-
export * from './enums';
|
|
8
6
|
export * from './constants';
|
|
7
|
+
export * from './enums';
|
|
8
|
+
export * from './types';
|
|
9
9
|
export var Resolvers;
|
|
10
10
|
(function (Resolvers) {
|
|
11
11
|
Resolvers.Fragment = fragment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApolloCache } from '@apollo/client';
|
|
2
2
|
import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
|
|
3
|
-
import { ENotificationActionType, ENotificationType,
|
|
4
|
-
import {
|
|
3
|
+
import { ENotificationActionType, ENotificationType, INotification, Id } from '../../../models';
|
|
4
|
+
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
5
5
|
export interface IAddNotificationInput {
|
|
6
6
|
fromUserId: Id | null;
|
|
7
7
|
userId: Id | null;
|
|
@@ -2,6 +2,6 @@ import { EProductType, IFeedback } from '../../models';
|
|
|
2
2
|
import { RootData, graphqlNormalize } from '../types';
|
|
3
3
|
export type IFeedbackData = RootData<(graphqlNormalize & IFeedback)[], 'feedback'>;
|
|
4
4
|
export type IFeedbackVar = {
|
|
5
|
-
|
|
5
|
+
productIds?: EProductType[];
|
|
6
6
|
};
|
|
7
7
|
export declare const FEEDBACK: import("@apollo/client").DocumentNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IConcept, Id } from '../../../models';
|
|
2
|
+
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
3
3
|
export interface IConceptVar {
|
|
4
4
|
id: Id;
|
|
5
5
|
}
|
|
@@ -1,99 +1,99 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
export const CONCEPT = gql `
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
3
|
+
query Concept($id: Int!) {
|
|
4
|
+
restricted {
|
|
5
|
+
concept(id: $id) {
|
|
6
|
+
id
|
|
7
|
+
name
|
|
8
|
+
status
|
|
9
|
+
totalCards
|
|
10
|
+
topic {
|
|
11
|
+
id
|
|
12
|
+
name
|
|
13
|
+
typeId
|
|
14
|
+
}
|
|
15
|
+
chapter {
|
|
16
|
+
id
|
|
17
|
+
explanation
|
|
18
|
+
pictures {
|
|
19
|
+
id
|
|
20
|
+
createdAt
|
|
21
|
+
updatedAt
|
|
22
|
+
name
|
|
23
|
+
caption
|
|
24
|
+
path
|
|
25
|
+
path512
|
|
26
|
+
path256
|
|
27
|
+
index
|
|
28
|
+
topicId
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
videos {
|
|
32
|
+
id
|
|
33
|
+
status
|
|
34
|
+
title
|
|
35
|
+
museId
|
|
36
|
+
startTime
|
|
37
|
+
endTime
|
|
38
|
+
thumbnail
|
|
39
|
+
concepts {
|
|
40
|
+
id
|
|
41
|
+
name
|
|
42
|
+
}
|
|
43
|
+
live
|
|
44
|
+
description
|
|
45
|
+
duration
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
50
|
`;
|
|
51
51
|
export const CONCEPTS = gql `
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
52
|
+
query Concepts($id: [Int!]!) {
|
|
53
|
+
restricted {
|
|
54
|
+
concepts(id: $id) {
|
|
55
|
+
id
|
|
56
|
+
name
|
|
57
|
+
status
|
|
58
|
+
totalCards
|
|
59
|
+
topic {
|
|
60
|
+
id
|
|
61
|
+
name
|
|
62
|
+
typeId
|
|
63
|
+
}
|
|
64
|
+
chapter {
|
|
65
|
+
id
|
|
66
|
+
explanation
|
|
67
|
+
pictures {
|
|
68
|
+
id
|
|
69
|
+
createdAt
|
|
70
|
+
updatedAt
|
|
71
|
+
name
|
|
72
|
+
caption
|
|
73
|
+
path
|
|
74
|
+
path512
|
|
75
|
+
path256
|
|
76
|
+
index
|
|
77
|
+
topicId
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
videos {
|
|
81
|
+
id
|
|
82
|
+
status
|
|
83
|
+
title
|
|
84
|
+
museId
|
|
85
|
+
startTime
|
|
86
|
+
endTime
|
|
87
|
+
thumbnail
|
|
88
|
+
concepts {
|
|
89
|
+
id
|
|
90
|
+
name
|
|
91
|
+
}
|
|
92
|
+
live
|
|
93
|
+
description
|
|
94
|
+
duration
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
99
|
`;
|
|
@@ -45,9 +45,13 @@ export const PRESETS = gql `
|
|
|
45
45
|
}
|
|
46
46
|
`;
|
|
47
47
|
export const PRE_DEFINED_PRESETS = gql `
|
|
48
|
-
query PreDefinedPresets($entitlementId: Int
|
|
48
|
+
query PreDefinedPresets($entitlementId: Int, $search: String, $order: Int) {
|
|
49
49
|
restricted {
|
|
50
|
-
preDefinedPresets(
|
|
50
|
+
preDefinedPresets(
|
|
51
|
+
entitlementId: $entitlementId
|
|
52
|
+
search: $search
|
|
53
|
+
order: $order
|
|
54
|
+
) {
|
|
51
55
|
id
|
|
52
56
|
createdAt
|
|
53
57
|
updatedAt
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
export const PRESCRIPTIONS = gql `
|
|
3
|
-
query Prescriptions(
|
|
3
|
+
query Prescriptions(
|
|
4
|
+
$typeId: Int!
|
|
5
|
+
$query: String
|
|
6
|
+
$cursor: Int
|
|
7
|
+
$limit: Int
|
|
8
|
+
) {
|
|
4
9
|
restricted {
|
|
5
10
|
prescriptions(
|
|
6
11
|
typeId: $typeId
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Id, IUniversity } from '../../models';
|
|
2
|
-
import { graphqlNormalize, RootData } from '../types';
|
|
3
2
|
import { ESortOrder } from '../enums';
|
|
3
|
+
import { graphqlNormalize, RootData } from '../types';
|
|
4
4
|
export interface IUniversitiesVar {
|
|
5
5
|
id?: Id;
|
|
6
6
|
order?: ESortOrder;
|