@mattermost/types 8.0.0 → 9.0.0

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/admin.d.ts CHANGED
@@ -62,6 +62,7 @@ export declare type ClusterInfo = {
62
62
  config_hash: string;
63
63
  ipaddress: string;
64
64
  hostname: string;
65
+ schema_version: string;
65
66
  };
66
67
  export declare type AnalyticsRow = {
67
68
  name: string;
package/lib/apps.d.ts CHANGED
@@ -102,7 +102,7 @@ export declare type AppContext = {
102
102
  export declare type AppContextProps = {
103
103
  [name: string]: string;
104
104
  };
105
- export declare type AppExpandLevel = '' | 'none' | 'summary' | '+summary' | 'all' | '+all';
105
+ export declare type AppExpandLevel = '' | 'none' | 'summary' | '+summary' | 'all' | '+all' | 'id';
106
106
  export declare type AppExpand = {
107
107
  app?: AppExpandLevel;
108
108
  acting_user?: AppExpandLevel;
package/lib/channels.d.ts CHANGED
@@ -121,6 +121,7 @@ export declare type ChannelsState = {
121
121
  channelModerations: RelationOneToOne<Channel, ChannelModeration[]>;
122
122
  channelMemberCountsByGroup: RelationOneToOne<Channel, ChannelMemberCountsByGroup>;
123
123
  messageCounts: RelationOneToOne<Channel, ChannelMessageCount>;
124
+ channelsMemberCount: Record<string, number>;
124
125
  };
125
126
  export declare type ChannelModeration = {
126
127
  name: string;
package/lib/config.d.ts CHANGED
@@ -113,9 +113,9 @@ export declare type ClientConfig = {
113
113
  ExperimentalViewArchivedChannels: string;
114
114
  FileLevel: string;
115
115
  FeatureFlagAppsEnabled: string;
116
- FeatureFlagBoardsProduct: string;
117
116
  FeatureFlagCallsEnabled: string;
118
117
  FeatureFlagGraphQL: string;
118
+ ForgotPasswordLink: string;
119
119
  GfycatAPIKey: string;
120
120
  GfycatAPISecret: string;
121
121
  GiphySdkKey: string;
@@ -123,10 +123,10 @@ export declare type ClientConfig = {
123
123
  GuestAccountsEnforceMultifactorAuthentication: string;
124
124
  HasImageProxy: string;
125
125
  HelpLink: string;
126
+ HideGuestTags: string;
126
127
  IosAppDownloadLink: string;
127
128
  IosLatestVersion: string;
128
129
  IosMinVersion: string;
129
- InsightsEnabled: string;
130
130
  InstallationDate: string;
131
131
  IsDefaultMarketplace: string;
132
132
  LdapFirstNameAttributeSet: string;
@@ -149,6 +149,7 @@ export declare type ClientConfig = {
149
149
  GitLabButtonColor: string;
150
150
  OpenIdButtonText: string;
151
151
  OpenIdButtonColor: string;
152
+ PasswordEnableForgotLink: string;
152
153
  PasswordMinimumLength: string;
153
154
  PasswordRequireLowercase: string;
154
155
  PasswordRequireNumber: string;
@@ -190,7 +191,6 @@ export declare type ClientConfig = {
190
191
  DisableAppBar: string;
191
192
  EnableComplianceExport: string;
192
193
  PostPriority: string;
193
- ReduceOnBoardingTaskList: string;
194
194
  PostAcknowledgements: string;
195
195
  AllowPersistentNotifications: string;
196
196
  PersistentNotificationMaxRecipients: string;
@@ -460,6 +460,7 @@ export declare type PasswordSettings = {
460
460
  Number: boolean;
461
461
  Uppercase: boolean;
462
462
  Symbol: boolean;
463
+ EnableForgotLink: boolean;
463
464
  };
464
465
  export declare type FileSettings = {
465
466
  EnableFileAttachments: boolean;
@@ -507,6 +508,8 @@ export declare type EmailSettings = {
507
508
  ConnectionSecurity: string;
508
509
  SendPushNotifications: boolean;
509
510
  PushNotificationServer: string;
511
+ PushNotificationServerType: 'off' | 'mhpns' | 'mtpns' | 'custom';
512
+ PushNotificationServerLocation: 'us' | 'de';
510
513
  PushNotificationContents: string;
511
514
  PushNotificationBuffer: number;
512
515
  EnableEmailBatching: boolean;
@@ -538,6 +541,7 @@ export declare type SupportSettings = {
538
541
  AboutLink: string;
539
542
  HelpLink: string;
540
543
  ReportAProblemLink: string;
544
+ ForgotPasswordLink: string;
541
545
  SupportEmail: string;
542
546
  CustomTermsOfServiceEnabled: boolean;
543
547
  CustomTermsOfServiceReAcceptancePeriod: number;
@@ -748,10 +752,8 @@ export declare type BleveSettings = {
748
752
  export declare type DataRetentionSettings = {
749
753
  EnableMessageDeletion: boolean;
750
754
  EnableFileDeletion: boolean;
751
- EnableBoardsDeletion: boolean;
752
755
  MessageRetentionDays: number;
753
756
  FileRetentionDays: number;
754
- BoardsRetentionDays: number;
755
757
  DeletionJobStartTime: string;
756
758
  BatchSize: number;
757
759
  };
@@ -802,6 +804,7 @@ export declare type DisplaySettings = {
802
804
  };
803
805
  export declare type GuestAccountsSettings = {
804
806
  Enable: boolean;
807
+ HideTags: boolean;
805
808
  AllowEmailAccounts: boolean;
806
809
  EnforceMultifactorAuthentication: boolean;
807
810
  RestrictCreationToDomains: string;
package/lib/jobs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IDMappedObjects } from './utilities';
2
- export declare type JobType = 'data_retention' | 'elasticsearch_post_indexing' | 'ldap_sync' | 'message_export';
2
+ export declare type JobType = 'data_retention' | 'elasticsearch_post_indexing' | 'bleve_post_indexing' | 'ldap_sync' | 'message_export';
3
3
  export declare type JobStatus = 'pending' | 'in_progress' | 'success' | 'error' | 'cancel_requested' | 'canceled' | 'warning';
4
4
  export declare type Job = JobTypeBase & {
5
5
  id: string;
package/lib/store.d.ts CHANGED
@@ -21,7 +21,6 @@ import { ThreadsState } from './threads';
21
21
  import { Typing } from './typing';
22
22
  import { UsersState } from './users';
23
23
  import { AppsState } from './apps';
24
- import { InsightsState } from './insights';
25
24
  import { GifsState } from './gifs';
26
25
  export declare type GlobalState = {
27
26
  entities: {
@@ -60,7 +59,6 @@ export declare type GlobalState = {
60
59
  cloud: CloudState;
61
60
  hostedCustomer: HostedCustomerState;
62
61
  usage: CloudUsage;
63
- insights: InsightsState;
64
62
  };
65
63
  errors: any[];
66
64
  requests: {
package/lib/users.d.ts CHANGED
@@ -119,6 +119,7 @@ export declare type GetFilteredUsersStatsOpts = {
119
119
  in_channel?: string;
120
120
  include_deleted?: boolean;
121
121
  include_bots?: boolean;
122
+ include_remote_users?: boolean;
122
123
  roles?: string[];
123
124
  channel_roles?: string[];
124
125
  team_roles?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"
package/lib/insights.d.ts DELETED
@@ -1,152 +0,0 @@
1
- import { ChannelType } from './channels';
2
- import { Post } from './posts';
3
- import { UserProfile } from './users';
4
- export declare enum InsightsWidgetTypes {
5
- TOP_CHANNELS = "TOP_CHANNELS",
6
- TOP_REACTIONS = "TOP_REACTIONS",
7
- TOP_THREADS = "TOP_THREADS",
8
- TOP_BOARDS = "TOP_BOARDS",
9
- LEAST_ACTIVE_CHANNELS = "LEAST_ACTIVE_CHANNELS",
10
- TOP_PLAYBOOKS = "TOP_PLAYBOOKS",
11
- TOP_DMS = "TOP_DMS",
12
- NEW_TEAM_MEMBERS = "NEW_TEAM_MEMBERS"
13
- }
14
- export declare enum CardSizes {
15
- large = "lg",
16
- medium = "md",
17
- small = "sm"
18
- }
19
- export declare type CardSize = CardSizes;
20
- export declare enum TimeFrames {
21
- INSIGHTS_1_DAY = "today",
22
- INSIGHTS_7_DAYS = "7_day",
23
- INSIGHTS_28_DAYS = "28_day"
24
- }
25
- export declare type TimeFrame = TimeFrames;
26
- export declare type TopReaction = {
27
- emoji_name: string;
28
- count: number;
29
- };
30
- export declare type TopReactionResponse = {
31
- has_next: boolean;
32
- items: TopReaction[];
33
- timeFrame?: TimeFrame;
34
- };
35
- export declare type TopChannel = {
36
- id: string;
37
- type: ChannelType;
38
- display_name: string;
39
- name: string;
40
- team_id: string;
41
- message_count: number;
42
- };
43
- export declare type TopChannelGraphData = Record<string, Record<string, number>>;
44
- export declare type TopChannelResponse = {
45
- has_next: boolean;
46
- items: TopChannel[];
47
- daily_channel_post_counts: TopChannelGraphData;
48
- };
49
- export declare type InsightsState = {
50
- topReactions: Record<string, Record<TimeFrame, Record<string, TopReaction>>>;
51
- myTopReactions: Record<string, Record<TimeFrame, Record<string, TopReaction>>>;
52
- };
53
- export declare type TopChannelActionResult = {
54
- data?: TopChannelResponse;
55
- error?: any;
56
- };
57
- export declare type TopThread = {
58
- channel_id: string;
59
- channel_display_name: string;
60
- channel_name: string;
61
- participants: string[];
62
- user_information: {
63
- id: string;
64
- first_name: string;
65
- last_name: string;
66
- last_picture_update: number;
67
- };
68
- post: Post;
69
- };
70
- export declare type TopThreadResponse = {
71
- has_next: boolean;
72
- items: TopThread[];
73
- };
74
- export declare type TopThreadActionResult = {
75
- data?: TopThreadResponse;
76
- error?: any;
77
- };
78
- export declare type TopBoard = {
79
- boardID: string;
80
- icon: string;
81
- title: string;
82
- activityCount: number;
83
- activeUsers: Array<UserProfile['id']> | string;
84
- createdBy: string;
85
- };
86
- export declare type TopBoardResponse = {
87
- has_next: boolean;
88
- items: TopBoard[];
89
- };
90
- export declare type LeastActiveChannel = {
91
- id: string;
92
- display_name: string;
93
- name: string;
94
- participants: string[];
95
- last_activity_at: number;
96
- type: ChannelType;
97
- team_id: string;
98
- message_count: number;
99
- };
100
- export declare type LeastActiveChannelsResponse = {
101
- has_next: boolean;
102
- items: LeastActiveChannel[];
103
- };
104
- export declare type LeastActiveChannelsActionResult = {
105
- data?: LeastActiveChannelsResponse;
106
- error?: any;
107
- };
108
- export declare type TopPlaybook = {
109
- playbook_id: string;
110
- num_runs: number;
111
- title: string;
112
- last_run_at: number;
113
- };
114
- export declare type TopPlaybookResponse = {
115
- has_next: boolean;
116
- items: TopPlaybook[];
117
- };
118
- declare type MinUserProfile = {
119
- id: string;
120
- first_name: string;
121
- last_name: string;
122
- last_picture_update: number;
123
- nickname: string;
124
- position: string;
125
- username: string;
126
- };
127
- export declare type TopDM = {
128
- outgoing_message_count: number;
129
- post_count: number;
130
- second_participant: MinUserProfile;
131
- };
132
- export declare type TopDMsResponse = {
133
- has_next: boolean;
134
- items: TopDM[];
135
- };
136
- export declare type TopDMsActionResult = {
137
- data?: TopDMsResponse;
138
- error?: any;
139
- };
140
- export declare type NewMember = MinUserProfile & {
141
- create_at: number;
142
- };
143
- export declare type NewMembersResponse = {
144
- has_next: boolean;
145
- items: NewMember[];
146
- total_count: number;
147
- };
148
- export declare type NewMembersActionResult = {
149
- data?: NewMembersResponse;
150
- error?: any;
151
- };
152
- export {};
package/lib/insights.js DELETED
@@ -1,28 +0,0 @@
1
- "use strict";
2
- // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
3
- // See LICENSE.txt for license information.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.TimeFrames = exports.CardSizes = exports.InsightsWidgetTypes = void 0;
6
- var InsightsWidgetTypes;
7
- (function (InsightsWidgetTypes) {
8
- InsightsWidgetTypes["TOP_CHANNELS"] = "TOP_CHANNELS";
9
- InsightsWidgetTypes["TOP_REACTIONS"] = "TOP_REACTIONS";
10
- InsightsWidgetTypes["TOP_THREADS"] = "TOP_THREADS";
11
- InsightsWidgetTypes["TOP_BOARDS"] = "TOP_BOARDS";
12
- InsightsWidgetTypes["LEAST_ACTIVE_CHANNELS"] = "LEAST_ACTIVE_CHANNELS";
13
- InsightsWidgetTypes["TOP_PLAYBOOKS"] = "TOP_PLAYBOOKS";
14
- InsightsWidgetTypes["TOP_DMS"] = "TOP_DMS";
15
- InsightsWidgetTypes["NEW_TEAM_MEMBERS"] = "NEW_TEAM_MEMBERS";
16
- })(InsightsWidgetTypes = exports.InsightsWidgetTypes || (exports.InsightsWidgetTypes = {}));
17
- var CardSizes;
18
- (function (CardSizes) {
19
- CardSizes["large"] = "lg";
20
- CardSizes["medium"] = "md";
21
- CardSizes["small"] = "sm";
22
- })(CardSizes = exports.CardSizes || (exports.CardSizes = {}));
23
- var TimeFrames;
24
- (function (TimeFrames) {
25
- TimeFrames["INSIGHTS_1_DAY"] = "today";
26
- TimeFrames["INSIGHTS_7_DAYS"] = "7_day";
27
- TimeFrames["INSIGHTS_28_DAYS"] = "28_day";
28
- })(TimeFrames = exports.TimeFrames || (exports.TimeFrames = {}));