@mattermost/types 9.8.0 → 9.10.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 CHANGED
@@ -100,11 +100,17 @@ export type AnalyticsRow = {
100
100
  export type IndexedPluginAnalyticsRow = {
101
101
  [key: string]: PluginAnalyticsRow;
102
102
  };
103
+ export declare enum AnalyticsVisualizationType {
104
+ Count = "count",
105
+ LineChart = "line_chart",
106
+ DoughnutChart = "doughnut_chart"
107
+ }
103
108
  export type PluginAnalyticsRow = {
104
109
  id: string;
105
110
  name: React.ReactNode;
106
- icon: string;
107
- value: number;
111
+ icon?: string;
112
+ value: any;
113
+ visualizationType?: AnalyticsVisualizationType;
108
114
  };
109
115
  export type SchemaMigration = {
110
116
  version: number;
package/lib/admin.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.LogLevelEnum = void 0;
5
+ exports.AnalyticsVisualizationType = exports.LogLevelEnum = void 0;
6
6
  var LogLevelEnum;
7
7
  (function (LogLevelEnum) {
8
8
  LogLevelEnum["SILLY"] = "silly";
@@ -11,3 +11,9 @@ var LogLevelEnum;
11
11
  LogLevelEnum["WARN"] = "warn";
12
12
  LogLevelEnum["ERROR"] = "error";
13
13
  })(LogLevelEnum || (exports.LogLevelEnum = LogLevelEnum = {}));
14
+ var AnalyticsVisualizationType;
15
+ (function (AnalyticsVisualizationType) {
16
+ AnalyticsVisualizationType["Count"] = "count";
17
+ AnalyticsVisualizationType["LineChart"] = "line_chart";
18
+ AnalyticsVisualizationType["DoughnutChart"] = "doughnut_chart";
19
+ })(AnalyticsVisualizationType || (exports.AnalyticsVisualizationType = AnalyticsVisualizationType = {}));
package/lib/cloud.d.ts CHANGED
@@ -1,11 +1,9 @@
1
1
  import type { AllowedIPRange } from './config';
2
- import type { ValueOf } from './utilities';
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
- } & CustomerMetadataGatherWireTransfer;
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
- } & CustomerMetadataGatherWireTransfer;
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 = exports.SelfHostedSignupProgress = exports.TypePurchases = void 0;
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;
@@ -205,6 +207,7 @@ export type ClientConfig = {
205
207
  WranglerMoveThreadFromGroupMessageChannelEnable: string;
206
208
  ServiceEnvironment: string;
207
209
  UniqueEmojiReactionLimitPerPost: string;
210
+ UsersStatusAndProfileFetchingPollIntervalMilliseconds: string;
208
211
  };
209
212
  export type License = {
210
213
  id: string;
@@ -512,6 +515,7 @@ export type FileSettings = {
512
515
  AmazonS3SSE: boolean;
513
516
  AmazonS3Trace: boolean;
514
517
  AmazonS3RequestTimeoutMilliseconds: number;
518
+ AmazonS3UploadPartSizeBytes: number;
515
519
  DedicatedExportStore: boolean;
516
520
  ExportDriverName: string;
517
521
  ExportDirectory: string;
@@ -527,6 +531,7 @@ export type FileSettings = {
527
531
  ExportAmazonS3Trace: boolean;
528
532
  ExportAmazonS3RequestTimeoutMilliseconds: number;
529
533
  ExportAmazonS3PresignExpiresSeconds: number;
534
+ ExportAmazonS3UploadPartSizeBytes: number;
530
535
  };
531
536
  export type EmailSettings = {
532
537
  EnableSignUpWithEmail: boolean;
@@ -1,69 +1,7 @@
1
- import type { Address, Product, Invoice } from './cloud';
2
- import type { 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 {};
@@ -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/limits.d.ts CHANGED
@@ -4,6 +4,4 @@ export type LimitsState = {
4
4
  export type ServerLimits = {
5
5
  activeUserCount: number;
6
6
  maxUsersLimit: number;
7
- maxPostLimit: number;
8
- postCount: number;
9
7
  };
package/lib/users.d.ts CHANGED
@@ -24,6 +24,8 @@ export type UserNotifyProps = {
24
24
  push_threads?: 'default' | 'all' | 'mention' | 'none';
25
25
  auto_responder_active?: 'true' | 'false';
26
26
  auto_responder_message?: string;
27
+ calls_mobile_sound?: 'true' | 'false' | '';
28
+ calls_mobile_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful' | '';
27
29
  };
28
30
  export type UserProfile = {
29
31
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "9.8.0",
3
+ "version": "9.10.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"