Skip to content

Commit

Permalink
feat: adding getPullingStatus status
Browse files Browse the repository at this point in the history
  • Loading branch information
axel7083 committed Jan 10, 2024
1 parent 68e90bd commit bccf853
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/backend/src/studio-api-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ import type { StudioAPI } from '@shared/StudioAPI';
import { Category } from '@shared/models/ICategory';
import { Recipe } from '@shared/models/IRecipe';
import content from './ai.json';
import { Task } from '@shared/models/ITask';

export const RECENT_CATEGORY_ID = 'recent-category';

export class StudioApiImpl implements StudioAPI {
async getPullingStatus(recipeId: string): Promise<Task[]> {
return [];
}

async ping(): Promise<string> {
return 'pong';
}
Expand Down
2 changes: 2 additions & 0 deletions packages/shared/StudioAPI.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Recipe } from '@shared/models/IRecipe';
import type { Category } from '@shared/models/ICategory';
import { Task } from '@shared/models/ITask';

export abstract class StudioAPI {
abstract ping(): Promise<string>;
Expand All @@ -8,5 +9,6 @@ export abstract class StudioAPI {
abstract getRecipesByCategory(categoryId: string): Promise<Recipe[]>;
abstract getRecipeById(recipeId: string): Promise<Recipe>;
abstract searchRecipes(query: string): Promise<Recipe[]>;
abstract getPullingStatus(recipeId: string): Promise<Task[]>
}

0 comments on commit bccf853

Please sign in to comment.