@messenger-box/platform-client 10.0.3-alpha.7 → 10.0.3-alpha.72
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 +88 -0
- package/lib/graphql/fragments/post-message.gql +36 -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/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/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/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/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/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,57 +1,177 @@
|
|
|
1
1
|
import { TypePolicies } from '@apollo/client';
|
|
2
|
+
import { gql } from '@apollo/client';
|
|
3
|
+
|
|
4
|
+
// Define the fragment we'll use for cache operations
|
|
5
|
+
const POST_THREAD_FRAGMENT = gql`
|
|
6
|
+
fragment PostThreadInfo on PostThread {
|
|
7
|
+
replies
|
|
8
|
+
replyCount
|
|
9
|
+
lastReplyAt
|
|
10
|
+
updatedAt
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
2
13
|
|
|
3
14
|
export const postThreadPolicies: TypePolicies = {
|
|
4
15
|
ThreadMessages: {
|
|
5
|
-
// keyFields: ['messagesRefId'],
|
|
6
|
-
//keyFields: [],
|
|
7
16
|
keyFields: ['data', ['channel', ['id']]],
|
|
8
17
|
fields: {
|
|
9
18
|
data: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
merge: (existing = [], incoming = [], { readField }) => {
|
|
20
|
+
// Create a map for efficient lookups
|
|
21
|
+
const threadMap = new Map();
|
|
22
|
+
|
|
23
|
+
// Store existing threads
|
|
24
|
+
if (existing && existing.length > 0) {
|
|
25
|
+
for (const item of existing) {
|
|
26
|
+
const id = readField('id', item);
|
|
27
|
+
if (id) threadMap.set(id, item);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Add or update with incoming threads
|
|
32
|
+
if (incoming && incoming.length > 0) {
|
|
33
|
+
for (const item of incoming) {
|
|
34
|
+
const id = readField('id', item);
|
|
35
|
+
if (id) threadMap.set(id, item);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Convert back to array
|
|
40
|
+
return Array.from(threadMap.values());
|
|
41
|
+
},
|
|
26
42
|
},
|
|
27
43
|
totalCount: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
44
|
+
merge(existing, incoming) {
|
|
45
|
+
// Take the higher of the two counts
|
|
46
|
+
return incoming !== undefined ? Math.max(existing || 0, incoming) : existing;
|
|
47
|
+
},
|
|
32
48
|
},
|
|
33
49
|
},
|
|
34
50
|
},
|
|
35
51
|
Query: {
|
|
36
52
|
fields: {
|
|
37
53
|
threadMessages: {
|
|
38
|
-
// keyArgs: ['channelId', 'parentId', 'limit', 'skip'],
|
|
39
54
|
keyArgs: ['channelId'],
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
55
|
+
merge(existing, incoming, { readField }) {
|
|
56
|
+
if (!existing) return incoming;
|
|
57
|
+
if (!incoming) return existing;
|
|
58
|
+
|
|
43
59
|
return {
|
|
44
60
|
...incoming,
|
|
45
|
-
data: [...(existing?.data
|
|
61
|
+
data: [...(existing?.data || []), ...(incoming.data || [])].filter(
|
|
62
|
+
(item, index, self) =>
|
|
63
|
+
// Filter out duplicates
|
|
64
|
+
index === self.findIndex((t) => readField('id', t) === readField('id', item)),
|
|
65
|
+
),
|
|
46
66
|
};
|
|
47
67
|
},
|
|
48
68
|
},
|
|
49
69
|
getPostThread: {
|
|
50
|
-
|
|
51
|
-
keyArgs: ['channelId', 'postParentId', 'limit', 'skip', 'role'],
|
|
70
|
+
keyArgs: ['channelId', 'postParentId', 'role'],
|
|
52
71
|
merge(existing, incoming, { mergeObjects }) {
|
|
53
|
-
|
|
54
|
-
|
|
72
|
+
if (!existing) return incoming;
|
|
73
|
+
if (!incoming) return existing;
|
|
74
|
+
|
|
75
|
+
// Carefully merge the two objects
|
|
76
|
+
const result = mergeObjects(existing, incoming);
|
|
77
|
+
|
|
78
|
+
// Special handling for replies to avoid duplicates
|
|
79
|
+
if (existing.replies && incoming.replies) {
|
|
80
|
+
const uniqueReplies = new Map();
|
|
81
|
+
|
|
82
|
+
// Add existing replies
|
|
83
|
+
for (const reply of existing.replies) {
|
|
84
|
+
uniqueReplies.set(reply.id, reply);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Add incoming replies, overwriting existing ones
|
|
88
|
+
for (const reply of incoming.replies) {
|
|
89
|
+
uniqueReplies.set(reply.id, reply);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Replace replies with deduplicated list
|
|
93
|
+
result.replies = Array.from(uniqueReplies.values());
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return result;
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
// Mutation: {
|
|
102
|
+
// fields: {
|
|
103
|
+
// createPostThread: {
|
|
104
|
+
// merge(existing, incoming, { cache, args, readField }) {
|
|
105
|
+
// // Early return if not enough data
|
|
106
|
+
// if (!incoming?.lastMessage || !incoming?.data || !args?.channelId || !args?.postParentId) {
|
|
107
|
+
// return incoming;
|
|
108
|
+
// }
|
|
109
|
+
|
|
110
|
+
// try {
|
|
111
|
+
// // Use type policies to handle the cache update instead of direct manipulation
|
|
112
|
+
// const queryRef = cache.identify({
|
|
113
|
+
// __typename: 'Query',
|
|
114
|
+
// getPostThread: {
|
|
115
|
+
// channelId: args.channelId,
|
|
116
|
+
// postParentId: args.postParentId,
|
|
117
|
+
// role: args.threadMessageInput?.role
|
|
118
|
+
// }
|
|
119
|
+
// });
|
|
120
|
+
|
|
121
|
+
// // Use cache.modify which doesn't require fragments
|
|
122
|
+
// if (queryRef) {
|
|
123
|
+
// cache.modify({
|
|
124
|
+
// id: queryRef,
|
|
125
|
+
// fields: {
|
|
126
|
+
// getPostThread(existingThread = {}) {
|
|
127
|
+
// if (!existingThread) return existingThread;
|
|
128
|
+
|
|
129
|
+
// // Create a new object with the updated properties
|
|
130
|
+
// return {
|
|
131
|
+
// ...existingThread,
|
|
132
|
+
// replies: [incoming.lastMessage, ...(existingThread.replies || [])],
|
|
133
|
+
// replyCount: (existingThread.replyCount || 0) + 1,
|
|
134
|
+
// lastReplyAt: incoming.lastMessage.createdAt,
|
|
135
|
+
// updatedAt: incoming.lastMessage.createdAt
|
|
136
|
+
// };
|
|
137
|
+
// }
|
|
138
|
+
// }
|
|
139
|
+
// });
|
|
140
|
+
// }
|
|
141
|
+
// } catch (error) {
|
|
142
|
+
// console.error('Error updating cache in createPostThread policy:', error);
|
|
143
|
+
// }
|
|
144
|
+
|
|
145
|
+
// return incoming;
|
|
146
|
+
// },
|
|
147
|
+
// },
|
|
148
|
+
// },
|
|
149
|
+
// },
|
|
150
|
+
PostThread: {
|
|
151
|
+
fields: {
|
|
152
|
+
replies: {
|
|
153
|
+
merge(existing = [], incoming = [], { readField }) {
|
|
154
|
+
// Use a map for fast deduplication
|
|
155
|
+
const replyMap = new Map();
|
|
156
|
+
|
|
157
|
+
// Add existing replies
|
|
158
|
+
if (existing && existing.length > 0) {
|
|
159
|
+
for (const reply of existing) {
|
|
160
|
+
const id = readField('id', reply);
|
|
161
|
+
if (id) replyMap.set(id, reply);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// Add or update with incoming replies
|
|
166
|
+
if (incoming && incoming.length > 0) {
|
|
167
|
+
for (const reply of incoming) {
|
|
168
|
+
const id = readField('id', reply);
|
|
169
|
+
if (id) replyMap.set(id, reply);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Convert back to array
|
|
174
|
+
return Array.from(replyMap.values());
|
|
55
175
|
},
|
|
56
176
|
},
|
|
57
177
|
},
|
|
@@ -2,6 +2,18 @@ import { TypePolicies } from '@apollo/client';
|
|
|
2
2
|
|
|
3
3
|
export const teamPolicies: TypePolicies = {
|
|
4
4
|
Query: {
|
|
5
|
-
fields: {
|
|
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'],
|
|
6
18
|
},
|
|
7
19
|
};
|
|
@@ -14,6 +14,32 @@ query GetChannelsByUser($role: String, $criteria: AnyObject, $limit: Int, $skip:
|
|
|
14
14
|
creator {
|
|
15
15
|
...MessengerUser
|
|
16
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
|
+
}
|
|
17
43
|
createdAt
|
|
18
44
|
updatedAt
|
|
19
45
|
}
|
|
@@ -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({
|