From 6912633ab8d170af29418a18eec766bed78a47a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez=20Mu=C3=B1oz?= Date: Tue, 31 Oct 2023 18:16:44 +0100 Subject: [PATCH 1/3] adds EEZ legend --- frontend/orval.config.ts | 1 + .../map/layers-toolbox/legend/eez/index.tsx | 60 + .../map/layers-toolbox/legend/index.tsx | 41 +- .../legend/{items.tsx => item.tsx} | 49 +- frontend/src/layouts/.gitkeep | 0 frontend/src/lib/json-converter/index.ts | 2 + frontend/src/styles/icons/arrow-down.svg | 4 + frontend/src/styles/icons/arrow-top.svg | 4 + frontend/src/styles/icons/close.svg | 6 + frontend/src/styles/icons/eez.svg | 18 + frontend/src/styles/icons/info.svg | 4 + frontend/src/styles/icons/opacity.svg | 3 + frontend/src/styles/icons/selected-eez.svg | 4 + frontend/src/styles/icons/several-eez.svg | 4 + frontend/src/types/generated/data-info.ts | 152 + .../src/types/generated/strapi.schemas.ts | 2952 +++++++++-------- 16 files changed, 1966 insertions(+), 1338 deletions(-) create mode 100644 frontend/src/containers/data-tool/content/map/layers-toolbox/legend/eez/index.tsx rename frontend/src/containers/data-tool/content/map/layers-toolbox/legend/{items.tsx => item.tsx} (64%) delete mode 100644 frontend/src/layouts/.gitkeep create mode 100644 frontend/src/styles/icons/arrow-down.svg create mode 100644 frontend/src/styles/icons/arrow-top.svg create mode 100644 frontend/src/styles/icons/close.svg create mode 100644 frontend/src/styles/icons/eez.svg create mode 100644 frontend/src/styles/icons/info.svg create mode 100644 frontend/src/styles/icons/opacity.svg create mode 100644 frontend/src/styles/icons/selected-eez.svg create mode 100644 frontend/src/styles/icons/several-eez.svg create mode 100644 frontend/src/types/generated/data-info.ts diff --git a/frontend/orval.config.ts b/frontend/orval.config.ts index cef2a953..37c6da0e 100644 --- a/frontend/orval.config.ts +++ b/frontend/orval.config.ts @@ -38,6 +38,7 @@ module.exports = { 'Fishing-protection-level', 'Fishing-protection-level-stat', 'Layer', + 'Data-info', ], }, }, diff --git a/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/eez/index.tsx b/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/eez/index.tsx new file mode 100644 index 00000000..59b89a3f --- /dev/null +++ b/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/eez/index.tsx @@ -0,0 +1,60 @@ +import Icon from '@/components/ui/icon'; +import { Tooltip, TooltipProvider, TooltipTrigger, TooltipContent } from '@/components/ui/tooltip'; +import EEZIcon from '@/styles/icons/eez.svg?sprite'; +import InfoIcon from '@/styles/icons/info.svg?sprite'; +import SelectedEEZIcon from '@/styles/icons/selected-eez.svg?sprite'; +import SeveralEEZIcon from '@/styles/icons/several-eez.svg?sprite'; +import { useGetDataInfos } from '@/types/generated/data-info'; + +const ITEM_LIST_CLASSES = 'flex items-center space-x-2'; +const ICON_CLASSES = 'h-7 w-7'; + +const EEZLayerLegend = () => { + const EEZInfoQuery = useGetDataInfos( + { + filters: { + slug: 'eez-legend', + }, + }, + { + query: { + select: ({ data }) => data?.[0].attributes, + }, + } + ); + + return ( + + ); +}; + +export default EEZLayerLegend; diff --git a/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/index.tsx b/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/index.tsx index 7f37fe8a..52b83dbc 100644 --- a/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/index.tsx +++ b/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/index.tsx @@ -1,9 +1,16 @@ import { FC, useCallback } from 'react'; -import { ChevronUp, CircleDashed, Eye, EyeOff, MoveUp, X } from 'lucide-react'; +import { ChevronUp } from 'lucide-react'; +import { HiEye, HiEyeOff } from 'react-icons/hi'; -import { Accordion, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from '@/components/ui/accordion'; import { Button } from '@/components/ui/button'; +import Icon from '@/components/ui/icon'; import { Label } from '@/components/ui/label'; import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { Slider } from '@/components/ui/slider'; @@ -13,11 +20,15 @@ import { useSyncMapLayers, } from '@/containers/data-tool/content/map/sync-settings'; import { cn } from '@/lib/classnames'; +import ArrowDownIcon from '@/styles/icons/arrow-down.svg?sprite'; +import ArrowTopIcon from '@/styles/icons/arrow-top.svg?sprite'; +import CloseIcon from '@/styles/icons/close.svg?sprite'; +import OpacityIcon from '@/styles/icons/opacity.svg?sprite'; import { useGetLayers } from '@/types/generated/layer'; import { LayerResponseDataObject } from '@/types/generated/strapi.schemas'; -// import { LayerTyped } from '@/types/layers'; +import { LayerTyped } from '@/types/layers'; -// import LegendItems from './items'; +import LegendItem from './item'; const Legend: FC = () => { const [activeLayers, setMapLayers] = useSyncMapLayers(); @@ -140,7 +151,7 @@ const Legend: FC = () => { })} onValueChange={onToggleAccordion} > - {layersQuery.data?.map(({ id, attributes: { title } }, index) => { + {layersQuery.data?.map(({ id, attributes: { title, legend_config } }, index) => { const isFirst = index === 0; const isLast = index + 1 === layersQuery.data.length; @@ -175,7 +186,7 @@ const Legend: FC = () => {
- + Move up @@ -200,7 +211,7 @@ const Legend: FC = () => { onClick={() => onMoveLayerDown(id)} > Move down - + Move down @@ -211,7 +222,7 @@ const Legend: FC = () => { @@ -237,8 +248,8 @@ const Legend: FC = () => { onClick={() => onToggleLayerVisibility(id, !isVisible)} > {isVisible ? 'Hide' : 'Show'} - {isVisible && } - {!isVisible && } + {isVisible && } + {!isVisible && } {isVisible ? 'Hide' : 'Show'} @@ -255,7 +266,7 @@ const Legend: FC = () => { }} > Remove - + Remove @@ -263,9 +274,9 @@ const Legend: FC = () => {
- {/* - - */} + + + ); })} diff --git a/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/items.tsx b/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/item.tsx similarity index 64% rename from frontend/src/containers/data-tool/content/map/layers-toolbox/legend/items.tsx rename to frontend/src/containers/data-tool/content/map/layers-toolbox/legend/item.tsx index 2159059e..23892110 100644 --- a/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/items.tsx +++ b/frontend/src/containers/data-tool/content/map/layers-toolbox/legend/item.tsx @@ -1,17 +1,36 @@ -import { FC } from 'react'; +import { FC, ReactElement, isValidElement, useMemo } from 'react'; -import { LayerTyped } from '@/types/layers'; +import { parseConfig } from '@/lib/json-converter'; +import { LayerTyped, LegendConfig } from '@/types/layers'; export interface LegendItemsProps { - items: LayerTyped['legend_config']; + config: LayerTyped['legend_config']; } -const LegendItems: FC = ({ items }) => { - switch (items.type) { +const LegendItem: FC = ({ config }) => { + const { type, items } = config; + + const LEGEND_ITEM_COMPONENT = useMemo(() => { + const l = parseConfig({ + config, + params_config: [], + settings: {}, + }); + + if (!l) return null; + + if (isValidElement(l)) { + return l; + } + + return null; + }, [config]); + + switch (type) { case 'basic': return (
    - {items.items.map(({ value, color }) => ( + {items.map(({ value, color }) => (
  • = ({ items }) => { return ( <>
      - {items.items.map(({ color }) => ( + {items.map(({ color }) => (
    • @@ -42,12 +61,12 @@ const LegendItems: FC = ({ items }) => {
      - {items.items.map(({ value }) => ( + {items.map(({ value }) => (
    • {value} @@ -63,14 +82,12 @@ const LegendItems: FC = ({ items }) => {
      i.color) - .join(',')})`, + backgroundImage: `linear-gradient(to right, ${items.map((i) => i.color).join(',')})`, }} />
        - {items.items + {items .filter(({ value }) => typeof value !== 'undefined' && value !== null) .map(({ value }) => (
      • @@ -82,8 +99,8 @@ const LegendItems: FC = ({ items }) => { ); default: - return null; + return LEGEND_ITEM_COMPONENT; } }; -export default LegendItems; +export default LegendItem; diff --git a/frontend/src/layouts/.gitkeep b/frontend/src/layouts/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/frontend/src/lib/json-converter/index.ts b/frontend/src/lib/json-converter/index.ts index 5278e6fb..ce589aa4 100644 --- a/frontend/src/lib/json-converter/index.ts +++ b/frontend/src/lib/json-converter/index.ts @@ -8,6 +8,7 @@ import { JSONConfiguration, JSONConverter } from '@deck.gl/json/typed'; // LegendTypeChoropleth, // LegendTypeGradient, // } from '@/components/map/legend/item-types'; +import EEZLayerLegend from '@/containers/data-tool/content/map/layers-toolbox/legend/eez'; import EEZLayerPopup from '@/containers/data-tool/content/map/popup/eez'; import FUNCTIONS from '@/lib/utils'; import { ParamsConfig } from '@/types/layers'; @@ -24,6 +25,7 @@ export const JSON_CONFIGURATION = new JSONConfiguration({ enumerations: {}, reactComponents: { EEZLayerPopup, + EEZLayerLegend, // LegendTypeBasic, // LegendTypeChoropleth, // LegendTypeGradient, diff --git a/frontend/src/styles/icons/arrow-down.svg b/frontend/src/styles/icons/arrow-down.svg new file mode 100644 index 00000000..7bdae50a --- /dev/null +++ b/frontend/src/styles/icons/arrow-down.svg @@ -0,0 +1,4 @@ + + + + diff --git a/frontend/src/styles/icons/arrow-top.svg b/frontend/src/styles/icons/arrow-top.svg new file mode 100644 index 00000000..51f08c15 --- /dev/null +++ b/frontend/src/styles/icons/arrow-top.svg @@ -0,0 +1,4 @@ + + + + diff --git a/frontend/src/styles/icons/close.svg b/frontend/src/styles/icons/close.svg new file mode 100644 index 00000000..e0c139e6 --- /dev/null +++ b/frontend/src/styles/icons/close.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/frontend/src/styles/icons/eez.svg b/frontend/src/styles/icons/eez.svg new file mode 100644 index 00000000..60bf1bd8 --- /dev/null +++ b/frontend/src/styles/icons/eez.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/styles/icons/info.svg b/frontend/src/styles/icons/info.svg new file mode 100644 index 00000000..f33215a5 --- /dev/null +++ b/frontend/src/styles/icons/info.svg @@ -0,0 +1,4 @@ + + + + diff --git a/frontend/src/styles/icons/opacity.svg b/frontend/src/styles/icons/opacity.svg new file mode 100644 index 00000000..232ee68c --- /dev/null +++ b/frontend/src/styles/icons/opacity.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/styles/icons/selected-eez.svg b/frontend/src/styles/icons/selected-eez.svg new file mode 100644 index 00000000..abcfcb88 --- /dev/null +++ b/frontend/src/styles/icons/selected-eez.svg @@ -0,0 +1,4 @@ + + + + diff --git a/frontend/src/styles/icons/several-eez.svg b/frontend/src/styles/icons/several-eez.svg new file mode 100644 index 00000000..4d260760 --- /dev/null +++ b/frontend/src/styles/icons/several-eez.svg @@ -0,0 +1,4 @@ + + + + diff --git a/frontend/src/types/generated/data-info.ts b/frontend/src/types/generated/data-info.ts new file mode 100644 index 00000000..e00e5e3b --- /dev/null +++ b/frontend/src/types/generated/data-info.ts @@ -0,0 +1,152 @@ +/** + * Generated by orval v6.18.1 🍺 + * Do not edit manually. + * DOCUMENTATION + * OpenAPI spec version: 1.0.0 + */ +import { useQuery } from '@tanstack/react-query'; +import type { + UseQueryOptions, + QueryFunction, + UseQueryResult, + QueryKey, +} from '@tanstack/react-query'; +import type { + DataInfoListResponse, + Error, + GetDataInfosParams, + DataInfoResponse, + GetDataInfosIdParams, +} from './strapi.schemas'; +import { API } from '../../services/api/index'; +import type { ErrorType } from '../../services/api/index'; + +// eslint-disable-next-line +type SecondParameter any> = T extends ( + config: any, + args: infer P +) => any + ? P + : never; + +export const getDataInfos = ( + params?: GetDataInfosParams, + options?: SecondParameter, + signal?: AbortSignal +) => { + return API({ url: `/data-infos`, method: 'get', params, signal }, options); +}; + +export const getGetDataInfosQueryKey = (params?: GetDataInfosParams) => { + return [`/data-infos`, ...(params ? [params] : [])] as const; +}; + +export const getGetDataInfosQueryOptions = < + TData = Awaited>, + TError = ErrorType +>( + params?: GetDataInfosParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetDataInfosQueryKey(params); + + const queryFn: QueryFunction>> = ({ signal }) => + getDataInfos(params, requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey }; +}; + +export type GetDataInfosQueryResult = NonNullable>>; +export type GetDataInfosQueryError = ErrorType; + +export const useGetDataInfos = < + TData = Awaited>, + TError = ErrorType +>( + params?: GetDataInfosParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getGetDataInfosQueryOptions(params, options); + + const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey; + + return query; +}; + +export const getDataInfosId = ( + id: number, + params?: GetDataInfosIdParams, + options?: SecondParameter, + signal?: AbortSignal +) => { + return API( + { url: `/data-infos/${id}`, method: 'get', params, signal }, + options + ); +}; + +export const getGetDataInfosIdQueryKey = (id: number, params?: GetDataInfosIdParams) => { + return [`/data-infos/${id}`, ...(params ? [params] : [])] as const; +}; + +export const getGetDataInfosIdQueryOptions = < + TData = Awaited>, + TError = ErrorType +>( + id: number, + params?: GetDataInfosIdParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetDataInfosIdQueryKey(id, params); + + const queryFn: QueryFunction>> = ({ signal }) => + getDataInfosId(id, params, requestOptions, signal); + + return { queryKey, queryFn, enabled: !!id, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey }; +}; + +export type GetDataInfosIdQueryResult = NonNullable>>; +export type GetDataInfosIdQueryError = ErrorType; + +export const useGetDataInfosId = < + TData = Awaited>, + TError = ErrorType +>( + id: number, + params?: GetDataInfosIdParams, + options?: { + query?: UseQueryOptions>, TError, TData>; + request?: SecondParameter; + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getGetDataInfosIdQueryOptions(id, params, options); + + const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey; + + return query; +}; diff --git a/frontend/src/types/generated/strapi.schemas.ts b/frontend/src/types/generated/strapi.schemas.ts index 4f42300c..6579283b 100644 --- a/frontend/src/types/generated/strapi.schemas.ts +++ b/frontend/src/types/generated/strapi.schemas.ts @@ -604,6 +604,56 @@ export type GetFishingProtectionLevelsParams = { locale?: string; }; +export type GetDataInfosIdParams = { + /** + * Relations to return + */ + populate?: string; +}; + +export type GetDataInfosParams = { + /** + * Sort by attributes ascending (asc) or descending (desc) + */ + sort?: string; + /** + * Return page/pageSize (default: true) + */ + 'pagination[withCount]'?: boolean; + /** + * Page number (default: 0) + */ + 'pagination[page]'?: number; + /** + * Page size (default: 25) + */ + 'pagination[pageSize]'?: number; + /** + * Offset value (default: 0) + */ + 'pagination[start]'?: number; + /** + * Number of entities to return (default: 25) + */ + 'pagination[limit]'?: number; + /** + * Fields to return (ex: title,author) + */ + fields?: string; + /** + * Relations to return + */ + populate?: string; + /** + * Filters to apply + */ + filters?: { [key: string]: any }; + /** + * Locale to apply + */ + locale?: string; +}; + /** * every controller of the api */ @@ -684,21 +734,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 +754,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 +791,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 +853,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 +876,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 +918,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 +953,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 +974,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 +996,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 +1026,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 +1039,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 +1048,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 +1098,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,29 +1120,32 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributes = { - id?: number; - attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; - }; - -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = + 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 }; + +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData = { - data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + id?: number; + attributes?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = +export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; + data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; }; export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = @@ -1125,6 +1176,11 @@ export type ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsD data?: ProtectionCoverageStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = + { + data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; + }; + export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { location?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; @@ -1154,11 +1210,6 @@ export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStats attributes?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByDataAttributes; }; -export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy = - { - data?: ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedByData; - }; - export type ProtectionCoverageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -1237,17 +1288,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 +1325,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 +1372,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 +1429,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 +1440,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 +1479,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 +1678,6 @@ export type MpaaProtectionLevelStatMpaaProtectionLevel = { data?: MpaaProtectionLevelStatMpaaProtectionLevelData; }; -export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { - [key: string]: any; -}; - export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByData = { id?: number; attributes?: MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes; @@ -1650,6 +1697,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 +1713,10 @@ export type MpaaProtectionLevelStatLocation = { data?: MpaaProtectionLevelStatLocationData; }; +export type MpaaProtectionLevelStatLocationDataAttributesUpdatedByDataAttributes = { + [key: string]: any; +}; + export type MpaaProtectionLevelStatLocationDataAttributesCreatedByDataAttributes = { [key: string]: any; }; @@ -1715,17 +1767,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 +1806,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 +1868,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 +1882,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 +1937,12 @@ export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStat updatedBy?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; }; +export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + }; + export type MpaaProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -2014,6 +2066,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 +2109,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,10 +2137,24 @@ export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelS data?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; }; -export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = +export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { - id?: number; - attributes?: 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; + attributes?: MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes; }; export type MpaaProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissions = @@ -2151,20 +2217,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,11 +2294,27 @@ export interface MpaaProtectionLevelStatListResponse { export type MpaaProtectionLevelResponseMeta = { [key: string]: any }; +export interface MpaaProtectionLevelResponseDataObject { + id?: number; + attributes?: MpaaProtectionLevel; +} + export interface MpaaProtectionLevelResponse { data?: MpaaProtectionLevelResponseDataObject; meta?: MpaaProtectionLevelResponseMeta; } +export type MpaaProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; + +export type MpaaProtectionLevelUpdatedByData = { + id?: number; + attributes?: MpaaProtectionLevelUpdatedByDataAttributes; +}; + +export type MpaaProtectionLevelUpdatedBy = { + data?: MpaaProtectionLevelUpdatedByData; +}; + export interface MpaaProtectionLevel { slug: string; name: string; @@ -2257,20 +2325,21 @@ export interface MpaaProtectionLevel { updatedBy?: MpaaProtectionLevelUpdatedBy; } -export interface MpaaProtectionLevelResponseDataObject { - id?: number; - attributes?: MpaaProtectionLevel; -} - -export type MpaaProtectionLevelUpdatedByDataAttributes = { [key: string]: any }; - -export type MpaaProtectionLevelUpdatedByData = { - id?: number; - attributes?: MpaaProtectionLevelUpdatedByDataAttributes; -}; - -export type MpaaProtectionLevelUpdatedBy = { - data?: MpaaProtectionLevelUpdatedByData; +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 = { @@ -2308,18 +2377,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 +2386,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 +2398,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 +2445,6 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPer data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = - { - data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; - }; - export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributes = { action?: string; @@ -2421,6 +2468,11 @@ export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPer attributes?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes; }; +export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedBy = + { + data?: MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData; + }; + export type MpaaProtectionLevelCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesRoleDataAttributes = { [key: string]: any }; @@ -2470,18 +2522,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 +2543,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 +2577,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 +2608,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 +2642,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 +2678,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 +2748,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 +2762,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 +2787,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 +2824,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,21 +2860,10 @@ 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 }; - -export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = + { [key: string]: any }; + +export type MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData = { id?: number; attributes?: MpaaEstablishmentStageStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes; @@ -2846,6 +2888,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 +2933,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 +2972,6 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = { data?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; @@ -2935,10 +2988,10 @@ export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLev updatedBy?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; }; -export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = +export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = { id?: number; - attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; + attributes?: MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; }; export type MpaaEstablishmentStageStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = @@ -2955,24 +3008,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 +3033,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 +3065,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 +3092,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 +3159,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 +3430,6 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes updatedBy?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedBy; }; -export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers = { - data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; -}; - export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes = { [key: string]: any }; @@ -3389,6 +3438,10 @@ export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributes attributes?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItemAttributes; }; +export type MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsers = { + data?: MpaaEstablishmentStageCreatedByDataAttributesRolesDataItemAttributesUsersDataItem[]; +}; + export type MpaaEstablishmentStageListResponseMetaPagination = { page?: number; pageSize?: number; @@ -3412,11 +3465,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 +3493,11 @@ export interface MpaProtectionCoverageStat { updatedBy?: MpaProtectionCoverageStatUpdatedBy; } +export interface MpaProtectionCoverageStatResponseDataObject { + id?: number; + attributes?: MpaProtectionCoverageStat; +} + export type MpaProtectionCoverageStatCreatedByDataAttributes = { [key: string]: any }; export type MpaProtectionCoverageStatCreatedByData = { @@ -3511,20 +3564,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 +3577,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 +3599,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 +3627,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 +3652,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 +3698,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 +3737,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 +3804,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 +3857,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 +3907,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = - { - data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { [key: string]: any }; @@ -3867,6 +3916,11 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = + { + data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -3909,17 +3963,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,6 +3988,17 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedBy; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelData = + { + id?: number; + attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributes; + }; + +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevel = + { + data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelData; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -3959,6 +4013,12 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; +export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelData = + { + id?: number; + attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelDataAttributes; + }; + export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevel = { data?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelData; @@ -4003,12 +4063,6 @@ export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStats updatedBy?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; }; -export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type MpaProtectionCoverageStatMpaDataAttributesMpaProtectionCoverageStatsDataItemAttributesMpaDataAttributes = { [key: string]: any }; @@ -4023,6 +4077,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 +4122,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 +4145,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 +4174,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 +4212,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 +4236,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 +4264,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 +4275,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 +4317,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 +4368,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 +4423,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 +4449,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 +4499,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 +4511,12 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesCreatedByData; }; +export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem = + { + id?: number; + attributes?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItemAttributes; + }; + export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStats = { data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesProtectionCoverageStatsDataItem[]; @@ -4531,10 +4592,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 +4628,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 +4695,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 +4723,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 +4760,10 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesMembersDataItem[]; }; +export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroups = { + data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroupsDataItem[]; +}; + export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroupsDataItemAttributes = { [key: string]: any }; @@ -4713,10 +4772,6 @@ export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttribute attributes?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroupsDataItemAttributes; }; -export type MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroups = { - data?: MpaMpaProtectionCoverageStatsDataItemAttributesLocationDataAttributesGroupsDataItem[]; -}; - export type MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelData = { id?: number; attributes?: MpaMpaProtectionCoverageStatsDataItemAttributesMpaaProtectionLevelDataAttributes; @@ -4740,16 +4795,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 +4809,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 +4994,6 @@ export type MpaProtectionStatusDataAttributesCreatedBy = { data?: MpaProtectionStatusDataAttributesCreatedByData; }; -export type MpaMpaaEstablishmentStageData = { - id?: number; - attributes?: MpaMpaaEstablishmentStageDataAttributes; -}; - export type MpaMpaaEstablishmentStage = { data?: MpaMpaaEstablishmentStageData; }; @@ -4959,6 +5009,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 +5028,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 +5057,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 +5092,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 +5101,11 @@ export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesD attributes?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByDataAttributes; }; +export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedBy = + { + data?: MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesCreatedByData; + }; + export type MpaMpaaEstablishmentStageDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItem = { id?: number; @@ -5080,6 +5117,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 +5228,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 +5242,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 +5288,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 +5321,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 +5361,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 +5391,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 +5404,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 +5450,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 +5515,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 +5550,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 +5575,6 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = { - data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; -}; - export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes = { [key: string]: any }; @@ -5531,6 +5584,10 @@ export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttr attributes?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationDataAttributes; }; +export type LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocation = { + data?: LocationGroupsDataItemAttributesMpaaProtectionLevelStatsDataItemAttributesLocationData; +}; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItem = { id?: number; attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributes; @@ -5568,12 +5625,6 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData = - { - id?: number; - attributes?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes; - }; - export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevel = { data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelData; @@ -5603,6 +5654,11 @@ export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemA data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; +export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = + { + data?: LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; + }; + export type LocationGroupsDataItemAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributes = { slug?: string; @@ -5614,33 +5670,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 +5704,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 +5752,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 +5805,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 +5833,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 +5930,16 @@ export interface DocumentationMetadataComponent { export type LayerResponseMeta = { [key: string]: any }; +export interface LayerResponseDataObject { + id?: number; + attributes?: Layer; +} + 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 type LayerUpdatedByDataAttributes = { [key: string]: any }; export type LayerUpdatedByData = { @@ -5918,6 +5960,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 +5986,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 +6014,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 +6036,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 +6049,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 +6106,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 +6192,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 +6219,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 +6231,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 +6245,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 +6297,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 +6327,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 +6347,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 +6373,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 +6392,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 +6417,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 +6436,6 @@ export type HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttr data?: HabitatStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { - id?: number; - attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; -}; - export type HabitatStatLocationDataAttributesMpaaProtectionLevelStats = { data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; }; @@ -6413,11 +6466,6 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesCreatedByData; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel = - { - data?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelData; - }; - export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes = { location?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesLocation; mpaa_protection_level?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevel; @@ -6428,8 +6476,10 @@ export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAtt updatedBy?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesUpdatedBy; }; -export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByDataAttributes = - { [key: string]: any }; +export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { + id?: number; + attributes?: HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; +}; export type HabitatStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributesMpaaProtectionLevelDataAttributesUpdatedByData = { @@ -6442,20 +6492,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 +6509,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,6 +6567,16 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesUpdatedByData; }; +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 }; @@ -6523,6 +6591,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 +6613,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 +6638,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 +6723,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 +6761,6 @@ export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItem data?: HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesUpdatedByData; }; -export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByDataAttributes = - { [key: string]: any }; - export type HabitatStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesRolesDataItemAttributesPermissionsDataItemAttributesCreatedByData = { id?: number; @@ -6731,6 +6772,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 +6876,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 +6896,6 @@ export interface HabitatResponseDataObject { attributes?: Habitat; } -export interface HabitatResponse { - data?: HabitatResponseDataObject; - meta?: HabitatResponseMeta; -} - export type HabitatUpdatedByDataAttributes = { [key: string]: any }; export type HabitatUpdatedByData = { @@ -6869,6 +6927,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 +6964,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 +6977,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 +7002,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 +7024,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 +7052,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 +7102,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 +7122,6 @@ export interface FishingProtectionLevelStatResponseDataObject { attributes?: FishingProtectionLevelStat; } -export interface FishingProtectionLevelStatResponse { - data?: FishingProtectionLevelStatResponseDataObject; - meta?: FishingProtectionLevelStatResponseMeta; -} - export type FishingProtectionLevelStatUpdatedByDataAttributes = { [key: string]: any }; export type FishingProtectionLevelStatUpdatedByData = { @@ -7119,22 +7177,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 +7190,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,8 +7213,25 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItem[]; }; -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByDataAttributes = - { [key: string]: any }; +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 }; export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesUpdatedByData = { @@ -7185,36 +7258,6 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesCreatedByData; }; -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 FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = - { - data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; - }; - -export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributes = - { - slug?: string; - name?: string; - info?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedBy; - updatedBy?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy; - }; - export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusData = { id?: number; @@ -7235,6 +7278,11 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt attributes?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByDataAttributes; }; +export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedBy = + { + data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesUpdatedByData; + }; + export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesProtectionStatusDataAttributesCreatedByDataAttributes = { [key: string]: any }; @@ -7249,6 +7297,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 +7322,11 @@ export type FishingProtectionLevelStatLocationDataAttributesProtectionCoverageSt data?: FishingProtectionLevelStatLocationDataAttributesProtectionCoverageStatsDataItemAttributesLocationData; }; +export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem = { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItemAttributes; +}; + export type FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStats = { data?: FishingProtectionLevelStatLocationDataAttributesMpaaProtectionLevelStatsDataItem[]; }; @@ -7370,10 +7434,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 +7493,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 +7507,6 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedByData; }; -export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = - { - id?: number; - attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; - }; - export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedBy = { data?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData; @@ -7470,6 +7523,12 @@ export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLev updatedBy?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesUpdatedBy; }; +export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByData = + { + id?: number; + attributes?: FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributes; + }; + export type FishingProtectionLevelStatLocationDataAttributesFishingProtectionLevelStatsDataItemAttributesFishingProtectionLevelDataAttributesCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any }; @@ -7712,6 +7771,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 +7811,6 @@ export interface FishingProtectionLevel { updatedBy?: FishingProtectionLevelUpdatedBy; } -export interface FishingProtectionLevelResponseDataObject { - id?: number; - attributes?: FishingProtectionLevel; -} - export type FishingProtectionLevelCreatedByDataAttributesUpdatedByDataAttributes = { [key: string]: any; }; @@ -7765,23 +7824,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 +7846,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 +7875,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 +7909,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 +7998,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 +8242,11 @@ export interface DataInfoResponseDataObject { attributes?: DataInfo; } +export interface DataInfoResponse { + data?: DataInfoResponseDataObject; + meta?: DataInfoResponseMeta; +} + export type DataInfoUpdatedByDataAttributes = { [key: string]: any }; export type DataInfoUpdatedByData = { @@ -7971,6 +8258,8 @@ export type DataInfoUpdatedBy = { data?: DataInfoUpdatedByData; }; +export type DataInfoCreatedByDataAttributes = { [key: string]: any }; + export type DataInfoCreatedByData = { id?: number; attributes?: DataInfoCreatedByDataAttributes; @@ -7980,168 +8269,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; + attributes?: DataInfoDataSourcesDataItemAttributesCreatedByDataAttributes; }; -export type DataInfoCreatedByDataAttributesCreatedBy = { - data?: DataInfoCreatedByDataAttributesCreatedByData; +export type DataInfoDataSourcesDataItemAttributesCreatedBy = { + data?: DataInfoDataSourcesDataItemAttributesCreatedByData; }; -export type DataInfoCreatedByDataAttributesRoles = { - data?: DataInfoCreatedByDataAttributesRolesDataItem[]; -}; - -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 DataInfoCreatedByDataAttributesRolesDataItemAttributesUpdatedByDataAttributes = { +export type DataInfoDataSourcesDataItem = { + id?: number; + attributes?: DataInfoDataSourcesDataItemAttributes; +}; + +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; From 3e8148b49dfb683cabe3daabc22964a3024ed325 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 11:07:23 +0100 Subject: [PATCH 2/3] 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 ------------------- 9 files changed, 52 insertions(+), 124 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" }, From ab659db03a4a039137d85d5cfe1ced6055f3401e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez=20Mu=C3=B1oz?= Date: Tue, 7 Nov 2023 16:26:58 +0100 Subject: [PATCH 3/3] map: toggle on/off labels --- .../data-tool/content/map/index.tsx | 2 + .../content/map/labels-manager/index.tsx | 41 +++++++++++++++++++ .../map/layers-toolbox/layers-list/index.tsx | 22 ++++++---- .../data-tool/content/map/sync-settings.ts | 2 + 4 files changed, 60 insertions(+), 7 deletions(-) create mode 100644 frontend/src/containers/data-tool/content/map/labels-manager/index.tsx diff --git a/frontend/src/containers/data-tool/content/map/index.tsx b/frontend/src/containers/data-tool/content/map/index.tsx index 017fb0f3..b67146f2 100644 --- a/frontend/src/containers/data-tool/content/map/index.tsx +++ b/frontend/src/containers/data-tool/content/map/index.tsx @@ -9,6 +9,7 @@ import { useAtomValue, useSetAtom } from 'jotai'; import Map, { ZoomControls, Attributions, DrawControls, Drawing } from '@/components/map'; import SidebarContent from '@/components/sidebar-content'; // import Popup from '@/containers/map/popup'; +import LabelsManager from '@/containers/data-tool/content/map/labels-manager'; 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'; @@ -99,6 +100,7 @@ const DataToolMap: React.FC = () => { > {/* */}
      + diff --git a/frontend/src/containers/data-tool/content/map/labels-manager/index.tsx b/frontend/src/containers/data-tool/content/map/labels-manager/index.tsx new file mode 100644 index 00000000..b1fb08bb --- /dev/null +++ b/frontend/src/containers/data-tool/content/map/labels-manager/index.tsx @@ -0,0 +1,41 @@ +import { useCallback, useEffect } from 'react'; + +import { useMap } from 'react-map-gl'; + +import { useSyncMapSettings } from '@/containers/data-tool/content/map/sync-settings'; + +const LABELS_LAYER_ID = 'country-label'; + +const LabelsManager = () => { + const { default: mapRef } = useMap(); + const [{ labels }] = useSyncMapSettings(); + + const toggleLabels = useCallback(() => { + if (!mapRef) return; + const map = mapRef.getMap(); + + map.setLayoutProperty(LABELS_LAYER_ID, 'visibility', labels ? 'visible' : 'none'); + }, [mapRef, labels]); + + const handleStyleLoad = useCallback(() => { + toggleLabels(); + }, [toggleLabels]); + + useEffect(() => { + if (!mapRef) return; + mapRef.on('style.load', handleStyleLoad); + + return () => { + mapRef.off('style.load', handleStyleLoad); + }; + }, [mapRef, handleStyleLoad]); + + useEffect(() => { + if (!mapRef) return; + toggleLabels(); + }, [mapRef, toggleLabels]); + + return null; +}; + +export default LabelsManager; diff --git a/frontend/src/containers/data-tool/content/map/layers-toolbox/layers-list/index.tsx b/frontend/src/containers/data-tool/content/map/layers-toolbox/layers-list/index.tsx index 8d7f300a..8023771b 100644 --- a/frontend/src/containers/data-tool/content/map/layers-toolbox/layers-list/index.tsx +++ b/frontend/src/containers/data-tool/content/map/layers-toolbox/layers-list/index.tsx @@ -1,4 +1,4 @@ -import { useCallback } from 'react'; +import { ComponentProps, useCallback } from 'react'; import { LuChevronDown, LuChevronUp } from 'react-icons/lu'; @@ -8,6 +8,7 @@ import { Switch } from '@/components/ui/switch'; import { useSyncMapLayers, useSyncMapLayerSettings, + useSyncMapSettings, } from '@/containers/data-tool/content/map/sync-settings'; import { useGetLayers } from '@/types/generated/layer'; import { LayerResponseDataObject } from '@/types/generated/strapi.schemas'; @@ -19,6 +20,7 @@ const TABS_ICONS_CLASSES = 'w-5 h-5 -translate-y-[2px]'; const LayersDropdown = (): JSX.Element => { const [activeLayers, setMapLayers] = useSyncMapLayers(); const [, setLayerSettings] = useSyncMapLayerSettings(); + const [{ labels }, setMapSettings] = useSyncMapSettings(); const layersQuery = useGetLayers( { @@ -51,6 +53,16 @@ const LayersDropdown = (): JSX.Element => { [activeLayers, setLayerSettings, setMapLayers] ); + const handleLabelsChange = useCallback( + (active: Parameters['onCheckedChange']>[0]) => { + setMapSettings((prev) => ({ + ...prev, + labels: active, + })); + }, + [setMapSettings] + ); + return (
      @@ -83,7 +95,7 @@ const LayersDropdown = (): JSX.Element => {
    - + @@ -94,11 +106,7 @@ const LayersDropdown = (): JSX.Element => {
    • - {}} - /> + 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..81d4580d 100644 --- a/frontend/src/containers/data-tool/content/map/sync-settings.ts +++ b/frontend/src/containers/data-tool/content/map/sync-settings.ts @@ -7,8 +7,10 @@ import { LayerSettings } from '@/types/layers'; const DEFAULT_SYNC_MAP_SETTINGS: { bbox: LngLatBoundsLike; + labels: boolean; } = { bbox: null, + labels: true, }; export const useSyncMapSettings = () => {