@mattermost/types 9.8.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/cloud.d.ts +2 -43
- package/lib/cloud.js +1 -16
- package/lib/config.d.ts +4 -0
- package/lib/hosted_customer.d.ts +1 -63
- package/lib/hosted_customer.js +0 -10
- package/lib/limits.d.ts +0 -2
- package/package.json +1 -1
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
|
-
}
|
|
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;
|
|
@@ -512,6 +514,7 @@ export type FileSettings = {
|
|
|
512
514
|
AmazonS3SSE: boolean;
|
|
513
515
|
AmazonS3Trace: boolean;
|
|
514
516
|
AmazonS3RequestTimeoutMilliseconds: number;
|
|
517
|
+
AmazonS3UploadPartSizeBytes: number;
|
|
515
518
|
DedicatedExportStore: boolean;
|
|
516
519
|
ExportDriverName: string;
|
|
517
520
|
ExportDirectory: string;
|
|
@@ -527,6 +530,7 @@ export type FileSettings = {
|
|
|
527
530
|
ExportAmazonS3Trace: boolean;
|
|
528
531
|
ExportAmazonS3RequestTimeoutMilliseconds: number;
|
|
529
532
|
ExportAmazonS3PresignExpiresSeconds: number;
|
|
533
|
+
ExportAmazonS3UploadPartSizeBytes: number;
|
|
530
534
|
};
|
|
531
535
|
export type EmailSettings = {
|
|
532
536
|
EnableSignUpWithEmail: boolean;
|
package/lib/hosted_customer.d.ts
CHANGED
|
@@ -1,69 +1,7 @@
|
|
|
1
|
-
import type {
|
|
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 {};
|
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/limits.d.ts
CHANGED