@mattermost/types 7.3.0 → 7.4.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/cloud.d.ts CHANGED
@@ -82,7 +82,9 @@ export declare type PaymentMethod = {
82
82
  name: string;
83
83
  };
84
84
  export declare type NotifyAdminRequest = {
85
- current_team_id: string;
85
+ trial_notification: boolean;
86
+ required_plan: string;
87
+ required_feature: string;
86
88
  };
87
89
  export declare type Invoice = {
88
90
  id: string;
package/lib/config.d.ts CHANGED
@@ -183,6 +183,7 @@ export declare type ClientConfig = {
183
183
  ExperimentalSharedChannels: string;
184
184
  EnableAppBar: string;
185
185
  EnableComplianceExport: string;
186
+ PostPriority: string;
186
187
  };
187
188
  export declare type License = {
188
189
  id: string;
@@ -326,6 +327,7 @@ export declare type ServiceSettings = {
326
327
  LocalModeSocketLocation: string;
327
328
  CollapsedThreads: CollapsedThreads;
328
329
  ThreadAutoFollow: boolean;
330
+ PostPriority: boolean;
329
331
  };
330
332
  export declare type TeamSettings = {
331
333
  SiteName: string;
package/lib/errors.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export declare type ServerError = {
2
+ type?: string;
2
3
  server_error_id?: string;
3
4
  stack?: string;
4
5
  message: string;
package/lib/gifs.d.ts ADDED
@@ -0,0 +1,152 @@
1
+ export declare type GifsState = {
2
+ app: GifsAppState;
3
+ cache: GifsCacheState;
4
+ categories: GifsCategoriesState;
5
+ search: GifsSearchState;
6
+ };
7
+ export declare type GifsAppState = {
8
+ appClassName: string;
9
+ appId: string;
10
+ appName: string;
11
+ basePath: string;
12
+ enableHistory: boolean;
13
+ header: {
14
+ tabs: number[];
15
+ displayText: boolean;
16
+ };
17
+ itemTapType: number;
18
+ shareEvent: string;
19
+ };
20
+ declare type GifsCacheState = {
21
+ gifs: Record<string, GfycatAPIItem>;
22
+ updating: boolean;
23
+ };
24
+ declare type GifsCategoriesState = {
25
+ cursor: string;
26
+ hasMore: boolean;
27
+ isFetching: boolean;
28
+ tagsDict: Record<string, boolean>;
29
+ tagsList: GfycatAPITag[];
30
+ };
31
+ declare type GifsSearchState = {
32
+ priorLocation: string | null;
33
+ resultsByTerm: Record<string, GifsResult>;
34
+ scrollPosition: number;
35
+ searchBarText: string;
36
+ searchText: string;
37
+ };
38
+ declare type GifsResult = GfycatAPIPaginatedResponse & {
39
+ count: number;
40
+ currentPage: number;
41
+ didInvalidate: boolean;
42
+ found: number;
43
+ isFetching: boolean;
44
+ items: string[];
45
+ moreRemaining: boolean;
46
+ pages: Record<number, string[]>;
47
+ start: number;
48
+ };
49
+ export interface GfycatAPIPaginatedResponse {
50
+ cursor?: string;
51
+ gfycats: GfycatAPIItem[];
52
+ totalCount?: number;
53
+ }
54
+ export interface GfycatAPIItemResponse {
55
+ gfyItem: GfycatAPIItem;
56
+ }
57
+ export interface GfycatAPIItem {
58
+ anonymous?: boolean;
59
+ avgColor: string;
60
+ captionsUrl?: null;
61
+ content_urls: {
62
+ [key: string]: GfycatAPIContent;
63
+ };
64
+ createDate: number;
65
+ description?: string;
66
+ dislikes?: number;
67
+ domainWhitelist?: any[];
68
+ duration?: number;
69
+ encoding?: boolean;
70
+ extraLemmas?: string;
71
+ finished?: boolean;
72
+ frameRate: number;
73
+ gatekeeper: number;
74
+ geoWhitelist?: any[];
75
+ gfyId: string;
76
+ gfyName: string;
77
+ gfyNumber?: string;
78
+ gfySlug?: string;
79
+ gif100px?: string;
80
+ gifSize?: number;
81
+ gifUrl: string;
82
+ hasAudio: boolean;
83
+ hasTransparency: boolean;
84
+ height: number;
85
+ languageCategories: string[];
86
+ languageText?: string;
87
+ likes: number;
88
+ max1mbGif?: string;
89
+ max2mbGif: string;
90
+ max5mbGif: string;
91
+ md5?: string;
92
+ miniPosterUrl: string;
93
+ miniUrl?: string;
94
+ mobileHeight?: number;
95
+ mobilePosterUrl?: string;
96
+ mobileUrl: string;
97
+ mobileWidth?: number;
98
+ mp4Size?: number;
99
+ mp4Url: string;
100
+ nsfw: boolean | number;
101
+ numFrames: number;
102
+ posterUrl: string;
103
+ published: number;
104
+ rating?: string;
105
+ ratio?: null;
106
+ sitename?: string;
107
+ source?: number;
108
+ tags: string[];
109
+ thumb100PosterUrl: string;
110
+ title?: string;
111
+ type?: number;
112
+ url?: string;
113
+ userData?: GfycatAPIUser | [];
114
+ userDisplayName?: string;
115
+ userName?: string;
116
+ username?: string;
117
+ userProfileImageUrl?: string;
118
+ views: number;
119
+ views5?: number;
120
+ webmSize?: number;
121
+ webmUrl?: string;
122
+ webpUrl?: string;
123
+ width: number;
124
+ }
125
+ export interface GfycatAPIContent {
126
+ width: number;
127
+ size: number;
128
+ url: string;
129
+ height: number;
130
+ }
131
+ export interface GfycatAPIUser {
132
+ createDate?: number;
133
+ description?: string;
134
+ followers: number;
135
+ following: number;
136
+ iframeProfileImageVisible?: boolean;
137
+ name: string;
138
+ profileImageUrl: string;
139
+ profileUrl?: string;
140
+ publishedGfycats?: number;
141
+ subscription?: number;
142
+ url?: string;
143
+ userid?: string;
144
+ username: string;
145
+ verified: boolean;
146
+ views: number;
147
+ }
148
+ export interface GfycatAPITag {
149
+ tagName: string;
150
+ gfyId: string;
151
+ }
152
+ export {};
package/lib/gifs.js ADDED
@@ -0,0 +1,4 @@
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 });
package/lib/plugins.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare type Plugin = {
1
+ export declare type PluginManifest = {
2
2
  id: string;
3
3
  name: string;
4
4
  description?: string;
@@ -15,7 +15,6 @@ declare type Plugin = {
15
15
  settings_schema?: PluginSettingsSchema;
16
16
  props?: Record<string, any>;
17
17
  };
18
- export declare type PluginManifest = Plugin;
19
18
  export declare type PluginRedux = PluginManifest & {
20
19
  active: boolean;
21
20
  };
package/lib/posts.d.ts CHANGED
@@ -52,6 +52,10 @@ export declare type Post = {
52
52
  is_following?: boolean;
53
53
  exists?: boolean;
54
54
  };
55
+ export declare enum PostPriority {
56
+ URGENT = "urgent",
57
+ IMPORTANT = "important"
58
+ }
55
59
  export declare type PostList = {
56
60
  order: Array<Post['id']>;
57
61
  posts: Record<string, Post>;
package/lib/posts.js CHANGED
@@ -2,3 +2,9 @@
2
2
  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
3
3
  // See LICENSE.txt for license information.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.PostPriority = void 0;
6
+ var PostPriority;
7
+ (function (PostPriority) {
8
+ PostPriority["URGENT"] = "urgent";
9
+ PostPriority["IMPORTANT"] = "important";
10
+ })(PostPriority = exports.PostPriority || (exports.PostPriority = {}));
package/lib/store.d.ts CHANGED
@@ -21,6 +21,7 @@ import { Typing } from './typing';
21
21
  import { UsersState } from './users';
22
22
  import { AppsState } from './apps';
23
23
  import { InsightsState } from './insights';
24
+ import { GifsState } from './gifs';
24
25
  export declare type GlobalState = {
25
26
  entities: {
26
27
  general: GeneralState;
@@ -51,7 +52,7 @@ export declare type GlobalState = {
51
52
  pending: Set<string>;
52
53
  };
53
54
  schemes: SchemesState;
54
- gifs: any;
55
+ gifs: GifsState;
55
56
  groups: GroupsState;
56
57
  channelCategories: ChannelCategoriesState;
57
58
  apps: AppsState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "7.3.0",
3
+ "version": "7.4.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"