"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const variables = require("../../lib/variables.cjs");
const useSingleTenantMutation = require("../../lib/useSingleTenantMutation.cjs");
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: variables.GQLVariable.Required(variables.GQLVariable.String),
  name: variables.GQLVariable.String,
  config: variables.GQLVariable.Json,
  secrets: variables.GQLVariable.List(ProjectSecretVariable)
};
const useCreateProject = () => {
  return useSingleTenantMutation.useSingleTenantMutation(CREATE_PROJECT_MUTATION, createProjectVariables);
};
exports.useCreateProject = useCreateProject;
//# sourceMappingURL=createProject.cjs.map
