2024-04-11 16:45:48 +02:00
|
|
|
import {restGet, restPatch, restPost} from "@/rest/restConsumer.js";
|
2024-04-10 23:09:38 +02:00
|
|
|
import {parseInteger} from "jsdom/lib/jsdom/living/helpers/strings.js";
|
2024-04-10 22:00:08 +02:00
|
|
|
|
|
|
|
export async function createExternalCurriculum(inscriptionRequestId,school, formation, completion, startYear, endYear, justifdocUrl){
|
|
|
|
return restPost("/externalcurriculum", {
|
|
|
|
inscriptionRequestId: inscriptionRequestId,
|
|
|
|
school:school,
|
|
|
|
formation :formation,
|
|
|
|
completion : completion,
|
2024-04-10 23:09:38 +02:00
|
|
|
startYear : parseInteger(startYear),
|
|
|
|
endYear: parseInteger(endYear),
|
2024-04-10 22:00:08 +02:00
|
|
|
justifdocUrl : justifdocUrl
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-04-10 23:09:38 +02:00
|
|
|
export async function getExternalCurriculumByInscrReq(inscrReqId){
|
2024-04-11 16:45:48 +02:00
|
|
|
return restGet("/externalcurriculum/"+inscrReqId)
|
|
|
|
}
|
|
|
|
|