@messenger-box/platform-client 10.0.3-alpha.16 → 10.0.3-alpha.162
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 +228 -0
- package/lib/graphql/fragments/post-message.gql +36 -0
- package/lib/graphql/id-generation.js.map +1 -1
- package/lib/graphql/index.js.map +1 -1
- package/lib/graphql/mutations/channel-mutation.gql +5 -0
- package/lib/graphql/mutations/messages-mutation.gql +29 -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/posts-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/policies/user-account-policies.js.map +1 -1
- package/lib/graphql/policies/user-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 +70 -35
- package/lib/graphql/queries/post-thread-message.gql +4 -0
- package/lib/graphql/queries/teams-query.gql +29 -29
- package/lib/graphql/queries/user-account.gql +1 -1
- package/lib/graphql/queries/users.gql +1 -1
- package/lib/graphql/schema/index.js.map +1 -1
- package/lib/graphql/subscription/fileUpdated.gql +11 -0
- package/lib/graphql/subscription/sandboxError.gql +17 -0
- package/lib/hooks/use-base-file-upload.hook.d.ts.map +1 -1
- package/lib/hooks/use-upload-file.hook.d.ts +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 +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 +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 +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/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.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 +3 -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 +70 -35
- package/src/graphql/queries/post-thread-message.gql +4 -0
- package/src/graphql/queries/teams-query.gql +29 -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/hooks/use-upload-file.hook.native.ts +1 -1
- package/src/hooks/use-upload-file.hook.ts +1 -1
- package/src/hooks/use-upload-files.hook.native.ts +1 -1
- package/src/hooks/use-upload-files.hook.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,234 @@
|
|
|
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.3-alpha.162](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.161...v10.0.3-alpha.162) (2025-12-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
9
|
+
|
|
10
|
+
## [10.0.3-alpha.160](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.159...v10.0.3-alpha.160) (2025-12-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
13
|
+
|
|
14
|
+
## [10.0.3-alpha.158](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.157...v10.0.3-alpha.158) (2025-12-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
17
|
+
|
|
18
|
+
## [10.0.3-alpha.154](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.153...v10.0.3-alpha.154) (2025-12-20)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
21
|
+
|
|
22
|
+
## [10.0.3-alpha.152](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.151...v10.0.3-alpha.152) (2025-12-19)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
25
|
+
|
|
26
|
+
## [10.0.3-alpha.151](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.150...v10.0.3-alpha.151) (2025-12-19)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
29
|
+
|
|
30
|
+
## [10.0.3-alpha.150](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.149...v10.0.3-alpha.150) (2025-12-19)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
33
|
+
|
|
34
|
+
## [10.0.3-alpha.148](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.147...v10.0.3-alpha.148) (2025-12-18)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
37
|
+
|
|
38
|
+
## [10.0.3-alpha.147](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.146...v10.0.3-alpha.147) (2025-12-18)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
41
|
+
|
|
42
|
+
## [10.0.3-alpha.145](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.144...v10.0.3-alpha.145) (2025-12-11)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
45
|
+
|
|
46
|
+
## [10.0.3-alpha.143](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.142...v10.0.3-alpha.143) (2025-12-08)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
49
|
+
|
|
50
|
+
## [10.0.3-alpha.138](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.137...v10.0.3-alpha.138) (2025-12-05)
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
53
|
+
|
|
54
|
+
## [10.0.3-alpha.136](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.135...v10.0.3-alpha.136) (2025-12-02)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
57
|
+
|
|
58
|
+
## [10.0.3-alpha.135](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.134...v10.0.3-alpha.135) (2025-11-28)
|
|
59
|
+
|
|
60
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
61
|
+
|
|
62
|
+
## [10.0.3-alpha.129](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.128...v10.0.3-alpha.129) (2025-11-17)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
65
|
+
|
|
66
|
+
## [10.0.3-alpha.126](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.125...v10.0.3-alpha.126) (2025-11-08)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
69
|
+
|
|
70
|
+
## [10.0.3-alpha.125](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.124...v10.0.3-alpha.125) (2025-11-08)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
73
|
+
|
|
74
|
+
## [10.0.3-alpha.123](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.122...v10.0.3-alpha.123) (2025-11-05)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
77
|
+
|
|
78
|
+
## [10.0.3-alpha.120](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.119...v10.0.3-alpha.120) (2025-10-30)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
81
|
+
|
|
82
|
+
## [10.0.3-alpha.119](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.118...v10.0.3-alpha.119) (2025-10-29)
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
85
|
+
|
|
86
|
+
## [10.0.3-alpha.117](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.116...v10.0.3-alpha.117) (2025-10-27)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
89
|
+
|
|
90
|
+
## [10.0.3-alpha.113](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.112...v10.0.3-alpha.113) (2025-10-23)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
93
|
+
|
|
94
|
+
## [10.0.3-alpha.109](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.108...v10.0.3-alpha.109) (2025-10-17)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
97
|
+
|
|
98
|
+
## [10.0.3-alpha.104](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.103...v10.0.3-alpha.104) (2025-10-11)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
101
|
+
|
|
102
|
+
## [10.0.3-alpha.102](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.101...v10.0.3-alpha.102) (2025-10-11)
|
|
103
|
+
|
|
104
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
105
|
+
|
|
106
|
+
## [10.0.3-alpha.101](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.100...v10.0.3-alpha.101) (2025-10-11)
|
|
107
|
+
|
|
108
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
109
|
+
|
|
110
|
+
## [10.0.3-alpha.100](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.99...v10.0.3-alpha.100) (2025-10-09)
|
|
111
|
+
|
|
112
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
113
|
+
|
|
114
|
+
## [10.0.3-alpha.99](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.98...v10.0.3-alpha.99) (2025-09-29)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
117
|
+
|
|
118
|
+
## [10.0.3-alpha.97](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.96...v10.0.3-alpha.97) (2025-09-25)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
121
|
+
|
|
122
|
+
## [10.0.3-alpha.96](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.95...v10.0.3-alpha.96) (2025-09-23)
|
|
123
|
+
|
|
124
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
125
|
+
|
|
126
|
+
## [10.0.3-alpha.95](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.94...v10.0.3-alpha.95) (2025-09-23)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
129
|
+
|
|
130
|
+
## [10.0.3-alpha.94](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.93...v10.0.3-alpha.94) (2025-09-22)
|
|
131
|
+
|
|
132
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
133
|
+
|
|
134
|
+
## [10.0.3-alpha.93](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.92...v10.0.3-alpha.93) (2025-09-22)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
137
|
+
|
|
138
|
+
## [10.0.3-alpha.84](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.83...v10.0.3-alpha.84) (2025-09-21)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
141
|
+
|
|
142
|
+
## [10.0.3-alpha.80](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.79...v10.0.3-alpha.80) (2025-09-20)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
145
|
+
|
|
146
|
+
## [10.0.3-alpha.77](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.76...v10.0.3-alpha.77) (2025-09-19)
|
|
147
|
+
|
|
148
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
149
|
+
|
|
150
|
+
## [10.0.3-alpha.74](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.73...v10.0.3-alpha.74) (2025-09-18)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
153
|
+
|
|
154
|
+
## [10.0.3-alpha.72](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.71...v10.0.3-alpha.72) (2025-08-28)
|
|
155
|
+
|
|
156
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
157
|
+
|
|
158
|
+
## [10.0.3-alpha.69](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.68...v10.0.3-alpha.69) (2025-08-11)
|
|
159
|
+
|
|
160
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
161
|
+
|
|
162
|
+
## [10.0.3-alpha.67](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.66...v10.0.3-alpha.67) (2025-08-06)
|
|
163
|
+
|
|
164
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
165
|
+
|
|
166
|
+
## [10.0.3-alpha.62](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.61...v10.0.3-alpha.62) (2025-07-30)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
169
|
+
|
|
170
|
+
## [10.0.3-alpha.61](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.60...v10.0.3-alpha.61) (2025-07-09)
|
|
171
|
+
|
|
172
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
173
|
+
|
|
174
|
+
## [10.0.3-alpha.56](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.55...v10.0.3-alpha.56) (2025-06-30)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
177
|
+
|
|
178
|
+
## [10.0.3-alpha.54](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.53...v10.0.3-alpha.54) (2025-06-29)
|
|
179
|
+
|
|
180
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
181
|
+
|
|
182
|
+
## [10.0.3-alpha.50](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.49...v10.0.3-alpha.50) (2025-06-05)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
185
|
+
|
|
186
|
+
## [10.0.3-alpha.48](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.47...v10.0.3-alpha.48) (2025-05-30)
|
|
187
|
+
|
|
188
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
189
|
+
|
|
190
|
+
## [10.0.3-alpha.47](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.46...v10.0.3-alpha.47) (2025-05-26)
|
|
191
|
+
|
|
192
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
193
|
+
|
|
194
|
+
## [10.0.3-alpha.46](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.45...v10.0.3-alpha.46) (2025-05-19)
|
|
195
|
+
|
|
196
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
197
|
+
|
|
198
|
+
## [10.0.3-alpha.43](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.42...v10.0.3-alpha.43) (2025-05-15)
|
|
199
|
+
|
|
200
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
201
|
+
|
|
202
|
+
## [10.0.3-alpha.40](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.39...v10.0.3-alpha.40) (2025-05-14)
|
|
203
|
+
|
|
204
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
205
|
+
|
|
206
|
+
## [10.0.3-alpha.38](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.37...v10.0.3-alpha.38) (2025-04-25)
|
|
207
|
+
|
|
208
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
209
|
+
|
|
210
|
+
## [10.0.3-alpha.37](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.36...v10.0.3-alpha.37) (2025-04-25)
|
|
211
|
+
|
|
212
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
213
|
+
|
|
214
|
+
## [10.0.3-alpha.36](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.35...v10.0.3-alpha.36) (2025-04-23)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
217
|
+
|
|
218
|
+
## [10.0.3-alpha.34](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.33...v10.0.3-alpha.34) (2025-04-22)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
221
|
+
|
|
222
|
+
## [10.0.3-alpha.33](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.32...v10.0.3-alpha.33) (2025-04-17)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
225
|
+
|
|
226
|
+
## [10.0.3-alpha.31](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.30...v10.0.3-alpha.31) (2025-04-16)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
229
|
+
|
|
230
|
+
## [10.0.3-alpha.17](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.16...v10.0.3-alpha.17) (2025-04-08)
|
|
231
|
+
|
|
232
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
233
|
+
|
|
6
234
|
## [10.0.3-alpha.16](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.15...v10.0.3-alpha.16) (2025-03-28)
|
|
7
235
|
|
|
8
236
|
**Note:** Version bump only for package @messenger-box/platform-client
|
|
@@ -19,6 +19,18 @@ fragment Post on Post {
|
|
|
19
19
|
# propsConfiguration {
|
|
20
20
|
# ...Configuration
|
|
21
21
|
# }
|
|
22
|
+
propsConfiguration {
|
|
23
|
+
contents
|
|
24
|
+
id
|
|
25
|
+
keys
|
|
26
|
+
resource
|
|
27
|
+
target
|
|
28
|
+
overrides {
|
|
29
|
+
contents
|
|
30
|
+
identifiers
|
|
31
|
+
keys
|
|
32
|
+
}
|
|
33
|
+
}
|
|
22
34
|
props
|
|
23
35
|
files {
|
|
24
36
|
totalCount
|
|
@@ -58,6 +70,18 @@ fragment PostReplies on Messages {
|
|
|
58
70
|
# propsConfiguration {
|
|
59
71
|
# ...Configuration
|
|
60
72
|
# }
|
|
73
|
+
propsConfiguration {
|
|
74
|
+
contents
|
|
75
|
+
id
|
|
76
|
+
keys
|
|
77
|
+
resource
|
|
78
|
+
target
|
|
79
|
+
overrides {
|
|
80
|
+
contents
|
|
81
|
+
identifiers
|
|
82
|
+
keys
|
|
83
|
+
}
|
|
84
|
+
}
|
|
61
85
|
props
|
|
62
86
|
files {
|
|
63
87
|
totalCount
|
|
@@ -98,6 +122,18 @@ fragment PostWithoutReplies on Post {
|
|
|
98
122
|
# propsConfiguration {
|
|
99
123
|
# ...Configuration
|
|
100
124
|
# }
|
|
125
|
+
propsConfiguration {
|
|
126
|
+
contents
|
|
127
|
+
id
|
|
128
|
+
keys
|
|
129
|
+
resource
|
|
130
|
+
target
|
|
131
|
+
overrides {
|
|
132
|
+
contents
|
|
133
|
+
identifiers
|
|
134
|
+
keys
|
|
135
|
+
}
|
|
136
|
+
}
|
|
101
137
|
props
|
|
102
138
|
files {
|
|
103
139
|
totalCount
|
|
@@ -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":"0CAEO,MAAM,gBAAgB,GAAG;AAC5B,EAAA,CAAA,yBAAsB,GAAK,CAAA;AAC3B,IAAA;AACA,GAAA,4BAAsB,CAAA,IAAA,CAAA,CAAA,EAAc,EAAE,CAAC;AACvC,EAAA,CAAA,4BAAsB,GAAA,CAAA;IACxB;;;;;;;;"}
|
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":"4fAYA,MAAM,YAAY,GAAG,KAAK,CACtB,EAAE,EACF,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY"}
|
|
@@ -70,3 +70,8 @@ mutation saveMembersToChannel($membersIds:[String]!,$channelId:String!){
|
|
|
70
70
|
mutation DeleteChannel($ChannelId:ID!){
|
|
71
71
|
deleteChannel(id: $ChannelId)
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
mutation createChannelWorkflowJob($createChannelInput : CreateChannelInput!, $extensionInput : WorkflowExtensionInput!) {
|
|
76
|
+
createChannelWorkflowJob(createChannelInput: $createChannelInput, extensionInput: $extensionInput)
|
|
77
|
+
}
|
|
@@ -5,6 +5,7 @@ mutation SendMessages(
|
|
|
5
5
|
$postId: ID,
|
|
6
6
|
$createdBy: ID,
|
|
7
7
|
$notificationParams:ExpoNotificationData,
|
|
8
|
+
$extraProps:AnyObject
|
|
8
9
|
){
|
|
9
10
|
sendMessage(
|
|
10
11
|
channelId: $channelId,
|
|
@@ -13,6 +14,7 @@ mutation SendMessages(
|
|
|
13
14
|
files: $files,
|
|
14
15
|
createdBy: $createdBy
|
|
15
16
|
notificationParams: $notificationParams
|
|
17
|
+
extraProps: $extraProps
|
|
16
18
|
},
|
|
17
19
|
postId: $postId
|
|
18
20
|
){
|
|
@@ -95,6 +97,33 @@ mutation DeleteMessageFile($url:String!){
|
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
|
|
100
|
+
mutation GenerateAiCode($messageId: String!, $modelConfig: ModelConfigurationInput) {
|
|
101
|
+
generateAiCode(messageId: $messageId, modelConfig: $modelConfig) {
|
|
102
|
+
eventId
|
|
103
|
+
message
|
|
104
|
+
success
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
mutation RecreateSandbox($messageId: String!) {
|
|
109
|
+
recreateSandbox(messageId: $messageId) {
|
|
110
|
+
eventId
|
|
111
|
+
message
|
|
112
|
+
success
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
mutation UpdateSandboxFile($projectId: String!, $messageId: String!, $filePath: String!, $content: String!) {
|
|
117
|
+
updateSandboxFile(projectId: $projectId, messageId: $messageId, filePath: $filePath, content: $content) {
|
|
118
|
+
success
|
|
119
|
+
message
|
|
120
|
+
filePath
|
|
121
|
+
timestamp
|
|
122
|
+
syncStatus
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
98
127
|
#mutation PinMessage($messageId:String! , $messageInput:String! , $content:String!) {
|
|
99
128
|
# pinMessage(
|
|
100
129
|
# messageId: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-policies.d.ts","sourceRoot":"","sources":["../../../src/graphql/policies/channel-policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"channel-policies.d.ts","sourceRoot":"","sources":["../../../src/graphql/policies/channel-policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAO,MAAM,gBAAgB,CAAC;AAEnD,eAAO,MAAM,eAAe,EAAE,YAsJ7B,CAAC"}
|
|
@@ -1,5 +1,153 @@
|
|
|
1
|
-
const channelPolicies = {
|
|
1
|
+
import {gql}from'@apollo/client/index.js';const channelPolicies = {
|
|
2
2
|
Query: {
|
|
3
|
-
fields: {
|
|
3
|
+
fields: {
|
|
4
|
+
channelsByUser: {
|
|
5
|
+
keyArgs: ['role', 'criteria', 'limit', 'skip', 'sort'],
|
|
6
|
+
merge(existing = [], incoming = [], {
|
|
7
|
+
readField
|
|
8
|
+
}) {
|
|
9
|
+
// If no existing data, just return incoming
|
|
10
|
+
if (!existing || existing.length === 0) {
|
|
11
|
+
return incoming;
|
|
12
|
+
}
|
|
13
|
+
// If no incoming data, keep existing
|
|
14
|
+
if (!incoming || incoming.length === 0) {
|
|
15
|
+
return existing;
|
|
16
|
+
}
|
|
17
|
+
// Create a map for efficient lookup
|
|
18
|
+
const channelMap = new Map();
|
|
19
|
+
// Add existing channels to map
|
|
20
|
+
for (let i = 0; i < existing.length; i++) {
|
|
21
|
+
const channel = existing[i];
|
|
22
|
+
if (channel) {
|
|
23
|
+
const id = readField('id', channel);
|
|
24
|
+
if (id) {
|
|
25
|
+
channelMap.set(id, channel);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
// Merge in incoming channels, overwriting existing ones
|
|
30
|
+
for (let i = 0; i < incoming.length; i++) {
|
|
31
|
+
const channel = incoming[i];
|
|
32
|
+
if (channel) {
|
|
33
|
+
const id = readField('id', channel);
|
|
34
|
+
if (id) {
|
|
35
|
+
channelMap.set(id, channel);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
// Convert map values back to array
|
|
40
|
+
return Array.from(channelMap.values());
|
|
41
|
+
},
|
|
42
|
+
// Add a read function for more control over cache reads
|
|
43
|
+
read(existing, {
|
|
44
|
+
args
|
|
45
|
+
}) {
|
|
46
|
+
// Return undefined to force a network request if data doesn't exist
|
|
47
|
+
if (!existing) return undefined;
|
|
48
|
+
return existing;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
Channel: {
|
|
54
|
+
keyFields: ['id'],
|
|
55
|
+
fields: {
|
|
56
|
+
members: {
|
|
57
|
+
merge(existing = [], incoming) {
|
|
58
|
+
return incoming;
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
// Add field policies for other Channel fields if needed
|
|
62
|
+
title: {
|
|
63
|
+
read(title) {
|
|
64
|
+
return title || '';
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
displayName: {
|
|
68
|
+
read(displayName) {
|
|
69
|
+
return displayName || '';
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
// Add computed fields if needed
|
|
73
|
+
memberCount: {
|
|
74
|
+
read(_, {
|
|
75
|
+
readField
|
|
76
|
+
}) {
|
|
77
|
+
const members = readField('members');
|
|
78
|
+
return members && Array.isArray(members) ? members.length : 0;
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
lastMessage: {
|
|
82
|
+
merge(existing, incoming, {
|
|
83
|
+
readField
|
|
84
|
+
}) {
|
|
85
|
+
// If no incoming message, keep existing
|
|
86
|
+
if (!incoming) return existing;
|
|
87
|
+
// If no existing message, use incoming
|
|
88
|
+
if (!existing) return incoming;
|
|
89
|
+
// Compare timestamps to determine which is newer
|
|
90
|
+
const existingCreatedAt = readField('createdAt', existing);
|
|
91
|
+
const incomingCreatedAt = readField('createdAt', incoming);
|
|
92
|
+
if (existingCreatedAt && incomingCreatedAt) {
|
|
93
|
+
// Use the more recent message
|
|
94
|
+
return new Date(incomingCreatedAt) > new Date(existingCreatedAt) ? incoming : existing;
|
|
95
|
+
}
|
|
96
|
+
// If timestamps are not available, prefer incoming
|
|
97
|
+
return incoming;
|
|
98
|
+
},
|
|
99
|
+
read(lastMessage, {
|
|
100
|
+
readField,
|
|
101
|
+
cache,
|
|
102
|
+
args
|
|
103
|
+
}) {
|
|
104
|
+
// If lastMessage is already available, return it
|
|
105
|
+
if (lastMessage) return lastMessage;
|
|
106
|
+
// Try to get the channel ID to reference messages cache
|
|
107
|
+
const channelId = readField('id');
|
|
108
|
+
if (!channelId) return null;
|
|
109
|
+
try {
|
|
110
|
+
// Read messages from cache for this channel
|
|
111
|
+
const messagesQuery = cache.readQuery({
|
|
112
|
+
query: gql`
|
|
113
|
+
query GetChannelMessages($channelId: String!) {
|
|
114
|
+
messages(channelId: $channelId, skip: 0, limit: 1) {
|
|
115
|
+
data {
|
|
116
|
+
id
|
|
117
|
+
content
|
|
118
|
+
createdAt
|
|
119
|
+
updatedAt
|
|
120
|
+
user {
|
|
121
|
+
id
|
|
122
|
+
username
|
|
123
|
+
displayName
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
`,
|
|
129
|
+
variables: {
|
|
130
|
+
channelId
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
// Return the first (latest) message if available
|
|
134
|
+
return messagesQuery?.messages?.data?.[0] || null;
|
|
135
|
+
} catch (error) {
|
|
136
|
+
// If messages query fails, return null
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
// Add policies for ChannelMember type
|
|
144
|
+
ChannelMember: {
|
|
145
|
+
keyFields: ['id'],
|
|
146
|
+
fields: {
|
|
147
|
+
user: {
|
|
148
|
+
// Ensure user references are properly merged
|
|
149
|
+
merge: true
|
|
150
|
+
}
|
|
151
|
+
}
|
|
4
152
|
}
|
|
5
153
|
};export{channelPolicies};//# sourceMappingURL=channel-policies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-policies.js","sources":["../../../src/graphql/policies/channel-policies.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channel-policies.js","sources":["../../../src/graphql/policies/channel-policies.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-policies.d.ts","sourceRoot":"","sources":["../../../src/graphql/policies/messages-policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"messages-policies.d.ts","sourceRoot":"","sources":["../../../src/graphql/policies/messages-policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,gBAAgB,EAAE,YA8T9B,CAAC"}
|