From 67ec91187ee84a5c971dda89f9b469d4c2c769d3 Mon Sep 17 00:00:00 2001 From: lislis Date: Wed, 20 Nov 2024 19:10:26 +0100 Subject: [PATCH 1/3] add perp and crime details fields --- src/api/case/content-types/case/schema.json | 5 ++++- src/components/perpretrator/perpetrator.json | 6 ++++++ types/generated/components.d.ts | 2 ++ types/generated/contentTypes.d.ts | 3 ++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/api/case/content-types/case/schema.json b/src/api/case/content-types/case/schema.json index 9b484f5..b4742cc 100644 --- a/src/api/case/content-types/case/schema.json +++ b/src/api/case/content-types/case/schema.json @@ -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" } } } diff --git a/src/components/perpretrator/perpetrator.json b/src/components/perpretrator/perpetrator.json index c5f944c..eff55e6 100644 --- a/src/components/perpretrator/perpetrator.json +++ b/src/components/perpretrator/perpetrator.json @@ -134,6 +134,12 @@ }, "family_status_other": { "type": "string" + }, + "gender_details": { + "type": "string" + }, + "suicide_details": { + "type": "string" } } } diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index a3efb0f..46ed655 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -186,6 +186,8 @@ 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; }; } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 3486a97..9e212af 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -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; From 1927392caf04005bc8e67a3bbb2f6be3edd8de8f Mon Sep 17 00:00:00 2001 From: lislis Date: Wed, 20 Nov 2024 19:13:14 +0100 Subject: [PATCH 2/3] add fields on victim and perp --- src/components/perpretrator/perpetrator.json | 3 +++ src/components/victim/victim.json | 3 +++ types/generated/components.d.ts | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/components/perpretrator/perpetrator.json b/src/components/perpretrator/perpetrator.json index eff55e6..d4d0887 100644 --- a/src/components/perpretrator/perpetrator.json +++ b/src/components/perpretrator/perpetrator.json @@ -140,6 +140,9 @@ }, "suicide_details": { "type": "string" + }, + "judical_status_details": { + "type": "string" } } } diff --git a/src/components/victim/victim.json b/src/components/victim/victim.json index f651f5a..af63959 100644 --- a/src/components/victim/victim.json +++ b/src/components/victim/victim.json @@ -112,6 +112,9 @@ }, "family_status_other": { "type": "string" + }, + "type_of_feminicide_details": { + "type": "string" } } } diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index 46ed655..485e865 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -188,6 +188,7 @@ export interface PerpretratorPerpetrator extends Schema.Component { family_status_other: Attribute.String; gender_details: Attribute.String; suicide_details: Attribute.String; + judical_status_details: Attribute.String; }; } @@ -299,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; }; } From 40bd593be2533943f09753e99e77767869b6bcb8 Mon Sep 17 00:00:00 2001 From: lislis Date: Wed, 20 Nov 2024 19:30:17 +0100 Subject: [PATCH 3/3] add another detail field to perp --- src/components/perpretrator/perpetrator.json | 3 +-- types/generated/components.d.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/perpretrator/perpetrator.json b/src/components/perpretrator/perpetrator.json index d4d0887..d2bfd00 100644 --- a/src/components/perpretrator/perpetrator.json +++ b/src/components/perpretrator/perpetrator.json @@ -101,8 +101,7 @@ "type": "string" }, "sentence_details": { - "type": "text", - "private": true + "type": "string" }, "criminal_record": { "type": "relation", diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index 485e865..703748a 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -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',