import { GQLVariable } from "../../lib/variables.js";
import { useSingleTenantMutation } from "../../lib/useSingleTenantMutation.js";
const CREATE_PROJECT_MUTATION = `
	createProject(projectSlug: $projectSlug, name: $name, config: $config, secrets: $secrets) {
		ok
		error {
			code
			developerMessage
		}
		result {
			deployerApiKey {
				id
				token
			}
		}
	}
`;
const ProjectSecretVariable = {
  graphQlType: "ProjectSecret",
  required: false
};
const createProjectVariables = {
  projectSlug: GQLVariable.Required(GQLVariable.String),
  name: GQLVariable.String,
  config: GQLVariable.Json,
  secrets: GQLVariable.List(ProjectSecretVariable)
};
const useCreateProject = () => {
  return useSingleTenantMutation(CREATE_PROJECT_MUTATION, createProjectVariables);
};
export { useCreateProject };
//# sourceMappingURL=createProject.js.map
