@mattermost/types 7.9.0 → 8.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/README.md +2 -17
- package/lib/admin.d.ts +1 -0
- package/lib/apps.d.ts +3 -1
- package/lib/channels.d.ts +3 -0
- package/lib/cloud.d.ts +6 -1
- package/lib/config.d.ts +33 -10
- package/lib/config.js +7 -1
- package/lib/hosted_customer.d.ts +5 -0
- package/lib/posts.d.ts +7 -1
- package/lib/setup.d.ts +1 -0
- package/lib/store.d.ts +0 -2
- package/lib/users.d.ts +2 -0
- package/package.json +11 -5
- package/lib/work_templates.d.ts +0 -82
- package/lib/work_templates.js +0 -11
package/README.md
CHANGED
|
@@ -12,21 +12,6 @@ import {UserProfile} from '@mattermost/types/users';
|
|
|
12
12
|
|
|
13
13
|
For technologies that don't support that yet, you can add an alias in its package resolution settings to support that.
|
|
14
14
|
|
|
15
|
-
### TypeScript
|
|
16
|
-
|
|
17
|
-
In the `tsconfig.json`, you can use `compilerOptions.paths` to add that alias. This also requires a `compilerOptions.baseUrl` if you haven't set that already.
|
|
18
|
-
|
|
19
|
-
```json
|
|
20
|
-
{
|
|
21
|
-
"compilerOptions": {
|
|
22
|
-
"baseUrl": ".",
|
|
23
|
-
"paths": {
|
|
24
|
-
"@mattermost/types/*": ["node_modules/@mattermost/types/lib/*"]
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
15
|
### Jest
|
|
31
16
|
|
|
32
17
|
In your Jest config, you can use the `moduleNameMapper` field to add that alias.
|
|
@@ -44,8 +29,8 @@ In your Jest config, you can use the `moduleNameMapper` field to add that alias.
|
|
|
44
29
|
As a member of Mattermost with write access to our NPM organization, you can build and publish this package by running the following commands:
|
|
45
30
|
|
|
46
31
|
```bash
|
|
47
|
-
npm run build --workspace=
|
|
48
|
-
npm publish --workspace=
|
|
32
|
+
npm run build --workspace=platform/types
|
|
33
|
+
npm publish --workspace=platform/types
|
|
49
34
|
```
|
|
50
35
|
|
|
51
36
|
Make sure to increment the version number in `package.json` first! You can add `-0`, `-1`, etc for pre-release versions.
|
package/lib/admin.d.ts
CHANGED
package/lib/apps.d.ts
CHANGED
|
@@ -102,10 +102,11 @@ export declare type AppContext = {
|
|
|
102
102
|
export declare type AppContextProps = {
|
|
103
103
|
[name: string]: string;
|
|
104
104
|
};
|
|
105
|
-
export declare type AppExpandLevel =
|
|
105
|
+
export declare type AppExpandLevel = '' | 'none' | 'summary' | '+summary' | 'all' | '+all';
|
|
106
106
|
export declare type AppExpand = {
|
|
107
107
|
app?: AppExpandLevel;
|
|
108
108
|
acting_user?: AppExpandLevel;
|
|
109
|
+
acting_user_access_token?: AppExpandLevel;
|
|
109
110
|
channel?: AppExpandLevel;
|
|
110
111
|
config?: AppExpandLevel;
|
|
111
112
|
mentioned?: AppExpandLevel;
|
|
@@ -114,6 +115,7 @@ export declare type AppExpand = {
|
|
|
114
115
|
root_post?: AppExpandLevel;
|
|
115
116
|
team?: AppExpandLevel;
|
|
116
117
|
user?: AppExpandLevel;
|
|
118
|
+
locale?: AppExpandLevel;
|
|
117
119
|
};
|
|
118
120
|
export declare type AppForm = {
|
|
119
121
|
title?: string;
|
package/lib/channels.d.ts
CHANGED
|
@@ -10,10 +10,13 @@ export declare type ChannelStats = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare type ChannelNotifyProps = {
|
|
12
12
|
desktop: 'default' | 'all' | 'mention' | 'none';
|
|
13
|
+
desktop_sound: 'on' | 'off';
|
|
14
|
+
desktop_notification_sound?: 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
|
|
13
15
|
email: 'default' | 'all' | 'mention' | 'none';
|
|
14
16
|
mark_unread: 'all' | 'mention';
|
|
15
17
|
push: 'default' | 'all' | 'mention' | 'none';
|
|
16
18
|
ignore_channel_mentions: 'default' | 'off' | 'on';
|
|
19
|
+
channel_auto_follow_threads: 'off' | 'on';
|
|
17
20
|
};
|
|
18
21
|
export declare type Channel = {
|
|
19
22
|
id: string;
|
package/lib/cloud.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare type Subscription = {
|
|
|
36
36
|
is_free_trial: string;
|
|
37
37
|
delinquent_since?: number;
|
|
38
38
|
compliance_blocked?: string;
|
|
39
|
+
billing_type?: string;
|
|
39
40
|
};
|
|
40
41
|
export declare type Product = {
|
|
41
42
|
id: string;
|
|
@@ -186,6 +187,10 @@ export interface CreateSubscriptionRequest {
|
|
|
186
187
|
seats: number;
|
|
187
188
|
internal_purchase_order?: string;
|
|
188
189
|
}
|
|
190
|
+
export interface NewsletterRequestBody {
|
|
191
|
+
email: string;
|
|
192
|
+
subscribed_content: string;
|
|
193
|
+
}
|
|
189
194
|
export declare const areShippingDetailsValid: (address: Address | null | undefined) => boolean;
|
|
190
195
|
export declare type Feedback = {
|
|
191
196
|
reason: string;
|
|
@@ -193,6 +198,6 @@ export declare type Feedback = {
|
|
|
193
198
|
};
|
|
194
199
|
export declare type WorkspaceDeletionRequest = {
|
|
195
200
|
subscription_id: string;
|
|
196
|
-
|
|
201
|
+
delete_feedback: Feedback;
|
|
197
202
|
};
|
|
198
203
|
export {};
|
package/lib/config.d.ts
CHANGED
|
@@ -13,13 +13,10 @@ export declare type ClientConfig = {
|
|
|
13
13
|
BannerColor: string;
|
|
14
14
|
BannerText: string;
|
|
15
15
|
BannerTextColor: string;
|
|
16
|
-
BuildBoards: string;
|
|
17
16
|
BuildDate: string;
|
|
18
17
|
BuildEnterpriseReady: string;
|
|
19
18
|
BuildHash: string;
|
|
20
|
-
BuildHashBoards: string;
|
|
21
19
|
BuildHashEnterprise: string;
|
|
22
|
-
BuildHashPlaybooks: string;
|
|
23
20
|
BuildNumber: string;
|
|
24
21
|
CollapsedThreads: CollapsedThreads;
|
|
25
22
|
CustomBrandText: string;
|
|
@@ -28,6 +25,7 @@ export declare type ClientConfig = {
|
|
|
28
25
|
CustomTermsOfServiceReAcceptancePeriod: string;
|
|
29
26
|
CustomUrlSchemes: string;
|
|
30
27
|
CWSURL: string;
|
|
28
|
+
CWSMock: string;
|
|
31
29
|
DataRetentionEnableFileDeletion: string;
|
|
32
30
|
DataRetentionEnableMessageDeletion: string;
|
|
33
31
|
DataRetentionFileRetentionDays: string;
|
|
@@ -36,6 +34,7 @@ export declare type ClientConfig = {
|
|
|
36
34
|
DefaultTheme: string;
|
|
37
35
|
DiagnosticId: string;
|
|
38
36
|
DiagnosticsEnabled: string;
|
|
37
|
+
DisableRefetchingOnBrowserFocus: string;
|
|
39
38
|
EmailLoginButtonBorderColor: string;
|
|
40
39
|
EmailLoginButtonColor: string;
|
|
41
40
|
EmailLoginButtonTextColor: string;
|
|
@@ -119,6 +118,7 @@ export declare type ClientConfig = {
|
|
|
119
118
|
FeatureFlagGraphQL: string;
|
|
120
119
|
GfycatAPIKey: string;
|
|
121
120
|
GfycatAPISecret: string;
|
|
121
|
+
GiphySdkKey: string;
|
|
122
122
|
GoogleDeveloperKey: string;
|
|
123
123
|
GuestAccountsEnforceMultifactorAuthentication: string;
|
|
124
124
|
HasImageProxy: string;
|
|
@@ -187,11 +187,17 @@ export declare type ClientConfig = {
|
|
|
187
187
|
WebsocketSecurePort: string;
|
|
188
188
|
WebsocketURL: string;
|
|
189
189
|
ExperimentalSharedChannels: string;
|
|
190
|
-
|
|
190
|
+
DisableAppBar: string;
|
|
191
191
|
EnableComplianceExport: string;
|
|
192
192
|
PostPriority: string;
|
|
193
193
|
ReduceOnBoardingTaskList: string;
|
|
194
194
|
PostAcknowledgements: string;
|
|
195
|
+
AllowPersistentNotifications: string;
|
|
196
|
+
PersistentNotificationMaxRecipients: string;
|
|
197
|
+
PersistentNotificationIntervalMinutes: string;
|
|
198
|
+
AllowPersistentNotificationsForGuests: string;
|
|
199
|
+
DelayChannelAutocomplete: 'true' | 'false';
|
|
200
|
+
ServiceEnvironment: string;
|
|
195
201
|
};
|
|
196
202
|
export declare type License = {
|
|
197
203
|
id: string;
|
|
@@ -241,12 +247,19 @@ export declare type RequestLicenseBody = {
|
|
|
241
247
|
users: number;
|
|
242
248
|
terms_accepted: boolean;
|
|
243
249
|
receive_emails_accepted: boolean;
|
|
250
|
+
contact_name: string;
|
|
251
|
+
contact_email: string;
|
|
252
|
+
company_name: string;
|
|
253
|
+
company_size: string;
|
|
254
|
+
company_country: string;
|
|
244
255
|
};
|
|
245
256
|
export declare type DataRetentionPolicy = {
|
|
246
257
|
message_deletion_enabled: boolean;
|
|
247
258
|
file_deletion_enabled: boolean;
|
|
248
259
|
message_retention_cutoff: number;
|
|
249
260
|
file_retention_cutoff: number;
|
|
261
|
+
boards_retention_cutoff: number;
|
|
262
|
+
boards_deletion_enabled: boolean;
|
|
250
263
|
};
|
|
251
264
|
export declare type ServiceSettings = {
|
|
252
265
|
SiteURL: string;
|
|
@@ -312,6 +325,7 @@ export declare type ServiceSettings = {
|
|
|
312
325
|
EnableGifPicker: boolean;
|
|
313
326
|
GfycatAPIKey: string;
|
|
314
327
|
GfycatAPISecret: string;
|
|
328
|
+
GiphySdkKey: string;
|
|
315
329
|
PostEditTimeLimit: number;
|
|
316
330
|
TimeBetweenUserTypingUpdatesMilliseconds: number;
|
|
317
331
|
EnablePostSearch: boolean;
|
|
@@ -352,6 +366,11 @@ export declare type ServiceSettings = {
|
|
|
352
366
|
EnableCustomGroups: boolean;
|
|
353
367
|
SelfHostedPurchase: boolean;
|
|
354
368
|
AllowSyncedDrafts: boolean;
|
|
369
|
+
AllowPersistentNotifications: boolean;
|
|
370
|
+
AllowPersistentNotificationsForGuests: boolean;
|
|
371
|
+
PersistentNotificationIntervalMinutes: number;
|
|
372
|
+
PersistentNotificationMaxCount: number;
|
|
373
|
+
PersistentNotificationMaxRecipients: number;
|
|
355
374
|
};
|
|
356
375
|
export declare type TeamSettings = {
|
|
357
376
|
SiteName: string;
|
|
@@ -499,7 +518,6 @@ export declare type EmailSettings = {
|
|
|
499
518
|
LoginButtonColor: string;
|
|
500
519
|
LoginButtonBorderColor: string;
|
|
501
520
|
LoginButtonTextColor: string;
|
|
502
|
-
EnableInactivityEmail: boolean;
|
|
503
521
|
};
|
|
504
522
|
export declare type RateLimitSettings = {
|
|
505
523
|
Enable: boolean;
|
|
@@ -686,8 +704,9 @@ export declare type ExperimentalSettings = {
|
|
|
686
704
|
UseNewSAMLLibrary: boolean;
|
|
687
705
|
EnableSharedChannels: boolean;
|
|
688
706
|
EnableRemoteClusterService: boolean;
|
|
689
|
-
|
|
690
|
-
|
|
707
|
+
DisableAppBar: boolean;
|
|
708
|
+
DisableRefetchingOnBrowserFocus: boolean;
|
|
709
|
+
DelayChannelAutocomplete: boolean;
|
|
691
710
|
};
|
|
692
711
|
export declare type AnalyticsSettings = {
|
|
693
712
|
MaxUsersForStatistics: number;
|
|
@@ -717,6 +736,7 @@ export declare type ElasticsearchSettings = {
|
|
|
717
736
|
ClientCert: string;
|
|
718
737
|
ClientKey: string;
|
|
719
738
|
Trace: string;
|
|
739
|
+
IgnoredPurgeIndexes: string;
|
|
720
740
|
};
|
|
721
741
|
export declare type BleveSettings = {
|
|
722
742
|
IndexDir: string;
|
|
@@ -756,9 +776,7 @@ export declare type JobSettings = {
|
|
|
756
776
|
CleanupJobsThresholdDays: number;
|
|
757
777
|
CleanupConfigThresholdDays: number;
|
|
758
778
|
};
|
|
759
|
-
export declare type ProductSettings = {
|
|
760
|
-
EnablePublicSharedBoards: boolean;
|
|
761
|
-
};
|
|
779
|
+
export declare type ProductSettings = {};
|
|
762
780
|
export declare type PluginSettings = {
|
|
763
781
|
Enable: boolean;
|
|
764
782
|
EnableUploads: boolean;
|
|
@@ -874,3 +892,8 @@ export declare enum CollapsedThreads {
|
|
|
874
892
|
DEFAULT_OFF = "default_off",
|
|
875
893
|
ALWAYS_ON = "always_on"
|
|
876
894
|
}
|
|
895
|
+
export declare enum ServiceEnvironment {
|
|
896
|
+
PRODUCTION = "production",
|
|
897
|
+
TEST = "test",
|
|
898
|
+
DEV = "dev"
|
|
899
|
+
}
|
package/lib/config.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.CollapsedThreads = void 0;
|
|
5
|
+
exports.ServiceEnvironment = exports.CollapsedThreads = void 0;
|
|
6
6
|
var CollapsedThreads;
|
|
7
7
|
(function (CollapsedThreads) {
|
|
8
8
|
CollapsedThreads["DISABLED"] = "disabled";
|
|
@@ -10,3 +10,9 @@ var CollapsedThreads;
|
|
|
10
10
|
CollapsedThreads["DEFAULT_OFF"] = "default_off";
|
|
11
11
|
CollapsedThreads["ALWAYS_ON"] = "always_on";
|
|
12
12
|
})(CollapsedThreads = exports.CollapsedThreads || (exports.CollapsedThreads = {}));
|
|
13
|
+
var ServiceEnvironment;
|
|
14
|
+
(function (ServiceEnvironment) {
|
|
15
|
+
ServiceEnvironment["PRODUCTION"] = "production";
|
|
16
|
+
ServiceEnvironment["TEST"] = "test";
|
|
17
|
+
ServiceEnvironment["DEV"] = "dev";
|
|
18
|
+
})(ServiceEnvironment = exports.ServiceEnvironment || (exports.ServiceEnvironment = {}));
|
package/lib/hosted_customer.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface SelfHostedSignupForm {
|
|
|
13
13
|
first_name: string;
|
|
14
14
|
last_name: string;
|
|
15
15
|
billing_address: Address;
|
|
16
|
+
shipping_address: Address;
|
|
16
17
|
organization: string;
|
|
17
18
|
}
|
|
18
19
|
export interface SelfHostedSignupBootstrapResponse {
|
|
@@ -61,4 +62,8 @@ export interface TrueUpReviewProfileReducer extends TrueUpReviewProfile {
|
|
|
61
62
|
export interface TrueUpReviewStatusReducer extends TrueUpReviewStatus {
|
|
62
63
|
getRequestState: RequestState;
|
|
63
64
|
}
|
|
65
|
+
export declare type SelfHostedExpansionRequest = {
|
|
66
|
+
seats: number;
|
|
67
|
+
license_id: string;
|
|
68
|
+
};
|
|
64
69
|
export {};
|
package/lib/posts.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { FileInfo } from './files';
|
|
|
4
4
|
import { Reaction } from './reactions';
|
|
5
5
|
import { UserProfile } from './users';
|
|
6
6
|
import { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
|
|
7
|
-
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' | 'system_generic' | '';
|
|
7
|
+
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' | 'system_generic' | 'reminder' | '';
|
|
8
8
|
export declare type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
|
|
9
9
|
export declare type PostEmbed = {
|
|
10
10
|
type: PostEmbedType;
|
|
@@ -158,3 +158,9 @@ export declare type PostAnalytics = {
|
|
|
158
158
|
requested_ack?: boolean;
|
|
159
159
|
persistent_notifications?: boolean;
|
|
160
160
|
};
|
|
161
|
+
export declare type ActivityEntry = {
|
|
162
|
+
postType: Post['type'];
|
|
163
|
+
actorId: string[];
|
|
164
|
+
userIds: string[];
|
|
165
|
+
usernames: string[];
|
|
166
|
+
};
|
package/lib/setup.d.ts
CHANGED
package/lib/store.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ import { UsersState } from './users';
|
|
|
23
23
|
import { AppsState } from './apps';
|
|
24
24
|
import { InsightsState } from './insights';
|
|
25
25
|
import { GifsState } from './gifs';
|
|
26
|
-
import { WorkTemplatesState } from './work_templates';
|
|
27
26
|
export declare type GlobalState = {
|
|
28
27
|
entities: {
|
|
29
28
|
general: GeneralState;
|
|
@@ -62,7 +61,6 @@ export declare type GlobalState = {
|
|
|
62
61
|
hostedCustomer: HostedCustomerState;
|
|
63
62
|
usage: CloudUsage;
|
|
64
63
|
insights: InsightsState;
|
|
65
|
-
worktemplates: WorkTemplatesState;
|
|
66
64
|
};
|
|
67
65
|
errors: any[];
|
|
68
66
|
requests: {
|
package/lib/users.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { IDMappedObjects, RelationOneToMany, RelationOneToManyUnique, RelationOn
|
|
|
7
7
|
export declare type UserNotifyProps = {
|
|
8
8
|
desktop: 'default' | 'all' | 'mention' | 'none';
|
|
9
9
|
desktop_sound: 'true' | 'false';
|
|
10
|
+
calls_desktop_sound: 'true' | 'false';
|
|
10
11
|
email: 'true' | 'false';
|
|
11
12
|
mark_unread: 'all' | 'mention';
|
|
12
13
|
push: 'default' | 'all' | 'mention' | 'none';
|
|
@@ -16,6 +17,7 @@ export declare type UserNotifyProps = {
|
|
|
16
17
|
channel: 'true' | 'false';
|
|
17
18
|
mention_keys: string;
|
|
18
19
|
desktop_notification_sound?: 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
|
|
20
|
+
calls_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful';
|
|
19
21
|
desktop_threads?: 'default' | 'all' | 'mention' | 'none';
|
|
20
22
|
email_threads?: 'default' | 'all' | 'mention' | 'none';
|
|
21
23
|
push_threads?: 'default' | 'all' | 'mention' | 'none';
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattermost/types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Shared type definitions used by the Mattermost web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mattermost"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/mattermost/mattermost-
|
|
8
|
+
"homepage": "https://github.com/mattermost/mattermost-server/tree/master/webapp/platform/types#readme",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"files": [
|
|
11
11
|
"lib"
|
|
@@ -13,11 +13,17 @@
|
|
|
13
13
|
"exports": {
|
|
14
14
|
"./*": "./lib/*.js"
|
|
15
15
|
},
|
|
16
|
-
"
|
|
16
|
+
"typesVersions": {
|
|
17
|
+
">=3.1": {
|
|
18
|
+
"*": [
|
|
19
|
+
"./lib/*.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
17
23
|
"repository": {
|
|
18
24
|
"type": "git",
|
|
19
|
-
"url": "github:mattermost/mattermost-
|
|
20
|
-
"directory": "
|
|
25
|
+
"url": "github:mattermost/mattermost-server",
|
|
26
|
+
"directory": "webapp/platform/types"
|
|
21
27
|
},
|
|
22
28
|
"peerDependencies": {
|
|
23
29
|
"typescript": "^4.3"
|
package/lib/work_templates.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { RequireOnlyOne } from './utilities';
|
|
2
|
-
export declare type WorkTemplatesState = {
|
|
3
|
-
categories: Category[];
|
|
4
|
-
templatesInCategory: Record<string, WorkTemplate[]>;
|
|
5
|
-
playbookTemplates: PlaybookTemplateType[];
|
|
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
|
-
}
|
|
22
|
-
export interface WorkTemplate {
|
|
23
|
-
id: string;
|
|
24
|
-
category: string;
|
|
25
|
-
useCase: string;
|
|
26
|
-
description: Description;
|
|
27
|
-
illustration: string;
|
|
28
|
-
visibility: Visibility;
|
|
29
|
-
content: ValidContent[];
|
|
30
|
-
}
|
|
31
|
-
export declare const categories: string[];
|
|
32
|
-
export interface Category {
|
|
33
|
-
id: typeof categories[number];
|
|
34
|
-
name: string;
|
|
35
|
-
}
|
|
36
|
-
export interface Channel {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
illustration: string;
|
|
40
|
-
playbook?: string;
|
|
41
|
-
}
|
|
42
|
-
export interface Board {
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
illustration: string;
|
|
46
|
-
channel?: string;
|
|
47
|
-
}
|
|
48
|
-
export interface Playbook {
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
illustration: string;
|
|
52
|
-
template: string;
|
|
53
|
-
}
|
|
54
|
-
export interface Integration {
|
|
55
|
-
id: string;
|
|
56
|
-
name?: string;
|
|
57
|
-
icon?: string;
|
|
58
|
-
installed?: boolean;
|
|
59
|
-
}
|
|
60
|
-
interface Content {
|
|
61
|
-
channel?: Channel;
|
|
62
|
-
board?: Board;
|
|
63
|
-
playbook?: Playbook;
|
|
64
|
-
integration?: Integration;
|
|
65
|
-
}
|
|
66
|
-
declare type ValidContent = RequireOnlyOne<Content, 'channel' | 'board' | 'playbook' | 'integration'>;
|
|
67
|
-
export interface MessageWithIllustration {
|
|
68
|
-
message: string;
|
|
69
|
-
illustration?: string;
|
|
70
|
-
}
|
|
71
|
-
declare type MessageWithMandatoryIllustration = Partial<MessageWithIllustration> & Required<Pick<MessageWithIllustration, 'illustration'>>;
|
|
72
|
-
interface Description {
|
|
73
|
-
channel: MessageWithIllustration;
|
|
74
|
-
board: MessageWithIllustration;
|
|
75
|
-
playbook: MessageWithIllustration;
|
|
76
|
-
integration: MessageWithMandatoryIllustration;
|
|
77
|
-
}
|
|
78
|
-
export declare enum Visibility {
|
|
79
|
-
Public = "public",
|
|
80
|
-
Private = "private"
|
|
81
|
-
}
|
|
82
|
-
export {};
|
package/lib/work_templates.js
DELETED
|
@@ -1,11 +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.Visibility = exports.categories = void 0;
|
|
6
|
-
exports.categories = ['product', 'devops', 'company_wide', 'leadership', 'design'];
|
|
7
|
-
var Visibility;
|
|
8
|
-
(function (Visibility) {
|
|
9
|
-
Visibility["Public"] = "public";
|
|
10
|
-
Visibility["Private"] = "private";
|
|
11
|
-
})(Visibility = exports.Visibility || (exports.Visibility = {}));
|