@mattermost/types 7.8.0 → 7.9.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 +26 -1
- package/lib/admin.js +9 -0
- package/lib/apps.js +0 -3
- package/lib/boards.d.ts +0 -20
- package/lib/cloud.d.ts +16 -12
- package/lib/cloud.js +8 -1
- package/lib/config.d.ts +10 -1
- package/lib/hosted_customer.d.ts +18 -0
- package/lib/posts.d.ts +1 -0
- package/lib/requests.d.ts +0 -1
- package/lib/work_templates.d.ts +19 -1
- package/package.json +2 -2
package/lib/admin.d.ts
CHANGED
|
@@ -9,8 +9,33 @@ import { SamlCertificateStatus, SamlMetadataResponse } from './saml';
|
|
|
9
9
|
import { Team } from './teams';
|
|
10
10
|
import { UserAccessToken, UserProfile } from './users';
|
|
11
11
|
import { RelationOneToOne } from './utilities';
|
|
12
|
+
export declare enum LogLevelEnum {
|
|
13
|
+
SILLY = "silly",
|
|
14
|
+
DEBUG = "debug",
|
|
15
|
+
INFO = "info",
|
|
16
|
+
WARN = "warn",
|
|
17
|
+
ERROR = "error"
|
|
18
|
+
}
|
|
19
|
+
export declare type LogServerNames = string[];
|
|
20
|
+
export declare type LogLevels = LogLevelEnum[];
|
|
21
|
+
export declare type LogDateFrom = string;
|
|
22
|
+
export declare type LogDateTo = string;
|
|
23
|
+
export declare type LogObject = {
|
|
24
|
+
caller: string;
|
|
25
|
+
job_id: string;
|
|
26
|
+
level: LogLevelEnum;
|
|
27
|
+
msg: string;
|
|
28
|
+
timestamp: string;
|
|
29
|
+
worker: string;
|
|
30
|
+
};
|
|
31
|
+
export declare type LogFilter = {
|
|
32
|
+
serverNames: LogServerNames;
|
|
33
|
+
logLevels: LogLevels;
|
|
34
|
+
dateFrom: LogDateFrom;
|
|
35
|
+
dateTo: LogDateTo;
|
|
36
|
+
};
|
|
12
37
|
export declare type AdminState = {
|
|
13
|
-
logs:
|
|
38
|
+
logs: LogObject[];
|
|
14
39
|
audits: Record<string, Audit>;
|
|
15
40
|
config: Partial<AdminConfig>;
|
|
16
41
|
environmentConfig: Partial<EnvironmentConfig>;
|
package/lib/admin.js
CHANGED
|
@@ -2,3 +2,12 @@
|
|
|
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.LogLevelEnum = void 0;
|
|
6
|
+
var LogLevelEnum;
|
|
7
|
+
(function (LogLevelEnum) {
|
|
8
|
+
LogLevelEnum["SILLY"] = "silly";
|
|
9
|
+
LogLevelEnum["DEBUG"] = "debug";
|
|
10
|
+
LogLevelEnum["INFO"] = "info";
|
|
11
|
+
LogLevelEnum["WARN"] = "warn";
|
|
12
|
+
LogLevelEnum["ERROR"] = "error";
|
|
13
|
+
})(LogLevelEnum = exports.LogLevelEnum || (exports.LogLevelEnum = {}));
|
package/lib/apps.js
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
// See LICENSE.txt for license information.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.Locations = exports.Permission = void 0;
|
|
6
|
-
// This file's contents belong to the Apps Framework feature.
|
|
7
|
-
// Apps Framework feature is experimental, and the contents of this file are
|
|
8
|
-
// susceptible to breaking changes without pushing the major version of this package.
|
|
9
6
|
var Permission;
|
|
10
7
|
(function (Permission) {
|
|
11
8
|
Permission["UserJoinedChannelNotification"] = "user_joined_channel_notification";
|
package/lib/boards.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export declare type BoardsUsageResponse = {
|
|
2
|
-
cards: number;
|
|
3
|
-
views: number;
|
|
4
|
-
used_cards: number;
|
|
5
|
-
card_limit_timestamp: number;
|
|
6
|
-
};
|
|
7
1
|
declare const boardTypes: string[];
|
|
8
2
|
declare type BoardTypes = typeof boardTypes[number];
|
|
9
3
|
declare type PropertyTypeEnum = 'text' | 'number' | 'select' | 'multiSelect' | 'date' | 'person' | 'file' | 'checkbox' | 'url' | 'email' | 'phone' | 'createdTime' | 'createdBy' | 'updatedTime' | 'updatedBy' | 'unknown';
|
|
@@ -38,20 +32,6 @@ export declare type Board = {
|
|
|
38
32
|
updateAt: number;
|
|
39
33
|
deleteAt: number;
|
|
40
34
|
};
|
|
41
|
-
export declare type BoardTemplate = Board;
|
|
42
|
-
export declare type BoardPatch = {
|
|
43
|
-
channelId?: string;
|
|
44
|
-
type?: BoardTypes;
|
|
45
|
-
minimumRole?: string;
|
|
46
|
-
title?: string;
|
|
47
|
-
description?: string;
|
|
48
|
-
icon?: string;
|
|
49
|
-
showDescription?: boolean;
|
|
50
|
-
updatedProperties?: Record<string, any>;
|
|
51
|
-
deletedProperties?: string[];
|
|
52
|
-
updatedCardProperties?: IPropertyTemplate[];
|
|
53
|
-
deletedCardProperties?: string[];
|
|
54
|
-
};
|
|
55
35
|
export declare type CreateBoardResponse = {
|
|
56
36
|
boards: Board[];
|
|
57
37
|
};
|
package/lib/cloud.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare type CloudState = {
|
|
|
4
4
|
products?: Record<string, Product>;
|
|
5
5
|
customer?: CloudCustomer;
|
|
6
6
|
invoices?: Record<string, Invoice>;
|
|
7
|
-
subscriptionStats?:
|
|
7
|
+
subscriptionStats?: LicenseSelfServeStatusReducer;
|
|
8
8
|
limits: {
|
|
9
9
|
limitsLoaded: boolean;
|
|
10
10
|
limits: Limits;
|
|
@@ -15,6 +15,7 @@ export declare type CloudState = {
|
|
|
15
15
|
customer?: true;
|
|
16
16
|
invoices?: true;
|
|
17
17
|
limits?: true;
|
|
18
|
+
trueUpReview?: true;
|
|
18
19
|
};
|
|
19
20
|
selfHostedSignup: {
|
|
20
21
|
progress: ValueOf<typeof SelfHostedSignupProgress>;
|
|
@@ -34,6 +35,7 @@ export declare type Subscription = {
|
|
|
34
35
|
trial_end_at: number;
|
|
35
36
|
is_free_trial: string;
|
|
36
37
|
delinquent_since?: number;
|
|
38
|
+
compliance_blocked?: string;
|
|
37
39
|
};
|
|
38
40
|
export declare type Product = {
|
|
39
41
|
id: string;
|
|
@@ -83,11 +85,12 @@ export declare type CloudCustomer = {
|
|
|
83
85
|
company_address: Address;
|
|
84
86
|
payment_method: PaymentMethod;
|
|
85
87
|
} & CustomerMetadataGatherWireTransfer;
|
|
86
|
-
export declare type
|
|
87
|
-
is_expandable
|
|
88
|
+
export declare type LicenseSelfServeStatus = {
|
|
89
|
+
is_expandable?: boolean;
|
|
90
|
+
is_renewable?: boolean;
|
|
88
91
|
};
|
|
89
92
|
declare type RequestState = 'IDLE' | 'LOADING' | 'ERROR' | 'OK';
|
|
90
|
-
export interface
|
|
93
|
+
export interface LicenseSelfServeStatusReducer extends LicenseSelfServeStatus {
|
|
91
94
|
getRequestState: RequestState;
|
|
92
95
|
}
|
|
93
96
|
export declare type CloudCustomerPatch = {
|
|
@@ -157,10 +160,6 @@ export declare type Limits = {
|
|
|
157
160
|
teams?: {
|
|
158
161
|
active?: number;
|
|
159
162
|
};
|
|
160
|
-
boards?: {
|
|
161
|
-
cards?: number;
|
|
162
|
-
views?: number;
|
|
163
|
-
};
|
|
164
163
|
};
|
|
165
164
|
export interface CloudUsage {
|
|
166
165
|
files: {
|
|
@@ -171,10 +170,6 @@ export interface CloudUsage {
|
|
|
171
170
|
history: number;
|
|
172
171
|
historyLoaded: boolean;
|
|
173
172
|
};
|
|
174
|
-
boards: {
|
|
175
|
-
cards: number;
|
|
176
|
-
cardsLoaded: boolean;
|
|
177
|
-
};
|
|
178
173
|
teams: TeamsUsage;
|
|
179
174
|
}
|
|
180
175
|
export declare type TeamsUsage = {
|
|
@@ -191,4 +186,13 @@ export interface CreateSubscriptionRequest {
|
|
|
191
186
|
seats: number;
|
|
192
187
|
internal_purchase_order?: string;
|
|
193
188
|
}
|
|
189
|
+
export declare const areShippingDetailsValid: (address: Address | null | undefined) => boolean;
|
|
190
|
+
export declare type Feedback = {
|
|
191
|
+
reason: string;
|
|
192
|
+
comments: string;
|
|
193
|
+
};
|
|
194
|
+
export declare type WorkspaceDeletionRequest = {
|
|
195
|
+
subscription_id: string;
|
|
196
|
+
feedback: Feedback;
|
|
197
|
+
};
|
|
194
198
|
export {};
|
package/lib/cloud.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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.InvoiceLineItemType = exports.SelfHostedSignupProgress = exports.TypePurchases = void 0;
|
|
5
|
+
exports.areShippingDetailsValid = exports.InvoiceLineItemType = exports.SelfHostedSignupProgress = exports.TypePurchases = void 0;
|
|
6
6
|
exports.TypePurchases = {
|
|
7
7
|
firstSelfHostLicensePurchase: 'first_purchase',
|
|
8
8
|
renewalSelfHost: 'renewal_self',
|
|
@@ -25,3 +25,10 @@ exports.InvoiceLineItemType = {
|
|
|
25
25
|
OnPremise: 'onpremise',
|
|
26
26
|
Metered: 'metered',
|
|
27
27
|
};
|
|
28
|
+
const areShippingDetailsValid = (address) => {
|
|
29
|
+
if (!address) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return Boolean(address.city && address.country && address.line1 && address.postal_code && address.state);
|
|
33
|
+
};
|
|
34
|
+
exports.areShippingDetailsValid = areShippingDetailsValid;
|
package/lib/config.d.ts
CHANGED
|
@@ -13,10 +13,13 @@ export declare type ClientConfig = {
|
|
|
13
13
|
BannerColor: string;
|
|
14
14
|
BannerText: string;
|
|
15
15
|
BannerTextColor: string;
|
|
16
|
+
BuildBoards: string;
|
|
16
17
|
BuildDate: string;
|
|
17
18
|
BuildEnterpriseReady: string;
|
|
18
19
|
BuildHash: string;
|
|
20
|
+
BuildHashBoards: string;
|
|
19
21
|
BuildHashEnterprise: string;
|
|
22
|
+
BuildHashPlaybooks: string;
|
|
20
23
|
BuildNumber: string;
|
|
21
24
|
CollapsedThreads: CollapsedThreads;
|
|
22
25
|
CustomBrandText: string;
|
|
@@ -110,9 +113,10 @@ export declare type ClientConfig = {
|
|
|
110
113
|
ExperimentalTimezone: string;
|
|
111
114
|
ExperimentalViewArchivedChannels: string;
|
|
112
115
|
FileLevel: string;
|
|
116
|
+
FeatureFlagAppsEnabled: string;
|
|
113
117
|
FeatureFlagBoardsProduct: string;
|
|
118
|
+
FeatureFlagCallsEnabled: string;
|
|
114
119
|
FeatureFlagGraphQL: string;
|
|
115
|
-
FeatureFlagAnnualSubscription: string;
|
|
116
120
|
GfycatAPIKey: string;
|
|
117
121
|
GfycatAPISecret: string;
|
|
118
122
|
GoogleDeveloperKey: string;
|
|
@@ -173,6 +177,7 @@ export declare type ClientConfig = {
|
|
|
173
177
|
SiteURL: string;
|
|
174
178
|
SQLDriverName: string;
|
|
175
179
|
SupportEmail: string;
|
|
180
|
+
TelemetryId: string;
|
|
176
181
|
TeammateNameDisplay: string;
|
|
177
182
|
TermsOfServiceLink: string;
|
|
178
183
|
TimeBetweenUserTypingUpdatesMilliseconds: string;
|
|
@@ -405,6 +410,7 @@ export declare type LogSettings = {
|
|
|
405
410
|
FileLocation: string;
|
|
406
411
|
EnableWebhookDebugging: boolean;
|
|
407
412
|
EnableDiagnostics: boolean;
|
|
413
|
+
VerboseDiagnostics: boolean;
|
|
408
414
|
EnableSentry: boolean;
|
|
409
415
|
AdvancedLoggingConfig: string;
|
|
410
416
|
};
|
|
@@ -707,6 +713,9 @@ export declare type ElasticsearchSettings = {
|
|
|
707
713
|
BatchSize: number;
|
|
708
714
|
RequestTimeoutSeconds: number;
|
|
709
715
|
SkipTLSVerification: boolean;
|
|
716
|
+
CA: string;
|
|
717
|
+
ClientCert: string;
|
|
718
|
+
ClientKey: string;
|
|
710
719
|
Trace: string;
|
|
711
720
|
};
|
|
712
721
|
export declare type BleveSettings = {
|
package/lib/hosted_customer.d.ts
CHANGED
|
@@ -41,6 +41,24 @@ export declare type HostedCustomerState = {
|
|
|
41
41
|
errors: {
|
|
42
42
|
products?: true;
|
|
43
43
|
invoices?: true;
|
|
44
|
+
trueUpReview?: true;
|
|
44
45
|
};
|
|
45
46
|
signupProgress: ValueOf<typeof SelfHostedSignupProgress>;
|
|
47
|
+
trueUpReviewStatus: TrueUpReviewStatusReducer;
|
|
48
|
+
trueUpReviewProfile: TrueUpReviewProfileReducer;
|
|
46
49
|
};
|
|
50
|
+
export declare type TrueUpReviewProfile = {
|
|
51
|
+
content: string;
|
|
52
|
+
};
|
|
53
|
+
export declare type TrueUpReviewStatus = {
|
|
54
|
+
due_date: number;
|
|
55
|
+
complete: boolean;
|
|
56
|
+
};
|
|
57
|
+
declare type RequestState = 'IDLE' | 'LOADING' | 'OK';
|
|
58
|
+
export interface TrueUpReviewProfileReducer extends TrueUpReviewProfile {
|
|
59
|
+
getRequestState: RequestState;
|
|
60
|
+
}
|
|
61
|
+
export interface TrueUpReviewStatusReducer extends TrueUpReviewStatus {
|
|
62
|
+
getRequestState: RequestState;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
package/lib/posts.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ export declare type PostsState = {
|
|
|
106
106
|
openGraph: RelationOneToOne<Post, Record<string, OpenGraphMetadata>>;
|
|
107
107
|
pendingPostIds: string[];
|
|
108
108
|
selectedPostId: string;
|
|
109
|
+
postEditHistory: Post[];
|
|
109
110
|
currentFocusedPostId: string;
|
|
110
111
|
messagesHistory: MessageHistory;
|
|
111
112
|
expandedURLs: Record<string, string>;
|
package/lib/requests.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export declare type ChannelsRequestsStatuses = {
|
|
|
9
9
|
myChannels: RequestStatusType;
|
|
10
10
|
createChannel: RequestStatusType;
|
|
11
11
|
updateChannel: RequestStatusType;
|
|
12
|
-
getChannelsAndChannelMembers: RequestStatusType;
|
|
13
12
|
};
|
|
14
13
|
export declare type GeneralRequestsStatuses = {
|
|
15
14
|
websocket: RequestStatusType;
|
package/lib/work_templates.d.ts
CHANGED
|
@@ -2,8 +2,23 @@ import { RequireOnlyOne } from './utilities';
|
|
|
2
2
|
export declare type WorkTemplatesState = {
|
|
3
3
|
categories: Category[];
|
|
4
4
|
templatesInCategory: Record<string, WorkTemplate[]>;
|
|
5
|
-
playbookTemplates: [];
|
|
5
|
+
playbookTemplates: PlaybookTemplateType[];
|
|
6
6
|
};
|
|
7
|
+
interface PlaybookTemplateType {
|
|
8
|
+
title: string;
|
|
9
|
+
template: any;
|
|
10
|
+
}
|
|
11
|
+
export interface ExecuteWorkTemplateRequest {
|
|
12
|
+
team_id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
visibility: Visibility;
|
|
15
|
+
work_template: WorkTemplate;
|
|
16
|
+
playbook_templates?: PlaybookTemplateType[];
|
|
17
|
+
}
|
|
18
|
+
export interface ExecuteWorkTemplateResponse {
|
|
19
|
+
channel_with_playbook_ids: string[];
|
|
20
|
+
channel_ids: string[];
|
|
21
|
+
}
|
|
7
22
|
export interface WorkTemplate {
|
|
8
23
|
id: string;
|
|
9
24
|
category: string;
|
|
@@ -22,16 +37,19 @@ export interface Channel {
|
|
|
22
37
|
id: string;
|
|
23
38
|
name: string;
|
|
24
39
|
illustration: string;
|
|
40
|
+
playbook?: string;
|
|
25
41
|
}
|
|
26
42
|
export interface Board {
|
|
27
43
|
id: string;
|
|
28
44
|
name: string;
|
|
29
45
|
illustration: string;
|
|
46
|
+
channel?: string;
|
|
30
47
|
}
|
|
31
48
|
export interface Playbook {
|
|
32
49
|
id: string;
|
|
33
50
|
name: string;
|
|
34
51
|
illustration: string;
|
|
52
|
+
template: string;
|
|
35
53
|
}
|
|
36
54
|
export interface Integration {
|
|
37
55
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattermost/types",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.9.0",
|
|
4
4
|
"description": "Shared type definitions used by the Mattermost web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mattermost"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"./*": "./lib/*.js"
|
|
15
15
|
},
|
|
16
16
|
"types": "./lib/*.d.ts",
|
|
17
|
-
"
|
|
17
|
+
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "github:mattermost/mattermost-webapp",
|
|
20
20
|
"directory": "packages/types"
|