Merge pull request #22658 from mattermost/MM-50966-in-product-expansion
MM-50365 - In Product Expansion Front-End
Этот коммит содержится в:
@@ -33,6 +33,7 @@ import {
|
||||
SelfHostedSignupCustomerResponse,
|
||||
SelfHostedSignupSuccessResponse,
|
||||
SelfHostedSignupBootstrapResponse,
|
||||
SelfHostedExpansionRequest,
|
||||
} from '@mattermost/types/hosted_customer';
|
||||
import {ChannelCategory, OrderedChannelCategories} from '@mattermost/types/channel_categories';
|
||||
|
||||
@@ -3895,6 +3896,14 @@ export default class Client4 {
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
confirmSelfHostedExpansion = (setupIntentId: string, expandRequest: SelfHostedExpansionRequest) => {
|
||||
return this.doFetch<SelfHostedSignupSuccessResponse>(
|
||||
`${this.getHostedCustomerRoute()}/confirm-expand`,
|
||||
{method: 'post', body: JSON.stringify({stripe_setup_intent_id: setupIntentId, expand_request: expandRequest})},
|
||||
);
|
||||
}
|
||||
|
||||
subscribeToNewsletter = (newletterRequestBody: NewsletterRequestBody) => {
|
||||
return this.doFetch<StatusOK>(
|
||||
`${this.getHostedCustomerRoute()}/subscribe-newsletter`,
|
||||
|
||||
@@ -370,7 +370,6 @@ export type ServiceSettings = {
|
||||
EnableCustomGroups: boolean;
|
||||
SelfHostedPurchase: boolean;
|
||||
AllowSyncedDrafts: boolean;
|
||||
SelfHostedExpansion: boolean;
|
||||
};
|
||||
|
||||
export type TeamSettings = {
|
||||
|
||||
@@ -75,3 +75,8 @@ export interface TrueUpReviewProfileReducer extends TrueUpReviewProfile {
|
||||
export interface TrueUpReviewStatusReducer extends TrueUpReviewStatus {
|
||||
getRequestState: RequestState;
|
||||
}
|
||||
|
||||
export type SelfHostedExpansionRequest = {
|
||||
seats: number;
|
||||
license_id: string;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user