@@ -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 ;
@@ -352,8 +292,8 @@ message Person {
352292 repeated string titles = 40 ;
353293 repeated RelationPerson related = 41 ;
354294 repeated RelationPerson rparents = 42 ;
355- optional SimplePerson father = 43 ;
356- optional SimplePerson mother = 44 ;
295+ optional Person father = 43 ;
296+ optional Person mother = 44 ;
357297 repeated Family families = 45 ;
358298 Sosa sosa = 46 ;
359299 repeated Event events = 47 ;
@@ -383,35 +323,16 @@ message Person {
383323 optional string linked_page_head = 70 ;
384324 optional string linked_page_occu = 71 ;
385325 optional Visibility visible_for_visitors = 72 ;
386- }
387326
388- message Family {
389- int32 index = 1 ;
390- SimplePerson spouse = 2 ;
391- optional string marriage_date = 3 ;
392- optional string marriage_date_long = 4 ;
393- optional string marriage_date_raw = 19 ;
394- optional string marriage_date_conv = 5 ;
395- optional string marriage_date_conv_long = 21 ;
396- optional string marriage_date_text = 23 ;
397- optional Calendar marriage_date_cal = 6 ;
398- optional string marriage_place = 7 ;
399- optional string marriage_src = 8 ;
400- MarriageType marriage_type = 9 ;
401- DivorceType divorce_type = 10 ;
402- optional string divorce_date = 11 ;
403- optional string divorce_date_long = 12 ;
404- optional string divorce_date_raw = 20 ;
405- optional string divorce_date_conv = 13 ;
406- optional string divorce_date_conv_long = 22 ;
407- optional Calendar divorce_date_cal = 14 ;
408- repeated WitnessEvent witnesses = 15 ;
409- optional string notes = 16 ;
410- optional string fsources = 17 ;
411- repeated SimplePerson children = 18 ;
327+ optional bool has_parent = 73 ;
328+ optional bool has_spouse = 74 ;
329+ optional bool has_child = 75 ;
330+ optional string birth_short_date = 76 ;
331+ optional string death_short_date = 77 ;
332+
412333}
413334
414- message FicheFamily {
335+ message Family {
415336 int32 index = 1 ;
416337 Person spouse = 2 ;
417338 optional string marriage_date = 3 ;
@@ -431,7 +352,7 @@ message FicheFamily {
431352 optional string divorce_date_conv = 13 ;
432353 optional string divorce_date_conv_long = 22 ;
433354 optional Calendar divorce_date_cal = 14 ;
434- repeated WitnessFicheEvent witnesses = 15 ;
355+ repeated WitnessEvent witnesses = 15 ;
435356 optional string notes = 16 ;
436357 optional string fsources = 17 ;
437358 repeated Person children = 18 ;
0 commit comments