File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import {
30
30
SystemModules ,
31
31
Follow ,
32
32
People ,
33
+ Notifications ,
33
34
} from './modules' ;
34
35
35
36
import { setContext } from '@apollo/client/link/context' ;
@@ -114,7 +115,7 @@ export default class KanvasCore {
114
115
public companiesBranches : CompaniesBranches ;
115
116
public follow : Follow ;
116
117
public people : People ;
117
-
118
+ public notifications : Notifications ;
118
119
constructor ( protected options : Options ) {
119
120
this . client = new ApolloClient ( {
120
121
link : this . generateLink ( ) ,
@@ -145,6 +146,7 @@ export default class KanvasCore {
145
146
this . companiesBranches = new CompaniesBranches ( this . client ) ;
146
147
this . follow = new Follow ( this . client ) ;
147
148
this . people = new People ( this . client ) ;
149
+ this . notifications = new Notifications ( this . client ) ;
148
150
}
149
151
protected generateURL ( ) {
150
152
return new HttpLink ( { uri : this . options . url } ) ;
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ export * from './companies';
19
19
export * from './companies-branches' ;
20
20
export * from './follows' ;
21
21
export * from './people' ;
22
+ export * from './notifications' ;
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ export const NOTIFICATION_QUERY = gql`
6
6
$whereEntity: NotificationEntityFilterInput
7
7
$whereType: NotificationTypeFilterInput
8
8
$orderBy: [QueryNotificationsOrderByOrderByClause!]
9
- $first: Int!
10
- $page: Int!
9
+ $first: Int
10
+ $page: Int
11
11
) {
12
12
notifications(
13
13
where: $where
@@ -19,20 +19,19 @@ export const NOTIFICATION_QUERY = gql`
19
19
) {
20
20
data {
21
21
id
22
- user {
22
+ users {
23
23
id
24
- name
24
+ displayname
25
25
email
26
26
}
27
27
fromUsers {
28
28
id
29
- name
29
+ displayname
30
30
email
31
31
}
32
32
companies {
33
33
id
34
34
name
35
- slug
36
35
}
37
36
systemModule {
38
37
id
@@ -73,8 +72,8 @@ export const NOTIFICATION_TYPE_QUERY = gql`
73
72
query notificationTypes(
74
73
$where: QueryNotificationTypesWhereWhereConditions
75
74
$orderBy: [QueryNotificationTypesOrderByOrderByClause!]
76
- $first: Int!
77
- $page: Int!
75
+ $first: Int
76
+ $page: Int
78
77
) {
79
78
notificationTypes(
80
79
where: $where
@@ -131,8 +130,8 @@ export const NOTIFICATION_CHANNEL_QUERY = gql`
131
130
query notificationChannels(
132
131
$where: QueryNotificationChannelsWhereWhereConditions
133
132
$orderBy: [QueryNotificationChannelsOrderByOrderByClause!]
134
- $first: Int!
135
- $page: Int!
133
+ $first: Int
134
+ $page: Int
136
135
) {
137
136
notificationChannels(
138
137
where: $where
@@ -144,8 +143,6 @@ export const NOTIFICATION_CHANNEL_QUERY = gql`
144
143
id
145
144
name
146
145
slug
147
- created_at
148
- updated_at
149
146
}
150
147
paginatorInfo {
151
148
total
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { SystemModuleInterface } from './system-module';
4
4
5
5
export interface NotificationInterface {
6
6
id : string ;
7
- user : UserInterface ;
7
+ users : UserInterface ;
8
8
fromUsers : UserInterface ;
9
9
companies : CompanyInterface ;
10
10
systemModule : SystemModuleInterface ;
You can’t perform that action at this time.
0 commit comments