@messenger-box/platform-client 0.0.1-alpha.179 → 0.0.1-alpha.191

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,9 @@
1
+ fragment MessengerUser on UserAccount{
2
+ id
3
+ givenName
4
+ familyName
5
+ email
6
+ username
7
+ picture
8
+ alias
9
+ }
@@ -0,0 +1,9 @@
1
+ fragment MinimalUser on UserAccount{
2
+ id
3
+ username
4
+ familyName
5
+ givenName
6
+ picture
7
+ alias
8
+ email
9
+ }
@@ -1,20 +1,20 @@
1
- fragment PostProps on Post {
1
+ fragment Post on Post {
2
2
  author{
3
- id
4
- username
5
- familyName
6
- givenName
3
+ ...MessengerUser
7
4
  }
8
5
  id
6
+ isPinned
9
7
  message
8
+ type
9
+ isDelivered
10
+ isRead
10
11
  createdAt
11
- editedBy {
12
- alias
13
- }
12
+ fromServer
14
13
  updatedAt
15
14
  propsConfiguration {
16
15
  ...Configuration
17
16
  }
17
+ props
18
18
  files{
19
19
  totalCount
20
20
  data{
@@ -29,17 +29,4 @@ fragment PostProps on Post {
29
29
  refType
30
30
  }
31
31
  }
32
- isPinned @client
33
- center @client
34
- compactDisplay @client
35
- isFirstReply @client
36
- shouldHighlight @client
37
- consecutivePostByUser @client
38
- previousPostIsComment @client
39
- isCommentMention @client
40
- hasReplies @client
41
- isLastPost @client
42
- channelArchived @client
43
- isFlagged @client
44
- isCollapsedThreadsEnabled @client
45
32
  }
@@ -0,0 +1,11 @@
1
+ fragment User on UserAccount{
2
+ id
3
+ email
4
+ emailVerified
5
+ notificationEmail
6
+ username
7
+ familyName
8
+ givenName
9
+ picture
10
+ alias
11
+ }
@@ -19,7 +19,10 @@ mutation AddDirectChannel($receiver:[ID]!, $displayName:String!){
19
19
  title
20
20
  type
21
21
  members{
22
- user
22
+ id
23
+ user{
24
+ ...MinimalUser
25
+ }
23
26
  }
24
27
  }
25
28
  }
@@ -34,7 +37,10 @@ mutation AddMemberToChannel($channelId:String!, $memberId:String!){
34
37
  title
35
38
  type
36
39
  members{
37
- user
40
+ id
41
+ user{
42
+ ...MinimalUser
43
+ }
38
44
  }
39
45
  }
40
46
  }
@@ -10,7 +10,7 @@ mutation SendMessages(
10
10
  files: $files
11
11
  },
12
12
  ){
13
- ...PostProps
13
+ ...Post
14
14
  }
15
15
  }
16
16
 
@@ -1,18 +1,3 @@
1
- query GetChannelsByUser{
2
- channelsByUser{
3
- id
4
- title
5
- description
6
- type
7
- displayName
8
- members{
9
- id
10
- user
11
-
12
- }
13
- }
14
- }
15
-
16
1
  query GetAllChannel{
17
2
  channels{
18
3
  id
@@ -22,7 +7,9 @@ query GetAllChannel{
22
7
  displayName
23
8
  members{
24
9
  id
25
- user
10
+ user{
11
+ ...MinimalUser
12
+ }
26
13
  }
27
14
  }
28
15
  }
@@ -0,0 +1,15 @@
1
+ query GetChannelsByUser($role:String, $criteria:AnyObject, $limit:Int, $skip:Int, $sort:Sort){
2
+ channelsByUser(role:$role, criteria:$criteria, limit:$limit, skip:$skip, sort:$sort){
3
+ id
4
+ title
5
+ description
6
+ type
7
+ displayName
8
+ members{
9
+ id
10
+ user{
11
+ ...MessengerUser
12
+ }
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ query CheckForNewMessages($channelId: ID) {
2
+ messages(channelId: $channelId, limit: 0){
3
+ totalCount
4
+ }
5
+ }
@@ -0,0 +1,8 @@
1
+ query Messages($channelId: ID, $limit: Int! = 30, $skip: Int! = 0) {
2
+ messages(channelId: $channelId, limit: $limit, skip: $skip) {
3
+ data{
4
+ ...Post
5
+ }
6
+ totalCount
7
+ }
8
+ }
@@ -2,7 +2,7 @@ query GetMessages($channelId: ID, $limit: Int! = 30, $skip: Int! = 0) {
2
2
  messages(channelId: $channelId, limit: $limit, skip: $skip) {
3
3
  totalCount
4
4
  data {
5
- ...PostProps
5
+ ...Post
6
6
  }
7
7
  }
8
8
  }
@@ -0,0 +1,5 @@
1
+ query UserAccount($userId:String!){
2
+ getUserAccount(userId:$userId ){
3
+ ...MessengerUser
4
+ }
5
+ }
@@ -1,40 +1,25 @@
1
1
  query GetAllUsers{
2
2
  getUsers{
3
- id
4
- username
5
- email
6
- alias
7
- familyName
8
- givenName
3
+ ...MinimalUser
9
4
  }
10
5
  }
11
6
 
12
7
  query GetUserById($userId: String!){
13
8
  getUserAccount(userId: $userId){
14
- username
15
- familyName
16
- givenName
9
+ ...MinimalUser
10
+
17
11
  }
18
12
  }
19
13
 
20
14
  query UsersToChat($auth0Id: String!){
21
15
  usersToChat(auth0Id:$auth0Id) {
22
- id
23
- username
24
- familyName
25
- givenName
26
- email
27
- alias
16
+ ...MinimalUser
17
+
28
18
  }
29
19
  }
30
20
 
31
21
  query CurrentUser($auth0Id: String!){
32
22
  currentUser(auth0Id:$auth0Id) {
33
- id
34
- familyName
35
- givenName
36
- username
37
- email
38
- alias
23
+ ...MinimalUser
39
24
  }
40
25
  }
@@ -1,6 +1,6 @@
1
1
 
2
2
  subscription onChatMessageAdded {
3
3
  chatMessageAdded {
4
- ...PostProps
4
+ ...Post
5
5
  }
6
- }
6
+ }