Merge pull request #22658 from mattermost/MM-50966-in-product-expansion

MM-50365 - In Product Expansion Front-End
Этот коммит содержится в:
Conor Macpherson
2023-04-20 10:35:41 -04:00
коммит произвёл GitHub
родитель 87555aa242 4a77773774
Коммит 3795f5a470
45 изменённых файлов: 2411 добавлений и 53 удалений

Просмотреть файл

@@ -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;
}