@@ -190,34 +190,12 @@ message FicheParameters {
190190}
191191
192192message WitnessEvent {
193- WitnessType witness_type = 1 ;
194- SimplePerson witness = 2 ;
195- string witness_note = 3 ;
196- }
197- message WitnessFicheEvent {
198193 WitnessType witness_type = 1 ;
199194 Person witness = 2 ;
200195 string witness_note = 3 ;
201196}
202197
203198message Event {
204- string name = 1 ;
205- EventType type = 2 ;
206- optional string date = 3 ;
207- optional string date_long = 4 ;
208- optional string date_raw = 13 ;
209- optional string date_conv = 5 ;
210- optional string date_conv_long = 14 ;
211- optional Calendar date_cal = 6 ;
212- optional string place = 7 ;
213- optional string reason = 8 ;
214- optional string note = 9 ;
215- optional string src = 10 ;
216- optional SimplePerson spouse = 11 ;
217- repeated WitnessEvent witnesses = 12 ;
218- }
219-
220- message FicheEvent {
221199 string name = 1 ;
222200 EventType type = 2 ;
223201 optional string date = 3 ;
@@ -231,7 +209,7 @@ message FicheEvent {
231209 optional string note = 9 ;
232210 optional string src = 10 ;
233211 optional Person spouse = 11 ;
234- repeated WitnessFicheEvent witnesses = 12 ;
212+ repeated WitnessEvent witnesses = 12 ;
235213}
236214
237215message PersonTree {
@@ -251,50 +229,12 @@ message PersonTree {
251229 bool name_is_restricted = 14 ;
252230}
253231
254- message SimplePerson {
255- int32 index = 1 ;
256- Sex sex = 2 ;
257- string lastname = 3 ;
258- string firstname = 4 ;
259- string n = 5 ;
260- string p = 6 ;
261- int32 occ = 7 ;
262- optional string birth_short_date = 8 ;
263- optional string birth_date_raw = 15 ;
264- optional string birth_place = 9 ;
265- optional string death_short_date = 10 ;
266- optional string death_date_raw = 16 ;
267- optional string death_place = 11 ;
268- optional string image = 12 ;
269- Sosa sosa = 13 ;
270- string baseprefix = 14 ;
271- optional string sosa_nb = 17 ;
272- Visibility visible_for_visitors = 18 ;
273- bool has_parent = 19 ;
274- bool has_spouse = 20 ;
275- bool has_child = 21 ;
276- bool is_contemporary = 22 ;
277- bool name_is_hidden = 23 ;
278- bool name_is_restricted = 24 ;
279- }
280-
281232message RelationPerson {
282- RelationType r_type = 1 ;
283- SimplePerson person = 2 ;
284- }
285- message RelationFichePerson {
286233 RelationType r_type = 1 ;
287234 Person person = 2 ;
288235}
289236
290237message EventWitness {
291- string event_witness_type = 1 ;
292- SimplePerson husband = 2 ;
293- optional SimplePerson wife = 3 ;
294- string witness_note = 4 ;
295- }
296-
297- message EventFicheWitness {
298238 string event_witness_type = 1 ;
299239 Person husband = 2 ;
300240 optional Person wife = 3 ;
@@ -364,8 +304,8 @@ message Person {
364304 repeated string titles = 40 ;
365305 repeated RelationPerson related = 41 ;
366306 repeated RelationPerson rparents = 42 ;
367- optional SimplePerson father = 43 ;
368- optional SimplePerson mother = 44 ;
307+ optional Person father = 43 ;
308+ optional Person mother = 44 ;
369309 repeated Family families = 45 ;
370310 Sosa sosa = 46 ;
371311 PaginatedPersonalEvents events = 47 ;
@@ -395,35 +335,16 @@ message Person {
395335 optional string linked_page_head = 70 ;
396336 optional string linked_page_occu = 71 ;
397337 optional Visibility visible_for_visitors = 72 ;
398- }
399338
400- message Family {
401- int32 index = 1 ;
402- SimplePerson spouse = 2 ;
403- optional string marriage_date = 3 ;
404- optional string marriage_date_long = 4 ;
405- optional string marriage_date_raw = 19 ;
406- optional string marriage_date_conv = 5 ;
407- optional string marriage_date_conv_long = 21 ;
408- optional string marriage_date_text = 23 ;
409- optional Calendar marriage_date_cal = 6 ;
410- optional string marriage_place = 7 ;
411- optional string marriage_src = 8 ;
412- MarriageType marriage_type = 9 ;
413- DivorceType divorce_type = 10 ;
414- optional string divorce_date = 11 ;
415- optional string divorce_date_long = 12 ;
416- optional string divorce_date_raw = 20 ;
417- optional string divorce_date_conv = 13 ;
418- optional string divorce_date_conv_long = 22 ;
419- optional Calendar divorce_date_cal = 14 ;
420- repeated WitnessEvent witnesses = 15 ;
421- optional string notes = 16 ;
422- optional string fsources = 17 ;
423- repeated SimplePerson children = 18 ;
339+ optional bool has_parent = 73 ;
340+ optional bool has_spouse = 74 ;
341+ optional bool has_child = 75 ;
342+ optional string birth_short_date = 76 ;
343+ optional string death_short_date = 77 ;
344+
424345}
425346
426- message FicheFamily {
347+ message Family {
427348 int32 index = 1 ;
428349 Person spouse = 2 ;
429350 optional string marriage_date = 3 ;
@@ -443,7 +364,7 @@ message FicheFamily {
443364 optional string divorce_date_conv = 13 ;
444365 optional string divorce_date_conv_long = 22 ;
445366 optional Calendar divorce_date_cal = 14 ;
446- repeated WitnessFicheEvent witnesses = 15 ;
367+ repeated WitnessEvent witnesses = 15 ;
447368 optional string notes = 16 ;
448369 optional string fsources = 17 ;
449370 repeated Person children = 18 ;
0 commit comments