Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api-client): Create controller for Project module #370

Merged
merged 20 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/api-client/src/controllers/project/project.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import client from '@package/client'

export default class ProjectController {
private static apiClient = client

static async createProject() {}
static async updateProject() {}
static async deleteProject() {}
static async getProject() {}
static async forkProject() {}
static async syncFork() {}
vr-varad marked this conversation as resolved.
Show resolved Hide resolved
static async unlinkFork() {}
static async getForks() {}
static async getAllProjects() {}
}
18 changes: 18 additions & 0 deletions packages/api-client/src/types/project.types.d.ts
vr-varad marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export interface CreateProjectRequest {}
export interface CreateProjectResponse {}
export interface UpdateProjectRequest {}
export interface UpdateProjectResponse {}
export interface DeleteProjectRequest {}
export interface DeleteProjectResponse {}
export interface GetProjectRequest {}
export interface GetProjectResponse {}
export interface ForkProjectRequest {}
export interface ForkProjectResponse {}
export interface SyncProjectRequest {}
export interface SyncProjectResponse {}
export interface UnlinkProjectRequest {}
export interface UnlinkProjectResponse {}
export interface GetForkRequest {}
export interface GetForkResponse {}
export interface GetAllProjectsRequest {}
export interface GetAllProjectsResponse {}
Loading