From f6e8c41c84d12d2af3a3e5a125aab85aa6ab6599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez=20Mu=C3=B1oz?= Date: Mon, 6 Nov 2023 18:12:09 +0100 Subject: [PATCH 1/2] layer styles and zoom to bounds --- frontend/package.json | 2 +- frontend/src/components/header.tsx | 4 +- .../containers/data-tool/content/index.tsx | 2 +- .../data-tool/content/map/index.tsx | 63 +- .../content/map/layer-manager/item.tsx | 8 +- .../data-tool/content/map/sync-settings.ts | 15 + .../containers/data-tool/sidebar/index.tsx | 15 +- .../sidebar/location-selector/index.tsx | 30 +- .../src/containers/data-tool/sync-settings.ts | 4 +- frontend/src/layouts/.gitkeep | 0 .../src/pages/data-tool/[locationCode].tsx | 14 +- frontend/src/store/data-tool.ts | 3 + frontend/src/styles/globals.css | 3 + .../src/types/generated/strapi.schemas.ts | 2922 +++++++++-------- frontend/yarn.lock | 12 +- 15 files changed, 1743 insertions(+), 1354 deletions(-) delete mode 100644 frontend/src/layouts/.gitkeep create mode 100644 frontend/src/store/data-tool.ts diff --git a/frontend/package.json b/frontend/package.json index 0b770e54..a5c437c7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -54,7 +54,7 @@ "lucide-react": "^0.274.0", "mapbox-gl": "2.15.0", "next": "13.5.6", - "next-usequerystate": "1.8.4", + "next-usequerystate": "1.9.2", "orval": "6.18.1", "postcss": "8.4.21", "react": "18.2.0", diff --git a/frontend/src/components/header.tsx b/frontend/src/components/header.tsx index b24b73d9..59dcb4ee 100644 --- a/frontend/src/components/header.tsx +++ b/frontend/src/components/header.tsx @@ -51,7 +51,7 @@ const Header: React.FC = () => (
-
+ {/*
{navigation.map(({ name, href, colorClassName }) => ( ( {name} ))} -
+
*/}
diff --git a/frontend/src/containers/data-tool/content/index.tsx b/frontend/src/containers/data-tool/content/index.tsx index ee08a3f0..c05e99ea 100644 --- a/frontend/src/containers/data-tool/content/index.tsx +++ b/frontend/src/containers/data-tool/content/index.tsx @@ -7,7 +7,7 @@ const DataToolContent: React.FC = () => { const [{ showDetails }] = useSyncDataToolContentSettings(); return ( -
+
{showDetails &&
}
diff --git a/frontend/src/containers/data-tool/content/map/index.tsx b/frontend/src/containers/data-tool/content/map/index.tsx index 017fb0f3..b9f372e4 100644 --- a/frontend/src/containers/data-tool/content/map/index.tsx +++ b/frontend/src/containers/data-tool/content/map/index.tsx @@ -1,9 +1,12 @@ -import { ComponentProps, useCallback } from 'react'; +import { ComponentProps, useCallback, useEffect } from 'react'; import { useMap } from 'react-map-gl'; +import { LngLatBoundsLike } from 'react-map-gl'; import dynamic from 'next/dynamic'; +import { useParams } from 'next/navigation'; +import { useQueryClient } from '@tanstack/react-query'; import { useAtomValue, useSetAtom } from 'jotai'; import Map, { ZoomControls, Attributions, DrawControls, Drawing } from '@/components/map'; @@ -12,6 +15,7 @@ import SidebarContent from '@/components/sidebar-content'; import LayersToolbox from '@/containers/data-tool/content/map/layers-toolbox'; import { useSyncMapSettings } from '@/containers/data-tool/content/map/sync-settings'; import { cn } from '@/lib/classnames'; +import { sidebarAtom } from '@/store/data-tool'; import { drawStateAtom, layersInteractiveAtom, @@ -19,6 +23,8 @@ import { popupAtom, } from '@/store/map'; import { useGetLayers } from '@/types/generated/layer'; +import { getGetLocationsQueryOptions } from '@/types/generated/location'; +import { LocationListResponse, LocationResponseDataObject } from '@/types/generated/strapi.schemas'; import { LayerTyped } from '@/types/layers'; const LayerManager = dynamic(() => import('@/containers/data-tool/content/map/layer-manager'), { @@ -26,10 +32,18 @@ const LayerManager = dynamic(() => import('@/containers/data-tool/content/map/la }); const DataToolMap: React.FC = () => { - const [{ bbox }, setMapSettings] = useSyncMapSettings(); + const [{ bbox: customBbox }, setMapSettings] = useSyncMapSettings(); const { default: map } = useMap(); const drawState = useAtomValue(drawStateAtom); const setPopup = useSetAtom(popupAtom); + const queryClient = useQueryClient(); + const { locationCode } = useParams(); + const isSidebarOpen = useAtomValue(sidebarAtom); + + const locationData = queryClient.getQueryData([ + 'locations', + locationCode, + ]); const layersInteractive = useAtomValue(layersInteractiveAtom); const layersInteractiveIds = useAtomValue(layersInteractiveIdsAtom); @@ -57,7 +71,7 @@ const DataToolMap: React.FC = () => { .getBounds() .toArray() .flat() - .map((b) => parseFloat(b.toFixed(2))) as typeof bbox, + .map((b) => parseFloat(b.toFixed(2))) as typeof customBbox, })); }, [map, setMapSettings]); @@ -78,12 +92,51 @@ const DataToolMap: React.FC = () => { [layersInteractive, layersInteractiveData, setPopup] ); + const bounds = customBbox ?? (locationData?.attributes?.bounds as LngLatBoundsLike); + + useEffect(() => { + map?.easeTo({ + padding: { + top: 0, + bottom: 0, + left: isSidebarOpen ? 430 : 0, + right: 0, + }, + duration: 500, + }); + }, [isSidebarOpen, map]); + + useEffect(() => { + const { queryKey } = getGetLocationsQueryOptions(); + const d = queryClient.getQueryData(queryKey); + if (d) { + const location = d.data.find(({ attributes }) => attributes.code === locationCode); + + map?.fitBounds(location.attributes.bounds as LngLatBoundsLike, { + padding: { + top: 0, + bottom: 0, + left: isSidebarOpen ? 430 : 0, + right: 0, + }, + }); + } + }, [queryClient, locationCode, isSidebarOpen, map]); + return ( -
+
}); const [, setLayersInteractive] = useAtom(layersInteractiveAtom); const [, setLayersInteractiveIds] = useAtom(layersInteractiveIdsAtom); + const { locationCode } = useParams(); const handleAddMapboxLayer = useCallback( ({ styles }: Config) => { @@ -64,7 +67,10 @@ const LayerManagerItem = ({ id, beforeId, settings }: LayerManagerItemProps) => const c = parseConfig({ config, params_config, - settings, + settings: { + ...settings, + location: locationCode, + }, }); if (!c) return null; diff --git a/frontend/src/containers/data-tool/content/map/sync-settings.ts b/frontend/src/containers/data-tool/content/map/sync-settings.ts index 6235ce66..fa6fb1c2 100644 --- a/frontend/src/containers/data-tool/content/map/sync-settings.ts +++ b/frontend/src/containers/data-tool/content/map/sync-settings.ts @@ -28,3 +28,18 @@ export const useSyncMapLayerSettings = () => { parseAsJson<{ [layerId: number]: Partial }>().withDefault({}) ); }; + +export const useDataToolSearchParams = () => { + const [settings] = useSyncMapSettings(); + const [layers] = useSyncMapLayers(); + const [layerSettings] = useSyncMapLayerSettings(); + const sp = new URLSearchParams(); + sp.set('settings', parseAsJson().serialize(settings)); + sp.set('layers', parseAsArrayOf(parseAsInteger).serialize(layers)); + sp.set( + 'layer-settings', + parseAsJson<{ [layerId: number]: Partial }>().serialize(layerSettings) + ); + + return sp; +}; diff --git a/frontend/src/containers/data-tool/sidebar/index.tsx b/frontend/src/containers/data-tool/sidebar/index.tsx index 56f74f9c..6fea7682 100644 --- a/frontend/src/containers/data-tool/sidebar/index.tsx +++ b/frontend/src/containers/data-tool/sidebar/index.tsx @@ -1,11 +1,10 @@ -import { useState } from 'react'; - -import { useAtomValue } from 'jotai'; +import { useAtom, useAtomValue } from 'jotai'; import { ChevronLeft } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible'; import { cn } from '@/lib/classnames'; +import { sidebarAtom } from '@/store/data-tool'; import { locationAtom } from '@/store/location'; import DetailsButton from './details-button'; @@ -15,12 +14,12 @@ import Widgets from './widgets'; const DataToolSidebar: React.FC = () => { const location = useAtomValue(locationAtom); - const [sidebarOpen, setSidebarOpen] = useState(true); + const [isSidebarOpen, setSidebarOpen] = useAtom(sidebarAtom); return ( @@ -29,11 +28,11 @@ const DataToolSidebar: React.FC = () => { variant="white" className={cn('absolute bottom-0 z-10 h-12 border-l-0 px-1', { 'hidden md:flex': true, - 'left-0': !sidebarOpen, - 'left-[430px] transition-[left] delay-500': sidebarOpen, + 'left-0': !isSidebarOpen, + 'left-[430px] transition-[left] delay-500': isSidebarOpen, })} > - + Toggle sidebar diff --git a/frontend/src/containers/data-tool/sidebar/location-selector/index.tsx b/frontend/src/containers/data-tool/sidebar/location-selector/index.tsx index 12591a3c..157eb3ff 100644 --- a/frontend/src/containers/data-tool/sidebar/location-selector/index.tsx +++ b/frontend/src/containers/data-tool/sidebar/location-selector/index.tsx @@ -1,4 +1,4 @@ -import { useState } from 'react'; +import { useCallback, useState } from 'react'; import { useRouter } from 'next/router'; @@ -18,23 +18,33 @@ import { cn } from '@/lib/classnames'; import { locationAtom } from '@/store/location'; import { useGetLocations } from '@/types/generated/location'; +import { useDataToolSearchParams } from '../../content/map/sync-settings'; + type LocationSelectorProps = { - className: string; + className: HTMLDivElement['className']; }; const LocationSelector: React.FC = ({ className }) => { const location = useAtomValue(locationAtom); - const router = useRouter(); + const { push } = useRouter(); + const searchParams = useDataToolSearchParams(); const [locationPopoverOpen, setLocationPopoverOpen] = useState(false); - const { data: locationsData } = useGetLocations(); + const { data: locationsData } = useGetLocations(null, { + query: { + placeholderData: { data: [] }, + select: ({ data }) => data, + }, + }); - const locations = locationsData?.data || []; + const handleLocationSelected = useCallback( + async (locationCode: string) => { + setLocationPopoverOpen(false); - const handleLocationSelected = (locationCode: string) => { - setLocationPopoverOpen(false); - void router.replace(`${PAGES.dataTool}/${locationCode.toUpperCase()}`); - }; + await push(`${PAGES.dataTool}/${locationCode.toUpperCase()}?${searchParams.toString()}`); + }, + [push, searchParams] + ); return (
@@ -47,7 +57,7 @@ const LocationSelector: React.FC = ({ className }) => { No result - {locations.map(({ attributes }) => { + {locationsData.map(({ attributes }) => { const { name, code, type } = attributes; return ( diff --git a/frontend/src/containers/data-tool/sync-settings.ts b/frontend/src/containers/data-tool/sync-settings.ts index f3122ea4..bc9fa9ee 100644 --- a/frontend/src/containers/data-tool/sync-settings.ts +++ b/frontend/src/containers/data-tool/sync-settings.ts @@ -10,6 +10,8 @@ const DEFAULT_SYNC_CONTENT_SETTINGS: { export const useSyncDataToolContentSettings = () => { return useQueryState( 'content', - parseAsJson().withDefault(DEFAULT_SYNC_CONTENT_SETTINGS) + parseAsJson() + .withOptions({ shallow: false }) + .withDefault(DEFAULT_SYNC_CONTENT_SETTINGS) ); }; diff --git a/frontend/src/layouts/.gitkeep b/frontend/src/layouts/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/frontend/src/pages/data-tool/[locationCode].tsx b/frontend/src/pages/data-tool/[locationCode].tsx index ee487836..694b4974 100644 --- a/frontend/src/pages/data-tool/[locationCode].tsx +++ b/frontend/src/pages/data-tool/[locationCode].tsx @@ -1,3 +1,4 @@ +import { QueryClient, dehydrate } from '@tanstack/react-query'; import { useSetAtom } from 'jotai'; import type { GetServerSideProps } from 'next'; @@ -6,12 +7,14 @@ import Sidebar from '@/containers/data-tool/sidebar'; import Layout from '@/layouts/data-tool'; import { locationAtom } from '@/store/location'; import { getLocations } from '@/types/generated/location'; -import { Location } from '@/types/generated/strapi.schemas'; +import { Location, LocationGroupsDataItem } from '@/types/generated/strapi.schemas'; export const getServerSideProps: GetServerSideProps = async (context) => { const { query } = context; const { locationCode } = query; + const queryClient = new QueryClient(); + const { data: locationsData } = await getLocations({ filters: { code: locationCode, @@ -20,9 +23,16 @@ export const getServerSideProps: GetServerSideProps = async (context) => { const location = locationsData[0]; + queryClient.setQueryData(['locations', locationCode], location); + if (!location) return { notFound: true }; - return { props: { location: location?.attributes } }; + return { + props: { + location: location?.attributes, + dehydratedState: dehydrate(queryClient), + }, + }; }; export default function Page({ location }: { location: Location }) { diff --git a/frontend/src/store/data-tool.ts b/frontend/src/store/data-tool.ts new file mode 100644 index 00000000..483b0c45 --- /dev/null +++ b/frontend/src/store/data-tool.ts @@ -0,0 +1,3 @@ +import { atom } from 'jotai'; + +export const sidebarAtom = atom(true); diff --git a/frontend/src/styles/globals.css b/frontend/src/styles/globals.css index e2c47656..4e762d99 100644 --- a/frontend/src/styles/globals.css +++ b/frontend/src/styles/globals.css @@ -5,6 +5,9 @@ .mapboxgl-ctrl-bottom-right { @apply !right-[335px]; } +.mapboxgl-ctrl-bottom-left { + @apply !right-[345px] !bottom-5 !left-auto; +} .mapboxgl-ctrl-attrib-button { @apply !p-0; diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index 4f42300c..ecb2eaee 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -684,21 +684,6 @@ export interface ProtectionStatusResponse { meta?: ProtectionStatusResponseMeta; } -export interface ProtectionStatus { - slug: string; - name: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionStatusCreatedBy; - updatedBy?: ProtectionStatusUpdatedBy; -} - -export interface ProtectionStatusResponseDataObject { - id?: number; - attributes?: ProtectionStatus; -} - export type ProtectionStatusUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusUpdatedByData = { @@ -719,6 +704,21 @@ export type ProtectionStatusCreatedBy = { data?: ProtectionStatusCreatedByData; }; +export interface ProtectionStatus { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedBy; + updatedBy?: ProtectionStatusUpdatedBy; +} + +export interface ProtectionStatusResponseDataObject { + id?: number; + attributes?: ProtectionStatus; +} + export type ProtectionStatusCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type ProtectionStatusCreatedByDataAttributesUpdatedByData = { @@ -741,6 +741,23 @@ export type ProtectionStatusCreatedByDataAttributesCreatedBy = { data?: ProtectionStatusCreatedByDataAttributesCreatedByData; }; +export type ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type ProtectionStatusCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: ProtectionStatusCreatedByDataAttributesRolesDataItemAttributes; +}; + export type ProtectionStatusCreatedByDataAttributesRoles = { data?: ProtectionStatusCreatedByDataAttributesRolesDataItem[]; }; @@ -786,6 +803,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; @@ -795,23 +826,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 }; @@ -854,20 +868,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 }; @@ -903,11 +903,18 @@ export interface ProtectionStatusListResponse { export type ProtectionCoverageStatResponseMeta = { [key: string]: any }; +export interface ProtectionCoverageStatResponseDataObject { + id?: number; + attributes?: ProtectionCoverageStat; +} + export interface ProtectionCoverageStatResponse { data?: ProtectionCoverageStatResponseDataObject; meta?: ProtectionCoverageStatResponseMeta; } +export type ProtectionCoverageStatUpdatedByDataAttributes = { [key: string]: any }; + export type ProtectionCoverageStatUpdatedByData = { id?: number; attributes?: ProtectionCoverageStatUpdatedByDataAttributes; @@ -917,26 +924,6 @@ export type ProtectionCoverageStatUpdatedBy = { data?: ProtectionCoverageStatUpdatedByData; }; -export interface ProtectionCoverageStat { - location?: ProtectionCoverageStatLocation; - protection_status?: ProtectionCoverageStatProtectionStatus; - year: number; - cumSumProtectedArea: number; - protectedArea?: number; - protectedAreasCount: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatCreatedBy; - updatedBy?: ProtectionCoverageStatUpdatedBy; -} - -export interface ProtectionCoverageStatResponseDataObject { - id?: number; - attributes?: ProtectionCoverageStat; -} - -export type ProtectionCoverageStatUpdatedByDataAttributes = { [key: string]: any }; - export type ProtectionCoverageStatCreatedByDataAttributes = { [key: string]: any }; export type ProtectionCoverageStatCreatedByData = { @@ -959,15 +946,23 @@ export type ProtectionCoverageStatProtectionStatus = { data?: ProtectionCoverageStatProtectionStatusData; }; -export type ProtectionCoverageStatLocationData = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributes; -}; - export type ProtectionCoverageStatLocation = { data?: ProtectionCoverageStatLocationData; }; +export interface ProtectionCoverageStat { + location?: ProtectionCoverageStatLocation; + protection_status?: ProtectionCoverageStatProtectionStatus; + year: number; + cumSumProtectedArea: number; + protectedArea?: number; + protectedAreasCount: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatCreatedBy; + updatedBy?: ProtectionCoverageStatUpdatedBy; +} + export type ProtectionCoverageStatLocationDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -981,22 +976,6 @@ export type ProtectionCoverageStatLocationDataAttributesUpdatedBy = { data?: ProtectionCoverageStatLocationDataAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: ProtectionCoverageStatLocationDataAttributesGroups; - members?: ProtectionCoverageStatLocationDataAttributesMembers; - fishing_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesUpdatedBy; -}; - export type ProtectionCoverageStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -1010,20 +989,6 @@ export type ProtectionCoverageStatLocationDataAttributesCreatedBy = { data?: ProtectionCoverageStatLocationDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = - { - location?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -1033,6 +998,28 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; +export type ProtectionCoverageStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: ProtectionCoverageStatLocationDataAttributesGroups; + members?: ProtectionCoverageStatLocationDataAttributesMembers; + fishing_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stats?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats; + protection_coverage_stats?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStats; + bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesUpdatedBy; +}; + +export type ProtectionCoverageStatLocationData = { + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributes; +}; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -1061,6 +1048,17 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; + }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = { id?: number; @@ -1072,6 +1070,20 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; }; +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + protection_status?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + year?: number; + cumSumProtectedArea?: number; + protectedArea?: number; + protectedAreasCount?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -1086,17 +1098,6 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1125,6 +1126,11 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; @@ -1154,11 +1160,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1237,17 +1238,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; @@ -1285,29 +1275,40 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = @@ -1321,15 +1322,33 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = +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 = { id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + attributes?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = { - data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = @@ -1360,19 +1379,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; -export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -1384,24 +1390,6 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -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 ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -1441,6 +1429,19 @@ export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelSt data?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type ProtectionCoverageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -1627,10 +1628,6 @@ export type MpaaProtectionLevelStatMpaaProtectionLevel = { data?: MpaaProtectionLevelStatMpaaProtectionLevelData; }; -export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByData = { id?: number; attributes?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; @@ -1650,6 +1647,7 @@ export type MpaaProtectionLevelStatLocationDataAttributes = { fishing_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; mpaa_protection_level_stats?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats; + bounds?: unknown; createdAt?: string; updatedAt?: string; createdBy?: MpaaProtectionLevelStatLocationDataAttributesCreatedBy; @@ -1665,6 +1663,10 @@ export type MpaaProtectionLevelStatLocation = { data?: MpaaProtectionLevelStatLocationData; }; +export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + export type MpaaProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -1715,17 +1717,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - }; - export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = { id?: number; @@ -1765,6 +1756,17 @@ export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStats data?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; }; +export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; + }; + export type MpaaProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1816,17 +1818,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = - { - location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1841,15 +1832,20 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = { - id?: number; - attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; }; -export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { - data?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + location?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; }; export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = @@ -1891,6 +1887,12 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; }; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + }; + export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -2014,6 +2016,24 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + }; + export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2039,24 +2059,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -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 }; @@ -2085,6 +2087,20 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +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 MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -2151,20 +2167,6 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -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 MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -2242,26 +2244,16 @@ export interface MpaaProtectionLevelStatListResponse { export type MpaaProtectionLevelResponseMeta = { [key: string]: any }; -export interface MpaaProtectionLevelResponse { - data?: MpaaProtectionLevelResponseDataObject; - meta?: MpaaProtectionLevelResponseMeta; -} - -export interface MpaaProtectionLevel { - slug: string; - name: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedBy; - updatedBy?: MpaaProtectionLevelUpdatedBy; -} - export interface MpaaProtectionLevelResponseDataObject { id?: number; attributes?: MpaaProtectionLevel; } +export interface MpaaProtectionLevelResponse { + data?: MpaaProtectionLevelResponseDataObject; + meta?: MpaaProtectionLevelResponseMeta; +} + export type MpaaProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; export type MpaaProtectionLevelUpdatedByData = { @@ -2273,16 +2265,43 @@ export type MpaaProtectionLevelUpdatedBy = { data?: MpaaProtectionLevelUpdatedByData; }; -export type MpaaProtectionLevelCreatedByData = { - id?: number; - attributes?: MpaaProtectionLevelCreatedByDataAttributes; -}; - -export type MpaaProtectionLevelCreatedBy = { - data?: MpaaProtectionLevelCreatedByData; -}; +export interface MpaaProtectionLevel { + slug: string; + name: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelCreatedBy; + updatedBy?: MpaaProtectionLevelUpdatedBy; +} -export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { +export type MpaaProtectionLevelCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaaProtectionLevelCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelCreatedByDataAttributesUpdatedBy; +}; + +export type MpaaProtectionLevelCreatedByData = { + id?: number; + attributes?: MpaaProtectionLevelCreatedByDataAttributes; +}; + +export type MpaaProtectionLevelCreatedBy = { + data?: MpaaProtectionLevelCreatedByData; +}; + +export type MpaaProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -2308,18 +2327,6 @@ export type MpaaProtectionLevelCreatedByDataAttributesCreatedBy = { data?: MpaaProtectionLevelCreatedByDataAttributesCreatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes; @@ -2329,23 +2336,6 @@ export type MpaaProtectionLevelCreatedByDataAttributesRoles = { data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItem[]; }; -export type MpaaProtectionLevelCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaaProtectionLevelCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaProtectionLevelCreatedByDataAttributesCreatedBy; - updatedBy?: MpaaProtectionLevelCreatedByDataAttributesUpdatedBy; -}; - export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2358,6 +2348,18 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpd data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2393,11 +2395,6 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPer data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; - }; - export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -2421,6 +2418,11 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPer attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = + { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + }; + export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -2470,18 +2472,6 @@ export interface MpaaProtectionLevelListResponse { export type MpaaEstablishmentStageStatResponseMeta = { [key: string]: any }; -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; @@ -2503,6 +2493,18 @@ export type MpaaEstablishmentStageStatUpdatedBy = { data?: MpaaEstablishmentStageStatUpdatedByData; }; +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 MpaaEstablishmentStageStatCreatedByDataAttributes = { [key: string]: any }; export type MpaaEstablishmentStageStatCreatedByData = { @@ -2525,6 +2527,16 @@ export type MpaaEstablishmentStageStatProtectionStatus = { data?: MpaaEstablishmentStageStatProtectionStatusData; }; +export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedBy; +}; + export type MpaaEstablishmentStageStatMpaaEstablishmentStageData = { id?: number; attributes?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes; @@ -2546,16 +2558,6 @@ export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdate data?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesUpdatedBy; -}; - export type MpaaEstablishmentStageStatMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2590,22 +2592,6 @@ 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; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedBy; -}; - export type MpaaEstablishmentStageStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -2642,6 +2628,23 @@ export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageSt 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; + bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesUpdatedBy; +}; + export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -2695,17 +2698,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageSt data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2720,6 +2712,17 @@ export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageSt data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; }; +export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -2734,17 +2737,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageSt data?: MpaaEstablishmentStageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = - { - location?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { id?: number; attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; @@ -2782,6 +2774,17 @@ export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelS data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = { id?: number; @@ -2807,17 +2810,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelS data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2846,6 +2838,28 @@ export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelS data?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = + { + location?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes; @@ -2869,29 +2883,24 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy = { - location?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = @@ -2913,12 +2922,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = { data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; @@ -2935,10 +2938,10 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; }; export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = @@ -2955,24 +2958,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByData; }; -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 MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -2998,6 +2983,24 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; }; +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedBy; + }; + export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3012,6 +3015,19 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +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 }; @@ -3026,22 +3042,29 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - name?: string; - code?: string; - description?: string; - users?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + id?: number; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + }; + +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = + { + data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = @@ -3086,26 +3109,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -3377,10 +3380,6 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; -}; - export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -3389,6 +3388,10 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; +}; + export type MpaaEstablishmentStageListResponseMetaPagination = { page?: number; pageSize?: number; @@ -3412,11 +3415,6 @@ export interface MpaaEstablishmentStageListResponse { export type MpaProtectionCoverageStatResponseMeta = { [key: string]: any }; -export interface MpaProtectionCoverageStatResponseDataObject { - id?: number; - attributes?: MpaProtectionCoverageStat; -} - export interface MpaProtectionCoverageStatResponse { data?: MpaProtectionCoverageStatResponseDataObject; meta?: MpaProtectionCoverageStatResponseMeta; @@ -3445,6 +3443,11 @@ export interface MpaProtectionCoverageStat { updatedBy?: MpaProtectionCoverageStatUpdatedBy; } +export interface MpaProtectionCoverageStatResponseDataObject { + id?: number; + attributes?: MpaProtectionCoverageStat; +} + export type MpaProtectionCoverageStatCreatedByDataAttributes = { [key: string]: any }; export type MpaProtectionCoverageStatCreatedByData = { @@ -3511,20 +3514,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesUpdatedBy = { data?: MpaProtectionCoverageStatMpaDataAttributesUpdatedByData; }; -export type MpaProtectionCoverageStatMpaDataAttributes = { - wdpaid?: number; - name?: string; - area?: number; - year?: number; - mpaa_establishment_stage?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStage; - protection_status?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatus; - mpa_protection_coverage_stats?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionCoverageStatMpaDataAttributesCreatedBy; - updatedBy?: MpaProtectionCoverageStatMpaDataAttributesUpdatedBy; -}; - export type MpaProtectionCoverageStatMpaDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -3538,6 +3527,19 @@ export type MpaProtectionCoverageStatMpaDataAttributesCreatedBy = { data?: MpaProtectionCoverageStatMpaDataAttributesCreatedByData; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributes = + { + mpa?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpa; + fishing_protection_level?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevel; + mpaa_protection_level?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevel; + location?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocation; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItem = { id?: number; attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributes; @@ -3547,6 +3549,20 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItem[]; }; +export type MpaProtectionCoverageStatMpaDataAttributes = { + wdpaid?: number; + name?: string; + area?: number; + year?: number; + mpaa_establishment_stage?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStage; + protection_status?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatus; + mpa_protection_coverage_stats?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionCoverageStatMpaDataAttributesCreatedBy; + updatedBy?: MpaProtectionCoverageStatMpaDataAttributesUpdatedBy; +}; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3561,19 +3577,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributes = - { - mpa?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpa; - fishing_protection_level?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevel; - mpaa_protection_level?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevel; - location?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocation; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesUpdatedBy; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3599,6 +3602,7 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats fishing_protection_level_stats?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStats; mpaa_protection_level_stats?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStats; + bounds?: unknown; createdAt?: string; updatedAt?: string; createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesCreatedBy; @@ -3644,6 +3648,20 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesCreatedByData; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + protection_status?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + year?: number; + cumSumProtectedArea?: number; + protectedArea?: number; + protectedAreasCount?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; @@ -3669,20 +3687,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes = - { - location?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3750,6 +3754,17 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = + { + location?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3792,17 +3807,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = - { - location?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { location?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; @@ -3853,11 +3857,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = - { - data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { [key: string]: any }; @@ -3867,6 +3866,11 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = + { + data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -3909,17 +3913,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroupsDataItem[]; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelData = - { - id?: number; - attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributes; - }; - -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevel = - { - data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelData; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -3945,9 +3938,20 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + }; + +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevel = + { + data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelData; + }; + +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; @@ -3959,6 +3963,12 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevel = { data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelData; @@ -4003,12 +4013,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaDataAttributes = { [key: string]: any }; @@ -4023,6 +4027,21 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaData; }; +export type MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttributesCreatedBy; + updatedBy?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttributesUpdatedBy; +}; + +export type MpaProtectionCoverageStatMpaDataAttributesProtectionStatusData = { + id?: number; + attributes?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttributes; +}; + export type MpaProtectionCoverageStatMpaDataAttributesProtectionStatus = { data?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatusData; }; @@ -4053,21 +4072,18 @@ export type MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttrib data?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttributesCreatedByData; }; -export type MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttributesUpdatedBy; +export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData = { + id?: number; + attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributes; }; -export type MpaProtectionCoverageStatMpaDataAttributesProtectionStatusData = { - id?: number; - attributes?: MpaProtectionCoverageStatMpaDataAttributesProtectionStatusDataAttributes; +export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStage = { + data?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesUpdatedByData = { id?: number; @@ -4079,27 +4095,23 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData data?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesUpdatedByData; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedBy; - updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesUpdatedBy; -}; - -export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData = { - id?: number; - attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributes; -}; - -export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStage = { - data?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData; -}; - -export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = + { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesUpdatedBy; + }; export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByData = { @@ -4112,6 +4124,16 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData data?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByData; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedBy; + updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesUpdatedBy; +}; + export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4140,6 +4162,19 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData data?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesCreatedByData; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItem = { id?: number; @@ -4151,24 +4186,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData data?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = - { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesUpdatedBy; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4197,20 +4214,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData data?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -4222,19 +4225,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData data?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -4277,6 +4267,20 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageData data?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -4314,16 +4318,30 @@ export interface MpaProtectionCoverageStatListResponse { export type MpaResponseMeta = { [key: string]: any }; -export interface MpaResponseDataObject { - id?: number; - attributes?: Mpa; -} - export interface MpaResponse { data?: MpaResponseDataObject; meta?: MpaResponseMeta; } +export interface Mpa { + wdpaid?: number; + name: string; + area: number; + year?: number; + mpaa_establishment_stage?: MpaMpaaEstablishmentStage; + protection_status?: MpaProtectionStatus; + mpa_protection_coverage_stats?: MpaMpaProtectionCoverageStats; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaCreatedBy; + updatedBy?: MpaUpdatedBy; +} + +export interface MpaResponseDataObject { + id?: number; + attributes?: Mpa; +} + export type MpaUpdatedByDataAttributes = { [key: string]: any }; export type MpaUpdatedByData = { @@ -4355,20 +4373,6 @@ export type MpaMpaProtectionCoverageStats = { data?: MpaMpaProtectionCoverageStatsDataItem[]; }; -export interface Mpa { - wdpaid?: number; - name: string; - area: number; - year?: number; - mpaa_establishment_stage?: MpaMpaaEstablishmentStage; - protection_status?: MpaProtectionStatus; - mpa_protection_coverage_stats?: MpaMpaProtectionCoverageStats; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaCreatedBy; - updatedBy?: MpaUpdatedBy; -} - export type MpaMpaProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -4395,6 +4399,23 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesCreatedBy = { data?: MpaMpaProtectionCoverageStatsDataItemAttributesCreatedByData; }; +export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroups; + members?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMembers; + fishing_protection_level_stats?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stats?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats; + protection_coverage_stats?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStats; + bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesCreatedBy; + updatedBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesUpdatedBy; +}; + export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationData = { id?: number; attributes?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributes; @@ -4428,22 +4449,6 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesUpdatedByData; }; -export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroups; - members?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMembers; - fishing_protection_level_stats?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStats; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesCreatedBy; - updatedBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesUpdatedBy; -}; - export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -4456,6 +4461,12 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesCreatedByData; }; +export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem = + { + id?: number; + attributes?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes; + }; + export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStats = { data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem[]; @@ -4531,10 +4542,15 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute updatedBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; }; -export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem = +export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { - id?: number; - attributes?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes; + location?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; + mpaa_protection_level?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; }; export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItem = @@ -4562,17 +4578,6 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = - { - location?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; - mpaa_protection_level?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -4640,17 +4645,6 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -4679,6 +4673,17 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; +export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; + export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -4705,6 +4710,10 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMembersDataItem[]; }; +export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroups = { + data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroupsDataItem[]; +}; + export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroupsDataItemAttributes = { [key: string]: any }; @@ -4713,10 +4722,6 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute attributes?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroupsDataItemAttributes; }; -export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroups = { - data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroupsDataItem[]; -}; - export type MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelData = { id?: number; attributes?: MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributes; @@ -4740,16 +4745,6 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDa data?: MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; -}; - export type MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -4764,6 +4759,16 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDa data?: MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; +export type MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; +}; + export type MpaMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelData = { id?: number; attributes?: MpaMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelDataAttributes; @@ -4939,11 +4944,6 @@ export type MpaProtectionStatusDataAttributesCreatedBy = { data?: MpaProtectionStatusDataAttributesCreatedByData; }; -export type MpaMpaaEstablishmentStageData = { - id?: number; - attributes?: MpaMpaaEstablishmentStageDataAttributes; -}; - export type MpaMpaaEstablishmentStage = { data?: MpaMpaaEstablishmentStageData; }; @@ -4959,6 +4959,15 @@ export type MpaMpaaEstablishmentStageDataAttributesUpdatedBy = { data?: MpaMpaaEstablishmentStageDataAttributesUpdatedByData; }; +export type MpaMpaaEstablishmentStageDataAttributesCreatedByData = { + id?: number; + attributes?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributes; +}; + +export type MpaMpaaEstablishmentStageDataAttributesCreatedBy = { + data?: MpaMpaaEstablishmentStageDataAttributesCreatedByData; +}; + export type MpaMpaaEstablishmentStageDataAttributes = { slug?: string; name?: string; @@ -4969,30 +4978,9 @@ export type MpaMpaaEstablishmentStageDataAttributes = { updatedBy?: MpaMpaaEstablishmentStageDataAttributesUpdatedBy; }; -export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesCreatedBy; - updatedBy?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesUpdatedBy; -}; - -export type MpaMpaaEstablishmentStageDataAttributesCreatedByData = { +export type MpaMpaaEstablishmentStageData = { id?: number; - attributes?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributes; -}; - -export type MpaMpaaEstablishmentStageDataAttributesCreatedBy = { - data?: MpaMpaaEstablishmentStageDataAttributesCreatedByData; + attributes?: MpaMpaaEstablishmentStageDataAttributes; }; export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = @@ -5019,15 +5007,27 @@ export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesCreate data?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesCreatedByData; }; -export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItem = { - id?: number; - attributes?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributes; -}; - export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRoles = { data?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItem[]; }; +export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesUpdatedBy; +}; + export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -5042,24 +5042,6 @@ export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesD data?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = - { - data?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; - }; - -export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributes = - { - name?: string; - code?: string; - description?: string; - users?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; - }; - export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5069,6 +5051,11 @@ export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesD attributes?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; +export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = + { + data?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + }; + export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -5080,6 +5067,24 @@ export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesD data?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributes = + { + name?: string; + code?: string; + description?: string; + users?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + }; + +export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributes; +}; + export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -5173,18 +5178,11 @@ export interface MpaListResponse { export type LocationResponseMeta = { [key: string]: any }; -export interface LocationResponseDataObject { - id?: number; - attributes?: Location; -} - export interface LocationResponse { data?: LocationResponseDataObject; meta?: LocationResponseMeta; } -export type LocationUpdatedByDataAttributes = { [key: string]: any }; - export type LocationUpdatedByData = { id?: number; attributes?: LocationUpdatedByDataAttributes; @@ -5194,6 +5192,30 @@ 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; + bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationCreatedBy; + updatedBy?: LocationUpdatedBy; +} + +export interface LocationResponseDataObject { + id?: number; + attributes?: Location; +} + +export type LocationUpdatedByDataAttributes = { [key: string]: any }; + export type LocationCreatedByDataAttributes = { [key: string]: any }; export type LocationCreatedByData = { @@ -5216,22 +5238,6 @@ export type LocationProtectionCoverageStats = { data?: LocationProtectionCoverageStatsDataItem[]; }; -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; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationCreatedBy; - updatedBy?: LocationUpdatedBy; -} - export type LocationMpaaProtectionLevelStatsDataItemAttributes = { [key: string]: any }; export type LocationMpaaProtectionLevelStatsDataItem = { @@ -5265,22 +5271,6 @@ 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_stats?: LocationGroupsDataItemAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: LocationGroupsDataItemAttributesProtectionCoverageStats; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesUpdatedBy; -}; - export type LocationGroupsDataItem = { id?: number; attributes?: LocationGroupsDataItemAttributes; @@ -5321,6 +5311,23 @@ 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; + bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesUpdatedBy; +}; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -5334,19 +5341,6 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes = { - location?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; -}; - export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5360,28 +5354,24 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - }; - -export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; - }; - export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = { data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributes = { + location?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocation; + protection_status?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + year?: number; + cumSumProtectedArea?: number; + protectedArea?: number; + protectedAreasCount?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; +}; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -5410,6 +5400,23 @@ export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttri data?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; }; +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; + }; + +export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = + { + id?: number; + attributes?: LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; + }; + export type LocationGroupsDataItemAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -5458,17 +5465,6 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; - }; - export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = { id?: number; @@ -5504,6 +5500,17 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; + }; + export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5518,10 +5525,6 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; -}; - export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -5531,6 +5534,10 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; }; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; +}; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItem = { id?: number; attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributes; @@ -5568,12 +5575,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; @@ -5603,6 +5604,11 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; @@ -5614,33 +5620,10 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; }; -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 LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; - attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = - { - data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = @@ -5671,20 +5654,30 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes = { - id?: number; - attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + 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 LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { - data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + id?: number; + attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { id?: number; @@ -5709,6 +5702,20 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem = + { + id?: number; + attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributes; + }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRoles = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItem[]; + }; + +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5748,20 +5755,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = - { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -5790,6 +5783,20 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = + { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -5873,31 +5880,16 @@ export interface DocumentationMetadataComponent { export type LayerResponseMeta = { [key: string]: any }; -export interface LayerResponse { - data?: LayerResponseDataObject; - meta?: LayerResponseMeta; -} - -export interface Layer { - title: string; - type?: LayerType; - config: unknown; - params_config: unknown; - legend_config: unknown; - interaction_config?: unknown; - metadata?: DocumentationMetadataComponent; - createdAt?: string; - updatedAt?: string; - publishedAt?: string; - createdBy?: LayerCreatedBy; - updatedBy?: LayerUpdatedBy; -} - export interface LayerResponseDataObject { id?: number; attributes?: Layer; } +export interface LayerResponse { + data?: LayerResponseDataObject; + meta?: LayerResponseMeta; +} + export type LayerUpdatedByDataAttributes = { [key: string]: any }; export type LayerUpdatedByData = { @@ -5918,6 +5910,21 @@ export type LayerCreatedBy = { data?: LayerCreatedByData; }; +export interface Layer { + title: string; + type?: LayerType; + config: unknown; + params_config: unknown; + legend_config: unknown; + interaction_config?: unknown; + metadata?: DocumentationMetadataComponent; + createdAt?: string; + updatedAt?: string; + publishedAt?: string; + createdBy?: LayerCreatedBy; + updatedBy?: LayerUpdatedBy; +} + export type LayerCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; export type LayerCreatedByDataAttributesUpdatedByData = { @@ -5929,6 +5936,17 @@ export type LayerCreatedByDataAttributesUpdatedBy = { data?: LayerCreatedByDataAttributesUpdatedByData; }; +export type LayerCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; + +export type LayerCreatedByDataAttributesCreatedByData = { + id?: number; + attributes?: LayerCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type LayerCreatedByDataAttributesCreatedBy = { + data?: LayerCreatedByDataAttributesCreatedByData; +}; + export type LayerCreatedByDataAttributes = { firstname?: string; lastname?: string; @@ -5946,17 +5964,6 @@ export type LayerCreatedByDataAttributes = { updatedBy?: LayerCreatedByDataAttributesUpdatedBy; }; -export type LayerCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; - -export type LayerCreatedByDataAttributesCreatedByData = { - id?: number; - attributes?: LayerCreatedByDataAttributesCreatedByDataAttributes; -}; - -export type LayerCreatedByDataAttributesCreatedBy = { - data?: LayerCreatedByDataAttributesCreatedByData; -}; - export type LayerCreatedByDataAttributesRolesDataItem = { id?: number; attributes?: LayerCreatedByDataAttributesRolesDataItemAttributes; @@ -5979,18 +5986,6 @@ export type LayerCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { data?: LayerCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; -export type LayerCreatedByDataAttributesRolesDataItemAttributes = { - name?: string; - code?: string; - description?: string; - users?: LayerCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissions; - createdAt?: string; - updatedAt?: string; - createdBy?: LayerCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: LayerCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; -}; - export type LayerCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -6004,28 +5999,22 @@ export type LayerCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { data?: LayerCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; -}; - -export type LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - id?: number; - attributes?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; -}; - export type LayerCreatedByDataAttributesRolesDataItemAttributesPermissions = { data?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; }; +export type LayerCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: LayerCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: LayerCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6067,6 +6056,24 @@ export type LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataIt data?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; +export type LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; +}; + +export type LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { + id?: number; + attributes?: LayerCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; +}; + export type LayerCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any; }; @@ -6135,11 +6142,6 @@ export interface LayerRequest { export type HabitatStatResponseMeta = { [key: string]: any }; -export interface HabitatStatResponseDataObject { - id?: number; - attributes?: HabitatStat; -} - export interface HabitatStatResponse { data?: HabitatStatResponseDataObject; meta?: HabitatStatResponseMeta; @@ -6167,25 +6169,6 @@ export type HabitatStatCreatedBy = { data?: HabitatStatCreatedByData; }; -export type HabitatStatHabitatDataAttributes = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatHabitatDataAttributesCreatedBy; - updatedBy?: HabitatStatHabitatDataAttributesUpdatedBy; -}; - -export type HabitatStatHabitatData = { - id?: number; - attributes?: HabitatStatHabitatDataAttributes; -}; - -export type HabitatStatHabitat = { - data?: HabitatStatHabitatData; -}; - export interface HabitatStat { location?: HabitatStatLocation; habitat?: HabitatStatHabitat; @@ -6198,7 +6181,10 @@ export interface HabitatStat { updatedBy?: HabitatStatUpdatedBy; } -export type HabitatStatHabitatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; +export interface HabitatStatResponseDataObject { + id?: number; + attributes?: HabitatStat; +} export type HabitatStatHabitatDataAttributesUpdatedByData = { id?: number; @@ -6209,6 +6195,27 @@ export type HabitatStatHabitatDataAttributesUpdatedBy = { data?: HabitatStatHabitatDataAttributesUpdatedByData; }; +export type HabitatStatHabitatDataAttributes = { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatHabitatDataAttributesCreatedBy; + updatedBy?: HabitatStatHabitatDataAttributesUpdatedBy; +}; + +export type HabitatStatHabitatData = { + id?: number; + attributes?: HabitatStatHabitatDataAttributes; +}; + +export type HabitatStatHabitat = { + data?: HabitatStatHabitatData; +}; + +export type HabitatStatHabitatDataAttributesUpdatedByDataAttributes = { [key: string]: any }; + export type HabitatStatHabitatDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type HabitatStatHabitatDataAttributesCreatedByData = { @@ -6240,10 +6247,26 @@ export type HabitatStatLocationDataAttributesUpdatedBy = { data?: HabitatStatLocationDataAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any }; + +export type HabitatStatLocationDataAttributesCreatedByData = { + id?: number; + attributes?: HabitatStatLocationDataAttributesCreatedByDataAttributes; +}; + export type HabitatStatLocationDataAttributesCreatedBy = { data?: HabitatStatLocationDataAttributesCreatedByData; }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItem = { + id?: number; + attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; +}; + +export type HabitatStatLocationDataAttributesProtectionCoverageStats = { + data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItem[]; +}; + export type HabitatStatLocationDataAttributes = { code?: string; name?: string; @@ -6254,28 +6277,13 @@ export type HabitatStatLocationDataAttributes = { fishing_protection_level_stats?: HabitatStatLocationDataAttributesFishingProtectionLevelStats; mpaa_protection_level_stats?: HabitatStatLocationDataAttributesMpaaProtectionLevelStats; protection_coverage_stats?: HabitatStatLocationDataAttributesProtectionCoverageStats; + bounds?: unknown; createdAt?: string; updatedAt?: string; createdBy?: HabitatStatLocationDataAttributesCreatedBy; updatedBy?: HabitatStatLocationDataAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any }; - -export type HabitatStatLocationDataAttributesCreatedByData = { - id?: number; - attributes?: HabitatStatLocationDataAttributesCreatedByDataAttributes; -}; - -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItem = { - id?: number; - attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; -}; - -export type HabitatStatLocationDataAttributesProtectionCoverageStats = { - data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItem[]; -}; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6289,6 +6297,19 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { + location?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + protection_status?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + year?: number; + cumSumProtectedArea?: number; + protectedArea?: number; + protectedAreasCount?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; +}; + export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -6302,30 +6323,11 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; - }; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = { data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { - location?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; -}; - export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6340,6 +6342,20 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; }; +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = + { + data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; + }; + export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = { slug?: string; @@ -6351,18 +6367,10 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr updatedBy?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData = +export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = { id?: number; - attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy = - { - data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; + attributes?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; }; export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = @@ -6378,11 +6386,6 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { - id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; -}; - export type HabitatStatLocationDataAttributesMpaaProtectionLevelStats = { data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; }; @@ -6413,11 +6416,6 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = - { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; - }; - export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { location?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; mpaa_protection_level?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; @@ -6428,8 +6426,10 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { + id?: number; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; +}; export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { @@ -6442,20 +6442,6 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; - }; - -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = - { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; - }; - export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes = { slug?: string; @@ -6473,6 +6459,28 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = + { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; + }; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = + { + id?: number; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; + }; + +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedBy = + { + data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; + }; + export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -6509,12 +6517,22 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = - { - id?: number; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { + location?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; +}; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData = + { + id?: number; attributes?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByDataAttributes; }; @@ -6523,6 +6541,17 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; +export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; + updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; + }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = { id?: number; @@ -6534,16 +6563,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = { - location?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; -}; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6569,17 +6588,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy; - updatedBy?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; - }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -6665,20 +6673,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -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 = { id?: number; @@ -6717,9 +6711,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; @@ -6731,6 +6722,23 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; +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 HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -6818,6 +6826,11 @@ export interface HabitatStatListResponse { export type HabitatResponseMeta = { [key: string]: any }; +export interface HabitatResponse { + data?: HabitatResponseDataObject; + meta?: HabitatResponseMeta; +} + export interface Habitat { slug: string; name: string; @@ -6833,11 +6846,6 @@ export interface HabitatResponseDataObject { attributes?: Habitat; } -export interface HabitatResponse { - data?: HabitatResponseDataObject; - meta?: HabitatResponseMeta; -} - export type HabitatUpdatedByDataAttributes = { [key: string]: any }; export type HabitatUpdatedByData = { @@ -6869,6 +6877,23 @@ export type HabitatCreatedByDataAttributesUpdatedBy = { data?: HabitatCreatedByDataAttributesUpdatedByData; }; +export type HabitatCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: HabitatCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesUpdatedBy; +}; + export type HabitatCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; export type HabitatCreatedByDataAttributesCreatedByData = { @@ -6889,23 +6914,6 @@ export type HabitatCreatedByDataAttributesRoles = { data?: HabitatCreatedByDataAttributesRolesDataItem[]; }; -export type HabitatCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: HabitatCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatCreatedByDataAttributesCreatedBy; - updatedBy?: HabitatCreatedByDataAttributesUpdatedBy; -}; - export type HabitatCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -6919,6 +6927,18 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { data?: HabitatCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; }; +export type HabitatCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: HabitatCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + export type HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -6932,6 +6952,19 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { data?: HabitatCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; +export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { + action?: string; + actionParameters?: unknown; + subject?: string; + properties?: unknown; + conditions?: unknown; + role?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; + createdAt?: string; + updatedAt?: string; + createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; + updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; +}; + export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; attributes?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; @@ -6941,18 +6974,6 @@ 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 }; @@ -6981,19 +7002,6 @@ export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsData data?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; -}; - export type HabitatCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -7044,6 +7052,11 @@ export interface HabitatListResponse { export type FishingProtectionLevelStatResponseMeta = { [key: string]: any }; +export interface FishingProtectionLevelStatResponse { + data?: FishingProtectionLevelStatResponseDataObject; + meta?: FishingProtectionLevelStatResponseMeta; +} + export interface FishingProtectionLevelStat { location?: FishingProtectionLevelStatLocation; fishing_protection_level?: FishingProtectionLevelStatFishingProtectionLevel; @@ -7059,11 +7072,6 @@ export interface FishingProtectionLevelStatResponseDataObject { attributes?: FishingProtectionLevelStat; } -export interface FishingProtectionLevelStatResponse { - data?: FishingProtectionLevelStatResponseDataObject; - meta?: FishingProtectionLevelStatResponseMeta; -} - export type FishingProtectionLevelStatUpdatedByDataAttributes = { [key: string]: any }; export type FishingProtectionLevelStatUpdatedByData = { @@ -7119,22 +7127,6 @@ export type FishingProtectionLevelStatLocationDataAttributesUpdatedBy = { data?: FishingProtectionLevelStatLocationDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributes = { - code?: string; - name?: string; - totalMarineArea?: number; - type?: string; - groups?: FishingProtectionLevelStatLocationDataAttributesGroups; - members?: FishingProtectionLevelStatLocationDataAttributesMembers; - fishing_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; - mpaa_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; - protection_coverage_stats?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesUpdatedBy; -}; - export type FishingProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -7148,6 +7140,20 @@ export type FishingProtectionLevelStatLocationDataAttributesCreatedBy = { data?: FishingProtectionLevelStatLocationDataAttributesCreatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = + { + location?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; + protection_status?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; + year?: number; + cumSumProtectedArea?: number; + protectedArea?: number; + protectedAreasCount?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem = { id?: number; attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes; @@ -7157,6 +7163,23 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; +export type FishingProtectionLevelStatLocationDataAttributes = { + code?: string; + name?: string; + totalMarineArea?: number; + type?: string; + groups?: FishingProtectionLevelStatLocationDataAttributesGroups; + members?: FishingProtectionLevelStatLocationDataAttributesMembers; + fishing_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStats; + mpaa_protection_level_stats?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats; + protection_coverage_stats?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStats; + bounds?: unknown; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesUpdatedBy; +}; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7185,54 +7208,29 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = { - location?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocation; - protection_status?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus; - year?: number; - cumSumProtectedArea?: number; - protectedArea?: number; - protectedAreasCount?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedBy; + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = { id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes; - }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatus = - { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; + attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; }; export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = @@ -7249,6 +7247,17 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByData; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = + { + slug?: string; + name?: string; + info?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; + }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -7263,6 +7272,11 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; +}; + export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats = { data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; }; @@ -7370,10 +7384,16 @@ export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelS updatedBy?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; -}; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = + { + location?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; + fishing_protection_level?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; + area?: number; + createdAt?: string; + updatedAt?: string; + createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; + updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; + }; export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItem = { id?: number; @@ -7423,17 +7443,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributes = - { - location?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocation; - fishing_protection_level?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel; - area?: number; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7448,12 +7457,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = { data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; @@ -7470,6 +7473,12 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7712,6 +7721,11 @@ export interface FishingProtectionLevelStatListResponse { export type FishingProtectionLevelResponseMeta = { [key: string]: any }; +export interface FishingProtectionLevelResponseDataObject { + id?: number; + attributes?: FishingProtectionLevel; +} + export interface FishingProtectionLevelResponse { data?: FishingProtectionLevelResponseDataObject; meta?: FishingProtectionLevelResponseMeta; @@ -7747,11 +7761,6 @@ export interface FishingProtectionLevel { updatedBy?: FishingProtectionLevelUpdatedBy; } -export interface FishingProtectionLevelResponseDataObject { - id?: number; - attributes?: FishingProtectionLevel; -} - export type FishingProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -7765,23 +7774,6 @@ export type FishingProtectionLevelCreatedByDataAttributesUpdatedBy = { data?: FishingProtectionLevelCreatedByDataAttributesUpdatedByData; }; -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 FishingProtectionLevelCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -7804,6 +7796,23 @@ export type FishingProtectionLevelCreatedByDataAttributesRoles = { data?: FishingProtectionLevelCreatedByDataAttributesRolesDataItem[]; }; +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 FishingProtectionLevelCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7816,6 +7825,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 }; @@ -7838,18 +7859,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 }; @@ -7939,16 +7948,239 @@ export interface FishingProtectionLevelListResponse { meta?: FishingProtectionLevelListResponseMeta; } -export type DataInfoResponseMeta = { [key: string]: any }; +export type DataSourceResponseMeta = { [key: string]: any }; -export interface DataInfoResponse { - data?: DataInfoResponseDataObject; - meta?: DataInfoResponseMeta; +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 interface DataSource { + slug: string; + title: string; + url?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataSourceCreatedBy; + updatedBy?: DataSourceUpdatedBy; +} + +export interface DataSourceResponseDataObject { + id?: number; + attributes?: DataSource; } +export type DataSourceCreatedByData = { + id?: number; + attributes?: DataSourceCreatedByDataAttributes; +}; + +export type DataSourceCreatedBy = { + data?: DataSourceCreatedByData; +}; + +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 = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesCreatedByDataAttributes; +}; + +export type DataSourceCreatedByDataAttributesCreatedBy = { + data?: DataSourceCreatedByDataAttributesCreatedByData; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItem = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributes; +}; + +export type DataSourceCreatedByDataAttributesRoles = { + data?: DataSourceCreatedByDataAttributesRolesDataItem[]; +}; + +export type DataSourceCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataSourceCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataSourceCreatedByDataAttributesCreatedBy; + updatedBy?: DataSourceCreatedByDataAttributesUpdatedBy; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { + data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributes = { + name?: string; + code?: string; + description?: string; + users?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions; + createdAt?: string; + updatedAt?: string; + createdBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { + [key: string]: any; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; +}; + +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; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissions = { + data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = + { + data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = + { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = + { + data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = + { [key: string]: any }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = + { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = + { + data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + }; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { + [key: string]: any; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { + id?: number; + attributes?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; +}; + +export type DataSourceCreatedByDataAttributesRolesDataItemAttributesUsers = { + data?: DataSourceCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; +}; + +export type DataSourceListResponseMetaPagination = { + page?: number; + pageSize?: number; + pageCount?: number; + total?: number; +}; + +export type DataSourceListResponseMeta = { + pagination?: DataSourceListResponseMetaPagination; +}; + +export interface DataSourceListResponseDataItem { + id?: number; + attributes?: DataSource; +} + +export interface DataSourceListResponse { + data?: DataSourceListResponseDataItem[]; + meta?: DataSourceListResponseMeta; +} + +export type DataInfoResponseMeta = { [key: string]: any }; + export interface DataInfo { slug: string; - content: string; + content?: string; + data_sources?: DataInfoDataSources; createdAt?: string; updatedAt?: string; createdBy?: DataInfoCreatedBy; @@ -7960,6 +8192,11 @@ export interface DataInfoResponseDataObject { attributes?: DataInfo; } +export interface DataInfoResponse { + data?: DataInfoResponseDataObject; + meta?: DataInfoResponseMeta; +} + export type DataInfoUpdatedByDataAttributes = { [key: string]: any }; export type DataInfoUpdatedByData = { @@ -7971,6 +8208,8 @@ export type DataInfoUpdatedBy = { data?: DataInfoUpdatedByData; }; +export type DataInfoCreatedByDataAttributes = { [key: string]: any }; + export type DataInfoCreatedByData = { id?: number; attributes?: DataInfoCreatedByDataAttributes; @@ -7980,168 +8219,217 @@ export type DataInfoCreatedBy = { data?: DataInfoCreatedByData; }; -export type DataInfoCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; +export type DataInfoDataSources = { + data?: DataInfoDataSourcesDataItem[]; +}; + +export type DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DataInfoCreatedByDataAttributesUpdatedByData = { +export type DataInfoDataSourcesDataItemAttributesUpdatedByData = { id?: number; - attributes?: DataInfoCreatedByDataAttributesUpdatedByDataAttributes; + attributes?: DataInfoDataSourcesDataItemAttributesUpdatedByDataAttributes; }; -export type DataInfoCreatedByDataAttributesUpdatedBy = { - data?: DataInfoCreatedByDataAttributesUpdatedByData; +export type DataInfoDataSourcesDataItemAttributesUpdatedBy = { + data?: DataInfoDataSourcesDataItemAttributesUpdatedByData; }; -export type DataInfoCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any }; - -export type DataInfoCreatedByDataAttributesCreatedByData = { +export type DataInfoDataSourcesDataItemAttributesCreatedByData = { id?: number; - attributes?: DataInfoCreatedByDataAttributesCreatedByDataAttributes; -}; - -export type DataInfoCreatedByDataAttributesCreatedBy = { - data?: DataInfoCreatedByDataAttributesCreatedByData; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes; }; -export type DataInfoCreatedByDataAttributesRoles = { - data?: DataInfoCreatedByDataAttributesRolesDataItem[]; +export type DataInfoDataSourcesDataItemAttributesCreatedBy = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByData; }; -export type DataInfoCreatedByDataAttributes = { - firstname?: string; - lastname?: string; - username?: string; - email?: string; - resetPasswordToken?: string; - registrationToken?: string; - isActive?: boolean; - roles?: DataInfoCreatedByDataAttributesRoles; - blocked?: boolean; - preferedLanguage?: string; +export type DataInfoDataSourcesDataItemAttributes = { + slug?: string; + title?: string; + url?: string; createdAt?: string; updatedAt?: string; - createdBy?: DataInfoCreatedByDataAttributesCreatedBy; - updatedBy?: DataInfoCreatedByDataAttributesUpdatedBy; + createdBy?: DataInfoDataSourcesDataItemAttributesCreatedBy; + updatedBy?: DataInfoDataSourcesDataItemAttributesUpdatedBy; +}; + +export type DataInfoDataSourcesDataItem = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributes; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = { +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByData = { id?: number; - attributes?: DataInfoCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByDataAttributes; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = { - data?: DataInfoCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedBy = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedByData; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = { +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes = { [key: string]: any; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesCreatedByData = { +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData = { id?: number; - attributes?: DataInfoCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByDataAttributes; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesCreatedBy = { - data?: DataInfoCreatedByDataAttributesRolesDataItemAttributesCreatedByData; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedBy = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedByData; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { - id?: number; - attributes?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRoles = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem[]; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissions = { - data?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes = { + firstname?: string; + lastname?: string; + username?: string; + email?: string; + resetPasswordToken?: string; + registrationToken?: string; + isActive?: boolean; + roles?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRoles; + blocked?: boolean; + preferedLanguage?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesCreatedBy; + updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesUpdatedBy; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributes = { +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = + { [key: string]: any }; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData = + { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes; + }; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy = + { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedByData; + }; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData = + { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; + }; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = + { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + }; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = + { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; + }; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = + { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem[]; + }; + +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes = { name?: string; code?: string; description?: string; - users?: DataInfoCreatedByDataAttributesRolesDataItemAttributesUsers; - permissions?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissions; + users?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers; + permissions?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions; createdAt?: string; updatedAt?: string; - createdBy?: DataInfoCreatedByDataAttributesRolesDataItemAttributesCreatedBy; - updatedBy?: DataInfoCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; + createdBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy; + updatedBy?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUpdatedBy; }; -export type DataInfoCreatedByDataAttributesRolesDataItem = { +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItem = { id?: number; - attributes?: DataInfoCreatedByDataAttributesRolesDataItemAttributes; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributes; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes = { [key: string]: any }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData = { id?: number; - attributes?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByDataAttributes; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy = { - data?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; - attributes?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = { - data?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData = { id?: number; - attributes?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole = { - data?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleData; }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - action?: string; - actionParameters?: unknown; - subject?: string; - properties?: unknown; - conditions?: unknown; - role?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRole; - createdAt?: string; - updatedAt?: string; - createdBy?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy; - updatedBy?: DataInfoCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; -}; +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 DataInfoCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { - [key: string]: any; -}; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = + { [key: string]: any }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = { - id?: number; - attributes?: DataInfoCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; -}; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem = + { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; + }; -export type DataInfoCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: DataInfoCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; -}; +export type DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsers = + { + data?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; + }; export type DataInfoListResponseMetaPagination = { page?: number; diff --git a/frontend/yarn.lock b/frontend/yarn.lock index eccec83b..c1e7daf1 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -9772,14 +9772,14 @@ __metadata: languageName: node linkType: hard -"next-usequerystate@npm:1.8.4": - version: 1.8.4 - resolution: "next-usequerystate@npm:1.8.4" +"next-usequerystate@npm:1.9.2": + version: 1.9.2 + resolution: "next-usequerystate@npm:1.9.2" dependencies: mitt: ^3.0.1 peerDependencies: - next: ^13.4 - checksum: 4ab19aa11fd32058246375bdcd7c76fdff357e15a460e80a30835b972b7458ab99e59e8ae38be26b32d27727b156b655c2a0105c200b994408fb26366133b496 + next: ^13.4 || ^14 + checksum: ffc858c49d9c814526c446330e0f2db085175fcf4ead032ce2401757a96ea2e206bda2b7252711af83548c4d6c7400b3a966a2ffc856cd8abb42d5eb5789f893 languageName: node linkType: hard @@ -11695,7 +11695,7 @@ __metadata: lucide-react: ^0.274.0 mapbox-gl: 2.15.0 next: 13.5.6 - next-usequerystate: 1.8.4 + next-usequerystate: 1.9.2 orval: 6.18.1 postcss: 8.4.21 prettier: 2.8.3 From 6ee40d4b1e8d87cbd082ce025ea7327dd1f99c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez=20Mu=C3=B1oz?= Date: Mon, 6 Nov 2023 18:12:56 +0100 Subject: [PATCH 2/2] cms config --- ...ntent_types##api##data-info.data-info.json | 12 ++-- ...el-stat.fishing-protection-level-stat.json | 12 ++-- ...types##api##habitat-stat.habitat-stat.json | 14 ++--- ...content_types##api##location.location.json | 22 ++++--- ...age-stat.mpa-protection-coverage-stat.json | 13 ++-- ...iguration_content_types##api##mpa.mpa.json | 15 ++--- ...ge-stat.mpaa-establishment-stage-stat.json | 14 ++--- ...overage-stat.protection-coverage-stat.json | 14 ++--- cms/config/sync/user-role.public.json | 60 ------------------- frontend/src/components/header.tsx | 4 +- .../data-tool/content/map/index.tsx | 44 +++++++++++++- .../data-tool/content/map/sync-settings.ts | 18 ++++-- .../src/containers/data-tool/sync-settings.ts | 4 +- 13 files changed, 110 insertions(+), 136 deletions(-) diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json index 3c6ae023..6f8569ab 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##data-info.data-info.json @@ -123,6 +123,12 @@ } }, "layouts": { + "list": [ + "id", + "slug", + "content", + "createdAt" + ], "edit": [ [ { @@ -140,12 +146,6 @@ "size": 6 } ] - ], - "list": [ - "id", - "slug", - "content", - "data_sources" ] } }, diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##fishing-protection-level-stat.fishing-protection-level-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##fishing-protection-level-stat.fishing-protection-level-stat.json index aba53dd4..374dfbc4 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##fishing-protection-level-stat.fishing-protection-level-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##fishing-protection-level-stat.fishing-protection-level-stat.json @@ -127,24 +127,24 @@ "list": [ "id", "location", - "area", - "fishing_protection_level" + "fishing_protection_level", + "area" ], "edit": [ [ { "name": "location", "size": 6 + }, + { + "name": "fishing_protection_level", + "size": 6 } ], [ { "name": "area", "size": 4 - }, - { - "name": "fishing_protection_level", - "size": 6 } ] ] diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json index 05b82a7c..be24cdd4 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##habitat-stat.habitat-stat.json @@ -152,6 +152,12 @@ } }, "layouts": { + "list": [ + "id", + "location", + "habitat", + "year" + ], "edit": [ [ { @@ -177,14 +183,6 @@ "size": 4 } ] - ], - "list": [ - "id", - "location", - "habitat", - "year", - "protectedArea", - "totalArea" ] } }, 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 2a2b3e28..94cd9355 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 @@ -229,9 +229,7 @@ "id", "code", "name", - "type", - "totalMarineArea", - "groups" + "totalMarineArea" ], "edit": [ [ @@ -245,6 +243,10 @@ } ], [ + { + "name": "totalMarineArea", + "size": 4 + }, { "name": "type", "size": 6 @@ -252,29 +254,25 @@ ], [ { - "name": "totalMarineArea", - "size": 4 + "name": "groups", + "size": 6 }, { - "name": "groups", + "name": "members", "size": 6 } ], [ { - "name": "members", + "name": "fishing_protection_level_stats", "size": 6 }, { - "name": "fishing_protection_level_stats", + "name": "mpaa_protection_level_stats", "size": 6 } ], [ - { - "name": "mpaa_protection_level_stats", - "size": 6 - }, { "name": "protection_coverage_stats", "size": 6 diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa-protection-coverage-stat.mpa-protection-coverage-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa-protection-coverage-stat.mpa-protection-coverage-stat.json index cb0f06ab..988a9767 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa-protection-coverage-stat.mpa-protection-coverage-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa-protection-coverage-stat.mpa-protection-coverage-stat.json @@ -154,6 +154,12 @@ } }, "layouts": { + "list": [ + "id", + "mpa", + "fishing_protection_level", + "mpaa_protection_level" + ], "edit": [ [ { @@ -181,13 +187,6 @@ "size": 4 } ] - ], - "list": [ - "id", - "mpa", - "fishing_protection_level", - "mpaa_protection_level", - "location" ] } }, diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json index 4d265ea6..b860c5d6 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpa.mpa.json @@ -181,6 +181,12 @@ } }, "layouts": { + "list": [ + "id", + "wdpaid", + "name", + "year" + ], "edit": [ [ { @@ -220,15 +226,6 @@ "size": 6 } ] - ], - "list": [ - "id", - "wdpaid", - "name", - "year", - "protection_status", - "mpaa_establishment_stage", - "area" ] } }, diff --git a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.json b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.json index 084cec3b..baa0618d 100644 --- a/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.json +++ b/cms/config/sync/core-store.plugin_content_manager_configuration_content_types##api##mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.json @@ -153,6 +153,12 @@ } }, "layouts": { + "list": [ + "id", + "location", + "mpaa_establishment_stage", + "protection_status" + ], "edit": [ [ { @@ -180,14 +186,6 @@ "size": 4 } ] - ], - "list": [ - "id", - "location", - "mpaa_establishment_stage", - "protection_status", - "year", - "area" ] } }, 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 163b6b18..0dac0cba 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 @@ -166,6 +166,12 @@ } }, "layouts": { + "list": [ + "id", + "location", + "protection_status", + "year" + ], "edit": [ [ { @@ -197,14 +203,6 @@ "size": 4 } ] - ], - "list": [ - "id", - "location", - "protection_status", - "year", - "cumSumProtectedArea", - "protectedAreasCount" ] } }, diff --git a/cms/config/sync/user-role.public.json b/cms/config/sync/user-role.public.json index 066442e3..0d024b4a 100644 --- a/cms/config/sync/user-role.public.json +++ b/cms/config/sync/user-role.public.json @@ -9,36 +9,12 @@ { "action": "api::data-info.data-info.findOne" }, - { - "action": "api::data-source.data-source.find" - }, - { - "action": "api::data-source.data-source.findOne" - }, - { - "action": "api::fishing-protection-level-stat.fishing-protection-level-stat.find" - }, - { - "action": "api::fishing-protection-level-stat.fishing-protection-level-stat.findOne" - }, - { - "action": "api::fishing-protection-level.fishing-protection-level.find" - }, - { - "action": "api::fishing-protection-level.fishing-protection-level.findOne" - }, { "action": "api::habitat-stat.habitat-stat.find" }, { "action": "api::habitat-stat.habitat-stat.findOne" }, - { - "action": "api::habitat.habitat.find" - }, - { - "action": "api::habitat.habitat.findOne" - }, { "action": "api::layer.layer.find" }, @@ -57,48 +33,12 @@ { "action": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat.findOne" }, - { - "action": "api::mpa.mpa.find" - }, - { - "action": "api::mpa.mpa.findOne" - }, - { - "action": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.find" - }, - { - "action": "api::mpaa-establishment-stage-stat.mpaa-establishment-stage-stat.findOne" - }, - { - "action": "api::mpaa-establishment-stage.mpaa-establishment-stage.find" - }, - { - "action": "api::mpaa-establishment-stage.mpaa-establishment-stage.findOne" - }, - { - "action": "api::mpaa-protection-level-stat.mpaa-protection-level-stat.find" - }, - { - "action": "api::mpaa-protection-level-stat.mpaa-protection-level-stat.findOne" - }, - { - "action": "api::mpaa-protection-level.mpaa-protection-level.find" - }, - { - "action": "api::mpaa-protection-level.mpaa-protection-level.findOne" - }, { "action": "api::protection-coverage-stat.protection-coverage-stat.find" }, { "action": "api::protection-coverage-stat.protection-coverage-stat.findOne" }, - { - "action": "api::protection-status.protection-status.find" - }, - { - "action": "api::protection-status.protection-status.findOne" - }, { "action": "plugin::users-permissions.auth.callback" }, diff --git a/frontend/src/components/header.tsx b/frontend/src/components/header.tsx index 59dcb4ee..b24b73d9 100644 --- a/frontend/src/components/header.tsx +++ b/frontend/src/components/header.tsx @@ -51,7 +51,7 @@ const Header: React.FC = () => (
- {/*
+
{navigation.map(({ name, href, colorClassName }) => ( ( {name} ))} -
*/} +
diff --git a/frontend/src/containers/data-tool/content/map/index.tsx b/frontend/src/containers/data-tool/content/map/index.tsx index b9f372e4..e22f5bf4 100644 --- a/frontend/src/containers/data-tool/content/map/index.tsx +++ b/frontend/src/containers/data-tool/content/map/index.tsx @@ -1,4 +1,4 @@ -import { ComponentProps, useCallback, useEffect } from 'react'; +import { ComponentProps, useCallback, useEffect, useRef } from 'react'; import { useMap } from 'react-map-gl'; import { LngLatBoundsLike } from 'react-map-gl'; @@ -39,6 +39,7 @@ const DataToolMap: React.FC = () => { const queryClient = useQueryClient(); const { locationCode } = useParams(); const isSidebarOpen = useAtomValue(sidebarAtom); + const hoveredPolygonId = useRef(null); const locationData = queryClient.getQueryData([ 'locations', @@ -85,13 +86,50 @@ const DataToolMap: React.FC = () => { }) ) { const p = Object.assign({}, e, { features: e.features ?? [] }); - setPopup(p); } }, [layersInteractive, layersInteractiveData, setPopup] ); + const handleMouseMove = useCallback( + (e: Parameters['onMouseOver']>[0]) => { + if (e.features.length > 0) { + if (hoveredPolygonId.current !== null) { + map.setFeatureState( + { + source: e.features?.[0].source, + id: hoveredPolygonId.current, + sourceLayer: e.features?.[0].sourceLayer, + }, + { hover: false } + ); + } + map.setFeatureState( + { + source: e.features?.[0].source, + id: e.features[0].id, + sourceLayer: e.features?.[0].sourceLayer, + }, + { hover: true } + ); + + hoveredPolygonId.current = e.features[0].id; + } + }, + [map, hoveredPolygonId] + ); + + const handleMouseLeave = useCallback(() => { + if (hoveredPolygonId.current !== null) { + map.setFeatureState( + // ? not a fan of harcoding the sources here, but there is no other way to find out the source + { source: 'ezz-source', id: hoveredPolygonId.current, sourceLayer: 'eez_v11' }, + { hover: false } + ); + } + }, [map, hoveredPolygonId]); + const bounds = customBbox ?? (locationData?.attributes?.bounds as LngLatBoundsLike); useEffect(() => { @@ -141,6 +179,8 @@ const DataToolMap: React.FC = () => { interactiveLayerIds={layersInteractiveIds} onClick={handleMapClick} onMoveEnd={handleMoveEnd} + onMouseMove={handleMouseMove} + onMouseLeave={handleMouseLeave} renderWorldCopies={false} attributionControl={false} > diff --git a/frontend/src/containers/data-tool/content/map/sync-settings.ts b/frontend/src/containers/data-tool/content/map/sync-settings.ts index fa6fb1c2..e4f849c8 100644 --- a/frontend/src/containers/data-tool/content/map/sync-settings.ts +++ b/frontend/src/containers/data-tool/content/map/sync-settings.ts @@ -29,17 +29,25 @@ export const useSyncMapLayerSettings = () => { ); }; +// ? there is an issue where NextJS's useSearchParams will not return the update searchParams +// ? updated via next-usequerystate, so we rely in next-usequerystate to retrieve those searchParams as well +// ? this might be an issue with next-usequerystate, but for now we can make it work this way. +// ! if you are using syncing a new state through next-usequerystate in the data-tool's map page, remember to register it here export const useDataToolSearchParams = () => { const [settings] = useSyncMapSettings(); const [layers] = useSyncMapLayers(); const [layerSettings] = useSyncMapLayerSettings(); - const sp = new URLSearchParams(); - sp.set('settings', parseAsJson().serialize(settings)); - sp.set('layers', parseAsArrayOf(parseAsInteger).serialize(layers)); - sp.set( + const currentSearchparams = new URLSearchParams(); + + currentSearchparams.set('layers', parseAsArrayOf(parseAsInteger).serialize(layers)); + currentSearchparams.set( + 'settings', + parseAsJson().serialize(settings) + ); + currentSearchparams.set( 'layer-settings', parseAsJson<{ [layerId: number]: Partial }>().serialize(layerSettings) ); - return sp; + return currentSearchparams; }; diff --git a/frontend/src/containers/data-tool/sync-settings.ts b/frontend/src/containers/data-tool/sync-settings.ts index bc9fa9ee..f3122ea4 100644 --- a/frontend/src/containers/data-tool/sync-settings.ts +++ b/frontend/src/containers/data-tool/sync-settings.ts @@ -10,8 +10,6 @@ const DEFAULT_SYNC_CONTENT_SETTINGS: { export const useSyncDataToolContentSettings = () => { return useQueryState( 'content', - parseAsJson() - .withOptions({ shallow: false }) - .withDefault(DEFAULT_SYNC_CONTENT_SETTINGS) + parseAsJson().withDefault(DEFAULT_SYNC_CONTENT_SETTINGS) ); };