//native
/**
* Send Sign Up request
* Send a Sign Up request containing the user information
*/
export async function main(auth: RT.Qovery, body: Body) {
const url = new URL(`https://api.qovery.com/admin/userSignUp`)
const response = await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Token ' + auth.apiKey
},
body: JSON.stringify(body)
})
if (!response.ok) {
const text = await response.text()
throw new Error(`${response.status} ${text}`)
}
return await response.text()
}
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export interface Body {
first_name: string
last_name: string
user_email: string
type_of_use: 'PERSONAL' | 'SCHOOL' | 'WORK'
qovery_usage: string
company_name?: string
company_size?: '1-10' | '11-50' | '51-200' | '201-500' | '500+'
user_role?: string
qovery_usage_other?: string
user_questions?: string
current_step?: string
dx_auth?: boolean
infrastructure_hosting?: string
[k: string]: unknown
}
Submitted by hugo697 235 days ago