From 2f85d9f91098f4bdfd406bc2919480e8c51053e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 2 Sep 2024 16:47:34 +0200 Subject: [PATCH 001/105] Change model to prepare for terrestrial data --- cms/config/sync/admin-role.strapi-author.json | 6 +- cms/config/sync/admin-role.strapi-editor.json | 6 +- .../sync/admin-role.strapi-super-admin.json | 183 +- ...pes##api##dataset-group.dataset-group.json | 155 + ...n_content_types##api##dataset.dataset.json | 31 +- ...t_types##api##environment.environment.json | 134 + ...types##api##habitat-stat.habitat-stat.json | 21 + ...content_types##api##location.location.json | 48 +- ...iguration_content_types##api##mpa.mpa.json | 31 +- ...overage-stat.protection-coverage-stat.json | 19 + .../content-types/dataset-group/schema.json | 45 + .../controllers/dataset-group.ts | 7 + .../documentation/1.0.0/dataset-group.json | 599 ++ .../api/dataset-group/routes/dataset-group.ts | 7 + .../dataset-group/services/dataset-group.ts | 7 + .../dataset/content-types/dataset/schema.json | 6 + .../content-types/environment/schema.json | 38 + .../environment/controllers/environment.ts | 7 + .../documentation/1.0.0/environment.json | 599 ++ cms/src/api/environment/routes/environment.ts | 7 + .../api/environment/services/environment.ts | 7 + .../content-types/habitat-stat/schema.json | 15 +- .../content-types/location/schema.json | 22 +- cms/src/api/mpa/content-types/mpa/schema.json | 7 +- .../protection-coverage-stat/schema.json | 5 + cms/types/generated/contentTypes.d.ts | 157 +- .../tables/national-highseas/index.tsx | 6 +- .../src/containers/map/content/map/index.tsx | 4 +- .../map/content/map/popup/eez/index.tsx | 2 +- .../map/content/map/popup/regions/index.tsx | 2 +- .../src/types/generated/strapi.schemas.ts | 5425 +++++++++++------ 31 files changed, 5556 insertions(+), 2052 deletions(-) create mode 100644 cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset-group.dataset-group.json create mode 100644 cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##environment.environment.json create mode 100644 cms/src/api/dataset-group/content-types/dataset-group/schema.json create mode 100644 cms/src/api/dataset-group/controllers/dataset-group.ts create mode 100644 cms/src/api/dataset-group/documentation/1.0.0/dataset-group.json create mode 100644 cms/src/api/dataset-group/routes/dataset-group.ts create mode 100644 cms/src/api/dataset-group/services/dataset-group.ts create mode 100644 cms/src/api/environment/content-types/environment/schema.json create mode 100644 cms/src/api/environment/controllers/environment.ts create mode 100644 cms/src/api/environment/documentation/1.0.0/environment.json create mode 100644 cms/src/api/environment/routes/environment.ts create mode 100644 cms/src/api/environment/services/environment.ts diff --git a/cms/config/sync/admin-role.strapi-author.json b/cms/config/sync/admin-role.strapi-author.json index 8b498218..fd2653e0 100644 --- a/cms/config/sync/admin-role.strapi-author.json +++ b/cms/config/sync/admin-role.strapi-author.json @@ -860,7 +860,7 @@ "fishing_protection_level_stats", "mpaa_protection_level_stats", "protection_coverage_stats", - "bounds" + "totalTerrestrialArea" ], "locales": [] }, @@ -898,7 +898,7 @@ "fishing_protection_level_stats", "mpaa_protection_level_stats", "protection_coverage_stats", - "bounds" + "totalTerrestrialArea" ], "locales": [] }, @@ -921,7 +921,7 @@ "fishing_protection_level_stats", "mpaa_protection_level_stats", "protection_coverage_stats", - "bounds" + "totalTerrestrialArea" ], "locales": [] }, diff --git a/cms/config/sync/admin-role.strapi-editor.json b/cms/config/sync/admin-role.strapi-editor.json index 971b0b18..01132379 100644 --- a/cms/config/sync/admin-role.strapi-editor.json +++ b/cms/config/sync/admin-role.strapi-editor.json @@ -847,7 +847,7 @@ "fishing_protection_level_stats", "mpaa_protection_level_stats", "protection_coverage_stats", - "bounds" + "totalTerrestrialArea" ], "locales": [] }, @@ -881,7 +881,7 @@ "fishing_protection_level_stats", "mpaa_protection_level_stats", "protection_coverage_stats", - "bounds" + "totalTerrestrialArea" ], "locales": [] }, @@ -902,7 +902,7 @@ "fishing_protection_level_stats", "mpaa_protection_level_stats", "protection_coverage_stats", - "bounds" + "totalTerrestrialArea" ], "locales": [] }, diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 753c5772..13dda1df 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -543,6 +543,73 @@ "conditions": [], "actionParameters": {} }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::dataset-group.dataset-group", + "properties": { + "fields": [ + "name", + "slug", + "datasets" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::dataset-group.dataset-group", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::dataset-group.dataset-group", + "properties": { + "fields": [ + "name", + "slug", + "datasets" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::dataset-group.dataset-group", + "properties": { + "fields": [ + "name", + "slug", + "datasets" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, { "action": "plugin::content-manager.explorer.create", "subject": "api::dataset.dataset", @@ -550,7 +617,8 @@ "fields": [ "name", "layers", - "slug" + "slug", + "group" ], "locales": [ "en", @@ -594,7 +662,8 @@ "fields": [ "name", "layers", - "slug" + "slug", + "group" ], "locales": [ "en", @@ -612,6 +681,71 @@ "fields": [ "name", "layers", + "slug", + "group" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::environment.environment", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", "slug" ], "locales": [ @@ -748,7 +882,8 @@ "habitat", "year", "protectedArea", - "totalArea" + "totalArea", + "environment" ] }, "conditions": [], @@ -770,7 +905,8 @@ "habitat", "year", "protectedArea", - "totalArea" + "totalArea", + "environment" ] }, "conditions": [], @@ -785,7 +921,8 @@ "habitat", "year", "protectedArea", - "totalArea" + "totalArea", + "environment" ] }, "conditions": [], @@ -997,7 +1134,9 @@ "fishing_protection_level_stats", "mpaa_protection_level_stats", "protection_coverage_stats", - "bounds" + "marine_bounds", + "totalTerrestrialArea", + "terrestrial_bounds" ], "locales": [ "en", @@ -1035,7 +1174,9 @@ "fishing_protection_level_stats", "mpaa_protection_level_stats", "protection_coverage_stats", - "bounds" + "marine_bounds", + "totalTerrestrialArea", + "terrestrial_bounds" ], "locales": [ "en", @@ -1060,7 +1201,9 @@ "fishing_protection_level_stats", "mpaa_protection_level_stats", "protection_coverage_stats", - "bounds" + "marine_bounds", + "totalTerrestrialArea", + "terrestrial_bounds" ], "locales": [ "en", @@ -1155,8 +1298,9 @@ "wdpaid", "mpaa_protection_level", "is_child", - "mpa_iucn_category", - "designation" + "iucn_category", + "designation", + "environment" ] }, "conditions": [], @@ -1186,8 +1330,9 @@ "wdpaid", "mpaa_protection_level", "is_child", - "mpa_iucn_category", - "designation" + "iucn_category", + "designation", + "environment" ] }, "conditions": [], @@ -1210,8 +1355,9 @@ "wdpaid", "mpaa_protection_level", "is_child", - "mpa_iucn_category", - "designation" + "iucn_category", + "designation", + "environment" ] }, "conditions": [], @@ -1459,7 +1605,8 @@ "year", "cumSumProtectedArea", "protectedArea", - "protectedAreasCount" + "protectedAreasCount", + "environment" ] }, "conditions": [], @@ -1482,7 +1629,8 @@ "year", "cumSumProtectedArea", "protectedArea", - "protectedAreasCount" + "protectedAreasCount", + "environment" ] }, "conditions": [], @@ -1498,7 +1646,8 @@ "year", "cumSumProtectedArea", "protectedArea", - "protectedAreasCount" + "protectedAreasCount", + "environment" ] }, "conditions": [], diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset-group.dataset-group.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset-group.dataset-group.json new file mode 100644 index 00000000..8aa4c85b --- /dev/null +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset-group.dataset-group.json @@ -0,0 +1,155 @@ +{ + "key": "plugin_content_manager_configuration_content_types::api::dataset-group.dataset-group", + "value": { + "uid": "api::dataset-group.dataset-group", + "settings": { + "bulkable": true, + "filterable": true, + "searchable": true, + "pageSize": 10, + "mainField": "name", + "defaultSortBy": "name", + "defaultSortOrder": "ASC" + }, + "metadatas": { + "id": { + "edit": {}, + "list": { + "label": "id", + "searchable": true, + "sortable": true + } + }, + "name": { + "edit": { + "label": "name", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "name", + "searchable": true, + "sortable": true + } + }, + "slug": { + "edit": { + "label": "slug", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "slug", + "searchable": true, + "sortable": true + } + }, + "datasets": { + "edit": { + "label": "datasets", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "name" + }, + "list": { + "label": "datasets", + "searchable": false, + "sortable": false + } + }, + "createdAt": { + "edit": { + "label": "createdAt", + "description": "", + "placeholder": "", + "visible": false, + "editable": true + }, + "list": { + "label": "createdAt", + "searchable": true, + "sortable": true + } + }, + "updatedAt": { + "edit": { + "label": "updatedAt", + "description": "", + "placeholder": "", + "visible": false, + "editable": true + }, + "list": { + "label": "updatedAt", + "searchable": true, + "sortable": true + } + }, + "createdBy": { + "edit": { + "label": "createdBy", + "description": "", + "placeholder": "", + "visible": false, + "editable": true, + "mainField": "firstname" + }, + "list": { + "label": "createdBy", + "searchable": true, + "sortable": true + } + }, + "updatedBy": { + "edit": { + "label": "updatedBy", + "description": "", + "placeholder": "", + "visible": false, + "editable": true, + "mainField": "firstname" + }, + "list": { + "label": "updatedBy", + "searchable": true, + "sortable": true + } + } + }, + "layouts": { + "list": [ + "id", + "name", + "slug", + "datasets" + ], + "edit": [ + [ + { + "name": "name", + "size": 6 + }, + { + "name": "slug", + "size": 6 + } + ], + [ + { + "name": "datasets", + "size": 6 + } + ] + ] + } + }, + "type": "object", + "environment": null, + "tag": null +} \ No newline at end of file diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json index dc5d2cc9..4d4c91fb 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json @@ -63,6 +63,21 @@ "sortable": true } }, + "group": { + "edit": { + "label": "group", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "name" + }, + "list": { + "label": "group", + "searchable": true, + "sortable": true + } + }, "createdAt": { "edit": { "label": "createdAt", @@ -123,6 +138,12 @@ } }, "layouts": { + "list": [ + "id", + "name", + "layers", + "createdAt" + ], "edit": [ [ { @@ -138,14 +159,12 @@ { "name": "layers", "size": 6 + }, + { + "name": "group", + "size": 6 } ] - ], - "list": [ - "id", - "name", - "layers", - "createdAt" ] } }, diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##environment.environment.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##environment.environment.json new file mode 100644 index 00000000..a0eeb749 --- /dev/null +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##environment.environment.json @@ -0,0 +1,134 @@ +{ + "key": "plugin_content_manager_configuration_content_types::api::environment.environment", + "value": { + "uid": "api::environment.environment", + "settings": { + "bulkable": true, + "filterable": true, + "searchable": true, + "pageSize": 10, + "mainField": "name", + "defaultSortBy": "name", + "defaultSortOrder": "ASC" + }, + "metadatas": { + "id": { + "edit": {}, + "list": { + "label": "id", + "searchable": true, + "sortable": true + } + }, + "name": { + "edit": { + "label": "name", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "name", + "searchable": true, + "sortable": true + } + }, + "slug": { + "edit": { + "label": "slug", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "slug", + "searchable": true, + "sortable": true + } + }, + "createdAt": { + "edit": { + "label": "createdAt", + "description": "", + "placeholder": "", + "visible": false, + "editable": true + }, + "list": { + "label": "createdAt", + "searchable": true, + "sortable": true + } + }, + "updatedAt": { + "edit": { + "label": "updatedAt", + "description": "", + "placeholder": "", + "visible": false, + "editable": true + }, + "list": { + "label": "updatedAt", + "searchable": true, + "sortable": true + } + }, + "createdBy": { + "edit": { + "label": "createdBy", + "description": "", + "placeholder": "", + "visible": false, + "editable": true, + "mainField": "firstname" + }, + "list": { + "label": "createdBy", + "searchable": true, + "sortable": true + } + }, + "updatedBy": { + "edit": { + "label": "updatedBy", + "description": "", + "placeholder": "", + "visible": false, + "editable": true, + "mainField": "firstname" + }, + "list": { + "label": "updatedBy", + "searchable": true, + "sortable": true + } + } + }, + "layouts": { + "list": [ + "id", + "name", + "slug", + "createdAt" + ], + "edit": [ + [ + { + "name": "name", + "size": 6 + }, + { + "name": "slug", + "size": 6 + } + ] + ] + } + }, + "type": "object", + "environment": null, + "tag": null +} \ No newline at end of file diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json index be24cdd4..2e1623ec 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json @@ -92,6 +92,21 @@ "sortable": true } }, + "environment": { + "edit": { + "label": "environment", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "name" + }, + "list": { + "label": "environment", + "searchable": true, + "sortable": true + } + }, "createdAt": { "edit": { "label": "createdAt", @@ -182,6 +197,12 @@ "name": "totalArea", "size": 4 } + ], + [ + { + "name": "environment", + "size": 6 + } ] ] } diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json index 94cd9355..32dc9bc7 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json @@ -151,16 +151,44 @@ "sortable": false } }, - "bounds": { + "marine_bounds": { "edit": { - "label": "bounds", + "label": "marine_bounds", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "bounds", + "label": "marine_bounds", + "searchable": false, + "sortable": false + } + }, + "totalTerrestrialArea": { + "edit": { + "label": "totalTerrestrialArea", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "totalTerrestrialArea", + "searchable": true, + "sortable": true + } + }, + "terrestrial_bounds": { + "edit": { + "label": "terrestrial_bounds", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "terrestrial_bounds", "searchable": false, "sortable": false } @@ -247,6 +275,12 @@ "name": "totalMarineArea", "size": 4 }, + { + "name": "totalTerrestrialArea", + "size": 4 + } + ], + [ { "name": "type", "size": 6 @@ -280,7 +314,13 @@ ], [ { - "name": "bounds", + "name": "marine_bounds", + "size": 12 + } + ], + [ + { + "name": "terrestrial_bounds", "size": 12 } ] diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json index bdeab743..4883beab 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json @@ -194,9 +194,9 @@ "sortable": true } }, - "mpa_iucn_category": { + "iucn_category": { "edit": { - "label": "mpa_iucn_category", + "label": "iucn_category", "description": "", "placeholder": "", "visible": true, @@ -204,7 +204,7 @@ "mainField": "slug" }, "list": { - "label": "mpa_iucn_category", + "label": "iucn_category", "searchable": true, "sortable": true } @@ -223,6 +223,21 @@ "sortable": true } }, + "environment": { + "edit": { + "label": "environment", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "name" + }, + "list": { + "label": "environment", + "searchable": true, + "sortable": true + } + }, "createdAt": { "edit": { "label": "createdAt", @@ -354,11 +369,17 @@ ], [ { - "name": "mpa_iucn_category", + "name": "designation", "size": 6 }, { - "name": "designation", + "name": "iucn_category", + "size": 6 + } + ], + [ + { + "name": "environment", "size": 6 } ] diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json index 0dac0cba..2c4fdb6b 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json @@ -106,6 +106,21 @@ "sortable": true } }, + "environment": { + "edit": { + "label": "environment", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "name" + }, + "list": { + "label": "environment", + "searchable": true, + "sortable": true + } + }, "createdAt": { "edit": { "label": "createdAt", @@ -201,6 +216,10 @@ { "name": "protectedAreasCount", "size": 4 + }, + { + "name": "environment", + "size": 6 } ] ] diff --git a/cms/src/api/dataset-group/content-types/dataset-group/schema.json b/cms/src/api/dataset-group/content-types/dataset-group/schema.json new file mode 100644 index 00000000..cfc0db7e --- /dev/null +++ b/cms/src/api/dataset-group/content-types/dataset-group/schema.json @@ -0,0 +1,45 @@ +{ + "kind": "collectionType", + "collectionName": "dataset_groups", + "info": { + "singularName": "dataset-group", + "pluralName": "dataset-groups", + "displayName": "Dataset Group" + }, + "options": { + "draftAndPublish": false + }, + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "attributes": { + "name": { + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "type": "string", + "required": true, + "unique": true + }, + "slug": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "string", + "unique": false, + "required": true + }, + "datasets": { + "type": "relation", + "relation": "oneToMany", + "target": "api::dataset.dataset", + "mappedBy": "group" + } + } +} diff --git a/cms/src/api/dataset-group/controllers/dataset-group.ts b/cms/src/api/dataset-group/controllers/dataset-group.ts new file mode 100644 index 00000000..82b05560 --- /dev/null +++ b/cms/src/api/dataset-group/controllers/dataset-group.ts @@ -0,0 +1,7 @@ +/** + * dataset-group controller + */ + +import { factories } from '@strapi/strapi' + +export default factories.createCoreController('api::dataset-group.dataset-group'); diff --git a/cms/src/api/dataset-group/documentation/1.0.0/dataset-group.json b/cms/src/api/dataset-group/documentation/1.0.0/dataset-group.json new file mode 100644 index 00000000..1d083b15 --- /dev/null +++ b/cms/src/api/dataset-group/documentation/1.0.0/dataset-group.json @@ -0,0 +1,599 @@ +{ + "/dataset-groups": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DatasetGroupListResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Dataset-group" + ], + "parameters": [ + { + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "pagination[withCount]", + "in": "query", + "description": "Return page/pageSize (default: true)", + "deprecated": false, + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "name": "pagination[page]", + "in": "query", + "description": "Page number (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[pageSize]", + "in": "query", + "description": "Page size (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[start]", + "in": "query", + "description": "Offset value (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[limit]", + "in": "query", + "description": "Number of entities to return (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "fields", + "in": "query", + "description": "Fields to return (ex: title,author)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "populate", + "in": "query", + "description": "Relations to return", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filters", + "in": "query", + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object" + }, + "style": "deepObject" + }, + { + "name": "locale", + "in": "query", + "description": "Locale to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + } + ], + "operationId": "get/dataset-groups" + }, + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DatasetGroupResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Dataset-group" + ], + "parameters": [], + "operationId": "post/dataset-groups", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DatasetGroupRequest" + } + } + } + } + } + }, + "/dataset-groups/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DatasetGroupResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Dataset-group" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/dataset-groups/{id}" + }, + "put": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DatasetGroupResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Dataset-group" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "put/dataset-groups/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DatasetGroupRequest" + } + } + } + } + }, + "delete": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Dataset-group" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/dataset-groups/{id}" + } + }, + "/dataset-groups/{id}/localizations": { + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DatasetGroupLocalizationResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Dataset-group" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "post/dataset-groups/{id}/localizations", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DatasetGroupLocalizationRequest" + } + } + } + } + } + } +} diff --git a/cms/src/api/dataset-group/routes/dataset-group.ts b/cms/src/api/dataset-group/routes/dataset-group.ts new file mode 100644 index 00000000..efcc723c --- /dev/null +++ b/cms/src/api/dataset-group/routes/dataset-group.ts @@ -0,0 +1,7 @@ +/** + * dataset-group router + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::dataset-group.dataset-group'); diff --git a/cms/src/api/dataset-group/services/dataset-group.ts b/cms/src/api/dataset-group/services/dataset-group.ts new file mode 100644 index 00000000..6718d214 --- /dev/null +++ b/cms/src/api/dataset-group/services/dataset-group.ts @@ -0,0 +1,7 @@ +/** + * dataset-group service + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::dataset-group.dataset-group'); diff --git a/cms/src/api/dataset/content-types/dataset/schema.json b/cms/src/api/dataset/content-types/dataset/schema.json index aae3c369..448c200c 100644 --- a/cms/src/api/dataset/content-types/dataset/schema.json +++ b/cms/src/api/dataset/content-types/dataset/schema.json @@ -40,6 +40,12 @@ "type": "string", "unique": false, "required": true + }, + "group": { + "type": "relation", + "relation": "manyToOne", + "target": "api::dataset-group.dataset-group", + "inversedBy": "datasets" } } } diff --git a/cms/src/api/environment/content-types/environment/schema.json b/cms/src/api/environment/content-types/environment/schema.json new file mode 100644 index 00000000..a1746235 --- /dev/null +++ b/cms/src/api/environment/content-types/environment/schema.json @@ -0,0 +1,38 @@ +{ + "kind": "collectionType", + "collectionName": "environments", + "info": { + "singularName": "environment", + "pluralName": "environments", + "displayName": "Environment" + }, + "options": { + "draftAndPublish": false + }, + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "attributes": { + "name": { + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "type": "string", + "required": true, + "unique": true + }, + "slug": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "string", + "required": true + } + } +} diff --git a/cms/src/api/environment/controllers/environment.ts b/cms/src/api/environment/controllers/environment.ts new file mode 100644 index 00000000..351d62fb --- /dev/null +++ b/cms/src/api/environment/controllers/environment.ts @@ -0,0 +1,7 @@ +/** + * environment controller + */ + +import { factories } from '@strapi/strapi' + +export default factories.createCoreController('api::environment.environment'); diff --git a/cms/src/api/environment/documentation/1.0.0/environment.json b/cms/src/api/environment/documentation/1.0.0/environment.json new file mode 100644 index 00000000..5136eb0a --- /dev/null +++ b/cms/src/api/environment/documentation/1.0.0/environment.json @@ -0,0 +1,599 @@ +{ + "/environments": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentListResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Environment" + ], + "parameters": [ + { + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "pagination[withCount]", + "in": "query", + "description": "Return page/pageSize (default: true)", + "deprecated": false, + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "name": "pagination[page]", + "in": "query", + "description": "Page number (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[pageSize]", + "in": "query", + "description": "Page size (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[start]", + "in": "query", + "description": "Offset value (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[limit]", + "in": "query", + "description": "Number of entities to return (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "fields", + "in": "query", + "description": "Fields to return (ex: title,author)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "populate", + "in": "query", + "description": "Relations to return", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filters", + "in": "query", + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object" + }, + "style": "deepObject" + }, + { + "name": "locale", + "in": "query", + "description": "Locale to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + } + ], + "operationId": "get/environments" + }, + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Environment" + ], + "parameters": [], + "operationId": "post/environments", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentRequest" + } + } + } + } + } + }, + "/environments/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Environment" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/environments/{id}" + }, + "put": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Environment" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "put/environments/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentRequest" + } + } + } + } + }, + "delete": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Environment" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/environments/{id}" + } + }, + "/environments/{id}/localizations": { + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentLocalizationResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Environment" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "post/environments/{id}/localizations", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EnvironmentLocalizationRequest" + } + } + } + } + } + } +} diff --git a/cms/src/api/environment/routes/environment.ts b/cms/src/api/environment/routes/environment.ts new file mode 100644 index 00000000..f380c577 --- /dev/null +++ b/cms/src/api/environment/routes/environment.ts @@ -0,0 +1,7 @@ +/** + * environment router + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::environment.environment'); diff --git a/cms/src/api/environment/services/environment.ts b/cms/src/api/environment/services/environment.ts new file mode 100644 index 00000000..111c7e1f --- /dev/null +++ b/cms/src/api/environment/services/environment.ts @@ -0,0 +1,7 @@ +/** + * environment service + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::environment.environment'); diff --git a/cms/src/api/habitat-stat/content-types/habitat-stat/schema.json b/cms/src/api/habitat-stat/content-types/habitat-stat/schema.json index a1bbc62d..2273fbbb 100644 --- a/cms/src/api/habitat-stat/content-types/habitat-stat/schema.json +++ b/cms/src/api/habitat-stat/content-types/habitat-stat/schema.json @@ -33,7 +33,10 @@ "column": { "defaultTo": 0, "type": "decimal", - "args": [12,2] + "args": [ + 12, + 2 + ] } }, "totalArea": { @@ -43,8 +46,16 @@ "column": { "defaultTo": 0, "type": "decimal", - "args": [12,2] + "args": [ + 12, + 2 + ] } + }, + "environment": { + "type": "relation", + "relation": "oneToOne", + "target": "api::environment.environment" } } } diff --git a/cms/src/api/location/content-types/location/schema.json b/cms/src/api/location/content-types/location/schema.json index 3e915106..e901a634 100644 --- a/cms/src/api/location/content-types/location/schema.json +++ b/cms/src/api/location/content-types/location/schema.json @@ -94,13 +94,31 @@ "target": "api::protection-coverage-stat.protection-coverage-stat", "mappedBy": "location" }, - "bounds": { + "marine_bounds": { "type": "json", "pluginOptions": { "i18n": { - "localized": true + "localized": false } } + }, + "totalTerrestrialArea": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "decimal", + "required": true, + "min": 0 + }, + "terrestrial_bounds": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "json" } } } diff --git a/cms/src/api/mpa/content-types/mpa/schema.json b/cms/src/api/mpa/content-types/mpa/schema.json index d52bfe95..eb3f052b 100644 --- a/cms/src/api/mpa/content-types/mpa/schema.json +++ b/cms/src/api/mpa/content-types/mpa/schema.json @@ -75,13 +75,18 @@ "default": false, "required": true }, - "mpa_iucn_category": { + "iucn_category": { "type": "relation", "relation": "oneToOne", "target": "api::mpa-iucn-category.mpa-iucn-category" }, "designation": { "type": "string" + }, + "environment": { + "type": "relation", + "relation": "oneToOne", + "target": "api::environment.environment" } } } diff --git a/cms/src/api/protection-coverage-stat/content-types/protection-coverage-stat/schema.json b/cms/src/api/protection-coverage-stat/content-types/protection-coverage-stat/schema.json index f00fe359..687d1f7b 100644 --- a/cms/src/api/protection-coverage-stat/content-types/protection-coverage-stat/schema.json +++ b/cms/src/api/protection-coverage-stat/content-types/protection-coverage-stat/schema.json @@ -56,6 +56,11 @@ "protectedAreasCount": { "type": "integer", "required": true + }, + "environment": { + "type": "relation", + "relation": "oneToOne", + "target": "api::environment.environment" } } } diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index c5cfc2b0..95b2f566 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1139,6 +1139,11 @@ export interface ApiDatasetDataset extends Schema.CollectionType { localized: false; }; }>; + group: Attribute.Relation< + 'api::dataset.dataset', + 'manyToOne', + 'api::dataset-group.dataset-group' + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; publishedAt: Attribute.DateTime; @@ -1163,6 +1168,119 @@ export interface ApiDatasetDataset extends Schema.CollectionType { }; } +export interface ApiDatasetGroupDatasetGroup extends Schema.CollectionType { + collectionName: 'dataset_groups'; + info: { + singularName: 'dataset-group'; + pluralName: 'dataset-groups'; + displayName: 'Dataset Group'; + }; + options: { + draftAndPublish: false; + }; + pluginOptions: { + i18n: { + localized: true; + }; + }; + attributes: { + name: Attribute.String & + Attribute.Required & + Attribute.Unique & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + slug: Attribute.String & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + datasets: Attribute.Relation< + 'api::dataset-group.dataset-group', + 'oneToMany', + 'api::dataset.dataset' + >; + createdAt: Attribute.DateTime; + updatedAt: Attribute.DateTime; + createdBy: Attribute.Relation< + 'api::dataset-group.dataset-group', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + updatedBy: Attribute.Relation< + 'api::dataset-group.dataset-group', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + localizations: Attribute.Relation< + 'api::dataset-group.dataset-group', + 'oneToMany', + 'api::dataset-group.dataset-group' + >; + locale: Attribute.String; + }; +} + +export interface ApiEnvironmentEnvironment extends Schema.CollectionType { + collectionName: 'environments'; + info: { + singularName: 'environment'; + pluralName: 'environments'; + displayName: 'Environment'; + }; + options: { + draftAndPublish: false; + }; + pluginOptions: { + i18n: { + localized: true; + }; + }; + attributes: { + name: Attribute.String & + Attribute.Required & + Attribute.Unique & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + slug: Attribute.String & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }>; + createdAt: Attribute.DateTime; + updatedAt: Attribute.DateTime; + createdBy: Attribute.Relation< + 'api::environment.environment', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + updatedBy: Attribute.Relation< + 'api::environment.environment', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + localizations: Attribute.Relation< + 'api::environment.environment', + 'oneToMany', + 'api::environment.environment' + >; + locale: Attribute.String; + }; +} + export interface ApiFishingProtectionLevelFishingProtectionLevel extends Schema.CollectionType { collectionName: 'fishing_protection_levels'; @@ -1363,6 +1481,11 @@ export interface ApiHabitatStatHabitatStat extends Schema.CollectionType { Attribute.SetMinMax<{ min: 0; }>; + environment: Attribute.Relation< + 'api::habitat-stat.habitat-stat', + 'oneToOne', + 'api::environment.environment' + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< @@ -1551,10 +1674,26 @@ export interface ApiLocationLocation extends Schema.CollectionType { 'oneToMany', 'api::protection-coverage-stat.protection-coverage-stat' >; - bounds: Attribute.JSON & + marine_bounds: Attribute.JSON & Attribute.SetPluginOptions<{ i18n: { - localized: true; + localized: false; + }; + }>; + totalTerrestrialArea: Attribute.Decimal & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; + }; + }> & + Attribute.SetMinMax<{ + min: 0; + }>; + terrestrial_bounds: Attribute.JSON & + Attribute.SetPluginOptions<{ + i18n: { + localized: false; }; }>; createdAt: Attribute.DateTime; @@ -1633,12 +1772,17 @@ export interface ApiMpaMpa extends Schema.CollectionType { is_child: Attribute.Boolean & Attribute.Required & Attribute.DefaultTo; - mpa_iucn_category: Attribute.Relation< + iucn_category: Attribute.Relation< 'api::mpa.mpa', 'oneToOne', 'api::mpa-iucn-category.mpa-iucn-category' >; designation: Attribute.String; + environment: Attribute.Relation< + 'api::mpa.mpa', + 'oneToOne', + 'api::environment.environment' + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation<'api::mpa.mpa', 'oneToOne', 'admin::user'> & @@ -1969,6 +2113,11 @@ export interface ApiProtectionCoverageStatProtectionCoverageStat min: 0; }>; protectedAreasCount: Attribute.Integer & Attribute.Required; + environment: Attribute.Relation< + 'api::protection-coverage-stat.protection-coverage-stat', + 'oneToOne', + 'api::environment.environment' + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< @@ -2137,6 +2286,8 @@ declare module '@strapi/types' { 'api::data-tool-language.data-tool-language': ApiDataToolLanguageDataToolLanguage; 'api::data-tool-resource-type.data-tool-resource-type': ApiDataToolResourceTypeDataToolResourceType; 'api::dataset.dataset': ApiDatasetDataset; + 'api::dataset-group.dataset-group': ApiDatasetGroupDatasetGroup; + 'api::environment.environment': ApiEnvironmentEnvironment; 'api::fishing-protection-level.fishing-protection-level': ApiFishingProtectionLevelFishingProtectionLevel; 'api::fishing-protection-level-stat.fishing-protection-level-stat': ApiFishingProtectionLevelStatFishingProtectionLevelStat; 'api::habitat.habitat': ApiHabitatHabitat; diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/index.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/index.tsx index 128d2844..5fe3d747 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/index.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/index.tsx @@ -64,7 +64,7 @@ const NationalHighseasTable: FCWithMessages = () => { }, }, location: { - fields: ['code', 'total_marine_area', 'bounds'], + fields: ['code', 'total_marine_area', 'marine_bounds'], }, mpaa_protection_level: { fields: ['slug', 'name'], @@ -75,7 +75,7 @@ const NationalHighseasTable: FCWithMessages = () => { data_source: { fields: ['slug'], }, - mpa_iucn_category: { + iucn_category: { fields: ['slug'], }, }; @@ -115,7 +115,7 @@ const NationalHighseasTable: FCWithMessages = () => { const establishmentStage = mpa?.mpaa_establishment_stage?.data?.attributes; const mpaaProtectionLevel = mpa?.mpaa_protection_level?.data?.attributes; const dataSource = mpa?.data_source?.data?.attributes; - const iucnCategory = mpa?.mpa_iucn_category?.data?.attributes; + const iucnCategory = mpa?.iucn_category?.data?.attributes; const coveragePercentage = (mpa.area / locationsQuery.data?.totalMarineArea) * 100; diff --git a/frontend/src/containers/map/content/map/index.tsx b/frontend/src/containers/map/content/map/index.tsx index 07ba765b..9c0208af 100644 --- a/frontend/src/containers/map/content/map/index.tsx +++ b/frontend/src/containers/map/content/map/index.tsx @@ -118,7 +118,7 @@ const MainMap: FCWithMessages = () => { }, [setMapLayers, defaultLayers]); useEffect(() => { - setLocationBbox(locationsQuery?.data?.bounds as CustomMapProps['bounds']['bbox']); + setLocationBbox(locationsQuery?.data?.marine_bounds as CustomMapProps['bounds']['bbox']); }, [locationCode, locationsQuery, setLocationBbox]); const handleMoveEnd = useCallback(() => { @@ -233,7 +233,7 @@ const MainMap: FCWithMessages = () => { if (locationsQuery.data && locationsQuery.data?.code !== 'GLOB') { return { ...DEFAULT_VIEW_STATE, - bounds: locationsQuery.data?.bounds as ComponentProps< + bounds: locationsQuery.data?.marine_bounds as ComponentProps< typeof Map >['initialViewState']['bounds'], padding: { diff --git a/frontend/src/containers/map/content/map/popup/eez/index.tsx b/frontend/src/containers/map/content/map/popup/eez/index.tsx index 3d96264a..77cfb83e 100644 --- a/frontend/src/containers/map/content/map/popup/eez/index.tsx +++ b/frontend/src/containers/map/content/map/popup/eez/index.tsx @@ -236,7 +236,7 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { const handleLocationSelected = useCallback(async () => { if (!locationsData[0]) return undefined; - const { code, bounds } = locationsData[0]; + const { code, marine_bounds: bounds } = locationsData[0]; await push(`${PAGES.progressTracker}/${code.toUpperCase()}?${searchParams.toString()}`); setLocationBBox(bounds as CustomMapProps['bounds']['bbox']); diff --git a/frontend/src/containers/map/content/map/popup/regions/index.tsx b/frontend/src/containers/map/content/map/popup/regions/index.tsx index c0a8d2d0..82a229c2 100644 --- a/frontend/src/containers/map/content/map/popup/regions/index.tsx +++ b/frontend/src/containers/map/content/map/popup/regions/index.tsx @@ -182,7 +182,7 @@ const RegionsPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { PAGES.progressTracker }/${locationsQuery.data.code.toUpperCase()}?${searchParams.toString()}` ); - setLocationBBox(locationsQuery.data.bounds as CustomMapProps['bounds']['bbox']); + setLocationBBox(locationsQuery.data.marine_bounds as CustomMapProps['bounds']['bbox']); setPopup({}); }, [push, searchParams, setLocationBBox, locationsQuery.data, setPopup]); diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index 485c4c3b..add97273 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -1222,11 +1222,6 @@ export interface UploadFile { export type StaticIndicatorResponseMeta = { [key: string]: any }; -export interface StaticIndicatorResponse { - data?: StaticIndicatorResponseDataObject; - meta?: StaticIndicatorResponseMeta; -} - export type StaticIndicatorLocalizations = { data?: StaticIndicator[]; }; @@ -1250,6 +1245,11 @@ export interface StaticIndicatorResponseDataObject { attributes?: StaticIndicator; } +export interface StaticIndicatorResponse { + data?: StaticIndicatorResponseDataObject; + meta?: StaticIndicatorResponseMeta; +} + export type StaticIndicatorUpdatedByDataAttributes = { [key: string]: any }; export type StaticIndicatorUpdatedByData = { @@ -1309,6 +1309,18 @@ export type StaticIndicatorCreatedByDataAttributesCreatedBy = { data?: StaticIndicatorCreatedByDataAttributesCreatedByData; }; +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type StaticIndicatorCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes; @@ -1331,18 +1343,6 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdated data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -1356,11 +1356,6 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreated data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - id?: number; - attributes?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; -}; - export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions = { data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; @@ -1379,20 +1374,6 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermiss data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1421,6 +1402,25 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermiss data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { + id?: number; + attributes?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; +}; + export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -1519,6 +1519,23 @@ export type ProtectionStatusLocalizations = { data?: ProtectionStatus[]; }; +export interface ProtectionStatus { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedBy; + updatedBy?: ProtectionStatusUpdatedBy; + localizations?: ProtectionStatusLocalizations; + locale?: string; +} + +export interface ProtectionStatusResponseDataObject { + id?: number; + attributes?: ProtectionStatus; +} + export type ProtectionStatusUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusUpdatedByData = { @@ -1530,23 +1547,6 @@ export type ProtectionStatusUpdatedBy = { data?: ProtectionStatusUpdatedByData; }; -export type ProtectionStatusCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: ProtectionStatusCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedByDataAttributesCreatedBy; - updatedBy?: ProtectionStatusCreatedByDataAttributesUpdatedBy; -}; - export type ProtectionStatusCreatedByData = { id?: number; attributes?: ProtectionStatusCreatedByDataAttributes; @@ -1556,23 +1556,6 @@ export type ProtectionStatusCreatedBy = { data?: ProtectionStatusCreatedByData; }; -export interface ProtectionStatus { - slug: string; - name: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedBy; - updatedBy?: ProtectionStatusUpdatedBy; - localizations?: ProtectionStatusLocalizations; - locale?: string; -} - -export interface ProtectionStatusResponseDataObject { - id?: number; - attributes?: ProtectionStatus; -} - export type ProtectionStatusCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusCreatedByDataAttributesUpdatedByData = { @@ -1584,6 +1567,23 @@ export type ProtectionStatusCreatedByDataAttributesUpdatedBy = { data?: ProtectionStatusCreatedByDataAttributesUpdatedByData; }; +export type ProtectionStatusCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: ProtectionStatusCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesUpdatedBy; +}; + export type ProtectionStatusCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusCreatedByDataAttributesCreatedByData = { @@ -1595,6 +1595,23 @@ export type ProtectionStatusCreatedByDataAttributesCreatedBy = { data?: ProtectionStatusCreatedByDataAttributesCreatedByData; }; +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type ProtectionStatusCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes; +}; + export type ProtectionStatusCreatedByDataAttributesRoles = { data?: ProtectionStatusCreatedByDataAttributesRolesDataItem[]; }; @@ -1632,23 +1649,6 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermis data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type ProtectionStatusCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes; -}; - export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -1663,6 +1663,20 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermis data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1691,20 +1705,6 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermis data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -1803,6 +1803,7 @@ export interface ProtectionCoverageStat { cumSumProtectedArea: number; protectedArea?: number; protectedAreasCount: number; + environment?: ProtectionCoverageStatEnvironment; createdAt?: string; updatedAt?: string; createdBy?: ProtectionCoverageStatCreatedBy; @@ -1836,6 +1837,17 @@ export type ProtectionCoverageStatCreatedBy = { data?: ProtectionCoverageStatCreatedByData; }; +export type ProtectionCoverageStatEnvironmentDataAttributes = { [key: string]: any }; + +export type ProtectionCoverageStatEnvironmentData = { + id?: number; + attributes?: ProtectionCoverageStatEnvironmentDataAttributes; +}; + +export type ProtectionCoverageStatEnvironment = { + data?: ProtectionCoverageStatEnvironmentData; +}; + export type ProtectionCoverageStatProtectionStatusDataAttributes = { [key: string]: any }; export type ProtectionCoverageStatProtectionStatusData = { @@ -1847,11 +1859,6 @@ export type ProtectionCoverageStatProtectionStatus = { data?: ProtectionCoverageStatProtectionStatusData; }; -export type ProtectionCoverageStatLocationData = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributes; -}; - export type ProtectionCoverageStatLocation = { data?: ProtectionCoverageStatLocationData; }; @@ -1860,19 +1867,6 @@ export type ProtectionCoverageStatLocationDataAttributesLocalizations = { data?: unknown[]; }; -export type ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type ProtectionCoverageStatLocationDataAttributesUpdatedByData = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes; -}; - -export type ProtectionCoverageStatLocationDataAttributesUpdatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesUpdatedByData; -}; - export type ProtectionCoverageStatLocationDataAttributes = { code?: string; name?: string; @@ -1883,7 +1877,9 @@ export type ProtectionCoverageStatLocationDataAttributes = { fishing_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStats; mpaa_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats; - bounds?: unknown; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; createdAt?: string; updatedAt?: string; createdBy?: ProtectionCoverageStatLocationDataAttributesCreatedBy; @@ -1892,6 +1888,24 @@ export type ProtectionCoverageStatLocationDataAttributes = { locale?: string; }; +export type ProtectionCoverageStatLocationData = { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributes; +}; + +export type ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type ProtectionCoverageStatLocationDataAttributesUpdatedByData = { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes; +}; + +export type ProtectionCoverageStatLocationDataAttributesUpdatedBy = { + data?: ProtectionCoverageStatLocationDataAttributesUpdatedByData; +}; + export type ProtectionCoverageStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -1905,33 +1919,10 @@ export type ProtectionCoverageStatLocationDataAttributesCreatedBy = { data?: ProtectionCoverageStatLocationDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; -}; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats = { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem[]; -}; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; - }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; - }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; + }; export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { @@ -1941,12 +1932,31 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD cumSumProtectedArea?: number; protectedArea?: number; protectedAreasCount?: number; + environment?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; createdAt?: string; updatedAt?: string; createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem = { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; +}; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats = { + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem[]; +}; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; + }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1956,34 +1966,70 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = + { + data?: unknown[]; }; export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = @@ -1999,6 +2045,31 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD locale?: string; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = + { + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2027,6 +2098,17 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = + { + location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { id?: number; attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; @@ -2050,17 +2132,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = - { - location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2085,20 +2156,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats data?: unknown[]; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = { slug?: string; @@ -2118,6 +2175,20 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2146,18 +2217,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; @@ -2195,33 +2254,32 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { - data?: unknown[]; + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + location?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + data?: unknown[]; }; export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = @@ -2238,6 +2296,19 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { firstname?: string; @@ -2295,6 +2366,17 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2322,17 +2404,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2512,6 +2583,16 @@ export type MpaaProtectionLevelStatUpdatedBy = { data?: MpaaProtectionLevelStatUpdatedByData; }; +export interface MpaaProtectionLevelStat { + location?: MpaaProtectionLevelStatLocation; + mpaa_protection_level?: MpaaProtectionLevelStatMpaaProtectionLevel; + area: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatCreatedBy; + updatedBy?: MpaaProtectionLevelStatUpdatedBy; +} + export type MpaaProtectionLevelStatCreatedByDataAttributes = { [key: string]: any }; export type MpaaProtectionLevelStatCreatedByData = { @@ -2534,48 +2615,19 @@ export type MpaaProtectionLevelStatMpaaProtectionLevel = { data?: MpaaProtectionLevelStatMpaaProtectionLevelData; }; +export type MpaaProtectionLevelStatLocationData = { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributes; +}; + +export type MpaaProtectionLevelStatLocation = { + data?: MpaaProtectionLevelStatLocationData; +}; + export type MpaaProtectionLevelStatLocationDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaProtectionLevelStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: MpaaProtectionLevelStatLocationDataAttributesGroups; - members?: MpaaProtectionLevelStatLocationDataAttributesMembers; - fishing_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats; - bounds?: unknown; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesUpdatedBy; - localizations?: MpaaProtectionLevelStatLocationDataAttributesLocalizations; - locale?: string; -}; - -export type MpaaProtectionLevelStatLocationData = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributes; -}; - -export type MpaaProtectionLevelStatLocation = { - data?: MpaaProtectionLevelStatLocationData; -}; - -export interface MpaaProtectionLevelStat { - location?: MpaaProtectionLevelStatLocation; - mpaa_protection_level?: MpaaProtectionLevelStatMpaaProtectionLevel; - area: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatCreatedBy; - updatedBy?: MpaaProtectionLevelStatUpdatedBy; -} - export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -2602,6 +2654,21 @@ export type MpaaProtectionLevelStatLocationDataAttributesCreatedBy = { data?: MpaaProtectionLevelStatLocationDataAttributesCreatedByData; }; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + protection_status?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + year?: number; + cumSumProtectedArea?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -2611,6 +2678,27 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; +export type MpaaProtectionLevelStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: MpaaProtectionLevelStatLocationDataAttributesGroups; + members?: MpaaProtectionLevelStatLocationDataAttributesMembers; + fishing_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; + protection_coverage_stats?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatLocationDataAttributesLocalizations; + locale?: string; +}; + export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2639,39 +2727,65 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + data?: unknown[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = { - location?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; + name?: string; + slug?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { - data?: unknown[]; + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = + { + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = + { + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = + { + data?: unknown[]; }; export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = @@ -2687,6 +2801,17 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats locale?: string; }; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = + { + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + }; + export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2696,6 +2821,11 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; }; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = + { + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + }; + export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2761,12 +2891,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; - }; - export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = { data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; @@ -2788,6 +2912,25 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat data?: unknown[]; }; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + }; + export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2802,19 +2945,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2843,23 +2973,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; @@ -2878,6 +2991,23 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; }; +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2892,6 +3022,17 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = + { + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + }; + export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; @@ -2935,17 +3076,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS locale?: string; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; - }; - export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2960,24 +3090,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; - }; - export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2992,15 +3104,27 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; }; export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = @@ -3044,7 +3168,22 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; @@ -3074,15 +3213,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3188,11 +3318,6 @@ export interface MpaaProtectionLevelStatListResponse { export type MpaaProtectionLevelResponseMeta = { [key: string]: any }; -export interface MpaaProtectionLevelResponseDataObject { - id?: number; - attributes?: MpaaProtectionLevel; -} - export interface MpaaProtectionLevelResponse { data?: MpaaProtectionLevelResponseDataObject; meta?: MpaaProtectionLevelResponseMeta; @@ -3234,6 +3359,11 @@ export interface MpaaProtectionLevel { locale?: string; } +export interface MpaaProtectionLevelResponseDataObject { + id?: number; + attributes?: MpaaProtectionLevel; +} + export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -3247,40 +3377,10 @@ export type MpaaProtectionLevelCreatedByDataAttributesUpdatedBy = { data?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type MpaaProtectionLevelCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes; -}; - export type MpaaProtectionLevelCreatedByDataAttributesCreatedBy = { data?: MpaaProtectionLevelCreatedByDataAttributesCreatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; -}; - -export type MpaaProtectionLevelCreatedByDataAttributesRoles = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItem[]; -}; - export type MpaaProtectionLevelCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -3298,6 +3398,24 @@ export type MpaaProtectionLevelCreatedByDataAttributes = { updatedBy?: MpaaProtectionLevelCreatedByDataAttributesUpdatedBy; }; +export type MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesRoles = { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItem[]; +}; + export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3345,6 +3463,18 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPer data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3473,6 +3603,11 @@ export interface MpaaProtectionLevelLocalizationRequest { export type MpaaEstablishmentStageStatResponseMeta = { [key: string]: any }; +export interface MpaaEstablishmentStageStatResponseDataObject { + id?: number; + attributes?: MpaaEstablishmentStageStat; +} + export interface MpaaEstablishmentStageStatResponse { data?: MpaaEstablishmentStageStatResponseDataObject; meta?: MpaaEstablishmentStageStatResponseMeta; @@ -3511,6 +3646,27 @@ export type MpaaEstablishmentStageStatProtectionStatus = { data?: MpaaEstablishmentStageStatProtectionStatusData; }; +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesLocalizations = { + data?: unknown[]; +}; + +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedBy; + localizations?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesLocalizations; + locale?: string; +}; + +export type MpaaEstablishmentStageStatMpaaEstablishmentStageData = { + id?: number; + attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes; +}; + export type MpaaEstablishmentStageStatMpaaEstablishmentStage = { data?: MpaaEstablishmentStageStatMpaaEstablishmentStageData; }; @@ -3527,15 +3683,6 @@ export interface MpaaEstablishmentStageStat { updatedBy?: MpaaEstablishmentStageStatUpdatedBy; } -export interface MpaaEstablishmentStageStatResponseDataObject { - id?: number; - attributes?: MpaaEstablishmentStageStat; -} - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesLocalizations = { - data?: unknown[]; -}; - export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3548,23 +3695,6 @@ export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdate data?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesLocalizations; - locale?: string; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageData = { - id?: number; - attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes; -}; - export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3585,19 +3715,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedByData; -}; - export type MpaaEstablishmentStageStatLocationDataAttributes = { code?: string; name?: string; @@ -3608,7 +3725,9 @@ export type MpaaEstablishmentStageStatLocationDataAttributes = { fishing_protection_level_stats?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStats; mpaa_protection_level_stats?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStats; - bounds?: unknown; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; createdAt?: string; updatedAt?: string; createdBy?: MpaaEstablishmentStageStatLocationDataAttributesCreatedBy; @@ -3622,6 +3741,19 @@ export type MpaaEstablishmentStageStatLocationData = { attributes?: MpaaEstablishmentStageStatLocationDataAttributes; }; +export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedByData = { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedByDataAttributes; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedBy = { + data?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedByData; +}; + export type MpaaEstablishmentStageStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -3635,6 +3767,21 @@ export type MpaaEstablishmentStageStatLocationDataAttributesCreatedBy = { data?: MpaaEstablishmentStageStatLocationDataAttributesCreatedByData; }; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + protection_status?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + year?: number; + cumSumProtectedArea?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -3672,62 +3819,65 @@ export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageSt data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - location?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = + { + data?: unknown[]; }; export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = @@ -3743,41 +3893,57 @@ export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageSt locale?: string; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStats = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = @@ -3791,6 +3957,29 @@ export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelS updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; }; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStats = { + data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3805,6 +3994,24 @@ export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelS data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = + { + data?: unknown[]; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = { id?: number; @@ -3816,11 +4023,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelS data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3849,19 +4051,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelS data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -3913,12 +4102,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; @@ -3941,11 +4124,49 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: unknown[]; }; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = { data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; @@ -3959,24 +4180,10 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev locale?: string; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = @@ -4007,35 +4214,11 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = { data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4064,6 +4247,20 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -4088,6 +4285,12 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4130,20 +4333,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -4280,6 +4469,28 @@ export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedBy = { data?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedByData; }; +export type MpaaEstablishmentStageCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type MpaaEstablishmentStageCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type MpaaEstablishmentStageCreatedByDataAttributesCreatedBy = { + data?: MpaaEstablishmentStageCreatedByDataAttributesCreatedByData; +}; + +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type MpaaEstablishmentStageCreatedByDataAttributesRoles = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem[]; +}; + export type MpaaEstablishmentStageCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -4297,17 +4508,16 @@ export type MpaaEstablishmentStageCreatedByDataAttributes = { updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedBy; }; -export type MpaaEstablishmentStageCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; -export type MpaaEstablishmentStageCreatedByDataAttributesCreatedByData = { +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageCreatedByDataAttributesCreatedByData; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes = { @@ -4322,53 +4532,18 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem = { +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRoles = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem[]; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; -}; - -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; -}; - -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; -}; - -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData; -}; - -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -4421,6 +4596,24 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; +}; + export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -4429,10 +4622,6 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; -}; - export type MpaaEstablishmentStageListResponseMetaPagination = { page?: number; pageSize?: number; @@ -4532,11 +4721,6 @@ export type MpaIucnCategoryUpdatedBy = { data?: MpaIucnCategoryUpdatedByData; }; -export type MpaIucnCategoryCreatedByData = { - id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributes; -}; - export type MpaIucnCategoryCreatedBy = { data?: MpaIucnCategoryCreatedByData; }; @@ -4575,27 +4759,6 @@ export type MpaIucnCategoryCreatedByDataAttributesCreatedBy = { data?: MpaIucnCategoryCreatedByDataAttributesCreatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes; -}; - -export type MpaIucnCategoryCreatedByDataAttributesRoles = { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItem[]; -}; - export type MpaIucnCategoryCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -4613,6 +4776,11 @@ export type MpaIucnCategoryCreatedByDataAttributes = { updatedBy?: MpaIucnCategoryCreatedByDataAttributesUpdatedBy; }; +export type MpaIucnCategoryCreatedByData = { + id?: number; + attributes?: MpaIucnCategoryCreatedByDataAttributes; +}; + export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -4626,6 +4794,27 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdated data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type MpaIucnCategoryCreatedByDataAttributesRoles = { + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItem[]; +}; + export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -4639,6 +4828,20 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreated data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -4662,25 +4865,6 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermiss data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; - }; - -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -4690,6 +4874,11 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermiss attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = + { + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + }; + export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -4791,23 +4980,11 @@ export interface MpaIucnCategoryLocalizationRequest { export type MpaResponseMeta = { [key: string]: any }; -export interface MpaResponseDataObject { - id?: number; - attributes?: Mpa; -} - export interface MpaResponse { data?: MpaResponseDataObject; meta?: MpaResponseMeta; } -export type MpaUpdatedByDataAttributes = { [key: string]: any }; - -export type MpaUpdatedByData = { - id?: number; - attributes?: MpaUpdatedByDataAttributes; -}; - export type MpaUpdatedBy = { data?: MpaUpdatedByData; }; @@ -4825,14 +5002,27 @@ export interface Mpa { wdpaid?: string; mpaa_protection_level?: MpaMpaaProtectionLevel; is_child: boolean; - mpa_iucn_category?: MpaMpaIucnCategory; + iucn_category?: MpaIucnCategoryProperty; designation?: string; + environment?: MpaEnvironment; createdAt?: string; updatedAt?: string; createdBy?: MpaCreatedBy; updatedBy?: MpaUpdatedBy; } +export interface MpaResponseDataObject { + id?: number; + attributes?: Mpa; +} + +export type MpaUpdatedByDataAttributes = { [key: string]: any }; + +export type MpaUpdatedByData = { + id?: number; + attributes?: MpaUpdatedByDataAttributes; +}; + export type MpaCreatedByDataAttributes = { [key: string]: any }; export type MpaCreatedByData = { @@ -4844,15 +5034,26 @@ export type MpaCreatedBy = { data?: MpaCreatedByData; }; -export type MpaMpaIucnCategoryDataAttributes = { [key: string]: any }; +export type MpaEnvironmentDataAttributes = { [key: string]: any }; + +export type MpaEnvironmentData = { + id?: number; + attributes?: MpaEnvironmentDataAttributes; +}; + +export type MpaEnvironment = { + data?: MpaEnvironmentData; +}; + +export type MpaIucnCategoryPropertyDataAttributes = { [key: string]: any }; -export type MpaMpaIucnCategoryData = { +export type MpaIucnCategoryPropertyData = { id?: number; - attributes?: MpaMpaIucnCategoryDataAttributes; + attributes?: MpaIucnCategoryPropertyDataAttributes; }; -export type MpaMpaIucnCategory = { - data?: MpaMpaIucnCategoryData; +export type MpaIucnCategoryProperty = { + data?: MpaIucnCategoryPropertyData; }; export type MpaMpaaProtectionLevelDataAttributes = { [key: string]: any }; @@ -4899,6 +5100,28 @@ export type MpaDataSource = { data?: MpaDataSourceData; }; +export type MpaChildrenDataItemAttributes = { + name?: string; + area?: number; + year?: number; + protection_status?: MpaChildrenDataItemAttributesProtectionStatus; + bbox?: unknown; + children?: MpaChildrenDataItemAttributesChildren; + data_source?: MpaChildrenDataItemAttributesDataSource; + mpaa_establishment_stage?: MpaChildrenDataItemAttributesMpaaEstablishmentStage; + location?: MpaChildrenDataItemAttributesLocation; + wdpaid?: string; + mpaa_protection_level?: MpaChildrenDataItemAttributesMpaaProtectionLevel; + is_child?: boolean; + iucn_category?: MpaChildrenDataItemAttributesIucnCategory; + designation?: string; + environment?: MpaChildrenDataItemAttributesEnvironment; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaChildrenDataItemAttributesCreatedBy; + updatedBy?: MpaChildrenDataItemAttributesUpdatedBy; +}; + export type MpaChildrenDataItem = { id?: number; attributes?: MpaChildrenDataItemAttributes; @@ -4930,78 +5153,70 @@ export type MpaChildrenDataItemAttributesCreatedBy = { data?: MpaChildrenDataItemAttributesCreatedByData; }; -export type MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesLocalizations = { - data?: unknown[]; +export type MpaChildrenDataItemAttributesEnvironmentDataAttributes = { [key: string]: any }; + +export type MpaChildrenDataItemAttributesEnvironmentData = { + id?: number; + attributes?: MpaChildrenDataItemAttributesEnvironmentDataAttributes; +}; + +export type MpaChildrenDataItemAttributesEnvironment = { + data?: MpaChildrenDataItemAttributesEnvironmentData; }; -export type MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributes = { +export type MpaChildrenDataItemAttributesIucnCategoryDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesUpdatedBy; - localizations?: MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesLocalizations; + createdBy?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedBy; + updatedBy?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedBy; + localizations?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations; locale?: string; }; -export type MpaChildrenDataItemAttributesMpaIucnCategoryData = { +export type MpaChildrenDataItemAttributesIucnCategoryData = { id?: number; - attributes?: MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributes; + attributes?: MpaChildrenDataItemAttributesIucnCategoryDataAttributes; }; -export type MpaChildrenDataItemAttributesMpaIucnCategory = { - data?: MpaChildrenDataItemAttributesMpaIucnCategoryData; +export type MpaChildrenDataItemAttributesIucnCategory = { + data?: MpaChildrenDataItemAttributesIucnCategoryData; }; -export type MpaChildrenDataItemAttributes = { - name?: string; - area?: number; - year?: number; - protection_status?: MpaChildrenDataItemAttributesProtectionStatus; - bbox?: unknown; - children?: MpaChildrenDataItemAttributesChildren; - data_source?: MpaChildrenDataItemAttributesDataSource; - mpaa_establishment_stage?: MpaChildrenDataItemAttributesMpaaEstablishmentStage; - location?: MpaChildrenDataItemAttributesLocation; - wdpaid?: string; - mpaa_protection_level?: MpaChildrenDataItemAttributesMpaaProtectionLevel; - is_child?: boolean; - mpa_iucn_category?: MpaChildrenDataItemAttributesMpaIucnCategory; - designation?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesUpdatedBy; +export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations = { + data?: unknown[]; }; -export type MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesUpdatedByDataAttributes = { +export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; -export type MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesUpdatedByData = { +export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesUpdatedByDataAttributes; + attributes?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesUpdatedByData; +export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedBy = { + data?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByData; }; -export type MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesCreatedByDataAttributes = { +export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByDataAttributes = { [key: string]: any; }; -export type MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesCreatedByData = { +export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesCreatedByDataAttributes; + attributes?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesMpaIucnCategoryDataAttributesCreatedByData; +export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedBy = { + data?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByData; }; +export type MpaChildrenDataItemAttributesMpaaProtectionLevelDataAttributes = { [key: string]: any }; + export type MpaChildrenDataItemAttributesMpaaProtectionLevelData = { id?: number; attributes?: MpaChildrenDataItemAttributesMpaaProtectionLevelDataAttributes; @@ -5011,8 +5226,6 @@ export type MpaChildrenDataItemAttributesMpaaProtectionLevel = { data?: MpaChildrenDataItemAttributesMpaaProtectionLevelData; }; -export type MpaChildrenDataItemAttributesMpaaProtectionLevelDataAttributes = { [key: string]: any }; - export type MpaChildrenDataItemAttributesLocationData = { id?: number; attributes?: MpaChildrenDataItemAttributesLocationDataAttributes; @@ -5039,6 +5252,23 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesUpdatedBy = { data?: MpaChildrenDataItemAttributesLocationDataAttributesUpdatedByData; }; +export type MpaChildrenDataItemAttributesLocationDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type MpaChildrenDataItemAttributesLocationDataAttributesCreatedByData = { + id?: number; + attributes?: MpaChildrenDataItemAttributesLocationDataAttributesCreatedByDataAttributes; +}; + +export type MpaChildrenDataItemAttributesLocationDataAttributesCreatedBy = { + data?: MpaChildrenDataItemAttributesLocationDataAttributesCreatedByData; +}; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats = { + data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem[]; +}; + export type MpaChildrenDataItemAttributesLocationDataAttributes = { code?: string; name?: string; @@ -5049,7 +5279,9 @@ export type MpaChildrenDataItemAttributesLocationDataAttributes = { fishing_protection_level_stats?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStats; mpaa_protection_level_stats?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats; - bounds?: unknown; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; createdAt?: string; updatedAt?: string; createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesCreatedBy; @@ -5058,30 +5290,8 @@ export type MpaChildrenDataItemAttributesLocationDataAttributes = { locale?: string; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type MpaChildrenDataItemAttributesLocationDataAttributesCreatedByData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesCreatedByDataAttributes; -}; - -export type MpaChildrenDataItemAttributesLocationDataAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesCreatedByData; -}; - -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem = { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes; -}; - -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem[]; -}; - -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = { @@ -5108,18 +5318,15 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverag data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { [key: string]: any }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes = @@ -5130,12 +5337,77 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverag cumSumProtectedArea?: number; protectedArea?: number; protectedAreasCount?: number; + environment?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; createdAt?: string; updatedAt?: string; createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; }; +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem = { + id?: number; + attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes; +}; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = + { + data?: unknown[]; + }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = + { + id?: number; + attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = + { + data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = + { + id?: number; + attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; + }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = + { + data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = + { [key: string]: any }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = + { + id?: number; + attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = + { + data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + }; + export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -5150,6 +5422,17 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverag data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = + { + location?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItem = { id?: number; attributes?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; @@ -5173,6 +5456,9 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLev data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; }; +export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = { id?: number; @@ -5184,20 +5470,24 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLev data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = +export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = { - location?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; + data?: unknown[]; + }; + +export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = { id?: number; @@ -5209,11 +5499,6 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLev data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; - export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -5228,19 +5513,6 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLev data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5269,6 +5541,18 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLev data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; +export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; @@ -5293,18 +5577,6 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtection data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5376,11 +5648,6 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtection data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = - { - data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; - }; - export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -5390,6 +5657,11 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtection attributes?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; }; +export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = + { + data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; + }; + export type MpaChildrenDataItemAttributesLocationDataAttributesMembersDataItemAttributes = { [key: string]: any; }; @@ -5416,10 +5688,6 @@ export type MpaChildrenDataItemAttributesLocationDataAttributesGroups = { data?: MpaChildrenDataItemAttributesLocationDataAttributesGroupsDataItem[]; }; -export type MpaChildrenDataItemAttributesMpaaEstablishmentStage = { - data?: MpaChildrenDataItemAttributesMpaaEstablishmentStageData; -}; - export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesLocalizations = { data?: unknown[]; }; @@ -5441,6 +5709,10 @@ export type MpaChildrenDataItemAttributesMpaaEstablishmentStageData = { attributes?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributes; }; +export type MpaChildrenDataItemAttributesMpaaEstablishmentStage = { + data?: MpaChildrenDataItemAttributesMpaaEstablishmentStageData; +}; + export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -5465,6 +5737,11 @@ export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCre data?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByData; }; +export type MpaChildrenDataItemAttributesDataSourceData = { + id?: number; + attributes?: MpaChildrenDataItemAttributesDataSourceDataAttributes; +}; + export type MpaChildrenDataItemAttributesDataSource = { data?: MpaChildrenDataItemAttributesDataSourceData; }; @@ -5486,10 +5763,6 @@ export type MpaChildrenDataItemAttributesDataSourceDataAttributesUpdatedBy = { data?: MpaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByData; }; -export type MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - export type MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedByData = { id?: number; attributes?: MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedByDataAttributes; @@ -5511,9 +5784,8 @@ export type MpaChildrenDataItemAttributesDataSourceDataAttributes = { locale?: string; }; -export type MpaChildrenDataItemAttributesDataSourceData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesDataSourceDataAttributes; +export type MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedByDataAttributes = { + [key: string]: any; }; export type MpaChildrenDataItemAttributesChildrenDataItemAttributes = { [key: string]: any }; @@ -5538,6 +5810,11 @@ export type MpaChildrenDataItemAttributesProtectionStatus = { data?: MpaChildrenDataItemAttributesProtectionStatusData; }; +export type MpaProtectionStatusData = { + id?: number; + attributes?: MpaProtectionStatusDataAttributes; +}; + export type MpaProtectionStatus = { data?: MpaProtectionStatusData; }; @@ -5557,6 +5834,15 @@ export type MpaProtectionStatusDataAttributesUpdatedBy = { data?: MpaProtectionStatusDataAttributesUpdatedByData; }; +export type MpaProtectionStatusDataAttributesCreatedByData = { + id?: number; + attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributes; +}; + +export type MpaProtectionStatusDataAttributesCreatedBy = { + data?: MpaProtectionStatusDataAttributesCreatedByData; +}; + export type MpaProtectionStatusDataAttributes = { slug?: string; name?: string; @@ -5569,37 +5855,6 @@ export type MpaProtectionStatusDataAttributes = { locale?: string; }; -export type MpaProtectionStatusData = { - id?: number; - attributes?: MpaProtectionStatusDataAttributes; -}; - -export type MpaProtectionStatusDataAttributesCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy; -}; - -export type MpaProtectionStatusDataAttributesCreatedByData = { - id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributes; -}; - -export type MpaProtectionStatusDataAttributesCreatedBy = { - data?: MpaProtectionStatusDataAttributesCreatedByData; -}; - export type MpaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -5647,6 +5902,23 @@ export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRoles = { data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem[]; }; +export type MpaProtectionStatusDataAttributesCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy; +}; + export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -5675,6 +5947,20 @@ export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataIte data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -5700,20 +5986,6 @@ export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataIte data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5778,11 +6050,6 @@ export interface MpaListResponse { export type LocationResponseMeta = { [key: string]: any }; -export interface LocationResponse { - data?: LocationResponseDataObject; - meta?: LocationResponseMeta; -} - export type LocationLocalizations = { data?: Location[]; }; @@ -5797,7 +6064,9 @@ export interface Location { fishing_protection_level_stats?: LocationFishingProtectionLevelStats; mpaa_protection_level_stats?: LocationMpaaProtectionLevelStats; protection_coverage_stats?: LocationProtectionCoverageStats; - bounds?: unknown; + marine_bounds?: unknown; + totalTerrestrialArea: number; + terrestrial_bounds?: unknown; createdAt?: string; updatedAt?: string; createdBy?: LocationCreatedBy; @@ -5811,6 +6080,11 @@ export interface LocationResponseDataObject { attributes?: Location; } +export interface LocationResponse { + data?: LocationResponseDataObject; + meta?: LocationResponseMeta; +} + export type LocationUpdatedByDataAttributes = { [key: string]: any }; export type LocationUpdatedByData = { @@ -5912,6 +6186,20 @@ export type LocationGroupsDataItemAttributesCreatedBy = { data?: LocationGroupsDataItemAttributesCreatedByData; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes = { + location?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation; + protection_status?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + year?: number; + cumSumProtectedArea?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; +}; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes; @@ -5931,7 +6219,9 @@ export type LocationGroupsDataItemAttributes = { fishing_protection_level_stats?: LocationGroupsDataItemAttributesFishingProtectionLevelStats; mpaa_protection_level_stats?: LocationGroupsDataItemAttributesMpaaProtectionLevelStats; protection_coverage_stats?: LocationGroupsDataItemAttributesProtectionCoverageStats; - bounds?: unknown; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; createdAt?: string; updatedAt?: string; createdBy?: LocationGroupsDataItemAttributesCreatedBy; @@ -5966,55 +6256,64 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + data?: unknown[]; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes = { - location?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; -}; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { - data?: unknown[]; + id?: number; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; +}; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = + { + data?: unknown[]; }; export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = @@ -6036,28 +6335,51 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = + { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; + }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = + { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = + { + id?: number; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; + }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = + { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; }; export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation = { data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributes = { - location?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; -}; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = + { [key: string]: any }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData = + { + id?: number; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; + }; export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItem = { id?: number; @@ -6081,6 +6403,16 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; }; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributes = { + location?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; +}; + export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6164,17 +6496,6 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributes = { - location?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; -}; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItem = { id?: number; attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributes; @@ -6212,11 +6533,38 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributes = { + location?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; +}; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; @@ -6230,17 +6578,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA locale?: string; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = - { - data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6250,11 +6587,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = - { - data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; @@ -6294,6 +6626,19 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -6376,19 +6721,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6535,10 +6867,6 @@ export interface LocationLocalizationResponse { meta?: LocationLocalizationResponseMeta; } -export interface LocationRequest { - data: LocationRequestData; -} - export type LocationRequestDataProtectionCoverageStatsItem = number | string; export type LocationRequestDataMpaaProtectionLevelStatsItem = number | string; @@ -6559,10 +6887,16 @@ export type LocationRequestData = { fishing_protection_level_stats?: LocationRequestDataFishingProtectionLevelStatsItem[]; mpaa_protection_level_stats?: LocationRequestDataMpaaProtectionLevelStatsItem[]; protection_coverage_stats?: LocationRequestDataProtectionCoverageStatsItem[]; - bounds?: unknown; + marine_bounds?: unknown; + totalTerrestrialArea: number; + terrestrial_bounds?: unknown; locale?: string; }; +export interface LocationRequest { + data: LocationRequestData; +} + export type LocationLocalizationRequestProtectionCoverageStatsItem = number | string; export type LocationLocalizationRequestMpaaProtectionLevelStatsItem = number | string; @@ -6583,7 +6917,9 @@ export interface LocationLocalizationRequest { fishing_protection_level_stats?: LocationLocalizationRequestFishingProtectionLevelStatsItem[]; mpaa_protection_level_stats?: LocationLocalizationRequestMpaaProtectionLevelStatsItem[]; protection_coverage_stats?: LocationLocalizationRequestProtectionCoverageStatsItem[]; - bounds?: unknown; + marine_bounds?: unknown; + totalTerrestrialArea: number; + terrestrial_bounds?: unknown; locale: string; } @@ -6624,11 +6960,6 @@ export interface DocumentationMetadataComponent { export type LayerResponseMeta = { [key: string]: any }; -export interface LayerResponseDataObject { - id?: number; - attributes?: Layer; -} - export interface LayerResponse { data?: LayerResponseDataObject; meta?: LayerResponseMeta; @@ -6638,6 +6969,30 @@ export type LayerLocalizations = { data?: Layer[]; }; +export interface Layer { + title: string; + type?: LayerType; + config: unknown; + params_config: unknown; + interaction_config?: unknown; + metadata?: DocumentationMetadataComponent; + dataset?: LayerDataset; + legend_config?: LegendLegendComponent; + default?: boolean; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: LayerCreatedBy; + updatedBy?: LayerUpdatedBy; + localizations?: LayerLocalizations; + locale?: string; +} + +export interface LayerResponseDataObject { + id?: number; + attributes?: Layer; +} + export type LayerUpdatedByDataAttributes = { [key: string]: any }; export type LayerUpdatedByData = { @@ -6660,23 +7015,6 @@ export type LayerCreatedBy = { data?: LayerCreatedByData; }; -export type LayerDatasetDataAttributesLocalizations = { - data?: unknown[]; -}; - -export type LayerDatasetDataAttributes = { - name?: string; - layers?: LayerDatasetDataAttributesLayers; - slug?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: LayerDatasetDataAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesUpdatedBy; - localizations?: LayerDatasetDataAttributesLocalizations; - locale?: string; -}; - export type LayerDatasetData = { id?: number; attributes?: LayerDatasetDataAttributes; @@ -6686,24 +7024,9 @@ export type LayerDataset = { data?: LayerDatasetData; }; -export interface Layer { - title: string; - type?: LayerType; - config: unknown; - params_config: unknown; - interaction_config?: unknown; - metadata?: DocumentationMetadataComponent; - dataset?: LayerDataset; - legend_config?: LegendLegendComponent; - default?: boolean; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: LayerCreatedBy; - updatedBy?: LayerUpdatedBy; - localizations?: LayerLocalizations; - locale?: string; -} +export type LayerDatasetDataAttributesLocalizations = { + data?: unknown[]; +}; export type LayerDatasetDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6716,6 +7039,20 @@ export type LayerDatasetDataAttributesUpdatedBy = { data?: LayerDatasetDataAttributesUpdatedByData; }; +export type LayerDatasetDataAttributes = { + name?: string; + layers?: LayerDatasetDataAttributesLayers; + slug?: string; + group?: LayerDatasetDataAttributesGroup; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: LayerDatasetDataAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesUpdatedBy; + localizations?: LayerDatasetDataAttributesLocalizations; + locale?: string; +}; + export type LayerDatasetDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type LayerDatasetDataAttributesCreatedByData = { @@ -6727,25 +7064,76 @@ export type LayerDatasetDataAttributesCreatedBy = { data?: LayerDatasetDataAttributesCreatedByData; }; -export type LayerDatasetDataAttributesLayers = { - data?: LayerDatasetDataAttributesLayersDataItem[]; +export type LayerDatasetDataAttributesGroupData = { + id?: number; + attributes?: LayerDatasetDataAttributesGroupDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesLocalizations = { +export type LayerDatasetDataAttributesGroup = { + data?: LayerDatasetDataAttributesGroupData; +}; + +export type LayerDatasetDataAttributesGroupDataAttributesLocalizations = { data?: unknown[]; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes = { +export type LayerDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData = { +export type LayerDatasetDataAttributesGroupDataAttributesUpdatedByData = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes; + attributes?: LayerDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData; +export type LayerDatasetDataAttributesGroupDataAttributesUpdatedBy = { + data?: LayerDatasetDataAttributesGroupDataAttributesUpdatedByData; +}; + +export type LayerDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type LayerDatasetDataAttributesGroupDataAttributesCreatedByData = { + id?: number; + attributes?: LayerDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes; +}; + +export type LayerDatasetDataAttributesGroupDataAttributesCreatedBy = { + data?: LayerDatasetDataAttributesGroupDataAttributesCreatedByData; +}; + +export type LayerDatasetDataAttributesGroupDataAttributesDatasetsDataItemAttributes = { + [key: string]: any; +}; + +export type LayerDatasetDataAttributesGroupDataAttributesDatasetsDataItem = { + id?: number; + attributes?: LayerDatasetDataAttributesGroupDataAttributesDatasetsDataItemAttributes; +}; + +export type LayerDatasetDataAttributesGroupDataAttributesDatasets = { + data?: LayerDatasetDataAttributesGroupDataAttributesDatasetsDataItem[]; +}; + +export type LayerDatasetDataAttributesGroupDataAttributes = { + name?: string; + slug?: string; + datasets?: LayerDatasetDataAttributesGroupDataAttributesDatasets; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesGroupDataAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesGroupDataAttributesUpdatedBy; + localizations?: LayerDatasetDataAttributesGroupDataAttributesLocalizations; + locale?: string; +}; + +export type LayerDatasetDataAttributesLayers = { + data?: LayerDatasetDataAttributesLayersDataItem[]; +}; + +export type LayerDatasetDataAttributesLayersDataItemAttributesLocalizations = { + data?: unknown[]; }; export type LayerDatasetDataAttributesLayersDataItemAttributes = { @@ -6772,21 +7160,17 @@ export type LayerDatasetDataAttributesLayersDataItem = { attributes?: LayerDatasetDataAttributesLayersDataItemAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy; +export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData = { + id?: number; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes; +}; + +export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedBy = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData; }; export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByData = { @@ -6811,6 +7195,23 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByData; }; +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy; +}; + export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6900,6 +7301,20 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6928,20 +7343,6 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -6981,10 +7382,6 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesLegendConfig = { items?: LayerDatasetDataAttributesLayersDataItemAttributesLegendConfigItemsItem[]; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesDataset = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesDatasetData; -}; - export type LayerDatasetDataAttributesLayersDataItemAttributesDatasetDataAttributes = { [key: string]: any; }; @@ -6994,6 +7391,10 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesDatasetData = { attributes?: LayerDatasetDataAttributesLayersDataItemAttributesDatasetDataAttributes; }; +export type LayerDatasetDataAttributesLayersDataItemAttributesDataset = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesDatasetData; +}; + export type LayerDatasetDataAttributesLayersDataItemAttributesMetadata = { id?: number; description?: string; @@ -7138,6 +7539,7 @@ export interface HabitatStat { year: number; protectedArea: number; totalArea: number; + environment?: HabitatStatEnvironment; createdAt?: string; updatedAt?: string; createdBy?: HabitatStatCreatedBy; @@ -7176,8 +7578,15 @@ export type HabitatStatCreatedBy = { data?: HabitatStatCreatedByData; }; -export type HabitatStatHabitat = { - data?: HabitatStatHabitatData; +export type HabitatStatEnvironmentDataAttributes = { [key: string]: any }; + +export type HabitatStatEnvironmentData = { + id?: number; + attributes?: HabitatStatEnvironmentDataAttributes; +}; + +export type HabitatStatEnvironment = { + data?: HabitatStatEnvironmentData; }; export type HabitatStatHabitatDataAttributesLocalizations = { @@ -7201,6 +7610,10 @@ export type HabitatStatHabitatData = { attributes?: HabitatStatHabitatDataAttributes; }; +export type HabitatStatHabitat = { + data?: HabitatStatHabitatData; +}; + export type HabitatStatHabitatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type HabitatStatHabitatDataAttributesUpdatedByData = { @@ -7223,6 +7636,11 @@ export type HabitatStatHabitatDataAttributesCreatedBy = { data?: HabitatStatHabitatDataAttributesCreatedByData; }; +export type HabitatStatLocationData = { + id?: number; + attributes?: HabitatStatLocationDataAttributes; +}; + export type HabitatStatLocation = { data?: HabitatStatLocationData; }; @@ -7231,6 +7649,17 @@ export type HabitatStatLocationDataAttributesLocalizations = { data?: unknown[]; }; +export type HabitatStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type HabitatStatLocationDataAttributesUpdatedByData = { + id?: number; + attributes?: HabitatStatLocationDataAttributesUpdatedByDataAttributes; +}; + +export type HabitatStatLocationDataAttributesUpdatedBy = { + data?: HabitatStatLocationDataAttributesUpdatedByData; +}; + export type HabitatStatLocationDataAttributes = { code?: string; name?: string; @@ -7241,7 +7670,9 @@ export type HabitatStatLocationDataAttributes = { fishing_protection_level_stats?: HabitatStatLocationDataAttributesFishingProtectionLevelStats; mpaa_protection_level_stats?: HabitatStatLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: HabitatStatLocationDataAttributesProtectionCoverageStats; - bounds?: unknown; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; createdAt?: string; updatedAt?: string; createdBy?: HabitatStatLocationDataAttributesCreatedBy; @@ -7250,22 +7681,6 @@ export type HabitatStatLocationDataAttributes = { locale?: string; }; -export type HabitatStatLocationData = { - id?: number; - attributes?: HabitatStatLocationDataAttributes; -}; - -export type HabitatStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type HabitatStatLocationDataAttributesUpdatedByData = { - id?: number; - attributes?: HabitatStatLocationDataAttributesUpdatedByDataAttributes; -}; - -export type HabitatStatLocationDataAttributesUpdatedBy = { - data?: HabitatStatLocationDataAttributesUpdatedByData; -}; - export type HabitatStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type HabitatStatLocationDataAttributesCreatedByData = { @@ -7277,19 +7692,6 @@ export type HabitatStatLocationDataAttributesCreatedBy = { data?: HabitatStatLocationDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { - location?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; -}; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -7312,6 +7714,20 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { + location?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + protection_status?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + year?: number; + cumSumProtectedArea?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; +}; + export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7325,36 +7741,92 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = + { + data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = { - slug?: string; name?: string; - info?: string; + slug?: string; createdAt?: string; updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - localizations?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations; + createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; locale?: string; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; - attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { - data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + id?: number; + attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = + { + data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = + { + data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; + localizations?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations; + locale?: string; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = + { + data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = + { + data?: unknown[]; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = @@ -7395,6 +7867,16 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { + location?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; +}; + export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { id?: number; attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; @@ -7430,40 +7912,11 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = - { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; - }; - -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { - location?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; -}; - export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = - { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; - }; - export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = { slug?: string; @@ -7483,6 +7936,25 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = + { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + }; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = + { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + }; + export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7510,6 +7982,9 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = { id?: number; @@ -7541,9 +8016,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStats = { data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7558,6 +8030,24 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = + { + data?: unknown[]; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; @@ -7569,11 +8059,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7588,6 +8073,24 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; @@ -7599,19 +8102,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7640,27 +8130,15 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = @@ -7691,36 +8169,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -7746,9 +8194,33 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7763,6 +8235,11 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -7772,11 +8249,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -7859,17 +8331,6 @@ export type HabitatLocalizations = { data?: Habitat[]; }; -export type HabitatUpdatedByDataAttributes = { [key: string]: any }; - -export type HabitatUpdatedByData = { - id?: number; - attributes?: HabitatUpdatedByDataAttributes; -}; - -export type HabitatUpdatedBy = { - data?: HabitatUpdatedByData; -}; - export interface Habitat { slug: string; name: string; @@ -7887,21 +8348,15 @@ export interface HabitatResponseDataObject { attributes?: Habitat; } -export type HabitatCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: HabitatCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatCreatedByDataAttributesCreatedBy; - updatedBy?: HabitatCreatedByDataAttributesUpdatedBy; +export type HabitatUpdatedByDataAttributes = { [key: string]: any }; + +export type HabitatUpdatedByData = { + id?: number; + attributes?: HabitatUpdatedByDataAttributes; +}; + +export type HabitatUpdatedBy = { + data?: HabitatUpdatedByData; }; export type HabitatCreatedByData = { @@ -7924,6 +8379,23 @@ export type HabitatCreatedByDataAttributesUpdatedBy = { data?: HabitatCreatedByDataAttributesUpdatedByData; }; +export type HabitatCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: HabitatCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesUpdatedBy; +}; + export type HabitatCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type HabitatCreatedByDataAttributesCreatedByData = { @@ -7982,6 +8454,19 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { data?: HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; +}; + export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -8033,19 +8518,6 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsData data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; -}; - export type HabitatCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -8154,6 +8626,17 @@ export type FishingProtectionLevelStatUpdatedBy = { data?: FishingProtectionLevelStatUpdatedByData; }; +export interface FishingProtectionLevelStat { + location?: FishingProtectionLevelStatLocation; + fishing_protection_level?: FishingProtectionLevelStatFishingProtectionLevel; + area: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatCreatedBy; + updatedBy?: FishingProtectionLevelStatUpdatedBy; +} + export type FishingProtectionLevelStatCreatedByDataAttributes = { [key: string]: any }; export type FishingProtectionLevelStatCreatedByData = { @@ -8176,40 +8659,6 @@ export type FishingProtectionLevelStatFishingProtectionLevel = { data?: FishingProtectionLevelStatFishingProtectionLevelData; }; -export interface FishingProtectionLevelStat { - location?: FishingProtectionLevelStatLocation; - fishing_protection_level?: FishingProtectionLevelStatFishingProtectionLevel; - area: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatCreatedBy; - updatedBy?: FishingProtectionLevelStatUpdatedBy; -} - -export type FishingProtectionLevelStatLocationDataAttributesLocalizations = { - data?: unknown[]; -}; - -export type FishingProtectionLevelStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: FishingProtectionLevelStatLocationDataAttributesGroups; - members?: FishingProtectionLevelStatLocationDataAttributesMembers; - fishing_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats; - bounds?: unknown; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesUpdatedBy; - localizations?: FishingProtectionLevelStatLocationDataAttributesLocalizations; - locale?: string; -}; - export type FishingProtectionLevelStatLocationData = { id?: number; attributes?: FishingProtectionLevelStatLocationDataAttributes; @@ -8219,6 +8668,10 @@ export type FishingProtectionLevelStatLocation = { data?: FishingProtectionLevelStatLocationData; }; +export type FishingProtectionLevelStatLocationDataAttributesLocalizations = { + data?: unknown[]; +}; + export type FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -8245,15 +8698,31 @@ export type FishingProtectionLevelStatLocationDataAttributesCreatedBy = { data?: FishingProtectionLevelStatLocationDataAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; -}; - export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats = { data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; +export type FishingProtectionLevelStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: FishingProtectionLevelStatLocationDataAttributesGroups; + members?: FishingProtectionLevelStatLocationDataAttributesMembers; + fishing_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; + protection_coverage_stats?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesLocalizations; + locale?: string; +}; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8268,6 +8737,31 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; + }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = + { + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; + }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = + { + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; + }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { location?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; @@ -8276,31 +8770,63 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt cumSumProtectedArea?: number; protectedArea?: number; protectedAreasCount?: number; + environment?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; createdAt?: string; updatedAt?: string; createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem = { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; +}; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = + { + data?: unknown[]; + }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; + }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = + { + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = { data?: unknown[]; @@ -8325,6 +8851,11 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = + { + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8404,6 +8935,17 @@ export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelS data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + }; + +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = + { + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + }; + export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { location?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; @@ -8420,30 +8962,6 @@ export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelS data?: unknown[]; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; - }; - -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = - { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; - }; - export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8472,6 +8990,19 @@ export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelS data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -8509,6 +9040,18 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -8523,21 +9066,15 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { - data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { - location?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = @@ -8559,24 +9096,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; @@ -8601,12 +9120,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev locale?: string; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8635,11 +9148,48 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = { data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8668,48 +9218,43 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; createdAt?: string; updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = @@ -8740,20 +9285,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -8808,11 +9339,6 @@ export type FishingProtectionLevelStatLocationDataAttributesGroups = { data?: FishingProtectionLevelStatLocationDataAttributesGroupsDataItem[]; }; -export interface FishingProtectionLevelStatListResponse { - data?: FishingProtectionLevelStatListResponseDataItem[]; - meta?: FishingProtectionLevelStatListResponseMeta; -} - export type FishingProtectionLevelStatListResponseMetaPagination = { page?: number; pageSize?: number; @@ -8829,13 +9355,13 @@ export interface FishingProtectionLevelStatListResponseDataItem { attributes?: FishingProtectionLevelStat; } -export type FishingProtectionLevelResponseMeta = { [key: string]: any }; - -export interface FishingProtectionLevelResponseDataObject { - id?: number; - attributes?: FishingProtectionLevel; +export interface FishingProtectionLevelStatListResponse { + data?: FishingProtectionLevelStatListResponseDataItem[]; + meta?: FishingProtectionLevelStatListResponseMeta; } +export type FishingProtectionLevelResponseMeta = { [key: string]: any }; + export interface FishingProtectionLevelResponse { data?: FishingProtectionLevelResponseDataObject; meta?: FishingProtectionLevelResponseMeta; @@ -8877,6 +9403,11 @@ export interface FishingProtectionLevel { locale?: string; } +export interface FishingProtectionLevelResponseDataObject { + id?: number; + attributes?: FishingProtectionLevel; +} + export type FishingProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -8903,10 +9434,6 @@ export type FishingProtectionLevelCreatedByDataAttributesCreatedBy = { data?: FishingProtectionLevelCreatedByDataAttributesCreatedByData; }; -export type FishingProtectionLevelCreatedByDataAttributesRoles = { - data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItem[]; -}; - export type FishingProtectionLevelCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -8924,6 +9451,15 @@ export type FishingProtectionLevelCreatedByDataAttributes = { updatedBy?: FishingProtectionLevelCreatedByDataAttributesUpdatedBy; }; +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type FishingProtectionLevelCreatedByDataAttributesRoles = { + data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItem[]; +}; + export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8948,34 +9484,6 @@ export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; -}; - -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -9000,9 +9508,32 @@ export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -9115,57 +9646,879 @@ export interface FishingProtectionLevelLocalizationRequest { locale: string; } -export type DatasetResponseMeta = { [key: string]: any }; - -export interface DatasetResponseDataObject { - id?: number; - attributes?: Dataset; -} +export type EnvironmentResponseMeta = { [key: string]: any }; -export interface DatasetResponse { - data?: DatasetResponseDataObject; - meta?: DatasetResponseMeta; +export interface EnvironmentResponse { + data?: EnvironmentResponseDataObject; + meta?: EnvironmentResponseMeta; } -export type DatasetLocalizations = { - data?: Dataset[]; +export type EnvironmentLocalizations = { + data?: Environment[]; }; -export type DatasetUpdatedByDataAttributes = { [key: string]: any }; +export interface Environment { + name: string; + slug: string; + createdAt?: string; + updatedAt?: string; + createdBy?: EnvironmentCreatedBy; + updatedBy?: EnvironmentUpdatedBy; + localizations?: EnvironmentLocalizations; + locale?: string; +} -export type DatasetUpdatedByData = { +export interface EnvironmentResponseDataObject { id?: number; - attributes?: DatasetUpdatedByDataAttributes; -}; + attributes?: Environment; +} -export type DatasetUpdatedBy = { - data?: DatasetUpdatedByData; -}; +export type EnvironmentUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetCreatedByData = { +export type EnvironmentUpdatedByData = { id?: number; - attributes?: DatasetCreatedByDataAttributes; + attributes?: EnvironmentUpdatedByDataAttributes; }; -export type DatasetCreatedBy = { - data?: DatasetCreatedByData; +export type EnvironmentUpdatedBy = { + data?: EnvironmentUpdatedByData; }; -export interface Dataset { - name: string; - layers?: DatasetLayers; - slug: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DatasetCreatedBy; +export type EnvironmentCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: EnvironmentCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: EnvironmentCreatedByDataAttributesCreatedBy; + updatedBy?: EnvironmentCreatedByDataAttributesUpdatedBy; +}; + +export type EnvironmentCreatedByData = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributes; +}; + +export type EnvironmentCreatedBy = { + data?: EnvironmentCreatedByData; +}; + +export type EnvironmentCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type EnvironmentCreatedByDataAttributesUpdatedByData = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesUpdatedByDataAttributes; +}; + +export type EnvironmentCreatedByDataAttributesUpdatedBy = { + data?: EnvironmentCreatedByDataAttributesUpdatedByData; +}; + +export type EnvironmentCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; + +export type EnvironmentCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type EnvironmentCreatedByDataAttributesCreatedBy = { + data?: EnvironmentCreatedByDataAttributesCreatedByData; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type EnvironmentCreatedByDataAttributesRoles = { + data?: EnvironmentCreatedByDataAttributesRolesDataItem[]; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { + data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedByData; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissions = { + data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = + { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = + { + data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = + { [key: string]: any }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = + { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = + { + data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + }; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { + [key: string]: any; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; +}; + +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsers = { + data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; +}; + +export type EnvironmentListResponseMetaPagination = { + page?: number; + pageSize?: number; + pageCount?: number; + total?: number; +}; + +export type EnvironmentListResponseMeta = { + pagination?: EnvironmentListResponseMetaPagination; +}; + +export interface EnvironmentListResponseDataItem { + id?: number; + attributes?: Environment; +} + +export interface EnvironmentListResponse { + data?: EnvironmentListResponseDataItem[]; + meta?: EnvironmentListResponseMeta; +} + +export type EnvironmentLocalizationListResponseMetaPagination = { + page?: number; + pageSize?: number; + pageCount?: number; + total?: number; +}; + +export type EnvironmentLocalizationListResponseMeta = { + pagination?: EnvironmentLocalizationListResponseMetaPagination; +}; + +export interface EnvironmentListResponseDataItemLocalized { + id?: number; + attributes?: Environment; +} + +export interface EnvironmentLocalizationListResponse { + data?: EnvironmentListResponseDataItemLocalized[]; + meta?: EnvironmentLocalizationListResponseMeta; +} + +export type EnvironmentLocalizationResponseMeta = { [key: string]: any }; + +export interface EnvironmentResponseDataObjectLocalized { + id?: number; + attributes?: Environment; +} + +export interface EnvironmentLocalizationResponse { + data?: EnvironmentResponseDataObjectLocalized; + meta?: EnvironmentLocalizationResponseMeta; +} + +export type EnvironmentRequestData = { + name: string; + slug: string; + locale?: string; +}; + +export interface EnvironmentRequest { + data: EnvironmentRequestData; +} + +export interface EnvironmentLocalizationRequest { + name: string; + slug: string; + locale: string; +} + +export type DatasetGroupResponseMeta = { [key: string]: any }; + +export interface DatasetGroupResponseDataObject { + id?: number; + attributes?: DatasetGroup; +} + +export interface DatasetGroupResponse { + data?: DatasetGroupResponseDataObject; + meta?: DatasetGroupResponseMeta; +} + +export type DatasetGroupLocalizations = { + data?: DatasetGroup[]; +}; + +export type DatasetGroupUpdatedByDataAttributes = { [key: string]: any }; + +export type DatasetGroupUpdatedByData = { + id?: number; + attributes?: DatasetGroupUpdatedByDataAttributes; +}; + +export type DatasetGroupUpdatedBy = { + data?: DatasetGroupUpdatedByData; +}; + +export type DatasetGroupCreatedByDataAttributes = { [key: string]: any }; + +export type DatasetGroupCreatedByData = { + id?: number; + attributes?: DatasetGroupCreatedByDataAttributes; +}; + +export type DatasetGroupCreatedBy = { + data?: DatasetGroupCreatedByData; +}; + +export type DatasetGroupDatasetsDataItem = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributes; +}; + +export type DatasetGroupDatasets = { + data?: DatasetGroupDatasetsDataItem[]; +}; + +export interface DatasetGroup { + name: string; + slug: string; + datasets?: DatasetGroupDatasets; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetGroupCreatedBy; + updatedBy?: DatasetGroupUpdatedBy; + localizations?: DatasetGroupLocalizations; + locale?: string; +} + +export type DatasetGroupDatasetsDataItemAttributesLocalizations = { + data?: unknown[]; +}; + +export type DatasetGroupDatasetsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesUpdatedByData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesUpdatedByDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesUpdatedBy = { + data?: DatasetGroupDatasetsDataItemAttributesUpdatedByData; +}; + +export type DatasetGroupDatasetsDataItemAttributesCreatedByData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesCreatedByDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesCreatedBy = { + data?: DatasetGroupDatasetsDataItemAttributesCreatedByData; +}; + +export type DatasetGroupDatasetsDataItemAttributes = { + name?: string; + layers?: DatasetGroupDatasetsDataItemAttributesLayers; + slug?: string; + group?: DatasetGroupDatasetsDataItemAttributesGroup; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesUpdatedBy; + localizations?: DatasetGroupDatasetsDataItemAttributesLocalizations; + locale?: string; +}; + +export type DatasetGroupDatasetsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesLocalizations = { + data?: unknown[]; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributes = { + name?: string; + slug?: string; + datasets?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedBy; + localizations?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesLocalizations; + locale?: string; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroup = { + data?: DatasetGroupDatasetsDataItemAttributesGroupData; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedBy = { + data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByData; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedBy = { + data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByData; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItemAttributes = { + [key: string]: any; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItem = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItemAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets = { + data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItem[]; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItem = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayers = { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItem[]; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLocalizations = { + data?: unknown[]; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedBy = { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByData; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedBy = { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByData; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributes = { + title?: string; + type?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType; + config?: unknown; + params_config?: unknown; + interaction_config?: unknown; + metadata?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesMetadata; + dataset?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDataset; + legend_config?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfig; + default?: boolean; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedBy; + localizations?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLocalizations; + locale?: string; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByData = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByData; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItem = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRoles = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItem[]; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = + { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = + { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; + }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigItemsItem = { + id?: number; + icon?: string; + color?: string; + value?: string; + description?: string; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType = + (typeof DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType)[keyof typeof DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType = { + basic: 'basic', + icon: 'icon', + choropleth: 'choropleth', + gradient: 'gradient', +} as const; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfig = { + id?: number; + type?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType; + items?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigItemsItem[]; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDatasetDataAttributes = { + [key: string]: any; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDatasetData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDatasetDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDataset = { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDatasetData; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesMetadata = { + id?: number; + description?: string; + citation?: string; + source?: string; + resolution?: string; + content_date?: string; + license?: string; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType = + (typeof DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType)[keyof typeof DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType = { + mapbox: 'mapbox', + deckgl: 'deckgl', + carto: 'carto', +} as const; + +export type DatasetGroupListResponseMetaPagination = { + page?: number; + pageSize?: number; + pageCount?: number; + total?: number; +}; + +export type DatasetGroupListResponseMeta = { + pagination?: DatasetGroupListResponseMetaPagination; +}; + +export interface DatasetGroupListResponseDataItem { + id?: number; + attributes?: DatasetGroup; +} + +export interface DatasetGroupListResponse { + data?: DatasetGroupListResponseDataItem[]; + meta?: DatasetGroupListResponseMeta; +} + +export type DatasetGroupLocalizationListResponseMetaPagination = { + page?: number; + pageSize?: number; + pageCount?: number; + total?: number; +}; + +export type DatasetGroupLocalizationListResponseMeta = { + pagination?: DatasetGroupLocalizationListResponseMetaPagination; +}; + +export interface DatasetGroupListResponseDataItemLocalized { + id?: number; + attributes?: DatasetGroup; +} + +export interface DatasetGroupLocalizationListResponse { + data?: DatasetGroupListResponseDataItemLocalized[]; + meta?: DatasetGroupLocalizationListResponseMeta; +} + +export type DatasetGroupLocalizationResponseMeta = { [key: string]: any }; + +export interface DatasetGroupResponseDataObjectLocalized { + id?: number; + attributes?: DatasetGroup; +} + +export interface DatasetGroupLocalizationResponse { + data?: DatasetGroupResponseDataObjectLocalized; + meta?: DatasetGroupLocalizationResponseMeta; +} + +export type DatasetGroupRequestDataDatasetsItem = number | string; + +export type DatasetGroupRequestData = { + name: string; + slug: string; + datasets?: DatasetGroupRequestDataDatasetsItem[]; + locale?: string; +}; + +export interface DatasetGroupRequest { + data: DatasetGroupRequestData; +} + +export type DatasetGroupLocalizationRequestDatasetsItem = number | string; + +export interface DatasetGroupLocalizationRequest { + name: string; + slug: string; + datasets?: DatasetGroupLocalizationRequestDatasetsItem[]; + locale: string; +} + +export type DatasetResponseMeta = { [key: string]: any }; + +export interface DatasetResponse { + data?: DatasetResponseDataObject; + meta?: DatasetResponseMeta; +} + +export type DatasetLocalizations = { + data?: Dataset[]; +}; + +export interface Dataset { + name: string; + layers?: DatasetLayers; + slug: string; + group?: DatasetGroupProperty; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DatasetCreatedBy; updatedBy?: DatasetUpdatedBy; localizations?: DatasetLocalizations; locale?: string; } +export interface DatasetResponseDataObject { + id?: number; + attributes?: Dataset; +} + +export type DatasetUpdatedByDataAttributes = { [key: string]: any }; + +export type DatasetUpdatedByData = { + id?: number; + attributes?: DatasetUpdatedByDataAttributes; +}; + +export type DatasetUpdatedBy = { + data?: DatasetUpdatedByData; +}; + export type DatasetCreatedByDataAttributes = { [key: string]: any }; +export type DatasetCreatedByData = { + id?: number; + attributes?: DatasetCreatedByDataAttributes; +}; + +export type DatasetCreatedBy = { + data?: DatasetCreatedByData; +}; + +export type DatasetGroupPropertyDataAttributes = { [key: string]: any }; + +export type DatasetGroupPropertyData = { + id?: number; + attributes?: DatasetGroupPropertyDataAttributes; +}; + +export type DatasetGroupProperty = { + data?: DatasetGroupPropertyData; +}; + export type DatasetLayersDataItem = { id?: number; attributes?: DatasetLayersDataItemAttributes; @@ -9190,6 +10543,51 @@ export type DatasetLayersDataItemAttributesUpdatedBy = { data?: DatasetLayersDataItemAttributesUpdatedByData; }; +export type DatasetLayersDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; + +export type DatasetLayersDataItemAttributesCreatedByData = { + id?: number; + attributes?: DatasetLayersDataItemAttributesCreatedByDataAttributes; +}; + +export type DatasetLayersDataItemAttributesCreatedBy = { + data?: DatasetLayersDataItemAttributesCreatedByData; +}; + +export type DatasetLayersDataItemAttributesLegendConfigItemsItem = { + id?: number; + icon?: string; + color?: string; + value?: string; + description?: string; +}; + +export type DatasetLayersDataItemAttributesLegendConfigType = + (typeof DatasetLayersDataItemAttributesLegendConfigType)[keyof typeof DatasetLayersDataItemAttributesLegendConfigType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DatasetLayersDataItemAttributesLegendConfigType = { + basic: 'basic', + icon: 'icon', + choropleth: 'choropleth', + gradient: 'gradient', +} as const; + +export type DatasetLayersDataItemAttributesLegendConfig = { + id?: number; + type?: DatasetLayersDataItemAttributesLegendConfigType; + items?: DatasetLayersDataItemAttributesLegendConfigItemsItem[]; +}; + +export type DatasetLayersDataItemAttributesDatasetData = { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributes; +}; + +export type DatasetLayersDataItemAttributesDataset = { + data?: DatasetLayersDataItemAttributesDatasetData; +}; + export type DatasetLayersDataItemAttributes = { title?: string; type?: DatasetLayersDataItemAttributesType; @@ -9209,50 +10607,37 @@ export type DatasetLayersDataItemAttributes = { locale?: string; }; -export type DatasetLayersDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; - -export type DatasetLayersDataItemAttributesCreatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesCreatedByDataAttributes; +export type DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations = { + data?: unknown[]; }; -export type DatasetLayersDataItemAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesCreatedByData; +export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes = { + [key: string]: any; }; -export type DatasetLayersDataItemAttributesLegendConfigItemsItem = { +export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByData = { id?: number; - icon?: string; - color?: string; - value?: string; - description?: string; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesLegendConfigType = - (typeof DatasetLayersDataItemAttributesLegendConfigType)[keyof typeof DatasetLayersDataItemAttributesLegendConfigType]; - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const DatasetLayersDataItemAttributesLegendConfigType = { - basic: 'basic', - icon: 'icon', - choropleth: 'choropleth', - gradient: 'gradient', -} as const; +export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByData; +}; -export type DatasetLayersDataItemAttributesLegendConfig = { +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData = { id?: number; - type?: DatasetLayersDataItemAttributesLegendConfigType; - items?: DatasetLayersDataItemAttributesLegendConfigItemsItem[]; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations = { - data?: unknown[]; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData; }; export type DatasetLayersDataItemAttributesDatasetDataAttributes = { name?: string; layers?: DatasetLayersDataItemAttributesDatasetDataAttributesLayers; slug?: string; + group?: DatasetLayersDataItemAttributesDatasetDataAttributesGroup; createdAt?: string; updatedAt?: string; publishedAt?: string; @@ -9262,211 +10647,247 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributes = { locale?: string; }; -export type DatasetLayersDataItemAttributesDatasetData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributes; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes = { + [key: string]: any; }; -export type DatasetLayersDataItemAttributesDataset = { - data?: DatasetLayersDataItemAttributesDatasetData; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesLocalizations = { + data?: unknown[]; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes = { - [key: string]: any; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributes = { + name?: string; + slug?: string; + datasets?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasets; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedBy; + localizations?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesLocalizations; + locale?: string; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByData = { +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByData; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroup = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData = { +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData; +}; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy; + }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData = { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes; +}; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedByData; -}; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData; + }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedByData; -}; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedBy = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByData; + }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedBy; -}; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItem = + { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRoles = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItem[]; + }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; description?: string; - users?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + users?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItem = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRoles = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItem[]; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; actionParameters?: unknown; subject?: string; properties?: unknown; conditions?: unknown; - role?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + role?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; createdAt?: string; updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasetsDataItemAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasetsDataItem = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasetsDataItemAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; - }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasets = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasetsDataItem[]; +}; export type DatasetLayersDataItemAttributesDatasetDataAttributesLayersDataItemAttributes = { [key: string]: any; @@ -9555,18 +10976,23 @@ export interface DatasetLocalizationResponse { meta?: DatasetLocalizationResponseMeta; } +export interface DatasetRequest { + data: DatasetRequestData; +} + +export type DatasetRequestDataGroup = number | string; + export type DatasetRequestDataLayersItem = number | string; export type DatasetRequestData = { name: string; layers?: DatasetRequestDataLayersItem[]; slug: string; + group?: DatasetRequestDataGroup; locale?: string; }; -export interface DatasetRequest { - data: DatasetRequestData; -} +export type DatasetLocalizationRequestGroup = number | string; export type DatasetLocalizationRequestLayersItem = number | string; @@ -9574,6 +11000,7 @@ export interface DatasetLocalizationRequest { name: string; layers?: DatasetLocalizationRequestLayersItem[]; slug: string; + group?: DatasetLocalizationRequestGroup; locale: string; } @@ -9588,6 +11015,22 @@ export type DataToolResourceTypeLocalizations = { data?: DataToolResourceType[]; }; +export interface DataToolResourceType { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolResourceTypeCreatedBy; + updatedBy?: DataToolResourceTypeUpdatedBy; + localizations?: DataToolResourceTypeLocalizations; + locale?: string; +} + +export interface DataToolResourceTypeResponseDataObject { + id?: number; + attributes?: DataToolResourceType; +} + export type DataToolResourceTypeUpdatedByDataAttributes = { [key: string]: any }; export type DataToolResourceTypeUpdatedByData = { @@ -9608,22 +11051,6 @@ export type DataToolResourceTypeCreatedBy = { data?: DataToolResourceTypeCreatedByData; }; -export interface DataToolResourceType { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolResourceTypeCreatedBy; - updatedBy?: DataToolResourceTypeUpdatedBy; - localizations?: DataToolResourceTypeLocalizations; - locale?: string; -} - -export interface DataToolResourceTypeResponseDataObject { - id?: number; - attributes?: DataToolResourceType; -} - export type DataToolResourceTypeCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -9637,6 +11064,23 @@ export type DataToolResourceTypeCreatedByDataAttributesUpdatedBy = { data?: DataToolResourceTypeCreatedByDataAttributesUpdatedByData; }; +export type DataToolResourceTypeCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataToolResourceTypeCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolResourceTypeCreatedByDataAttributesCreatedBy; + updatedBy?: DataToolResourceTypeCreatedByDataAttributesUpdatedBy; +}; + export type DataToolResourceTypeCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -9671,23 +11115,6 @@ export type DataToolResourceTypeCreatedByDataAttributesRoles = { data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItem[]; }; -export type DataToolResourceTypeCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DataToolResourceTypeCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolResourceTypeCreatedByDataAttributesCreatedBy; - updatedBy?: DataToolResourceTypeCreatedByDataAttributesUpdatedBy; -}; - export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -9736,6 +11163,20 @@ export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPe data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -9764,20 +11205,6 @@ export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPe data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -9865,32 +11292,15 @@ export interface DataToolLanguageResponseDataObject { attributes?: DataToolLanguage; } -export interface DataToolLanguageResponse { - data?: DataToolLanguageResponseDataObject; - meta?: DataToolLanguageResponseMeta; -} - -export type DataToolLanguageLocalizations = { - data?: DataToolLanguage[]; -}; - -export type DataToolLanguageUpdatedBy = { - data?: DataToolLanguageUpdatedByData; -}; - -export interface DataToolLanguage { - name?: string; - slug?: string; - data_tool?: DataToolLanguageDataTool; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguageCreatedBy; - updatedBy?: DataToolLanguageUpdatedBy; - localizations?: DataToolLanguageLocalizations; - locale?: string; -} - +export interface DataToolLanguageResponse { + data?: DataToolLanguageResponseDataObject; + meta?: DataToolLanguageResponseMeta; +} + +export type DataToolLanguageLocalizations = { + data?: DataToolLanguage[]; +}; + export type DataToolLanguageUpdatedByDataAttributes = { [key: string]: any }; export type DataToolLanguageUpdatedByData = { @@ -9898,6 +11308,10 @@ export type DataToolLanguageUpdatedByData = { attributes?: DataToolLanguageUpdatedByDataAttributes; }; +export type DataToolLanguageUpdatedBy = { + data?: DataToolLanguageUpdatedByData; +}; + export type DataToolLanguageCreatedByDataAttributes = { [key: string]: any }; export type DataToolLanguageCreatedByData = { @@ -9918,6 +11332,19 @@ export type DataToolLanguageDataTool = { data?: DataToolLanguageDataToolData; }; +export interface DataToolLanguage { + name?: string; + slug?: string; + data_tool?: DataToolLanguageDataTool; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguageCreatedBy; + updatedBy?: DataToolLanguageUpdatedBy; + localizations?: DataToolLanguageLocalizations; + locale?: string; +} + export type DataToolLanguageDataToolDataAttributesLocalizations = { data?: unknown[]; }; @@ -9944,22 +11371,6 @@ export type DataToolLanguageDataToolDataAttributesCreatedBy = { data?: DataToolLanguageDataToolDataAttributesCreatedByData; }; -export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations = - { - data?: unknown[]; - }; - -export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributes = { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedBy; - localizations?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations; - locale?: string; -}; - export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItem = { id?: number; attributes?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributes; @@ -9986,6 +11397,11 @@ export type DataToolLanguageDataToolDataAttributes = { locale?: string; }; +export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations = + { + data?: unknown[]; + }; + export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10012,6 +11428,33 @@ export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttr data?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData; }; +export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributes = { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedBy; + localizations?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations; + locale?: string; +}; + +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations = + { + data?: unknown[]; + }; + +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes = { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; + locale?: string; +}; + export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem = { id?: number; attributes?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes; @@ -10021,11 +11464,6 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypes = { data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem[]; }; -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations = - { - data?: unknown[]; - }; - export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10054,22 +11492,6 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemA data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByData; }; -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes = { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; - locale?: string; -}; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItem = { - id?: number; - attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes; -}; - export type DataToolLanguageDataToolDataAttributesLanguages = { data?: DataToolLanguageDataToolDataAttributesLanguagesDataItem[]; }; @@ -10112,6 +11534,11 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes = locale?: string; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItem = { + id?: number; + attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes; +}; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10126,6 +11553,24 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByData; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy; + }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10151,24 +11596,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10183,6 +11610,19 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10208,19 +11648,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10235,20 +11662,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; - }; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -10263,6 +11676,20 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = + { + id?: number; + attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + }; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = + { + data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -10381,10 +11808,24 @@ export interface DataToolLanguageLocalizationRequest { export type DataToolEcosystemResponseMeta = { [key: string]: any }; +export interface DataToolEcosystemResponseDataObject { + id?: number; + attributes?: DataToolEcosystem; +} + +export interface DataToolEcosystemResponse { + data?: DataToolEcosystemResponseDataObject; + meta?: DataToolEcosystemResponseMeta; +} + export type DataToolEcosystemLocalizations = { data?: DataToolEcosystem[]; }; +export type DataToolEcosystemUpdatedBy = { + data?: DataToolEcosystemUpdatedByData; +}; + export interface DataToolEcosystem { name?: string; createdAt?: string; @@ -10396,16 +11837,6 @@ export interface DataToolEcosystem { locale?: string; } -export interface DataToolEcosystemResponseDataObject { - id?: number; - attributes?: DataToolEcosystem; -} - -export interface DataToolEcosystemResponse { - data?: DataToolEcosystemResponseDataObject; - meta?: DataToolEcosystemResponseMeta; -} - export type DataToolEcosystemUpdatedByDataAttributes = { [key: string]: any }; export type DataToolEcosystemUpdatedByData = { @@ -10413,8 +11844,9 @@ export type DataToolEcosystemUpdatedByData = { attributes?: DataToolEcosystemUpdatedByDataAttributes; }; -export type DataToolEcosystemUpdatedBy = { - data?: DataToolEcosystemUpdatedByData; +export type DataToolEcosystemCreatedByData = { + id?: number; + attributes?: DataToolEcosystemCreatedByDataAttributes; }; export type DataToolEcosystemCreatedBy = { @@ -10447,6 +11879,18 @@ export type DataToolEcosystemCreatedByDataAttributesCreatedBy = { data?: DataToolEcosystemCreatedByDataAttributesCreatedByData; }; +export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type DataToolEcosystemCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes; @@ -10473,11 +11917,6 @@ export type DataToolEcosystemCreatedByDataAttributes = { updatedBy?: DataToolEcosystemCreatedByDataAttributesUpdatedBy; }; -export type DataToolEcosystemCreatedByData = { - id?: number; - attributes?: DataToolEcosystemCreatedByDataAttributes; -}; - export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10525,18 +11964,6 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermi data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10591,11 +12018,6 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsers data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export interface DataToolEcosystemListResponse { - data?: DataToolEcosystemListResponseDataItem[]; - meta?: DataToolEcosystemListResponseMeta; -} - export type DataToolEcosystemListResponseMetaPagination = { page?: number; pageSize?: number; @@ -10612,6 +12034,11 @@ export interface DataToolEcosystemListResponseDataItem { attributes?: DataToolEcosystem; } +export interface DataToolEcosystemListResponse { + data?: DataToolEcosystemListResponseDataItem[]; + meta?: DataToolEcosystemListResponseMeta; +} + export type DataToolEcosystemLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -10661,11 +12088,6 @@ export interface DataToolEcosystemLocalizationRequest { export type DataToolResponseMeta = { [key: string]: any }; -export interface DataToolResponse { - data?: DataToolResponseDataObject; - meta?: DataToolResponseMeta; -} - export type DataToolLocalizations = { data?: DataTool[]; }; @@ -10692,6 +12114,11 @@ export interface DataToolResponseDataObject { attributes?: DataTool; } +export interface DataToolResponse { + data?: DataToolResponseDataObject; + meta?: DataToolResponseMeta; +} + export type DataToolUpdatedByDataAttributes = { [key: string]: any }; export type DataToolUpdatedByData = { @@ -10736,10 +12163,25 @@ export type DataToolDataToolResourceTypes = { data?: DataToolDataToolResourceTypesDataItem[]; }; +export type DataToolLanguages = { + data?: DataToolLanguagesDataItem[]; +}; + export type DataToolLanguagesDataItemAttributesLocalizations = { data?: unknown[]; }; +export type DataToolLanguagesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type DataToolLanguagesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: DataToolLanguagesDataItemAttributesUpdatedByDataAttributes; +}; + +export type DataToolLanguagesDataItemAttributesUpdatedBy = { + data?: DataToolLanguagesDataItemAttributesUpdatedByData; +}; + export type DataToolLanguagesDataItemAttributes = { name?: string; slug?: string; @@ -10758,21 +12200,6 @@ export type DataToolLanguagesDataItem = { attributes?: DataToolLanguagesDataItemAttributes; }; -export type DataToolLanguages = { - data?: DataToolLanguagesDataItem[]; -}; - -export type DataToolLanguagesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type DataToolLanguagesDataItemAttributesUpdatedByData = { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesUpdatedByDataAttributes; -}; - -export type DataToolLanguagesDataItemAttributesUpdatedBy = { - data?: DataToolLanguagesDataItemAttributesUpdatedByData; -}; - export type DataToolLanguagesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; export type DataToolLanguagesDataItemAttributesCreatedByData = { @@ -10784,11 +12211,6 @@ export type DataToolLanguagesDataItemAttributesCreatedBy = { data?: DataToolLanguagesDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolData = { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributes; -}; - export type DataToolLanguagesDataItemAttributesDataTool = { data?: DataToolLanguagesDataItemAttributesDataToolData; }; @@ -10823,6 +12245,11 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedBy = data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedByData; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItem = { + id?: number; + attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributes; +}; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystems = { data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItem[]; }; @@ -10844,6 +12271,11 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributes = { locale?: string; }; +export type DataToolLanguagesDataItemAttributesDataToolData = { + id?: number; + attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributes; +}; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations = { data?: unknown[]; @@ -10863,23 +12295,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEco data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributes = - { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations; - locale?: string; - }; - -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItem = { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributes; -}; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10894,24 +12309,15 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEco data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes = { - data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem[]; -}; - -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations = - { - data?: unknown[]; - }; - -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes = +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributes = { name?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedBy; + localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations; locale?: string; }; @@ -10921,6 +12327,15 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes = { + data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem[]; +}; + +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations = + { + data?: unknown[]; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10946,6 +12361,18 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByData; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes = + { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; + locale?: string; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11017,6 +12444,19 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11056,19 +12496,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11125,6 +12552,10 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItemAttributes = { + [key: string]: any; +}; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItem = { id?: number; attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItemAttributes; @@ -11134,10 +12565,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguages = data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItem[]; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItemAttributes = { - [key: string]: any; -}; - export type DataToolListResponseMetaPagination = { page?: number; pageSize?: number; @@ -11192,16 +12619,6 @@ export interface DataToolLocalizationResponse { meta?: DataToolLocalizationResponseMeta; } -export interface DataToolRequest { - data: DataToolRequestData; -} - -export type DataToolRequestDataDataToolEcosystemsItem = number | string; - -export type DataToolRequestDataDataToolResourceTypesItem = number | string; - -export type DataToolRequestDataLanguagesItem = number | string; - export type DataToolRequestData = { name: string; description?: string; @@ -11213,6 +12630,16 @@ export type DataToolRequestData = { locale?: string; }; +export interface DataToolRequest { + data: DataToolRequestData; +} + +export type DataToolRequestDataDataToolEcosystemsItem = number | string; + +export type DataToolRequestDataDataToolResourceTypesItem = number | string; + +export type DataToolRequestDataLanguagesItem = number | string; + export type DataToolLocalizationRequestDataToolEcosystemsItem = number | string; export type DataToolLocalizationRequestDataToolResourceTypesItem = number | string; @@ -11232,22 +12659,6 @@ export interface DataToolLocalizationRequest { export type DataSourceResponseMeta = { [key: string]: any }; -export type DataSourceLocalizations = { - data?: DataSource[]; -}; - -export interface DataSource { - slug: string; - title: string; - url?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DataSourceCreatedBy; - updatedBy?: DataSourceUpdatedBy; - localizations?: DataSourceLocalizations; - locale?: string; -} - export interface DataSourceResponseDataObject { id?: number; attributes?: DataSource; @@ -11258,6 +12669,10 @@ export interface DataSourceResponse { meta?: DataSourceResponseMeta; } +export type DataSourceLocalizations = { + data?: DataSource[]; +}; + export type DataSourceUpdatedByDataAttributes = { [key: string]: any }; export type DataSourceUpdatedByData = { @@ -11269,43 +12684,38 @@ export type DataSourceUpdatedBy = { data?: DataSourceUpdatedByData; }; -export type DataSourceCreatedByDataAttributesUpdatedByData = { +export type DataSourceCreatedByData = { id?: number; - attributes?: DataSourceCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: DataSourceCreatedByDataAttributes; }; -export type DataSourceCreatedByDataAttributesUpdatedBy = { - data?: DataSourceCreatedByDataAttributesUpdatedByData; +export type DataSourceCreatedBy = { + data?: DataSourceCreatedByData; }; -export type DataSourceCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DataSourceCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; +export interface DataSource { + slug: string; + title: string; + url?: string; createdAt?: string; updatedAt?: string; - createdBy?: DataSourceCreatedByDataAttributesCreatedBy; - updatedBy?: DataSourceCreatedByDataAttributesUpdatedBy; -}; + createdBy?: DataSourceCreatedBy; + updatedBy?: DataSourceUpdatedBy; + localizations?: DataSourceLocalizations; + locale?: string; +} -export type DataSourceCreatedByData = { +export type DataSourceCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type DataSourceCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: DataSourceCreatedByDataAttributes; + attributes?: DataSourceCreatedByDataAttributesUpdatedByDataAttributes; }; -export type DataSourceCreatedBy = { - data?: DataSourceCreatedByData; +export type DataSourceCreatedByDataAttributesUpdatedBy = { + data?: DataSourceCreatedByDataAttributesUpdatedByData; }; -export type DataSourceCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; - export type DataSourceCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type DataSourceCreatedByDataAttributesCreatedByData = { @@ -11317,27 +12727,27 @@ export type DataSourceCreatedByDataAttributesCreatedBy = { data?: DataSourceCreatedByDataAttributesCreatedByData; }; -export type DataSourceCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type DataSourceCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributes; -}; - export type DataSourceCreatedByDataAttributesRoles = { data?: DataSourceCreatedByDataAttributesRolesDataItem[]; }; +export type DataSourceCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataSourceCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataSourceCreatedByDataAttributesCreatedBy; + updatedBy?: DataSourceCreatedByDataAttributesUpdatedBy; +}; + export type DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -11364,18 +12774,23 @@ export type DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedBy = data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - id?: number; - attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; +export type DataSourceCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +export type DataSourceCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributes; }; -export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; @@ -11401,6 +12816,18 @@ export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsD updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions = { + data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11463,15 +12890,6 @@ export interface DataSourceListResponse { meta?: DataSourceListResponseMeta; } -export type DataSourceLocalizationListResponseMeta = { - pagination?: DataSourceLocalizationListResponseMetaPagination; -}; - -export interface DataSourceLocalizationListResponse { - data?: DataSourceListResponseDataItemLocalized[]; - meta?: DataSourceLocalizationListResponseMeta; -} - export type DataSourceLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -11479,11 +12897,20 @@ export type DataSourceLocalizationListResponseMetaPagination = { total?: number; }; +export type DataSourceLocalizationListResponseMeta = { + pagination?: DataSourceLocalizationListResponseMetaPagination; +}; + export interface DataSourceListResponseDataItemLocalized { id?: number; attributes?: DataSource; } +export interface DataSourceLocalizationListResponse { + data?: DataSourceListResponseDataItemLocalized[]; + meta?: DataSourceLocalizationListResponseMeta; +} + export type DataSourceLocalizationResponseMeta = { [key: string]: any }; export interface DataSourceResponseDataObjectLocalized { @@ -11568,26 +12995,6 @@ export type DataInfoDataSourcesDataItemAttributesLocalizations = { data?: unknown[]; }; -export type DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type DataInfoDataSourcesDataItemAttributesUpdatedByData = { - id?: number; - attributes?: DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes; -}; - -export type DataInfoDataSourcesDataItemAttributesUpdatedBy = { - data?: DataInfoDataSourcesDataItemAttributesUpdatedByData; -}; - -export type DataInfoDataSourcesDataItemAttributesCreatedByData = { - id?: number; - attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes; -}; - -export type DataInfoDataSourcesDataItemAttributesCreatedBy = { - data?: DataInfoDataSourcesDataItemAttributesCreatedByData; -}; - export type DataInfoDataSourcesDataItemAttributes = { slug?: string; title?: string; @@ -11609,6 +13016,21 @@ export type DataInfoDataSources = { data?: DataInfoDataSourcesDataItem[]; }; +export type DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type DataInfoDataSourcesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes; +}; + +export type DataInfoDataSourcesDataItemAttributesUpdatedBy = { + data?: DataInfoDataSourcesDataItemAttributesUpdatedByData; +}; + +export type DataInfoDataSourcesDataItemAttributesCreatedBy = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByData; +}; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -11622,6 +13044,10 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedB data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByData; }; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData = { id?: number; attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; @@ -11631,6 +13057,15 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedB data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData; }; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRoles = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; +}; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -11648,17 +13083,9 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes = { updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedBy; }; -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem = { +export type DataInfoDataSourcesDataItemAttributesCreatedByData = { id?: number; - attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; -}; - -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRoles = { - data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes; }; export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = @@ -11689,6 +13116,20 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -11754,20 +13195,6 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -11782,6 +13209,11 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; +export interface DataInfoListResponse { + data?: DataInfoListResponseDataItem[]; + meta?: DataInfoListResponseMeta; +} + export type DataInfoListResponseMetaPagination = { page?: number; pageSize?: number; @@ -11798,11 +13230,6 @@ export interface DataInfoListResponseDataItem { attributes?: DataInfo; } -export interface DataInfoListResponse { - data?: DataInfoListResponseDataItem[]; - meta?: DataInfoListResponseMeta; -} - export type DataInfoLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -11869,26 +13296,6 @@ export type ContactDetailLocalizations = { data?: ContactDetail[]; }; -export type ContactDetailUpdatedByDataAttributes = { [key: string]: any }; - -export type ContactDetailUpdatedByData = { - id?: number; - attributes?: ContactDetailUpdatedByDataAttributes; -}; - -export type ContactDetailUpdatedBy = { - data?: ContactDetailUpdatedByData; -}; - -export type ContactDetailCreatedByData = { - id?: number; - attributes?: ContactDetailCreatedByDataAttributes; -}; - -export type ContactDetailCreatedBy = { - data?: ContactDetailCreatedByData; -}; - export interface ContactDetail { name?: string; address?: string; @@ -11909,6 +13316,43 @@ export interface ContactDetailResponseDataObject { attributes?: ContactDetail; } +export type ContactDetailUpdatedByDataAttributes = { [key: string]: any }; + +export type ContactDetailUpdatedByData = { + id?: number; + attributes?: ContactDetailUpdatedByDataAttributes; +}; + +export type ContactDetailUpdatedBy = { + data?: ContactDetailUpdatedByData; +}; + +export type ContactDetailCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: ContactDetailCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ContactDetailCreatedByDataAttributesCreatedBy; + updatedBy?: ContactDetailCreatedByDataAttributesUpdatedBy; +}; + +export type ContactDetailCreatedByData = { + id?: number; + attributes?: ContactDetailCreatedByDataAttributes; +}; + +export type ContactDetailCreatedBy = { + data?: ContactDetailCreatedByData; +}; + export type ContactDetailCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type ContactDetailCreatedByDataAttributesUpdatedByData = { @@ -11931,6 +13375,19 @@ export type ContactDetailCreatedByDataAttributesCreatedBy = { data?: ContactDetailCreatedByDataAttributesCreatedByData; }; +export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; +}; + +export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +}; + export type ContactDetailCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; @@ -11952,36 +13409,6 @@ export type ContactDetailCreatedByDataAttributesRoles = { data?: ContactDetailCreatedByDataAttributesRolesDataItem[]; }; -export type ContactDetailCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: ContactDetailCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ContactDetailCreatedByDataAttributesCreatedBy; - updatedBy?: ContactDetailCreatedByDataAttributesUpdatedBy; -}; - -export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { - id?: number; - attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; -}; - -export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; -}; - export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; From 0b02ffc3edd7cff3f515f43095da106de43abb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 6 Sep 2024 16:09:30 +0200 Subject: [PATCH 002/105] Add tabs to the sidebar --- ...lugin_localazy_content-transfer-setup.json | 26 ++++++++-- frontend/src/components/ui/tabs.tsx | 9 ++-- .../main-panel/panels/details/index.tsx | 47 ++++++++++--------- frontend/translations/en.json | 5 +- 4 files changed, 56 insertions(+), 31 deletions(-) diff --git a/cms/config/sync/core-store.plugin_localazy_content-transfer-setup.json b/cms/config/sync/core-store.plugin_localazy_content-transfer-setup.json index 9b984cf5..14383c1e 100644 --- a/cms/config/sync/core-store.plugin_localazy_content-transfer-setup.json +++ b/cms/config/sync/core-store.plugin_localazy_content-transfer-setup.json @@ -61,11 +61,28 @@ "data_tool_ecosystems": null } }, + { + "dataset_groups": { + "__model__": true, + "name": true, + "slug": null, + "datasets": null + } + }, { "datasets": { "__model__": true, "name": true, - "layers": null + "layers": null, + "slug": null, + "group": null + } + }, + { + "environments": { + "__model__": true, + "name": true, + "slug": null } }, { @@ -109,7 +126,8 @@ "value": true, "description": true } - } + }, + "default": null } }, { @@ -124,7 +142,9 @@ "fishing_protection_level_stats": null, "mpaa_protection_level_stats": null, "protection_coverage_stats": null, - "bounds": null + "marine_bounds": null, + "totalTerrestrialArea": null, + "terrestrial_bounds": null } }, { diff --git a/frontend/src/components/ui/tabs.tsx b/frontend/src/components/ui/tabs.tsx index b952c85a..1276a637 100644 --- a/frontend/src/components/ui/tabs.tsx +++ b/frontend/src/components/ui/tabs.tsx @@ -12,10 +12,7 @@ const TabsList = React.forwardRef< >(({ className, ...props }, ref) => ( )); @@ -28,7 +25,7 @@ const TabsTrigger = React.forwardRef< { const locale = useLocale(); + const t = useTranslations('containers.map-sidebar-main-panel'); const { push, @@ -47,28 +49,31 @@ const SidebarDetails: FCWithMessages = () => { }; return ( - <> -
-
-

{locationsData?.data[0]?.attributes?.name}

- - - -
-
+ +
+

{locationsData?.data[0]?.attributes?.name}

+ + + + {t('summary')} + {t('terrestrial')} + {t('marine')} + + {/* */} +
+
+ {t('summary')} + {t('terrestrial')} + -
+
- + ); }; diff --git a/frontend/translations/en.json b/frontend/translations/en.json index e54d7d9d..f5a58e5a 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -217,7 +217,10 @@ "national-level-contribution": "National level contribution", "global": "Global", "fishing-protection": "Fishing Protection", - "highly-protected-from-fishing": "Highly protected from fishing" + "highly-protected-from-fishing": "Highly protected from fishing", + "summary": "Summary", + "terrestrial": "Terrestrial", + "marine": "Marine" }, "map-sidebar-layers-panel": { "layers": "Layers", From bf03222951e6a996a66fe510f746e66b1e59eb26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 6 Sep 2024 16:18:45 +0200 Subject: [PATCH 003/105] Store the tab selection in the URL --- .../main-panel/panels/details/index.tsx | 31 ++++++++++--------- frontend/src/containers/map/sync-settings.ts | 5 ++- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx index 3ad669c6..2b146130 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx @@ -1,4 +1,4 @@ -import { useMemo } from 'react'; +import { useCallback, useMemo } from 'react'; import { useRouter } from 'next/router'; @@ -8,7 +8,6 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { PAGES } from '@/constants/pages'; import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; -import { cn } from '@/lib/classnames'; import { FCWithMessages } from '@/types'; import { useGetLocations } from '@/types/generated/location'; @@ -26,9 +25,10 @@ const SidebarDetails: FCWithMessages = () => { push, query: { locationCode = 'GLOB' }, } = useRouter(); - const [{ showDetails }] = useSyncMapContentSettings(); const searchParams = useMapSearchParams(); + const [{ tab }, setSettings] = useSyncMapContentSettings(); + const { data: locationsData } = useGetLocations({ locale, filters: { @@ -44,13 +44,21 @@ const SidebarDetails: FCWithMessages = () => { })); }, [locationsData?.data]); - const handleLocationSelected = (locationCode) => { - push(`${PAGES.progressTracker}/${locationCode}?${searchParams.toString()}`); - }; + const handleLocationSelected = useCallback( + (locationCode) => { + push(`${PAGES.progressTracker}/${locationCode}?${searchParams.toString()}`); + }, + [push, searchParams] + ); + + const handleTabChange = useCallback( + (tab: string) => setSettings((prevSettings) => ({ ...prevSettings, tab })), + [setSettings] + ); return ( - -
+ +

{locationsData?.data[0]?.attributes?.name}

@@ -61,12 +69,7 @@ const SidebarDetails: FCWithMessages = () => { {/* */}
-
+
{t('summary')} {t('terrestrial')} diff --git a/frontend/src/containers/map/sync-settings.ts b/frontend/src/containers/map/sync-settings.ts index 97344c51..7cdcd122 100644 --- a/frontend/src/containers/map/sync-settings.ts +++ b/frontend/src/containers/map/sync-settings.ts @@ -1,10 +1,9 @@ import { useQueryState } from 'next-usequerystate'; import { parseAsJson } from 'next-usequerystate/parsers'; -const DEFAULT_SYNC_CONTENT_SETTINGS: { - showDetails: boolean; -} = { +const DEFAULT_SYNC_CONTENT_SETTINGS = { showDetails: false, + tab: 'summary', }; export const useSyncMapContentSettings = () => { From 08a65e5d7d62a35ae21325c722ec8d7862dd1627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 6 Sep 2024 16:36:11 +0200 Subject: [PATCH 004/105] Move the button to access the table view --- .../panels/details/details-button/index.tsx | 11 ++++++----- .../map/sidebar/main-panel/panels/details/index.tsx | 3 +++ frontend/translations/en.json | 4 +++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/details-button/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/details-button/index.tsx index 50ee45d5..0dd64385 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/details-button/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/details-button/index.tsx @@ -14,7 +14,7 @@ type DetailsButtonProps = { const DetailsButton: FCWithMessages = ({ className }) => { const t = useTranslations('containers.map-sidebar-main-panel'); - const [, setSettings] = useSyncMapContentSettings(); + const [{ tab }, setSettings] = useSyncMapContentSettings(); const handleButtonClick = useCallback(() => { setSettings((prevSettings) => ({ ...prevSettings, showDetails: !prevSettings.showDetails })); @@ -22,13 +22,14 @@ const DetailsButton: FCWithMessages = ({ className }) => { return ( ); diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx index 2b146130..7cf9f3fe 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx @@ -76,6 +76,9 @@ const SidebarDetails: FCWithMessages = () => {
+
+ +
); }; diff --git a/frontend/translations/en.json b/frontend/translations/en.json index f5a58e5a..26e89e8a 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -191,7 +191,9 @@ "no-result": "No result", "view-all-countries": "View all countries", "hide-some-countries": "Hide some countries", - "more-details": "More details", + "more-regional-insights": "More Regional Insights", + "more-terrestrial-insights": "More Terrestrial Insights", + "more-marine-insights": "More Marine Insights", "marine-conservation-coverage": "Marine Conservation Coverage", "marine-protected-percentage": "{percentage}%", "marine-protected-area": "{protectedArea} km² out of {totalArea} km²", From 88ff3c044ac25e1c63c13703eaeb3003c0a8d366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 6 Sep 2024 16:37:03 +0200 Subject: [PATCH 005/105] Placeholders for summary and terrestrial views --- frontend/src/containers/map/content/index.tsx | 30 +++++++++++++++++-- .../main-panel/panels/details/index.tsx | 9 ++++-- frontend/translations/en.json | 6 ++-- 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/frontend/src/containers/map/content/index.tsx b/frontend/src/containers/map/content/index.tsx index 332d342a..5ba64682 100644 --- a/frontend/src/containers/map/content/index.tsx +++ b/frontend/src/containers/map/content/index.tsx @@ -1,18 +1,44 @@ +import { useTranslations } from 'next-intl'; + +import { Button } from '@/components/ui/button'; +import Icon from '@/components/ui/icon'; import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; +import CloseIcon from '@/styles/icons/close.svg'; import { FCWithMessages } from '@/types'; import Details from './details'; import Map from './map'; const MapContent: FCWithMessages = () => { - const [{ showDetails }] = useSyncMapContentSettings(); + const t = useTranslations('containers.map'); + const [{ showDetails, tab }, setSettings] = useSyncMapContentSettings(); + + const handleOnCloseClick = () => { + setSettings((prevSettings) => ({ ...prevSettings, showDetails: false })); + }; return ( <> {showDetails && (
-
+ {tab === 'marine' &&
} + {/* TODO: The following element is a placeholder */} + {tab !== 'marine' && ( +
+
+ +
+
{t('coming-soon')}
+
+ )}
)} diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx index 7cf9f3fe..0d273a9b 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx @@ -67,11 +67,14 @@ const SidebarDetails: FCWithMessages = () => { {t('terrestrial')} {t('marine')} - {/* */}
- {t('summary')} - {t('terrestrial')} + +
{t('coming-soon')}
+
+ +
{t('coming-soon')}
+
diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 26e89e8a..5dd401c6 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -222,7 +222,8 @@ "highly-protected-from-fishing": "Highly protected from fishing", "summary": "Summary", "terrestrial": "Terrestrial", - "marine": "Marine" + "marine": "Marine", + "coming-soon": "Coming soon!" }, "map-sidebar-layers-panel": { "layers": "Layers", @@ -274,7 +275,8 @@ "clear-sorting": "Clear sorting", "type": "Type", "establishment-stage": "Establishment Stage", - "protection-level": "Protection Level" + "protection-level": "Protection Level", + "coming-soon": "Coming soon!" } }, "components": { From ce2c2bf54a4153e27d13dc4d44286da8479d23c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 6 Sep 2024 16:52:19 +0200 Subject: [PATCH 006/105] Remember the active tab when changing location --- frontend/src/containers/map/content/map/sync-settings.ts | 9 +++++++++ frontend/src/containers/map/sync-settings.ts | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/containers/map/content/map/sync-settings.ts b/frontend/src/containers/map/content/map/sync-settings.ts index b08be8ee..c57cc4f4 100644 --- a/frontend/src/containers/map/content/map/sync-settings.ts +++ b/frontend/src/containers/map/content/map/sync-settings.ts @@ -2,6 +2,10 @@ import { parseAsArrayOf, parseAsInteger, useQueryState } from 'next-usequerystat import { parseAsJson } from 'next-usequerystate/parsers'; import { CustomMapProps } from '@/components/map/types'; +import { + DEFAULT_SYNC_CONTENT_SETTINGS, + useSyncMapContentSettings, +} from '@/containers/map/sync-settings'; import { LayerSettings } from '@/types/layers'; const DEFAULT_SYNC_MAP_SETTINGS: { @@ -38,6 +42,7 @@ export const useMapSearchParams = () => { const [settings] = useSyncMapSettings(); const [layers] = useSyncMapLayers(); const [layerSettings] = useSyncMapLayerSettings(); + const [contentSettings] = useSyncMapContentSettings(); const currentSearchparams = new URLSearchParams(); currentSearchparams.set('layers', parseAsArrayOf(parseAsInteger).serialize(layers)); @@ -49,6 +54,10 @@ export const useMapSearchParams = () => { 'layer-settings', parseAsJson<{ [layerId: number]: Partial }>().serialize(layerSettings) ); + currentSearchparams.set( + 'content', + parseAsJson().serialize(contentSettings) + ); return currentSearchparams; }; diff --git a/frontend/src/containers/map/sync-settings.ts b/frontend/src/containers/map/sync-settings.ts index 7cdcd122..30c473ef 100644 --- a/frontend/src/containers/map/sync-settings.ts +++ b/frontend/src/containers/map/sync-settings.ts @@ -1,7 +1,7 @@ import { useQueryState } from 'next-usequerystate'; import { parseAsJson } from 'next-usequerystate/parsers'; -const DEFAULT_SYNC_CONTENT_SETTINGS = { +export const DEFAULT_SYNC_CONTENT_SETTINGS = { showDetails: false, tab: 'summary', }; From 6c08f4b7f7bff52006e0449f386b60aca4c1c48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 10 Sep 2024 15:47:15 +0200 Subject: [PATCH 007/105] Display the conservation widget in all the tabs --- ...overage-stat.protection-coverage-stat.json | 13 +- cms/config/sync/user-role.public.json | 6 + .../details/tables/global-regional/index.tsx | 2 +- .../main-panel/panels/details/index.tsx | 25 +- .../widgets/fishing-protection/index.tsx | 11 +- .../widgets/marine-conservation/index.tsx | 121 +++++----- .../widgets/{index.tsx => marine-widgets.tsx} | 39 ++-- .../details/widgets/summary-widgets.tsx | 52 +++++ .../terrestrial-conservation/index.tsx | 215 ++++++++++++++++++ .../details/widgets/terrestrial-widgets.tsx | 54 +++++ frontend/translations/en.json | 6 +- 11 files changed, 458 insertions(+), 86 deletions(-) rename frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/{index.tsx => marine-widgets.tsx} (58%) create mode 100644 frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/summary-widgets.tsx create mode 100644 frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx create mode 100644 frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-widgets.tsx diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json index 2c4fdb6b..7bd2577d 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json @@ -181,12 +181,6 @@ } }, "layouts": { - "list": [ - "id", - "location", - "protection_status", - "year" - ], "edit": [ [ { @@ -222,6 +216,13 @@ "size": 6 } ] + ], + "list": [ + "id", + "location", + "environment", + "year", + "protection_status" ] } }, diff --git a/cms/config/sync/user-role.public.json b/cms/config/sync/user-role.public.json index eb1bb2c0..22be8151 100644 --- a/cms/config/sync/user-role.public.json +++ b/cms/config/sync/user-role.public.json @@ -48,6 +48,12 @@ { "action": "api::dataset.dataset.findOne" }, + { + "action": "api::environment.environment.find" + }, + { + "action": "api::environment.environment.findOne" + }, { "action": "api::fishing-protection-level-stat.fishing-protection-level-stat.find" }, diff --git a/frontend/src/containers/map/content/details/tables/global-regional/index.tsx b/frontend/src/containers/map/content/details/tables/global-regional/index.tsx index 35759a45..8d41c1cf 100644 --- a/frontend/src/containers/map/content/details/tables/global-regional/index.tsx +++ b/frontend/src/containers/map/content/details/tables/global-regional/index.tsx @@ -79,7 +79,7 @@ const GlobalRegionalTable: FCWithMessages = () => { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore populate: { - // This part if for the English version only + // This part is for the English version only protection_coverage_stats: { fields: ['cumSumProtectedArea', 'protectedAreasCount', 'year'], populate: { diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx index 0d273a9b..dadba877 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx @@ -1,4 +1,4 @@ -import { useCallback, useMemo } from 'react'; +import { useCallback, useEffect, useMemo, useRef } from 'react'; import { useRouter } from 'next/router'; @@ -15,12 +15,16 @@ import LocationSelector from '../../location-selector'; import CountriesList from './countries-list'; import DetailsButton from './details-button'; -import DetailsWidgets from './widgets'; +import MarineWidgets from './widgets/marine-widgets'; +import SummaryWidgets from './widgets/summary-widgets'; +import TerrestrialWidgets from './widgets/terrestrial-widgets'; const SidebarDetails: FCWithMessages = () => { const locale = useLocale(); const t = useTranslations('containers.map-sidebar-main-panel'); + const tabsRef = useRef(null); + const { push, query: { locationCode = 'GLOB' }, @@ -56,6 +60,12 @@ const SidebarDetails: FCWithMessages = () => { [setSettings] ); + // Scroll to the top when the tab changes, whether that's initiated by clicking on the tab trigger + // or programmatically via `setSettings` in a different component + useEffect(() => { + tabsRef.current?.scrollTo({ top: 0 }); + }, [tab]); + return (
@@ -68,15 +78,15 @@ const SidebarDetails: FCWithMessages = () => { {t('marine')}
-
+
-
{t('coming-soon')}
+
-
{t('coming-soon')}
+
- +
@@ -91,7 +101,8 @@ SidebarDetails.messages = [ ...LocationSelector.messages, ...CountriesList.messages, ...DetailsButton.messages, - ...DetailsWidgets.messages, + ...SummaryWidgets.messages, + ...MarineWidgets.messages, ]; export default SidebarDetails; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx index f2ce572c..92429250 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx @@ -5,6 +5,7 @@ import { useLocale, useTranslations } from 'next-intl'; import HorizontalBarChart from '@/components/charts/horizontal-bar-chart'; import Widget from '@/components/widget'; import { FISHING_PROTECTION_CHART_COLORS } from '@/constants/fishing-protection-chart-colors'; +import { FCWithMessages } from '@/types'; import { useGetDataInfos } from '@/types/generated/data-info'; import { useGetLocations } from '@/types/generated/location'; import type { LocationGroupsDataItemAttributes } from '@/types/generated/strapi.schemas'; @@ -13,7 +14,7 @@ type FishingProtectionWidgetProps = { location: LocationGroupsDataItemAttributes; }; -const FishingProtectionWidget: React.FC = ({ location }) => { +const FishingProtectionWidget: FCWithMessages = ({ location }) => { const t = useTranslations('containers.map-sidebar-main-panel'); const locale = useLocale(); @@ -34,7 +35,7 @@ const FishingProtectionWidget: React.FC = ({ locat // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore populate: { - // This part if for the English version only + // This part is for the English version only fishing_protection_level_stats: { filters: { fishing_protection_level: { @@ -181,4 +182,10 @@ const FishingProtectionWidget: React.FC = ({ locat ); }; +FishingProtectionWidget.messages = [ + 'containers.map-sidebar-main-panel', + ...Widget.messages, + ...HorizontalBarChart.messages, +]; + export default FishingProtectionWidget; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx index a58217c9..29236916 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx @@ -4,13 +4,18 @@ import { groupBy } from 'lodash-es'; import { useLocale, useTranslations } from 'next-intl'; import ConservationChart from '@/components/charts/conservation-chart'; +import { Button } from '@/components/ui/button'; import Widget from '@/components/widget'; +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { formatKM } from '@/lib/utils/formats'; import { formatPercentage } from '@/lib/utils/formats'; import { FCWithMessages } from '@/types'; import { useGetDataInfos } from '@/types/generated/data-info'; import { useGetProtectionCoverageStats } from '@/types/generated/protection-coverage-stat'; -import type { LocationGroupsDataItemAttributes } from '@/types/generated/strapi.schemas'; +import type { + LocationGroupsDataItemAttributes, + ProtectionCoverageStatListResponseDataItem, +} from '@/types/generated/strapi.schemas'; type MarineConservationWidgetProps = { location: LocationGroupsDataItemAttributes; @@ -20,57 +25,54 @@ const MarineConservationWidget: FCWithMessages = const t = useTranslations('containers.map-sidebar-main-panel'); const locale = useLocale(); - const defaultQueryParams = { - filters: { - location: { - code: location?.code || 'GLOB', - }, - }, - }; - - const { data: dataLastUpdate, isFetching: isFetchingDataLastUpdate } = - useGetProtectionCoverageStats( - { - ...defaultQueryParams, - locale, - sort: 'updatedAt:desc', - 'pagination[limit]': 1, - }, - { - query: { - enabled: Boolean(location?.code), - select: ({ data }) => data?.[0]?.attributes?.updatedAt, - placeholderData: { data: null }, - refetchOnWindowFocus: false, - }, - } - ); + const [{ tab }, setSettings] = useSyncMapContentSettings(); - const { - data: { data: protectionStatsData }, - isFetching: isFetchingProtectionStatsData, - } = useGetProtectionCoverageStats( + const { data, isFetching } = useGetProtectionCoverageStats< + ProtectionCoverageStatListResponseDataItem[] + >( { - ...defaultQueryParams, locale, - populate: '*', - // @ts-expect-error this is an issue with Orval typing - 'sort[year]': 'asc', + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + populate: { + location: { + fields: ['code', 'totalMarineArea'], + }, + environment: { + fields: ['slug'], + }, + }, + sort: 'year:asc', 'pagination[limit]': -1, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + fields: ['year', 'cumSumProtectedArea', 'updatedAt'], + filters: { + location: { + code: { + $eq: location?.code || 'GLOB', + }, + }, + environment: { + slug: { + $eq: 'marine', + }, + }, + }, }, { query: { - select: ({ data }) => ({ data }), - placeholderData: { data: [] }, + select: ({ data }) => data ?? [], + placeholderData: [], refetchOnWindowFocus: false, }, } ); - const mergedProtectionStats = useMemo(() => { - if (!protectionStatsData.length) return null; + const aggregatedData = useMemo(() => { + if (!data.length) return []; - const groupedByYear = groupBy(protectionStatsData, 'attributes.year'); + const groupedByYear = groupBy(data, 'attributes.year'); return Object.keys(groupedByYear).map((year) => { const entries = groupedByYear[year]; @@ -84,7 +86,7 @@ const MarineConservationWidget: FCWithMessages = protectedArea, }; }); - }, [protectionStatsData]); + }, [data]); const { data: metadata } = useGetDataInfos( { @@ -113,11 +115,10 @@ const MarineConservationWidget: FCWithMessages = ); const stats = useMemo(() => { - if (!mergedProtectionStats) return null; + if (!aggregatedData.length) return null; const totalArea = location.totalMarineArea; - const lastYearData = mergedProtectionStats[mergedProtectionStats.length - 1]; - const { protectedArea } = lastYearData; + const { protectedArea } = aggregatedData[0]; const percentageFormatted = formatPercentage(locale, (protectedArea / totalArea) * 100, { displayPercentageSign: false, }); @@ -129,13 +130,13 @@ const MarineConservationWidget: FCWithMessages = protectedArea: protectedAreaFormatted, totalArea: totalAreaFormatted, }; - }, [locale, location, mergedProtectionStats]); + }, [locale, location, aggregatedData]); const chartData = useMemo(() => { - if (!mergedProtectionStats?.length) return []; + if (!aggregatedData.length) return []; - const data = mergedProtectionStats.map((entry, index) => { - const isLastYear = index === mergedProtectionStats.length - 1; + const data = aggregatedData.map((entry, index) => { + const isLastYear = index + 1 === aggregatedData.length; const { year, protectedArea } = entry; const percentage = (protectedArea * 100) / location.totalMarineArea; @@ -152,18 +153,14 @@ const MarineConservationWidget: FCWithMessages = }); return data; - }, [location, mergedProtectionStats]); - - const noData = !chartData.length; - const loading = isFetchingProtectionStatsData || isFetchingDataLastUpdate; - const displayTarget = location?.code === 'GLOB'; + }, [location, aggregatedData]); return ( @@ -188,9 +185,21 @@ const MarineConservationWidget: FCWithMessages = )} + {tab !== 'marine' && ( + + )} ); }; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-widgets.tsx similarity index 58% rename from frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/index.tsx rename to frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-widgets.tsx index e6cce491..ecd5501a 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-widgets.tsx @@ -14,7 +14,7 @@ import ProtectionTypesWidget from './protection-types'; // import EstablishmentStagesWidget from './establishment-stages'; -const DetailsWidgets: FCWithMessages = () => { +const MarineWidgets: FCWithMessages = () => { const locale = useLocale(); const { @@ -23,12 +23,24 @@ const DetailsWidgets: FCWithMessages = () => { const [{ showDetails }] = useSyncMapContentSettings(); - const { data: locationsData } = useGetLocations({ - locale, - filters: { - code: locationCode, + const { data: locationData } = useGetLocations( + { + locale, + filters: { + code: locationCode, + }, + 'pagination[limit]': 1, }, - }); + { + query: { + select: ({ data }) => data[0]?.attributes ?? null, + }, + } + ); + + if (!locationData) { + return null; + } return (
{ 'pb-40': showDetails, })} > - - - - {/* */} - + + + + {/* */} +
); }; -DetailsWidgets.messages = [ +MarineWidgets.messages = [ ...MarineConservationWidget.messages, ...ProtectionTypesWidget.messages, + ...FishingProtectionWidget.messages, ...HabitatWidget.messages, ]; -export default DetailsWidgets; +export default MarineWidgets; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/summary-widgets.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/summary-widgets.tsx new file mode 100644 index 00000000..127c2fef --- /dev/null +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/summary-widgets.tsx @@ -0,0 +1,52 @@ +import { useRouter } from 'next/router'; + +import { useLocale } from 'next-intl'; + +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; +import { cn } from '@/lib/classnames'; +import { FCWithMessages } from '@/types'; +import { useGetLocations } from '@/types/generated/location'; + +import MarineConservationWidget from './marine-conservation'; +import TerrestrialConservationWidget from './terrestrial-conservation'; + +const SummaryWidgets: FCWithMessages = () => { + const locale = useLocale(); + + const { + query: { locationCode = 'GLOB' }, + } = useRouter(); + + const [{ showDetails }] = useSyncMapContentSettings(); + + const { data: locationData } = useGetLocations( + { + locale, + filters: { + code: locationCode, + }, + 'pagination[limit]': 1, + }, + { + query: { + select: ({ data }) => data[0]?.attributes ?? null, + }, + } + ); + + return ( +
+ + +
+ ); +}; + +SummaryWidgets.messages = [...MarineConservationWidget.messages]; + +export default SummaryWidgets; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx new file mode 100644 index 00000000..85a87979 --- /dev/null +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx @@ -0,0 +1,215 @@ +import { useMemo } from 'react'; + +import { groupBy } from 'lodash-es'; +import { useLocale, useTranslations } from 'next-intl'; + +import ConservationChart from '@/components/charts/conservation-chart'; +import { Button } from '@/components/ui/button'; +import Widget from '@/components/widget'; +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; +import { formatKM } from '@/lib/utils/formats'; +import { formatPercentage } from '@/lib/utils/formats'; +import { FCWithMessages } from '@/types'; +import { useGetDataInfos } from '@/types/generated/data-info'; +import { useGetProtectionCoverageStats } from '@/types/generated/protection-coverage-stat'; +import type { + LocationGroupsDataItemAttributes, + ProtectionCoverageStatListResponseDataItem, +} from '@/types/generated/strapi.schemas'; + +type TerrestrialConservationWidgetProps = { + location: LocationGroupsDataItemAttributes; +}; + +const TerrestrialConservationWidget: FCWithMessages = ({ + location, +}) => { + const t = useTranslations('containers.map-sidebar-main-panel'); + const locale = useLocale(); + + const [{ tab }, setSettings] = useSyncMapContentSettings(); + + const { data, isFetching } = useGetProtectionCoverageStats< + ProtectionCoverageStatListResponseDataItem[] + >( + { + locale, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + populate: { + location: { + fields: ['code', 'totalTerrestrialArea'], + }, + environment: { + fields: ['slug'], + }, + }, + sort: 'year:asc', + 'pagination[limit]': -1, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + fields: ['year', 'cumSumProtectedArea', 'updatedAt'], + filters: { + location: { + code: { + $eq: location?.code || 'GLOB', + }, + }, + environment: { + slug: { + $eq: 'terrestrial', + }, + }, + }, + }, + { + query: { + select: ({ data }) => data ?? [], + placeholderData: [], + refetchOnWindowFocus: false, + }, + } + ); + + const aggregatedData = useMemo(() => { + if (!data.length) return []; + + const groupedByYear = groupBy(data, 'attributes.year'); + + return Object.keys(groupedByYear).map((year) => { + const entries = groupedByYear[year]; + const protectedArea = entries.reduce( + (acc, entry) => acc + entry.attributes.cumSumProtectedArea, + 0 + ); + + return { + year: Number(year), + protectedArea, + }; + }); + }, [data]); + + const { data: metadata } = useGetDataInfos( + { + locale, + filters: { + slug: 'coverage-widget', + }, + populate: 'data_sources', + }, + { + query: { + select: ({ data }) => + data[0] + ? { + info: data[0].attributes.content, + sources: data[0].attributes?.data_sources?.data?.map( + ({ attributes: { title, url } }) => ({ + title, + url, + }) + ), + } + : undefined, + }, + } + ); + + const stats = useMemo(() => { + if (!aggregatedData.length) return null; + + const totalArea = location.totalMarineArea; + const { protectedArea } = aggregatedData[0]; + const percentageFormatted = formatPercentage(locale, (protectedArea / totalArea) * 100, { + displayPercentageSign: false, + }); + const protectedAreaFormatted = formatKM(locale, protectedArea); + const totalAreaFormatted = formatKM(locale, totalArea); + + return { + protectedPercentage: percentageFormatted, + protectedArea: protectedAreaFormatted, + totalArea: totalAreaFormatted, + }; + }, [locale, location, aggregatedData]); + + const chartData = useMemo(() => { + if (!aggregatedData.length) return []; + + const data = aggregatedData.map((entry, index) => { + const isLastYear = index + 1 === aggregatedData.length; + const { year, protectedArea } = entry; + const percentage = (protectedArea * 100) / location.totalMarineArea; + + return { + // We only want to show up to 55%, so we'll cap the percentage here + // Some of the data seems incorrect; this is a quick fix in order to not blow the chart + percentage: percentage > 55 ? 55 : percentage, + year, + active: isLastYear, + totalArea: location.totalMarineArea, + protectedArea, + future: false, + }; + }); + + return data; + }, [location, aggregatedData]); + + return ( + + {stats && ( +
+ + {t.rich('terrestrial-protected-percentage', { + b1: (chunks) => {chunks}, + b2: (chunks) => {chunks}, + percentage: stats?.protectedPercentage, + })} + + + + {t('terrestrial-protected-area', { + protectedArea: stats?.protectedArea, + totalArea: stats?.totalArea, + })} + + +
+ )} + + {tab !== 'terrestrial' && ( + + )} +
+ ); +}; + +TerrestrialConservationWidget.messages = [ + 'containers.map-sidebar-main-panel', + ...Widget.messages, + ...ConservationChart.messages, +]; + +export default TerrestrialConservationWidget; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-widgets.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-widgets.tsx new file mode 100644 index 00000000..6de80ae6 --- /dev/null +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-widgets.tsx @@ -0,0 +1,54 @@ +import { useRouter } from 'next/router'; + +import { useLocale } from 'next-intl'; + +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; +import { cn } from '@/lib/classnames'; +import { FCWithMessages } from '@/types'; +import { useGetLocations } from '@/types/generated/location'; + +import TerrestrialConservationWidget from './terrestrial-conservation'; + +const TerrestrialWidgets: FCWithMessages = () => { + const locale = useLocale(); + + const { + query: { locationCode = 'GLOB' }, + } = useRouter(); + + const [{ showDetails }] = useSyncMapContentSettings(); + + const { data: locationData } = useGetLocations( + { + locale, + filters: { + code: locationCode, + }, + 'pagination[limit]': 1, + }, + { + query: { + select: ({ data }) => data[0]?.attributes ?? null, + }, + } + ); + + if (!locationData) { + return null; + } + + return ( +
+ +
+ ); +}; + +TerrestrialWidgets.messages = [...TerrestrialConservationWidget.messages]; + +export default TerrestrialWidgets; diff --git a/frontend/translations/en.json b/frontend/translations/en.json index e110123b..1bdaeac5 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -223,7 +223,11 @@ "summary": "Summary", "terrestrial": "Terrestrial", "marine": "Marine", - "coming-soon": "Coming soon!" + "terrestrial-conservation-coverage": "Terrestrial Conservation Coverage", + "terrestrial-protected-percentage": "{percentage}%", + "terrestrial-protected-area": "{protectedArea} km² out of {totalArea} km²", + "explore-terrestrial-conservation": "Explore Terrestrial Conservation", + "explore-marine-conservation": "Explore Marine Conservation" }, "map-sidebar-layers-panel": { "layers": "Layers", From 38c0c78b6da2ab4e271f2f49ac9b442fccbb967f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Wed, 11 Sep 2024 09:50:36 +0200 Subject: [PATCH 008/105] Display the habitats widget in the terrestrial tab --- .../src/constants/habitat-chart-colors.ts | 9 + .../panels/details/widgets/habitat/index.tsx | 162 ++++++++---------- .../details/widgets/terrestrial-widgets.tsx | 2 + 3 files changed, 85 insertions(+), 88 deletions(-) diff --git a/frontend/src/constants/habitat-chart-colors.ts b/frontend/src/constants/habitat-chart-colors.ts index bd2e685c..b57cf088 100644 --- a/frontend/src/constants/habitat-chart-colors.ts +++ b/frontend/src/constants/habitat-chart-colors.ts @@ -1,3 +1,4 @@ +// The order of the keys affect the order of the habitats in the habitat widget export const HABITAT_CHART_COLORS = { 'warm-water corals': '#EC7667', 'cold-water corals': '#3ACBF9', @@ -5,4 +6,12 @@ export const HABITAT_CHART_COLORS = { seagrasses: '#2DBA66', saltmarshes: '#6D7600', seamounts: '#884B02', + forest: '#01550E', + savanna: '#E6CC8A', + shrubland: '#C6FF53', + grassland: '#1D931D', + 'wetlands-open-waters': '#5BB5FF', + 'rocky-mountains': '#95908C', + desert: '#FBF8D6', + artificial: '#67FFE2', }; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx index 9aba9c0e..09fc0183 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx @@ -3,6 +3,7 @@ import { useLocale, useTranslations } from 'next-intl'; import HorizontalBarChart from '@/components/charts/horizontal-bar-chart'; import Widget from '@/components/widget'; import { HABITAT_CHART_COLORS } from '@/constants/habitat-chart-colors'; +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { FCWithMessages } from '@/types'; import { useGetDataInfos } from '@/types/generated/data-info'; import { useGetHabitatStats } from '@/types/generated/habitat-stat'; @@ -19,77 +20,89 @@ const HabitatWidget: FCWithMessages = ({ location }) => { const t = useTranslations('containers.map-sidebar-main-panel'); const locale = useLocale(); - const defaultQueryParams = { - filters: { - location: { - code: location?.code, - }, - }, - }; - - const { data: dataLastUpdate, isFetching: isFetchingDataLastUpdate } = useGetHabitatStats( - { - ...defaultQueryParams, - locale, - fields: 'updatedAt', - sort: 'updatedAt:desc', - 'pagination[limit]': 1, - }, - { - query: { - enabled: Boolean(location?.code), - select: ({ data }) => data?.[0]?.attributes?.updatedAt, - placeholderData: { data: null }, - refetchOnWindowFocus: false, - }, - } - ); + const [{ tab }] = useSyncMapContentSettings(); - const { data: habitatMetadatas } = useGetDataInfos( + const { data: habitatMetadatas } = useGetDataInfos< + { slug: string; info: string; sources?: { title: string; url: string }[] }[] + >( { locale, filters: { - slug: [ - 'cold-water corals', - 'warm-water corals', - 'mangroves', - 'seagrasses', - 'saltmarshes', - 'mangroves', - 'seamounts', - ], + slug: Object.keys(HABITAT_CHART_COLORS), }, - populate: 'data_sources', + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + populate: { + data_sources: { + fields: ['title', 'url'], + }, + }, + sort: 'updatedAt:desc', }, { query: { select: ({ data }) => - data - ? data.map((item) => ({ - slug: item.attributes.slug, - info: item.attributes.content, - sources: item.attributes?.data_sources?.data?.map( - ({ attributes: { title, url } }) => ({ - title, - url, - }) - ), - })) - : undefined, + data?.map((item) => ({ + slug: item.attributes.slug, + info: item.attributes.content, + sources: item.attributes.data_sources?.data?.map(({ attributes: { title, url } }) => ({ + title, + url, + })), + })) ?? [], }, } ); - const { data: widgetChartData, isFetching: isFetchingHabitatStatsData } = useGetHabitatStats( + const { data: chartData, isFetching } = useGetHabitatStats< + { + title: string; + slug: string; + background: string; + totalArea: number; + protectedArea: number; + info?: string; + sources?: { title: string; url: string }[]; + updatedAt: string; + }[] + >( { - ...defaultQueryParams, locale, - populate: 'habitat,habitat.localizations', + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + populate: { + habitat: { + // This part is for the English version only + populate: { + // This part is for the Spanish and French versions + localizations: { + fields: ['slug', 'name', 'locale'], + }, + }, + }, + }, 'pagination[limit]': -1, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + fields: ['protectedArea', 'totalArea', 'updatedAt'], + filters: { + location: { + code: location?.code, + }, + environment: { + slug: { + $eq: tab === 'marine' ? tab : 'terrestrial', + }, + }, + }, }, { query: { select: ({ data }) => { + if (!data) { + return []; + } + const parsedData = data.map((entry) => { const stats = entry?.attributes; @@ -110,56 +123,29 @@ const HabitatWidget: FCWithMessages = ({ location }) => { protectedArea: stats.protectedArea, info: metadata?.info, sources: metadata?.sources, + updatedAt: stats.updatedAt, }; }); - return parsedData.reverse(); + return parsedData.sort((d1, d2) => { + const keys = Object.keys(HABITAT_CHART_COLORS); + return keys.indexOf(d1.slug) - keys.indexOf(d2.slug); + }); }, - placeholderData: { data: [] }, + placeholderData: [], refetchOnWindowFocus: false, }, } ); - // const { data: metadataWidget } = useGetDataInfos( - // { - // locale, - // filters: { - // slug: 'habitats-widget', - // }, - // populate: 'data_sources', - // }, - // { - // query: { - // select: ({ data }) => - // data[0] - // ? { - // info: data[0].attributes.content, - // sources: data[0].attributes?.data_sources?.data?.map( - // ({ attributes: { title, url } }) => ({ - // title, - // url, - // }) - // ), - // } - // : undefined, - // }, - // } - // ); - - const noData = !widgetChartData.length; - const loading = isFetchingHabitatStatsData || isFetchingDataLastUpdate; - return ( - {widgetChartData.map((chartData) => ( + {chartData.map((chartData) => ( { @@ -45,6 +46,7 @@ const TerrestrialWidgets: FCWithMessages = () => { })} > +
); }; From 399d8e4a4273675986376cf8f89196086b93dadc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Wed, 11 Sep 2024 13:31:01 +0200 Subject: [PATCH 009/105] Collapse the header of the sidebar when scrolled --- .../main-panel/location-selector/index.tsx | 12 +++- .../main-panel/panels/details/index.tsx | 58 ++++++++++++++----- frontend/src/hooks/use-scroll-position.ts | 22 +++++++ 3 files changed, 76 insertions(+), 16 deletions(-) create mode 100644 frontend/src/hooks/use-scroll-position.ts diff --git a/frontend/src/containers/map/sidebar/main-panel/location-selector/index.tsx b/frontend/src/containers/map/sidebar/main-panel/location-selector/index.tsx index f2e21395..890fdd0c 100644 --- a/frontend/src/containers/map/sidebar/main-panel/location-selector/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/location-selector/index.tsx @@ -26,17 +26,19 @@ export const FILTERS = { }; const BUTTON_CLASSES = - 'font-mono text-xs px-0 font-semibold no-underline normal-case ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2'; + 'font-mono text-xs px-0 font-semibold no-underline normal-case ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2 transition-all'; type LocationSelectorProps = { className?: HTMLDivElement['className']; theme: 'orange' | 'blue'; + size?: 'default' | 'small'; onChange: (locationCode: string) => void; }; const LocationSelector: FCWithMessages = ({ className, theme, + size = 'default', onChange, }) => { const t = useTranslations('containers.map-sidebar-main-panel'); @@ -106,7 +108,11 @@ const LocationSelector: FCWithMessages = ({
- @@ -128,7 +134,7 @@ const LocationSelector: FCWithMessages = ({ {locationCode !== 'GLOB' && ( + {pagination.pageIndex + 1 > 2 && ( + + )} + {pagination.pageIndex > 2 && '…'} + {table.getCanPreviousPage() && ( + + )} + + {table.getCanNextPage() && ( + + )} + {table.getPageCount() - (pagination.pageIndex + 1) > 2 && '…'} + {table.getPageCount() - (pagination.pageIndex + 1) > 1 && ( + + )} + +
+
+ ); +}; + +export default Pagination; diff --git a/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx b/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx index 10dfe8a7..a8c61a36 100644 --- a/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx +++ b/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx @@ -20,7 +20,7 @@ const ScrollingIndicators: React.FC = ({ className, ch return ( - {xScrollPosition !== 'end' && ( + {(xScrollPosition === 'middle' || xScrollPosition === 'end') && ( <> = ({ className, ch )} - {xScrollPosition !== 'start' && ( + {(xScrollPosition === 'start' || xScrollPosition === 'middle') && ( <> diff --git a/frontend/src/containers/map/content/details/table/sorting-button/index.tsx b/frontend/src/containers/map/content/details/table/sorting-button/index.tsx index 928c752f..4cdd004d 100644 --- a/frontend/src/containers/map/content/details/table/sorting-button/index.tsx +++ b/frontend/src/containers/map/content/details/table/sorting-button/index.tsx @@ -3,7 +3,7 @@ import { ArrowDownNarrowWide, ArrowUpNarrowWide, ArrowUpDown } from 'lucide-reac import { useTranslations } from 'next-intl'; import { Button } from '@/components/ui/button'; -import { GlobalRegionalTableColumns } from '@/containers/map/content/details/tables/global-regional/useColumns'; +import { GlobalRegionalTableColumns } from '@/containers/map/content/details/tables/global-regional/hooks'; import { NationalHighseasTableColumns } from '@/containers/map/content/details/tables/national-highseas/useColumns'; import { FCWithMessages } from '@/types'; diff --git a/frontend/src/containers/map/content/details/table/tooltip-button/index.tsx b/frontend/src/containers/map/content/details/table/tooltip-button/index.tsx index 75fdc389..2649bb5c 100644 --- a/frontend/src/containers/map/content/details/table/tooltip-button/index.tsx +++ b/frontend/src/containers/map/content/details/table/tooltip-button/index.tsx @@ -1,7 +1,7 @@ import { Column } from '@tanstack/react-table'; import TooltipButton from '@/components/tooltip-button'; -import type { GlobalRegionalTableColumns } from '@/containers/map/content/details/tables/global-regional/useColumns'; +import type { GlobalRegionalTableColumns } from '@/containers/map/content/details/tables/global-regional/hooks'; import type { NationalHighseasTableColumns } from '@/containers/map/content/details/tables/national-highseas/useColumns'; type TableTooltipButtonProps = { diff --git a/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx new file mode 100644 index 00000000..a1ed7b50 --- /dev/null +++ b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx @@ -0,0 +1,474 @@ +import { useMemo } from 'react'; + +import Link from 'next/link'; + +import { AccessorKeyColumnDef, PaginationState, SortingState } from '@tanstack/react-table'; +import { useLocale } from 'next-intl'; +import { useTranslations } from 'next-intl'; + +import FiltersButton from '@/components/filters-button'; +import Icon from '@/components/ui/icon'; +import { PAGES } from '@/constants/pages'; +import HeaderItem from '@/containers/map/content/details/table/header-item'; +import { cellFormatter } from '@/containers/map/content/details/table/helpers'; +import SortingButton from '@/containers/map/content/details/table/sorting-button'; +import TooltipButton from '@/containers/map/content/details/table/tooltip-button'; +import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; +import Mountain from '@/styles/icons/mountain.svg'; +import Wave from '@/styles/icons/wave.svg'; +import { useGetDataInfos } from '@/types/generated/data-info'; +import { useGetEnvironments } from '@/types/generated/environment'; +import { useGetLocations } from '@/types/generated/location'; +import { useGetProtectionCoverageStats } from '@/types/generated/protection-coverage-stat'; +import { ProtectionCoverageStatListResponseMetaPagination } from '@/types/generated/strapi.schemas'; + +export type GlobalRegionalTableColumns = { + location: { + name: string; + name_es: string; + name_fr: string; + code: string; + mpaa_fully_highly_protected_area: number; + }; + environment: { + name: string; + slug: string; + }; + coverage: number; + protectedArea: number; + pas: number; + oecms: number; + global_contribution: number; +}; + +const TOOLTIP_MAPPING = { + environment: 'environment', + location: 'name-country', + coverage: 'coverage', + pas: 'pas', + oecms: 'oecms', + area: 'protected-area', + fullyHighlyProtected: 'fully-highly-protected', + globalContribution: 'global-contribution', +}; + +const useTooltips = () => { + const locale = useLocale(); + + const { data: dataInfo } = useGetDataInfos( + { locale }, + { + query: { + select: ({ data }) => data, + placeholderData: { data: [] }, + }, + } + ); + + const tooltips = {}; + + Object.entries(TOOLTIP_MAPPING).map(([key, value]) => { + const tooltip = dataInfo.find(({ attributes }) => attributes.slug === value)?.attributes + ?.content; + + if (!tooltip) return; + tooltips[key] = tooltip; + }); + + return tooltips; +}; + +const useFiltersOptions = () => { + const locale = useLocale(); + + const { data: environmentOptions } = useGetEnvironments( + { + locale, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + fields: ['name', 'slug'], + 'pagination[limit]': -1, + }, + { + query: { + select: ({ data }) => + data.map((environment) => ({ + name: environment.attributes.name, + value: environment.attributes.slug, + })), + placeholderData: { data: [] }, + }, + } + ); + + return { + environment: environmentOptions as { name: string; value: string }[], + }; +}; + +export const useColumns = ( + environment: 'marine' | 'terrestrial' | null, + filters: Record, + onChangeFilters: (newFilters: Record) => void +) => { + const t = useTranslations('containers.map'); + const locale = useLocale(); + + const searchParams = useMapSearchParams(); + const tooltips = useTooltips(); + + const filtersOptions = useFiltersOptions(); + + const columns: AccessorKeyColumnDef[] = useMemo(() => { + let locationNameKey = 'name'; + if (locale === 'es') { + locationNameKey = 'name_es'; + } else if (locale === 'fr') { + locationNameKey = 'name_fr'; + } + + return [ + { + id: `location.${locationNameKey}`, + accessorKey: `location.${locationNameKey}`, + header: ({ column }) => ( + + + {t('name')} + + + ), + cell: ({ row }) => { + const { location, environment } = row.original; + return ( + + {environment.slug === 'marine' && } + {environment.slug === 'terrestrial' && ( + + )} + + {location[locationNameKey]} + + + ); + }, + }, + { + id: 'environment.name', + accessorKey: 'environment.name', + header: ({ column }) => ( + + {!environment && ( + onChangeFilters({ ...filters, [field]: values })} + /> + )} + {t('ecosystem')} + + + ), + cell: ({ row }) => { + const { environment } = row.original; + return {environment.name}; + }, + }, + { + id: 'coverage', + accessorKey: 'coverage', + header: ({ column }) => ( + + + {t('coverage')} + + + ), + cell: ({ row }) => { + const { coverage: value } = row.original; + const formattedCoverage = cellFormatter.percentage(locale, value); + + return ( + + {t.rich('percentage-bold', { + b1: (chunks) => chunks, + b2: (chunks) => {chunks}, + percentage: formattedCoverage, + })} + + ); + }, + }, + { + id: 'protectedArea', + accessorKey: 'protectedArea', + header: ({ column }) => ( + + + {t('area')} + + + ), + cell: ({ row }) => { + const { protectedArea: value } = row.original; + const formattedValue = cellFormatter.area(locale, value); + return {t('area-km2', { area: formattedValue })}; + }, + }, + { + id: 'pas', + accessorKey: 'pas', + header: ({ column }) => ( + + + {t('pas')} + + + ), + cell: ({ row }) => { + const { pas: value } = row.original; + if (Number.isNaN(value)) return t('n-a'); + + const formattedValue = cellFormatter.percentage(locale, value); + return {t('percentage', { percentage: formattedValue })}; + }, + }, + { + id: 'oecms', + accessorKey: 'oecms', + header: ({ column }) => ( + + + {t('oecms')} + + + ), + cell: ({ row }) => { + const { oecms: value } = row.original; + if (Number.isNaN(value)) return t('n-a'); + + const formattedValue = cellFormatter.percentage(locale, value); + return {t('percentage', { percentage: formattedValue })}; + }, + }, + ...(environment === 'marine' + ? [ + { + id: 'location.mpaa_fully_highly_protected_area', + accessorKey: 'location.mpaa_fully_highly_protected_area', + header: ({ column }) => ( + + + {t('fully-highly-protected')} + + + ), + cell: ({ row }) => { + const { location } = row.original; + const formattedValue = cellFormatter.percentage( + locale, + location.mpaa_fully_highly_protected_area + ); + return ( + {t('percentage', { percentage: formattedValue })} + ); + }, + }, + ] + : []), + { + id: 'global_contribution', + accessorKey: 'global_contribution', + header: ({ column }) => ( + + + {t('global-contribution')} + + + ), + cell: ({ row }) => { + const { global_contribution: value } = row.original; + if (!value) return t('no-data'); + const formattedValue = cellFormatter.percentage(locale, value); + return {t('percentage', { percentage: formattedValue })}; + }, + }, + ]; + }, [locale, environment, t, tooltips, searchParams, filters, onChangeFilters, filtersOptions]); + + return columns; +}; + +export const useData = ( + locationCode: string, + environment: 'marine' | 'terrestrial' | null, + sorting: SortingState, + filters: Record, + pagination: PaginationState +) => { + const locale = useLocale(); + + const { data: locationType, isSuccess: isLocationSuccess } = useGetLocations( + { + locale, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + fields: ['type'], + filters: { + code: locationCode, + }, + }, + { + query: { + select: ({ data }) => data[0]?.attributes.type, + }, + } + ); + + // By default, we always sort by location + let sort = 'location.name:asc,environment.name:asc'; + if (sorting.length > 0) { + sort = `${sorting[0].id}:${sorting[0].desc ? 'desc' : 'asc'}`; + + // In addition to sorting by the column the user asked about, we'll also always sort by + // environment + if (sorting[0].id !== 'environment.name') { + sort = `${sort},environment.name:asc`; + } + } + + const { data } = useGetProtectionCoverageStats< + [GlobalRegionalTableColumns[], ProtectionCoverageStatListResponseMetaPagination] + >( + { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + fields: ['coverage', 'protectedArea', 'pas', 'oecms', 'global_contribution'], + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + populate: { + location: { + fields: ['name', 'name_es', 'name_fr', 'code', 'mpaa_fully_highly_protected_area'], + populate: { + ...(environment === 'marine' + ? { + mpaa_protection_level_stats: { + fields: ['percentage'], + filters: { + mpaa_protection_level: { + slug: { + $eq: 'fully-highly-protected', + }, + }, + }, + }, + } + : {}), + }, + }, + environment: { + fields: ['slug', 'name', 'locale'], + populate: { + localizations: { + fields: ['name', 'locale'], + }, + }, + }, + }, + filters: { + ...(environment + ? { + environment: { + slug: { + $eq: environment, + }, + }, + } + : {}), + location: { + ...(locationType === 'region' + ? { + groups: { + code: { + $eq: locationCode, + }, + }, + } + : { + type: { + $in: ['country', 'highseas'], + }, + }), + }, + is_last_year: { + $eq: true, + }, + ...Object.entries(filters).reduce((res, [key, values]) => { + if (!values || values.length === 0) { + return res; + } + + const reversePathItems = key.split('.').reverse(); + + return reversePathItems.reduce((res, pathItem, index) => { + if (index === 0) { + return { [pathItem]: { $in: values } }; + } + + return { [pathItem]: res }; + }, {}); + }, {}), + }, + 'pagination[pageSize]': pagination.pageSize, + 'pagination[page]': pagination.pageIndex + 1, + sort, + }, + { + query: { + enabled: isLocationSuccess, + placeholderData: [], + keepPreviousData: true, + select: (data) => { + return [ + data.data?.map(({ attributes }): GlobalRegionalTableColumns => { + const location = attributes.location?.data.attributes; + const environment = attributes.environment?.data.attributes; + + const localizedEnvironment = [ + environment, + ...(environment.localizations.data.map((environment) => environment.attributes) ?? + []), + ].find((data) => data.locale === locale); + + return { + location: { + name: location?.name, + name_es: location?.name_es, + name_fr: location?.name_fr, + code: location.code, + mpaa_fully_highly_protected_area: location.mpaa_fully_highly_protected_area, + }, + environment: { + name: localizedEnvironment.name, + slug: localizedEnvironment.slug, + }, + coverage: attributes.coverage, + protectedArea: attributes.protectedArea, + pas: attributes.pas, + oecms: attributes.oecms, + global_contribution: attributes.global_contribution, + }; + }) ?? [], + data.meta?.pagination ?? {}, + ]; + }, + }, + } + ); + + return data; +}; diff --git a/frontend/src/containers/map/content/details/tables/global-regional/index.tsx b/frontend/src/containers/map/content/details/tables/global-regional/index.tsx index 8d41c1cf..e48c32ac 100644 --- a/frontend/src/containers/map/content/details/tables/global-regional/index.tsx +++ b/frontend/src/containers/map/content/details/tables/global-regional/index.tsx @@ -1,279 +1,86 @@ -import { useMemo } from 'react'; +import { useEffect, useMemo, useState } from 'react'; import { useRouter } from 'next/router'; -import { useLocale } from 'next-intl'; +import { SortingState, PaginationState } from '@tanstack/react-table'; +import { usePreviousImmediate } from 'rooks'; +import FiltersButton from '@/components/filters-button'; import TooltipButton from '@/components/tooltip-button'; import Table from '@/containers/map/content/details/table'; -import useColumns from '@/containers/map/content/details/tables/global-regional/useColumns'; +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { FCWithMessages } from '@/types'; -import { useGetLocations } from '@/types/generated/location'; -import type { LocationListResponseDataItem } from '@/types/generated/strapi.schemas'; import SortingButton from '../../table/sorting-button'; +import { useColumns, useData } from './hooks'; + const GlobalRegionalTable: FCWithMessages = () => { const { query: { locationCode = 'GLOB' }, } = useRouter(); - const locale = useLocale(); - const globalLocationQuery = useGetLocations( - { - locale, - filters: { - code: 'GLOB', - }, - }, - { - query: { - select: ({ data }) => data?.[0]?.attributes, - }, - } - ); + const [{ tab }] = useSyncMapContentSettings(); + const previousTab = usePreviousImmediate(tab); - const locationsQuery = useGetLocations( - { - locale, - filters: { - code: locationCode, - }, - }, - { - query: { - queryKey: ['locations', locationCode], - select: ({ data }) => data?.[0]?.attributes, - }, - } - ); + const [filters, setFilters] = useState>({}); - const columns = useColumns(); + const columns = useColumns( + tab === 'marine' || tab === 'terrestrial' ? tab : null, + filters, + setFilters + ); - // Get location data and calculate data to display on the table - const { data: locationsData }: { data: LocationListResponseDataItem[] } = useGetLocations( - { - // We will use the data from the `localizations` field because the models “Protection Coverage - // Stats” and “Mpaa Protection Level Stats” are not localised and their relationship to the - // “Location” model only points to a specific localised version. As such, we're forced to load - // all the locales of the “Location” model and then figure out which version has the relation - // to the other model. - locale: 'en', - filters: - locationsQuery.data?.type === 'region' - ? { - groups: { - code: { - $eq: locationsQuery.data?.code, - }, - }, - } - : { - type: { - $eq: ['country', 'highseas'], - }, - }, - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - fields: ['code', 'name', 'type', 'totalMarineArea'], - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - populate: { - // This part is for the English version only - protection_coverage_stats: { - fields: ['cumSumProtectedArea', 'protectedAreasCount', 'year'], - populate: { - protection_status: { - fields: ['slug', 'name'], - }, - }, - }, - mpaa_protection_level_stats: { - fields: ['area'], - populate: { - mpaa_protection_level: { - fields: ['slug', 'name'], - }, - }, - }, - // fishing_protection_level_stats: { - // fields: ['area'], - // populate: { - // fishing_protection_level: { - // fields: ['slug', 'name'], - // }, - // }, - // }, - // This part is for the Spanish and French versions - localizations: { - fields: ['code', 'name', 'type', 'totalMarineArea', 'locale'], - populate: { - protection_coverage_stats: { - fields: ['cumSumProtectedArea', 'protectedAreasCount', 'year'], - populate: { - protection_status: { - fields: ['slug', 'name'], - }, - }, - }, - mpaa_protection_level_stats: { - fields: ['area'], - populate: { - mpaa_protection_level: { - fields: ['slug', 'name'], - }, - }, - }, - // fishing_protection_level_stats: { - // fields: ['area'], - // populate: { - // fishing_protection_level: { - // fields: ['slug', 'name'], - // }, - // }, - // }, - }, - }, + const defaultSorting = useMemo( + () => [ + { + id: columns[0].accessorKey, + desc: false, }, - // populate: '*', - 'pagination[limit]': -1, - }, - { - query: { - select: ({ data }) => data, - placeholderData: { data: [] }, - }, - } + ], + [columns] ); - // Calculate table data - const parsedData = useMemo(() => { - return locationsData.map(({ attributes: location }) => { - const localizedLocation = [ - { ...location, locale: 'en' }, - ...(location.localizations.data.map( - // The types below are wrong. There is definitely an `attributes` key inside - // `localizations`. - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - (localization) => localization.attributes - ) ?? []), - ].find((data) => data.locale === locale); - - // Base stats needed for calculations - const protectionCoverageStats = - [ - location.protection_coverage_stats.data, - ...(location.localizations.data.map( - // The types below are wrong. There is definitely an `attributes` key inside - // `localizations`. - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - (localization) => localization.attributes.protection_coverage_stats.data - ) ?? []), - ].find((data) => data?.length) ?? []; - - const mpaaProtectionLevelStats = - [ - location.mpaa_protection_level_stats.data, - ...(location.localizations.data.map( - // The types below are wrong. There is definitely an `attributes` key inside - // `localizations`. - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - (localization) => localization.attributes.mpaa_protection_level_stats.data - ) ?? []), - ].find((data) => data?.length) ?? []; - - // const fishingProtectionLevelStats = - // [ - // location.fishing_protection_level_stats.data, - // ...(location.localizations.data.map( - // // The types below are wrong. There is definitely an `attributes` key inside - // // `localizations`. - // // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // // @ts-ignore - // (localization) => localization.attributes.fishing_protection_level_stats.data - // ) ?? []), - // ].find((data) => data?.length) ?? []; - - // Find coverage stats data for the last available year in the data - const lastCoverageDataYear = Math.max( - ...protectionCoverageStats.map(({ attributes }) => attributes.year) - ); - const coverageStats = protectionCoverageStats.filter( - ({ attributes }) => attributes.year === lastCoverageDataYear - ); - - // Coverage calculations (MPA + OECM) - const protectedArea = coverageStats.reduce( - (acc, { attributes }) => acc + attributes?.cumSumProtectedArea, - 0 - ); - const coveragePercentage = (protectedArea * 100) / location.totalMarineArea; - - // MPAs calculations - const numMPAs = - coverageStats.find( - ({ attributes }) => attributes?.protection_status?.data?.attributes?.slug === 'mpa' - )?.attributes?.protectedAreasCount || 0; - - // OECMs calculations - const numOECMs = - coverageStats.find( - ({ attributes }) => attributes?.protection_status?.data?.attributes?.slug === 'oecm' - )?.attributes?.protectedAreasCount || 0; - - const percentageMPAs = (numMPAs * 100) / (numMPAs + numOECMs); - const percentageOECMs = (numOECMs * 100) / (numMPAs + numOECMs); - - // Fully/Highly Protected calculations - const fullyHighlyProtected = mpaaProtectionLevelStats.filter( - ({ attributes }) => - attributes?.mpaa_protection_level?.data?.attributes?.slug === 'fully-highly-protected' - ); - const fullyHighlyProtectedArea = fullyHighlyProtected.reduce( - (acc, { attributes }) => acc + attributes?.area, - 0 - ); - const fullyHighlyProtectedAreaPercentage = - (fullyHighlyProtectedArea * 100) / location.totalMarineArea; - - // Highly Protected LFP calculations - // const lfpHighProtected = fishingProtectionLevelStats.filter( - // ({ attributes }) => - // attributes?.fishing_protection_level?.data?.attributes?.slug === 'highly' - // ); - // const lfpHighProtectedArea = lfpHighProtected.reduce( - // (acc, { attributes }) => acc + attributes?.area, - // 0 - // ); - // const lfpHighProtectedPercentage = (lfpHighProtectedArea * 100) / location.totalMarineArea; - - // Global contributions calculations - const globalContributionPercentage = - (protectedArea * 100) / globalLocationQuery?.data?.totalMarineArea; + const [sorting, setSorting] = useState(defaultSorting); + const [pagination, setPagination] = useState({ + pageIndex: 0, + pageSize: 100, + }); + + const [data, { total }] = useData( + locationCode as string, + tab === 'marine' || tab === 'terrestrial' ? tab : null, + sorting, + filters, + pagination + ); - return { - location: localizedLocation.name, - locationCode: location.code, - coverage: coveragePercentage, - area: protectedArea, - locationType: location.type, - mpas: percentageMPAs, - oecms: percentageOECMs, - fullyHighlyProtected: fullyHighlyProtectedAreaPercentage, - // highlyProtectedLfp: lfpHighProtectedPercentage, - globalContribution: globalContributionPercentage, - }; - }); - }, [locale, globalLocationQuery?.data, locationsData]); + // When the tab changes, we reset the filters and the sorting + useEffect(() => { + if (tab !== previousTab) { + setFilters({}); + setSorting(defaultSorting); + } + }, [tab, previousTab, defaultSorting]); - const tableData = parsedData; + // When the filters or the sorting changes, the page number is reset + useEffect(() => { + setPagination((prevPagination) => ({ ...prevPagination, pageIndex: 0 })); + }, [filters, sorting]); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - //@ts-ignore - return ; + return ( +
+ ); }; GlobalRegionalTable.messages = [ @@ -282,6 +89,7 @@ GlobalRegionalTable.messages = [ // Dependencies of `useColumns` ...SortingButton.messages, ...TooltipButton.messages, + ...FiltersButton.messages, ]; export default GlobalRegionalTable; diff --git a/frontend/src/containers/map/content/details/tables/global-regional/useColumns.tsx b/frontend/src/containers/map/content/details/tables/global-regional/useColumns.tsx deleted file mode 100644 index 4fac4ae6..00000000 --- a/frontend/src/containers/map/content/details/tables/global-regional/useColumns.tsx +++ /dev/null @@ -1,189 +0,0 @@ -import { useMemo } from 'react'; - -import Link from 'next/link'; - -import { ColumnDef, SortingFnOption } from '@tanstack/react-table'; -import { useLocale } from 'next-intl'; -import { useTranslations } from 'next-intl'; - -import { PAGES } from '@/constants/pages'; -import HeaderItem from '@/containers/map/content/details/table/header-item'; -import { cellFormatter } from '@/containers/map/content/details/table/helpers'; -import SortingButton from '@/containers/map/content/details/table/sorting-button'; -import TooltipButton from '@/containers/map/content/details/table/tooltip-button'; -import useTooltips from '@/containers/map/content/details/tables/global-regional/useTooltips'; -import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; - -export type GlobalRegionalTableColumns = { - location: string; - locationCode: string; - coverage: number; - locationType: string; - mpas: number; - oecms: number; - area: number; - fullyHighlyProtected: number; - highlyProtectedLfp: number; - globalContribution: number; -}; - -const useColumns = () => { - const t = useTranslations('containers.map'); - const locale = useLocale(); - - const searchParams = useMapSearchParams(); - const tooltips = useTooltips(); - - const columns: ColumnDef[] = useMemo(() => { - return [ - { - accessorKey: 'location', - sortingFn: 'localeStringCompare' as SortingFnOption, - header: ({ column }) => ( - - - {t('name')} - - - ), - cell: ({ row }) => { - const { location, locationCode } = row.original; - return ( - - - {location} - - - ); - }, - }, - { - accessorKey: 'coverage', - header: ({ column }) => ( - - - {t('coverage')} - - - ), - cell: ({ row }) => { - const { coverage: value } = row.original; - const formattedCoverage = cellFormatter.percentage(locale, value); - - return ( - - {t.rich('percentage-bold', { - b1: (chunks) => chunks, - b2: (chunks) => {chunks}, - percentage: formattedCoverage, - })} - - ); - }, - }, - { - accessorKey: 'area', - header: ({ column }) => ( - - - {t('area')} - - - ), - cell: ({ row }) => { - const { area: value } = row.original; - const formattedValue = cellFormatter.area(locale, value); - return {t('area-km2', { area: formattedValue })}; - }, - }, - { - accessorKey: 'mpas', - header: ({ column }) => ( - - - {t('mpas')} - - - ), - cell: ({ row }) => { - const { mpas: value } = row.original; - if (Number.isNaN(value)) return t('n-a'); - - const formattedValue = cellFormatter.percentage(locale, value); - return {t('percentage', { percentage: formattedValue })}; - }, - }, - { - accessorKey: 'oecms', - header: ({ column }) => ( - - - {t('oecms')} - - - ), - cell: ({ row }) => { - const { oecms: value } = row.original; - if (Number.isNaN(value)) return t('n-a'); - - const formattedValue = cellFormatter.percentage(locale, value); - return {t('percentage', { percentage: formattedValue })}; - }, - }, - { - accessorKey: 'fullyHighlyProtected', - header: ({ column }) => ( - - - {t('fully-highly-protected')} - - - ), - cell: ({ row }) => { - const { fullyHighlyProtected: value } = row.original; - const formattedValue = cellFormatter.percentage(locale, value); - return {t('percentage', { percentage: formattedValue })}; - }, - }, - // { - // accessorKey: 'highlyProtectedLfp', - // header: ({ column }) => ( - // - // - // {t('highly-protected-lfp')} - // - // - // ), - // cell: ({ row }) => { - // const { highlyProtectedLfp: value } = row.original; - // if (!value) return <>No data; - // const formattedValue = cellFormatter.percentage(locale, value); - // return {t('percentage', { percentage: formattedValue })}; - // }, - // }, - { - accessorKey: 'globalContribution', - header: ({ column }) => ( - - - {t('global-contribution')} - - - ), - cell: ({ row }) => { - const { globalContribution: value } = row.original; - if (!value) return t('no-data'); - const formattedValue = cellFormatter.percentage(locale, value); - return {t('percentage', { percentage: formattedValue })}; - }, - }, - ]; - }, [locale, searchParams, t, tooltips]); - - return columns; -}; - -export default useColumns; diff --git a/frontend/src/containers/map/content/details/tables/global-regional/useTooltips.tsx b/frontend/src/containers/map/content/details/tables/global-regional/useTooltips.tsx deleted file mode 100644 index 170f133f..00000000 --- a/frontend/src/containers/map/content/details/tables/global-regional/useTooltips.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { useLocale } from 'next-intl'; - -import { useGetDataInfos } from '@/types/generated/data-info'; - -const TOOLTIP_MAPPING = { - location: 'name-country', - coverage: 'coverage', - locationType: 'location-type', - mpas: 'mpas', - oecms: 'oecms', - area: 'protected-area', - fullyHighlyProtected: 'fully-highly-protected', - highlyProtectedLfp: 'highly-protected-lfp', - globalContribution: 'global-contribution', -}; - -const useTooltips = () => { - const locale = useLocale(); - - const { data: dataInfo } = useGetDataInfos( - { locale }, - { - query: { - select: ({ data }) => data, - placeholderData: { data: [] }, - }, - } - ); - - const tooltips = {}; - - Object.entries(TOOLTIP_MAPPING).map(([key, value]) => { - const tooltip = dataInfo.find(({ attributes }) => attributes.slug === value)?.attributes - ?.content; - - if (!tooltip) return; - tooltips[key] = tooltip; - }); - - return tooltips; -}; - -export default useTooltips; diff --git a/frontend/src/containers/map/content/index.tsx b/frontend/src/containers/map/content/index.tsx index 5ba64682..332d342a 100644 --- a/frontend/src/containers/map/content/index.tsx +++ b/frontend/src/containers/map/content/index.tsx @@ -1,44 +1,18 @@ -import { useTranslations } from 'next-intl'; - -import { Button } from '@/components/ui/button'; -import Icon from '@/components/ui/icon'; import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; -import CloseIcon from '@/styles/icons/close.svg'; import { FCWithMessages } from '@/types'; import Details from './details'; import Map from './map'; const MapContent: FCWithMessages = () => { - const t = useTranslations('containers.map'); - const [{ showDetails, tab }, setSettings] = useSyncMapContentSettings(); - - const handleOnCloseClick = () => { - setSettings((prevSettings) => ({ ...prevSettings, showDetails: false })); - }; + const [{ showDetails }] = useSyncMapContentSettings(); return ( <> {showDetails && (
- {tab === 'marine' &&
} - {/* TODO: The following element is a placeholder */} - {tab !== 'marine' && ( -
-
- -
-
{t('coming-soon')}
-
- )} +
)} diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/establishment-stages/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/establishment-stages/index.tsx deleted file mode 100644 index a352f46f..00000000 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/establishment-stages/index.tsx +++ /dev/null @@ -1,141 +0,0 @@ -import { useMemo } from 'react'; - -import { groupBy } from 'lodash-es'; -import { useLocale } from 'next-intl'; - -import HorizontalBarChart from '@/components/charts/horizontal-bar-chart'; -import Widget from '@/components/widget'; -import { useGetMpaaEstablishmentStageStats } from '@/types/generated/mpaa-establishment-stage-stat'; -import type { - LocationGroupsDataItemAttributes, - MpaaEstablishmentStageListResponseDataItem, -} from '@/types/generated/strapi.schemas'; - -type EstablishmentStagesWidgetProps = { - location: LocationGroupsDataItemAttributes; -}; - -const PATTERNS = { - 'proposed-committed': '/images/data-tool/chart-bgs/dots.svg', - implemented: '/images/data-tool/chart-bgs/crosses.svg', - 'actively-managed': '/images/data-tool/chart-bgs/dashes.svg', - designated: '/images/data-tool/chart-bgs/arrows.svg', -}; - -const EstablishmentStagesWidget: React.FC = ({ location }) => { - const locale = useLocale(); - - // Default params: filter by location - const defaultQueryParams = { - filters: { - location: { - code: location.code, - }, - }, - }; - - // Find last updated in order to display the last data update - const { data: dataLastUpdate, isFetching: isFetchingDataLastUpdate } = - useGetMpaaEstablishmentStageStats( - { - ...defaultQueryParams, - locale, - sort: 'updatedAt:desc', - 'pagination[limit]': 1, - }, - { - query: { - select: ({ data }) => data?.[0]?.attributes?.updatedAt, - placeholderData: { data: null }, - refetchOnWindowFocus: false, - }, - } - ); - - // Get establishment stages by location - const { - data: { data: establishmentStagesData }, - isFetching: isFetchingEstablishmentStagesData, - } = useGetMpaaEstablishmentStageStats( - { - ...defaultQueryParams, - locale, - populate: 'mpaa_establishment_stage,mpaa_establishment_stage.localizations', - 'pagination[limit]': -1, - }, - { - query: { - select: ({ data }) => ({ data }), - placeholderData: { data: [] }, - refetchOnWindowFocus: false, - }, - } - ); - - // Merge OECM and MPA stats - const mergedEstablishmentStagesStats = useMemo(() => { - if (!establishmentStagesData.length) return []; - - const groupedByStage = groupBy( - establishmentStagesData, - 'attributes.mpaa_establishment_stage.data.attributes.slug' - ); - - return Object.keys(groupedByStage).map((establishmentStage) => { - const entries = groupedByStage[establishmentStage]; - const totalArea = entries.reduce((acc, entry) => acc + entry.attributes.area, 0); - - let establishmentStageData = - groupedByStage[establishmentStage]?.[0]?.attributes?.mpaa_establishment_stage?.data - ?.attributes; - if (establishmentStageData.locale !== locale) { - establishmentStageData = ( - establishmentStageData.localizations.data as MpaaEstablishmentStageListResponseDataItem[] - ).find((localization) => localization.attributes.locale === locale)?.attributes; - } - - return { - slug: establishmentStageData.slug, - name: establishmentStageData.name, - info: establishmentStageData.info, - area: totalArea, - }; - }); - }, [locale, establishmentStagesData]); - - // Parse data to display in the chart - const widgetChartData = useMemo(() => { - if (!mergedEstablishmentStagesStats.length) return []; - - return mergedEstablishmentStagesStats.map((establishmentStage) => { - return { - title: establishmentStage.name, - slug: establishmentStage.slug, - ...(PATTERNS[establishmentStage.slug] && { - background: `border-box #fff url(${PATTERNS[establishmentStage.slug]})`, - }), - totalArea: location.totalMarineArea, - protectedArea: establishmentStage.area, - info: establishmentStage.info, - }; - }); - }, [location, mergedEstablishmentStagesStats]); - - const noData = !widgetChartData.length; - const loading = isFetchingEstablishmentStagesData || isFetchingDataLastUpdate; - - return ( - - {widgetChartData.map((chartData) => ( - - ))} - - ); -}; - -export default EstablishmentStagesWidget; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-widgets.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-widgets.tsx index ecd5501a..b46fe3fd 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-widgets.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-widgets.tsx @@ -12,8 +12,6 @@ import HabitatWidget from './habitat'; import MarineConservationWidget from './marine-conservation'; import ProtectionTypesWidget from './protection-types'; -// import EstablishmentStagesWidget from './establishment-stages'; - const MarineWidgets: FCWithMessages = () => { const locale = useLocale(); @@ -52,7 +50,6 @@ const MarineWidgets: FCWithMessages = () => { - {/* */} ); diff --git a/frontend/src/styles/icons/mountain.svg b/frontend/src/styles/icons/mountain.svg new file mode 100644 index 00000000..46a27362 --- /dev/null +++ b/frontend/src/styles/icons/mountain.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/styles/icons/wave.svg b/frontend/src/styles/icons/wave.svg new file mode 100644 index 00000000..8f6926f1 --- /dev/null +++ b/frontend/src/styles/icons/wave.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/frontend/src/types/generated/environment.ts b/frontend/src/types/generated/environment.ts new file mode 100644 index 00000000..994e4d0a --- /dev/null +++ b/frontend/src/types/generated/environment.ts @@ -0,0 +1,417 @@ +/** + * Generated by orval v6.18.1 🍺 + * Do not edit manually. + * DOCUMENTATION + * OpenAPI spec version: 1.0.0 + */ +import { useQuery, useMutation } from '@tanstack/react-query'; +import type { + UseQueryOptions, + UseMutationOptions, + QueryFunction, + MutationFunction, + UseQueryResult, + QueryKey, +} from '@tanstack/react-query'; +import type { + EnvironmentListResponse, + Error, + GetEnvironmentsParams, + EnvironmentResponse, + EnvironmentRequest, + GetEnvironmentsIdParams, + EnvironmentLocalizationResponse, + EnvironmentLocalizationRequest, +} from './strapi.schemas'; +import { API } from '../../services/api/index'; +import type { ErrorType, BodyType } from '../../services/api/index'; + +// eslint-disable-next-line +type SecondParameter any> = T extends ( + config: any, + args: infer P +) => any + ? P + : never; + +export const getEnvironments = ( + params?: GetEnvironmentsParams, + options?: SecondParameter, + signal?: AbortSignal +) => { + return API( + { url: `/environments`, method: 'get', params, signal }, + options + ); +}; + +export const getGetEnvironmentsQueryKey = (params?: GetEnvironmentsParams) => { + return [`/environments`, ...(params ? [params] : [])] as const; +}; + +export const getGetEnvironmentsQueryOptions = < + TData = Awaited>, + TError = ErrorType +>( + params?: GetEnvironmentsParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetEnvironmentsQueryKey(params); + + const queryFn: QueryFunction>> = ({ signal }) => + getEnvironments(params, requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey }; +}; + +export type GetEnvironmentsQueryResult = NonNullable>>; +export type GetEnvironmentsQueryError = ErrorType; + +export const useGetEnvironments = < + TData = Awaited>, + TError = ErrorType +>( + params?: GetEnvironmentsParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getGetEnvironmentsQueryOptions(params, options); + + const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey; + + return query; +}; + +export const postEnvironments = ( + environmentRequest: BodyType, + options?: SecondParameter +) => { + return API( + { + url: `/environments`, + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data: environmentRequest, + }, + options + ); +}; + +export const getPostEnvironmentsMutationOptions = < + TError = ErrorType, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + const { mutation: mutationOptions, request: requestOptions } = options ?? {}; + + const mutationFn: MutationFunction< + Awaited>, + { data: BodyType } + > = (props) => { + const { data } = props ?? {}; + + return postEnvironments(data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type PostEnvironmentsMutationResult = NonNullable< + Awaited> +>; +export type PostEnvironmentsMutationBody = BodyType; +export type PostEnvironmentsMutationError = ErrorType; + +export const usePostEnvironments = , TContext = unknown>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; +}) => { + const mutationOptions = getPostEnvironmentsMutationOptions(options); + + return useMutation(mutationOptions); +}; +export const getEnvironmentsId = ( + id: number, + params?: GetEnvironmentsIdParams, + options?: SecondParameter, + signal?: AbortSignal +) => { + return API( + { url: `/environments/${id}`, method: 'get', params, signal }, + options + ); +}; + +export const getGetEnvironmentsIdQueryKey = (id: number, params?: GetEnvironmentsIdParams) => { + return [`/environments/${id}`, ...(params ? [params] : [])] as const; +}; + +export const getGetEnvironmentsIdQueryOptions = < + TData = Awaited>, + TError = ErrorType +>( + id: number, + params?: GetEnvironmentsIdParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetEnvironmentsIdQueryKey(id, params); + + const queryFn: QueryFunction>> = ({ signal }) => + getEnvironmentsId(id, params, requestOptions, signal); + + return { queryKey, queryFn, enabled: !!id, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey }; +}; + +export type GetEnvironmentsIdQueryResult = NonNullable< + Awaited> +>; +export type GetEnvironmentsIdQueryError = ErrorType; + +export const useGetEnvironmentsId = < + TData = Awaited>, + TError = ErrorType +>( + id: number, + params?: GetEnvironmentsIdParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getGetEnvironmentsIdQueryOptions(id, params, options); + + const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey; + + return query; +}; + +export const putEnvironmentsId = ( + id: number, + environmentRequest: BodyType, + options?: SecondParameter +) => { + return API( + { + url: `/environments/${id}`, + method: 'put', + headers: { 'Content-Type': 'application/json' }, + data: environmentRequest, + }, + options + ); +}; + +export const getPutEnvironmentsIdMutationOptions = < + TError = ErrorType, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { id: number; data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { id: number; data: BodyType }, + TContext +> => { + const { mutation: mutationOptions, request: requestOptions } = options ?? {}; + + const mutationFn: MutationFunction< + Awaited>, + { id: number; data: BodyType } + > = (props) => { + const { id, data } = props ?? {}; + + return putEnvironmentsId(id, data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type PutEnvironmentsIdMutationResult = NonNullable< + Awaited> +>; +export type PutEnvironmentsIdMutationBody = BodyType; +export type PutEnvironmentsIdMutationError = ErrorType; + +export const usePutEnvironmentsId = , TContext = unknown>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { id: number; data: BodyType }, + TContext + >; + request?: SecondParameter; +}) => { + const mutationOptions = getPutEnvironmentsIdMutationOptions(options); + + return useMutation(mutationOptions); +}; +export const deleteEnvironmentsId = (id: number, options?: SecondParameter) => { + return API({ url: `/environments/${id}`, method: 'delete' }, options); +}; + +export const getDeleteEnvironmentsIdMutationOptions = < + TError = ErrorType, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { id: number }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { id: number }, + TContext +> => { + const { mutation: mutationOptions, request: requestOptions } = options ?? {}; + + const mutationFn: MutationFunction< + Awaited>, + { id: number } + > = (props) => { + const { id } = props ?? {}; + + return deleteEnvironmentsId(id, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type DeleteEnvironmentsIdMutationResult = NonNullable< + Awaited> +>; + +export type DeleteEnvironmentsIdMutationError = ErrorType; + +export const useDeleteEnvironmentsId = , TContext = unknown>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { id: number }, + TContext + >; + request?: SecondParameter; +}) => { + const mutationOptions = getDeleteEnvironmentsIdMutationOptions(options); + + return useMutation(mutationOptions); +}; +export const postEnvironmentsIdLocalizations = ( + id: number, + environmentLocalizationRequest: BodyType, + options?: SecondParameter +) => { + return API( + { + url: `/environments/${id}/localizations`, + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data: environmentLocalizationRequest, + }, + options + ); +}; + +export const getPostEnvironmentsIdLocalizationsMutationOptions = < + TError = ErrorType, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { id: number; data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { id: number; data: BodyType }, + TContext +> => { + const { mutation: mutationOptions, request: requestOptions } = options ?? {}; + + const mutationFn: MutationFunction< + Awaited>, + { id: number; data: BodyType } + > = (props) => { + const { id, data } = props ?? {}; + + return postEnvironmentsIdLocalizations(id, data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type PostEnvironmentsIdLocalizationsMutationResult = NonNullable< + Awaited> +>; +export type PostEnvironmentsIdLocalizationsMutationBody = BodyType; +export type PostEnvironmentsIdLocalizationsMutationError = ErrorType; + +export const usePostEnvironmentsIdLocalizations = < + TError = ErrorType, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { id: number; data: BodyType }, + TContext + >; + request?: SecondParameter; +}) => { + const mutationOptions = getPostEnvironmentsIdLocalizationsMutationOptions(options); + + return useMutation(mutationOptions); +}; diff --git a/frontend/src/types/generated/mpaa-establishment-stage-stat.ts b/frontend/src/types/generated/mpaa-establishment-stage-stat.ts deleted file mode 100644 index fab71d59..00000000 --- a/frontend/src/types/generated/mpaa-establishment-stage-stat.ts +++ /dev/null @@ -1,183 +0,0 @@ -/** - * Generated by orval v6.18.1 🍺 - * Do not edit manually. - * DOCUMENTATION - * OpenAPI spec version: 1.0.0 - */ -import { useQuery } from '@tanstack/react-query'; -import type { - UseQueryOptions, - QueryFunction, - UseQueryResult, - QueryKey, -} from '@tanstack/react-query'; -import type { - MpaaEstablishmentStageStatListResponse, - Error, - GetMpaaEstablishmentStageStatsParams, - MpaaEstablishmentStageStatResponse, - GetMpaaEstablishmentStageStatsIdParams, -} from './strapi.schemas'; -import { API } from '../../services/api/index'; -import type { ErrorType } from '../../services/api/index'; - -// eslint-disable-next-line -type SecondParameter any> = T extends ( - config: any, - args: infer P -) => any - ? P - : never; - -export const getMpaaEstablishmentStageStats = ( - params?: GetMpaaEstablishmentStageStatsParams, - options?: SecondParameter, - signal?: AbortSignal -) => { - return API( - { url: `/mpaa-establishment-stage-stats`, method: 'get', params, signal }, - options - ); -}; - -export const getGetMpaaEstablishmentStageStatsQueryKey = ( - params?: GetMpaaEstablishmentStageStatsParams -) => { - return [`/mpaa-establishment-stage-stats`, ...(params ? [params] : [])] as const; -}; - -export const getGetMpaaEstablishmentStageStatsQueryOptions = < - TData = Awaited>, - TError = ErrorType ->( - params?: GetMpaaEstablishmentStageStatsParams, - options?: { - query?: UseQueryOptions< - Awaited>, - TError, - TData - >; - request?: SecondParameter; - } -) => { - const { query: queryOptions, request: requestOptions } = options ?? {}; - - const queryKey = queryOptions?.queryKey ?? getGetMpaaEstablishmentStageStatsQueryKey(params); - - const queryFn: QueryFunction>> = ({ - signal, - }) => getMpaaEstablishmentStageStats(params, requestOptions, signal); - - return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetMpaaEstablishmentStageStatsQueryResult = NonNullable< - Awaited> ->; -export type GetMpaaEstablishmentStageStatsQueryError = ErrorType; - -export const useGetMpaaEstablishmentStageStats = < - TData = Awaited>, - TError = ErrorType ->( - params?: GetMpaaEstablishmentStageStatsParams, - options?: { - query?: UseQueryOptions< - Awaited>, - TError, - TData - >; - request?: SecondParameter; - } -): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getGetMpaaEstablishmentStageStatsQueryOptions(params, options); - - const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; - - return query; -}; - -export const getMpaaEstablishmentStageStatsId = ( - id: number, - params?: GetMpaaEstablishmentStageStatsIdParams, - options?: SecondParameter, - signal?: AbortSignal -) => { - return API( - { url: `/mpaa-establishment-stage-stats/${id}`, method: 'get', params, signal }, - options - ); -}; - -export const getGetMpaaEstablishmentStageStatsIdQueryKey = ( - id: number, - params?: GetMpaaEstablishmentStageStatsIdParams -) => { - return [`/mpaa-establishment-stage-stats/${id}`, ...(params ? [params] : [])] as const; -}; - -export const getGetMpaaEstablishmentStageStatsIdQueryOptions = < - TData = Awaited>, - TError = ErrorType ->( - id: number, - params?: GetMpaaEstablishmentStageStatsIdParams, - options?: { - query?: UseQueryOptions< - Awaited>, - TError, - TData - >; - request?: SecondParameter; - } -) => { - const { query: queryOptions, request: requestOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? getGetMpaaEstablishmentStageStatsIdQueryKey(id, params); - - const queryFn: QueryFunction>> = ({ - signal, - }) => getMpaaEstablishmentStageStatsId(id, params, requestOptions, signal); - - return { queryKey, queryFn, enabled: !!id, ...queryOptions } as UseQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetMpaaEstablishmentStageStatsIdQueryResult = NonNullable< - Awaited> ->; -export type GetMpaaEstablishmentStageStatsIdQueryError = ErrorType; - -export const useGetMpaaEstablishmentStageStatsId = < - TData = Awaited>, - TError = ErrorType ->( - id: number, - params?: GetMpaaEstablishmentStageStatsIdParams, - options?: { - query?: UseQueryOptions< - Awaited>, - TError, - TData - >; - request?: SecondParameter; - } -): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getGetMpaaEstablishmentStageStatsIdQueryOptions(id, params, options); - - const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; - - return query; -}; diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index 53a96de6..d4373585 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -304,14 +304,14 @@ export type GetMpaaProtectionLevelsParams = { locale?: string; }; -export type GetMpaaEstablishmentStageStatsIdParams = { +export type GetMpaaEstablishmentStagesIdParams = { /** * Relations to return */ populate?: string; }; -export type GetMpaaEstablishmentStageStatsParams = { +export type GetMpaaEstablishmentStagesParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -354,14 +354,14 @@ export type GetMpaaEstablishmentStageStatsParams = { locale?: string; }; -export type GetMpaaEstablishmentStagesIdParams = { +export type GetMpaIucnCategoriesIdParams = { /** * Relations to return */ populate?: string; }; -export type GetMpaaEstablishmentStagesParams = { +export type GetMpaIucnCategoriesParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -404,14 +404,14 @@ export type GetMpaaEstablishmentStagesParams = { locale?: string; }; -export type GetMpaIucnCategoriesIdParams = { +export type GetLocationsIdParams = { /** * Relations to return */ populate?: string; }; -export type GetMpaIucnCategoriesParams = { +export type GetLocationsParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -454,14 +454,14 @@ export type GetMpaIucnCategoriesParams = { locale?: string; }; -export type GetLocationsIdParams = { +export type GetLayersIdParams = { /** * Relations to return */ populate?: string; }; -export type GetLocationsParams = { +export type GetLayersParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -504,14 +504,14 @@ export type GetLocationsParams = { locale?: string; }; -export type GetLayersIdParams = { +export type GetHabitatStatsIdParams = { /** * Relations to return */ populate?: string; }; -export type GetLayersParams = { +export type GetHabitatStatsParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -554,14 +554,14 @@ export type GetLayersParams = { locale?: string; }; -export type GetHabitatStatsIdParams = { +export type GetHabitatsIdParams = { /** * Relations to return */ populate?: string; }; -export type GetHabitatStatsParams = { +export type GetHabitatsParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -604,14 +604,14 @@ export type GetHabitatStatsParams = { locale?: string; }; -export type GetHabitatsIdParams = { +export type GetFishingProtectionLevelStatsIdParams = { /** * Relations to return */ populate?: string; }; -export type GetHabitatsParams = { +export type GetFishingProtectionLevelStatsParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -654,14 +654,14 @@ export type GetHabitatsParams = { locale?: string; }; -export type GetFishingProtectionLevelStatsIdParams = { +export type GetFishingProtectionLevelsIdParams = { /** * Relations to return */ populate?: string; }; -export type GetFishingProtectionLevelStatsParams = { +export type GetFishingProtectionLevelsParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -704,14 +704,14 @@ export type GetFishingProtectionLevelStatsParams = { locale?: string; }; -export type GetFishingProtectionLevelsIdParams = { +export type GetEnvironmentsIdParams = { /** * Relations to return */ populate?: string; }; -export type GetFishingProtectionLevelsParams = { +export type GetEnvironmentsParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -1227,10 +1227,6 @@ export interface StaticIndicatorResponse { meta?: StaticIndicatorResponseMeta; } -export type StaticIndicatorLocalizations = { - data?: StaticIndicator[]; -}; - export interface StaticIndicator { slug?: string; source?: string; @@ -1250,6 +1246,10 @@ export interface StaticIndicatorResponseDataObject { attributes?: StaticIndicator; } +export type StaticIndicatorLocalizations = { + data?: StaticIndicator[]; +}; + export type StaticIndicatorUpdatedByDataAttributes = { [key: string]: any }; export type StaticIndicatorUpdatedByData = { @@ -1407,6 +1407,9 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermiss data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = + { [key: string]: any }; + export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; @@ -1418,9 +1421,6 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermiss data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = - { [key: string]: any }; - export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -1510,11 +1510,6 @@ export interface StaticIndicatorLocalizationRequest { export type ProtectionStatusResponseMeta = { [key: string]: any }; -export interface ProtectionStatusResponseDataObject { - id?: number; - attributes?: ProtectionStatus; -} - export interface ProtectionStatusResponse { data?: ProtectionStatusResponseDataObject; meta?: ProtectionStatusResponseMeta; @@ -1535,6 +1530,23 @@ export type ProtectionStatusUpdatedBy = { data?: ProtectionStatusUpdatedByData; }; +export type ProtectionStatusCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: ProtectionStatusCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesUpdatedBy; +}; + export type ProtectionStatusCreatedByData = { id?: number; attributes?: ProtectionStatusCreatedByDataAttributes; @@ -1556,6 +1568,11 @@ export interface ProtectionStatus { locale?: string; } +export interface ProtectionStatusResponseDataObject { + id?: number; + attributes?: ProtectionStatus; +} + export type ProtectionStatusCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusCreatedByDataAttributesUpdatedByData = { @@ -1567,23 +1584,6 @@ export type ProtectionStatusCreatedByDataAttributesUpdatedBy = { data?: ProtectionStatusCreatedByDataAttributesUpdatedByData; }; -export type ProtectionStatusCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: ProtectionStatusCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedByDataAttributesCreatedBy; - updatedBy?: ProtectionStatusCreatedByDataAttributesUpdatedBy; -}; - export type ProtectionStatusCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusCreatedByDataAttributesCreatedByData = { @@ -1595,11 +1595,6 @@ export type ProtectionStatusCreatedByDataAttributesCreatedBy = { data?: ProtectionStatusCreatedByDataAttributesCreatedByData; }; -export type ProtectionStatusCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes; -}; - export type ProtectionStatusCreatedByDataAttributesRoles = { data?: ProtectionStatusCreatedByDataAttributesRolesDataItem[]; }; @@ -1616,18 +1611,6 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdate data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1640,20 +1623,6 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreate data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -1663,6 +1632,23 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermis data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type ProtectionStatusCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes; +}; + export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -1705,6 +1691,20 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermis data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -1791,16 +1791,33 @@ export interface ProtectionStatusLocalizationRequest { export type ProtectionCoverageStatResponseMeta = { [key: string]: any }; -export interface ProtectionCoverageStatResponseDataObject { - id?: number; - attributes?: ProtectionCoverageStat; -} - export interface ProtectionCoverageStatResponse { data?: ProtectionCoverageStatResponseDataObject; meta?: ProtectionCoverageStatResponseMeta; } +export interface ProtectionCoverageStat { + location?: ProtectionCoverageStatLocation; + year: number; + protectedArea?: number; + protectedAreasCount: number; + environment?: ProtectionCoverageStatEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatCreatedBy; + updatedBy?: ProtectionCoverageStatUpdatedBy; +} + +export interface ProtectionCoverageStatResponseDataObject { + id?: number; + attributes?: ProtectionCoverageStat; +} + export type ProtectionCoverageStatUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionCoverageStatUpdatedByData = { @@ -1843,23 +1860,6 @@ export type ProtectionCoverageStatLocation = { data?: ProtectionCoverageStatLocationData; }; -export interface ProtectionCoverageStat { - location?: ProtectionCoverageStatLocation; - year: number; - protectedArea?: number; - protectedAreasCount: number; - environment?: ProtectionCoverageStatEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatCreatedBy; - updatedBy?: ProtectionCoverageStatUpdatedBy; -} - export type ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -1886,6 +1886,11 @@ export type ProtectionCoverageStatLocationDataAttributesCreatedBy = { data?: ProtectionCoverageStatLocationDataAttributesCreatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem = { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; +}; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats = { data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; @@ -1898,7 +1903,7 @@ export type ProtectionCoverageStatLocationDataAttributes = { groups?: ProtectionCoverageStatLocationDataAttributesGroups; members?: ProtectionCoverageStatLocationDataAttributesMembers; fishing_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats; + mpaa_protection_level_stat?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStat; protection_coverage_stats?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; totalTerrestrialArea?: number; @@ -1926,9 +1931,6 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = { id?: number; @@ -1940,11 +1942,6 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = - { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { location?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; @@ -1963,32 +1960,23 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; -}; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { - data?: unknown[]; + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - name?: string; - slug?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; - locale?: string; + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + data?: unknown[]; }; export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = @@ -2005,6 +1993,18 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2033,124 +2033,123 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = - { - location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStat = { + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = - { +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = + { + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; + }; + +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = + { + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; + }; + +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { + mpaa_protection_level?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; +}; + +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = + { data?: unknown[]; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = - { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = - { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = @@ -2327,6 +2326,11 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; @@ -2349,9 +2353,18 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = @@ -2379,20 +2392,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2498,16 +2497,39 @@ export interface ProtectionCoverageStatListResponse { export type PaResponseMeta = { [key: string]: any }; -export interface PaResponseDataObject { - id?: number; - attributes?: Pa; -} - export interface PaResponse { data?: PaResponseDataObject; meta?: PaResponseMeta; } +export interface Pa { + name: string; + area: number; + year?: number; + protection_status?: PaProtectionStatus; + bbox: unknown; + children?: PaChildren; + data_source?: PaDataSource; + mpaa_establishment_stage?: PaMpaaEstablishmentStage; + location?: PaLocation; + wdpaid?: string; + mpaa_protection_level?: PaMpaaProtectionLevel; + is_child: boolean; + iucn_category?: PaIucnCategory; + designation?: string; + environment?: PaEnvironment; + coverage: number; + createdAt?: string; + updatedAt?: string; + createdBy?: PaCreatedBy; + updatedBy?: PaUpdatedBy; +} + +export interface PaResponseDataObject { + id?: number; + attributes?: Pa; +} + export type PaUpdatedByDataAttributes = { [key: string]: any }; export type PaUpdatedByData = { @@ -2552,28 +2574,6 @@ export type PaIucnCategory = { data?: PaIucnCategoryData; }; -export interface Pa { - name: string; - area: number; - year?: number; - protection_status?: PaProtectionStatus; - bbox: unknown; - children?: PaChildren; - data_source?: PaDataSource; - mpaa_establishment_stage?: PaMpaaEstablishmentStage; - location?: PaLocation; - wdpaid?: string; - mpaa_protection_level?: PaMpaaProtectionLevel; - is_child: boolean; - iucn_category?: PaIucnCategory; - designation?: string; - environment?: PaEnvironment; - createdAt?: string; - updatedAt?: string; - createdBy?: PaCreatedBy; - updatedBy?: PaUpdatedBy; -} - export type PaMpaaProtectionLevelDataAttributes = { [key: string]: any }; export type PaMpaaProtectionLevelData = { @@ -2634,6 +2634,7 @@ export type PaChildrenDataItemAttributes = { iucn_category?: PaChildrenDataItemAttributesIucnCategory; designation?: string; environment?: PaChildrenDataItemAttributesEnvironment; + coverage?: number; createdAt?: string; updatedAt?: string; createdBy?: PaChildrenDataItemAttributesCreatedBy; @@ -2671,6 +2672,10 @@ export type PaChildrenDataItemAttributesCreatedBy = { data?: PaChildrenDataItemAttributesCreatedByData; }; +export type PaChildrenDataItemAttributesEnvironment = { + data?: PaChildrenDataItemAttributesEnvironmentData; +}; + export type PaChildrenDataItemAttributesEnvironmentDataAttributes = { [key: string]: any }; export type PaChildrenDataItemAttributesEnvironmentData = { @@ -2678,8 +2683,9 @@ export type PaChildrenDataItemAttributesEnvironmentData = { attributes?: PaChildrenDataItemAttributesEnvironmentDataAttributes; }; -export type PaChildrenDataItemAttributesEnvironment = { - data?: PaChildrenDataItemAttributesEnvironmentData; +export type PaChildrenDataItemAttributesIucnCategoryData = { + id?: number; + attributes?: PaChildrenDataItemAttributesIucnCategoryDataAttributes; }; export type PaChildrenDataItemAttributesIucnCategory = { @@ -2715,11 +2721,6 @@ export type PaChildrenDataItemAttributesIucnCategoryDataAttributes = { locale?: string; }; -export type PaChildrenDataItemAttributesIucnCategoryData = { - id?: number; - attributes?: PaChildrenDataItemAttributesIucnCategoryDataAttributes; -}; - export type PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -2744,37 +2745,6 @@ export type PaChildrenDataItemAttributesMpaaProtectionLevel = { data?: PaChildrenDataItemAttributesMpaaProtectionLevelData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesUpdatedByData = { - id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedByDataAttributes; -}; - -export type PaChildrenDataItemAttributesLocationDataAttributesUpdatedBy = { - data?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedByData; -}; - -export type PaChildrenDataItemAttributesLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: PaChildrenDataItemAttributesLocationDataAttributesGroups; - members?: PaChildrenDataItemAttributesLocationDataAttributesMembers; - fishing_protection_level_stats?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea?: number; - terrestrial_bounds?: unknown; - name_es?: string; - name_fr?: string; - mpaa_fully_highly_protected_area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedBy; -}; - export type PaChildrenDataItemAttributesLocationData = { id?: number; attributes?: PaChildrenDataItemAttributesLocationDataAttributes; @@ -2788,6 +2758,15 @@ export type PaChildrenDataItemAttributesLocationDataAttributesUpdatedByDataAttri [key: string]: any; }; +export type PaChildrenDataItemAttributesLocationDataAttributesUpdatedByData = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedByDataAttributes; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesUpdatedBy = { + data?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedByData; +}; + export type PaChildrenDataItemAttributesLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -2828,6 +2807,28 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem[]; }; +export type PaChildrenDataItemAttributesLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: PaChildrenDataItemAttributesLocationDataAttributesGroups; + members?: PaChildrenDataItemAttributesLocationDataAttributesMembers; + fishing_protection_level_stats?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stat?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStat; + protection_coverage_stats?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + name_es?: string; + name_fr?: string; + mpaa_fully_highly_protected_area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedBy; +}; + export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2856,6 +2857,11 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = + { + data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; + }; + export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; @@ -2879,11 +2885,6 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = - { - data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; - }; - export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2926,124 +2927,136 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItem = { - id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; -}; - -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStat = { + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = { - location?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = + { [key: string]: any }; + +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = { - data?: unknown[]; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { - slug?: string; - name?: string; - info?: string; + mpaa_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + location?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; createdAt?: string; updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + }; + +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatData = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributes; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = + { + data?: unknown[]; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = { - id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + }; + +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = + { + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; + location?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; }; export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItem = @@ -3084,32 +3097,33 @@ export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionL data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { - location?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; + data?: unknown[]; + }; + +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; createdAt?: string; updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + locale?: string; }; -export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { - data?: unknown[]; + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = @@ -3126,19 +3140,6 @@ export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionL data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3180,10 +3181,6 @@ export type PaChildrenDataItemAttributesLocationDataAttributesMembers = { data?: PaChildrenDataItemAttributesLocationDataAttributesMembersDataItem[]; }; -export type PaChildrenDataItemAttributesLocationDataAttributesGroups = { - data?: PaChildrenDataItemAttributesLocationDataAttributesGroupsDataItem[]; -}; - export type PaChildrenDataItemAttributesLocationDataAttributesGroupsDataItemAttributes = { [key: string]: any; }; @@ -3193,6 +3190,10 @@ export type PaChildrenDataItemAttributesLocationDataAttributesGroupsDataItem = { attributes?: PaChildrenDataItemAttributesLocationDataAttributesGroupsDataItemAttributes; }; +export type PaChildrenDataItemAttributesLocationDataAttributesGroups = { + data?: PaChildrenDataItemAttributesLocationDataAttributesGroupsDataItem[]; +}; + export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesLocalizations = { data?: unknown[]; }; @@ -3250,23 +3251,6 @@ export type PaChildrenDataItemAttributesDataSourceDataAttributesLocalizations = data?: unknown[]; }; -export type PaChildrenDataItemAttributesDataSourceDataAttributes = { - slug?: string; - title?: string; - url?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesDataSourceDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesDataSourceDataAttributesUpdatedBy; - localizations?: PaChildrenDataItemAttributesDataSourceDataAttributesLocalizations; - locale?: string; -}; - -export type PaChildrenDataItemAttributesDataSourceData = { - id?: number; - attributes?: PaChildrenDataItemAttributesDataSourceDataAttributes; -}; - export type PaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -3293,6 +3277,23 @@ export type PaChildrenDataItemAttributesDataSourceDataAttributesCreatedBy = { data?: PaChildrenDataItemAttributesDataSourceDataAttributesCreatedByData; }; +export type PaChildrenDataItemAttributesDataSourceDataAttributes = { + slug?: string; + title?: string; + url?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesDataSourceDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesDataSourceDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesDataSourceDataAttributesLocalizations; + locale?: string; +}; + +export type PaChildrenDataItemAttributesDataSourceData = { + id?: number; + attributes?: PaChildrenDataItemAttributesDataSourceDataAttributes; +}; + export type PaChildrenDataItemAttributesChildrenDataItemAttributes = { [key: string]: any }; export type PaChildrenDataItemAttributesChildrenDataItem = { @@ -3315,11 +3316,6 @@ export type PaChildrenDataItemAttributesProtectionStatus = { data?: PaChildrenDataItemAttributesProtectionStatusData; }; -export type PaProtectionStatusData = { - id?: number; - attributes?: PaProtectionStatusDataAttributes; -}; - export type PaProtectionStatus = { data?: PaProtectionStatusData; }; @@ -3360,6 +3356,11 @@ export type PaProtectionStatusDataAttributes = { locale?: string; }; +export type PaProtectionStatusData = { + id?: number; + attributes?: PaProtectionStatusDataAttributes; +}; + export type PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -3373,6 +3374,10 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy = { data?: PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByData; }; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy = { + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData; +}; + export type PaProtectionStatusDataAttributesCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -3399,22 +3404,6 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy = { - data?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData; -}; - -export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributes; @@ -3463,6 +3452,18 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3477,20 +3478,6 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3519,6 +3506,20 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -3555,16 +3556,27 @@ export interface PaListResponse { export type MpaaProtectionLevelStatResponseMeta = { [key: string]: any }; -export interface MpaaProtectionLevelStatResponseDataObject { - id?: number; - attributes?: MpaaProtectionLevelStat; -} - export interface MpaaProtectionLevelStatResponse { data?: MpaaProtectionLevelStatResponseDataObject; meta?: MpaaProtectionLevelStatResponseMeta; } +export interface MpaaProtectionLevelStat { + mpaa_protection_level?: MpaaProtectionLevelStatMpaaProtectionLevel; + area: number; + percentage?: number; + location?: MpaaProtectionLevelStatLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatCreatedBy; + updatedBy?: MpaaProtectionLevelStatUpdatedBy; +} + +export interface MpaaProtectionLevelStatResponseDataObject { + id?: number; + attributes?: MpaaProtectionLevelStat; +} + export type MpaaProtectionLevelStatUpdatedByDataAttributes = { [key: string]: any }; export type MpaaProtectionLevelStatUpdatedByData = { @@ -3587,15 +3599,26 @@ export type MpaaProtectionLevelStatCreatedBy = { data?: MpaaProtectionLevelStatCreatedByData; }; -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes = { [key: string]: any }; - -export type MpaaProtectionLevelStatMpaaProtectionLevelData = { - id?: number; - attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes; -}; - -export type MpaaProtectionLevelStatMpaaProtectionLevel = { - data?: MpaaProtectionLevelStatMpaaProtectionLevelData; +export type MpaaProtectionLevelStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: MpaaProtectionLevelStatLocationDataAttributesGroups; + members?: MpaaProtectionLevelStatLocationDataAttributesMembers; + fishing_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stat?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat; + protection_coverage_stats?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + name_es?: string; + name_fr?: string; + mpaa_fully_highly_protected_area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesUpdatedBy; }; export type MpaaProtectionLevelStatLocationData = { @@ -3607,17 +3630,6 @@ export type MpaaProtectionLevelStatLocation = { data?: MpaaProtectionLevelStatLocationData; }; -export interface MpaaProtectionLevelStat { - location?: MpaaProtectionLevelStatLocation; - mpaa_protection_level?: MpaaProtectionLevelStatMpaaProtectionLevel; - area: number; - percentage?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatCreatedBy; - updatedBy?: MpaaProtectionLevelStatUpdatedBy; -} - export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -3644,24 +3656,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesCreatedBy = { data?: MpaaProtectionLevelStatLocationDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = - { - location?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - year?: number; - protectedArea?: number; - protectedAreasCount?: number; - environment?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; - }; - export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -3671,28 +3665,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; -export type MpaaProtectionLevelStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: MpaaProtectionLevelStatLocationDataAttributesGroups; - members?: MpaaProtectionLevelStatLocationDataAttributesMembers; - fishing_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea?: number; - terrestrial_bounds?: unknown; - name_es?: string; - name_fr?: string; - mpaa_fully_highly_protected_area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesUpdatedBy; -}; - export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3707,14 +3679,32 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; - }; + location?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; + }; export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = { @@ -3731,6 +3721,20 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: unknown[]; }; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = + { + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + }; + export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = { name?: string; @@ -3749,20 +3753,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; - }; - export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3791,143 +3781,82 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = - { - location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { + mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; +}; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat = { + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = - { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = { - location?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; -}; - export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats = { data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; }; @@ -3965,6 +3894,23 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; +}; + export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; @@ -4003,6 +3949,9 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; @@ -4014,225 +3963,270 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMembersDataItemAttributes = { + [key: string]: any; +}; + +export type MpaaProtectionLevelStatLocationDataAttributesMembersDataItem = { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMembersDataItemAttributes; +}; + +export type MpaaProtectionLevelStatLocationDataAttributesMembers = { + data?: MpaaProtectionLevelStatLocationDataAttributesMembersDataItem[]; +}; + +export type MpaaProtectionLevelStatLocationDataAttributesGroupsDataItemAttributes = { + [key: string]: any; +}; + +export type MpaaProtectionLevelStatLocationDataAttributesGroupsDataItem = { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesGroupsDataItemAttributes; +}; + +export type MpaaProtectionLevelStatLocationDataAttributesGroups = { + data?: MpaaProtectionLevelStatLocationDataAttributesGroupsDataItem[]; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesLocalizations = { + data?: unknown[]; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelData = { + id?: number; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevel = { + data?: MpaaProtectionLevelStatMpaaProtectionLevelData; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedByData = { + id?: number; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedBy = { + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedByData; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByData = { + id?: number; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributes; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedBy = { + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByData; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; - }; +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = + { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + id?: number; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; description?: string; - users?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + users?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + createdBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; - }; +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRoles = { + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + id?: number; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMembersDataItemAttributes = { - [key: string]: any; -}; - -export type MpaaProtectionLevelStatLocationDataAttributesMembersDataItem = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMembersDataItemAttributes; -}; - -export type MpaaProtectionLevelStatLocationDataAttributesMembers = { - data?: MpaaProtectionLevelStatLocationDataAttributesMembersDataItem[]; -}; - -export type MpaaProtectionLevelStatLocationDataAttributesGroupsDataItemAttributes = { - [key: string]: any; -}; - -export type MpaaProtectionLevelStatLocationDataAttributesGroupsDataItem = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesGroupsDataItemAttributes; -}; - -export type MpaaProtectionLevelStatLocationDataAttributesGroups = { - data?: MpaaProtectionLevelStatLocationDataAttributesGroupsDataItem[]; -}; - export type MpaaProtectionLevelStatListResponseMetaPagination = { page?: number; pageSize?: number; @@ -4256,11 +4250,6 @@ export interface MpaaProtectionLevelStatListResponse { export type MpaaProtectionLevelResponseMeta = { [key: string]: any }; -export interface MpaaProtectionLevelResponseDataObject { - id?: number; - attributes?: MpaaProtectionLevel; -} - export interface MpaaProtectionLevelResponse { data?: MpaaProtectionLevelResponseDataObject; meta?: MpaaProtectionLevelResponseMeta; @@ -4270,21 +4259,6 @@ export type MpaaProtectionLevelLocalizations = { data?: MpaaProtectionLevel[]; }; -export type MpaaProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; - -export type MpaaProtectionLevelUpdatedByData = { - id?: number; - attributes?: MpaaProtectionLevelUpdatedByDataAttributes; -}; - -export type MpaaProtectionLevelUpdatedBy = { - data?: MpaaProtectionLevelUpdatedByData; -}; - -export type MpaaProtectionLevelCreatedBy = { - data?: MpaaProtectionLevelCreatedByData; -}; - export interface MpaaProtectionLevel { slug: string; name: string; @@ -4297,30 +4271,24 @@ export interface MpaaProtectionLevel { locale?: string; } -export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByData = { +export interface MpaaProtectionLevelResponseDataObject { id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes; -}; + attributes?: MpaaProtectionLevel; +} -export type MpaaProtectionLevelCreatedByDataAttributesUpdatedBy = { - data?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByData; -}; +export type MpaaProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; +export type MpaaProtectionLevelUpdatedByData = { + id?: number; + attributes?: MpaaProtectionLevelUpdatedByDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes; +export type MpaaProtectionLevelUpdatedBy = { + data?: MpaaProtectionLevelUpdatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesCreatedBy = { - data?: MpaaProtectionLevelCreatedByDataAttributesCreatedByData; +export type MpaaProtectionLevelCreatedByDataAttributesUpdatedBy = { + data?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByData; }; export type MpaaProtectionLevelCreatedByDataAttributes = { @@ -4345,25 +4313,30 @@ export type MpaaProtectionLevelCreatedByData = { attributes?: MpaaProtectionLevelCreatedByDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { +export type MpaaProtectionLevelCreatedBy = { + data?: MpaaProtectionLevelCreatedByData; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +export type MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +export type MpaaProtectionLevelCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesCreatedBy = { + data?: MpaaProtectionLevelCreatedByDataAttributesCreatedByData; }; export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItem = { @@ -4378,6 +4351,15 @@ export type MpaaProtectionLevelCreatedByDataAttributesRoles = { export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +}; + export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -4390,29 +4372,22 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCre data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; -}; - export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions = { data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4455,6 +4430,25 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPer data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; +}; + export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -4488,6 +4482,11 @@ export interface MpaaProtectionLevelListResponse { meta?: MpaaProtectionLevelListResponseMeta; } +export interface MpaaProtectionLevelLocalizationListResponse { + data?: MpaaProtectionLevelListResponseDataItemLocalized[]; + meta?: MpaaProtectionLevelLocalizationListResponseMeta; +} + export type MpaaProtectionLevelLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -4504,11 +4503,6 @@ export interface MpaaProtectionLevelListResponseDataItemLocalized { attributes?: MpaaProtectionLevel; } -export interface MpaaProtectionLevelLocalizationListResponse { - data?: MpaaProtectionLevelListResponseDataItemLocalized[]; - meta?: MpaaProtectionLevelLocalizationListResponseMeta; -} - export type MpaaProtectionLevelLocalizationResponseMeta = { [key: string]: any }; export interface MpaaProtectionLevelResponseDataObjectLocalized { @@ -4518,836 +4512,29 @@ export interface MpaaProtectionLevelResponseDataObjectLocalized { export interface MpaaProtectionLevelLocalizationResponse { data?: MpaaProtectionLevelResponseDataObjectLocalized; - meta?: MpaaProtectionLevelLocalizationResponseMeta; -} - -export type MpaaProtectionLevelRequestData = { - slug: string; - name: string; - info?: string; - locale?: string; -}; - -export interface MpaaProtectionLevelRequest { - data: MpaaProtectionLevelRequestData; -} - -export interface MpaaProtectionLevelLocalizationRequest { - slug: string; - name: string; - info?: string; - locale: string; -} - -export type MpaaEstablishmentStageStatResponseMeta = { [key: string]: any }; - -export interface MpaaEstablishmentStageStatResponse { - data?: MpaaEstablishmentStageStatResponseDataObject; - meta?: MpaaEstablishmentStageStatResponseMeta; -} - -export interface MpaaEstablishmentStageStat { - location?: MpaaEstablishmentStageStatLocation; - mpaa_establishment_stage?: MpaaEstablishmentStageStatMpaaEstablishmentStage; - protection_status?: MpaaEstablishmentStageStatProtectionStatus; - year: number; - area: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatCreatedBy; - updatedBy?: MpaaEstablishmentStageStatUpdatedBy; -} - -export interface MpaaEstablishmentStageStatResponseDataObject { - id?: number; - attributes?: MpaaEstablishmentStageStat; -} - -export type MpaaEstablishmentStageStatUpdatedByDataAttributes = { [key: string]: any }; - -export type MpaaEstablishmentStageStatUpdatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatUpdatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatUpdatedBy = { - data?: MpaaEstablishmentStageStatUpdatedByData; -}; - -export type MpaaEstablishmentStageStatCreatedByDataAttributes = { [key: string]: any }; - -export type MpaaEstablishmentStageStatCreatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatCreatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatCreatedBy = { - data?: MpaaEstablishmentStageStatCreatedByData; -}; - -export type MpaaEstablishmentStageStatProtectionStatusData = { - id?: number; - attributes?: MpaaEstablishmentStageStatProtectionStatusDataAttributes; -}; - -export type MpaaEstablishmentStageStatProtectionStatus = { - data?: MpaaEstablishmentStageStatProtectionStatusData; -}; - -export type MpaaEstablishmentStageStatProtectionStatusDataAttributesLocalizations = { - data?: unknown[]; -}; - -export type MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedByData; -}; - -export type MpaaEstablishmentStageStatProtectionStatusDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatProtectionStatusDataAttributesLocalizations; - locale?: string; -}; - -export type MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedByData; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesLocalizations = { - data?: unknown[]; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesLocalizations; - locale?: string; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageData = { - id?: number; - attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStage = { - data?: MpaaEstablishmentStageStatMpaaEstablishmentStageData; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByData; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByData; -}; - -export type MpaaEstablishmentStageStatLocationData = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributes; -}; - -export type MpaaEstablishmentStageStatLocation = { - data?: MpaaEstablishmentStageStatLocationData; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedByData; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: MpaaEstablishmentStageStatLocationDataAttributesGroups; - members?: MpaaEstablishmentStageStatLocationDataAttributesMembers; - fishing_protection_level_stats?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea?: number; - terrestrial_bounds?: unknown; - name_es?: string; - name_fr?: string; - mpaa_fully_highly_protected_area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedBy; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesCreatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesCreatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesCreatedByData; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItem = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStats = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItem[]; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = - { - name?: string; - slug?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; - locale?: string; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = - { - location?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - year?: number; - protectedArea?: number; - protectedAreasCount?: number; - environment?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = - { - location?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStats = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStats = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMembersDataItemAttributes = { - [key: string]: any; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesMembersDataItem = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMembersDataItemAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesMembers = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMembersDataItem[]; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItemAttributes = { - [key: string]: any; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItem = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItemAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesGroups = { - data?: MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItem[]; -}; - -export type MpaaEstablishmentStageStatListResponseMetaPagination = { - page?: number; - pageSize?: number; - pageCount?: number; - total?: number; -}; - -export type MpaaEstablishmentStageStatListResponseMeta = { - pagination?: MpaaEstablishmentStageStatListResponseMetaPagination; -}; - -export interface MpaaEstablishmentStageStatListResponseDataItem { - id?: number; - attributes?: MpaaEstablishmentStageStat; -} - -export interface MpaaEstablishmentStageStatListResponse { - data?: MpaaEstablishmentStageStatListResponseDataItem[]; - meta?: MpaaEstablishmentStageStatListResponseMeta; + meta?: MpaaProtectionLevelLocalizationResponseMeta; } -export type MpaaEstablishmentStageResponseMeta = { [key: string]: any }; - -export type MpaaEstablishmentStageLocalizations = { - data?: MpaaEstablishmentStage[]; +export type MpaaProtectionLevelRequestData = { + slug: string; + name: string; + info?: string; + locale?: string; }; -export interface MpaaEstablishmentStage { +export interface MpaaProtectionLevelRequest { + data: MpaaProtectionLevelRequestData; +} + +export interface MpaaProtectionLevelLocalizationRequest { slug: string; name: string; info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageCreatedBy; - updatedBy?: MpaaEstablishmentStageUpdatedBy; - localizations?: MpaaEstablishmentStageLocalizations; - locale?: string; + locale: string; } +export type MpaaEstablishmentStageResponseMeta = { [key: string]: any }; + export interface MpaaEstablishmentStageResponseDataObject { id?: number; attributes?: MpaaEstablishmentStage; @@ -5358,6 +4545,10 @@ export interface MpaaEstablishmentStageResponse { meta?: MpaaEstablishmentStageResponseMeta; } +export type MpaaEstablishmentStageLocalizations = { + data?: MpaaEstablishmentStage[]; +}; + export type MpaaEstablishmentStageUpdatedByDataAttributes = { [key: string]: any }; export type MpaaEstablishmentStageUpdatedByData = { @@ -5378,6 +4569,18 @@ export type MpaaEstablishmentStageCreatedBy = { data?: MpaaEstablishmentStageCreatedByData; }; +export interface MpaaEstablishmentStage { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageCreatedBy; + updatedBy?: MpaaEstablishmentStageUpdatedBy; + localizations?: MpaaEstablishmentStageLocalizations; + locale?: string; +} + export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -5404,18 +4607,6 @@ export type MpaaEstablishmentStageCreatedByDataAttributesCreatedBy = { data?: MpaaEstablishmentStageCreatedByDataAttributesCreatedByData; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes; @@ -5454,9 +4645,6 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; @@ -5466,6 +4654,21 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -5618,6 +4821,11 @@ export interface MpaaEstablishmentStageLocalizationRequest { export type MpaIucnCategoryResponseMeta = { [key: string]: any }; +export interface MpaIucnCategoryResponse { + data?: MpaIucnCategoryResponseDataObject; + meta?: MpaIucnCategoryResponseMeta; +} + export type MpaIucnCategoryLocalizations = { data?: MpaIucnCategory[]; }; @@ -5639,11 +4847,6 @@ export interface MpaIucnCategoryResponseDataObject { attributes?: MpaIucnCategory; } -export interface MpaIucnCategoryResponse { - data?: MpaIucnCategoryResponseDataObject; - meta?: MpaIucnCategoryResponseMeta; -} - export type MpaIucnCategoryUpdatedByDataAttributes = { [key: string]: any }; export type MpaIucnCategoryUpdatedByData = { @@ -5703,18 +4906,6 @@ export type MpaIucnCategoryCreatedByDataAttributesCreatedBy = { data?: MpaIucnCategoryCreatedByDataAttributesCreatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type MpaIucnCategoryCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes; @@ -5737,6 +4928,18 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdated data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -5773,6 +4976,20 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermiss data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5801,20 +5018,6 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermiss data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -5902,6 +5105,28 @@ export interface MpaIucnCategoryLocalizationRequest { export type LocationResponseMeta = { [key: string]: any }; +export interface Location { + code: string; + name: string; + totalMarineArea: number; + type: string; + groups?: LocationGroups; + members?: LocationMembers; + fishing_protection_level_stats?: LocationFishingProtectionLevelStats; + mpaa_protection_level_stat?: LocationMpaaProtectionLevelStat; + protection_coverage_stats?: LocationProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea: number; + terrestrial_bounds?: unknown; + name_es: string; + name_fr: string; + mpaa_fully_highly_protected_area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationCreatedBy; + updatedBy?: LocationUpdatedBy; +} + export interface LocationResponseDataObject { id?: number; attributes?: Location; @@ -5923,32 +5148,6 @@ export type LocationUpdatedBy = { data?: LocationUpdatedByData; }; -export type LocationCreatedBy = { - data?: LocationCreatedByData; -}; - -export interface Location { - code: string; - name: string; - totalMarineArea: number; - type: string; - groups?: LocationGroups; - members?: LocationMembers; - fishing_protection_level_stats?: LocationFishingProtectionLevelStats; - mpaa_protection_level_stats?: LocationMpaaProtectionLevelStats; - protection_coverage_stats?: LocationProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea: number; - terrestrial_bounds?: unknown; - name_es: string; - name_fr: string; - mpaa_fully_highly_protected_area: number; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationCreatedBy; - updatedBy?: LocationUpdatedBy; -} - export type LocationCreatedByDataAttributes = { [key: string]: any }; export type LocationCreatedByData = { @@ -5956,6 +5155,10 @@ export type LocationCreatedByData = { attributes?: LocationCreatedByDataAttributes; }; +export type LocationCreatedBy = { + data?: LocationCreatedByData; +}; + export type LocationProtectionCoverageStatsDataItemAttributes = { [key: string]: any }; export type LocationProtectionCoverageStatsDataItem = { @@ -5967,15 +5170,19 @@ export type LocationProtectionCoverageStats = { data?: LocationProtectionCoverageStatsDataItem[]; }; -export type LocationMpaaProtectionLevelStatsDataItemAttributes = { [key: string]: any }; +export type LocationMpaaProtectionLevelStatDataAttributes = { [key: string]: any }; -export type LocationMpaaProtectionLevelStatsDataItem = { +export type LocationMpaaProtectionLevelStatData = { id?: number; - attributes?: LocationMpaaProtectionLevelStatsDataItemAttributes; + attributes?: LocationMpaaProtectionLevelStatDataAttributes; +}; + +export type LocationMpaaProtectionLevelStat = { + data?: LocationMpaaProtectionLevelStatData; }; -export type LocationMpaaProtectionLevelStats = { - data?: LocationMpaaProtectionLevelStatsDataItem[]; +export type LocationFishingProtectionLevelStats = { + data?: LocationFishingProtectionLevelStatsDataItem[]; }; export type LocationFishingProtectionLevelStatsDataItemAttributes = { [key: string]: any }; @@ -5985,10 +5192,6 @@ export type LocationFishingProtectionLevelStatsDataItem = { attributes?: LocationFishingProtectionLevelStatsDataItemAttributes; }; -export type LocationFishingProtectionLevelStats = { - data?: LocationFishingProtectionLevelStatsDataItem[]; -}; - export type LocationMembersDataItemAttributes = { [key: string]: any }; export type LocationMembersDataItem = { @@ -6000,6 +5203,28 @@ export type LocationMembers = { data?: LocationMembersDataItem[]; }; +export type LocationGroupsDataItemAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: LocationGroupsDataItemAttributesGroups; + members?: LocationGroupsDataItemAttributesMembers; + fishing_protection_level_stats?: LocationGroupsDataItemAttributesFishingProtectionLevelStats; + mpaa_protection_level_stat?: LocationGroupsDataItemAttributesMpaaProtectionLevelStat; + protection_coverage_stats?: LocationGroupsDataItemAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + name_es?: string; + name_fr?: string; + mpaa_fully_highly_protected_area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesUpdatedBy; +}; + export type LocationGroupsDataItem = { id?: number; attributes?: LocationGroupsDataItemAttributes; @@ -6040,62 +5265,17 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStats = { data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItem[]; }; -export type LocationGroupsDataItemAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: LocationGroupsDataItemAttributesGroups; - members?: LocationGroupsDataItemAttributesMembers; - fishing_protection_level_stats?: LocationGroupsDataItemAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: LocationGroupsDataItemAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: LocationGroupsDataItemAttributesProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea?: number; - terrestrial_bounds?: unknown; - name_es?: string; - name_fr?: string; - mpaa_fully_highly_protected_area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesUpdatedBy; -}; - export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; -}; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; -}; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes = { @@ -6115,14 +5295,22 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = { - data?: unknown[]; + id?: number; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; +}; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + data?: unknown[]; }; export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = @@ -6137,6 +5325,16 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri locale?: string; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = + { + id?: number; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; +}; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6146,6 +5344,11 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = + { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + }; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6160,6 +5363,10 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation = { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData; +}; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -6169,124 +5376,128 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation = { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData; -}; - -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributes = { - location?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributes = { + mpaa_protection_level?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; area?: number; percentage?: number; + location?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocation; createdAt?: string; updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItem = { +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStats = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItem[]; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStat = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = { + id?: number; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; +}; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; - }; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = { + id?: number; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; +}; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = + { [key: string]: any }; + +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocationData = { + id?: number; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; +}; + +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocation = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocationData; +}; + +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = - { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributes = { + location?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; }; export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItem = { @@ -6312,22 +5523,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = - { - data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; - }; - -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributes = { - location?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; -}; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6337,6 +5532,16 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; + }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; @@ -6361,11 +5566,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = - { - data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6664,6 +5864,11 @@ export interface DocumentationMetadataComponent { export type LayerResponseMeta = { [key: string]: any }; +export interface LayerResponse { + data?: LayerResponseDataObject; + meta?: LayerResponseMeta; +} + export type LayerLocalizations = { data?: Layer[]; }; @@ -6692,11 +5897,6 @@ export interface LayerResponseDataObject { attributes?: Layer; } -export interface LayerResponse { - data?: LayerResponseDataObject; - meta?: LayerResponseMeta; -} - export type LayerUpdatedByDataAttributes = { [key: string]: any }; export type LayerUpdatedByData = { @@ -6719,6 +5919,10 @@ export type LayerCreatedBy = { data?: LayerCreatedByData; }; +export type LayerDataset = { + data?: LayerDatasetData; +}; + export type LayerDatasetDataAttributesLocalizations = { data?: unknown[]; }; @@ -6742,10 +5946,6 @@ export type LayerDatasetData = { attributes?: LayerDatasetDataAttributes; }; -export type LayerDataset = { - data?: LayerDatasetData; -}; - export type LayerDatasetDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type LayerDatasetDataAttributesUpdatedByData = { @@ -6768,11 +5968,6 @@ export type LayerDatasetDataAttributesCreatedBy = { data?: LayerDatasetDataAttributesCreatedByData; }; -export type LayerDatasetDataAttributesGroupData = { - id?: number; - attributes?: LayerDatasetDataAttributesGroupDataAttributes; -}; - export type LayerDatasetDataAttributesGroup = { data?: LayerDatasetDataAttributesGroupData; }; @@ -6781,6 +5976,23 @@ export type LayerDatasetDataAttributesGroupDataAttributesLocalizations = { data?: unknown[]; }; +export type LayerDatasetDataAttributesGroupDataAttributes = { + name?: string; + slug?: string; + datasets?: LayerDatasetDataAttributesGroupDataAttributesDatasets; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesGroupDataAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesGroupDataAttributesUpdatedBy; + localizations?: LayerDatasetDataAttributesGroupDataAttributesLocalizations; + locale?: string; +}; + +export type LayerDatasetDataAttributesGroupData = { + id?: number; + attributes?: LayerDatasetDataAttributesGroupDataAttributes; +}; + export type LayerDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -6794,18 +6006,6 @@ export type LayerDatasetDataAttributesGroupDataAttributesUpdatedBy = { data?: LayerDatasetDataAttributesGroupDataAttributesUpdatedByData; }; -export type LayerDatasetDataAttributesGroupDataAttributes = { - name?: string; - slug?: string; - datasets?: LayerDatasetDataAttributesGroupDataAttributesDatasets; - createdAt?: string; - updatedAt?: string; - createdBy?: LayerDatasetDataAttributesGroupDataAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesGroupDataAttributesUpdatedBy; - localizations?: LayerDatasetDataAttributesGroupDataAttributesLocalizations; - locale?: string; -}; - export type LayerDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -6832,41 +6032,10 @@ export type LayerDatasetDataAttributesGroupDataAttributesDatasets = { data?: LayerDatasetDataAttributesGroupDataAttributesDatasetsDataItem[]; }; -export type LayerDatasetDataAttributesLayersDataItem = { - id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributes; -}; - -export type LayerDatasetDataAttributesLayers = { - data?: LayerDatasetDataAttributesLayersDataItem[]; -}; - export type LayerDatasetDataAttributesLayersDataItemAttributesLocalizations = { data?: unknown[]; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData = { - id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes; -}; - -export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData; -}; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByData = { - id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributes; -}; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByData; -}; - export type LayerDatasetDataAttributesLayersDataItemAttributes = { title?: string; type?: LayerDatasetDataAttributesLayersDataItemAttributesType; @@ -6886,8 +6055,27 @@ export type LayerDatasetDataAttributesLayersDataItemAttributes = { locale?: string; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type LayerDatasetDataAttributesLayersDataItem = { + id?: number; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributes; +}; + +export type LayerDatasetDataAttributesLayers = { + data?: LayerDatasetDataAttributesLayersDataItem[]; +}; + +export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData = { + id?: number; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes; +}; + +export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedBy = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData; +}; export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByData = { @@ -6916,6 +6104,18 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy; }; +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByData = { + id?: number; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributes; +}; + +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedBy = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByData; +}; + +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6929,6 +6129,19 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData; }; +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -6948,22 +6161,9 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = - { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; - }; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = + { + data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = @@ -6980,20 +6180,6 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -7019,6 +6205,20 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7149,15 +6349,6 @@ export interface LayerListResponse { meta?: LayerListResponseMeta; } -export type LayerLocalizationListResponseMeta = { - pagination?: LayerLocalizationListResponseMetaPagination; -}; - -export interface LayerLocalizationListResponse { - data?: LayerListResponseDataItemLocalized[]; - meta?: LayerLocalizationListResponseMeta; -} - export type LayerLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -7165,11 +6356,20 @@ export type LayerLocalizationListResponseMetaPagination = { total?: number; }; +export type LayerLocalizationListResponseMeta = { + pagination?: LayerLocalizationListResponseMetaPagination; +}; + export interface LayerListResponseDataItemLocalized { id?: number; attributes?: Layer; } +export interface LayerLocalizationListResponse { + data?: LayerListResponseDataItemLocalized[]; + meta?: LayerLocalizationListResponseMeta; +} + export type LayerLocalizationResponseMeta = { [key: string]: any }; export interface LayerResponseDataObjectLocalized { @@ -7182,10 +6382,6 @@ export interface LayerLocalizationResponse { meta?: LayerLocalizationResponseMeta; } -export interface LayerRequest { - data: LayerRequestData; -} - export type LayerRequestDataDataset = number | string; export type LayerRequestDataType = (typeof LayerRequestDataType)[keyof typeof LayerRequestDataType]; @@ -7210,6 +6406,10 @@ export type LayerRequestData = { locale?: string; }; +export interface LayerRequest { + data: LayerRequestData; +} + export type LayerLocalizationRequestDataset = number | string; export type LayerLocalizationRequestType = @@ -7258,6 +6458,19 @@ export type HabitatStatUpdatedBy = { data?: HabitatStatUpdatedByData; }; +export interface HabitatStat { + location?: HabitatStatLocation; + habitat?: HabitatStatHabitat; + year: number; + protectedArea: number; + totalArea: number; + environment?: HabitatStatEnvironment; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatCreatedBy; + updatedBy?: HabitatStatUpdatedBy; +} + export type HabitatStatCreatedByDataAttributes = { [key: string]: any }; export type HabitatStatCreatedByData = { @@ -7280,23 +6493,25 @@ export type HabitatStatEnvironment = { data?: HabitatStatEnvironmentData; }; -export interface HabitatStat { - location?: HabitatStatLocation; - habitat?: HabitatStatHabitat; - year: number; - protectedArea: number; - totalArea: number; - environment?: HabitatStatEnvironment; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatCreatedBy; - updatedBy?: HabitatStatUpdatedBy; -} +export type HabitatStatHabitat = { + data?: HabitatStatHabitatData; +}; export type HabitatStatHabitatDataAttributesLocalizations = { data?: unknown[]; }; +export type HabitatStatHabitatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type HabitatStatHabitatDataAttributesUpdatedByData = { + id?: number; + attributes?: HabitatStatHabitatDataAttributesUpdatedByDataAttributes; +}; + +export type HabitatStatHabitatDataAttributesUpdatedBy = { + data?: HabitatStatHabitatDataAttributesUpdatedByData; +}; + export type HabitatStatHabitatDataAttributes = { slug?: string; name?: string; @@ -7314,21 +6529,6 @@ export type HabitatStatHabitatData = { attributes?: HabitatStatHabitatDataAttributes; }; -export type HabitatStatHabitat = { - data?: HabitatStatHabitatData; -}; - -export type HabitatStatHabitatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type HabitatStatHabitatDataAttributesUpdatedByData = { - id?: number; - attributes?: HabitatStatHabitatDataAttributesUpdatedByDataAttributes; -}; - -export type HabitatStatHabitatDataAttributesUpdatedBy = { - data?: HabitatStatHabitatDataAttributesUpdatedByData; -}; - export type HabitatStatHabitatDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type HabitatStatHabitatDataAttributesCreatedByData = { @@ -7360,28 +6560,6 @@ export type HabitatStatLocationDataAttributesUpdatedBy = { data?: HabitatStatLocationDataAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: HabitatStatLocationDataAttributesGroups; - members?: HabitatStatLocationDataAttributesMembers; - fishing_protection_level_stats?: HabitatStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: HabitatStatLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: HabitatStatLocationDataAttributesProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea?: number; - terrestrial_bounds?: unknown; - name_es?: string; - name_fr?: string; - mpaa_fully_highly_protected_area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesUpdatedBy; -}; - export type HabitatStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type HabitatStatLocationDataAttributesCreatedByData = { @@ -7419,6 +6597,28 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStats = { data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; +export type HabitatStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: HabitatStatLocationDataAttributesGroups; + members?: HabitatStatLocationDataAttributesMembers; + fishing_protection_level_stats?: HabitatStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stat?: HabitatStatLocationDataAttributesMpaaProtectionLevelStat; + protection_coverage_stats?: HabitatStatLocationDataAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + name_es?: string; + name_fr?: string; + mpaa_fully_highly_protected_area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesUpdatedBy; +}; + export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7473,9 +6673,6 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; @@ -7487,6 +6684,9 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7514,120 +6714,139 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { + mpaa_protection_level?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + location?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; +}; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStats = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStat = { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = { + id?: number; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; +}; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; - }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = { + id?: number; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; +}; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { - location?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = { + id?: number; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; +}; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; + id?: number; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = { - id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + data?: unknown[]; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; + }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { + location?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; }; export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { @@ -7642,17 +6861,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStats = { export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7667,22 +6875,17 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { - location?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; -}; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; @@ -7722,14 +6925,8 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem updatedAt?: string; createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + localizations?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + locale?: string; }; export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = @@ -7746,11 +6943,25 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = { data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { firstname?: string; @@ -7769,38 +6980,32 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = @@ -7816,18 +7021,35 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = @@ -7844,17 +7066,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7883,20 +7094,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -7947,15 +7144,6 @@ export type HabitatStatLocationDataAttributesGroups = { data?: HabitatStatLocationDataAttributesGroupsDataItem[]; }; -export type HabitatStatListResponseMeta = { - pagination?: HabitatStatListResponseMetaPagination; -}; - -export interface HabitatStatListResponse { - data?: HabitatStatListResponseDataItem[]; - meta?: HabitatStatListResponseMeta; -} - export type HabitatStatListResponseMetaPagination = { page?: number; pageSize?: number; @@ -7963,11 +7151,20 @@ export type HabitatStatListResponseMetaPagination = { total?: number; }; +export type HabitatStatListResponseMeta = { + pagination?: HabitatStatListResponseMetaPagination; +}; + export interface HabitatStatListResponseDataItem { id?: number; attributes?: HabitatStat; } +export interface HabitatStatListResponse { + data?: HabitatStatListResponseDataItem[]; + meta?: HabitatStatListResponseMeta; +} + export type HabitatResponseMeta = { [key: string]: any }; export interface HabitatResponse { @@ -8102,19 +7299,6 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { data?: HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; -}; - export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -8166,6 +7350,19 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsData data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; +}; + export type HabitatCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -8253,17 +7450,6 @@ export interface HabitatLocalizationRequest { export type FishingProtectionLevelStatResponseMeta = { [key: string]: any }; -export interface FishingProtectionLevelStat { - location?: FishingProtectionLevelStatLocation; - fishing_protection_level?: FishingProtectionLevelStatFishingProtectionLevel; - area: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatCreatedBy; - updatedBy?: FishingProtectionLevelStatUpdatedBy; -} - export interface FishingProtectionLevelStatResponseDataObject { id?: number; attributes?: FishingProtectionLevelStat; @@ -8307,6 +7493,35 @@ export type FishingProtectionLevelStatFishingProtectionLevel = { data?: FishingProtectionLevelStatFishingProtectionLevelData; }; +export type FishingProtectionLevelStatLocationData = { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributes; +}; + +export type FishingProtectionLevelStatLocation = { + data?: FishingProtectionLevelStatLocationData; +}; + +export interface FishingProtectionLevelStat { + location?: FishingProtectionLevelStatLocation; + fishing_protection_level?: FishingProtectionLevelStatFishingProtectionLevel; + area: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatCreatedBy; + updatedBy?: FishingProtectionLevelStatUpdatedBy; +} + +export type FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type FishingProtectionLevelStatLocationDataAttributesUpdatedByData = { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; +}; + export type FishingProtectionLevelStatLocationDataAttributesUpdatedBy = { data?: FishingProtectionLevelStatLocationDataAttributesUpdatedByData; }; @@ -8319,7 +7534,7 @@ export type FishingProtectionLevelStatLocationDataAttributes = { groups?: FishingProtectionLevelStatLocationDataAttributesGroups; members?: FishingProtectionLevelStatLocationDataAttributesMembers; fishing_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; + mpaa_protection_level_stat?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat; protection_coverage_stats?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; totalTerrestrialArea?: number; @@ -8333,24 +7548,6 @@ export type FishingProtectionLevelStatLocationDataAttributes = { updatedBy?: FishingProtectionLevelStatLocationDataAttributesUpdatedBy; }; -export type FishingProtectionLevelStatLocationData = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributes; -}; - -export type FishingProtectionLevelStatLocation = { - data?: FishingProtectionLevelStatLocationData; -}; - -export type FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type FishingProtectionLevelStatLocationDataAttributesUpdatedByData = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; -}; - export type FishingProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -8364,24 +7561,6 @@ export type FishingProtectionLevelStatLocationDataAttributesCreatedBy = { data?: FishingProtectionLevelStatLocationDataAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = - { - location?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - year?: number; - protectedArea?: number; - protectedAreasCount?: number; - environment?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -8405,6 +7584,24 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -8419,23 +7616,6 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = - { - name?: string; - slug?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; - locale?: string; - }; - export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; @@ -8447,6 +7627,11 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = + { + data?: unknown[]; + }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8475,6 +7660,18 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -8489,124 +7686,124 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = - { - location?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat = { + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = + { [key: string]: any }; + +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = { - data?: unknown[]; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = + { + mpaa_protection_level?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + location?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + data?: unknown[]; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { @@ -8646,6 +7843,12 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; @@ -8682,6 +7885,19 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { firstname?: string; @@ -8711,25 +7927,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8783,6 +7980,19 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -8797,20 +8007,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -8822,19 +8018,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8877,6 +8060,20 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -8931,6 +8128,15 @@ export type FishingProtectionLevelStatLocationDataAttributesGroups = { data?: FishingProtectionLevelStatLocationDataAttributesGroupsDataItem[]; }; +export type FishingProtectionLevelStatListResponseMeta = { + pagination?: FishingProtectionLevelStatListResponseMetaPagination; +}; + +export interface FishingProtectionLevelStatListResponse { + data?: FishingProtectionLevelStatListResponseDataItem[]; + meta?: FishingProtectionLevelStatListResponseMeta; +} + export type FishingProtectionLevelStatListResponseMetaPagination = { page?: number; pageSize?: number; @@ -8938,22 +8144,18 @@ export type FishingProtectionLevelStatListResponseMetaPagination = { total?: number; }; -export type FishingProtectionLevelStatListResponseMeta = { - pagination?: FishingProtectionLevelStatListResponseMetaPagination; -}; - export interface FishingProtectionLevelStatListResponseDataItem { id?: number; attributes?: FishingProtectionLevelStat; } -export interface FishingProtectionLevelStatListResponse { - data?: FishingProtectionLevelStatListResponseDataItem[]; - meta?: FishingProtectionLevelStatListResponseMeta; -} - export type FishingProtectionLevelResponseMeta = { [key: string]: any }; +export interface FishingProtectionLevelResponseDataObject { + id?: number; + attributes?: FishingProtectionLevel; +} + export interface FishingProtectionLevelResponse { data?: FishingProtectionLevelResponseDataObject; meta?: FishingProtectionLevelResponseMeta; @@ -8963,23 +8165,6 @@ export type FishingProtectionLevelLocalizations = { data?: FishingProtectionLevel[]; }; -export interface FishingProtectionLevel { - slug: string; - name: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelCreatedBy; - updatedBy?: FishingProtectionLevelUpdatedBy; - localizations?: FishingProtectionLevelLocalizations; - locale?: string; -} - -export interface FishingProtectionLevelResponseDataObject { - id?: number; - attributes?: FishingProtectionLevel; -} - export type FishingProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; export type FishingProtectionLevelUpdatedByData = { @@ -8991,23 +8176,6 @@ export type FishingProtectionLevelUpdatedBy = { data?: FishingProtectionLevelUpdatedByData; }; -export type FishingProtectionLevelCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: FishingProtectionLevelCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelCreatedByDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelCreatedByDataAttributesUpdatedBy; -}; - export type FishingProtectionLevelCreatedByData = { id?: number; attributes?: FishingProtectionLevelCreatedByDataAttributes; @@ -9017,6 +8185,18 @@ export type FishingProtectionLevelCreatedBy = { data?: FishingProtectionLevelCreatedByData; }; +export interface FishingProtectionLevel { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelCreatedBy; + updatedBy?: FishingProtectionLevelUpdatedBy; + localizations?: FishingProtectionLevelLocalizations; + locale?: string; +} + export type FishingProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -9043,6 +8223,18 @@ export type FishingProtectionLevelCreatedByDataAttributesCreatedBy = { data?: FishingProtectionLevelCreatedByDataAttributesCreatedByData; }; +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type FishingProtectionLevelCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; @@ -9052,28 +8244,33 @@ export type FishingProtectionLevelCreatedByDataAttributesRoles = { data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItem[]; }; -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { - id?: number; - attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; -}; - -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; -}; - -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; +export type FishingProtectionLevelCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: FishingProtectionLevelCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; createdAt?: string; updatedAt?: string; - createdBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + createdBy?: FishingProtectionLevelCreatedByDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelCreatedByDataAttributesUpdatedBy; +}; + +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; +}; + +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = @@ -9088,16 +8285,6 @@ export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; - -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; -}; - export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -9126,6 +8313,16 @@ export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = + { + id?: number; + attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + }; + +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions = { + data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +}; + export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -9240,11 +8437,6 @@ export interface FishingProtectionLevelLocalizationRequest { export type EnvironmentResponseMeta = { [key: string]: any }; -export interface EnvironmentResponseDataObject { - id?: number; - attributes?: Environment; -} - export interface EnvironmentResponse { data?: EnvironmentResponseDataObject; meta?: EnvironmentResponseMeta; @@ -9265,15 +8457,6 @@ export type EnvironmentUpdatedBy = { data?: EnvironmentUpdatedByData; }; -export type EnvironmentCreatedByData = { - id?: number; - attributes?: EnvironmentCreatedByDataAttributes; -}; - -export type EnvironmentCreatedBy = { - data?: EnvironmentCreatedByData; -}; - export interface Environment { name: string; slug: string; @@ -9285,16 +8468,10 @@ export interface Environment { locale?: string; } -export type EnvironmentCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type EnvironmentCreatedByDataAttributesUpdatedByData = { +export interface EnvironmentResponseDataObject { id?: number; - attributes?: EnvironmentCreatedByDataAttributesUpdatedByDataAttributes; -}; - -export type EnvironmentCreatedByDataAttributesUpdatedBy = { - data?: EnvironmentCreatedByDataAttributesUpdatedByData; -}; + attributes?: Environment; +} export type EnvironmentCreatedByDataAttributes = { firstname?: string; @@ -9313,6 +8490,26 @@ export type EnvironmentCreatedByDataAttributes = { updatedBy?: EnvironmentCreatedByDataAttributesUpdatedBy; }; +export type EnvironmentCreatedByData = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributes; +}; + +export type EnvironmentCreatedBy = { + data?: EnvironmentCreatedByData; +}; + +export type EnvironmentCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type EnvironmentCreatedByDataAttributesUpdatedByData = { + id?: number; + attributes?: EnvironmentCreatedByDataAttributesUpdatedByDataAttributes; +}; + +export type EnvironmentCreatedByDataAttributesUpdatedBy = { + data?: EnvironmentCreatedByDataAttributesUpdatedByData; +}; + export type EnvironmentCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type EnvironmentCreatedByDataAttributesCreatedByData = { @@ -9324,6 +8521,18 @@ export type EnvironmentCreatedByDataAttributesCreatedBy = { data?: EnvironmentCreatedByDataAttributesCreatedByData; }; +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type EnvironmentCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributes; @@ -9346,18 +8555,6 @@ export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type EnvironmentCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -9371,20 +8568,6 @@ export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedBy = data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -9436,6 +8619,20 @@ export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissions data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -9521,11 +8718,6 @@ export interface EnvironmentLocalizationRequest { export type DatasetGroupResponseMeta = { [key: string]: any }; -export interface DatasetGroupResponseDataObject { - id?: number; - attributes?: DatasetGroup; -} - export interface DatasetGroupResponse { data?: DatasetGroupResponseDataObject; meta?: DatasetGroupResponseMeta; @@ -9535,6 +8727,23 @@ export type DatasetGroupLocalizations = { data?: DatasetGroup[]; }; +export interface DatasetGroup { + name: string; + slug: string; + datasets?: DatasetGroupDatasets; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetGroupCreatedBy; + updatedBy?: DatasetGroupUpdatedBy; + localizations?: DatasetGroupLocalizations; + locale?: string; +} + +export interface DatasetGroupResponseDataObject { + id?: number; + attributes?: DatasetGroup; +} + export type DatasetGroupUpdatedByDataAttributes = { [key: string]: any }; export type DatasetGroupUpdatedByData = { @@ -9557,29 +8766,31 @@ export type DatasetGroupCreatedBy = { data?: DatasetGroupCreatedByData; }; -export type DatasetGroupDatasetsDataItem = { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributes; -}; - export type DatasetGroupDatasets = { data?: DatasetGroupDatasetsDataItem[]; }; -export interface DatasetGroup { - name: string; - slug: string; - datasets?: DatasetGroupDatasets; +export type DatasetGroupDatasetsDataItemAttributesLocalizations = { + data?: unknown[]; +}; + +export type DatasetGroupDatasetsDataItemAttributes = { + name?: string; + layers?: DatasetGroupDatasetsDataItemAttributesLayers; + slug?: string; + group?: DatasetGroupDatasetsDataItemAttributesGroup; createdAt?: string; updatedAt?: string; - createdBy?: DatasetGroupCreatedBy; - updatedBy?: DatasetGroupUpdatedBy; - localizations?: DatasetGroupLocalizations; + publishedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesUpdatedBy; + localizations?: DatasetGroupDatasetsDataItemAttributesLocalizations; locale?: string; -} +}; -export type DatasetGroupDatasetsDataItemAttributesLocalizations = { - data?: unknown[]; +export type DatasetGroupDatasetsDataItem = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributes; }; export type DatasetGroupDatasetsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -9604,31 +8815,29 @@ export type DatasetGroupDatasetsDataItemAttributesCreatedBy = { data?: DatasetGroupDatasetsDataItemAttributesCreatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesGroupData = { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributes; -}; - -export type DatasetGroupDatasetsDataItemAttributesGroup = { - data?: DatasetGroupDatasetsDataItemAttributesGroupData; +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesLocalizations = { + data?: unknown[]; }; -export type DatasetGroupDatasetsDataItemAttributes = { +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributes = { name?: string; - layers?: DatasetGroupDatasetsDataItemAttributesLayers; slug?: string; - group?: DatasetGroupDatasetsDataItemAttributesGroup; + datasets?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets; createdAt?: string; updatedAt?: string; - publishedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesUpdatedBy; - localizations?: DatasetGroupDatasetsDataItemAttributesLocalizations; + createdBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedBy; + localizations?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesLocalizations; locale?: string; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesLocalizations = { - data?: unknown[]; +export type DatasetGroupDatasetsDataItemAttributesGroupData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroup = { + data?: DatasetGroupDatasetsDataItemAttributesGroupData; }; export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByDataAttributes = { @@ -9644,18 +8853,6 @@ export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedBy = data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributes = { - name?: string; - slug?: string; - datasets?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedBy; - localizations?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesLocalizations; - locale?: string; -}; - export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -9669,21 +8866,51 @@ export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedBy = data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItemAttributes = { - [key: string]: any; +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItemAttributes = { + [key: string]: any; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItem = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItemAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets = { + data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItem[]; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItem = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayers = { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItem[]; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLocalizations = { + data?: unknown[]; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedBy = { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItem = { +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItemAttributes; -}; - -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets = { - data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItem[]; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLocalizations = { - data?: unknown[]; +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedBy = { + data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByData; }; export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributes = { @@ -9705,31 +8932,6 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributes = { locale?: string; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItem = { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributes; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayers = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItem[]; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByData = { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByDataAttributes; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByData; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByData; -}; - export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -9787,11 +8989,6 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreate updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByData = { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributes; -}; - export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -9820,6 +9017,19 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreate data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -9845,19 +9055,6 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreate data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10050,24 +9247,6 @@ export interface DatasetGroupLocalizationRequest { export type DatasetResponseMeta = { [key: string]: any }; -export type DatasetLocalizations = { - data?: Dataset[]; -}; - -export interface Dataset { - name: string; - layers?: DatasetLayers; - slug: string; - group?: DatasetGroupProperty; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DatasetCreatedBy; - updatedBy?: DatasetUpdatedBy; - localizations?: DatasetLocalizations; - locale?: string; -} - export interface DatasetResponseDataObject { id?: number; attributes?: Dataset; @@ -10078,6 +9257,10 @@ export interface DatasetResponse { meta?: DatasetResponseMeta; } +export type DatasetLocalizations = { + data?: Dataset[]; +}; + export type DatasetUpdatedByDataAttributes = { [key: string]: any }; export type DatasetUpdatedByData = { @@ -10111,6 +9294,24 @@ export type DatasetGroupProperty = { data?: DatasetGroupPropertyData; }; +export type DatasetLayers = { + data?: DatasetLayersDataItem[]; +}; + +export interface Dataset { + name: string; + layers?: DatasetLayers; + slug: string; + group?: DatasetGroupProperty; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DatasetCreatedBy; + updatedBy?: DatasetUpdatedBy; + localizations?: DatasetLocalizations; + locale?: string; +} + export type DatasetLayersDataItemAttributesLocalizations = { data?: unknown[]; }; @@ -10139,10 +9340,6 @@ export type DatasetLayersDataItem = { attributes?: DatasetLayersDataItemAttributes; }; -export type DatasetLayers = { - data?: DatasetLayersDataItem[]; -}; - export type DatasetLayersDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; export type DatasetLayersDataItemAttributesUpdatedByData = { @@ -10190,6 +9387,10 @@ export type DatasetLayersDataItemAttributesLegendConfig = { items?: DatasetLayersDataItemAttributesLegendConfigItemsItem[]; }; +export type DatasetLayersDataItemAttributesDataset = { + data?: DatasetLayersDataItemAttributesDatasetData; +}; + export type DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations = { data?: unknown[]; }; @@ -10213,10 +9414,6 @@ export type DatasetLayersDataItemAttributesDatasetData = { attributes?: DatasetLayersDataItemAttributesDatasetDataAttributes; }; -export type DatasetLayersDataItemAttributesDataset = { - data?: DatasetLayersDataItemAttributesDatasetData; -}; - export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -10251,27 +9448,6 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu data?: unknown[]; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData; -}; - export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributes = { name?: string; slug?: string; @@ -10289,24 +9465,17 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupData = { attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData; - }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData = { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes; +}; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByData; - }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData; +}; export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes = { @@ -10326,6 +9495,29 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy; }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData = { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes; +}; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData; +}; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData = + { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; + }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData; + }; + export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10335,6 +9527,24 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedBy = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByData; + }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -10360,19 +9570,6 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10387,6 +9584,20 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -10440,20 +9651,6 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -10568,10 +9765,6 @@ export interface DatasetLocalizationResponse { meta?: DatasetLocalizationResponseMeta; } -export interface DatasetRequest { - data: DatasetRequestData; -} - export type DatasetRequestDataGroup = number | string; export type DatasetRequestDataLayersItem = number | string; @@ -10584,6 +9777,10 @@ export type DatasetRequestData = { locale?: string; }; +export interface DatasetRequest { + data: DatasetRequestData; +} + export type DatasetLocalizationRequestGroup = number | string; export type DatasetLocalizationRequestLayersItem = number | string; @@ -10598,11 +9795,6 @@ export interface DatasetLocalizationRequest { export type DataToolResourceTypeResponseMeta = { [key: string]: any }; -export interface DataToolResourceTypeResponseDataObject { - id?: number; - attributes?: DataToolResourceType; -} - export interface DataToolResourceTypeResponse { data?: DataToolResourceTypeResponseDataObject; meta?: DataToolResourceTypeResponseMeta; @@ -10623,6 +9815,11 @@ export type DataToolResourceTypeUpdatedBy = { data?: DataToolResourceTypeUpdatedByData; }; +export type DataToolResourceTypeCreatedByData = { + id?: number; + attributes?: DataToolResourceTypeCreatedByDataAttributes; +}; + export type DataToolResourceTypeCreatedBy = { data?: DataToolResourceTypeCreatedByData; }; @@ -10638,6 +9835,11 @@ export interface DataToolResourceType { locale?: string; } +export interface DataToolResourceTypeResponseDataObject { + id?: number; + attributes?: DataToolResourceType; +} + export type DataToolResourceTypeCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -10664,6 +9866,27 @@ export type DataToolResourceTypeCreatedByDataAttributesCreatedBy = { data?: DataToolResourceTypeCreatedByDataAttributesCreatedByData; }; +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type DataToolResourceTypeCreatedByDataAttributesRoles = { + data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItem[]; +}; + export type DataToolResourceTypeCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -10681,10 +9904,8 @@ export type DataToolResourceTypeCreatedByDataAttributes = { updatedBy?: DataToolResourceTypeCreatedByDataAttributesUpdatedBy; }; -export type DataToolResourceTypeCreatedByData = { - id?: number; - attributes?: DataToolResourceTypeCreatedByDataAttributes; -}; +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; @@ -10695,30 +9916,6 @@ export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUp data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type DataToolResourceTypeCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributes; -}; - -export type DataToolResourceTypeCreatedByDataAttributesRoles = { - data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItem[]; -}; - -export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10731,20 +9928,6 @@ export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCr data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -10797,6 +9980,20 @@ export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPe data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -10879,11 +10076,24 @@ export interface DataToolResourceTypeLocalizationRequest { export type DataToolLanguageResponseMeta = { [key: string]: any }; +export interface DataToolLanguageResponseDataObject { + id?: number; + attributes?: DataToolLanguage; +} + export interface DataToolLanguageResponse { data?: DataToolLanguageResponseDataObject; meta?: DataToolLanguageResponseMeta; } +export type DataToolLanguageLocalizations = { + data?: DataToolLanguage[]; +}; + +export type DataToolLanguageUpdatedBy = { + data?: DataToolLanguageUpdatedByData; +}; + export interface DataToolLanguage { name?: string; slug?: string; @@ -10897,15 +10107,6 @@ export interface DataToolLanguage { locale?: string; } -export interface DataToolLanguageResponseDataObject { - id?: number; - attributes?: DataToolLanguage; -} - -export type DataToolLanguageLocalizations = { - data?: DataToolLanguage[]; -}; - export type DataToolLanguageUpdatedByDataAttributes = { [key: string]: any }; export type DataToolLanguageUpdatedByData = { @@ -10913,10 +10114,6 @@ export type DataToolLanguageUpdatedByData = { attributes?: DataToolLanguageUpdatedByDataAttributes; }; -export type DataToolLanguageUpdatedBy = { - data?: DataToolLanguageUpdatedByData; -}; - export type DataToolLanguageCreatedByDataAttributes = { [key: string]: any }; export type DataToolLanguageCreatedByData = { @@ -11031,6 +10228,11 @@ export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttr data?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData; }; +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem = { + id?: number; + attributes?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes; +}; + export type DataToolLanguageDataToolDataAttributesDataToolResourceTypes = { data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem[]; }; @@ -11054,25 +10256,6 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemA data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByData; }; -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes = { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; - locale?: string; -}; - -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem = { - id?: number; - attributes?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes; -}; - -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByData = { id?: number; @@ -11084,23 +10267,20 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemA data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByData; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesLocalizations = { - data?: unknown[]; -}; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes = { +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes = { name?: string; - slug?: string; - data_tool?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesDataTool; createdAt?: string; updatedAt?: string; publishedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesLocalizations; + createdBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; locale?: string; }; +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItem = { id?: number; attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes; @@ -11110,6 +10290,10 @@ export type DataToolLanguageDataToolDataAttributesLanguages = { data?: DataToolLanguageDataToolDataAttributesLanguagesDataItem[]; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesLocalizations = { + data?: unknown[]; +}; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11122,24 +10306,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpd data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByData; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByData = { id?: number; attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes; @@ -11149,6 +10315,19 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByData; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes = { + name?: string; + slug?: string; + data_tool?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesDataTool; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesLocalizations; + locale?: string; +}; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11188,6 +10367,24 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy; + }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11202,19 +10399,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11240,18 +10424,45 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = @@ -11268,20 +10479,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; - }; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -11400,35 +10597,10 @@ export interface DataToolLanguageLocalizationRequest { export type DataToolEcosystemResponseMeta = { [key: string]: any }; -export interface DataToolEcosystemResponse { - data?: DataToolEcosystemResponseDataObject; - meta?: DataToolEcosystemResponseMeta; -} - export type DataToolEcosystemLocalizations = { data?: DataToolEcosystem[]; }; -export type DataToolEcosystemUpdatedByDataAttributes = { [key: string]: any }; - -export type DataToolEcosystemUpdatedByData = { - id?: number; - attributes?: DataToolEcosystemUpdatedByDataAttributes; -}; - -export type DataToolEcosystemUpdatedBy = { - data?: DataToolEcosystemUpdatedByData; -}; - -export type DataToolEcosystemCreatedByData = { - id?: number; - attributes?: DataToolEcosystemCreatedByDataAttributes; -}; - -export type DataToolEcosystemCreatedBy = { - data?: DataToolEcosystemCreatedByData; -}; - export interface DataToolEcosystem { name?: string; createdAt?: string; @@ -11445,6 +10617,26 @@ export interface DataToolEcosystemResponseDataObject { attributes?: DataToolEcosystem; } +export interface DataToolEcosystemResponse { + data?: DataToolEcosystemResponseDataObject; + meta?: DataToolEcosystemResponseMeta; +} + +export type DataToolEcosystemUpdatedByDataAttributes = { [key: string]: any }; + +export type DataToolEcosystemUpdatedByData = { + id?: number; + attributes?: DataToolEcosystemUpdatedByDataAttributes; +}; + +export type DataToolEcosystemUpdatedBy = { + data?: DataToolEcosystemUpdatedByData; +}; + +export type DataToolEcosystemCreatedBy = { + data?: DataToolEcosystemCreatedByData; +}; + export type DataToolEcosystemCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -11458,10 +10650,28 @@ export type DataToolEcosystemCreatedByDataAttributesUpdatedBy = { data?: DataToolEcosystemCreatedByDataAttributesUpdatedByData; }; +export type DataToolEcosystemCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type DataToolEcosystemCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: DataToolEcosystemCreatedByDataAttributesCreatedByDataAttributes; +}; + export type DataToolEcosystemCreatedByDataAttributesCreatedBy = { data?: DataToolEcosystemCreatedByDataAttributesCreatedByData; }; +export type DataToolEcosystemCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type DataToolEcosystemCreatedByDataAttributesRoles = { + data?: DataToolEcosystemCreatedByDataAttributesRolesDataItem[]; +}; + export type DataToolEcosystemCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -11479,22 +10689,9 @@ export type DataToolEcosystemCreatedByDataAttributes = { updatedBy?: DataToolEcosystemCreatedByDataAttributesUpdatedBy; }; -export type DataToolEcosystemCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type DataToolEcosystemCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: DataToolEcosystemCreatedByDataAttributesCreatedByDataAttributes; -}; - -export type DataToolEcosystemCreatedByDataAttributesRolesDataItem = { +export type DataToolEcosystemCreatedByData = { id?: number; - attributes?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes; -}; - -export type DataToolEcosystemCreatedByDataAttributesRoles = { - data?: DataToolEcosystemCreatedByDataAttributesRolesDataItem[]; + attributes?: DataToolEcosystemCreatedByDataAttributes; }; export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = @@ -11509,18 +10706,6 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdat data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11533,6 +10718,20 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreat data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -11542,6 +10741,18 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermi data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11584,20 +10795,6 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermi data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -11610,6 +10807,11 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsers data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; +export interface DataToolEcosystemListResponse { + data?: DataToolEcosystemListResponseDataItem[]; + meta?: DataToolEcosystemListResponseMeta; +} + export type DataToolEcosystemListResponseMetaPagination = { page?: number; pageSize?: number; @@ -11626,11 +10828,6 @@ export interface DataToolEcosystemListResponseDataItem { attributes?: DataToolEcosystem; } -export interface DataToolEcosystemListResponse { - data?: DataToolEcosystemListResponseDataItem[]; - meta?: DataToolEcosystemListResponseMeta; -} - export type DataToolEcosystemLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -11680,11 +10877,6 @@ export interface DataToolEcosystemLocalizationRequest { export type DataToolResponseMeta = { [key: string]: any }; -export interface DataToolResponseDataObject { - id?: number; - attributes?: DataTool; -} - export interface DataToolResponse { data?: DataToolResponseDataObject; meta?: DataToolResponseMeta; @@ -11694,17 +10886,6 @@ export type DataToolLocalizations = { data?: DataTool[]; }; -export type DataToolUpdatedByDataAttributes = { [key: string]: any }; - -export type DataToolUpdatedByData = { - id?: number; - attributes?: DataToolUpdatedByDataAttributes; -}; - -export type DataToolUpdatedBy = { - data?: DataToolUpdatedByData; -}; - export interface DataTool { name: string; description?: string; @@ -11722,6 +10903,22 @@ export interface DataTool { locale?: string; } +export interface DataToolResponseDataObject { + id?: number; + attributes?: DataTool; +} + +export type DataToolUpdatedByDataAttributes = { [key: string]: any }; + +export type DataToolUpdatedByData = { + id?: number; + attributes?: DataToolUpdatedByDataAttributes; +}; + +export type DataToolUpdatedBy = { + data?: DataToolUpdatedByData; +}; + export type DataToolCreatedByDataAttributes = { [key: string]: any }; export type DataToolCreatedByData = { @@ -11755,6 +10952,23 @@ export type DataToolDataToolResourceTypes = { data?: DataToolDataToolResourceTypesDataItem[]; }; +export type DataToolLanguagesDataItemAttributesLocalizations = { + data?: unknown[]; +}; + +export type DataToolLanguagesDataItemAttributes = { + name?: string; + slug?: string; + data_tool?: DataToolLanguagesDataItemAttributesDataTool; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguagesDataItemAttributesLocalizations; + locale?: string; +}; + export type DataToolLanguagesDataItem = { id?: number; attributes?: DataToolLanguagesDataItemAttributes; @@ -11764,10 +10978,6 @@ export type DataToolLanguages = { data?: DataToolLanguagesDataItem[]; }; -export type DataToolLanguagesDataItemAttributesLocalizations = { - data?: unknown[]; -}; - export type DataToolLanguagesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; export type DataToolLanguagesDataItemAttributesUpdatedByData = { @@ -11790,47 +11000,17 @@ export type DataToolLanguagesDataItemAttributesCreatedBy = { data?: DataToolLanguagesDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataTool = { - data?: DataToolLanguagesDataItemAttributesDataToolData; -}; - -export type DataToolLanguagesDataItemAttributes = { - name?: string; - slug?: string; - data_tool?: DataToolLanguagesDataItemAttributesDataTool; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesLocalizations; - locale?: string; -}; - -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizations = { - data?: unknown[]; +export type DataToolLanguagesDataItemAttributesDataToolData = { + id?: number; + attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributes; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributes = { - name?: string; - description?: string; - site?: string; - languages?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguages; - data_tool_resource_types?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes; - geography?: string; - data_tool_ecosystems?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystems; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizations; - locale?: string; +export type DataToolLanguagesDataItemAttributesDataTool = { + data?: DataToolLanguagesDataItemAttributesDataToolData; }; -export type DataToolLanguagesDataItemAttributesDataToolData = { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributes; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizations = { + data?: unknown[]; }; export type DataToolLanguagesDataItemAttributesDataToolDataAttributesUpdatedByDataAttributes = { @@ -11863,6 +11043,23 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEco data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItem[]; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributes = { + name?: string; + description?: string; + site?: string; + languages?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguages; + data_tool_resource_types?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes; + geography?: string; + data_tool_ecosystems?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystems; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesUpdatedBy; + localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizations; + locale?: string; +}; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations = { data?: unknown[]; @@ -11913,12 +11110,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEco data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem = - { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes = { data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem[]; }; @@ -11928,6 +11119,24 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: unknown[]; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes = + { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; + locale?: string; + }; + +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem = + { + id?: number; + attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11953,18 +11162,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes = - { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; - locale?: string; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11979,6 +11176,24 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedByData; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedBy; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -12004,24 +11219,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedBy; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -12036,6 +11233,9 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; @@ -12047,22 +11247,20 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; createdAt?: string; updatedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -12074,6 +11272,19 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -12116,20 +11327,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -12144,10 +11341,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItemAttributes = { - [key: string]: any; -}; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItem = { id?: number; attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItemAttributes; @@ -12157,6 +11350,10 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguages = data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItem[]; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItemAttributes = { + [key: string]: any; +}; + export type DataToolListResponseMetaPagination = { page?: number; pageSize?: number; @@ -12211,6 +11408,10 @@ export interface DataToolLocalizationResponse { meta?: DataToolLocalizationResponseMeta; } +export interface DataToolRequest { + data: DataToolRequestData; +} + export type DataToolRequestDataDataToolEcosystemsItem = number | string; export type DataToolRequestDataDataToolResourceTypesItem = number | string; @@ -12228,10 +11429,6 @@ export type DataToolRequestData = { locale?: string; }; -export interface DataToolRequest { - data: DataToolRequestData; -} - export type DataToolLocalizationRequestDataToolEcosystemsItem = number | string; export type DataToolLocalizationRequestDataToolResourceTypesItem = number | string; @@ -12251,26 +11448,10 @@ export interface DataToolLocalizationRequest { export type DataSourceResponseMeta = { [key: string]: any }; -export interface DataSourceResponse { - data?: DataSourceResponseDataObject; - meta?: DataSourceResponseMeta; -} - export type DataSourceLocalizations = { data?: DataSource[]; }; -export type DataSourceUpdatedByDataAttributes = { [key: string]: any }; - -export type DataSourceUpdatedByData = { - id?: number; - attributes?: DataSourceUpdatedByDataAttributes; -}; - -export type DataSourceUpdatedBy = { - data?: DataSourceUpdatedByData; -}; - export interface DataSource { slug: string; title: string; @@ -12288,6 +11469,31 @@ export interface DataSourceResponseDataObject { attributes?: DataSource; } +export interface DataSourceResponse { + data?: DataSourceResponseDataObject; + meta?: DataSourceResponseMeta; +} + +export type DataSourceUpdatedByDataAttributes = { [key: string]: any }; + +export type DataSourceUpdatedByData = { + id?: number; + attributes?: DataSourceUpdatedByDataAttributes; +}; + +export type DataSourceUpdatedBy = { + data?: DataSourceUpdatedByData; +}; + +export type DataSourceCreatedByDataAttributesUpdatedByData = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesUpdatedByDataAttributes; +}; + +export type DataSourceCreatedByDataAttributesUpdatedBy = { + data?: DataSourceCreatedByDataAttributesUpdatedByData; +}; + export type DataSourceCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -12316,15 +11522,6 @@ export type DataSourceCreatedBy = { export type DataSourceCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DataSourceCreatedByDataAttributesUpdatedByData = { - id?: number; - attributes?: DataSourceCreatedByDataAttributesUpdatedByDataAttributes; -}; - -export type DataSourceCreatedByDataAttributesUpdatedBy = { - data?: DataSourceCreatedByDataAttributesUpdatedByData; -}; - export type DataSourceCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type DataSourceCreatedByDataAttributesCreatedByData = { @@ -12383,20 +11580,6 @@ export type DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedBy = data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -12420,6 +11603,20 @@ export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsD data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -12482,6 +11679,15 @@ export interface DataSourceListResponse { meta?: DataSourceListResponseMeta; } +export type DataSourceLocalizationListResponseMeta = { + pagination?: DataSourceLocalizationListResponseMetaPagination; +}; + +export interface DataSourceLocalizationListResponse { + data?: DataSourceListResponseDataItemLocalized[]; + meta?: DataSourceLocalizationListResponseMeta; +} + export type DataSourceLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -12489,20 +11695,11 @@ export type DataSourceLocalizationListResponseMetaPagination = { total?: number; }; -export type DataSourceLocalizationListResponseMeta = { - pagination?: DataSourceLocalizationListResponseMetaPagination; -}; - export interface DataSourceListResponseDataItemLocalized { id?: number; attributes?: DataSource; } -export interface DataSourceLocalizationListResponse { - data?: DataSourceListResponseDataItemLocalized[]; - meta?: DataSourceLocalizationListResponseMeta; -} - export type DataSourceLocalizationResponseMeta = { [key: string]: any }; export interface DataSourceResponseDataObjectLocalized { @@ -12535,6 +11732,22 @@ export interface DataSourceLocalizationRequest { export type DataInfoResponseMeta = { [key: string]: any }; +export type DataInfoLocalizations = { + data?: DataInfo[]; +}; + +export interface DataInfo { + slug: string; + content?: string; + data_sources?: DataInfoDataSources; + createdAt?: string; + updatedAt?: string; + createdBy?: DataInfoCreatedBy; + updatedBy?: DataInfoUpdatedBy; + localizations?: DataInfoLocalizations; + locale?: string; +} + export interface DataInfoResponseDataObject { id?: number; attributes?: DataInfo; @@ -12545,10 +11758,6 @@ export interface DataInfoResponse { meta?: DataInfoResponseMeta; } -export type DataInfoLocalizations = { - data?: DataInfo[]; -}; - export type DataInfoUpdatedByDataAttributes = { [key: string]: any }; export type DataInfoUpdatedByData = { @@ -12575,6 +11784,26 @@ export type DataInfoDataSourcesDataItemAttributesLocalizations = { data?: unknown[]; }; +export type DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type DataInfoDataSourcesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes; +}; + +export type DataInfoDataSourcesDataItemAttributesUpdatedBy = { + data?: DataInfoDataSourcesDataItemAttributesUpdatedByData; +}; + +export type DataInfoDataSourcesDataItemAttributesCreatedByData = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes; +}; + +export type DataInfoDataSourcesDataItemAttributesCreatedBy = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByData; +}; + export type DataInfoDataSourcesDataItemAttributes = { slug?: string; title?: string; @@ -12596,38 +11825,6 @@ export type DataInfoDataSources = { data?: DataInfoDataSourcesDataItem[]; }; -export interface DataInfo { - slug: string; - content?: string; - data_sources?: DataInfoDataSources; - createdAt?: string; - updatedAt?: string; - createdBy?: DataInfoCreatedBy; - updatedBy?: DataInfoUpdatedBy; - localizations?: DataInfoLocalizations; - locale?: string; -} - -export type DataInfoDataSourcesDataItemAttributesUpdatedByData = { - id?: number; - attributes?: DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes; -}; - -export type DataInfoDataSourcesDataItemAttributesUpdatedBy = { - data?: DataInfoDataSourcesDataItemAttributesUpdatedByData; -}; - -export type DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type DataInfoDataSourcesDataItemAttributesCreatedByData = { - id?: number; - attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes; -}; - -export type DataInfoDataSourcesDataItemAttributesCreatedBy = { - data?: DataInfoDataSourcesDataItemAttributesCreatedByData; -}; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -12641,10 +11838,6 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedB data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByData; }; -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData = { id?: number; attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; @@ -12654,27 +11847,6 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedB data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData; }; -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; -}; - -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRoles = { - data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; -}; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -12692,6 +11864,19 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes = { updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedBy; }; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRoles = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; +}; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -12720,20 +11905,6 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -12745,6 +11916,18 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -12787,6 +11970,20 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -12888,26 +12085,6 @@ export type ContactDetailLocalizations = { data?: ContactDetail[]; }; -export interface ContactDetail { - name?: string; - address?: string; - phone?: string; - email?: string; - registration?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: ContactDetailCreatedBy; - updatedBy?: ContactDetailUpdatedBy; - localizations?: ContactDetailLocalizations; - locale?: string; -} - -export interface ContactDetailResponseDataObject { - id?: number; - attributes?: ContactDetail; -} - export type ContactDetailUpdatedByDataAttributes = { [key: string]: any }; export type ContactDetailUpdatedByData = { @@ -12919,23 +12096,6 @@ export type ContactDetailUpdatedBy = { data?: ContactDetailUpdatedByData; }; -export type ContactDetailCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: ContactDetailCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ContactDetailCreatedByDataAttributesCreatedBy; - updatedBy?: ContactDetailCreatedByDataAttributesUpdatedBy; -}; - export type ContactDetailCreatedByData = { id?: number; attributes?: ContactDetailCreatedByDataAttributes; @@ -12945,6 +12105,26 @@ export type ContactDetailCreatedBy = { data?: ContactDetailCreatedByData; }; +export interface ContactDetail { + name?: string; + address?: string; + phone?: string; + email?: string; + registration?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: ContactDetailCreatedBy; + updatedBy?: ContactDetailUpdatedBy; + localizations?: ContactDetailLocalizations; + locale?: string; +} + +export interface ContactDetailResponseDataObject { + id?: number; + attributes?: ContactDetail; +} + export type ContactDetailCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type ContactDetailCreatedByDataAttributesUpdatedByData = { @@ -12967,6 +12147,18 @@ export type ContactDetailCreatedByDataAttributesCreatedBy = { data?: ContactDetailCreatedByDataAttributesCreatedByData; }; +export type ContactDetailCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type ContactDetailCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributes; @@ -12976,6 +12168,23 @@ export type ContactDetailCreatedByDataAttributesRoles = { data?: ContactDetailCreatedByDataAttributesRolesDataItem[]; }; +export type ContactDetailCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: ContactDetailCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ContactDetailCreatedByDataAttributesCreatedBy; + updatedBy?: ContactDetailCreatedByDataAttributesUpdatedBy; +}; + export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -12989,22 +12198,6 @@ export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy data?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByData; -}; - -export type ContactDetailCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -13014,6 +12207,10 @@ export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; +export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { + data?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByData; +}; + export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 1bdaeac5..862dd9e5 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -259,16 +259,24 @@ "show": "Show", "remove": "Remove", "close": "Close", + "environmental-conservation-national-regional-levels": "Environmental Conservation at National and Regional Levels", + "environmental-conservation-location": "Environmental Conservation for '{location'}", + "environmental-conservation": "Environmental Conservation", + "terrestrial-conservation-national-regional-levels": "Terrestrial Conservation at National and Regional Levels", + "terrestrial-conservation-location": "Terrestrial Conservation for '{location'}", + "terrestrial-conservation": "Terrestrial Conservation", "marine-conservation-national-regional-levels": "Marine Conservation at National and Regional Levels", + "environmental-conservation-high-seas": "Environmental Conservation for High Seas", + "terrestrial-conservation-high-seas": "Terrestrial Conservation for High Seas", "marine-conservation-location": "Marine Conservation for '{location'}", "marine-conservation": "Marine Conservation", - "marin-conservation-high-seas": "Marine Conservation for High Seas", + "marine-conservation-high-seas": "Marine Conservation for High Seas", "name": "Name", "coverage": "Coverage", "area": "Area", "data-source": "Data Source", "iucn-category": "IUCN Category", - "mpas": "MPAs", + "pas": "PAs", "n-a": "N/A", "not-assessed": "Not assessed", "oecms": "OECMs", @@ -280,7 +288,11 @@ "type": "Type", "establishment-stage": "Establishment Stage", "protection-level": "Protection Level", - "coming-soon": "Coming soon!" + "ecosystem": "Ecosystem", + "results-out-of": "{startIndex}-{endIndex} out of {total}", + "previous-page": "Previous page", + "next-page": "Next page", + "page-number": "Page {number}" } }, "components": { diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 45ee2bb0..272a6262 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -2919,22 +2919,22 @@ __metadata: languageName: node linkType: hard -"@tanstack/react-table@npm:^8.9.7": - version: 8.10.7 - resolution: "@tanstack/react-table@npm:8.10.7" +"@tanstack/react-table@npm:^8.20.5": + version: 8.20.5 + resolution: "@tanstack/react-table@npm:8.20.5" dependencies: - "@tanstack/table-core": 8.10.7 + "@tanstack/table-core": 8.20.5 peerDependencies: - react: ">=16" - react-dom: ">=16" - checksum: f8f19ae3ad8531e0f3cb838b61213d9acd0b64b27d1a8a05a699e6ed50e25c9d3c9478ae3f6d20883288f601eec06e8264fac9503b36122471c2f8778782e1e2 + react: ">=16.8" + react-dom: ">=16.8" + checksum: 4c08ff56011f640da2dc2680aa141f642f394ed6dd849f681c50d429c27f8f387222fb05436ce4f9fb66715e52587633e859e5cf13f9ee7e4dd80656b1f9ca00 languageName: node linkType: hard -"@tanstack/table-core@npm:8.10.7": - version: 8.10.7 - resolution: "@tanstack/table-core@npm:8.10.7" - checksum: 2a364917e7ab051ef3f33d6f18e5e1ddb75cfed4b5ee0e2b9c74a8cb72d3b86cdd4ffbab67565c68b4333f761b6fde9a7215196387a9a3b3d5811119d8859bad +"@tanstack/table-core@npm:8.20.5": + version: 8.20.5 + resolution: "@tanstack/table-core@npm:8.20.5" + checksum: f8b175f11eb9ee1e029bb5e91c1038527714382de4bd14750377f43c25e69b687b21bfb181ee07131637d3432618964a4b7a898608fc8411ca50da1e7e8ed4c5 languageName: node linkType: hard @@ -12091,7 +12091,7 @@ __metadata: "@tailwindcss/line-clamp": 0.4.4 "@tailwindcss/typography": 0.5.9 "@tanstack/react-query": 4.26.1 - "@tanstack/react-table": ^8.9.7 + "@tanstack/react-table": ^8.20.5 "@turf/turf": ^6.5.0 "@types/google.analytics": 0.0.42 "@types/mapbox__mapbox-gl-draw": 1.4.6 From 0437d427f35c1f4a1ff5c0ce4c183a1f082eace9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 3 Oct 2024 16:32:01 +0200 Subject: [PATCH 020/105] Reimplmenet the national table --- .../sync/admin-role.strapi-super-admin.json | 12 +- ...nfiguration_content_types##api##pa.pa.json | 93 +- cms/config/sync/user-role.public.json | 6 + cms/src/api/pa/content-types/pa/schema.json | 10 +- cms/types/generated/contentTypes.d.ts | 4 +- .../containers/map/content/details/helpers.ts | 46 - .../table/expansion-controls/index.tsx | 8 +- .../map/content/details/table/index.tsx | 12 +- .../details/table/sorting-button/index.tsx | 2 +- .../details/table/tooltip-button/index.tsx | 2 +- .../details/tables/global-regional/hooks.tsx | 4 +- .../tables/national-highseas/hooks.tsx | 864 ++++++++++++++++++ .../tables/national-highseas/index.tsx | 196 ++-- .../tables/national-highseas/useColumns.tsx | 261 ------ .../national-highseas/useFiltersOptions.ts | 122 --- .../tables/national-highseas/useTooltips.tsx | 43 - .../src/types/generated/strapi.schemas.ts | 500 +++++----- frontend/translations/en.json | 4 +- 18 files changed, 1266 insertions(+), 923 deletions(-) delete mode 100644 frontend/src/containers/map/content/details/helpers.ts create mode 100644 frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx delete mode 100644 frontend/src/containers/map/content/details/tables/national-highseas/useColumns.tsx delete mode 100644 frontend/src/containers/map/content/details/tables/national-highseas/useFiltersOptions.ts delete mode 100644 frontend/src/containers/map/content/details/tables/national-highseas/useTooltips.tsx diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 77cf8503..545023af 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -1468,11 +1468,11 @@ "location", "wdpaid", "mpaa_protection_level", - "is_child", "iucn_category", "designation", "environment", - "coverage" + "coverage", + "parent" ] }, "conditions": [], @@ -1501,11 +1501,11 @@ "location", "wdpaid", "mpaa_protection_level", - "is_child", "iucn_category", "designation", "environment", - "coverage" + "coverage", + "parent" ] }, "conditions": [], @@ -1527,11 +1527,11 @@ "location", "wdpaid", "mpaa_protection_level", - "is_child", "iucn_category", "designation", "environment", - "coverage" + "coverage", + "parent" ] }, "conditions": [], diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##pa.pa.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##pa.pa.json index 4be3fbe5..608f7d90 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##pa.pa.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##pa.pa.json @@ -180,20 +180,6 @@ "sortable": true } }, - "is_child": { - "edit": { - "label": "is_child", - "description": "", - "placeholder": "", - "visible": true, - "editable": true - }, - "list": { - "label": "is_child", - "searchable": true, - "sortable": true - } - }, "iucn_category": { "edit": { "label": "iucn_category", @@ -252,6 +238,21 @@ "sortable": true } }, + "parent": { + "edit": { + "label": "parent", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "name" + }, + "list": { + "label": "parent", + "searchable": true, + "sortable": true + } + }, "createdAt": { "edit": { "label": "createdAt", @@ -312,12 +313,6 @@ } }, "layouts": { - "list": [ - "id", - "name", - "area", - "year" - ], "edit": [ [ { @@ -325,82 +320,86 @@ "size": 6 }, { - "name": "area", - "size": 4 + "name": "environment", + "size": 6 } ], [ { - "name": "year", - "size": 4 + "name": "location", + "size": 6 }, { - "name": "protection_status", + "name": "designation", "size": 6 } ], [ { - "name": "bbox", - "size": 12 - } - ], - [ + "name": "year", + "size": 4 + }, { - "name": "children", - "size": 6 + "name": "area", + "size": 4 }, { - "name": "data_source", - "size": 6 + "name": "coverage", + "size": 4 } ], [ { - "name": "mpaa_establishment_stage", + "name": "data_source", "size": 6 }, { - "name": "location", + "name": "protection_status", "size": 6 } ], [ { - "name": "wdpaid", - "size": 4 + "name": "iucn_category", + "size": 6 }, { - "name": "mpaa_protection_level", + "name": "mpaa_establishment_stage", "size": 6 } ], [ { - "name": "is_child", - "size": 4 + "name": "mpaa_protection_level", + "size": 6 }, { - "name": "iucn_category", - "size": 6 + "name": "wdpaid", + "size": 4 } ], [ { - "name": "designation", + "name": "parent", "size": 6 }, { - "name": "environment", + "name": "children", "size": 6 } ], [ { - "name": "coverage", - "size": 4 + "name": "bbox", + "size": 12 } ] + ], + "list": [ + "id", + "name", + "area", + "year" ] } }, diff --git a/cms/config/sync/user-role.public.json b/cms/config/sync/user-role.public.json index f278ef97..f218b55c 100644 --- a/cms/config/sync/user-role.public.json +++ b/cms/config/sync/user-role.public.json @@ -114,6 +114,12 @@ { "action": "api::mpaa-protection-level.mpaa-protection-level.findOne" }, + { + "action": "api::pa.pa.find" + }, + { + "action": "api::pa.pa.findOne" + }, { "action": "api::protection-coverage-stat.protection-coverage-stat.find" }, diff --git a/cms/src/api/pa/content-types/pa/schema.json b/cms/src/api/pa/content-types/pa/schema.json index 75eed45d..cc071213 100644 --- a/cms/src/api/pa/content-types/pa/schema.json +++ b/cms/src/api/pa/content-types/pa/schema.json @@ -70,11 +70,6 @@ "relation": "oneToOne", "target": "api::mpaa-protection-level.mpaa-protection-level" }, - "is_child": { - "type": "boolean", - "default": false, - "required": true - }, "iucn_category": { "type": "relation", "relation": "oneToOne", @@ -92,6 +87,11 @@ "type": "decimal", "required": true, "min": 0 + }, + "parent": { + "type": "relation", + "relation": "oneToOne", + "target": "api::pa.pa" } } } diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index 9f188d7a..14cbf62b 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1954,9 +1954,6 @@ export interface ApiPaPa extends Schema.CollectionType { 'oneToOne', 'api::mpaa-protection-level.mpaa-protection-level' >; - is_child: Attribute.Boolean & - Attribute.Required & - Attribute.DefaultTo; iucn_category: Attribute.Relation< 'api::pa.pa', 'oneToOne', @@ -1973,6 +1970,7 @@ export interface ApiPaPa extends Schema.CollectionType { Attribute.SetMinMax<{ min: 0; }>; + parent: Attribute.Relation<'api::pa.pa', 'oneToOne', 'api::pa.pa'>; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation<'api::pa.pa', 'oneToOne', 'admin::user'> & diff --git a/frontend/src/containers/map/content/details/helpers.ts b/frontend/src/containers/map/content/details/helpers.ts deleted file mode 100644 index 1a01c4d6..00000000 --- a/frontend/src/containers/map/content/details/helpers.ts +++ /dev/null @@ -1,46 +0,0 @@ -type Row = { [key: string]: unknown }; -type Rows = (Row & { subRows?: Row[] })[]; -type Filters = Record; - -export const applyFilters = (data: Rows, filters: Filters) => { - const filteredData = []; - - for (const row of data) { - let keep = true; // Whether the row is kept or filtered out - let filteredSubRows = row.subRows; - - for (const key in filters) { - // If the filter doesn't have any value, we look at the next filter - if (!filters[key].length) { - continue; - } - - // We apply the filters to the sub rows using recursion - if (filteredSubRows?.length) { - filteredSubRows = applyFilters(filteredSubRows, filters); - } - - // If the row's value doesn't match any of the filter's value and the number of matching sub - // rows (if any) is 0, the row is filtered out - if ( - !filters[key].includes(row[key] as string) && - (!filteredSubRows || filteredSubRows.length === 0) - ) { - keep = false; - break; - } - } - - if (keep) { - // We create a new row to define a new list of sub rows, if any - const newRow = { ...row }; - if (filteredSubRows) { - newRow.subRows = filteredSubRows; - } - - filteredData.push(newRow); - } - } - - return filteredData; -}; diff --git a/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx b/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx index 90751337..ec77fad8 100644 --- a/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx +++ b/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx @@ -1,11 +1,12 @@ import { PropsWithChildren } from 'react'; import { Row } from '@tanstack/react-table'; +import { useTranslations } from 'next-intl'; import { GoTriangleDown } from 'react-icons/go'; import { LuCornerDownRight } from 'react-icons/lu'; import { GlobalRegionalTableColumns } from '@/containers/map/content/details/tables/global-regional/hooks'; -import { NationalHighseasTableColumns } from '@/containers/map/content/details/tables/national-highseas/useColumns'; +import { NationalHighseasTableColumns } from '@/containers/map/content/details/tables/national-highseas/hooks'; import { cn } from '@/lib/classnames'; export type ExpansionControlsProps = PropsWithChildren<{ @@ -13,6 +14,8 @@ export type ExpansionControlsProps = PropsWithChildren<{ }>; const ExpansionControls: React.FC = ({ row, children }) => { + const t = useTranslations('containers.map'); + const { depth, getIsExpanded, getCanExpand, getToggleExpandedHandler } = row; const isParentRow = depth === 0; @@ -24,9 +27,10 @@ const ExpansionControls: React.FC = ({ row, children })
{isRowExpandable && (
data, - placeholderData: { data: [] }, - }, - } + columns={columns} + data={data} + sorting={sorting} + onSortingChange={setSorting} + pagination={pagination} + onPaginationChange={setPagination} + rowCount={total ?? 0} + /> ); - - const parsedData = useMemo(() => { - const buildMpaRow = (mpa) => { - const protectionStatus = mpa?.protection_status?.data?.attributes; - const establishmentStage = mpa?.mpaa_establishment_stage?.data?.attributes; - const mpaaProtectionLevel = mpa?.mpaa_protection_level?.data?.attributes; - const dataSource = mpa?.data_source?.data?.attributes; - const iucnCategory = mpa?.iucn_category?.data?.attributes; - - const coveragePercentage = (mpa.area / locationsQuery.data?.totalMarineArea) * 100; - - return { - protectedArea: mpa?.name, - coverage: coveragePercentage, - protectedAreaType: protectionStatus?.slug, - establishmentStage: establishmentStage?.slug, - protectionLevel: mpaaProtectionLevel?.slug, - area: mpa?.area, - dataSource: dataSource?.slug, - iucnCategory: iucnCategory?.slug, - // ? LayerPreview: We're not displaying the layer preview at this moment, but we want to preserve the code - // map: { - // wdpaId: mpa?.wdpaid, - // bounds: mpa?.bbox, - // dataSource: dataSource?.slug, - // }, - }; - }; - - return mpasData?.map(({ attributes: mpa }) => { - const mpaChildren = mpa?.children?.data; - - const mpaData = buildMpaRow(mpa); - const mpaChildrenData = mpaChildren - .map(({ attributes: childMpa }) => buildMpaRow(childMpa)) - .filter((row) => !!row); - - return { - ...mpaData, - ...(mpaChildrenData?.length && { subRows: mpaChildrenData }), - }; - }); - }, [locationsQuery, mpasData]); - - const tableData = useMemo(() => { - return applyFilters(parsedData, filters); - }, [filters, parsedData]); - - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - return
; }; NationalHighseasTable.messages = [ diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/useColumns.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/useColumns.tsx deleted file mode 100644 index 7c100410..00000000 --- a/frontend/src/containers/map/content/details/tables/national-highseas/useColumns.tsx +++ /dev/null @@ -1,261 +0,0 @@ -import { ComponentProps, useMemo } from 'react'; - -import { ColumnDef, SortingFnOption } from '@tanstack/react-table'; -import { useLocale, useTranslations } from 'next-intl'; - -import FiltersButton from '@/components/filters-button'; -import LayerPreview from '@/components/layer-preview'; -import ExpansionControls from '@/containers/map/content/details/table/expansion-controls'; -import HeaderItem from '@/containers/map/content/details/table/header-item'; -import { cellFormatter } from '@/containers/map/content/details/table/helpers'; -import SortingButton from '@/containers/map/content/details/table/sorting-button'; -import TooltipButton from '@/containers/map/content/details/table/tooltip-button'; -import useFiltersOptions from '@/containers/map/content/details/tables/national-highseas/useFiltersOptions'; -import useTooltips from '@/containers/map/content/details/tables/national-highseas/useTooltips'; - -export type NationalHighseasTableColumns = { - protectedArea: string; - coverage: number; - protectedAreaType: string; - establishmentStage: string; - protectionLevel: string; - area: number; - dataSource: string; - iucnCategory: string; - map: { - wdpaId: string; - bounds: [number, number, number, number]; - dataSource: ComponentProps['dataSource']; - }; -}; - -type UseColumnsProps = { - filters: { [key: string]: string[] }; - onFiltersChange: (field: string, values: string[]) => void; -}; - -const useColumns = ({ filters, onFiltersChange }: UseColumnsProps) => { - const t = useTranslations('containers.map'); - const locale = useLocale(); - - const { - protectionStatus: protectionStatusOptions, - establishmentStage: establishmentStageOptions, - protectionLevel: protectionLevelOptions, - dataSource: dataSourceOptions, - iucnCategory: iucnCategoryOptions, - } = useFiltersOptions(); - - const tooltips = useTooltips(); - - // Define columns - const columns: ColumnDef[] = useMemo(() => { - return [ - { - accessorKey: 'protectedArea', - sortingFn: 'localeStringCompare' as SortingFnOption, - header: ({ column }) => ( - - - {t('name')} - - - ), - cell: ({ row }) => { - const { - original: { protectedArea }, - } = row; - return ( - - {protectedArea} - - ); - }, - }, - // ? LayerPreview: We're not displaying the layer preview at this moment, but we want to preserve the code - // { - // accessorKey: 'map', - // header: null, - // cell: ({ row }) => { - // const { bounds, wdpaId, dataSource } = row.original?.map || {}; - - // return ( - //
- // - //
- // ); - // }, - // }, - { - accessorKey: 'coverage', - header: ({ column }) => ( - - - {t('coverage')} - - - ), - cell: ({ row }) => { - const { coverage: value } = row.original; - if (!value) return <>—; - - const formattedCoverage = cellFormatter.percentage(locale, value); - - return ( - - {t.rich('percentage-bold', { - b1: (chunks) => chunks, - b2: (chunks) => {chunks}, - percentage: formattedCoverage, - })} - - ); - }, - }, - { - accessorKey: 'area', - header: ({ column }) => ( - - - {t('area')} - - - ), - cell: ({ row }) => { - const { area: value } = row.original; - const formattedValue = cellFormatter.area(locale, value); - return {t('area-km2', { area: formattedValue })}; - }, - }, - { - accessorKey: 'dataSource', - header: ({ column }) => ( - - - {t('data-source')} - - - ), - cell: ({ row }) => { - const { dataSource: value } = row.original; - const formattedValue = - dataSourceOptions.find((entry) => value === entry?.value)?.name || t('n-a'); - return <>{formattedValue}; - }, - }, - { - accessorKey: 'protectedAreaType', - header: ({ column }) => ( - - - {t('type')} - - - ), - cell: ({ row }) => { - const { protectedAreaType: value } = row.original; - const formattedValue = protectionStatusOptions.find( - (entry) => value === entry?.value - )?.name; - return <>{formattedValue ?? '-'}; - }, - }, - { - accessorKey: 'iucnCategory', - header: ({ column }) => ( - - - {t('iucn-category')} - - - ), - cell: ({ row }) => { - const { iucnCategory: value } = row.original; - const formattedValue = - iucnCategoryOptions.find((entry) => value === entry?.value)?.name || t('n-a'); - return <>{formattedValue}; - }, - }, - { - accessorKey: 'establishmentStage', - header: ({ column }) => ( - - - {t('establishment-stage')} - - - ), - cell: ({ row }) => { - const { establishmentStage: value } = row.original; - const formattedValue = - establishmentStageOptions.find((entry) => value === entry?.value)?.name || - t('not-assessed'); - return <>{formattedValue}; - }, - }, - { - accessorKey: 'protectionLevel', - header: ({ column }) => ( - - - {t('protection-level')} - - - ), - cell: ({ row }) => { - const { protectionLevel: value } = row.original; - const formattedValue = - protectionLevelOptions.find((entry) => value === entry?.value)?.name || - t('not-assessed'); - return <>{formattedValue}; - }, - }, - ]; - }, [ - t, - tooltips, - locale, - dataSourceOptions, - iucnCategoryOptions, - protectionStatusOptions, - filters, - onFiltersChange, - establishmentStageOptions, - protectionLevelOptions, - ]); - - return columns; -}; - -export default useColumns; diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/useFiltersOptions.ts b/frontend/src/containers/map/content/details/tables/national-highseas/useFiltersOptions.ts deleted file mode 100644 index 74803d84..00000000 --- a/frontend/src/containers/map/content/details/tables/national-highseas/useFiltersOptions.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { useMemo } from 'react'; - -import { useLocale } from 'next-intl'; - -import { useGetDataSources } from '@/types/generated/data-source'; -import { useGetMpaIucnCategories } from '@/types/generated/mpa-iucn-category'; -import { useGetMpaaEstablishmentStages } from '@/types/generated/mpaa-establishment-stage'; -import { useGetMpaaProtectionLevels } from '@/types/generated/mpaa-protection-level'; -import { useGetProtectionStatuses } from '@/types/generated/protection-status'; - -const useFiltersOptions = () => { - const locale = useLocale(); - - // Fetch protection statuses and build options for the filter - const { data: protectionStatuses } = useGetProtectionStatuses( - { locale }, - { - query: { - select: ({ data }) => data, - placeholderData: { data: [] }, - }, - } - ); - - const protectionStatusOptions = useMemo(() => { - return protectionStatuses.map(({ attributes }) => ({ - name: attributes?.name, - value: attributes?.slug, - })); - }, [protectionStatuses]); - - // Fetch establishment stages and build options for the filter - const { data: establishmentStages } = useGetMpaaEstablishmentStages( - { locale }, - { - query: { - select: ({ data }) => [...data, { attributes: { name: 'N/A', slug: 'N/A' } }], - placeholderData: { data: [] }, - }, - } - ); - - const establishmentStageOptions = useMemo(() => { - return establishmentStages.map(({ attributes }) => ({ - name: attributes?.name, - value: attributes?.slug, - })); - }, [establishmentStages]); - - // Fetch data sources and build options for the filter - const { data: dataSources } = useGetDataSources( - { locale }, - { - query: { - select: ({ data }) => - data?.filter(({ attributes }) => - // ? Even though there are more data sources, we limit the display to these - ['mpatlas', 'protected-planet']?.includes(attributes?.slug) - ), - placeholderData: { data: [] }, - }, - } - ); - - const dataSourceOptions = useMemo(() => { - return dataSources.map(({ attributes }) => ({ - name: attributes?.title, - value: attributes?.slug, - })); - }, [dataSources]); - - // Fetch IUCN category options and build options for the filter - const { data: iucnCategories } = useGetMpaIucnCategories( - { locale }, - { - query: { - select: ({ data }) => data, - placeholderData: { data: [] }, - }, - } - ); - - const iucnCategoryOptions = useMemo(() => { - return iucnCategories.map(({ attributes }) => ({ - name: attributes?.name, - value: attributes?.slug, - })); - }, [iucnCategories]); - - // Fetch protection levels and build options for the filter - const { data: protectionLevels } = useGetMpaaProtectionLevels( - { locale }, - { - query: { - select: ({ data }) => - data.filter( - ({ attributes }) => - // ? these protection values are used internally, but they should not be visible to the user - !['fully-highly-protected', 'less-protected-unknown'].includes(attributes?.slug) - ), - placeholderData: { data: [] }, - }, - } - ); - - const protectionLevelOptions = useMemo(() => { - return protectionLevels.map(({ attributes }) => ({ - name: attributes?.name, - value: attributes?.slug, - })); - }, [protectionLevels]); - - return { - protectionStatus: protectionStatusOptions, - establishmentStage: establishmentStageOptions, - dataSource: dataSourceOptions, - iucnCategory: iucnCategoryOptions, - protectionLevel: protectionLevelOptions, - }; -}; - -export default useFiltersOptions; diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/useTooltips.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/useTooltips.tsx deleted file mode 100644 index d31b4543..00000000 --- a/frontend/src/containers/map/content/details/tables/national-highseas/useTooltips.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { useLocale } from 'next-intl'; - -import { useGetDataInfos } from '@/types/generated/data-info'; - -const TOOLTIP_MAPPING = { - protectedArea: 'name-pa', - coverage: 'coverage-wdpa', - protectedAreaType: 'protected-area-type', - establishmentStage: 'establishment-stage', - protectionLevel: 'protection-level', - fishingProtectionLevel: 'fishing-protection-level', - area: 'protected-area-mpa', - dataSource: 'details-data-source', - iucnCategory: 'details-iucn-category', -}; - -const useTooltips = () => { - const locale = useLocale(); - - const { data: dataInfo } = useGetDataInfos( - { locale }, - { - query: { - select: ({ data }) => data, - placeholderData: { data: [] }, - }, - } - ); - - const tooltips = {}; - - Object.entries(TOOLTIP_MAPPING).map(([key, value]) => { - const tooltip = dataInfo.find(({ attributes }) => attributes.slug === value)?.attributes - ?.content; - - if (!tooltip) return; - tooltips[key] = tooltip; - }); - - return tooltips; -}; - -export default useTooltips; diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index d4373585..da185c71 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -1222,30 +1222,16 @@ export interface UploadFile { export type StaticIndicatorResponseMeta = { [key: string]: any }; -export interface StaticIndicatorResponse { - data?: StaticIndicatorResponseDataObject; - meta?: StaticIndicatorResponseMeta; -} - -export interface StaticIndicator { - slug?: string; - source?: string; - value?: string; - description?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: StaticIndicatorCreatedBy; - updatedBy?: StaticIndicatorUpdatedBy; - localizations?: StaticIndicatorLocalizations; - locale?: string; -} - export interface StaticIndicatorResponseDataObject { id?: number; attributes?: StaticIndicator; } +export interface StaticIndicatorResponse { + data?: StaticIndicatorResponseDataObject; + meta?: StaticIndicatorResponseMeta; +} + export type StaticIndicatorLocalizations = { data?: StaticIndicator[]; }; @@ -1261,23 +1247,6 @@ export type StaticIndicatorUpdatedBy = { data?: StaticIndicatorUpdatedByData; }; -export type StaticIndicatorCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: StaticIndicatorCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: StaticIndicatorCreatedByDataAttributesCreatedBy; - updatedBy?: StaticIndicatorCreatedByDataAttributesUpdatedBy; -}; - export type StaticIndicatorCreatedByData = { id?: number; attributes?: StaticIndicatorCreatedByDataAttributes; @@ -1287,6 +1256,20 @@ export type StaticIndicatorCreatedBy = { data?: StaticIndicatorCreatedByData; }; +export interface StaticIndicator { + slug?: string; + source?: string; + value?: string; + description?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: StaticIndicatorCreatedBy; + updatedBy?: StaticIndicatorUpdatedBy; + localizations?: StaticIndicatorLocalizations; + locale?: string; +} + export type StaticIndicatorCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type StaticIndicatorCreatedByDataAttributesUpdatedByData = { @@ -1309,6 +1292,18 @@ export type StaticIndicatorCreatedByDataAttributesCreatedBy = { data?: StaticIndicatorCreatedByDataAttributesCreatedByData; }; +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type StaticIndicatorCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes; @@ -1318,6 +1313,23 @@ export type StaticIndicatorCreatedByDataAttributesRoles = { data?: StaticIndicatorCreatedByDataAttributesRolesDataItem[]; }; +export type StaticIndicatorCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: StaticIndicatorCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: StaticIndicatorCreatedByDataAttributesCreatedBy; + updatedBy?: StaticIndicatorCreatedByDataAttributesUpdatedBy; +}; + export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -1331,18 +1343,6 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdated data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -1356,6 +1356,20 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreated data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -1379,20 +1393,6 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermiss data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1519,6 +1519,23 @@ export type ProtectionStatusLocalizations = { data?: ProtectionStatus[]; }; +export interface ProtectionStatus { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedBy; + updatedBy?: ProtectionStatusUpdatedBy; + localizations?: ProtectionStatusLocalizations; + locale?: string; +} + +export interface ProtectionStatusResponseDataObject { + id?: number; + attributes?: ProtectionStatus; +} + export type ProtectionStatusUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusUpdatedByData = { @@ -1556,23 +1573,6 @@ export type ProtectionStatusCreatedBy = { data?: ProtectionStatusCreatedByData; }; -export interface ProtectionStatus { - slug: string; - name: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedBy; - updatedBy?: ProtectionStatusUpdatedBy; - localizations?: ProtectionStatusLocalizations; - locale?: string; -} - -export interface ProtectionStatusResponseDataObject { - id?: number; - attributes?: ProtectionStatus; -} - export type ProtectionStatusCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusCreatedByDataAttributesUpdatedByData = { @@ -1595,10 +1595,6 @@ export type ProtectionStatusCreatedByDataAttributesCreatedBy = { data?: ProtectionStatusCreatedByDataAttributesCreatedByData; }; -export type ProtectionStatusCreatedByDataAttributesRoles = { - data?: ProtectionStatusCreatedByDataAttributesRolesDataItem[]; -}; - export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -1611,6 +1607,27 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdate data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type ProtectionStatusCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type ProtectionStatusCreatedByDataAttributesRoles = { + data?: ProtectionStatusCreatedByDataAttributesRolesDataItem[]; +}; + export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1623,6 +1640,20 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreate data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -1632,23 +1663,6 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermis data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type ProtectionStatusCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes; -}; - export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -1691,20 +1705,6 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermis data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -1791,33 +1791,16 @@ export interface ProtectionStatusLocalizationRequest { export type ProtectionCoverageStatResponseMeta = { [key: string]: any }; -export interface ProtectionCoverageStatResponse { - data?: ProtectionCoverageStatResponseDataObject; - meta?: ProtectionCoverageStatResponseMeta; -} - -export interface ProtectionCoverageStat { - location?: ProtectionCoverageStatLocation; - year: number; - protectedArea?: number; - protectedAreasCount: number; - environment?: ProtectionCoverageStatEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatCreatedBy; - updatedBy?: ProtectionCoverageStatUpdatedBy; -} - export interface ProtectionCoverageStatResponseDataObject { id?: number; attributes?: ProtectionCoverageStat; } +export interface ProtectionCoverageStatResponse { + data?: ProtectionCoverageStatResponseDataObject; + meta?: ProtectionCoverageStatResponseMeta; +} + export type ProtectionCoverageStatUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionCoverageStatUpdatedByData = { @@ -1860,6 +1843,23 @@ export type ProtectionCoverageStatLocation = { data?: ProtectionCoverageStatLocationData; }; +export interface ProtectionCoverageStat { + location?: ProtectionCoverageStatLocation; + year: number; + protectedArea?: number; + protectedAreasCount: number; + environment?: ProtectionCoverageStatEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatCreatedBy; + updatedBy?: ProtectionCoverageStatUpdatedBy; +} + export type ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -1931,6 +1931,9 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = { id?: number; @@ -1942,6 +1945,17 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = + { + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; + }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { location?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; @@ -1960,34 +1974,11 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = - { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = { data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; @@ -2005,6 +1996,15 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD locale?: string; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2138,11 +2138,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatD data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2152,6 +2147,16 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatD attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; + }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { location?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; @@ -2182,11 +2187,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2206,6 +2206,31 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: unknown[]; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; @@ -2230,18 +2255,18 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = @@ -2262,31 +2287,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; - }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2326,6 +2326,15 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; @@ -2344,13 +2353,9 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = @@ -2387,11 +2392,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2497,11 +2497,6 @@ export interface ProtectionCoverageStatListResponse { export type PaResponseMeta = { [key: string]: any }; -export interface PaResponse { - data?: PaResponseDataObject; - meta?: PaResponseMeta; -} - export interface Pa { name: string; area: number; @@ -2514,11 +2509,11 @@ export interface Pa { location?: PaLocation; wdpaid?: string; mpaa_protection_level?: PaMpaaProtectionLevel; - is_child: boolean; iucn_category?: PaIucnCategory; designation?: string; environment?: PaEnvironment; coverage: number; + parent?: PaParent; createdAt?: string; updatedAt?: string; createdBy?: PaCreatedBy; @@ -2530,6 +2525,11 @@ export interface PaResponseDataObject { attributes?: Pa; } +export interface PaResponse { + data?: PaResponseDataObject; + meta?: PaResponseMeta; +} + export type PaUpdatedByDataAttributes = { [key: string]: any }; export type PaUpdatedByData = { @@ -2552,6 +2552,17 @@ export type PaCreatedBy = { data?: PaCreatedByData; }; +export type PaParentDataAttributes = { [key: string]: any }; + +export type PaParentData = { + id?: number; + attributes?: PaParentDataAttributes; +}; + +export type PaParent = { + data?: PaParentData; +}; + export type PaEnvironmentDataAttributes = { [key: string]: any }; export type PaEnvironmentData = { @@ -2618,29 +2629,6 @@ export type PaDataSource = { data?: PaDataSourceData; }; -export type PaChildrenDataItemAttributes = { - name?: string; - area?: number; - year?: number; - protection_status?: PaChildrenDataItemAttributesProtectionStatus; - bbox?: unknown; - children?: PaChildrenDataItemAttributesChildren; - data_source?: PaChildrenDataItemAttributesDataSource; - mpaa_establishment_stage?: PaChildrenDataItemAttributesMpaaEstablishmentStage; - location?: PaChildrenDataItemAttributesLocation; - wdpaid?: string; - mpaa_protection_level?: PaChildrenDataItemAttributesMpaaProtectionLevel; - is_child?: boolean; - iucn_category?: PaChildrenDataItemAttributesIucnCategory; - designation?: string; - environment?: PaChildrenDataItemAttributesEnvironment; - coverage?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesUpdatedBy; -}; - export type PaChildrenDataItem = { id?: number; attributes?: PaChildrenDataItemAttributes; @@ -2672,10 +2660,44 @@ export type PaChildrenDataItemAttributesCreatedBy = { data?: PaChildrenDataItemAttributesCreatedByData; }; +export type PaChildrenDataItemAttributesParentDataAttributes = { [key: string]: any }; + +export type PaChildrenDataItemAttributesParentData = { + id?: number; + attributes?: PaChildrenDataItemAttributesParentDataAttributes; +}; + +export type PaChildrenDataItemAttributesParent = { + data?: PaChildrenDataItemAttributesParentData; +}; + export type PaChildrenDataItemAttributesEnvironment = { data?: PaChildrenDataItemAttributesEnvironmentData; }; +export type PaChildrenDataItemAttributes = { + name?: string; + area?: number; + year?: number; + protection_status?: PaChildrenDataItemAttributesProtectionStatus; + bbox?: unknown; + children?: PaChildrenDataItemAttributesChildren; + data_source?: PaChildrenDataItemAttributesDataSource; + mpaa_establishment_stage?: PaChildrenDataItemAttributesMpaaEstablishmentStage; + location?: PaChildrenDataItemAttributesLocation; + wdpaid?: string; + mpaa_protection_level?: PaChildrenDataItemAttributesMpaaProtectionLevel; + iucn_category?: PaChildrenDataItemAttributesIucnCategory; + designation?: string; + environment?: PaChildrenDataItemAttributesEnvironment; + coverage?: number; + parent?: PaChildrenDataItemAttributesParent; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesUpdatedBy; +}; + export type PaChildrenDataItemAttributesEnvironmentDataAttributes = { [key: string]: any }; export type PaChildrenDataItemAttributesEnvironmentData = { diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 862dd9e5..6c11eb2e 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -292,7 +292,9 @@ "results-out-of": "{startIndex}-{endIndex} out of {total}", "previous-page": "Previous page", "next-page": "Next page", - "page-number": "Page {number}" + "page-number": "Page {number}", + "collapse-sub-rows": "Collapse sub-rows", + "expand-sub-rows": "Expand sub-rows" } }, "components": { From a1d7fd50a16011e24ae6bd9ca527394a74ba59cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 3 Oct 2024 16:35:34 +0200 Subject: [PATCH 021/105] Fix the scroll indicator --- .../map/content/details/table/scrolling-indicators/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx b/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx index a8c61a36..54a10c71 100644 --- a/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx +++ b/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx @@ -20,7 +20,7 @@ const ScrollingIndicators: React.FC = ({ className, ch return ( - {(xScrollPosition === 'middle' || xScrollPosition === 'end') && ( + {(xScrollPosition === 'start' || xScrollPosition === 'middle') && ( <> = ({ className, ch )} - {(xScrollPosition === 'start' || xScrollPosition === 'middle') && ( + {(xScrollPosition === 'middle' || xScrollPosition === 'end') && ( <> From 2c8c56a21138a79454cb3cda3587309e363ce057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 3 Oct 2024 17:02:11 +0200 Subject: [PATCH 022/105] Fix FE compilation error --- .../map/sidebar/main-panel/panels/modelling/widget/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx index 4dc99cd2..91d18a66 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx @@ -16,7 +16,7 @@ import { getGetProtectionCoverageStatsQueryOptions, useGetProtectionCoverageStats, } from '@/types/generated/protection-coverage-stat'; -import { Location, ProtectionCoverageStatLocationData } from '@/types/generated/strapi.schemas'; +import { Location } from '@/types/generated/strapi.schemas'; import useTooltips from '../useTooltips'; From 39d958a63af109a9b995635c1efd6c8c711fe916 Mon Sep 17 00:00:00 2001 From: Simao Rodrigues Date: Fri, 4 Oct 2024 11:30:47 +0100 Subject: [PATCH 023/105] Layers panel - Basemap group to only be expanded when summary tab is active --- frontend/src/containers/map/sidebar/layers-panel/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/containers/map/sidebar/layers-panel/index.tsx b/frontend/src/containers/map/sidebar/layers-panel/index.tsx index c8c6d076..841c4e6f 100644 --- a/frontend/src/containers/map/sidebar/layers-panel/index.tsx +++ b/frontend/src/containers/map/sidebar/layers-panel/index.tsx @@ -64,19 +64,19 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { Date: Fri, 4 Oct 2024 15:45:51 +0200 Subject: [PATCH 024/105] Add tabs to the conservation builder --- .../main-panel/panels/modelling/index.tsx | 96 +++++++++++++++---- .../modelling/modelling-buttons/index.tsx | 10 +- 2 files changed, 83 insertions(+), 23 deletions(-) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx index 2f91b1c2..03c523c7 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx @@ -1,11 +1,17 @@ +import { useCallback, useEffect, useMemo, useRef } from 'react'; + import { useRouter } from 'next/router'; import { useAtomValue } from 'jotai'; import { useTranslations } from 'next-intl'; +import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { PAGES } from '@/constants/pages'; import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; import { modellingAtom } from '@/containers/map/store'; +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; +import useScrollPosition from '@/hooks/use-scroll-position'; +import { cn } from '@/lib/classnames'; import { FCWithMessages } from '@/types'; import LocationSelector from '../../location-selector'; @@ -17,35 +23,85 @@ import ModellingWidget from './widget'; const SidebarModelling: FCWithMessages = () => { const t = useTranslations('containers.map-sidebar-main-panel'); + const containerRef = useRef(null); + const containerScroll = useScrollPosition(containerRef); + const { push } = useRouter(); const searchParams = useMapSearchParams(); const { status: modellingStatus } = useAtomValue(modellingAtom); + const [{ tab }, setSettings] = useSyncMapContentSettings(); - const showIntro = modellingStatus === 'idle'; + const showIntro = useMemo(() => modellingStatus === 'idle', [modellingStatus]); - const handleLocationSelected = (locationCode) => { - push(`${PAGES.conservationBuilder}/${locationCode}?${searchParams.toString()}`); - }; + const handleLocationSelected = useCallback( + (locationCode) => { + push(`${PAGES.conservationBuilder}/${locationCode}?${searchParams.toString()}`); + }, + [push, searchParams] + ); + + const handleTabChange = useCallback( + (tab: string) => setSettings((prevSettings) => ({ ...prevSettings, tab })), + [setSettings] + ); + + // Scroll to the top when the tab changes (whether that's initiated by clicking on the tab trigger + // or programmatically via `setSettings` in a different component) + useEffect(() => { + containerRef.current?.scrollTo({ top: 0 }); + }, [tab]); + + // This page doesn't have a summary tab so we force the user to see the terrestrial tab if the + // summary one was active + useEffect(() => { + if (tab === 'summary') { + setSettings((prevSettings) => ({ ...prevSettings, tab: 'terrestrial' })); + } + }, [setSettings, tab]); return ( - <> -
-
- {showIntro &&

{t('conservation-scenarios')}

} - {!showIntro && ( -
-

{t('custom-area')}

-

{t('custom-area-description')}

-
- )} - - - + +
+
0, + })} + > +

0, + })} + > + {showIntro ? t('conservation-scenarios') : t('custom-area')} +

+ 0 ? 'small' : 'default'} + onChange={handleLocationSelected} + />
- {showIntro && } - {!showIntro && } + {!showIntro &&

{t('custom-area-description')}

} + + {t('terrestrial')} + {t('marine')} + +
+
+ {showIntro && } + + {showIntro && } + {!showIntro && } + +
+
+
- +
); }; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/modelling-buttons/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/modelling-buttons/index.tsx index 97a88919..a2bd2f40 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/modelling-buttons/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/modelling-buttons/index.tsx @@ -3,6 +3,8 @@ import { useCallback } from 'react'; import { useAtom, useSetAtom } from 'jotai'; import { useResetAtom } from 'jotai/utils'; import { useTranslations } from 'next-intl'; +import { LuTrash2 } from 'react-icons/lu'; +import { RxTransform } from 'react-icons/rx'; import { Button } from '@/components/ui/button'; import { modellingAtom, drawStateAtom } from '@/containers/map/store'; @@ -44,30 +46,32 @@ const ModellingButtons: FCWithMessages = ({ className })
{status !== 'drawing' && status !== 'success' && ( )} {(status === 'drawing' || status === 'success') && (
From 37252dd649cb82cf16174a8deb65d9b4ef64202f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 7 Oct 2024 10:04:12 +0200 Subject: [PATCH 025/105] Add code for the terrestrial analysis --- frontend/.env.default | 3 +- .../map/content/map/modelling/index.tsx | 18 ++++-- .../main-panel/panels/modelling/index.tsx | 5 +- .../panels/modelling/widget/index.tsx | 64 +++++++++++++------ frontend/translations/en.json | 3 +- infrastructure/README.md | 3 +- 6 files changed, 66 insertions(+), 30 deletions(-) diff --git a/frontend/.env.default b/frontend/.env.default index 13fe0d4d..8194769d 100644 --- a/frontend/.env.default +++ b/frontend/.env.default @@ -6,7 +6,8 @@ HUBSPOT_TOKEN= LOCALAZY_CDN= -NEXT_PUBLIC_ANALYSIS_CF_URL= +NEXT_PUBLIC_ANALYSIS_CF_MARINE_URL= +NEXT_PUBLIC_ANALYSIS_CF_TERRESTRIAL_URL= NEXT_PUBLIC_FEATURE_FLAG_ANALYSIS= HTTP_AUTH_USERNAME= diff --git a/frontend/src/containers/map/content/map/modelling/index.tsx b/frontend/src/containers/map/content/map/modelling/index.tsx index 29a6a83d..68a2541a 100644 --- a/frontend/src/containers/map/content/map/modelling/index.tsx +++ b/frontend/src/containers/map/content/map/modelling/index.tsx @@ -6,21 +6,29 @@ import type { Feature } from 'geojson'; import { useAtomValue, useSetAtom } from 'jotai'; import { modellingAtom, drawStateAtom } from '@/containers/map/store'; +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { ModellingData } from '@/types/modelling'; -const fetchModelling = async (feature: Feature) => { - return axios.post(process.env.NEXT_PUBLIC_ANALYSIS_CF_URL, feature); +const fetchModelling = async (tab: string, feature: Feature) => { + const url = + tab === 'marine' + ? process.env.NEXT_PUBLIC_ANALYSIS_CF_MARINE_URL + : process.env.NEXT_PUBLIC_ANALYSIS_CF_TERRESTRIAL_URL; + + return axios.post(url, feature); }; const Modelling = () => { const { feature } = useAtomValue(drawStateAtom); const setModellingState = useSetAtom(modellingAtom); + const [{ tab }] = useSyncMapContentSettings(); + const { isFetching, isSuccess, data } = useQuery( - ['modelling', feature], - () => fetchModelling(feature), + ['modelling', tab, feature], + () => fetchModelling(tab, feature), { - enabled: Boolean(feature), + enabled: Boolean(feature) && ['marine', 'terrestrial'].includes(tab), select: ({ data }) => data, refetchOnWindowFocus: false, retry: false, diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx index 03c523c7..b1cbba8f 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx @@ -92,7 +92,10 @@ const SidebarModelling: FCWithMessages = () => {
- {showIntro && } + + {showIntro && } + {!showIntro && } + {showIntro && } {!showIntro && } diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx index 91d18a66..cccc52e9 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx @@ -10,6 +10,7 @@ import StackedHorizontalBarChart from '@/components/charts/stacked-horizontal-ba import TooltipButton from '@/components/tooltip-button'; import Widget from '@/components/widget'; import { modellingAtom } from '@/containers/map/store'; +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { cn } from '@/lib/classnames'; import { FCWithMessages } from '@/types'; import { @@ -44,6 +45,7 @@ const WidgetSectionWidgetTitle: React.FC = ({ tit const WidgetLegend: FCWithMessages = () => { const t = useTranslations('containers.map-sidebar-main-panel'); + const [{ tab }] = useSyncMapContentSettings(); const LEGEND_LINE_CLASSES = 'relative pl-9 font-mono text-xs before:absolute before:left-0 before:top-1/2 before:h-[2px] before:w-[28px] before:-translate-y-1/2'; @@ -52,7 +54,8 @@ const WidgetLegend: FCWithMessages = () => {
  • - {t('marine-existing-conservation')} + {tab === 'marine' && t('marine-existing-conservation')} + {tab === 'terrestrial' && t('terrestrial-existing-conservation')}
  • @@ -68,6 +71,8 @@ const ModellingWidget: FCWithMessages = () => { const t = useTranslations('containers.map-sidebar-main-panel'); const locale = useLocale(); + const [{ tab }] = useSyncMapContentSettings(); + const chartsProps = DEFAULT_CHART_PROPS; const { @@ -82,7 +87,7 @@ const ModellingWidget: FCWithMessages = () => { const { data: globalProtectionStatsData } = useGetProtectionCoverageStats<{ protectedArea: number; percentageProtectedArea: number; - totalMarineArea: number; + totalArea: number; totalProtectedArea: number; totalPercentage: number; totalCustomAreas: number; @@ -100,7 +105,7 @@ const ModellingWidget: FCWithMessages = () => { }, environment: { slug: { - $eq: 'marine', + $eq: tab, }, }, }, @@ -108,7 +113,7 @@ const ModellingWidget: FCWithMessages = () => { // @ts-ignore populate: { location: { - fields: ['totalMarineArea'], + fields: ['totalMarineArea', 'totalTerrestrialArea'], }, }, 'pagination[limit]': 1, @@ -118,14 +123,18 @@ const ModellingWidget: FCWithMessages = () => { }, { query: { - enabled: Boolean(modellingData?.locations_area), + enabled: Boolean(modellingData?.locations_area) && ['marine', 'terrestrial'].includes(tab), select: ({ data }) => { if (!data) return null; const protectedArea = data?.[0].attributes.protectedArea ?? 0; - const totalMarineArea = - data?.[0].attributes?.location?.data?.attributes?.totalMarineArea ?? 0; + let totalArea; + if (tab === 'marine') { + totalArea = data?.[0].attributes?.location?.data?.attributes?.totalMarineArea ?? 0; + } else { + totalArea = data?.[0].attributes?.location?.data?.attributes?.totalTerrestrialArea ?? 0; + } const totalCustomAreas = modellingData.locations_area.reduce((acc, location) => { return acc + location.protected_area; @@ -133,16 +142,16 @@ const ModellingWidget: FCWithMessages = () => { const totalProtectedArea = protectedArea + totalCustomAreas; // ? percentage of custom protected areas (analysis) - const totalCustomAreasPercentage = (totalCustomAreas / totalMarineArea) * 100; + const totalCustomAreasPercentage = (totalCustomAreas / totalArea) * 100; // ? percentage of existing global protected area - const totalExistingAreaPercentage = (protectedArea / totalMarineArea) * 100; + const totalExistingAreaPercentage = (protectedArea / totalArea) * 100; const totalPercentage = totalCustomAreasPercentage + totalExistingAreaPercentage; return { protectedArea, - percentageProtectedArea: (protectedArea / totalMarineArea) * 100, - totalMarineArea, + percentageProtectedArea: (protectedArea / totalArea) * 100, + totalArea, totalProtectedArea, totalPercentage, totalCustomAreas, @@ -169,7 +178,7 @@ const ModellingWidget: FCWithMessages = () => { }, environment: { slug: { - $eq: 'marine', + $eq: tab, }, }, }, @@ -177,7 +186,14 @@ const ModellingWidget: FCWithMessages = () => { // @ts-ignore populate: { location: { - fields: ['name', 'name_es', 'name_es', 'code', 'totalMarineArea'], + fields: [ + 'name', + 'name_es', + 'name_es', + 'code', + 'totalMarineArea', + 'totalTerrestrialArea', + ], }, }, 'pagination[limit]': 1, @@ -187,7 +203,8 @@ const ModellingWidget: FCWithMessages = () => { }, { query: { - enabled: Boolean(modellingData?.locations_area), + enabled: + Boolean(modellingData?.locations_area) && ['marine', 'terrestrial'].includes(tab), select: ({ data }) => { if (!data) return null; @@ -196,7 +213,12 @@ const ModellingWidget: FCWithMessages = () => { const location = data?.[0]?.attributes?.location?.data?.attributes; // ? total extension of location - const totalMarineArea = location?.totalMarineArea ?? 0; + let totalArea; + if (tab === 'marine') { + totalArea = location?.totalMarineArea ?? 0; + } else { + totalArea = location?.totalTerrestrialArea ?? 0; + } // ? total custom protected area (analysis) const totalCustomArea = modellingData.locations_area.find( @@ -204,9 +226,9 @@ const ModellingWidget: FCWithMessages = () => { ).protected_area; // ? percentage of custom protected area (analysis) - const totalCustomAreaPercentage = (totalCustomArea / totalMarineArea) * 100; + const totalCustomAreaPercentage = (totalCustomArea / totalArea) * 100; // ? percentage of existing protected area - const totalExistingAreaPercentage = (protectedArea / totalMarineArea) * 100; + const totalExistingAreaPercentage = (protectedArea / totalArea) * 100; // ? sum of existing protected area and protected custom area (analysis) const totalProtectedArea = protectedArea + totalCustomArea; @@ -215,7 +237,7 @@ const ModellingWidget: FCWithMessages = () => { return { location, - totalMarineArea, + totalArea, totalProtectedArea, protectedArea, totalExistingAreaPercentage, @@ -238,7 +260,7 @@ const ModellingWidget: FCWithMessages = () => { const nationalLevelContributions: { location: Location; percentageProtectedArea: number; - totalMarineArea: number; + totalArea: number; totalProtectedArea: number; protectedArea: number; totalExistingAreaPercentage: number; @@ -309,7 +331,7 @@ const ModellingWidget: FCWithMessages = () => { key={contribution?.location?.code} title={locationName} totalProtectedArea={contribution?.totalProtectedArea} - totalArea={contribution?.totalMarineArea} + totalArea={contribution?.totalArea} highlightedPercentage={contribution?.totalPercentage} data={[ { @@ -339,7 +361,7 @@ const ModellingWidget: FCWithMessages = () => { {percentage}%", "terrestrial-protected-area": "{protectedArea} km² out of {totalArea} km²", "explore-terrestrial-conservation": "Explore Terrestrial Conservation", - "explore-marine-conservation": "Explore Marine Conservation" + "explore-marine-conservation": "Explore Marine Conservation", + "terrestrial-existing-conservation": "Existing terrestrial conservation coverage" }, "map-sidebar-layers-panel": { "layers": "Layers", diff --git a/infrastructure/README.md b/infrastructure/README.md index 44174a2b..ebbf1d08 100644 --- a/infrastructure/README.md +++ b/infrastructure/README.md @@ -120,7 +120,8 @@ Deployment to the CloudRun instances is accomplished by building Docker images a - the following secrets set by terraform in STAGING_CLIENT_ENV_TF_MANAGED (in the format of an .env file): - NEXT_PUBLIC_URL - NEXT_PUBLIC_API_URL - - NEXT_PUBLIC_ANALYSIS_CF_URL + - NEXT_PUBLIC_ANALYSIS_CF_MARINE_URL + - NEXT_PUBLIC_ANALYSIS_CF_TERRESTRIAL_URL - NEXT_PUBLIC_ENVIRONMENT - LOG_LEVEL - additional secrets set manually in STAGING_CLIENT_ENV (copy to be managed in LastPass) From 9dbea53980ab99e3c828a109ffb751cc3fb3d491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 7 Oct 2024 10:21:02 +0200 Subject: [PATCH 026/105] =?UTF-8?q?Replace=20the=20default=20=E2=80=9Cno?= =?UTF-8?q?=20data=E2=80=9D=20widget=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/no-data/index.tsx | 2 +- frontend/translations/en.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/widget/no-data/index.tsx b/frontend/src/components/widget/no-data/index.tsx index 67c83474..088e7bbb 100644 --- a/frontend/src/components/widget/no-data/index.tsx +++ b/frontend/src/components/widget/no-data/index.tsx @@ -17,7 +17,7 @@ const NoData: FCWithMessages = ({

    {error && message} - {!error && t('data-not-available')} + {!error && t('no-data-available')}

    ); diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 62477651..d3a5d068 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -333,7 +333,7 @@ "widget": { "updated-on": "Updated on {date}", "loading-data": "Loading data...", - "data-not-available": "Data not available" + "no-data-available": "No data available" }, "chart-conservation": { "30x30-target": "30x30 Target", From deda224167875edeae76cb3a2e785442d0c1320b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 4 Oct 2024 14:35:15 +0200 Subject: [PATCH 027/105] Rename `messageError` as `errorMessage` --- frontend/src/components/widget/index.tsx | 6 +++--- frontend/src/containers/map/content/map/modelling/index.tsx | 4 ++-- .../sidebar/main-panel/panels/modelling/widget/index.tsx | 4 ++-- frontend/src/containers/map/store.ts | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/widget/index.tsx b/frontend/src/components/widget/index.tsx index a564a0bc..aac5122c 100644 --- a/frontend/src/components/widget/index.tsx +++ b/frontend/src/components/widget/index.tsx @@ -27,7 +27,7 @@ type WidgetProps = { noData?: boolean; loading?: boolean; error?: boolean; - messageError?: ComponentProps['message']; + errorMessage?: ComponentProps['message']; info?: ComponentProps['text']; sources?: ComponentProps['sources']; }; @@ -45,7 +45,7 @@ const Widget: FCWithMessages> = ({ noData = false, loading = false, error = false, - messageError = undefined, + errorMessage = undefined, info, sources, children, @@ -74,7 +74,7 @@ const Widget: FCWithMessages> = ({ )}
{loading && } - {showNoData && } + {showNoData && } {!loading && !showNoData &&
{children}
}
); diff --git a/frontend/src/containers/map/content/map/modelling/index.tsx b/frontend/src/containers/map/content/map/modelling/index.tsx index 68a2541a..7a6e1826 100644 --- a/frontend/src/containers/map/content/map/modelling/index.tsx +++ b/frontend/src/containers/map/content/map/modelling/index.tsx @@ -37,13 +37,13 @@ const Modelling = () => { setModellingState((prevState) => ({ ...prevState, status: 'error', - messageError: req.response?.status === 400 ? req.response?.data.error : undefined, + errorMessage: req.response?.status === 400 ? req.response?.data.error : undefined, })); } else { setModellingState((prevState) => ({ ...prevState, status: 'error', - messageError: undefined, + errorMessage: undefined, })); } }, diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx index cccc52e9..94660ed5 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx @@ -78,7 +78,7 @@ const ModellingWidget: FCWithMessages = () => { const { status: modellingStatus, data: modellingData, - messageError, + errorMessage, } = useAtomValue(modellingAtom); // Tooltips with mapping @@ -296,7 +296,7 @@ const ModellingWidget: FCWithMessages = () => { noData={!nationalLevelContributions} loading={loading} error={error} - messageError={messageError} + errorMessage={errorMessage} >
diff --git a/frontend/src/containers/map/store.ts b/frontend/src/containers/map/store.ts index 7773b832..32dfc20f 100644 --- a/frontend/src/containers/map/store.ts +++ b/frontend/src/containers/map/store.ts @@ -33,10 +33,10 @@ export const modellingAtom = atomWithReset<{ active: boolean; status: 'idle' | 'running' | 'success' | 'error'; data: ModellingData; - messageError?: string; + errorMessage?: string; }>({ active: false, status: 'idle', data: null, - messageError: undefined, + errorMessage: undefined, }); From abf89cd3af5660a8eda6bdac688c4e1c53770ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 4 Oct 2024 14:41:22 +0200 Subject: [PATCH 028/105] Allow custom error/non-error messages on widgets --- frontend/src/components/widget/index.tsx | 7 +++++-- frontend/src/components/widget/no-data/index.tsx | 11 +++++------ frontend/translations/en.json | 3 ++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/widget/index.tsx b/frontend/src/components/widget/index.tsx index aac5122c..21df360b 100644 --- a/frontend/src/components/widget/index.tsx +++ b/frontend/src/components/widget/index.tsx @@ -25,6 +25,7 @@ type WidgetProps = { title?: string; lastUpdated?: string; noData?: boolean; + noDataMessage?: ComponentProps['message']; loading?: boolean; error?: boolean; errorMessage?: ComponentProps['message']; @@ -43,6 +44,7 @@ const Widget: FCWithMessages> = ({ title, lastUpdated, noData = false, + noDataMessage = undefined, loading = false, error = false, errorMessage = undefined, @@ -74,8 +76,9 @@ const Widget: FCWithMessages> = ({ )}
{loading && } - {showNoData && } - {!loading && !showNoData &&
{children}
} + {!loading && error && } + {!loading && !error && noData && } + {!loading && !error && !noData &&
{children}
}
); }; diff --git a/frontend/src/components/widget/no-data/index.tsx b/frontend/src/components/widget/no-data/index.tsx index 088e7bbb..6f674153 100644 --- a/frontend/src/components/widget/no-data/index.tsx +++ b/frontend/src/components/widget/no-data/index.tsx @@ -7,17 +7,16 @@ type NoDataProps = { message?: string; }; -const NoData: FCWithMessages = ({ - error = false, - message = 'The current widget is not visible due to an error.', -}) => { +const NoData: FCWithMessages = ({ error = false, message }) => { const t = useTranslations('components.widget'); return (

- {error && message} - {!error && t('no-data-available')} + {error && !message && t('not-visible-due-to-error')} + {error && !!message && message} + {!error && !message && t('no-data-available')} + {!error && !!message && message}

); diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 77cd595f..b85948c8 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -334,7 +334,8 @@ "widget": { "updated-on": "Updated on {date}", "loading-data": "Loading data...", - "no-data-available": "No data available" + "no-data-available": "No data available", + "not-visible-due-to-error": "The current widget is not visible due to an error" }, "chart-conservation": { "30x30-target": "30x30 Target", From f596eda13507ebba3437aac49a3652a0a78ed14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 4 Oct 2024 14:43:14 +0200 Subject: [PATCH 029/105] Change no data message on protection levels widget --- .../panels/details/widgets/protection-types/index.tsx | 1 + frontend/translations/en.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx index c4bd363a..a5f393a5 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx @@ -116,6 +116,7 @@ const ProtectionTypesWidget: FCWithMessages = ({ loc title={t('marine-conservation-protection-levels')} lastUpdated={lastUpdated} noData={noData} + noDataMessage={t('not-assessed')} loading={loading} > {widgetChartData.map((chartData) => ( diff --git a/frontend/translations/en.json b/frontend/translations/en.json index b85948c8..47a70b66 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -228,7 +228,8 @@ "terrestrial-protected-area": "{protectedArea} km² out of {totalArea} km²", "explore-terrestrial-conservation": "Explore Terrestrial Conservation", "explore-marine-conservation": "Explore Marine Conservation", - "terrestrial-existing-conservation": "Existing terrestrial conservation coverage" + "terrestrial-existing-conservation": "Existing terrestrial conservation coverage", + "not-assessed": "Not assessed" }, "map-sidebar-layers-panel": { "layers": "Layers", From 0c4dead847ac46372fd88e7713edcf3d0b09ae79 Mon Sep 17 00:00:00 2001 From: Simao Rodrigues Date: Mon, 7 Oct 2024 13:12:43 +0100 Subject: [PATCH 030/105] Custom filtering when using the location input search in the sidebar --- .../location-selector/location-dropdown/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/containers/map/sidebar/main-panel/location-selector/location-dropdown/index.tsx b/frontend/src/containers/map/sidebar/main-panel/location-selector/location-dropdown/index.tsx index 4f62c11e..81100298 100644 --- a/frontend/src/containers/map/sidebar/main-panel/location-selector/location-dropdown/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/location-selector/location-dropdown/index.tsx @@ -51,8 +51,13 @@ const LocationDropdown: FCWithMessages = ({ } ); + const handleFiltering = (value: string, search: string) => { + if (value.toLocaleLowerCase().includes(search.toLocaleLowerCase())) return 1; + return 0; + }; + return ( - + {t('no-result')} From 3b116efc313ce735b42f63d86da5e93c219cfe66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 8 Oct 2024 10:20:10 +0200 Subject: [PATCH 031/105] Remove the location input and URL param --- .../main-panel/panels/modelling/index.tsx | 27 +------------- .../{[locationCode].tsx => index.tsx} | 35 ++----------------- 2 files changed, 4 insertions(+), 58 deletions(-) rename frontend/src/pages/conservation-builder/{[locationCode].tsx => index.tsx} (58%) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx index b1cbba8f..207d84e1 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/index.tsx @@ -1,13 +1,9 @@ import { useCallback, useEffect, useMemo, useRef } from 'react'; -import { useRouter } from 'next/router'; - import { useAtomValue } from 'jotai'; import { useTranslations } from 'next-intl'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; -import { PAGES } from '@/constants/pages'; -import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; import { modellingAtom } from '@/containers/map/store'; import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import useScrollPosition from '@/hooks/use-scroll-position'; @@ -26,20 +22,11 @@ const SidebarModelling: FCWithMessages = () => { const containerRef = useRef(null); const containerScroll = useScrollPosition(containerRef); - const { push } = useRouter(); - const searchParams = useMapSearchParams(); const { status: modellingStatus } = useAtomValue(modellingAtom); const [{ tab }, setSettings] = useSyncMapContentSettings(); const showIntro = useMemo(() => modellingStatus === 'idle', [modellingStatus]); - const handleLocationSelected = useCallback( - (locationCode) => { - push(`${PAGES.conservationBuilder}/${locationCode}?${searchParams.toString()}`); - }, - [push, searchParams] - ); - const handleTabChange = useCallback( (tab: string) => setSettings((prevSettings) => ({ ...prevSettings, tab })), [setSettings] @@ -62,13 +49,7 @@ const SidebarModelling: FCWithMessages = () => { return (
-
0, - })} - > +

{ > {showIntro ? t('conservation-scenarios') : t('custom-area')}

- 0 ? 'small' : 'default'} - onChange={handleLocationSelected} - />
{!showIntro &&

{t('custom-area-description')}

} diff --git a/frontend/src/pages/conservation-builder/[locationCode].tsx b/frontend/src/pages/conservation-builder/index.tsx similarity index 58% rename from frontend/src/pages/conservation-builder/[locationCode].tsx rename to frontend/src/pages/conservation-builder/index.tsx index 352bb84c..157c2f90 100644 --- a/frontend/src/pages/conservation-builder/[locationCode].tsx +++ b/frontend/src/pages/conservation-builder/index.tsx @@ -8,16 +8,11 @@ import MapLayout from '@/layouts/map'; import { fetchTranslations } from '@/lib/i18n'; import mapParamsToSearchParams from '@/lib/mapparams-to-searchparams'; import { FCWithMessages } from '@/types'; -import { getGetLocationsQueryKey, getGetLocationsQueryOptions } from '@/types/generated/location'; -import { LocationListResponse } from '@/types/generated/strapi.schemas'; import { LayoutProps } from '../_app'; const ConservationBuilderPage: FCWithMessages & { - layout: LayoutProps< - { location: { code: string; name: string } }, - ComponentProps - >; + layout: LayoutProps, ComponentProps>; } = () => { return null; }; @@ -34,11 +29,11 @@ ConservationBuilderPage.messages = ['pages.conservation-builder', ...MapLayout.m export const getServerSideProps: GetServerSideProps = async (context) => { const { query } = context; - const { locationCode = 'GLOB', location, mapParams = null } = query; + const { mapParams = null } = query; if (mapParams) { const searchParams = mapParamsToSearchParams(mapParams); - const target = `/${context.locale}/${PAGES.conservationBuilder}/${location}?${searchParams}`; + const target = `/${context.locale}/${PAGES.conservationBuilder}/?${searchParams}`; return { redirect: { @@ -50,32 +45,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => { const queryClient = new QueryClient(); - await queryClient.prefetchQuery({ - ...getGetLocationsQueryOptions({ - locale: context.locale, - filters: { - code: locationCode, - }, - }), - }); - - const locationsData = queryClient.getQueryData( - getGetLocationsQueryKey({ - locale: context.locale, - filters: { - code: locationCode, - }, - }) - ); - - if (!locationsData || !locationsData.data) return { notFound: true }; - return { props: { - location: locationsData.data[0].attributes || { - code: 'GLOB', - name: 'Global', - }, dehydratedState: dehydrate(queryClient), messages: await fetchTranslations(context.locale, ConservationBuilderPage.messages), }, From f07df148b5930227c8ac5618d555ee3e1bb037d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 8 Oct 2024 11:34:51 +0200 Subject: [PATCH 032/105] Remove Dataset Group & add env to Layer --- .../sync/admin-role.strapi-super-admin.json | 87 +- ...pes##api##dataset-group.dataset-group.json | 155 - ...n_content_types##api##dataset.dataset.json | 19 - ...ation_content_types##api##layer.layer.json | 21 + ...content_types##api##location.location.json | 20 +- .../content-types/dataset-group/schema.json | 45 - .../controllers/dataset-group.ts | 7 - .../documentation/1.0.0/dataset-group.json | 599 --- .../api/dataset-group/routes/dataset-group.ts | 7 - .../dataset-group/services/dataset-group.ts | 7 - .../dataset/content-types/dataset/schema.json | 6 - .../api/layer/content-types/layer/schema.json | 5 + cms/types/generated/contentTypes.d.ts | 70 +- .../src/types/generated/strapi.schemas.ts | 4790 ++++++++--------- 14 files changed, 2169 insertions(+), 3669 deletions(-) delete mode 100644 cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset-group.dataset-group.json delete mode 100644 cms/src/api/dataset-group/content-types/dataset-group/schema.json delete mode 100644 cms/src/api/dataset-group/controllers/dataset-group.ts delete mode 100644 cms/src/api/dataset-group/documentation/1.0.0/dataset-group.json delete mode 100644 cms/src/api/dataset-group/routes/dataset-group.ts delete mode 100644 cms/src/api/dataset-group/services/dataset-group.ts diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 8f558c8e..e28c8317 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -543,73 +543,6 @@ "conditions": [], "actionParameters": {} }, - { - "action": "plugin::content-manager.explorer.create", - "subject": "api::dataset-group.dataset-group", - "properties": { - "fields": [ - "name", - "slug", - "datasets" - ], - "locales": [ - "en", - "es", - "fr" - ] - }, - "conditions": [], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.delete", - "subject": "api::dataset-group.dataset-group", - "properties": { - "locales": [ - "en", - "es", - "fr" - ] - }, - "conditions": [], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.read", - "subject": "api::dataset-group.dataset-group", - "properties": { - "fields": [ - "name", - "slug", - "datasets" - ], - "locales": [ - "en", - "es", - "fr" - ] - }, - "conditions": [], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.update", - "subject": "api::dataset-group.dataset-group", - "properties": { - "fields": [ - "name", - "slug", - "datasets" - ], - "locales": [ - "en", - "es", - "fr" - ] - }, - "conditions": [], - "actionParameters": {} - }, { "action": "plugin::content-manager.explorer.create", "subject": "api::dataset.dataset", @@ -617,8 +550,7 @@ "fields": [ "name", "layers", - "slug", - "group" + "slug" ], "locales": [ "en", @@ -662,8 +594,7 @@ "fields": [ "name", "layers", - "slug", - "group" + "slug" ], "locales": [ "en", @@ -681,8 +612,7 @@ "fields": [ "name", "layers", - "slug", - "group" + "slug" ], "locales": [ "en", @@ -1017,7 +947,8 @@ "legend_config.items.color", "legend_config.items.value", "legend_config.items.description", - "default" + "default", + "environment" ], "locales": [ "en", @@ -1076,7 +1007,8 @@ "legend_config.items.color", "legend_config.items.value", "legend_config.items.description", - "default" + "default", + "environment" ], "locales": [ "en", @@ -1109,7 +1041,8 @@ "legend_config.items.color", "legend_config.items.value", "legend_config.items.description", - "default" + "default", + "environment" ], "locales": [ "en", @@ -2246,4 +2179,4 @@ "actionParameters": {} } ] -} +} \ No newline at end of file diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset-group.dataset-group.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset-group.dataset-group.json deleted file mode 100644 index 8aa4c85b..00000000 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset-group.dataset-group.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "key": "plugin_content_manager_configuration_content_types::api::dataset-group.dataset-group", - "value": { - "uid": "api::dataset-group.dataset-group", - "settings": { - "bulkable": true, - "filterable": true, - "searchable": true, - "pageSize": 10, - "mainField": "name", - "defaultSortBy": "name", - "defaultSortOrder": "ASC" - }, - "metadatas": { - "id": { - "edit": {}, - "list": { - "label": "id", - "searchable": true, - "sortable": true - } - }, - "name": { - "edit": { - "label": "name", - "description": "", - "placeholder": "", - "visible": true, - "editable": true - }, - "list": { - "label": "name", - "searchable": true, - "sortable": true - } - }, - "slug": { - "edit": { - "label": "slug", - "description": "", - "placeholder": "", - "visible": true, - "editable": true - }, - "list": { - "label": "slug", - "searchable": true, - "sortable": true - } - }, - "datasets": { - "edit": { - "label": "datasets", - "description": "", - "placeholder": "", - "visible": true, - "editable": true, - "mainField": "name" - }, - "list": { - "label": "datasets", - "searchable": false, - "sortable": false - } - }, - "createdAt": { - "edit": { - "label": "createdAt", - "description": "", - "placeholder": "", - "visible": false, - "editable": true - }, - "list": { - "label": "createdAt", - "searchable": true, - "sortable": true - } - }, - "updatedAt": { - "edit": { - "label": "updatedAt", - "description": "", - "placeholder": "", - "visible": false, - "editable": true - }, - "list": { - "label": "updatedAt", - "searchable": true, - "sortable": true - } - }, - "createdBy": { - "edit": { - "label": "createdBy", - "description": "", - "placeholder": "", - "visible": false, - "editable": true, - "mainField": "firstname" - }, - "list": { - "label": "createdBy", - "searchable": true, - "sortable": true - } - }, - "updatedBy": { - "edit": { - "label": "updatedBy", - "description": "", - "placeholder": "", - "visible": false, - "editable": true, - "mainField": "firstname" - }, - "list": { - "label": "updatedBy", - "searchable": true, - "sortable": true - } - } - }, - "layouts": { - "list": [ - "id", - "name", - "slug", - "datasets" - ], - "edit": [ - [ - { - "name": "name", - "size": 6 - }, - { - "name": "slug", - "size": 6 - } - ], - [ - { - "name": "datasets", - "size": 6 - } - ] - ] - } - }, - "type": "object", - "environment": null, - "tag": null -} \ No newline at end of file diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json index 4d4c91fb..53687687 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json @@ -63,21 +63,6 @@ "sortable": true } }, - "group": { - "edit": { - "label": "group", - "description": "", - "placeholder": "", - "visible": true, - "editable": true, - "mainField": "name" - }, - "list": { - "label": "group", - "searchable": true, - "sortable": true - } - }, "createdAt": { "edit": { "label": "createdAt", @@ -159,10 +144,6 @@ { "name": "layers", "size": 6 - }, - { - "name": "group", - "size": 6 } ] ] diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##layer.layer.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##layer.layer.json index 9295fa2e..e20dd2ef 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##layer.layer.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##layer.layer.json @@ -147,6 +147,21 @@ "sortable": true } }, + "environment": { + "edit": { + "label": "environment", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "name" + }, + "list": { + "label": "environment", + "searchable": true, + "sortable": true + } + }, "createdAt": { "edit": { "label": "createdAt", @@ -223,6 +238,12 @@ "name": "dataset", "size": 6 }, + { + "name": "environment", + "size": 6 + } + ], + [ { "name": "default", "size": 4 diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json index fec12c21..e4a673ef 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json @@ -316,6 +316,16 @@ { "name": "name", "size": 6 + }, + { + "name": "name_es", + "size": 6 + } + ], + [ + { + "name": "name_fr", + "size": 6 } ], [ @@ -365,16 +375,6 @@ "name": "mpaa_protection_level_stat", "size": 6 }, - { - "name": "name_es", - "size": 6 - } - ], - [ - { - "name": "name_fr", - "size": 6 - }, { "name": "mpaa_fully_highly_protected_area", "size": 4 diff --git a/cms/src/api/dataset-group/content-types/dataset-group/schema.json b/cms/src/api/dataset-group/content-types/dataset-group/schema.json deleted file mode 100644 index cfc0db7e..00000000 --- a/cms/src/api/dataset-group/content-types/dataset-group/schema.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "collectionType", - "collectionName": "dataset_groups", - "info": { - "singularName": "dataset-group", - "pluralName": "dataset-groups", - "displayName": "Dataset Group" - }, - "options": { - "draftAndPublish": false - }, - "pluginOptions": { - "i18n": { - "localized": true - } - }, - "attributes": { - "name": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, - "type": "string", - "required": true, - "unique": true - }, - "slug": { - "pluginOptions": { - "i18n": { - "localized": false - } - }, - "type": "string", - "unique": false, - "required": true - }, - "datasets": { - "type": "relation", - "relation": "oneToMany", - "target": "api::dataset.dataset", - "mappedBy": "group" - } - } -} diff --git a/cms/src/api/dataset-group/controllers/dataset-group.ts b/cms/src/api/dataset-group/controllers/dataset-group.ts deleted file mode 100644 index 82b05560..00000000 --- a/cms/src/api/dataset-group/controllers/dataset-group.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * dataset-group controller - */ - -import { factories } from '@strapi/strapi' - -export default factories.createCoreController('api::dataset-group.dataset-group'); diff --git a/cms/src/api/dataset-group/documentation/1.0.0/dataset-group.json b/cms/src/api/dataset-group/documentation/1.0.0/dataset-group.json deleted file mode 100644 index 1d083b15..00000000 --- a/cms/src/api/dataset-group/documentation/1.0.0/dataset-group.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "/dataset-groups": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DatasetGroupListResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Dataset-group" - ], - "parameters": [ - { - "name": "sort", - "in": "query", - "description": "Sort by attributes ascending (asc) or descending (desc)", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "pagination[withCount]", - "in": "query", - "description": "Return page/pageSize (default: true)", - "deprecated": false, - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "pagination[page]", - "in": "query", - "description": "Page number (default: 0)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "pagination[pageSize]", - "in": "query", - "description": "Page size (default: 25)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "pagination[start]", - "in": "query", - "description": "Offset value (default: 0)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "pagination[limit]", - "in": "query", - "description": "Number of entities to return (default: 25)", - "deprecated": false, - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "fields", - "in": "query", - "description": "Fields to return (ex: title,author)", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "populate", - "in": "query", - "description": "Relations to return", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "filters", - "in": "query", - "description": "Filters to apply", - "deprecated": false, - "required": false, - "schema": { - "type": "object" - }, - "style": "deepObject" - }, - { - "name": "locale", - "in": "query", - "description": "Locale to apply", - "deprecated": false, - "required": false, - "schema": { - "type": "string" - } - } - ], - "operationId": "get/dataset-groups" - }, - "post": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DatasetGroupResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Dataset-group" - ], - "parameters": [], - "operationId": "post/dataset-groups", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DatasetGroupRequest" - } - } - } - } - } - }, - "/dataset-groups/{id}": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DatasetGroupResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Dataset-group" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "get/dataset-groups/{id}" - }, - "put": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DatasetGroupResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Dataset-group" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "put/dataset-groups/{id}", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DatasetGroupRequest" - } - } - } - } - }, - "delete": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "integer", - "format": "int64" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Dataset-group" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "delete/dataset-groups/{id}" - } - }, - "/dataset-groups/{id}/localizations": { - "post": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DatasetGroupLocalizationResponse" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "tags": [ - "Dataset-group" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "post/dataset-groups/{id}/localizations", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/DatasetGroupLocalizationRequest" - } - } - } - } - } - } -} diff --git a/cms/src/api/dataset-group/routes/dataset-group.ts b/cms/src/api/dataset-group/routes/dataset-group.ts deleted file mode 100644 index efcc723c..00000000 --- a/cms/src/api/dataset-group/routes/dataset-group.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * dataset-group router - */ - -import { factories } from '@strapi/strapi'; - -export default factories.createCoreRouter('api::dataset-group.dataset-group'); diff --git a/cms/src/api/dataset-group/services/dataset-group.ts b/cms/src/api/dataset-group/services/dataset-group.ts deleted file mode 100644 index 6718d214..00000000 --- a/cms/src/api/dataset-group/services/dataset-group.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * dataset-group service - */ - -import { factories } from '@strapi/strapi'; - -export default factories.createCoreService('api::dataset-group.dataset-group'); diff --git a/cms/src/api/dataset/content-types/dataset/schema.json b/cms/src/api/dataset/content-types/dataset/schema.json index 448c200c..aae3c369 100644 --- a/cms/src/api/dataset/content-types/dataset/schema.json +++ b/cms/src/api/dataset/content-types/dataset/schema.json @@ -40,12 +40,6 @@ "type": "string", "unique": false, "required": true - }, - "group": { - "type": "relation", - "relation": "manyToOne", - "target": "api::dataset-group.dataset-group", - "inversedBy": "datasets" } } } diff --git a/cms/src/api/layer/content-types/layer/schema.json b/cms/src/api/layer/content-types/layer/schema.json index eb15b6ae..04343adb 100644 --- a/cms/src/api/layer/content-types/layer/schema.json +++ b/cms/src/api/layer/content-types/layer/schema.json @@ -98,6 +98,11 @@ }, "type": "boolean", "default": false + }, + "environment": { + "type": "relation", + "relation": "oneToOne", + "target": "api::environment.environment" } } } diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index 14cbf62b..5e5736bc 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1138,11 +1138,6 @@ export interface ApiDatasetDataset extends Schema.CollectionType { localized: false; }; }>; - group: Attribute.Relation< - 'api::dataset.dataset', - 'manyToOne', - 'api::dataset-group.dataset-group' - >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; publishedAt: Attribute.DateTime; @@ -1167,65 +1162,6 @@ export interface ApiDatasetDataset extends Schema.CollectionType { }; } -export interface ApiDatasetGroupDatasetGroup extends Schema.CollectionType { - collectionName: 'dataset_groups'; - info: { - singularName: 'dataset-group'; - pluralName: 'dataset-groups'; - displayName: 'Dataset Group'; - }; - options: { - draftAndPublish: false; - }; - pluginOptions: { - i18n: { - localized: true; - }; - }; - attributes: { - name: Attribute.String & - Attribute.Required & - Attribute.Unique & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - slug: Attribute.String & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - datasets: Attribute.Relation< - 'api::dataset-group.dataset-group', - 'oneToMany', - 'api::dataset.dataset' - >; - createdAt: Attribute.DateTime; - updatedAt: Attribute.DateTime; - createdBy: Attribute.Relation< - 'api::dataset-group.dataset-group', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - updatedBy: Attribute.Relation< - 'api::dataset-group.dataset-group', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - localizations: Attribute.Relation< - 'api::dataset-group.dataset-group', - 'oneToMany', - 'api::dataset-group.dataset-group' - >; - locale: Attribute.String; - }; -} - export interface ApiEnvironmentEnvironment extends Schema.CollectionType { collectionName: 'environments'; info: { @@ -1576,6 +1512,11 @@ export interface ApiLayerLayer extends Schema.CollectionType { }; }> & Attribute.DefaultTo; + environment: Attribute.Relation< + 'api::layer.layer', + 'oneToOne', + 'api::environment.environment' + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; publishedAt: Attribute.DateTime; @@ -2186,7 +2127,6 @@ declare module '@strapi/types' { 'api::data-tool-language.data-tool-language': ApiDataToolLanguageDataToolLanguage; 'api::data-tool-resource-type.data-tool-resource-type': ApiDataToolResourceTypeDataToolResourceType; 'api::dataset.dataset': ApiDatasetDataset; - 'api::dataset-group.dataset-group': ApiDatasetGroupDatasetGroup; 'api::environment.environment': ApiEnvironmentEnvironment; 'api::fishing-protection-level.fishing-protection-level': ApiFishingProtectionLevelFishingProtectionLevel; 'api::fishing-protection-level-stat.fishing-protection-level-stat': ApiFishingProtectionLevelStatFishingProtectionLevelStat; diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index da185c71..ff00ffcf 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -1292,18 +1292,6 @@ export type StaticIndicatorCreatedByDataAttributesCreatedBy = { data?: StaticIndicatorCreatedByDataAttributesCreatedByData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type StaticIndicatorCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes; @@ -1356,20 +1344,6 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreated data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -1379,6 +1353,18 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermiss data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -1393,9 +1379,6 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermiss data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; @@ -1407,6 +1390,23 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermiss data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -1547,6 +1547,10 @@ export type ProtectionStatusUpdatedBy = { data?: ProtectionStatusUpdatedByData; }; +export type ProtectionStatusCreatedByDataAttributesUpdatedBy = { + data?: ProtectionStatusCreatedByDataAttributesUpdatedByData; +}; + export type ProtectionStatusCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -1580,10 +1584,6 @@ export type ProtectionStatusCreatedByDataAttributesUpdatedByData = { attributes?: ProtectionStatusCreatedByDataAttributesUpdatedByDataAttributes; }; -export type ProtectionStatusCreatedByDataAttributesUpdatedBy = { - data?: ProtectionStatusCreatedByDataAttributesUpdatedByData; -}; - export type ProtectionStatusCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusCreatedByDataAttributesCreatedByData = { @@ -1595,18 +1595,6 @@ export type ProtectionStatusCreatedByDataAttributesCreatedBy = { data?: ProtectionStatusCreatedByDataAttributesCreatedByData; }; -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { - id?: number; - attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; -}; - -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; -}; - export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; @@ -1628,6 +1616,18 @@ export type ProtectionStatusCreatedByDataAttributesRoles = { data?: ProtectionStatusCreatedByDataAttributesRolesDataItem[]; }; +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; +}; + +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +}; + export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1640,20 +1640,6 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreate data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -1705,6 +1691,20 @@ export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermis data?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -1812,6 +1812,23 @@ export type ProtectionCoverageStatUpdatedBy = { data?: ProtectionCoverageStatUpdatedByData; }; +export interface ProtectionCoverageStat { + location?: ProtectionCoverageStatLocation; + year: number; + protectedArea?: number; + protectedAreasCount: number; + environment?: ProtectionCoverageStatEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatCreatedBy; + updatedBy?: ProtectionCoverageStatUpdatedBy; +} + export type ProtectionCoverageStatCreatedByDataAttributes = { [key: string]: any }; export type ProtectionCoverageStatCreatedByData = { @@ -1834,6 +1851,28 @@ export type ProtectionCoverageStatEnvironment = { data?: ProtectionCoverageStatEnvironmentData; }; +export type ProtectionCoverageStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: ProtectionCoverageStatLocationDataAttributesGroups; + members?: ProtectionCoverageStatLocationDataAttributesMembers; + fishing_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stat?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStat; + protection_coverage_stats?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + name_es?: string; + name_fr?: string; + mpaa_fully_highly_protected_area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesUpdatedBy; +}; + export type ProtectionCoverageStatLocationData = { id?: number; attributes?: ProtectionCoverageStatLocationDataAttributes; @@ -1843,23 +1882,6 @@ export type ProtectionCoverageStatLocation = { data?: ProtectionCoverageStatLocationData; }; -export interface ProtectionCoverageStat { - location?: ProtectionCoverageStatLocation; - year: number; - protectedArea?: number; - protectedAreasCount: number; - environment?: ProtectionCoverageStatEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatCreatedBy; - updatedBy?: ProtectionCoverageStatUpdatedBy; -} - export type ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -1886,35 +1908,31 @@ export type ProtectionCoverageStatLocationDataAttributesCreatedBy = { data?: ProtectionCoverageStatLocationDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; -}; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats = { data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; -export type ProtectionCoverageStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: ProtectionCoverageStatLocationDataAttributesGroups; - members?: ProtectionCoverageStatLocationDataAttributesMembers; - fishing_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stat?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStat; - protection_coverage_stats?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea?: number; - terrestrial_bounds?: unknown; - name_es?: string; - name_fr?: string; - mpaa_fully_highly_protected_area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesUpdatedBy; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem = { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; }; export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = @@ -1945,45 +1963,16 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = - { - location?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - year?: number; - protectedArea?: number; - protectedAreasCount?: number; - environment?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = { name?: string; @@ -1996,6 +1985,12 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD locale?: string; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2005,7 +2000,12 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = @@ -2056,6 +2056,17 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatD data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { + mpaa_protection_level?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; +}; + export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2084,46 +2095,22 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatD data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; + }; + export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = { data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { - mpaa_protection_level?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; -}; - export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; - }; - export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2138,6 +2125,19 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatD data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2152,23 +2152,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatD data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; @@ -2187,6 +2170,11 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2201,6 +2189,23 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; @@ -2250,11 +2255,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2269,6 +2269,11 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { firstname?: string; @@ -2296,11 +2301,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -2340,6 +2340,17 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; @@ -2353,6 +2364,15 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; @@ -2372,26 +2392,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; - }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2461,6 +2461,10 @@ export type ProtectionCoverageStatLocationDataAttributesMembers = { data?: ProtectionCoverageStatLocationDataAttributesMembersDataItem[]; }; +export type ProtectionCoverageStatLocationDataAttributesGroups = { + data?: ProtectionCoverageStatLocationDataAttributesGroupsDataItem[]; +}; + export type ProtectionCoverageStatLocationDataAttributesGroupsDataItemAttributes = { [key: string]: any; }; @@ -2470,10 +2474,6 @@ export type ProtectionCoverageStatLocationDataAttributesGroupsDataItem = { attributes?: ProtectionCoverageStatLocationDataAttributesGroupsDataItemAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesGroups = { - data?: ProtectionCoverageStatLocationDataAttributesGroupsDataItem[]; -}; - export type ProtectionCoverageStatListResponseMetaPagination = { page?: number; pageSize?: number; @@ -2497,29 +2497,6 @@ export interface ProtectionCoverageStatListResponse { export type PaResponseMeta = { [key: string]: any }; -export interface Pa { - name: string; - area: number; - year?: number; - protection_status?: PaProtectionStatus; - bbox: unknown; - children?: PaChildren; - data_source?: PaDataSource; - mpaa_establishment_stage?: PaMpaaEstablishmentStage; - location?: PaLocation; - wdpaid?: string; - mpaa_protection_level?: PaMpaaProtectionLevel; - iucn_category?: PaIucnCategory; - designation?: string; - environment?: PaEnvironment; - coverage: number; - parent?: PaParent; - createdAt?: string; - updatedAt?: string; - createdBy?: PaCreatedBy; - updatedBy?: PaUpdatedBy; -} - export interface PaResponseDataObject { id?: number; attributes?: Pa; @@ -2618,6 +2595,29 @@ export type PaMpaaEstablishmentStage = { data?: PaMpaaEstablishmentStageData; }; +export interface Pa { + name: string; + area: number; + year?: number; + protection_status?: PaProtectionStatus; + bbox: unknown; + children?: PaChildren; + data_source?: PaDataSource; + mpaa_establishment_stage?: PaMpaaEstablishmentStage; + location?: PaLocation; + wdpaid?: string; + mpaa_protection_level?: PaMpaaProtectionLevel; + iucn_category?: PaIucnCategory; + designation?: string; + environment?: PaEnvironment; + coverage: number; + parent?: PaParent; + createdAt?: string; + updatedAt?: string; + createdBy?: PaCreatedBy; + updatedBy?: PaUpdatedBy; +} + export type PaDataSourceDataAttributes = { [key: string]: any }; export type PaDataSourceData = { @@ -2629,6 +2629,29 @@ export type PaDataSource = { data?: PaDataSourceData; }; +export type PaChildrenDataItemAttributes = { + name?: string; + area?: number; + year?: number; + protection_status?: PaChildrenDataItemAttributesProtectionStatus; + bbox?: unknown; + children?: PaChildrenDataItemAttributesChildren; + data_source?: PaChildrenDataItemAttributesDataSource; + mpaa_establishment_stage?: PaChildrenDataItemAttributesMpaaEstablishmentStage; + location?: PaChildrenDataItemAttributesLocation; + wdpaid?: string; + mpaa_protection_level?: PaChildrenDataItemAttributesMpaaProtectionLevel; + iucn_category?: PaChildrenDataItemAttributesIucnCategory; + designation?: string; + environment?: PaChildrenDataItemAttributesEnvironment; + coverage?: number; + parent?: PaChildrenDataItemAttributesParent; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesUpdatedBy; +}; + export type PaChildrenDataItem = { id?: number; attributes?: PaChildrenDataItemAttributes; @@ -2671,38 +2694,35 @@ export type PaChildrenDataItemAttributesParent = { data?: PaChildrenDataItemAttributesParentData; }; +export type PaChildrenDataItemAttributesEnvironmentDataAttributes = { [key: string]: any }; + +export type PaChildrenDataItemAttributesEnvironmentData = { + id?: number; + attributes?: PaChildrenDataItemAttributesEnvironmentDataAttributes; +}; + export type PaChildrenDataItemAttributesEnvironment = { data?: PaChildrenDataItemAttributesEnvironmentData; }; -export type PaChildrenDataItemAttributes = { +export type PaChildrenDataItemAttributesIucnCategory = { + data?: PaChildrenDataItemAttributesIucnCategoryData; +}; + +export type PaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations = { + data?: unknown[]; +}; + +export type PaChildrenDataItemAttributesIucnCategoryDataAttributes = { + slug?: string; name?: string; - area?: number; - year?: number; - protection_status?: PaChildrenDataItemAttributesProtectionStatus; - bbox?: unknown; - children?: PaChildrenDataItemAttributesChildren; - data_source?: PaChildrenDataItemAttributesDataSource; - mpaa_establishment_stage?: PaChildrenDataItemAttributesMpaaEstablishmentStage; - location?: PaChildrenDataItemAttributesLocation; - wdpaid?: string; - mpaa_protection_level?: PaChildrenDataItemAttributesMpaaProtectionLevel; - iucn_category?: PaChildrenDataItemAttributesIucnCategory; - designation?: string; - environment?: PaChildrenDataItemAttributesEnvironment; - coverage?: number; - parent?: PaChildrenDataItemAttributesParent; + info?: string; createdAt?: string; updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesUpdatedBy; -}; - -export type PaChildrenDataItemAttributesEnvironmentDataAttributes = { [key: string]: any }; - -export type PaChildrenDataItemAttributesEnvironmentData = { - id?: number; - attributes?: PaChildrenDataItemAttributesEnvironmentDataAttributes; + createdBy?: PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations; + locale?: string; }; export type PaChildrenDataItemAttributesIucnCategoryData = { @@ -2710,14 +2730,6 @@ export type PaChildrenDataItemAttributesIucnCategoryData = { attributes?: PaChildrenDataItemAttributesIucnCategoryDataAttributes; }; -export type PaChildrenDataItemAttributesIucnCategory = { - data?: PaChildrenDataItemAttributesIucnCategoryData; -}; - -export type PaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations = { - data?: unknown[]; -}; - export type PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -2731,18 +2743,6 @@ export type PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedBy = { data?: PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByData; }; -export type PaChildrenDataItemAttributesIucnCategoryDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedBy; - localizations?: PaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations; - locale?: string; -}; - export type PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -2767,11 +2767,6 @@ export type PaChildrenDataItemAttributesMpaaProtectionLevel = { data?: PaChildrenDataItemAttributesMpaaProtectionLevelData; }; -export type PaChildrenDataItemAttributesLocationData = { - id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributes; -}; - export type PaChildrenDataItemAttributesLocation = { data?: PaChildrenDataItemAttributesLocationData; }; @@ -2802,24 +2797,6 @@ export type PaChildrenDataItemAttributesLocationDataAttributesCreatedBy = { data?: PaChildrenDataItemAttributesLocationDataAttributesCreatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes = - { - location?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - year?: number; - protectedArea?: number; - protectedAreasCount?: number; - environment?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; - }; - export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -2851,6 +2828,11 @@ export type PaChildrenDataItemAttributesLocationDataAttributes = { updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedBy; }; +export type PaChildrenDataItemAttributesLocationData = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributes; +}; + export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2884,27 +2866,27 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { - name?: string; - slug?: string; + location?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; createdAt?: string; updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; - locale?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; }; -export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { - id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + data?: unknown[]; }; export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = @@ -2935,6 +2917,24 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; + +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = + { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + }; + export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -2949,6 +2949,23 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributes = + { + mpaa_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + location?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + }; + +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatData = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributes; +}; + export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStat = { data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatData; }; @@ -2995,31 +3012,33 @@ export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLeve data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; + data?: unknown[]; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = { - mpaa_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - location?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + slug?: string; + name?: string; + info?: string; createdAt?: string; updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatData = { - id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributes; -}; +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; + }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = { - data?: unknown[]; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; }; export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = @@ -3036,25 +3055,6 @@ export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLeve data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = - { - id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; - }; - export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3069,18 +3069,6 @@ export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLeve data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; @@ -3119,16 +3107,39 @@ export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionL data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = + { + data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + }; + export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; @@ -3142,12 +3153,6 @@ export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionL locale?: string; }; -export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3157,11 +3162,6 @@ export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionL attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = - { - data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; - }; - export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3265,6 +3265,11 @@ export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCrea data?: PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByData; }; +export type PaChildrenDataItemAttributesDataSourceData = { + id?: number; + attributes?: PaChildrenDataItemAttributesDataSourceDataAttributes; +}; + export type PaChildrenDataItemAttributesDataSource = { data?: PaChildrenDataItemAttributesDataSourceData; }; @@ -3311,11 +3316,6 @@ export type PaChildrenDataItemAttributesDataSourceDataAttributes = { locale?: string; }; -export type PaChildrenDataItemAttributesDataSourceData = { - id?: number; - attributes?: PaChildrenDataItemAttributesDataSourceDataAttributes; -}; - export type PaChildrenDataItemAttributesChildrenDataItemAttributes = { [key: string]: any }; export type PaChildrenDataItemAttributesChildrenDataItem = { @@ -3396,34 +3396,29 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy = { data?: PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByData; }; -export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy = { - data?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; }; -export type PaProtectionStatusDataAttributesCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: PaProtectionStatusDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy = { + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData; }; -export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByDataAttributes; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem = { @@ -3435,6 +3430,23 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesRoles = { data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem[]; }; +export type PaProtectionStatusDataAttributesCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: PaProtectionStatusDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy; +}; + export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3463,6 +3475,20 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -3474,18 +3500,6 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3528,20 +3542,6 @@ export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -3583,22 +3583,6 @@ export interface MpaaProtectionLevelStatResponse { meta?: MpaaProtectionLevelStatResponseMeta; } -export interface MpaaProtectionLevelStat { - mpaa_protection_level?: MpaaProtectionLevelStatMpaaProtectionLevel; - area: number; - percentage?: number; - location?: MpaaProtectionLevelStatLocation; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatCreatedBy; - updatedBy?: MpaaProtectionLevelStatUpdatedBy; -} - -export interface MpaaProtectionLevelStatResponseDataObject { - id?: number; - attributes?: MpaaProtectionLevelStat; -} - export type MpaaProtectionLevelStatUpdatedByDataAttributes = { [key: string]: any }; export type MpaaProtectionLevelStatUpdatedByData = { @@ -3621,6 +3605,31 @@ export type MpaaProtectionLevelStatCreatedBy = { data?: MpaaProtectionLevelStatCreatedByData; }; +export interface MpaaProtectionLevelStat { + mpaa_protection_level?: MpaaProtectionLevelStatMpaaProtectionLevel; + area: number; + percentage?: number; + location?: MpaaProtectionLevelStatLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatCreatedBy; + updatedBy?: MpaaProtectionLevelStatUpdatedBy; +} + +export interface MpaaProtectionLevelStatResponseDataObject { + id?: number; + attributes?: MpaaProtectionLevelStat; +} + +export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByData = { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; +}; + +export type MpaaProtectionLevelStatLocationDataAttributesUpdatedBy = { + data?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByData; +}; + export type MpaaProtectionLevelStatLocationDataAttributes = { code?: string; name?: string; @@ -3656,15 +3665,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes [key: string]: any; }; -export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; -}; - -export type MpaaProtectionLevelStatLocationDataAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByData; -}; - export type MpaaProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -3678,6 +3678,24 @@ export type MpaaProtectionLevelStatLocationDataAttributesCreatedBy = { data?: MpaaProtectionLevelStatLocationDataAttributesCreatedByData; }; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -3701,24 +3719,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = - { - location?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - year?: number; - protectedArea?: number; - protectedAreasCount?: number; - environment?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; - }; - export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3733,30 +3733,11 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = - { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; - }; - export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; - }; - export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = { name?: string; @@ -3775,6 +3756,25 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = + { + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = + { + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + }; + export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3803,17 +3803,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { - mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; -}; - export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData = { id?: number; attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; @@ -3837,6 +3826,22 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; }; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = + { + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { + mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; +}; + export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3846,11 +3851,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; - }; - export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = { [key: string]: any }; @@ -3879,6 +3879,11 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; }; +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; +}; + export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats = { data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; }; @@ -3928,35 +3933,11 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; -}; - export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3985,6 +3966,25 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -4025,22 +4025,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesGroups = { data?: MpaaProtectionLevelStatLocationDataAttributesGroupsDataItem[]; }; -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesLocalizations = { - data?: unknown[]; -}; - -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; -}; - export type MpaaProtectionLevelStatMpaaProtectionLevelData = { id?: number; attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes; @@ -4050,6 +4034,10 @@ export type MpaaProtectionLevelStatMpaaProtectionLevel = { data?: MpaaProtectionLevelStatMpaaProtectionLevelData; }; +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesLocalizations = { + data?: unknown[]; +}; + export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -4063,23 +4051,6 @@ export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedBy = data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; -}; - export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributes; @@ -4089,6 +4060,18 @@ export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedBy = data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByData; }; +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; +}; + export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4117,6 +4100,27 @@ export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDat data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRoles = { + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; +}; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; +}; + export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4131,6 +4135,20 @@ export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDat data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = + { + id?: number; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + }; + +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = + { + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + }; + export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; @@ -4150,22 +4168,15 @@ export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDat attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRoles = { - data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; -}; - -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = @@ -4196,17 +4207,6 @@ export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDat export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -4272,6 +4272,11 @@ export interface MpaaProtectionLevelStatListResponse { export type MpaaProtectionLevelResponseMeta = { [key: string]: any }; +export interface MpaaProtectionLevelResponseDataObject { + id?: number; + attributes?: MpaaProtectionLevel; +} + export interface MpaaProtectionLevelResponse { data?: MpaaProtectionLevelResponseDataObject; meta?: MpaaProtectionLevelResponseMeta; @@ -4281,6 +4286,26 @@ export type MpaaProtectionLevelLocalizations = { data?: MpaaProtectionLevel[]; }; +export type MpaaProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; + +export type MpaaProtectionLevelUpdatedByData = { + id?: number; + attributes?: MpaaProtectionLevelUpdatedByDataAttributes; +}; + +export type MpaaProtectionLevelUpdatedBy = { + data?: MpaaProtectionLevelUpdatedByData; +}; + +export type MpaaProtectionLevelCreatedByData = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributes; +}; + +export type MpaaProtectionLevelCreatedBy = { + data?: MpaaProtectionLevelCreatedByData; +}; + export interface MpaaProtectionLevel { slug: string; name: string; @@ -4293,20 +4318,13 @@ export interface MpaaProtectionLevel { locale?: string; } -export interface MpaaProtectionLevelResponseDataObject { - id?: number; - attributes?: MpaaProtectionLevel; -} - -export type MpaaProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; - -export type MpaaProtectionLevelUpdatedByData = { - id?: number; - attributes?: MpaaProtectionLevelUpdatedByDataAttributes; +export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { + [key: string]: any; }; -export type MpaaProtectionLevelUpdatedBy = { - data?: MpaaProtectionLevelUpdatedByData; +export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByData = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes; }; export type MpaaProtectionLevelCreatedByDataAttributesUpdatedBy = { @@ -4330,24 +4348,6 @@ export type MpaaProtectionLevelCreatedByDataAttributes = { updatedBy?: MpaaProtectionLevelCreatedByDataAttributesUpdatedBy; }; -export type MpaaProtectionLevelCreatedByData = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributes; -}; - -export type MpaaProtectionLevelCreatedBy = { - data?: MpaaProtectionLevelCreatedByData; -}; - -export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes; -}; - export type MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -4382,6 +4382,18 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpd data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -4394,20 +4406,13 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCre data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions = { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = @@ -4466,11 +4471,6 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPer updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; -}; - export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -4504,11 +4504,6 @@ export interface MpaaProtectionLevelListResponse { meta?: MpaaProtectionLevelListResponseMeta; } -export interface MpaaProtectionLevelLocalizationListResponse { - data?: MpaaProtectionLevelListResponseDataItemLocalized[]; - meta?: MpaaProtectionLevelLocalizationListResponseMeta; -} - export type MpaaProtectionLevelLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -4525,6 +4520,11 @@ export interface MpaaProtectionLevelListResponseDataItemLocalized { attributes?: MpaaProtectionLevel; } +export interface MpaaProtectionLevelLocalizationListResponse { + data?: MpaaProtectionLevelListResponseDataItemLocalized[]; + meta?: MpaaProtectionLevelLocalizationListResponseMeta; +} + export type MpaaProtectionLevelLocalizationResponseMeta = { [key: string]: any }; export interface MpaaProtectionLevelResponseDataObjectLocalized { @@ -4557,11 +4557,6 @@ export interface MpaaProtectionLevelLocalizationRequest { export type MpaaEstablishmentStageResponseMeta = { [key: string]: any }; -export interface MpaaEstablishmentStageResponseDataObject { - id?: number; - attributes?: MpaaEstablishmentStage; -} - export interface MpaaEstablishmentStageResponse { data?: MpaaEstablishmentStageResponseDataObject; meta?: MpaaEstablishmentStageResponseMeta; @@ -4603,7 +4598,12 @@ export interface MpaaEstablishmentStage { locale?: string; } -export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedByDataAttributes = { +export interface MpaaEstablishmentStageResponseDataObject { + id?: number; + attributes?: MpaaEstablishmentStage; +} + +export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -4616,6 +4616,23 @@ export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedBy = { data?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedByData; }; +export type MpaaEstablishmentStageCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaaEstablishmentStageCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedBy; +}; + export type MpaaEstablishmentStageCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -4638,23 +4655,6 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRoles = { data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem[]; }; -export type MpaaEstablishmentStageCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaaEstablishmentStageCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedBy; -}; - export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4667,6 +4667,9 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; @@ -4688,8 +4691,10 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { @@ -4724,11 +4729,6 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -4843,11 +4843,6 @@ export interface MpaaEstablishmentStageLocalizationRequest { export type MpaIucnCategoryResponseMeta = { [key: string]: any }; -export interface MpaIucnCategoryResponse { - data?: MpaIucnCategoryResponseDataObject; - meta?: MpaIucnCategoryResponseMeta; -} - export type MpaIucnCategoryLocalizations = { data?: MpaIucnCategory[]; }; @@ -4869,6 +4864,11 @@ export interface MpaIucnCategoryResponseDataObject { attributes?: MpaIucnCategory; } +export interface MpaIucnCategoryResponse { + data?: MpaIucnCategoryResponseDataObject; + meta?: MpaIucnCategoryResponseMeta; +} + export type MpaIucnCategoryUpdatedByDataAttributes = { [key: string]: any }; export type MpaIucnCategoryUpdatedByData = { @@ -4880,23 +4880,6 @@ export type MpaIucnCategoryUpdatedBy = { data?: MpaIucnCategoryUpdatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaIucnCategoryCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedByDataAttributesCreatedBy; - updatedBy?: MpaIucnCategoryCreatedByDataAttributesUpdatedBy; -}; - export type MpaIucnCategoryCreatedByData = { id?: number; attributes?: MpaIucnCategoryCreatedByDataAttributes; @@ -4937,6 +4920,23 @@ export type MpaIucnCategoryCreatedByDataAttributesRoles = { data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItem[]; }; +export type MpaIucnCategoryCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaIucnCategoryCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaIucnCategoryCreatedByDataAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesUpdatedBy; +}; + export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -4950,18 +4950,6 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdated data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -4975,6 +4963,20 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreated data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -4984,6 +4986,18 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermiss data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4998,20 +5012,6 @@ export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermiss data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5203,10 +5203,6 @@ export type LocationMpaaProtectionLevelStat = { data?: LocationMpaaProtectionLevelStatData; }; -export type LocationFishingProtectionLevelStats = { - data?: LocationFishingProtectionLevelStatsDataItem[]; -}; - export type LocationFishingProtectionLevelStatsDataItemAttributes = { [key: string]: any }; export type LocationFishingProtectionLevelStatsDataItem = { @@ -5214,6 +5210,10 @@ export type LocationFishingProtectionLevelStatsDataItem = { attributes?: LocationFishingProtectionLevelStatsDataItemAttributes; }; +export type LocationFishingProtectionLevelStats = { + data?: LocationFishingProtectionLevelStatsDataItem[]; +}; + export type LocationMembersDataItemAttributes = { [key: string]: any }; export type LocationMembersDataItem = { @@ -5300,23 +5300,6 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes = { - location?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation; - year?: number; - protectedArea?: number; - protectedAreasCount?: number; - environment?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; -}; - export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5357,6 +5340,23 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes = { + location?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; +}; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -5385,6 +5385,12 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData = + { + id?: number; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; + }; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation = { data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; @@ -5392,12 +5398,6 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; - }; - export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributes = { mpaa_protection_level?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; area?: number; @@ -5569,6 +5569,20 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: unknown[]; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = + { + id?: number; + attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; + }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; @@ -5588,20 +5602,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = - { - data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { firstname?: string; @@ -5659,6 +5659,19 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -5723,23 +5736,10 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; @@ -5764,11 +5764,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = - { - data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -5778,6 +5773,11 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -5886,6 +5886,11 @@ export interface DocumentationMetadataComponent { export type LayerResponseMeta = { [key: string]: any }; +export interface LayerResponseDataObject { + id?: number; + attributes?: Layer; +} + export interface LayerResponse { data?: LayerResponseDataObject; meta?: LayerResponseMeta; @@ -5895,6 +5900,28 @@ export type LayerLocalizations = { data?: Layer[]; }; +export type LayerUpdatedByDataAttributes = { [key: string]: any }; + +export type LayerUpdatedByData = { + id?: number; + attributes?: LayerUpdatedByDataAttributes; +}; + +export type LayerUpdatedBy = { + data?: LayerUpdatedByData; +}; + +export type LayerCreatedByDataAttributes = { [key: string]: any }; + +export type LayerCreatedByData = { + id?: number; + attributes?: LayerCreatedByDataAttributes; +}; + +export type LayerCreatedBy = { + data?: LayerCreatedByData; +}; + export interface Layer { title: string; type?: LayerType; @@ -5905,6 +5932,7 @@ export interface Layer { dataset?: LayerDataset; legend_config?: LegendLegendComponent; default?: boolean; + environment?: LayerEnvironment; createdAt?: string; updatedAt?: string; publishedAt?: string; @@ -5914,31 +5942,20 @@ export interface Layer { locale?: string; } -export interface LayerResponseDataObject { - id?: number; - attributes?: Layer; -} - -export type LayerUpdatedByDataAttributes = { [key: string]: any }; +export type LayerEnvironmentDataAttributes = { [key: string]: any }; -export type LayerUpdatedByData = { +export type LayerEnvironmentData = { id?: number; - attributes?: LayerUpdatedByDataAttributes; + attributes?: LayerEnvironmentDataAttributes; }; -export type LayerUpdatedBy = { - data?: LayerUpdatedByData; +export type LayerEnvironment = { + data?: LayerEnvironmentData; }; -export type LayerCreatedByDataAttributes = { [key: string]: any }; - -export type LayerCreatedByData = { +export type LayerDatasetData = { id?: number; - attributes?: LayerCreatedByDataAttributes; -}; - -export type LayerCreatedBy = { - data?: LayerCreatedByData; + attributes?: LayerDatasetDataAttributes; }; export type LayerDataset = { @@ -5949,25 +5966,6 @@ export type LayerDatasetDataAttributesLocalizations = { data?: unknown[]; }; -export type LayerDatasetDataAttributes = { - name?: string; - layers?: LayerDatasetDataAttributesLayers; - slug?: string; - group?: LayerDatasetDataAttributesGroup; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: LayerDatasetDataAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesUpdatedBy; - localizations?: LayerDatasetDataAttributesLocalizations; - locale?: string; -}; - -export type LayerDatasetData = { - id?: number; - attributes?: LayerDatasetDataAttributes; -}; - export type LayerDatasetDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type LayerDatasetDataAttributesUpdatedByData = { @@ -5990,72 +5988,65 @@ export type LayerDatasetDataAttributesCreatedBy = { data?: LayerDatasetDataAttributesCreatedByData; }; -export type LayerDatasetDataAttributesGroup = { - data?: LayerDatasetDataAttributesGroupData; +export type LayerDatasetDataAttributesLayersDataItem = { + id?: number; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributes; }; -export type LayerDatasetDataAttributesGroupDataAttributesLocalizations = { - data?: unknown[]; +export type LayerDatasetDataAttributesLayers = { + data?: LayerDatasetDataAttributesLayersDataItem[]; }; -export type LayerDatasetDataAttributesGroupDataAttributes = { +export type LayerDatasetDataAttributes = { name?: string; + layers?: LayerDatasetDataAttributesLayers; slug?: string; - datasets?: LayerDatasetDataAttributesGroupDataAttributesDatasets; createdAt?: string; updatedAt?: string; - createdBy?: LayerDatasetDataAttributesGroupDataAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesGroupDataAttributesUpdatedBy; - localizations?: LayerDatasetDataAttributesGroupDataAttributesLocalizations; + publishedAt?: string; + createdBy?: LayerDatasetDataAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesUpdatedBy; + localizations?: LayerDatasetDataAttributesLocalizations; locale?: string; }; -export type LayerDatasetDataAttributesGroupData = { - id?: number; - attributes?: LayerDatasetDataAttributesGroupDataAttributes; +export type LayerDatasetDataAttributesLayersDataItemAttributesLocalizations = { + data?: unknown[]; }; -export type LayerDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes = { +export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; -export type LayerDatasetDataAttributesGroupDataAttributesUpdatedByData = { +export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData = { id?: number; - attributes?: LayerDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes; }; -export type LayerDatasetDataAttributesGroupDataAttributesUpdatedBy = { - data?: LayerDatasetDataAttributesGroupDataAttributesUpdatedByData; +export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedBy = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData; }; -export type LayerDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes = { +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; -export type LayerDatasetDataAttributesGroupDataAttributesCreatedByData = { +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByData = { id?: number; - attributes?: LayerDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes; -}; - -export type LayerDatasetDataAttributesGroupDataAttributesCreatedBy = { - data?: LayerDatasetDataAttributesGroupDataAttributesCreatedByData; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributes; }; -export type LayerDatasetDataAttributesGroupDataAttributesDatasetsDataItemAttributes = { - [key: string]: any; +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedBy = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByData; }; -export type LayerDatasetDataAttributesGroupDataAttributesDatasetsDataItem = { +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentData = { id?: number; - attributes?: LayerDatasetDataAttributesGroupDataAttributesDatasetsDataItemAttributes; -}; - -export type LayerDatasetDataAttributesGroupDataAttributesDatasets = { - data?: LayerDatasetDataAttributesGroupDataAttributesDatasetsDataItem[]; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesLocalizations = { - data?: unknown[]; +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironment = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentData; }; export type LayerDatasetDataAttributesLayersDataItemAttributes = { @@ -6068,6 +6059,7 @@ export type LayerDatasetDataAttributesLayersDataItemAttributes = { dataset?: LayerDatasetDataAttributesLayersDataItemAttributesDataset; legend_config?: LayerDatasetDataAttributesLayersDataItemAttributesLegendConfig; default?: boolean; + environment?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironment; createdAt?: string; updatedAt?: string; publishedAt?: string; @@ -6077,210 +6069,222 @@ export type LayerDatasetDataAttributesLayersDataItemAttributes = { locale?: string; }; -export type LayerDatasetDataAttributesLayersDataItem = { - id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributes; -}; - -export type LayerDatasetDataAttributesLayers = { - data?: LayerDatasetDataAttributesLayersDataItem[]; -}; +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesLocalizations = + { + data?: unknown[]; + }; -export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; -export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData = { - id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes; -}; +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesUpdatedByData = + { + id?: number; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + }; -export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByData; +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesUpdatedBy = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByData = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByData = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByData; +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedBy = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributes = { + name?: string; + slug?: string; createdAt?: string; updatedAt?: string; - createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy; -}; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByData = { - id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributes; -}; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByData; + createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData; -}; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesUpdatedBy = { - name?: string; - code?: string; - description?: string; - users?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesUpdatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItem = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { - id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesUpdatedBy; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRoles = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItem[]; -}; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesCreatedByData = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesCreatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesCreatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRoles = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; actionParameters?: unknown; subject?: string; properties?: unknown; conditions?: unknown; - role?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + role?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = + { + id?: number; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + }; + +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = + { + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + }; + +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = +export type LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; + data?: LayerDatasetDataAttributesLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; export type LayerDatasetDataAttributesLayersDataItemAttributesLegendConfigItemsItem = { @@ -6404,6 +6408,8 @@ export interface LayerLocalizationResponse { meta?: LayerLocalizationResponseMeta; } +export type LayerRequestDataEnvironment = number | string; + export type LayerRequestDataDataset = number | string; export type LayerRequestDataType = (typeof LayerRequestDataType)[keyof typeof LayerRequestDataType]; @@ -6425,6 +6431,7 @@ export type LayerRequestData = { dataset?: LayerRequestDataDataset; legend_config?: LegendLegendComponent; default?: boolean; + environment?: LayerRequestDataEnvironment; locale?: string; }; @@ -6432,6 +6439,8 @@ export interface LayerRequest { data: LayerRequestData; } +export type LayerLocalizationRequestEnvironment = number | string; + export type LayerLocalizationRequestDataset = number | string; export type LayerLocalizationRequestType = @@ -6454,23 +6463,17 @@ export interface LayerLocalizationRequest { dataset?: LayerLocalizationRequestDataset; legend_config?: LegendLegendComponent; default?: boolean; + environment?: LayerLocalizationRequestEnvironment; locale: string; } export type HabitatStatResponseMeta = { [key: string]: any }; -export interface HabitatStatResponseDataObject { - id?: number; - attributes?: HabitatStat; -} - export interface HabitatStatResponse { data?: HabitatStatResponseDataObject; meta?: HabitatStatResponseMeta; } -export type HabitatStatUpdatedByDataAttributes = { [key: string]: any }; - export type HabitatStatUpdatedByData = { id?: number; attributes?: HabitatStatUpdatedByDataAttributes; @@ -6493,6 +6496,13 @@ export interface HabitatStat { updatedBy?: HabitatStatUpdatedBy; } +export interface HabitatStatResponseDataObject { + id?: number; + attributes?: HabitatStat; +} + +export type HabitatStatUpdatedByDataAttributes = { [key: string]: any }; + export type HabitatStatCreatedByDataAttributes = { [key: string]: any }; export type HabitatStatCreatedByData = { @@ -6523,17 +6533,6 @@ export type HabitatStatHabitatDataAttributesLocalizations = { data?: unknown[]; }; -export type HabitatStatHabitatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type HabitatStatHabitatDataAttributesUpdatedByData = { - id?: number; - attributes?: HabitatStatHabitatDataAttributesUpdatedByDataAttributes; -}; - -export type HabitatStatHabitatDataAttributesUpdatedBy = { - data?: HabitatStatHabitatDataAttributesUpdatedByData; -}; - export type HabitatStatHabitatDataAttributes = { slug?: string; name?: string; @@ -6551,6 +6550,17 @@ export type HabitatStatHabitatData = { attributes?: HabitatStatHabitatDataAttributes; }; +export type HabitatStatHabitatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type HabitatStatHabitatDataAttributesUpdatedByData = { + id?: number; + attributes?: HabitatStatHabitatDataAttributesUpdatedByDataAttributes; +}; + +export type HabitatStatHabitatDataAttributesUpdatedBy = { + data?: HabitatStatHabitatDataAttributesUpdatedByData; +}; + export type HabitatStatHabitatDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type HabitatStatHabitatDataAttributesCreatedByData = { @@ -6562,10 +6572,32 @@ export type HabitatStatHabitatDataAttributesCreatedBy = { data?: HabitatStatHabitatDataAttributesCreatedByData; }; -export type HabitatStatLocationData = { - id?: number; - attributes?: HabitatStatLocationDataAttributes; -}; +export type HabitatStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: HabitatStatLocationDataAttributesGroups; + members?: HabitatStatLocationDataAttributesMembers; + fishing_protection_level_stats?: HabitatStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stat?: HabitatStatLocationDataAttributesMpaaProtectionLevelStat; + protection_coverage_stats?: HabitatStatLocationDataAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + name_es?: string; + name_fr?: string; + mpaa_fully_highly_protected_area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesUpdatedBy; +}; + +export type HabitatStatLocationData = { + id?: number; + attributes?: HabitatStatLocationDataAttributes; +}; export type HabitatStatLocation = { data?: HabitatStatLocationData; @@ -6593,23 +6625,6 @@ export type HabitatStatLocationDataAttributesCreatedBy = { data?: HabitatStatLocationDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { - location?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - year?: number; - protectedArea?: number; - protectedAreasCount?: number; - environment?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; - coverage?: number; - pas?: number; - oecms?: number; - is_last_year?: boolean; - global_contribution?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; -}; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -6619,28 +6634,6 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStats = { data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; -export type HabitatStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: HabitatStatLocationDataAttributesGroups; - members?: HabitatStatLocationDataAttributesMembers; - fishing_protection_level_stats?: HabitatStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stat?: HabitatStatLocationDataAttributesMpaaProtectionLevelStat; - protection_coverage_stats?: HabitatStatLocationDataAttributesProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea?: number; - terrestrial_bounds?: unknown; - name_es?: string; - name_fr?: string; - mpaa_fully_highly_protected_area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesUpdatedBy; -}; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6654,6 +6647,27 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = { + data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; +}; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { + location?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; +}; + export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6663,27 +6677,6 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = { - data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; -}; - -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = - { - name?: string; - slug?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; - locale?: string; - }; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; @@ -6695,6 +6688,14 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = + { + data?: unknown[]; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; @@ -6706,8 +6707,17 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6792,6 +6802,24 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttribut data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = + { + data?: unknown[]; + }; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = { id?: number; @@ -6803,14 +6831,6 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttribut data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; @@ -6822,6 +6842,9 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttribut data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6836,30 +6859,6 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttribut data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { location?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; fishing_protection_level?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; @@ -6883,6 +6882,17 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStats = { export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6897,6 +6907,24 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = + { + data?: unknown[]; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; @@ -6908,11 +6936,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6938,19 +6961,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6979,11 +6989,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { firstname?: string; @@ -7002,34 +7007,11 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; @@ -7049,15 +7031,32 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = @@ -7088,6 +7087,17 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7189,6 +7199,11 @@ export interface HabitatStatListResponse { export type HabitatResponseMeta = { [key: string]: any }; +export interface HabitatResponseDataObject { + id?: number; + attributes?: Habitat; +} + export interface HabitatResponse { data?: HabitatResponseDataObject; meta?: HabitatResponseMeta; @@ -7209,6 +7224,15 @@ export type HabitatUpdatedBy = { data?: HabitatUpdatedByData; }; +export type HabitatCreatedByData = { + id?: number; + attributes?: HabitatCreatedByDataAttributes; +}; + +export type HabitatCreatedBy = { + data?: HabitatCreatedByData; +}; + export interface Habitat { slug: string; name: string; @@ -7221,37 +7245,6 @@ export interface Habitat { locale?: string; } -export interface HabitatResponseDataObject { - id?: number; - attributes?: Habitat; -} - -export type HabitatCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: HabitatCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatCreatedByDataAttributesCreatedBy; - updatedBy?: HabitatCreatedByDataAttributesUpdatedBy; -}; - -export type HabitatCreatedByData = { - id?: number; - attributes?: HabitatCreatedByDataAttributes; -}; - -export type HabitatCreatedBy = { - data?: HabitatCreatedByData; -}; - export type HabitatCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type HabitatCreatedByDataAttributesUpdatedByData = { @@ -7295,6 +7288,23 @@ export type HabitatCreatedByDataAttributesRoles = { data?: HabitatCreatedByDataAttributesRolesDataItem[]; }; +export type HabitatCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: HabitatCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesUpdatedBy; +}; + export type HabitatCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -7344,6 +7354,24 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsData data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; +export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = + { + data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + }; + +export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; +}; + export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7353,11 +7381,6 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsData attributes?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; - }; - export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -7372,19 +7395,6 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsData data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; -}; - export type HabitatCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -7472,6 +7482,17 @@ export interface HabitatLocalizationRequest { export type FishingProtectionLevelStatResponseMeta = { [key: string]: any }; +export interface FishingProtectionLevelStat { + location?: FishingProtectionLevelStatLocation; + fishing_protection_level?: FishingProtectionLevelStatFishingProtectionLevel; + area: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatCreatedBy; + updatedBy?: FishingProtectionLevelStatUpdatedBy; +} + export interface FishingProtectionLevelStatResponseDataObject { id?: number; attributes?: FishingProtectionLevelStat; @@ -7504,6 +7525,10 @@ export type FishingProtectionLevelStatCreatedBy = { data?: FishingProtectionLevelStatCreatedByData; }; +export type FishingProtectionLevelStatFishingProtectionLevel = { + data?: FishingProtectionLevelStatFishingProtectionLevelData; +}; + export type FishingProtectionLevelStatFishingProtectionLevelDataAttributes = { [key: string]: any }; export type FishingProtectionLevelStatFishingProtectionLevelData = { @@ -7511,10 +7536,6 @@ export type FishingProtectionLevelStatFishingProtectionLevelData = { attributes?: FishingProtectionLevelStatFishingProtectionLevelDataAttributes; }; -export type FishingProtectionLevelStatFishingProtectionLevel = { - data?: FishingProtectionLevelStatFishingProtectionLevelData; -}; - export type FishingProtectionLevelStatLocationData = { id?: number; attributes?: FishingProtectionLevelStatLocationDataAttributes; @@ -7524,17 +7545,6 @@ export type FishingProtectionLevelStatLocation = { data?: FishingProtectionLevelStatLocationData; }; -export interface FishingProtectionLevelStat { - location?: FishingProtectionLevelStatLocation; - fishing_protection_level?: FishingProtectionLevelStatFishingProtectionLevel; - area: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatCreatedBy; - updatedBy?: FishingProtectionLevelStatUpdatedBy; -} - export type FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -7548,28 +7558,6 @@ export type FishingProtectionLevelStatLocationDataAttributesUpdatedBy = { data?: FishingProtectionLevelStatLocationDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: FishingProtectionLevelStatLocationDataAttributesGroups; - members?: FishingProtectionLevelStatLocationDataAttributesMembers; - fishing_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stat?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat; - protection_coverage_stats?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea?: number; - terrestrial_bounds?: unknown; - name_es?: string; - name_fr?: string; - mpaa_fully_highly_protected_area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesUpdatedBy; -}; - export type FishingProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -7592,6 +7580,28 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; +export type FishingProtectionLevelStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: FishingProtectionLevelStatLocationDataAttributesGroups; + members?: FishingProtectionLevelStatLocationDataAttributesMembers; + fishing_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stat?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat; + protection_coverage_stats?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + name_es?: string; + name_fr?: string; + mpaa_fully_highly_protected_area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesUpdatedBy; +}; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7638,12 +7648,6 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; - }; - export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; @@ -7654,6 +7658,24 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: unknown[]; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7682,18 +7704,6 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = - { - name?: string; - slug?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; - locale?: string; - }; - export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -7708,6 +7718,18 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = + { + mpaa_protection_level?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + location?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData = { id?: number; attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; @@ -7759,29 +7781,6 @@ export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelS data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; - }; - -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = - { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; - }; - -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = - { - mpaa_protection_level?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; - area?: number; - percentage?: number; - location?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; @@ -7800,6 +7799,17 @@ export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelS locale?: string; }; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; + }; + +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = + { + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; + }; + export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7851,6 +7861,18 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7876,21 +7898,22 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { - location?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + data?: unknown[]; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { - data?: unknown[]; + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + locale?: string; }; export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = @@ -7907,19 +7930,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { firstname?: string; @@ -8002,19 +8012,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -8029,6 +8026,20 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -8040,6 +8051,19 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8068,6 +8092,11 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = + { + data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -8077,25 +8106,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = - { - data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; - }; - -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -8150,15 +8160,6 @@ export type FishingProtectionLevelStatLocationDataAttributesGroups = { data?: FishingProtectionLevelStatLocationDataAttributesGroupsDataItem[]; }; -export type FishingProtectionLevelStatListResponseMeta = { - pagination?: FishingProtectionLevelStatListResponseMetaPagination; -}; - -export interface FishingProtectionLevelStatListResponse { - data?: FishingProtectionLevelStatListResponseDataItem[]; - meta?: FishingProtectionLevelStatListResponseMeta; -} - export type FishingProtectionLevelStatListResponseMetaPagination = { page?: number; pageSize?: number; @@ -8166,18 +8167,22 @@ export type FishingProtectionLevelStatListResponseMetaPagination = { total?: number; }; +export type FishingProtectionLevelStatListResponseMeta = { + pagination?: FishingProtectionLevelStatListResponseMetaPagination; +}; + export interface FishingProtectionLevelStatListResponseDataItem { id?: number; attributes?: FishingProtectionLevelStat; } -export type FishingProtectionLevelResponseMeta = { [key: string]: any }; - -export interface FishingProtectionLevelResponseDataObject { - id?: number; - attributes?: FishingProtectionLevel; +export interface FishingProtectionLevelStatListResponse { + data?: FishingProtectionLevelStatListResponseDataItem[]; + meta?: FishingProtectionLevelStatListResponseMeta; } +export type FishingProtectionLevelResponseMeta = { [key: string]: any }; + export interface FishingProtectionLevelResponse { data?: FishingProtectionLevelResponseDataObject; meta?: FishingProtectionLevelResponseMeta; @@ -8219,6 +8224,11 @@ export interface FishingProtectionLevel { locale?: string; } +export interface FishingProtectionLevelResponseDataObject { + id?: number; + attributes?: FishingProtectionLevel; +} + export type FishingProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -8232,40 +8242,10 @@ export type FishingProtectionLevelCreatedByDataAttributesUpdatedBy = { data?: FishingProtectionLevelCreatedByDataAttributesUpdatedByData; }; -export type FishingProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type FishingProtectionLevelCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: FishingProtectionLevelCreatedByDataAttributesCreatedByDataAttributes; -}; - export type FishingProtectionLevelCreatedByDataAttributesCreatedBy = { data?: FishingProtectionLevelCreatedByDataAttributesCreatedByData; }; -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; -}; - -export type FishingProtectionLevelCreatedByDataAttributesRoles = { - data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItem[]; -}; - export type FishingProtectionLevelCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -8283,6 +8263,24 @@ export type FishingProtectionLevelCreatedByDataAttributes = { updatedBy?: FishingProtectionLevelCreatedByDataAttributesUpdatedBy; }; +export type FishingProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type FishingProtectionLevelCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: FishingProtectionLevelCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type FishingProtectionLevelCreatedByDataAttributesRoles = { + data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItem[]; +}; + export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8307,6 +8305,28 @@ export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = + { + id?: number; + attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + }; + +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions = { + data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +}; + +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8335,16 +8355,6 @@ export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; - -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; -}; - export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -8459,26 +8469,10 @@ export interface FishingProtectionLevelLocalizationRequest { export type EnvironmentResponseMeta = { [key: string]: any }; -export interface EnvironmentResponse { - data?: EnvironmentResponseDataObject; - meta?: EnvironmentResponseMeta; -} - export type EnvironmentLocalizations = { data?: Environment[]; }; -export type EnvironmentUpdatedByDataAttributes = { [key: string]: any }; - -export type EnvironmentUpdatedByData = { - id?: number; - attributes?: EnvironmentUpdatedByDataAttributes; -}; - -export type EnvironmentUpdatedBy = { - data?: EnvironmentUpdatedByData; -}; - export interface Environment { name: string; slug: string; @@ -8495,6 +8489,22 @@ export interface EnvironmentResponseDataObject { attributes?: Environment; } +export interface EnvironmentResponse { + data?: EnvironmentResponseDataObject; + meta?: EnvironmentResponseMeta; +} + +export type EnvironmentUpdatedByDataAttributes = { [key: string]: any }; + +export type EnvironmentUpdatedByData = { + id?: number; + attributes?: EnvironmentUpdatedByDataAttributes; +}; + +export type EnvironmentUpdatedBy = { + data?: EnvironmentUpdatedByData; +}; + export type EnvironmentCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -8590,6 +8600,20 @@ export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedBy = data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -8641,20 +8665,6 @@ export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissions data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -8738,967 +8748,409 @@ export interface EnvironmentLocalizationRequest { locale: string; } -export type DatasetGroupResponseMeta = { [key: string]: any }; +export type DatasetResponseMeta = { [key: string]: any }; -export interface DatasetGroupResponse { - data?: DatasetGroupResponseDataObject; - meta?: DatasetGroupResponseMeta; +export interface DatasetResponse { + data?: DatasetResponseDataObject; + meta?: DatasetResponseMeta; } -export type DatasetGroupLocalizations = { - data?: DatasetGroup[]; -}; - -export interface DatasetGroup { +export interface Dataset { name: string; + layers?: DatasetLayers; slug: string; - datasets?: DatasetGroupDatasets; createdAt?: string; updatedAt?: string; - createdBy?: DatasetGroupCreatedBy; - updatedBy?: DatasetGroupUpdatedBy; - localizations?: DatasetGroupLocalizations; + publishedAt?: string; + createdBy?: DatasetCreatedBy; + updatedBy?: DatasetUpdatedBy; + localizations?: DatasetLocalizations; locale?: string; } -export interface DatasetGroupResponseDataObject { +export interface DatasetResponseDataObject { id?: number; - attributes?: DatasetGroup; + attributes?: Dataset; } -export type DatasetGroupUpdatedByDataAttributes = { [key: string]: any }; +export type DatasetLocalizations = { + data?: Dataset[]; +}; + +export type DatasetUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetGroupUpdatedByData = { +export type DatasetUpdatedByData = { id?: number; - attributes?: DatasetGroupUpdatedByDataAttributes; + attributes?: DatasetUpdatedByDataAttributes; }; -export type DatasetGroupUpdatedBy = { - data?: DatasetGroupUpdatedByData; +export type DatasetUpdatedBy = { + data?: DatasetUpdatedByData; }; -export type DatasetGroupCreatedByDataAttributes = { [key: string]: any }; +export type DatasetCreatedByDataAttributes = { [key: string]: any }; -export type DatasetGroupCreatedByData = { +export type DatasetCreatedByData = { id?: number; - attributes?: DatasetGroupCreatedByDataAttributes; + attributes?: DatasetCreatedByDataAttributes; }; -export type DatasetGroupCreatedBy = { - data?: DatasetGroupCreatedByData; +export type DatasetCreatedBy = { + data?: DatasetCreatedByData; }; -export type DatasetGroupDatasets = { - data?: DatasetGroupDatasetsDataItem[]; +export type DatasetLayers = { + data?: DatasetLayersDataItem[]; }; -export type DatasetGroupDatasetsDataItemAttributesLocalizations = { +export type DatasetLayersDataItemAttributesLocalizations = { data?: unknown[]; }; -export type DatasetGroupDatasetsDataItemAttributes = { - name?: string; - layers?: DatasetGroupDatasetsDataItemAttributesLayers; - slug?: string; - group?: DatasetGroupDatasetsDataItemAttributesGroup; +export type DatasetLayersDataItemAttributes = { + title?: string; + type?: DatasetLayersDataItemAttributesType; + config?: unknown; + params_config?: unknown; + interaction_config?: unknown; + metadata?: DatasetLayersDataItemAttributesMetadata; + dataset?: DatasetLayersDataItemAttributesDataset; + legend_config?: DatasetLayersDataItemAttributesLegendConfig; + default?: boolean; + environment?: DatasetLayersDataItemAttributesEnvironment; createdAt?: string; updatedAt?: string; publishedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesUpdatedBy; - localizations?: DatasetGroupDatasetsDataItemAttributesLocalizations; + createdBy?: DatasetLayersDataItemAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesUpdatedBy; + localizations?: DatasetLayersDataItemAttributesLocalizations; locale?: string; }; -export type DatasetGroupDatasetsDataItem = { +export type DatasetLayersDataItem = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributes; + attributes?: DatasetLayersDataItemAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type DatasetLayersDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetGroupDatasetsDataItemAttributesUpdatedByData = { +export type DatasetLayersDataItemAttributesUpdatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesUpdatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesUpdatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesUpdatedByData; +export type DatasetLayersDataItemAttributesUpdatedBy = { + data?: DatasetLayersDataItemAttributesUpdatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; +export type DatasetLayersDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type DatasetGroupDatasetsDataItemAttributesCreatedByData = { +export type DatasetLayersDataItemAttributesCreatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesCreatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesCreatedByDataAttributes; +}; + +export type DatasetLayersDataItemAttributesCreatedBy = { + data?: DatasetLayersDataItemAttributesCreatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesCreatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesCreatedByData; +export type DatasetLayersDataItemAttributesEnvironment = { + data?: DatasetLayersDataItemAttributesEnvironmentData; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesLocalizations = { +export type DatasetLayersDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributes = { - name?: string; - slug?: string; - datasets?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedBy; - localizations?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesLocalizations; - locale?: string; +export type DatasetLayersDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { + [key: string]: any; }; -export type DatasetGroupDatasetsDataItemAttributesGroupData = { +export type DatasetLayersDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributes; + attributes?: DatasetLayersDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesGroup = { - data?: DatasetGroupDatasetsDataItemAttributesGroupData; +export type DatasetLayersDataItemAttributesEnvironmentDataAttributesUpdatedBy = { + data?: DatasetLayersDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByDataAttributes = { +export type DatasetLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByData = { +export type DatasetLayersDataItemAttributesEnvironmentDataAttributesCreatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByData; +export type DatasetLayersDataItemAttributesEnvironmentDataAttributesCreatedBy = { + data?: DatasetLayersDataItemAttributesEnvironmentDataAttributesCreatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByDataAttributes = { - [key: string]: any; +export type DatasetLayersDataItemAttributesEnvironmentDataAttributes = { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetLayersDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: DatasetLayersDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByData = { +export type DatasetLayersDataItemAttributesEnvironmentData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesEnvironmentDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByData; +export type DatasetLayersDataItemAttributesLegendConfigItemsItem = { + id?: number; + icon?: string; + color?: string; + value?: string; + description?: string; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItemAttributes = { - [key: string]: any; -}; +export type DatasetLayersDataItemAttributesLegendConfigType = + (typeof DatasetLayersDataItemAttributesLegendConfigType)[keyof typeof DatasetLayersDataItemAttributesLegendConfigType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DatasetLayersDataItemAttributesLegendConfigType = { + basic: 'basic', + icon: 'icon', + choropleth: 'choropleth', + gradient: 'gradient', +} as const; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItem = { +export type DatasetLayersDataItemAttributesLegendConfig = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItemAttributes; + type?: DatasetLayersDataItemAttributesLegendConfigType; + items?: DatasetLayersDataItemAttributesLegendConfigItemsItem[]; }; -export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets = { - data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItem[]; +export type DatasetLayersDataItemAttributesDatasetDataAttributes = { + name?: string; + layers?: DatasetLayersDataItemAttributesDatasetDataAttributesLayers; + slug?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedBy; + localizations?: DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations; + locale?: string; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItem = { +export type DatasetLayersDataItemAttributesDatasetData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayers = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItem[]; +export type DatasetLayersDataItemAttributesDataset = { + data?: DatasetLayersDataItemAttributesDatasetData; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLocalizations = { +export type DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations = { data?: unknown[]; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByData = { +export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByData; +export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByData = { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributes; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedBy; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByData; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData = { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributes = { - title?: string; - type?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType; - config?: unknown; - params_config?: unknown; - interaction_config?: unknown; - metadata?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesMetadata; - dataset?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDataset; - legend_config?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfig; - default?: boolean; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedBy; - localizations?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLocalizations; - locale?: string; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy = - { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByData; - }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesUpdatedByData; +}; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData = - { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; - }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy = - { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData; - }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItem = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; - }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRoles = - { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItem[]; - }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesCreatedByData; +}; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = - { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; - }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRoles = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItem[]; +}; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; description?: string; - users?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + users?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = - { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; - }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = - { [key: string]: any }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = - { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; - }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = - { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; - }; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigItemsItem = { - id?: number; - icon?: string; - color?: string; - value?: string; - description?: string; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType = - (typeof DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType)[keyof typeof DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType]; - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType = { - basic: 'basic', - icon: 'icon', - choropleth: 'choropleth', - gradient: 'gradient', -} as const; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfig = { - id?: number; - type?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigType; - items?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLegendConfigItemsItem[]; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDatasetDataAttributes = { - [key: string]: any; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDatasetData = { - id?: number; - attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDatasetDataAttributes; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDataset = { - data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesDatasetData; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesMetadata = { - id?: number; - description?: string; - citation?: string; - source?: string; - resolution?: string; - content_date?: string; - license?: string; -}; - -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType = - (typeof DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType)[keyof typeof DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType]; - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesType = { - mapbox: 'mapbox', - deckgl: 'deckgl', - carto: 'carto', -} as const; - -export type DatasetGroupListResponseMetaPagination = { - page?: number; - pageSize?: number; - pageCount?: number; - total?: number; -}; - -export type DatasetGroupListResponseMeta = { - pagination?: DatasetGroupListResponseMetaPagination; -}; - -export interface DatasetGroupListResponseDataItem { - id?: number; - attributes?: DatasetGroup; -} - -export interface DatasetGroupListResponse { - data?: DatasetGroupListResponseDataItem[]; - meta?: DatasetGroupListResponseMeta; -} - -export type DatasetGroupLocalizationListResponseMetaPagination = { - page?: number; - pageSize?: number; - pageCount?: number; - total?: number; -}; - -export type DatasetGroupLocalizationListResponseMeta = { - pagination?: DatasetGroupLocalizationListResponseMetaPagination; -}; - -export interface DatasetGroupListResponseDataItemLocalized { - id?: number; - attributes?: DatasetGroup; -} - -export interface DatasetGroupLocalizationListResponse { - data?: DatasetGroupListResponseDataItemLocalized[]; - meta?: DatasetGroupLocalizationListResponseMeta; -} - -export type DatasetGroupLocalizationResponseMeta = { [key: string]: any }; - -export interface DatasetGroupResponseDataObjectLocalized { - id?: number; - attributes?: DatasetGroup; -} - -export interface DatasetGroupLocalizationResponse { - data?: DatasetGroupResponseDataObjectLocalized; - meta?: DatasetGroupLocalizationResponseMeta; -} - -export type DatasetGroupRequestDataDatasetsItem = number | string; - -export type DatasetGroupRequestData = { - name: string; - slug: string; - datasets?: DatasetGroupRequestDataDatasetsItem[]; - locale?: string; -}; - -export interface DatasetGroupRequest { - data: DatasetGroupRequestData; -} - -export type DatasetGroupLocalizationRequestDatasetsItem = number | string; - -export interface DatasetGroupLocalizationRequest { - name: string; - slug: string; - datasets?: DatasetGroupLocalizationRequestDatasetsItem[]; - locale: string; -} - -export type DatasetResponseMeta = { [key: string]: any }; - -export interface DatasetResponseDataObject { - id?: number; - attributes?: Dataset; -} - -export interface DatasetResponse { - data?: DatasetResponseDataObject; - meta?: DatasetResponseMeta; -} - -export type DatasetLocalizations = { - data?: Dataset[]; -}; - -export type DatasetUpdatedByDataAttributes = { [key: string]: any }; - -export type DatasetUpdatedByData = { - id?: number; - attributes?: DatasetUpdatedByDataAttributes; -}; - -export type DatasetUpdatedBy = { - data?: DatasetUpdatedByData; -}; - -export type DatasetCreatedByDataAttributes = { [key: string]: any }; - -export type DatasetCreatedByData = { - id?: number; - attributes?: DatasetCreatedByDataAttributes; -}; - -export type DatasetCreatedBy = { - data?: DatasetCreatedByData; -}; - -export type DatasetGroupPropertyDataAttributes = { [key: string]: any }; - -export type DatasetGroupPropertyData = { - id?: number; - attributes?: DatasetGroupPropertyDataAttributes; -}; - -export type DatasetGroupProperty = { - data?: DatasetGroupPropertyData; -}; - -export type DatasetLayers = { - data?: DatasetLayersDataItem[]; -}; - -export interface Dataset { - name: string; - layers?: DatasetLayers; - slug: string; - group?: DatasetGroupProperty; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DatasetCreatedBy; - updatedBy?: DatasetUpdatedBy; - localizations?: DatasetLocalizations; - locale?: string; -} - -export type DatasetLayersDataItemAttributesLocalizations = { - data?: unknown[]; -}; - -export type DatasetLayersDataItemAttributes = { - title?: string; - type?: DatasetLayersDataItemAttributesType; - config?: unknown; - params_config?: unknown; - interaction_config?: unknown; - metadata?: DatasetLayersDataItemAttributesMetadata; - dataset?: DatasetLayersDataItemAttributesDataset; - legend_config?: DatasetLayersDataItemAttributesLegendConfig; - default?: boolean; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DatasetLayersDataItemAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesUpdatedBy; - localizations?: DatasetLayersDataItemAttributesLocalizations; - locale?: string; -}; - -export type DatasetLayersDataItem = { - id?: number; - attributes?: DatasetLayersDataItemAttributes; -}; - -export type DatasetLayersDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type DatasetLayersDataItemAttributesUpdatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesUpdatedByDataAttributes; -}; - -export type DatasetLayersDataItemAttributesUpdatedBy = { - data?: DatasetLayersDataItemAttributesUpdatedByData; -}; - -export type DatasetLayersDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; - -export type DatasetLayersDataItemAttributesCreatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesCreatedByDataAttributes; -}; - -export type DatasetLayersDataItemAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesCreatedByData; -}; - -export type DatasetLayersDataItemAttributesLegendConfigItemsItem = { - id?: number; - icon?: string; - color?: string; - value?: string; - description?: string; -}; - -export type DatasetLayersDataItemAttributesLegendConfigType = - (typeof DatasetLayersDataItemAttributesLegendConfigType)[keyof typeof DatasetLayersDataItemAttributesLegendConfigType]; - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const DatasetLayersDataItemAttributesLegendConfigType = { - basic: 'basic', - icon: 'icon', - choropleth: 'choropleth', - gradient: 'gradient', -} as const; - -export type DatasetLayersDataItemAttributesLegendConfig = { - id?: number; - type?: DatasetLayersDataItemAttributesLegendConfigType; - items?: DatasetLayersDataItemAttributesLegendConfigItemsItem[]; -}; - -export type DatasetLayersDataItemAttributesDataset = { - data?: DatasetLayersDataItemAttributesDatasetData; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations = { - data?: unknown[]; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributes = { - name?: string; - layers?: DatasetLayersDataItemAttributesDatasetDataAttributesLayers; - slug?: string; - group?: DatasetLayersDataItemAttributesDatasetDataAttributesGroup; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedBy; - localizations?: DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations; - locale?: string; -}; - -export type DatasetLayersDataItemAttributesDatasetData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByData; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroup = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupData; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesLocalizations = { - data?: unknown[]; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributes = { - name?: string; - slug?: string; - datasets?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasets; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedBy; - localizations?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesLocalizations; - locale?: string; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByData = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByDataAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByData; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItem = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRoles = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItem[]; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; actionParameters?: unknown; subject?: string; properties?: unknown; conditions?: unknown; - role?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + role?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; createdAt?: string; - updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + updatedAt?: string; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasetsDataItemAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasetsDataItem = +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasetsDataItemAttributes; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasets = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesDatasetsDataItem[]; -}; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; + }; export type DatasetLayersDataItemAttributesDatasetDataAttributesLayersDataItemAttributes = { [key: string]: any; @@ -9787,15 +9239,12 @@ export interface DatasetLocalizationResponse { meta?: DatasetLocalizationResponseMeta; } -export type DatasetRequestDataGroup = number | string; - export type DatasetRequestDataLayersItem = number | string; export type DatasetRequestData = { name: string; layers?: DatasetRequestDataLayersItem[]; slug: string; - group?: DatasetRequestDataGroup; locale?: string; }; @@ -9803,29 +9252,42 @@ export interface DatasetRequest { data: DatasetRequestData; } -export type DatasetLocalizationRequestGroup = number | string; - export type DatasetLocalizationRequestLayersItem = number | string; export interface DatasetLocalizationRequest { name: string; layers?: DatasetLocalizationRequestLayersItem[]; slug: string; - group?: DatasetLocalizationRequestGroup; locale: string; } export type DataToolResourceTypeResponseMeta = { [key: string]: any }; +export type DataToolResourceTypeLocalizations = { + data?: DataToolResourceType[]; +}; + +export interface DataToolResourceType { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolResourceTypeCreatedBy; + updatedBy?: DataToolResourceTypeUpdatedBy; + localizations?: DataToolResourceTypeLocalizations; + locale?: string; +} + +export interface DataToolResourceTypeResponseDataObject { + id?: number; + attributes?: DataToolResourceType; +} + export interface DataToolResourceTypeResponse { data?: DataToolResourceTypeResponseDataObject; meta?: DataToolResourceTypeResponseMeta; } -export type DataToolResourceTypeLocalizations = { - data?: DataToolResourceType[]; -}; - export type DataToolResourceTypeUpdatedByDataAttributes = { [key: string]: any }; export type DataToolResourceTypeUpdatedByData = { @@ -9846,22 +9308,6 @@ export type DataToolResourceTypeCreatedBy = { data?: DataToolResourceTypeCreatedByData; }; -export interface DataToolResourceType { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolResourceTypeCreatedBy; - updatedBy?: DataToolResourceTypeUpdatedBy; - localizations?: DataToolResourceTypeLocalizations; - locale?: string; -} - -export interface DataToolResourceTypeResponseDataObject { - id?: number; - attributes?: DataToolResourceType; -} - export type DataToolResourceTypeCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -9888,18 +9334,6 @@ export type DataToolResourceTypeCreatedByDataAttributesCreatedBy = { data?: DataToolResourceTypeCreatedByDataAttributesCreatedByData; }; -export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type DataToolResourceTypeCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributes; @@ -9950,6 +9384,20 @@ export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCr data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -9960,6 +9408,18 @@ export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPe data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10002,20 +9462,6 @@ export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPe data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -10098,11 +9544,6 @@ export interface DataToolResourceTypeLocalizationRequest { export type DataToolLanguageResponseMeta = { [key: string]: any }; -export interface DataToolLanguageResponseDataObject { - id?: number; - attributes?: DataToolLanguage; -} - export interface DataToolLanguageResponse { data?: DataToolLanguageResponseDataObject; meta?: DataToolLanguageResponseMeta; @@ -10112,10 +9553,32 @@ export type DataToolLanguageLocalizations = { data?: DataToolLanguage[]; }; +export type DataToolLanguageUpdatedByDataAttributes = { [key: string]: any }; + +export type DataToolLanguageUpdatedByData = { + id?: number; + attributes?: DataToolLanguageUpdatedByDataAttributes; +}; + export type DataToolLanguageUpdatedBy = { data?: DataToolLanguageUpdatedByData; }; +export type DataToolLanguageCreatedByDataAttributes = { [key: string]: any }; + +export type DataToolLanguageCreatedByData = { + id?: number; + attributes?: DataToolLanguageCreatedByDataAttributes; +}; + +export type DataToolLanguageCreatedBy = { + data?: DataToolLanguageCreatedByData; +}; + +export type DataToolLanguageDataTool = { + data?: DataToolLanguageDataToolData; +}; + export interface DataToolLanguage { name?: string; slug?: string; @@ -10129,22 +9592,30 @@ export interface DataToolLanguage { locale?: string; } -export type DataToolLanguageUpdatedByDataAttributes = { [key: string]: any }; - -export type DataToolLanguageUpdatedByData = { +export interface DataToolLanguageResponseDataObject { id?: number; - attributes?: DataToolLanguageUpdatedByDataAttributes; -}; - -export type DataToolLanguageCreatedByDataAttributes = { [key: string]: any }; + attributes?: DataToolLanguage; +} -export type DataToolLanguageCreatedByData = { - id?: number; - attributes?: DataToolLanguageCreatedByDataAttributes; +export type DataToolLanguageDataToolDataAttributesLocalizations = { + data?: unknown[]; }; -export type DataToolLanguageCreatedBy = { - data?: DataToolLanguageCreatedByData; +export type DataToolLanguageDataToolDataAttributes = { + name?: string; + description?: string; + site?: string; + languages?: DataToolLanguageDataToolDataAttributesLanguages; + data_tool_resource_types?: DataToolLanguageDataToolDataAttributesDataToolResourceTypes; + geography?: string; + data_tool_ecosystems?: DataToolLanguageDataToolDataAttributesDataToolEcosystems; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesUpdatedBy; + localizations?: DataToolLanguageDataToolDataAttributesLocalizations; + locale?: string; }; export type DataToolLanguageDataToolData = { @@ -10152,14 +9623,6 @@ export type DataToolLanguageDataToolData = { attributes?: DataToolLanguageDataToolDataAttributes; }; -export type DataToolLanguageDataTool = { - data?: DataToolLanguageDataToolData; -}; - -export type DataToolLanguageDataToolDataAttributesLocalizations = { - data?: unknown[]; -}; - export type DataToolLanguageDataToolDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type DataToolLanguageDataToolDataAttributesUpdatedByData = { @@ -10171,31 +9634,15 @@ export type DataToolLanguageDataToolDataAttributesUpdatedBy = { data?: DataToolLanguageDataToolDataAttributesUpdatedByData; }; -export type DataToolLanguageDataToolDataAttributesCreatedByDataAttributes = { [key: string]: any }; - -export type DataToolLanguageDataToolDataAttributesCreatedByData = { - id?: number; - attributes?: DataToolLanguageDataToolDataAttributesCreatedByDataAttributes; -}; - export type DataToolLanguageDataToolDataAttributesCreatedBy = { data?: DataToolLanguageDataToolDataAttributesCreatedByData; }; -export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations = - { - data?: unknown[]; - }; +export type DataToolLanguageDataToolDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributes = { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedBy; - localizations?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations; - locale?: string; +export type DataToolLanguageDataToolDataAttributesCreatedByData = { + id?: number; + attributes?: DataToolLanguageDataToolDataAttributesCreatedByDataAttributes; }; export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItem = { @@ -10207,22 +9654,10 @@ export type DataToolLanguageDataToolDataAttributesDataToolEcosystems = { data?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItem[]; }; -export type DataToolLanguageDataToolDataAttributes = { - name?: string; - description?: string; - site?: string; - languages?: DataToolLanguageDataToolDataAttributesLanguages; - data_tool_resource_types?: DataToolLanguageDataToolDataAttributesDataToolResourceTypes; - geography?: string; - data_tool_ecosystems?: DataToolLanguageDataToolDataAttributesDataToolEcosystems; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesUpdatedBy; - localizations?: DataToolLanguageDataToolDataAttributesLocalizations; - locale?: string; -}; +export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations = + { + data?: unknown[]; + }; export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10237,6 +9672,17 @@ export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttr data?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByData; }; +export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributes = { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedBy; + localizations?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations; + locale?: string; +}; + export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10250,6 +9696,22 @@ export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttr data?: DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData; }; +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations = + { + data?: unknown[]; + }; + +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes = { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; + locale?: string; +}; + export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem = { id?: number; attributes?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes; @@ -10259,11 +9721,6 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypes = { data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem[]; }; -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations = - { - data?: unknown[]; - }; - export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10278,6 +9735,9 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemA data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByData; }; +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByData = { id?: number; @@ -10289,20 +9749,23 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemA data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByData; }; -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes = { +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesLocalizations = { + data?: unknown[]; +}; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes = { name?: string; + slug?: string; + data_tool?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesDataTool; createdAt?: string; updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; + publishedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesLocalizations; locale?: string; }; -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItem = { id?: number; attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes; @@ -10312,10 +9775,6 @@ export type DataToolLanguageDataToolDataAttributesLanguages = { data?: DataToolLanguageDataToolDataAttributesLanguagesDataItem[]; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesLocalizations = { - data?: unknown[]; -}; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10328,6 +9787,29 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpd data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByData; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy = + { + data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByData; + }; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy; + }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByData = { id?: number; attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes; @@ -10337,19 +9819,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByData; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes = { - name?: string; - slug?: string; - data_tool?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesDataTool; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesLocalizations; - locale?: string; -}; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10359,11 +9828,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy = - { - data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByData; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10378,6 +9842,19 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedByData; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -10389,24 +9866,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10446,19 +9905,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10487,20 +9933,6 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -10515,6 +9947,20 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -10541,6 +9987,11 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesDat data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesDataToolData; }; +export interface DataToolLanguageListResponse { + data?: DataToolLanguageListResponseDataItem[]; + meta?: DataToolLanguageListResponseMeta; +} + export type DataToolLanguageListResponseMetaPagination = { page?: number; pageSize?: number; @@ -10557,11 +10008,6 @@ export interface DataToolLanguageListResponseDataItem { attributes?: DataToolLanguage; } -export interface DataToolLanguageListResponse { - data?: DataToolLanguageListResponseDataItem[]; - meta?: DataToolLanguageListResponseMeta; -} - export type DataToolLanguageLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -10619,21 +10065,6 @@ export interface DataToolLanguageLocalizationRequest { export type DataToolEcosystemResponseMeta = { [key: string]: any }; -export type DataToolEcosystemLocalizations = { - data?: DataToolEcosystem[]; -}; - -export interface DataToolEcosystem { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolEcosystemCreatedBy; - updatedBy?: DataToolEcosystemUpdatedBy; - localizations?: DataToolEcosystemLocalizations; - locale?: string; -} - export interface DataToolEcosystemResponseDataObject { id?: number; attributes?: DataToolEcosystem; @@ -10644,6 +10075,10 @@ export interface DataToolEcosystemResponse { meta?: DataToolEcosystemResponseMeta; } +export type DataToolEcosystemLocalizations = { + data?: DataToolEcosystem[]; +}; + export type DataToolEcosystemUpdatedByDataAttributes = { [key: string]: any }; export type DataToolEcosystemUpdatedByData = { @@ -10655,6 +10090,39 @@ export type DataToolEcosystemUpdatedBy = { data?: DataToolEcosystemUpdatedByData; }; +export interface DataToolEcosystem { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolEcosystemCreatedBy; + updatedBy?: DataToolEcosystemUpdatedBy; + localizations?: DataToolEcosystemLocalizations; + locale?: string; +} + +export type DataToolEcosystemCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataToolEcosystemCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolEcosystemCreatedByDataAttributesCreatedBy; + updatedBy?: DataToolEcosystemCreatedByDataAttributesUpdatedBy; +}; + +export type DataToolEcosystemCreatedByData = { + id?: number; + attributes?: DataToolEcosystemCreatedByDataAttributes; +}; + export type DataToolEcosystemCreatedBy = { data?: DataToolEcosystemCreatedByData; }; @@ -10685,37 +10153,10 @@ export type DataToolEcosystemCreatedByDataAttributesCreatedBy = { data?: DataToolEcosystemCreatedByDataAttributesCreatedByData; }; -export type DataToolEcosystemCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes; -}; - export type DataToolEcosystemCreatedByDataAttributesRoles = { data?: DataToolEcosystemCreatedByDataAttributesRolesDataItem[]; }; -export type DataToolEcosystemCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DataToolEcosystemCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolEcosystemCreatedByDataAttributesCreatedBy; - updatedBy?: DataToolEcosystemCreatedByDataAttributesUpdatedBy; -}; - -export type DataToolEcosystemCreatedByData = { - id?: number; - attributes?: DataToolEcosystemCreatedByDataAttributes; -}; - export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10740,20 +10181,6 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreat data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -10775,6 +10202,11 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes = { updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; +export type DataToolEcosystemCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes; +}; + export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10817,6 +10249,20 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermi data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -10829,11 +10275,6 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsers data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export interface DataToolEcosystemListResponse { - data?: DataToolEcosystemListResponseDataItem[]; - meta?: DataToolEcosystemListResponseMeta; -} - export type DataToolEcosystemListResponseMetaPagination = { page?: number; pageSize?: number; @@ -10850,6 +10291,11 @@ export interface DataToolEcosystemListResponseDataItem { attributes?: DataToolEcosystem; } +export interface DataToolEcosystemListResponse { + data?: DataToolEcosystemListResponseDataItem[]; + meta?: DataToolEcosystemListResponseMeta; +} + export type DataToolEcosystemLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -10899,6 +10345,11 @@ export interface DataToolEcosystemLocalizationRequest { export type DataToolResponseMeta = { [key: string]: any }; +export interface DataToolResponseDataObject { + id?: number; + attributes?: DataTool; +} + export interface DataToolResponse { data?: DataToolResponseDataObject; meta?: DataToolResponseMeta; @@ -10908,28 +10359,6 @@ export type DataToolLocalizations = { data?: DataTool[]; }; -export interface DataTool { - name: string; - description?: string; - site?: string; - languages?: DataToolLanguages; - data_tool_resource_types?: DataToolDataToolResourceTypes; - geography?: string; - data_tool_ecosystems?: DataToolDataToolEcosystems; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolCreatedBy; - updatedBy?: DataToolUpdatedBy; - localizations?: DataToolLocalizations; - locale?: string; -} - -export interface DataToolResponseDataObject { - id?: number; - attributes?: DataTool; -} - export type DataToolUpdatedByDataAttributes = { [key: string]: any }; export type DataToolUpdatedByData = { @@ -11000,6 +10429,23 @@ export type DataToolLanguages = { data?: DataToolLanguagesDataItem[]; }; +export interface DataTool { + name: string; + description?: string; + site?: string; + languages?: DataToolLanguages; + data_tool_resource_types?: DataToolDataToolResourceTypes; + geography?: string; + data_tool_ecosystems?: DataToolDataToolEcosystems; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolCreatedBy; + updatedBy?: DataToolUpdatedBy; + localizations?: DataToolLocalizations; + locale?: string; +} + export type DataToolLanguagesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; export type DataToolLanguagesDataItemAttributesUpdatedByData = { @@ -11035,6 +10481,23 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizatio data?: unknown[]; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributes = { + name?: string; + description?: string; + site?: string; + languages?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguages; + data_tool_resource_types?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes; + geography?: string; + data_tool_ecosystems?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystems; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesUpdatedBy; + localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizations; + locale?: string; +}; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -11065,42 +10528,11 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEco data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItem[]; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributes = { - name?: string; - description?: string; - site?: string; - languages?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguages; - data_tool_resource_types?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes; - geography?: string; - data_tool_ecosystems?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystems; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizations; - locale?: string; -}; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations = { data?: unknown[]; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByDataAttributes; - }; - -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedBy = - { - data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByData; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributes = { name?: string; @@ -11118,45 +10550,37 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEco attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributes; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByDataAttributes = +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData = +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByData = { id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByDataAttributes; + attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByDataAttributes; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedBy = +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedBy = { - data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData; + data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes = { - data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem[]; -}; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations = +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData = { - data?: unknown[]; + id?: number; + attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByDataAttributes; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes = +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedBy = { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; - locale?: string; + data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem = +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations = { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes; + data?: unknown[]; }; export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByDataAttributes = @@ -11184,6 +10608,28 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByData; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes = + { + name?: string; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations; + locale?: string; + }; + +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem = + { + id?: number; + attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributes; + }; + +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes = { + data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem[]; +}; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11198,6 +10644,17 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedByData; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedByData = + { + id?: number; + attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; + }; + +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedBy = + { + data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedByData; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = { firstname?: string; @@ -11219,17 +10676,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedByData = - { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; - }; - -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedBy = - { - data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedByData; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -11269,20 +10715,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -11349,6 +10781,20 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -11363,6 +10809,10 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItemAttributes = { + [key: string]: any; +}; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItem = { id?: number; attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItemAttributes; @@ -11372,10 +10822,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguages = data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItem[]; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguagesDataItemAttributes = { - [key: string]: any; -}; - export type DataToolListResponseMetaPagination = { page?: number; pageSize?: number; @@ -11397,6 +10843,11 @@ export interface DataToolListResponse { meta?: DataToolListResponseMeta; } +export interface DataToolLocalizationListResponse { + data?: DataToolListResponseDataItemLocalized[]; + meta?: DataToolLocalizationListResponseMeta; +} + export type DataToolLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -11413,11 +10864,6 @@ export interface DataToolListResponseDataItemLocalized { attributes?: DataTool; } -export interface DataToolLocalizationListResponse { - data?: DataToolListResponseDataItemLocalized[]; - meta?: DataToolLocalizationListResponseMeta; -} - export type DataToolLocalizationResponseMeta = { [key: string]: any }; export interface DataToolResponseDataObjectLocalized { @@ -11430,10 +10876,6 @@ export interface DataToolLocalizationResponse { meta?: DataToolLocalizationResponseMeta; } -export interface DataToolRequest { - data: DataToolRequestData; -} - export type DataToolRequestDataDataToolEcosystemsItem = number | string; export type DataToolRequestDataDataToolResourceTypesItem = number | string; @@ -11451,6 +10893,10 @@ export type DataToolRequestData = { locale?: string; }; +export interface DataToolRequest { + data: DataToolRequestData; +} + export type DataToolLocalizationRequestDataToolEcosystemsItem = number | string; export type DataToolLocalizationRequestDataToolResourceTypesItem = number | string; @@ -11470,22 +10916,6 @@ export interface DataToolLocalizationRequest { export type DataSourceResponseMeta = { [key: string]: any }; -export type DataSourceLocalizations = { - data?: DataSource[]; -}; - -export interface DataSource { - slug: string; - title: string; - url?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DataSourceCreatedBy; - updatedBy?: DataSourceUpdatedBy; - localizations?: DataSourceLocalizations; - locale?: string; -} - export interface DataSourceResponseDataObject { id?: number; attributes?: DataSource; @@ -11496,26 +10926,33 @@ export interface DataSourceResponse { meta?: DataSourceResponseMeta; } -export type DataSourceUpdatedByDataAttributes = { [key: string]: any }; - -export type DataSourceUpdatedByData = { - id?: number; - attributes?: DataSourceUpdatedByDataAttributes; +export type DataSourceLocalizations = { + data?: DataSource[]; }; -export type DataSourceUpdatedBy = { - data?: DataSourceUpdatedByData; -}; +export type DataSourceUpdatedByDataAttributes = { [key: string]: any }; -export type DataSourceCreatedByDataAttributesUpdatedByData = { +export type DataSourceUpdatedByData = { id?: number; - attributes?: DataSourceCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: DataSourceUpdatedByDataAttributes; }; -export type DataSourceCreatedByDataAttributesUpdatedBy = { - data?: DataSourceCreatedByDataAttributesUpdatedByData; +export type DataSourceUpdatedBy = { + data?: DataSourceUpdatedByData; }; +export interface DataSource { + slug: string; + title: string; + url?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataSourceCreatedBy; + updatedBy?: DataSourceUpdatedBy; + localizations?: DataSourceLocalizations; + locale?: string; +} + export type DataSourceCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -11544,6 +10981,15 @@ export type DataSourceCreatedBy = { export type DataSourceCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type DataSourceCreatedByDataAttributesUpdatedByData = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesUpdatedByDataAttributes; +}; + +export type DataSourceCreatedByDataAttributesUpdatedBy = { + data?: DataSourceCreatedByDataAttributesUpdatedByData; +}; + export type DataSourceCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type DataSourceCreatedByDataAttributesCreatedByData = { @@ -11555,23 +11001,6 @@ export type DataSourceCreatedByDataAttributesCreatedBy = { data?: DataSourceCreatedByDataAttributesCreatedByData; }; -export type DataSourceCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type DataSourceCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributes; -}; - export type DataSourceCreatedByDataAttributesRoles = { data?: DataSourceCreatedByDataAttributesRolesDataItem[]; }; @@ -11611,6 +11040,23 @@ export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type DataSourceCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributes; +}; + export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11625,20 +11071,6 @@ export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsD data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11667,6 +11099,20 @@ export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsD data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataSourceCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -11701,15 +11147,6 @@ export interface DataSourceListResponse { meta?: DataSourceListResponseMeta; } -export type DataSourceLocalizationListResponseMeta = { - pagination?: DataSourceLocalizationListResponseMetaPagination; -}; - -export interface DataSourceLocalizationListResponse { - data?: DataSourceListResponseDataItemLocalized[]; - meta?: DataSourceLocalizationListResponseMeta; -} - export type DataSourceLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -11717,11 +11154,20 @@ export type DataSourceLocalizationListResponseMetaPagination = { total?: number; }; +export type DataSourceLocalizationListResponseMeta = { + pagination?: DataSourceLocalizationListResponseMetaPagination; +}; + export interface DataSourceListResponseDataItemLocalized { id?: number; attributes?: DataSource; } +export interface DataSourceLocalizationListResponse { + data?: DataSourceListResponseDataItemLocalized[]; + meta?: DataSourceLocalizationListResponseMeta; +} + export type DataSourceLocalizationResponseMeta = { [key: string]: any }; export interface DataSourceResponseDataObjectLocalized { @@ -11754,22 +11200,6 @@ export interface DataSourceLocalizationRequest { export type DataInfoResponseMeta = { [key: string]: any }; -export type DataInfoLocalizations = { - data?: DataInfo[]; -}; - -export interface DataInfo { - slug: string; - content?: string; - data_sources?: DataInfoDataSources; - createdAt?: string; - updatedAt?: string; - createdBy?: DataInfoCreatedBy; - updatedBy?: DataInfoUpdatedBy; - localizations?: DataInfoLocalizations; - locale?: string; -} - export interface DataInfoResponseDataObject { id?: number; attributes?: DataInfo; @@ -11780,6 +11210,10 @@ export interface DataInfoResponse { meta?: DataInfoResponseMeta; } +export type DataInfoLocalizations = { + data?: DataInfo[]; +}; + export type DataInfoUpdatedByDataAttributes = { [key: string]: any }; export type DataInfoUpdatedByData = { @@ -11802,6 +11236,27 @@ export type DataInfoCreatedBy = { data?: DataInfoCreatedByData; }; +export type DataInfoDataSourcesDataItem = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributes; +}; + +export type DataInfoDataSources = { + data?: DataInfoDataSourcesDataItem[]; +}; + +export interface DataInfo { + slug: string; + content?: string; + data_sources?: DataInfoDataSources; + createdAt?: string; + updatedAt?: string; + createdBy?: DataInfoCreatedBy; + updatedBy?: DataInfoUpdatedBy; + localizations?: DataInfoLocalizations; + locale?: string; +} + export type DataInfoDataSourcesDataItemAttributesLocalizations = { data?: unknown[]; }; @@ -11838,15 +11293,6 @@ export type DataInfoDataSourcesDataItemAttributes = { locale?: string; }; -export type DataInfoDataSourcesDataItem = { - id?: number; - attributes?: DataInfoDataSourcesDataItemAttributes; -}; - -export type DataInfoDataSources = { - data?: DataInfoDataSourcesDataItem[]; -}; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -11860,15 +11306,6 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedB data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByData; }; -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; -}; - -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedBy = { - data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData; -}; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -11890,6 +11327,15 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedB [key: string]: any; }; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedBy = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData; +}; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; @@ -11913,6 +11359,18 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11938,18 +11396,6 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -12158,6 +11604,23 @@ export type ContactDetailCreatedByDataAttributesUpdatedBy = { data?: ContactDetailCreatedByDataAttributesUpdatedByData; }; +export type ContactDetailCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: ContactDetailCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ContactDetailCreatedByDataAttributesCreatedBy; + updatedBy?: ContactDetailCreatedByDataAttributesUpdatedBy; +}; + export type ContactDetailCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type ContactDetailCreatedByDataAttributesCreatedByData = { @@ -12169,18 +11632,6 @@ export type ContactDetailCreatedByDataAttributesCreatedBy = { data?: ContactDetailCreatedByDataAttributesCreatedByData; }; -export type ContactDetailCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type ContactDetailCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributes; @@ -12190,23 +11641,6 @@ export type ContactDetailCreatedByDataAttributesRoles = { data?: ContactDetailCreatedByDataAttributesRolesDataItem[]; }; -export type ContactDetailCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: ContactDetailCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ContactDetailCreatedByDataAttributesCreatedBy; - updatedBy?: ContactDetailCreatedByDataAttributesUpdatedBy; -}; - export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -12220,6 +11654,18 @@ export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy data?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type ContactDetailCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; From 0722285a416ec15f019c9cfac583af98a7d57533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 8 Oct 2024 13:40:06 +0200 Subject: [PATCH 033/105] Rename & change type of Location model fields --- cms/config/sync/admin-role.strapi-author.json | 18 +++++----- cms/config/sync/admin-role.strapi-editor.json | 18 +++++----- .../sync/admin-role.strapi-super-admin.json | 12 +++---- ...content_types##api##location.location.json | 34 +++++++++---------- .../content-types/location/schema.json | 12 +++---- cms/types/generated/contentTypes.d.ts | 12 ++----- .../map/content/map/popup/eez/index.tsx | 4 +-- .../map/popup/protected-area/index.tsx | 2 +- .../map/content/map/popup/regions/index.tsx | 4 +-- .../widgets/marine-conservation/index.tsx | 8 ++--- .../widgets/protection-types/index.tsx | 2 +- .../terrestrial-conservation/index.tsx | 8 ++--- .../panels/modelling/widget/index.tsx | 19 +++++++---- .../src/types/generated/strapi.schemas.ts | 28 +++++++-------- 14 files changed, 88 insertions(+), 93 deletions(-) diff --git a/cms/config/sync/admin-role.strapi-author.json b/cms/config/sync/admin-role.strapi-author.json index b61836e0..40f9f913 100644 --- a/cms/config/sync/admin-role.strapi-author.json +++ b/cms/config/sync/admin-role.strapi-author.json @@ -853,15 +853,15 @@ "fields": [ "code", "name", - "totalMarineArea", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", - "totalTerrestrialArea", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -892,15 +892,15 @@ "fields": [ "code", "name", - "totalMarineArea", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", - "totalTerrestrialArea", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -916,15 +916,15 @@ "fields": [ "code", "name", - "totalMarineArea", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", - "totalTerrestrialArea", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, diff --git a/cms/config/sync/admin-role.strapi-editor.json b/cms/config/sync/admin-role.strapi-editor.json index 43043c16..879d976f 100644 --- a/cms/config/sync/admin-role.strapi-editor.json +++ b/cms/config/sync/admin-role.strapi-editor.json @@ -840,15 +840,15 @@ "fields": [ "code", "name", - "totalMarineArea", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", - "totalTerrestrialArea", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -875,15 +875,15 @@ "fields": [ "code", "name", - "totalMarineArea", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", - "totalTerrestrialArea", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -897,15 +897,15 @@ "fields": [ "code", "name", - "totalMarineArea", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", - "totalTerrestrialArea", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index e28c8317..7b59e5bd 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -1060,7 +1060,7 @@ "fields": [ "code", "name", - "totalMarineArea", + "total_marine_area", "type", "groups", "members", @@ -1068,7 +1068,7 @@ "mpaa_protection_level_stat", "protection_coverage_stats", "marine_bounds", - "totalTerrestrialArea", + "total_terrestrial_area", "terrestrial_bounds", "name_es", "name_fr", @@ -1092,7 +1092,7 @@ "fields": [ "code", "name", - "totalMarineArea", + "total_marine_area", "type", "groups", "members", @@ -1100,7 +1100,7 @@ "mpaa_protection_level_stat", "protection_coverage_stats", "marine_bounds", - "totalTerrestrialArea", + "total_terrestrial_area", "terrestrial_bounds", "name_es", "name_fr", @@ -1117,7 +1117,7 @@ "fields": [ "code", "name", - "totalMarineArea", + "total_marine_area", "type", "groups", "members", @@ -1125,7 +1125,7 @@ "mpaa_protection_level_stat", "protection_coverage_stats", "marine_bounds", - "totalTerrestrialArea", + "total_terrestrial_area", "terrestrial_bounds", "name_es", "name_fr", diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json index e4a673ef..6e61a363 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json @@ -48,16 +48,16 @@ "sortable": true } }, - "totalMarineArea": { + "total_marine_area": { "edit": { - "label": "totalMarineArea", + "label": "total_marine_area", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "totalMarineArea", + "label": "total_marine_area", "searchable": true, "sortable": true } @@ -165,16 +165,16 @@ "sortable": false } }, - "totalTerrestrialArea": { + "total_terrestrial_area": { "edit": { - "label": "totalTerrestrialArea", + "label": "total_terrestrial_area", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "totalTerrestrialArea", + "label": "total_terrestrial_area", "searchable": true, "sortable": true } @@ -299,7 +299,7 @@ "id", "code", "name", - "totalMarineArea" + "total_marine_area" ], "edit": [ [ @@ -328,16 +328,6 @@ "size": 6 } ], - [ - { - "name": "totalMarineArea", - "size": 4 - }, - { - "name": "totalTerrestrialArea", - "size": 4 - } - ], [ { "name": "groups", @@ -379,6 +369,16 @@ "name": "mpaa_fully_highly_protected_area", "size": 4 } + ], + [ + { + "name": "total_marine_area", + "size": 4 + }, + { + "name": "total_terrestrial_area", + "size": 4 + } ] ] } diff --git a/cms/src/api/location/content-types/location/schema.json b/cms/src/api/location/content-types/location/schema.json index ef734426..e5422e85 100644 --- a/cms/src/api/location/content-types/location/schema.json +++ b/cms/src/api/location/content-types/location/schema.json @@ -24,11 +24,10 @@ "required": true, "pluginOptions": {} }, - "totalMarineArea": { - "type": "decimal", + "total_marine_area": { + "type": "biginteger", "description": "Total marine area in km2", "required": true, - "min": 0, "column": { "defaultTo": 0, "type": "decimal", @@ -78,11 +77,10 @@ "type": "json", "pluginOptions": {} }, - "totalTerrestrialArea": { + "total_terrestrial_area": { "pluginOptions": {}, - "type": "decimal", - "required": true, - "min": 0 + "type": "biginteger", + "required": true }, "terrestrial_bounds": { "pluginOptions": {}, diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index 5e5736bc..5f359cec 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1555,11 +1555,7 @@ export interface ApiLocationLocation extends Schema.CollectionType { attributes: { code: Attribute.String & Attribute.Required; name: Attribute.String & Attribute.Required; - totalMarineArea: Attribute.Decimal & - Attribute.Required & - Attribute.SetMinMax<{ - min: 0; - }>; + total_marine_area: Attribute.BigInteger & Attribute.Required; type: Attribute.String & Attribute.Required; groups: Attribute.Relation< 'api::location.location', @@ -1587,11 +1583,7 @@ export interface ApiLocationLocation extends Schema.CollectionType { 'api::protection-coverage-stat.protection-coverage-stat' >; marine_bounds: Attribute.JSON; - totalTerrestrialArea: Attribute.Decimal & - Attribute.Required & - Attribute.SetMinMax<{ - min: 0; - }>; + total_terrestrial_area: Attribute.BigInteger & Attribute.Required; terrestrial_bounds: Attribute.JSON; name_es: Attribute.String & Attribute.Required; name_fr: Attribute.String & Attribute.Required; diff --git a/frontend/src/containers/map/content/map/popup/eez/index.tsx b/frontend/src/containers/map/content/map/popup/eez/index.tsx index 0a6c5402..c244705a 100644 --- a/frontend/src/containers/map/content/map/popup/eez/index.tsx +++ b/frontend/src/containers/map/content/map/popup/eez/index.tsx @@ -109,7 +109,7 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { // @ts-ignore populate: { location: { - fields: ['code', 'marine_bounds', 'totalMarineArea'], + fields: ['code', 'marine_bounds', 'total_marine_area'], }, }, // eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -212,7 +212,7 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { protectedArea: formatKM(locale, protectionCoverageStats.protectedArea), totalArea: formatKM( locale, - protectionCoverageStats.location.data.attributes.totalMarineArea + Number(protectionCoverageStats.location.data.attributes.total_marine_area) ), })}
diff --git a/frontend/src/containers/map/content/map/popup/protected-area/index.tsx b/frontend/src/containers/map/content/map/popup/protected-area/index.tsx index adeacfc2..c3e470c9 100644 --- a/frontend/src/containers/map/content/map/popup/protected-area/index.tsx +++ b/frontend/src/containers/map/content/map/popup/protected-area/index.tsx @@ -115,7 +115,7 @@ const ProtectedAreaPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => if (!DATA) return null; const globalCoveragePercentage = - (DATA.REP_M_AREA / locationQuery.data?.attributes?.totalMarineArea) * 100; + (DATA.REP_M_AREA / Number(locationQuery.data?.attributes?.total_marine_area)) * 100; const classNameByMPAType = cn({ 'text-green': DATA?.PA_DEF === '1', diff --git a/frontend/src/containers/map/content/map/popup/regions/index.tsx b/frontend/src/containers/map/content/map/popup/regions/index.tsx index df2be553..0d591eab 100644 --- a/frontend/src/containers/map/content/map/popup/regions/index.tsx +++ b/frontend/src/containers/map/content/map/popup/regions/index.tsx @@ -112,7 +112,7 @@ const RegionsPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { // @ts-ignore populate: { location: { - fields: ['name', 'name_es', 'name_fr', 'code', 'marine_bounds', 'totalMarineArea'], + fields: ['name', 'name_es', 'name_fr', 'code', 'marine_bounds', 'total_marine_area'], }, }, // eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -222,7 +222,7 @@ const RegionsPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { protectedArea: formattedStats.protectedArea, totalArea: formatKM( locale, - protectionCoverageStats?.location.data.attributes.totalMarineArea + Number(protectionCoverageStats?.location.data.attributes.total_marine_area) ), })}
diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx index 01ee2efb..f196f2b5 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx @@ -36,7 +36,7 @@ const MarineConservationWidget: FCWithMessages = // @ts-ignore populate: { location: { - fields: ['code', 'totalMarineArea'], + fields: ['code', 'total_marine_area'], }, environment: { fields: ['slug'], @@ -114,7 +114,7 @@ const MarineConservationWidget: FCWithMessages = const stats = useMemo(() => { if (!aggregatedData.length) return null; - const totalArea = location.totalMarineArea; + const totalArea = Number(location.total_marine_area); const { protectedArea } = aggregatedData[0]; const percentageFormatted = formatPercentage(locale, (protectedArea / totalArea) * 100, { displayPercentageSign: false, @@ -135,7 +135,7 @@ const MarineConservationWidget: FCWithMessages = const data = aggregatedData.map((entry, index) => { const isLastYear = index + 1 === aggregatedData.length; const { year, protectedArea } = entry; - const percentage = (protectedArea * 100) / location.totalMarineArea; + const percentage = (protectedArea * 100) / Number(location.total_marine_area); return { // We only want to show up to 55%, so we'll cap the percentage here @@ -143,7 +143,7 @@ const MarineConservationWidget: FCWithMessages = percentage: percentage > 55 ? 55 : percentage, year, active: isLastYear, - totalArea: location.totalMarineArea, + totalArea: Number(location.total_marine_area), protectedArea, future: false, }; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx index a5f393a5..f74019bf 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx @@ -96,7 +96,7 @@ const ProtectionTypesWidget: FCWithMessages = ({ loc title: mpaaProtectionLevel?.name, slug: mpaaProtectionLevel?.slug, background: barColor, - totalArea: location?.totalMarineArea, + totalArea: Number(location?.total_marine_area), protectedArea: protectionLevelStats?.area, info: metadata?.info, sources: metadata?.sources, diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx index 75524d6f..a47fa144 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx @@ -38,7 +38,7 @@ const TerrestrialConservationWidget: FCWithMessages { if (!aggregatedData.length) return null; - const totalArea = location.totalMarineArea; + const totalArea = Number(location.total_terrestrial_area); const { protectedArea } = aggregatedData[0]; const percentageFormatted = formatPercentage(locale, (protectedArea / totalArea) * 100, { displayPercentageSign: false, @@ -137,7 +137,7 @@ const TerrestrialConservationWidget: FCWithMessages { const isLastYear = index + 1 === aggregatedData.length; const { year, protectedArea } = entry; - const percentage = (protectedArea * 100) / location.totalMarineArea; + const percentage = (protectedArea * 100) / Number(location.total_terrestrial_area); return { // We only want to show up to 55%, so we'll cap the percentage here @@ -145,7 +145,7 @@ const TerrestrialConservationWidget: FCWithMessages 55 ? 55 : percentage, year, active: isLastYear, - totalArea: location.totalMarineArea, + totalArea: Number(location.total_terrestrial_area), protectedArea, future: false, }; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx index 94660ed5..4e09022b 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx @@ -113,7 +113,7 @@ const ModellingWidget: FCWithMessages = () => { // @ts-ignore populate: { location: { - fields: ['totalMarineArea', 'totalTerrestrialArea'], + fields: ['total_marine_area', 'total_terrestrial_area'], }, }, 'pagination[limit]': 1, @@ -129,11 +129,14 @@ const ModellingWidget: FCWithMessages = () => { const protectedArea = data?.[0].attributes.protectedArea ?? 0; + const location = data?.[0].attributes?.location?.data?.attributes; let totalArea; if (tab === 'marine') { - totalArea = data?.[0].attributes?.location?.data?.attributes?.totalMarineArea ?? 0; + totalArea = location?.total_marine_area ? Number(location?.total_marine_area) : 0; } else { - totalArea = data?.[0].attributes?.location?.data?.attributes?.totalTerrestrialArea ?? 0; + totalArea = location?.total_terrestrial_area + ? Number(location?.total_terrestrial_area) + : 0; } const totalCustomAreas = modellingData.locations_area.reduce((acc, location) => { @@ -191,8 +194,8 @@ const ModellingWidget: FCWithMessages = () => { 'name_es', 'name_es', 'code', - 'totalMarineArea', - 'totalTerrestrialArea', + 'total_marine_area', + 'total_terrestrial_area', ], }, }, @@ -215,9 +218,11 @@ const ModellingWidget: FCWithMessages = () => { // ? total extension of location let totalArea; if (tab === 'marine') { - totalArea = location?.totalMarineArea ?? 0; + totalArea = location?.total_marine_area ? Number(location.total_marine_area) : 0; } else { - totalArea = location?.totalTerrestrialArea ?? 0; + totalArea = location?.total_terrestrial_area + ? Number(location.total_terrestrial_area) + : 0; } // ? total custom protected area (analysis) diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index ff00ffcf..b8c7441b 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -1854,7 +1854,7 @@ export type ProtectionCoverageStatEnvironment = { export type ProtectionCoverageStatLocationDataAttributes = { code?: string; name?: string; - totalMarineArea?: number; + total_marine_area?: string; type?: string; groups?: ProtectionCoverageStatLocationDataAttributesGroups; members?: ProtectionCoverageStatLocationDataAttributesMembers; @@ -1862,7 +1862,7 @@ export type ProtectionCoverageStatLocationDataAttributes = { mpaa_protection_level_stat?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStat; protection_coverage_stats?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; - totalTerrestrialArea?: number; + total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; @@ -2809,7 +2809,7 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage export type PaChildrenDataItemAttributesLocationDataAttributes = { code?: string; name?: string; - totalMarineArea?: number; + total_marine_area?: string; type?: string; groups?: PaChildrenDataItemAttributesLocationDataAttributesGroups; members?: PaChildrenDataItemAttributesLocationDataAttributesMembers; @@ -2817,7 +2817,7 @@ export type PaChildrenDataItemAttributesLocationDataAttributes = { mpaa_protection_level_stat?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStat; protection_coverage_stats?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; - totalTerrestrialArea?: number; + total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; @@ -3633,7 +3633,7 @@ export type MpaaProtectionLevelStatLocationDataAttributesUpdatedBy = { export type MpaaProtectionLevelStatLocationDataAttributes = { code?: string; name?: string; - totalMarineArea?: number; + total_marine_area?: string; type?: string; groups?: MpaaProtectionLevelStatLocationDataAttributesGroups; members?: MpaaProtectionLevelStatLocationDataAttributesMembers; @@ -3641,7 +3641,7 @@ export type MpaaProtectionLevelStatLocationDataAttributes = { mpaa_protection_level_stat?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat; protection_coverage_stats?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; - totalTerrestrialArea?: number; + total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; @@ -5130,7 +5130,7 @@ export type LocationResponseMeta = { [key: string]: any }; export interface Location { code: string; name: string; - totalMarineArea: number; + total_marine_area: string; type: string; groups?: LocationGroups; members?: LocationMembers; @@ -5138,7 +5138,7 @@ export interface Location { mpaa_protection_level_stat?: LocationMpaaProtectionLevelStat; protection_coverage_stats?: LocationProtectionCoverageStats; marine_bounds?: unknown; - totalTerrestrialArea: number; + total_terrestrial_area: string; terrestrial_bounds?: unknown; name_es: string; name_fr: string; @@ -5228,7 +5228,7 @@ export type LocationMembers = { export type LocationGroupsDataItemAttributes = { code?: string; name?: string; - totalMarineArea?: number; + total_marine_area?: string; type?: string; groups?: LocationGroupsDataItemAttributesGroups; members?: LocationGroupsDataItemAttributesMembers; @@ -5236,7 +5236,7 @@ export type LocationGroupsDataItemAttributes = { mpaa_protection_level_stat?: LocationGroupsDataItemAttributesMpaaProtectionLevelStat; protection_coverage_stats?: LocationGroupsDataItemAttributesProtectionCoverageStats; marine_bounds?: unknown; - totalTerrestrialArea?: number; + total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; @@ -6575,7 +6575,7 @@ export type HabitatStatHabitatDataAttributesCreatedBy = { export type HabitatStatLocationDataAttributes = { code?: string; name?: string; - totalMarineArea?: number; + total_marine_area?: string; type?: string; groups?: HabitatStatLocationDataAttributesGroups; members?: HabitatStatLocationDataAttributesMembers; @@ -6583,7 +6583,7 @@ export type HabitatStatLocationDataAttributes = { mpaa_protection_level_stat?: HabitatStatLocationDataAttributesMpaaProtectionLevelStat; protection_coverage_stats?: HabitatStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; - totalTerrestrialArea?: number; + total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; @@ -7583,7 +7583,7 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt export type FishingProtectionLevelStatLocationDataAttributes = { code?: string; name?: string; - totalMarineArea?: number; + total_marine_area?: string; type?: string; groups?: FishingProtectionLevelStatLocationDataAttributesGroups; members?: FishingProtectionLevelStatLocationDataAttributesMembers; @@ -7591,7 +7591,7 @@ export type FishingProtectionLevelStatLocationDataAttributes = { mpaa_protection_level_stat?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat; protection_coverage_stats?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; - totalTerrestrialArea?: number; + total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; From 4d2b66085c8ad573a60a6e1a552273ee67e3331a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 8 Oct 2024 13:54:11 +0200 Subject: [PATCH 034/105] Remove field from Location model --- .../sync/admin-role.strapi-super-admin.json | 15 +- ...content_types##api##location.location.json | 46 +- cms/config/sync/user-role.public.json | 6 + .../content-types/location/schema.json | 7 +- .../mpaa-protection-level-stat/schema.json | 2 +- cms/types/generated/contentTypes.d.ts | 6 +- .../details/tables/global-regional/hooks.tsx | 23 +- .../src/types/generated/strapi.schemas.ts | 519 +++++++++--------- 8 files changed, 295 insertions(+), 329 deletions(-) diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 7b59e5bd..693881ca 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -1065,14 +1065,13 @@ "groups", "members", "fishing_protection_level_stats", - "mpaa_protection_level_stat", + "mpaa_protection_level_stats", "protection_coverage_stats", "marine_bounds", "total_terrestrial_area", "terrestrial_bounds", "name_es", - "name_fr", - "mpaa_fully_highly_protected_area" + "name_fr" ] }, "conditions": [], @@ -1097,14 +1096,13 @@ "groups", "members", "fishing_protection_level_stats", - "mpaa_protection_level_stat", + "mpaa_protection_level_stats", "protection_coverage_stats", "marine_bounds", "total_terrestrial_area", "terrestrial_bounds", "name_es", - "name_fr", - "mpaa_fully_highly_protected_area" + "name_fr" ] }, "conditions": [], @@ -1122,14 +1120,13 @@ "groups", "members", "fishing_protection_level_stats", - "mpaa_protection_level_stat", + "mpaa_protection_level_stats", "protection_coverage_stats", "marine_bounds", "total_terrestrial_area", "terrestrial_bounds", "name_es", - "name_fr", - "mpaa_fully_highly_protected_area" + "name_fr" ] }, "conditions": [], diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json index 6e61a363..f9b29180 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json @@ -121,9 +121,9 @@ "sortable": false } }, - "mpaa_protection_level_stat": { + "mpaa_protection_level_stats": { "edit": { - "label": "mpaa_protection_level_stat", + "label": "mpaa_protection_level_stats", "description": "", "placeholder": "", "visible": true, @@ -131,7 +131,7 @@ "mainField": "id" }, "list": { - "label": "mpaa_protection_level_stat", + "label": "mpaa_protection_level_stats", "searchable": true, "sortable": true } @@ -221,20 +221,6 @@ "sortable": true } }, - "mpaa_fully_highly_protected_area": { - "edit": { - "label": "mpaa_fully_highly_protected_area", - "description": "", - "placeholder": "", - "visible": true, - "editable": true - }, - "list": { - "label": "mpaa_fully_highly_protected_area", - "searchable": true, - "sortable": true - } - }, "createdAt": { "edit": { "label": "createdAt", @@ -295,12 +281,6 @@ } }, "layouts": { - "list": [ - "id", - "code", - "name", - "total_marine_area" - ], "edit": [ [ { @@ -350,24 +330,20 @@ ], [ { - "name": "marine_bounds", - "size": 12 + "name": "mpaa_protection_level_stats", + "size": 6 } ], [ { - "name": "terrestrial_bounds", + "name": "marine_bounds", "size": 12 } ], [ { - "name": "mpaa_protection_level_stat", - "size": 6 - }, - { - "name": "mpaa_fully_highly_protected_area", - "size": 4 + "name": "terrestrial_bounds", + "size": 12 } ], [ @@ -380,6 +356,12 @@ "size": 4 } ] + ], + "list": [ + "id", + "code", + "name", + "total_marine_area" ] } }, diff --git a/cms/config/sync/user-role.public.json b/cms/config/sync/user-role.public.json index f278ef97..f218b55c 100644 --- a/cms/config/sync/user-role.public.json +++ b/cms/config/sync/user-role.public.json @@ -114,6 +114,12 @@ { "action": "api::mpaa-protection-level.mpaa-protection-level.findOne" }, + { + "action": "api::pa.pa.find" + }, + { + "action": "api::pa.pa.findOne" + }, { "action": "api::protection-coverage-stat.protection-coverage-stat.find" }, diff --git a/cms/src/api/location/content-types/location/schema.json b/cms/src/api/location/content-types/location/schema.json index e5422e85..386c62e7 100644 --- a/cms/src/api/location/content-types/location/schema.json +++ b/cms/src/api/location/content-types/location/schema.json @@ -61,7 +61,7 @@ "target": "api::fishing-protection-level-stat.fishing-protection-level-stat", "mappedBy": "location" }, - "mpaa_protection_level_stat": { + "mpaa_protection_level_stats": { "type": "relation", "relation": "oneToOne", "target": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", @@ -93,11 +93,6 @@ "name_fr": { "type": "string", "required": true - }, - "mpaa_fully_highly_protected_area": { - "type": "decimal", - "required": false, - "min": 0 } } } diff --git a/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json b/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json index 8be64859..ae1165b8 100644 --- a/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json +++ b/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json @@ -37,7 +37,7 @@ "type": "relation", "relation": "oneToOne", "target": "api::location.location", - "mappedBy": "mpaa_protection_level_stat" + "mappedBy": "mpaa_protection_level_stats" } } } diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index 5f359cec..e81e1cde 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1572,7 +1572,7 @@ export interface ApiLocationLocation extends Schema.CollectionType { 'oneToMany', 'api::fishing-protection-level-stat.fishing-protection-level-stat' >; - mpaa_protection_level_stat: Attribute.Relation< + mpaa_protection_level_stats: Attribute.Relation< 'api::location.location', 'oneToOne', 'api::mpaa-protection-level-stat.mpaa-protection-level-stat' @@ -1587,10 +1587,6 @@ export interface ApiLocationLocation extends Schema.CollectionType { terrestrial_bounds: Attribute.JSON; name_es: Attribute.String & Attribute.Required; name_fr: Attribute.String & Attribute.Required; - mpaa_fully_highly_protected_area: Attribute.Decimal & - Attribute.SetMinMax<{ - min: 0; - }>; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< diff --git a/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx index 61f6e68c..e8db2c8f 100644 --- a/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx @@ -28,7 +28,9 @@ export type GlobalRegionalTableColumns = { name_es: string; name_fr: string; code: string; - mpaa_fully_highly_protected_area: number; + mpaa_protection_level_stats: { + percentage: number; + }; }; environment: { name: string; @@ -258,8 +260,8 @@ export const useColumns = ( ...(environment === 'marine' ? [ { - id: 'location.mpaa_fully_highly_protected_area', - accessorKey: 'location.mpaa_fully_highly_protected_area', + id: 'location.mpaa_protection_level_stats.percentage', + accessorKey: 'location.mpaa_protection_level_stats.percentage', header: ({ column }) => ( @@ -271,7 +273,7 @@ export const useColumns = ( const { location } = row.original; const formattedValue = cellFormatter.percentage( locale, - location.mpaa_fully_highly_protected_area + location.mpaa_protection_level_stats.percentage ); return ( {t('percentage', { percentage: formattedValue })} @@ -352,19 +354,12 @@ export const useData = ( // @ts-ignore populate: { location: { - fields: ['name', 'name_es', 'name_fr', 'code', 'mpaa_fully_highly_protected_area'], + fields: ['name', 'name_es', 'name_fr', 'code'], populate: { ...(environment === 'marine' ? { mpaa_protection_level_stats: { fields: ['percentage'], - filters: { - mpaa_protection_level: { - slug: { - $eq: 'fully-highly-protected', - }, - }, - }, }, } : {}), @@ -450,7 +445,9 @@ export const useData = ( name_es: location?.name_es, name_fr: location?.name_fr, code: location.code, - mpaa_fully_highly_protected_area: location.mpaa_fully_highly_protected_area, + mpaa_protection_level_stats: { + percentage: location?.mpaa_protection_level_stats.data.attributes.percentage, + }, }, environment: { name: localizedEnvironment.name, diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index b8c7441b..9c0204b9 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -1859,14 +1859,13 @@ export type ProtectionCoverageStatLocationDataAttributes = { groups?: ProtectionCoverageStatLocationDataAttributesGroups; members?: ProtectionCoverageStatLocationDataAttributesMembers; fishing_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stat?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStat; + mpaa_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; - mpaa_fully_highly_protected_area?: number; createdAt?: string; updatedAt?: string; createdBy?: ProtectionCoverageStatLocationDataAttributesCreatedBy; @@ -2033,123 +2032,123 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatData = { +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStat = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatData; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats = { + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { - mpaa_protection_level?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributes = { + mpaa_protection_level?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel; area?: number; percentage?: number; - location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation; createdAt?: string; updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { @@ -2814,14 +2813,13 @@ export type PaChildrenDataItemAttributesLocationDataAttributes = { groups?: PaChildrenDataItemAttributesLocationDataAttributesGroups; members?: PaChildrenDataItemAttributesLocationDataAttributesMembers; fishing_protection_level_stats?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stat?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStat; + mpaa_protection_level_stats?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; - mpaa_fully_highly_protected_area?: number; createdAt?: string; updatedAt?: string; createdBy?: PaChildrenDataItemAttributesLocationDataAttributesCreatedBy; @@ -2949,124 +2947,124 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributes = { - mpaa_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + mpaa_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel; area?: number; percentage?: number; - location?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + location?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation; createdAt?: string; updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatData = { +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStat = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatData; +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats = { + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes = { [key: string]: any }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItem = @@ -3638,14 +3636,13 @@ export type MpaaProtectionLevelStatLocationDataAttributes = { groups?: MpaaProtectionLevelStatLocationDataAttributesGroups; members?: MpaaProtectionLevelStatLocationDataAttributesMembers; fishing_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stat?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat; + mpaa_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; - mpaa_fully_highly_protected_area?: number; createdAt?: string; updatedAt?: string; createdBy?: MpaaProtectionLevelStatLocationDataAttributesCreatedBy; @@ -3803,80 +3800,80 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData = { +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats = { + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { - mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributes = { + mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel; area?: number; percentage?: number; - location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData; }; export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { @@ -5135,14 +5132,13 @@ export interface Location { groups?: LocationGroups; members?: LocationMembers; fishing_protection_level_stats?: LocationFishingProtectionLevelStats; - mpaa_protection_level_stat?: LocationMpaaProtectionLevelStat; + mpaa_protection_level_stats?: LocationMpaaProtectionLevelStats; protection_coverage_stats?: LocationProtectionCoverageStats; marine_bounds?: unknown; total_terrestrial_area: string; terrestrial_bounds?: unknown; name_es: string; name_fr: string; - mpaa_fully_highly_protected_area?: number; createdAt?: string; updatedAt?: string; createdBy?: LocationCreatedBy; @@ -5192,15 +5188,15 @@ export type LocationProtectionCoverageStats = { data?: LocationProtectionCoverageStatsDataItem[]; }; -export type LocationMpaaProtectionLevelStatDataAttributes = { [key: string]: any }; +export type LocationMpaaProtectionLevelStatsDataAttributes = { [key: string]: any }; -export type LocationMpaaProtectionLevelStatData = { +export type LocationMpaaProtectionLevelStatsData = { id?: number; - attributes?: LocationMpaaProtectionLevelStatDataAttributes; + attributes?: LocationMpaaProtectionLevelStatsDataAttributes; }; -export type LocationMpaaProtectionLevelStat = { - data?: LocationMpaaProtectionLevelStatData; +export type LocationMpaaProtectionLevelStats = { + data?: LocationMpaaProtectionLevelStatsData; }; export type LocationFishingProtectionLevelStatsDataItemAttributes = { [key: string]: any }; @@ -5233,14 +5229,13 @@ export type LocationGroupsDataItemAttributes = { groups?: LocationGroupsDataItemAttributesGroups; members?: LocationGroupsDataItemAttributesMembers; fishing_protection_level_stats?: LocationGroupsDataItemAttributesFishingProtectionLevelStats; - mpaa_protection_level_stat?: LocationGroupsDataItemAttributesMpaaProtectionLevelStat; + mpaa_protection_level_stats?: LocationGroupsDataItemAttributesMpaaProtectionLevelStats; protection_coverage_stats?: LocationGroupsDataItemAttributesProtectionCoverageStats; marine_bounds?: unknown; total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; - mpaa_fully_highly_protected_area?: number; createdAt?: string; updatedAt?: string; createdBy?: LocationGroupsDataItemAttributesCreatedBy; @@ -5398,117 +5393,117 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributes = { - mpaa_protection_level?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributes = { + mpaa_protection_level?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel; area?: number; percentage?: number; - location?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocation; + location?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesLocation; createdAt?: string; updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatData = { +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStat = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatData; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStats = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = { +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = { +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocationData = { +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesLocationData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocation = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesLocationData; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesLocation = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesLocationData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributes = { @@ -6580,14 +6575,13 @@ export type HabitatStatLocationDataAttributes = { groups?: HabitatStatLocationDataAttributesGroups; members?: HabitatStatLocationDataAttributesMembers; fishing_protection_level_stats?: HabitatStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stat?: HabitatStatLocationDataAttributesMpaaProtectionLevelStat; + mpaa_protection_level_stats?: HabitatStatLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: HabitatStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; - mpaa_fully_highly_protected_area?: number; createdAt?: string; updatedAt?: string; createdBy?: HabitatStatLocationDataAttributesCreatedBy; @@ -6746,117 +6740,117 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = { - mpaa_protection_level?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributes = { + mpaa_protection_level?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel; area?: number; percentage?: number; - location?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + location?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation; createdAt?: string; updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatData = { +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStat = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatData; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStats = { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = { +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy = { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = { +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy = { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = { +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation = { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { @@ -7588,14 +7582,13 @@ export type FishingProtectionLevelStatLocationDataAttributes = { groups?: FishingProtectionLevelStatLocationDataAttributesGroups; members?: FishingProtectionLevelStatLocationDataAttributesMembers; fishing_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stat?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat; + mpaa_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; total_terrestrial_area?: string; terrestrial_bounds?: unknown; name_es?: string; name_fr?: string; - mpaa_fully_highly_protected_area?: number; createdAt?: string; updatedAt?: string; createdBy?: FishingProtectionLevelStatLocationDataAttributesCreatedBy; @@ -7718,124 +7711,124 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributes = { - mpaa_protection_level?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel; + mpaa_protection_level?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel; area?: number; percentage?: number; - location?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation; + location?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation; createdAt?: string; updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy; + createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData = { +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatData; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats = { + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedBy = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesUpdatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedBy = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesCreatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocation = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocation = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesLocationData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesLocationData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesLocalizations; + createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevel = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevel = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { From d5ce3052ee6145299de0a8bc77a3c75604435992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 8 Oct 2024 14:11:17 +0200 Subject: [PATCH 035/105] Update how the analysis data is fetched --- frontend/.env.default | 3 +-- .../src/containers/map/content/map/modelling/index.tsx | 10 ++++------ infrastructure/README.md | 3 +-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/frontend/.env.default b/frontend/.env.default index 8194769d..13fe0d4d 100644 --- a/frontend/.env.default +++ b/frontend/.env.default @@ -6,8 +6,7 @@ HUBSPOT_TOKEN= LOCALAZY_CDN= -NEXT_PUBLIC_ANALYSIS_CF_MARINE_URL= -NEXT_PUBLIC_ANALYSIS_CF_TERRESTRIAL_URL= +NEXT_PUBLIC_ANALYSIS_CF_URL= NEXT_PUBLIC_FEATURE_FLAG_ANALYSIS= HTTP_AUTH_USERNAME= diff --git a/frontend/src/containers/map/content/map/modelling/index.tsx b/frontend/src/containers/map/content/map/modelling/index.tsx index 7a6e1826..5a599dea 100644 --- a/frontend/src/containers/map/content/map/modelling/index.tsx +++ b/frontend/src/containers/map/content/map/modelling/index.tsx @@ -10,12 +10,10 @@ import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { ModellingData } from '@/types/modelling'; const fetchModelling = async (tab: string, feature: Feature) => { - const url = - tab === 'marine' - ? process.env.NEXT_PUBLIC_ANALYSIS_CF_MARINE_URL - : process.env.NEXT_PUBLIC_ANALYSIS_CF_TERRESTRIAL_URL; - - return axios.post(url, feature); + return axios.post(process.env.NEXT_PUBLIC_ANALYSIS_CF_URL, { + environment: tab, + feature, + }); }; const Modelling = () => { diff --git a/infrastructure/README.md b/infrastructure/README.md index ebbf1d08..44174a2b 100644 --- a/infrastructure/README.md +++ b/infrastructure/README.md @@ -120,8 +120,7 @@ Deployment to the CloudRun instances is accomplished by building Docker images a - the following secrets set by terraform in STAGING_CLIENT_ENV_TF_MANAGED (in the format of an .env file): - NEXT_PUBLIC_URL - NEXT_PUBLIC_API_URL - - NEXT_PUBLIC_ANALYSIS_CF_MARINE_URL - - NEXT_PUBLIC_ANALYSIS_CF_TERRESTRIAL_URL + - NEXT_PUBLIC_ANALYSIS_CF_URL - NEXT_PUBLIC_ENVIRONMENT - LOG_LEVEL - additional secrets set manually in STAGING_CLIENT_ENV (copy to be managed in LastPass) From 4f0b259330efbba2846c0da8b366807b4fa15c29 Mon Sep 17 00:00:00 2001 From: Simao Rodrigues Date: Tue, 8 Oct 2024 11:47:10 +0100 Subject: [PATCH 036/105] Layers panel to display datasets grouped by environment - connecting to Strapi --- frontend/src/constants/datasets.ts | 5 ++ .../map/sidebar/layers-panel/index.tsx | 74 +++++++++++++++---- 2 files changed, 64 insertions(+), 15 deletions(-) create mode 100644 frontend/src/constants/datasets.ts diff --git a/frontend/src/constants/datasets.ts b/frontend/src/constants/datasets.ts new file mode 100644 index 00000000..af615574 --- /dev/null +++ b/frontend/src/constants/datasets.ts @@ -0,0 +1,5 @@ +export const DATASETS = { + terrestrial: 'terrestrial', + marine: 'marine', + basemap: 'basemap', +}; diff --git a/frontend/src/containers/map/sidebar/layers-panel/index.tsx b/frontend/src/containers/map/sidebar/layers-panel/index.tsx index 841c4e6f..a4396e2e 100644 --- a/frontend/src/containers/map/sidebar/layers-panel/index.tsx +++ b/frontend/src/containers/map/sidebar/layers-panel/index.tsx @@ -1,10 +1,11 @@ -import { ComponentProps, useCallback } from 'react'; +import { ComponentProps, useCallback, useMemo } from 'react'; import { useLocale, useTranslations } from 'next-intl'; import TooltipButton from '@/components/tooltip-button'; import { Label } from '@/components/ui/label'; import { Switch } from '@/components/ui/switch'; +import { DATASETS } from '@/constants/datasets'; import { useSyncMapSettings } from '@/containers/map/content/map/sync-settings'; import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { FCWithMessages } from '@/types'; @@ -20,8 +21,8 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { const [{ tab }] = useSyncMapContentSettings(); const { - data: datasets, - isFetching: isFetchingDatasets, + data: datasetsData, + isFetching: isFetchingDatasetsData, }: { data: DatasetUpdatedByData[]; isFetching: boolean } = useGetDatasets( { locale, @@ -30,7 +31,7 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { // @ts-ignore populate: { layers: { - populate: 'metadata', + populate: 'metadata,environment', }, }, }, @@ -41,6 +42,54 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { } ); + const datasets = useMemo(() => { + const basemapDataset = datasetsData?.filter( + ({ attributes }) => attributes?.slug === DATASETS.basemap + ); + const basemapDatasetIds = basemapDataset?.map(({ id }) => id); + const nonBasemapDataset = datasetsData?.filter(({ id }) => !basemapDatasetIds.includes(id)); + + const filterLayersByEnvironment = (layers, environment) => { + const layersData = layers?.data; + return ( + layersData?.filter(({ attributes }) => { + const environmentData = attributes?.environment?.data; + return environmentData?.attributes?.slug === environment; + }) || [] + ); + }; + + const parseDatasetsByEnvironment = (dataset, environment) => { + const parsedDatasets = nonBasemapDataset?.map((d) => { + const { layers, ...rest } = d?.attributes; + const filteredLayers = filterLayersByEnvironment(layers, environment); + if (!filteredLayers.length) return null; + + return { + id: dataset?.id, + attributes: { + ...rest, + layers: { + data: filteredLayers, + }, + }, + }; + }); + + return parsedDatasets?.filter((dataset) => dataset !== null); + }; + + const [terrestrialDataset, marineDataset] = [DATASETS.terrestrial, DATASETS.marine]?.map( + (environment) => parseDatasetsByEnvironment(nonBasemapDataset, environment) + ); + + return { + terrestrial: terrestrialDataset, + marine: marineDataset, + basemap: basemapDataset, + }; + }, [datasetsData]); + const handleLabelsChange = useCallback( (active: Parameters['onCheckedChange']>[0]) => { setMapSettings((prev) => ({ @@ -51,11 +100,6 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { [setMapSettings] ); - // ? NOTE: This is temporary, just to debug display until we connect it with final data format - const terrestrialDatasets = []; - const marineDatasets = datasets?.filter(({ attributes }) => attributes?.name !== 'Basemap'); - const basemapDatasets = datasets?.filter(({ attributes }) => attributes?.name === 'Basemap'); - return (
@@ -63,21 +107,21 @@ const LayersPanel: FCWithMessages = (): JSX.Element => {
From 0b9f7b3e5fb61fd7351e8a9150d79067c2e6a1d6 Mon Sep 17 00:00:00 2001 From: Simao Rodrigues Date: Tue, 8 Oct 2024 13:27:04 +0100 Subject: [PATCH 037/105] Minor fixes/renaming to the layers panel dataset parsing --- .../{datasets.ts => environments.ts} | 3 +- .../map/sidebar/layers-panel/index.tsx | 30 ++++++++++++------- 2 files changed, 20 insertions(+), 13 deletions(-) rename frontend/src/constants/{datasets.ts => environments.ts} (52%) diff --git a/frontend/src/constants/datasets.ts b/frontend/src/constants/environments.ts similarity index 52% rename from frontend/src/constants/datasets.ts rename to frontend/src/constants/environments.ts index af615574..126ac39a 100644 --- a/frontend/src/constants/datasets.ts +++ b/frontend/src/constants/environments.ts @@ -1,5 +1,4 @@ -export const DATASETS = { +export const ENVIRONMENTS = { terrestrial: 'terrestrial', marine: 'marine', - basemap: 'basemap', }; diff --git a/frontend/src/containers/map/sidebar/layers-panel/index.tsx b/frontend/src/containers/map/sidebar/layers-panel/index.tsx index a4396e2e..ba6c2e5d 100644 --- a/frontend/src/containers/map/sidebar/layers-panel/index.tsx +++ b/frontend/src/containers/map/sidebar/layers-panel/index.tsx @@ -5,7 +5,7 @@ import { useLocale, useTranslations } from 'next-intl'; import TooltipButton from '@/components/tooltip-button'; import { Label } from '@/components/ui/label'; import { Switch } from '@/components/ui/switch'; -import { DATASETS } from '@/constants/datasets'; +import { ENVIRONMENTS } from '@/constants/environments'; import { useSyncMapSettings } from '@/containers/map/content/map/sync-settings'; import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { FCWithMessages } from '@/types'; @@ -43,14 +43,17 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { ); const datasets = useMemo(() => { - const basemapDataset = datasetsData?.filter( - ({ attributes }) => attributes?.slug === DATASETS.basemap - ); + // Basemap dataset is displayed separately in the panel, much like terrestrial/maritime. + // We need to split it out from the datasets we're processing in order to display this correctly. + const basemapDataset = datasetsData?.filter(({ attributes }) => attributes?.slug === 'basemap'); const basemapDatasetIds = basemapDataset?.map(({ id }) => id); - const nonBasemapDataset = datasetsData?.filter(({ id }) => !basemapDatasetIds.includes(id)); + const nonBasemapDatasets = datasetsData?.filter(({ id }) => !basemapDatasetIds.includes(id)); + // A dataset can contain layers with different environments assigned, we want + // to pick only the layers for the environment we're displaying. const filterLayersByEnvironment = (layers, environment) => { const layersData = layers?.data; + return ( layersData?.filter(({ attributes }) => { const environmentData = attributes?.environment?.data; @@ -59,14 +62,17 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { ); }; - const parseDatasetsByEnvironment = (dataset, environment) => { - const parsedDatasets = nonBasemapDataset?.map((d) => { + const parseDatasetsByEnvironment = (datasets, environment) => { + const parsedDatasets = datasets?.map((d) => { const { layers, ...rest } = d?.attributes; const filteredLayers = filterLayersByEnvironment(layers, environment); + + // If dataset contains no layers, it should not displayed. We'll filter this + // values before the return of the parsed data array. if (!filteredLayers.length) return null; return { - id: dataset?.id, + id: d?.id, attributes: { ...rest, layers: { @@ -76,12 +82,14 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { }; }); + // Prevent displaying of groups when they are empty / contain no layers return parsedDatasets?.filter((dataset) => dataset !== null); }; - const [terrestrialDataset, marineDataset] = [DATASETS.terrestrial, DATASETS.marine]?.map( - (environment) => parseDatasetsByEnvironment(nonBasemapDataset, environment) - ); + const [terrestrialDataset, marineDataset] = [ + ENVIRONMENTS.terrestrial, + ENVIRONMENTS.marine, + ]?.map((environment) => parseDatasetsByEnvironment(nonBasemapDatasets, environment)); return { terrestrial: terrestrialDataset, From 8a1841aa74bf67842730065741224f29e19727d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 8 Oct 2024 16:57:38 +0200 Subject: [PATCH 038/105] Temporarily delete fields on Location model --- cms/config/sync/admin-role.strapi-author.json | 15 +--- cms/config/sync/admin-role.strapi-editor.json | 15 +--- .../sync/admin-role.strapi-super-admin.json | 18 +---- ...content_types##api##location.location.json | 70 ++----------------- ...level-stat.mpaa-protection-level-stat.json | 30 ++------ .../content-types/location/schema.json | 25 ------- .../mpaa-protection-level-stat/schema.json | 6 -- cms/types/generated/contentTypes.d.ts | 12 ---- 8 files changed, 19 insertions(+), 172 deletions(-) diff --git a/cms/config/sync/admin-role.strapi-author.json b/cms/config/sync/admin-role.strapi-author.json index 40f9f913..382d81c0 100644 --- a/cms/config/sync/admin-role.strapi-author.json +++ b/cms/config/sync/admin-role.strapi-author.json @@ -859,9 +859,7 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" + "name_fr" ], "locales": [] }, @@ -898,9 +896,7 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" + "name_fr" ], "locales": [] }, @@ -922,9 +918,7 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" + "name_fr" ], "locales": [] }, @@ -1001,7 +995,6 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", "area" ] @@ -1025,7 +1018,6 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", "area" ] @@ -1040,7 +1032,6 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", "area" ] diff --git a/cms/config/sync/admin-role.strapi-editor.json b/cms/config/sync/admin-role.strapi-editor.json index 879d976f..722524f9 100644 --- a/cms/config/sync/admin-role.strapi-editor.json +++ b/cms/config/sync/admin-role.strapi-editor.json @@ -846,9 +846,7 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" + "name_fr" ], "locales": [] }, @@ -881,9 +879,7 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" + "name_fr" ], "locales": [] }, @@ -903,9 +899,7 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" + "name_fr" ], "locales": [] }, @@ -972,7 +966,6 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", "area" ] @@ -992,7 +985,6 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", "area" ] @@ -1005,7 +997,6 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", "area" ] diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 693881ca..5edb915e 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -1060,15 +1060,12 @@ "fields": [ "code", "name", - "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", - "mpaa_protection_level_stats", "protection_coverage_stats", "marine_bounds", - "total_terrestrial_area", "terrestrial_bounds", "name_es", "name_fr" @@ -1091,15 +1088,12 @@ "fields": [ "code", "name", - "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", - "mpaa_protection_level_stats", "protection_coverage_stats", "marine_bounds", - "total_terrestrial_area", "terrestrial_bounds", "name_es", "name_fr" @@ -1115,15 +1109,12 @@ "fields": [ "code", "name", - "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", - "mpaa_protection_level_stats", "protection_coverage_stats", "marine_bounds", - "total_terrestrial_area", "terrestrial_bounds", "name_es", "name_fr" @@ -1273,8 +1264,7 @@ "fields": [ "mpaa_protection_level", "area", - "percentage", - "location" + "percentage" ] }, "conditions": [], @@ -1294,8 +1284,7 @@ "fields": [ "mpaa_protection_level", "area", - "percentage", - "location" + "percentage" ] }, "conditions": [], @@ -1308,8 +1297,7 @@ "fields": [ "mpaa_protection_level", "area", - "percentage", - "location" + "percentage" ] }, "conditions": [], diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json index f9b29180..f49ab863 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json @@ -48,20 +48,6 @@ "sortable": true } }, - "total_marine_area": { - "edit": { - "label": "total_marine_area", - "description": "", - "placeholder": "", - "visible": true, - "editable": true - }, - "list": { - "label": "total_marine_area", - "searchable": true, - "sortable": true - } - }, "type": { "edit": { "label": "type", @@ -121,21 +107,6 @@ "sortable": false } }, - "mpaa_protection_level_stats": { - "edit": { - "label": "mpaa_protection_level_stats", - "description": "", - "placeholder": "", - "visible": true, - "editable": true, - "mainField": "id" - }, - "list": { - "label": "mpaa_protection_level_stats", - "searchable": true, - "sortable": true - } - }, "protection_coverage_stats": { "edit": { "label": "protection_coverage_stats", @@ -165,20 +136,6 @@ "sortable": false } }, - "total_terrestrial_area": { - "edit": { - "label": "total_terrestrial_area", - "description": "", - "placeholder": "", - "visible": true, - "editable": true - }, - "list": { - "label": "total_terrestrial_area", - "searchable": true, - "sortable": true - } - }, "terrestrial_bounds": { "edit": { "label": "terrestrial_bounds", @@ -281,6 +238,11 @@ } }, "layouts": { + "list": [ + "id", + "code", + "name" + ], "edit": [ [ { @@ -328,12 +290,6 @@ "size": 6 } ], - [ - { - "name": "mpaa_protection_level_stats", - "size": 6 - } - ], [ { "name": "marine_bounds", @@ -345,23 +301,7 @@ "name": "terrestrial_bounds", "size": 12 } - ], - [ - { - "name": "total_marine_area", - "size": 4 - }, - { - "name": "total_terrestrial_area", - "size": 4 - } ] - ], - "list": [ - "id", - "code", - "name", - "total_marine_area" ] } }, diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json index 494862d3..b20527fd 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json @@ -20,21 +20,6 @@ "sortable": true } }, - "location": { - "edit": { - "label": "location", - "description": "", - "placeholder": "", - "visible": true, - "editable": true, - "mainField": "code" - }, - "list": { - "label": "location", - "searchable": true, - "sortable": true - } - }, "mpaa_protection_level": { "edit": { "label": "mpaa_protection_level", @@ -138,12 +123,13 @@ } }, "layouts": { + "list": [ + "id", + "mpaa_protection_level", + "area" + ], "edit": [ [ - { - "name": "location", - "size": 6 - }, { "name": "area", "size": 4 @@ -159,12 +145,6 @@ "size": 4 } ] - ], - "list": [ - "id", - "location", - "mpaa_protection_level", - "area" ] } }, diff --git a/cms/src/api/location/content-types/location/schema.json b/cms/src/api/location/content-types/location/schema.json index 386c62e7..dff46326 100644 --- a/cms/src/api/location/content-types/location/schema.json +++ b/cms/src/api/location/content-types/location/schema.json @@ -24,20 +24,6 @@ "required": true, "pluginOptions": {} }, - "total_marine_area": { - "type": "biginteger", - "description": "Total marine area in km2", - "required": true, - "column": { - "defaultTo": 0, - "type": "decimal", - "args": [ - 12, - 2 - ] - }, - "pluginOptions": {} - }, "type": { "type": "string", "required": true, @@ -61,12 +47,6 @@ "target": "api::fishing-protection-level-stat.fishing-protection-level-stat", "mappedBy": "location" }, - "mpaa_protection_level_stats": { - "type": "relation", - "relation": "oneToOne", - "target": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", - "inversedBy": "location" - }, "protection_coverage_stats": { "type": "relation", "relation": "oneToMany", @@ -77,11 +57,6 @@ "type": "json", "pluginOptions": {} }, - "total_terrestrial_area": { - "pluginOptions": {}, - "type": "biginteger", - "required": true - }, "terrestrial_bounds": { "pluginOptions": {}, "type": "json" diff --git a/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json b/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json index ae1165b8..13bf05f6 100644 --- a/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json +++ b/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json @@ -32,12 +32,6 @@ }, "percentage": { "type": "decimal" - }, - "location": { - "type": "relation", - "relation": "oneToOne", - "target": "api::location.location", - "mappedBy": "mpaa_protection_level_stats" } } } diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index e81e1cde..5bad57f4 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1555,7 +1555,6 @@ export interface ApiLocationLocation extends Schema.CollectionType { attributes: { code: Attribute.String & Attribute.Required; name: Attribute.String & Attribute.Required; - total_marine_area: Attribute.BigInteger & Attribute.Required; type: Attribute.String & Attribute.Required; groups: Attribute.Relation< 'api::location.location', @@ -1572,18 +1571,12 @@ export interface ApiLocationLocation extends Schema.CollectionType { 'oneToMany', 'api::fishing-protection-level-stat.fishing-protection-level-stat' >; - mpaa_protection_level_stats: Attribute.Relation< - 'api::location.location', - 'oneToOne', - 'api::mpaa-protection-level-stat.mpaa-protection-level-stat' - >; protection_coverage_stats: Attribute.Relation< 'api::location.location', 'oneToMany', 'api::protection-coverage-stat.protection-coverage-stat' >; marine_bounds: Attribute.JSON; - total_terrestrial_area: Attribute.BigInteger & Attribute.Required; terrestrial_bounds: Attribute.JSON; name_es: Attribute.String & Attribute.Required; name_fr: Attribute.String & Attribute.Required; @@ -1811,11 +1804,6 @@ export interface ApiMpaaProtectionLevelStatMpaaProtectionLevelStat min: 0; }>; percentage: Attribute.Decimal; - location: Attribute.Relation< - 'api::mpaa-protection-level-stat.mpaa-protection-level-stat', - 'oneToOne', - 'api::location.location' - >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< From b1638c3838c4d93252fa60ba463c3257fc4ec775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 8 Oct 2024 17:05:00 +0200 Subject: [PATCH 039/105] Revert "Temporarily delete fields on Location model" This reverts commit 8a1841aa74bf67842730065741224f29e19727d9. --- cms/config/sync/admin-role.strapi-author.json | 15 +++- cms/config/sync/admin-role.strapi-editor.json | 15 +++- .../sync/admin-role.strapi-super-admin.json | 18 ++++- ...content_types##api##location.location.json | 70 +++++++++++++++++-- ...level-stat.mpaa-protection-level-stat.json | 30 ++++++-- .../content-types/location/schema.json | 25 +++++++ .../mpaa-protection-level-stat/schema.json | 6 ++ cms/types/generated/contentTypes.d.ts | 12 ++++ 8 files changed, 172 insertions(+), 19 deletions(-) diff --git a/cms/config/sync/admin-role.strapi-author.json b/cms/config/sync/admin-role.strapi-author.json index 382d81c0..40f9f913 100644 --- a/cms/config/sync/admin-role.strapi-author.json +++ b/cms/config/sync/admin-role.strapi-author.json @@ -859,7 +859,9 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -896,7 +898,9 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -918,7 +922,9 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -995,6 +1001,7 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ + "location", "mpaa_protection_level", "area" ] @@ -1018,6 +1025,7 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ + "location", "mpaa_protection_level", "area" ] @@ -1032,6 +1040,7 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ + "location", "mpaa_protection_level", "area" ] diff --git a/cms/config/sync/admin-role.strapi-editor.json b/cms/config/sync/admin-role.strapi-editor.json index 722524f9..879d976f 100644 --- a/cms/config/sync/admin-role.strapi-editor.json +++ b/cms/config/sync/admin-role.strapi-editor.json @@ -846,7 +846,9 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -879,7 +881,9 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -899,7 +903,9 @@ "fishing_protection_level_stats", "protection_coverage_stats", "name_es", - "name_fr" + "name_fr", + "total_marine_area", + "total_terrestrial_area" ], "locales": [] }, @@ -966,6 +972,7 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ + "location", "mpaa_protection_level", "area" ] @@ -985,6 +992,7 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ + "location", "mpaa_protection_level", "area" ] @@ -997,6 +1005,7 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ + "location", "mpaa_protection_level", "area" ] diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 5edb915e..693881ca 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -1060,12 +1060,15 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", "marine_bounds", + "total_terrestrial_area", "terrestrial_bounds", "name_es", "name_fr" @@ -1088,12 +1091,15 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", "marine_bounds", + "total_terrestrial_area", "terrestrial_bounds", "name_es", "name_fr" @@ -1109,12 +1115,15 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", "marine_bounds", + "total_terrestrial_area", "terrestrial_bounds", "name_es", "name_fr" @@ -1264,7 +1273,8 @@ "fields": [ "mpaa_protection_level", "area", - "percentage" + "percentage", + "location" ] }, "conditions": [], @@ -1284,7 +1294,8 @@ "fields": [ "mpaa_protection_level", "area", - "percentage" + "percentage", + "location" ] }, "conditions": [], @@ -1297,7 +1308,8 @@ "fields": [ "mpaa_protection_level", "area", - "percentage" + "percentage", + "location" ] }, "conditions": [], diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json index f49ab863..f9b29180 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json @@ -48,6 +48,20 @@ "sortable": true } }, + "total_marine_area": { + "edit": { + "label": "total_marine_area", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "total_marine_area", + "searchable": true, + "sortable": true + } + }, "type": { "edit": { "label": "type", @@ -107,6 +121,21 @@ "sortable": false } }, + "mpaa_protection_level_stats": { + "edit": { + "label": "mpaa_protection_level_stats", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "id" + }, + "list": { + "label": "mpaa_protection_level_stats", + "searchable": true, + "sortable": true + } + }, "protection_coverage_stats": { "edit": { "label": "protection_coverage_stats", @@ -136,6 +165,20 @@ "sortable": false } }, + "total_terrestrial_area": { + "edit": { + "label": "total_terrestrial_area", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "total_terrestrial_area", + "searchable": true, + "sortable": true + } + }, "terrestrial_bounds": { "edit": { "label": "terrestrial_bounds", @@ -238,11 +281,6 @@ } }, "layouts": { - "list": [ - "id", - "code", - "name" - ], "edit": [ [ { @@ -290,6 +328,12 @@ "size": 6 } ], + [ + { + "name": "mpaa_protection_level_stats", + "size": 6 + } + ], [ { "name": "marine_bounds", @@ -301,7 +345,23 @@ "name": "terrestrial_bounds", "size": 12 } + ], + [ + { + "name": "total_marine_area", + "size": 4 + }, + { + "name": "total_terrestrial_area", + "size": 4 + } ] + ], + "list": [ + "id", + "code", + "name", + "total_marine_area" ] } }, diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json index b20527fd..494862d3 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json @@ -20,6 +20,21 @@ "sortable": true } }, + "location": { + "edit": { + "label": "location", + "description": "", + "placeholder": "", + "visible": true, + "editable": true, + "mainField": "code" + }, + "list": { + "label": "location", + "searchable": true, + "sortable": true + } + }, "mpaa_protection_level": { "edit": { "label": "mpaa_protection_level", @@ -123,13 +138,12 @@ } }, "layouts": { - "list": [ - "id", - "mpaa_protection_level", - "area" - ], "edit": [ [ + { + "name": "location", + "size": 6 + }, { "name": "area", "size": 4 @@ -145,6 +159,12 @@ "size": 4 } ] + ], + "list": [ + "id", + "location", + "mpaa_protection_level", + "area" ] } }, diff --git a/cms/src/api/location/content-types/location/schema.json b/cms/src/api/location/content-types/location/schema.json index dff46326..386c62e7 100644 --- a/cms/src/api/location/content-types/location/schema.json +++ b/cms/src/api/location/content-types/location/schema.json @@ -24,6 +24,20 @@ "required": true, "pluginOptions": {} }, + "total_marine_area": { + "type": "biginteger", + "description": "Total marine area in km2", + "required": true, + "column": { + "defaultTo": 0, + "type": "decimal", + "args": [ + 12, + 2 + ] + }, + "pluginOptions": {} + }, "type": { "type": "string", "required": true, @@ -47,6 +61,12 @@ "target": "api::fishing-protection-level-stat.fishing-protection-level-stat", "mappedBy": "location" }, + "mpaa_protection_level_stats": { + "type": "relation", + "relation": "oneToOne", + "target": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", + "inversedBy": "location" + }, "protection_coverage_stats": { "type": "relation", "relation": "oneToMany", @@ -57,6 +77,11 @@ "type": "json", "pluginOptions": {} }, + "total_terrestrial_area": { + "pluginOptions": {}, + "type": "biginteger", + "required": true + }, "terrestrial_bounds": { "pluginOptions": {}, "type": "json" diff --git a/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json b/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json index 13bf05f6..ae1165b8 100644 --- a/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json +++ b/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json @@ -32,6 +32,12 @@ }, "percentage": { "type": "decimal" + }, + "location": { + "type": "relation", + "relation": "oneToOne", + "target": "api::location.location", + "mappedBy": "mpaa_protection_level_stats" } } } diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index 5bad57f4..e81e1cde 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1555,6 +1555,7 @@ export interface ApiLocationLocation extends Schema.CollectionType { attributes: { code: Attribute.String & Attribute.Required; name: Attribute.String & Attribute.Required; + total_marine_area: Attribute.BigInteger & Attribute.Required; type: Attribute.String & Attribute.Required; groups: Attribute.Relation< 'api::location.location', @@ -1571,12 +1572,18 @@ export interface ApiLocationLocation extends Schema.CollectionType { 'oneToMany', 'api::fishing-protection-level-stat.fishing-protection-level-stat' >; + mpaa_protection_level_stats: Attribute.Relation< + 'api::location.location', + 'oneToOne', + 'api::mpaa-protection-level-stat.mpaa-protection-level-stat' + >; protection_coverage_stats: Attribute.Relation< 'api::location.location', 'oneToMany', 'api::protection-coverage-stat.protection-coverage-stat' >; marine_bounds: Attribute.JSON; + total_terrestrial_area: Attribute.BigInteger & Attribute.Required; terrestrial_bounds: Attribute.JSON; name_es: Attribute.String & Attribute.Required; name_fr: Attribute.String & Attribute.Required; @@ -1804,6 +1811,11 @@ export interface ApiMpaaProtectionLevelStatMpaaProtectionLevelStat min: 0; }>; percentage: Attribute.Decimal; + location: Attribute.Relation< + 'api::mpaa-protection-level-stat.mpaa-protection-level-stat', + 'oneToOne', + 'api::location.location' + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< From 3ff92dda705b79ad4d13e17a1c233e22398c9ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 8 Oct 2024 10:55:51 +0200 Subject: [PATCH 040/105] Update the target on the conservation widget --- .../sync/admin-role.strapi-super-admin.json | 14 +++++-- ...content_types##api##location.location.json | 38 +++++++++++++++++++ .../content-types/location/schema.json | 8 ++++ cms/types/generated/contentTypes.d.ts | 6 +++ .../charts/conservation-chart/index.tsx | 20 +++++++--- .../widgets/marine-conservation/index.tsx | 9 ++++- .../terrestrial-conservation/index.tsx | 1 + .../src/types/generated/strapi.schemas.ts | 14 +++++++ frontend/translations/en.json | 4 +- 9 files changed, 101 insertions(+), 13 deletions(-) diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 693881ca..92284f0f 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -1071,7 +1071,9 @@ "total_terrestrial_area", "terrestrial_bounds", "name_es", - "name_fr" + "name_fr", + "marine_target", + "marine_target_year" ] }, "conditions": [], @@ -1102,7 +1104,9 @@ "total_terrestrial_area", "terrestrial_bounds", "name_es", - "name_fr" + "name_fr", + "marine_target", + "marine_target_year" ] }, "conditions": [], @@ -1126,7 +1130,9 @@ "total_terrestrial_area", "terrestrial_bounds", "name_es", - "name_fr" + "name_fr", + "marine_target", + "marine_target_year" ] }, "conditions": [], @@ -2176,4 +2182,4 @@ "actionParameters": {} } ] -} \ No newline at end of file +} diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json index f9b29180..72df6ba3 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json @@ -221,6 +221,34 @@ "sortable": true } }, + "marine_target": { + "edit": { + "label": "marine_target", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "marine_target", + "searchable": true, + "sortable": true + } + }, + "marine_target_year": { + "edit": { + "label": "marine_target_year", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "marine_target_year", + "searchable": true, + "sortable": true + } + }, "createdAt": { "edit": { "label": "createdAt", @@ -355,6 +383,16 @@ "name": "total_terrestrial_area", "size": 4 } + ], + [ + { + "name": "marine_target", + "size": 4 + }, + { + "name": "marine_target_year", + "size": 4 + } ] ], "list": [ diff --git a/cms/src/api/location/content-types/location/schema.json b/cms/src/api/location/content-types/location/schema.json index 386c62e7..95e583ae 100644 --- a/cms/src/api/location/content-types/location/schema.json +++ b/cms/src/api/location/content-types/location/schema.json @@ -93,6 +93,14 @@ "name_fr": { "type": "string", "required": true + }, + "marine_target": { + "type": "integer", + "min": 0, + "max": 100 + }, + "marine_target_year": { + "type": "integer" } } } diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index e81e1cde..92510c80 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1587,6 +1587,12 @@ export interface ApiLocationLocation extends Schema.CollectionType { terrestrial_bounds: Attribute.JSON; name_es: Attribute.String & Attribute.Required; name_fr: Attribute.String & Attribute.Required; + marine_target: Attribute.Integer & + Attribute.SetMinMax<{ + min: 0; + max: 100; + }>; + marine_target_year: Attribute.Integer; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< diff --git a/frontend/src/components/charts/conservation-chart/index.tsx b/frontend/src/components/charts/conservation-chart/index.tsx index e231deaa..6cc86d8d 100644 --- a/frontend/src/components/charts/conservation-chart/index.tsx +++ b/frontend/src/components/charts/conservation-chart/index.tsx @@ -28,6 +28,9 @@ import ChartTooltip from './tooltip'; type ConservationChartProps = { className?: string; displayTarget?: boolean; + target?: number; + targetYear?: number; + tooltipSlug: string; data: { year?: number; percentage: number; @@ -44,6 +47,9 @@ const MAX_NUM_YEARS = 20; const ConservationChart: FCWithMessages = ({ className, displayTarget = true, + target = 30, + targetYear = 2030, + tooltipSlug, data, }) => { const t = useTranslations('components.chart-conservation'); @@ -134,7 +140,7 @@ const ConservationChart: FCWithMessages = ({ { locale, filters: { - slug: '30x30-target', + slug: tooltipSlug, }, }, { @@ -182,23 +188,27 @@ const ConservationChart: FCWithMessages = ({ {displayTarget && ( { const { viewBox } = props; return ( - {t('30x30-target')} + {t.rich('percentage-target', { target })} diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx index f196f2b5..e91c3e28 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx @@ -36,7 +36,7 @@ const MarineConservationWidget: FCWithMessages = // @ts-ignore populate: { location: { - fields: ['code', 'total_marine_area'], + fields: ['code', 'total_marine_area', 'marine_target', 'marine_target_year'], }, environment: { fields: ['slug'], @@ -126,6 +126,8 @@ const MarineConservationWidget: FCWithMessages = protectedPercentage: percentageFormatted, protectedArea: protectedAreaFormatted, totalArea: totalAreaFormatted, + target: location.marine_target, + targetYear: location.marine_target_year, }; }, [locale, location, aggregatedData]); @@ -182,8 +184,11 @@ const MarineConservationWidget: FCWithMessages = )} {tab !== 'marine' && ( ); }; diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx index 5ac50b14..1a028ac5 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx @@ -128,7 +128,7 @@ const SidebarDetails: FCWithMessages = () => {
- +
); diff --git a/frontend/translations/en.json b/frontend/translations/en.json index e2ede4f7..57f79ffe 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -191,9 +191,10 @@ "no-result": "No result", "view-all-countries": "View all countries", "hide-some-countries": "Hide some countries", - "more-regional-insights": "More Regional Insights", - "more-terrestrial-insights": "More Terrestrial Insights", - "more-marine-insights": "More Marine Insights", + "show-global-insights-table": "Show Global Insights Table", + "show-country-insights-table": "Show Country Insights Table", + "show-terrestrial-insights-table": "Show Terrestrial Insights Table", + "show-marine-insights-table": "Show Marine Insights Table", "marine-conservation-coverage": "Marine Conservation Coverage", "marine-protected-percentage": "{percentage}%", "marine-protected-area": "{protectedArea} km² out of {totalArea} km²", From be34032ddcc838ec3e7798ba5ce688472906e1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 08:34:14 +0200 Subject: [PATCH 049/105] Update access to authors and editors --- cms/config/sync/admin-role.strapi-author.json | 294 ++++++++- cms/config/sync/admin-role.strapi-editor.json | 591 +++++++++++++++--- 2 files changed, 774 insertions(+), 111 deletions(-) diff --git a/cms/config/sync/admin-role.strapi-author.json b/cms/config/sync/admin-role.strapi-author.json index 40f9f913..1f6d4610 100644 --- a/cms/config/sync/admin-role.strapi-author.json +++ b/cms/config/sync/admin-role.strapi-author.json @@ -513,6 +513,78 @@ ], "actionParameters": {} }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::environment.environment", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, { "action": "plugin::content-manager.explorer.create", "subject": "api::fishing-protection-level-stat.fishing-protection-level-stat", @@ -769,8 +841,7 @@ "metadata.resolution", "metadata.content_date", "metadata.license", - "dataset", - "legend_config" + "dataset" ], "locales": [] }, @@ -810,8 +881,7 @@ "metadata.resolution", "metadata.content_date", "metadata.license", - "dataset", - "legend_config" + "dataset" ], "locales": [] }, @@ -836,8 +906,7 @@ "metadata.resolution", "metadata.content_date", "metadata.license", - "dataset", - "legend_config" + "dataset" ], "locales": [] }, @@ -853,17 +922,16 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", + "total_terrestrial_area", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" - ], - "locales": [] + "name_fr" + ] }, "conditions": [ "admin::is-creator" @@ -873,13 +941,7 @@ { "action": "plugin::content-manager.explorer.delete", "subject": "api::location.location", - "properties": { - "locales": [ - "en", - "es", - "fr" - ] - }, + "properties": {}, "conditions": [ "admin::is-creator" ], @@ -892,17 +954,16 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", + "total_terrestrial_area", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" - ], - "locales": [] + "name_fr" + ] }, "conditions": [ "admin::is-creator" @@ -916,17 +977,91 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", "protection_coverage_stats", + "total_terrestrial_area", "name_es", - "name_fr", - "total_marine_area", - "total_terrestrial_area" + "name_fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" + ], + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1001,9 +1136,9 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "location" ] }, "conditions": [ @@ -1025,9 +1160,9 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "location" ] }, "conditions": [ @@ -1040,9 +1175,9 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "location" ] }, "conditions": [ @@ -1113,6 +1248,99 @@ ], "actionParameters": {} }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::pa.pa", + "properties": {}, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [ + "admin::is-creator" + ], + "actionParameters": {} + }, { "action": "plugin::content-manager.explorer.create", "subject": "api::protection-coverage-stat.protection-coverage-stat", diff --git a/cms/config/sync/admin-role.strapi-editor.json b/cms/config/sync/admin-role.strapi-editor.json index 879d976f..e3359efd 100644 --- a/cms/config/sync/admin-role.strapi-editor.json +++ b/cms/config/sync/admin-role.strapi-editor.json @@ -86,7 +86,11 @@ "content", "data_sources" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -113,7 +117,11 @@ "content", "data_sources" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -127,7 +135,11 @@ "content", "data_sources" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -141,7 +153,11 @@ "title", "url" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -168,7 +184,11 @@ "title", "url" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -182,7 +202,11 @@ "title", "url" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -194,7 +218,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -232,7 +260,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -244,7 +276,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -258,7 +294,11 @@ "slug", "data_tool" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -298,7 +338,11 @@ "slug", "data_tool" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -312,7 +356,11 @@ "slug", "data_tool" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -324,7 +372,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -362,7 +414,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -374,7 +430,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -392,7 +452,11 @@ "geography", "data_tool_ecosystems" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -436,7 +500,11 @@ "geography", "data_tool_ecosystems" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -454,7 +522,11 @@ "geography", "data_tool_ecosystems" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -468,7 +540,11 @@ "layers", "slug" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -508,7 +584,11 @@ "layers", "slug" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -522,7 +602,75 @@ "layers", "slug" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::environment.environment", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::environment.environment", + "properties": { + "fields": [ + "name", + "slug" + ], + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -534,7 +682,8 @@ "fields": [ "location", "fishing_protection_level", - "area" + "area", + "pct" ] }, "conditions": [], @@ -554,7 +703,8 @@ "fields": [ "location", "fishing_protection_level", - "area" + "area", + "pct" ] }, "conditions": [], @@ -567,7 +717,8 @@ "fields": [ "location", "fishing_protection_level", - "area" + "area", + "pct" ] }, "conditions": [], @@ -582,7 +733,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -609,7 +764,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -623,7 +782,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -637,7 +800,8 @@ "habitat", "year", "protectedArea", - "totalArea" + "totalArea", + "environment" ] }, "conditions": [], @@ -659,7 +823,8 @@ "habitat", "year", "protectedArea", - "totalArea" + "totalArea", + "environment" ] }, "conditions": [], @@ -674,7 +839,8 @@ "habitat", "year", "protectedArea", - "totalArea" + "totalArea", + "environment" ] }, "conditions": [], @@ -689,7 +855,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -716,7 +886,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -730,7 +904,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -752,9 +930,19 @@ "metadata.content_date", "metadata.license", "dataset", - "legend_config" + "legend_config.type", + "legend_config.items.icon", + "legend_config.items.color", + "legend_config.items.value", + "legend_config.items.description", + "default", + "environment" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -802,9 +990,19 @@ "metadata.content_date", "metadata.license", "dataset", - "legend_config" + "legend_config.type", + "legend_config.items.icon", + "legend_config.items.color", + "legend_config.items.value", + "legend_config.items.description", + "default", + "environment" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -826,9 +1024,19 @@ "metadata.content_date", "metadata.license", "dataset", - "legend_config" + "legend_config.type", + "legend_config.items.icon", + "legend_config.items.color", + "legend_config.items.value", + "legend_config.items.description", + "default", + "environment" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -840,17 +1048,21 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", + "marine_bounds", + "total_terrestrial_area", + "terrestrial_bounds", "name_es", "name_fr", - "total_marine_area", - "total_terrestrial_area" - ], - "locales": [] + "marine_target", + "marine_target_year" + ] }, "conditions": [], "actionParameters": {} @@ -858,13 +1070,7 @@ { "action": "plugin::content-manager.explorer.delete", "subject": "api::location.location", - "properties": { - "locales": [ - "en", - "es", - "fr" - ] - }, + "properties": {}, "conditions": [], "actionParameters": {} }, @@ -875,17 +1081,21 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", + "marine_bounds", + "total_terrestrial_area", + "terrestrial_bounds", "name_es", "name_fr", - "total_marine_area", - "total_terrestrial_area" - ], - "locales": [] + "marine_target", + "marine_target_year" + ] }, "conditions": [], "actionParameters": {} @@ -897,17 +1107,88 @@ "fields": [ "code", "name", + "total_marine_area", "type", "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", + "marine_bounds", + "total_terrestrial_area", + "terrestrial_bounds", "name_es", "name_fr", - "total_marine_area", - "total_terrestrial_area" + "marine_target", + "marine_target_year" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" + ], + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::mpa-iucn-category.mpa-iucn-category", + "properties": { + "fields": [ + "slug", + "name", + "info" + ], + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -921,7 +1202,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -948,7 +1233,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -962,7 +1251,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -972,9 +1265,10 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "percentage", + "location" ] }, "conditions": [], @@ -992,9 +1286,10 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "percentage", + "location" ] }, "conditions": [], @@ -1005,9 +1300,10 @@ "subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat", "properties": { "fields": [ - "location", "mpaa_protection_level", - "area" + "area", + "percentage", + "location" ] }, "conditions": [], @@ -1022,7 +1318,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1049,7 +1349,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1063,7 +1367,96 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::pa.pa", + "properties": {}, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "iucn_category", + "designation", + "environment", + "coverage", + "parent" + ] }, "conditions": [], "actionParameters": {} @@ -1076,7 +1469,13 @@ "location", "year", "protectedArea", - "protectedAreasCount" + "protectedAreasCount", + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [], @@ -1097,7 +1496,13 @@ "location", "year", "protectedArea", - "protectedAreasCount" + "protectedAreasCount", + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [], @@ -1111,7 +1516,13 @@ "location", "year", "protectedArea", - "protectedAreasCount" + "protectedAreasCount", + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [], @@ -1126,7 +1537,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1153,7 +1568,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1167,7 +1586,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1182,7 +1605,11 @@ "value", "description" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1223,7 +1650,11 @@ "value", "description" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} @@ -1238,7 +1669,11 @@ "value", "description" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [], "actionParameters": {} From da8efa88342a53548baf36374df2648989f701f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 09:28:07 +0200 Subject: [PATCH 050/105] Rename `bboxLocation` as `bboxLocationAtom` --- frontend/src/containers/map/content/map/index.tsx | 6 +++--- frontend/src/containers/map/content/map/popup/eez/index.tsx | 4 ++-- .../src/containers/map/content/map/popup/regions/index.tsx | 4 ++-- frontend/src/containers/map/store.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/containers/map/content/map/index.tsx b/frontend/src/containers/map/content/map/index.tsx index 9c0208af..98d24109 100644 --- a/frontend/src/containers/map/content/map/index.tsx +++ b/frontend/src/containers/map/content/map/index.tsx @@ -26,7 +26,7 @@ import RegionsPopup from '@/containers/map/content/map/popup/regions'; import { useSyncMapLayers, useSyncMapSettings } from '@/containers/map/content/map/sync-settings'; import { sidebarAtom } from '@/containers/map/store'; import { - bboxLocation, + bboxLocationAtom, drawStateAtom, layersInteractiveAtom, layersInteractiveIdsAtom, @@ -51,8 +51,8 @@ const MainMap: FCWithMessages = () => { const isSidebarOpen = useAtomValue(sidebarAtom); const [popup, setPopup] = useAtom(popupAtom); const params = useParams(); - const [locationBbox, setLocationBbox] = useAtom(bboxLocation); - const resetLocationBbox = useResetAtom(bboxLocation); + const [locationBbox, setLocationBbox] = useAtom(bboxLocationAtom); + const resetLocationBbox = useResetAtom(bboxLocationAtom); const hoveredPolygonId = useRef[0] | null>(null); const [cursor, setCursor] = useState<'grab' | 'crosshair' | 'pointer'>('grab'); diff --git a/frontend/src/containers/map/content/map/popup/eez/index.tsx b/frontend/src/containers/map/content/map/popup/eez/index.tsx index c244705a..c3bd8a0c 100644 --- a/frontend/src/containers/map/content/map/popup/eez/index.tsx +++ b/frontend/src/containers/map/content/map/popup/eez/index.tsx @@ -12,7 +12,7 @@ import { useLocale, useTranslations } from 'next-intl'; import { CustomMapProps } from '@/components/map/types'; import { PAGES } from '@/constants/pages'; import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; -import { bboxLocation, layersInteractiveIdsAtom, popupAtom } from '@/containers/map/store'; +import { bboxLocationAtom, layersInteractiveIdsAtom, popupAtom } from '@/containers/map/store'; import { formatPercentage, formatKM } from '@/lib/utils/formats'; import { FCWithMessages } from '@/types'; import { useGetLayersId } from '@/types/generated/layer'; @@ -29,7 +29,7 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { const { default: map } = useMap(); const searchParams = useMapSearchParams(); const { push } = useRouter(); - const [, setLocationBBox] = useAtom(bboxLocation); + const [, setLocationBBox] = useAtom(bboxLocationAtom); const [popup, setPopup] = useAtom(popupAtom); const { locationCode } = useParams(); diff --git a/frontend/src/containers/map/content/map/popup/regions/index.tsx b/frontend/src/containers/map/content/map/popup/regions/index.tsx index 0d591eab..2ce27547 100644 --- a/frontend/src/containers/map/content/map/popup/regions/index.tsx +++ b/frontend/src/containers/map/content/map/popup/regions/index.tsx @@ -11,7 +11,7 @@ import { useLocale, useTranslations } from 'next-intl'; import { CustomMapProps } from '@/components/map/types'; import { PAGES } from '@/constants/pages'; import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; -import { bboxLocation, layersInteractiveIdsAtom, popupAtom } from '@/containers/map/store'; +import { bboxLocationAtom, layersInteractiveIdsAtom, popupAtom } from '@/containers/map/store'; import { formatPercentage, formatKM } from '@/lib/utils/formats'; import { FCWithMessages } from '@/types'; import { useGetLayersId } from '@/types/generated/layer'; @@ -28,7 +28,7 @@ const RegionsPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { const { default: map } = useMap(); const searchParams = useMapSearchParams(); const { push } = useRouter(); - const setLocationBBox = useSetAtom(bboxLocation); + const setLocationBBox = useSetAtom(bboxLocationAtom); const [popup, setPopup] = useAtom(popupAtom); const layersInteractiveIds = useAtomValue(layersInteractiveIdsAtom); diff --git a/frontend/src/containers/map/store.ts b/frontend/src/containers/map/store.ts index 32dfc20f..87ed12c4 100644 --- a/frontend/src/containers/map/store.ts +++ b/frontend/src/containers/map/store.ts @@ -14,7 +14,7 @@ export const layersAtom = atom(true); // ? Map state export const layersInteractiveAtom = atom([]); export const layersInteractiveIdsAtom = atom([]); -export const bboxLocation = atomWithReset([ +export const bboxLocationAtom = atomWithReset([ -180, -85.5624999997749, 180, 90, ]); export const popupAtom = atom>({}); From cba2d8d8ba849f3d2d95298a1f1b64b01c9a6ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 09:32:24 +0200 Subject: [PATCH 051/105] Do not change bounds when clicking in popup --- .../containers/map/content/map/popup/eez/index.tsx | 11 ++++------- .../map/content/map/popup/regions/index.tsx | 13 +++++-------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/frontend/src/containers/map/content/map/popup/eez/index.tsx b/frontend/src/containers/map/content/map/popup/eez/index.tsx index c3bd8a0c..089bb5ca 100644 --- a/frontend/src/containers/map/content/map/popup/eez/index.tsx +++ b/frontend/src/containers/map/content/map/popup/eez/index.tsx @@ -9,10 +9,9 @@ import type { Feature } from 'geojson'; import { useAtom, useAtomValue } from 'jotai'; import { useLocale, useTranslations } from 'next-intl'; -import { CustomMapProps } from '@/components/map/types'; import { PAGES } from '@/constants/pages'; import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; -import { bboxLocationAtom, layersInteractiveIdsAtom, popupAtom } from '@/containers/map/store'; +import { layersInteractiveIdsAtom, popupAtom } from '@/containers/map/store'; import { formatPercentage, formatKM } from '@/lib/utils/formats'; import { FCWithMessages } from '@/types'; import { useGetLayersId } from '@/types/generated/layer'; @@ -29,7 +28,6 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { const { default: map } = useMap(); const searchParams = useMapSearchParams(); const { push } = useRouter(); - const [, setLocationBBox] = useAtom(bboxLocationAtom); const [popup, setPopup] = useAtom(popupAtom); const { locationCode } = useParams(); @@ -109,7 +107,7 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { // @ts-ignore populate: { location: { - fields: ['code', 'marine_bounds', 'total_marine_area'], + fields: ['code', 'total_marine_area'], }, }, // eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -164,12 +162,11 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { const handleLocationSelected = useCallback(async () => { if (!protectionCoverageStats?.location?.data.attributes) return undefined; - const { code, marine_bounds: bounds } = protectionCoverageStats.location.data.attributes; + const { code } = protectionCoverageStats.location.data.attributes; await push(`${PAGES.progressTracker}/${code.toUpperCase()}?${searchParams.toString()}`); - setLocationBBox(bounds as CustomMapProps['bounds']['bbox']); setPopup({}); - }, [push, searchParams, setLocationBBox, protectionCoverageStats, setPopup]); + }, [push, searchParams, protectionCoverageStats, setPopup]); useEffect(() => { map?.on('render', handleMapRender); diff --git a/frontend/src/containers/map/content/map/popup/regions/index.tsx b/frontend/src/containers/map/content/map/popup/regions/index.tsx index 2ce27547..6dbb6441 100644 --- a/frontend/src/containers/map/content/map/popup/regions/index.tsx +++ b/frontend/src/containers/map/content/map/popup/regions/index.tsx @@ -5,13 +5,12 @@ import { useMap } from 'react-map-gl'; import { useRouter } from 'next/router'; import type { Feature } from 'geojson'; -import { useAtom, useAtomValue, useSetAtom } from 'jotai'; +import { useAtom, useAtomValue } from 'jotai'; import { useLocale, useTranslations } from 'next-intl'; -import { CustomMapProps } from '@/components/map/types'; import { PAGES } from '@/constants/pages'; import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; -import { bboxLocationAtom, layersInteractiveIdsAtom, popupAtom } from '@/containers/map/store'; +import { layersInteractiveIdsAtom, popupAtom } from '@/containers/map/store'; import { formatPercentage, formatKM } from '@/lib/utils/formats'; import { FCWithMessages } from '@/types'; import { useGetLayersId } from '@/types/generated/layer'; @@ -28,7 +27,6 @@ const RegionsPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { const { default: map } = useMap(); const searchParams = useMapSearchParams(); const { push } = useRouter(); - const setLocationBBox = useSetAtom(bboxLocationAtom); const [popup, setPopup] = useAtom(popupAtom); const layersInteractiveIds = useAtomValue(layersInteractiveIdsAtom); @@ -112,7 +110,7 @@ const RegionsPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { // @ts-ignore populate: { location: { - fields: ['name', 'name_es', 'name_fr', 'code', 'marine_bounds', 'total_marine_area'], + fields: ['name', 'name_es', 'name_fr', 'code', 'total_marine_area'], }, }, // eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -172,12 +170,11 @@ const RegionsPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { const handleLocationSelected = useCallback(async () => { if (!protectionCoverageStats?.location?.data.attributes) return undefined; - const { code, marine_bounds: bounds } = protectionCoverageStats.location.data.attributes; + const { code } = protectionCoverageStats.location.data.attributes; await push(`${PAGES.progressTracker}/${code.toUpperCase()}?${searchParams.toString()}`); - setLocationBBox(bounds as CustomMapProps['bounds']['bbox']); setPopup({}); - }, [push, searchParams, setLocationBBox, protectionCoverageStats, setPopup]); + }, [push, searchParams, protectionCoverageStats, setPopup]); useEffect(() => { map?.on('render', handleMapRender); From 198c513e88ae451f6a868c40f054ab089fcdd223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 10:11:14 +0200 Subject: [PATCH 052/105] Change the bounds when changing tab --- .../main-panel/panels/details/index.tsx | 44 ++++++++++++++++++- frontend/src/lib/utils/geo.ts | 16 +++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 frontend/src/lib/utils/geo.ts diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx index 5ac50b14..c9fcb2f2 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx @@ -2,16 +2,22 @@ import { useCallback, useEffect, useMemo, useRef } from 'react'; import { useRouter } from 'next/router'; +import { BBox } from '@turf/turf'; +import { useAtom } from 'jotai'; import { useLocale, useTranslations } from 'next-intl'; +import { CustomMapProps } from '@/components/map/types'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { PAGES } from '@/constants/pages'; import { useMapSearchParams } from '@/containers/map/content/map/sync-settings'; +import { bboxLocationAtom } from '@/containers/map/store'; import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import useScrollPosition from '@/hooks/use-scroll-position'; import { cn } from '@/lib/classnames'; +import { combineBoundingBoxes } from '@/lib/utils/geo'; import { FCWithMessages } from '@/types'; import { useGetLocations } from '@/types/generated/location'; +import { Location } from '@/types/generated/strapi.schemas'; import LocationSelector from '../../location-selector'; @@ -35,13 +41,23 @@ const SidebarDetails: FCWithMessages = () => { const searchParams = useMapSearchParams(); const [{ tab }, setSettings] = useSyncMapContentSettings(); + const [, setLocationBBox] = useAtom(bboxLocationAtom); const { data: locationsData } = useGetLocations({ locale, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + fields: ['name', 'name_es', 'name_fr', 'marine_bounds', 'terrestrial_bounds'], filters: { code: locationCode, }, - populate: 'members', + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + populate: { + members: { + fields: ['code', 'name', 'name_es', 'name_fr'], + }, + }, }); const locationNameField = useMemo(() => { @@ -55,6 +71,25 @@ const SidebarDetails: FCWithMessages = () => { return res; }, [locale]); + const locationBounds = useMemo(() => { + const { terrestrial_bounds, marine_bounds } = + locationsData?.data[0]?.attributes ?? ({} as Location); + + if (tab === 'terrestrial') { + return terrestrial_bounds; + } + + if (tab === 'marine') { + return marine_bounds; + } + + if (terrestrial_bounds === undefined || marine_bounds === undefined) { + return null; + } + + return combineBoundingBoxes(terrestrial_bounds as BBox, marine_bounds as BBox); + }, [locationsData, tab]); + const memberCountries = useMemo(() => { return locationsData?.data[0]?.attributes?.members?.data?.map(({ attributes }) => ({ code: attributes?.code, @@ -80,6 +115,13 @@ const SidebarDetails: FCWithMessages = () => { containerRef.current?.scrollTo({ top: 0 }); }, [tab, locationCode]); + // Zoom the map to the location's bounds (terrestrial bounds, marine bounds or both) + useEffect(() => { + if (locationBounds) { + setLocationBBox(locationBounds as CustomMapProps['bounds']['bbox']); + } + }, [setLocationBBox, locationBounds]); + return (
{ + return [ + Math.min(bbox1[0], bbox2[0]), + Math.min(bbox1[1], bbox2[1]), + Math.max(bbox1[2], bbox2[2]), + Math.max(bbox1[3], bbox2[3]), + ]; +}; From f90d8a87a119bdc71a23dbd2cb43a068ed54dbc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 12:27:01 +0200 Subject: [PATCH 053/105] Update the name of some fields --- cms/config/sync/admin-role.strapi-author.json | 357 ++++++++++++++---- cms/config/sync/admin-role.strapi-editor.json | 24 +- .../sync/admin-role.strapi-super-admin.json | 26 +- ...types##api##habitat-stat.habitat-stat.json | 26 +- ...overage-stat.protection-coverage-stat.json | 28 +- .../content-types/habitat-stat/schema.json | 4 +- .../protection-coverage-stat/schema.json | 4 +- cms/types/generated/contentTypes.d.ts | 8 +- .../details/tables/global-regional/hooks.tsx | 12 +- .../map/content/map/popup/eez/index.tsx | 4 +- .../map/content/map/popup/regions/index.tsx | 4 +- .../panels/details/widgets/habitat/index.tsx | 6 +- .../widgets/marine-conservation/index.tsx | 4 +- .../terrestrial-conservation/index.tsx | 4 +- .../panels/modelling/widget/index.tsx | 8 +- .../src/types/generated/strapi.schemas.ts | 32 +- 16 files changed, 392 insertions(+), 159 deletions(-) diff --git a/cms/config/sync/admin-role.strapi-author.json b/cms/config/sync/admin-role.strapi-author.json index 1f6d4610..4915b2f7 100644 --- a/cms/config/sync/admin-role.strapi-author.json +++ b/cms/config/sync/admin-role.strapi-author.json @@ -81,7 +81,11 @@ "content", "data_sources" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -112,7 +116,11 @@ "content", "data_sources" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -128,7 +136,11 @@ "content", "data_sources" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -144,7 +156,11 @@ "title", "url" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -175,7 +191,11 @@ "title", "url" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -191,7 +211,11 @@ "title", "url" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -205,7 +229,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -234,7 +262,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -248,7 +280,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -264,7 +300,11 @@ "slug", "data_tool" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -295,7 +335,11 @@ "slug", "data_tool" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -311,7 +355,11 @@ "slug", "data_tool" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -325,7 +373,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -354,7 +406,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -368,7 +424,11 @@ "fields": [ "name" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -388,7 +448,11 @@ "geography", "data_tool_ecosystems" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -423,7 +487,11 @@ "geography", "data_tool_ecosystems" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -443,7 +511,11 @@ "geography", "data_tool_ecosystems" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -459,7 +531,11 @@ "layers", "slug" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -490,7 +566,11 @@ "layers", "slug" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -506,7 +586,11 @@ "layers", "slug" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -592,7 +676,8 @@ "fields": [ "location", "fishing_protection_level", - "area" + "area", + "pct" ] }, "conditions": [ @@ -616,7 +701,8 @@ "fields": [ "location", "fishing_protection_level", - "area" + "area", + "pct" ] }, "conditions": [ @@ -631,7 +717,8 @@ "fields": [ "location", "fishing_protection_level", - "area" + "area", + "pct" ] }, "conditions": [ @@ -648,7 +735,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -679,7 +770,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -695,7 +790,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -710,8 +809,9 @@ "location", "habitat", "year", - "protectedArea", - "totalArea" + "protected_area", + "total_area", + "environment" ] }, "conditions": [ @@ -736,8 +836,9 @@ "location", "habitat", "year", - "protectedArea", - "totalArea" + "protected_area", + "total_area", + "environment" ] }, "conditions": [ @@ -753,8 +854,9 @@ "location", "habitat", "year", - "protectedArea", - "totalArea" + "protected_area", + "total_area", + "environment" ] }, "conditions": [ @@ -771,7 +873,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -802,7 +908,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -818,7 +928,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -841,9 +955,20 @@ "metadata.resolution", "metadata.content_date", "metadata.license", - "dataset" + "dataset", + "legend_config.type", + "legend_config.items.icon", + "legend_config.items.color", + "legend_config.items.value", + "legend_config.items.description", + "default", + "environment" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -881,9 +1006,20 @@ "metadata.resolution", "metadata.content_date", "metadata.license", - "dataset" + "dataset", + "legend_config.type", + "legend_config.items.icon", + "legend_config.items.color", + "legend_config.items.value", + "legend_config.items.description", + "default", + "environment" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -906,9 +1042,20 @@ "metadata.resolution", "metadata.content_date", "metadata.license", - "dataset" + "dataset", + "legend_config.type", + "legend_config.items.icon", + "legend_config.items.color", + "legend_config.items.value", + "legend_config.items.description", + "default", + "environment" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -927,10 +1074,15 @@ "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", + "marine_bounds", "total_terrestrial_area", + "terrestrial_bounds", "name_es", - "name_fr" + "name_fr", + "marine_target", + "marine_target_year" ] }, "conditions": [ @@ -959,10 +1111,15 @@ "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", + "marine_bounds", "total_terrestrial_area", + "terrestrial_bounds", "name_es", - "name_fr" + "name_fr", + "marine_target", + "marine_target_year" ] }, "conditions": [ @@ -982,10 +1139,15 @@ "groups", "members", "fishing_protection_level_stats", + "mpaa_protection_level_stats", "protection_coverage_stats", + "marine_bounds", "total_terrestrial_area", + "terrestrial_bounds", "name_es", - "name_fr" + "name_fr", + "marine_target", + "marine_target_year" ] }, "conditions": [ @@ -1077,7 +1239,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1108,7 +1274,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1124,7 +1294,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1138,6 +1312,7 @@ "fields": [ "mpaa_protection_level", "area", + "percentage", "location" ] }, @@ -1162,6 +1337,7 @@ "fields": [ "mpaa_protection_level", "area", + "percentage", "location" ] }, @@ -1177,6 +1353,7 @@ "fields": [ "mpaa_protection_level", "area", + "percentage", "location" ] }, @@ -1194,7 +1371,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1225,7 +1406,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1241,7 +1426,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1348,8 +1537,14 @@ "fields": [ "location", "year", - "protectedArea", - "protectedAreasCount" + "protected_area", + "protected_areas_count", + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [ @@ -1373,8 +1568,14 @@ "fields": [ "location", "year", - "protectedArea", - "protectedAreasCount" + "protected_area", + "protected_areas_count", + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [ @@ -1389,8 +1590,14 @@ "fields": [ "location", "year", - "protectedArea", - "protectedAreasCount" + "protected_area", + "protected_areas_count", + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [ @@ -1407,7 +1614,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1438,7 +1649,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1454,7 +1669,11 @@ "name", "info" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1471,7 +1690,11 @@ "value", "description" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1503,7 +1726,11 @@ "value", "description" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" @@ -1520,7 +1747,11 @@ "value", "description" ], - "locales": [] + "locales": [ + "en", + "es", + "fr" + ] }, "conditions": [ "admin::is-creator" diff --git a/cms/config/sync/admin-role.strapi-editor.json b/cms/config/sync/admin-role.strapi-editor.json index e3359efd..8a69f229 100644 --- a/cms/config/sync/admin-role.strapi-editor.json +++ b/cms/config/sync/admin-role.strapi-editor.json @@ -799,8 +799,8 @@ "location", "habitat", "year", - "protectedArea", - "totalArea", + "protected_area", + "total_area", "environment" ] }, @@ -822,8 +822,8 @@ "location", "habitat", "year", - "protectedArea", - "totalArea", + "protected_area", + "total_area", "environment" ] }, @@ -838,8 +838,8 @@ "location", "habitat", "year", - "protectedArea", - "totalArea", + "protected_area", + "total_area", "environment" ] }, @@ -1468,8 +1468,8 @@ "fields": [ "location", "year", - "protectedArea", - "protectedAreasCount", + "protected_area", + "protected_areas_count", "environment", "coverage", "pas", @@ -1495,8 +1495,8 @@ "fields": [ "location", "year", - "protectedArea", - "protectedAreasCount", + "protected_area", + "protected_areas_count", "environment", "coverage", "pas", @@ -1515,8 +1515,8 @@ "fields": [ "location", "year", - "protectedArea", - "protectedAreasCount", + "protected_area", + "protected_areas_count", "environment", "coverage", "pas", diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 92284f0f..5d9f481e 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -811,8 +811,8 @@ "location", "habitat", "year", - "protectedArea", - "totalArea", + "protected_area", + "total_area", "environment" ] }, @@ -834,8 +834,8 @@ "location", "habitat", "year", - "protectedArea", - "totalArea", + "protected_area", + "total_area", "environment" ] }, @@ -850,8 +850,8 @@ "location", "habitat", "year", - "protectedArea", - "totalArea", + "protected_area", + "total_area", "environment" ] }, @@ -1480,8 +1480,8 @@ "fields": [ "location", "year", - "protectedArea", - "protectedAreasCount", + "protected_area", + "protected_areas_count", "environment", "coverage", "pas", @@ -1507,8 +1507,8 @@ "fields": [ "location", "year", - "protectedArea", - "protectedAreasCount", + "protected_area", + "protected_areas_count", "environment", "coverage", "pas", @@ -1527,8 +1527,8 @@ "fields": [ "location", "year", - "protectedArea", - "protectedAreasCount", + "protected_area", + "protected_areas_count", "environment", "coverage", "pas", @@ -2182,4 +2182,4 @@ "actionParameters": {} } ] -} +} \ No newline at end of file diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json index 2e1623ec..0db93617 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json @@ -64,30 +64,30 @@ "sortable": true } }, - "protectedArea": { + "protected_area": { "edit": { - "label": "protectedArea", + "label": "protected_area", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "protectedArea", + "label": "protected_area", "searchable": true, "sortable": true } }, - "totalArea": { + "total_area": { "edit": { - "label": "totalArea", + "label": "total_area", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "totalArea", + "label": "total_area", "searchable": true, "sortable": true } @@ -188,20 +188,22 @@ { "name": "year", "size": 4 - }, + } + ], + [ { - "name": "protectedArea", - "size": 4 + "name": "environment", + "size": 6 }, { - "name": "totalArea", + "name": "protected_area", "size": 4 } ], [ { - "name": "environment", - "size": 6 + "name": "total_area", + "size": 4 } ] ] diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json index 04982bbf..6178edcd 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##protection-coverage-stat.protection-coverage-stat.json @@ -49,30 +49,30 @@ "sortable": true } }, - "protectedArea": { + "protected_area": { "edit": { - "label": "protectedArea", + "label": "protected_area", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "protectedArea", + "label": "protected_area", "searchable": true, "sortable": true } }, - "protectedAreasCount": { + "protected_areas_count": { "edit": { - "label": "protectedAreasCount", + "label": "protected_areas_count", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "protectedAreasCount", + "label": "protected_areas_count", "searchable": true, "sortable": true } @@ -246,14 +246,6 @@ } ], [ - { - "name": "protectedArea", - "size": 4 - }, - { - "name": "protectedAreasCount", - "size": 4 - }, { "name": "coverage", "size": 4 @@ -277,6 +269,14 @@ { "name": "global_contribution", "size": 4 + }, + { + "name": "protected_area", + "size": 4 + }, + { + "name": "protected_areas_count", + "size": 4 } ] ] diff --git a/cms/src/api/habitat-stat/content-types/habitat-stat/schema.json b/cms/src/api/habitat-stat/content-types/habitat-stat/schema.json index 2273fbbb..3b4c81d4 100644 --- a/cms/src/api/habitat-stat/content-types/habitat-stat/schema.json +++ b/cms/src/api/habitat-stat/content-types/habitat-stat/schema.json @@ -26,7 +26,7 @@ "type": "integer", "required": true }, - "protectedArea": { + "protected_area": { "type": "decimal", "required": true, "min": 0, @@ -39,7 +39,7 @@ ] } }, - "totalArea": { + "total_area": { "type": "decimal", "required": true, "min": 0, diff --git a/cms/src/api/protection-coverage-stat/content-types/protection-coverage-stat/schema.json b/cms/src/api/protection-coverage-stat/content-types/protection-coverage-stat/schema.json index 58dac49d..ba96f92a 100644 --- a/cms/src/api/protection-coverage-stat/content-types/protection-coverage-stat/schema.json +++ b/cms/src/api/protection-coverage-stat/content-types/protection-coverage-stat/schema.json @@ -23,7 +23,7 @@ "required": true, "min": 0 }, - "protectedArea": { + "protected_area": { "type": "decimal", "min": 0, "column": { @@ -35,7 +35,7 @@ ] } }, - "protectedAreasCount": { + "protected_areas_count": { "type": "integer", "required": true }, diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index 92510c80..62edd575 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1406,12 +1406,12 @@ export interface ApiHabitatStatHabitatStat extends Schema.CollectionType { 'api::habitat.habitat' >; year: Attribute.Integer & Attribute.Required; - protectedArea: Attribute.Decimal & + protected_area: Attribute.Decimal & Attribute.Required & Attribute.SetMinMax<{ min: 0; }>; - totalArea: Attribute.Decimal & + total_area: Attribute.Decimal & Attribute.Required & Attribute.SetMinMax<{ min: 0; @@ -1938,11 +1938,11 @@ export interface ApiProtectionCoverageStatProtectionCoverageStat Attribute.SetMinMax<{ min: 0; }>; - protectedArea: Attribute.Decimal & + protected_area: Attribute.Decimal & Attribute.SetMinMax<{ min: 0; }>; - protectedAreasCount: Attribute.Integer & Attribute.Required; + protected_areas_count: Attribute.Integer & Attribute.Required; environment: Attribute.Relation< 'api::protection-coverage-stat.protection-coverage-stat', 'oneToOne', diff --git a/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx index e8db2c8f..4a2f65cb 100644 --- a/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx @@ -37,7 +37,7 @@ export type GlobalRegionalTableColumns = { slug: string; }; coverage: number; - protectedArea: number; + protected_area: number; pas: number; oecms: number; global_contribution: number; @@ -206,8 +206,8 @@ export const useColumns = ( }, }, { - id: 'protectedArea', - accessorKey: 'protectedArea', + id: 'protected_area', + accessorKey: 'protected_area', header: ({ column }) => ( @@ -216,7 +216,7 @@ export const useColumns = ( ), cell: ({ row }) => { - const { protectedArea: value } = row.original; + const { protected_area: value } = row.original; const formattedValue = cellFormatter.area(locale, value); return {t('area-km2', { area: formattedValue })}; }, @@ -349,7 +349,7 @@ export const useData = ( { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - fields: ['coverage', 'protectedArea', 'pas', 'oecms', 'global_contribution'], + fields: ['coverage', 'protected_area', 'pas', 'oecms', 'global_contribution'], // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore populate: { @@ -454,7 +454,7 @@ export const useData = ( slug: localizedEnvironment.slug, }, coverage: attributes.coverage, - protectedArea: attributes.protectedArea, + protected_area: attributes.protected_area, pas: attributes.pas, oecms: attributes.oecms, global_contribution: attributes.global_contribution, diff --git a/frontend/src/containers/map/content/map/popup/eez/index.tsx b/frontend/src/containers/map/content/map/popup/eez/index.tsx index c244705a..9b17b0fe 100644 --- a/frontend/src/containers/map/content/map/popup/eez/index.tsx +++ b/frontend/src/containers/map/content/map/popup/eez/index.tsx @@ -114,7 +114,7 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { }, // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - fields: ['coverage', 'protectedArea'], + fields: ['coverage', 'protected_area'], 'pagination[limit]': 1, }, { @@ -209,7 +209,7 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => {
{t('marine-protected-area', { - protectedArea: formatKM(locale, protectionCoverageStats.protectedArea), + protectedArea: formatKM(locale, protectionCoverageStats.protected_area), totalArea: formatKM( locale, Number(protectionCoverageStats.location.data.attributes.total_marine_area) diff --git a/frontend/src/containers/map/content/map/popup/regions/index.tsx b/frontend/src/containers/map/content/map/popup/regions/index.tsx index 0d591eab..825e4296 100644 --- a/frontend/src/containers/map/content/map/popup/regions/index.tsx +++ b/frontend/src/containers/map/content/map/popup/regions/index.tsx @@ -117,7 +117,7 @@ const RegionsPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { }, // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - fields: ['coverage', 'protectedArea'], + fields: ['coverage', 'protected_area'], 'pagination[limit]': 1, }, { @@ -134,7 +134,7 @@ const RegionsPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { displayPercentageSign: false, }); - const protectedArea = formatKM(locale, protectionCoverageStats.protectedArea); + const protectedArea = formatKM(locale, protectionCoverageStats.protected_area); return { percentage, diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx index 09fc0183..d2019cae 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx @@ -84,7 +84,7 @@ const HabitatWidget: FCWithMessages = ({ location }) => { 'pagination[limit]': -1, // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - fields: ['protectedArea', 'totalArea', 'updatedAt'], + fields: ['protected_area', 'total_area', 'updatedAt'], filters: { location: { code: location?.code, @@ -119,8 +119,8 @@ const HabitatWidget: FCWithMessages = ({ location }) => { title: habitat.name, slug: habitat.slug, background: HABITAT_CHART_COLORS[habitat.slug], - totalArea: stats.totalArea, - protectedArea: stats.protectedArea, + totalArea: stats.total_area, + protectedArea: stats.protected_area, info: metadata?.info, sources: metadata?.sources, updatedAt: stats.updatedAt, diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx index e91c3e28..3cd0461f 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx @@ -46,7 +46,7 @@ const MarineConservationWidget: FCWithMessages = 'pagination[limit]': -1, // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - fields: ['year', 'protectedArea', 'updatedAt'], + fields: ['year', 'protected_area', 'updatedAt'], filters: { location: { code: { @@ -76,7 +76,7 @@ const MarineConservationWidget: FCWithMessages = return Object.keys(groupedByYear).map((year) => { const entries = groupedByYear[year]; - const protectedArea = entries[0].attributes.protectedArea; + const protectedArea = entries[0].attributes.protected_area; return { year: Number(year), diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx index ba98ae02..aab79b79 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx @@ -48,7 +48,7 @@ const TerrestrialConservationWidget: FCWithMessages { const entries = groupedByYear[year]; - const protectedArea = entries[0].attributes.protectedArea; + const protectedArea = entries[0].attributes.protected_area; return { year: Number(year), diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx index 4e09022b..008772d6 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/modelling/widget/index.tsx @@ -119,7 +119,7 @@ const ModellingWidget: FCWithMessages = () => { 'pagination[limit]': 1, // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - fields: ['protectedArea'], + fields: ['protected_area'], }, { query: { @@ -127,7 +127,7 @@ const ModellingWidget: FCWithMessages = () => { select: ({ data }) => { if (!data) return null; - const protectedArea = data?.[0].attributes.protectedArea ?? 0; + const protectedArea = data?.[0].attributes.protected_area ?? 0; const location = data?.[0].attributes?.location?.data?.attributes; let totalArea; @@ -202,7 +202,7 @@ const ModellingWidget: FCWithMessages = () => { 'pagination[limit]': 1, // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - fields: ['protectedArea'], + fields: ['protected_area'], }, { query: { @@ -211,7 +211,7 @@ const ModellingWidget: FCWithMessages = () => { select: ({ data }) => { if (!data) return null; - const protectedArea = data?.[0]?.attributes.protectedArea ?? 0; + const protectedArea = data?.[0]?.attributes.protected_area ?? 0; const location = data?.[0]?.attributes?.location?.data?.attributes; diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index 6e96a2ff..194d6555 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -1815,8 +1815,8 @@ export type ProtectionCoverageStatUpdatedBy = { export interface ProtectionCoverageStat { location?: ProtectionCoverageStatLocation; year: number; - protectedArea?: number; - protectedAreasCount: number; + protected_area?: number; + protected_areas_count: number; environment?: ProtectionCoverageStatEnvironment; coverage?: number; pas?: number; @@ -1917,8 +1917,8 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD { location?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; year?: number; - protectedArea?: number; - protectedAreasCount?: number; + protected_area?: number; + protected_areas_count?: number; environment?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; coverage?: number; pas?: number; @@ -2872,8 +2872,8 @@ export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverage { location?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; year?: number; - protectedArea?: number; - protectedAreasCount?: number; + protected_area?: number; + protected_areas_count?: number; environment?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; coverage?: number; pas?: number; @@ -3685,8 +3685,8 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats { location?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; year?: number; - protectedArea?: number; - protectedAreasCount?: number; + protected_area?: number; + protected_areas_count?: number; environment?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; coverage?: number; pas?: number; @@ -5348,8 +5348,8 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes = { location?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation; year?: number; - protectedArea?: number; - protectedAreasCount?: number; + protected_area?: number; + protected_areas_count?: number; environment?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironment; coverage?: number; pas?: number; @@ -6492,8 +6492,8 @@ export interface HabitatStat { location?: HabitatStatLocation; habitat?: HabitatStatHabitat; year: number; - protectedArea: number; - totalArea: number; + protected_area: number; + total_area: number; environment?: HabitatStatEnvironment; createdAt?: string; updatedAt?: string; @@ -6660,8 +6660,8 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { location?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; year?: number; - protectedArea?: number; - protectedAreasCount?: number; + protected_area?: number; + protected_areas_count?: number; environment?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; coverage?: number; pas?: number; @@ -7627,8 +7627,8 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt { location?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; year?: number; - protectedArea?: number; - protectedAreasCount?: number; + protected_area?: number; + protected_areas_count?: number; environment?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; coverage?: number; pas?: number; From 841c48a2d4a016f9ac02c65a247c9d17511710f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 15:37:04 +0200 Subject: [PATCH 054/105] Fix runtime error due to missing key --- .../charts/horizontal-bar-chart/index.tsx | 20 ++++++------- .../src/components/tooltip-button/index.tsx | 29 +++++++++---------- .../widgets/fishing-protection/index.tsx | 3 +- .../panels/details/widgets/habitat/index.tsx | 15 ++++++---- .../widgets/marine-conservation/index.tsx | 3 +- .../widgets/protection-types/index.tsx | 3 +- .../terrestrial-conservation/index.tsx | 3 +- 7 files changed, 39 insertions(+), 37 deletions(-) diff --git a/frontend/src/components/charts/horizontal-bar-chart/index.tsx b/frontend/src/components/charts/horizontal-bar-chart/index.tsx index 75b03cdf..7ae9a8b9 100644 --- a/frontend/src/components/charts/horizontal-bar-chart/index.tsx +++ b/frontend/src/components/charts/horizontal-bar-chart/index.tsx @@ -10,7 +10,13 @@ import { FCWithMessages } from '@/types'; const DEFAULT_MAX_PERCENTAGE = 100; const PROTECTION_TARGET = 30; -type HorizontalBarChartProps = { +interface Source { + id: number; + title: string; + url: string; +} + +interface HorizontalBarChartProps { className: string; data: { background: string; @@ -18,19 +24,11 @@ type HorizontalBarChartProps = { totalArea: number; protectedArea: number; info?: string; - sources?: - | { - title: string; - url: string; - } - | { - title: string; - url: string; - }[]; + sources?: Source | Source[]; }; showLegend?: boolean; showTarget?: boolean; -}; +} const HorizontalBarChart: FCWithMessages = ({ className, diff --git a/frontend/src/components/tooltip-button/index.tsx b/frontend/src/components/tooltip-button/index.tsx index c2664320..fa02b8b1 100644 --- a/frontend/src/components/tooltip-button/index.tsx +++ b/frontend/src/components/tooltip-button/index.tsx @@ -1,4 +1,4 @@ -import { useState } from 'react'; +import { Fragment, useState } from 'react'; import Linkify from 'react-linkify'; @@ -10,19 +10,17 @@ import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover import { cn } from '@/lib/classnames'; import { FCWithMessages } from '@/types'; -type TooltipButtonProps = { +interface Source { + id: number; + title: string; + url: string; +} + +interface TooltipButtonProps { className?: string; text: string; - sources?: - | { - title: string; - url: string; - } - | { - title: string; - url: string; - }[]; -}; + sources?: Source | Source[]; +} const TooltipButton: FCWithMessages = ({ className, text, sources }) => { const t = useTranslations('components.tooltip-button'); @@ -68,10 +66,9 @@ const TooltipButton: FCWithMessages = ({ className, text, so {Array.isArray(sources) && (
Data sources: - {sources.map(({ title, url }, index) => ( - <> + {sources.map(({ id, title, url }, index) => ( + = ({ className, text, so {title} {index < sources.length - 1 && , } - + ))}
)} diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx index c17ac63c..5a5f11ef 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx @@ -68,7 +68,8 @@ const FishingProtectionWidget: FCWithMessages = ({ ? { info: data[0]?.attributes?.content, sources: data[0]?.attributes?.data_sources?.data?.map( - ({ attributes: { title, url } }) => ({ + ({ id, attributes: { title, url } }) => ({ + id, title, url, }) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx index d2019cae..1eb1c73f 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx @@ -23,7 +23,7 @@ const HabitatWidget: FCWithMessages = ({ location }) => { const [{ tab }] = useSyncMapContentSettings(); const { data: habitatMetadatas } = useGetDataInfos< - { slug: string; info: string; sources?: { title: string; url: string }[] }[] + { slug: string; info: string; sources?: { id: number; title: string; url: string }[] }[] >( { locale, @@ -45,10 +45,13 @@ const HabitatWidget: FCWithMessages = ({ location }) => { data?.map((item) => ({ slug: item.attributes.slug, info: item.attributes.content, - sources: item.attributes.data_sources?.data?.map(({ attributes: { title, url } }) => ({ - title, - url, - })), + sources: item.attributes.data_sources?.data?.map( + ({ id, attributes: { title, url } }) => ({ + id, + title, + url, + }) + ), })) ?? [], }, } @@ -62,7 +65,7 @@ const HabitatWidget: FCWithMessages = ({ location }) => { totalArea: number; protectedArea: number; info?: string; - sources?: { title: string; url: string }[]; + sources?: { id: number; title: string; url: string }[]; updatedAt: string; }[] >( diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx index 3cd0461f..a43e3627 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx @@ -100,7 +100,8 @@ const MarineConservationWidget: FCWithMessages = ? { info: data[0].attributes.content, sources: data[0].attributes?.data_sources?.data?.map( - ({ attributes: { title, url } }) => ({ + ({ id, attributes: { title, url } }) => ({ + id, title, url, }) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx index f74019bf..55cb6020 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/protection-types/index.tsx @@ -61,7 +61,8 @@ const ProtectionTypesWidget: FCWithMessages = ({ loc ? { info: data[0]?.attributes?.content, sources: data[0]?.attributes?.data_sources?.data?.map( - ({ attributes: { title, url } }) => ({ + ({ id, attributes: { title, url } }) => ({ + id, title, url, }) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx index aab79b79..22176ceb 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx @@ -102,7 +102,8 @@ const TerrestrialConservationWidget: FCWithMessages ({ + ({ id, attributes: { title, url } }) => ({ + id, title, url, }) From 8c7b482e34c99001dfade6f8527484bb52575462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 15:43:32 +0200 Subject: [PATCH 055/105] Fix data in conservation coverage widgets --- .../panels/details/widgets/marine-conservation/index.tsx | 2 +- .../panels/details/widgets/terrestrial-conservation/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx index a43e3627..f6de2341 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/marine-conservation/index.tsx @@ -116,7 +116,7 @@ const MarineConservationWidget: FCWithMessages = if (!aggregatedData.length) return null; const totalArea = Number(location.total_marine_area); - const { protectedArea } = aggregatedData[0]; + const { protectedArea } = aggregatedData[aggregatedData.length - 1]; const percentageFormatted = formatPercentage(locale, (protectedArea / totalArea) * 100, { displayPercentageSign: false, }); diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx index 22176ceb..4c999806 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx @@ -118,7 +118,7 @@ const TerrestrialConservationWidget: FCWithMessages Date: Thu, 10 Oct 2024 15:49:34 +0200 Subject: [PATCH 056/105] Change entry title of several models --- ...api##data-tool-language.data-tool-language.json | 14 +++++++------- ...ration_content_types##api##dataset.dataset.json | 14 +++++++------- ...ontent_types##api##environment.environment.json | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-tool-language.data-tool-language.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-tool-language.data-tool-language.json index 535b19c5..257cefe6 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-tool-language.data-tool-language.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-tool-language.data-tool-language.json @@ -7,7 +7,7 @@ "filterable": true, "searchable": true, "pageSize": 10, - "mainField": "name", + "mainField": "slug", "defaultSortBy": "name", "defaultSortOrder": "ASC" }, @@ -123,12 +123,6 @@ } }, "layouts": { - "list": [ - "id", - "name", - "slug", - "data_tool" - ], "edit": [ [ { @@ -146,6 +140,12 @@ "size": 6 } ] + ], + "list": [ + "id", + "name", + "slug", + "data_tool" ] } }, diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json index 53687687..5d19e844 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##dataset.dataset.json @@ -7,7 +7,7 @@ "filterable": true, "searchable": true, "pageSize": 10, - "mainField": "name", + "mainField": "slug", "defaultSortBy": "name", "defaultSortOrder": "ASC" }, @@ -123,12 +123,6 @@ } }, "layouts": { - "list": [ - "id", - "name", - "layers", - "createdAt" - ], "edit": [ [ { @@ -146,6 +140,12 @@ "size": 6 } ] + ], + "list": [ + "id", + "name", + "layers", + "createdAt" ] } }, diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##environment.environment.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##environment.environment.json index a0eeb749..745bf50b 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##environment.environment.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##environment.environment.json @@ -7,7 +7,7 @@ "filterable": true, "searchable": true, "pageSize": 10, - "mainField": "name", + "mainField": "slug", "defaultSortBy": "name", "defaultSortOrder": "ASC" }, @@ -108,12 +108,6 @@ } }, "layouts": { - "list": [ - "id", - "name", - "slug", - "createdAt" - ], "edit": [ [ { @@ -125,6 +119,12 @@ "size": 6 } ] + ], + "list": [ + "id", + "name", + "slug", + "createdAt" ] } }, From 5b23828f6f8002429b0028337924028ca76f95a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 15:56:50 +0200 Subject: [PATCH 057/105] Update the colours of the habitats --- frontend/src/constants/habitat-chart-colors.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/constants/habitat-chart-colors.ts b/frontend/src/constants/habitat-chart-colors.ts index b57cf088..e1b4ce45 100644 --- a/frontend/src/constants/habitat-chart-colors.ts +++ b/frontend/src/constants/habitat-chart-colors.ts @@ -7,11 +7,11 @@ export const HABITAT_CHART_COLORS = { saltmarshes: '#6D7600', seamounts: '#884B02', forest: '#01550E', - savanna: '#E6CC8A', + savanna: '#FFE399', shrubland: '#C6FF53', grassland: '#1D931D', 'wetlands-open-waters': '#5BB5FF', - 'rocky-mountains': '#95908C', + 'rocky-mountains': '#79685A', desert: '#FBF8D6', - artificial: '#67FFE2', + artificial: '#CECECE', }; From f6924ef520b344a1f9b585ff1b66cfbae02ab18f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 10 Oct 2024 16:05:41 +0200 Subject: [PATCH 058/105] Add offset to tooltip so it is less in the way --- frontend/src/containers/map/content/map/popup/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/containers/map/content/map/popup/index.tsx b/frontend/src/containers/map/content/map/popup/index.tsx index 0494f796..f4cba105 100644 --- a/frontend/src/containers/map/content/map/popup/index.tsx +++ b/frontend/src/containers/map/content/map/popup/index.tsx @@ -120,6 +120,7 @@ const PopupContainer: FCWithMessages = () => { Date: Fri, 11 Oct 2024 09:29:07 +0200 Subject: [PATCH 059/105] Fix crash due to unresolved request --- .../main-panel/panels/details/widgets/summary-widgets.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/summary-widgets.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/summary-widgets.tsx index 127c2fef..9bc3a40b 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/summary-widgets.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/summary-widgets.tsx @@ -34,6 +34,10 @@ const SummaryWidgets: FCWithMessages = () => { } ); + if (!locationData) { + return null; + } + return (
Date: Fri, 11 Oct 2024 09:33:24 +0200 Subject: [PATCH 060/105] Hide habitats with no data in habitat widget --- .../panels/details/widgets/habitat/index.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx index 1eb1c73f..f9ecf67d 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/habitat/index.tsx @@ -130,10 +130,12 @@ const HabitatWidget: FCWithMessages = ({ location }) => { }; }); - return parsedData.sort((d1, d2) => { - const keys = Object.keys(HABITAT_CHART_COLORS); - return keys.indexOf(d1.slug) - keys.indexOf(d2.slug); - }); + return parsedData + .sort((d1, d2) => { + const keys = Object.keys(HABITAT_CHART_COLORS); + return keys.indexOf(d1.slug) - keys.indexOf(d2.slug); + }) + .filter(({ totalArea }) => totalArea !== 0); }, placeholderData: [], refetchOnWindowFocus: false, From 7bd02054f6c7dbad6a17ed1270bb74606dee0313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 11 Oct 2024 09:58:56 +0200 Subject: [PATCH 061/105] Only show relevant layers in the legend --- .../map/layers-toolbox/legend/index.tsx | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/frontend/src/containers/map/content/map/layers-toolbox/legend/index.tsx b/frontend/src/containers/map/content/map/layers-toolbox/legend/index.tsx index 652e1fb9..8165f716 100644 --- a/frontend/src/containers/map/content/map/layers-toolbox/legend/index.tsx +++ b/frontend/src/containers/map/content/map/layers-toolbox/legend/index.tsx @@ -13,6 +13,7 @@ import { useSyncMapLayerSettings, useSyncMapLayers, } from '@/containers/map/content/map/sync-settings'; +import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { cn } from '@/lib/classnames'; import ArrowDownIcon from '@/styles/icons/arrow-down.svg'; import ArrowTopIcon from '@/styles/icons/arrow-top.svg'; @@ -20,7 +21,10 @@ import CloseIcon from '@/styles/icons/close.svg'; import OpacityIcon from '@/styles/icons/opacity.svg'; import { FCWithMessages } from '@/types'; import { useGetLayers } from '@/types/generated/layer'; -import { LayerResponseDataObject } from '@/types/generated/strapi.schemas'; +import { + LayerListResponseDataItem, + LayerResponseDataObject, +} from '@/types/generated/strapi.schemas'; import { LayerTyped } from '@/types/layers'; import LegendItem from './item'; @@ -31,12 +35,38 @@ const Legend: FCWithMessages = () => { const [activeLayers, setMapLayers] = useSyncMapLayers(); const [layerSettings, setLayerSettings] = useSyncMapLayerSettings(); + const [{ tab }] = useSyncMapContentSettings(); - const layersQuery = useGetLayers( + const layersQuery = useGetLayers( { locale, sort: 'title:asc', - populate: 'legend_config,legend_config.items', + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + fields: ['title'], + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + populate: { + legend_config: { + populate: { + items: true, + }, + }, + environment: { + fields: ['slug'], + }, + }, + filters: { + ...(tab !== 'summary' + ? { + environment: { + slug: { + $in: tab, + }, + }, + } + : {}), + }, }, { query: { From d848580dcae6be5e138550d6a38c972fab4ba367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 11 Oct 2024 11:14:08 +0200 Subject: [PATCH 062/105] Fix potential crashes of the global table --- .../map/content/details/tables/global-regional/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx index 4a2f65cb..d1d8369e 100644 --- a/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx @@ -446,7 +446,7 @@ export const useData = ( name_fr: location?.name_fr, code: location.code, mpaa_protection_level_stats: { - percentage: location?.mpaa_protection_level_stats.data.attributes.percentage, + percentage: location?.mpaa_protection_level_stats?.data.attributes.percentage, }, }, environment: { From fc718eca63ce499024d4be0d6809a1730dbfec23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 11 Oct 2024 11:15:13 +0200 Subject: [PATCH 063/105] Default the column Fully/highly protected to 0 --- .../content/details/tables/global-regional/hooks.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx index d1d8369e..127efcba 100644 --- a/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/global-regional/hooks.tsx @@ -271,10 +271,10 @@ export const useColumns = ( ), cell: ({ row }) => { const { location } = row.original; - const formattedValue = cellFormatter.percentage( - locale, - location.mpaa_protection_level_stats.percentage - ); + + const value = location.mpaa_protection_level_stats.percentage; + const formattedValue = cellFormatter.percentage(locale, value ?? 0); + return ( {t('percentage', { percentage: formattedValue })} ); @@ -446,7 +446,7 @@ export const useData = ( name_fr: location?.name_fr, code: location.code, mpaa_protection_level_stats: { - percentage: location?.mpaa_protection_level_stats?.data.attributes.percentage, + percentage: location?.mpaa_protection_level_stats?.data?.attributes.percentage, }, }, environment: { From 0360014e497ac62d3be58f40f6810a4878ac7fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 11 Oct 2024 11:16:50 +0200 Subject: [PATCH 064/105] Fix potential crashes of national/high seas table --- .../map/content/details/tables/national-highseas/hooks.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx index 0b303435..cd3c7250 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx @@ -756,7 +756,7 @@ export const useData = ( placeholderData: [], enabled: isFiltering, keepPreviousData: true, - select: (data) => data.data.map(({ id }) => id), + select: (data) => data.data?.map(({ id }) => id) ?? [], }, } ); @@ -796,7 +796,7 @@ export const useData = ( placeholderData: [], enabled: isFiltering, keepPreviousData: true, - select: (data) => data.data.map(({ attributes }) => attributes.parent.data.id), + select: (data) => data.data?.map(({ attributes }) => attributes.parent.data.id) ?? [], }, } ); From 81e11276b21c1350bf5d5427cdb1a1df31ef16ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 11 Oct 2024 11:30:10 +0200 Subject: [PATCH 065/105] Only reset to default layers when the tab changes --- .../map/sidebar/layers-panel/index.tsx | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/frontend/src/containers/map/sidebar/layers-panel/index.tsx b/frontend/src/containers/map/sidebar/layers-panel/index.tsx index 49221c75..5a51cf7e 100644 --- a/frontend/src/containers/map/sidebar/layers-panel/index.tsx +++ b/frontend/src/containers/map/sidebar/layers-panel/index.tsx @@ -1,6 +1,7 @@ import { ComponentProps, useCallback, useEffect, useMemo } from 'react'; import { useLocale, useTranslations } from 'next-intl'; +import { usePreviousImmediate } from 'rooks'; import TooltipButton from '@/components/tooltip-button'; import { Label } from '@/components/ui/label'; @@ -20,6 +21,7 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { const [, setMapLayers] = useSyncMapLayers(); const [{ labels }, setMapSettings] = useSyncMapSettings(); const [{ tab }] = useSyncMapContentSettings(); + const previousTab = usePreviousImmediate(tab); const { data: datasetsData, @@ -122,23 +124,25 @@ const LayersPanel: FCWithMessages = (): JSX.Element => { // Set map layers to the corresponding defaults when the user switches tabs useEffect(() => { - let mapLayers = []; - switch (tab) { - case 'summary': - mapLayers = ['terrestrial', 'marine', 'basemap']?.reduce( - (ids, dataset) => [...ids, ...defaultLayersIds[dataset]], - [] - ); - break; - case 'terrestrial': - mapLayers = defaultLayersIds.terrestrial; - break; - case 'marine': - mapLayers = defaultLayersIds.marine; - break; + if (tab !== previousTab && !!previousTab) { + let mapLayers = []; + switch (tab) { + case 'summary': + mapLayers = ['terrestrial', 'marine', 'basemap']?.reduce( + (ids, dataset) => [...ids, ...defaultLayersIds[dataset]], + [] + ); + break; + case 'terrestrial': + mapLayers = defaultLayersIds.terrestrial; + break; + case 'marine': + mapLayers = defaultLayersIds.marine; + break; + } + setMapLayers(mapLayers); } - setMapLayers(mapLayers); - }, [defaultLayersIds, setMapLayers, tab]); + }, [defaultLayersIds, setMapLayers, tab, previousTab]); const handleLabelsChange = useCallback( (active: Parameters['onCheckedChange']>[0]) => { From ee2a71643b48318ff00e93763cb9d4233b493575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 11 Oct 2024 13:17:27 +0200 Subject: [PATCH 066/105] Add terrestrial data disclaimer --- .../terrestrial-data-disclaimer-dialog.tsx | 52 +++++++++++++++++++ .../src/components/tooltip-button/index.tsx | 13 +++-- frontend/src/components/ui/dialog.tsx | 34 ++++++------ frontend/src/components/widget/index.tsx | 8 ++- .../terrestrial-conservation/index.tsx | 19 +++++++ frontend/src/containers/map/store.ts | 10 +++- frontend/src/layouts/map.tsx | 20 ++++++- .../pages/progress-tracker/[locationCode].tsx | 1 + frontend/src/styles/icons/notification.svg | 3 ++ frontend/tailwind.config.js | 1 + frontend/translations/en.json | 13 +++-- 11 files changed, 145 insertions(+), 29 deletions(-) create mode 100644 frontend/src/components/terrestrial-data-disclaimer-dialog.tsx create mode 100644 frontend/src/styles/icons/notification.svg diff --git a/frontend/src/components/terrestrial-data-disclaimer-dialog.tsx b/frontend/src/components/terrestrial-data-disclaimer-dialog.tsx new file mode 100644 index 00000000..34125427 --- /dev/null +++ b/frontend/src/components/terrestrial-data-disclaimer-dialog.tsx @@ -0,0 +1,52 @@ +import { useAtom } from 'jotai'; +import { useTranslations } from 'next-intl'; + +import { Button } from '@/components/ui/button'; +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, +} from '@/components/ui/dialog'; +import Icon from '@/components/ui/icon'; +import { terrestrialDataDisclaimerDialogAtom } from '@/containers/map/store'; +import Notification from '@/styles/icons/notification.svg'; + +interface TerrestrialDataDisclaimerDialogProps {} + +const TerrestrialDataDisclaimerDialog = ({}: TerrestrialDataDisclaimerDialogProps) => { + const t = useTranslations('pages.progress-tracker'); + const [, setOpen] = useAtom(terrestrialDataDisclaimerDialogAtom); + + return ( + + + + + {t('important-notification')} + + + {t('terrestrial-data-disclaimer-dialog-title')} + + + {t.rich('terrestrial-data-disclaimer-dialog-content', { + br: () =>
, + })} +
+ + + +
+
+ ); +}; + +export default TerrestrialDataDisclaimerDialog; diff --git a/frontend/src/components/tooltip-button/index.tsx b/frontend/src/components/tooltip-button/index.tsx index fa02b8b1..fa12d510 100644 --- a/frontend/src/components/tooltip-button/index.tsx +++ b/frontend/src/components/tooltip-button/index.tsx @@ -1,4 +1,4 @@ -import { Fragment, useState } from 'react'; +import { Fragment, ReactNode, useState } from 'react'; import Linkify from 'react-linkify'; @@ -20,9 +20,15 @@ interface TooltipButtonProps { className?: string; text: string; sources?: Source | Source[]; + extraContent?: ReactNode; } -const TooltipButton: FCWithMessages = ({ className, text, sources }) => { +const TooltipButton: FCWithMessages = ({ + className, + text, + sources, + extraContent, +}) => { const t = useTranslations('components.tooltip-button'); const [isTooltipOpen, setIsTooltipOpen] = useState(false); @@ -65,7 +71,7 @@ const TooltipButton: FCWithMessages = ({ className, text, so {Array.isArray(sources) && (
- Data sources: + {t('data-sources:')} {sources.map(({ id, title, url }, index) => ( = ({ className, text, so {t('data-source')} )} + {extraContent} ); diff --git a/frontend/src/components/ui/dialog.tsx b/frontend/src/components/ui/dialog.tsx index 38061251..acec9b10 100644 --- a/frontend/src/components/ui/dialog.tsx +++ b/frontend/src/components/ui/dialog.tsx @@ -21,7 +21,7 @@ const DialogOverlay = React.forwardRef< , - React.ComponentPropsWithoutRef ->(({ className, children, ...props }, ref) => ( + React.ComponentPropsWithoutRef & { + closable?: boolean; + } +>(({ className, children, closable = true, ...props }, ref) => ( {children} - - - Close - + {closable && ( + + + Close + + )} )); @@ -60,7 +64,7 @@ DialogHeader.displayName = 'DialogHeader'; const DialogFooter = ({ className, ...props }: React.HTMLAttributes) => (
); @@ -70,11 +74,7 @@ const DialogTitle = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( - + )); DialogTitle.displayName = DialogPrimitive.Title.displayName; @@ -82,11 +82,7 @@ const DialogDescription = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( - + )); DialogDescription.displayName = DialogPrimitive.Description.displayName; diff --git a/frontend/src/components/widget/index.tsx b/frontend/src/components/widget/index.tsx index 21df360b..8d4aaf4a 100644 --- a/frontend/src/components/widget/index.tsx +++ b/frontend/src/components/widget/index.tsx @@ -1,4 +1,4 @@ -import { ComponentProps, PropsWithChildren, useMemo } from 'react'; +import { ComponentProps, PropsWithChildren, ReactNode, useMemo } from 'react'; import { timeFormatLocale } from 'd3-time-format'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -31,6 +31,7 @@ type WidgetProps = { errorMessage?: ComponentProps['message']; info?: ComponentProps['text']; sources?: ComponentProps['sources']; + tooltipExtraContent?: ReactNode; }; const d3Locales = { @@ -50,6 +51,7 @@ const Widget: FCWithMessages> = ({ errorMessage = undefined, info, sources, + tooltipExtraContent, children, }) => { const t = useTranslations('components.widget'); @@ -69,7 +71,9 @@ const Widget: FCWithMessages> = ({
{title &&

{title}

} - {(info || sources) && } + {(info || sources) && ( + + )}
{!showNoData && lastUpdated && ( {t('updated-on', { date: formattedLastUpdated })} diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx index 4c999806..4825f9b6 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/terrestrial-conservation/index.tsx @@ -1,14 +1,18 @@ import { useMemo } from 'react'; +import { useAtom } from 'jotai'; import { groupBy } from 'lodash-es'; import { useLocale, useTranslations } from 'next-intl'; import ConservationChart from '@/components/charts/conservation-chart'; import { Button } from '@/components/ui/button'; +import Icon from '@/components/ui/icon'; import Widget from '@/components/widget'; +import { terrestrialDataDisclaimerDialogAtom } from '@/containers/map/store'; import { useSyncMapContentSettings } from '@/containers/map/sync-settings'; import { formatKM } from '@/lib/utils/formats'; import { formatPercentage } from '@/lib/utils/formats'; +import Notification from '@/styles/icons/notification.svg'; import { FCWithMessages } from '@/types'; import { useGetDataInfos } from '@/types/generated/data-info'; import { useGetProtectionCoverageStats } from '@/types/generated/protection-coverage-stat'; @@ -29,6 +33,8 @@ const TerrestrialConservationWidget: FCWithMessages( @@ -163,6 +169,19 @@ const TerrestrialConservationWidget: FCWithMessages setDisclaimerDialogOpen(true)} + > + + + {t('data-disclaimer')} + + } > {stats && (
diff --git a/frontend/src/containers/map/store.ts b/frontend/src/containers/map/store.ts index 87ed12c4..d157f111 100644 --- a/frontend/src/containers/map/store.ts +++ b/frontend/src/containers/map/store.ts @@ -2,7 +2,7 @@ import { MapLayerMouseEvent } from 'react-map-gl'; import { Feature } from 'geojson'; import { atom } from 'jotai'; -import { atomWithReset } from 'jotai/utils'; +import { atomWithReset, atomWithStorage } from 'jotai/utils'; import { CustomMapProps } from '@/components/map/types'; import { LayerResponseDataObject } from '@/types/generated/strapi.schemas'; @@ -40,3 +40,11 @@ export const modellingAtom = atomWithReset<{ data: null, errorMessage: undefined, }); + +/** + * Whether the disclaimer dialog should be visible + */ +export const terrestrialDataDisclaimerDialogAtom = atomWithStorage( + 'terrestrial-data-disclaimer-dialog', + true +); diff --git a/frontend/src/layouts/map.tsx b/frontend/src/layouts/map.tsx index 998e6850..f23f9d15 100644 --- a/frontend/src/layouts/map.tsx +++ b/frontend/src/layouts/map.tsx @@ -1,5 +1,8 @@ import { PropsWithChildren, useEffect } from 'react'; +import dynamic from 'next/dynamic'; + +import { useAtomValue } from 'jotai'; import { useResetAtom } from 'jotai/utils'; import { useTranslations } from 'next-intl'; @@ -7,9 +10,20 @@ import Head from '@/components/head'; import Header from '@/components/header'; import Content from '@/containers/map/content'; import Sidebar from '@/containers/map/sidebar'; -import { drawStateAtom, modellingAtom } from '@/containers/map/store'; +import { + drawStateAtom, + modellingAtom, + terrestrialDataDisclaimerDialogAtom, +} from '@/containers/map/store'; import { FCWithMessages } from '@/types'; +const TerrestrialDataDisclaimerDialog = dynamic( + () => import('@/components/terrestrial-data-disclaimer-dialog'), + { + ssr: false, + } +); + const LAYOUT_TYPES = { progress_tracker: 'progress-tracker', conservation_builder: 'conservation-builder', @@ -30,6 +44,7 @@ const MapLayout: FCWithMessages> = ({ const resetModelling = useResetAtom(modellingAtom); const resetDrawState = useResetAtom(drawStateAtom); + const terrestrialDataDisclaimerDialogOpen = useAtomValue(terrestrialDataDisclaimerDialogAtom); useEffect(() => { if (type !== LAYOUT_TYPES.conservation_builder) { @@ -48,6 +63,9 @@ const MapLayout: FCWithMessages> = ({ } description={description} /> + {type === LAYOUT_TYPES.progress_tracker && terrestrialDataDisclaimerDialogOpen && ( + + )}
diff --git a/frontend/src/pages/progress-tracker/[locationCode].tsx b/frontend/src/pages/progress-tracker/[locationCode].tsx index 1b23f4f6..582b2571 100644 --- a/frontend/src/pages/progress-tracker/[locationCode].tsx +++ b/frontend/src/pages/progress-tracker/[locationCode].tsx @@ -30,6 +30,7 @@ ProgressTrackerPage.layout = { return { title: location?.[locationNameField], + type: 'progress-tracker', }; }, }; diff --git a/frontend/src/styles/icons/notification.svg b/frontend/src/styles/icons/notification.svg new file mode 100644 index 00000000..189d5271 --- /dev/null +++ b/frontend/src/styles/icons/notification.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 0f1fa166..d462e2d1 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -33,6 +33,7 @@ module.exports = { orange: '#FD8E28', violet: '#AD6CFF', 'gray-300': '#999999', + red: '#F43F4C', }, maxWidth: { screen: '100vw', diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 4724ad6c..78efa932 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -98,7 +98,12 @@ "outro-button": "Get in touch", "looking-for": "I am looking for..." }, - "progress-tracker": {}, + "progress-tracker": { + "terrestrial-data-disclaimer-dialog-title": "Terrestrial Conservation Coverage Data Disclaimer", + "terrestrial-data-disclaimer-dialog-content": "Protected area totals and trends in this dataset are derived from publicly available boundaries sourced from Protected Planet. However, some countries restrict the release of detailed protected area boundaries, leading to differences between our totals and those reported by the World Database on Protected Areas.



Due to these data restrictions, our protected area totals are lower both globally and in regions where boundaries are not publicly accessible.", + "i-understand": "I understand", + "important-notification": "Important notification" + }, "conservation-builder": {} }, "containers": { @@ -230,7 +235,8 @@ "explore-terrestrial-conservation": "Explore Terrestrial Conservation", "explore-marine-conservation": "Explore Marine Conservation", "terrestrial-existing-conservation": "Existing terrestrial conservation coverage", - "not-assessed": "Not assessed" + "not-assessed": "Not assessed", + "data-disclaimer": "Data disclaimer" }, "map-sidebar-layers-panel": { "layers": "Layers", @@ -360,7 +366,8 @@ }, "tooltip-button": { "info": "Info", - "data-source": "Data source" + "data-source": "Data source", + "data-sources:": "Data sources:" }, "ui-carousel": { "previous-slide": "Previous slide", From 1a74247bc847e82460f4b8937d1a15f94db5bc9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 11 Oct 2024 13:26:34 +0200 Subject: [PATCH 067/105] Fix eslint errors --- frontend/src/components/ui/form.tsx | 2 +- .../src/containers/map/content/map/layers-toolbox/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/ui/form.tsx b/frontend/src/components/ui/form.tsx index bb1de689..877a58d9 100644 --- a/frontend/src/components/ui/form.tsx +++ b/frontend/src/components/ui/form.tsx @@ -148,7 +148,7 @@ const FormMessage = React.forwardRef<

{body} diff --git a/frontend/src/containers/map/content/map/layers-toolbox/index.tsx b/frontend/src/containers/map/content/map/layers-toolbox/index.tsx index e1ba2e9b..82ab9b92 100644 --- a/frontend/src/containers/map/content/map/layers-toolbox/index.tsx +++ b/frontend/src/containers/map/content/map/layers-toolbox/index.tsx @@ -16,9 +16,9 @@ const LayersToolbox: FCWithMessages = () => { const [open, setOpen] = useState(true); return ( -

+
- + {open && } {!open && ( From cd1d4c9b917358f6e1c8ba87ae9d0f305d13182b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 11 Oct 2024 15:32:31 +0200 Subject: [PATCH 068/105] Optimise requests for the tables --- .../tables/national-highseas/hooks.tsx | 77 ++++++------------- 1 file changed, 22 insertions(+), 55 deletions(-) diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx index cd3c7250..a58ce60d 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx @@ -728,39 +728,6 @@ export const useData = ( // While unoptimal, this solution is still better than doing front-end filtering because we're // loading way less data. - // This request gets the list of all parents (no pagination) that match the filters. No sorting. - // This list is incomplete because some parents may not match the filters but their children do. - const { data: matchingParentsIds } = useGetPas( - { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - fields: ['id'], - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - filters: { - $and: [ - { - parent: { - name: { - $null: true, - }, - }, - }, - queryFilters, - ], - }, - 'pagination[limit]': -1, - }, - { - query: { - placeholderData: [], - enabled: isFiltering, - keepPreviousData: true, - select: (data) => data.data?.map(({ id }) => id) ?? [], - }, - } - ); - // This request gets the list of all the parents (no pagination) for which at least one child // matches the filters. No sorting. const { data: parentIdsWithMatchingChildren } = useGetPas( @@ -801,15 +768,8 @@ export const useData = ( } ); - // List of all the parents (no pagination) that either match the filters or for which at least one - // of child matches the filters. No sorting. - const parentsIds = useMemo(() => { - return Array.from( - new Set([...(matchingParentsIds ?? []), ...(parentIdsWithMatchingChildren ?? [])]) - ); - }, [matchingParentsIds, parentIdsWithMatchingChildren]); - - // Final query that gets the table's data using the list of parent ids + // This request gets the list of all parents that match the filters or the ones which children + // match, using the list `parentIdsWithMatchingChildren`. const { data: filteringData } = useGetPas< [NationalHighseasTableColumns[], PaListResponseMetaPagination] >( @@ -829,14 +789,25 @@ export const useData = ( }, }, filters: { - parent: { - name: { - $null: true, + $and: [ + { + parent: { + name: { + $null: true, + }, + }, }, - }, - id: { - $in: parentsIds, - }, + { + $or: [ + queryFilters, + { + id: { + $in: parentIdsWithMatchingChildren, + }, + }, + ], + }, + ], }, 'pagination[pageSize]': pagination.pageSize, 'pagination[page]': pagination.pageIndex + 1, @@ -845,7 +816,7 @@ export const useData = ( { query: { placeholderData: [], - enabled: isFiltering && parentsIds.length > 0, + enabled: isFiltering, keepPreviousData: true, select: processData, }, @@ -853,11 +824,7 @@ export const useData = ( ); if (isFiltering) { - if (parentsIds.length > 0) { - return filteringData; - } - - return [[] as NationalHighseasTableColumns[], { total: 0 }] as const; + return filteringData; } return noFilteringData; From 8410e580302e4c5919c7e3dce14efe95b3a92383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Fri, 11 Oct 2024 15:37:45 +0200 Subject: [PATCH 069/105] Fix the width of the tables' columns --- .../table/expansion-controls/index.tsx | 3 ++- .../map/content/details/table/index.tsx | 21 +++++++++++++++---- .../tables/national-highseas/hooks.tsx | 1 + 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx b/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx index ec77fad8..3821499e 100644 --- a/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx +++ b/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx @@ -24,7 +24,7 @@ const ExpansionControls: React.FC = ({ row, children }) const toggleExpanded = getToggleExpandedHandler(); return ( -
+
{isRowExpandable && (
diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx index a58ce60d..46bfab5e 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx @@ -269,6 +269,7 @@ export const useColumns = ( ); }, + size: 300, }, { id: 'environment.name', From c519b74307976d620965c549e182512b9878a7d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 10:27:15 +0200 Subject: [PATCH 070/105] Update the homepage's terrestrial stats --- .../src/containers/homepage/intro/index.tsx | 89 +++++++++---------- 1 file changed, 41 insertions(+), 48 deletions(-) diff --git a/frontend/src/containers/homepage/intro/index.tsx b/frontend/src/containers/homepage/intro/index.tsx index 89a1c57a..bc897779 100644 --- a/frontend/src/containers/homepage/intro/index.tsx +++ b/frontend/src/containers/homepage/intro/index.tsx @@ -1,5 +1,3 @@ -import { useMemo } from 'react'; - import Image from 'next/image'; import { useLocale, useTranslations } from 'next-intl'; @@ -10,8 +8,6 @@ import { formatPercentage } from '@/lib/utils/formats'; import ArrowRight from '@/styles/icons/arrow-right.svg'; import { FCWithMessages } from '@/types'; import { useGetProtectionCoverageStats } from '@/types/generated/protection-coverage-stat'; -import { useGetStaticIndicators } from '@/types/generated/static-indicator'; -import { ProtectionCoverageStatListResponseDataItem } from '@/types/generated/strapi.schemas'; type IntroProps = { onScrollClick: () => void; @@ -21,59 +17,56 @@ const Intro: FCWithMessages = ({ onScrollClick }) => { const t = useTranslations('containers.homepage-intro'); const locale = useLocale(); - const { data: protectionStatsData } = - useGetProtectionCoverageStats( - { - locale, - filters: { - location: { - code: 'GLOB', - }, - is_last_year: { - $eq: true, - }, - environment: { - slug: { - $eq: 'marine', - }, - }, - }, - populate: 'location,environment', - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - 'sort[year]': 'desc', - 'pagination[limit]': 1, - }, - { - query: { - select: ({ data }) => data?.[0], - }, - } - ); - - const { data: protectedTerrestrialInlandAreasData } = useGetStaticIndicators( + const { data: protectionStatsData } = useGetProtectionCoverageStats<{ + marine?: string; + terrestrial?: string; + }>( { locale, filters: { - slug: 'protected-land-area-percentage', + location: { + code: 'GLOB', + }, + is_last_year: { + $eq: true, + }, }, + populate: 'location,environment', + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + 'sort[year]': 'desc', }, { query: { - select: ({ data }) => data?.[0], - placeholderData: { data: [] }, + placeholderData: { terrestrial: '−', marine: '−' }, + select: ({ data }) => { + const terrestrialCoverage = data?.find( + (d) => d.attributes.environment.data.attributes.slug === 'terrestrial' + )?.attributes.coverage; + + const marineCoverage = data?.find( + (d) => d.attributes.environment.data.attributes.slug === 'marine' + )?.attributes.coverage; + + return { + terrestrial: + terrestrialCoverage !== undefined + ? formatPercentage(locale, terrestrialCoverage, { + displayPercentageSign: false, + }) + : '−', + marine: + marineCoverage !== undefined + ? formatPercentage(locale, marineCoverage, { + displayPercentageSign: false, + }) + : '−', + }; + }, }, } ); - const formattedOceanProtectedAreaPercentage = useMemo(() => { - if (!protectionStatsData) return null; - - return formatPercentage(locale, protectionStatsData.attributes.coverage, { - displayPercentageSign: false, - }); - }, [locale, protectionStatsData]); - return (
@@ -116,12 +109,12 @@ const Intro: FCWithMessages = ({ onScrollClick }) => {
From 185477a7a2192bffee1755a049d2f89710eef3eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 10:42:00 +0200 Subject: [PATCH 071/105] Prevent crash when missing location bounds --- .../map/sidebar/main-panel/panels/details/index.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx index 73ea1d59..409b1926 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/index.tsx @@ -83,11 +83,18 @@ const SidebarDetails: FCWithMessages = () => { return marine_bounds; } - if (terrestrial_bounds === undefined || marine_bounds === undefined) { + if (terrestrial_bounds === undefined && marine_bounds === undefined) { return null; } - return combineBoundingBoxes(terrestrial_bounds as BBox, marine_bounds as BBox); + return combineBoundingBoxes( + // Falling back to the marine bounds because some locations don't have terrestrial bounds e.g. + // ABJN and Gibraltar + (terrestrial_bounds ?? marine_bounds) as BBox, + // Falling back to the terrestrial bounds because some locations don't have marine bounds e.g. + // any country without coast + (marine_bounds ?? terrestrial_bounds) as BBox + ); }, [locationsData, tab]); const memberCountries = useMemo(() => { From f7528626e8d393fd04a9bdf000c4c98703ce9814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 10:48:50 +0200 Subject: [PATCH 072/105] Improve fitting the bounds on the map --- .../src/containers/map/content/map/index.tsx | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/frontend/src/containers/map/content/map/index.tsx b/frontend/src/containers/map/content/map/index.tsx index 98d24109..ffb6f575 100644 --- a/frontend/src/containers/map/content/map/index.tsx +++ b/frontend/src/containers/map/content/map/index.tsx @@ -24,7 +24,7 @@ import GenericPopup from '@/containers/map/content/map/popup/generic'; import ProtectedAreaPopup from '@/containers/map/content/map/popup/protected-area'; import RegionsPopup from '@/containers/map/content/map/popup/regions'; import { useSyncMapLayers, useSyncMapSettings } from '@/containers/map/content/map/sync-settings'; -import { sidebarAtom } from '@/containers/map/store'; +import { layersAtom, sidebarAtom } from '@/containers/map/store'; import { bboxLocationAtom, drawStateAtom, @@ -49,6 +49,7 @@ const MainMap: FCWithMessages = () => { const { default: map } = useMap(); const drawState = useAtomValue(drawStateAtom); const isSidebarOpen = useAtomValue(sidebarAtom); + const isLayersPanelOpen = useAtomValue(layersAtom); const [popup, setPopup] = useAtom(popupAtom); const params = useParams(); const [locationBbox, setLocationBbox] = useAtom(bboxLocationAtom); @@ -251,19 +252,31 @@ const MainMap: FCWithMessages = () => { const bounds: ComponentProps['bounds'] = useMemo(() => { if (!locationBbox) return null; + const padding = 20; + + let leftPadding = padding; + if (typeof window !== 'undefined' && window?.innerWidth > 430) { + if (isSidebarOpen) { + leftPadding += 460; + } + + if (isLayersPanelOpen) { + leftPadding += 280; + } + } + return { bbox: locationBbox as ComponentProps['bounds']['bbox'], options: { padding: { - top: 0, - bottom: 0, - left: - typeof window !== 'undefined' && window?.innerWidth > 430 && isSidebarOpen ? 430 : 0, - right: 0, + top: padding, + bottom: padding, + left: leftPadding, + right: padding, }, }, }; - }, [locationBbox, isSidebarOpen]); + }, [locationBbox, isSidebarOpen, isLayersPanelOpen]); useEffect(() => { setCursor(drawState.active ? 'crosshair' : 'grab'); From a9c64bad370c2bbf0ca24abf61a6779d9da4b2f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 11:13:01 +0200 Subject: [PATCH 073/105] Display 0 value as <0.1 in coverage column --- .../containers/map/content/details/table/helpers.ts | 10 ++++++++-- .../details/tables/national-highseas/hooks.tsx | 7 +++++-- frontend/src/lib/utils/formats.ts | 13 ++++++++++--- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/frontend/src/containers/map/content/details/table/helpers.ts b/frontend/src/containers/map/content/details/table/helpers.ts index 96c9b0b8..c94135ae 100644 --- a/frontend/src/containers/map/content/details/table/helpers.ts +++ b/frontend/src/containers/map/content/details/table/helpers.ts @@ -1,7 +1,13 @@ import { formatPercentage, formatKM } from '@/lib/utils/formats'; -const percentage = (locale: string, value: number) => { - return formatPercentage(locale, value, { displayPercentageSign: false }); +const percentage = ( + locale: string, + value: number, + options: { displayPercentageSign?: boolean; displayZeroValue?: boolean } = { + displayPercentageSign: false, + } +) => { + return formatPercentage(locale, value, options); }; const area = (locale: string, value: number) => { diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx index 46bfab5e..79262d2c 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx @@ -305,9 +305,12 @@ export const useColumns = ( ), cell: ({ row }) => { const { coverage: value } = row.original; - if (!value) return <>—; + if (value === undefined || value === null) return <>—; - const formattedCoverage = cellFormatter.percentage(locale, value); + const formattedCoverage = cellFormatter.percentage(locale, value, { + displayZeroValue: false, + displayPercentageSign: false, + }); return ( diff --git a/frontend/src/lib/utils/formats.ts b/frontend/src/lib/utils/formats.ts index d5801ab6..f3e5b7df 100644 --- a/frontend/src/lib/utils/formats.ts +++ b/frontend/src/lib/utils/formats.ts @@ -1,9 +1,16 @@ export function formatPercentage( locale: string, value: number, - options?: Intl.NumberFormatOptions & { displayPercentageSign?: boolean } + options?: Intl.NumberFormatOptions & { + displayPercentageSign?: boolean; + displayZeroValue?: boolean; + } ) { - const { displayPercentageSign = true, ...intlNumberFormatOptions } = options || {}; + const { + displayPercentageSign = true, + displayZeroValue = true, + ...intlNumberFormatOptions + } = options || {}; const v = Intl.NumberFormat(locale === 'en' ? 'en-US' : locale, { minimumFractionDigits: 1, @@ -12,7 +19,7 @@ export function formatPercentage( ...intlNumberFormatOptions, }); - if (value < 0.1 && value > 0) { + if (value < 0.1 && (!displayZeroValue || (displayZeroValue && value > 0))) { return `<${v.format(0.1)}`; } From ea7508cd68e514f030d680797d03819593c8d155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 11:26:01 +0200 Subject: [PATCH 074/105] Hide Data Source column in terrestrial view --- .../details/tables/national-highseas/hooks.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx index 79262d2c..228fb7f6 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx @@ -344,12 +344,14 @@ export const useColumns = ( accessorKey: 'data_source.title', header: ({ column }) => ( - onChangeFilters({ ...filters, [field]: values })} - /> + {environment !== 'terrestrial' && ( + onChangeFilters({ ...filters, [field]: values })} + /> + )} {t('data-source')} From d242a5a4bf68301625c42149b9b6642847d66202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 14:32:13 +0200 Subject: [PATCH 075/105] Move logic from the front-end to Strapi --- cms/src/api/pa/controllers/pa.ts | 70 +++++++++- .../tables/national-highseas/hooks.tsx | 121 +----------------- 2 files changed, 72 insertions(+), 119 deletions(-) diff --git a/cms/src/api/pa/controllers/pa.ts b/cms/src/api/pa/controllers/pa.ts index a71a251f..895ba7b4 100644 --- a/cms/src/api/pa/controllers/pa.ts +++ b/cms/src/api/pa/controllers/pa.ts @@ -4,4 +4,72 @@ import { factories } from '@strapi/strapi' -export default factories.createCoreController('api::pa.pa'); +export default factories.createCoreController('api::pa.pa', ({ strapi }) => ({ + async find(ctx) { + if (ctx.query['keep-if-children-match']) { + // In addition to the controller's default behavior, we also want to keep the rows for which + // there is at least one child that matches the filters. For this, we'll use the `children` + // and `parent` fields. + + // First, we get the list of all the parents (no pagination) for which at least one child + // matches the filters. No sorting. + const { parent, ...filtersWithoutParentProperty } = ctx.query.filters ?? {}; + + const parentIds = (await strapi.entityService.findMany('api::pa.pa', { + fields: ['id'], + populate: { + parent: { + fields: ['id'], + }, + }, + filters: { + $and: [ + { + parent: { + name: { + $null: false, + }, + }, + }, + filtersWithoutParentProperty, + ], + }, + limit: -1, + }) as { id: number; parent: { id: number } }[]).map((d) => d.parent.id); + + const uniqueParentIds = [...new Set(parentIds)]; + + // Then, we get the list of all parents that match the initial request or the ones for which + // children match, using the list of ids `uniqueParentIds`. + return await super.find({ + ...ctx, + query: { + ...ctx.query, + filters: { + $and: [ + { + parent: { + name: { + $null: true, + }, + }, + }, + { + $or: [ + filtersWithoutParentProperty, + { + id: { + $in: uniqueParentIds, + }, + }, + ], + }, + ], + } + }, + }); + } else { + return await super.find(ctx); + } + } +})); diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx index 228fb7f6..22513a87 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx @@ -584,14 +584,6 @@ export const useData = ( [environment, filters, locationCode] ); - const isFiltering = useMemo( - () => - Object.values(filters) - .filter(Boolean) - .some((value) => value.length > 0), - [filters] - ); - const processData = useCallback( (data: PaListResponse) => { return [ @@ -688,9 +680,7 @@ export const useData = ( ); // If the user isn't filtering, only one request is sufficient to get all of the table's data - const { data: noFilteringData } = useGetPas< - [NationalHighseasTableColumns[], PaListResponseMetaPagination] - >( + const { data } = useGetPas<[NationalHighseasTableColumns[], PaListResponseMetaPagination]>( { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore @@ -717,121 +707,16 @@ export const useData = ( 'pagination[pageSize]': pagination.pageSize, 'pagination[page]': pagination.pageIndex + 1, sort: querySort, + 'keep-if-children-match': true, }, { query: { placeholderData: [], - enabled: !isFiltering, - keepPreviousData: true, - select: processData, - }, - } - ); - - // If the user is filtering, we need to make several requests to Strapi. This is because a parent - // row needs to be filtered (among others) based on the values of the children rows. Strapi - // doesn't cover this use case so we're forced to multiply the requests. - // While unoptimal, this solution is still better than doing front-end filtering because we're - // loading way less data. - - // This request gets the list of all the parents (no pagination) for which at least one child - // matches the filters. No sorting. - const { data: parentIdsWithMatchingChildren } = useGetPas( - { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - fields: ['id'], - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - populate: { - parent: { - fields: ['id'], - }, - }, - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - filters: { - $and: [ - { - parent: { - name: { - $null: false, - }, - }, - }, - queryFilters, - ], - }, - 'pagination[limit]': -1, - }, - { - query: { - placeholderData: [], - enabled: isFiltering, - keepPreviousData: true, - select: (data) => data.data?.map(({ attributes }) => attributes.parent.data.id) ?? [], - }, - } - ); - - // This request gets the list of all parents that match the filters or the ones which children - // match, using the list `parentIdsWithMatchingChildren`. - const { data: filteringData } = useGetPas< - [NationalHighseasTableColumns[], PaListResponseMetaPagination] - >( - { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - fields: queryFields, - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - populate: { - ...queryPopulate, - children: { - fields: queryFields, - populate: queryPopulate, - filters: queryFilters, - sort: querySort, - }, - }, - filters: { - $and: [ - { - parent: { - name: { - $null: true, - }, - }, - }, - { - $or: [ - queryFilters, - { - id: { - $in: parentIdsWithMatchingChildren, - }, - }, - ], - }, - ], - }, - 'pagination[pageSize]': pagination.pageSize, - 'pagination[page]': pagination.pageIndex + 1, - sort: querySort, - }, - { - query: { - placeholderData: [], - enabled: isFiltering, keepPreviousData: true, select: processData, }, } ); - if (isFiltering) { - return filteringData; - } - - return noFilteringData; + return data; }; From f928612d03ef45c10f2f878b2a80b2e9923d338c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 14:59:23 +0200 Subject: [PATCH 076/105] Improve speed of national table when no filters --- .../details/tables/national-highseas/hooks.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx index 22513a87..ea42c422 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx @@ -584,6 +584,14 @@ export const useData = ( [environment, filters, locationCode] ); + const isFiltering = useMemo( + () => + Object.values(filters) + .filter(Boolean) + .some((value) => value.length > 0), + [filters] + ); + const processData = useCallback( (data: PaListResponse) => { return [ @@ -707,7 +715,9 @@ export const useData = ( 'pagination[pageSize]': pagination.pageSize, 'pagination[page]': pagination.pageIndex + 1, sort: querySort, - 'keep-if-children-match': true, + // This parameter makes sure Strapi retains the parent for which children match the filters + // but make the request slower, so it is only added when necessary + ...(isFiltering ? { 'keep-if-children-match': true } : {}), }, { query: { From 9362e1de515c0282ca18f88807b40c6df9729679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 15:09:28 +0200 Subject: [PATCH 077/105] Conditional fallback value for some table columns --- .../tables/national-highseas/hooks.tsx | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx index ea42c422..de234b90 100644 --- a/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx +++ b/frontend/src/containers/map/content/details/tables/national-highseas/hooks.tsx @@ -423,7 +423,17 @@ export const useColumns = ( ), cell: ({ row }) => { const { mpaa_establishment_stage } = row.original; - const formattedValue = mpaa_establishment_stage.name || t('not-assessed'); + + const hasSubRowWithValue = + row.subRows.length > 0 && + row.subRows.some((row) => !!row.original.mpaa_establishment_stage); + + let fallbackValue = t('not-assessed'); + if (hasSubRowWithValue) { + fallbackValue = '−'; + } + + const formattedValue = mpaa_establishment_stage.name ?? fallbackValue; return <>{formattedValue}; }, }, @@ -448,7 +458,17 @@ export const useColumns = ( ), cell: ({ row }) => { const { mpaa_protection_level } = row.original; - const formattedValue = mpaa_protection_level.name || t('not-assessed'); + + const hasSubRowWithValue = + row.subRows.length > 0 && + row.subRows.some((row) => !!row.original.mpaa_protection_level); + + let fallbackValue = t('not-assessed'); + if (hasSubRowWithValue) { + fallbackValue = '−'; + } + + const formattedValue = mpaa_protection_level.name ?? fallbackValue; return <>{formattedValue}; }, }, From adbf69f4a952d6ef14a4515ba897d485cb848f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 16:49:01 +0200 Subject: [PATCH 078/105] Update the map legends --- .../src/containers/map/content/map/index.tsx | 4 -- .../map/content/map/layers-toolbox/index.tsx | 3 +- .../map/layers-toolbox/legend/eez/index.tsx | 71 ------------------- .../legend/establishment/index.tsx | 41 ----------- .../map/layers-toolbox/legend/index.tsx | 2 +- .../map/layers-toolbox/legend/item.tsx | 42 +++++------ .../containers/map/content/map/popup/item.tsx | 4 -- frontend/src/lib/json-converter/index.ts | 4 -- frontend/src/styles/globals.css | 2 +- .../icons/circle-with-dotted-red-stroke.svg | 3 + .../src/styles/icons/circle-with-fill.svg | 3 + .../{oecm.svg => circle-without-fill.svg} | 2 +- frontend/src/styles/icons/eez.svg | 4 -- frontend/src/styles/icons/mpa.svg | 3 - frontend/src/styles/icons/selected-eez.svg | 3 - frontend/src/styles/icons/several-eez.svg | 4 -- frontend/translations/en.json | 3 - 17 files changed, 28 insertions(+), 170 deletions(-) delete mode 100644 frontend/src/containers/map/content/map/layers-toolbox/legend/eez/index.tsx delete mode 100644 frontend/src/containers/map/content/map/layers-toolbox/legend/establishment/index.tsx create mode 100644 frontend/src/styles/icons/circle-with-dotted-red-stroke.svg create mode 100644 frontend/src/styles/icons/circle-with-fill.svg rename frontend/src/styles/icons/{oecm.svg => circle-without-fill.svg} (50%) delete mode 100644 frontend/src/styles/icons/eez.svg delete mode 100644 frontend/src/styles/icons/mpa.svg delete mode 100644 frontend/src/styles/icons/selected-eez.svg delete mode 100644 frontend/src/styles/icons/several-eez.svg diff --git a/frontend/src/containers/map/content/map/index.tsx b/frontend/src/containers/map/content/map/index.tsx index ffb6f575..ad8adeb9 100644 --- a/frontend/src/containers/map/content/map/index.tsx +++ b/frontend/src/containers/map/content/map/index.tsx @@ -15,8 +15,6 @@ import { CustomMapProps } from '@/components/map/types'; import DrawControls from '@/containers/map/content/map/draw-controls'; import LabelsManager from '@/containers/map/content/map/labels-manager'; import LayersToolbox from '@/containers/map/content/map/layers-toolbox'; -import EEZLayerLegend from '@/containers/map/content/map/layers-toolbox/legend/eez'; -import EstablishmentLayerLegend from '@/containers/map/content/map/layers-toolbox/legend/establishment'; import Modelling from '@/containers/map/content/map/modelling'; import Popup from '@/containers/map/content/map/popup'; import EEZLayerPopup from '@/containers/map/content/map/popup/eez'; @@ -342,11 +340,9 @@ MainMap.messages = [ ...ZoomControls.messages, // Indirectly imported by the layer manager ...EEZLayerPopup.messages, - ...EEZLayerLegend.messages, ...GenericPopup.messages, ...ProtectedAreaPopup.messages, ...RegionsPopup.messages, - ...EstablishmentLayerLegend.messages, ]; export default MainMap; diff --git a/frontend/src/containers/map/content/map/layers-toolbox/index.tsx b/frontend/src/containers/map/content/map/layers-toolbox/index.tsx index 82ab9b92..cc844073 100644 --- a/frontend/src/containers/map/content/map/layers-toolbox/index.tsx +++ b/frontend/src/containers/map/content/map/layers-toolbox/index.tsx @@ -29,12 +29,11 @@ const LayersToolbox: FCWithMessages = () => { )} -
+
-
); diff --git a/frontend/src/containers/map/content/map/layers-toolbox/legend/eez/index.tsx b/frontend/src/containers/map/content/map/layers-toolbox/legend/eez/index.tsx deleted file mode 100644 index f969fb5d..00000000 --- a/frontend/src/containers/map/content/map/layers-toolbox/legend/eez/index.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import { useLocale, useTranslations } from 'next-intl'; - -import Icon from '@/components/ui/icon'; -import { Tooltip, TooltipProvider, TooltipTrigger, TooltipContent } from '@/components/ui/tooltip'; -import EEZIcon from '@/styles/icons/eez.svg'; -import InfoIcon from '@/styles/icons/info.svg'; -import SelectedEEZIcon from '@/styles/icons/selected-eez.svg'; -import SeveralEEZIcon from '@/styles/icons/several-eez.svg'; -import { FCWithMessages } from '@/types'; -import { useGetDataInfos } from '@/types/generated/data-info'; - -const ITEM_LIST_CLASSES = 'flex items-center space-x-2'; -const ICON_CLASSES = 'h-3.5 w-3.5'; - -const EEZLayerLegend: FCWithMessages = () => { - const t = useTranslations('containers.map'); - const locale = useLocale(); - - const EEZInfoQuery = useGetDataInfos( - { - locale, - filters: { - slug: 'eez-legend', - }, - }, - { - query: { - select: ({ data }) => data?.[0].attributes, - }, - } - ); - - return ( -
    -
  • - - {t('eezs')} -
  • -
  • - - {t('selected-eez')} -
  • -
  • - -
    - - {t.rich('area-corresponding-to-more-than-1-eez', { - br: () =>
    , - })} -
    - - - - - - -
    {EEZInfoQuery.data?.content}
    -
    -
    -
    -
    -
  • -
- ); -}; - -EEZLayerLegend.messages = ['containers.map']; - -export default EEZLayerLegend; diff --git a/frontend/src/containers/map/content/map/layers-toolbox/legend/establishment/index.tsx b/frontend/src/containers/map/content/map/layers-toolbox/legend/establishment/index.tsx deleted file mode 100644 index 1f4cc2c3..00000000 --- a/frontend/src/containers/map/content/map/layers-toolbox/legend/establishment/index.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import TooltipButton from '@/components/tooltip-button'; -import Icon from '@/components/ui/icon'; -import DesignatedIcon from '@/styles/icons/designated.svg'; -import ImplementedIcon from '@/styles/icons/implemented.svg'; -import ManagedIcon from '@/styles/icons/managed.svg'; -import ProposedIcon from '@/styles/icons/proposed.svg'; -import { FCWithMessages } from '@/types'; - -const ITEM_LIST_CLASSES = 'flex items-center space-x-2'; -const ICON_CLASSES = 'h-3.5 w-3.5 border border-black rounded-full'; - -const PATTERNS = { - proposed: ProposedIcon, - managed: ManagedIcon, - designated: DesignatedIcon, - implemented: ImplementedIcon, -}; - -const EstablishmentLayerLegend: FCWithMessages<{ - items: { label: string; pattern: string; description?: string }[]; -}> = (config) => { - const { items } = config; - - return ( -
    - {items.map(({ label, pattern, description }) => ( -
  • - - - {label} - {description && } - -
  • - ))} -
- ); -}; - -EstablishmentLayerLegend.messages = ['containers.map', ...TooltipButton.messages]; - -export default EstablishmentLayerLegend; diff --git a/frontend/src/containers/map/content/map/layers-toolbox/legend/index.tsx b/frontend/src/containers/map/content/map/layers-toolbox/legend/index.tsx index 8165f716..654076dc 100644 --- a/frontend/src/containers/map/content/map/layers-toolbox/legend/index.tsx +++ b/frontend/src/containers/map/content/map/layers-toolbox/legend/index.tsx @@ -177,7 +177,7 @@ const Legend: FCWithMessages = () => { -
+
{title}
diff --git a/frontend/src/containers/map/content/map/layers-toolbox/legend/item.tsx b/frontend/src/containers/map/content/map/layers-toolbox/legend/item.tsx index f847411e..3e014e60 100644 --- a/frontend/src/containers/map/content/map/layers-toolbox/legend/item.tsx +++ b/frontend/src/containers/map/content/map/layers-toolbox/legend/item.tsx @@ -2,35 +2,30 @@ import { ReactElement, isValidElement, useMemo } from 'react'; import TooltipButton from '@/components/tooltip-button'; import Icon from '@/components/ui/icon'; -import EEZLayerLegend from '@/containers/map/content/map/layers-toolbox/legend/eez'; -import EstablishmentLayerLegend from '@/containers/map/content/map/layers-toolbox/legend/establishment'; import EEZLayerPopup from '@/containers/map/content/map/popup/eez'; import GenericPopup from '@/containers/map/content/map/popup/generic'; import ProtectedAreaPopup from '@/containers/map/content/map/popup/protected-area'; import RegionsPopup from '@/containers/map/content/map/popup/regions'; import { cn } from '@/lib/classnames'; import { parseConfig } from '@/lib/json-converter'; +import CircleWithDottedRedStrokeIcon from '@/styles/icons/circle-with-dotted-red-stroke.svg'; +import CircleWithFillIcon from '@/styles/icons/circle-with-fill.svg'; +import CircleWithoutFillIcon from '@/styles/icons/circle-without-fill.svg'; import EstablishmentDesignatedIcon from '@/styles/icons/designated.svg'; -import EEZIcon from '@/styles/icons/eez.svg'; import EstablishmentImplementedIcon from '@/styles/icons/implemented.svg'; import EstablishmentManagedIcon from '@/styles/icons/managed.svg'; -import MPAIcon from '@/styles/icons/mpa.svg'; -import OECMIcon from '@/styles/icons/oecm.svg'; import EstablishmentProposedIcon from '@/styles/icons/proposed.svg'; -import EEZSelectedIcon from '@/styles/icons/selected-eez.svg'; -import EEZMultipleIcon from '@/styles/icons/several-eez.svg'; import { FCWithMessages } from '@/types'; import { LayerTyped, LegendConfig } from '@/types/layers'; + export interface LegendItemsProps { config: LayerTyped['legend_config']; } const ICONS_MAPPING = { - eez: EEZIcon, - 'eez-selected': EEZSelectedIcon, - 'eez-multiple': EEZMultipleIcon, - oecm: OECMIcon, - mpa: MPAIcon, + 'circle-with-fill': CircleWithFillIcon, + 'circle-without-fill': CircleWithoutFillIcon, + 'circle-with-dotted-red-stroke': CircleWithDottedRedStrokeIcon, 'establishment-proposed': EstablishmentProposedIcon, 'establishment-managed': EstablishmentManagedIcon, 'establishment-designated': EstablishmentDesignatedIcon, @@ -61,16 +56,16 @@ const LegendItem: FCWithMessages = ({ config }) => { return (
    {items.map(({ value, color, description }) => ( -
  • +
  • - + {value} - {description && } + {description && }
  • ))} @@ -80,20 +75,21 @@ const LegendItem: FCWithMessages = ({ config }) => { case 'icon': return (
      - {items.map(({ value, icon, description }) => ( -
    • - + {items.map(({ value, icon, description, color }) => ( +
    • + - + {value} - {description && } + {description && }
    • ))} @@ -162,11 +158,9 @@ const LegendItem: FCWithMessages = ({ config }) => { LegendItem.messages = [ // Imported by `parseConfig` ...EEZLayerPopup.messages, - ...EEZLayerLegend.messages, ...GenericPopup.messages, ...ProtectedAreaPopup.messages, ...RegionsPopup.messages, - ...EstablishmentLayerLegend.messages, ]; export default LegendItem; diff --git a/frontend/src/containers/map/content/map/popup/item.tsx b/frontend/src/containers/map/content/map/popup/item.tsx index c6e32108..e9d750a3 100644 --- a/frontend/src/containers/map/content/map/popup/item.tsx +++ b/frontend/src/containers/map/content/map/popup/item.tsx @@ -2,8 +2,6 @@ import { ReactElement, isValidElement, useMemo } from 'react'; import { useLocale } from 'next-intl'; -import EEZLayerLegend from '@/containers/map/content/map/layers-toolbox/legend/eez'; -import EstablishmentLayerLegend from '@/containers/map/content/map/layers-toolbox/legend/establishment'; import EEZLayerPopup from '@/containers/map/content/map/popup/eez'; import GenericPopup from '@/containers/map/content/map/popup/generic'; import ProtectedAreaPopup from '@/containers/map/content/map/popup/protected-area'; @@ -55,11 +53,9 @@ const PopupItem: FCWithMessages = ({ id }) => { PopupItem.messages = [ // These components are used by `parseConfig` ...EEZLayerPopup.messages, - ...EEZLayerLegend.messages, ...GenericPopup.messages, ...ProtectedAreaPopup.messages, ...RegionsPopup.messages, - ...EstablishmentLayerLegend.messages, ]; export default PopupItem; diff --git a/frontend/src/lib/json-converter/index.ts b/frontend/src/lib/json-converter/index.ts index dfe41801..61e156c9 100644 --- a/frontend/src/lib/json-converter/index.ts +++ b/frontend/src/lib/json-converter/index.ts @@ -8,8 +8,6 @@ import { JSONConfiguration, JSONConverter } from '@deck.gl/json/typed'; // LegendTypeChoropleth, // LegendTypeGradient, // } from '@/components/map/legend/item-types'; -import EEZLayerLegend from '@/containers/map/content/map/layers-toolbox/legend/eez'; -import EstablishmentLayerLegend from '@/containers/map/content/map/layers-toolbox/legend/establishment'; import EEZLayerPopup from '@/containers/map/content/map/popup/eez'; import GenericPopup from '@/containers/map/content/map/popup/generic'; import ProtectedAreaPopup from '@/containers/map/content/map/popup/protected-area'; @@ -29,11 +27,9 @@ export const JSON_CONFIGURATION = new JSONConfiguration({ enumerations: {}, reactComponents: { EEZLayerPopup, - EEZLayerLegend, // Deprecated GenericPopup, ProtectedAreaPopup, RegionsPopup, - EstablishmentLayerLegend, // Deprecated // LegendTypeBasic, // LegendTypeChoropleth, // LegendTypeGradient, diff --git a/frontend/src/styles/globals.css b/frontend/src/styles/globals.css index 2ec5aa55..598a402d 100644 --- a/frontend/src/styles/globals.css +++ b/frontend/src/styles/globals.css @@ -3,7 +3,7 @@ @tailwind utilities; .mapboxgl-ctrl-bottom-right { - @apply !right-[335px]; + @apply !right-[400px]; } .mapboxgl-ctrl-bottom-left { @apply !right-[345px] !bottom-5 !left-auto; diff --git a/frontend/src/styles/icons/circle-with-dotted-red-stroke.svg b/frontend/src/styles/icons/circle-with-dotted-red-stroke.svg new file mode 100644 index 00000000..90eaa38a --- /dev/null +++ b/frontend/src/styles/icons/circle-with-dotted-red-stroke.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/styles/icons/circle-with-fill.svg b/frontend/src/styles/icons/circle-with-fill.svg new file mode 100644 index 00000000..48a8ecfc --- /dev/null +++ b/frontend/src/styles/icons/circle-with-fill.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/styles/icons/oecm.svg b/frontend/src/styles/icons/circle-without-fill.svg similarity index 50% rename from frontend/src/styles/icons/oecm.svg rename to frontend/src/styles/icons/circle-without-fill.svg index ed92e609..51f84ded 100644 --- a/frontend/src/styles/icons/oecm.svg +++ b/frontend/src/styles/icons/circle-without-fill.svg @@ -1,3 +1,3 @@ - + diff --git a/frontend/src/styles/icons/eez.svg b/frontend/src/styles/icons/eez.svg deleted file mode 100644 index f33f06d0..00000000 --- a/frontend/src/styles/icons/eez.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/frontend/src/styles/icons/mpa.svg b/frontend/src/styles/icons/mpa.svg deleted file mode 100644 index b2095983..00000000 --- a/frontend/src/styles/icons/mpa.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/frontend/src/styles/icons/selected-eez.svg b/frontend/src/styles/icons/selected-eez.svg deleted file mode 100644 index 0184c5a9..00000000 --- a/frontend/src/styles/icons/selected-eez.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/frontend/src/styles/icons/several-eez.svg b/frontend/src/styles/icons/several-eez.svg deleted file mode 100644 index 768e3bc3..00000000 --- a/frontend/src/styles/icons/several-eez.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 78efa932..1bd7bb9b 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -257,9 +257,6 @@ "percentage-bold": "{percentage}%", "marine-protected-area": "{protectedArea} km² out of {totalArea} km²", "open-country-insights": "Open country insights", - "eezs": "EEZs", - "selected-eez": "Selected EEZ", - "area-corresponding-to-more-than-1-eez": "Area corresponding to more

      than one EEZ", "global-coverage": "Global coverage", "area-km2": "{area} km²", "open-region-insights": "Open region insights", From d946444ea2c974d2415076c2bfef8a20194ae068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Mon, 14 Oct 2024 17:20:26 +0200 Subject: [PATCH 079/105] Update visuals of Conservation Coverage widget --- .../charts/conservation-chart/index.tsx | 136 +++++++++--------- .../conservation-chart/legend/index.tsx | 57 +++++++- frontend/translations/en.json | 2 +- 3 files changed, 117 insertions(+), 78 deletions(-) diff --git a/frontend/src/components/charts/conservation-chart/index.tsx b/frontend/src/components/charts/conservation-chart/index.tsx index 6cc86d8d..e8c06b9b 100644 --- a/frontend/src/components/charts/conservation-chart/index.tsx +++ b/frontend/src/components/charts/conservation-chart/index.tsx @@ -2,7 +2,7 @@ import { useMemo } from 'react'; import twTheme from 'lib/tailwind'; -import { useLocale, useTranslations } from 'next-intl'; +import { useTranslations } from 'next-intl'; import { ComposedChart, Bar, @@ -19,7 +19,6 @@ import { import TooltipButton from '@/components/tooltip-button'; import { cn } from '@/lib/classnames'; import { FCWithMessages } from '@/types'; -import { useGetDataInfos } from '@/types/generated/data-info'; import { getMultilineRenderer } from './helpers'; import ChartLegend from './legend'; @@ -53,7 +52,6 @@ const ConservationChart: FCWithMessages = ({ data, }) => { const t = useTranslations('components.chart-conservation'); - const locale = useLocale(); const barChartData = useMemo(() => { // Last year of data available @@ -136,21 +134,6 @@ const ConservationChart: FCWithMessages = ({ ]; }, [activeYearData, historicalDelta]); - const { data: dataInfo } = useGetDataInfos( - { - locale, - filters: { - slug: tooltipSlug, - }, - }, - { - query: { - select: ({ data }) => data?.[0], - placeholderData: { data: [] }, - }, - } - ); - const chartData = useMemo(() => { const historicalYearsArray = data?.map(({ year }) => year); const lastDataYear = historicalYearsArray[historicalYearsArray.length - 1]; @@ -185,45 +168,12 @@ const ConservationChart: FCWithMessages = ({ - {displayTarget && ( - { - const { viewBox } = props; - return ( - - - {t.rich('percentage-target', { target })} - - - - - - ); - }} - stroke="#FD8E28" - strokeDasharray="3 3" - /> - )} = ({ dataKey="year" ticks={xAxisTicks} domain={[firstYearData.year - 0.4, lastYearData.year]} + stroke="#000" + tick={{ fill: '#000' }} + axisLine={{ stroke: '#000' }} + tickLine={{ stroke: '#000' }} /> - + {chartData.map((entry, index) => ( + + ))} + + - `${value}%`} + = ({ - - {chartData.map((entry, index) => ( - + - ))} - + + + )} + + `${value}%`} + stroke="#000" + tick={{ fill: '#000' }} + axisLine={{ stroke: '#000' }} + tickLine={{ stroke: '#000' }} + /> - +
); }; diff --git a/frontend/src/components/charts/conservation-chart/legend/index.tsx b/frontend/src/components/charts/conservation-chart/legend/index.tsx index b3c9b119..685f7b40 100644 --- a/frontend/src/components/charts/conservation-chart/legend/index.tsx +++ b/frontend/src/components/charts/conservation-chart/legend/index.tsx @@ -1,20 +1,67 @@ -import { useTranslations } from 'next-intl'; +import { useLocale, useTranslations } from 'next-intl'; +import TooltipButton from '@/components/tooltip-button'; import { FCWithMessages } from '@/types'; +import { useGetDataInfos } from '@/types/generated/data-info'; -const ChartLegend: FCWithMessages = () => { +interface ChartLegendProps { + displayTarget?: boolean; + target?: number; + targetYear?: number; + tooltipSlug: string; +} + +const ChartLegend: FCWithMessages = ({ + displayTarget, + target, + targetYear, + tooltipSlug, +}) => { const t = useTranslations('components.chart-conservation'); + const locale = useLocale(); + + const { data: dataInfo } = useGetDataInfos( + { + locale, + filters: { + slug: tooltipSlug, + }, + }, + { + query: { + select: ({ data }) => data?.[0], + placeholderData: { data: [] }, + }, + } + ); return ( -
+
- + {t('historical-trend')} - + {t('future-projection')} + {displayTarget && ( + + + + {t.rich('target-xx-by', { + target, + year: targetYear, + })} + + + + )}
); }; diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 1bd7bb9b..c870d329 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -348,7 +348,7 @@ "historical-trend": "Historical Trend", "future-projection": "Future Projection", "historical": "Historical", - "percentage-target": "{target}% target" + "target-xx-by": "Target: {target}% by {year}" }, "chart-horizontal-bar": { "marine-protected-percentage": "{percentage}%", From 815feb9631854b6a11eb770fb3d3a5f3b1d0825d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Tue, 15 Oct 2024 10:55:16 +0200 Subject: [PATCH 080/105] Update the tables visually --- .../components/positional-scroll/index.tsx | 4 + .../containers/map/content/details/index.tsx | 12 +- .../table/expansion-controls/index.tsx | 2 +- .../map/content/details/table/index.tsx | 181 +++++++++--------- .../details/table/pagination/index.tsx | 2 +- .../table/scrolling-indicators/index.tsx | 20 +- frontend/src/containers/map/content/index.tsx | 2 +- .../panels/details/details-button/index.tsx | 10 +- 8 files changed, 116 insertions(+), 117 deletions(-) diff --git a/frontend/src/components/positional-scroll/index.tsx b/frontend/src/components/positional-scroll/index.tsx index dce19425..9b899a1d 100644 --- a/frontend/src/components/positional-scroll/index.tsx +++ b/frontend/src/components/positional-scroll/index.tsx @@ -24,6 +24,10 @@ const PositionalScroll: React.FC = ({ const handleScroll = useCallback(() => { const target = ref.current; + if (!target) { + return; + } + const xAtStartPosition = target.scrollLeft === 0; const xAtEndPosition = target.scrollLeft === target.scrollWidth - target.clientWidth; diff --git a/frontend/src/containers/map/content/details/index.tsx b/frontend/src/containers/map/content/details/index.tsx index d7c24a3f..275f7c34 100644 --- a/frontend/src/containers/map/content/details/index.tsx +++ b/frontend/src/containers/map/content/details/index.tsx @@ -13,8 +13,6 @@ import CloseIcon from '@/styles/icons/close.svg'; import { FCWithMessages } from '@/types'; import { getGetLocationsQueryOptions, useGetLocations } from '@/types/generated/location'; -import ScrollingIndicators from './table/scrolling-indicators'; - const MapDetails: FCWithMessages = () => { const t = useTranslations('containers.map'); const locale = useLocale(); @@ -135,8 +133,8 @@ const MapDetails: FCWithMessages = () => { }, [locale, tablesSettings, tab, locationsQuery.data]); return ( -
-
+
+

{table.title}

@@ -149,10 +147,8 @@ const MapDetails: FCWithMessages = () => {
-
- - - +
+
); diff --git a/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx b/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx index 3821499e..b77e0271 100644 --- a/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx +++ b/frontend/src/containers/map/content/details/table/expansion-controls/index.tsx @@ -28,7 +28,7 @@ const ExpansionControls: React.FC = ({ row, children }) {isRowExpandable && (
= ({ column.id ), })} + style={{ + minWidth: column.getSize() ? `${column.getSize()}px` : undefined, + width: column.getSize() ? `${column.getSize()}px` : undefined, + maxWidth: column.getSize() ? `${column.getSize()}px` : undefined, + }} > {flexRender(column.columnDef.cell, cell.getContext())}
- - {table.getHeaderGroups().map((headerGroup) => ( - - {headerGroup.headers.map((header) => { - const { id, column } = header; - const isFirstColumn = id === firstColumn.accessorKey; - const isLastColumn = id === lastColumn.accessorKey; - const isMapColumn = column.id === 'map'; - - return ( - - ); - })} - - ))} - - - {hasData && - table.getRowModel().rows.map((row, idx) => { - const { depth } = row; - const isParentRow = depth === 0; - const isFirstRow = idx === 0; - const isLastRow = idx + 1 === table.getRowModel().rows.length; - - return ( - - {row.getVisibleCells().map((cell) => { - const { column } = cell; - const isFirstColumn = column.id === firstColumn.accessorKey; - const isLastColumn = column.id === lastColumn.accessorKey; +
+
+ +
- {flexRender(column.columnDef.header, header.getContext())} -
+ + {table.getHeaderGroups().map((headerGroup) => ( + + {headerGroup.headers.map((header) => { + const { id, column } = header; + const isFirstColumn = id === firstColumn.accessorKey; + const isLastColumn = id === lastColumn.accessorKey; const isMapColumn = column.id === 'map'; return ( - + {flexRender(column.columnDef.header, header.getContext())} + ); })} - ); - })} - - {!hasData && ( - - - - )} - -
= ({ maxWidth: column.getSize() ? `${column.getSize()}px` : undefined, }} > - {flexRender(column.columnDef.cell, cell.getContext())} -
- {t('no-results')} -
+ ))} + + + {hasData && + table.getRowModel().rows.map((row, idx) => { + const isFirstRow = idx === 0; + const isLastRow = idx + 1 === table.getRowModel().rows.length; + const isLastSubRow = + row.depth === 1 && + row.getParentRow().subRows.findIndex(({ id }) => id === row.id) === + row.getParentRow().subRows.length - 1; + + return ( + + {row.getVisibleCells().map((cell) => { + const { column } = cell; + const isFirstColumn = column.id === firstColumn.accessorKey; + const isLastColumn = column.id === lastColumn.accessorKey; + const isMapColumn = column.id === 'map'; + + return ( + + {flexRender(column.columnDef.cell, cell.getContext())} + + ); + })} + + ); + })} + + {!hasData && ( + + + {t('no-results')} + + + )} + + + +
- +
); }; diff --git a/frontend/src/containers/map/content/details/table/pagination/index.tsx b/frontend/src/containers/map/content/details/table/pagination/index.tsx index ba0900f6..faa018ce 100644 --- a/frontend/src/containers/map/content/details/table/pagination/index.tsx +++ b/frontend/src/containers/map/content/details/table/pagination/index.tsx @@ -18,7 +18,7 @@ const Pagination = ({ const t = useTranslations('containers.map'); return ( -
+
{t('results-out-of', { startIndex: pagination.pageIndex * pagination.pageSize + 1, diff --git a/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx b/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx index 54a10c71..9b459f27 100644 --- a/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx +++ b/frontend/src/containers/map/content/details/table/scrolling-indicators/index.tsx @@ -23,16 +23,7 @@ const ScrollingIndicators: React.FC = ({ className, ch {(xScrollPosition === 'start' || xScrollPosition === 'middle') && ( <> - - - - - - + @@ -41,14 +32,7 @@ const ScrollingIndicators: React.FC = ({ className, ch {(xScrollPosition === 'middle' || xScrollPosition === 'end') && ( <> - - - - - - + diff --git a/frontend/src/containers/map/content/index.tsx b/frontend/src/containers/map/content/index.tsx index 332d342a..89c905d5 100644 --- a/frontend/src/containers/map/content/index.tsx +++ b/frontend/src/containers/map/content/index.tsx @@ -11,7 +11,7 @@ const MapContent: FCWithMessages = () => { <> {showDetails && ( -
+
)} diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/details-button/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/details-button/index.tsx index a077ae4f..e870e3e0 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/details-button/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/details-button/index.tsx @@ -16,7 +16,7 @@ type DetailsButtonProps = { const DetailsButton: FCWithMessages = ({ className, locationType }) => { const t = useTranslations('containers.map-sidebar-main-panel'); - const [{ tab }, setSettings] = useSyncMapContentSettings(); + const [{ tab, showDetails }, setSettings] = useSyncMapContentSettings(); const handleButtonClick = useCallback(() => { setSettings((prevSettings) => ({ ...prevSettings, showDetails: !prevSettings.showDetails })); @@ -24,7 +24,13 @@ const DetailsButton: FCWithMessages = ({ className, location return (