@mattermost/types 9.7.0 → 9.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 +17 -10
- package/lib/apps.d.ts +1 -1
- package/lib/autocomplete.d.ts +1 -1
- package/lib/channel_categories.d.ts +4 -4
- package/lib/channels.d.ts +2 -2
- package/lib/cloud.d.ts +3 -44
- package/lib/cloud.js +1 -16
- package/lib/config.d.ts +7 -6
- package/lib/drafts.d.ts +1 -1
- package/lib/general.d.ts +1 -1
- package/lib/groups.d.ts +2 -2
- package/lib/hosted_customer.d.ts +1 -63
- package/lib/hosted_customer.js +0 -10
- package/lib/integrations.d.ts +2 -2
- package/lib/jobs.d.ts +1 -1
- package/lib/limits.d.ts +2 -2
- package/lib/marketplace.d.ts +2 -2
- package/lib/message_attachments.d.ts +1 -1
- package/lib/posts.d.ts +13 -7
- package/lib/reports.d.ts +1 -1
- package/lib/sessions.d.ts +1 -1
- package/lib/store.d.ts +24 -24
- package/lib/teams.d.ts +3 -3
- package/lib/threads.d.ts +1 -1
- package/lib/users.d.ts +7 -6
- package/lib/utilities.d.ts +1 -1
- package/package.json +3 -2
package/lib/admin.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Audit } from './audits';
|
|
3
|
-
import { Compliance } from './compliance';
|
|
4
|
-
import { AdminConfig, ClientLicense, EnvironmentConfig } from './config';
|
|
5
|
-
import { DataRetentionCustomPolicies } from './data_retention';
|
|
6
|
-
import { MixedUnlinkedGroupRedux } from './groups';
|
|
7
|
-
import { PluginRedux, PluginStatusRedux } from './plugins';
|
|
8
|
-
import { SamlCertificateStatus, SamlMetadataResponse } from './saml';
|
|
9
|
-
import { Team } from './teams';
|
|
10
|
-
import { UserAccessToken, UserProfile } from './users';
|
|
11
|
-
import { RelationOneToOne } from './utilities';
|
|
2
|
+
import type { Audit } from './audits';
|
|
3
|
+
import type { Compliance } from './compliance';
|
|
4
|
+
import type { AdminConfig, ClientLicense, EnvironmentConfig } from './config';
|
|
5
|
+
import type { DataRetentionCustomPolicies } from './data_retention';
|
|
6
|
+
import type { MixedUnlinkedGroupRedux } from './groups';
|
|
7
|
+
import type { PluginRedux, PluginStatusRedux } from './plugins';
|
|
8
|
+
import type { SamlCertificateStatus, SamlMetadataResponse } from './saml';
|
|
9
|
+
import type { Team } from './teams';
|
|
10
|
+
import type { UserAccessToken, UserProfile } from './users';
|
|
11
|
+
import type { RelationOneToOne } from './utilities';
|
|
12
12
|
export declare enum LogLevelEnum {
|
|
13
13
|
SILLY = "silly",
|
|
14
14
|
DEBUG = "debug",
|
|
@@ -110,3 +110,10 @@ export type SchemaMigration = {
|
|
|
110
110
|
version: number;
|
|
111
111
|
name: string;
|
|
112
112
|
};
|
|
113
|
+
export type SupportPacketContent = {
|
|
114
|
+
id: string;
|
|
115
|
+
translation_id?: string;
|
|
116
|
+
label: string;
|
|
117
|
+
selected: boolean;
|
|
118
|
+
mandatory: boolean;
|
|
119
|
+
};
|
package/lib/apps.d.ts
CHANGED
package/lib/autocomplete.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Channel } from './channels';
|
|
2
|
-
import { Team } from './teams';
|
|
3
|
-
import { UserProfile } from './users';
|
|
4
|
-
import { IDMappedObjects, RelationOneToOne } from './utilities';
|
|
1
|
+
import type { Channel } from './channels';
|
|
2
|
+
import type { Team } from './teams';
|
|
3
|
+
import type { UserProfile } from './users';
|
|
4
|
+
import type { IDMappedObjects, RelationOneToOne } from './utilities';
|
|
5
5
|
export type ChannelCategoryType = 'favorites' | 'channels' | 'direct_messages' | 'custom';
|
|
6
6
|
export declare enum CategorySorting {
|
|
7
7
|
Alphabetical = "alpha",
|
package/lib/channels.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Team } from './teams';
|
|
2
|
+
import type { IDMappedObjects, RelationOneToManyUnique, RelationOneToOne } from './utilities';
|
|
3
3
|
export type ChannelType = 'O' | 'P' | 'D' | 'G' | 'threads';
|
|
4
4
|
export type ChannelStats = {
|
|
5
5
|
channel_id: string;
|
package/lib/cloud.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { AllowedIPRange } from './config';
|
|
2
|
-
import { ValueOf } from './utilities';
|
|
1
|
+
import type { AllowedIPRange } from './config';
|
|
3
2
|
export type CloudState = {
|
|
4
3
|
subscription?: Subscription;
|
|
5
4
|
products?: Record<string, Product>;
|
|
6
5
|
customer?: CloudCustomer;
|
|
7
6
|
invoices?: Record<string, Invoice>;
|
|
8
|
-
subscriptionStats?: LicenseSelfServeStatusReducer;
|
|
9
7
|
limits: {
|
|
10
8
|
limitsLoaded: boolean;
|
|
11
9
|
limits: Limits;
|
|
@@ -18,9 +16,6 @@ export type CloudState = {
|
|
|
18
16
|
limits?: true;
|
|
19
17
|
trueUpReview?: true;
|
|
20
18
|
};
|
|
21
|
-
selfHostedSignup: {
|
|
22
|
-
progress: ValueOf<typeof SelfHostedSignupProgress>;
|
|
23
|
-
};
|
|
24
19
|
};
|
|
25
20
|
export type Installation = {
|
|
26
21
|
id: string;
|
|
@@ -65,23 +60,6 @@ export type AddOn = {
|
|
|
65
60
|
display_name: string;
|
|
66
61
|
price_per_seat: number;
|
|
67
62
|
};
|
|
68
|
-
export declare const TypePurchases: {
|
|
69
|
-
readonly firstSelfHostLicensePurchase: "first_purchase";
|
|
70
|
-
readonly renewalSelfHost: "renewal_self";
|
|
71
|
-
readonly monthlySubscription: "monthly_subscription";
|
|
72
|
-
readonly annualSubscription: "annual_subscription";
|
|
73
|
-
};
|
|
74
|
-
export declare const SelfHostedSignupProgress: {
|
|
75
|
-
readonly START: "START";
|
|
76
|
-
readonly CREATED_CUSTOMER: "CREATED_CUSTOMER";
|
|
77
|
-
readonly CREATED_INTENT: "CREATED_INTENT";
|
|
78
|
-
readonly CONFIRMED_INTENT: "CONFIRMED_INTENT";
|
|
79
|
-
readonly CREATED_SUBSCRIPTION: "CREATED_SUBSCRIPTION";
|
|
80
|
-
readonly PAID: "PAID";
|
|
81
|
-
readonly CREATED_LICENSE: "CREATED_LICENSE";
|
|
82
|
-
};
|
|
83
|
-
export type MetadataGatherWireTransferKeys = `${ValueOf<typeof TypePurchases>}_alt_payment_method`;
|
|
84
|
-
export type CustomerMetadataGatherWireTransfer = Partial<Record<MetadataGatherWireTransferKeys, string>>;
|
|
85
63
|
export type CloudCustomer = {
|
|
86
64
|
id: string;
|
|
87
65
|
creator_id: string;
|
|
@@ -94,22 +72,14 @@ export type CloudCustomer = {
|
|
|
94
72
|
billing_address: Address;
|
|
95
73
|
company_address: Address;
|
|
96
74
|
payment_method: PaymentMethod;
|
|
97
|
-
}
|
|
98
|
-
export type LicenseSelfServeStatus = {
|
|
99
|
-
is_expandable?: boolean;
|
|
100
|
-
is_renewable?: boolean;
|
|
101
|
-
};
|
|
102
|
-
type RequestState = 'IDLE' | 'LOADING' | 'ERROR' | 'OK';
|
|
103
|
-
export interface LicenseSelfServeStatusReducer extends LicenseSelfServeStatus {
|
|
104
|
-
getRequestState: RequestState;
|
|
105
|
-
}
|
|
75
|
+
};
|
|
106
76
|
export type CloudCustomerPatch = {
|
|
107
77
|
email?: string;
|
|
108
78
|
name?: string;
|
|
109
79
|
num_employees?: number;
|
|
110
80
|
contact_first_name?: string;
|
|
111
81
|
contact_last_name?: string;
|
|
112
|
-
}
|
|
82
|
+
};
|
|
113
83
|
export type Address = {
|
|
114
84
|
city: string;
|
|
115
85
|
country: string;
|
|
@@ -192,12 +162,6 @@ export type TeamsUsage = {
|
|
|
192
162
|
export type ValidBusinessEmail = {
|
|
193
163
|
is_valid: boolean;
|
|
194
164
|
};
|
|
195
|
-
export interface CreateSubscriptionRequest {
|
|
196
|
-
product_id: string;
|
|
197
|
-
add_ons: string[];
|
|
198
|
-
seats: number;
|
|
199
|
-
internal_purchase_order?: string;
|
|
200
|
-
}
|
|
201
165
|
export interface NewsletterRequestBody {
|
|
202
166
|
email: string;
|
|
203
167
|
subscribed_content: string;
|
|
@@ -207,8 +171,3 @@ export type Feedback = {
|
|
|
207
171
|
reason: string;
|
|
208
172
|
comments: string;
|
|
209
173
|
};
|
|
210
|
-
export type WorkspaceDeletionRequest = {
|
|
211
|
-
subscription_id: string;
|
|
212
|
-
delete_feedback: Feedback;
|
|
213
|
-
};
|
|
214
|
-
export {};
|
package/lib/cloud.js
CHANGED
|
@@ -2,22 +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.areShippingDetailsValid = exports.InvoiceLineItemType =
|
|
6
|
-
exports.TypePurchases = {
|
|
7
|
-
firstSelfHostLicensePurchase: 'first_purchase',
|
|
8
|
-
renewalSelfHost: 'renewal_self',
|
|
9
|
-
monthlySubscription: 'monthly_subscription',
|
|
10
|
-
annualSubscription: 'annual_subscription',
|
|
11
|
-
};
|
|
12
|
-
exports.SelfHostedSignupProgress = {
|
|
13
|
-
START: 'START',
|
|
14
|
-
CREATED_CUSTOMER: 'CREATED_CUSTOMER',
|
|
15
|
-
CREATED_INTENT: 'CREATED_INTENT',
|
|
16
|
-
CONFIRMED_INTENT: 'CONFIRMED_INTENT',
|
|
17
|
-
CREATED_SUBSCRIPTION: 'CREATED_SUBSCRIPTION',
|
|
18
|
-
PAID: 'PAID',
|
|
19
|
-
CREATED_LICENSE: 'CREATED_LICENSE',
|
|
20
|
-
};
|
|
5
|
+
exports.areShippingDetailsValid = exports.InvoiceLineItemType = void 0;
|
|
21
6
|
// actual string values come from customer-web-server and should be kept in sync with values seen there
|
|
22
7
|
exports.InvoiceLineItemType = {
|
|
23
8
|
Full: 'full',
|
package/lib/config.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export type ClientConfig = {
|
|
|
35
35
|
DiagnosticId: string;
|
|
36
36
|
DiagnosticsEnabled: string;
|
|
37
37
|
DisableRefetchingOnBrowserFocus: string;
|
|
38
|
+
DisableWakeUpReconnectHandler: string;
|
|
38
39
|
EmailLoginButtonBorderColor: string;
|
|
39
40
|
EmailLoginButtonColor: string;
|
|
40
41
|
EmailLoginButtonTextColor: string;
|
|
@@ -43,6 +44,7 @@ export type ClientConfig = {
|
|
|
43
44
|
EnableBanner: string;
|
|
44
45
|
EnableBotAccountCreation: string;
|
|
45
46
|
EnableChannelViewedMessages: string;
|
|
47
|
+
EnableClientMetrics: string;
|
|
46
48
|
EnableClientPerformanceDebugging: string;
|
|
47
49
|
EnableCluster: string;
|
|
48
50
|
EnableCommands: string;
|
|
@@ -293,6 +295,7 @@ export type ServiceSettings = {
|
|
|
293
295
|
EnableOAuthServiceProvider: boolean;
|
|
294
296
|
EnableIncomingWebhooks: boolean;
|
|
295
297
|
EnableOutgoingWebhooks: boolean;
|
|
298
|
+
EnableOutgoingOAuthConnections: boolean;
|
|
296
299
|
EnableCommands: boolean;
|
|
297
300
|
OutgoingIntegrationRequestsTimeout: number;
|
|
298
301
|
EnablePostUsernameOverride: boolean;
|
|
@@ -511,6 +514,7 @@ export type FileSettings = {
|
|
|
511
514
|
AmazonS3SSE: boolean;
|
|
512
515
|
AmazonS3Trace: boolean;
|
|
513
516
|
AmazonS3RequestTimeoutMilliseconds: number;
|
|
517
|
+
AmazonS3UploadPartSizeBytes: number;
|
|
514
518
|
DedicatedExportStore: boolean;
|
|
515
519
|
ExportDriverName: string;
|
|
516
520
|
ExportDirectory: string;
|
|
@@ -526,6 +530,7 @@ export type FileSettings = {
|
|
|
526
530
|
ExportAmazonS3Trace: boolean;
|
|
527
531
|
ExportAmazonS3RequestTimeoutMilliseconds: number;
|
|
528
532
|
ExportAmazonS3PresignExpiresSeconds: number;
|
|
533
|
+
ExportAmazonS3UploadPartSizeBytes: number;
|
|
529
534
|
};
|
|
530
535
|
export type EmailSettings = {
|
|
531
536
|
EnableSignUpWithEmail: boolean;
|
|
@@ -729,10 +734,6 @@ export type ClusterSettings = {
|
|
|
729
734
|
EnableExperimentalGossipEncryption: boolean;
|
|
730
735
|
ReadOnlyConfig: boolean;
|
|
731
736
|
GossipPort: number;
|
|
732
|
-
StreamingPort: number;
|
|
733
|
-
MaxIdleConns: number;
|
|
734
|
-
MaxIdleConnsPerHost: number;
|
|
735
|
-
IdleConnTimeoutMilliseconds: number;
|
|
736
737
|
};
|
|
737
738
|
export type MetricsSettings = {
|
|
738
739
|
Enable: boolean;
|
|
@@ -744,7 +745,6 @@ export type ExperimentalSettings = {
|
|
|
744
745
|
ClientSideCertCheck: string;
|
|
745
746
|
LinkMetadataTimeoutMilliseconds: number;
|
|
746
747
|
RestrictSystemAdmin: boolean;
|
|
747
|
-
UseNewSAMLLibrary: boolean;
|
|
748
748
|
EnableSharedChannels: boolean;
|
|
749
749
|
EnableRemoteClusterService: boolean;
|
|
750
750
|
DisableAppBar: boolean;
|
|
@@ -825,7 +825,7 @@ export type JobSettings = {
|
|
|
825
825
|
CleanupJobsThresholdDays: number;
|
|
826
826
|
CleanupConfigThresholdDays: number;
|
|
827
827
|
};
|
|
828
|
-
export type ProductSettings =
|
|
828
|
+
export type ProductSettings = Record<string, never>;
|
|
829
829
|
export type PluginSettings = {
|
|
830
830
|
Enable: boolean;
|
|
831
831
|
EnableUploads: boolean;
|
|
@@ -866,6 +866,7 @@ export type CloudSettings = {
|
|
|
866
866
|
CWSURL: string;
|
|
867
867
|
CWSAPIURL: string;
|
|
868
868
|
CWSMock: boolean;
|
|
869
|
+
Disable: boolean;
|
|
869
870
|
};
|
|
870
871
|
export type FeatureFlags = Record<string, string | boolean>;
|
|
871
872
|
export type ImportSettings = {
|
package/lib/drafts.d.ts
CHANGED
package/lib/general.d.ts
CHANGED
package/lib/groups.d.ts
CHANGED
package/lib/hosted_customer.d.ts
CHANGED
|
@@ -1,69 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { ValueOf } from './utilities';
|
|
3
|
-
export declare const SelfHostedSignupProgress: {
|
|
4
|
-
readonly START: "START";
|
|
5
|
-
readonly CREATED_CUSTOMER: "CREATED_CUSTOMER";
|
|
6
|
-
readonly CREATED_INTENT: "CREATED_INTENT";
|
|
7
|
-
readonly CONFIRMED_INTENT: "CONFIRMED_INTENT";
|
|
8
|
-
readonly CREATED_SUBSCRIPTION: "CREATED_SUBSCRIPTION";
|
|
9
|
-
readonly PAID: "PAID";
|
|
10
|
-
readonly CREATED_LICENSE: "CREATED_LICENSE";
|
|
11
|
-
};
|
|
12
|
-
export interface SelfHostedSignupForm {
|
|
13
|
-
first_name: string;
|
|
14
|
-
last_name: string;
|
|
15
|
-
billing_address: Address;
|
|
16
|
-
shipping_address: Address;
|
|
17
|
-
organization: string;
|
|
18
|
-
}
|
|
19
|
-
export interface SelfHostedSignupBootstrapResponse {
|
|
20
|
-
progress: ValueOf<typeof SelfHostedSignupProgress>;
|
|
21
|
-
email: string;
|
|
22
|
-
}
|
|
23
|
-
export interface SelfHostedSignupCustomerResponse {
|
|
24
|
-
customer_id: string;
|
|
25
|
-
setup_intent_id: string;
|
|
26
|
-
setup_intent_secret: string;
|
|
27
|
-
progress: ValueOf<typeof SelfHostedSignupProgress>;
|
|
28
|
-
}
|
|
29
|
-
export interface SelfHostedSignupSuccessResponse {
|
|
30
|
-
progress: ValueOf<typeof SelfHostedSignupProgress>;
|
|
31
|
-
license: Record<string, string>;
|
|
32
|
-
}
|
|
1
|
+
import type { Product } from './cloud';
|
|
33
2
|
export type HostedCustomerState = {
|
|
34
3
|
products: {
|
|
35
4
|
products: Record<string, Product>;
|
|
36
5
|
productsLoaded: boolean;
|
|
37
6
|
};
|
|
38
|
-
invoices: {
|
|
39
|
-
invoices: Record<string, Invoice>;
|
|
40
|
-
invoicesLoaded: boolean;
|
|
41
|
-
};
|
|
42
|
-
errors: {
|
|
43
|
-
products?: true;
|
|
44
|
-
invoices?: true;
|
|
45
|
-
trueUpReview?: true;
|
|
46
|
-
};
|
|
47
|
-
signupProgress: ValueOf<typeof SelfHostedSignupProgress>;
|
|
48
|
-
trueUpReviewStatus: TrueUpReviewStatusReducer;
|
|
49
|
-
trueUpReviewProfile: TrueUpReviewProfileReducer;
|
|
50
|
-
};
|
|
51
|
-
export type TrueUpReviewProfile = {
|
|
52
|
-
content: string;
|
|
53
|
-
};
|
|
54
|
-
export type TrueUpReviewStatus = {
|
|
55
|
-
due_date: number;
|
|
56
|
-
complete: boolean;
|
|
57
|
-
};
|
|
58
|
-
type RequestState = 'IDLE' | 'LOADING' | 'OK';
|
|
59
|
-
export interface TrueUpReviewProfileReducer extends TrueUpReviewProfile {
|
|
60
|
-
getRequestState: RequestState;
|
|
61
|
-
}
|
|
62
|
-
export interface TrueUpReviewStatusReducer extends TrueUpReviewStatus {
|
|
63
|
-
getRequestState: RequestState;
|
|
64
|
-
}
|
|
65
|
-
export type SelfHostedExpansionRequest = {
|
|
66
|
-
seats: number;
|
|
67
|
-
license_id: string;
|
|
68
7
|
};
|
|
69
|
-
export {};
|
package/lib/hosted_customer.js
CHANGED
|
@@ -2,13 +2,3 @@
|
|
|
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.SelfHostedSignupProgress = void 0;
|
|
6
|
-
exports.SelfHostedSignupProgress = {
|
|
7
|
-
START: 'START',
|
|
8
|
-
CREATED_CUSTOMER: 'CREATED_CUSTOMER',
|
|
9
|
-
CREATED_INTENT: 'CREATED_INTENT',
|
|
10
|
-
CONFIRMED_INTENT: 'CONFIRMED_INTENT',
|
|
11
|
-
CREATED_SUBSCRIPTION: 'CREATED_SUBSCRIPTION',
|
|
12
|
-
PAID: 'PAID',
|
|
13
|
-
CREATED_LICENSE: 'CREATED_LICENSE',
|
|
14
|
-
};
|
package/lib/integrations.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MessageAttachment } from './message_attachments';
|
|
2
|
-
import { IDMappedObjects } from './utilities';
|
|
1
|
+
import type { MessageAttachment } from './message_attachments';
|
|
2
|
+
import type { IDMappedObjects } from './utilities';
|
|
3
3
|
export type IncomingWebhook = {
|
|
4
4
|
id: string;
|
|
5
5
|
create_at: number;
|
package/lib/jobs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDMappedObjects } from './utilities';
|
|
1
|
+
import type { IDMappedObjects } from './utilities';
|
|
2
2
|
export type JobType = 'data_retention' | 'elasticsearch_post_indexing' | 'bleve_post_indexing' | 'ldap_sync' | 'message_export';
|
|
3
3
|
export type JobStatus = 'pending' | 'in_progress' | 'success' | 'error' | 'cancel_requested' | 'canceled' | 'warning';
|
|
4
4
|
export type Job = JobTypeBase & {
|
package/lib/limits.d.ts
CHANGED
package/lib/marketplace.d.ts
CHANGED
package/lib/posts.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Channel, ChannelType } from './channels';
|
|
2
|
-
import { CustomEmoji } from './emojis';
|
|
3
|
-
import { FileInfo } from './files';
|
|
4
|
-
import { Reaction } from './reactions';
|
|
5
|
-
import { TeamType } from './teams';
|
|
6
|
-
import { UserProfile } from './users';
|
|
7
|
-
import { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
|
|
1
|
+
import type { Channel, ChannelType } from './channels';
|
|
2
|
+
import type { CustomEmoji } from './emojis';
|
|
3
|
+
import type { FileInfo } from './files';
|
|
4
|
+
import type { Reaction } from './reactions';
|
|
5
|
+
import type { TeamType } from './teams';
|
|
6
|
+
import type { UserProfile } from './users';
|
|
7
|
+
import type { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
|
|
8
8
|
export 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' | 'system_wrangler' | '';
|
|
9
9
|
export type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
|
|
10
10
|
export type PostEmbed = {
|
|
@@ -173,3 +173,9 @@ export type PostInfo = {
|
|
|
173
173
|
team_display_name: string;
|
|
174
174
|
has_joined_team: boolean;
|
|
175
175
|
};
|
|
176
|
+
export type NotificationStatus = 'error' | 'not_sent' | 'unsupported' | 'success';
|
|
177
|
+
export type NotificationResult = {
|
|
178
|
+
status: NotificationStatus;
|
|
179
|
+
reason?: string;
|
|
180
|
+
data?: string;
|
|
181
|
+
};
|
package/lib/reports.d.ts
CHANGED
package/lib/sessions.d.ts
CHANGED
package/lib/store.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { AdminState } from './admin';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ChannelCategoriesState } from './channel_categories';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { EmojisState } from './emojis';
|
|
8
|
-
import { FilesState } from './files';
|
|
9
|
-
import { GeneralState } from './general';
|
|
10
|
-
import { GroupsState } from './groups';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
1
|
+
import type { AdminState } from './admin';
|
|
2
|
+
import type { AppsState } from './apps';
|
|
3
|
+
import type { Bot } from './bots';
|
|
4
|
+
import type { ChannelCategoriesState } from './channel_categories';
|
|
5
|
+
import type { ChannelsState } from './channels';
|
|
6
|
+
import type { CloudState, CloudUsage } from './cloud';
|
|
7
|
+
import type { EmojisState } from './emojis';
|
|
8
|
+
import type { FilesState } from './files';
|
|
9
|
+
import type { GeneralState } from './general';
|
|
10
|
+
import type { GroupsState } from './groups';
|
|
11
|
+
import type { HostedCustomerState } from './hosted_customer';
|
|
12
|
+
import type { IntegrationsState } from './integrations';
|
|
13
|
+
import type { JobsState } from './jobs';
|
|
14
|
+
import type { LimitsState } from './limits';
|
|
15
|
+
import type { PostsState } from './posts';
|
|
16
|
+
import type { PreferenceType } from './preferences';
|
|
17
|
+
import type { AdminRequestsStatuses, ChannelsRequestsStatuses, FilesRequestsStatuses, GeneralRequestsStatuses, PostsRequestsStatuses, RolesRequestsStatuses, TeamsRequestsStatuses, UsersRequestsStatuses } from './requests';
|
|
18
|
+
import type { Role } from './roles';
|
|
19
|
+
import type { SchemesState } from './schemes';
|
|
20
|
+
import type { SearchState } from './search';
|
|
21
|
+
import type { TeamsState } from './teams';
|
|
22
|
+
import type { ThreadsState } from './threads';
|
|
23
|
+
import type { Typing } from './typing';
|
|
24
|
+
import type { UsersState } from './users';
|
|
25
25
|
export type GlobalState = {
|
|
26
26
|
entities: {
|
|
27
27
|
general: GeneralState;
|
package/lib/teams.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ServerError } from './errors';
|
|
2
|
-
import { UserProfile } from './users';
|
|
3
|
-
import { RelationOneToOne } from './utilities';
|
|
1
|
+
import type { ServerError } from './errors';
|
|
2
|
+
import type { UserProfile } from './users';
|
|
3
|
+
import type { RelationOneToOne } from './utilities';
|
|
4
4
|
export type TeamMembership = TeamUnread & {
|
|
5
5
|
user_id: string;
|
|
6
6
|
roles: string;
|
package/lib/threads.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Channel } from './channels';
|
|
1
2
|
import type { Post } from './posts';
|
|
2
3
|
import type { Team } from './teams';
|
|
3
|
-
import type { Channel } from './channels';
|
|
4
4
|
import type { UserProfile } from './users';
|
|
5
5
|
import type { IDMappedObjects, RelationOneToMany, RelationOneToOne } from './utilities';
|
|
6
6
|
export declare enum UserThreadType {
|
package/lib/users.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Audit } from './audits';
|
|
2
|
-
import { Channel } from './channels';
|
|
3
|
-
import { Group } from './groups';
|
|
4
|
-
import { Session } from './sessions';
|
|
5
|
-
import { Team } from './teams';
|
|
6
|
-
import { IDMappedObjects, RelationOneToManyUnique, RelationOneToOne } from './utilities';
|
|
1
|
+
import type { Audit } from './audits';
|
|
2
|
+
import type { Channel } from './channels';
|
|
3
|
+
import type { Group } from './groups';
|
|
4
|
+
import type { Session } from './sessions';
|
|
5
|
+
import type { Team } from './teams';
|
|
6
|
+
import type { IDMappedObjects, RelationOneToManyUnique, RelationOneToOne } from './utilities';
|
|
7
7
|
export type UserNotifyProps = {
|
|
8
8
|
desktop: 'default' | 'all' | 'mention' | 'none';
|
|
9
9
|
desktop_sound: 'true' | 'false';
|
|
@@ -75,6 +75,7 @@ export type UsersState = {
|
|
|
75
75
|
filteredStats: Partial<UsersStats>;
|
|
76
76
|
myUserAccessTokens: Record<string, UserAccessToken>;
|
|
77
77
|
lastActivity: RelationOneToOne<UserProfile, number>;
|
|
78
|
+
dndEndTimes: RelationOneToOne<UserProfile, number>;
|
|
78
79
|
};
|
|
79
80
|
export type UserTimezone = {
|
|
80
81
|
useAutomaticTimezone: boolean | string;
|
package/lib/utilities.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type IDMappedObjects<E extends {
|
|
|
21
21
|
id: string;
|
|
22
22
|
}> = RelationOneToOne<E, E>;
|
|
23
23
|
export type DeepPartial<T> = {
|
|
24
|
-
[K in keyof T]?: T[K] extends Set<any> ? T[K] : T[K] extends Map<any, any> ? T[K] : T[K] extends object ? DeepPartial<T[K]> : T[K] extends object | undefined ? DeepPartial<T[K]> : T[K];
|
|
24
|
+
[K in keyof T]?: (T[K] extends Set<any> ? T[K] : T[K] extends Map<any, any> ? T[K] : T[K] extends object ? DeepPartial<T[K]> : T[K] extends object | undefined ? DeepPartial<T[K]> : T[K]);
|
|
25
25
|
};
|
|
26
26
|
export type ValueOf<T> = T[keyof T];
|
|
27
27
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattermost/types",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.9.0",
|
|
4
4
|
"description": "Shared type definitions used by the Mattermost web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mattermost"
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsc --build --verbose",
|
|
41
|
+
"check": "eslint --ext .js,.jsx,.tsx,.ts ./src --quiet",
|
|
41
42
|
"run": "tsc --watch --preserveWatchOutput",
|
|
42
|
-
"clean": "rm -rf
|
|
43
|
+
"clean": "rm -rf lib *.tsbuildinfo"
|
|
43
44
|
}
|
|
44
45
|
}
|