@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.
- package/CHANGELOG.md +30 -0
- package/lib/generated-model.d.ts +303 -119
- package/lib/index.js +142 -24
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/src/generated-model.tsx +334 -128
- package/src/graphql/fragments/messenger-user.gql +9 -0
- package/src/graphql/fragments/minimal-user.gql +9 -0
- package/src/graphql/fragments/post-message.gql +8 -21
- package/src/graphql/fragments/user.gql +11 -0
- package/src/graphql/mutations/channel-mutation.gql +8 -2
- package/src/graphql/mutations/messages-mutation.gql +1 -1
- package/src/graphql/queries/channel.gql +3 -16
- package/src/graphql/queries/channels-by-user.gql +15 -0
- package/src/graphql/queries/check-for-new-messages.gql +5 -0
- package/src/graphql/queries/messages.gql +8 -0
- package/src/graphql/queries/post-message.gql +1 -1
- package/src/graphql/queries/user-account.gql +5 -0
- package/src/graphql/queries/users.gql +6 -21
- package/src/graphql/subscription/chat-message-added.gql +2 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
fragment
|
|
1
|
+
fragment Post on Post {
|
|
2
2
|
author{
|
|
3
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -19,7 +19,10 @@ mutation AddDirectChannel($receiver:[ID]!, $displayName:String!){
|
|
|
19
19
|
title
|
|
20
20
|
type
|
|
21
21
|
members{
|
|
22
|
-
|
|
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
|
-
|
|
40
|
+
id
|
|
41
|
+
user{
|
|
42
|
+
...MinimalUser
|
|
43
|
+
}
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
46
|
}
|
|
@@ -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
|
+
}
|
|
@@ -1,40 +1,25 @@
|
|
|
1
1
|
query GetAllUsers{
|
|
2
2
|
getUsers{
|
|
3
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
givenName
|
|
9
|
+
...MinimalUser
|
|
10
|
+
|
|
17
11
|
}
|
|
18
12
|
}
|
|
19
13
|
|
|
20
14
|
query UsersToChat($auth0Id: String!){
|
|
21
15
|
usersToChat(auth0Id:$auth0Id) {
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
34
|
-
familyName
|
|
35
|
-
givenName
|
|
36
|
-
username
|
|
37
|
-
email
|
|
38
|
-
alias
|
|
23
|
+
...MinimalUser
|
|
39
24
|
}
|
|
40
25
|
}
|