@quesmed/types-rn 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/models/Presentation.d.ts +1 -1
- package/models/Referrals.d.ts +2 -2
- package/models/UserSession.d.ts +1 -1
- package/package.json +1 -1
- package/resolvers/index.d.ts +2 -2
- package/resolvers/index.js +2 -2
- package/resolvers/mutation/admin/index.d.ts +1 -1
- package/resolvers/mutation/admin/index.js +1 -1
- package/resolvers/mutation/restricted/notification.d.ts +2 -2
- package/resolvers/query/feedback.d.ts +1 -1
- package/resolvers/query/feedback.js +2 -2
- package/resolvers/query/restricted/concepts.d.ts +2 -2
- package/resolvers/query/restricted/concepts.js +94 -94
- package/resolvers/query/restricted/preset.js +6 -2
- package/resolvers/query/restricted/psa.js +6 -1
- package/resolvers/query/university.d.ts +1 -1
package/models/Presentation.d.ts
CHANGED
package/models/Referrals.d.ts
CHANGED
package/models/UserSession.d.ts
CHANGED
package/package.json
CHANGED
package/resolvers/index.d.ts
CHANGED
|
@@ -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;
|
package/resolvers/index.js
CHANGED
|
@@ -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;
|