github.com/lauslim12/expert-systems@v0.0.0-20221115131159-018513aad29c/web/src/types/Request.ts (about) 1 import type UserCertaintyWeight from './UserCertaintyWeight'; 2 3 /** 4 * Represents the symptom ID and its user confidence. 5 * Check out the Go library in order to know about the 'symptomId' attribute. 6 */ 7 type SymptomAndWeight = { 8 symptomId: string; 9 weight: UserCertaintyWeight; 10 }; 11 12 /** 13 * Type to represent the request body that will be sent to the API. 14 */ 15 type Request = { 16 diseaseId: string; 17 locale: 'en' | 'id'; 18 symptoms: SymptomAndWeight[]; 19 }; 20 21 export default Request;