@messenger-box/platform-client 10.0.3-alpha.165 → 10.0.3-alpha.171
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/lib/graphql/mutations/messages-mutation.gql +0 -26
- package/package.json +3 -3
- package/CHANGELOG.md +0 -373
- package/jest.config.js +0 -25
- package/lib/graphql/subscription/sandboxError.gql +0 -17
- package/rollup.config.mjs +0 -36
- package/src/graphql/fragments/configuration.gql +0 -12
- package/src/graphql/fragments/extended-user-account.gql +0 -10
- package/src/graphql/fragments/file-info.gql +0 -12
- package/src/graphql/fragments/messenger-user.gql +0 -15
- package/src/graphql/fragments/minimal-user.gql +0 -9
- package/src/graphql/fragments/post-message.gql +0 -152
- package/src/graphql/fragments/post-thread-message.gql +0 -77
- package/src/graphql/fragments/user.gql +0 -11
- package/src/graphql/id-generation.ts +0 -8
- package/src/graphql/index.ts +0 -24
- package/src/graphql/mutations/channel-mutation.gql +0 -77
- package/src/graphql/mutations/expo-notification-token.gql +0 -13
- package/src/graphql/mutations/message-threads-mutation.gql +0 -44
- package/src/graphql/mutations/messages-mutation.gql +0 -113
- package/src/graphql/mutations/messages-mutation.gql.bk +0 -66
- package/src/graphql/mutations/organization-mutation.gql.bk +0 -14
- package/src/graphql/mutations/teams-mutation.gql.bk +0 -8
- package/src/graphql/policies/channel-policies.ts +0 -153
- package/src/graphql/policies/index.ts +0 -7
- package/src/graphql/policies/messages-policies.ts +0 -321
- package/src/graphql/policies/post-thread-policies.ts +0 -179
- package/src/graphql/policies/posts-policies.ts +0 -110
- package/src/graphql/policies/teams-policies.ts +0 -19
- package/src/graphql/policies/user-account-policies.ts +0 -15
- package/src/graphql/policies/user-policies.ts +0 -32
- package/src/graphql/queries/channel.gql +0 -57
- package/src/graphql/queries/channels-by-user.gql +0 -86
- package/src/graphql/queries/check-for-new-messages.gql +0 -5
- package/src/graphql/queries/file-url.gql +0 -5
- package/src/graphql/queries/get-device-token.gql +0 -8
- package/src/graphql/queries/messages.gql +0 -28
- package/src/graphql/queries/organization-query.gql +0 -125
- package/src/graphql/queries/post-message.gql +0 -8
- package/src/graphql/queries/post-thread-message.gql +0 -24
- package/src/graphql/queries/support-service-channels.gql +0 -18
- package/src/graphql/queries/teams-query.gql +0 -32
- package/src/graphql/queries/user-account.gql +0 -5
- package/src/graphql/queries/users.gql +0 -48
- package/src/graphql/schema/index.ts +0 -6
- package/src/graphql/schema/messages.graphql +0 -5
- package/src/graphql/schema/post.graphql +0 -44
- package/src/graphql/schema/services.graphql +0 -6
- package/src/graphql/schema/user-account.graphql +0 -3
- package/src/graphql/subscription/chat-message-added.gql +0 -6
- package/src/graphql/subscription/fileUpdated.gql +0 -11
- package/src/graphql/subscription/public-post-added.gql +0 -5
- package/src/graphql/subscription/thread-chat-message-added.gql +0 -5
- package/src/graphql/subscription/thread-created-updated.gql +0 -12
- package/src/hooks/index.ts +0 -4
- package/src/hooks/use-base-file-upload.hook.ts +0 -148
- package/src/hooks/use-upload-file.hook.native.ts +0 -22
- package/src/hooks/use-upload-file.hook.ts +0 -22
- package/src/hooks/use-upload-files.hook.native.ts +0 -22
- package/src/hooks/use-upload-files.hook.ts +0 -22
- package/src/index.ts +0 -3
- package/src/inversify-containers/index.ts +0 -1
- package/src/inversify-containers/module.ts +0 -4
- package/src/packages/constants/constants.ts +0 -1831
- package/src/packages/types/channels.ts +0 -194
- package/src/packages/types/emojis.ts +0 -41
- package/src/packages/types/files.ts +0 -43
- package/src/packages/types/posts.ts +0 -155
- package/src/packages/types/reactions.ts +0 -8
- package/src/packages/types/teams.ts +0 -109
- package/src/packages/types/utilities.ts +0 -30
- package/src/services/index.ts +0 -0
- package/src/tests/mutation/__snapshots__/set-device-token.test.ts.snap +0 -18
- package/src/tests/mutation/set-device-token.test.ts +0 -85
- package/src/utils/constants.tsx +0 -1120
- package/src/utils/i18n.tsx +0 -15
- package/src/utils/index.ts +0 -34
- package/src/utils/post_list.ts +0 -54
- package/src/utils/post_utils.ts +0 -33
- package/src/utils/user_agent.tsx +0 -153
- package/src/utils/utils.tsx +0 -54
- package/tsconfig.json +0 -14
- package/webpack.config.js +0 -58
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
fragment Post on Post {
|
|
2
|
-
id
|
|
3
|
-
channel {
|
|
4
|
-
id
|
|
5
|
-
}
|
|
6
|
-
author {
|
|
7
|
-
...MessengerUser
|
|
8
|
-
}
|
|
9
|
-
isPinned
|
|
10
|
-
message
|
|
11
|
-
type
|
|
12
|
-
isDelivered
|
|
13
|
-
isRead
|
|
14
|
-
parentId
|
|
15
|
-
createdAt
|
|
16
|
-
fromServer
|
|
17
|
-
updatedAt
|
|
18
|
-
|
|
19
|
-
# propsConfiguration {
|
|
20
|
-
# ...Configuration
|
|
21
|
-
# }
|
|
22
|
-
propsConfiguration {
|
|
23
|
-
contents
|
|
24
|
-
id
|
|
25
|
-
keys
|
|
26
|
-
resource
|
|
27
|
-
target
|
|
28
|
-
overrides {
|
|
29
|
-
contents
|
|
30
|
-
identifiers
|
|
31
|
-
keys
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
props
|
|
35
|
-
files {
|
|
36
|
-
totalCount
|
|
37
|
-
data {
|
|
38
|
-
id
|
|
39
|
-
name
|
|
40
|
-
extension
|
|
41
|
-
mimeType
|
|
42
|
-
height
|
|
43
|
-
width
|
|
44
|
-
size
|
|
45
|
-
url
|
|
46
|
-
refType
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
replies {
|
|
50
|
-
...PostReplies
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
fragment PostReplies on Messages {
|
|
55
|
-
totalCount
|
|
56
|
-
data {
|
|
57
|
-
author {
|
|
58
|
-
...MessengerUser
|
|
59
|
-
}
|
|
60
|
-
id
|
|
61
|
-
isPinned
|
|
62
|
-
message
|
|
63
|
-
type
|
|
64
|
-
isDelivered
|
|
65
|
-
isRead
|
|
66
|
-
parentId
|
|
67
|
-
createdAt
|
|
68
|
-
fromServer
|
|
69
|
-
updatedAt
|
|
70
|
-
# propsConfiguration {
|
|
71
|
-
# ...Configuration
|
|
72
|
-
# }
|
|
73
|
-
propsConfiguration {
|
|
74
|
-
contents
|
|
75
|
-
id
|
|
76
|
-
keys
|
|
77
|
-
resource
|
|
78
|
-
target
|
|
79
|
-
overrides {
|
|
80
|
-
contents
|
|
81
|
-
identifiers
|
|
82
|
-
keys
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
props
|
|
86
|
-
files {
|
|
87
|
-
totalCount
|
|
88
|
-
data {
|
|
89
|
-
id
|
|
90
|
-
name
|
|
91
|
-
extension
|
|
92
|
-
mimeType
|
|
93
|
-
height
|
|
94
|
-
width
|
|
95
|
-
size
|
|
96
|
-
url
|
|
97
|
-
refType
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
fragment PostWithoutReplies on Post {
|
|
105
|
-
id
|
|
106
|
-
channel {
|
|
107
|
-
id
|
|
108
|
-
}
|
|
109
|
-
author {
|
|
110
|
-
...MessengerUser
|
|
111
|
-
}
|
|
112
|
-
isPinned
|
|
113
|
-
message
|
|
114
|
-
type
|
|
115
|
-
isDelivered
|
|
116
|
-
isRead
|
|
117
|
-
parentId
|
|
118
|
-
createdAt
|
|
119
|
-
fromServer
|
|
120
|
-
updatedAt
|
|
121
|
-
|
|
122
|
-
# propsConfiguration {
|
|
123
|
-
# ...Configuration
|
|
124
|
-
# }
|
|
125
|
-
propsConfiguration {
|
|
126
|
-
contents
|
|
127
|
-
id
|
|
128
|
-
keys
|
|
129
|
-
resource
|
|
130
|
-
target
|
|
131
|
-
overrides {
|
|
132
|
-
contents
|
|
133
|
-
identifiers
|
|
134
|
-
keys
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
props
|
|
138
|
-
files {
|
|
139
|
-
totalCount
|
|
140
|
-
data {
|
|
141
|
-
id
|
|
142
|
-
name
|
|
143
|
-
extension
|
|
144
|
-
mimeType
|
|
145
|
-
height
|
|
146
|
-
width
|
|
147
|
-
size
|
|
148
|
-
url
|
|
149
|
-
refType
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
fragment Threads on PostThread {
|
|
2
|
-
id
|
|
3
|
-
channel {
|
|
4
|
-
id
|
|
5
|
-
title
|
|
6
|
-
description
|
|
7
|
-
topic
|
|
8
|
-
orgName
|
|
9
|
-
displayName
|
|
10
|
-
createdAt
|
|
11
|
-
purpose
|
|
12
|
-
type
|
|
13
|
-
updatedAt
|
|
14
|
-
}
|
|
15
|
-
post {
|
|
16
|
-
...PostWithoutReplies
|
|
17
|
-
}
|
|
18
|
-
replyCount
|
|
19
|
-
lastReplyAt
|
|
20
|
-
createdAt
|
|
21
|
-
deletedAt
|
|
22
|
-
updatedAt
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
fragment PostThread on PostThread {
|
|
26
|
-
...Threads
|
|
27
|
-
# id
|
|
28
|
-
# channel {
|
|
29
|
-
# id
|
|
30
|
-
# title
|
|
31
|
-
# description
|
|
32
|
-
# topic
|
|
33
|
-
# orgName
|
|
34
|
-
# displayName
|
|
35
|
-
# createdAt
|
|
36
|
-
# purpose
|
|
37
|
-
# type
|
|
38
|
-
# updatedAt
|
|
39
|
-
# }
|
|
40
|
-
# post {
|
|
41
|
-
# ...Post
|
|
42
|
-
# }
|
|
43
|
-
replies {
|
|
44
|
-
...PostWithoutReplies
|
|
45
|
-
}
|
|
46
|
-
# replyCount
|
|
47
|
-
# lastReplyAt
|
|
48
|
-
# createdAt
|
|
49
|
-
# deletedAt
|
|
50
|
-
# updatedAt
|
|
51
|
-
participants {
|
|
52
|
-
id
|
|
53
|
-
user {
|
|
54
|
-
...MessengerUser
|
|
55
|
-
}
|
|
56
|
-
# ...MessengerUser
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
fragment ThreadMessageSent on ThreadMessageSent {
|
|
61
|
-
lastMessage{
|
|
62
|
-
...PostWithoutReplies
|
|
63
|
-
}
|
|
64
|
-
data {
|
|
65
|
-
...PostThread
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
fragment PostThreadWithoutReplies on PostThread {
|
|
70
|
-
...Threads
|
|
71
|
-
participants {
|
|
72
|
-
id
|
|
73
|
-
user {
|
|
74
|
-
...MessengerUser
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ClientCacheTypeNames } from 'common';
|
|
2
|
-
|
|
3
|
-
export const dataIdFromObject = {
|
|
4
|
-
[ClientCacheTypeNames.Post]: ({ id }) => `${ClientCacheTypeNames.Post}:${id}`,
|
|
5
|
-
[ClientCacheTypeNames.Channel]: ({ id }) => `${ClientCacheTypeNames.Channel}:${id}`,
|
|
6
|
-
[ClientCacheTypeNames.ChannelMember]: ({ id }) => `${ClientCacheTypeNames.ChannelMember}:${id}`,
|
|
7
|
-
[ClientCacheTypeNames.UserAccount]: ({ id }) => `${ClientCacheTypeNames.UserAccount}:${id}`,
|
|
8
|
-
};
|
package/src/graphql/index.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { merge } from 'lodash-es';
|
|
2
|
-
import {
|
|
3
|
-
postPolicies,
|
|
4
|
-
userPolicies,
|
|
5
|
-
channelPolicies,
|
|
6
|
-
userAccountPolicies,
|
|
7
|
-
messagesPolicies,
|
|
8
|
-
postThreadPolicies,
|
|
9
|
-
teamPolicies,
|
|
10
|
-
} from './policies';
|
|
11
|
-
import { schema } from './schema';
|
|
12
|
-
|
|
13
|
-
const typePolicies = merge(
|
|
14
|
-
{},
|
|
15
|
-
postPolicies,
|
|
16
|
-
userPolicies,
|
|
17
|
-
channelPolicies,
|
|
18
|
-
userAccountPolicies,
|
|
19
|
-
messagesPolicies,
|
|
20
|
-
postThreadPolicies,
|
|
21
|
-
teamPolicies,
|
|
22
|
-
);
|
|
23
|
-
export { schema, typePolicies };
|
|
24
|
-
export * from './id-generation';
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
mutation AddChannel($name:String!, $description:String!, $type: RoomType, $team: String){
|
|
2
|
-
createChannel(
|
|
3
|
-
name:$name,
|
|
4
|
-
description:$description,
|
|
5
|
-
type: $type,
|
|
6
|
-
team: $team
|
|
7
|
-
){
|
|
8
|
-
id
|
|
9
|
-
title
|
|
10
|
-
type
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
mutation AddDirectChannel($receiver:[ID]!, $displayName:String!, $channelOptions: AnyObject){
|
|
15
|
-
createDirectChannel(
|
|
16
|
-
receiver: $receiver
|
|
17
|
-
displayName: $displayName
|
|
18
|
-
channelOptions: $channelOptions
|
|
19
|
-
){
|
|
20
|
-
id
|
|
21
|
-
displayName
|
|
22
|
-
title
|
|
23
|
-
type
|
|
24
|
-
members{
|
|
25
|
-
id
|
|
26
|
-
user{
|
|
27
|
-
...MinimalUser
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
mutation AddMemberToChannel($channelId:String!, $memberId:String!){
|
|
34
|
-
addMemberToChannel(
|
|
35
|
-
channelId: $channelId,
|
|
36
|
-
memberId: $memberId
|
|
37
|
-
){
|
|
38
|
-
id
|
|
39
|
-
displayName
|
|
40
|
-
title
|
|
41
|
-
type
|
|
42
|
-
members{
|
|
43
|
-
id
|
|
44
|
-
user{
|
|
45
|
-
...MinimalUser
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
mutation saveMembersToChannel($membersIds:[String]!,$channelId:String!){
|
|
52
|
-
saveMembersToChannel(
|
|
53
|
-
membersIds: $membersIds
|
|
54
|
-
channelId: $channelId,
|
|
55
|
-
){
|
|
56
|
-
id
|
|
57
|
-
displayName
|
|
58
|
-
title
|
|
59
|
-
type
|
|
60
|
-
members{
|
|
61
|
-
id
|
|
62
|
-
user{
|
|
63
|
-
...MinimalUser
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
mutation DeleteChannel($ChannelId:ID!){
|
|
71
|
-
deleteChannel(id: $ChannelId)
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
mutation createChannelWorkflowJob($createChannelInput : CreateChannelInput!, $extensionInput : WorkflowExtensionInput!) {
|
|
76
|
-
createChannelWorkflowJob(createChannelInput: $createChannelInput, extensionInput: $extensionInput)
|
|
77
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
mutation SendThreadMessage(
|
|
2
|
-
$channelId: ID!,
|
|
3
|
-
$postParentId: String,
|
|
4
|
-
$responderId: String,
|
|
5
|
-
$threadMessageInput: ThreadMessageInput!,
|
|
6
|
-
$postId: ID
|
|
7
|
-
$postThreadId: ID
|
|
8
|
-
) {
|
|
9
|
-
sendThreadMessage(
|
|
10
|
-
channelId: $channelId,
|
|
11
|
-
postParentId: $postParentId,
|
|
12
|
-
responderId: $responderId,
|
|
13
|
-
threadMessageInput: $threadMessageInput,
|
|
14
|
-
postId: $postId
|
|
15
|
-
postThreadId: $postThreadId
|
|
16
|
-
) {
|
|
17
|
-
...ThreadMessageSent
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
mutation CreatePostThread(
|
|
22
|
-
$channelId: ID!,
|
|
23
|
-
$postParentId: String,
|
|
24
|
-
$responderId: String,
|
|
25
|
-
$threadMessageInput: ThreadMessageInput!,
|
|
26
|
-
$postId: ID
|
|
27
|
-
$postThreadId: ID
|
|
28
|
-
) {
|
|
29
|
-
createPostThread(
|
|
30
|
-
channelId: $channelId,
|
|
31
|
-
postParentId: $postParentId,
|
|
32
|
-
responderId: $responderId,
|
|
33
|
-
threadMessageInput: $threadMessageInput,
|
|
34
|
-
postId: $postId
|
|
35
|
-
postThreadId: $postThreadId
|
|
36
|
-
) {
|
|
37
|
-
lastMessage {
|
|
38
|
-
id
|
|
39
|
-
}
|
|
40
|
-
data {
|
|
41
|
-
id
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
mutation SendMessages(
|
|
2
|
-
$channelId:String!,
|
|
3
|
-
$content:String!,
|
|
4
|
-
$files:[ID!],
|
|
5
|
-
$postId: ID,
|
|
6
|
-
$createdBy: ID,
|
|
7
|
-
$notificationParams:ExpoNotificationData,
|
|
8
|
-
$extraProps:AnyObject
|
|
9
|
-
){
|
|
10
|
-
sendMessage(
|
|
11
|
-
channelId: $channelId,
|
|
12
|
-
messageInput: {
|
|
13
|
-
content: $content,
|
|
14
|
-
files: $files,
|
|
15
|
-
createdBy: $createdBy
|
|
16
|
-
notificationParams: $notificationParams
|
|
17
|
-
extraProps: $extraProps
|
|
18
|
-
},
|
|
19
|
-
postId: $postId
|
|
20
|
-
){
|
|
21
|
-
...Post
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
mutation SendPublicMessage(
|
|
26
|
-
$channelId: String!,
|
|
27
|
-
$messageInput: MessageInput!
|
|
28
|
-
$postId: ID
|
|
29
|
-
){
|
|
30
|
-
sendPublicMessage(
|
|
31
|
-
channelId: $channelId,
|
|
32
|
-
messageInput: $messageInput,
|
|
33
|
-
postId: $postId
|
|
34
|
-
){
|
|
35
|
-
...Post
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
mutation SendExpoNotificationOnPost($postId: ID!, $notificationData: ExpoNotificationData!) {
|
|
40
|
-
sendExpoNotificationOnPost(postId: $postId, notificationData: $notificationData)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
mutation DeleteMessage(
|
|
44
|
-
$messageId:String!,
|
|
45
|
-
$channelId:String!
|
|
46
|
-
){
|
|
47
|
-
deleteMessage(
|
|
48
|
-
messageId: {
|
|
49
|
-
messageId: $messageId,
|
|
50
|
-
channelId: $channelId
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
mutation EditMessage(
|
|
56
|
-
$messageId:String!,
|
|
57
|
-
$channelId:String!,
|
|
58
|
-
$content:String!,
|
|
59
|
-
$files:[ID!]!
|
|
60
|
-
){
|
|
61
|
-
editMessage(
|
|
62
|
-
messageId: {
|
|
63
|
-
messageId: $messageId,
|
|
64
|
-
channelId: $channelId
|
|
65
|
-
},
|
|
66
|
-
messageInput: {
|
|
67
|
-
content: $content,
|
|
68
|
-
files: $files
|
|
69
|
-
}
|
|
70
|
-
){
|
|
71
|
-
id
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
mutation CreateMessageFileUploadLink($filename:String!, $postId: ID!){
|
|
76
|
-
createMessageFileUploadLink(postId:$postId, filename: $filename )
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
mutation AttachUploadedFileToMessage($postId:ID!, $file: UploadedFileInput!){
|
|
80
|
-
attachUploadedFileToMessage(postId: $postId, file: $file){
|
|
81
|
-
...FileInfo
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
mutation CreateMessageFilesUploadLink($filenames:[String!]!, $postId: ID!){
|
|
86
|
-
createMessageFilesUploadLink(postId:$postId, filenames: $filenames )
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
mutation AttachUploadedFilesToMessage($postId:ID!, $files: [UploadedFileInput!]!){
|
|
90
|
-
attachUploadedFilesToMessage(postId: $postId, files: $files){
|
|
91
|
-
...FileInfo
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
mutation DeleteMessageFile($url:String!){
|
|
96
|
-
deleteMessageFile(url:$url)
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
#mutation PinMessage($messageId:String! , $messageInput:String! , $content:String!) {
|
|
102
|
-
# pinMessage(
|
|
103
|
-
# messageId: {
|
|
104
|
-
# messageId: $messageId,
|
|
105
|
-
# channelId: $channelId
|
|
106
|
-
# },
|
|
107
|
-
# messageInput:{
|
|
108
|
-
# content: $content
|
|
109
|
-
# }
|
|
110
|
-
# ){
|
|
111
|
-
# id
|
|
112
|
-
# }
|
|
113
|
-
#}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
mutation SendMessages(
|
|
2
|
-
$channelId:String!,
|
|
3
|
-
$content:String!,
|
|
4
|
-
$files:[Upload!]!
|
|
5
|
-
){
|
|
6
|
-
sendMessage(
|
|
7
|
-
channelId: $channelId,
|
|
8
|
-
messageInput: {
|
|
9
|
-
content: $content,
|
|
10
|
-
files: $files
|
|
11
|
-
},
|
|
12
|
-
){
|
|
13
|
-
id
|
|
14
|
-
message
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
mutation DeleteMessage(
|
|
19
|
-
$messageId:String!,
|
|
20
|
-
$channelId:String!
|
|
21
|
-
){
|
|
22
|
-
deleteMessage(
|
|
23
|
-
messageId: {
|
|
24
|
-
messageId: $messageId,
|
|
25
|
-
channelId: $channelId
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
mutation EditMessage(
|
|
31
|
-
$messageId:String!,
|
|
32
|
-
$channelId:String!,
|
|
33
|
-
$content:String!,
|
|
34
|
-
$files:[Upload!]!
|
|
35
|
-
){
|
|
36
|
-
editMessage(
|
|
37
|
-
messageId: {
|
|
38
|
-
messageId: $messageId,
|
|
39
|
-
channelId: $channelId
|
|
40
|
-
},
|
|
41
|
-
messageInput: {
|
|
42
|
-
content: $content,
|
|
43
|
-
files: $files
|
|
44
|
-
}
|
|
45
|
-
){
|
|
46
|
-
id
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
#mutation UploadImg($files:[Upload!]!, $postId: String!){
|
|
51
|
-
# uploadFile(files: $files, postId: $postId)
|
|
52
|
-
#}
|
|
53
|
-
|
|
54
|
-
#mutation PinMessage($messageId:String! , $messageInput:String! , $content:String!) {
|
|
55
|
-
# pinMessage(
|
|
56
|
-
# messageId: {
|
|
57
|
-
# messageId: $messageId,
|
|
58
|
-
# channelId: $channelId
|
|
59
|
-
# },
|
|
60
|
-
# messageInput:{
|
|
61
|
-
# content: $content
|
|
62
|
-
# }
|
|
63
|
-
# ){
|
|
64
|
-
# id
|
|
65
|
-
# }
|
|
66
|
-
#}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
mutation CreateOrganization($organization: OrganizationCreateRequest!) {
|
|
2
|
-
createOrganization(organization: $organization) {
|
|
3
|
-
id
|
|
4
|
-
name
|
|
5
|
-
title
|
|
6
|
-
description
|
|
7
|
-
createdAt
|
|
8
|
-
updatedAt
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
mutation SendOrganizationInvitation($request: OrganizationInvitationRequest) {
|
|
13
|
-
sendOrganizationInvitation(request: $request)
|
|
14
|
-
}
|