Merge branch 'master' into MM-50966-in-product-expansion

Этот коммит содержится в:
Conor Macpherson
2023-04-04 09:22:58 -04:00
коммит произвёл GitHub
родитель 0ce1b6c12c ed36e8bd64
Коммит e127f68149
213 изменённых файлов: 3970 добавлений и 4558 удалений

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

@@ -26,6 +26,7 @@ import {
CreateSubscriptionRequest,
Feedback,
WorkspaceDeletionRequest,
NewsletterRequestBody,
} from '@mattermost/types/cloud';
import {
SelfHostedSignupForm,
@@ -3894,6 +3895,7 @@ export default class Client4 {
);
};
confirmSelfHostedExpansion = (setupIntentId: string, expandRequest: SelfHostedExpansionRequest) => {
return this.doFetch<SelfHostedSignupSuccessResponse>(
`${this.getHostedCustomerRoute()}/confirm?expand=true`,
@@ -3901,6 +3903,13 @@ export default class Client4 {
);
}
subscribeToNewsletter = (newletterRequestBody: NewsletterRequestBody) => {
return this.doFetch<StatusOK>(
`${this.getHostedCustomerRoute()}/subscribe-newsletter`,
{method: 'post', body: JSON.stringify(newletterRequestBody)},
);
};
createPaymentMethod = async () => {
return this.doFetch(
`${this.getCloudRoute()}/payment`,