@messenger-box/platform-client 9.0.4-alpha.22 → 10.0.2-alpha.0
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 +8 -0
- package/lib/graphql/fragments/configuration.gql +12 -0
- package/lib/graphql/fragments/extended-user-account.gql +10 -0
- package/lib/graphql/fragments/file-info.gql +12 -0
- package/lib/graphql/fragments/messenger-user.gql +15 -0
- package/lib/graphql/fragments/minimal-user.gql +9 -0
- package/lib/graphql/fragments/post-message.gql +116 -0
- package/lib/graphql/fragments/post-thread-message.gql +77 -0
- package/lib/graphql/fragments/user.gql +11 -0
- package/lib/graphql/id-generation.js +13 -5
- package/lib/graphql/id-generation.js.map +1 -1
- package/lib/graphql/index.js +1 -1
- package/lib/graphql/index.js.map +1 -1
- package/lib/graphql/mutations/channel-mutation.gql +72 -0
- package/lib/graphql/mutations/expo-notification-token.gql +13 -0
- package/lib/graphql/mutations/message-threads-mutation.gql +44 -0
- package/lib/graphql/mutations/messages-mutation.gql +110 -0
- package/lib/graphql/policies/channel-policies.js +3 -3
- package/lib/graphql/policies/channel-policies.js.map +1 -1
- package/lib/graphql/policies/messages-policies.js +126 -103
- package/lib/graphql/policies/messages-policies.js.map +1 -1
- package/lib/graphql/policies/post-thread-policies.js +57 -55
- package/lib/graphql/policies/post-thread-policies.js.map +1 -1
- package/lib/graphql/policies/posts-policies.js +108 -105
- package/lib/graphql/policies/posts-policies.js.map +1 -1
- package/lib/graphql/policies/teams-policies.js +3 -3
- package/lib/graphql/policies/teams-policies.js.map +1 -1
- package/lib/graphql/policies/user-account-policies.js +14 -11
- package/lib/graphql/policies/user-account-policies.js.map +1 -1
- package/lib/graphql/policies/user-policies.js +34 -28
- package/lib/graphql/policies/user-policies.js.map +1 -1
- package/lib/graphql/queries/channel.gql +57 -0
- package/lib/graphql/queries/channels-by-user.gql +60 -0
- package/lib/graphql/queries/check-for-new-messages.gql +5 -0
- package/lib/graphql/queries/file-url.gql +5 -0
- package/lib/graphql/queries/get-device-token.gql +8 -0
- package/lib/graphql/queries/messages.gql +28 -0
- package/lib/graphql/queries/organization-query.gql +90 -0
- package/lib/graphql/queries/post-message.gql +8 -0
- package/lib/graphql/queries/post-thread-message.gql +20 -0
- package/lib/graphql/queries/support-service-channels.gql +18 -0
- package/lib/graphql/queries/teams-query.gql +32 -0
- package/lib/graphql/queries/user-account.gql +5 -0
- package/lib/graphql/queries/users.gql +48 -0
- package/lib/graphql/schema/index.js +1 -1
- package/lib/graphql/schema/index.js.map +1 -1
- package/lib/graphql/schema/messages.graphql +5 -0
- package/lib/graphql/schema/messages.graphql.js +1 -2
- package/lib/graphql/schema/messages.graphql.js.map +1 -1
- package/lib/graphql/schema/post.graphql +44 -0
- package/lib/graphql/schema/post.graphql.js +1 -2
- package/lib/graphql/schema/post.graphql.js.map +1 -1
- package/lib/graphql/schema/services.graphql +6 -0
- package/lib/graphql/schema/user-account.graphql +3 -0
- package/lib/graphql/schema/user-account.graphql.js +1 -2
- package/lib/graphql/schema/user-account.graphql.js.map +1 -1
- package/lib/graphql/subscription/chat-message-added.gql +6 -0
- package/lib/graphql/subscription/public-post-added.gql +5 -0
- package/lib/graphql/subscription/thread-chat-message-added.gql +5 -0
- package/lib/graphql/subscription/thread-created-updated.gql +12 -0
- package/lib/hooks/use-upload-file.hook.d.ts.map +1 -1
- package/lib/hooks/use-upload-file.hook.js +17 -17
- package/lib/hooks/use-upload-file.hook.js.map +1 -1
- package/lib/hooks/use-upload-file.hook.native.d.ts.map +1 -1
- package/lib/hooks/use-upload-file.hook.native.js +17 -17
- package/lib/hooks/use-upload-file.hook.native.js.map +1 -1
- package/lib/hooks/use-upload-files.hook.d.ts.map +1 -1
- package/lib/hooks/use-upload-files.hook.js +17 -17
- package/lib/hooks/use-upload-files.hook.js.map +1 -1
- package/lib/hooks/use-upload-files.hook.native.d.ts.map +1 -1
- package/lib/hooks/use-upload-files.hook.native.js +17 -17
- package/lib/hooks/use-upload-files.hook.native.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/packages/types/teams.d.ts +1 -1
- package/lib/packages/types/teams.d.ts.map +1 -1
- package/lib/routes.json +1 -0
- package/lib/utils/index.js +35 -29
- package/lib/utils/index.js.map +1 -1
- package/package.json +4 -4
- package/rollup.config.mjs +30 -28
- package/src/graphql/id-generation.ts +1 -1
- package/src/graphql/queries/organization-query.gql +1 -19
- package/src/graphql/queries/teams-query.gql +1 -61
- package/src/graphql/queries/users.gql +1 -22
- package/src/hooks/use-upload-file.hook.native.ts +4 -1
- package/src/hooks/use-upload-file.hook.ts +4 -1
- package/src/hooks/use-upload-files.hook.native.ts +4 -1
- package/src/hooks/use-upload-files.hook.ts +4 -1
- package/src/index.ts +0 -2
- package/src/packages/types/teams.ts +4 -4
- package/lib/generated-model.d.ts +0 -12870
- package/lib/generated-model.d.ts.map +0 -1
- package/lib/generated-model.js +0 -10561
- package/lib/generated-model.js.map +0 -1
- package/src/generated-model.tsx +0 -24280
- /package/src/graphql/mutations/{organization-mutation.gql → organization-mutation.gql.bk} +0 -0
- /package/src/graphql/mutations/{teams-mutation.gql → teams-mutation.gql.bk} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.0.2-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.2-alpha.0) (2025-02-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
9
|
+
|
|
10
|
+
## [10.0.1-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.1-alpha.0) (2025-02-04)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
13
|
+
|
|
6
14
|
## [9.0.4-alpha.22](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.21...v9.0.4-alpha.22) (2025-01-31)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @messenger-box/platform-client
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
props
|
|
23
|
+
files {
|
|
24
|
+
totalCount
|
|
25
|
+
data {
|
|
26
|
+
id
|
|
27
|
+
name
|
|
28
|
+
extension
|
|
29
|
+
mimeType
|
|
30
|
+
height
|
|
31
|
+
width
|
|
32
|
+
size
|
|
33
|
+
url
|
|
34
|
+
refType
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
replies {
|
|
38
|
+
...PostReplies
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
fragment PostReplies on Messages {
|
|
43
|
+
totalCount
|
|
44
|
+
data {
|
|
45
|
+
author {
|
|
46
|
+
...MessengerUser
|
|
47
|
+
}
|
|
48
|
+
id
|
|
49
|
+
isPinned
|
|
50
|
+
message
|
|
51
|
+
type
|
|
52
|
+
isDelivered
|
|
53
|
+
isRead
|
|
54
|
+
parentId
|
|
55
|
+
createdAt
|
|
56
|
+
fromServer
|
|
57
|
+
updatedAt
|
|
58
|
+
propsConfiguration {
|
|
59
|
+
...Configuration
|
|
60
|
+
}
|
|
61
|
+
props
|
|
62
|
+
files {
|
|
63
|
+
totalCount
|
|
64
|
+
data {
|
|
65
|
+
id
|
|
66
|
+
name
|
|
67
|
+
extension
|
|
68
|
+
mimeType
|
|
69
|
+
height
|
|
70
|
+
width
|
|
71
|
+
size
|
|
72
|
+
url
|
|
73
|
+
refType
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
fragment PostWithoutReplies on Post {
|
|
81
|
+
id
|
|
82
|
+
channel {
|
|
83
|
+
id
|
|
84
|
+
}
|
|
85
|
+
author {
|
|
86
|
+
...MessengerUser
|
|
87
|
+
}
|
|
88
|
+
isPinned
|
|
89
|
+
message
|
|
90
|
+
type
|
|
91
|
+
isDelivered
|
|
92
|
+
isRead
|
|
93
|
+
parentId
|
|
94
|
+
createdAt
|
|
95
|
+
fromServer
|
|
96
|
+
updatedAt
|
|
97
|
+
|
|
98
|
+
propsConfiguration {
|
|
99
|
+
...Configuration
|
|
100
|
+
}
|
|
101
|
+
props
|
|
102
|
+
files {
|
|
103
|
+
totalCount
|
|
104
|
+
data {
|
|
105
|
+
id
|
|
106
|
+
name
|
|
107
|
+
extension
|
|
108
|
+
mimeType
|
|
109
|
+
height
|
|
110
|
+
width
|
|
111
|
+
size
|
|
112
|
+
url
|
|
113
|
+
refType
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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,6 +1,14 @@
|
|
|
1
|
-
import {IClientCacheTypeNames}from'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import {IClientCacheTypeNames}from'common';const dataIdFromObject = {
|
|
2
|
+
[IClientCacheTypeNames.Post]: ({
|
|
3
|
+
id
|
|
4
|
+
}) => `${IClientCacheTypeNames.Post}:${id}`,
|
|
5
|
+
[IClientCacheTypeNames.Channel]: ({
|
|
6
|
+
id
|
|
7
|
+
}) => `${IClientCacheTypeNames.Channel}:${id}`,
|
|
8
|
+
[IClientCacheTypeNames.ChannelMember]: ({
|
|
9
|
+
id
|
|
10
|
+
}) => `${IClientCacheTypeNames.ChannelMember}:${id}`,
|
|
11
|
+
[IClientCacheTypeNames.UserAccount]: ({
|
|
12
|
+
id
|
|
13
|
+
}) => `${IClientCacheTypeNames.UserAccount}:${id}`
|
|
6
14
|
};export{dataIdFromObject};//# sourceMappingURL=id-generation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-generation.js","sources":["../../src/graphql/id-generation.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"id-generation.js","sources":["../../src/graphql/id-generation.ts"],"sourcesContent":[null],"names":[],"mappings":"2CAEa,MAAA,gBAAgB,GAAG;AAC5B,EAAA,CAAA,0BAAuB,GAAK,CAAE;AAC9B,IAAA;AACA,GAAA,6BAAuB,CAAA,IAAA,CAAA,CAAA,EAAc,EAAE,CAAC;AACxC,EAAA,CAAA,6BAAuB,GAAA,CAAA;IACzB;;;;;;;;"}
|
package/lib/graphql/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {merge}from'lodash-es';import {postPolicies}from'./policies/posts-policies.js';import {userPolicies}from'./policies/user-policies.js';import {channelPolicies}from'./policies/channel-policies.js';import {userAccountPolicies}from'./policies/user-account-policies.js';import {messagesPolicies}from'./policies/messages-policies.js';import {postThreadPolicies}from'./policies/post-thread-policies.js';import {teamPolicies}from'./policies/teams-policies.js';
|
|
1
|
+
import {merge}from'lodash-es';import {postPolicies}from'./policies/posts-policies.js';import {userPolicies}from'./policies/user-policies.js';import {channelPolicies}from'./policies/channel-policies.js';import {userAccountPolicies}from'./policies/user-account-policies.js';import {messagesPolicies}from'./policies/messages-policies.js';import {postThreadPolicies}from'./policies/post-thread-policies.js';import {teamPolicies}from'./policies/teams-policies.js';export{dataIdFromObject}from'./id-generation.js';const typePolicies = merge({}, postPolicies, userPolicies, channelPolicies, userAccountPolicies, messagesPolicies, postThreadPolicies, teamPolicies);export{typePolicies};//# sourceMappingURL=index.js.map
|
package/lib/graphql/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/graphql/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/graphql/index.ts"],"sourcesContent":[null],"names":[],"mappings":"4fAYM,MAAA,YAAY,GAAG,KAAK,CACtB,EAAE,EACF,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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($membersId:[String]!,$channelId:String!){
|
|
52
|
+
saveMembersToChannel(
|
|
53
|
+
membersId: $membersId
|
|
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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
mutation SendMessages(
|
|
2
|
+
$channelId:String!,
|
|
3
|
+
$content:String!,
|
|
4
|
+
$files:[ID!],
|
|
5
|
+
$postId: ID,
|
|
6
|
+
$createdBy: ID,
|
|
7
|
+
$notificationParams:ExpoNotificationData,
|
|
8
|
+
){
|
|
9
|
+
sendMessage(
|
|
10
|
+
channelId: $channelId,
|
|
11
|
+
messageInput: {
|
|
12
|
+
content: $content,
|
|
13
|
+
files: $files,
|
|
14
|
+
createdBy: $createdBy
|
|
15
|
+
notificationParams: $notificationParams
|
|
16
|
+
},
|
|
17
|
+
postId: $postId
|
|
18
|
+
){
|
|
19
|
+
...Post
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
mutation SendPublicMessage(
|
|
24
|
+
$channelId: String!,
|
|
25
|
+
$messageInput: MessageInput!
|
|
26
|
+
$postId: ID
|
|
27
|
+
){
|
|
28
|
+
sendPublicMessage(
|
|
29
|
+
channelId: $channelId,
|
|
30
|
+
messageInput: $messageInput,
|
|
31
|
+
postId: $postId
|
|
32
|
+
){
|
|
33
|
+
...Post
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
mutation SendExpoNotificationOnPost($postId: ID!, $notificationData: ExpoNotificationData!) {
|
|
38
|
+
sendExpoNotificationOnPost(postId: $postId, notificationData: $notificationData)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
mutation DeleteMessage(
|
|
42
|
+
$messageId:String!,
|
|
43
|
+
$channelId:String!
|
|
44
|
+
){
|
|
45
|
+
deleteMessage(
|
|
46
|
+
messageId: {
|
|
47
|
+
messageId: $messageId,
|
|
48
|
+
channelId: $channelId
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
mutation EditMessage(
|
|
54
|
+
$messageId:String!,
|
|
55
|
+
$channelId:String!,
|
|
56
|
+
$content:String!,
|
|
57
|
+
$files:[ID!]!
|
|
58
|
+
){
|
|
59
|
+
editMessage(
|
|
60
|
+
messageId: {
|
|
61
|
+
messageId: $messageId,
|
|
62
|
+
channelId: $channelId
|
|
63
|
+
},
|
|
64
|
+
messageInput: {
|
|
65
|
+
content: $content,
|
|
66
|
+
files: $files
|
|
67
|
+
}
|
|
68
|
+
){
|
|
69
|
+
id
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
mutation CreateMessageFileUploadLink($filename:String!, $postId: ID!){
|
|
74
|
+
createMessageFileUploadLink(postId:$postId, filename: $filename )
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
mutation AttachUploadedFileToMessage($postId:ID!, $file: UploadedFileInput!){
|
|
78
|
+
attachUploadedFileToMessage(postId: $postId, file: $file){
|
|
79
|
+
...FileInfo
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
mutation CreateMessageFilesUploadLink($filenames:[String!]!, $postId: ID!){
|
|
84
|
+
createMessageFilesUploadLink(postId:$postId, filenames: $filenames )
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
mutation AttachUploadedFilesToMessage($postId:ID!, $files: [UploadedFileInput!]!){
|
|
88
|
+
attachUploadedFilesToMessage(postId: $postId, files: $files){
|
|
89
|
+
...FileInfo
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
mutation DeleteMessageFile($url:String!){
|
|
94
|
+
deleteMessageFile(url:$url)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
#mutation PinMessage($messageId:String! , $messageInput:String! , $content:String!) {
|
|
99
|
+
# pinMessage(
|
|
100
|
+
# messageId: {
|
|
101
|
+
# messageId: $messageId,
|
|
102
|
+
# channelId: $channelId
|
|
103
|
+
# },
|
|
104
|
+
# messageInput:{
|
|
105
|
+
# content: $content
|
|
106
|
+
# }
|
|
107
|
+
# ){
|
|
108
|
+
# id
|
|
109
|
+
# }
|
|
110
|
+
#}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-policies.js","sources":["../../../src/graphql/policies/channel-policies.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEa,MAAA,eAAe,GAAiB;AACzC,
|
|
1
|
+
{"version":3,"file":"channel-policies.js","sources":["../../../src/graphql/policies/channel-policies.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEa,MAAA,eAAe,GAAiB;AACzC,EAAA,KAAA,EAAK;AACD,IAAA,MAAA,EAAA;AACH;"}
|