Generación de datos básicos de asignaturas funcional
Deploy Function / deploy (push) Successful in 24s
Deploy Function / deploy (push) Successful in 24s
close #6: - Ya se pueden generar asignaturas con IA. Específicamente los datos generales. - Se actualizaron los tipos de supabase - Se arreglaron los imports - TODO: generar contenido temático de la asignatura
This commit was merged in pull request #17.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
| boolean
|
||||
| null
|
||||
| { [key: string]: Json | undefined }
|
||||
| Json[];
|
||||
| Array<Json>;
|
||||
|
||||
export type Database = {
|
||||
// Allows to automatically instantiate createClient with right options
|
||||
@@ -90,6 +90,7 @@ export type Database = {
|
||||
Row: {
|
||||
actualizado_en: string;
|
||||
actualizado_por: string | null;
|
||||
asignatura_hash: string | null;
|
||||
codigo: string | null;
|
||||
contenido_tematico: Json;
|
||||
creado_en: string;
|
||||
@@ -97,8 +98,8 @@ export type Database = {
|
||||
creditos: number;
|
||||
datos: Json;
|
||||
estructura_id: string | null;
|
||||
facultad_propietaria_id: string | null;
|
||||
horas_semana: number | null;
|
||||
horas_academicas: number | null;
|
||||
horas_independientes: number | null;
|
||||
id: string;
|
||||
linea_plan_id: string | null;
|
||||
meta_origen: Json;
|
||||
@@ -114,6 +115,7 @@ export type Database = {
|
||||
Insert: {
|
||||
actualizado_en?: string;
|
||||
actualizado_por?: string | null;
|
||||
asignatura_hash?: string | null;
|
||||
codigo?: string | null;
|
||||
contenido_tematico?: Json;
|
||||
creado_en?: string;
|
||||
@@ -121,8 +123,8 @@ export type Database = {
|
||||
creditos: number;
|
||||
datos?: Json;
|
||||
estructura_id?: string | null;
|
||||
facultad_propietaria_id?: string | null;
|
||||
horas_semana?: number | null;
|
||||
horas_academicas?: number | null;
|
||||
horas_independientes?: number | null;
|
||||
id?: string;
|
||||
linea_plan_id?: string | null;
|
||||
meta_origen?: Json;
|
||||
@@ -138,6 +140,7 @@ export type Database = {
|
||||
Update: {
|
||||
actualizado_en?: string;
|
||||
actualizado_por?: string | null;
|
||||
asignatura_hash?: string | null;
|
||||
codigo?: string | null;
|
||||
contenido_tematico?: Json;
|
||||
creado_en?: string;
|
||||
@@ -145,8 +148,8 @@ export type Database = {
|
||||
creditos?: number;
|
||||
datos?: Json;
|
||||
estructura_id?: string | null;
|
||||
facultad_propietaria_id?: string | null;
|
||||
horas_semana?: number | null;
|
||||
horas_academicas?: number | null;
|
||||
horas_independientes?: number | null;
|
||||
id?: string;
|
||||
linea_plan_id?: string | null;
|
||||
meta_origen?: Json;
|
||||
@@ -181,14 +184,6 @@ export type Database = {
|
||||
referencedRelation: "estructuras_asignatura";
|
||||
referencedColumns: ["id"];
|
||||
},
|
||||
{
|
||||
foreignKeyName:
|
||||
"asignaturas_facultad_propietaria_id_fkey";
|
||||
columns: ["facultad_propietaria_id"];
|
||||
isOneToOne: false;
|
||||
referencedRelation: "facultades";
|
||||
referencedColumns: ["id"];
|
||||
},
|
||||
{
|
||||
foreignKeyName: "asignaturas_linea_plan_fk_compuesta";
|
||||
columns: ["linea_plan_id", "plan_estudio_id"];
|
||||
@@ -332,8 +327,8 @@ export type Database = {
|
||||
cambiado_por: string | null;
|
||||
campo: string | null;
|
||||
id: string;
|
||||
interaccion_ia_id: string | null;
|
||||
plan_estudio_id: string;
|
||||
response_id: string | null;
|
||||
tipo: Database["public"]["Enums"]["tipo_cambio"];
|
||||
valor_anterior: Json | null;
|
||||
valor_nuevo: Json | null;
|
||||
@@ -343,8 +338,8 @@ export type Database = {
|
||||
cambiado_por?: string | null;
|
||||
campo?: string | null;
|
||||
id?: string;
|
||||
interaccion_ia_id?: string | null;
|
||||
plan_estudio_id: string;
|
||||
response_id?: string | null;
|
||||
tipo: Database["public"]["Enums"]["tipo_cambio"];
|
||||
valor_anterior?: Json | null;
|
||||
valor_nuevo?: Json | null;
|
||||
@@ -354,8 +349,8 @@ export type Database = {
|
||||
cambiado_por?: string | null;
|
||||
campo?: string | null;
|
||||
id?: string;
|
||||
interaccion_ia_id?: string | null;
|
||||
plan_estudio_id?: string;
|
||||
response_id?: string | null;
|
||||
tipo?: Database["public"]["Enums"]["tipo_cambio"];
|
||||
valor_anterior?: Json | null;
|
||||
valor_nuevo?: Json | null;
|
||||
@@ -368,20 +363,6 @@ export type Database = {
|
||||
referencedRelation: "usuarios_app";
|
||||
referencedColumns: ["id"];
|
||||
},
|
||||
{
|
||||
foreignKeyName: "cambios_plan_plan_estudio_id_fkey";
|
||||
columns: ["plan_estudio_id"];
|
||||
isOneToOne: false;
|
||||
referencedRelation: "planes_estudio";
|
||||
referencedColumns: ["id"];
|
||||
},
|
||||
{
|
||||
foreignKeyName: "cambios_plan_plan_estudio_id_fkey";
|
||||
columns: ["plan_estudio_id"];
|
||||
isOneToOne: false;
|
||||
referencedRelation: "plantilla_plan";
|
||||
referencedColumns: ["plan_estudio_id"];
|
||||
},
|
||||
];
|
||||
};
|
||||
carreras: {
|
||||
@@ -708,6 +689,7 @@ export type Database = {
|
||||
actualizado_en: string;
|
||||
actualizado_por: string | null;
|
||||
carrera_id: string;
|
||||
conversation_id: string | null;
|
||||
creado_en: string;
|
||||
creado_por: string | null;
|
||||
datos: Json;
|
||||
@@ -719,6 +701,7 @@ export type Database = {
|
||||
nombre: string;
|
||||
nombre_search: string | null;
|
||||
numero_ciclos: number;
|
||||
plan_hash: string | null;
|
||||
tipo_ciclo: Database["public"]["Enums"]["tipo_ciclo"];
|
||||
tipo_origen:
|
||||
| Database["public"]["Enums"]["tipo_origen"]
|
||||
@@ -729,6 +712,7 @@ export type Database = {
|
||||
actualizado_en?: string;
|
||||
actualizado_por?: string | null;
|
||||
carrera_id: string;
|
||||
conversation_id?: string | null;
|
||||
creado_en?: string;
|
||||
creado_por?: string | null;
|
||||
datos?: Json;
|
||||
@@ -740,6 +724,7 @@ export type Database = {
|
||||
nombre: string;
|
||||
nombre_search?: string | null;
|
||||
numero_ciclos: number;
|
||||
plan_hash?: string | null;
|
||||
tipo_ciclo: Database["public"]["Enums"]["tipo_ciclo"];
|
||||
tipo_origen?:
|
||||
| Database["public"]["Enums"]["tipo_origen"]
|
||||
@@ -750,6 +735,7 @@ export type Database = {
|
||||
actualizado_en?: string;
|
||||
actualizado_por?: string | null;
|
||||
carrera_id?: string;
|
||||
conversation_id?: string | null;
|
||||
creado_en?: string;
|
||||
creado_por?: string | null;
|
||||
datos?: Json;
|
||||
@@ -761,6 +747,7 @@ export type Database = {
|
||||
nombre?: string;
|
||||
nombre_search?: string | null;
|
||||
numero_ciclos?: number;
|
||||
plan_hash?: string | null;
|
||||
tipo_ciclo?: Database["public"]["Enums"]["tipo_ciclo"];
|
||||
tipo_origen?:
|
||||
| Database["public"]["Enums"]["tipo_origen"]
|
||||
@@ -1140,7 +1127,7 @@ export type Database = {
|
||||
fuente_cambio: "HUMANO" | "IA";
|
||||
nivel_plan_estudio:
|
||||
| "Licenciatura"
|
||||
| "Maestría"
|
||||
| "Maestría"
|
||||
| "Doctorado"
|
||||
| "Especialidad"
|
||||
| "Diplomado"
|
||||
@@ -1163,7 +1150,8 @@ export type Database = {
|
||||
| "ACTUALIZACION_MAPA"
|
||||
| "TRANSICION_ESTADO"
|
||||
| "OTRO"
|
||||
| "CREACION";
|
||||
| "CREACION"
|
||||
| "ACTUALIZACION";
|
||||
tipo_ciclo: "Semestre" | "Cuatrimestre" | "Trimestre" | "Otro";
|
||||
tipo_estructura_plan: "CURRICULAR" | "NO_CURRICULAR";
|
||||
tipo_fuente_bibliografia: "MANUAL" | "BIBLIOTECA";
|
||||
@@ -1343,7 +1331,7 @@ export const Constants = {
|
||||
fuente_cambio: ["HUMANO", "IA"],
|
||||
nivel_plan_estudio: [
|
||||
"Licenciatura",
|
||||
"Maestría",
|
||||
"Maestría",
|
||||
"Doctorado",
|
||||
"Especialidad",
|
||||
"Diplomado",
|
||||
@@ -1370,6 +1358,7 @@ export const Constants = {
|
||||
"TRANSICION_ESTADO",
|
||||
"OTRO",
|
||||
"CREACION",
|
||||
"ACTUALIZACION",
|
||||
],
|
||||
tipo_ciclo: ["Semestre", "Cuatrimestre", "Trimestre", "Otro"],
|
||||
tipo_estructura_plan: ["CURRICULAR", "NO_CURRICULAR"],
|
||||
|
||||
Reference in New Issue
Block a user