Skip to content

Commit

Permalink
Merge pull request #57 from feminizidmap/add_missing_fields
Browse files Browse the repository at this point in the history
Add missing fields
  • Loading branch information
lislis authored Nov 21, 2024
2 parents 6449d77 + 40bd593 commit c20a5e2
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/api/case/content-types/case/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,13 @@
"type": "text",
"private": true
},
"dropdown_benachrichtigung_ueber_die_tat": {
"report_of_crime": {
"type": "relation",
"relation": "oneToOne",
"target": "api::notification.notification"
},
"report_of_crime_details": {
"type": "string"
}
}
}
12 changes: 10 additions & 2 deletions src/components/perpretrator/perpetrator.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@
"type": "string"
},
"sentence_details": {
"type": "text",
"private": true
"type": "string"
},
"criminal_record": {
"type": "relation",
Expand Down Expand Up @@ -134,6 +133,15 @@
},
"family_status_other": {
"type": "string"
},
"gender_details": {
"type": "string"
},
"suicide_details": {
"type": "string"
},
"judical_status_details": {
"type": "string"
}
}
}
3 changes: 3 additions & 0 deletions src/components/victim/victim.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@
},
"family_status_other": {
"type": "string"
},
"type_of_feminicide_details": {
"type": "string"
}
}
}
6 changes: 5 additions & 1 deletion types/generated/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export interface PerpretratorPerpetrator extends Schema.Component {
Attribute.CustomField<'plugin::country-select.country'>;
drugs_details: Attribute.String;
mental_illness_details: Attribute.String;
sentence_details: Attribute.Text & Attribute.Private;
sentence_details: Attribute.String;
criminal_record: Attribute.Relation<
'perpretrator.perpetrator',
'oneToOne',
Expand All @@ -186,6 +186,9 @@ export interface PerpretratorPerpetrator extends Schema.Component {
Attribute.Private;
citizenship_details: Attribute.Text & Attribute.Private;
family_status_other: Attribute.String;
gender_details: Attribute.String;
suicide_details: Attribute.String;
judical_status_details: Attribute.String;
};
}

Expand Down Expand Up @@ -297,6 +300,7 @@ export interface VictimVictim extends Schema.Component {
'api::dropdown-surviving-dependent.dropdown-surviving-dependent'
>;
family_status_other: Attribute.String;
type_of_feminicide_details: Attribute.String;
};
}

Expand Down
3 changes: 2 additions & 1 deletion types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -861,11 +861,12 @@ export interface ApiCaseCase extends Schema.CollectionType {
registration_date: Attribute.Date & Attribute.Private;
uuid: Attribute.String & Attribute.Private & Attribute.Unique;
media_labels_details: Attribute.Text & Attribute.Private;
dropdown_benachrichtigung_ueber_die_tat: Attribute.Relation<
report_of_crime: Attribute.Relation<
'api::case.case',
'oneToOne',
'api::notification.notification'
>;
report_of_crime_details: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down

0 comments on commit c20a5e2

Please sign in to comment.