#11 - Modify Types Definition
This commit is contained in:
parent
caa14b480e
commit
c007668002
@ -1,4 +1,4 @@
|
||||
import type { CareerCourse } from '@/types/career.ts';
|
||||
import type { CareerCourse } from './career.ts';
|
||||
|
||||
type Position = 'left' | 'right';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type { CourseLevel, PriceBox } from '@/enums';
|
||||
import type { CourseLevel, PriceBox } from '../enums';
|
||||
|
||||
export type Career = {
|
||||
image: any;
|
||||
|
24
src/types/codyops-careers.ts
Normal file
24
src/types/codyops-careers.ts
Normal file
@ -0,0 +1,24 @@
|
||||
import type { Courses } from './codyops-courses'
|
||||
import type { Users } from "./codyops-users";
|
||||
|
||||
export interface Careers {
|
||||
id: string;
|
||||
slug: string;
|
||||
status: string;
|
||||
sort: number | null;
|
||||
user_created: Users;
|
||||
user_updated: Users;
|
||||
date_created: string | null;
|
||||
date_updated: string | null;
|
||||
name: string;
|
||||
description: string;
|
||||
courses: CodyopsCourses;
|
||||
}
|
||||
|
||||
interface CodyopsCourses {
|
||||
codyops_courses_id: Courses
|
||||
}
|
||||
|
||||
export interface CodyopsCareers {
|
||||
codyops_careers: Careers;
|
||||
}
|
32
src/types/codyops-courses.ts
Normal file
32
src/types/codyops-courses.ts
Normal file
@ -0,0 +1,32 @@
|
||||
import type { Modules } from "./codyops-modules";
|
||||
import type { Careers } from "./codyops-careers";
|
||||
import type { Users } from "./codyops-users";
|
||||
|
||||
export interface Courses {
|
||||
id: string;
|
||||
status: string;
|
||||
sort: number | null;
|
||||
user_created?: Partial<Users>;
|
||||
user_updated: Users;
|
||||
date_created: string | null;
|
||||
date_updated: string | null;
|
||||
name: string;
|
||||
description: string;
|
||||
level: string;
|
||||
type: string;
|
||||
category: string;
|
||||
language: string;
|
||||
features: string;
|
||||
version: string;
|
||||
image: string;
|
||||
modules?: Partial<Modules>[];
|
||||
content: string;
|
||||
cloud: string;
|
||||
codyops_careers?: {
|
||||
codyops_careers_id?: Partial<Careers>;
|
||||
};
|
||||
}
|
||||
|
||||
export interface CodyopsCourses {
|
||||
codyops_courses: Courses[];
|
||||
}
|
15
src/types/codyops-modules.ts
Normal file
15
src/types/codyops-modules.ts
Normal file
@ -0,0 +1,15 @@
|
||||
export interface Modules {
|
||||
id: string;
|
||||
status: string;
|
||||
sort: number | null;
|
||||
user_created: string | null;
|
||||
user_updated: string | null;
|
||||
date_created: string | null;
|
||||
date_updated: string | null;
|
||||
title: string;
|
||||
description: string;
|
||||
video_theory: string;
|
||||
video_practice: string;
|
||||
duration: string;
|
||||
courses_id: string;
|
||||
}
|
6
src/types/codyops-users.ts
Normal file
6
src/types/codyops-users.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface Users {
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
avatar: string;
|
||||
url: string;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import type { Accordion } from '@/types/accordion.ts';
|
||||
import type { Accordion } from './accordion.ts';
|
||||
|
||||
export type Course = {
|
||||
title: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user