From d82c1540d2621cd397f97dc20fa6a65de1aa7906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Wed, 11 Sep 2024 15:31:27 +0200 Subject: [PATCH 1/9] Update the models --- cms/config/sync/admin-role.strapi-author.json | 72 - cms/config/sync/admin-role.strapi-editor.json | 64 - .../sync/admin-role.strapi-super-admin.json | 200 +- ...content_types##api##location.location.json | 10 +- ...level-stat.mpaa-protection-level-stat.json | 36 +- ...figuration_content_types##api##pa.pa.json} | 26 +- ...overage-stat.protection-coverage-stat.json | 111 +- cms/config/sync/user-role.public.json | 6 - cms/export_custom-db.json | 2 +- cms/src/api/mpa/controllers/mpa.ts | 7 - cms/src/api/mpa/routes/mpa.ts | 10 - cms/src/api/mpa/services/mpa.ts | 7 - .../mpaa-protection-level-stat/schema.json | 3 + .../mpa => pa/content-types/pa}/schema.json | 10 +- cms/src/api/pa/controllers/pa.ts | 7 + .../documentation/1.0.0/pa.json} | 16 +- cms/src/api/pa/routes/pa.ts | 10 + cms/src/api/pa/services/pa.ts | 7 + .../protection-coverage-stat/schema.json | 34 +- cms/types/generated/contentTypes.d.ts | 164 +- frontend/orval.config.ts | 2 +- .../tables/national-highseas/index.tsx | 3 +- frontend/src/types/generated/mpa.ts | 146 - frontend/src/types/generated/pa.ts | 146 + .../src/types/generated/strapi.schemas.ts | 7371 ++++++++--------- 25 files changed, 4058 insertions(+), 4412 deletions(-) rename cms/config/sync/{core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json => core-store.plugin_content_manager_configuration_content_types##api##pa.pa.json} (98%) delete mode 100644 cms/src/api/mpa/controllers/mpa.ts delete mode 100644 cms/src/api/mpa/routes/mpa.ts delete mode 100644 cms/src/api/mpa/services/mpa.ts rename cms/src/api/{mpa/content-types/mpa => pa/content-types/pa}/schema.json (93%) create mode 100644 cms/src/api/pa/controllers/pa.ts rename cms/src/api/{mpa/documentation/1.0.0/mpa.json => pa/documentation/1.0.0/pa.json} (95%) create mode 100644 cms/src/api/pa/routes/pa.ts create mode 100644 cms/src/api/pa/services/pa.ts delete mode 100644 frontend/src/types/generated/mpa.ts create mode 100644 frontend/src/types/generated/pa.ts diff --git a/cms/config/sync/admin-role.strapi-author.json b/cms/config/sync/admin-role.strapi-author.json index fd2653e0..41d4546d 100644 --- a/cms/config/sync/admin-role.strapi-author.json +++ b/cms/config/sync/admin-role.strapi-author.json @@ -930,72 +930,6 @@ ], "actionParameters": {} }, - { - "action": "plugin::content-manager.explorer.create", - "subject": "api::mpa.mpa", - "properties": { - "fields": [ - "name", - "area", - "year", - "protection_status", - "wdpaid", - "bbox", - "is_child" - ] - }, - "conditions": [ - "admin::is-creator" - ], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.delete", - "subject": "api::mpa.mpa", - "properties": {}, - "conditions": [ - "admin::is-creator" - ], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.read", - "subject": "api::mpa.mpa", - "properties": { - "fields": [ - "name", - "area", - "year", - "protection_status", - "wdpaid", - "bbox", - "is_child" - ] - }, - "conditions": [ - "admin::is-creator" - ], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.update", - "subject": "api::mpa.mpa", - "properties": { - "fields": [ - "name", - "area", - "year", - "protection_status", - "wdpaid", - "bbox", - "is_child" - ] - }, - "conditions": [ - "admin::is-creator" - ], - "actionParameters": {} - }, { "action": "plugin::content-manager.explorer.create", "subject": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat", @@ -1242,9 +1176,7 @@ "properties": { "fields": [ "location", - "protection_status", "year", - "cumSumProtectedArea", "protectedArea", "protectedAreasCount" ] @@ -1269,9 +1201,7 @@ "properties": { "fields": [ "location", - "protection_status", "year", - "cumSumProtectedArea", "protectedArea", "protectedAreasCount" ] @@ -1287,9 +1217,7 @@ "properties": { "fields": [ "location", - "protection_status", "year", - "cumSumProtectedArea", "protectedArea", "protectedAreasCount" ] diff --git a/cms/config/sync/admin-role.strapi-editor.json b/cms/config/sync/admin-role.strapi-editor.json index 01132379..f5e9e459 100644 --- a/cms/config/sync/admin-role.strapi-editor.json +++ b/cms/config/sync/admin-role.strapi-editor.json @@ -909,64 +909,6 @@ "conditions": [], "actionParameters": {} }, - { - "action": "plugin::content-manager.explorer.create", - "subject": "api::mpa.mpa", - "properties": { - "fields": [ - "name", - "area", - "year", - "protection_status", - "wdpaid", - "bbox", - "is_child" - ] - }, - "conditions": [], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.delete", - "subject": "api::mpa.mpa", - "properties": {}, - "conditions": [], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.read", - "subject": "api::mpa.mpa", - "properties": { - "fields": [ - "name", - "area", - "year", - "protection_status", - "wdpaid", - "bbox", - "is_child" - ] - }, - "conditions": [], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.update", - "subject": "api::mpa.mpa", - "properties": { - "fields": [ - "name", - "area", - "year", - "protection_status", - "wdpaid", - "bbox", - "is_child" - ] - }, - "conditions": [], - "actionParameters": {} - }, { "action": "plugin::content-manager.explorer.create", "subject": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat", @@ -1181,9 +1123,7 @@ "properties": { "fields": [ "location", - "protection_status", "year", - "cumSumProtectedArea", "protectedArea", "protectedAreasCount" ] @@ -1204,9 +1144,7 @@ "properties": { "fields": [ "location", - "protection_status", "year", - "cumSumProtectedArea", "protectedArea", "protectedAreasCount" ] @@ -1220,9 +1158,7 @@ "properties": { "fields": [ "location", - "protection_status", "year", - "cumSumProtectedArea", "protectedArea", "protectedAreasCount" ] diff --git a/cms/config/sync/admin-role.strapi-super-admin.json b/cms/config/sync/admin-role.strapi-super-admin.json index 13dda1df..2235d7c8 100644 --- a/cms/config/sync/admin-role.strapi-super-admin.json +++ b/cms/config/sync/admin-role.strapi-super-admin.json @@ -1281,88 +1281,6 @@ "conditions": [], "actionParameters": {} }, - { - "action": "plugin::content-manager.explorer.create", - "subject": "api::mpa.mpa", - "properties": { - "fields": [ - "name", - "area", - "year", - "protection_status", - "bbox", - "children", - "data_source", - "mpaa_establishment_stage", - "location", - "wdpaid", - "mpaa_protection_level", - "is_child", - "iucn_category", - "designation", - "environment" - ] - }, - "conditions": [], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.delete", - "subject": "api::mpa.mpa", - "properties": {}, - "conditions": [], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.read", - "subject": "api::mpa.mpa", - "properties": { - "fields": [ - "name", - "area", - "year", - "protection_status", - "bbox", - "children", - "data_source", - "mpaa_establishment_stage", - "location", - "wdpaid", - "mpaa_protection_level", - "is_child", - "iucn_category", - "designation", - "environment" - ] - }, - "conditions": [], - "actionParameters": {} - }, - { - "action": "plugin::content-manager.explorer.update", - "subject": "api::mpa.mpa", - "properties": { - "fields": [ - "name", - "area", - "year", - "protection_status", - "bbox", - "children", - "data_source", - "mpaa_establishment_stage", - "location", - "wdpaid", - "mpaa_protection_level", - "is_child", - "iucn_category", - "designation", - "environment" - ] - }, - "conditions": [], - "actionParameters": {} - }, { "action": "plugin::content-manager.explorer.create", "subject": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat", @@ -1489,7 +1407,8 @@ "fields": [ "location", "mpaa_protection_level", - "area" + "area", + "percentage" ] }, "conditions": [], @@ -1509,7 +1428,8 @@ "fields": [ "location", "mpaa_protection_level", - "area" + "area", + "percentage" ] }, "conditions": [], @@ -1522,7 +1442,8 @@ "fields": [ "location", "mpaa_protection_level", - "area" + "area", + "percentage" ] }, "conditions": [], @@ -1597,16 +1518,101 @@ }, { "action": "plugin::content-manager.explorer.create", - "subject": "api::protection-coverage-stat.protection-coverage-stat", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "is_child", + "iucn_category", + "designation", + "environment" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.delete", + "subject": "api::pa.pa", + "properties": {}, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.read", + "subject": "api::pa.pa", "properties": { "fields": [ + "name", + "area", + "year", + "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", "location", + "wdpaid", + "mpaa_protection_level", + "is_child", + "iucn_category", + "designation", + "environment" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.update", + "subject": "api::pa.pa", + "properties": { + "fields": [ + "name", + "area", + "year", "protection_status", + "bbox", + "children", + "data_source", + "mpaa_establishment_stage", + "location", + "wdpaid", + "mpaa_protection_level", + "is_child", + "iucn_category", + "designation", + "environment" + ] + }, + "conditions": [], + "actionParameters": {} + }, + { + "action": "plugin::content-manager.explorer.create", + "subject": "api::protection-coverage-stat.protection-coverage-stat", + "properties": { + "fields": [ + "location", "year", - "cumSumProtectedArea", "protectedArea", "protectedAreasCount", - "environment" + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [], @@ -1625,12 +1631,15 @@ "properties": { "fields": [ "location", - "protection_status", "year", - "cumSumProtectedArea", "protectedArea", "protectedAreasCount", - "environment" + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [], @@ -1642,12 +1651,15 @@ "properties": { "fields": [ "location", - "protection_status", "year", - "cumSumProtectedArea", "protectedArea", "protectedAreasCount", - "environment" + "environment", + "coverage", + "pas", + "oecms", + "is_last_year", + "global_contribution" ] }, "conditions": [], diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##location.location.json index 32dc9bc7..3087c718 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 @@ -274,10 +274,6 @@ { "name": "totalMarineArea", "size": 4 - }, - { - "name": "totalTerrestrialArea", - "size": 4 } ], [ @@ -318,6 +314,12 @@ "size": 12 } ], + [ + { + "name": "totalTerrestrialArea", + "size": 4 + } + ], [ { "name": "terrestrial_bounds", diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json index 5e5e7d02..494862d3 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-protection-level-stat.mpaa-protection-level-stat.json @@ -64,6 +64,20 @@ "sortable": true } }, + "percentage": { + "edit": { + "label": "percentage", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "percentage", + "searchable": true, + "sortable": true + } + }, "createdAt": { "edit": { "label": "createdAt", @@ -124,12 +138,6 @@ } }, "layouts": { - "list": [ - "id", - "location", - "mpaa_protection_level", - "area" - ], "edit": [ [ { @@ -137,16 +145,26 @@ "size": 6 }, { - "name": "mpaa_protection_level", - "size": 6 + "name": "area", + "size": 4 } ], [ { - "name": "area", + "name": "mpaa_protection_level", + "size": 6 + }, + { + "name": "percentage", "size": 4 } ] + ], + "list": [ + "id", + "location", + "mpaa_protection_level", + "area" ] } }, 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##pa.pa.json similarity index 98% rename from cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json rename to cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##pa.pa.json index 4883beab..afa9933c 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##pa.pa.json @@ -1,7 +1,7 @@ { - "key": "plugin_content_manager_configuration_content_types::api::mpa.mpa", + "key": "plugin_content_manager_configuration_content_types::api::pa.pa", "value": { - "uid": "api::mpa.mpa", + "uid": "api::pa.pa", "settings": { "bulkable": true, "filterable": true, @@ -325,12 +325,6 @@ "size": 6 } ], - [ - { - "name": "wdpaid", - "size": 6 - } - ], [ { "name": "bbox", @@ -359,18 +353,18 @@ ], [ { - "name": "mpaa_protection_level", - "size": 6 + "name": "wdpaid", + "size": 4 }, { - "name": "is_child", - "size": 4 + "name": "mpaa_protection_level", + "size": 6 } ], [ { - "name": "designation", - "size": 6 + "name": "is_child", + "size": 4 }, { "name": "iucn_category", @@ -378,6 +372,10 @@ } ], [ + { + "name": "designation", + "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 7bd2577d..d4685a55 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 @@ -35,88 +35,129 @@ "sortable": true } }, - "protection_status": { + "year": { + "edit": { + "label": "year", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "year", + "searchable": true, + "sortable": true + } + }, + "protectedArea": { + "edit": { + "label": "protectedArea", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "protectedArea", + "searchable": true, + "sortable": true + } + }, + "protectedAreasCount": { + "edit": { + "label": "protectedAreasCount", + "description": "", + "placeholder": "", + "visible": true, + "editable": true + }, + "list": { + "label": "protectedAreasCount", + "searchable": true, + "sortable": true + } + }, + "environment": { "edit": { - "label": "protection_status", + "label": "environment", "description": "", "placeholder": "", "visible": true, "editable": true, - "mainField": "slug" + "mainField": "name" }, "list": { - "label": "protection_status", + "label": "environment", "searchable": true, "sortable": true } }, - "year": { + "coverage": { "edit": { - "label": "year", + "label": "coverage", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "year", + "label": "coverage", "searchable": true, "sortable": true } }, - "cumSumProtectedArea": { + "pas": { "edit": { - "label": "cumSumProtectedArea", + "label": "pas", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "cumSumProtectedArea", + "label": "pas", "searchable": true, "sortable": true } }, - "protectedArea": { + "oecms": { "edit": { - "label": "protectedArea", + "label": "oecms", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "protectedArea", + "label": "oecms", "searchable": true, "sortable": true } }, - "protectedAreasCount": { + "is_last_year": { "edit": { - "label": "protectedAreasCount", + "label": "is_last_year", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "protectedAreasCount", + "label": "is_last_year", "searchable": true, "sortable": true } }, - "environment": { + "global_contribution": { "edit": { - "label": "environment", + "label": "global_contribution", "description": "", "placeholder": "", "visible": true, - "editable": true, - "mainField": "name" + "editable": true }, "list": { - "label": "environment", + "label": "global_contribution", "searchable": true, "sortable": true } @@ -188,7 +229,7 @@ "size": 6 }, { - "name": "protection_status", + "name": "environment", "size": 6 } ], @@ -198,22 +239,36 @@ "size": 4 }, { - "name": "cumSumProtectedArea", + "name": "is_last_year", "size": 4 - }, + } + ], + [ { "name": "protectedArea", "size": 4 + }, + { + "name": "protectedAreasCount", + "size": 4 + }, + { + "name": "coverage", + "size": 4 } ], [ { - "name": "protectedAreasCount", + "name": "pas", "size": 4 }, { - "name": "environment", - "size": 6 + "name": "oecms", + "size": 4 + }, + { + "name": "global_contribution", + "size": 4 } ] ], @@ -229,4 +284,4 @@ "type": "object", "environment": null, "tag": null -} \ No newline at end of file +} diff --git a/cms/config/sync/user-role.public.json b/cms/config/sync/user-role.public.json index 22be8151..8968cf3f 100644 --- a/cms/config/sync/user-role.public.json +++ b/cms/config/sync/user-role.public.json @@ -96,12 +96,6 @@ { "action": "api::mpa-iucn-category.mpa-iucn-category.findOne" }, - { - "action": "api::mpa.mpa.find" - }, - { - "action": "api::mpa.mpa.findOne" - }, { "action": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.find" }, diff --git a/cms/export_custom-db.json b/cms/export_custom-db.json index 221fa0b8..54d63656 100644 --- a/cms/export_custom-db.json +++ b/cms/export_custom-db.json @@ -1311,7 +1311,7 @@ "updatedBy": null } }, - "api::mpa.mpa": { + "api::pa.pa": { "1": { "id": 1, "wdpaid": "555635929", diff --git a/cms/src/api/mpa/controllers/mpa.ts b/cms/src/api/mpa/controllers/mpa.ts deleted file mode 100644 index 728a90b8..00000000 --- a/cms/src/api/mpa/controllers/mpa.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * mpa controller - */ - -import { factories } from '@strapi/strapi' - -export default factories.createCoreController('api::mpa.mpa'); diff --git a/cms/src/api/mpa/routes/mpa.ts b/cms/src/api/mpa/routes/mpa.ts deleted file mode 100644 index 759b9b3b..00000000 --- a/cms/src/api/mpa/routes/mpa.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * mpa router - */ - -import { factories } from '@strapi/strapi'; - -export default factories.createCoreRouter('api::mpa.mpa', { - only: ['find', 'findOne'] -}); - diff --git a/cms/src/api/mpa/services/mpa.ts b/cms/src/api/mpa/services/mpa.ts deleted file mode 100644 index 0a44ede0..00000000 --- a/cms/src/api/mpa/services/mpa.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * mpa service - */ - -import { factories } from '@strapi/strapi'; - -export default factories.createCoreService('api::mpa.mpa'); diff --git a/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json b/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json index f39cf8af..51984f2f 100644 --- a/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json +++ b/cms/src/api/mpaa-protection-level-stat/content-types/mpaa-protection-level-stat/schema.json @@ -35,6 +35,9 @@ 2 ] } + }, + "percentage": { + "type": "decimal" } } } diff --git a/cms/src/api/mpa/content-types/mpa/schema.json b/cms/src/api/pa/content-types/pa/schema.json similarity index 93% rename from cms/src/api/mpa/content-types/mpa/schema.json rename to cms/src/api/pa/content-types/pa/schema.json index eb3f052b..35041100 100644 --- a/cms/src/api/mpa/content-types/mpa/schema.json +++ b/cms/src/api/pa/content-types/pa/schema.json @@ -1,10 +1,10 @@ { "kind": "collectionType", - "collectionName": "mpas", + "collectionName": "pas", "info": { - "singularName": "mpa", - "pluralName": "mpas", - "displayName": "MPA", + "singularName": "pa", + "pluralName": "pas", + "displayName": "PA", "description": "" }, "options": { @@ -45,7 +45,7 @@ "children": { "type": "relation", "relation": "oneToMany", - "target": "api::mpa.mpa" + "target": "api::pa.pa" }, "data_source": { "type": "relation", diff --git a/cms/src/api/pa/controllers/pa.ts b/cms/src/api/pa/controllers/pa.ts new file mode 100644 index 00000000..a71a251f --- /dev/null +++ b/cms/src/api/pa/controllers/pa.ts @@ -0,0 +1,7 @@ +/** + * pa controller + */ + +import { factories } from '@strapi/strapi' + +export default factories.createCoreController('api::pa.pa'); diff --git a/cms/src/api/mpa/documentation/1.0.0/mpa.json b/cms/src/api/pa/documentation/1.0.0/pa.json similarity index 95% rename from cms/src/api/mpa/documentation/1.0.0/mpa.json rename to cms/src/api/pa/documentation/1.0.0/pa.json index 6821e251..f7919f60 100644 --- a/cms/src/api/mpa/documentation/1.0.0/mpa.json +++ b/cms/src/api/pa/documentation/1.0.0/pa.json @@ -1,5 +1,5 @@ { - "/mpas": { + "/pas": { "get": { "responses": { "200": { @@ -7,7 +7,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MpaListResponse" + "$ref": "#/components/schemas/PaListResponse" } } } @@ -64,7 +64,7 @@ } }, "tags": [ - "Mpa" + "Pa" ], "parameters": [ { @@ -169,10 +169,10 @@ } } ], - "operationId": "get/mpas" + "operationId": "get/pas" } }, - "/mpas/{id}": { + "/pas/{id}": { "get": { "responses": { "200": { @@ -180,7 +180,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MpaResponse" + "$ref": "#/components/schemas/PaResponse" } } } @@ -237,7 +237,7 @@ } }, "tags": [ - "Mpa" + "Pa" ], "parameters": [ { @@ -251,7 +251,7 @@ } } ], - "operationId": "get/mpas/{id}" + "operationId": "get/pas/{id}" } } } diff --git a/cms/src/api/pa/routes/pa.ts b/cms/src/api/pa/routes/pa.ts new file mode 100644 index 00000000..d3f0a9da --- /dev/null +++ b/cms/src/api/pa/routes/pa.ts @@ -0,0 +1,10 @@ +/** + * pa router + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::pa.pa', { + only: ['find', 'findOne'] +}); + diff --git a/cms/src/api/pa/services/pa.ts b/cms/src/api/pa/services/pa.ts new file mode 100644 index 00000000..a100b050 --- /dev/null +++ b/cms/src/api/pa/services/pa.ts @@ -0,0 +1,7 @@ +/** + * pa service + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::pa.pa'); 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 687d1f7b..58dac49d 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 @@ -18,29 +18,11 @@ "target": "api::location.location", "inversedBy": "protection_coverage_stats" }, - "protection_status": { - "type": "relation", - "relation": "oneToOne", - "target": "api::protection-status.protection-status" - }, "year": { "type": "integer", "required": true, "min": 0 }, - "cumSumProtectedArea": { - "type": "decimal", - "required": true, - "min": 0, - "column": { - "defaultTo": 0, - "type": "decimal", - "args": [ - 12, - 2 - ] - } - }, "protectedArea": { "type": "decimal", "min": 0, @@ -61,6 +43,22 @@ "type": "relation", "relation": "oneToOne", "target": "api::environment.environment" + }, + "coverage": { + "type": "decimal" + }, + "pas": { + "type": "decimal" + }, + "oecms": { + "type": "decimal" + }, + "is_last_year": { + "type": "boolean", + "default": false + }, + "global_contribution": { + "type": "decimal" } } } diff --git a/cms/types/generated/contentTypes.d.ts b/cms/types/generated/contentTypes.d.ts index 23ff7924..407963bd 100644 --- a/cms/types/generated/contentTypes.d.ts +++ b/cms/types/generated/contentTypes.d.ts @@ -1718,79 +1718,6 @@ export interface ApiLocationLocation extends Schema.CollectionType { }; } -export interface ApiMpaMpa extends Schema.CollectionType { - collectionName: 'mpas'; - info: { - singularName: 'mpa'; - pluralName: 'mpas'; - displayName: 'MPA'; - description: ''; - }; - options: { - draftAndPublish: false; - }; - attributes: { - name: Attribute.String & Attribute.Required; - area: Attribute.Decimal & - Attribute.Required & - Attribute.SetMinMax<{ - min: 0; - }>; - year: Attribute.Integer & - Attribute.SetMinMax<{ - min: 0; - }>; - protection_status: Attribute.Relation< - 'api::mpa.mpa', - 'oneToOne', - 'api::protection-status.protection-status' - >; - bbox: Attribute.JSON & Attribute.Required; - children: Attribute.Relation<'api::mpa.mpa', 'oneToMany', 'api::mpa.mpa'>; - data_source: Attribute.Relation< - 'api::mpa.mpa', - 'oneToOne', - 'api::data-source.data-source' - >; - mpaa_establishment_stage: Attribute.Relation< - 'api::mpa.mpa', - 'oneToOne', - 'api::mpaa-establishment-stage.mpaa-establishment-stage' - >; - location: Attribute.Relation< - 'api::mpa.mpa', - 'oneToOne', - 'api::location.location' - >; - wdpaid: Attribute.BigInteger; - mpaa_protection_level: Attribute.Relation< - 'api::mpa.mpa', - 'oneToOne', - 'api::mpaa-protection-level.mpaa-protection-level' - >; - is_child: Attribute.Boolean & - Attribute.Required & - Attribute.DefaultTo; - 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'> & - Attribute.Private; - updatedBy: Attribute.Relation<'api::mpa.mpa', 'oneToOne', 'admin::user'> & - Attribute.Private; - }; -} - export interface ApiMpaIucnCategoryMpaIucnCategory extends Schema.CollectionType { collectionName: 'mpa_iucn_categories'; @@ -2056,6 +1983,7 @@ export interface ApiMpaaProtectionLevelStatMpaaProtectionLevelStat Attribute.SetMinMax<{ min: 0; }>; + percentage: Attribute.Decimal; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< @@ -2073,6 +2001,79 @@ export interface ApiMpaaProtectionLevelStatMpaaProtectionLevelStat }; } +export interface ApiPaPa extends Schema.CollectionType { + collectionName: 'pas'; + info: { + singularName: 'pa'; + pluralName: 'pas'; + displayName: 'PA'; + description: ''; + }; + options: { + draftAndPublish: false; + }; + attributes: { + name: Attribute.String & Attribute.Required; + area: Attribute.Decimal & + Attribute.Required & + Attribute.SetMinMax<{ + min: 0; + }>; + year: Attribute.Integer & + Attribute.SetMinMax<{ + min: 0; + }>; + protection_status: Attribute.Relation< + 'api::pa.pa', + 'oneToOne', + 'api::protection-status.protection-status' + >; + bbox: Attribute.JSON & Attribute.Required; + children: Attribute.Relation<'api::pa.pa', 'oneToMany', 'api::pa.pa'>; + data_source: Attribute.Relation< + 'api::pa.pa', + 'oneToOne', + 'api::data-source.data-source' + >; + mpaa_establishment_stage: Attribute.Relation< + 'api::pa.pa', + 'oneToOne', + 'api::mpaa-establishment-stage.mpaa-establishment-stage' + >; + location: Attribute.Relation< + 'api::pa.pa', + 'oneToOne', + 'api::location.location' + >; + wdpaid: Attribute.BigInteger; + mpaa_protection_level: Attribute.Relation< + 'api::pa.pa', + 'oneToOne', + 'api::mpaa-protection-level.mpaa-protection-level' + >; + is_child: Attribute.Boolean & + Attribute.Required & + Attribute.DefaultTo; + iucn_category: Attribute.Relation< + 'api::pa.pa', + 'oneToOne', + 'api::mpa-iucn-category.mpa-iucn-category' + >; + designation: Attribute.String; + environment: Attribute.Relation< + 'api::pa.pa', + 'oneToOne', + 'api::environment.environment' + >; + createdAt: Attribute.DateTime; + updatedAt: Attribute.DateTime; + createdBy: Attribute.Relation<'api::pa.pa', 'oneToOne', 'admin::user'> & + Attribute.Private; + updatedBy: Attribute.Relation<'api::pa.pa', 'oneToOne', 'admin::user'> & + Attribute.Private; + }; +} + export interface ApiProtectionCoverageStatProtectionCoverageStat extends Schema.CollectionType { collectionName: 'protection_coverage_stats'; @@ -2091,21 +2092,11 @@ export interface ApiProtectionCoverageStatProtectionCoverageStat 'manyToOne', 'api::location.location' >; - protection_status: Attribute.Relation< - 'api::protection-coverage-stat.protection-coverage-stat', - 'oneToOne', - 'api::protection-status.protection-status' - >; year: Attribute.Integer & Attribute.Required & Attribute.SetMinMax<{ min: 0; }>; - cumSumProtectedArea: Attribute.Decimal & - Attribute.Required & - Attribute.SetMinMax<{ - min: 0; - }>; protectedArea: Attribute.Decimal & Attribute.SetMinMax<{ min: 0; @@ -2116,6 +2107,11 @@ export interface ApiProtectionCoverageStatProtectionCoverageStat 'oneToOne', 'api::environment.environment' >; + coverage: Attribute.Decimal; + pas: Attribute.Decimal; + oecms: Attribute.Decimal; + is_last_year: Attribute.Boolean & Attribute.DefaultTo; + global_contribution: Attribute.Decimal; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; createdBy: Attribute.Relation< @@ -2292,12 +2288,12 @@ declare module '@strapi/types' { 'api::habitat-stat.habitat-stat': ApiHabitatStatHabitatStat; 'api::layer.layer': ApiLayerLayer; 'api::location.location': ApiLocationLocation; - 'api::mpa.mpa': ApiMpaMpa; 'api::mpa-iucn-category.mpa-iucn-category': ApiMpaIucnCategoryMpaIucnCategory; 'api::mpaa-establishment-stage.mpaa-establishment-stage': ApiMpaaEstablishmentStageMpaaEstablishmentStage; 'api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat': ApiMpaaEstablishmentStageStatMpaaEstablishmentStageStat; 'api::mpaa-protection-level.mpaa-protection-level': ApiMpaaProtectionLevelMpaaProtectionLevel; 'api::mpaa-protection-level-stat.mpaa-protection-level-stat': ApiMpaaProtectionLevelStatMpaaProtectionLevelStat; + 'api::pa.pa': ApiPaPa; 'api::protection-coverage-stat.protection-coverage-stat': ApiProtectionCoverageStatProtectionCoverageStat; 'api::protection-status.protection-status': ApiProtectionStatusProtectionStatus; 'api::static-indicator.static-indicator': ApiStaticIndicatorStaticIndicator; diff --git a/frontend/orval.config.ts b/frontend/orval.config.ts index 032eb93c..6442d754 100644 --- a/frontend/orval.config.ts +++ b/frontend/orval.config.ts @@ -36,7 +36,7 @@ module.exports = { 'Location', 'Habitat', 'Habitat-stat', - 'Mpa', + 'Pa', 'Mpaa-protection-level', 'Mpaa-protection-level-stat', 'Mpaa-establishment-stage', 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 5fe3d747..22d85151 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 @@ -11,11 +11,12 @@ import Table from '@/containers/map/content/details/table'; import useColumns from '@/containers/map/content/details/tables/national-highseas/useColumns'; import { FCWithMessages } from '@/types'; import { useGetLocations } from '@/types/generated/location'; -import { useGetMpas } from '@/types/generated/mpa'; import { MpaListResponseDataItem } from '@/types/generated/strapi.schemas'; import SortingButton from '../../table/sorting-button'; +import { useGetMpas } from '@/types/generated/mpa'; + const NationalHighseasTable: FCWithMessages = () => { const { query: { locationCode = 'GLOB' }, diff --git a/frontend/src/types/generated/mpa.ts b/frontend/src/types/generated/mpa.ts deleted file mode 100644 index 0b110fa1..00000000 --- a/frontend/src/types/generated/mpa.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Generated by orval v6.18.1 🍺 - * Do not edit manually. - * DOCUMENTATION - * OpenAPI spec version: 1.0.0 - */ -import { useQuery } from '@tanstack/react-query'; -import type { - UseQueryOptions, - QueryFunction, - UseQueryResult, - QueryKey, -} from '@tanstack/react-query'; -import type { - MpaListResponse, - Error, - GetMpasParams, - MpaResponse, - GetMpasIdParams, -} from './strapi.schemas'; -import { API } from '../../services/api/index'; -import type { ErrorType } from '../../services/api/index'; - -// eslint-disable-next-line -type SecondParameter any> = T extends ( - config: any, - args: infer P -) => any - ? P - : never; - -export const getMpas = ( - params?: GetMpasParams, - options?: SecondParameter, - signal?: AbortSignal -) => { - return API({ url: `/mpas`, method: 'get', params, signal }, options); -}; - -export const getGetMpasQueryKey = (params?: GetMpasParams) => { - return [`/mpas`, ...(params ? [params] : [])] as const; -}; - -export const getGetMpasQueryOptions = < - TData = Awaited>, - TError = ErrorType ->( - params?: GetMpasParams, - options?: { - query?: UseQueryOptions>, TError, TData>; - request?: SecondParameter; - } -) => { - const { query: queryOptions, request: requestOptions } = options ?? {}; - - const queryKey = queryOptions?.queryKey ?? getGetMpasQueryKey(params); - - const queryFn: QueryFunction>> = ({ signal }) => - getMpas(params, requestOptions, signal); - - return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetMpasQueryResult = NonNullable>>; -export type GetMpasQueryError = ErrorType; - -export const useGetMpas = >, TError = ErrorType>( - params?: GetMpasParams, - options?: { - query?: UseQueryOptions>, TError, TData>; - request?: SecondParameter; - } -): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getGetMpasQueryOptions(params, options); - - const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; - - return query; -}; - -export const getMpasId = ( - id: number, - params?: GetMpasIdParams, - options?: SecondParameter, - signal?: AbortSignal -) => { - return API({ url: `/mpas/${id}`, method: 'get', params, signal }, options); -}; - -export const getGetMpasIdQueryKey = (id: number, params?: GetMpasIdParams) => { - return [`/mpas/${id}`, ...(params ? [params] : [])] as const; -}; - -export const getGetMpasIdQueryOptions = < - TData = Awaited>, - TError = ErrorType ->( - id: number, - params?: GetMpasIdParams, - options?: { - query?: UseQueryOptions>, TError, TData>; - request?: SecondParameter; - } -) => { - const { query: queryOptions, request: requestOptions } = options ?? {}; - - const queryKey = queryOptions?.queryKey ?? getGetMpasIdQueryKey(id, params); - - const queryFn: QueryFunction>> = ({ signal }) => - getMpasId(id, params, requestOptions, signal); - - return { queryKey, queryFn, enabled: !!id, ...queryOptions } as UseQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetMpasIdQueryResult = NonNullable>>; -export type GetMpasIdQueryError = ErrorType; - -export const useGetMpasId = < - TData = Awaited>, - TError = ErrorType ->( - id: number, - params?: GetMpasIdParams, - options?: { - query?: UseQueryOptions>, TError, TData>; - request?: SecondParameter; - } -): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getGetMpasIdQueryOptions(id, params, options); - - const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; - - return query; -}; diff --git a/frontend/src/types/generated/pa.ts b/frontend/src/types/generated/pa.ts new file mode 100644 index 00000000..08ac00c5 --- /dev/null +++ b/frontend/src/types/generated/pa.ts @@ -0,0 +1,146 @@ +/** + * Generated by orval v6.18.1 🍺 + * Do not edit manually. + * DOCUMENTATION + * OpenAPI spec version: 1.0.0 + */ +import { useQuery } from '@tanstack/react-query'; +import type { + UseQueryOptions, + QueryFunction, + UseQueryResult, + QueryKey, +} from '@tanstack/react-query'; +import type { + PaListResponse, + Error, + GetPasParams, + PaResponse, + GetPasIdParams, +} from './strapi.schemas'; +import { API } from '../../services/api/index'; +import type { ErrorType } from '../../services/api/index'; + +// eslint-disable-next-line +type SecondParameter any> = T extends ( + config: any, + args: infer P +) => any + ? P + : never; + +export const getPas = ( + params?: GetPasParams, + options?: SecondParameter, + signal?: AbortSignal +) => { + return API({ url: `/pas`, method: 'get', params, signal }, options); +}; + +export const getGetPasQueryKey = (params?: GetPasParams) => { + return [`/pas`, ...(params ? [params] : [])] as const; +}; + +export const getGetPasQueryOptions = < + TData = Awaited>, + TError = ErrorType +>( + params?: GetPasParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetPasQueryKey(params); + + const queryFn: QueryFunction>> = ({ signal }) => + getPas(params, requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey }; +}; + +export type GetPasQueryResult = NonNullable>>; +export type GetPasQueryError = ErrorType; + +export const useGetPas = >, TError = ErrorType>( + params?: GetPasParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getGetPasQueryOptions(params, options); + + const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey; + + return query; +}; + +export const getPasId = ( + id: number, + params?: GetPasIdParams, + options?: SecondParameter, + signal?: AbortSignal +) => { + return API({ url: `/pas/${id}`, method: 'get', params, signal }, options); +}; + +export const getGetPasIdQueryKey = (id: number, params?: GetPasIdParams) => { + return [`/pas/${id}`, ...(params ? [params] : [])] as const; +}; + +export const getGetPasIdQueryOptions = < + TData = Awaited>, + TError = ErrorType +>( + id: number, + params?: GetPasIdParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetPasIdQueryKey(id, params); + + const queryFn: QueryFunction>> = ({ signal }) => + getPasId(id, params, requestOptions, signal); + + return { queryKey, queryFn, enabled: !!id, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey }; +}; + +export type GetPasIdQueryResult = NonNullable>>; +export type GetPasIdQueryError = ErrorType; + +export const useGetPasId = < + TData = Awaited>, + TError = ErrorType +>( + id: number, + params?: GetPasIdParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getGetPasIdQueryOptions(id, params, options); + + const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey; + + return query; +}; diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index add97273..54d2b1a6 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -154,14 +154,14 @@ export type GetProtectionCoverageStatsParams = { locale?: string; }; -export type GetMpaaProtectionLevelStatsIdParams = { +export type GetPasIdParams = { /** * Relations to return */ populate?: string; }; -export type GetMpaaProtectionLevelStatsParams = { +export type GetPasParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -204,14 +204,14 @@ export type GetMpaaProtectionLevelStatsParams = { locale?: string; }; -export type GetMpaaProtectionLevelsIdParams = { +export type GetMpaaProtectionLevelStatsIdParams = { /** * Relations to return */ populate?: string; }; -export type GetMpaaProtectionLevelsParams = { +export type GetMpaaProtectionLevelStatsParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -254,14 +254,14 @@ export type GetMpaaProtectionLevelsParams = { locale?: string; }; -export type GetMpaaEstablishmentStageStatsIdParams = { +export type GetMpaaProtectionLevelsIdParams = { /** * Relations to return */ populate?: string; }; -export type GetMpaaEstablishmentStageStatsParams = { +export type GetMpaaProtectionLevelsParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -304,14 +304,14 @@ export type GetMpaaEstablishmentStageStatsParams = { locale?: string; }; -export type GetMpaaEstablishmentStagesIdParams = { +export type GetMpaaEstablishmentStageStatsIdParams = { /** * Relations to return */ populate?: string; }; -export type GetMpaaEstablishmentStagesParams = { +export type GetMpaaEstablishmentStageStatsParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -354,14 +354,14 @@ export type GetMpaaEstablishmentStagesParams = { locale?: string; }; -export type GetMpaIucnCategoriesIdParams = { +export type GetMpaaEstablishmentStagesIdParams = { /** * Relations to return */ populate?: string; }; -export type GetMpaIucnCategoriesParams = { +export type GetMpaaEstablishmentStagesParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -404,14 +404,14 @@ export type GetMpaIucnCategoriesParams = { locale?: string; }; -export type GetMpasIdParams = { +export type GetMpaIucnCategoriesIdParams = { /** * Relations to return */ populate?: string; }; -export type GetMpasParams = { +export type GetMpaIucnCategoriesParams = { /** * Sort by attributes ascending (asc) or descending (desc) */ @@ -1222,10 +1222,35 @@ export interface UploadFile { export type StaticIndicatorResponseMeta = { [key: string]: any }; +export interface StaticIndicatorResponse { + data?: StaticIndicatorResponseDataObject; + meta?: StaticIndicatorResponseMeta; +} + export type StaticIndicatorLocalizations = { data?: StaticIndicator[]; }; +export type StaticIndicatorUpdatedByDataAttributes = { [key: string]: any }; + +export type StaticIndicatorUpdatedByData = { + id?: number; + attributes?: StaticIndicatorUpdatedByDataAttributes; +}; + +export type StaticIndicatorUpdatedBy = { + data?: StaticIndicatorUpdatedByData; +}; + +export type StaticIndicatorCreatedByData = { + id?: number; + attributes?: StaticIndicatorCreatedByDataAttributes; +}; + +export type StaticIndicatorCreatedBy = { + data?: StaticIndicatorCreatedByData; +}; + export interface StaticIndicator { slug?: string; source?: string; @@ -1245,20 +1270,15 @@ export interface StaticIndicatorResponseDataObject { attributes?: StaticIndicator; } -export interface StaticIndicatorResponse { - data?: StaticIndicatorResponseDataObject; - meta?: StaticIndicatorResponseMeta; -} - -export type StaticIndicatorUpdatedByDataAttributes = { [key: string]: any }; +export type StaticIndicatorCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type StaticIndicatorUpdatedByData = { +export type StaticIndicatorCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: StaticIndicatorUpdatedByDataAttributes; + attributes?: StaticIndicatorCreatedByDataAttributesUpdatedByDataAttributes; }; -export type StaticIndicatorUpdatedBy = { - data?: StaticIndicatorUpdatedByData; +export type StaticIndicatorCreatedByDataAttributesUpdatedBy = { + data?: StaticIndicatorCreatedByDataAttributesUpdatedByData; }; export type StaticIndicatorCreatedByDataAttributes = { @@ -1278,26 +1298,6 @@ export type StaticIndicatorCreatedByDataAttributes = { updatedBy?: StaticIndicatorCreatedByDataAttributesUpdatedBy; }; -export type StaticIndicatorCreatedByData = { - id?: number; - attributes?: StaticIndicatorCreatedByDataAttributes; -}; - -export type StaticIndicatorCreatedBy = { - data?: StaticIndicatorCreatedByData; -}; - -export type StaticIndicatorCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type StaticIndicatorCreatedByDataAttributesUpdatedByData = { - id?: number; - attributes?: StaticIndicatorCreatedByDataAttributesUpdatedByDataAttributes; -}; - -export type StaticIndicatorCreatedByDataAttributesUpdatedBy = { - data?: StaticIndicatorCreatedByDataAttributesUpdatedByData; -}; - export type StaticIndicatorCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type StaticIndicatorCreatedByDataAttributesCreatedByData = { @@ -1309,18 +1309,6 @@ export type StaticIndicatorCreatedByDataAttributesCreatedBy = { data?: StaticIndicatorCreatedByDataAttributesCreatedByData; }; -export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type StaticIndicatorCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes; @@ -1343,6 +1331,18 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdated data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -1356,6 +1356,11 @@ export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreated data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { + id?: number; + attributes?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; +}; + export type StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissions = { data?: StaticIndicatorCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; @@ -1374,6 +1379,20 @@ 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 }; @@ -1402,25 +1421,6 @@ 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; }; @@ -1510,6 +1510,11 @@ export interface StaticIndicatorLocalizationRequest { export type ProtectionStatusResponseMeta = { [key: string]: any }; +export interface ProtectionStatusResponseDataObject { + id?: number; + attributes?: ProtectionStatus; +} + export interface ProtectionStatusResponse { data?: ProtectionStatusResponseDataObject; meta?: ProtectionStatusResponseMeta; @@ -1519,23 +1524,6 @@ export type ProtectionStatusLocalizations = { data?: ProtectionStatus[]; }; -export interface ProtectionStatus { - slug: string; - name: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedBy; - updatedBy?: ProtectionStatusUpdatedBy; - localizations?: ProtectionStatusLocalizations; - locale?: string; -} - -export interface ProtectionStatusResponseDataObject { - id?: number; - attributes?: ProtectionStatus; -} - export type ProtectionStatusUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusUpdatedByData = { @@ -1556,6 +1544,18 @@ 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 type ProtectionStatusCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusCreatedByDataAttributesUpdatedByData = { @@ -1738,6 +1738,15 @@ export interface ProtectionStatusListResponse { meta?: ProtectionStatusListResponseMeta; } +export type ProtectionStatusLocalizationListResponseMeta = { + pagination?: ProtectionStatusLocalizationListResponseMetaPagination; +}; + +export interface ProtectionStatusLocalizationListResponse { + data?: ProtectionStatusListResponseDataItemLocalized[]; + meta?: ProtectionStatusLocalizationListResponseMeta; +} + export type ProtectionStatusLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -1745,20 +1754,11 @@ export type ProtectionStatusLocalizationListResponseMetaPagination = { total?: number; }; -export type ProtectionStatusLocalizationListResponseMeta = { - pagination?: ProtectionStatusLocalizationListResponseMetaPagination; -}; - export interface ProtectionStatusListResponseDataItemLocalized { id?: number; attributes?: ProtectionStatus; } -export interface ProtectionStatusLocalizationListResponse { - data?: ProtectionStatusListResponseDataItemLocalized[]; - meta?: ProtectionStatusLocalizationListResponseMeta; -} - export type ProtectionStatusLocalizationResponseMeta = { [key: string]: any }; export interface ProtectionStatusResponseDataObjectLocalized { @@ -1798,12 +1798,15 @@ export interface ProtectionCoverageStatResponse { export interface ProtectionCoverageStat { location?: ProtectionCoverageStatLocation; - protection_status?: ProtectionCoverageStatProtectionStatus; year: number; - cumSumProtectedArea: number; protectedArea?: number; protectedAreasCount: number; environment?: ProtectionCoverageStatEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; createdAt?: string; updatedAt?: string; createdBy?: ProtectionCoverageStatCreatedBy; @@ -1848,23 +1851,38 @@ export type ProtectionCoverageStatEnvironment = { data?: ProtectionCoverageStatEnvironmentData; }; -export type ProtectionCoverageStatProtectionStatusDataAttributes = { [key: string]: any }; +export type ProtectionCoverageStatLocation = { + data?: ProtectionCoverageStatLocationData; +}; + +export type ProtectionCoverageStatLocationDataAttributesLocalizations = { + data?: unknown[]; +}; + +export type ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; -export type ProtectionCoverageStatProtectionStatusData = { +export type ProtectionCoverageStatLocationDataAttributesUpdatedByData = { id?: number; - attributes?: ProtectionCoverageStatProtectionStatusDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes; +}; + +export type ProtectionCoverageStatLocationDataAttributesUpdatedBy = { + data?: ProtectionCoverageStatLocationDataAttributesUpdatedByData; }; -export type ProtectionCoverageStatProtectionStatus = { - data?: ProtectionCoverageStatProtectionStatusData; +export type ProtectionCoverageStatLocationDataAttributesCreatedByDataAttributes = { + [key: string]: any; }; -export type ProtectionCoverageStatLocation = { - data?: ProtectionCoverageStatLocationData; +export type ProtectionCoverageStatLocationDataAttributesCreatedByData = { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesCreatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesLocalizations = { - data?: unknown[]; +export type ProtectionCoverageStatLocationDataAttributesCreatedBy = { + data?: ProtectionCoverageStatLocationDataAttributesCreatedByData; }; export type ProtectionCoverageStatLocationDataAttributes = { @@ -1893,31 +1911,14 @@ export type ProtectionCoverageStatLocationData = { 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; -}; - -export type ProtectionCoverageStatLocationDataAttributesCreatedByData = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesCreatedByDataAttributes; -}; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; -export type ProtectionCoverageStatLocationDataAttributesCreatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesCreatedByData; -}; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; + }; export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = { @@ -1927,12 +1928,15 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { location?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; year?: number; - cumSumProtectedArea?: number; protectedArea?: number; protectedAreasCount?: number; environment?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; createdAt?: string; updatedAt?: string; createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; @@ -1948,16 +1952,7 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = @@ -1971,12 +1966,6 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; @@ -2013,6 +2002,12 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD locale?: string; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2027,63 +2022,6 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - localizations?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations; - 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 }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -2098,17 +2036,6 @@ 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; @@ -2146,11 +2073,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = - { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; - }; - export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; @@ -2175,6 +2097,23 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = + { + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + }; + +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = + { + location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2203,9 +2142,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = { id?: number; @@ -2217,6 +2153,9 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = + { [key: string]: any }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; @@ -2240,6 +2179,18 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2254,29 +2205,11 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; @@ -2296,6 +2229,17 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = + { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; + }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; @@ -2309,33 +2253,10 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt locale?: string; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; - }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = @@ -2352,6 +2273,24 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2418,20 +2357,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -2457,6 +2382,20 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2560,828 +2499,865 @@ export interface ProtectionCoverageStatListResponse { meta?: ProtectionCoverageStatListResponseMeta; } -export type MpaaProtectionLevelStatResponseMeta = { [key: string]: any }; +export type PaResponseMeta = { [key: string]: any }; -export interface MpaaProtectionLevelStatResponseDataObject { +export interface Pa { + name: string; + area: number; + year?: number; + protection_status?: PaProtectionStatus; + bbox: unknown; + children?: PaChildren; + data_source?: PaDataSource; + mpaa_establishment_stage?: PaMpaaEstablishmentStage; + location?: PaLocation; + wdpaid?: string; + mpaa_protection_level?: PaMpaaProtectionLevel; + is_child: boolean; + iucn_category?: PaIucnCategory; + designation?: string; + environment?: PaEnvironment; + createdAt?: string; + updatedAt?: string; + createdBy?: PaCreatedBy; + updatedBy?: PaUpdatedBy; +} + +export interface PaResponseDataObject { id?: number; - attributes?: MpaaProtectionLevelStat; + attributes?: Pa; } -export interface MpaaProtectionLevelStatResponse { - data?: MpaaProtectionLevelStatResponseDataObject; - meta?: MpaaProtectionLevelStatResponseMeta; +export interface PaResponse { + data?: PaResponseDataObject; + meta?: PaResponseMeta; } -export type MpaaProtectionLevelStatUpdatedByDataAttributes = { [key: string]: any }; +export type PaUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatUpdatedByData = { +export type PaUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatUpdatedByDataAttributes; + attributes?: PaUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatUpdatedBy = { - data?: MpaaProtectionLevelStatUpdatedByData; +export type PaUpdatedBy = { + data?: PaUpdatedByData; }; -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 PaCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatCreatedByData = { +export type PaCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatCreatedByDataAttributes; + attributes?: PaCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatCreatedBy = { - data?: MpaaProtectionLevelStatCreatedByData; +export type PaCreatedBy = { + data?: PaCreatedByData; }; -export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes = { [key: string]: any }; +export type PaEnvironment = { + data?: PaEnvironmentData; +}; -export type MpaaProtectionLevelStatMpaaProtectionLevelData = { +export type PaEnvironmentDataAttributes = { [key: string]: any }; + +export type PaEnvironmentData = { id?: number; - attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes; + attributes?: PaEnvironmentDataAttributes; }; -export type MpaaProtectionLevelStatMpaaProtectionLevel = { - data?: MpaaProtectionLevelStatMpaaProtectionLevelData; -}; +export type PaIucnCategoryDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationData = { +export type PaIucnCategoryData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributes; + attributes?: PaIucnCategoryDataAttributes; }; -export type MpaaProtectionLevelStatLocation = { - data?: MpaaProtectionLevelStatLocationData; +export type PaIucnCategory = { + data?: PaIucnCategoryData; }; -export type MpaaProtectionLevelStatLocationDataAttributesLocalizations = { +export type PaMpaaProtectionLevelDataAttributes = { [key: string]: any }; + +export type PaMpaaProtectionLevelData = { + id?: number; + attributes?: PaMpaaProtectionLevelDataAttributes; +}; + +export type PaMpaaProtectionLevel = { + data?: PaMpaaProtectionLevelData; +}; + +export type PaLocationDataAttributes = { [key: string]: any }; + +export type PaLocationData = { + id?: number; + attributes?: PaLocationDataAttributes; +}; + +export type PaLocation = { + data?: PaLocationData; +}; + +export type PaMpaaEstablishmentStageDataAttributes = { [key: string]: any }; + +export type PaMpaaEstablishmentStageData = { + id?: number; + attributes?: PaMpaaEstablishmentStageDataAttributes; +}; + +export type PaMpaaEstablishmentStage = { + data?: PaMpaaEstablishmentStageData; +}; + +export type PaDataSourceDataAttributes = { [key: string]: any }; + +export type PaDataSourceData = { + id?: number; + attributes?: PaDataSourceDataAttributes; +}; + +export type PaDataSource = { + data?: PaDataSourceData; +}; + +export type PaChildrenDataItem = { + id?: number; + attributes?: PaChildrenDataItemAttributes; +}; + +export type PaChildren = { + data?: PaChildrenDataItem[]; +}; + +export type PaChildrenDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type PaChildrenDataItemAttributesUpdatedByData = { + id?: number; + attributes?: PaChildrenDataItemAttributesUpdatedByDataAttributes; +}; + +export type PaChildrenDataItemAttributesUpdatedBy = { + data?: PaChildrenDataItemAttributesUpdatedByData; +}; + +export type PaChildrenDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; + +export type PaChildrenDataItemAttributesCreatedByData = { + id?: number; + attributes?: PaChildrenDataItemAttributesCreatedByDataAttributes; +}; + +export type PaChildrenDataItemAttributesCreatedBy = { + data?: PaChildrenDataItemAttributesCreatedByData; +}; + +export type PaChildrenDataItemAttributesEnvironmentDataAttributes = { [key: string]: any }; + +export type PaChildrenDataItemAttributesEnvironmentData = { + id?: number; + attributes?: PaChildrenDataItemAttributesEnvironmentDataAttributes; +}; + +export type PaChildrenDataItemAttributesEnvironment = { + data?: PaChildrenDataItemAttributesEnvironmentData; +}; + +export type PaChildrenDataItemAttributesIucnCategory = { + data?: PaChildrenDataItemAttributesIucnCategoryData; +}; + +export type PaChildrenDataItemAttributes = { + name?: string; + area?: number; + year?: number; + protection_status?: PaChildrenDataItemAttributesProtectionStatus; + bbox?: unknown; + children?: PaChildrenDataItemAttributesChildren; + data_source?: PaChildrenDataItemAttributesDataSource; + mpaa_establishment_stage?: PaChildrenDataItemAttributesMpaaEstablishmentStage; + location?: PaChildrenDataItemAttributesLocation; + wdpaid?: string; + mpaa_protection_level?: PaChildrenDataItemAttributesMpaaProtectionLevel; + is_child?: boolean; + iucn_category?: PaChildrenDataItemAttributesIucnCategory; + designation?: string; + environment?: PaChildrenDataItemAttributesEnvironment; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesUpdatedBy; +}; + +export type PaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { +export type PaChildrenDataItemAttributesIucnCategoryDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations; + locale?: string; +}; + +export type PaChildrenDataItemAttributesIucnCategoryData = { + id?: number; + attributes?: PaChildrenDataItemAttributesIucnCategoryDataAttributes; +}; + +export type PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; -export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByData = { +export type PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByData; +export type PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedBy = { + data?: PaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { +export type PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedBy = { + data?: PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByData; +}; + +export type PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByDataAttributes = { [key: string]: any; }; -export type MpaaProtectionLevelStatLocationDataAttributesCreatedByData = { +export type PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesCreatedByData; +export type PaChildrenDataItemAttributesMpaaProtectionLevelDataAttributes = { [key: string]: any }; + +export type PaChildrenDataItemAttributesMpaaProtectionLevelData = { + id?: number; + attributes?: PaChildrenDataItemAttributesMpaaProtectionLevelDataAttributes; }; -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 PaChildrenDataItemAttributesMpaaProtectionLevel = { + data?: PaChildrenDataItemAttributesMpaaProtectionLevelData; +}; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem = { +export type PaChildrenDataItemAttributesLocationData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; +export type PaChildrenDataItemAttributesLocation = { + data?: PaChildrenDataItemAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributes = { +export type PaChildrenDataItemAttributesLocationDataAttributesLocalizations = { + data?: unknown[]; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesUpdatedByData = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedByDataAttributes; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesUpdatedBy = { + data?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedByData; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributes = { 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; + groups?: PaChildrenDataItemAttributesLocationDataAttributesGroups; + members?: PaChildrenDataItemAttributesLocationDataAttributesMembers; + fishing_protection_level_stats?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stats?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats; + protection_coverage_stats?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats; marine_bounds?: unknown; totalTerrestrialArea?: number; terrestrial_bounds?: unknown; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesUpdatedBy; - localizations?: MpaaProtectionLevelStatLocationDataAttributesLocalizations; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesLocationDataAttributesLocalizations; locale?: string; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesCreatedByData = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesCreatedByDataAttributes; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesCreatedBy = { + data?: PaChildrenDataItemAttributesLocationDataAttributesCreatedByData; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats = { + data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem[]; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; + data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = { name?: string; slug?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; locale?: string; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = { - data?: unknown[]; + data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - localizations?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations; - locale?: string; - }; +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = + { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + data?: PaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItem = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats = { + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; +}; + +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + }; + +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + location?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = { - data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; -}; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; -}; +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = + { + data?: unknown[]; + }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = + { [key: string]: any }; + +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = { - location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = { - data?: unknown[]; + data?: PaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { - slug?: string; - name?: string; - info?: string; + location?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; 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 }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = - { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; -}; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStats = { + data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItem[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = { - location?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + createdBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = +export type PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + data?: PaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; +export type PaChildrenDataItemAttributesLocationDataAttributesMembersDataItemAttributes = { + [key: string]: any; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; - }; +export type PaChildrenDataItemAttributesLocationDataAttributesMembersDataItem = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesMembersDataItemAttributes; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type PaChildrenDataItemAttributesLocationDataAttributesMembers = { + data?: PaChildrenDataItemAttributesLocationDataAttributesMembersDataItem[]; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; +export type PaChildrenDataItemAttributesLocationDataAttributesGroupsDataItemAttributes = { + [key: string]: any; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; +export type PaChildrenDataItemAttributesLocationDataAttributesGroupsDataItem = { + id?: number; + attributes?: PaChildrenDataItemAttributesLocationDataAttributesGroupsDataItemAttributes; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; +export type PaChildrenDataItemAttributesLocationDataAttributesGroups = { + data?: PaChildrenDataItemAttributesLocationDataAttributesGroupsDataItem[]; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; +export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesLocalizations = { + data?: unknown[]; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; - }; +export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesLocalizations; + locale?: string; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = +export type PaChildrenDataItemAttributesMpaaEstablishmentStageData = { + id?: number; + attributes?: PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributes; +}; + +export type PaChildrenDataItemAttributesMpaaEstablishmentStage = { + data?: PaChildrenDataItemAttributesMpaaEstablishmentStageData; +}; + +export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; - }; +export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedByData = { + id?: number; + attributes?: PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; - }; +export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedBy = { + data?: PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedByData; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = +export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; - }; - -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = - { [key: string]: any }; +export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByData = { + id?: number; + attributes?: PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributes; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; - }; +export type PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedBy = { + data?: PaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByData; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; - }; +export type PaChildrenDataItemAttributesDataSource = { + data?: PaChildrenDataItemAttributesDataSourceData; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; +export type PaChildrenDataItemAttributesDataSourceDataAttributesLocalizations = { + data?: unknown[]; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData = - { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; - }; +export type PaChildrenDataItemAttributesDataSourceDataAttributes = { + slug?: string; + title?: string; + url?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: PaChildrenDataItemAttributesDataSourceDataAttributesCreatedBy; + updatedBy?: PaChildrenDataItemAttributesDataSourceDataAttributesUpdatedBy; + localizations?: PaChildrenDataItemAttributesDataSourceDataAttributesLocalizations; + locale?: string; +}; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = - { - data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; - }; +export type PaChildrenDataItemAttributesDataSourceData = { + id?: number; + attributes?: PaChildrenDataItemAttributesDataSourceDataAttributes; +}; -export type MpaaProtectionLevelStatLocationDataAttributesMembersDataItemAttributes = { +export type PaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; -export type MpaaProtectionLevelStatLocationDataAttributesMembersDataItem = { +export type PaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMembersDataItemAttributes; + attributes?: PaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelStatLocationDataAttributesMembers = { - data?: MpaaProtectionLevelStatLocationDataAttributesMembersDataItem[]; +export type PaChildrenDataItemAttributesDataSourceDataAttributesUpdatedBy = { + data?: PaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesGroupsDataItemAttributes = { +export type PaChildrenDataItemAttributesDataSourceDataAttributesCreatedByDataAttributes = { [key: string]: any; }; -export type MpaaProtectionLevelStatLocationDataAttributesGroupsDataItem = { +export type PaChildrenDataItemAttributesDataSourceDataAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesGroupsDataItemAttributes; -}; - -export type MpaaProtectionLevelStatLocationDataAttributesGroups = { - data?: MpaaProtectionLevelStatLocationDataAttributesGroupsDataItem[]; + attributes?: PaChildrenDataItemAttributesDataSourceDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelStatListResponseMetaPagination = { - page?: number; - pageSize?: number; - pageCount?: number; - total?: number; +export type PaChildrenDataItemAttributesDataSourceDataAttributesCreatedBy = { + data?: PaChildrenDataItemAttributesDataSourceDataAttributesCreatedByData; }; -export type MpaaProtectionLevelStatListResponseMeta = { - pagination?: MpaaProtectionLevelStatListResponseMetaPagination; -}; +export type PaChildrenDataItemAttributesChildrenDataItemAttributes = { [key: string]: any }; -export interface MpaaProtectionLevelStatListResponseDataItem { +export type PaChildrenDataItemAttributesChildrenDataItem = { id?: number; - attributes?: MpaaProtectionLevelStat; -} - -export interface MpaaProtectionLevelStatListResponse { - data?: MpaaProtectionLevelStatListResponseDataItem[]; - meta?: MpaaProtectionLevelStatListResponseMeta; -} - -export type MpaaProtectionLevelResponseMeta = { [key: string]: any }; - -export interface MpaaProtectionLevelResponse { - data?: MpaaProtectionLevelResponseDataObject; - meta?: MpaaProtectionLevelResponseMeta; -} - -export type MpaaProtectionLevelLocalizations = { - data?: MpaaProtectionLevel[]; + attributes?: PaChildrenDataItemAttributesChildrenDataItemAttributes; }; -export type MpaaProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; - -export type MpaaProtectionLevelUpdatedByData = { - id?: number; - attributes?: MpaaProtectionLevelUpdatedByDataAttributes; +export type PaChildrenDataItemAttributesChildren = { + data?: PaChildrenDataItemAttributesChildrenDataItem[]; }; -export type MpaaProtectionLevelUpdatedBy = { - data?: MpaaProtectionLevelUpdatedByData; +export type PaChildrenDataItemAttributesProtectionStatus = { + data?: PaChildrenDataItemAttributesProtectionStatusData; }; -export type MpaaProtectionLevelCreatedByData = { +export type PaChildrenDataItemAttributesProtectionStatusDataAttributes = { [key: string]: any }; + +export type PaChildrenDataItemAttributesProtectionStatusData = { id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributes; + attributes?: PaChildrenDataItemAttributesProtectionStatusDataAttributes; }; -export type MpaaProtectionLevelCreatedBy = { - data?: MpaaProtectionLevelCreatedByData; +export type PaProtectionStatusDataAttributesLocalizations = { + data?: unknown[]; }; -export interface MpaaProtectionLevel { - slug: string; - name: string; +export type PaProtectionStatusDataAttributes = { + slug?: string; + name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedBy; - updatedBy?: MpaaProtectionLevelUpdatedBy; - localizations?: MpaaProtectionLevelLocalizations; + createdBy?: PaProtectionStatusDataAttributesCreatedBy; + updatedBy?: PaProtectionStatusDataAttributesUpdatedBy; + localizations?: PaProtectionStatusDataAttributesLocalizations; locale?: string; -} +}; -export interface MpaaProtectionLevelResponseDataObject { +export type PaProtectionStatusData = { id?: number; - attributes?: MpaaProtectionLevel; -} - -export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { - [key: string]: any; + attributes?: PaProtectionStatusDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes; +export type PaProtectionStatus = { + data?: PaProtectionStatusData; }; -export type MpaaProtectionLevelCreatedByDataAttributesUpdatedBy = { - data?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByData; +export type PaProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type PaProtectionStatusDataAttributesUpdatedByData = { + id?: number; + attributes?: PaProtectionStatusDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesCreatedBy = { - data?: MpaaProtectionLevelCreatedByDataAttributesCreatedByData; +export type PaProtectionStatusDataAttributesUpdatedBy = { + data?: PaProtectionStatusDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributes = { +export type PaProtectionStatusDataAttributesCreatedByDataAttributes = { firstname?: string; lastname?: string; username?: string; @@ -3389,1109 +3365,966 @@ export type MpaaProtectionLevelCreatedByDataAttributes = { resetPasswordToken?: string; registrationToken?: string; isActive?: boolean; - roles?: MpaaProtectionLevelCreatedByDataAttributesRoles; + roles?: PaProtectionStatusDataAttributesCreatedByDataAttributesRoles; blocked?: boolean; preferedLanguage?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelCreatedByDataAttributesUpdatedBy; + createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy; }; -export type MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; +export type PaProtectionStatusDataAttributesCreatedByData = { + id?: number; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes; +export type PaProtectionStatusDataAttributesCreatedBy = { + data?: PaProtectionStatusDataAttributesCreatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItem = { +export type PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesRoles = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItem[]; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy = { + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { +export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy = { + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRoles = { + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + }; + +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = + { + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + }; + +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = + { + id?: number; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + }; + +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = + { + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + }; + +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; actionParameters?: unknown; subject?: string; properties?: unknown; conditions?: unknown; - role?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + role?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; -}; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = + { + id?: number; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; -}; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = + { + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; description?: string; - users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; + users?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + createdBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = - { [key: string]: any }; - -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = + { [key: string]: any }; + +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + id?: number; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; -}; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = + { + id?: number; + attributes?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; + }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; +export type PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = { + data?: PaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export type MpaaProtectionLevelListResponseMetaPagination = { +export type PaListResponseMetaPagination = { page?: number; pageSize?: number; pageCount?: number; total?: number; }; -export type MpaaProtectionLevelListResponseMeta = { - pagination?: MpaaProtectionLevelListResponseMetaPagination; +export type PaListResponseMeta = { + pagination?: PaListResponseMetaPagination; }; -export interface MpaaProtectionLevelListResponseDataItem { +export interface PaListResponseDataItem { id?: number; - attributes?: MpaaProtectionLevel; + attributes?: Pa; } -export interface MpaaProtectionLevelListResponse { - data?: MpaaProtectionLevelListResponseDataItem[]; - meta?: MpaaProtectionLevelListResponseMeta; +export interface PaListResponse { + data?: PaListResponseDataItem[]; + meta?: PaListResponseMeta; } -export type MpaaProtectionLevelLocalizationListResponseMetaPagination = { - page?: number; - pageSize?: number; - pageCount?: number; - total?: number; -}; - -export type MpaaProtectionLevelLocalizationListResponseMeta = { - pagination?: MpaaProtectionLevelLocalizationListResponseMetaPagination; -}; +export type MpaaProtectionLevelStatResponseMeta = { [key: string]: any }; -export interface MpaaProtectionLevelListResponseDataItemLocalized { - id?: number; - attributes?: MpaaProtectionLevel; +export interface MpaaProtectionLevelStatResponse { + data?: MpaaProtectionLevelStatResponseDataObject; + meta?: MpaaProtectionLevelStatResponseMeta; } -export interface MpaaProtectionLevelLocalizationListResponse { - data?: MpaaProtectionLevelListResponseDataItemLocalized[]; - meta?: MpaaProtectionLevelLocalizationListResponseMeta; +export interface MpaaProtectionLevelStat { + location?: MpaaProtectionLevelStatLocation; + mpaa_protection_level?: MpaaProtectionLevelStatMpaaProtectionLevel; + area: number; + percentage?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatCreatedBy; + updatedBy?: MpaaProtectionLevelStatUpdatedBy; } -export type MpaaProtectionLevelLocalizationResponseMeta = { [key: string]: any }; - -export interface MpaaProtectionLevelResponseDataObjectLocalized { +export interface MpaaProtectionLevelStatResponseDataObject { id?: number; - attributes?: MpaaProtectionLevel; -} - -export interface MpaaProtectionLevelLocalizationResponse { - data?: MpaaProtectionLevelResponseDataObjectLocalized; - meta?: MpaaProtectionLevelLocalizationResponseMeta; -} - -export type MpaaProtectionLevelRequestData = { - slug: string; - name: string; - info?: string; - locale?: string; -}; - -export interface MpaaProtectionLevelRequest { - data: MpaaProtectionLevelRequestData; -} - -export interface MpaaProtectionLevelLocalizationRequest { - slug: string; - name: string; - info?: string; - locale: string; + attributes?: MpaaProtectionLevelStat; } -export type MpaaEstablishmentStageStatResponseMeta = { [key: string]: any }; +export type MpaaProtectionLevelStatUpdatedByDataAttributes = { [key: string]: any }; -export interface MpaaEstablishmentStageStatResponseDataObject { +export type MpaaProtectionLevelStatUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStat; -} + attributes?: MpaaProtectionLevelStatUpdatedByDataAttributes; +}; -export interface MpaaEstablishmentStageStatResponse { - data?: MpaaEstablishmentStageStatResponseDataObject; - meta?: MpaaEstablishmentStageStatResponseMeta; -} +export type MpaaProtectionLevelStatUpdatedBy = { + data?: MpaaProtectionLevelStatUpdatedByData; +}; -export type MpaaEstablishmentStageStatUpdatedByDataAttributes = { [key: string]: any }; +export type MpaaProtectionLevelStatCreatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatUpdatedByData = { +export type MpaaProtectionLevelStatCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatUpdatedBy = { - data?: MpaaEstablishmentStageStatUpdatedByData; +export type MpaaProtectionLevelStatCreatedBy = { + data?: MpaaProtectionLevelStatCreatedByData; }; -export type MpaaEstablishmentStageStatCreatedByDataAttributes = { [key: string]: any }; +export type MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatCreatedByData = { +export type MpaaProtectionLevelStatMpaaProtectionLevelData = { id?: number; - attributes?: MpaaEstablishmentStageStatCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatMpaaProtectionLevelDataAttributes; }; -export type MpaaEstablishmentStageStatCreatedBy = { - data?: MpaaEstablishmentStageStatCreatedByData; +export type MpaaProtectionLevelStatMpaaProtectionLevel = { + data?: MpaaProtectionLevelStatMpaaProtectionLevelData; }; -export type MpaaEstablishmentStageStatProtectionStatusDataAttributes = { [key: string]: any }; - -export type MpaaEstablishmentStageStatProtectionStatusData = { +export type MpaaProtectionLevelStatLocationData = { id?: number; - attributes?: MpaaEstablishmentStageStatProtectionStatusDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributes; }; -export type MpaaEstablishmentStageStatProtectionStatus = { - data?: MpaaEstablishmentStageStatProtectionStatusData; +export type MpaaProtectionLevelStatLocation = { + data?: MpaaProtectionLevelStatLocationData; }; -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesLocalizations = { +export type MpaaProtectionLevelStatLocationDataAttributesLocalizations = { 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 MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { + [key: string]: any; }; -export type MpaaEstablishmentStageStatMpaaEstablishmentStageData = { +export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStage = { - data?: MpaaEstablishmentStageStatMpaaEstablishmentStageData; + attributes?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; }; -export interface MpaaEstablishmentStageStat { - location?: MpaaEstablishmentStageStatLocation; - mpaa_establishment_stage?: MpaaEstablishmentStageStatMpaaEstablishmentStage; - protection_status?: MpaaEstablishmentStageStatProtectionStatus; - year: number; - area: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatCreatedBy; - updatedBy?: MpaaEstablishmentStageStatUpdatedBy; -} - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes; +export type MpaaProtectionLevelStatLocationDataAttributesUpdatedBy = { + data?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByData; +export type MpaaProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { + [key: string]: any; }; -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByData = { +export type MpaaProtectionLevelStatLocationDataAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByDataAttributes; -}; - -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByData; -}; - -export type MpaaEstablishmentStageStatLocation = { - data?: MpaaEstablishmentStageStatLocationData; + attributes?: MpaaProtectionLevelStatLocationDataAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesLocalizations = { - data?: unknown[]; +export type MpaaProtectionLevelStatLocationDataAttributesCreatedBy = { + data?: MpaaProtectionLevelStatLocationDataAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributes = { +export type MpaaProtectionLevelStatLocationDataAttributes = { code?: string; name?: string; totalMarineArea?: number; type?: string; - groups?: MpaaEstablishmentStageStatLocationDataAttributesGroups; - members?: MpaaEstablishmentStageStatLocationDataAttributesMembers; - fishing_protection_level_stats?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStats; + 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?: MpaaEstablishmentStageStatLocationDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatLocationDataAttributesLocalizations; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatLocationDataAttributesLocalizations; locale?: string; }; -export type MpaaEstablishmentStageStatLocationData = { - id?: number; - 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; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesCreatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesCreatedByDataAttributes; -}; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; + }; -export type MpaaEstablishmentStageStatLocationDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesCreatedByData; -}; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = + { + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; + }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { - location?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + location?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; year?: number; - cumSumProtectedArea?: number; protectedArea?: number; protectedAreasCount?: number; - environment?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + environment?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; createdAt?: string; updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItem = { +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStats = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItem[]; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats = { + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = { name?: string; slug?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; locale?: string; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations; - locale?: string; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; - }; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; +}; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; - }; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats = { + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; +}; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { - location?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; area?: number; + percentage?: number; createdAt?: string; updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStats = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; -}; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStats = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats = { + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + location?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { - location?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = - { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = { - 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; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; locale?: string; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + name?: string; + code?: string; + description?: string; + users?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = +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 MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -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 MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = { - name?: string; - code?: string; - description?: string; - users?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; + data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMembersDataItemAttributes = { +export type MpaaProtectionLevelStatLocationDataAttributesMembersDataItemAttributes = { [key: string]: any; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMembersDataItem = { +export type MpaaProtectionLevelStatLocationDataAttributesMembersDataItem = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesMembersDataItemAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMembersDataItemAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMembers = { - data?: MpaaEstablishmentStageStatLocationDataAttributesMembersDataItem[]; +export type MpaaProtectionLevelStatLocationDataAttributesMembers = { + data?: MpaaProtectionLevelStatLocationDataAttributesMembersDataItem[]; }; -export type MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItemAttributes = { +export type MpaaProtectionLevelStatLocationDataAttributesGroupsDataItemAttributes = { [key: string]: any; }; -export type MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItem = { +export type MpaaProtectionLevelStatLocationDataAttributesGroupsDataItem = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItemAttributes; + attributes?: MpaaProtectionLevelStatLocationDataAttributesGroupsDataItemAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesGroups = { - data?: MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItem[]; +export type MpaaProtectionLevelStatLocationDataAttributesGroups = { + data?: MpaaProtectionLevelStatLocationDataAttributesGroupsDataItem[]; }; -export type MpaaEstablishmentStageStatListResponseMetaPagination = { +export type MpaaProtectionLevelStatListResponseMetaPagination = { page?: number; pageSize?: number; pageCount?: number; total?: number; }; -export type MpaaEstablishmentStageStatListResponseMeta = { - pagination?: MpaaEstablishmentStageStatListResponseMetaPagination; +export type MpaaProtectionLevelStatListResponseMeta = { + pagination?: MpaaProtectionLevelStatListResponseMetaPagination; }; -export interface MpaaEstablishmentStageStatListResponseDataItem { +export interface MpaaProtectionLevelStatListResponseDataItem { id?: number; - attributes?: MpaaEstablishmentStageStat; + attributes?: MpaaProtectionLevelStat; } -export interface MpaaEstablishmentStageStatListResponse { - data?: MpaaEstablishmentStageStatListResponseDataItem[]; - meta?: MpaaEstablishmentStageStatListResponseMeta; +export interface MpaaProtectionLevelStatListResponse { + data?: MpaaProtectionLevelStatListResponseDataItem[]; + meta?: MpaaProtectionLevelStatListResponseMeta; } -export type MpaaEstablishmentStageResponseMeta = { [key: string]: any }; +export type MpaaProtectionLevelResponseMeta = { [key: string]: any }; -export interface MpaaEstablishmentStageResponse { - data?: MpaaEstablishmentStageResponseDataObject; - meta?: MpaaEstablishmentStageResponseMeta; +export interface MpaaProtectionLevelResponseDataObject { + id?: number; + attributes?: MpaaProtectionLevel; } -export type MpaaEstablishmentStageLocalizations = { - data?: MpaaEstablishmentStage[]; +export interface MpaaProtectionLevelResponse { + data?: MpaaProtectionLevelResponseDataObject; + meta?: MpaaProtectionLevelResponseMeta; +} + +export type MpaaProtectionLevelLocalizations = { + data?: MpaaProtectionLevel[]; }; -export interface MpaaEstablishmentStage { - slug: string; - name: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageCreatedBy; - updatedBy?: MpaaEstablishmentStageUpdatedBy; - localizations?: MpaaEstablishmentStageLocalizations; - locale?: string; -} +export type MpaaProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; -export interface MpaaEstablishmentStageResponseDataObject { +export type MpaaProtectionLevelUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStage; -} - -export type MpaaEstablishmentStageUpdatedByDataAttributes = { [key: string]: any }; - -export type MpaaEstablishmentStageUpdatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageUpdatedBy = { - data?: MpaaEstablishmentStageUpdatedByData; +export type MpaaProtectionLevelUpdatedBy = { + data?: MpaaProtectionLevelUpdatedByData; }; -export type MpaaEstablishmentStageCreatedByData = { +export type MpaaProtectionLevelCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributes; -}; - -export type MpaaEstablishmentStageCreatedBy = { - data?: MpaaEstablishmentStageCreatedByData; -}; - -export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedByDataAttributes = { - [key: string]: any; + attributes?: MpaaProtectionLevelCreatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedByDataAttributes; +export type MpaaProtectionLevelCreatedBy = { + data?: MpaaProtectionLevelCreatedByData; }; -export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedBy = { - data?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedByData; -}; +export interface MpaaProtectionLevel { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelCreatedBy; + updatedBy?: MpaaProtectionLevelUpdatedBy; + localizations?: MpaaProtectionLevelLocalizations; + locale?: string; +} -export type MpaaEstablishmentStageCreatedByDataAttributesCreatedByDataAttributes = { +export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; -export type MpaaEstablishmentStageCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesCreatedByDataAttributes; -}; - -export type MpaaEstablishmentStageCreatedByDataAttributesCreatedBy = { - data?: MpaaEstablishmentStageCreatedByDataAttributesCreatedByData; -}; - -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem = { +export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes; + attributes?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRoles = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem[]; +export type MpaaProtectionLevelCreatedByDataAttributesUpdatedBy = { + data?: MpaaProtectionLevelCreatedByDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageCreatedByDataAttributes = { +export type MpaaProtectionLevelCreatedByDataAttributes = { firstname?: string; lastname?: string; username?: string; @@ -4499,1582 +4332,1588 @@ export type MpaaEstablishmentStageCreatedByDataAttributes = { resetPasswordToken?: string; registrationToken?: string; isActive?: boolean; - roles?: MpaaEstablishmentStageCreatedByDataAttributesRoles; + roles?: MpaaProtectionLevelCreatedByDataAttributesRoles; blocked?: boolean; preferedLanguage?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaaEstablishmentStageCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedBy; + createdBy?: MpaaProtectionLevelCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelCreatedByDataAttributesUpdatedBy; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { +export type MpaaProtectionLevelCreatedByDataAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelCreatedByDataAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +export type MpaaProtectionLevelCreatedByDataAttributesCreatedBy = { + data?: MpaaProtectionLevelCreatedByDataAttributesCreatedByData; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes = { +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; description?: string; - users?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissions; + users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesRoles = { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItem[]; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions = { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; - }; - -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = - { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; -}; - -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { id?: number; - attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; + attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; -export type MpaaEstablishmentStageListResponseMetaPagination = { +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers = { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; +}; + +export type MpaaProtectionLevelListResponseMetaPagination = { page?: number; pageSize?: number; pageCount?: number; total?: number; }; -export type MpaaEstablishmentStageListResponseMeta = { - pagination?: MpaaEstablishmentStageListResponseMetaPagination; +export type MpaaProtectionLevelListResponseMeta = { + pagination?: MpaaProtectionLevelListResponseMetaPagination; }; -export interface MpaaEstablishmentStageListResponseDataItem { +export interface MpaaProtectionLevelListResponseDataItem { id?: number; - attributes?: MpaaEstablishmentStage; + attributes?: MpaaProtectionLevel; } -export interface MpaaEstablishmentStageListResponse { - data?: MpaaEstablishmentStageListResponseDataItem[]; - meta?: MpaaEstablishmentStageListResponseMeta; +export interface MpaaProtectionLevelListResponse { + data?: MpaaProtectionLevelListResponseDataItem[]; + meta?: MpaaProtectionLevelListResponseMeta; } -export type MpaaEstablishmentStageLocalizationListResponseMetaPagination = { +export type MpaaProtectionLevelLocalizationListResponseMeta = { + pagination?: MpaaProtectionLevelLocalizationListResponseMetaPagination; +}; + +export interface MpaaProtectionLevelLocalizationListResponse { + data?: MpaaProtectionLevelListResponseDataItemLocalized[]; + meta?: MpaaProtectionLevelLocalizationListResponseMeta; +} + +export type MpaaProtectionLevelLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; pageCount?: number; total?: number; }; -export type MpaaEstablishmentStageLocalizationListResponseMeta = { - pagination?: MpaaEstablishmentStageLocalizationListResponseMetaPagination; -}; - -export interface MpaaEstablishmentStageListResponseDataItemLocalized { +export interface MpaaProtectionLevelListResponseDataItemLocalized { id?: number; - attributes?: MpaaEstablishmentStage; -} - -export interface MpaaEstablishmentStageLocalizationListResponse { - data?: MpaaEstablishmentStageListResponseDataItemLocalized[]; - meta?: MpaaEstablishmentStageLocalizationListResponseMeta; + attributes?: MpaaProtectionLevel; } -export type MpaaEstablishmentStageLocalizationResponseMeta = { [key: string]: any }; +export type MpaaProtectionLevelLocalizationResponseMeta = { [key: string]: any }; -export interface MpaaEstablishmentStageResponseDataObjectLocalized { +export interface MpaaProtectionLevelResponseDataObjectLocalized { id?: number; - attributes?: MpaaEstablishmentStage; + attributes?: MpaaProtectionLevel; } -export interface MpaaEstablishmentStageLocalizationResponse { - data?: MpaaEstablishmentStageResponseDataObjectLocalized; - meta?: MpaaEstablishmentStageLocalizationResponseMeta; +export interface MpaaProtectionLevelLocalizationResponse { + data?: MpaaProtectionLevelResponseDataObjectLocalized; + meta?: MpaaProtectionLevelLocalizationResponseMeta; } -export type MpaaEstablishmentStageRequestData = { +export type MpaaProtectionLevelRequestData = { slug: string; name: string; info?: string; locale?: string; }; -export interface MpaaEstablishmentStageRequest { - data: MpaaEstablishmentStageRequestData; +export interface MpaaProtectionLevelRequest { + data: MpaaProtectionLevelRequestData; } -export interface MpaaEstablishmentStageLocalizationRequest { +export interface MpaaProtectionLevelLocalizationRequest { slug: string; name: string; info?: string; locale: string; } -export type MpaIucnCategoryResponseMeta = { [key: string]: any }; +export type MpaaEstablishmentStageStatResponseMeta = { [key: string]: any }; -export interface MpaIucnCategoryResponseDataObject { - id?: number; - attributes?: MpaIucnCategory; +export interface MpaaEstablishmentStageStatResponse { + data?: MpaaEstablishmentStageStatResponseDataObject; + meta?: MpaaEstablishmentStageStatResponseMeta; } -export interface MpaIucnCategoryResponse { - data?: MpaIucnCategoryResponseDataObject; - meta?: MpaIucnCategoryResponseMeta; +export interface MpaaEstablishmentStageStat { + location?: MpaaEstablishmentStageStatLocation; + mpaa_establishment_stage?: MpaaEstablishmentStageStatMpaaEstablishmentStage; + protection_status?: MpaaEstablishmentStageStatProtectionStatus; + year: number; + area: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatCreatedBy; + updatedBy?: MpaaEstablishmentStageStatUpdatedBy; } -export type MpaIucnCategoryLocalizations = { - data?: MpaIucnCategory[]; +export interface MpaaEstablishmentStageStatResponseDataObject { + id?: number; + attributes?: MpaaEstablishmentStageStat; +} + +export type MpaaEstablishmentStageStatUpdatedByDataAttributes = { [key: string]: any }; + +export type MpaaEstablishmentStageStatUpdatedByData = { + id?: number; + attributes?: MpaaEstablishmentStageStatUpdatedByDataAttributes; }; -export type MpaIucnCategoryUpdatedByDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatUpdatedBy = { + data?: MpaaEstablishmentStageStatUpdatedByData; +}; -export type MpaIucnCategoryUpdatedByData = { +export type MpaaEstablishmentStageStatCreatedByDataAttributes = { [key: string]: any }; + +export type MpaaEstablishmentStageStatCreatedByData = { id?: number; - attributes?: MpaIucnCategoryUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatCreatedByDataAttributes; }; -export type MpaIucnCategoryUpdatedBy = { - data?: MpaIucnCategoryUpdatedByData; +export type MpaaEstablishmentStageStatCreatedBy = { + data?: MpaaEstablishmentStageStatCreatedByData; }; -export type MpaIucnCategoryCreatedBy = { - data?: MpaIucnCategoryCreatedByData; +export type MpaaEstablishmentStageStatProtectionStatusDataAttributesLocalizations = { + data?: unknown[]; }; -export interface MpaIucnCategory { - slug: string; - name: string; +export type MpaaEstablishmentStageStatProtectionStatusDataAttributes = { + slug?: string; + name?: string; info?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedBy; - updatedBy?: MpaIucnCategoryUpdatedBy; - localizations?: MpaIucnCategoryLocalizations; + createdBy?: MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedBy; + localizations?: MpaaEstablishmentStageStatProtectionStatusDataAttributesLocalizations; locale?: string; -} +}; -export type MpaIucnCategoryCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatProtectionStatusData = { + id?: number; + attributes?: MpaaEstablishmentStageStatProtectionStatusDataAttributes; +}; -export type MpaIucnCategoryCreatedByDataAttributesUpdatedByData = { +export type MpaaEstablishmentStageStatProtectionStatus = { + data?: MpaaEstablishmentStageStatProtectionStatusData; +}; + +export type MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedByData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedByDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesUpdatedBy = { - data?: MpaIucnCategoryCreatedByDataAttributesUpdatedByData; +export type MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedBy = { + data?: MpaaEstablishmentStageStatProtectionStatusDataAttributesUpdatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; -export type MpaIucnCategoryCreatedByDataAttributesCreatedByData = { +export type MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedByData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedByDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesCreatedBy = { - data?: MpaIucnCategoryCreatedByDataAttributesCreatedByData; +export type MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedBy = { + data?: MpaaEstablishmentStageStatProtectionStatusDataAttributesCreatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaIucnCategoryCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedByDataAttributesCreatedBy; - updatedBy?: MpaIucnCategoryCreatedByDataAttributesUpdatedBy; +export type MpaaEstablishmentStageStatMpaaEstablishmentStageData = { + id?: number; + attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes; }; -export type MpaIucnCategoryCreatedByData = { +export type MpaaEstablishmentStageStatMpaaEstablishmentStage = { + data?: MpaaEstablishmentStageStatMpaaEstablishmentStageData; +}; + +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesLocalizations = { + data?: unknown[]; +}; + +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { - [key: string]: any; +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedBy = { + data?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedBy = { + data?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes = { +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes = { + slug?: string; name?: string; - code?: string; - description?: string; - users?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions; + info?: string; createdAt?: string; updatedAt?: string; - createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + createdBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedBy; + localizations?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesLocalizations; + locale?: string; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItem = { +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesRoles = { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItem[]; +export type MpaaEstablishmentStageStatLocation = { + data?: MpaaEstablishmentStageStatLocationData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { +export type MpaaEstablishmentStageStatLocationDataAttributesLocalizations = { + data?: unknown[]; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { +export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedByData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedByDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByData; +export type MpaaEstablishmentStageStatLocationDataAttributesUpdatedBy = { + data?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedByData; }; -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 MpaaEstablishmentStageStatLocationDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { +export type MpaaEstablishmentStageStatLocationDataAttributesCreatedByData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesCreatedByDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +export type MpaaEstablishmentStageStatLocationDataAttributesCreatedBy = { + data?: MpaaEstablishmentStageStatLocationDataAttributesCreatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItem = { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStats = { + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItem[]; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: MpaaEstablishmentStageStatLocationDataAttributesGroups; + members?: MpaaEstablishmentStageStatLocationDataAttributesMembers; + fishing_protection_level_stats?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stats?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStats; + protection_coverage_stats?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea?: number; + terrestrial_bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedBy; + localizations?: MpaaEstablishmentStageStatLocationDataAttributesLocalizations; + locale?: string; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = - { [key: string]: any }; - -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { - [key: string]: any; -}; - -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { - id?: number; - attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; -}; - -export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; -}; - -export type MpaIucnCategoryListResponseMetaPagination = { - page?: number; - pageSize?: number; - pageCount?: number; - total?: number; -}; - -export type MpaIucnCategoryListResponseMeta = { - pagination?: MpaIucnCategoryListResponseMetaPagination; -}; - -export interface MpaIucnCategoryListResponseDataItem { - id?: number; - attributes?: MpaIucnCategory; -} - -export interface MpaIucnCategoryListResponse { - data?: MpaIucnCategoryListResponseDataItem[]; - meta?: MpaIucnCategoryListResponseMeta; -} - -export type MpaIucnCategoryLocalizationListResponseMetaPagination = { - page?: number; - pageSize?: number; - pageCount?: number; - total?: number; -}; - -export type MpaIucnCategoryLocalizationListResponseMeta = { - pagination?: MpaIucnCategoryLocalizationListResponseMetaPagination; -}; - -export interface MpaIucnCategoryListResponseDataItemLocalized { - id?: number; - attributes?: MpaIucnCategory; -} - -export interface MpaIucnCategoryLocalizationListResponse { - data?: MpaIucnCategoryListResponseDataItemLocalized[]; - meta?: MpaIucnCategoryLocalizationListResponseMeta; -} - -export type MpaIucnCategoryLocalizationResponseMeta = { [key: string]: any }; - -export interface MpaIucnCategoryResponseDataObjectLocalized { - id?: number; - attributes?: MpaIucnCategory; -} - -export interface MpaIucnCategoryLocalizationResponse { - data?: MpaIucnCategoryResponseDataObjectLocalized; - meta?: MpaIucnCategoryLocalizationResponseMeta; -} - -export type MpaIucnCategoryRequestData = { - slug: string; - name: string; - info?: string; - locale?: string; -}; - -export interface MpaIucnCategoryRequest { - data: MpaIucnCategoryRequestData; -} - -export interface MpaIucnCategoryLocalizationRequest { - slug: string; - name: string; - info?: string; - locale: string; -} - -export type MpaResponseMeta = { [key: string]: any }; - -export interface MpaResponse { - data?: MpaResponseDataObject; - meta?: MpaResponseMeta; -} - -export type MpaUpdatedBy = { - data?: MpaUpdatedByData; -}; - -export interface Mpa { - name: string; - area: number; - year?: number; - protection_status?: MpaProtectionStatus; - bbox: unknown; - children?: MpaChildren; - data_source?: MpaDataSource; - mpaa_establishment_stage?: MpaMpaaEstablishmentStage; - location?: MpaLocation; - wdpaid?: string; - mpaa_protection_level?: MpaMpaaProtectionLevel; - is_child: boolean; - 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 = { - id?: number; - attributes?: MpaCreatedByDataAttributes; -}; - -export type MpaCreatedBy = { - data?: MpaCreatedByData; -}; - -export type MpaEnvironmentDataAttributes = { [key: string]: any }; - -export type MpaEnvironmentData = { - id?: number; - attributes?: MpaEnvironmentDataAttributes; -}; - -export type MpaEnvironment = { - data?: MpaEnvironmentData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; -export type MpaIucnCategoryPropertyDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = + { + data?: unknown[]; + }; -export type MpaIucnCategoryPropertyData = { - id?: number; - attributes?: MpaIucnCategoryPropertyDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; -export type MpaIucnCategoryProperty = { - data?: MpaIucnCategoryPropertyData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + }; -export type MpaMpaaProtectionLevelDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + }; -export type MpaMpaaProtectionLevelData = { - id?: number; - attributes?: MpaMpaaProtectionLevelDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = + { + name?: string; + slug?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; + locale?: string; + }; -export type MpaMpaaProtectionLevel = { - data?: MpaMpaaProtectionLevelData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = + { [key: string]: any }; -export type MpaLocationDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; + }; -export type MpaLocationData = { - id?: number; - attributes?: MpaLocationDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + }; -export type MpaLocation = { - data?: MpaLocationData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = + { [key: string]: any }; -export type MpaMpaaEstablishmentStageDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; + }; -export type MpaMpaaEstablishmentStageData = { - id?: number; - attributes?: MpaMpaaEstablishmentStageDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; + }; -export type MpaMpaaEstablishmentStage = { - data?: MpaMpaaEstablishmentStageData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + }; -export type MpaDataSourceDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = + { + location?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + }; -export type MpaDataSourceData = { +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { id?: number; - attributes?: MpaDataSourceDataAttributes; -}; - -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; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; }; -export type MpaChildrenDataItem = { - id?: number; - attributes?: MpaChildrenDataItemAttributes; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStats = { + data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; }; -export type MpaChildren = { - data?: MpaChildrenDataItem[]; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; -export type MpaChildrenDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + }; -export type MpaChildrenDataItemAttributesUpdatedByData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesUpdatedByDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; -export type MpaChildrenDataItemAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesUpdatedByData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + }; -export type MpaChildrenDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; + }; -export type MpaChildrenDataItemAttributesCreatedByData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesCreatedByDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + }; -export type MpaChildrenDataItemAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesCreatedByData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + }; -export type MpaChildrenDataItemAttributesEnvironmentDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = + { + data?: unknown[]; + }; -export type MpaChildrenDataItemAttributesEnvironmentData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesEnvironmentDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; -export type MpaChildrenDataItemAttributesEnvironment = { - data?: MpaChildrenDataItemAttributesEnvironmentData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; + }; -export type MpaChildrenDataItemAttributesIucnCategoryDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedBy; - localizations?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations; - locale?: string; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + }; -export type MpaChildrenDataItemAttributesIucnCategoryData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesIucnCategoryDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; + }; -export type MpaChildrenDataItemAttributesIucnCategory = { - data?: MpaChildrenDataItemAttributesIucnCategoryData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = + { [key: string]: any }; -export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesLocalizations = { - data?: unknown[]; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + }; -export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; + }; -export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = + { [key: string]: any }; -export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesUpdatedByData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; + }; -export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; + }; -export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByData = { +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; - attributes?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; }; -export type MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesIucnCategoryDataAttributesCreatedByData; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStats = { + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; }; -export type MpaChildrenDataItemAttributesMpaaProtectionLevelDataAttributes = { [key: string]: any }; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; -export type MpaChildrenDataItemAttributesMpaaProtectionLevelData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesMpaaProtectionLevelDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + }; -export type MpaChildrenDataItemAttributesMpaaProtectionLevel = { - data?: MpaChildrenDataItemAttributesMpaaProtectionLevelData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; + }; -export type MpaChildrenDataItemAttributesLocationData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; -export type MpaChildrenDataItemAttributesLocation = { - data?: MpaChildrenDataItemAttributesLocationData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesLocalizations = { - data?: unknown[]; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + }; -export type MpaChildrenDataItemAttributesLocationDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; + }; -export type MpaChildrenDataItemAttributesLocationDataAttributesUpdatedByData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesUpdatedByDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + }; -export type MpaChildrenDataItemAttributesLocationDataAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesUpdatedByData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = + { + data?: unknown[]; + }; -export type MpaChildrenDataItemAttributesLocationDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesCreatedByData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesCreatedByDataAttributes; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; + }; -export type MpaChildrenDataItemAttributesLocationDataAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesCreatedByData; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem[]; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + localizations?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; + locale?: string; + }; -export type MpaChildrenDataItemAttributesLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: MpaChildrenDataItemAttributesLocationDataAttributesGroups; - members?: MpaChildrenDataItemAttributesLocationDataAttributesMembers; - fishing_protection_level_stats?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea?: number; - terrestrial_bounds?: unknown; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesUpdatedBy; - localizations?: MpaChildrenDataItemAttributesLocationDataAttributesLocalizations; - locale?: string; -}; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +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 MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = { - location?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; - environment?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem = { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes; -}; - -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = { - data?: unknown[]; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - name?: string; - slug?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; - locale?: string; + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { [key: string]: any }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + name?: string; + code?: string; + description?: string; + users?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - location?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; createdAt?: string; updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItem = { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; -}; - -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; -}; - -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { - data?: unknown[]; + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesMembersDataItemAttributes = { + [key: string]: any; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesMembersDataItem = { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesMembersDataItemAttributes; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesMembers = { + data?: MpaaEstablishmentStageStatLocationDataAttributesMembersDataItem[]; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesGroups = { + data?: MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItem[]; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItemAttributes = { + [key: string]: any; +}; + +export type MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItem = { + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesGroupsDataItemAttributes; +}; + +export type MpaaEstablishmentStageStatListResponseMetaPagination = { + page?: number; + pageSize?: number; + pageCount?: number; + total?: number; +}; + +export type MpaaEstablishmentStageStatListResponseMeta = { + pagination?: MpaaEstablishmentStageStatListResponseMetaPagination; +}; + +export interface MpaaEstablishmentStageStatListResponseDataItem { + id?: number; + attributes?: MpaaEstablishmentStageStat; +} + +export interface MpaaEstablishmentStageStatListResponse { + data?: MpaaEstablishmentStageStatListResponseDataItem[]; + meta?: MpaaEstablishmentStageStatListResponseMeta; +} + +export type MpaaEstablishmentStageResponseMeta = { [key: string]: any }; + +export interface MpaaEstablishmentStageResponseDataObject { + id?: number; + attributes?: MpaaEstablishmentStage; +} + +export interface MpaaEstablishmentStageResponse { + data?: MpaaEstablishmentStageResponseDataObject; + meta?: MpaaEstablishmentStageResponseMeta; +} + +export type MpaaEstablishmentStageLocalizations = { + data?: MpaaEstablishmentStage[]; +}; + +export type MpaaEstablishmentStageUpdatedByDataAttributes = { [key: string]: any }; + +export type MpaaEstablishmentStageUpdatedByData = { + id?: number; + attributes?: MpaaEstablishmentStageUpdatedByDataAttributes; +}; + +export type MpaaEstablishmentStageUpdatedBy = { + data?: MpaaEstablishmentStageUpdatedByData; +}; + +export type MpaaEstablishmentStageCreatedByData = { + id?: number; + attributes?: MpaaEstablishmentStageCreatedByDataAttributes; +}; + +export type MpaaEstablishmentStageCreatedBy = { + data?: MpaaEstablishmentStageCreatedByData; +}; + +export interface MpaaEstablishmentStage { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageCreatedBy; + updatedBy?: MpaaEstablishmentStageUpdatedBy; + localizations?: MpaaEstablishmentStageLocalizations; + locale?: string; +} + +export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type MpaaEstablishmentStageCreatedByDataAttributesUpdatedByData = { + id?: number; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedByDataAttributes; +}; + +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 MpaaEstablishmentStageCreatedByDataAttributesRoles = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem[]; +}; + +export type MpaaEstablishmentStageCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaaEstablishmentStageCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesUpdatedBy; +}; + +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = - { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; - }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; +}; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = - { - data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; - }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +}; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; - }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { + id?: number; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; +}; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = - { - data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; - }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedByData; +}; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes; +}; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - location?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - pct?: number; + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; createdAt?: string; updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + createdBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItem = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStats = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItem[]; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissions = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = - { - data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - localizations?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = - { - data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData = - { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation = - { - data?: MpaChildrenDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationData; - }; - -export type MpaChildrenDataItemAttributesLocationDataAttributesMembersDataItemAttributes = { - [key: string]: any; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { + id?: number; + attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMembersDataItem = { - id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesMembersDataItemAttributes; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesMembers = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesMembersDataItem[]; +export type MpaaEstablishmentStageListResponseMetaPagination = { + page?: number; + pageSize?: number; + pageCount?: number; + total?: number; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesGroupsDataItemAttributes = { - [key: string]: any; +export type MpaaEstablishmentStageListResponseMeta = { + pagination?: MpaaEstablishmentStageListResponseMetaPagination; }; -export type MpaChildrenDataItemAttributesLocationDataAttributesGroupsDataItem = { +export interface MpaaEstablishmentStageListResponseDataItem { id?: number; - attributes?: MpaChildrenDataItemAttributesLocationDataAttributesGroupsDataItemAttributes; -}; + attributes?: MpaaEstablishmentStage; +} -export type MpaChildrenDataItemAttributesLocationDataAttributesGroups = { - data?: MpaChildrenDataItemAttributesLocationDataAttributesGroupsDataItem[]; -}; +export interface MpaaEstablishmentStageListResponse { + data?: MpaaEstablishmentStageListResponseDataItem[]; + meta?: MpaaEstablishmentStageListResponseMeta; +} -export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesLocalizations = { - data?: unknown[]; +export type MpaaEstablishmentStageLocalizationListResponseMetaPagination = { + page?: number; + pageSize?: number; + pageCount?: number; + total?: number; }; -export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedBy; - localizations?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesLocalizations; - locale?: string; +export type MpaaEstablishmentStageLocalizationListResponseMeta = { + pagination?: MpaaEstablishmentStageLocalizationListResponseMetaPagination; }; -export type MpaChildrenDataItemAttributesMpaaEstablishmentStageData = { +export interface MpaaEstablishmentStageListResponseDataItemLocalized { id?: number; - attributes?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributes; -}; + attributes?: MpaaEstablishmentStage; +} -export type MpaChildrenDataItemAttributesMpaaEstablishmentStage = { - data?: MpaChildrenDataItemAttributesMpaaEstablishmentStageData; -}; +export interface MpaaEstablishmentStageLocalizationListResponse { + data?: MpaaEstablishmentStageListResponseDataItemLocalized[]; + meta?: MpaaEstablishmentStageLocalizationListResponseMeta; +} -export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type MpaaEstablishmentStageLocalizationResponseMeta = { [key: string]: any }; -export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedByData = { +export interface MpaaEstablishmentStageResponseDataObjectLocalized { id?: number; - attributes?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes; -}; + attributes?: MpaaEstablishmentStage; +} + +export interface MpaaEstablishmentStageLocalizationResponse { + data?: MpaaEstablishmentStageResponseDataObjectLocalized; + meta?: MpaaEstablishmentStageLocalizationResponseMeta; +} -export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesUpdatedByData; +export type MpaaEstablishmentStageRequestData = { + slug: string; + name: string; + info?: string; + locale?: string; }; -export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = - { [key: string]: any }; +export interface MpaaEstablishmentStageRequest { + data: MpaaEstablishmentStageRequestData; +} -export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributes; -}; +export interface MpaaEstablishmentStageLocalizationRequest { + slug: string; + name: string; + info?: string; + locale: string; +} -export type MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesMpaaEstablishmentStageDataAttributesCreatedByData; -}; +export type MpaIucnCategoryResponseMeta = { [key: string]: any }; -export type MpaChildrenDataItemAttributesDataSourceData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesDataSourceDataAttributes; +export type MpaIucnCategoryLocalizations = { + data?: MpaIucnCategory[]; }; -export type MpaChildrenDataItemAttributesDataSource = { - data?: MpaChildrenDataItemAttributesDataSourceData; -}; +export interface MpaIucnCategory { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaIucnCategoryCreatedBy; + updatedBy?: MpaIucnCategoryUpdatedBy; + localizations?: MpaIucnCategoryLocalizations; + locale?: string; +} -export type MpaChildrenDataItemAttributesDataSourceDataAttributesLocalizations = { - data?: unknown[]; -}; +export interface MpaIucnCategoryResponseDataObject { + id?: number; + attributes?: MpaIucnCategory; +} -export type MpaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; +export interface MpaIucnCategoryResponse { + data?: MpaIucnCategoryResponseDataObject; + meta?: MpaIucnCategoryResponseMeta; +} + +export type MpaIucnCategoryUpdatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByData = { +export type MpaIucnCategoryUpdatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByDataAttributes; + attributes?: MpaIucnCategoryUpdatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesDataSourceDataAttributesUpdatedBy = { - data?: MpaChildrenDataItemAttributesDataSourceDataAttributesUpdatedByData; +export type MpaIucnCategoryUpdatedBy = { + data?: MpaIucnCategoryUpdatedByData; }; -export type MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedByData = { +export type MpaIucnCategoryCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedByDataAttributes; -}; - -export type MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedBy = { - data?: MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedByData; + attributes?: MpaIucnCategoryCreatedByDataAttributesUpdatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesDataSourceDataAttributes = { - slug?: string; - title?: string; - url?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedBy; - updatedBy?: MpaChildrenDataItemAttributesDataSourceDataAttributesUpdatedBy; - localizations?: MpaChildrenDataItemAttributesDataSourceDataAttributesLocalizations; - locale?: string; +export type MpaIucnCategoryCreatedByDataAttributesUpdatedBy = { + data?: MpaIucnCategoryCreatedByDataAttributesUpdatedByData; }; -export type MpaChildrenDataItemAttributesDataSourceDataAttributesCreatedByDataAttributes = { - [key: string]: any; +export type MpaIucnCategoryCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaIucnCategoryCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaIucnCategoryCreatedByDataAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesUpdatedBy; }; -export type MpaChildrenDataItemAttributesChildrenDataItemAttributes = { [key: string]: any }; - -export type MpaChildrenDataItemAttributesChildrenDataItem = { +export type MpaIucnCategoryCreatedByData = { id?: number; - attributes?: MpaChildrenDataItemAttributesChildrenDataItemAttributes; + attributes?: MpaIucnCategoryCreatedByDataAttributes; }; -export type MpaChildrenDataItemAttributesChildren = { - data?: MpaChildrenDataItemAttributesChildrenDataItem[]; +export type MpaIucnCategoryCreatedBy = { + data?: MpaIucnCategoryCreatedByData; }; -export type MpaChildrenDataItemAttributesProtectionStatusDataAttributes = { [key: string]: any }; - -export type MpaChildrenDataItemAttributesProtectionStatusData = { - id?: number; - attributes?: MpaChildrenDataItemAttributesProtectionStatusDataAttributes; -}; +export type MpaIucnCategoryCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaChildrenDataItemAttributesProtectionStatus = { - data?: MpaChildrenDataItemAttributesProtectionStatusData; -}; +export type MpaIucnCategoryCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaProtectionStatusData = { +export type MpaIucnCategoryCreatedByDataAttributesCreatedByData = { id?: number; - attributes?: MpaProtectionStatusDataAttributes; -}; - -export type MpaProtectionStatus = { - data?: MpaProtectionStatusData; + attributes?: MpaIucnCategoryCreatedByDataAttributesCreatedByDataAttributes; }; -export type MpaProtectionStatusDataAttributesLocalizations = { - data?: unknown[]; +export type MpaIucnCategoryCreatedByDataAttributesCreatedBy = { + data?: MpaIucnCategoryCreatedByDataAttributesCreatedByData; }; -export type MpaProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; - -export type MpaProtectionStatusDataAttributesUpdatedByData = { +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItem = { id?: number; - attributes?: MpaProtectionStatusDataAttributesUpdatedByDataAttributes; + attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes; }; -export type MpaProtectionStatusDataAttributesUpdatedBy = { - data?: MpaProtectionStatusDataAttributesUpdatedByData; +export type MpaIucnCategoryCreatedByDataAttributesRoles = { + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItem[]; }; -export type MpaProtectionStatusDataAttributesCreatedByData = { - id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributes; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { + [key: string]: any; }; -export type MpaProtectionStatusDataAttributesCreatedBy = { - data?: MpaProtectionStatusDataAttributesCreatedByData; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type MpaProtectionStatusDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionStatusDataAttributesCreatedBy; - updatedBy?: MpaProtectionStatusDataAttributesUpdatedBy; - localizations?: MpaProtectionStatusDataAttributesLocalizations; - locale?: string; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByData = { +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; -}; - -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy = { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedByData; + attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData = { +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByDataAttributes; + attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy = { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesCreatedByData; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions = { + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; description?: string; - users?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributes; -}; - -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; + users?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesUpdatedBy; + createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; actionParameters?: unknown; subject?: string; properties?: unknown; conditions?: unknown; - role?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + role?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; createdAt?: string; updatedAt?: string; - createdBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; - -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = - { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; - }; - -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + createdBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; - }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { + [key: string]: any; +}; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = - { [key: string]: any }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { + id?: number; + attributes?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; +}; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = - { - id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; - }; +export type MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsers = { + data?: MpaIucnCategoryCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; +}; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = - { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; - }; +export type MpaIucnCategoryListResponseMetaPagination = { + page?: number; + pageSize?: number; + pageCount?: number; + total?: number; +}; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = - { [key: string]: any }; +export type MpaIucnCategoryListResponseMeta = { + pagination?: MpaIucnCategoryListResponseMetaPagination; +}; -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = - { - id?: number; - attributes?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; - }; +export interface MpaIucnCategoryListResponseDataItem { + id?: number; + attributes?: MpaIucnCategory; +} -export type MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: MpaProtectionStatusDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; -}; +export interface MpaIucnCategoryListResponse { + data?: MpaIucnCategoryListResponseDataItem[]; + meta?: MpaIucnCategoryListResponseMeta; +} -export type MpaListResponseMetaPagination = { +export type MpaIucnCategoryLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; pageCount?: number; total?: number; }; -export type MpaListResponseMeta = { - pagination?: MpaListResponseMetaPagination; +export type MpaIucnCategoryLocalizationListResponseMeta = { + pagination?: MpaIucnCategoryLocalizationListResponseMetaPagination; }; -export interface MpaListResponseDataItem { +export interface MpaIucnCategoryListResponseDataItemLocalized { id?: number; - attributes?: Mpa; + attributes?: MpaIucnCategory; } -export interface MpaListResponse { - data?: MpaListResponseDataItem[]; - meta?: MpaListResponseMeta; +export interface MpaIucnCategoryLocalizationListResponse { + data?: MpaIucnCategoryListResponseDataItemLocalized[]; + meta?: MpaIucnCategoryLocalizationListResponseMeta; } -export type LocationResponseMeta = { [key: string]: any }; +export type MpaIucnCategoryLocalizationResponseMeta = { [key: string]: any }; -export type LocationLocalizations = { - data?: Location[]; -}; +export interface MpaIucnCategoryResponseDataObjectLocalized { + id?: number; + attributes?: MpaIucnCategory; +} -export interface Location { - code: string; +export interface MpaIucnCategoryLocalizationResponse { + data?: MpaIucnCategoryResponseDataObjectLocalized; + meta?: MpaIucnCategoryLocalizationResponseMeta; +} + +export type MpaIucnCategoryRequestData = { + slug: string; name: string; - totalMarineArea: number; - type: string; - groups?: LocationGroups; - members?: LocationMembers; - fishing_protection_level_stats?: LocationFishingProtectionLevelStats; - mpaa_protection_level_stats?: LocationMpaaProtectionLevelStats; - protection_coverage_stats?: LocationProtectionCoverageStats; - marine_bounds?: unknown; - totalTerrestrialArea: number; - terrestrial_bounds?: unknown; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationCreatedBy; - updatedBy?: LocationUpdatedBy; - localizations?: LocationLocalizations; + info?: string; locale?: string; +}; + +export interface MpaIucnCategoryRequest { + data: MpaIucnCategoryRequestData; +} + +export interface MpaIucnCategoryLocalizationRequest { + slug: string; + name: string; + info?: string; + locale: string; } +export type LocationResponseMeta = { [key: string]: any }; + export interface LocationResponseDataObject { id?: number; attributes?: Location; @@ -6085,6 +5924,10 @@ export interface LocationResponse { meta?: LocationResponseMeta; } +export type LocationLocalizations = { + data?: Location[]; +}; + export type LocationUpdatedByDataAttributes = { [key: string]: any }; export type LocationUpdatedByData = { @@ -6096,6 +5939,27 @@ export type LocationUpdatedBy = { data?: LocationUpdatedByData; }; +export interface Location { + code: string; + name: string; + totalMarineArea: number; + type: string; + groups?: LocationGroups; + members?: LocationMembers; + fishing_protection_level_stats?: LocationFishingProtectionLevelStats; + mpaa_protection_level_stats?: LocationMpaaProtectionLevelStats; + protection_coverage_stats?: LocationProtectionCoverageStats; + marine_bounds?: unknown; + totalTerrestrialArea: number; + terrestrial_bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationCreatedBy; + updatedBy?: LocationUpdatedBy; + localizations?: LocationLocalizations; + locale?: string; +} + export type LocationCreatedByDataAttributes = { [key: string]: any }; export type LocationCreatedByData = { @@ -6168,45 +6032,22 @@ export type LocationGroupsDataItemAttributesUpdatedByDataAttributes = { [key: st export type LocationGroupsDataItemAttributesUpdatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesUpdatedByDataAttributes; -}; - -export type LocationGroupsDataItemAttributesUpdatedBy = { - data?: LocationGroupsDataItemAttributesUpdatedByData; -}; - -export type LocationGroupsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; - -export type LocationGroupsDataItemAttributesCreatedByData = { - id?: number; - attributes?: LocationGroupsDataItemAttributesCreatedByDataAttributes; -}; - -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; + attributes?: LocationGroupsDataItemAttributesUpdatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItem = { +export type LocationGroupsDataItemAttributesUpdatedBy = { + data?: LocationGroupsDataItemAttributesUpdatedByData; +}; + +export type LocationGroupsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; + +export type LocationGroupsDataItemAttributesCreatedByData = { id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes; + attributes?: LocationGroupsDataItemAttributesCreatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStats = { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItem[]; +export type LocationGroupsDataItemAttributesCreatedBy = { + data?: LocationGroupsDataItemAttributesCreatedByData; }; export type LocationGroupsDataItemAttributes = { @@ -6230,6 +6071,15 @@ export type LocationGroupsDataItemAttributes = { locale?: string; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItem = { + id?: number; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes; +}; + +export type LocationGroupsDataItemAttributesProtectionCoverageStats = { + data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItem[]; +}; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6243,6 +6093,23 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes = { + location?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; +}; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6256,23 +6123,6 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = - { - name?: string; - slug?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; - localizations?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; - locale?: string; - }; - export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; @@ -6283,6 +6133,11 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = + { + data?: unknown[]; + }; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6311,76 +6166,31 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = { - slug?: string; name?: string; - info?: string; + slug?: string; createdAt?: string; updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - localizations?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations; + createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy; + localizations?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations; locale?: string; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = - { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = - { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData = { id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = - { - data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; }; export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation = { data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = - { [key: string]: any }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes; - }; - export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItem = { id?: number; attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributes; @@ -6403,16 +6213,6 @@ 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 }; @@ -6437,11 +6237,40 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; }; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributes = { + location?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; +}; + export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = { data?: unknown[]; }; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = + { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; + }; + +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; + }; + export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6451,11 +6280,6 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy = - { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; - }; - export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6470,19 +6294,6 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - localizations?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; - locale?: string; - }; - export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -6496,6 +6307,17 @@ 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; @@ -6533,38 +6355,11 @@ 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; @@ -6578,6 +6373,17 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA locale?: string; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6587,6 +6393,11 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; @@ -6626,6 +6437,29 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; @@ -6650,24 +6484,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6677,11 +6493,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = - { - data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6867,6 +6678,10 @@ export interface LocationLocalizationResponse { meta?: LocationLocalizationResponseMeta; } +export interface LocationRequest { + data: LocationRequestData; +} + export type LocationRequestDataProtectionCoverageStatsItem = number | string; export type LocationRequestDataMpaaProtectionLevelStatsItem = number | string; @@ -6893,10 +6708,6 @@ export type LocationRequestData = { locale?: string; }; -export interface LocationRequest { - data: LocationRequestData; -} - export type LocationLocalizationRequestProtectionCoverageStatsItem = number | string; export type LocationLocalizationRequestMpaaProtectionLevelStatsItem = number | string; @@ -6960,6 +6771,11 @@ export interface DocumentationMetadataComponent { export type LayerResponseMeta = { [key: string]: any }; +export interface LayerResponseDataObject { + id?: number; + attributes?: Layer; +} + export interface LayerResponse { data?: LayerResponseDataObject; meta?: LayerResponseMeta; @@ -6969,30 +6785,6 @@ 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 = { @@ -7015,6 +6807,24 @@ export type LayerCreatedBy = { data?: LayerCreatedByData; }; +export type LayerDatasetDataAttributesLocalizations = { + data?: unknown[]; +}; + +export type LayerDatasetDataAttributes = { + name?: string; + layers?: LayerDatasetDataAttributesLayers; + slug?: string; + group?: LayerDatasetDataAttributesGroup; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: LayerDatasetDataAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesUpdatedBy; + localizations?: LayerDatasetDataAttributesLocalizations; + locale?: string; +}; + export type LayerDatasetData = { id?: number; attributes?: LayerDatasetDataAttributes; @@ -7024,11 +6834,24 @@ export type LayerDataset = { data?: LayerDatasetData; }; -export type LayerDatasetDataAttributesLocalizations = { - data?: unknown[]; -}; - -export type LayerDatasetDataAttributesUpdatedByDataAttributes = { [key: string]: any }; +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 LayerDatasetDataAttributesUpdatedByData = { id?: number; @@ -7039,19 +6862,7 @@ 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 LayerDatasetDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type LayerDatasetDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7090,6 +6901,18 @@ export type LayerDatasetDataAttributesGroupDataAttributesUpdatedBy = { data?: LayerDatasetDataAttributesGroupDataAttributesUpdatedByData; }; +export type LayerDatasetDataAttributesGroupDataAttributes = { + name?: string; + slug?: string; + datasets?: LayerDatasetDataAttributesGroupDataAttributesDatasets; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesGroupDataAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesGroupDataAttributesUpdatedBy; + localizations?: LayerDatasetDataAttributesGroupDataAttributesLocalizations; + locale?: string; +}; + export type LayerDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -7116,22 +6939,6 @@ 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[]; }; @@ -7160,6 +6967,10 @@ export type LayerDatasetDataAttributesLayersDataItem = { attributes?: LayerDatasetDataAttributesLayersDataItemAttributes; }; +export type LayerDatasetDataAttributesLayers = { + data?: LayerDatasetDataAttributesLayersDataItem[]; +}; + export type LayerDatasetDataAttributesLayersDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -7195,6 +7006,19 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedByData; }; +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData = + { + id?: number; + attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; + }; + +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy = { + data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData; +}; + export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -7212,19 +7036,11 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData = +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - id?: number; - attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; + data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedBy = { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesCreatedByData; -}; - export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; @@ -7257,11 +7073,6 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri attributes?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = - { - data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; - }; - export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7276,6 +7087,20 @@ export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttri data?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type LayerDatasetDataAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -7301,20 +7126,6 @@ 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 }; @@ -7533,19 +7344,6 @@ export interface LayerLocalizationRequest { export type HabitatStatResponseMeta = { [key: string]: any }; -export interface HabitatStat { - location?: HabitatStatLocation; - habitat?: HabitatStatHabitat; - year: number; - protectedArea: number; - totalArea: number; - environment?: HabitatStatEnvironment; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatCreatedBy; - updatedBy?: HabitatStatUpdatedBy; -} - export interface HabitatStatResponseDataObject { id?: number; attributes?: HabitatStat; @@ -7589,6 +7387,23 @@ export type HabitatStatEnvironment = { data?: HabitatStatEnvironmentData; }; +export type HabitatStatHabitat = { + data?: HabitatStatHabitatData; +}; + +export interface HabitatStat { + location?: HabitatStatLocation; + habitat?: HabitatStatHabitat; + year: number; + protectedArea: number; + totalArea: number; + environment?: HabitatStatEnvironment; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatCreatedBy; + updatedBy?: HabitatStatUpdatedBy; +} + export type HabitatStatHabitatDataAttributesLocalizations = { data?: unknown[]; }; @@ -7610,10 +7425,6 @@ export type HabitatStatHabitatData = { attributes?: HabitatStatHabitatDataAttributes; }; -export type HabitatStatHabitat = { - data?: HabitatStatHabitatData; -}; - export type HabitatStatHabitatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type HabitatStatHabitatDataAttributesUpdatedByData = { @@ -7636,30 +7447,10 @@ export type HabitatStatHabitatDataAttributesCreatedBy = { data?: HabitatStatHabitatDataAttributesCreatedByData; }; -export type HabitatStatLocationData = { - id?: number; - attributes?: HabitatStatLocationDataAttributes; -}; - -export type HabitatStatLocation = { - data?: HabitatStatLocationData; -}; - 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; @@ -7681,6 +7472,26 @@ export type HabitatStatLocationDataAttributes = { locale?: string; }; +export type HabitatStatLocationData = { + id?: number; + attributes?: HabitatStatLocationDataAttributes; +}; + +export type HabitatStatLocation = { + data?: HabitatStatLocationData; +}; + +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 = { @@ -7692,6 +7503,23 @@ export type HabitatStatLocationDataAttributesCreatedBy = { data?: HabitatStatLocationDataAttributesCreatedByData; }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { + location?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + year?: number; + protectedArea?: number; + protectedAreasCount?: number; + environment?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; +}; + export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -7714,20 +7542,6 @@ 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 }; @@ -7741,11 +7555,6 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = - { - data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; - }; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = { data?: unknown[]; @@ -7769,6 +7578,11 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = + { + data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; + }; + export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7797,63 +7611,6 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr 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 = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = - { - data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; - }; - -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = - { - data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; - }; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -7871,6 +7628,7 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt location?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; mpaa_protection_level?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; area?: number; + percentage?: number; createdAt?: string; updatedAt?: string; createdBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; @@ -7982,6 +7740,15 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; +}; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStats = { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; +}; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7996,6 +7763,20 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { location?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; fishing_protection_level?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; @@ -8007,32 +7788,34 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; -}; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStats = { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem[]; -}; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = + { + data?: unknown[]; + }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { - data?: unknown[]; + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = @@ -8059,18 +7842,29 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = @@ -8091,45 +7885,9 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -8235,11 +7993,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = - { - data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -8249,6 +8002,11 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = + { + data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -8359,6 +8117,23 @@ export type HabitatUpdatedBy = { data?: HabitatUpdatedByData; }; +export type HabitatCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: HabitatCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesUpdatedBy; +}; + export type HabitatCreatedByData = { id?: number; attributes?: HabitatCreatedByDataAttributes; @@ -8379,23 +8154,6 @@ 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 = { @@ -8407,18 +8165,6 @@ export type HabitatCreatedByDataAttributesCreatedBy = { data?: HabitatCreatedByDataAttributesCreatedByData; }; -export type HabitatCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: HabitatCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type HabitatCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: HabitatCreatedByDataAttributesRolesDataItemAttributes; @@ -8476,6 +8222,18 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissions = { data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type HabitatCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: HabitatCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -8504,6 +8262,11 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsData data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; +export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = + { + data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + }; + export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -8513,11 +8276,6 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsData attributes?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = - { - data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; - }; - export type HabitatCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -8605,6 +8363,17 @@ export interface HabitatLocalizationRequest { export type FishingProtectionLevelStatResponseMeta = { [key: string]: any }; +export interface FishingProtectionLevelStat { + location?: FishingProtectionLevelStatLocation; + fishing_protection_level?: FishingProtectionLevelStatFishingProtectionLevel; + area: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatCreatedBy; + updatedBy?: FishingProtectionLevelStatUpdatedBy; +} + export interface FishingProtectionLevelStatResponseDataObject { id?: number; attributes?: FishingProtectionLevelStat; @@ -8626,17 +8395,6 @@ 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 = { @@ -8672,36 +8430,10 @@ export type FishingProtectionLevelStatLocationDataAttributesLocalizations = { data?: unknown[]; }; -export type FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - -export type FishingProtectionLevelStatLocationDataAttributesUpdatedByData = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; -}; - export type FishingProtectionLevelStatLocationDataAttributesUpdatedBy = { data?: FishingProtectionLevelStatLocationDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type FishingProtectionLevelStatLocationDataAttributesCreatedByData = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesCreatedByDataAttributes; -}; - -export type FishingProtectionLevelStatLocationDataAttributesCreatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesCreatedByData; -}; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats = { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; -}; - export type FishingProtectionLevelStatLocationDataAttributes = { code?: string; name?: string; @@ -8723,54 +8455,40 @@ export type FishingProtectionLevelStatLocationDataAttributes = { locale?: string; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; - }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = - { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; - }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; +export type FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; - }; +export type FishingProtectionLevelStatLocationDataAttributesUpdatedByData = { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; +}; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = - { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; - }; +export type FishingProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; - }; +export type FishingProtectionLevelStatLocationDataAttributesCreatedByData = { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesCreatedByDataAttributes; +}; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = - { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; - }; +export type FishingProtectionLevelStatLocationDataAttributesCreatedBy = { + data?: FishingProtectionLevelStatLocationDataAttributesCreatedByData; +}; export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { location?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; year?: number; - cumSumProtectedArea?: number; protectedArea?: number; protectedAreasCount?: number; environment?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment; + coverage?: number; + pas?: number; + oecms?: number; + is_last_year?: boolean; + global_contribution?: number; createdAt?: string; updatedAt?: string; createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; @@ -8782,34 +8500,41 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = - { - data?: unknown[]; - }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats = { + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; +}; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; + }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesLocalizations = + { + data?: unknown[]; }; export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes = @@ -8824,64 +8549,43 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt locale?: string; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations = - { - data?: unknown[]; - }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - localizations?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesLocalizations; - locale?: string; - }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironment = { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes = { [key: string]: any }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedBy = { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesEnvironmentDataAttributesCreatedByData; }; export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = @@ -8898,6 +8602,18 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = + { + location?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + percentage?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { id?: number; attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; @@ -8935,31 +8651,33 @@ export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelS data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = { - data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + data?: unknown[]; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = { - location?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; + slug?: string; + name?: string; + info?: string; createdAt?: string; updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + createdBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + localizations?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations; + locale?: string; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesLocalizations = +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = { - data?: unknown[]; + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; }; export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = @@ -8990,19 +8708,6 @@ 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 }; @@ -9040,18 +8745,6 @@ 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 }; @@ -9066,15 +8759,21 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { - data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + location?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + pct?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; }; export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesLocalizations = @@ -9096,6 +8795,24 @@ 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; @@ -9120,6 +8837,12 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev locale?: string; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -9148,19 +8871,6 @@ 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; @@ -9172,24 +8882,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev 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 }; @@ -9218,20 +8910,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -9257,6 +8935,33 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -9371,6 +9076,23 @@ export type FishingProtectionLevelLocalizations = { data?: FishingProtectionLevel[]; }; +export interface FishingProtectionLevel { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelCreatedBy; + updatedBy?: FishingProtectionLevelUpdatedBy; + localizations?: FishingProtectionLevelLocalizations; + locale?: string; +} + +export interface FishingProtectionLevelResponseDataObject { + id?: number; + attributes?: FishingProtectionLevel; +} + export type FishingProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; export type FishingProtectionLevelUpdatedByData = { @@ -9382,6 +9104,23 @@ export type FishingProtectionLevelUpdatedBy = { data?: FishingProtectionLevelUpdatedByData; }; +export type FishingProtectionLevelCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: FishingProtectionLevelCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelCreatedByDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelCreatedByDataAttributesUpdatedBy; +}; + export type FishingProtectionLevelCreatedByData = { id?: number; attributes?: FishingProtectionLevelCreatedByDataAttributes; @@ -9391,23 +9130,6 @@ export type FishingProtectionLevelCreatedBy = { data?: FishingProtectionLevelCreatedByData; }; -export interface FishingProtectionLevel { - slug: string; - name: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelCreatedBy; - updatedBy?: FishingProtectionLevelUpdatedBy; - localizations?: FishingProtectionLevelLocalizations; - locale?: string; -} - -export interface FishingProtectionLevelResponseDataObject { - id?: number; - attributes?: FishingProtectionLevel; -} - export type FishingProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -9434,23 +9156,6 @@ export type FishingProtectionLevelCreatedByDataAttributesCreatedBy = { data?: FishingProtectionLevelCreatedByDataAttributesCreatedByData; }; -export type FishingProtectionLevelCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: FishingProtectionLevelCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelCreatedByDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelCreatedByDataAttributesUpdatedBy; -}; - export type FishingProtectionLevelCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; @@ -9472,6 +9177,18 @@ export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -9484,20 +9201,6 @@ export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -9508,18 +9211,6 @@ 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 }; @@ -9534,6 +9225,20 @@ export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributes data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; +export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -9648,6 +9353,11 @@ export interface FishingProtectionLevelLocalizationRequest { export type EnvironmentResponseMeta = { [key: string]: any }; +export interface EnvironmentResponseDataObject { + id?: number; + attributes?: Environment; +} + export interface EnvironmentResponse { data?: EnvironmentResponseDataObject; meta?: EnvironmentResponseMeta; @@ -9657,22 +9367,6 @@ export type EnvironmentLocalizations = { data?: Environment[]; }; -export interface Environment { - name: string; - slug: string; - createdAt?: string; - updatedAt?: string; - createdBy?: EnvironmentCreatedBy; - updatedBy?: EnvironmentUpdatedBy; - localizations?: EnvironmentLocalizations; - locale?: string; -} - -export interface EnvironmentResponseDataObject { - id?: number; - attributes?: Environment; -} - export type EnvironmentUpdatedByDataAttributes = { [key: string]: any }; export type EnvironmentUpdatedByData = { @@ -9684,23 +9378,6 @@ export type EnvironmentUpdatedBy = { data?: EnvironmentUpdatedByData; }; -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; @@ -9710,6 +9387,17 @@ export type EnvironmentCreatedBy = { data?: EnvironmentCreatedByData; }; +export interface Environment { + name: string; + slug: string; + createdAt?: string; + updatedAt?: string; + createdBy?: EnvironmentCreatedBy; + updatedBy?: EnvironmentUpdatedBy; + localizations?: EnvironmentLocalizations; + locale?: string; +} + export type EnvironmentCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type EnvironmentCreatedByDataAttributesUpdatedByData = { @@ -9721,6 +9409,23 @@ export type EnvironmentCreatedByDataAttributesUpdatedBy = { data?: EnvironmentCreatedByDataAttributesUpdatedByData; }; +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 EnvironmentCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type EnvironmentCreatedByDataAttributesCreatedByData = { @@ -9779,6 +9484,20 @@ export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedBy = data?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -9802,20 +9521,6 @@ export type EnvironmentCreatedByDataAttributesRolesDataItemAttributesPermissions 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 }; @@ -10001,6 +9706,8 @@ export type DatasetGroupDatasetsDataItemAttributesUpdatedBy = { data?: DatasetGroupDatasetsDataItemAttributesUpdatedByData; }; +export type DatasetGroupDatasetsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; + export type DatasetGroupDatasetsDataItemAttributesCreatedByData = { id?: number; attributes?: DatasetGroupDatasetsDataItemAttributesCreatedByDataAttributes; @@ -10010,6 +9717,15 @@ export type DatasetGroupDatasetsDataItemAttributesCreatedBy = { data?: DatasetGroupDatasetsDataItemAttributesCreatedByData; }; +export type DatasetGroupDatasetsDataItemAttributesGroupData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributes; +}; + +export type DatasetGroupDatasetsDataItemAttributesGroup = { + data?: DatasetGroupDatasetsDataItemAttributesGroupData; +}; + export type DatasetGroupDatasetsDataItemAttributes = { name?: string; layers?: DatasetGroupDatasetsDataItemAttributesLayers; @@ -10024,33 +9740,10 @@ export type DatasetGroupDatasetsDataItemAttributes = { 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; }; @@ -10064,6 +9757,18 @@ export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedBy = data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedByData; }; +export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributes = { + name?: string; + slug?: string; + datasets?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesUpdatedBy; + localizations?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesLocalizations; + locale?: string; +}; + export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -10090,6 +9795,29 @@ export type DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasets = data?: DatasetGroupDatasetsDataItemAttributesGroupDataAttributesDatasetsDataItem[]; }; +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLocalizations = { + data?: unknown[]; +}; + +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 DatasetGroupDatasetsDataItemAttributesLayersDataItem = { id?: number; attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributes; @@ -10099,10 +9827,6 @@ export type DatasetGroupDatasetsDataItemAttributesLayers = { data?: DatasetGroupDatasetsDataItemAttributesLayersDataItem[]; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesLocalizations = { - data?: unknown[]; -}; - export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10115,34 +9839,10 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesUpdate 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 }; @@ -10200,6 +9900,11 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreate updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesUpdatedBy; }; +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByData = { + id?: number; + attributes?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributes; +}; + export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10214,6 +9919,9 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreate data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; @@ -10225,22 +9933,20 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreate data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; createdAt?: string; updatedAt?: string; - createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -10252,6 +9958,19 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreate data?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -10294,20 +10013,6 @@ export type DatasetGroupDatasetsDataItemAttributesLayersDataItemAttributesCreate 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 }; @@ -10458,11 +10163,6 @@ export interface DatasetGroupLocalizationRequest { export type DatasetResponseMeta = { [key: string]: any }; -export interface DatasetResponse { - data?: DatasetResponseDataObject; - meta?: DatasetResponseMeta; -} - export type DatasetLocalizations = { data?: Dataset[]; }; @@ -10486,6 +10186,11 @@ export interface DatasetResponseDataObject { attributes?: Dataset; } +export interface DatasetResponse { + data?: DatasetResponseDataObject; + meta?: DatasetResponseMeta; +} + export type DatasetUpdatedByDataAttributes = { [key: string]: any }; export type DatasetUpdatedByData = { @@ -10519,6 +10224,29 @@ export type DatasetGroupProperty = { data?: DatasetGroupPropertyData; }; +export type DatasetLayersDataItemAttributesLocalizations = { + data?: unknown[]; +}; + +export type DatasetLayersDataItemAttributes = { + title?: string; + type?: DatasetLayersDataItemAttributesType; + config?: unknown; + params_config?: unknown; + interaction_config?: unknown; + metadata?: DatasetLayersDataItemAttributesMetadata; + dataset?: DatasetLayersDataItemAttributesDataset; + legend_config?: DatasetLayersDataItemAttributesLegendConfig; + default?: boolean; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DatasetLayersDataItemAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesUpdatedBy; + localizations?: DatasetLayersDataItemAttributesLocalizations; + locale?: string; +}; + export type DatasetLayersDataItem = { id?: number; attributes?: DatasetLayersDataItemAttributes; @@ -10528,10 +10256,6 @@ export type DatasetLayers = { data?: DatasetLayersDataItem[]; }; -export type DatasetLayersDataItemAttributesLocalizations = { - data?: unknown[]; -}; - export type DatasetLayersDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; export type DatasetLayersDataItemAttributesUpdatedByData = { @@ -10579,36 +10303,31 @@ export type DatasetLayersDataItemAttributesLegendConfig = { items?: DatasetLayersDataItemAttributesLegendConfigItemsItem[]; }; -export type DatasetLayersDataItemAttributesDatasetData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDataset = { - data?: DatasetLayersDataItemAttributesDatasetData; +export type DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations = { + data?: unknown[]; }; -export type DatasetLayersDataItemAttributes = { - title?: string; - type?: DatasetLayersDataItemAttributesType; - config?: unknown; - params_config?: unknown; - interaction_config?: unknown; - metadata?: DatasetLayersDataItemAttributesMetadata; - dataset?: DatasetLayersDataItemAttributesDataset; - legend_config?: DatasetLayersDataItemAttributesLegendConfig; - default?: boolean; +export type DatasetLayersDataItemAttributesDatasetDataAttributes = { + name?: string; + layers?: DatasetLayersDataItemAttributesDatasetDataAttributesLayers; + slug?: string; + group?: DatasetLayersDataItemAttributesDatasetDataAttributesGroup; createdAt?: string; updatedAt?: string; publishedAt?: string; - createdBy?: DatasetLayersDataItemAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesUpdatedBy; - localizations?: DatasetLayersDataItemAttributesLocalizations; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedBy; + localizations?: DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations; locale?: string; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations = { - data?: unknown[]; +export type DatasetLayersDataItemAttributesDatasetData = { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributes; +}; + +export type DatasetLayersDataItemAttributesDataset = { + data?: DatasetLayersDataItemAttributesDatasetData; }; export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByDataAttributes = { @@ -10624,6 +10343,10 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedBy = { data?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedByData; }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData = { id?: number; attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes; @@ -10633,28 +10356,35 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedBy = { data?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributes = { - name?: string; - layers?: DatasetLayersDataItemAttributesDatasetDataAttributesLayers; - slug?: string; - group?: DatasetLayersDataItemAttributesDatasetDataAttributesGroup; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesUpdatedBy; - localizations?: DatasetLayersDataItemAttributesDatasetDataAttributesLocalizations; - locale?: string; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesCreatedByDataAttributes = { - [key: string]: any; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroup = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupData; }; export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesLocalizations = { data?: unknown[]; }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData = { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes; +}; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData; +}; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData = { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes; +}; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedBy = { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData; +}; + export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributes = { name?: string; slug?: string; @@ -10672,21 +10402,24 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupData = { attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroup = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupData; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes = +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByDataAttributes; -}; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData = + { + id?: number; + attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; + }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesUpdatedByData; -}; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData; + }; + +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedBy = + { + data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByData; + }; export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes = { @@ -10706,29 +10439,6 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData = { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributes; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedBy = { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByData; -}; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData = - { - id?: number; - attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByDataAttributes; - }; - -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesUpdatedByData; - }; - export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10738,11 +10448,6 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu attributes?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedBy = - { - data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesCreatedByData; - }; - export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -10820,20 +10525,6 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -10862,6 +10553,20 @@ export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttribu data?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DatasetLayersDataItemAttributesDatasetDataAttributesGroupDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -11006,6 +10711,11 @@ export interface DatasetLocalizationRequest { export type DataToolResourceTypeResponseMeta = { [key: string]: any }; +export interface DataToolResourceTypeResponseDataObject { + id?: number; + attributes?: DataToolResourceType; +} + export interface DataToolResourceTypeResponse { data?: DataToolResourceTypeResponseDataObject; meta?: DataToolResourceTypeResponseMeta; @@ -11015,22 +10725,6 @@ 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 = { @@ -11042,15 +10736,21 @@ export type DataToolResourceTypeUpdatedBy = { data?: DataToolResourceTypeUpdatedByData; }; -export type DataToolResourceTypeCreatedByData = { - id?: number; - attributes?: DataToolResourceTypeCreatedByDataAttributes; -}; - 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 type DataToolResourceTypeCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -11064,6 +10764,19 @@ export type DataToolResourceTypeCreatedByDataAttributesUpdatedBy = { data?: DataToolResourceTypeCreatedByDataAttributesUpdatedByData; }; +export type DataToolResourceTypeCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type DataToolResourceTypeCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: DataToolResourceTypeCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type DataToolResourceTypeCreatedByDataAttributesCreatedBy = { + data?: DataToolResourceTypeCreatedByDataAttributesCreatedByData; +}; + export type DataToolResourceTypeCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -11081,17 +10794,18 @@ export type DataToolResourceTypeCreatedByDataAttributes = { updatedBy?: DataToolResourceTypeCreatedByDataAttributesUpdatedBy; }; -export type DataToolResourceTypeCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; +export type DataToolResourceTypeCreatedByData = { + id?: number; + attributes?: DataToolResourceTypeCreatedByDataAttributes; }; -export type DataToolResourceTypeCreatedByDataAttributesCreatedByData = { +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; - attributes?: DataToolResourceTypeCreatedByDataAttributesCreatedByDataAttributes; + attributes?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; }; -export type DataToolResourceTypeCreatedByDataAttributesCreatedBy = { - data?: DataToolResourceTypeCreatedByDataAttributesCreatedByData; +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributes = { @@ -11118,15 +10832,6 @@ export type DataToolResourceTypeCreatedByDataAttributesRoles = { export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { - id?: number; - attributes?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; -}; - -export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; -}; - export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11139,6 +10844,20 @@ export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCr data?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolResourceTypeCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -11163,20 +10882,6 @@ 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 }; @@ -11280,23 +10985,36 @@ export interface DataToolResourceTypeRequest { data: DataToolResourceTypeRequestData; } -export interface DataToolResourceTypeLocalizationRequest { +export interface DataToolResourceTypeLocalizationRequest { + name?: string; + locale: string; +} + +export type DataToolLanguageResponseMeta = { [key: string]: any }; + +export interface DataToolLanguageResponse { + data?: DataToolLanguageResponseDataObject; + meta?: DataToolLanguageResponseMeta; +} + +export interface DataToolLanguage { name?: string; - locale: string; + slug?: string; + data_tool?: DataToolLanguageDataTool; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguageCreatedBy; + updatedBy?: DataToolLanguageUpdatedBy; + localizations?: DataToolLanguageLocalizations; + locale?: string; } -export type DataToolLanguageResponseMeta = { [key: string]: any }; - export interface DataToolLanguageResponseDataObject { id?: number; attributes?: DataToolLanguage; } -export interface DataToolLanguageResponse { - data?: DataToolLanguageResponseDataObject; - meta?: DataToolLanguageResponseMeta; -} - export type DataToolLanguageLocalizations = { data?: DataToolLanguage[]; }; @@ -11332,19 +11050,6 @@ 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[]; }; @@ -11371,6 +11076,22 @@ 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; @@ -11397,11 +11118,6 @@ export type DataToolLanguageDataToolDataAttributes = { locale?: string; }; -export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations = - { - data?: unknown[]; - }; - export type DataToolLanguageDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11428,15 +11144,8 @@ 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 DataToolLanguageDataToolDataAttributesDataToolResourceTypes = { + data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem[]; }; export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesLocalizations = @@ -11444,6 +11153,20 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemA data?: unknown[]; }; +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByDataAttributes; + }; + +export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy = + { + data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByData; + }; + export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes = { name?: string; createdAt?: string; @@ -11460,24 +11183,6 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem attributes?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributes; }; -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypes = { - data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItem[]; -}; - -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByDataAttributes; - }; - -export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedBy = - { - data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesUpdatedByData; - }; - export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11492,35 +11197,10 @@ export type DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemA data?: DataToolLanguageDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByData; }; -export type DataToolLanguageDataToolDataAttributesLanguages = { - data?: DataToolLanguageDataToolDataAttributesLanguagesDataItem[]; -}; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesLocalizations = { data?: unknown[]; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByData = { - id?: number; - attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByDataAttributes; -}; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedBy = { - data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByData; -}; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByData = { - id?: number; - attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes; -}; - -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedBy = { - data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByData; -}; - export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes = { name?: string; slug?: string; @@ -11539,19 +11219,21 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItem = { attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributes; }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = +export type DataToolLanguageDataToolDataAttributesLanguages = { + data?: DataToolLanguageDataToolDataAttributesLanguagesDataItem[]; +}; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByData = - { - id?: number; - attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes; - }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByDataAttributes; +}; -export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy = - { - data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByData; - }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedBy = { + data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesUpdatedByData; +}; export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes = { @@ -11571,6 +11253,29 @@ export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCre updatedBy?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy; }; +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByData = { + id?: number; + attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributes; +}; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedBy = { + data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByData; +}; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByData = + { + id?: number; + attributes?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes; + }; + +export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedBy = + { + data?: DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesUpdatedByData; + }; + export type DataToolLanguageDataToolDataAttributesLanguagesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11808,11 +11513,6 @@ export interface DataToolLanguageLocalizationRequest { export type DataToolEcosystemResponseMeta = { [key: string]: any }; -export interface DataToolEcosystemResponseDataObject { - id?: number; - attributes?: DataToolEcosystem; -} - export interface DataToolEcosystemResponse { data?: DataToolEcosystemResponseDataObject; meta?: DataToolEcosystemResponseMeta; @@ -11822,10 +11522,26 @@ export type DataToolEcosystemLocalizations = { data?: DataToolEcosystem[]; }; +export type DataToolEcosystemUpdatedByDataAttributes = { [key: string]: any }; + +export type DataToolEcosystemUpdatedByData = { + id?: number; + attributes?: DataToolEcosystemUpdatedByDataAttributes; +}; + export type DataToolEcosystemUpdatedBy = { data?: DataToolEcosystemUpdatedByData; }; +export type DataToolEcosystemCreatedByData = { + id?: number; + attributes?: DataToolEcosystemCreatedByDataAttributes; +}; + +export type DataToolEcosystemCreatedBy = { + data?: DataToolEcosystemCreatedByData; +}; + export interface DataToolEcosystem { name?: string; createdAt?: string; @@ -11837,21 +11553,10 @@ export interface DataToolEcosystem { locale?: string; } -export type DataToolEcosystemUpdatedByDataAttributes = { [key: string]: any }; - -export type DataToolEcosystemUpdatedByData = { - id?: number; - attributes?: DataToolEcosystemUpdatedByDataAttributes; -}; - -export type DataToolEcosystemCreatedByData = { +export interface DataToolEcosystemResponseDataObject { id?: number; - attributes?: DataToolEcosystemCreatedByDataAttributes; -}; - -export type DataToolEcosystemCreatedBy = { - data?: DataToolEcosystemCreatedByData; -}; + attributes?: DataToolEcosystem; +} export type DataToolEcosystemCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; @@ -11866,40 +11571,10 @@ export type DataToolEcosystemCreatedByDataAttributesUpdatedBy = { data?: DataToolEcosystemCreatedByDataAttributesUpdatedByData; }; -export type DataToolEcosystemCreatedByDataAttributesCreatedByDataAttributes = { - [key: string]: any; -}; - -export type DataToolEcosystemCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: DataToolEcosystemCreatedByDataAttributesCreatedByDataAttributes; -}; - export type DataToolEcosystemCreatedByDataAttributesCreatedBy = { data?: DataToolEcosystemCreatedByDataAttributesCreatedByData; }; -export type 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; -}; - -export type DataToolEcosystemCreatedByDataAttributesRoles = { - data?: DataToolEcosystemCreatedByDataAttributesRolesDataItem[]; -}; - export type DataToolEcosystemCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -11917,6 +11592,24 @@ export type DataToolEcosystemCreatedByDataAttributes = { updatedBy?: DataToolEcosystemCreatedByDataAttributesUpdatedBy; }; +export type DataToolEcosystemCreatedByDataAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type DataToolEcosystemCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: DataToolEcosystemCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type DataToolEcosystemCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type DataToolEcosystemCreatedByDataAttributesRoles = { + data?: DataToolEcosystemCreatedByDataAttributesRolesDataItem[]; +}; + export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -11929,6 +11622,18 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdat data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -11941,20 +11646,6 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreat data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -12006,6 +11697,20 @@ export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermi data?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolEcosystemCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -12088,27 +11793,6 @@ export interface DataToolEcosystemLocalizationRequest { export type DataToolResponseMeta = { [key: string]: any }; -export type DataToolLocalizations = { - data?: DataTool[]; -}; - -export interface DataTool { - name: string; - description?: string; - site?: string; - languages?: DataToolLanguages; - data_tool_resource_types?: DataToolDataToolResourceTypes; - geography?: string; - data_tool_ecosystems?: DataToolDataToolEcosystems; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolCreatedBy; - updatedBy?: DataToolUpdatedBy; - localizations?: DataToolLocalizations; - locale?: string; -} - export interface DataToolResponseDataObject { id?: number; attributes?: DataTool; @@ -12119,6 +11803,10 @@ export interface DataToolResponse { meta?: DataToolResponseMeta; } +export type DataToolLocalizations = { + data?: DataTool[]; +}; + export type DataToolUpdatedByDataAttributes = { [key: string]: any }; export type DataToolUpdatedByData = { @@ -12130,6 +11818,23 @@ export type DataToolUpdatedBy = { data?: DataToolUpdatedByData; }; +export interface DataTool { + name: string; + description?: string; + site?: string; + languages?: DataToolLanguages; + data_tool_resource_types?: DataToolDataToolResourceTypes; + geography?: string; + data_tool_ecosystems?: DataToolDataToolEcosystems; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolCreatedBy; + updatedBy?: DataToolUpdatedBy; + localizations?: DataToolLocalizations; + locale?: string; +} + export type DataToolCreatedByDataAttributes = { [key: string]: any }; export type DataToolCreatedByData = { @@ -12163,6 +11868,11 @@ export type DataToolDataToolResourceTypes = { data?: DataToolDataToolResourceTypesDataItem[]; }; +export type DataToolLanguagesDataItem = { + id?: number; + attributes?: DataToolLanguagesDataItemAttributes; +}; + export type DataToolLanguages = { data?: DataToolLanguagesDataItem[]; }; @@ -12182,24 +11892,6 @@ export type DataToolLanguagesDataItemAttributesUpdatedBy = { data?: DataToolLanguagesDataItemAttributesUpdatedByData; }; -export type DataToolLanguagesDataItemAttributes = { - name?: string; - slug?: string; - data_tool?: DataToolLanguagesDataItemAttributesDataTool; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesLocalizations; - locale?: string; -}; - -export type DataToolLanguagesDataItem = { - id?: number; - attributes?: DataToolLanguagesDataItemAttributes; -}; - export type DataToolLanguagesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; export type DataToolLanguagesDataItemAttributesCreatedByData = { @@ -12215,10 +11907,45 @@ export type DataToolLanguagesDataItemAttributesDataTool = { data?: DataToolLanguagesDataItemAttributesDataToolData; }; +export type DataToolLanguagesDataItemAttributes = { + name?: string; + slug?: string; + data_tool?: DataToolLanguagesDataItemAttributesDataTool; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesUpdatedBy; + localizations?: DataToolLanguagesDataItemAttributesLocalizations; + locale?: string; +}; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizations = { data?: unknown[]; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributes = { + name?: string; + description?: string; + site?: string; + languages?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguages; + data_tool_resource_types?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes; + geography?: string; + data_tool_ecosystems?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystems; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesUpdatedBy; + localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizations; + locale?: string; +}; + +export type DataToolLanguagesDataItemAttributesDataToolData = { + id?: number; + attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributes; +}; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -12245,37 +11972,10 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedBy = data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItem = { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributes; -}; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystems = { data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItem[]; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributes = { - name?: string; - description?: string; - site?: string; - languages?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLanguages; - data_tool_resource_types?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypes; - geography?: string; - data_tool_ecosystems?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystems; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesLocalizations; - locale?: string; -}; - -export type DataToolLanguagesDataItemAttributesDataToolData = { - id?: number; - attributes?: DataToolLanguagesDataItemAttributesDataToolDataAttributes; -}; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations = { data?: unknown[]; @@ -12295,6 +11995,23 @@ 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 }; @@ -12309,18 +12026,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEco data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributes = - { - name?: string; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesUpdatedBy; - localizations?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolEcosystemsDataItemAttributesLocalizations; - locale?: string; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItem = { id?: number; @@ -12387,24 +12092,6 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedBy; - }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -12430,6 +12117,24 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesUpdatedBy; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -12444,22 +12149,6 @@ 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 }; - export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { id?: number; @@ -12471,20 +12160,22 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + name?: string; + code?: string; + description?: string; + users?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -12538,6 +12229,20 @@ export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolRes data?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type DataToolLanguagesDataItemAttributesDataToolDataAttributesDataToolResourceTypesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -12619,6 +12324,12 @@ export interface DataToolLocalizationResponse { meta?: DataToolLocalizationResponseMeta; } +export type DataToolRequestDataDataToolEcosystemsItem = number | string; + +export type DataToolRequestDataDataToolResourceTypesItem = number | string; + +export type DataToolRequestDataLanguagesItem = number | string; + export type DataToolRequestData = { name: string; description?: string; @@ -12634,12 +12345,6 @@ 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; @@ -12659,11 +12364,6 @@ export interface DataToolLocalizationRequest { export type DataSourceResponseMeta = { [key: string]: any }; -export interface DataSourceResponseDataObject { - id?: number; - attributes?: DataSource; -} - export interface DataSourceResponse { data?: DataSourceResponseDataObject; meta?: DataSourceResponseMeta; @@ -12684,15 +12384,6 @@ export type DataSourceUpdatedBy = { data?: DataSourceUpdatedByData; }; -export type DataSourceCreatedByData = { - id?: number; - attributes?: DataSourceCreatedByDataAttributes; -}; - -export type DataSourceCreatedBy = { - data?: DataSourceCreatedByData; -}; - export interface DataSource { slug: string; title: string; @@ -12705,6 +12396,37 @@ export interface DataSource { locale?: string; } +export interface DataSourceResponseDataObject { + id?: number; + attributes?: DataSource; +} + +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 DataSourceCreatedByData = { + id?: number; + attributes?: DataSourceCreatedByDataAttributes; +}; + +export type DataSourceCreatedBy = { + data?: DataSourceCreatedByData; +}; + export type DataSourceCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type DataSourceCreatedByDataAttributesUpdatedByData = { @@ -12727,25 +12449,25 @@ export type DataSourceCreatedByDataAttributesCreatedBy = { data?: DataSourceCreatedByDataAttributesCreatedByData; }; -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; +export type DataSourceCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: DataSourceCreatedByDataAttributesCreatedBy; - updatedBy?: DataSourceCreatedByDataAttributesUpdatedBy; + createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type DataSourceCreatedByDataAttributesRoles = { + data?: DataSourceCreatedByDataAttributesRolesDataItem[]; }; export type DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { @@ -12774,34 +12496,6 @@ export type DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedBy = data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -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 DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = - { - id?: number; - attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; - }; - -export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = - { - data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; - }; - export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -12828,6 +12522,17 @@ export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -12943,22 +12648,6 @@ export interface DataSourceLocalizationRequest { export type DataInfoResponseMeta = { [key: string]: any }; -export type DataInfoLocalizations = { - data?: DataInfo[]; -}; - -export interface DataInfo { - slug: string; - content?: string; - data_sources?: DataInfoDataSources; - createdAt?: string; - updatedAt?: string; - createdBy?: DataInfoCreatedBy; - updatedBy?: DataInfoUpdatedBy; - localizations?: DataInfoLocalizations; - locale?: string; -} - export interface DataInfoResponseDataObject { id?: number; attributes?: DataInfo; @@ -12969,6 +12658,10 @@ export interface DataInfoResponse { meta?: DataInfoResponseMeta; } +export type DataInfoLocalizations = { + data?: DataInfo[]; +}; + export type DataInfoUpdatedByDataAttributes = { [key: string]: any }; export type DataInfoUpdatedByData = { @@ -13016,7 +12709,17 @@ export type DataInfoDataSources = { data?: DataInfoDataSourcesDataItem[]; }; -export type DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; +export interface DataInfo { + slug: string; + content?: string; + data_sources?: DataInfoDataSources; + createdAt?: string; + updatedAt?: string; + createdBy?: DataInfoCreatedBy; + updatedBy?: DataInfoUpdatedBy; + localizations?: DataInfoLocalizations; + locale?: string; +} export type DataInfoDataSourcesDataItemAttributesUpdatedByData = { id?: number; @@ -13027,6 +12730,13 @@ export type DataInfoDataSourcesDataItemAttributesUpdatedBy = { data?: DataInfoDataSourcesDataItemAttributesUpdatedByData; }; +export type DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; + +export type DataInfoDataSourcesDataItemAttributesCreatedByData = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes; +}; + export type DataInfoDataSourcesDataItemAttributesCreatedBy = { data?: DataInfoDataSourcesDataItemAttributesCreatedByData; }; @@ -13057,6 +12767,18 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedB data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData; }; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; @@ -13083,11 +12805,6 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes = { updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedBy; }; -export type DataInfoDataSourcesDataItemAttributesCreatedByData = { - id?: number; - attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes; -}; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -13141,18 +12858,6 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -13209,11 +12914,6 @@ export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDat data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; }; -export interface DataInfoListResponse { - data?: DataInfoListResponseDataItem[]; - meta?: DataInfoListResponseMeta; -} - export type DataInfoListResponseMetaPagination = { page?: number; pageSize?: number; @@ -13230,6 +12930,11 @@ export interface DataInfoListResponseDataItem { attributes?: DataInfo; } +export interface DataInfoListResponse { + data?: DataInfoListResponseDataItem[]; + meta?: DataInfoListResponseMeta; +} + export type DataInfoLocalizationListResponseMetaPagination = { page?: number; pageSize?: number; @@ -13375,6 +13080,15 @@ export type ContactDetailCreatedByDataAttributesCreatedBy = { data?: ContactDetailCreatedByDataAttributesCreatedByData; }; +export type ContactDetailCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type ContactDetailCreatedByDataAttributesRoles = { + data?: ContactDetailCreatedByDataAttributesRolesDataItem[]; +}; + export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -13388,6 +13102,10 @@ export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy data?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { + data?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByData; +}; + export type ContactDetailCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; @@ -13400,15 +13118,6 @@ export type ContactDetailCreatedByDataAttributesRolesDataItemAttributes = { updatedBy?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type ContactDetailCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributes; -}; - -export type ContactDetailCreatedByDataAttributesRoles = { - data?: ContactDetailCreatedByDataAttributesRolesDataItem[]; -}; - export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -13418,10 +13127,6 @@ export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; -export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesCreatedByData; -}; - export type ContactDetailCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: ContactDetailCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; From 0f5a23221731025d4acb04536588c50337a55928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 12 Sep 2024 12:09:54 +0200 Subject: [PATCH 2/9] Fix errors related to the new models --- .../src/containers/homepage/intro/index.tsx | 72 +++---- .../tables/national-highseas/index.tsx | 7 +- .../map/content/map/popup/eez/index.tsx | 194 ++++++------------ .../map/content/map/popup/index.tsx | 8 +- .../map/content/map/popup/regions/index.tsx | 146 ++++++------- .../panels/modelling/widget/index.tsx | 94 +++++---- frontend/src/pages/index.tsx | 35 ++-- 7 files changed, 241 insertions(+), 315 deletions(-) diff --git a/frontend/src/containers/homepage/intro/index.tsx b/frontend/src/containers/homepage/intro/index.tsx index 88e0a273..89a1c57a 100644 --- a/frontend/src/containers/homepage/intro/index.tsx +++ b/frontend/src/containers/homepage/intro/index.tsx @@ -11,6 +11,7 @@ import ArrowRight from '@/styles/icons/arrow-right.svg'; import { FCWithMessages } from '@/types'; import { useGetProtectionCoverageStats } from '@/types/generated/protection-coverage-stat'; import { useGetStaticIndicators } from '@/types/generated/static-indicator'; +import { ProtectionCoverageStatListResponseDataItem } from '@/types/generated/strapi.schemas'; type IntroProps = { onScrollClick: () => void; @@ -20,29 +21,35 @@ const Intro: FCWithMessages = ({ onScrollClick }) => { const t = useTranslations('containers.homepage-intro'); const locale = useLocale(); - const { - data: { data: protectionStatsData }, - } = useGetProtectionCoverageStats( - { - locale, - filters: { - location: { - code: 'GLOB', + const { data: protectionStatsData } = + useGetProtectionCoverageStats( + { + locale, + filters: { + location: { + code: 'GLOB', + }, + is_last_year: { + $eq: true, + }, + environment: { + slug: { + $eq: 'marine', + }, + }, }, + populate: 'location,environment', + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + 'sort[year]': 'desc', + 'pagination[limit]': 1, }, - populate: 'location', - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - 'sort[year]': 'desc', - 'pagination[limit]': -1, - }, - { - query: { - select: ({ data }) => ({ data }), - placeholderData: { data: [] }, - }, - } - ); + { + query: { + select: ({ data }) => data?.[0], + }, + } + ); const { data: protectedTerrestrialInlandAreasData } = useGetStaticIndicators( { @@ -62,26 +69,9 @@ const Intro: FCWithMessages = ({ onScrollClick }) => { const formattedOceanProtectedAreaPercentage = useMemo(() => { if (!protectionStatsData) return null; - const lastProtectionDataYear = Math.max( - ...protectionStatsData.map(({ attributes }) => attributes.year) - ); - - const protectionStats = protectionStatsData.filter( - ({ attributes }) => attributes.year === lastProtectionDataYear - ); - - const totalMarineArea = - protectionStats[0]?.attributes?.location?.data?.attributes?.totalMarineArea; - - const protectedArea = protectionStats.reduce( - (acc, { attributes }) => acc + attributes?.cumSumProtectedArea, - 0 - ); - const coveragePercentage = (protectedArea * 100) / totalMarineArea; - - if (Number.isNaN(coveragePercentage)) return null; - - return formatPercentage(locale, coveragePercentage, { displayPercentageSign: false }); + return formatPercentage(locale, protectionStatsData.attributes.coverage, { + displayPercentageSign: false, + }); }, [locale, protectionStatsData]); return ( 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 22d85151..c02e7613 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 @@ -11,12 +11,11 @@ import Table from '@/containers/map/content/details/table'; import useColumns from '@/containers/map/content/details/tables/national-highseas/useColumns'; import { FCWithMessages } from '@/types'; import { useGetLocations } from '@/types/generated/location'; -import { MpaListResponseDataItem } from '@/types/generated/strapi.schemas'; +import { useGetPas } from '@/types/generated/pa'; +import { PaListResponseDataItem } from '@/types/generated/strapi.schemas'; import SortingButton from '../../table/sorting-button'; -import { useGetMpas } from '@/types/generated/mpa'; - const NationalHighseasTable: FCWithMessages = () => { const { query: { locationCode = 'GLOB' }, @@ -81,7 +80,7 @@ const NationalHighseasTable: FCWithMessages = () => { }, }; - const { data: mpasData }: { data: MpaListResponseDataItem[] } = useGetMpas( + const { data: mpasData }: { data: PaListResponseDataItem[] } = useGetPas( { locale, filters: { 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 77cfb83e..0a6c5402 100644 --- a/frontend/src/containers/map/content/map/popup/eez/index.tsx +++ b/frontend/src/containers/map/content/map/popup/eez/index.tsx @@ -5,7 +5,6 @@ import { useMap } from 'react-map-gl'; import { useParams } from 'next/navigation'; import { useRouter } from 'next/router'; -import { useQueries } from '@tanstack/react-query'; import type { Feature } from 'geojson'; import { useAtom, useAtomValue } from 'jotai'; import { useLocale, useTranslations } from 'next-intl'; @@ -17,9 +16,8 @@ import { bboxLocation, layersInteractiveIdsAtom, popupAtom } from '@/containers/ import { formatPercentage, formatKM } from '@/lib/utils/formats'; import { FCWithMessages } from '@/types'; import { useGetLayersId } from '@/types/generated/layer'; -import { getGetLocationsQueryOptions } from '@/types/generated/location'; -import { getGetProtectionCoverageStatsQueryOptions } from '@/types/generated/protection-coverage-stat'; -import { ProtectionCoverageStatListResponseDataItem } from '@/types/generated/strapi.schemas'; +import { useGetProtectionCoverageStats } from '@/types/generated/protection-coverage-stat'; +import { ProtectionCoverageStat } from '@/types/generated/strapi.schemas'; import { LayerTyped } from '@/types/layers'; const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { @@ -37,31 +35,20 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { const layersInteractiveIds = useAtomValue(layersInteractiveIdsAtom); - const layerQuery = useGetLayersId<{ - source: LayerTyped['config']['source']; - click: LayerTyped['interaction_config']['events'][0]; - }>( + const { data: source } = useGetLayersId( layerId, { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - locale, - populate: 'metadata', + fields: ['config'], }, { query: { - select: ({ data }) => ({ - source: (data.attributes as LayerTyped).config?.source, - click: (data.attributes as LayerTyped)?.interaction_config?.events.find( - (ev) => ev.type === 'click' - ), - }), + select: ({ data }) => (data.attributes as LayerTyped).config?.source, }, } ); - const { source } = layerQuery.data; - const DATA = useMemo(() => { if (source?.type === 'vector' && rendered && popup && map) { const point = map.project(popup.lngLat); @@ -93,122 +80,63 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { return DATA_REF.current; }, [popup, source, layersInteractiveIds, map, rendered]); - const locationCodes = Object.keys(DATA || {}) + const selectedLocationCode: string = Object.keys(DATA || {}) .filter((key) => key.startsWith('ISO_') && DATA[key]) .map((key) => DATA[key]) - .filter((code, index, codes) => { + .find((code, index, codes) => { if (codes.length > 1) return code === locationCode; return true; }); - const locationQueries = useQueries({ - queries: locationCodes.map((code) => - getGetLocationsQueryOptions( - { - locale, - filters: { - code, + const { data: protectionCoverageStats, isFetching } = + useGetProtectionCoverageStats( + { + locale, + filters: { + location: { + code: selectedLocationCode, }, - }, - { - query: { - enabled: Boolean(code), - select: ({ data }) => data?.[0]?.attributes, + is_last_year: { + $eq: true, }, - } - ) - ), - }); - - const locationsData = useMemo( - () => - locationQueries - .map((query) => { - if (['loading', 'error'].includes(query.status)) return null; - - return query.data; - }) - .filter((d) => Boolean(d)), - [locationQueries] - ); - - const protectionCoverageStatsQueries = useQueries({ - queries: locationCodes.map((code) => - getGetProtectionCoverageStatsQueryOptions( - { - locale, - filters: { - location: { - code, + environment: { + slug: { + $eq: 'marine', }, }, - populate: 'location', - // @ts-expect-error this is an issue with Orval typing - 'sort[year]': 'desc', - 'pagination[limit]': -1, }, - { - query: { - select: ({ data }) => { - if (!data?.length) return undefined; - - const latestYear = data[0].attributes.year; - - const latestStats = data.filter((d) => d.attributes.year === latestYear); - - const cumSumProtectedArea = latestStats.reduce( - (acc, entry) => acc + entry.attributes.cumSumProtectedArea, - 0 - ); - - return { - cumSumProtectedArea, - }; - }, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + populate: { + location: { + fields: ['code', 'marine_bounds', 'totalMarineArea'], }, - } - ) - ), - }); - - const protectionCoverageStatsData: { cumSumProtectedArea: number }[] = useMemo( - () => - protectionCoverageStatsQueries - .map((query) => { - if (!query.isSuccess) return null; - - return query.data as { - cumSumProtectedArea: ProtectionCoverageStatListResponseDataItem['attributes']['cumSumProtectedArea']; - }; - }) - .filter((d) => Boolean(d)), - [protectionCoverageStatsQueries] - ); - - const totalCumSumProtectedArea = useMemo(() => { - if (!protectionCoverageStatsData.length) return 0; - - return protectionCoverageStatsData.reduce( - (acc, { cumSumProtectedArea }) => acc + cumSumProtectedArea, - 0 + }, + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + fields: ['coverage', 'protectedArea'], + 'pagination[limit]': 1, + }, + { + query: { + enabled: !!selectedLocationCode, + select: ({ data }) => { + if (!data?.length) return undefined; + return data[0].attributes; + }, + }, + } ); - }, [protectionCoverageStatsData]); - - const totalMarineArea = useMemo(() => { - if (!locationsData.length) return 0; - - return locationsData.reduce((acc, { totalMarineArea }) => acc + totalMarineArea, 0); - }, [locationsData]); - const coveragePercentage = useMemo(() => { - if (locationsData.length) { - return formatPercentage(locale, (totalCumSumProtectedArea / totalMarineArea) * 100, { + const formattedCoverage = useMemo(() => { + if (protectionCoverageStats?.coverage !== undefined) { + return formatPercentage(locale, protectionCoverageStats.coverage, { displayPercentageSign: false, }); } return '-'; - }, [locale, totalCumSumProtectedArea, totalMarineArea, locationsData]); + }, [locale, protectionCoverageStats]); const EEZName = useMemo(() => { let name = null; @@ -234,14 +162,14 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { }, [map]); const handleLocationSelected = useCallback(async () => { - if (!locationsData[0]) return undefined; + if (!protectionCoverageStats?.location?.data.attributes) return undefined; - const { code, marine_bounds: bounds } = locationsData[0]; + const { code, marine_bounds: bounds } = protectionCoverageStats.location.data.attributes; await push(`${PAGES.progressTracker}/${code.toUpperCase()}?${searchParams.toString()}`); setLocationBBox(bounds as CustomMapProps['bounds']['bbox']); setPopup({}); - }, [push, searchParams, setLocationBBox, locationsData, setPopup]); + }, [push, searchParams, setLocationBBox, protectionCoverageStats, setPopup]); useEffect(() => { map?.on('render', handleMapRender); @@ -253,43 +181,43 @@ const EEZLayerPopup: FCWithMessages<{ layerId: number }> = ({ layerId }) => { }; }, [map, handleMapRender]); - const isFetchedLocations = locationQueries.every((query) => query.isFetched); - const isFetchingLocations = - !isFetchedLocations && locationQueries.some((query) => query.isFetching); - const isEmptyLocations = isFetchedLocations && locationQueries.some((query) => !query.data); - if (!DATA) return null; return (

{EEZName}

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