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 01/11] 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 02/11] 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 03/11] 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 04/11] 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 05/11] 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 06/11] 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 07/11] 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 08/11] 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 09/11] 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' && (