2024-04-11 16:45:48 +02:00
|
|
|
import {restGet, restPatch, restPost} from "@/rest/restConsumer.js";
|
2024-04-06 16:12:11 +02:00
|
|
|
|
|
|
|
export async function createExemptionsRequest(exempReq){
|
|
|
|
return restPost("/exemptionreq", exempReq)
|
2024-04-09 15:58:10 +02:00
|
|
|
}
|
|
|
|
|
2024-04-10 14:40:41 +02:00
|
|
|
export async function createScholarshipRequest(reqInfo){
|
|
|
|
return restPost("/scholarshipreq", reqInfo)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getAllScholarShipsRequest(){
|
|
|
|
return restGet("/scholarshipreq")
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getAllExemptionsRequest(){
|
|
|
|
return restGet("/exemptionsreq")
|
2024-04-11 16:45:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function editEquivalenceState(id, newstate){
|
|
|
|
return restPatch("/request/registerequiv/"+id+"/"+newstate)
|
2024-04-14 18:29:23 +02:00
|
|
|
}
|
|
|
|
|
2024-04-17 13:57:52 +02:00
|
|
|
export async function addUninscReq(userId, reason, curriculumId){
|
|
|
|
return restPost("/unregister", {"userId" : userId, "reason" : reason, "curriculumId":curriculumId})
|
2024-04-15 16:17:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function editScholarshipReq(body){
|
|
|
|
return restPatch("/scholarshipreq/", body)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getScholarshipReqById(id){
|
|
|
|
return restGet("/scholarshipreq/"+id)
|
2024-04-15 20:13:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function getAllUnregisters(){
|
|
|
|
return restGet("/unregister")
|
2024-04-17 08:53:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function getUnregisterbyId(id){
|
|
|
|
return restGet("/unregister/"+id)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function editUnregReq(id, newstate){
|
|
|
|
return restPatch("/unregister/"+id+"/"+newstate)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getAllPayments(){
|
|
|
|
return restGet("/payment")
|
2024-04-17 11:55:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function postChangeCurrReq(item){
|
|
|
|
return restPost("/changecurriculumreq", item)
|
2024-04-18 14:09:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function getAllChangeCurrReq(){
|
|
|
|
return restGet("/changecurriculumreq")
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getChangeCurrReqById(id){
|
|
|
|
return restGet("/changecurriculumreq/"+id)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function editChangeCurrReq(id, newState){
|
|
|
|
return restPatch("/changecurriculumreq/"+id+"/"+newState)
|
2024-04-19 15:53:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function editChangeCurrReqTeacherState(id, newState){
|
|
|
|
return restPatch("/changecurriculumreqteacher/"+id+"/"+newState)
|
2024-04-19 19:25:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function getExempReq(id){
|
|
|
|
return restGet("/exemptionsreq/"+id)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function editExempReqState(id, newstate){
|
|
|
|
return restPatch("/exemptionsreq/"+id+"/"+newstate)
|
2024-04-20 21:12:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function getExempByUser(userId){
|
|
|
|
return restGet("/exemptionreq/"+userId)
|
2024-04-21 18:24:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function imposeCurriculum(id, cursusid){
|
|
|
|
return restPatch("/request/registerequivimpose/"+id+"/"+cursusid)
|
2024-04-06 16:12:11 +02:00
|
|
|
}
|