@mattermost/types 7.10.0 → 8.1.1
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 +2 -1
- package/lib/channels.d.ts +3 -0
- package/lib/cloud.d.ts +5 -0
- package/lib/config.d.ts +41 -12
- package/lib/config.js +7 -1
- package/lib/hosted_customer.d.ts +5 -0
- package/lib/jobs.d.ts +1 -1
- package/lib/posts.d.ts +6 -0
- 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 -83
- 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 = '' | '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;
|
|
109
|
+
acting_user_access_token?: AppExpandLevel;
|
|
109
110
|
channel?: AppExpandLevel;
|
|
110
111
|
config?: AppExpandLevel;
|
|
111
112
|
mentioned?: AppExpandLevel;
|
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;
|
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;
|
|
@@ -117,12 +116,15 @@ export declare type ClientConfig = {
|
|
|
117
116
|
FeatureFlagBoardsProduct: string;
|
|
118
117
|
FeatureFlagCallsEnabled: string;
|
|
119
118
|
FeatureFlagGraphQL: string;
|
|
119
|
+
ForgotPasswordLink: string;
|
|
120
120
|
GfycatAPIKey: string;
|
|
121
121
|
GfycatAPISecret: string;
|
|
122
|
+
GiphySdkKey: string;
|
|
122
123
|
GoogleDeveloperKey: string;
|
|
123
124
|
GuestAccountsEnforceMultifactorAuthentication: string;
|
|
124
125
|
HasImageProxy: string;
|
|
125
126
|
HelpLink: string;
|
|
127
|
+
HideGuestTags: string;
|
|
126
128
|
IosAppDownloadLink: string;
|
|
127
129
|
IosLatestVersion: string;
|
|
128
130
|
IosMinVersion: string;
|
|
@@ -149,6 +151,7 @@ export declare type ClientConfig = {
|
|
|
149
151
|
GitLabButtonColor: string;
|
|
150
152
|
OpenIdButtonText: string;
|
|
151
153
|
OpenIdButtonColor: string;
|
|
154
|
+
PasswordEnableForgotLink: string;
|
|
152
155
|
PasswordMinimumLength: string;
|
|
153
156
|
PasswordRequireLowercase: string;
|
|
154
157
|
PasswordRequireNumber: string;
|
|
@@ -187,11 +190,16 @@ export declare type ClientConfig = {
|
|
|
187
190
|
WebsocketSecurePort: string;
|
|
188
191
|
WebsocketURL: string;
|
|
189
192
|
ExperimentalSharedChannels: string;
|
|
190
|
-
|
|
193
|
+
DisableAppBar: string;
|
|
191
194
|
EnableComplianceExport: string;
|
|
192
195
|
PostPriority: string;
|
|
193
|
-
ReduceOnBoardingTaskList: string;
|
|
194
196
|
PostAcknowledgements: string;
|
|
197
|
+
AllowPersistentNotifications: string;
|
|
198
|
+
PersistentNotificationMaxRecipients: string;
|
|
199
|
+
PersistentNotificationIntervalMinutes: string;
|
|
200
|
+
AllowPersistentNotificationsForGuests: string;
|
|
201
|
+
DelayChannelAutocomplete: 'true' | 'false';
|
|
202
|
+
ServiceEnvironment: string;
|
|
195
203
|
};
|
|
196
204
|
export declare type License = {
|
|
197
205
|
id: string;
|
|
@@ -241,12 +249,19 @@ export declare type RequestLicenseBody = {
|
|
|
241
249
|
users: number;
|
|
242
250
|
terms_accepted: boolean;
|
|
243
251
|
receive_emails_accepted: boolean;
|
|
252
|
+
contact_name: string;
|
|
253
|
+
contact_email: string;
|
|
254
|
+
company_name: string;
|
|
255
|
+
company_size: string;
|
|
256
|
+
company_country: string;
|
|
244
257
|
};
|
|
245
258
|
export declare type DataRetentionPolicy = {
|
|
246
259
|
message_deletion_enabled: boolean;
|
|
247
260
|
file_deletion_enabled: boolean;
|
|
248
261
|
message_retention_cutoff: number;
|
|
249
262
|
file_retention_cutoff: number;
|
|
263
|
+
boards_retention_cutoff: number;
|
|
264
|
+
boards_deletion_enabled: boolean;
|
|
250
265
|
};
|
|
251
266
|
export declare type ServiceSettings = {
|
|
252
267
|
SiteURL: string;
|
|
@@ -312,6 +327,7 @@ export declare type ServiceSettings = {
|
|
|
312
327
|
EnableGifPicker: boolean;
|
|
313
328
|
GfycatAPIKey: string;
|
|
314
329
|
GfycatAPISecret: string;
|
|
330
|
+
GiphySdkKey: string;
|
|
315
331
|
PostEditTimeLimit: number;
|
|
316
332
|
TimeBetweenUserTypingUpdatesMilliseconds: number;
|
|
317
333
|
EnablePostSearch: boolean;
|
|
@@ -352,7 +368,11 @@ export declare type ServiceSettings = {
|
|
|
352
368
|
EnableCustomGroups: boolean;
|
|
353
369
|
SelfHostedPurchase: boolean;
|
|
354
370
|
AllowSyncedDrafts: boolean;
|
|
355
|
-
|
|
371
|
+
AllowPersistentNotifications: boolean;
|
|
372
|
+
AllowPersistentNotificationsForGuests: boolean;
|
|
373
|
+
PersistentNotificationIntervalMinutes: number;
|
|
374
|
+
PersistentNotificationMaxCount: number;
|
|
375
|
+
PersistentNotificationMaxRecipients: number;
|
|
356
376
|
};
|
|
357
377
|
export declare type TeamSettings = {
|
|
358
378
|
SiteName: string;
|
|
@@ -442,6 +462,7 @@ export declare type PasswordSettings = {
|
|
|
442
462
|
Number: boolean;
|
|
443
463
|
Uppercase: boolean;
|
|
444
464
|
Symbol: boolean;
|
|
465
|
+
EnableForgotLink: boolean;
|
|
445
466
|
};
|
|
446
467
|
export declare type FileSettings = {
|
|
447
468
|
EnableFileAttachments: boolean;
|
|
@@ -489,6 +510,8 @@ export declare type EmailSettings = {
|
|
|
489
510
|
ConnectionSecurity: string;
|
|
490
511
|
SendPushNotifications: boolean;
|
|
491
512
|
PushNotificationServer: string;
|
|
513
|
+
PushNotificationServerType: 'off' | 'mhpns' | 'mtpns' | 'custom';
|
|
514
|
+
PushNotificationServerLocation: 'us' | 'de';
|
|
492
515
|
PushNotificationContents: string;
|
|
493
516
|
PushNotificationBuffer: number;
|
|
494
517
|
EnableEmailBatching: boolean;
|
|
@@ -500,7 +523,6 @@ export declare type EmailSettings = {
|
|
|
500
523
|
LoginButtonColor: string;
|
|
501
524
|
LoginButtonBorderColor: string;
|
|
502
525
|
LoginButtonTextColor: string;
|
|
503
|
-
EnableInactivityEmail: boolean;
|
|
504
526
|
};
|
|
505
527
|
export declare type RateLimitSettings = {
|
|
506
528
|
Enable: boolean;
|
|
@@ -521,6 +543,7 @@ export declare type SupportSettings = {
|
|
|
521
543
|
AboutLink: string;
|
|
522
544
|
HelpLink: string;
|
|
523
545
|
ReportAProblemLink: string;
|
|
546
|
+
ForgotPasswordLink: string;
|
|
524
547
|
SupportEmail: string;
|
|
525
548
|
CustomTermsOfServiceEnabled: boolean;
|
|
526
549
|
CustomTermsOfServiceReAcceptancePeriod: number;
|
|
@@ -687,8 +710,9 @@ export declare type ExperimentalSettings = {
|
|
|
687
710
|
UseNewSAMLLibrary: boolean;
|
|
688
711
|
EnableSharedChannels: boolean;
|
|
689
712
|
EnableRemoteClusterService: boolean;
|
|
690
|
-
|
|
691
|
-
|
|
713
|
+
DisableAppBar: boolean;
|
|
714
|
+
DisableRefetchingOnBrowserFocus: boolean;
|
|
715
|
+
DelayChannelAutocomplete: boolean;
|
|
692
716
|
};
|
|
693
717
|
export declare type AnalyticsSettings = {
|
|
694
718
|
MaxUsersForStatistics: number;
|
|
@@ -718,6 +742,7 @@ export declare type ElasticsearchSettings = {
|
|
|
718
742
|
ClientCert: string;
|
|
719
743
|
ClientKey: string;
|
|
720
744
|
Trace: string;
|
|
745
|
+
IgnoredPurgeIndexes: string;
|
|
721
746
|
};
|
|
722
747
|
export declare type BleveSettings = {
|
|
723
748
|
IndexDir: string;
|
|
@@ -757,9 +782,7 @@ export declare type JobSettings = {
|
|
|
757
782
|
CleanupJobsThresholdDays: number;
|
|
758
783
|
CleanupConfigThresholdDays: number;
|
|
759
784
|
};
|
|
760
|
-
export declare type ProductSettings = {
|
|
761
|
-
EnablePublicSharedBoards: boolean;
|
|
762
|
-
};
|
|
785
|
+
export declare type ProductSettings = {};
|
|
763
786
|
export declare type PluginSettings = {
|
|
764
787
|
Enable: boolean;
|
|
765
788
|
EnableUploads: boolean;
|
|
@@ -785,6 +808,7 @@ export declare type DisplaySettings = {
|
|
|
785
808
|
};
|
|
786
809
|
export declare type GuestAccountsSettings = {
|
|
787
810
|
Enable: boolean;
|
|
811
|
+
HideTags: boolean;
|
|
788
812
|
AllowEmailAccounts: boolean;
|
|
789
813
|
EnforceMultifactorAuthentication: boolean;
|
|
790
814
|
RestrictCreationToDomains: string;
|
|
@@ -875,3 +899,8 @@ export declare enum CollapsedThreads {
|
|
|
875
899
|
DEFAULT_OFF = "default_off",
|
|
876
900
|
ALWAYS_ON = "always_on"
|
|
877
901
|
}
|
|
902
|
+
export declare enum ServiceEnvironment {
|
|
903
|
+
PRODUCTION = "production",
|
|
904
|
+
TEST = "test",
|
|
905
|
+
DEV = "dev"
|
|
906
|
+
}
|
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/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/posts.d.ts
CHANGED
|
@@ -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.1.1",
|
|
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,83 +0,0 @@
|
|
|
1
|
-
import { RequireOnlyOne } from './utilities';
|
|
2
|
-
export declare type WorkTemplatesState = {
|
|
3
|
-
categories: Category[];
|
|
4
|
-
templatesInCategory: Record<string, WorkTemplate[]>;
|
|
5
|
-
playbookTemplates: PlaybookTemplateType[];
|
|
6
|
-
linkedProducts: Record<string, number>;
|
|
7
|
-
};
|
|
8
|
-
export interface PlaybookTemplateType {
|
|
9
|
-
title: string;
|
|
10
|
-
template: any;
|
|
11
|
-
}
|
|
12
|
-
export interface ExecuteWorkTemplateRequest {
|
|
13
|
-
team_id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
visibility: Visibility;
|
|
16
|
-
work_template: WorkTemplate;
|
|
17
|
-
playbook_templates?: PlaybookTemplateType[];
|
|
18
|
-
}
|
|
19
|
-
export interface ExecuteWorkTemplateResponse {
|
|
20
|
-
channel_with_playbook_ids: string[];
|
|
21
|
-
channel_ids: string[];
|
|
22
|
-
}
|
|
23
|
-
export interface WorkTemplate {
|
|
24
|
-
id: string;
|
|
25
|
-
category: string;
|
|
26
|
-
useCase: string;
|
|
27
|
-
description: Description;
|
|
28
|
-
illustration: string;
|
|
29
|
-
visibility: Visibility;
|
|
30
|
-
content: ValidContent[];
|
|
31
|
-
}
|
|
32
|
-
export declare const categories: string[];
|
|
33
|
-
export interface Category {
|
|
34
|
-
id: typeof categories[number];
|
|
35
|
-
name: string;
|
|
36
|
-
}
|
|
37
|
-
export interface Channel {
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
illustration: string;
|
|
41
|
-
playbook?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface Board {
|
|
44
|
-
id: string;
|
|
45
|
-
name: string;
|
|
46
|
-
illustration: string;
|
|
47
|
-
channel?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface Playbook {
|
|
50
|
-
id: string;
|
|
51
|
-
name: string;
|
|
52
|
-
illustration: string;
|
|
53
|
-
template: string;
|
|
54
|
-
}
|
|
55
|
-
export interface Integration {
|
|
56
|
-
id: string;
|
|
57
|
-
name?: string;
|
|
58
|
-
icon?: string;
|
|
59
|
-
installed?: boolean;
|
|
60
|
-
}
|
|
61
|
-
interface Content {
|
|
62
|
-
channel?: Channel;
|
|
63
|
-
board?: Board;
|
|
64
|
-
playbook?: Playbook;
|
|
65
|
-
integration?: Integration;
|
|
66
|
-
}
|
|
67
|
-
declare type ValidContent = RequireOnlyOne<Content, 'channel' | 'board' | 'playbook' | 'integration'>;
|
|
68
|
-
export interface MessageWithIllustration {
|
|
69
|
-
message: string;
|
|
70
|
-
illustration?: string;
|
|
71
|
-
}
|
|
72
|
-
declare type MessageWithMandatoryIllustration = Partial<MessageWithIllustration> & Required<Pick<MessageWithIllustration, 'illustration'>>;
|
|
73
|
-
interface Description {
|
|
74
|
-
channel: MessageWithIllustration;
|
|
75
|
-
board: MessageWithIllustration;
|
|
76
|
-
playbook: MessageWithIllustration;
|
|
77
|
-
integration: MessageWithMandatoryIllustration;
|
|
78
|
-
}
|
|
79
|
-
export declare enum Visibility {
|
|
80
|
-
Public = "public",
|
|
81
|
-
Private = "private"
|
|
82
|
-
}
|
|
83
|
-
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 = {}));
|