@mattermost/types 6.7.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 +53 -0
- package/lib/admin.d.ts +50 -0
- package/lib/admin.js +4 -0
- package/lib/apps.d.ts +182 -0
- package/lib/apps.js +24 -0
- package/lib/audits.d.ts +9 -0
- package/lib/audits.js +4 -0
- package/lib/autocomplete.d.ts +12 -0
- package/lib/autocomplete.js +4 -0
- package/lib/bots.d.ts +15 -0
- package/lib/bots.js +4 -0
- package/lib/channel_categories.d.ts +30 -0
- package/lib/channel_categories.js +12 -0
- package/lib/channels.d.ts +165 -0
- package/lib/channels.js +4 -0
- package/lib/client4.d.ts +41 -0
- package/lib/client4.js +12 -0
- package/lib/cloud.d.ts +102 -0
- package/lib/cloud.js +12 -0
- package/lib/compliance.d.ts +13 -0
- package/lib/compliance.js +4 -0
- package/lib/config.d.ts +781 -0
- package/lib/config.js +11 -0
- package/lib/data_retention.d.ts +30 -0
- package/lib/data_retention.js +4 -0
- package/lib/emojis.d.ts +28 -0
- package/lib/emojis.js +4 -0
- package/lib/errors.d.ts +12 -0
- package/lib/errors.js +4 -0
- package/lib/files.d.ts +37 -0
- package/lib/files.js +4 -0
- package/lib/general.d.ts +26 -0
- package/lib/general.js +24 -0
- package/lib/groups.d.ts +132 -0
- package/lib/groups.js +4 -0
- package/lib/integration_actions.d.ts +24 -0
- package/lib/integration_actions.js +4 -0
- package/lib/integrations.d.ts +150 -0
- package/lib/integrations.js +4 -0
- package/lib/jobs.d.ts +23 -0
- package/lib/jobs.js +2 -0
- package/lib/marketplace.d.ts +43 -0
- package/lib/marketplace.js +22 -0
- package/lib/message_attachments.d.ts +25 -0
- package/lib/message_attachments.js +4 -0
- package/lib/mfa.d.ts +4 -0
- package/lib/mfa.js +4 -0
- package/lib/plugins.d.ts +119 -0
- package/lib/plugins.js +22 -0
- package/lib/posts.d.ts +126 -0
- package/lib/posts.js +4 -0
- package/lib/preferences.d.ts +9 -0
- package/lib/preferences.js +4 -0
- package/lib/product_notices.d.ts +26 -0
- package/lib/product_notices.js +9 -0
- package/lib/reactions.d.ts +6 -0
- package/lib/reactions.js +2 -0
- package/lib/requests.d.ts +102 -0
- package/lib/requests.js +4 -0
- package/lib/roles.d.ts +13 -0
- package/lib/roles.js +2 -0
- package/lib/saml.d.ts +10 -0
- package/lib/saml.js +4 -0
- package/lib/schemes.d.ts +29 -0
- package/lib/schemes.js +2 -0
- package/lib/search.d.ts +27 -0
- package/lib/search.js +4 -0
- package/lib/sessions.d.ts +15 -0
- package/lib/sessions.js +4 -0
- package/lib/setup.d.ts +3 -0
- package/lib/setup.js +4 -0
- package/lib/store.d.ts +76 -0
- package/lib/store.js +4 -0
- package/lib/teams.d.ts +90 -0
- package/lib/teams.js +4 -0
- package/lib/terms_of_service.d.ts +6 -0
- package/lib/terms_of_service.js +4 -0
- package/lib/themes.d.ts +34 -0
- package/lib/themes.js +4 -0
- package/lib/threads.d.ts +59 -0
- package/lib/threads.js +13 -0
- package/lib/typing.d.ts +5 -0
- package/lib/typing.js +2 -0
- package/lib/users.d.ts +134 -0
- package/lib/users.js +16 -0
- package/lib/utilities.d.ts +25 -0
- package/lib/utilities.js +4 -0
- package/lib/websocket.d.ts +17 -0
- package/lib/websocket.js +4 -0
- package/package.json +34 -0
package/lib/cloud.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare type CloudState = {
|
|
2
|
+
subscription?: Subscription;
|
|
3
|
+
products?: Record<string, Product>;
|
|
4
|
+
customer?: CloudCustomer;
|
|
5
|
+
invoices?: Record<string, Invoice>;
|
|
6
|
+
};
|
|
7
|
+
export declare type Subscription = {
|
|
8
|
+
id: string;
|
|
9
|
+
customer_id: string;
|
|
10
|
+
product_id: string;
|
|
11
|
+
add_ons: string[];
|
|
12
|
+
start_at: number;
|
|
13
|
+
end_at: number;
|
|
14
|
+
create_at: number;
|
|
15
|
+
seats: number;
|
|
16
|
+
is_paid_tier: string;
|
|
17
|
+
last_invoice?: Invoice;
|
|
18
|
+
trial_end_at: number;
|
|
19
|
+
is_free_trial: string;
|
|
20
|
+
};
|
|
21
|
+
export declare type Product = {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
price_per_seat: number;
|
|
26
|
+
add_ons: AddOn[];
|
|
27
|
+
product_family: string;
|
|
28
|
+
sku: string;
|
|
29
|
+
billing_scheme: string;
|
|
30
|
+
recurring_interval: string;
|
|
31
|
+
};
|
|
32
|
+
export declare type AddOn = {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
display_name: string;
|
|
36
|
+
price_per_seat: number;
|
|
37
|
+
};
|
|
38
|
+
export declare type CloudCustomer = {
|
|
39
|
+
id: string;
|
|
40
|
+
creator_id: string;
|
|
41
|
+
create_at: number;
|
|
42
|
+
email: string;
|
|
43
|
+
name: string;
|
|
44
|
+
num_employees: number;
|
|
45
|
+
contact_first_name: string;
|
|
46
|
+
contact_last_name: string;
|
|
47
|
+
billing_address: Address;
|
|
48
|
+
company_address: Address;
|
|
49
|
+
payment_method: PaymentMethod;
|
|
50
|
+
};
|
|
51
|
+
export declare type CloudCustomerPatch = {
|
|
52
|
+
email?: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
num_employees?: number;
|
|
55
|
+
contact_first_name?: string;
|
|
56
|
+
contact_last_name?: string;
|
|
57
|
+
};
|
|
58
|
+
export declare type Address = {
|
|
59
|
+
city: string;
|
|
60
|
+
country: string;
|
|
61
|
+
line1: string;
|
|
62
|
+
line2: string;
|
|
63
|
+
postal_code: string;
|
|
64
|
+
state: string;
|
|
65
|
+
};
|
|
66
|
+
export declare type PaymentMethod = {
|
|
67
|
+
type: string;
|
|
68
|
+
last_four: string;
|
|
69
|
+
exp_month: number;
|
|
70
|
+
exp_year: number;
|
|
71
|
+
card_brand: string;
|
|
72
|
+
name: string;
|
|
73
|
+
};
|
|
74
|
+
export declare type Invoice = {
|
|
75
|
+
id: string;
|
|
76
|
+
number: string;
|
|
77
|
+
create_at: number;
|
|
78
|
+
total: number;
|
|
79
|
+
tax: number;
|
|
80
|
+
status: string;
|
|
81
|
+
description: string;
|
|
82
|
+
period_start: number;
|
|
83
|
+
period_end: number;
|
|
84
|
+
subscription_id: string;
|
|
85
|
+
line_items: InvoiceLineItem[];
|
|
86
|
+
current_product_name: string;
|
|
87
|
+
};
|
|
88
|
+
export declare const InvoiceLineItemType: {
|
|
89
|
+
readonly Full: "full";
|
|
90
|
+
readonly Partial: "partial";
|
|
91
|
+
readonly OnPremise: "onpremise";
|
|
92
|
+
readonly Metered: "metered";
|
|
93
|
+
};
|
|
94
|
+
export declare type InvoiceLineItem = {
|
|
95
|
+
price_id: string;
|
|
96
|
+
total: number;
|
|
97
|
+
quantity: number;
|
|
98
|
+
price_per_unit: number;
|
|
99
|
+
description: string;
|
|
100
|
+
type: typeof InvoiceLineItemType[keyof typeof InvoiceLineItemType];
|
|
101
|
+
metadata: Record<string, string>;
|
|
102
|
+
};
|
package/lib/cloud.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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.InvoiceLineItemType = void 0;
|
|
6
|
+
// actual string values come from customer-web-server and should be kept in sync with values seen there
|
|
7
|
+
exports.InvoiceLineItemType = {
|
|
8
|
+
Full: 'full',
|
|
9
|
+
Partial: 'partial',
|
|
10
|
+
OnPremise: 'onpremise',
|
|
11
|
+
Metered: 'metered',
|
|
12
|
+
};
|