fix(core): Make enterprise trial requests via the backend (no-changelog) (#9784)
This commit is contained in:
committed by
GitHub
parent
f7d7404907
commit
876bcbb04c
@@ -1,4 +1,4 @@
|
||||
import { makeRestApiRequest, request } from '@/utils/apiUtils';
|
||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
||||
import type { IRestApiContext, UsageState } from '@/Interface';
|
||||
|
||||
export const getLicense = async (context: IRestApiContext): Promise<UsageState['data']> => {
|
||||
@@ -16,21 +16,8 @@ export const renewLicense = async (context: IRestApiContext): Promise<UsageState
|
||||
return await makeRestApiRequest(context, 'POST', '/license/renew');
|
||||
};
|
||||
|
||||
export const requestLicenseTrial = async (data: {
|
||||
licenseType: 'enterprise';
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string;
|
||||
instanceUrl: string;
|
||||
}): Promise<UsageState['data']> => {
|
||||
return await request({
|
||||
method: 'POST',
|
||||
baseURL: 'https://enterprise.n8n.io',
|
||||
endpoint: '/enterprise-trial',
|
||||
data,
|
||||
withCredentials: false,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
export const requestLicenseTrial = async (
|
||||
context: IRestApiContext,
|
||||
): Promise<UsageState['data']> => {
|
||||
return await makeRestApiRequest(context, 'POST', '/license/enterprise/request_trial');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user