mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 18:15:53 +00:00
20 lines
596 B
TypeScript
20 lines
596 B
TypeScript
import { initProjectHelper } from "@app/helpers/project";
|
|
|
|
class ProjectService {
|
|
/**
|
|
* Create and initialize a new project in organization with id [organizationId]
|
|
* Note: current user should be a member of the organization
|
|
* @param {Object} obj
|
|
* @param {String} obj.organizationId - id of organization
|
|
* @param {String} obj.projectName - name of new project
|
|
* @returns {Project} project - new project
|
|
*/
|
|
static async initProject({ projectName }: { projectName: string }) {
|
|
return initProjectHelper({
|
|
projectName
|
|
});
|
|
}
|
|
}
|
|
|
|
export default ProjectService;
|