Doug Lauder
2d1135ca46
Shared channels plugin APIs for MS Teams plugin ( #25805 )
...
New plugin APIs and hooks for accessing Shared Channels service via plugin.
- RegisterPluginForSharedChannels(opts model.RegisterPluginOpts) (remoteID string, err error)
- UnregisterPluginForSharedChannels(pluginID string) error
- ShareChannel(sc *model.SharedChannel) (*model.SharedChannel, error)
- UpdateSharedChannel(sc *model.SharedChannel) (*model.SharedChannel, error)
- UnshareChannel(channelID string) (unshared bool, err error)
- UpdateSharedChannelCursor(channelID, remoteID string, cusror model.GetPostsSinceForSyncCursor) error
- SyncSharedChannel(channelID string) error
- InviteRemoteToChannel(channelID string, remoteID string, userID string) error
- UninviteRemoteFromChannel(channelID string, remoteID string) error
Hooks
- OnSharedChannelsSyncMsg(msg *model.SyncMsg, rc *model.RemoteCluster) (model.SyncResponse, error)
- OnSharedChannelsPing(rc *model.RemoteCluster) bool
2023-12-22 17:00:27 -05:00
Jesse Hallam
48bf4e9bd8
Fix issue 25390 ( #25403 )
2023-11-10 21:55:33 -04:00
Jesús Espino
c9d49536f8
Adding SetFileSearchableContent plugin API endpoint ( #24355 )
...
* Adding SetFileSearchableContent plugin API endpoint
* Fixing CI problems
* Fixing CI problems
* Fixing CI problems
* Fixing CI problems
* Fixing CI problems
* Exposing it to the public API
* Fix CI problems
* Adding SetSearchableContent to the pluginapi File struct
2023-08-30 13:43:40 -07:00
Christopher Poile and Mattermost Build
69c11cfe14
MM-53924 - Implement push notifications plugin hook and plugin api method ( #24350 )
...
* Revert "MM-52804 - Implement SendPushNotification plugin api method (#24273 )"
This reverts commit 8418eefb75 .
* Revert "MM-53924 - Implement NotificationWillBePushed plugin hook (#24263 )"
This reverts commit f13a531bca .
* implement NotificationWillBePushed plugin hook
* implement SendPushNotification plugin api method
* move where we're setting post and channel type
* fix comment
---------
Co-authored-by: Mattermost Build <build@mattermost.com >
2023-08-24 12:33:53 -04:00
Christopher Poile
8418eefb75
MM-52804 - Implement SendPushNotification plugin api method ( #24273 )
...
* add SendPushNotification plugin api method
* lint; add testing.Short bc of the sleep
* add interface and generated layers
* add fields to PluginPushNotification; generate mocks
* SendPushNotification -> SendPluginPushNotification; improved comments
* more comments; fix test
* send api.ctx
2023-08-18 13:05:26 -04:00
Agniva De Sarker
efaa6264cc
MM-53032: Fix module path after repo rename ( #23689 )
...
It was a good decision in hindsight to keep the public module as 0.x
because this would have been a breaking change again.
https://mattermost.atlassian.net/browse/MM-53032
```release-note
Changed the Go module path from github.com/mattermost/mattermost-server/server/v8 to github.com/mattermost/mattermost/server/v8.
For the public facing module, it's path is also changed from github.com/mattermost/mattermost-server/server/public to github.com/mattermost/mattermost/server/public
```
2023-06-11 10:54:35 +05:30
Jesse Hallam
bb02b35048
Expose public/ API as submodule ( #23345 )
...
* model -> public/model
* plugin -> public/plugin
* public/model/utils -> public/utils
* platform/shared/mlog -> public/shared/mlog
* platform/shared/i18n -> public/shared/i18n
* platform/shared/markdown -> public/shared/markdown
* platform/services/timezones -> public/shared/timezones
* channels/einterfaces -> einterfaces
* expose public/ submodule
* go mod tidy
* .github: cache-dependency-path, setup-go-work
* modules-tidy for public/ too
* remove old gomodtidy
2023-05-10 13:07:02 -03:00