@mattermost/types 7.1.0 → 7.3.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/channels.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { IDMappedObjects, RelationOneToMany, RelationOneToOne } from './utilities';
2
2
  import { Team } from './teams';
3
- export declare type ChannelType = 'O' | 'P' | 'D' | 'G';
3
+ export declare type ChannelType = 'O' | 'P' | 'D' | 'G' | 'threads';
4
4
  export declare type ChannelStats = {
5
5
  channel_id: string;
6
6
  member_count: number;
@@ -159,6 +159,7 @@ export declare type ChannelSearchOpts = {
159
159
  public?: boolean;
160
160
  private?: boolean;
161
161
  include_deleted?: boolean;
162
+ include_search_by_id?: boolean;
162
163
  deleted?: boolean;
163
164
  page?: number;
164
165
  per_page?: number;
package/lib/cloud.d.ts CHANGED
@@ -26,6 +26,7 @@ declare type SubscriptionBase = {
26
26
  last_invoice?: Invoice;
27
27
  trial_end_at: number;
28
28
  is_free_trial: string;
29
+ delinquent_since?: number;
29
30
  };
30
31
  export declare type Product = {
31
32
  id: string;
@@ -80,6 +81,9 @@ export declare type PaymentMethod = {
80
81
  card_brand: string;
81
82
  name: string;
82
83
  };
84
+ export declare type NotifyAdminRequest = {
85
+ current_team_id: string;
86
+ };
83
87
  export declare type Invoice = {
84
88
  id: string;
85
89
  number: string;
@@ -152,4 +156,7 @@ export declare type TeamsUsage = {
152
156
  cloudArchived: number;
153
157
  teamsLoaded: boolean;
154
158
  };
159
+ export declare type ValidBusinessEmail = {
160
+ is_valid: boolean;
161
+ };
155
162
  export {};
package/lib/config.d.ts CHANGED
@@ -110,6 +110,8 @@ export declare type ClientConfig = {
110
110
  ExperimentalTimezone: string;
111
111
  ExperimentalViewArchivedChannels: string;
112
112
  FileLevel: string;
113
+ FeatureFlagGraphQL: string;
114
+ FeatureFlagPlanUpgradeButtonText: string;
113
115
  GfycatAPIKey: string;
114
116
  GfycatAPISecret: string;
115
117
  GoogleDeveloperKey: string;
package/lib/errors.d.ts CHANGED
@@ -1,11 +1,6 @@
1
1
  export declare type ServerError = {
2
2
  server_error_id?: string;
3
3
  stack?: string;
4
- intl?: {
5
- id: string;
6
- defaultMessage: string;
7
- values?: any;
8
- };
9
4
  message: string;
10
5
  status_code?: number;
11
6
  url?: string;
package/lib/files.d.ts CHANGED
@@ -14,6 +14,7 @@ export declare type FileInfo = {
14
14
  clientId: string;
15
15
  post_id?: string;
16
16
  mini_preview?: string;
17
+ archived: boolean;
17
18
  };
18
19
  export declare type FilesState = {
19
20
  files: Record<string, FileInfo>;
package/lib/general.d.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  import { ClientConfig, ClientLicense, WarnMetricStatus } from './config';
2
2
  export declare type GeneralState = {
3
- appState: boolean;
4
- credentials: any;
5
3
  config: Partial<ClientConfig>;
6
4
  dataRetentionPolicy: any;
7
- deviceToken: string;
8
5
  firstAdminVisitMarketplaceStatus: boolean;
9
6
  firstAdminCompleteSetup: boolean;
10
7
  license: ClientLicense;
package/lib/insights.d.ts CHANGED
@@ -4,7 +4,11 @@ export declare enum InsightsWidgetTypes {
4
4
  TOP_CHANNELS = "TOP_CHANNELS",
5
5
  TOP_REACTIONS = "TOP_REACTIONS",
6
6
  TOP_THREADS = "TOP_THREADS",
7
- TOP_BOARDS = "TOP_BOARDS"
7
+ TOP_BOARDS = "TOP_BOARDS",
8
+ LEAST_ACTIVE_CHANNELS = "LEAST_ACTIVE_CHANNELS",
9
+ TOP_PLAYBOOKS = "TOP_PLAYBOOKS",
10
+ TOP_DMS = "TOP_DMS",
11
+ NEW_TEAM_MEMBERS = "NEW_TEAM_MEMBERS"
8
12
  }
9
13
  export declare enum CardSizes {
10
14
  large = "lg",
@@ -77,9 +81,71 @@ export declare type TopBoard = {
77
81
  activityCount: number;
78
82
  activeUsers: string;
79
83
  createdBy: string;
80
- workspaceID: string;
81
84
  };
82
85
  export declare type TopBoardResponse = {
83
86
  has_next: boolean;
84
87
  items: TopBoard[];
85
88
  };
89
+ export declare type LeastActiveChannel = {
90
+ id: string;
91
+ display_name: string;
92
+ name: string;
93
+ participants: string[];
94
+ last_activity_at: number;
95
+ type: ChannelType;
96
+ team_id: string;
97
+ message_count: number;
98
+ };
99
+ export declare type LeastActiveChannelsResponse = {
100
+ has_next: boolean;
101
+ items: LeastActiveChannel[];
102
+ };
103
+ export declare type LeastActiveChannelsActionResult = {
104
+ data?: LeastActiveChannelsResponse;
105
+ error?: any;
106
+ };
107
+ export declare type TopPlaybook = {
108
+ playbook_id: string;
109
+ num_runs: number;
110
+ title: string;
111
+ last_run_at: number;
112
+ };
113
+ export declare type TopPlaybookResponse = {
114
+ has_next: boolean;
115
+ items: TopPlaybook[];
116
+ };
117
+ declare type MinUserProfile = {
118
+ id: string;
119
+ first_name: string;
120
+ last_name: string;
121
+ last_picture_update: number;
122
+ nickname: string;
123
+ position: string;
124
+ username: string;
125
+ };
126
+ export declare type TopDM = {
127
+ outgoing_message_count: number;
128
+ post_count: number;
129
+ second_participant: MinUserProfile;
130
+ };
131
+ export declare type TopDMsResponse = {
132
+ has_next: boolean;
133
+ items: TopDM[];
134
+ };
135
+ export declare type TopDMsActionResult = {
136
+ data?: TopDMsResponse;
137
+ error?: any;
138
+ };
139
+ export declare type NewMember = MinUserProfile & {
140
+ create_at: number;
141
+ };
142
+ export declare type NewMembersResponse = {
143
+ has_next: boolean;
144
+ items: NewMember[];
145
+ total_count: number;
146
+ };
147
+ export declare type NewMembersActionResult = {
148
+ data?: NewMembersResponse;
149
+ error?: any;
150
+ };
151
+ export {};
package/lib/insights.js CHANGED
@@ -9,6 +9,10 @@ var InsightsWidgetTypes;
9
9
  InsightsWidgetTypes["TOP_REACTIONS"] = "TOP_REACTIONS";
10
10
  InsightsWidgetTypes["TOP_THREADS"] = "TOP_THREADS";
11
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";
12
16
  })(InsightsWidgetTypes = exports.InsightsWidgetTypes || (exports.InsightsWidgetTypes = {}));
13
17
  var CardSizes;
14
18
  (function (CardSizes) {
package/lib/plugins.d.ts CHANGED
@@ -44,6 +44,7 @@ export declare type PluginSetting = {
44
44
  placeholder: string;
45
45
  default: any;
46
46
  options?: PluginSettingOption[];
47
+ hosting?: 'on-prem' | 'cloud';
47
48
  };
48
49
  export declare type PluginSettingOption = {
49
50
  display_name: string;
@@ -74,6 +75,7 @@ export declare type PluginStatusRedux = {
74
75
  version: string;
75
76
  active: boolean;
76
77
  state: number;
78
+ error?: string;
77
79
  instances: PluginInstance[];
78
80
  };
79
81
  export declare type ClientPluginManifest = {
package/lib/posts.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { ChannelType } from './channels';
1
+ import { Channel, ChannelType } from './channels';
2
2
  import { CustomEmoji } from './emojis';
3
3
  import { FileInfo } from './files';
4
4
  import { Reaction } from './reactions';
5
5
  import { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
6
- export declare type PostType = 'system_add_remove' | 'system_add_to_channel' | 'system_add_to_team' | 'system_channel_deleted' | 'system_channel_restored' | 'system_displayname_change' | 'system_convert_channel' | 'system_ephemeral' | 'system_header_change' | 'system_join_channel' | 'system_join_leave' | 'system_leave_channel' | 'system_purpose_change' | 'system_remove_from_channel' | 'system_combined_user_activity';
6
+ export declare type PostType = 'system_add_remove' | 'system_add_to_channel' | 'system_add_to_team' | 'system_channel_deleted' | 'system_channel_restored' | 'system_displayname_change' | 'system_convert_channel' | 'system_ephemeral' | 'system_header_change' | 'system_join_channel' | 'system_join_leave' | 'system_leave_channel' | 'system_purpose_change' | 'system_remove_from_channel' | 'system_combined_user_activity' | 'system_fake_parent_deleted' | '';
7
7
  export declare type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
8
8
  export declare type PostEmbed = {
9
9
  type: PostEmbedType;
@@ -57,6 +57,7 @@ export declare type PostList = {
57
57
  posts: Record<string, Post>;
58
58
  next_post_id: string;
59
59
  prev_post_id: string;
60
+ first_inaccessible_post_time: number;
60
61
  };
61
62
  export declare type PaginatedPostList = PostList & {
62
63
  has_next: boolean;
@@ -90,6 +91,10 @@ export declare type PostsState = {
90
91
  currentFocusedPostId: string;
91
92
  messagesHistory: MessageHistory;
92
93
  expandedURLs: Record<string, string>;
94
+ limitedViews: {
95
+ channels: Record<Channel['id'], number>;
96
+ threads: Record<Post['root_id'], number>;
97
+ };
93
98
  };
94
99
  export declare type OpenGraphMetadataImage = {
95
100
  secure_url?: string;
package/lib/requests.d.ts CHANGED
@@ -27,53 +27,13 @@ export declare type TeamsRequestsStatuses = {
27
27
  joinTeam: RequestStatusType;
28
28
  };
29
29
  export declare type UsersRequestsStatuses = {
30
- checkMfa: RequestStatusType;
31
30
  login: RequestStatusType;
32
31
  logout: RequestStatusType;
33
32
  autocompleteUsers: RequestStatusType;
34
33
  updateMe: RequestStatusType;
35
34
  };
36
35
  export declare type AdminRequestsStatuses = {
37
- getLogs: RequestStatusType;
38
- getAudits: RequestStatusType;
39
- getConfig: RequestStatusType;
40
- updateConfig: RequestStatusType;
41
- reloadConfig: RequestStatusType;
42
- testEmail: RequestStatusType;
43
- testSiteURL: RequestStatusType;
44
- invalidateCaches: RequestStatusType;
45
- recycleDatabase: RequestStatusType;
46
36
  createCompliance: RequestStatusType;
47
- getCompliance: RequestStatusType;
48
- testS3Connection: RequestStatusType;
49
- getLdapGroups: RequestStatusType;
50
- linkLdapGroup: RequestStatusType;
51
- unlinkLdapGroup: RequestStatusType;
52
- deleteBrandImage: RequestStatusType;
53
- disablePlugin: RequestStatusType;
54
- enablePlugin: RequestStatusType;
55
- getAnalytics: RequestStatusType;
56
- getClusterStatus: RequestStatusType;
57
- getEnvironmentConfig: RequestStatusType;
58
- getPluginStatuses: RequestStatusType;
59
- getPlugins: RequestStatusType;
60
- getSamlCertificateStatus: RequestStatusType;
61
- installPluginFromUrl: RequestStatusType;
62
- purgeElasticsearchIndexes: RequestStatusType;
63
- removeIdpSamlCertificate: RequestStatusType;
64
- removeLicense: RequestStatusType;
65
- removePlugin: RequestStatusType;
66
- removePrivateSamlCertificate: RequestStatusType;
67
- removePublicSamlCertificate: RequestStatusType;
68
- syncLdap: RequestStatusType;
69
- testElasticsearch: RequestStatusType;
70
- testLdap: RequestStatusType;
71
- uploadBrandImage: RequestStatusType;
72
- uploadIdpSamlCertificate: RequestStatusType;
73
- uploadLicense: RequestStatusType;
74
- uploadPlugin: RequestStatusType;
75
- uploadPrivateSamlCertificate: RequestStatusType;
76
- uploadPublicSamlCertificate: RequestStatusType;
77
37
  };
78
38
  export declare type EmojisRequestsStatuses = {
79
39
  createCustomEmoji: RequestStatusType;
package/lib/search.d.ts CHANGED
@@ -10,6 +10,7 @@ export declare type SearchState = {
10
10
  pinned: Record<string, string[]>;
11
11
  isSearchingTerm: boolean;
12
12
  isSearchGettingMore: boolean;
13
+ isLimitedResults: number;
13
14
  recent: {
14
15
  [x: string]: Search[];
15
16
  };
package/lib/users.d.ts CHANGED
@@ -15,6 +15,12 @@ export declare type UserNotifyProps = {
15
15
  first_name: 'true' | 'false';
16
16
  channel: 'true' | 'false';
17
17
  mention_keys: string;
18
+ desktop_notification_sound?: 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
19
+ desktop_threads?: 'default' | 'all' | 'mention' | 'none';
20
+ email_threads?: 'default' | 'all' | 'mention' | 'none';
21
+ push_threads?: 'default' | 'all' | 'mention' | 'none';
22
+ auto_responder_active?: 'true' | 'false';
23
+ auto_responder_message?: string;
18
24
  };
19
25
  export declare type UserProfile = {
20
26
  id: string;
@@ -23,29 +29,23 @@ export declare type UserProfile = {
23
29
  delete_at: number;
24
30
  username: string;
25
31
  password: string;
26
- auth_data: string;
27
32
  auth_service: string;
28
33
  email: string;
29
- email_verified: boolean;
30
34
  nickname: string;
31
35
  first_name: string;
32
36
  last_name: string;
33
37
  position: string;
34
38
  roles: string;
35
- allow_marketing: boolean;
36
39
  props: Record<string, string>;
37
40
  notify_props: UserNotifyProps;
38
41
  last_password_update: number;
39
42
  last_picture_update: number;
40
- failed_attempts: number;
41
43
  locale: string;
42
44
  timezone?: UserTimezone;
43
45
  mfa_active: boolean;
44
- mfa_secret: string;
45
46
  last_activity_at: number;
46
47
  is_bot: boolean;
47
48
  bot_description: string;
48
- bot_last_icon_update: number;
49
49
  terms_of_service_id: string;
50
50
  terms_of_service_create_at: number;
51
51
  remote_id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "7.1.0",
3
+ "version": "7.3.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"
@@ -28,7 +28,8 @@
28
28
  }
29
29
  },
30
30
  "scripts": {
31
- "build": "tsc -b -v",
31
+ "build": "tsc --build --verbose",
32
+ "run": "tsc --watch --preserveWatchOutput",
32
33
  "clean": "rm -rf tsconfig.tsbuildinfo ./lib"
33
34
  }
34
35
  }