@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,110 +0,0 @@
|
|
|
1
|
-
import { TypePolicies } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const postPolicies: TypePolicies = {
|
|
4
|
-
Post: {
|
|
5
|
-
fields: {
|
|
6
|
-
isPinned: {
|
|
7
|
-
read() {
|
|
8
|
-
return false;
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
center: {
|
|
12
|
-
merge(existing = [], incoming: []) {
|
|
13
|
-
return incoming;
|
|
14
|
-
},
|
|
15
|
-
read() {
|
|
16
|
-
return true;
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
compactDisplay: {
|
|
20
|
-
merge(existing = [], incoming: []) {
|
|
21
|
-
return incoming;
|
|
22
|
-
},
|
|
23
|
-
read() {
|
|
24
|
-
return '';
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
isFirstReply: {
|
|
28
|
-
merge(existing = [], incoming: []) {
|
|
29
|
-
return incoming;
|
|
30
|
-
},
|
|
31
|
-
read() {
|
|
32
|
-
return '';
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
shouldHighlight: {
|
|
36
|
-
merge(existing = [], incoming: []) {
|
|
37
|
-
return incoming;
|
|
38
|
-
},
|
|
39
|
-
read() {
|
|
40
|
-
return '';
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
consecutivePostByUser: {
|
|
44
|
-
merge(existing = [], incoming: []) {
|
|
45
|
-
return incoming;
|
|
46
|
-
},
|
|
47
|
-
read() {
|
|
48
|
-
return '';
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
previousPostIsComment: {
|
|
52
|
-
read(_, { readField, toReference, }) {
|
|
53
|
-
const dt = readField('created_at');
|
|
54
|
-
return '';
|
|
55
|
-
},
|
|
56
|
-
merge(existing = [], incoming: []) {
|
|
57
|
-
return incoming;
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
isCommentMention: {
|
|
61
|
-
merge(existing = [], incoming: []) {
|
|
62
|
-
return incoming;
|
|
63
|
-
},
|
|
64
|
-
read() {
|
|
65
|
-
return '';
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
hasReplies: {
|
|
69
|
-
merge(existing = [], incoming: []) {
|
|
70
|
-
return incoming;
|
|
71
|
-
},
|
|
72
|
-
read() {
|
|
73
|
-
return '';
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
isLastPost: {
|
|
77
|
-
merge(existing = [], incoming: []) {
|
|
78
|
-
return incoming;
|
|
79
|
-
},
|
|
80
|
-
read() {
|
|
81
|
-
return '';
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
channelArchived: {
|
|
85
|
-
merge(existing = [], incoming: []) {
|
|
86
|
-
return incoming;
|
|
87
|
-
},
|
|
88
|
-
read() {
|
|
89
|
-
return '';
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
isFlagged: {
|
|
93
|
-
merge(existing = [], incoming: []) {
|
|
94
|
-
return incoming;
|
|
95
|
-
},
|
|
96
|
-
read() {
|
|
97
|
-
return '';
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
isCollapsedThreadsEnabled: {
|
|
101
|
-
merge(existing = [], incoming: []) {
|
|
102
|
-
return incoming;
|
|
103
|
-
},
|
|
104
|
-
read() {
|
|
105
|
-
return '';
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TypePolicies } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const teamPolicies: TypePolicies = {
|
|
4
|
-
Query: {
|
|
5
|
-
fields: {
|
|
6
|
-
getOrganizationTeams: {
|
|
7
|
-
merge(existing = [], incoming) {
|
|
8
|
-
return incoming;
|
|
9
|
-
},
|
|
10
|
-
read(existing) {
|
|
11
|
-
return existing;
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
AccountTeam: {
|
|
17
|
-
keyFields: ['id'],
|
|
18
|
-
},
|
|
19
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TypePolicies } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const userAccountPolicies: TypePolicies = {
|
|
4
|
-
UserAccount: {
|
|
5
|
-
fields: {
|
|
6
|
-
fullName: {
|
|
7
|
-
read(_, { readField, toReference, }) {
|
|
8
|
-
const givenName = readField('givenName');
|
|
9
|
-
const familyName = readField('familyName');
|
|
10
|
-
return `${givenName} ${familyName}`;
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { TypePolicies } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const userPolicies: TypePolicies = {
|
|
4
|
-
Query: {
|
|
5
|
-
fields: {
|
|
6
|
-
usersToChat: {
|
|
7
|
-
read(existing, { readField, args }) {
|
|
8
|
-
const allUsers: any = readField('getUsers');
|
|
9
|
-
return allUsers?.filter((usr) => {
|
|
10
|
-
const temp: any = readField('alias', usr);
|
|
11
|
-
if (temp.includes(args.auth0Id)) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
return true;
|
|
15
|
-
});
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
currentUser: {
|
|
19
|
-
read(existing, { readField, args }) {
|
|
20
|
-
const allUsers: any = readField('getUsers');
|
|
21
|
-
return allUsers?.filter((usr) => {
|
|
22
|
-
const temp: any = readField('alias', usr);
|
|
23
|
-
if (temp.includes(args.auth0Id)) {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
return false;
|
|
27
|
-
})[0];
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
query GetAllChannel {
|
|
2
|
-
channels {
|
|
3
|
-
id
|
|
4
|
-
title
|
|
5
|
-
description
|
|
6
|
-
type
|
|
7
|
-
displayName
|
|
8
|
-
members {
|
|
9
|
-
id
|
|
10
|
-
user {
|
|
11
|
-
...MinimalUser
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
creator {
|
|
15
|
-
...MessengerUser
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
query ViewChannelDetail($id: String) {
|
|
21
|
-
viewChannelDetail(id: $id) {
|
|
22
|
-
id
|
|
23
|
-
title
|
|
24
|
-
description
|
|
25
|
-
type
|
|
26
|
-
displayName
|
|
27
|
-
orgName
|
|
28
|
-
topic
|
|
29
|
-
purpose
|
|
30
|
-
totalMsgCount
|
|
31
|
-
totalMsgCountRoot
|
|
32
|
-
lastPostAt
|
|
33
|
-
members {
|
|
34
|
-
id
|
|
35
|
-
user {
|
|
36
|
-
id
|
|
37
|
-
givenName
|
|
38
|
-
familyName
|
|
39
|
-
email
|
|
40
|
-
alias
|
|
41
|
-
picture
|
|
42
|
-
username
|
|
43
|
-
tokens {
|
|
44
|
-
type
|
|
45
|
-
token
|
|
46
|
-
valid
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
creator {
|
|
51
|
-
...MessengerUser
|
|
52
|
-
}
|
|
53
|
-
createdAt
|
|
54
|
-
updatedAt
|
|
55
|
-
deletedAt
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
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
|
-
creator {
|
|
15
|
-
...MessengerUser
|
|
16
|
-
}
|
|
17
|
-
lastPostAt
|
|
18
|
-
createdAt
|
|
19
|
-
updatedAt
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
query GetChannelsByUserWithLastMessage($role: String, $criteria: AnyObject, $limit: Int, $skip: Int, $sort: Sort) {
|
|
25
|
-
channelsByUser(role: $role, criteria: $criteria, limit: $limit, skip: $skip, sort: $sort) {
|
|
26
|
-
id
|
|
27
|
-
title
|
|
28
|
-
description
|
|
29
|
-
type
|
|
30
|
-
displayName
|
|
31
|
-
members {
|
|
32
|
-
id
|
|
33
|
-
user {
|
|
34
|
-
...MessengerUser
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
creator {
|
|
38
|
-
...MessengerUser
|
|
39
|
-
}
|
|
40
|
-
lastMessage {
|
|
41
|
-
...Post
|
|
42
|
-
}
|
|
43
|
-
createdAt
|
|
44
|
-
updatedAt
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
query GetChannelsByUserWithServiceChannels($role: String, $criteria: AnyObject, $supportServiceCriteria: AnyObject, $limit: Int, $skip: Int, $sort: Sort,$supportServices:Boolean = true) {
|
|
51
|
-
supportServiceChannels(role: $role, criteria: $supportServiceCriteria, limit: $limit, skip: $skip, sort: $sort) @include(if: $supportServices) {
|
|
52
|
-
id
|
|
53
|
-
title
|
|
54
|
-
description
|
|
55
|
-
type
|
|
56
|
-
displayName
|
|
57
|
-
members {
|
|
58
|
-
id
|
|
59
|
-
user {
|
|
60
|
-
...MessengerUser
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
creator {
|
|
64
|
-
...MessengerUser
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
channelsByUser(role: $role, criteria: $criteria, limit: $limit, skip: $skip, sort: $sort) {
|
|
68
|
-
id
|
|
69
|
-
title
|
|
70
|
-
description
|
|
71
|
-
type
|
|
72
|
-
displayName
|
|
73
|
-
members {
|
|
74
|
-
id
|
|
75
|
-
user {
|
|
76
|
-
...MessengerUser
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
creator {
|
|
80
|
-
...MessengerUser
|
|
81
|
-
}
|
|
82
|
-
createdAt
|
|
83
|
-
updatedAt
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
query Messages($channelId: ID,$parentId: String, $limit: Int! = 10, $skip: Int! = 0, $sort: Sort, $props: AnyObject) {
|
|
2
|
-
messages(channelId: $channelId,parentId:$parentId, limit: $limit, skip: $skip, sort: $sort, props: $props) @connection(key: "messages", filter: ["channelId","skip"]){
|
|
3
|
-
messagesRefId @client
|
|
4
|
-
data{
|
|
5
|
-
...Post
|
|
6
|
-
}
|
|
7
|
-
totalCount
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
query PostThreadMessages($channelId: ID,$parentId: String, $limit: Int! = 10, $skip: Int! = 0, $sort: Sort) {
|
|
12
|
-
messages(channelId: $channelId,parentId:$parentId, limit: $limit, skip: $skip, sort: $sort) @connection(key: "threadposts", filter: ["channelId","parentId",,"skip"]) {
|
|
13
|
-
threadmessagesRefId @client
|
|
14
|
-
data{
|
|
15
|
-
...Post
|
|
16
|
-
}
|
|
17
|
-
totalCount
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
query PublicMessages($channelId: ID!) {
|
|
22
|
-
publicMessages(channelId: $channelId) {
|
|
23
|
-
totalCount
|
|
24
|
-
data {
|
|
25
|
-
...Post
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
query GetOrganizationDetail($where: OrgDetailWhere!) {
|
|
2
|
-
getOrganizationDetail(where: $where) {
|
|
3
|
-
id
|
|
4
|
-
name
|
|
5
|
-
title
|
|
6
|
-
description
|
|
7
|
-
picture
|
|
8
|
-
orgUserCount
|
|
9
|
-
status
|
|
10
|
-
periodStart
|
|
11
|
-
periodStop
|
|
12
|
-
createdAt
|
|
13
|
-
updatedAt
|
|
14
|
-
billingEmail
|
|
15
|
-
stripeId
|
|
16
|
-
stripeSubscription
|
|
17
|
-
erpId
|
|
18
|
-
costCenter
|
|
19
|
-
legalEntityName
|
|
20
|
-
taxId
|
|
21
|
-
organizationType
|
|
22
|
-
organizationCategory
|
|
23
|
-
settings
|
|
24
|
-
invitations {
|
|
25
|
-
id
|
|
26
|
-
email
|
|
27
|
-
roles
|
|
28
|
-
status
|
|
29
|
-
fullName
|
|
30
|
-
inviteCount
|
|
31
|
-
invitedBy {
|
|
32
|
-
id
|
|
33
|
-
email
|
|
34
|
-
username
|
|
35
|
-
givenName
|
|
36
|
-
familyName
|
|
37
|
-
picture
|
|
38
|
-
}
|
|
39
|
-
inviteLink
|
|
40
|
-
createdAt
|
|
41
|
-
updatedAt
|
|
42
|
-
acceptedAt
|
|
43
|
-
sent
|
|
44
|
-
expiresAt
|
|
45
|
-
team {
|
|
46
|
-
id
|
|
47
|
-
name
|
|
48
|
-
title
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
members {
|
|
52
|
-
id
|
|
53
|
-
email
|
|
54
|
-
displayName
|
|
55
|
-
roles
|
|
56
|
-
status
|
|
57
|
-
lastVisited
|
|
58
|
-
joinedAt
|
|
59
|
-
createdAt
|
|
60
|
-
updatedAt
|
|
61
|
-
crossCheckEmail
|
|
62
|
-
user {
|
|
63
|
-
id
|
|
64
|
-
email
|
|
65
|
-
username
|
|
66
|
-
givenName
|
|
67
|
-
familyName
|
|
68
|
-
picture
|
|
69
|
-
alias
|
|
70
|
-
emailVerified
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
query GetOrganizationMembersWithChannels($orgId: ID, $orgName: String, $role: String, $channelCriteria: AnyObject, $offset: Int, $limit: Int, $sort: Sort) {
|
|
77
|
-
getOrganizationMembers(offset: $offset, limit: $limit, orgId: $orgId, orgName: $orgName) {
|
|
78
|
-
totalCount
|
|
79
|
-
data {
|
|
80
|
-
_id
|
|
81
|
-
userId
|
|
82
|
-
roles
|
|
83
|
-
inactive
|
|
84
|
-
orgName
|
|
85
|
-
crossCheckEmail
|
|
86
|
-
teamNames
|
|
87
|
-
lastVisited
|
|
88
|
-
isSelf
|
|
89
|
-
user {
|
|
90
|
-
id
|
|
91
|
-
givenName
|
|
92
|
-
familyName
|
|
93
|
-
picture
|
|
94
|
-
username
|
|
95
|
-
email
|
|
96
|
-
alias
|
|
97
|
-
emailVerified
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
channelsByUser(role: $role, criteria: $channelCriteria, limit: $limit, skip: $offset, sort: $sort) {
|
|
102
|
-
id
|
|
103
|
-
title
|
|
104
|
-
description
|
|
105
|
-
orgName
|
|
106
|
-
type
|
|
107
|
-
displayName
|
|
108
|
-
members {
|
|
109
|
-
id
|
|
110
|
-
user {
|
|
111
|
-
...MessengerUser
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
creator {
|
|
115
|
-
...MessengerUser
|
|
116
|
-
}
|
|
117
|
-
createdAt
|
|
118
|
-
updatedAt
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
query GetOrganizationSharableLink($teamId: String) {
|
|
123
|
-
getOrganizationSharableLink(teamId: $teamId)
|
|
124
|
-
}
|
|
125
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
query ThreadMessages($channelId: ID, $postParentId: ID,$selectedFields: String, $role: String, $participantsIds: [String], $limit: Int, $skip: Int,$isServiceThreads: Boolean,$repliesLimit2: Int, $repliesSkip2: Int) {
|
|
2
|
-
threadMessages(channelId: $channelId, postParentId: $postParentId, selectedFields: $selectedFields, role: $role,participantsIds:$participantsIds, limit: $limit, skip: $skip,isServiceThreads: $isServiceThreads) {
|
|
3
|
-
totalCount
|
|
4
|
-
data {
|
|
5
|
-
...PostThreadWithoutReplies
|
|
6
|
-
replies(limit: $repliesLimit2, skip: $repliesSkip2) {
|
|
7
|
-
...PostWithoutReplies
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
query GetPostThread($postThreadId: ID, $channelId: ID, $postParentId: ID, $role: String, $participantsIds: [String], $selectedFields: String, $limit: Int, $skip: Int, $sort: Sort ,$isServiceThreads: Boolean) {
|
|
14
|
-
getPostThread(postThreadId: $postThreadId, channelId: $channelId, postParentId: $postParentId, role: $role, participantsIds: $participantsIds, selectedFields: $selectedFields,isServiceThreads: $isServiceThreads) {
|
|
15
|
-
...PostThreadWithoutReplies
|
|
16
|
-
replies(limit: $limit, skip: $skip, sort: $sort) {
|
|
17
|
-
...PostWithoutReplies
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
query ThreadMessagesCount($channelId: ID, $postParentId: ID, $role: String, $participantsIds: [String], $selectedFields: String, $isServiceThreads: Boolean) {
|
|
23
|
-
threadMessagesCount(channelId: $channelId, postParentId: $postParentId, role: $role, participantsIds: $participantsIds, selectedFields: $selectedFields, isServiceThreads: $isServiceThreads)
|
|
24
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
query SupportServiceChannels($role: String, $criteria: AnyObject, $limit: Int, $skip: Int, $sort: Sort) {
|
|
2
|
-
supportServiceChannels(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
|
-
creator {
|
|
15
|
-
...MessengerUser
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
query GetOrganizationTeam($orgName: String!, $teamId: ID!) {
|
|
4
|
-
getTeam(orgName: $orgName, teamId: $teamId) {
|
|
5
|
-
id
|
|
6
|
-
name
|
|
7
|
-
title
|
|
8
|
-
description
|
|
9
|
-
tags
|
|
10
|
-
createdAt
|
|
11
|
-
updatedAt
|
|
12
|
-
organization {
|
|
13
|
-
id
|
|
14
|
-
name
|
|
15
|
-
title
|
|
16
|
-
}
|
|
17
|
-
teamMembers:members {
|
|
18
|
-
id
|
|
19
|
-
roles
|
|
20
|
-
status
|
|
21
|
-
joinedAt
|
|
22
|
-
user {
|
|
23
|
-
id
|
|
24
|
-
email
|
|
25
|
-
username
|
|
26
|
-
givenName
|
|
27
|
-
familyName
|
|
28
|
-
picture
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
query GetAllUsers {
|
|
2
|
-
getUsers {
|
|
3
|
-
...MinimalUser
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
query GetUserById($userId: ID!) {
|
|
8
|
-
getUserAccount(userId: $userId) {
|
|
9
|
-
...MinimalUser
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
query UsersToChat($auth0Id: String!) {
|
|
14
|
-
usersToChat(auth0Id: $auth0Id) {
|
|
15
|
-
...MinimalUser
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
query CurrentUser($auth0Id: String!) {
|
|
20
|
-
currentUser(auth0Id: $auth0Id) {
|
|
21
|
-
...MinimalUser
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# query GetOrganizationMembers($offset: Int, $limit: Int, $orgName: String) {
|
|
28
|
-
# getOrganizationMembers(offset: $offset, limit: $limit, orgName: $orgName) {
|
|
29
|
-
# totalCount
|
|
30
|
-
# data {
|
|
31
|
-
# _id
|
|
32
|
-
# userId
|
|
33
|
-
# name
|
|
34
|
-
# email
|
|
35
|
-
# role
|
|
36
|
-
# user {
|
|
37
|
-
# id
|
|
38
|
-
# givenName
|
|
39
|
-
# familyName
|
|
40
|
-
# picture
|
|
41
|
-
# username
|
|
42
|
-
# email
|
|
43
|
-
# alias
|
|
44
|
-
# }
|
|
45
|
-
# teamNames
|
|
46
|
-
# }
|
|
47
|
-
# }
|
|
48
|
-
# }
|