@messenger-box/platform-client 10.0.3-alpha.7 → 10.0.3-alpha.74
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 +92 -0
- package/lib/graphql/fragments/post-message.gql +36 -0
- package/lib/graphql/mutations/channel-mutation.gql +5 -0
- package/lib/graphql/mutations/messages-mutation.gql +37 -0
- package/lib/graphql/policies/channel-policies.d.ts.map +1 -1
- package/lib/graphql/policies/channel-policies.js +150 -2
- package/lib/graphql/policies/channel-policies.js.map +1 -1
- package/lib/graphql/policies/messages-policies.d.ts.map +1 -1
- package/lib/graphql/policies/messages-policies.js +229 -37
- package/lib/graphql/policies/messages-policies.js.map +1 -1
- package/lib/graphql/policies/post-thread-policies.d.ts.map +1 -1
- package/lib/graphql/policies/post-thread-policies.js +136 -31
- package/lib/graphql/policies/post-thread-policies.js.map +1 -1
- package/lib/graphql/policies/teams-policies.d.ts.map +1 -1
- package/lib/graphql/policies/teams-policies.js +13 -1
- package/lib/graphql/policies/teams-policies.js.map +1 -1
- package/lib/graphql/queries/channels-by-user.gql +26 -0
- package/lib/graphql/queries/messages.gql +2 -2
- package/lib/graphql/queries/organization-query.gql +78 -35
- package/lib/graphql/queries/post-thread-message.gql +4 -0
- package/lib/graphql/queries/teams-query.gql +79 -29
- package/lib/graphql/queries/user-account.gql +1 -1
- package/lib/graphql/queries/users.gql +1 -1
- package/lib/graphql/subscription/fileUpdated.gql +11 -0
- package/lib/graphql/subscription/fragmentUpdated.gql +7 -0
- package/lib/graphql/subscription/sandboxError.gql +17 -0
- package/lib/hooks/use-upload-file.hook.d.ts.map +1 -1
- package/lib/hooks/use-upload-file.hook.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/hooks/use-upload-files.hook.native.js.map +1 -1
- package/package.json +4 -4
- package/src/graphql/fragments/post-message.gql +36 -0
- package/src/graphql/mutations/channel-mutation.gql +5 -0
- package/src/graphql/mutations/messages-mutation.gql +37 -0
- package/src/graphql/policies/channel-policies.ts +148 -2
- package/src/graphql/policies/messages-policies.ts +251 -39
- package/src/graphql/policies/post-thread-policies.ts +151 -31
- package/src/graphql/policies/teams-policies.ts +13 -1
- package/src/graphql/queries/channels-by-user.gql +26 -0
- package/src/graphql/queries/messages.gql +2 -2
- package/src/graphql/queries/organization-query.gql +78 -35
- package/src/graphql/queries/post-thread-message.gql +4 -0
- package/src/graphql/queries/teams-query.gql +79 -29
- package/src/graphql/queries/user-account.gql +1 -1
- package/src/graphql/queries/users.gql +1 -1
- package/src/graphql/subscription/fileUpdated.gql +11 -0
- package/src/graphql/subscription/fragmentUpdated.gql +7 -0
- package/src/graphql/subscription/sandboxError.gql +17 -0
- package/src/hooks/use-upload-file.hook.native.ts +1 -4
- package/src/hooks/use-upload-file.hook.ts +1 -4
- package/src/hooks/use-upload-files.hook.native.ts +1 -4
- package/src/hooks/use-upload-files.hook.ts +1 -4
|
@@ -1,56 +1,99 @@
|
|
|
1
1
|
query GetOrganizationDetail($where: OrgDetailWhere!) {
|
|
2
2
|
getOrganizationDetail(where: $where) {
|
|
3
|
-
createdAt
|
|
4
|
-
description
|
|
5
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
|
+
resources
|
|
24
|
+
settings
|
|
25
|
+
contributionRoles {
|
|
26
|
+
id
|
|
27
|
+
name
|
|
28
|
+
target
|
|
29
|
+
description
|
|
30
|
+
}
|
|
6
31
|
invitations {
|
|
7
|
-
|
|
8
|
-
acceptedAt
|
|
9
|
-
createdAt
|
|
32
|
+
id
|
|
10
33
|
email
|
|
34
|
+
roles
|
|
35
|
+
status
|
|
11
36
|
fullName
|
|
12
|
-
id
|
|
13
|
-
invitedBy
|
|
14
|
-
teamId
|
|
15
|
-
updatedAt
|
|
16
|
-
tokenExpiration
|
|
17
|
-
role
|
|
18
37
|
inviteCount
|
|
38
|
+
invitedBy {
|
|
39
|
+
id
|
|
40
|
+
email
|
|
41
|
+
username
|
|
42
|
+
givenName
|
|
43
|
+
familyName
|
|
44
|
+
picture
|
|
45
|
+
}
|
|
46
|
+
inviteLink
|
|
47
|
+
createdAt
|
|
48
|
+
updatedAt
|
|
49
|
+
acceptedAt
|
|
50
|
+
sent
|
|
51
|
+
expiresAt
|
|
52
|
+
team {
|
|
53
|
+
id
|
|
54
|
+
name
|
|
55
|
+
title
|
|
56
|
+
}
|
|
19
57
|
}
|
|
20
|
-
|
|
21
|
-
|
|
58
|
+
members {
|
|
59
|
+
id
|
|
60
|
+
email
|
|
61
|
+
displayName
|
|
62
|
+
roles
|
|
63
|
+
status
|
|
64
|
+
lastVisited
|
|
65
|
+
joinedAt
|
|
66
|
+
isBillingLeader
|
|
67
|
+
createdAt
|
|
68
|
+
updatedAt
|
|
22
69
|
crossCheckEmail
|
|
23
|
-
inactive
|
|
24
|
-
orgName
|
|
25
70
|
user {
|
|
71
|
+
id
|
|
26
72
|
email
|
|
73
|
+
username
|
|
74
|
+
givenName
|
|
75
|
+
familyName
|
|
76
|
+
picture
|
|
27
77
|
alias
|
|
28
78
|
emailVerified
|
|
29
|
-
id
|
|
30
|
-
username
|
|
31
79
|
}
|
|
32
|
-
roles
|
|
33
|
-
userId
|
|
34
80
|
}
|
|
35
|
-
orgUserCount
|
|
36
|
-
periodStart
|
|
37
|
-
periodStop
|
|
38
|
-
picture
|
|
39
|
-
status
|
|
40
|
-
title
|
|
41
|
-
updatedAt
|
|
42
81
|
}
|
|
43
82
|
}
|
|
44
83
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
query GetOrganizationMembersWithChannels($orgName: String,$role: String, $channelCriteria: AnyObject,$offset: Int, $limit: Int, $sort: Sort) {
|
|
49
|
-
getOrganizationMembers(offset: $offset, limit: $limit, orgName: $orgName) {
|
|
84
|
+
query GetOrganizationMembersWithChannels($orgId: ID, $orgName: String, $role: String, $channelCriteria: AnyObject, $offset: Int, $limit: Int, $sort: Sort) {
|
|
85
|
+
getOrganizationMembers(offset: $offset, limit: $limit, orgId: $orgId, orgName: $orgName) {
|
|
50
86
|
totalCount
|
|
51
87
|
data {
|
|
88
|
+
_id
|
|
52
89
|
userId
|
|
53
90
|
roles
|
|
91
|
+
inactive
|
|
92
|
+
orgName
|
|
93
|
+
crossCheckEmail
|
|
94
|
+
teamNames
|
|
95
|
+
lastVisited
|
|
96
|
+
isSelf
|
|
54
97
|
user {
|
|
55
98
|
id
|
|
56
99
|
givenName
|
|
@@ -59,11 +102,11 @@ query GetOrganizationMembersWithChannels($orgName: String,$role: String, $channe
|
|
|
59
102
|
username
|
|
60
103
|
email
|
|
61
104
|
alias
|
|
105
|
+
emailVerified
|
|
62
106
|
}
|
|
63
|
-
teamNames
|
|
64
107
|
}
|
|
65
|
-
|
|
66
|
-
|
|
108
|
+
}
|
|
109
|
+
channelsByUser(role: $role, criteria: $channelCriteria, limit: $limit, skip: $offset, sort: $sort) {
|
|
67
110
|
id
|
|
68
111
|
title
|
|
69
112
|
description
|
|
@@ -85,6 +128,6 @@ query GetOrganizationMembersWithChannels($orgName: String,$role: String, $channe
|
|
|
85
128
|
}
|
|
86
129
|
|
|
87
130
|
query GetOrganizationSharableLink($teamId: String) {
|
|
88
|
-
|
|
131
|
+
getOrganizationSharableLink(teamId: $teamId)
|
|
89
132
|
}
|
|
90
133
|
|
|
@@ -18,3 +18,7 @@ query GetPostThread($postThreadId: ID, $channelId: ID, $postParentId: ID, $role:
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
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,32 +1,82 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
query GetOrganizationTeam($orgName: String!, $
|
|
4
|
-
getTeam(orgName: $orgName,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
query GetOrganizationTeam($orgName: String!, $teamId: ID!) {
|
|
4
|
+
getTeam(orgName: $orgName, teamId: $teamId) {
|
|
5
|
+
id
|
|
6
|
+
name
|
|
7
|
+
title
|
|
8
|
+
description
|
|
9
|
+
tags
|
|
10
|
+
status
|
|
11
|
+
visibility
|
|
12
|
+
joinMethod
|
|
13
|
+
inviteCode
|
|
14
|
+
isCommunity
|
|
15
|
+
verificationLevel
|
|
16
|
+
defaultNotifications
|
|
17
|
+
guidelines
|
|
18
|
+
welcomeMessage
|
|
19
|
+
connectionId
|
|
20
|
+
metadata
|
|
21
|
+
createdAt
|
|
22
|
+
updatedAt
|
|
23
|
+
updatedBy {
|
|
24
|
+
id
|
|
25
|
+
email
|
|
26
|
+
username
|
|
27
|
+
givenName
|
|
28
|
+
familyName
|
|
29
|
+
picture
|
|
30
|
+
}
|
|
31
|
+
organization {
|
|
32
|
+
id
|
|
33
|
+
name
|
|
34
|
+
title
|
|
35
|
+
description
|
|
36
|
+
picture
|
|
37
|
+
}
|
|
38
|
+
parentTeam {
|
|
39
|
+
id
|
|
40
|
+
name
|
|
41
|
+
title
|
|
42
|
+
description
|
|
43
|
+
}
|
|
44
|
+
teamMembers:members {
|
|
45
|
+
id
|
|
46
|
+
roles
|
|
47
|
+
status
|
|
48
|
+
joinedAt
|
|
49
|
+
lastActiveAt
|
|
50
|
+
memberOrigin
|
|
51
|
+
connectionId
|
|
52
|
+
user {
|
|
53
|
+
id
|
|
54
|
+
email
|
|
55
|
+
username
|
|
56
|
+
givenName
|
|
57
|
+
familyName
|
|
58
|
+
picture
|
|
59
|
+
alias
|
|
60
|
+
emailVerified
|
|
61
|
+
}
|
|
62
|
+
orgMember {
|
|
63
|
+
id
|
|
64
|
+
email
|
|
65
|
+
displayName
|
|
66
|
+
roles
|
|
67
|
+
status
|
|
68
|
+
lastVisited
|
|
69
|
+
joinedAt
|
|
70
|
+
isBillingLeader
|
|
71
|
+
crossCheckEmail
|
|
72
|
+
}
|
|
73
|
+
originOrg {
|
|
74
|
+
id
|
|
75
|
+
name
|
|
76
|
+
title
|
|
77
|
+
description
|
|
78
|
+
picture
|
|
79
|
+
}
|
|
80
|
+
}
|
|
20
81
|
}
|
|
21
|
-
|
|
22
|
-
id
|
|
23
|
-
name
|
|
24
|
-
email
|
|
25
|
-
username
|
|
26
|
-
userId
|
|
27
|
-
status
|
|
28
|
-
role
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
82
|
+
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { useUploadFile as useBaseUploadFile } from '@container-stack/file-info-client/lib/hooks/use-file-upload.native.js';
|
|
2
|
-
import {
|
|
3
|
-
useAttachUploadedFileToMessageMutation,
|
|
4
|
-
useCreateMessageFileUploadLinkMutation,
|
|
5
|
-
} from 'common/lib/generated/generated.js';
|
|
2
|
+
import { useAttachUploadedFileToMessageMutation, useCreateMessageFileUploadLinkMutation } from 'common/graphql';
|
|
6
3
|
|
|
7
4
|
export const useUploadFile = (): ReturnType<typeof useBaseUploadFile> =>
|
|
8
5
|
useBaseUploadFile({
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { useUploadFile as useBaseUploadFile } from '@container-stack/file-info-client/lib/hooks/use-upload-file.js';
|
|
2
|
-
import {
|
|
3
|
-
useAttachUploadedFileToMessageMutation,
|
|
4
|
-
useCreateMessageFileUploadLinkMutation,
|
|
5
|
-
} from 'common/lib/generated/generated.js';
|
|
2
|
+
import { useAttachUploadedFileToMessageMutation, useCreateMessageFileUploadLinkMutation } from 'common/graphql';
|
|
6
3
|
|
|
7
4
|
export const useUploadFile = (): ReturnType<typeof useBaseUploadFile> =>
|
|
8
5
|
useBaseUploadFile({
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { useUploadFile } from '@container-stack/file-info-client/lib/hooks/use-file-upload.native.js';
|
|
2
|
-
import {
|
|
3
|
-
useAttachUploadedFilesToMessageMutation,
|
|
4
|
-
useCreateMessageFilesUploadLinkMutation,
|
|
5
|
-
} from 'common/lib/generated/generated.js';
|
|
2
|
+
import { useAttachUploadedFilesToMessageMutation, useCreateMessageFilesUploadLinkMutation } from 'common/graphql';
|
|
6
3
|
|
|
7
4
|
export const useUploadFiles = (): ReturnType<typeof useUploadFile> =>
|
|
8
5
|
useUploadFile({
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { useUploadFile } from '@container-stack/file-info-client/lib/hooks/use-upload-file.js';
|
|
2
|
-
import {
|
|
3
|
-
useAttachUploadedFilesToMessageMutation,
|
|
4
|
-
useCreateMessageFilesUploadLinkMutation,
|
|
5
|
-
} from 'common/lib/generated/generated.js';
|
|
2
|
+
import { useAttachUploadedFilesToMessageMutation, useCreateMessageFilesUploadLinkMutation } from 'common/graphql';
|
|
6
3
|
|
|
7
4
|
export const useUploadFiles = (): ReturnType<typeof useUploadFile> =>
|
|
8
5
|
useUploadFile({
|