All files / lib/apis/core/getProjectsData index.tsx

0% Statements 0/2
100% Branches 0/0
0% Functions 0/1
0% Lines 0/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56                                                                                                               
import { coreDirectApi } from '..';
 
export interface getProjectDetailResponse {
  id: string;
  name: string;
  description: string;
  isLocked: boolean;
  isVisible: boolean;
  isPreparing: boolean;
  preparationMessage: string;
  videoYoutubeId: string;
  startedAt: string;
  finishedAt: string;
  themeImageUrl: string;
  theme: string;
  imageUrl: string;
  verticalImageUrl: string;
  previewImageUrls: string[];
  concept: string;
  storySummary: string;
  // application: Application;
  // generalInfo: GeneralInfo;
  howToPlay: string;
  notice: string;
  alert: string;
  purchaseLink: string;
  difficulty: number;
  estimatedDataUsage: string;
  gameType: string;
  genre: string;
  kitRequired: boolean;
  kitDescription?: string;
  howToPickUpKit?: string;
  reviewStars: number;
  // representativeReview?: RepresentativeReview;
  purchaseRequired: boolean;
  InAppPurchaseProductId: string;
  purchased: boolean;
  isBgmIncluded: boolean;
  price: number;
  originalPrice: number;
  currency: string;
  projectGameType: string;
  playArea: string;
  commentCount?: number;
  reviewCount?: number;
}
 
export type getProjectsDataResponse = getProjectDetailResponse[];
 
export async function getProjectsData() {
  const { data } = await coreDirectApi.get<getProjectsDataResponse>('/api/mainpage/header');
 
  return data;
}