From 50a6bfbf25ef2f98d08da2a29f490475f8a1a334 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Wed, 10 Jan 2024 15:11:01 +0100 Subject: [PATCH 01/82] WIP Besluiten --- package.json | 4 +- .../ModuleDecisionModal.tsx | 126 +++++++++++ .../ModuleModals/ModuleDecisionModal/index.ts | 1 + src/components/Modals/types.ts | 1 + .../Modules/ModuleDetail/ModuleDetail.tsx | 201 +++++++++++++----- yarn.lock | 20 +- 6 files changed, 284 insertions(+), 69 deletions(-) create mode 100644 src/components/Modals/ModuleModals/ModuleDecisionModal/ModuleDecisionModal.tsx create mode 100644 src/components/Modals/ModuleModals/ModuleDecisionModal/index.ts diff --git a/package.json b/package.json index 7810fed7..28072fd9 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.452", + "@pzh-ui/components": "^0.0.455", "@pzh-ui/config": "^0.0.56", - "@pzh-ui/css": "^0.0.75", + "@pzh-ui/css": "^0.0.76", "@pzh-ui/icons": "^0.0.47", "@react-hookz/web": "^24.0.2", "@tanstack/react-query": "^5.14.2", diff --git a/src/components/Modals/ModuleModals/ModuleDecisionModal/ModuleDecisionModal.tsx b/src/components/Modals/ModuleModals/ModuleDecisionModal/ModuleDecisionModal.tsx new file mode 100644 index 00000000..4f183999 --- /dev/null +++ b/src/components/Modals/ModuleModals/ModuleDecisionModal/ModuleDecisionModal.tsx @@ -0,0 +1,126 @@ +import { + Button, + Divider, + FormikDate, + FormikInput, + FormikRadioGroup, + FormikRte, + FormikSelect, +} from '@pzh-ui/components' +import { Form, Formik } from 'formik' + +import Modal from '@/components/Modal/Modal' +import useModalStore from '@/store/modalStore' + +const ModuleDecisionModal = () => { + const setActiveModal = useModalStore(state => state.setActiveModal) + + const handleFormSubmit = () => {} + + const initialValues = {} + + return ( + + +
+
+ + +
+ + +
+ + + + +
+ + + + +
+
+ +
+ + +
+ +
+
+ ) +} + +export default ModuleDecisionModal diff --git a/src/components/Modals/ModuleModals/ModuleDecisionModal/index.ts b/src/components/Modals/ModuleModals/ModuleDecisionModal/index.ts new file mode 100644 index 00000000..830ed47a --- /dev/null +++ b/src/components/Modals/ModuleModals/ModuleDecisionModal/index.ts @@ -0,0 +1 @@ +export { default } from './ModuleDecisionModal' diff --git a/src/components/Modals/types.ts b/src/components/Modals/types.ts index 918e2f76..305c2df6 100644 --- a/src/components/Modals/types.ts +++ b/src/components/Modals/types.ts @@ -11,6 +11,7 @@ export type ModalType = | 'moduleAddObject' | 'moduleEditObject' | 'moduleDeleteObject' + | 'moduleDecision' | 'areaAdd' | 'objectDetails' | 'objectAddConnection' diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 76a35f54..562505b6 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -5,9 +5,13 @@ import { Divider, Heading, Hyperlink, + Notification, + TabItem, + Tabs, Text, } from '@pzh-ui/components' -import { useState } from 'react' +import { Plus } from '@pzh-ui/icons' +import { useMemo, useState } from 'react' import { Module, ModuleObjectShort } from '@/api/fetchers.schemas' import Avatar from '@/components/Avatar' @@ -20,6 +24,7 @@ import { ModuleLockModal, ModuleObjectDeleteConfirmationModal, } from '@/components/Modals/ModuleModals' +import ModuleDecisionModal from '@/components/Modals/ModuleModals/ModuleDecisionModal' import ModuleCompleteCard from '@/components/Modules/ModuleCompleteCard' import ModuleInactiveCard from '@/components/Modules/ModuleInactiveCard' import ModuleItemList from '@/components/Modules/ModuleItemList' @@ -40,32 +45,22 @@ export interface ModuleContext { } const ModuleDetail = () => { - const setActiveModal = useModalStore(state => state.setActiveModal) - - const { - canEditModule, - canPatchModuleStatus, - canAddExistingObjectToModule, - canAddNewObjectToModule, - } = usePermissions() + const { canEditModule } = usePermissions() const pathName = location.pathname || '' - const [moduleContext, setModuleContext] = useState({}) - const { - data: { - Module: module, - Objects: objects, - StatusHistory: statusHistory, - } = {}, + data: { Module: module } = {}, isLoading, isModuleManager, - isLocked, - canComplete, } = useModule() const managers = useModuleManagers(module) + const disabledTabs = useMemo(() => { + if (!module?.Activated || (!canEditModule && !isModuleManager)) + return ['decisions'] + }, [module?.Activated, canEditModule, isModuleManager]) + const breadcrumbPaths = [ { name: 'Dashboard', path: '/muteer' }, { name: 'Modules', path: '/muteer' }, @@ -76,7 +71,7 @@ const ModuleDetail = () => { return ( -
+
{(canEditModule || isModuleManager) && ( @@ -122,13 +117,54 @@ const ModuleDetail = () => { )}
- {module.Activated ? ( - - ) : ( - - )}
+
+ + + {module.Activated && } +
+ +
+
+ +
+ +
+
+
+
+
+ ) +} + +const TabObjects = () => { + const setActiveModal = useModalStore(state => state.setActiveModal) + + const { + canPatchModuleStatus, + canAddExistingObjectToModule, + canAddNewObjectToModule, + } = usePermissions() + + const { + data: { + Module: module, + Objects: objects, + StatusHistory: statusHistory, + } = {}, + isLoading, + isModuleManager, + isLocked, + canComplete, + } = useModule() + + const [moduleContext, setModuleContext] = useState({}) + + if (isLoading || !module) return + + return ( + <>
{ )}
- - + + + + + + + + + + + + ) } -interface ModalsProps { - module: Module - moduleContext: ModuleContext -} +const TabDecisions = () => { + const setActiveModal = useModalStore(state => state.setActiveModal) + + return ( + <> +
+ + Voor elke (interne en officiële) publicatie moet een nieuwe + versie van een besluit worden aangemaakt. Een besluit is te + bewerken tot het moment dat er op ‘Maak levering’ wordt + geklikt. Iets niet goed gedaan? Maak dan een nieuwe versie + aan. Standaard worden de gegevens overgenomen van de vorige + versie, maar deze zijn uiteraard aan te passen. Voor alle + leveringen zie leveringen. + + +
+ + Visie + + +
-const Modals = ({ moduleContext, module }: ModalsProps) => ( - <> - - - - - - - - - - - - -) + + +
+ + Programma + + +
+ + + +
+ + Verordening + + +
+
+ + + ) +} export default ModuleDetail diff --git a/yarn.lock b/yarn.lock index 62ac6de5..f85b0ec8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2479,9 +2479,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.452": - version: 0.0.452 - resolution: "@pzh-ui/components@npm:0.0.452" +"@pzh-ui/components@npm:^0.0.455": + version: 0.0.455 + resolution: "@pzh-ui/components@npm:0.0.455" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" @@ -2531,7 +2531,7 @@ __metadata: react-stately: "npm:^3.18.0" react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" - checksum: 63dcd0d4e425dee788102bec43f5d4899843fe81c0961d8d0f9e238e23cce738868e152a42491f03f91a61b1b2dccbe0fee9740b29a815f692cc02eb64d4f7dc + checksum: 360c6433124e51341db85bd7b794466163eae3ad5085146d1611b0f17a31b867190e84dbb979e3df0852b07ce3168dfb328517a2419c07e863e7329d4dadb23a languageName: node linkType: hard @@ -2563,9 +2563,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/css@npm:^0.0.75": - version: 0.0.75 - resolution: "@pzh-ui/css@npm:0.0.75" +"@pzh-ui/css@npm:^0.0.76": + version: 0.0.76 + resolution: "@pzh-ui/css@npm:0.0.76" dependencies: "@rollup/plugin-typescript": "npm:^8.3.1" "@tailwindcss/custom-forms": "npm:^0.2.1" @@ -2574,7 +2574,7 @@ __metadata: "@tailwindcss/typography": "npm:^0.5.9" react-datepicker: "npm:^4.7.0" react-toastify: "npm:^9.1.2" - checksum: 98534c48dbaafe7f7a0c2b2cb5e57c374763e4279b1882f29cd094744fd5f2c827adfc53a60cdcde4524a70451d4a0021fa761133633c29492ba5a586f131358 + checksum: 063793740c2e124a29832cf2f1e623df631e204a4d469e1466f8cd1bca99aaaeda15734b91425f8c8bfff3177e59ce989ca8b7437b1ebb95cf99d8eeab16d7fe languageName: node linkType: hard @@ -12452,9 +12452,9 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.452" + "@pzh-ui/components": "npm:^0.0.455" "@pzh-ui/config": "npm:^0.0.56" - "@pzh-ui/css": "npm:^0.0.75" + "@pzh-ui/css": "npm:^0.0.76" "@pzh-ui/icons": "npm:^0.0.47" "@react-hookz/web": "npm:^24.0.2" "@tanstack/react-query": "npm:^5.14.2" From e525520c07a8da57f5c5e1bd6ea823457a88f5e2 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Wed, 10 Jan 2024 15:25:20 +0100 Subject: [PATCH 02/82] Update Notification component --- .../Modals/PasswordChangeModal/PasswordChangeModal.tsx | 4 ++-- src/components/Modules/ModuleLock/ModuleLock.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Modals/PasswordChangeModal/PasswordChangeModal.tsx b/src/components/Modals/PasswordChangeModal/PasswordChangeModal.tsx index 087687ed..fb3e3412 100644 --- a/src/components/Modals/PasswordChangeModal/PasswordChangeModal.tsx +++ b/src/components/Modals/PasswordChangeModal/PasswordChangeModal.tsx @@ -65,7 +65,7 @@ export default function PasswordChangeModal() { value={values.currentPassword} /> - + Het nieuwe wachtwoord moet minimaal 12 karakters bevatten en moet ten minste 1 cijfer, 1 speciaal karakter en 1 hoofdletter bevatten. @@ -111,7 +111,7 @@ export default function PasswordChangeModal() { )} - + <> Ben je je huidige wachtwoord vergeten? Neem dan contact op met diff --git a/src/components/Modules/ModuleLock/ModuleLock.tsx b/src/components/Modules/ModuleLock/ModuleLock.tsx index 6aa733c2..fbe61092 100644 --- a/src/components/Modules/ModuleLock/ModuleLock.tsx +++ b/src/components/Modules/ModuleLock/ModuleLock.tsx @@ -64,7 +64,7 @@ interface LockedNotificationProps { export const LockedNotification = ({ isDetail }: LockedNotificationProps) => ( <> {!isDetail && } - + De module is op dit moment gelockt, er kunnen geen wijzigingen worden aangebracht. From 7c1e457f2d6b6bed627eff54f330f7dee0277ac6 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 11 Jan 2024 10:49:30 +0100 Subject: [PATCH 03/82] WIP Besluiten --- package.json | 4 ++-- .../Modules/ModuleLock/ModuleLock.tsx | 2 +- .../Modules/ModuleDetail/ModuleDetail.tsx | 14 +++++++++++-- yarn.lock | 20 +++++++++---------- 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 28072fd9..0d7ca2d1 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.455", + "@pzh-ui/components": "^0.0.457", "@pzh-ui/config": "^0.0.56", - "@pzh-ui/css": "^0.0.76", + "@pzh-ui/css": "^0.0.78", "@pzh-ui/icons": "^0.0.47", "@react-hookz/web": "^24.0.2", "@tanstack/react-query": "^5.14.2", diff --git a/src/components/Modules/ModuleLock/ModuleLock.tsx b/src/components/Modules/ModuleLock/ModuleLock.tsx index fbe61092..ca33f053 100644 --- a/src/components/Modules/ModuleLock/ModuleLock.tsx +++ b/src/components/Modules/ModuleLock/ModuleLock.tsx @@ -20,7 +20,7 @@ const ModuleLock = () => { if (!canEditModule && !isModuleManager && isLocked) { return } else if (!canEditModule && !isModuleManager && !isLocked) { - return + return } return ( diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 562505b6..5587d4ad 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -11,6 +11,7 @@ import { Text, } from '@pzh-ui/components' import { Plus } from '@pzh-ui/icons' +import classNames from 'classnames' import { useMemo, useState } from 'react' import { Module, ModuleObjectShort } from '@/api/fetchers.schemas' @@ -119,10 +120,19 @@ const ModuleDetail = () => { -
+
- {module.Activated && } + {module.Activated ? ( + + ) : ( + + )}
diff --git a/yarn.lock b/yarn.lock index f85b0ec8..ace770c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2479,9 +2479,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.455": - version: 0.0.455 - resolution: "@pzh-ui/components@npm:0.0.455" +"@pzh-ui/components@npm:^0.0.457": + version: 0.0.457 + resolution: "@pzh-ui/components@npm:0.0.457" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" @@ -2531,7 +2531,7 @@ __metadata: react-stately: "npm:^3.18.0" react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" - checksum: 360c6433124e51341db85bd7b794466163eae3ad5085146d1611b0f17a31b867190e84dbb979e3df0852b07ce3168dfb328517a2419c07e863e7329d4dadb23a + checksum: 50eee49a4a9aef8c0445ea2322a7fa7d686a5b8f3dd23e9acc536ef538afb6fcfe1b801476c9c05a4ec73806dbf95506c291fb22873bd2428c873a38fb317ac1 languageName: node linkType: hard @@ -2563,9 +2563,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/css@npm:^0.0.76": - version: 0.0.76 - resolution: "@pzh-ui/css@npm:0.0.76" +"@pzh-ui/css@npm:^0.0.78": + version: 0.0.78 + resolution: "@pzh-ui/css@npm:0.0.78" dependencies: "@rollup/plugin-typescript": "npm:^8.3.1" "@tailwindcss/custom-forms": "npm:^0.2.1" @@ -2574,7 +2574,7 @@ __metadata: "@tailwindcss/typography": "npm:^0.5.9" react-datepicker: "npm:^4.7.0" react-toastify: "npm:^9.1.2" - checksum: 063793740c2e124a29832cf2f1e623df631e204a4d469e1466f8cd1bca99aaaeda15734b91425f8c8bfff3177e59ce989ca8b7437b1ebb95cf99d8eeab16d7fe + checksum: 7f6df890f0ef4e1be1b814d9cb2424a076938e0eacc6eb84acb0fde6458b165cc03b09151900c122dfcd0ff78c396e47d8fab0b7020671a73ef376aecb2c65a3 languageName: node linkType: hard @@ -12452,9 +12452,9 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.455" + "@pzh-ui/components": "npm:^0.0.457" "@pzh-ui/config": "npm:^0.0.56" - "@pzh-ui/css": "npm:^0.0.76" + "@pzh-ui/css": "npm:^0.0.78" "@pzh-ui/icons": "npm:^0.0.47" "@react-hookz/web": "npm:^24.0.2" "@tanstack/react-query": "npm:^5.14.2" From d7693dd53f584abbe934a4c259f11d20a30fa2cc Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 11 Jan 2024 13:43:28 +0100 Subject: [PATCH 04/82] WIP Besluiten --- .../Modules/ModuleDetail/ModuleDetail.tsx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 5587d4ad..3d10753b 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -12,7 +12,7 @@ import { } from '@pzh-ui/components' import { Plus } from '@pzh-ui/icons' import classNames from 'classnames' -import { useMemo, useState } from 'react' +import { useState } from 'react' import { Module, ModuleObjectShort } from '@/api/fetchers.schemas' import Avatar from '@/components/Avatar' @@ -57,11 +57,6 @@ const ModuleDetail = () => { const managers = useModuleManagers(module) - const disabledTabs = useMemo(() => { - if (!module?.Activated || (!canEditModule && !isModuleManager)) - return ['decisions'] - }, [module?.Activated, canEditModule, isModuleManager]) - const breadcrumbPaths = [ { name: 'Dashboard', path: '/muteer' }, { name: 'Modules', path: '/muteer' }, @@ -123,15 +118,15 @@ const ModuleDetail = () => {
- + {module.Activated ? ( ) : ( - + !canEditModule && + !isModuleManager && )}
From 2f4c50c8fe67aea5377bb293ebcf37611217848f Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 11 Jan 2024 16:05:03 +0100 Subject: [PATCH 05/82] Update Decisions modal --- package.json | 4 +- src/components/Accordion/Accordion.tsx | 67 ++++++++++++++----- .../ModuleDecisionModal.tsx | 55 ++++++++++++++- src/store/regulationStore.ts | 4 +- yarn.lock | 20 +++--- 5 files changed, 119 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index 0d7ca2d1..18c9f89d 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.457", + "@pzh-ui/components": "^0.0.459", "@pzh-ui/config": "^0.0.56", - "@pzh-ui/css": "^0.0.78", + "@pzh-ui/css": "^0.0.79", "@pzh-ui/icons": "^0.0.47", "@react-hookz/web": "^24.0.2", "@tanstack/react-query": "^5.14.2", diff --git a/src/components/Accordion/Accordion.tsx b/src/components/Accordion/Accordion.tsx index 0ec8a5c7..30806fff 100644 --- a/src/components/Accordion/Accordion.tsx +++ b/src/components/Accordion/Accordion.tsx @@ -7,33 +7,46 @@ import { ReactNode, cloneElement, isValidElement, + useEffect, useState, } from 'react' interface AccordionProps { className?: string children: ReactNode | ReactNode[] - activeItem?: string - onClickCallback?: (item: string) => void + activeItem?: string | null + multipleOpen?: boolean + onClickCallback?: (item: string | null) => void } const Accordion = ({ className, children, activeItem, + multipleOpen = false, onClickCallback, }: AccordionProps) => { - const [openItemId, setOpenItemId] = useState( - activeItem || null + const [openItemIds, setOpenItemIds] = useState( + activeItem ? [activeItem] : [] ) const handleItemClick = (itemId: string) => { - setOpenItemId(prevItemId => (prevItemId === itemId ? null : itemId)) + setOpenItemIds(prevItemIds => { + if (prevItemIds.includes(itemId)) { + // Item is already open, close it + return multipleOpen + ? prevItemIds.filter(id => id !== itemId) + : [] + } else { + // Item is not open, open it + return multipleOpen ? [...prevItemIds, itemId] : [itemId] + } + }) onClickCallback?.(itemId) } useUpdateEffect(() => { - if (activeItem && activeItem !== openItemId) { + if (activeItem && activeItem !== openItemIds[0]) { handleItemClick(activeItem) } }, [activeItem]) @@ -43,7 +56,7 @@ const Accordion = ({ const itemId = child.props.uuid const itemProps = { ...(child.props as AccordionItemProps), - isOpen: itemId === openItemId, + isOpen: openItemIds.includes(itemId), onToggle: () => !child.props.isDisabled && handleItemClick(itemId), } @@ -55,28 +68,49 @@ const Accordion = ({ return
    {processedChildren}
} -interface AccordionItemProps extends AccordionProps { +interface AccordionItemProps extends HTMLAttributes { uuid?: string isOpen?: boolean isDisabled?: boolean onToggle?: () => void + defaultOpen?: boolean } const AccordionItem = ({ className, children, isOpen, - isDisabled, - onToggle, + defaultOpen = false, ...rest -}: AccordionItemProps & HTMLAttributes) => { +}: AccordionItemProps) => { + const [itemOpen, setItemOpen] = useState(defaultOpen) + + useUpdateEffect(() => { + if (isOpen !== undefined && isOpen !== itemOpen) { + setItemOpen(isOpen) + } + }, [isOpen]) + + const toggleItem = () => { + setItemOpen(prevItemOpen => !prevItemOpen) + if (isOpen !== undefined && isOpen !== itemOpen) { + setItemOpen(isOpen) + } + } + + useEffect(() => { + if (defaultOpen !== itemOpen) { + setItemOpen(defaultOpen) + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [defaultOpen]) + const processedChildren = Children.map(children, child => { if (isValidElement(child)) { const itemProps = { ...(child.props as AccordionProps), - isOpen, - isDisabled, - onToggle, + isOpen: itemOpen, + onToggle: toggleItem, } return cloneElement(child, itemProps) } @@ -86,7 +120,7 @@ const AccordionItem = ({ return (
  • {processedChildren}
  • @@ -128,7 +162,8 @@ const AccordionTrigger = ({ className={classNames( "after:content-[' '] ml-auto after:absolute after:right-0 after:top-0 after:h-full", classNameButton - )}> + )} + type="button"> { placeholder="Regeling opschrift" /> +
    + Artikelen + +
    { onPress={() => setActiveModal(null)}> Annuleren - +
    @@ -123,4 +136,44 @@ const ModuleDecisionModal = () => { ) } +const Articles = () => ( + + + + Artikel I - Genomen besluit ( wat het bestuursorgaan besluit + vast te stellen of te wijzigen ) + + + + + + + + Artikel II - Wijzigingen ( opsomming van gewijzigde artikelen ) + + + + + + + + Artikel III - Inwerkingtreding ( datum waarop het + wijzigingsbesluit geldig is ) + + + + + + +) + export default ModuleDecisionModal diff --git a/src/store/regulationStore.ts b/src/store/regulationStore.ts index 91c41d4d..beb3a464 100644 --- a/src/store/regulationStore.ts +++ b/src/store/regulationStore.ts @@ -27,9 +27,9 @@ interface RegulationState { /** Set dragging item */ setDraggingItem: (item: number[] | null) => void /** Active item */ - activeItem?: string + activeItem?: string | null /** Set active item */ - setActiveItem: (item?: string) => void + setActiveItem: (item?: string | null) => void /** Active item */ itemAction?: RegulationAction /** Set active item */ diff --git a/yarn.lock b/yarn.lock index ace770c0..aba90cc1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2479,9 +2479,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.457": - version: 0.0.457 - resolution: "@pzh-ui/components@npm:0.0.457" +"@pzh-ui/components@npm:^0.0.459": + version: 0.0.459 + resolution: "@pzh-ui/components@npm:0.0.459" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" @@ -2531,7 +2531,7 @@ __metadata: react-stately: "npm:^3.18.0" react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" - checksum: 50eee49a4a9aef8c0445ea2322a7fa7d686a5b8f3dd23e9acc536ef538afb6fcfe1b801476c9c05a4ec73806dbf95506c291fb22873bd2428c873a38fb317ac1 + checksum: 700ff962764841047f63476856deb60e0664c95b467e2d91b128da58b0873b5eefc5ca9c03a250861afeb1b3d7ce50ae2862593914eaf6b0bcea0343d9eda04d languageName: node linkType: hard @@ -2563,9 +2563,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/css@npm:^0.0.78": - version: 0.0.78 - resolution: "@pzh-ui/css@npm:0.0.78" +"@pzh-ui/css@npm:^0.0.79": + version: 0.0.79 + resolution: "@pzh-ui/css@npm:0.0.79" dependencies: "@rollup/plugin-typescript": "npm:^8.3.1" "@tailwindcss/custom-forms": "npm:^0.2.1" @@ -2574,7 +2574,7 @@ __metadata: "@tailwindcss/typography": "npm:^0.5.9" react-datepicker: "npm:^4.7.0" react-toastify: "npm:^9.1.2" - checksum: 7f6df890f0ef4e1be1b814d9cb2424a076938e0eacc6eb84acb0fde6458b165cc03b09151900c122dfcd0ff78c396e47d8fab0b7020671a73ef376aecb2c65a3 + checksum: 65f08cd2a33108adf63a83cbe680f6f72733385cff6608d082a7c47d93f5457cb595a15d90c8057553877737be658a21c670ca1693f96a8595c03da232b00614 languageName: node linkType: hard @@ -12452,9 +12452,9 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.457" + "@pzh-ui/components": "npm:^0.0.459" "@pzh-ui/config": "npm:^0.0.56" - "@pzh-ui/css": "npm:^0.0.78" + "@pzh-ui/css": "npm:^0.0.79" "@pzh-ui/icons": "npm:^0.0.47" "@react-hookz/web": "npm:^24.0.2" "@tanstack/react-query": "npm:^5.14.2" From fdb1ef1d9f5af25853554c8400c913f19f366392 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 16 Jan 2024 09:43:32 +0100 Subject: [PATCH 06/82] WIP Besluiten --- package.json | 2 +- .../ModuleDecisionModal.tsx | 12 +- .../Modules/ModuleDetail/ModuleDetail.tsx | 103 +++++++++++++++++- yarn.lock | 10 +- 4 files changed, 117 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 18c9f89d..117d999a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.459", + "@pzh-ui/components": "^0.0.460", "@pzh-ui/config": "^0.0.56", "@pzh-ui/css": "^0.0.79", "@pzh-ui/icons": "^0.0.47", diff --git a/src/components/Modals/ModuleModals/ModuleDecisionModal/ModuleDecisionModal.tsx b/src/components/Modals/ModuleModals/ModuleDecisionModal/ModuleDecisionModal.tsx index a133fe50..eaa8a0f2 100644 --- a/src/components/Modals/ModuleModals/ModuleDecisionModal/ModuleDecisionModal.tsx +++ b/src/components/Modals/ModuleModals/ModuleDecisionModal/ModuleDecisionModal.tsx @@ -142,7 +142,9 @@ const Articles = () => ( uuid="article-1" className="data-[expanded=true]:bg-pzh-gray-100" defaultOpen> - + Artikel I - Genomen besluit ( wat het bestuursorgaan besluit vast te stellen of te wijzigen ) @@ -154,7 +156,9 @@ const Articles = () => ( uuid="article-2" className="data-[expanded=true]:bg-pzh-gray-100" defaultOpen> - + Artikel II - Wijzigingen ( opsomming van gewijzigde artikelen ) @@ -165,7 +169,9 @@ const Articles = () => ( uuid="article-3" className="data-[expanded=true]:bg-pzh-gray-100" defaultOpen> - + Artikel III - Inwerkingtreding ( datum waarop het wijzigingsbesluit geldig is ) diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 3d10753b..61f4f817 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -10,7 +10,7 @@ import { Tabs, Text, } from '@pzh-ui/components' -import { Plus } from '@pzh-ui/icons' +import { Check, Plus, Xmark } from '@pzh-ui/icons' import classNames from 'classnames' import { useState } from 'react' @@ -257,6 +257,58 @@ const TabDecisions = () => { Visie + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    VersieGebaseerd op ModulestatusType besluitDoelActie
    1Ontwerp GSOntwerpInterne publicatie + Levering succesvol geüpload op 03-01-2024 +
    2Ontwerp GSOntwerpOfficiële publicatie +
    + + + +
    +
    + + {isPending ? ( + ) : ( - + <> + {!!publication && ( + + )} + + {!!!publication ? ( + + ) : ( + + )} + )}
    ) diff --git a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx new file mode 100644 index 00000000..72e2b29f --- /dev/null +++ b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx @@ -0,0 +1,219 @@ +import { + Button, + Divider, + FormikDate, + FormikInput, + FormikRadioGroup, + FormikSelect, + FormikTextArea, + Text, + formatDate, +} from '@pzh-ui/components' +import { Form, Formik, FormikConfig, FormikValues } from 'formik' +import { useParams } from 'react-router-dom' + +import { useModulesModuleIdStatusGet } from '@/api/fetchers' +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from '@/components/Accordion' +import useModalStore from '@/store/modalStore' + +interface PublicationVersionFormProps { + submitLabel: string + isEdit?: boolean +} + +const PublicationVersionForm = ({ + submitLabel, + isEdit, + ...rest +}: PublicationVersionFormProps & FormikConfig) => { + const { moduleId } = useParams() + + const setActiveModal = useModalStore(state => state.setActiveModal) + + const { data: statusOptions } = useModulesModuleIdStatusGet( + parseInt(moduleId!), + { + query: { + enabled: !!moduleId, + select: data => + data + .filter(status => status.Status !== 'Niet-Actief') + .map(status => ({ + label: `${status.Status} (${formatDate( + new Date(status.Created_Date + 'Z'), + 'dd-MM-yyyy' + )})`, + value: status.ID, + })), + }, + } + ) + + return ( + +
    +
    + + +
    + + +
    + +
    + Artikelen + +
    + + +
    + + + + + +
    +
    + +
    + + +
    + +
    + ) +} + +const Articles = () => ( + + + + Artikel I - Genomen besluit ( wat het bestuursorgaan besluit + vast te stellen of te wijzigen ) + + + + + + + + Artikel II - Wijzigingen ( opsomming van gewijzigde artikelen ) + + + + + + + + Artikel III - Inwerkingtreding ( datum waarop het + wijzigingsbesluit geldig is ) + + + + + + +) + +export default PublicationVersionForm diff --git a/src/components/Publications/PublicationVersionForm/index.ts b/src/components/Publications/PublicationVersionForm/index.ts new file mode 100644 index 00000000..73bbe06e --- /dev/null +++ b/src/components/Publications/PublicationVersionForm/index.ts @@ -0,0 +1 @@ +export { default } from './PublicationVersionForm' diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx new file mode 100644 index 00000000..99853610 --- /dev/null +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -0,0 +1,145 @@ +import { Button } from '@pzh-ui/components' +import { FileWord } from '@pzh-ui/icons' +import { useQuery } from '@tanstack/react-query' +import { useParams } from 'react-router-dom' + +import { + useModulesModuleIdStatusGet, + usePublicationsPublicationUuidBillsGet, +} from '@/api/fetchers' +import { Publication, PublicationBillShort } from '@/api/fetchers.schemas' +import useModalStore from '@/store/modalStore' +import downloadFile from '@/utils/downloadFile' +import { toastNotification } from '@/utils/toastNotification' + +interface PublicationVersionsProps { + publication: Publication +} + +const PublicationVersions = ({ publication }: PublicationVersionsProps) => { + const { moduleId } = useParams() + + const { data } = usePublicationsPublicationUuidBillsGet( + publication!.UUID, + undefined, + { + query: { + enabled: !!publication, + }, + } + ) + + const { data: statusOptions } = useModulesModuleIdStatusGet( + parseInt(moduleId!), + { + query: { + enabled: !!moduleId, + select: data => + data.map(status => ({ + label: status.Status, + value: status.ID, + })), + }, + } + ) + + return ( + + + + + + + + + + + + {data?.results.map(bill => { + const status = statusOptions?.find( + option => option.value === bill.Module_Status_ID + ) + + return ( + + ) + })} + +
    VersieGebaseerd op ModulestatusType besluitDoelActie
    + ) +} + +const VersionRow = ({ + publication, + Version_ID, + Procedure_Type, + Is_Official, + status, + UUID, + Module_Status_ID, +}: PublicationBillShort & { publication: Publication; status?: string }) => { + const { moduleId } = useParams() + + const setActiveModal = useModalStore(state => state.setActiveModal) + + const downloadDiff = async ({ + moduleId, + Module_Status_ID, + }: { + moduleId?: string + Module_Status_ID: number + }) => { + toastNotification('downloadStarted') + + return downloadFile( + `modules/${moduleId}/diff?output_format=doc&status_id=${Module_Status_ID}` + ) + } + + const { isFetching, refetch: download } = useQuery({ + queryKey: ['downloadDiff', moduleId, Module_Status_ID, UUID], + queryFn: () => downloadDiff({ moduleId, Module_Status_ID }), + enabled: false, + }) + + return ( + + {Version_ID} + {status} + {Procedure_Type} + {Is_Official ? 'Officiële' : 'Interne'} publicatie + +
    + +
    + + + ) +} + +export default PublicationVersions diff --git a/src/components/Publications/PublicationVersions/index.ts b/src/components/Publications/PublicationVersions/index.ts new file mode 100644 index 00000000..fff16603 --- /dev/null +++ b/src/components/Publications/PublicationVersions/index.ts @@ -0,0 +1 @@ +export { default } from './PublicationVersions' diff --git a/src/config/notifications.ts b/src/config/notifications.ts index ffb96c02..0e1b23d3 100644 --- a/src/config/notifications.ts +++ b/src/config/notifications.ts @@ -20,6 +20,7 @@ export type ToastType = | 'userActivated' | 'userDeactivated' | 'userPasswordGenerated' + | 'downloadStarted' type MessageType = 'default' | 'success' | 'error' | 'warning' | 'info' @@ -108,4 +109,8 @@ export const notifications: Record< message: 'Het nieuwe wachtwoord voor de gebruiker is opgeslagen', type: 'success', }, + downloadStarted: { + message: 'De download wordt gegeneerd, dit kan even duren', + type: 'info', + }, } diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 72823129..06dab5fb 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -11,9 +11,13 @@ import { Text, } from '@pzh-ui/components' import classNames from 'classnames' -import { useState } from 'react' +import { Fragment, useState } from 'react' -import { DocumentType, Module, ModuleObjectShort } from '@/api/fetchers.schemas' +import { + AppExtensionsPublicationsEnumsDocumentType, + Module, + ModuleObjectShort, +} from '@/api/fetchers.schemas' import Avatar from '@/components/Avatar' import { LoaderContent } from '@/components/Loader' import { @@ -24,7 +28,11 @@ import { ModuleLockModal, ModuleObjectDeleteConfirmationModal, } from '@/components/Modals/ModuleModals' -import ModuleDecisionModal from '@/components/Modals/ModuleModals/ModuleDecisionModal' +import { + PublicationAddModal, + PublicationVersionAddModal, + PublicationVersionEditModal, +} from '@/components/Modals/PublicationModals' import ModuleCompleteCard from '@/components/Modules/ModuleCompleteCard' import ModuleInactiveCard from '@/components/Modules/ModuleInactiveCard' import ModuleItemList from '@/components/Modules/ModuleItemList' @@ -238,7 +246,9 @@ const TabObjects = () => { } const TabDecisions = () => { - const documentTypes = Object.keys(DocumentType) as Array + const documentTypes = Object.keys( + AppExtensionsPublicationsEnumsDocumentType + ) as Array return ( <> @@ -254,89 +264,19 @@ const TabDecisions = () => { {documentTypes.map((type, index) => ( - <> + {index + 1 !== documentTypes.length && ( )} - + ))} - - {/*
    - - Visie - - - - - -
    - - - -
    - - Programma - - - - - -
    - - - -
    - - Verordening - - -
    */}
    - + + + + ) } diff --git a/src/store/modalStore.ts b/src/store/modalStore.ts index 6bf248b0..bcab5784 100644 --- a/src/store/modalStore.ts +++ b/src/store/modalStore.ts @@ -1,17 +1,40 @@ import { create } from 'zustand' -import { ModalType } from '@/components/Modals/types' +import { ModalStateMap, ModalType } from '@/components/Modals/types' interface ModalState { /** Active modal id */ activeModal: ModalType | null + /** State of modals */ + modalStates: Partial> /** Set active modal id */ - setActiveModal: (id: ModalType | null) => void + setActiveModal: ( + id: ModalType | null, + state?: Partial + ) => void } const useModalStore = create(set => ({ activeModal: null, - setActiveModal: activeModal => set(state => ({ ...state, activeModal })), + modalStates: {}, + setActiveModal: (activeModal, modalState) => + set(state => ({ + ...state, + activeModal, + modalStates: { + ...state.modalStates, + ...(activeModal !== null + ? { + [activeModal]: state.modalStates[activeModal] + ? { + ...state.modalStates[activeModal], + ...modalState, + } + : modalState, + } + : {}), + }, + })), })) export default useModalStore diff --git a/src/utils/downloadFile.ts b/src/utils/downloadFile.ts new file mode 100644 index 00000000..833f2909 --- /dev/null +++ b/src/utils/downloadFile.ts @@ -0,0 +1,40 @@ +import { getAccessToken } from '@/api/instance' + +import getApiUrl from './getApiUrl' + +const downloadFile = async (path: string) => { + try { + const response = await fetch(`${getApiUrl()}/${path}`, { + method: 'GET', + headers: { + Authorization: `Bearer ${getAccessToken()}`, + }, + }) + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`) + } + + const blob = await response.blob() + const contentDisposition = response.headers.get('content-disposition') + let fileName = 'downloaded_file' + if (contentDisposition) { + fileName = contentDisposition.split('=')[1] + } + + const url = URL.createObjectURL(blob) + const link = document.createElement('a') + link.href = url + link.setAttribute('download', fileName) + document.body.appendChild(link) + link.click() + + // Clean up + link.parentNode?.removeChild(link) + URL.revokeObjectURL(url) + } catch (error) { + console.error(`Error fetching data: ${error}`) + } +} + +export default downloadFile diff --git a/yarn.lock b/yarn.lock index 0d41c2ab..36e339a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2479,13 +2479,13 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.461": - version: 0.0.461 - resolution: "@pzh-ui/components@npm:0.0.461" +"@pzh-ui/components@npm:^0.0.465": + version: 0.0.465 + resolution: "@pzh-ui/components@npm:0.0.465" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" - "@pzh-ui/icons": "npm:^0.0.48" + "@pzh-ui/icons": "npm:^0.0.50" "@react-aria/utils": "npm:^3.19.0" "@react-hookz/web": "npm:^23.1.0" "@react-types/shared": "npm:^3.19.0" @@ -2531,7 +2531,7 @@ __metadata: react-stately: "npm:^3.18.0" react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" - checksum: f69dc964ed3cc03cf9e7029286d796af24b0832da7a1e6975665f0ceef87339b1fb4cf049a473610c528612884a685855df604280f15eefd4e56edc01a6edb8c + checksum: c58dc32aa107819994b6240749e9871c0288a18c3d8baa30cc1714501f82a08c92481c8ce874bb2e0a5cb21055bc0041a939856c7a3cda22ff70cc7cb78e714c languageName: node linkType: hard @@ -2563,9 +2563,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/css@npm:^0.0.79": - version: 0.0.79 - resolution: "@pzh-ui/css@npm:0.0.79" +"@pzh-ui/css@npm:^0.0.80": + version: 0.0.80 + resolution: "@pzh-ui/css@npm:0.0.80" dependencies: "@rollup/plugin-typescript": "npm:^8.3.1" "@tailwindcss/custom-forms": "npm:^0.2.1" @@ -2574,17 +2574,17 @@ __metadata: "@tailwindcss/typography": "npm:^0.5.9" react-datepicker: "npm:^4.7.0" react-toastify: "npm:^9.1.2" - checksum: 65f08cd2a33108adf63a83cbe680f6f72733385cff6608d082a7c47d93f5457cb595a15d90c8057553877737be658a21c670ca1693f96a8595c03da232b00614 + checksum: f33cfa8697ac1840659461e1bc574a74d7ce26a6194bd4c159c7256073734c5f72e20c6a19535e5d767f0997902bd632ecce8a95342aafff32177effc70a9211 languageName: node linkType: hard -"@pzh-ui/icons@npm:^0.0.48": - version: 0.0.48 - resolution: "@pzh-ui/icons@npm:0.0.48" +"@pzh-ui/icons@npm:^0.0.50": + version: 0.0.50 + resolution: "@pzh-ui/icons@npm:0.0.50" dependencies: react: "npm:^18.0.0" react-toastify: "npm:^9.1.2" - checksum: eb8892be79b09d5df82678ed8272b50973a5f93ea07158235a155044ca94db0caaf508a5001cc70e46142be6d2419dcc5540888d9230944f6cbf5690c0eb17ea + checksum: a94a31decee8c7d314e8befbd4139875700729c136704c4f49c1ccad4dc4e1f2190af5f794d98a27b7479b21fea8c7b7b0fda1bd319d1374b34e6defc2f119de languageName: node linkType: hard @@ -12375,10 +12375,10 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.461" + "@pzh-ui/components": "npm:^0.0.465" "@pzh-ui/config": "npm:^0.0.56" - "@pzh-ui/css": "npm:^0.0.79" - "@pzh-ui/icons": "npm:^0.0.48" + "@pzh-ui/css": "npm:^0.0.80" + "@pzh-ui/icons": "npm:^0.0.50" "@react-hookz/web": "npm:^24.0.2" "@tanstack/react-query": "npm:^5.14.2" "@testing-library/dom": "npm:^9.3.3" From cfd7b17531e55e862185c0b32d9b65b220ebeff8 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 13 Feb 2024 14:56:47 +0100 Subject: [PATCH 20/82] Update Word export state --- .../PublicationVersions.tsx | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx index 99853610..bf48f2cf 100644 --- a/src/components/Publications/PublicationVersions/PublicationVersions.tsx +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -1,4 +1,4 @@ -import { Button } from '@pzh-ui/components' +import { Button, Tooltip } from '@pzh-ui/components' import { FileWord } from '@pzh-ui/icons' import { useQuery } from '@tanstack/react-query' import { useParams } from 'react-router-dom' @@ -127,15 +127,23 @@ const VersionRow = ({ }> Bewerken -
    +
    From 99852fb79297463d4aa90690460fdb6aeb93f65c Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 13 Feb 2024 15:05:32 +0100 Subject: [PATCH 21/82] Update download notification --- src/config/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/notifications.ts b/src/config/notifications.ts index 0e1b23d3..ca04b88e 100644 --- a/src/config/notifications.ts +++ b/src/config/notifications.ts @@ -110,7 +110,7 @@ export const notifications: Record< type: 'success', }, downloadStarted: { - message: 'De download wordt gegeneerd, dit kan even duren', + message: 'De download wordt gegenereerd, dit kan even duren', type: 'info', }, } From c798c1c2ebc3c1a7ac4b826edea419e54d4ccb3a Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 13 Feb 2024 15:13:25 +0100 Subject: [PATCH 22/82] AB#15426 --- .../PublicationVersions/PublicationVersions.tsx | 10 +++------- src/config/notifications.ts | 5 ----- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx index bf48f2cf..416cefed 100644 --- a/src/components/Publications/PublicationVersions/PublicationVersions.tsx +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -10,7 +10,6 @@ import { import { Publication, PublicationBillShort } from '@/api/fetchers.schemas' import useModalStore from '@/store/modalStore' import downloadFile from '@/utils/downloadFile' -import { toastNotification } from '@/utils/toastNotification' interface PublicationVersionsProps { publication: Publication @@ -93,13 +92,10 @@ const VersionRow = ({ }: { moduleId?: string Module_Status_ID: number - }) => { - toastNotification('downloadStarted') - - return downloadFile( + }) => + downloadFile( `modules/${moduleId}/diff?output_format=doc&status_id=${Module_Status_ID}` ) - } const { isFetching, refetch: download } = useQuery({ queryKey: ['downloadDiff', moduleId, Module_Status_ID, UUID], @@ -130,7 +126,7 @@ const VersionRow = ({
    diff --git a/src/config/notifications.ts b/src/config/notifications.ts index ca04b88e..ffb96c02 100644 --- a/src/config/notifications.ts +++ b/src/config/notifications.ts @@ -20,7 +20,6 @@ export type ToastType = | 'userActivated' | 'userDeactivated' | 'userPasswordGenerated' - | 'downloadStarted' type MessageType = 'default' | 'success' | 'error' | 'warning' | 'info' @@ -109,8 +108,4 @@ export const notifications: Record< message: 'Het nieuwe wachtwoord voor de gebruiker is opgeslagen', type: 'success', }, - downloadStarted: { - message: 'De download wordt gegenereerd, dit kan even duren', - type: 'info', - }, } From 91c8b9f135f1341e7974e34623733791338fe0e0 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 13 Feb 2024 15:32:17 +0100 Subject: [PATCH 23/82] Update dependencies --- package.json | 14 +- public/mockServiceWorker.js | 2 +- .../FieldConnections/FieldConnections.tsx | 2 +- yarn.lock | 2348 ++++++++--------- 4 files changed, 1045 insertions(+), 1321 deletions(-) diff --git a/package.json b/package.json index 8c2736d5..f51cdb6f 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "@pzh-ui/config": "^0.0.56", "@pzh-ui/css": "^0.0.80", "@pzh-ui/icons": "^0.0.50", - "@react-hookz/web": "^24.0.2", - "@tanstack/react-query": "^5.14.2", - "axios": "^1.6.2", + "@react-hookz/web": "^24.0.4", + "@tanstack/react-query": "^5.20.5", + "axios": "^1.6.7", "classnames": "^2.3.2", "d3": "^7.8.5", "date-fns": "^2.23.0", @@ -86,7 +86,7 @@ "@types/react-router-dom": "^5.3.2", "@types/uuid": "^9.0.3", "@vitejs/plugin-react": "^4.2.1", - "@vitest/coverage-v8": "^1.0.4", + "@vitest/coverage-v8": "^1.2.2", "add": "^2.0.6", "autoprefixer": "^10.4.4", "c8": "^8.0.0", @@ -100,11 +100,11 @@ "prettier": "2.8.8", "rollup-plugin-visualizer": "^5.11.0", "sass": "^1.63.6", - "tailwindcss": "^3.3.6", + "tailwindcss": "^3.4.1", "typescript": "^5.3.3", - "vite": "^5.0.7", + "vite": "^5.1.1", "vite-plugin-svgr": "^4.2.0", - "vite-tsconfig-paths": "^4.2.2", + "vite-tsconfig-paths": "^4.3.1", "vitest": "^1.0.4" }, "msw": { diff --git a/public/mockServiceWorker.js b/public/mockServiceWorker.js index f24fb8b9..a37382fc 100644 --- a/public/mockServiceWorker.js +++ b/public/mockServiceWorker.js @@ -2,7 +2,7 @@ /* tslint:disable */ /** - * Mock Service Worker (2.1.1). + * Mock Service Worker (2.2.0). * @see https://github.com/mswjs/msw * - Please do NOT modify this file. * - Please do NOT serve this file on production. diff --git a/src/components/Form/FieldConnections/FieldConnections.tsx b/src/components/Form/FieldConnections/FieldConnections.tsx index b8e8d9f0..8c036c44 100644 --- a/src/components/Form/FieldConnections/FieldConnections.tsx +++ b/src/components/Form/FieldConnections/FieldConnections.tsx @@ -3,7 +3,7 @@ import { useFormikContext } from 'formik' import { useCallback, useState } from 'react' import { ReadRelation, WriteRelation } from '@/api/fetchers.schemas' -import ObjectConnectionPart from '@/components/DynamicObject/ObjectConnectionPart/' +import ObjectConnectionPart from '@/components/DynamicObject/ObjectConnectionPart' import { ConnectionModal } from '@/components/Modals/ObjectModals/ObjectConnectionModal/ObjectConnectionModal' import { ObjectConnectionModalActions } from '@/components/Modals/ObjectModals/types' import * as models from '@/config/objects' diff --git a/yarn.lock b/yarn.lock index 36e339a3..43659a74 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13,9 +13,9 @@ __metadata: linkType: hard "@adobe/css-tools@npm:^4.3.2": - version: 4.3.2 - resolution: "@adobe/css-tools@npm:4.3.2" - checksum: 973dcb7ba5141f57ec726ddec2e94e8947361bb0c5f0e8ebd1e8aa3a84b28e66db4ad843908825f99730d59784ff3c43868b014a7268676a65950cdb850c42cc + version: 4.3.3 + resolution: "@adobe/css-tools@npm:4.3.3" + checksum: 0e77057efb4e18182560855503066b75edca98671be327d3f8a7ae89ec3da6821e693114b55225909fca00d7e7ed8422f3d79d71fe95dd4d5df1f2026a9fda02 languageName: node linkType: hard @@ -88,16 +88,16 @@ __metadata: linkType: hard "@axe-core/react@npm:^4.8.2": - version: 4.8.3 - resolution: "@axe-core/react@npm:4.8.3" + version: 4.8.5 + resolution: "@axe-core/react@npm:4.8.5" dependencies: - axe-core: "npm:~4.8.3" + axe-core: "npm:~4.8.4" requestidlecallback: "npm:^0.3.0" - checksum: 9c570b5cd615f6ab1b991b1c3ce800be79898390f7c10b00d9bb69c7b66bc77a90a1ff0db1cdea194ad4b8fa063c31f9d4fa9c1ea0c9bb102398f1eb0b0c1c09 + checksum: 0d103fde320962c9551359739372fd608585bdd88d109dae0875c3e8c7bff9738c6915357f6722ced5e3d56a6003191cb8b1725b8ad85f2c58299d457b2f5ed1 languageName: node linkType: hard -"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.22.13, @babel/code-frame@npm:^7.23.5": +"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.23.5": version: 7.23.5 resolution: "@babel/code-frame@npm:7.23.5" dependencies: @@ -115,31 +115,31 @@ __metadata: linkType: hard "@babel/core@npm:^7.21.3, @babel/core@npm:^7.23.5": - version: 7.23.7 - resolution: "@babel/core@npm:7.23.7" + version: 7.23.9 + resolution: "@babel/core@npm:7.23.9" dependencies: "@ampproject/remapping": "npm:^2.2.0" "@babel/code-frame": "npm:^7.23.5" "@babel/generator": "npm:^7.23.6" "@babel/helper-compilation-targets": "npm:^7.23.6" "@babel/helper-module-transforms": "npm:^7.23.3" - "@babel/helpers": "npm:^7.23.7" - "@babel/parser": "npm:^7.23.6" - "@babel/template": "npm:^7.22.15" - "@babel/traverse": "npm:^7.23.7" - "@babel/types": "npm:^7.23.6" + "@babel/helpers": "npm:^7.23.9" + "@babel/parser": "npm:^7.23.9" + "@babel/template": "npm:^7.23.9" + "@babel/traverse": "npm:^7.23.9" + "@babel/types": "npm:^7.23.9" convert-source-map: "npm:^2.0.0" debug: "npm:^4.1.0" gensync: "npm:^1.0.0-beta.2" json5: "npm:^2.2.3" semver: "npm:^6.3.1" - checksum: 956841695ea801c8b4196d01072e6c1062335960715a6fcfd4009831003b526b00627c78b373ed49b1658c3622c71142f7ff04235fe839cac4a1a25ed51b90aa + checksum: 268cdbb86bef1b8ea5b1300f2f325e56a1740a5051360cb228ffeaa0f80282b6674f3a2b4d6466adb0691183759b88d4c37b4a4f77232c84a49ed771c84cdc27 languageName: node linkType: hard "@babel/eslint-parser@npm:^7.17.0": - version: 7.23.3 - resolution: "@babel/eslint-parser@npm:7.23.3" + version: 7.23.10 + resolution: "@babel/eslint-parser@npm:7.23.10" dependencies: "@nicolo-ribaudo/eslint-scope-5-internals": "npm:5.1.1-v1" eslint-visitor-keys: "npm:^2.1.0" @@ -147,7 +147,7 @@ __metadata: peerDependencies: "@babel/core": ^7.11.0 eslint: ^7.5.0 || ^8.0.0 - checksum: bc487f67aac64f1f8b351b8ec5e83bd1de5770e2e39c648d4df486e4079110f8594ef5b60b6e8379a9bb944dbbe5d96295f04fa47ef17901186568875b804b99 + checksum: eb62ad6a1098836331317be978ebd5991a9257d58118062f252b002e995b4f35b76a5dc976b07d84d21e64c8395587a044c5e6e444b3b69ab53e50a18facf2af languageName: node linkType: hard @@ -195,8 +195,8 @@ __metadata: linkType: hard "@babel/helper-create-class-features-plugin@npm:^7.22.15, @babel/helper-create-class-features-plugin@npm:^7.23.6": - version: 7.23.7 - resolution: "@babel/helper-create-class-features-plugin@npm:7.23.7" + version: 7.23.10 + resolution: "@babel/helper-create-class-features-plugin@npm:7.23.10" dependencies: "@babel/helper-annotate-as-pure": "npm:^7.22.5" "@babel/helper-environment-visitor": "npm:^7.22.20" @@ -209,7 +209,7 @@ __metadata: semver: "npm:^6.3.1" peerDependencies: "@babel/core": ^7.0.0 - checksum: c8b3ef58fca399a25f00d703b0fb2ac1d86642d9e3bd7af04df77857641ed08aaca042ffb271ef93771f9272481fd1cf102a9bddfcee407fb126c927deeef6a7 + checksum: 8b9f02526eeb03ef1d2bc89e3554377ae966b33a74078ab1f88168dfa725dc206ea5ecf4cf417c3651d8a6b3c70204f6939a9aa0401be3d0d32ddbf6024ea3c7 languageName: node linkType: hard @@ -226,9 +226,9 @@ __metadata: languageName: node linkType: hard -"@babel/helper-define-polyfill-provider@npm:^0.4.4": - version: 0.4.4 - resolution: "@babel/helper-define-polyfill-provider@npm:0.4.4" +"@babel/helper-define-polyfill-provider@npm:^0.5.0": + version: 0.5.0 + resolution: "@babel/helper-define-polyfill-provider@npm:0.5.0" dependencies: "@babel/helper-compilation-targets": "npm:^7.22.6" "@babel/helper-plugin-utils": "npm:^7.22.5" @@ -237,7 +237,7 @@ __metadata: resolve: "npm:^1.14.2" peerDependencies: "@babel/core": ^7.4.0 || ^8.0.0-0 <8.0.0 - checksum: 16c312e40ecf2ead81f3ab7275387079071012d2363022c04cf16d56fe0d781185f3a517b928f4556c716ae45e0567b817b636d5cd2fee8fb2ce2b18a04c5bcd + checksum: f849e816ec4b182a3e8fa8e09ff016f88bb95259cd6b2190b815c48f83c3d3b68e973a8ec72acc5086bfe93705cbd46ec089c06476421d858597780e42235a03 languageName: node linkType: hard @@ -401,14 +401,14 @@ __metadata: languageName: node linkType: hard -"@babel/helpers@npm:^7.23.7": - version: 7.23.8 - resolution: "@babel/helpers@npm:7.23.8" +"@babel/helpers@npm:^7.23.9": + version: 7.23.9 + resolution: "@babel/helpers@npm:7.23.9" dependencies: - "@babel/template": "npm:^7.22.15" - "@babel/traverse": "npm:^7.23.7" - "@babel/types": "npm:^7.23.6" - checksum: 4c392351910102403b6a7c922319077b179c276e422a4e45b243b45610f813a05a043b6b116cbf5eb4b437fb51b9a2dfc2b7c65f38a0de7fde1f97d08a675313 + "@babel/template": "npm:^7.23.9" + "@babel/traverse": "npm:^7.23.9" + "@babel/types": "npm:^7.23.9" + checksum: dd56daac8bbd7ed174bb00fd185926fd449e591d9a00edaceb7ac6edbdd7a8db57e2cb365b4fafda382201752789ced2f7ae010f667eab0f198a4571cda4d2c5 languageName: node linkType: hard @@ -423,12 +423,12 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.22.15, @babel/parser@npm:^7.23.6": - version: 7.23.6 - resolution: "@babel/parser@npm:7.23.6" +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.6, @babel/parser@npm:^7.23.9": + version: 7.23.9 + resolution: "@babel/parser@npm:7.23.9" bin: parser: ./bin/babel-parser.js - checksum: 6be3a63d3c9d07b035b5a79c022327cb7e16cbd530140ecb731f19a650c794c315a72c699a22413ebeafaff14aa8f53435111898d59e01a393d741b85629fa7d + checksum: 727a7a807100f6a26df859e2f009c4ddbd0d3363287b45daa50bd082ccd0d431d0c4d0e610a91f806e04a1918726cd0f5a0592c9b902a815337feed12e1cafd9 languageName: node linkType: hard @@ -709,9 +709,9 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-async-generator-functions@npm:^7.23.7": - version: 7.23.7 - resolution: "@babel/plugin-transform-async-generator-functions@npm:7.23.7" +"@babel/plugin-transform-async-generator-functions@npm:^7.23.9": + version: 7.23.9 + resolution: "@babel/plugin-transform-async-generator-functions@npm:7.23.9" dependencies: "@babel/helper-environment-visitor": "npm:^7.22.20" "@babel/helper-plugin-utils": "npm:^7.22.5" @@ -719,7 +719,7 @@ __metadata: "@babel/plugin-syntax-async-generators": "npm:^7.8.4" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: b1f66b23423933c27336b1161ac92efef46683321caea97e2255a666f992979376f47a5559f64188d3831fa66a4b24c2a7a40838cc0e9737e90eebe20e8e6372 + checksum: d402494087a6b803803eb5ab46b837aab100a04c4c5148e38bfa943ea1bbfc1ecfb340f1ced68972564312d3580f550c125f452372e77607a558fbbaf98c31c0 languageName: node linkType: hard @@ -979,9 +979,9 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-systemjs@npm:^7.23.3": - version: 7.23.3 - resolution: "@babel/plugin-transform-modules-systemjs@npm:7.23.3" +"@babel/plugin-transform-modules-systemjs@npm:^7.23.9": + version: 7.23.9 + resolution: "@babel/plugin-transform-modules-systemjs@npm:7.23.9" dependencies: "@babel/helper-hoist-variables": "npm:^7.22.5" "@babel/helper-module-transforms": "npm:^7.23.3" @@ -989,7 +989,7 @@ __metadata: "@babel/helper-validator-identifier": "npm:^7.22.20" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 051112de7585fff4ffd67865066401f01f90745d41f26b0edbeec0981342c10517ce1a6b4d7051b583a3e513088eece6a3f57b1663f1dd9418071cd05f14fef9 + checksum: 4bb800e5a9d0d668d7421ae3672fccff7d5f2a36621fd87414d7ece6d6f4d93627f9644cfecacae934bc65ffc131c8374242aaa400cca874dcab9b281a21aff0 languageName: node linkType: hard @@ -1364,8 +1364,8 @@ __metadata: linkType: hard "@babel/preset-env@npm:^7.16.11": - version: 7.23.8 - resolution: "@babel/preset-env@npm:7.23.8" + version: 7.23.9 + resolution: "@babel/preset-env@npm:7.23.9" dependencies: "@babel/compat-data": "npm:^7.23.5" "@babel/helper-compilation-targets": "npm:^7.23.6" @@ -1394,7 +1394,7 @@ __metadata: "@babel/plugin-syntax-top-level-await": "npm:^7.14.5" "@babel/plugin-syntax-unicode-sets-regex": "npm:^7.18.6" "@babel/plugin-transform-arrow-functions": "npm:^7.23.3" - "@babel/plugin-transform-async-generator-functions": "npm:^7.23.7" + "@babel/plugin-transform-async-generator-functions": "npm:^7.23.9" "@babel/plugin-transform-async-to-generator": "npm:^7.23.3" "@babel/plugin-transform-block-scoped-functions": "npm:^7.23.3" "@babel/plugin-transform-block-scoping": "npm:^7.23.4" @@ -1416,7 +1416,7 @@ __metadata: "@babel/plugin-transform-member-expression-literals": "npm:^7.23.3" "@babel/plugin-transform-modules-amd": "npm:^7.23.3" "@babel/plugin-transform-modules-commonjs": "npm:^7.23.3" - "@babel/plugin-transform-modules-systemjs": "npm:^7.23.3" + "@babel/plugin-transform-modules-systemjs": "npm:^7.23.9" "@babel/plugin-transform-modules-umd": "npm:^7.23.3" "@babel/plugin-transform-named-capturing-groups-regex": "npm:^7.22.5" "@babel/plugin-transform-new-target": "npm:^7.23.3" @@ -1442,14 +1442,14 @@ __metadata: "@babel/plugin-transform-unicode-regex": "npm:^7.23.3" "@babel/plugin-transform-unicode-sets-regex": "npm:^7.23.3" "@babel/preset-modules": "npm:0.1.6-no-external-plugins" - babel-plugin-polyfill-corejs2: "npm:^0.4.7" - babel-plugin-polyfill-corejs3: "npm:^0.8.7" - babel-plugin-polyfill-regenerator: "npm:^0.5.4" + babel-plugin-polyfill-corejs2: "npm:^0.4.8" + babel-plugin-polyfill-corejs3: "npm:^0.9.0" + babel-plugin-polyfill-regenerator: "npm:^0.5.5" core-js-compat: "npm:^3.31.0" semver: "npm:^6.3.1" peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 74493faa8b3e4bdd07ab3fbde80d7b13cc05321877f997698177c0bb082669c9b6a87397bd79ca6656df3c80c05e514ffed6d81510e2d8719a6e9647c038b7b9 + checksum: 0214ac9434a2496eac7f56c0c91164421232ff2083a66e1ccab633ca91e262828e54a5cbdb9036e8fe53d53530b6597aa98c99de8ff07b5193ffd95f21dc9d2c languageName: node linkType: hard @@ -1505,28 +1505,28 @@ __metadata: linkType: hard "@babel/runtime@npm:^7.12.0, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.8.7, @babel/runtime@npm:^7.9.2": - version: 7.23.8 - resolution: "@babel/runtime@npm:7.23.8" + version: 7.23.9 + resolution: "@babel/runtime@npm:7.23.9" dependencies: regenerator-runtime: "npm:^0.14.0" - checksum: ec8f1967a36164da6cac868533ffdff97badd76d23d7d820cc84f0818864accef972f22f9c6a710185db1e3810e353fc18c3da721e5bb3ee8bc61bdbabce03ff + checksum: 9a520fe1bf72249f7dd60ff726434251858de15cccfca7aa831bd19d0d3fb17702e116ead82724659b8da3844977e5e13de2bae01eb8a798f2823a669f122be6 languageName: node linkType: hard -"@babel/template@npm:^7.22.15": - version: 7.22.15 - resolution: "@babel/template@npm:7.22.15" +"@babel/template@npm:^7.22.15, @babel/template@npm:^7.23.9": + version: 7.23.9 + resolution: "@babel/template@npm:7.23.9" dependencies: - "@babel/code-frame": "npm:^7.22.13" - "@babel/parser": "npm:^7.22.15" - "@babel/types": "npm:^7.22.15" - checksum: 21e768e4eed4d1da2ce5d30aa51db0f4d6d8700bc1821fec6292587df7bba2fe1a96451230de8c64b989740731888ebf1141138bfffb14cacccf4d05c66ad93f + "@babel/code-frame": "npm:^7.23.5" + "@babel/parser": "npm:^7.23.9" + "@babel/types": "npm:^7.23.9" + checksum: 1b011ba9354dc2e646561d54b6862e0df51760e6179faadd79be05825b0b6da04911e4e192df943f1766748da3037fd8493615b38707f7cadb0cf0c96601c170 languageName: node linkType: hard -"@babel/traverse@npm:^7.23.7": - version: 7.23.7 - resolution: "@babel/traverse@npm:7.23.7" +"@babel/traverse@npm:^7.23.9": + version: 7.23.9 + resolution: "@babel/traverse@npm:7.23.9" dependencies: "@babel/code-frame": "npm:^7.23.5" "@babel/generator": "npm:^7.23.6" @@ -1534,22 +1534,22 @@ __metadata: "@babel/helper-function-name": "npm:^7.23.0" "@babel/helper-hoist-variables": "npm:^7.22.5" "@babel/helper-split-export-declaration": "npm:^7.22.6" - "@babel/parser": "npm:^7.23.6" - "@babel/types": "npm:^7.23.6" + "@babel/parser": "npm:^7.23.9" + "@babel/types": "npm:^7.23.9" debug: "npm:^4.3.1" globals: "npm:^11.1.0" - checksum: 3215e59429963c8dac85c26933372cdd322952aa9930e4bc5ef2d0e4bd7a1510d1ecf8f8fd860ace5d4d9fe496d23805a1ea019a86410aee4111de5f63ee84f9 + checksum: e2bb845f7f229feb7c338f7e150f5f1abc5395dcd3a6a47f63a25242ec3ec6b165f04a6df7d4849468547faee34eb3cf52487eb0bd867a7d3c42fec2a648266f languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.22.15, @babel/types@npm:^7.22.19, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.23.4, @babel/types@npm:^7.23.6, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": - version: 7.23.6 - resolution: "@babel/types@npm:7.23.6" +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.22.15, @babel/types@npm:^7.22.19, @babel/types@npm:^7.22.5, @babel/types@npm:^7.23.0, @babel/types@npm:^7.23.4, @babel/types@npm:^7.23.6, @babel/types@npm:^7.23.9, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": + version: 7.23.9 + resolution: "@babel/types@npm:7.23.9" dependencies: "@babel/helper-string-parser": "npm:^7.23.4" "@babel/helper-validator-identifier": "npm:^7.22.20" to-fast-properties: "npm:^2.0.0" - checksum: 07e70bb94d30b0231396b5e9a7726e6d9227a0a62e0a6830c0bd3232f33b024092e3d5a7d1b096a65bbf2bb43a9ab4c721bf618e115bfbb87b454fa060f88cbf + checksum: bed9634e5fd0f9dc63c84cfa83316c4cb617192db9fedfea464fca743affe93736d7bf2ebf418ee8358751a9d388e303af87a0c050cb5d87d5870c1b0154f6cb languageName: node linkType: hard @@ -1569,15 +1569,6 @@ __metadata: languageName: node linkType: hard -"@bundled-es-modules/js-levenshtein@npm:^2.0.1": - version: 2.0.1 - resolution: "@bundled-es-modules/js-levenshtein@npm:2.0.1" - dependencies: - js-levenshtein: "npm:^1.1.6" - checksum: 13d0cbd2b00e563e09a797559dcff8c7e208c1f71e1787535a3d248f7e3d33ef3f0809b9f498d41788ab5fd399882dcca79917d70d97921b7dde94a282c1b7d8 - languageName: node - linkType: hard - "@bundled-es-modules/statuses@npm:^1.0.1": version: 1.0.1 resolution: "@bundled-es-modules/statuses@npm:1.0.1" @@ -1704,163 +1695,163 @@ __metadata: languageName: node linkType: hard -"@esbuild/aix-ppc64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/aix-ppc64@npm:0.19.11" +"@esbuild/aix-ppc64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/aix-ppc64@npm:0.19.12" conditions: os=aix & cpu=ppc64 languageName: node linkType: hard -"@esbuild/android-arm64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/android-arm64@npm:0.19.11" +"@esbuild/android-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-arm64@npm:0.19.12" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@esbuild/android-arm@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/android-arm@npm:0.19.11" +"@esbuild/android-arm@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-arm@npm:0.19.12" conditions: os=android & cpu=arm languageName: node linkType: hard -"@esbuild/android-x64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/android-x64@npm:0.19.11" +"@esbuild/android-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-x64@npm:0.19.12" conditions: os=android & cpu=x64 languageName: node linkType: hard -"@esbuild/darwin-arm64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/darwin-arm64@npm:0.19.11" +"@esbuild/darwin-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/darwin-arm64@npm:0.19.12" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@esbuild/darwin-x64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/darwin-x64@npm:0.19.11" +"@esbuild/darwin-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/darwin-x64@npm:0.19.12" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@esbuild/freebsd-arm64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/freebsd-arm64@npm:0.19.11" +"@esbuild/freebsd-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/freebsd-arm64@npm:0.19.12" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard -"@esbuild/freebsd-x64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/freebsd-x64@npm:0.19.11" +"@esbuild/freebsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/freebsd-x64@npm:0.19.12" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@esbuild/linux-arm64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/linux-arm64@npm:0.19.11" +"@esbuild/linux-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-arm64@npm:0.19.12" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@esbuild/linux-arm@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/linux-arm@npm:0.19.11" +"@esbuild/linux-arm@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-arm@npm:0.19.12" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@esbuild/linux-ia32@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/linux-ia32@npm:0.19.11" +"@esbuild/linux-ia32@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-ia32@npm:0.19.12" conditions: os=linux & cpu=ia32 languageName: node linkType: hard -"@esbuild/linux-loong64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/linux-loong64@npm:0.19.11" +"@esbuild/linux-loong64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-loong64@npm:0.19.12" conditions: os=linux & cpu=loong64 languageName: node linkType: hard -"@esbuild/linux-mips64el@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/linux-mips64el@npm:0.19.11" +"@esbuild/linux-mips64el@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-mips64el@npm:0.19.12" conditions: os=linux & cpu=mips64el languageName: node linkType: hard -"@esbuild/linux-ppc64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/linux-ppc64@npm:0.19.11" +"@esbuild/linux-ppc64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-ppc64@npm:0.19.12" conditions: os=linux & cpu=ppc64 languageName: node linkType: hard -"@esbuild/linux-riscv64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/linux-riscv64@npm:0.19.11" +"@esbuild/linux-riscv64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-riscv64@npm:0.19.12" conditions: os=linux & cpu=riscv64 languageName: node linkType: hard -"@esbuild/linux-s390x@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/linux-s390x@npm:0.19.11" +"@esbuild/linux-s390x@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-s390x@npm:0.19.12" conditions: os=linux & cpu=s390x languageName: node linkType: hard -"@esbuild/linux-x64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/linux-x64@npm:0.19.11" +"@esbuild/linux-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-x64@npm:0.19.12" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@esbuild/netbsd-x64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/netbsd-x64@npm:0.19.11" +"@esbuild/netbsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/netbsd-x64@npm:0.19.12" conditions: os=netbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/openbsd-x64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/openbsd-x64@npm:0.19.11" +"@esbuild/openbsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/openbsd-x64@npm:0.19.12" conditions: os=openbsd & cpu=x64 languageName: node linkType: hard -"@esbuild/sunos-x64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/sunos-x64@npm:0.19.11" +"@esbuild/sunos-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/sunos-x64@npm:0.19.12" conditions: os=sunos & cpu=x64 languageName: node linkType: hard -"@esbuild/win32-arm64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/win32-arm64@npm:0.19.11" +"@esbuild/win32-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-arm64@npm:0.19.12" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@esbuild/win32-ia32@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/win32-ia32@npm:0.19.11" +"@esbuild/win32-ia32@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-ia32@npm:0.19.12" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@esbuild/win32-x64@npm:0.19.11": - version: 0.19.11 - resolution: "@esbuild/win32-x64@npm:0.19.11" +"@esbuild/win32-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-x64@npm:0.19.12" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -1915,40 +1906,40 @@ __metadata: linkType: hard "@faker-js/faker@npm:^8.3.1": - version: 8.3.1 - resolution: "@faker-js/faker@npm:8.3.1" - checksum: 66b25cb82af907ff127767b54a5d6e95919c8051cd2de9131a6f5dd45dc539ebfbafad66e590e603e347e4c411f0f83c28e70043024af66faebba49d9868c263 + version: 8.4.1 + resolution: "@faker-js/faker@npm:8.4.1" + checksum: 5983c2ea64f26055ad6648de748878e11ebe2fb751e3c7435ae141cdffabc2dccfe4c4f49da69a3d2add71e21b415c683ac5fba196fab0d5ed6779fbec436c80 languageName: node linkType: hard -"@floating-ui/core@npm:^1.5.3": - version: 1.5.3 - resolution: "@floating-ui/core@npm:1.5.3" +"@floating-ui/core@npm:^1.0.0": + version: 1.6.0 + resolution: "@floating-ui/core@npm:1.6.0" dependencies: - "@floating-ui/utils": "npm:^0.2.0" - checksum: 7d9feaca2565a2a71bf03d23cd292c03def63097d7fde7d62909cdb8ddb84664781f3922086bcf10443f3310cb92381a0ecf745b2774edb917fa74fe61015c56 + "@floating-ui/utils": "npm:^0.2.1" + checksum: d6a47cacde193cd8ccb4c268b91ccc4ca254dffaec6242b07fd9bcde526044cc976d27933a7917f9a671de0a0e27f8d358f46400677dbd0c8199de293e9746e1 languageName: node linkType: hard -"@floating-ui/dom@npm:^1.0.1, @floating-ui/dom@npm:^1.5.4": - version: 1.5.4 - resolution: "@floating-ui/dom@npm:1.5.4" +"@floating-ui/dom@npm:^1.0.1, @floating-ui/dom@npm:^1.6.1": + version: 1.6.3 + resolution: "@floating-ui/dom@npm:1.6.3" dependencies: - "@floating-ui/core": "npm:^1.5.3" + "@floating-ui/core": "npm:^1.0.0" "@floating-ui/utils": "npm:^0.2.0" - checksum: 3ba02ba2b4227c1e18df6ccdd029a1c100058db2e76ca1dac60a593ec72b2d4d995fa5c2d1639a5c38adb17e12398fbfe4f6cf5fd45f2ee6170ed0cf64acea06 + checksum: 83e97076c7a5f55c3506f574bc53f03d38bed6eb8181920c8733076889371e287e9ae6f28c520a076967759b9b6ff425362832a5cdf16a999069530dbb9cce53 languageName: node linkType: hard "@floating-ui/react-dom@npm:^2.0.1": - version: 2.0.6 - resolution: "@floating-ui/react-dom@npm:2.0.6" + version: 2.0.8 + resolution: "@floating-ui/react-dom@npm:2.0.8" dependencies: - "@floating-ui/dom": "npm:^1.5.4" + "@floating-ui/dom": "npm:^1.6.1" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - checksum: 4a3f828370c1b14af0e4d24df18de7b2cfd6695c189532d5949daaa43cba13ce7f231c71783b47e8c54baefcc2542650d82a4a6cebcf3d9091673f2a53d3a2cb + checksum: e57b2a498aecf8de0ec28adf434257fca7893bd9bd7e78b63ac98c63b29b9fc086fc175630154352f3610f5c4a0d329823837f4f6c235cc0459fde6417065590 languageName: node linkType: hard @@ -1966,7 +1957,7 @@ __metadata: languageName: node linkType: hard -"@floating-ui/utils@npm:^0.2.0": +"@floating-ui/utils@npm:^0.2.0, @floating-ui/utils@npm:^0.2.1": version: 0.2.1 resolution: "@floating-ui/utils@npm:0.2.1" checksum: 33c9ab346e7b05c5a1e6a95bc902aafcfc2c9d513a147e2491468843bd5607531b06d0b9aa56aa491cbf22a6c2495c18ccfc4c0344baec54a689a7bb8e4898d6 @@ -1992,24 +1983,24 @@ __metadata: languageName: node linkType: hard -"@formatjs/icu-messageformat-parser@npm:2.7.5": - version: 2.7.5 - resolution: "@formatjs/icu-messageformat-parser@npm:2.7.5" +"@formatjs/icu-messageformat-parser@npm:2.7.6": + version: 2.7.6 + resolution: "@formatjs/icu-messageformat-parser@npm:2.7.6" dependencies: "@formatjs/ecma402-abstract": "npm:1.18.2" - "@formatjs/icu-skeleton-parser": "npm:1.7.2" + "@formatjs/icu-skeleton-parser": "npm:1.8.0" tslib: "npm:^2.4.0" - checksum: b8b2b5e01cf5091ca61278ff0e6945b2fd7b10a5ac5c2b3b35b73c44675a75c482f29e3fadbe5662ecbfe630fff4fa4f540d0c7ae50c0173b00a72b965a43d6c + checksum: 5baf9c1cf4b3f70d95bbac602b0695fcf67c6e2ff098e39dd53bdad0a16d192b9b5fe74dbdbeb76404bbdcdc95628d2623d24f786736074751fef13490cb6237 languageName: node linkType: hard -"@formatjs/icu-skeleton-parser@npm:1.7.2": - version: 1.7.2 - resolution: "@formatjs/icu-skeleton-parser@npm:1.7.2" +"@formatjs/icu-skeleton-parser@npm:1.8.0": + version: 1.8.0 + resolution: "@formatjs/icu-skeleton-parser@npm:1.8.0" dependencies: "@formatjs/ecma402-abstract": "npm:1.18.2" tslib: "npm:^2.4.0" - checksum: 321b2ab5fc87277e31b9be654ed283ca5b7fdd5865d606052bc2ae3ffb6caf53ae158c90cb0d54e5f374fdba32e2ad91e2a462feff108cc7931a1765e5ab6096 + checksum: 8cd96d9075d1d369e4746dfaea6e3f478d21ed0672f4b777c4ee53b2660ef8c9a081976e6a8c73bba889eddc7edc52dba6eeea5fd62a8c03aa73e266b3cd89e9 languageName: node linkType: hard @@ -2075,8 +2066,8 @@ __metadata: linkType: hard "@ibm-cloud/openapi-ruleset@npm:^1.14.2": - version: 1.14.2 - resolution: "@ibm-cloud/openapi-ruleset@npm:1.14.2" + version: 1.15.2 + resolution: "@ibm-cloud/openapi-ruleset@npm:1.15.2" dependencies: "@ibm-cloud/openapi-ruleset-utilities": "npm:1.3.0" "@stoplight/spectral-formats": "npm:^1.5.0" @@ -2088,7 +2079,46 @@ __metadata: loglevel-plugin-prefix: "npm:0.8.4" minimatch: "npm:^6.1.6" validator: "npm:^13.7.0" - checksum: 94c9f366107e7b93648cdf44129b5a2a9f61fb3bfdcd377b962c7a4a08c28e35867265c10da3b8b5f5980ebcabb55ea0ced04394fe2c4aa99624f63a5b70a0dd + checksum: 4118beb2d1415ad4a0b81f317499d694af7787dadf175778c9cb5884864b78f8fe72e155f849e3798651559ed3fee583d1f90dbe8ad63802708da93fbf8fc45c + languageName: node + linkType: hard + +"@inquirer/confirm@npm:^3.0.0": + version: 3.0.0 + resolution: "@inquirer/confirm@npm:3.0.0" + dependencies: + "@inquirer/core": "npm:^7.0.0" + "@inquirer/type": "npm:^1.2.0" + checksum: ed16dc0e5b22115474853ca57dbe3dacdcd15bcb37cc50020e8e76ff8d0875d62d8b63b93b3092c653faeb6c83a139eac997ff05638b0f1f78ae919f29ee29d4 + languageName: node + linkType: hard + +"@inquirer/core@npm:^7.0.0": + version: 7.0.0 + resolution: "@inquirer/core@npm:7.0.0" + dependencies: + "@inquirer/type": "npm:^1.2.0" + "@types/mute-stream": "npm:^0.0.4" + "@types/node": "npm:^20.11.16" + "@types/wrap-ansi": "npm:^3.0.0" + ansi-escapes: "npm:^4.3.2" + chalk: "npm:^4.1.2" + cli-spinners: "npm:^2.9.2" + cli-width: "npm:^4.1.0" + figures: "npm:^3.2.0" + mute-stream: "npm:^1.0.0" + run-async: "npm:^3.0.0" + signal-exit: "npm:^4.1.0" + strip-ansi: "npm:^6.0.1" + wrap-ansi: "npm:^6.2.0" + checksum: 78c0ef4bb82cb7be23f16a80c9cff02839c77e378d272327f49878788a4c3b1cc00137387317053d242a87634954850a4d2546b3e48b1abd27130a21f598afef + languageName: node + linkType: hard + +"@inquirer/type@npm:^1.2.0": + version: 1.2.0 + resolution: "@inquirer/type@npm:1.2.0" + checksum: 12f68a16d8995efb409bd243d6ccc501b366e8009630a075071a9d9497cebd36bbd6c46d7d59b37435629e5e50236394679f414f7676b68b913ecc28a85cba0a languageName: node linkType: hard @@ -2192,12 +2222,12 @@ __metadata: linkType: hard "@jridgewell/trace-mapping@npm:^0.3.12, @jridgewell/trace-mapping@npm:^0.3.17, @jridgewell/trace-mapping@npm:^0.3.9": - version: 0.3.21 - resolution: "@jridgewell/trace-mapping@npm:0.3.21" + version: 0.3.22 + resolution: "@jridgewell/trace-mapping@npm:0.3.22" dependencies: "@jridgewell/resolve-uri": "npm:^3.1.0" "@jridgewell/sourcemap-codec": "npm:^1.4.14" - checksum: 925dda0620887e5a24f11b5a3a106f4e8b1a66155b49be6ceee61432174df33a17c243d8a89b2cd79ccebd281d817878759236a2fc42c47325ae9f73dfbfb90d + checksum: 48d3e3db00dbecb211613649a1849876ba5544a3f41cf5e6b99ea1130272d6cf18591b5b67389bce20f1c871b4ede5900c3b6446a7aab6d0a3b2fe806a834db7 languageName: node linkType: hard @@ -2233,9 +2263,9 @@ __metadata: languageName: node linkType: hard -"@mswjs/interceptors@npm:^0.25.14": - version: 0.25.14 - resolution: "@mswjs/interceptors@npm:0.25.14" +"@mswjs/interceptors@npm:^0.25.16": + version: 0.25.16 + resolution: "@mswjs/interceptors@npm:0.25.16" dependencies: "@open-draft/deferred-promise": "npm:^2.2.0" "@open-draft/logger": "npm:^0.3.0" @@ -2243,7 +2273,7 @@ __metadata: is-node-process: "npm:^1.2.0" outvariant: "npm:^1.2.1" strict-event-emitter: "npm:^0.5.1" - checksum: 6554d795ab9c88bf56c195b3ce0ec381abbbb66380a65007481044d177c22a2822683befc31d6cf32c02700ed925ff377b58b215ad2e8eaa29d9ea911d4ecd59 + checksum: d8fb74db45a63971e9da7367c8d120343c8f49fec7bcc3f0c77c04c3f628d307b70875f52e4a99df561547b92d0d53edacc421e42d69940d44999254b5d028b5 languageName: node linkType: hard @@ -2284,15 +2314,15 @@ __metadata: linkType: hard "@npmcli/agent@npm:^2.0.0": - version: 2.2.0 - resolution: "@npmcli/agent@npm:2.2.0" + version: 2.2.1 + resolution: "@npmcli/agent@npm:2.2.1" dependencies: agent-base: "npm:^7.1.0" http-proxy-agent: "npm:^7.0.0" https-proxy-agent: "npm:^7.0.1" lru-cache: "npm:^10.0.1" socks-proxy-agent: "npm:^8.0.1" - checksum: 822ea077553cd9cfc5cbd6d92380b0950fcb054a7027cd1b63a33bd0cbb16b0c6626ea75d95ec0e804643c8904472d3361d2da8c2444b1fb02a9b525d9c07c41 + checksum: d4a48128f61e47f2f5c89315a5350e265dc619987e635bd62b52b29c7ed93536e724e721418c0ce352ceece86c13043c67aba1b70c3f5cc72fce6bb746706162 languageName: node linkType: hard @@ -2369,27 +2399,27 @@ __metadata: languageName: node linkType: hard -"@orval/angular@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/angular@npm:6.23.0" +"@orval/angular@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/angular@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" - checksum: 532290a2ea384366fc88b9715b33c70517f2ebdab8152a20efe5db481c4f04ccec92ebfb195e1c6f9604d7120c588d7edab3ec2ab6da68a5bbe4383deb794c32 + "@orval/core": "npm:6.24.0" + checksum: c55be75276f6e387f99fdb4cc2eccffde54093a3bfd262622e392ce3b33761d06fe5e7518cf6a8e5d839e39239e47fa5a3063dc1951a849142858c67a039db40 languageName: node linkType: hard -"@orval/axios@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/axios@npm:6.23.0" +"@orval/axios@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/axios@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" - checksum: a65d4e73d2b0aec3a26a3e8cc9728a175a16ae5bb68395fe4756b32e250fa78630be36aefbfe9e6c6488ff6d7950338c2f19c3e8b8bc373706103956aa93a3de + "@orval/core": "npm:6.24.0" + checksum: b4f568599f1bf466344c641ce0c95e51b87d46cfb8ecd8a4ac4df88206388bccc19d20a80d010c87319bfe456e26ad8d7cc7b5f64252ae1e0f8d0066c47df6b3 languageName: node linkType: hard -"@orval/core@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/core@npm:6.23.0" +"@orval/core@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/core@npm:6.24.0" dependencies: "@apidevtools/swagger-parser": "npm:^10.1.0" "@ibm-cloud/openapi-ruleset": "npm:^1.14.2" @@ -2398,7 +2428,7 @@ __metadata: chalk: "npm:^4.1.2" compare-versions: "npm:^6.1.0" debug: "npm:^4.3.4" - esbuild: "npm:^0.19.5" + esbuild: "npm:^0.19.11" esutils: "npm:2.0.3" fs-extra: "npm:^11.2.0" globby: "npm:11.1.0" @@ -2409,52 +2439,50 @@ __metadata: lodash.uniqby: "npm:^4.7.0" lodash.uniqwith: "npm:^4.5.0" micromatch: "npm:^4.0.5" - openapi-types: "npm:^12.1.3" - openapi3-ts: "npm:^3.2.0" + openapi3-ts: "npm:4.2.1" swagger2openapi: "npm:^7.0.8" - checksum: e527c07b24cfa8d1f74db1c49bda58e4f21ab91d46a05dc6d2c9f9f1838eb98c3717d3890abad00e3f2a24e53dd866b5164f3a663e84e72fd55bb7f90f179b13 + checksum: cdb3b948f2c979ced2082635039b50eb20cc437b842172f53bf779395b88116abf17aafcce622714f70d0b8248f526526cc035dbae15901ea6477a4b5ca205b9 languageName: node linkType: hard -"@orval/mock@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/mock@npm:6.23.0" +"@orval/mock@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/mock@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" + "@orval/core": "npm:6.24.0" lodash.get: "npm:^4.4.2" lodash.omit: "npm:^4.5.0" - openapi3-ts: "npm:^3.0.0" - checksum: d408fd5057fcb3eb9b6d848a5e84822e1e7f92b69802f11dde733eab9c10c4dfa7705c4405ddf5fec675d85d61ccd0b899daa5e71bedfb547fc0f71ee1e3f7d3 + openapi3-ts: "npm:^4.2.1" + checksum: 43f2654cae95508e8e2d088205052d11d5fee01d3db124709e58bfab04356978e350a86281a9b21a99155e19eb1da4a2fad23f15a4979fb6995d868c77de78c0 languageName: node linkType: hard -"@orval/query@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/query@npm:6.23.0" +"@orval/query@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/query@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" + "@orval/core": "npm:6.24.0" lodash.omitby: "npm:^4.6.0" - vitest: "npm:^0.34.6" - checksum: da81755d3ef146e80c2c614b2a3e2f14617042ab44795d72911566274fb7898ad2feb25505c31ef51c014cea28f6668e59e4461e2f27e79f95bd27d4c2090103 + checksum: 6a4afbeea1a09473f5026acd1ae83827c7b648fcd977f7be9e28f5899742f25cbaccebcc026a3acc85818102b75dba6c525bb68bbddd1391e4ddc58c29e084bc languageName: node linkType: hard -"@orval/swr@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/swr@npm:6.23.0" +"@orval/swr@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/swr@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" - checksum: 688b78647c0eea86589718132ad35d0942128208a624da5b929ac06b06e53ccf06e86dc97bf439ef3826f335279713ed1e39548241229ac14f46e5d50e462a1e + "@orval/core": "npm:6.24.0" + checksum: ed5bbc40467b82718b038120a78a3645cdc3cd8b5f216a3fffe94be179fa7275ad432a5dbeae2343aac6bdb4a98b2bcbbff4bfc3cc2d4a418c34257f511ac215 languageName: node linkType: hard -"@orval/zod@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/zod@npm:6.23.0" +"@orval/zod@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/zod@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" + "@orval/core": "npm:6.24.0" lodash.uniq: "npm:^4.5.0" - checksum: 624684e2c84b3531a965521086f41433188885e02c2bd6f51867dc842cf9f0d1108f8aa58a6e8ab461f68dd711dafa9e18d7a6b016b1a4b9bfe65cc2a6451796 + checksum: df55f0f92d704f199e7e97cabccc4f7ae5e306620148d117471e7ccdff66d5b6e6470e1120a76d838d27e1b1d1798157600072fb82a938a326e9f29ad752f738 languageName: node linkType: hard @@ -3344,9 +3372,9 @@ __metadata: languageName: node linkType: hard -"@react-hookz/web@npm:^24.0.2": - version: 24.0.2 - resolution: "@react-hookz/web@npm:24.0.2" +"@react-hookz/web@npm:^24.0.4": + version: 24.0.4 + resolution: "@react-hookz/web@npm:24.0.4" dependencies: "@react-hookz/deep-equal": "npm:^1.0.4" peerDependencies: @@ -3356,7 +3384,7 @@ __metadata: peerDependenciesMeta: js-cookie: optional: true - checksum: 90ee7d03a81944cc5ee4b36762baecf4853b6e09dfb12a4c3f84b0444f3696d5a616173ae3e4e75efeb15e867248e5afc8660223d75fa938c1c96ddb142c8236 + checksum: 6a841c648edbc54b11fd90de9bb61c3059255598fc4a714c508c269a03c4ca9bbf32cf017d3bd2b3a1bf7cd1d9bf4bb56028f64ad455f796079632f4a7cd4f00 languageName: node linkType: hard @@ -4058,10 +4086,10 @@ __metadata: languageName: node linkType: hard -"@remix-run/router@npm:1.14.2": - version: 1.14.2 - resolution: "@remix-run/router@npm:1.14.2" - checksum: 422844e88b985f1e287301b302c6cf8169c9eea792f80d40464f97b25393bb2e697228ebd7a7b61444d5a51c5873c4a637aad20acde5886a5caf62e833c5ceee +"@remix-run/router@npm:1.15.0": + version: 1.15.0 + resolution: "@remix-run/router@npm:1.15.0" + checksum: 5cadae0c90874966ebd6b1b202284a337da32a68fc95af502859cd6158d3c254fbb4f76fa1844c837205dbc8a8120223360b9287a3d6aa0c747d02767c4c072c languageName: node linkType: hard @@ -4111,93 +4139,93 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.9.5" +"@rollup/rollup-android-arm-eabi@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.10.0" conditions: os=android & cpu=arm languageName: node linkType: hard -"@rollup/rollup-android-arm64@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-android-arm64@npm:4.9.5" +"@rollup/rollup-android-arm64@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-android-arm64@npm:4.10.0" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-arm64@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-darwin-arm64@npm:4.9.5" +"@rollup/rollup-darwin-arm64@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.10.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-x64@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-darwin-x64@npm:4.9.5" +"@rollup/rollup-darwin-x64@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.10.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-linux-arm-gnueabihf@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.9.5" +"@rollup/rollup-linux-arm-gnueabihf@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.10.0" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@rollup/rollup-linux-arm64-gnu@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.9.5" +"@rollup/rollup-linux-arm64-gnu@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.10.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm64-musl@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-linux-arm64-musl@npm:4.9.5" +"@rollup/rollup-linux-arm64-musl@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.10.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-riscv64-gnu@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.9.5" +"@rollup/rollup-linux-riscv64-gnu@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.10.0" conditions: os=linux & cpu=riscv64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-gnu@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-linux-x64-gnu@npm:4.9.5" +"@rollup/rollup-linux-x64-gnu@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.10.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-musl@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-linux-x64-musl@npm:4.9.5" +"@rollup/rollup-linux-x64-musl@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.10.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-win32-arm64-msvc@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.9.5" +"@rollup/rollup-win32-arm64-msvc@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.10.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-win32-ia32-msvc@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.9.5" +"@rollup/rollup-win32-ia32-msvc@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.10.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rollup/rollup-win32-x64-msvc@npm:4.9.5": - version: 4.9.5 - resolution: "@rollup/rollup-win32-x64-msvc@npm:4.9.5" +"@rollup/rollup-win32-x64-msvc@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.10.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -4586,11 +4614,11 @@ __metadata: linkType: hard "@swc/helpers@npm:^0.5.0": - version: 0.5.3 - resolution: "@swc/helpers@npm:0.5.3" + version: 0.5.6 + resolution: "@swc/helpers@npm:0.5.6" dependencies: tslib: "npm:^2.4.0" - checksum: 5ed4329cd36106e4c3c9c9fa710fae5b80521accce697d81030c42798c4653237f719269c24c26adf42579e15e1f720f31cd63983dea30debd298582a6cbd20a + checksum: 16f0a18367b1248317dcc3e5f32411da1a2906f983f4f072e394dfed37523385bc4d7bf71bab204cc8b3875c024a91421dd5c1f9c5bad1b1172fcb50aa2ec96f languageName: node linkType: hard @@ -4641,52 +4669,52 @@ __metadata: languageName: node linkType: hard -"@tanstack/query-core@npm:5.17.15": - version: 5.17.15 - resolution: "@tanstack/query-core@npm:5.17.15" - checksum: be189a57b9ad3fc2a7cf310a2f3188b56a9dedd81c52ebbf15679998e5fd043f8862dbe4ae84fae6fbe7bbfff8e731f3063fa214216bb3ffac87fe8ca66fd4e2 +"@tanstack/query-core@npm:5.20.5": + version: 5.20.5 + resolution: "@tanstack/query-core@npm:5.20.5" + checksum: ca495a213850a79a23ea45a4e22982e06eea07959f7cf5062c154dc8c7fc01f7cc7f1f8abf74cdb2a9f38347f1df9a39238fbee6cd49662e464064d92cf1c48b languageName: node linkType: hard -"@tanstack/react-query@npm:^5.14.2": - version: 5.17.15 - resolution: "@tanstack/react-query@npm:5.17.15" +"@tanstack/react-query@npm:^5.20.5": + version: 5.20.5 + resolution: "@tanstack/react-query@npm:5.20.5" dependencies: - "@tanstack/query-core": "npm:5.17.15" + "@tanstack/query-core": "npm:5.20.5" peerDependencies: react: ^18.0.0 - checksum: ed8540aa56a9fd12f9725b23d895212712565cd3e4fe1ffc7e8ae57fac5e540de7e1e29eefdbd4489fd88a6180808fd78dd9c9b8c8eb10be06f2343e828232df + checksum: 77b3129f8a44a0dcca4cc5eb34b877cce08c8ee41f13585bed4fe1b1b9c4a8823e454e8989b6dc4c240cda69604efa70dd7c6b954f4e4f6aefcf518254079f96 languageName: node linkType: hard "@tanstack/react-table@npm:^8.9.9": - version: 8.11.6 - resolution: "@tanstack/react-table@npm:8.11.6" + version: 8.11.8 + resolution: "@tanstack/react-table@npm:8.11.8" dependencies: - "@tanstack/table-core": "npm:8.11.6" + "@tanstack/table-core": "npm:8.11.8" peerDependencies: react: ">=16" react-dom: ">=16" - checksum: b8b73d987d3656c3046697d89884438c4dcecfd7a567d6492823d067cb3c7466030065b3e970f59bbd9e413e829f179601353a31ff426a06f7a955c7dd4add5a + checksum: f003112ac153922db18fe458cb816958c743f32c921febf6e2ead4e8ad8527001bc258e987d80957394bf85de82fcdb0116ecc3324b93d059bf06c95c532603f languageName: node linkType: hard "@tanstack/react-virtual@npm:^3.0.0-beta.60": - version: 3.0.1 - resolution: "@tanstack/react-virtual@npm:3.0.1" + version: 3.0.4 + resolution: "@tanstack/react-virtual@npm:3.0.4" dependencies: "@tanstack/virtual-core": "npm:3.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: c923a524964a5d1da68464edff26267b5c5f84809ed6f2001f6a3d36219bba97c779633d801e4801b1653969a24b714b8262593355a3e7036fb510d8ac40963d + checksum: d99a18c78cbe2ab0618f9fd75b626bb9db36794dab62a4273922fd887996b01a36bc324a69047e4449c7b9aa0f11f2a19d02d70a94fb6255eaf924a619548322 languageName: node linkType: hard -"@tanstack/table-core@npm:8.11.6": - version: 8.11.6 - resolution: "@tanstack/table-core@npm:8.11.6" - checksum: f3a286f2f6bc4831d076cc4a59036b92309e2e9286256704bfb69c06c22a28172417e403422c31a9199f0a82a799d6252f60e5c211994afb84e73be95af96d87 +"@tanstack/table-core@npm:8.11.8": + version: 8.11.8 + resolution: "@tanstack/table-core@npm:8.11.8" + checksum: 579244b5cc23da0056d8d5b491d725afe49bc917f3b1baaf863fcc3f82568e94c7781deabbef9109fa6ee163f8c067728603021e3161e66e763af1e46364953c languageName: node linkType: hard @@ -4714,8 +4742,8 @@ __metadata: linkType: hard "@testing-library/jest-dom@npm:^6.1.5": - version: 6.2.0 - resolution: "@testing-library/jest-dom@npm:6.2.0" + version: 6.4.2 + resolution: "@testing-library/jest-dom@npm:6.4.2" dependencies: "@adobe/css-tools": "npm:^4.3.2" "@babel/runtime": "npm:^7.9.2" @@ -4727,25 +4755,28 @@ __metadata: redent: "npm:^3.0.0" peerDependencies: "@jest/globals": ">= 28" + "@types/bun": "*" "@types/jest": ">= 28" jest: ">= 28" vitest: ">= 0.32" peerDependenciesMeta: "@jest/globals": optional: true + "@types/bun": + optional: true "@types/jest": optional: true jest: optional: true vitest: optional: true - checksum: 4af88d4b6208eda58fad47a520057893a381b972e7b043d7787c0111c887bdc82ed959bed07c21700f2816d4a1e315a519a0aabce120708ad7ba79577374f0fd + checksum: 7ee1e51caffad032734a4a43a00bf72d49080cf1bbf53021b443e91c7fa3762a66f55ce68f1c6643590fe66fbc4df92142659b8cf17c92166a3fb22691987e0d languageName: node linkType: hard "@testing-library/react@npm:^14.1.2": - version: 14.1.2 - resolution: "@testing-library/react@npm:14.1.2" + version: 14.2.1 + resolution: "@testing-library/react@npm:14.2.1" dependencies: "@babel/runtime": "npm:^7.12.5" "@testing-library/dom": "npm:^9.0.0" @@ -4753,7 +4784,7 @@ __metadata: peerDependencies: react: ^18.0.0 react-dom: ^18.0.0 - checksum: 1664990ad9673403ee1d74c1c1b60ec30591d42a3fe1e2175c28cb935cd49bc9a4ba398707f702acc3278c3b0cb492ee57fe66f41ceb040c5da57de98cba5414 + checksum: e02b2f32ae79665a79fc4d8ee053fd3832bfcd4753aa1dba05cdece1a9f59c72a0fae91e0a9387597dcb686d631a722729f2878e38dc95e6f23b291ad8d09b6c languageName: node linkType: hard @@ -4767,280 +4798,280 @@ __metadata: linkType: hard "@tiptap/core@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/core@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/core@npm:2.2.2" peerDependencies: "@tiptap/pm": ^2.0.0 - checksum: 8f2d51eee05e21e2cb35d62a3e314097b9bf04c1ea46b5bc517dbb0832f90ad94ff71bfd95f336a2ee4923f2b8ce872e2ffe770e6f3ea43d066ce98a5b94c650 + checksum: db1e0a26f07d7a2a839315464a00301ef1204aad40834e283dc4abe3e9fb64e9e45020b7b8bcbe2d4b0bf934346ec1b815afd126a9036ebaa4f5ff513df10e53 languageName: node linkType: hard "@tiptap/extension-bold@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-bold@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-bold@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 41fb89d1f70f7bc912dc80d95485abb95f8440f94fea2c54d476c8762d06f1788b1aa8ba16fb8b801174fa6a0811bc99b3837ad0446de7d497b7ae6869270d0c + checksum: 4d14e12f1099341d80a554952f268614a9224c5ab8261d96bf61114d2957493032ac238eca3643677f712358871a78d39232b56aa052187d4618abce6786c97d languageName: node linkType: hard -"@tiptap/extension-bubble-menu@npm:^2.1.16": - version: 2.1.16 - resolution: "@tiptap/extension-bubble-menu@npm:2.1.16" +"@tiptap/extension-bubble-menu@npm:^2.2.2": + version: 2.2.2 + resolution: "@tiptap/extension-bubble-menu@npm:2.2.2" dependencies: tippy.js: "npm:^6.3.7" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: 8f0486b091404290eec1a1ca8996682f0e697d763054387d6aef7b93eef7914448748aa731ac8d9c3690b2bd002ac8ee5025c39de47b874d595190b1eb537d1a + checksum: eaed5f13c9079ddfc64468ab1899c2b59fd1ed80ae07ff7f3fc03d26707124dd34d18f572e831bec5c38b3ab9f4f4eaa30d44b4fc624b48ae42a5cebc6affb7a languageName: node linkType: hard "@tiptap/extension-bullet-list@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-bullet-list@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-bullet-list@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 82aad0cae7b93e12d4ea42805561352749e6ab813531c34d6edf5cc9f4b164e7f15c447c221090e455981261989a96e240e5dd4f856f07e7d4ec9bae0d7d43c8 + checksum: 2d4b1c2cf09fb7ece423fdc963404452859350f378122eb5d1aa283de7819d598eac6e2279a6863a38b04007d6a40aa19370617df773ac8294a15c2980bda187 languageName: node linkType: hard "@tiptap/extension-document@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-document@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-document@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 6181ecf5d4a2be7fcfd4380f2ad6e532405daced5bfbc54c023bb2e906bb28060e80c4446021b58501aefbc00d0309f6d35eed06b1656a48f271c9eb2164d993 + checksum: 249f4b95e52cd9fbd9b20d7393254a8acbb047d90b93a6f1a8b4c0812b2b0a70d5541b58124aa94b072d9d64fc8caa419c9f06436d00605008cc0cde063ebd64 languageName: node linkType: hard -"@tiptap/extension-floating-menu@npm:^2.1.16": - version: 2.1.16 - resolution: "@tiptap/extension-floating-menu@npm:2.1.16" +"@tiptap/extension-floating-menu@npm:^2.2.2": + version: 2.2.2 + resolution: "@tiptap/extension-floating-menu@npm:2.2.2" dependencies: tippy.js: "npm:^6.3.7" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: c49c30eac7eb86e9456e4a4871b009aec1aa81b816ea0d8b84eefe9215885bbfd01e62cb3a291debf24c96aafa599f90f70168fe36cca235009f9b9b691da681 + checksum: 8c73b42b0933caeada53c64dd6132b14ae57ecfcf0874815cdce09e9a6cc9323a1d3bcc51f03237629dc0c910d3e0e3e94a145d36a10c61ede98f1cecb0f6f64 languageName: node linkType: hard "@tiptap/extension-hard-break@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-hard-break@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-hard-break@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: bc997dd345fc0032b9cf876587cc4ae884fe3899b1472738ca204126f69d386e39dd3c96e3d057f7bc6fd290940c6e7bf5764981b244b59d06d0a5d978c89417 + checksum: f659a0a1d39b0c637deedd8dc0f004ed62f9e116497849e3f2c6294e30ec60ee1f145912dcbf5d591aeb2bbf1512c7f9b6502b2868a5a1afc7a1142ef9bc59c7 languageName: node linkType: hard "@tiptap/extension-heading@npm:^2.1.12": - version: 2.1.16 - resolution: "@tiptap/extension-heading@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-heading@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: d58086ca165c56c2bb296ca67112d99714b38db5eec7c9faf15dab85ac090a2d2478b5ed7b7ae46b6f6ba31f9538525358178061effd35140cabedd66557b2ed + checksum: 05e0c1cd917a0d7c5f64fcf80d174a05f8e8ccb7bc53cf78f0df4135ad661aef64e9a9d9c0becd80e0bcb173c095da256e7ee7813757444d687f52182b563032 languageName: node linkType: hard "@tiptap/extension-history@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-history@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-history@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: 941d6e0052edc12abea1b30c702891915a9aea2232bc6afe25dca383f35def6b6300c04541e76ee19392058df3daf8966517b6a600135217904596ce9f53959c + checksum: 716036566c5d8acd70eb4799f70fc12b76162484b8028b9d8004511301eb94107e62d6d5c221e45b6737aef3ac3009f794aeb7ebbfdfab8e835c585b87c178d1 languageName: node linkType: hard "@tiptap/extension-image@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-image@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-image@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: cc84527fb7506a71614bce905b783d378569168e60556993ce0e9387cd354964680b78f0cada0a00e1053b905ae8111630c0349343a27e30ecb93cee82b7bcbb + checksum: 4445e7227d8f4613547bb865007ef32665f7562851d7dedb6740db582638be2f63faa52fccfee54d56a62d44656be49de3504464a0371fb0afc9d2bd0320afb4 languageName: node linkType: hard "@tiptap/extension-italic@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-italic@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-italic@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 4092a712274bb3d22b94432ca74ce772b95c2d835e295c9cc700fe370aad838a391c4a95bacad8c4f73c1679847d4ab95924ed0812d164238a756aaf7558109b + checksum: 4ed975750c976134684c28faca2730771cdd0161179af8685a19333cb27d083bb30c7dcbbe9bb5183a51dab5305240ee43f12000d8618bda6e9699d42e1a63df languageName: node linkType: hard "@tiptap/extension-link@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-link@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-link@npm:2.2.2" dependencies: linkifyjs: "npm:^4.1.0" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: a211a85dec1b8c3af8e27ea068bb82e74599a8a00090a1c71303a84249e46ff7a6d9f7a0866435bbec14237aa8b500b716a2bf3d1551952934fc7795c7c42605 + checksum: 063f8313dde3fda2c05e45de0523b09d1a8b81b808bd5668898b2f467b63968e4e9803527da8262f832e70539bbec89b3a9d2569cd01dd3efa5ac10ff75c55a0 languageName: node linkType: hard "@tiptap/extension-list-item@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-list-item@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-list-item@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: b640c6d4378994f5fcfef3a29f024c3d164c39a3608b63a216bafdc6252bb765fc83c519a130ba2be91094d3b085280d7e7f5ba16e93089069c55d333b96d7aa + checksum: 5cc4471b4ba1f3159b1315aee70e019e3c232233fb95bcf1afe825b66b65217b587dba88c57599c6155604b2fb3542efb139e01ec567d8326c291d0577fb6794 languageName: node linkType: hard "@tiptap/extension-ordered-list@npm:^2.1.12": - version: 2.1.16 - resolution: "@tiptap/extension-ordered-list@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-ordered-list@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: e3ea59555f00d050256cdc6eb86eae68775f751f10fccb9fc5398a9243d42945344852669b8100d2713c35938daf83a6ce1e7d20c475d00557fe09e7d77419cc + checksum: ec831c59f7aa46b275fff5041733cfb9e39ee01151657b875a03d16f66722c36f8d842a4dde314b24a5124d2f63d5cf43b2502adda7bbeb7d3eb70f28abfbe8f languageName: node linkType: hard "@tiptap/extension-paragraph@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-paragraph@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-paragraph@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: ad510e479f9377f25eb7735b770ac556d9b2c6fca27acaf98f158a0efc27bec668b4b874d31370243f573d6dc8bfbc6792e00976cebc958bc6922be974959522 + checksum: 3061f5fcebece46aec029fea9e6e57199acd45b63c87464e519797d18b94f2eb3289aee03935259bc09caad5c3b87384998bddc9b4ad94e171189df40ef25534 languageName: node linkType: hard "@tiptap/extension-placeholder@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-placeholder@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-placeholder@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: d98f159d92efc93aafc9ed33d5d682247785a075948fdcca306ef103912bbb53c79ee17a6531451e2dd19ebbd18ad95818a44856145d5ce681652e2a5537c70e + checksum: 20b1b59af87880b4d900757a1df81b9789b56d1b97087e0a2f03da72cdf0320d1e2e899fe6321fb6b4c6cd878c61fe8e486929b44a5448304735cc06019f65aa languageName: node linkType: hard "@tiptap/extension-subscript@npm:^2.1.12": - version: 2.1.16 - resolution: "@tiptap/extension-subscript@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-subscript@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 2eeea5639d58448a707ed257ed243d73f85bfd54bf450e13d1028938b9242269bbc3b69725f1e954c1e2062d44a811fd39e2a7ad9b61d711744e9eda79890323 + checksum: f3a2fe6909867887c31792f768a56735c7f6e4605ecc5a74bea28e836db574e9267944a9c43e5bb5df4caf5456c6ce749247db4ddf438ea11dbcbcae455216fa languageName: node linkType: hard "@tiptap/extension-superscript@npm:^2.1.12": - version: 2.1.16 - resolution: "@tiptap/extension-superscript@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-superscript@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 8084c4d7a8413463e19e2729b4ff5554bf81ecb8d70658948296d3531cb9f0986906a1db0b59b224873b9a47fe9e714fac06d0b25c339d4523d5bfdb78c93094 + checksum: 09361338767113260c34c13955a3d4080a11ca59626c0057e4ae24f34e2a0906a24b1fa51f17d4ff035e904cccd8ec3084ddfa937a386f588b0fd1d9dc3df92b languageName: node linkType: hard "@tiptap/extension-table-cell@npm:^2.1.12": - version: 2.1.16 - resolution: "@tiptap/extension-table-cell@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-table-cell@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: d39b5bfa6decd4d07bb1bae39d56cc3dbe7d6716589d070927e326045a9dd56ec35ae6224901961e57dc2b82d9646965ff83ff29a7825aa5bd321e1f16df9ecd + checksum: 23181ce0e7bce0d354eb62db3b474d3c4f61810a781aed28b6b07058388533e6a18cec41c4a11ac30d5185c7abdb6f137375e0708c99ab621f7406b74bae08a8 languageName: node linkType: hard "@tiptap/extension-table-header@npm:^2.1.12": - version: 2.1.16 - resolution: "@tiptap/extension-table-header@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-table-header@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 7ce735d363c5d62c16cc1264fe1b79152b9537c4ab07ddae243b83c9351d8ad06dee0874d771c8815c1b985467c0dcbb387fecefe7fe6abdf9f020c73ef9ee07 + checksum: b91fe3f1ed093fbd70c45c960f9dddd0e128fc1e3e37e134e74631ca30a68dd5012cae7bc17c3129a70cf2059edcfece82fa6fd93eeeb32ae254d3b0e53cb0c1 languageName: node linkType: hard "@tiptap/extension-table-row@npm:^2.1.12": - version: 2.1.16 - resolution: "@tiptap/extension-table-row@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-table-row@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 0645e9cd1aea0a048529e2c306ba8983a8591c78ae5f26d7638033bfd01082ac3bf7e338fab2a1749f7a511f8d273283b8db4bcc300910656e693d4f57393eb0 + checksum: 58196af47aaaf93d1f49ea5d9ca402465831fdf68c4827770189f2dba4e35aed5eb09cca75344ed92fd1217c6edb62d3c630e5a40921e7e6bf78ccd97fabe847 languageName: node linkType: hard "@tiptap/extension-table@npm:^2.1.12": - version: 2.1.16 - resolution: "@tiptap/extension-table@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-table@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: 5a770d39d128b392aa897ffa8b312f1621e3fdf15892e15f69ef7a634bf64d45096a8e9702de4feea56545f1fcbbc756583b782dbdcad03d06c20de99ea1561a + checksum: 0ebf676ccc65ac085b901c814fa61065b6e3a8b14eb1a1a16305d6a5b7b5b8e7853cf21f229b25b360c57f706683f182703eac4c3ff70cf5d93b5b6665afe60d languageName: node linkType: hard "@tiptap/extension-text-style@npm:^2.1.10": - version: 2.1.16 - resolution: "@tiptap/extension-text-style@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-text-style@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: e900b82aa59084f15149eca6e42493f54d17207e1101f751609e862e887f799c99c9967731604d54d3358e41af46c00cf623bb9b281b5b879fc75b2201b524f0 + checksum: 8a0049b339a53439c11c8f565386b77b363c055d4531cb05d13f7cc37833ee3b38714bf4e8bda73031432c7d5df9d6b5f73594ce7a7fb041a8942a4f2f8a4725 languageName: node linkType: hard "@tiptap/extension-text@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-text@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-text@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 2ffc6cfd851106e31af8ae65cf4dff4cad75f39e2a773c792348e21f6e128569b8b2a44a557875df60a0cfb17623321943c5c82b7e7a28542004506a92cead71 + checksum: 2827800bbca558131ee34286b705e07f9f509079848d4c71e80988e4d6c68cf633bc5a780de6b3bc5be7c7d7b6a9d9c11145f1335a3b6a9c10bcbbef936a4971 languageName: node linkType: hard "@tiptap/extension-underline@npm:^2.1.7": - version: 2.1.16 - resolution: "@tiptap/extension-underline@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/extension-underline@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 5af41d379a1f6d02f3e1d653c4923732f55325897dcb814688c0340da636a6a8d82852cab940436f79d4db26ad1d85322b171622d4bbb3440dc0f37bfba5df45 + checksum: e833f083bf6d0718f28c12aeb1d2e26c3eddcf1c466daa2f7e3e800a7d11de6700705f9043abf9af7f0489453d4e2af96142f743295e8c99d5027e5290ba2c2f languageName: node linkType: hard "@tiptap/pm@npm:^2.0.3": - version: 2.1.16 - resolution: "@tiptap/pm@npm:2.1.16" - dependencies: - prosemirror-changeset: "npm:^2.2.0" - prosemirror-collab: "npm:^1.3.0" - prosemirror-commands: "npm:^1.3.1" - prosemirror-dropcursor: "npm:^1.5.0" - prosemirror-gapcursor: "npm:^1.3.1" - prosemirror-history: "npm:^1.3.0" - prosemirror-inputrules: "npm:^1.2.0" - prosemirror-keymap: "npm:^1.2.0" - prosemirror-markdown: "npm:^1.10.1" - prosemirror-menu: "npm:^1.2.1" - prosemirror-model: "npm:^1.18.1" - prosemirror-schema-basic: "npm:^1.2.0" - prosemirror-schema-list: "npm:^1.2.2" - prosemirror-state: "npm:^1.4.1" - prosemirror-tables: "npm:^1.3.0" - prosemirror-trailing-node: "npm:^2.0.2" - prosemirror-transform: "npm:^1.7.0" - prosemirror-view: "npm:^1.28.2" - checksum: 9099e9be79cd9eedbfff2aa7115de2e62f1ce099706c30396d0eac53e955afc077c4b752f71b8f20f9d2cd23fdd279bff6a15446932378648d2307693b7ade10 + version: 2.2.2 + resolution: "@tiptap/pm@npm:2.2.2" + dependencies: + prosemirror-changeset: "npm:^2.2.1" + prosemirror-collab: "npm:^1.3.1" + prosemirror-commands: "npm:^1.5.2" + prosemirror-dropcursor: "npm:^1.8.1" + prosemirror-gapcursor: "npm:^1.3.2" + prosemirror-history: "npm:^1.3.2" + prosemirror-inputrules: "npm:^1.3.0" + prosemirror-keymap: "npm:^1.2.2" + prosemirror-markdown: "npm:^1.12.0" + prosemirror-menu: "npm:^1.2.4" + prosemirror-model: "npm:^1.19.4" + prosemirror-schema-basic: "npm:^1.2.2" + prosemirror-schema-list: "npm:^1.3.0" + prosemirror-state: "npm:^1.4.3" + prosemirror-tables: "npm:^1.3.5" + prosemirror-trailing-node: "npm:^2.0.7" + prosemirror-transform: "npm:^1.8.0" + prosemirror-view: "npm:^1.32.7" + checksum: bc234b5d66d5b0f7f33f36af72effdc8cae895e2817446c95ed2307bcf6a46e180cc510bcb13a0ca8913d8c5bb186293d6dc669133e71dad5d26f5638e3ba7af languageName: node linkType: hard "@tiptap/react@npm:^2.0.3": - version: 2.1.16 - resolution: "@tiptap/react@npm:2.1.16" + version: 2.2.2 + resolution: "@tiptap/react@npm:2.2.2" dependencies: - "@tiptap/extension-bubble-menu": "npm:^2.1.16" - "@tiptap/extension-floating-menu": "npm:^2.1.16" + "@tiptap/extension-bubble-menu": "npm:^2.2.2" + "@tiptap/extension-floating-menu": "npm:^2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 - checksum: 921dec6683c458aed85893bdee3100254b02a4fe4b403a7d42e09985884121d45d8b14644924bab9caf24c767da1bd13c1680cfac91660e14890c5f275981fcd + checksum: 6a4de68fc8b79bd77630a11952a1aadb716dd1af6a5b7dbe36c0673eb37c61c7dc2638b2529e0705bdc3ee972410fe6f697527478a8a1684ca3e387c78a0cd69 languageName: node linkType: hard @@ -5113,22 +5144,6 @@ __metadata: languageName: node linkType: hard -"@types/chai-subset@npm:^1.3.3": - version: 1.3.5 - resolution: "@types/chai-subset@npm:1.3.5" - dependencies: - "@types/chai": "npm:*" - checksum: 715c46d3e90f87482c2769389d560456bb257b225716ff44c275c231bdb62c8a30629f355f412bac0ecab07ebc036c1806d9ed9dde9792254f8ef4f07f76033b - languageName: node - linkType: hard - -"@types/chai@npm:*, @types/chai@npm:^4.3.5": - version: 4.3.11 - resolution: "@types/chai@npm:4.3.11" - checksum: c83a00359684bf06114d5ad0ffa62c78b2fbfe09a985eda56e55cd3c191fe176052aef6e297a8c8a3608efb8ea7a44598cf7e0ae1a3a9311af892417e95b0b28 - languageName: node - linkType: hard - "@types/cookie@npm:^0.6.0": version: 0.6.0 resolution: "@types/cookie@npm:0.6.0" @@ -5271,9 +5286,9 @@ __metadata: linkType: hard "@types/d3-path@npm:*": - version: 3.0.2 - resolution: "@types/d3-path@npm:3.0.2" - checksum: fc974ffd75ff9268ea689cec764fffdd582d96f6f113db5bd2aba6d5d4a843eccc7919730fbca9134bd97ba6c91c13018a0c7c3f0813b73259f3603d140e0cb5 + version: 3.1.0 + resolution: "@types/d3-path@npm:3.1.0" + checksum: 7348d65c9b37c7023590d4e5ef11e37f9eee62df9fa23e0758da1fbd66a1cbff40e37cbe0b85e9388ab900451e9c18a5a973469e9fd725c8c85c4a3f84647b9d languageName: node linkType: hard @@ -5441,9 +5456,9 @@ __metadata: linkType: hard "@types/geojson@npm:*": - version: 7946.0.13 - resolution: "@types/geojson@npm:7946.0.13" - checksum: b3b68457c89bc3f0445dc9eb54d07e6f89658672867c54989bc7f71f87d54e562195b291d43e1b84476493351271d7ccb9f5c6ab2012b29fbafbb0e8e43c4bca + version: 7946.0.14 + resolution: "@types/geojson@npm:7946.0.14" + checksum: ae511bee6488ae3bd5a3a3347aedb0371e997b14225b8983679284e22fa4ebd88627c6e3ff8b08bf4cc35068cb29310c89427311ffc9322c255615821a922e71 languageName: node linkType: hard @@ -5471,13 +5486,6 @@ __metadata: languageName: node linkType: hard -"@types/js-levenshtein@npm:^1.1.3": - version: 1.1.3 - resolution: "@types/js-levenshtein@npm:1.1.3" - checksum: eb338696da976925ea8448a42d775d7615a14323dceeb08909f187d0b3d3b4c1f67a1c36ef586b1c2318b70ab141bba8fc58311ba1c816711704605aec09db8b - languageName: node - linkType: hard - "@types/json-schema@npm:^7.0.11, @types/json-schema@npm:^7.0.4, @types/json-schema@npm:^7.0.7, @types/json-schema@npm:^7.0.9": version: 7.0.15 resolution: "@types/json-schema@npm:7.0.15" @@ -5551,12 +5559,21 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:^20.10.5": - version: 20.11.5 - resolution: "@types/node@npm:20.11.5" +"@types/mute-stream@npm:^0.0.4": + version: 0.0.4 + resolution: "@types/mute-stream@npm:0.0.4" + dependencies: + "@types/node": "npm:*" + checksum: af8d83ad7b68ea05d9357985daf81b6c9b73af4feacb2f5c2693c7fd3e13e5135ef1bd083ce8d5bdc8e97acd28563b61bb32dec4e4508a8067fcd31b8a098632 + languageName: node + linkType: hard + +"@types/node@npm:*, @types/node@npm:^20.10.5, @types/node@npm:^20.11.16": + version: 20.11.17 + resolution: "@types/node@npm:20.11.17" dependencies: undici-types: "npm:~5.26.4" - checksum: 9f31c471047d7b3e240ce7b77ff29b0d15e83be7e3feafb3d0b0d0931122b438b1eefa302a5a2e1e9849914ff3fd76aafbd8ccb372efb1331ba048da63bce6f8 + checksum: 3342df87258d1c56154bcd4b85180f48675427b235971e6e6e2e037353f5a2ae9aaa05ba5df0fe1e2d2f1022c8d856fd39056b9d7f50ea30c0ca3214137cae1d languageName: node linkType: hard @@ -5614,11 +5631,11 @@ __metadata: linkType: hard "@types/react-dom@npm:^18.0.0, @types/react-dom@npm:^18.2.7": - version: 18.2.18 - resolution: "@types/react-dom@npm:18.2.18" + version: 18.2.19 + resolution: "@types/react-dom@npm:18.2.19" dependencies: "@types/react": "npm:*" - checksum: 4ef7725b4cebd4a32e049097ddfdfd855a178e63ead97ab6d3084872e7d6c1acd71aa923488123cd1015f0e0b11489d2b44f674a1df8fe82d7827eabbec6dbf1 + checksum: 98eb760ce78f1016d97c70f605f0b1a53873a548d3c2192b40c897f694fd9c8bb12baeada16581a9c7b26f5022c1d2613547be98284d8f1b82d1611b1e3e7df0 languageName: node linkType: hard @@ -5671,13 +5688,13 @@ __metadata: linkType: hard "@types/react@npm:*, @types/react@npm:^18.2.15": - version: 18.2.48 - resolution: "@types/react@npm:18.2.48" + version: 18.2.55 + resolution: "@types/react@npm:18.2.55" dependencies: "@types/prop-types": "npm:*" "@types/scheduler": "npm:*" csstype: "npm:^3.0.2" - checksum: 2e56ea6bd821ae96bd943f727a59d85384eaf5f8a3e6fce4fa1d34453e32d8eedda742432b3857fa0de7a4214bf84ce4239757eb52918e76452c00384731e585 + checksum: bf8fe19e73575489e63c0726355f164157cd69e75f2a862436ad2c0586e732cb953a7255a6bc73145e8f9506ee7a723f9a569ca9a39c53984e5b12b84e1c718a languageName: node linkType: hard @@ -5689,9 +5706,9 @@ __metadata: linkType: hard "@types/semver@npm:^7.3.12": - version: 7.5.6 - resolution: "@types/semver@npm:7.5.6" - checksum: e77282b17f74354e17e771c0035cccb54b94cc53d0433fa7e9ba9d23fd5d7edcd14b6c8b7327d58bbd89e83b1c5eda71dfe408e06b929007e2b89586e9b63459 + version: 7.5.7 + resolution: "@types/semver@npm:7.5.7" + checksum: 535d88ec577fe59e38211881f79a1e2ba391e9e1516f8fff74e7196a5ba54315bace9c67a4616c334c830c89027d70a9f473a4ceb634526086a9da39180f2f9a languageName: node linkType: hard @@ -5724,9 +5741,16 @@ __metadata: linkType: hard "@types/uuid@npm:^9.0.3": - version: 9.0.7 - resolution: "@types/uuid@npm:9.0.7" - checksum: c7321194aeba9ea173efd1e721403bdf4e7ae6945f8f8cdbc87c791f4b505ccf3dbc4a8883d90b394ef13b7c2dc778045792b05dbb23b3c746f8ea347804d448 + version: 9.0.8 + resolution: "@types/uuid@npm:9.0.8" + checksum: b8c60b7ba8250356b5088302583d1704a4e1a13558d143c549c408bf8920535602ffc12394ede77f8a8083511b023704bc66d1345792714002bfa261b17c5275 + languageName: node + linkType: hard + +"@types/wrap-ansi@npm:^3.0.0": + version: 3.0.0 + resolution: "@types/wrap-ansi@npm:3.0.0" + checksum: 8aa644946ca4e859668c36b8e2bcf2ac4bdee59dac760414730ea57be8a93ae9166ebd40a088f2ab714843aaea2a2a67f0e6e6ec11cfc9c8701b2466ca1c4089 languageName: node linkType: hard @@ -5873,9 +5897,9 @@ __metadata: languageName: node linkType: hard -"@vitest/coverage-v8@npm:^1.0.4": - version: 1.2.0 - resolution: "@vitest/coverage-v8@npm:1.2.0" +"@vitest/coverage-v8@npm:^1.2.2": + version: 1.2.2 + resolution: "@vitest/coverage-v8@npm:1.2.2" dependencies: "@ampproject/remapping": "npm:^2.2.1" "@bcoe/v8-coverage": "npm:^0.2.3" @@ -5885,121 +5909,68 @@ __metadata: istanbul-lib-source-maps: "npm:^4.0.1" istanbul-reports: "npm:^3.1.6" magic-string: "npm:^0.30.5" - magicast: "npm:^0.3.2" + magicast: "npm:^0.3.3" picocolors: "npm:^1.0.0" std-env: "npm:^3.5.0" test-exclude: "npm:^6.0.0" v8-to-istanbul: "npm:^9.2.0" peerDependencies: vitest: ^1.0.0 - checksum: abac8eb1e7dc25210ae9d6347b9330260ffbd6d79ca78b9ffebcefc3cf4eda4cc214011cc148124e05f248761563a393cc15ae54ed33bee79c421d12b7abdf86 - languageName: node - linkType: hard - -"@vitest/expect@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/expect@npm:0.34.6" - dependencies: - "@vitest/spy": "npm:0.34.6" - "@vitest/utils": "npm:0.34.6" - chai: "npm:^4.3.10" - checksum: c5dbd3db4d914857287dcff5dd7084070a2f73ed616197c80acaa54c27e5563cecf7a11e86d6aeef002e38f2ca52626f4b9c765db9b56add736f4e94a7fb0954 + checksum: 006468751dc3bebdbb833691a4713dd3fa0eda94a797f2c86eaf0b6ca7fa3e4d2574af37f9fe319ba9cba736b5c3ad2a97843ad78bac112db035e94940716e37 languageName: node linkType: hard -"@vitest/expect@npm:1.2.0": - version: 1.2.0 - resolution: "@vitest/expect@npm:1.2.0" +"@vitest/expect@npm:1.2.2": + version: 1.2.2 + resolution: "@vitest/expect@npm:1.2.2" dependencies: - "@vitest/spy": "npm:1.2.0" - "@vitest/utils": "npm:1.2.0" + "@vitest/spy": "npm:1.2.2" + "@vitest/utils": "npm:1.2.2" chai: "npm:^4.3.10" - checksum: 279aff5e6c62794b3ad00aacf67e0003dfb40f2e4e54a5811145163711ec0ca6da7fbcf96e775184f7170948fca34508c260fbc31169d1d83a0c9a11a0547fbf - languageName: node - linkType: hard - -"@vitest/runner@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/runner@npm:0.34.6" - dependencies: - "@vitest/utils": "npm:0.34.6" - p-limit: "npm:^4.0.0" - pathe: "npm:^1.1.1" - checksum: 3525d8e4f8cd8a8b3f8f43a7b2604cda891fe31cfa1604e179628ced89d21114a55d6bb3bf192c02b4419e760eb15188d490e861cb46ddab2786193f8a999b0e + checksum: 409bf9984a2901cd13bd8644d1dcc61a3b85a122e70f842626c83995b806c6fb1ed5a81685493e88df8bf76557e599bdeed5fd5e908d84a4cb0fa4947b90b631 languageName: node linkType: hard -"@vitest/runner@npm:1.2.0": - version: 1.2.0 - resolution: "@vitest/runner@npm:1.2.0" +"@vitest/runner@npm:1.2.2": + version: 1.2.2 + resolution: "@vitest/runner@npm:1.2.2" dependencies: - "@vitest/utils": "npm:1.2.0" + "@vitest/utils": "npm:1.2.2" p-limit: "npm:^5.0.0" pathe: "npm:^1.1.1" - checksum: 0d2798c5c768195d63f441566ccab1bf361bf0a2f9f2616d1800788c2f8cc72939b3fe3af1c92170b9489f716526bf70e4a0e8b805b85fdef5d4ab723256a88a - languageName: node - linkType: hard - -"@vitest/snapshot@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/snapshot@npm:0.34.6" - dependencies: - magic-string: "npm:^0.30.1" - pathe: "npm:^1.1.1" - pretty-format: "npm:^29.5.0" - checksum: a9a321a089b22a383253b8cf3092c3af9b35453bb1c0ba0762760644a6ab0f727a4083872c7fd5a7d18c9a4fc4a798c4392872e337858a7c8ccc25ada6bf4d96 + checksum: e12a758a8c9ce762af470fc5a33e42a416b1e16469b69a077bc021044c460c468ed24fa892e80cba4bfc0448df8484d1bfc43a271db09560347455aa392cc8aa languageName: node linkType: hard -"@vitest/snapshot@npm:1.2.0": - version: 1.2.0 - resolution: "@vitest/snapshot@npm:1.2.0" +"@vitest/snapshot@npm:1.2.2": + version: 1.2.2 + resolution: "@vitest/snapshot@npm:1.2.2" dependencies: magic-string: "npm:^0.30.5" pathe: "npm:^1.1.1" pretty-format: "npm:^29.7.0" - checksum: c3115bbd23695803a22d89c10074f0fa5cf325160a7015d470bebf41abe8f902b46de33aaa9e08688e5bd49fb5ceb7c1c7f7942bb3c62582a929db2f677b03d7 + checksum: 73e669efdf8ba7270a2b71b988ca93fc9cbc9f9b4ad4cb7c7f8d44dbedfef3109fc8896867b8e1f22cd95494ce18cbc1026a0f89ef4a2e7e4546cf8e613ed302 languageName: node linkType: hard -"@vitest/spy@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/spy@npm:0.34.6" - dependencies: - tinyspy: "npm:^2.1.1" - checksum: 9de152ac928c31e21bb4d8e1262b70db50dd11479efe8babce6bd993cc89957b974a584414a99d66ca188775b50baea1b934fdfb8d0d53c66fc2feb6dc2e348d - languageName: node - linkType: hard - -"@vitest/spy@npm:1.2.0": - version: 1.2.0 - resolution: "@vitest/spy@npm:1.2.0" +"@vitest/spy@npm:1.2.2": + version: 1.2.2 + resolution: "@vitest/spy@npm:1.2.2" dependencies: tinyspy: "npm:^2.2.0" - checksum: cb277034b709a31b66b87f79285cf757ee818b91bbd0cdcd7368b3af97ac09b56e0d4d8420e0c4f305524b1901a04c9781a32360e704ed5a0807d8b3b5f227c6 - languageName: node - linkType: hard - -"@vitest/utils@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/utils@npm:0.34.6" - dependencies: - diff-sequences: "npm:^29.4.3" - loupe: "npm:^2.3.6" - pretty-format: "npm:^29.5.0" - checksum: 09a1b2122ceb5541b4f3d64410088e363a36d6e4addf208b6458615ac856adf36c1c9b5431a45ea13a78c30e6a7dcb0696854abe69a710089ffa229356a5202b + checksum: 8cf453f2b0c519b27d783dafbca8a4df6945b8f4723077e7ae153ef06bcb1422af608d2a09912284c3bd7bd1e66555d82d889497780295c73a14876807755a79 languageName: node linkType: hard -"@vitest/utils@npm:1.2.0": - version: 1.2.0 - resolution: "@vitest/utils@npm:1.2.0" +"@vitest/utils@npm:1.2.2": + version: 1.2.2 + resolution: "@vitest/utils@npm:1.2.2" dependencies: diff-sequences: "npm:^29.6.3" estree-walker: "npm:^3.0.3" loupe: "npm:^2.3.7" pretty-format: "npm:^29.7.0" - checksum: 514397c7d68dc4928561cdb4ebe7b8d2ef5b14cf512c66ee07a0114fa785d1db0870df134a8bdcd8fbdadc371ff6a71d1233db3ebed9c1f048918e8b10bf1d8b + checksum: f9a62bc8cbe05475b99e1f8bd96e0ee48cf819ca2e532ba18f071bf0371f044dffa006c33a69b1b276097e6b50f91342a776c830cfac19456b24a9bdad29abe5 languageName: node linkType: hard @@ -6042,7 +6013,7 @@ __metadata: languageName: node linkType: hard -"acorn-walk@npm:^8.2.0, acorn-walk@npm:^8.3.1": +"acorn-walk@npm:^8.3.2": version: 8.3.2 resolution: "acorn-walk@npm:8.3.2" checksum: 57dbe2fd8cf744f562431775741c5c087196cd7a65ce4ccb3f3981cdfad25cd24ad2bad404997b88464ac01e789a0a61e5e355b2a84876f13deef39fb39686ca @@ -6168,7 +6139,7 @@ __metadata: languageName: node linkType: hard -"ansi-escapes@npm:^4.2.1": +"ansi-escapes@npm:^4.3.2": version: 4.3.2 resolution: "ansi-escapes@npm:4.3.2" dependencies: @@ -6307,13 +6278,13 @@ __metadata: languageName: node linkType: hard -"array-buffer-byte-length@npm:^1.0.0": - version: 1.0.0 - resolution: "array-buffer-byte-length@npm:1.0.0" +"array-buffer-byte-length@npm:^1.0.0, array-buffer-byte-length@npm:^1.0.1": + version: 1.0.1 + resolution: "array-buffer-byte-length@npm:1.0.1" dependencies: - call-bind: "npm:^1.0.2" - is-array-buffer: "npm:^3.0.1" - checksum: 044e101ce150f4804ad19c51d6c4d4cfa505c5b2577bd179256e4aa3f3f6a0a5e9874c78cd428ee566ac574c8a04d7ce21af9fe52e844abfdccb82b33035a7c3 + call-bind: "npm:^1.0.5" + is-array-buffer: "npm:^3.0.4" + checksum: 53524e08f40867f6a9f35318fafe467c32e45e9c682ba67b11943e167344d2febc0f6977a17e699b05699e805c3e8f073d876f8bbf1b559ed494ad2cd0fae09e languageName: node linkType: hard @@ -6337,16 +6308,29 @@ __metadata: languageName: node linkType: hard -"array.prototype.findlastindex@npm:^1.2.3": - version: 1.2.3 - resolution: "array.prototype.findlastindex@npm:1.2.3" +"array.prototype.filter@npm:^1.0.3": + version: 1.0.3 + resolution: "array.prototype.filter@npm:1.0.3" dependencies: call-bind: "npm:^1.0.2" define-properties: "npm:^1.2.0" es-abstract: "npm:^1.22.1" - es-shim-unscopables: "npm:^1.0.0" - get-intrinsic: "npm:^1.2.1" - checksum: 063cbab8eeac3aa01f3e980eecb9a8c5d87723032b49f7f814ecc6d75c33c03c17e3f43a458127a62e16303cab412f95d6ad9dc7e0ae6d9dc27a9bb76c24df7a + es-array-method-boxes-properly: "npm:^1.0.0" + is-string: "npm:^1.0.7" + checksum: 3da2189afb00f95559cc73fc3c50f17a071a65bb705c0b2f2e2a2b2142781215b622442368c8b4387389b6ab251adf09ad347f9a8a4cf29d24404cc5ea1e295c + languageName: node + linkType: hard + +"array.prototype.findlastindex@npm:^1.2.3": + version: 1.2.4 + resolution: "array.prototype.findlastindex@npm:1.2.4" + dependencies: + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.3.0" + es-shim-unscopables: "npm:^1.0.2" + checksum: 12d7de8da619065b9d4c40550d11c13f2fbbc863c4270ef01d022f49ef16fbe9022441ee9d60b1e952853c661dd4b3e05c21e4348d4631c6d93ddf802a252296 languageName: node linkType: hard @@ -6375,30 +6359,31 @@ __metadata: linkType: hard "array.prototype.tosorted@npm:^1.1.1": - version: 1.1.2 - resolution: "array.prototype.tosorted@npm:1.1.2" + version: 1.1.3 + resolution: "array.prototype.tosorted@npm:1.1.3" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - es-shim-unscopables: "npm:^1.0.0" - get-intrinsic: "npm:^1.2.1" - checksum: aadb7725bb923f594be8121c80def8193ff2871ce1bfa1180b7e7ef705b8a7b32327fcc0d998c5569bb0cabc1c11ad93b1ef11443a26091e8bd1a55b382ab715 + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.1.0" + es-shim-unscopables: "npm:^1.0.2" + checksum: 9a5b7909a9ddd02a5f5489911766c314a11fb40f8f5106bdbedf6c21898763faeb78ba3af53f7038f288de9161d2605ad10d8b720e07f71a7ed1de49f39c0897 languageName: node linkType: hard "arraybuffer.prototype.slice@npm:^1.0.2": - version: 1.0.2 - resolution: "arraybuffer.prototype.slice@npm:1.0.2" + version: 1.0.3 + resolution: "arraybuffer.prototype.slice@npm:1.0.3" dependencies: - array-buffer-byte-length: "npm:^1.0.0" - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - get-intrinsic: "npm:^1.2.1" - is-array-buffer: "npm:^3.0.2" + array-buffer-byte-length: "npm:^1.0.1" + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.2.1" + get-intrinsic: "npm:^1.2.3" + is-array-buffer: "npm:^3.0.4" is-shared-array-buffer: "npm:^1.0.2" - checksum: c200faf437786f5b2c80d4564ff5481c886a16dee642ef02abdc7306c7edd523d1f01d1dd12b769c7eb42ac9bc53874510db19a92a2c035c0f6696172aafa5d3 + checksum: 0221f16c1e3ec7b67da870ee0e1f12b825b5f9189835392b59a22990f715827561a4f4cd5330dc7507de272d8df821be6cd4b0cb569babf5ea4be70e365a2f3d languageName: node linkType: hard @@ -6463,12 +6448,12 @@ __metadata: linkType: hard "autoprefixer@npm:^10.4.4": - version: 10.4.16 - resolution: "autoprefixer@npm:10.4.16" + version: 10.4.17 + resolution: "autoprefixer@npm:10.4.17" dependencies: - browserslist: "npm:^4.21.10" - caniuse-lite: "npm:^1.0.30001538" - fraction.js: "npm:^4.3.6" + browserslist: "npm:^4.22.2" + caniuse-lite: "npm:^1.0.30001578" + fraction.js: "npm:^4.3.7" normalize-range: "npm:^0.1.2" picocolors: "npm:^1.0.0" postcss-value-parser: "npm:^4.2.0" @@ -6476,14 +6461,14 @@ __metadata: postcss: ^8.1.0 bin: autoprefixer: bin/autoprefixer - checksum: 3514a4ae63f1f55006c96eb93acef4a0284d78b640d8f27d3178d40b302576e346619001ca139b4ddc5e7b0c5e66921aa45d8e3752d8d521598119aab8ff4997 + checksum: ac4416e72643bf92c2a346af5a6a437eb39e3b852e5d48e1a0a3204a81cbf8eecc5489a9386cf63a288b7183fae3ad52cf3c24c458d7cbb5463e55e21dc7e6ed languageName: node linkType: hard -"available-typed-arrays@npm:^1.0.5": - version: 1.0.5 - resolution: "available-typed-arrays@npm:1.0.5" - checksum: 4d4d5e86ea0425696f40717882f66a570647b94ac8d273ddc7549a9b61e5da099e149bf431530ccbd776bd74e02039eb8b5edf426e3e2211ee61af16698a9064 +"available-typed-arrays@npm:^1.0.5, available-typed-arrays@npm:^1.0.6": + version: 1.0.6 + resolution: "available-typed-arrays@npm:1.0.6" + checksum: c1e2e3d3a694f21bf60e0a048d8275fa7358131a0b8e6b57714318d618b59522416db67fb9f56973af0ce596f4333ef1336ca12c37a41d5a72ef79885373a7fd languageName: node linkType: hard @@ -6494,21 +6479,21 @@ __metadata: languageName: node linkType: hard -"axe-core@npm:~4.8.3": - version: 4.8.3 - resolution: "axe-core@npm:4.8.3" - checksum: 86d72bcdff867b8a4f223b910f90d1c963ddab1db3bdc5290e111453bae4e319ed14d667cd7a6ac97185ffa141261c88ac9a586aa007d007ffc19ed9ae81ee1d +"axe-core@npm:~4.8.4": + version: 4.8.4 + resolution: "axe-core@npm:4.8.4" + checksum: c8b3972b17afac33b9e151556fa500b9218086ca763866942de30e7f51ac50582902ad03ec16381796c95afaacfa8c33efb2d02ab4f09b6c09d6be58b95da978 languageName: node linkType: hard -"axios@npm:^1.6.2": - version: 1.6.5 - resolution: "axios@npm:1.6.5" +"axios@npm:^1.6.7": + version: 1.6.7 + resolution: "axios@npm:1.6.7" dependencies: follow-redirects: "npm:^1.15.4" form-data: "npm:^4.0.0" proxy-from-env: "npm:^1.1.0" - checksum: 465489d9bf8f039b9adbc8103b6299d6a5e26de77b27f0e4173d814d39bca8f4b4659d94e09ee40461aedccd8c2452f1e2b3edace1c9f81220060d2974ff9dc7 + checksum: a1932b089ece759cd261f175d9ebf4d41c8994cf0c0767cda86055c7a19bcfdade8ae3464bf4cec4c8b142f4a657dc664fb77a41855e8376cf38b86d7a86518f languageName: node linkType: hard @@ -6541,39 +6526,39 @@ __metadata: languageName: node linkType: hard -"babel-plugin-polyfill-corejs2@npm:^0.4.7": - version: 0.4.7 - resolution: "babel-plugin-polyfill-corejs2@npm:0.4.7" +"babel-plugin-polyfill-corejs2@npm:^0.4.8": + version: 0.4.8 + resolution: "babel-plugin-polyfill-corejs2@npm:0.4.8" dependencies: "@babel/compat-data": "npm:^7.22.6" - "@babel/helper-define-polyfill-provider": "npm:^0.4.4" + "@babel/helper-define-polyfill-provider": "npm:^0.5.0" semver: "npm:^6.3.1" peerDependencies: "@babel/core": ^7.4.0 || ^8.0.0-0 <8.0.0 - checksum: 3b61cdb275592f61b29d582ee8c738a13d9897c5dd201cddb0610b381f3ae139ebc988ac96f72978fc143c3d50c15d46618df865822e282c8e76c236e7378b63 + checksum: 6b5a79bdc1c43edf857fd3a82966b3c7ff4a90eee00ca8d663e0a98304d6e285a05759d64a4dbc16e04a2a5ea1f248673d8bf789711be5e694e368f19884887c languageName: node linkType: hard -"babel-plugin-polyfill-corejs3@npm:^0.8.7": - version: 0.8.7 - resolution: "babel-plugin-polyfill-corejs3@npm:0.8.7" +"babel-plugin-polyfill-corejs3@npm:^0.9.0": + version: 0.9.0 + resolution: "babel-plugin-polyfill-corejs3@npm:0.9.0" dependencies: - "@babel/helper-define-polyfill-provider": "npm:^0.4.4" - core-js-compat: "npm:^3.33.1" + "@babel/helper-define-polyfill-provider": "npm:^0.5.0" + core-js-compat: "npm:^3.34.0" peerDependencies: "@babel/core": ^7.4.0 || ^8.0.0-0 <8.0.0 - checksum: defbc6de3d309c9639dd31223b5011707fcc0384037ac5959a1aefe16eb314562e1c1e5cfbce0af14a220d639ef92dfe5baf66664e9e6054656aca2841677622 + checksum: efdf9ba82e7848a2c66e0522adf10ac1646b16f271a9006b61a22f976b849de22a07c54c8826887114842ccd20cc9a4617b61e8e0789227a74378ab508e715cd languageName: node linkType: hard -"babel-plugin-polyfill-regenerator@npm:^0.5.4": - version: 0.5.4 - resolution: "babel-plugin-polyfill-regenerator@npm:0.5.4" +"babel-plugin-polyfill-regenerator@npm:^0.5.5": + version: 0.5.5 + resolution: "babel-plugin-polyfill-regenerator@npm:0.5.5" dependencies: - "@babel/helper-define-polyfill-provider": "npm:^0.4.4" + "@babel/helper-define-polyfill-provider": "npm:^0.5.0" peerDependencies: "@babel/core": ^7.4.0 || ^8.0.0-0 <8.0.0 - checksum: 461b735c6c0eca3c7b4434d14bfa98c2ab80f00e2bdc1c69eb46d1d300092a9786d76bbd3ee55e26d2d1a2380c14592d8d638e271dfd2a2b78a9eacffa3645d1 + checksum: 3a9b4828673b23cd648dcfb571eadcd9d3fadfca0361d0a7c6feeb5a30474e92faaa49f067a6e1c05e49b6a09812879992028ff3ef3446229ff132d6e1de7eb6 languageName: node linkType: hard @@ -6584,13 +6569,6 @@ __metadata: languageName: node linkType: hard -"base64-js@npm:^1.3.1": - version: 1.5.1 - resolution: "base64-js@npm:1.5.1" - checksum: 669632eb3745404c2f822a18fc3a0122d2f9a7a13f7fb8b5823ee19d1d2ff9ee5b52c53367176ea4ad093c332fd5ab4bd0ebae5a8e27917a4105a4cfc86b1005 - languageName: node - linkType: hard - "binary-extensions@npm:^2.0.0": version: 2.2.0 resolution: "binary-extensions@npm:2.2.0" @@ -6598,17 +6576,6 @@ __metadata: languageName: node linkType: hard -"bl@npm:^4.1.0": - version: 4.1.0 - resolution: "bl@npm:4.1.0" - dependencies: - buffer: "npm:^5.5.0" - inherits: "npm:^2.0.4" - readable-stream: "npm:^3.4.0" - checksum: b7904e66ed0bdfc813c06ea6c3e35eafecb104369dbf5356d0f416af90c1546de3b74e5b63506f0629acf5e16a6f87c3798f16233dcff086e9129383aa02ab55 - languageName: node - linkType: hard - "brace-expansion@npm:^1.1.7": version: 1.1.11 resolution: "brace-expansion@npm:1.1.11" @@ -6637,27 +6604,17 @@ __metadata: languageName: node linkType: hard -"browserslist@npm:^4.21.10, browserslist@npm:^4.22.2": - version: 4.22.2 - resolution: "browserslist@npm:4.22.2" +"browserslist@npm:^4.22.2": + version: 4.22.3 + resolution: "browserslist@npm:4.22.3" dependencies: - caniuse-lite: "npm:^1.0.30001565" - electron-to-chromium: "npm:^1.4.601" + caniuse-lite: "npm:^1.0.30001580" + electron-to-chromium: "npm:^1.4.648" node-releases: "npm:^2.0.14" update-browserslist-db: "npm:^1.0.13" bin: browserslist: cli.js - checksum: e3590793db7f66ad3a50817e7b7f195ce61e029bd7187200244db664bfbe0ac832f784e4f6b9c958aef8ea4abe001ae7880b7522682df521f4bc0a5b67660b5e - languageName: node - linkType: hard - -"buffer@npm:^5.5.0": - version: 5.7.1 - resolution: "buffer@npm:5.7.1" - dependencies: - base64-js: "npm:^1.3.1" - ieee754: "npm:^1.1.13" - checksum: 997434d3c6e3b39e0be479a80288875f71cd1c07d75a3855e6f08ef848a3c966023f79534e22e415ff3a5112708ce06127277ab20e527146d55c84566405c7c6 + checksum: d46a906c79dfe95d9702c020afbe5b7b4dbe2019b85432e7a020326adff27e63e3c0a52dc8d4e73247060bbe2c13f000714741903cf96a16baae9c216dc74c75 languageName: node linkType: hard @@ -6762,14 +6719,16 @@ __metadata: languageName: node linkType: hard -"call-bind@npm:^1.0.0, call-bind@npm:^1.0.2, call-bind@npm:^1.0.4, call-bind@npm:^1.0.5": - version: 1.0.5 - resolution: "call-bind@npm:1.0.5" +"call-bind@npm:^1.0.2, call-bind@npm:^1.0.5, call-bind@npm:^1.0.6": + version: 1.0.7 + resolution: "call-bind@npm:1.0.7" dependencies: + es-define-property: "npm:^1.0.0" + es-errors: "npm:^1.3.0" function-bind: "npm:^1.1.2" - get-intrinsic: "npm:^1.2.1" - set-function-length: "npm:^1.1.1" - checksum: 246d44db6ef9bbd418828dbd5337f80b46be4398d522eded015f31554cbb2ea33025b0203b75c7ab05a1a255b56ef218880cca1743e4121e306729f9e414da39 + get-intrinsic: "npm:^1.2.4" + set-function-length: "npm:^1.2.1" + checksum: cd6fe658e007af80985da5185bff7b55e12ef4c2b6f41829a26ed1eef254b1f1c12e3dfd5b2b068c6ba8b86aba62390842d81752e67dcbaec4f6f76e7113b6b7 languageName: node linkType: hard @@ -6819,10 +6778,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.30001538, caniuse-lite@npm:^1.0.30001565": - version: 1.0.30001578 - resolution: "caniuse-lite@npm:1.0.30001578" - checksum: 3b1c41e70270839c958c3fefa3430d74021e15f019667c53f44894eff7382c03c1464e68c4aced284a212c1f157888b09f5b7fd5cae163efdc916202ec71a59d +"caniuse-lite@npm:^1.0.30001578, caniuse-lite@npm:^1.0.30001580": + version: 1.0.30001587 + resolution: "caniuse-lite@npm:1.0.30001587" + checksum: 960e26927ad876971021186337df1df2d37d7ed4fc7907098c060f56ae8de737d471791e51387ca55bea07f56b0a76553a90125f88a2f958ca1f4f715013cf71 languageName: node linkType: hard @@ -6879,13 +6838,6 @@ __metadata: languageName: node linkType: hard -"chardet@npm:^0.7.0": - version: 0.7.0 - resolution: "chardet@npm:0.7.0" - checksum: b0ec668fba5eeec575ed2559a0917ba41a6481f49063c8445400e476754e0957ee09e44dc032310f526182b8f1bf25e9d4ed371f74050af7be1383e06bc44952 - languageName: node - linkType: hard - "check-error@npm:^1.0.3": version: 1.0.3 resolution: "check-error@npm:1.0.3" @@ -6895,9 +6847,9 @@ __metadata: languageName: node linkType: hard -"chokidar@npm:>=3.0.0 <4.0.0, chokidar@npm:^3.4.2, chokidar@npm:^3.5.3": - version: 3.5.3 - resolution: "chokidar@npm:3.5.3" +"chokidar@npm:>=3.0.0 <4.0.0, chokidar@npm:^3.5.3": + version: 3.6.0 + resolution: "chokidar@npm:3.6.0" dependencies: anymatch: "npm:~3.1.2" braces: "npm:~3.0.2" @@ -6910,7 +6862,7 @@ __metadata: dependenciesMeta: fsevents: optional: true - checksum: 863e3ff78ee7a4a24513d2a416856e84c8e4f5e60efbe03e8ab791af1a183f569b62fc6f6b8044e2804966cb81277ddbbc1dc374fba3265bd609ea8efd62f5b3 + checksum: c327fb07704443f8d15f7b4a7ce93b2f0bc0e6cea07ec28a7570aa22cd51fcf0379df589403976ea956c369f25aa82d84561947e227cd925902e1751371658df languageName: node linkType: hard @@ -6935,26 +6887,17 @@ __metadata: languageName: node linkType: hard -"cli-cursor@npm:^3.1.0": - version: 3.1.0 - resolution: "cli-cursor@npm:3.1.0" - dependencies: - restore-cursor: "npm:^3.1.0" - checksum: 2692784c6cd2fd85cfdbd11f53aea73a463a6d64a77c3e098b2b4697a20443f430c220629e1ca3b195ea5ac4a97a74c2ee411f3807abf6df2b66211fec0c0a29 - languageName: node - linkType: hard - -"cli-spinners@npm:^2.5.0": +"cli-spinners@npm:^2.9.2": version: 2.9.2 resolution: "cli-spinners@npm:2.9.2" checksum: a0a863f442df35ed7294424f5491fa1756bd8d2e4ff0c8736531d886cec0ece4d85e8663b77a5afaf1d296e3cbbebff92e2e99f52bbea89b667cbe789b994794 languageName: node linkType: hard -"cli-width@npm:^3.0.0": - version: 3.0.0 - resolution: "cli-width@npm:3.0.0" - checksum: 8730848b04fb189666ab037a35888d191c8f05b630b1d770b0b0e4c920b47bb5cc14bddf6b8ffe5bfc66cee97c8211d4d18e756c1ffcc75d7dbe7e1186cd7826 +"cli-width@npm:^4.1.0": + version: 4.1.0 + resolution: "cli-width@npm:4.1.0" + checksum: b58876fbf0310a8a35c79b72ecfcf579b354e18ad04e6b20588724ea2b522799a758507a37dfe132fafaf93a9922cafd9514d9e1598e6b2cd46694853aed099f languageName: node linkType: hard @@ -6976,13 +6919,6 @@ __metadata: languageName: node linkType: hard -"clone@npm:^1.0.2": - version: 1.0.4 - resolution: "clone@npm:1.0.4" - checksum: d06418b7335897209e77bdd430d04f882189582e67bd1f75a04565f3f07f5b3f119a9d670c943b6697d0afb100f03b866b3b8a1f91d4d02d72c4ecf2bb64b5dd - languageName: node - linkType: hard - "clsx@npm:^1.1.1": version: 1.2.1 resolution: "clsx@npm:1.2.1" @@ -7123,12 +7059,12 @@ __metadata: languageName: node linkType: hard -"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.33.1": - version: 3.35.0 - resolution: "core-js-compat@npm:3.35.0" +"core-js-compat@npm:^3.31.0, core-js-compat@npm:^3.34.0": + version: 3.35.1 + resolution: "core-js-compat@npm:3.35.1" dependencies: browserslist: "npm:^4.22.2" - checksum: aa21ad2f0c946be7a8ecef92233bc003a38fa27e43a925fcd9b79e32ae49b879e0f5c23459ffc310df38ee547389b8e5e43a6a8be0b2369b9b9ebf3d04ae69b9 + checksum: 9a153c66591e23703e182b258ec6bdaff0a7c578dc5f9ac152fdfef2d09e8ec277f192e28d4634a8b576c8e1a6d3b1ac76ff6b8776e72b71b334e609e177a05e languageName: node linkType: hard @@ -7672,23 +7608,15 @@ __metadata: languageName: node linkType: hard -"defaults@npm:^1.0.3": - version: 1.0.4 - resolution: "defaults@npm:1.0.4" - dependencies: - clone: "npm:^1.0.2" - checksum: 3a88b7a587fc076b84e60affad8b85245c01f60f38fc1d259e7ac1d89eb9ce6abb19e27215de46b98568dd5bc48471730b327637e6f20b0f1bc85cf00440c80a - languageName: node - linkType: hard - -"define-data-property@npm:^1.0.1, define-data-property@npm:^1.1.0, define-data-property@npm:^1.1.1": - version: 1.1.1 - resolution: "define-data-property@npm:1.1.1" +"define-data-property@npm:^1.0.1, define-data-property@npm:^1.1.1, define-data-property@npm:^1.1.2": + version: 1.1.3 + resolution: "define-data-property@npm:1.1.3" dependencies: - get-intrinsic: "npm:^1.2.1" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.4" gopd: "npm:^1.0.1" - has-property-descriptors: "npm:^1.0.0" - checksum: 5573c8df96b5857408cad64d9b91b69152e305ce4b06218e5f49b59c6cafdbb90a8bd8a0bb83c7bc67a8d479c04aa697063c9bc28d849b7282f9327586d6bc7b + has-property-descriptors: "npm:^1.0.1" + checksum: 99c97937af456b5290283a77c3b014735794b594f4f01d310fb700c94f70a5e19fd3006886669c8c740270e9b22736e029eedd46d01a9d98703fd245d3595244 languageName: node linkType: hard @@ -7711,11 +7639,11 @@ __metadata: linkType: hard "delaunator@npm:5": - version: 5.0.0 - resolution: "delaunator@npm:5.0.0" + version: 5.0.1 + resolution: "delaunator@npm:5.0.1" dependencies: - robust-predicates: "npm:^3.0.0" - checksum: 87f9aa5e2378036377ad924418181261ffb58607f303480b4615a5ef6fe2ecefc79f90db217353f2b79e06ee959bba65940429d4484aa36350bd6bde0fbf5010 + robust-predicates: "npm:^3.0.2" + checksum: c378a55138d81d471a7214635b1a2c5e74f8ee06582f558df72f0c7c82c25868599ce9a18fb25a245c6c03cab886d17fb574681c78371b539dd069818703f53a languageName: node linkType: hard @@ -7754,7 +7682,7 @@ __metadata: languageName: node linkType: hard -"diff-sequences@npm:^29.4.3, diff-sequences@npm:^29.6.3": +"diff-sequences@npm:^29.6.3": version: 29.6.3 resolution: "diff-sequences@npm:29.6.3" checksum: 179daf9d2f9af5c57ad66d97cb902a538bcf8ed64963fa7aa0c329b3de3665ce2eb6ffdc2f69f29d445fa4af2517e5e55e5b6e00c00a9ae4f43645f97f7078cb @@ -7846,9 +7774,9 @@ __metadata: linkType: hard "dotenv@npm:^16.3.1": - version: 16.3.1 - resolution: "dotenv@npm:16.3.1" - checksum: dbb778237ef8750e9e3cd1473d3c8eaa9cc3600e33a75c0e36415d0fa0848197f56c3800f77924c70e7828f0b03896818cd52f785b07b9ad4d88dba73fbba83f + version: 16.4.3 + resolution: "dotenv@npm:16.4.3" + checksum: f07db902c62c239aef7a7b696b21dfab8e95bf5883bcf23c6b9b55f42578d18b842e6257b4f4ecfdbd024a3ee9949fbaaa4c84807de7ba037c74fe3c70785198 languageName: node linkType: hard @@ -7859,10 +7787,10 @@ __metadata: languageName: node linkType: hard -"electron-to-chromium@npm:^1.4.601": - version: 1.4.635 - resolution: "electron-to-chromium@npm:1.4.635" - checksum: c3be3fc5d4bde640eebe631768835ed63e9957f24d898961d2710f561f68b6b82bad6533a97e03b52a485721453efabfc9a7167d0e1ba109f3374c008986fcd5 +"electron-to-chromium@npm:^1.4.648": + version: 1.4.667 + resolution: "electron-to-chromium@npm:1.4.667" + checksum: ec7c1ea6eb74b0909b011639ce8e7f3c6faa7b98225176fbb85bf4a03ffeb14ef69c99d710d9f9891e426552faaa8f0df5a5118a5ac0dc2f2ab29ab22a9196ce languageName: node linkType: hard @@ -7929,7 +7857,7 @@ __metadata: languageName: node linkType: hard -"es-abstract@npm:^1.22.1": +"es-abstract@npm:^1.22.1, es-abstract@npm:^1.22.3": version: 1.22.3 resolution: "es-abstract@npm:1.22.3" dependencies: @@ -7977,28 +7905,51 @@ __metadata: linkType: hard "es-aggregate-error@npm:^1.0.7": - version: 1.0.11 - resolution: "es-aggregate-error@npm:1.0.11" + version: 1.0.12 + resolution: "es-aggregate-error@npm:1.0.12" dependencies: - define-data-property: "npm:^1.1.0" + define-data-property: "npm:^1.1.1" define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.22.1" - function-bind: "npm:^1.1.1" - get-intrinsic: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.1.0" + function-bind: "npm:^1.1.2" globalthis: "npm:^1.0.3" - has-property-descriptors: "npm:^1.0.0" + has-property-descriptors: "npm:^1.0.1" set-function-name: "npm:^2.0.1" - checksum: b0dff08a0b72f1bae1e4d751c31d28d24e5f19402b607457af852c2dd1f51bc32b543a0a63b76909baf4305ec51d42e1cb9ded22ce67d812d1b7e90c134632d4 + checksum: c7658d8531aed3d261dd887cdd4af5a246d6b3779a9a7c2570daafa07ba0a0fc80b49c2e65bb1dcda2dd36d871308b8d0333c780c1df4d01aeaff0b8dabb65f3 languageName: node linkType: hard -"es-get-iterator@npm:^1.1.3": - version: 1.1.3 - resolution: "es-get-iterator@npm:1.1.3" - dependencies: - call-bind: "npm:^1.0.2" - get-intrinsic: "npm:^1.1.3" - has-symbols: "npm:^1.0.3" +"es-array-method-boxes-properly@npm:^1.0.0": + version: 1.0.0 + resolution: "es-array-method-boxes-properly@npm:1.0.0" + checksum: 27a8a21acf20f3f51f69dce8e643f151e380bffe569e95dc933b9ded9fcd89a765ee21b5229c93f9206c93f87395c6b75f80be8ac8c08a7ceb8771e1822ff1fb + languageName: node + linkType: hard + +"es-define-property@npm:^1.0.0": + version: 1.0.0 + resolution: "es-define-property@npm:1.0.0" + dependencies: + get-intrinsic: "npm:^1.2.4" + checksum: f66ece0a887b6dca71848fa71f70461357c0e4e7249696f81bad0a1f347eed7b31262af4a29f5d726dc026426f085483b6b90301855e647aa8e21936f07293c6 + languageName: node + linkType: hard + +"es-errors@npm:^1.0.0, es-errors@npm:^1.1.0, es-errors@npm:^1.2.1, es-errors@npm:^1.3.0": + version: 1.3.0 + resolution: "es-errors@npm:1.3.0" + checksum: 96e65d640156f91b707517e8cdc454dd7d47c32833aa3e85d79f24f9eb7ea85f39b63e36216ef0114996581969b59fe609a94e30316b08f5f4df1d44134cf8d5 + languageName: node + linkType: hard + +"es-get-iterator@npm:^1.1.3": + version: 1.1.3 + resolution: "es-get-iterator@npm:1.1.3" + dependencies: + call-bind: "npm:^1.0.2" + get-intrinsic: "npm:^1.1.3" + has-symbols: "npm:^1.0.3" is-arguments: "npm:^1.1.1" is-map: "npm:^2.0.2" is-set: "npm:^2.0.2" @@ -8010,28 +7961,29 @@ __metadata: linkType: hard "es-iterator-helpers@npm:^1.0.12, es-iterator-helpers@npm:^1.0.15": - version: 1.0.15 - resolution: "es-iterator-helpers@npm:1.0.15" + version: 1.0.16 + resolution: "es-iterator-helpers@npm:1.0.16" dependencies: asynciterator.prototype: "npm:^1.0.0" - call-bind: "npm:^1.0.2" + call-bind: "npm:^1.0.6" define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.22.1" - es-set-tostringtag: "npm:^2.0.1" - function-bind: "npm:^1.1.1" - get-intrinsic: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.3.0" + es-set-tostringtag: "npm:^2.0.2" + function-bind: "npm:^1.1.2" + get-intrinsic: "npm:^1.2.4" globalthis: "npm:^1.0.3" - has-property-descriptors: "npm:^1.0.0" + has-property-descriptors: "npm:^1.0.1" has-proto: "npm:^1.0.1" has-symbols: "npm:^1.0.3" - internal-slot: "npm:^1.0.5" + internal-slot: "npm:^1.0.7" iterator.prototype: "npm:^1.1.2" - safe-array-concat: "npm:^1.0.1" - checksum: 78535c00c49d81df603e650886d3806f3cd8d288e2c07703cfb145725753a3d2df19bff9feeb14cd1baed02252d1f85c4bbc922c8db02841722ab3ec02e78339 + safe-array-concat: "npm:^1.1.0" + checksum: 979eeca89ef150f3797b1143d4cac2e0670fa50a63aea534845130495e35779ab328ed0d550d619541bda39f7afc3a7a9564749cbb616f4f15aa3efbd042b99e languageName: node linkType: hard -"es-set-tostringtag@npm:^2.0.1": +"es-set-tostringtag@npm:^2.0.1, es-set-tostringtag@npm:^2.0.2": version: 2.0.2 resolution: "es-set-tostringtag@npm:2.0.2" dependencies: @@ -8042,7 +7994,7 @@ __metadata: languageName: node linkType: hard -"es-shim-unscopables@npm:^1.0.0": +"es-shim-unscopables@npm:^1.0.0, es-shim-unscopables@npm:^1.0.2": version: 1.0.2 resolution: "es-shim-unscopables@npm:1.0.2" dependencies: @@ -8069,33 +8021,33 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.19.3, esbuild@npm:^0.19.5": - version: 0.19.11 - resolution: "esbuild@npm:0.19.11" - dependencies: - "@esbuild/aix-ppc64": "npm:0.19.11" - "@esbuild/android-arm": "npm:0.19.11" - "@esbuild/android-arm64": "npm:0.19.11" - "@esbuild/android-x64": "npm:0.19.11" - "@esbuild/darwin-arm64": "npm:0.19.11" - "@esbuild/darwin-x64": "npm:0.19.11" - "@esbuild/freebsd-arm64": "npm:0.19.11" - "@esbuild/freebsd-x64": "npm:0.19.11" - "@esbuild/linux-arm": "npm:0.19.11" - "@esbuild/linux-arm64": "npm:0.19.11" - "@esbuild/linux-ia32": "npm:0.19.11" - "@esbuild/linux-loong64": "npm:0.19.11" - "@esbuild/linux-mips64el": "npm:0.19.11" - "@esbuild/linux-ppc64": "npm:0.19.11" - "@esbuild/linux-riscv64": "npm:0.19.11" - "@esbuild/linux-s390x": "npm:0.19.11" - "@esbuild/linux-x64": "npm:0.19.11" - "@esbuild/netbsd-x64": "npm:0.19.11" - "@esbuild/openbsd-x64": "npm:0.19.11" - "@esbuild/sunos-x64": "npm:0.19.11" - "@esbuild/win32-arm64": "npm:0.19.11" - "@esbuild/win32-ia32": "npm:0.19.11" - "@esbuild/win32-x64": "npm:0.19.11" +"esbuild@npm:^0.19.11, esbuild@npm:^0.19.3": + version: 0.19.12 + resolution: "esbuild@npm:0.19.12" + dependencies: + "@esbuild/aix-ppc64": "npm:0.19.12" + "@esbuild/android-arm": "npm:0.19.12" + "@esbuild/android-arm64": "npm:0.19.12" + "@esbuild/android-x64": "npm:0.19.12" + "@esbuild/darwin-arm64": "npm:0.19.12" + "@esbuild/darwin-x64": "npm:0.19.12" + "@esbuild/freebsd-arm64": "npm:0.19.12" + "@esbuild/freebsd-x64": "npm:0.19.12" + "@esbuild/linux-arm": "npm:0.19.12" + "@esbuild/linux-arm64": "npm:0.19.12" + "@esbuild/linux-ia32": "npm:0.19.12" + "@esbuild/linux-loong64": "npm:0.19.12" + "@esbuild/linux-mips64el": "npm:0.19.12" + "@esbuild/linux-ppc64": "npm:0.19.12" + "@esbuild/linux-riscv64": "npm:0.19.12" + "@esbuild/linux-s390x": "npm:0.19.12" + "@esbuild/linux-x64": "npm:0.19.12" + "@esbuild/netbsd-x64": "npm:0.19.12" + "@esbuild/openbsd-x64": "npm:0.19.12" + "@esbuild/sunos-x64": "npm:0.19.12" + "@esbuild/win32-arm64": "npm:0.19.12" + "@esbuild/win32-ia32": "npm:0.19.12" + "@esbuild/win32-x64": "npm:0.19.12" dependenciesMeta: "@esbuild/aix-ppc64": optional: true @@ -8145,14 +8097,14 @@ __metadata: optional: true bin: esbuild: bin/esbuild - checksum: a40b3858c29618c8c893389372f469245a6b2d1319782af75d33d8ba5dcadfe181fcc935f8e1a907be667946384950a4cf482ebe1e79c99c932d2b8eb35a09d0 + checksum: 861fa8eb2428e8d6521a4b7c7930139e3f45e8d51a86985cc29408172a41f6b18df7b3401e7e5e2d528cdf83742da601ddfdc77043ddc4f1c715a8ddb2d8a255 languageName: node linkType: hard "escalade@npm:^3.1.1": - version: 3.1.1 - resolution: "escalade@npm:3.1.1" - checksum: afa618e73362576b63f6ca83c975456621095a1ed42ff068174e3f5cea48afc422814dda548c96e6ebb5333e7265140c7292abcc81bbd6ccb1757d50d3a4e182 + version: 3.1.2 + resolution: "escalade@npm:3.1.2" + checksum: a1e07fea2f15663c30e40b9193d658397846ffe28ce0a3e4da0d8e485fedfeca228ab846aee101a05015829adf39f9934ff45b2a3fca47bed37a29646bd05cd3 languageName: node linkType: hard @@ -8556,17 +8508,6 @@ __metadata: languageName: node linkType: hard -"external-editor@npm:^3.0.3": - version: 3.1.0 - resolution: "external-editor@npm:3.1.0" - dependencies: - chardet: "npm:^0.7.0" - iconv-lite: "npm:^0.4.24" - tmp: "npm:^0.0.33" - checksum: 776dff1d64a1d28f77ff93e9e75421a81c062983fd1544279d0a32f563c0b18c52abbb211f31262e2827e48edef5c9dc8f960d06dd2d42d1654443b88568056b - languageName: node - linkType: hard - "fast-deep-equal@npm:^3.1.1, fast-deep-equal@npm:^3.1.3": version: 3.1.3 resolution: "fast-deep-equal@npm:3.1.3" @@ -8623,15 +8564,15 @@ __metadata: linkType: hard "fastq@npm:^1.6.0": - version: 1.16.0 - resolution: "fastq@npm:1.16.0" + version: 1.17.1 + resolution: "fastq@npm:1.17.1" dependencies: reusify: "npm:^1.0.4" - checksum: de151543aab9d91900ed5da88860c46987ece925c628df586fac664235f25e020ec20729e1c032edb5fd2520fd4aa5b537d69e39b689e65e82112cfbecb4479e + checksum: a443180068b527dd7b3a63dc7f2a47ceca2f3e97b9c00a1efe5538757e6cc4056a3526df94308075d7727561baf09ebaa5b67da8dcbddb913a021c5ae69d1f69 languageName: node linkType: hard -"figures@npm:^3.0.0": +"figures@npm:^3.2.0": version: 3.2.0 resolution: "figures@npm:3.2.0" dependencies: @@ -8803,7 +8744,7 @@ __metadata: languageName: node linkType: hard -"fraction.js@npm:^4.3.6": +"fraction.js@npm:^4.3.7": version: 4.3.7 resolution: "fraction.js@npm:4.3.7" checksum: bb5ebcdeeffcdc37b68ead3bdfc244e68de188e0c64e9702197333c72963b95cc798883ad16adc21588088b942bca5b6a6ff4aeb1362d19f6f3b629035dc15f5 @@ -8865,7 +8806,7 @@ __metadata: languageName: node linkType: hard -"function-bind@npm:^1.1.1, function-bind@npm:^1.1.2": +"function-bind@npm:^1.1.2": version: 1.1.2 resolution: "function-bind@npm:1.1.2" checksum: 185e20d20f10c8d661d59aac0f3b63b31132d492e1b11fcc2a93cb2c47257ebaee7407c38513efd2b35cafdf972d9beb2ea4593c1e0f3bf8f2744836928d7454 @@ -8937,15 +8878,16 @@ __metadata: languageName: node linkType: hard -"get-intrinsic@npm:^1.0.2, get-intrinsic@npm:^1.1.1, get-intrinsic@npm:^1.1.3, get-intrinsic@npm:^1.2.0, get-intrinsic@npm:^1.2.1, get-intrinsic@npm:^1.2.2": - version: 1.2.2 - resolution: "get-intrinsic@npm:1.2.2" +"get-intrinsic@npm:^1.1.1, get-intrinsic@npm:^1.1.3, get-intrinsic@npm:^1.2.1, get-intrinsic@npm:^1.2.2, get-intrinsic@npm:^1.2.3, get-intrinsic@npm:^1.2.4": + version: 1.2.4 + resolution: "get-intrinsic@npm:1.2.4" dependencies: + es-errors: "npm:^1.3.0" function-bind: "npm:^1.1.2" has-proto: "npm:^1.0.1" has-symbols: "npm:^1.0.3" hasown: "npm:^2.0.0" - checksum: aa96db4f809734d26d49b59bc8669d73a0ae792da561514e987735573a1dfaede516cd102f217a078ea2b42d4c4fb1f83d487932cb15d49826b726cc9cd4470b + checksum: 85bbf4b234c3940edf8a41f4ecbd4e25ce78e5e6ad4e24ca2f77037d983b9ef943fd72f00f3ee97a49ec622a506b67db49c36246150377efcda1c9eb03e5f06d languageName: node linkType: hard @@ -8971,12 +8913,13 @@ __metadata: linkType: hard "get-symbol-description@npm:^1.0.0": - version: 1.0.0 - resolution: "get-symbol-description@npm:1.0.0" + version: 1.0.2 + resolution: "get-symbol-description@npm:1.0.2" dependencies: - call-bind: "npm:^1.0.2" - get-intrinsic: "npm:^1.1.1" - checksum: 7e5f298afe0f0872747dce4a949ce490ebc5d6dd6aefbbe5044543711c9b19a4dfaebdbc627aee99e1299d58a435b2fbfa083458c1d58be6dc03a3bada24d359 + call-bind: "npm:^1.0.5" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.4" + checksum: e1cb53bc211f9dbe9691a4f97a46837a553c4e7caadd0488dc24ac694db8a390b93edd412b48dcdd0b4bbb4c595de1709effc75fc87c0839deedc6968f5bd973 languageName: node linkType: hard @@ -9170,11 +9113,11 @@ __metadata: linkType: hard "has-property-descriptors@npm:^1.0.0, has-property-descriptors@npm:^1.0.1": - version: 1.0.1 - resolution: "has-property-descriptors@npm:1.0.1" + version: 1.0.2 + resolution: "has-property-descriptors@npm:1.0.2" dependencies: - get-intrinsic: "npm:^1.2.2" - checksum: 21a47bb080a24e79594aef1ce71e1a18a1c5ab4120308e218088f67ebb7f6f408847541e2d96e5bd00e90eef5c5a49e4ebbdc8fc2d5b365a2c379aef071642f0 + es-define-property: "npm:^1.0.0" + checksum: 2d8c9ab8cebb572e3362f7d06139a4592105983d4317e68f7adba320fe6ddfc8874581e0971e899e633fd5f72e262830edce36d5a0bc863dad17ad20572484b2 languageName: node linkType: hard @@ -9192,12 +9135,12 @@ __metadata: languageName: node linkType: hard -"has-tostringtag@npm:^1.0.0": - version: 1.0.0 - resolution: "has-tostringtag@npm:1.0.0" +"has-tostringtag@npm:^1.0.0, has-tostringtag@npm:^1.0.1": + version: 1.0.2 + resolution: "has-tostringtag@npm:1.0.2" dependencies: - has-symbols: "npm:^1.0.2" - checksum: 95546e7132efc895a9ae64a8a7cf52588601fc3d52e0304ed228f336992cdf0baaba6f3519d2655e560467db35a1ed79f6420c286cc91a13aa0647a31ed92570 + has-symbols: "npm:^1.0.3" + checksum: c74c5f5ceee3c8a5b8bc37719840dc3749f5b0306d818974141dda2471a1a2ca6c8e46b9d6ac222c5345df7a901c9b6f350b1e6d62763fec877e26609a401bfe languageName: node linkType: hard @@ -9209,11 +9152,11 @@ __metadata: linkType: hard "hasown@npm:^2.0.0": - version: 2.0.0 - resolution: "hasown@npm:2.0.0" + version: 2.0.1 + resolution: "hasown@npm:2.0.1" dependencies: function-bind: "npm:^1.1.2" - checksum: c330f8d93f9d23fe632c719d4db3d698ef7d7c367d51548b836069e06a90fa9151e868c8e67353cfe98d67865bf7354855db28fa36eb1b18fa5d4a3f4e7f1c90 + checksum: b7f9107387ee68abed88e965c2b99e868b5e0e9d289db1ddd080706ffafb69533b4f538b0e6362585bae8d6cbd080249f65e79702f74c225990f66d6106be3f6 languageName: node linkType: hard @@ -9295,12 +9238,12 @@ __metadata: linkType: hard "http-proxy-agent@npm:^7.0.0": - version: 7.0.0 - resolution: "http-proxy-agent@npm:7.0.0" + version: 7.0.1 + resolution: "http-proxy-agent@npm:7.0.1" dependencies: agent-base: "npm:^7.1.0" debug: "npm:^4.3.4" - checksum: dbaaf3d9f3fc4df4a5d7ec45d456ec50f575240b557160fa63427b447d1f812dd7fe4a4f17d2e1ba003d231f07edf5a856ea6d91cb32d533062ff20a7803ccac + checksum: d82c1cde756b8e1a0464f1e3761fe98a4b62ccde09a84f225ae61e1ec6c6321aad714ce7f8a05e4bee38cab7c4bc688e1bd1b8463ff879b433a097f485675ba2 languageName: node linkType: hard @@ -9322,12 +9265,12 @@ __metadata: linkType: hard "https-proxy-agent@npm:^7.0.1": - version: 7.0.2 - resolution: "https-proxy-agent@npm:7.0.2" + version: 7.0.3 + resolution: "https-proxy-agent@npm:7.0.3" dependencies: agent-base: "npm:^7.0.2" debug: "npm:4" - checksum: 9ec844f78fd643608239c9c3f6819918631df5cd3e17d104cc507226a39b5d4adda9d790fc9fd63ac0d2bb8a761b2f9f60faa80584a9bf9d7f2e8c5ed0acd330 + checksum: 32eb80fe7a414c13246440972059ce2d590d2ff52707f5b0ad927a5fe336714f39d0baa46d25baff87554cb10a463ca218ea4713651302591e2b3beb964c495e languageName: node linkType: hard @@ -9363,26 +9306,10 @@ __metadata: languageName: node linkType: hard -"iconv-lite@npm:^0.4.24": - version: 0.4.24 - resolution: "iconv-lite@npm:0.4.24" - dependencies: - safer-buffer: "npm:>= 2.1.2 < 3" - checksum: 6d3a2dac6e5d1fb126d25645c25c3a1209f70cceecc68b8ef51ae0da3cdc078c151fade7524a30b12a3094926336831fca09c666ef55b37e2c69638b5d6bd2e3 - languageName: node - linkType: hard - -"ieee754@npm:^1.1.13": - version: 1.2.1 - resolution: "ieee754@npm:1.2.1" - checksum: d9f2557a59036f16c282aaeb107832dc957a93d73397d89bbad4eb1130560560eb695060145e8e6b3b498b15ab95510226649a0b8f52ae06583575419fe10fc4 - languageName: node - linkType: hard - "ignore@npm:^5.2.0": - version: 5.3.0 - resolution: "ignore@npm:5.3.0" - checksum: 51594355cea4c6ad6b28b3b85eb81afa7b988a1871feefd7062baf136c95aa06760ee934fa9590e43d967bd377ce84a4cf6135fbeb6063e063f1182a0e9a3bcd + version: 5.3.1 + resolution: "ignore@npm:5.3.1" + checksum: 0a884c2fbc8c316f0b9f92beaf84464253b73230a4d4d286697be45fca081199191ca33e1c2e82d9e5f851f5e9a48a78e25a35c951e7eb41e59f150db3530065 languageName: node linkType: hard @@ -9394,9 +9321,9 @@ __metadata: linkType: hard "immutable@npm:^4.0.0": - version: 4.3.4 - resolution: "immutable@npm:4.3.4" - checksum: ea187acc1eec9dcfaa0823bae59e1ae0ea82e7a40d2ace9fb84d467875d5506ced684a79b68e70451f1e1761a387a958ba724171f93aa10330998b026fcb5d29 + version: 4.3.5 + resolution: "immutable@npm:4.3.5" + checksum: dbc1b8c808b9aa18bfce2e0c7bc23714a47267bc311f082145cc9220b2005e9b9cd2ae78330f164a19266a2b0f78846c60f4f74893853ac16fd68b5ae57092d2 languageName: node linkType: hard @@ -9441,44 +9368,21 @@ __metadata: languageName: node linkType: hard -"inherits@npm:2, inherits@npm:^2.0.3, inherits@npm:^2.0.4, inherits@npm:~2.0.3": +"inherits@npm:2, inherits@npm:^2.0.3, inherits@npm:~2.0.3": version: 2.0.4 resolution: "inherits@npm:2.0.4" checksum: cd45e923bee15186c07fa4c89db0aace24824c482fb887b528304694b2aa6ff8a898da8657046a5dcf3e46cd6db6c61629551f9215f208d7c3f157cf9b290521 languageName: node linkType: hard -"inquirer@npm:^8.2.0": - version: 8.2.6 - resolution: "inquirer@npm:8.2.6" - dependencies: - ansi-escapes: "npm:^4.2.1" - chalk: "npm:^4.1.1" - cli-cursor: "npm:^3.1.0" - cli-width: "npm:^3.0.0" - external-editor: "npm:^3.0.3" - figures: "npm:^3.0.0" - lodash: "npm:^4.17.21" - mute-stream: "npm:0.0.8" - ora: "npm:^5.4.1" - run-async: "npm:^2.4.0" - rxjs: "npm:^7.5.5" - string-width: "npm:^4.1.0" - strip-ansi: "npm:^6.0.0" - through: "npm:^2.3.6" - wrap-ansi: "npm:^6.0.1" - checksum: f642b9e5a94faaba54f277bdda2af0e0a6b592bd7f88c60e1614b5795b19336c7025e0c2923915d5f494f600a02fe8517413779a794415bb79a9563b061d68ab - languageName: node - linkType: hard - -"internal-slot@npm:^1.0.4, internal-slot@npm:^1.0.5": - version: 1.0.6 - resolution: "internal-slot@npm:1.0.6" +"internal-slot@npm:^1.0.4, internal-slot@npm:^1.0.5, internal-slot@npm:^1.0.7": + version: 1.0.7 + resolution: "internal-slot@npm:1.0.7" dependencies: - get-intrinsic: "npm:^1.2.2" + es-errors: "npm:^1.3.0" hasown: "npm:^2.0.0" side-channel: "npm:^1.0.4" - checksum: bc2022eb1f277f2fcb2a60e7ced451c7ffc7a769b12e63c7a3fb247af8b5a1bed06428ce724046a8bca39ed6eb5b6832501a42f2e9a5ec4a9a7dc4e634431616 + checksum: 3e66720508831153ecf37d13def9f6856f9f2960989ec8a0a0476c98f887fca9eff0163127466485cb825c900c2d6fc601aa9117b7783b90ffce23a71ea5d053 languageName: node linkType: hard @@ -9490,14 +9394,14 @@ __metadata: linkType: hard "intl-messageformat@npm:^10.1.0": - version: 10.5.10 - resolution: "intl-messageformat@npm:10.5.10" + version: 10.5.11 + resolution: "intl-messageformat@npm:10.5.11" dependencies: "@formatjs/ecma402-abstract": "npm:1.18.2" "@formatjs/fast-memoize": "npm:2.2.0" - "@formatjs/icu-messageformat-parser": "npm:2.7.5" + "@formatjs/icu-messageformat-parser": "npm:2.7.6" tslib: "npm:^2.4.0" - checksum: 6c413b28d1249282179dc7954ef034738cfb806f4991fad165219e0ef127f570b19f43fdcc91885b92d48778555b2545b27898f088ce95a8dda40f56005c310b + checksum: 2146f4d3e2c4bcf2c4fa343e4ee070fe1124d3821caa2fa0e7112a68fdefbedbbda6a3778f3ba04e38bbce3db33511ca9eecbb0a7e06013e6699255c153813ce languageName: node linkType: hard @@ -9510,10 +9414,13 @@ __metadata: languageName: node linkType: hard -"ip@npm:^2.0.0": - version: 2.0.0 - resolution: "ip@npm:2.0.0" - checksum: 1270b11e534a466fb4cf4426cbcc3a907c429389f7f4e4e3b288b42823562e88d6a509ceda8141a507de147ca506141f745005c0aa144569d94cf24a54eb52bc +"ip-address@npm:^9.0.5": + version: 9.0.5 + resolution: "ip-address@npm:9.0.5" + dependencies: + jsbn: "npm:1.1.0" + sprintf-js: "npm:^1.1.3" + checksum: 1ed81e06721af012306329b31f532b5e24e00cb537be18ddc905a84f19fe8f83a09a1699862bf3a1ec4b9dea93c55a3fa5faf8b5ea380431469df540f38b092c languageName: node linkType: hard @@ -9527,14 +9434,13 @@ __metadata: languageName: node linkType: hard -"is-array-buffer@npm:^3.0.1, is-array-buffer@npm:^3.0.2": - version: 3.0.2 - resolution: "is-array-buffer@npm:3.0.2" +"is-array-buffer@npm:^3.0.2, is-array-buffer@npm:^3.0.4": + version: 3.0.4 + resolution: "is-array-buffer@npm:3.0.4" dependencies: call-bind: "npm:^1.0.2" - get-intrinsic: "npm:^1.2.0" - is-typed-array: "npm:^1.1.10" - checksum: dcac9dda66ff17df9cabdc58214172bf41082f956eab30bb0d86bc0fab1e44b690fc8e1f855cf2481245caf4e8a5a006a982a71ddccec84032ed41f9d8da8c14 + get-intrinsic: "npm:^1.2.1" + checksum: 34a26213d981d58b30724ef37a1e0682f4040d580fa9ff58fdfdd3cefcb2287921718c63971c1c404951e7b747c50fdc7caf6e867e951353fa71b369c04c969b languageName: node linkType: hard @@ -9666,13 +9572,6 @@ __metadata: languageName: node linkType: hard -"is-interactive@npm:^1.0.0": - version: 1.0.0 - resolution: "is-interactive@npm:1.0.0" - checksum: 824808776e2d468b2916cdd6c16acacebce060d844c35ca6d82267da692e92c3a16fdba624c50b54a63f38bdc4016055b6f443ce57d7147240de4f8cdabaf6f9 - languageName: node - linkType: hard - "is-lambda@npm:^1.0.1": version: 1.0.1 resolution: "is-lambda@npm:1.0.1" @@ -9805,19 +9704,12 @@ __metadata: languageName: node linkType: hard -"is-typed-array@npm:^1.1.10, is-typed-array@npm:^1.1.12, is-typed-array@npm:^1.1.9": - version: 1.1.12 - resolution: "is-typed-array@npm:1.1.12" +"is-typed-array@npm:^1.1.10, is-typed-array@npm:^1.1.12, is-typed-array@npm:^1.1.13, is-typed-array@npm:^1.1.9": + version: 1.1.13 + resolution: "is-typed-array@npm:1.1.13" dependencies: - which-typed-array: "npm:^1.1.11" - checksum: d953adfd3c41618d5e01b2a10f21817e4cdc9572772fa17211100aebb3811b6e3c2e308a0558cc87d218a30504cb90154b833013437776551bfb70606fb088ca - languageName: node - linkType: hard - -"is-unicode-supported@npm:^0.1.0": - version: 0.1.0 - resolution: "is-unicode-supported@npm:0.1.0" - checksum: a2aab86ee7712f5c2f999180daaba5f361bdad1efadc9610ff5b8ab5495b86e4f627839d085c6530363c6d6d4ecbde340fb8e54bdb83da4ba8e0865ed5513c52 + which-typed-array: "npm:^1.1.14" + checksum: f850ba08286358b9a11aee6d93d371a45e3c59b5953549ee1c1a9a55ba5c1dd1bd9952488ae194ad8f32a9cf5e79c8fa5f0cc4d78c00720aa0bbcf238b38062d languageName: node linkType: hard @@ -9972,13 +9864,6 @@ __metadata: languageName: node linkType: hard -"js-levenshtein@npm:^1.1.6": - version: 1.1.6 - resolution: "js-levenshtein@npm:1.1.6" - checksum: bb034043fdebab606122fe5b5c0316036f1bb0ea352038af8b0ba4cda4b016303b24f64efb59d9918f66e3680eea97ff421396ff3c153cb00a6f982908f61f8a - languageName: node - linkType: hard - "js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -10009,6 +9894,13 @@ __metadata: languageName: node linkType: hard +"jsbn@npm:1.1.0": + version: 1.1.0 + resolution: "jsbn@npm:1.1.0" + checksum: bebe7ae829bbd586ce8cbe83501dd8cb8c282c8902a8aeeed0a073a89dc37e8103b1244f3c6acd60278bcbfe12d93a3f83c9ac396868a3b3bbc3c5e5e3b648ef + languageName: node + linkType: hard + "jsdom@npm:^22.1.0": version: 22.1.0 resolution: "jsdom@npm:22.1.0" @@ -10126,9 +10018,9 @@ __metadata: linkType: hard "jsonc-parser@npm:^3.2.0": - version: 3.2.0 - resolution: "jsonc-parser@npm:3.2.0" - checksum: bd68b902e5f9394f01da97921f49c5084b2dc03a0c5b4fdb2a429f8d6f292686c1bf87badaeb0a8148d024192a88f5ad2e57b2918ba43fe25cf15f3371db64d4 + version: 3.2.1 + resolution: "jsonc-parser@npm:3.2.1" + checksum: fe2df6f39e21653781d52cae20c5b9e0ab62461918d97f9430b216cea9b6500efc1d8b42c6584cc0a7548b4c996055e9cdc39f09b9782fa6957af2f45306c530 languageName: node linkType: hard @@ -10301,13 +10193,6 @@ __metadata: languageName: node linkType: hard -"local-pkg@npm:^0.4.3": - version: 0.4.3 - resolution: "local-pkg@npm:0.4.3" - checksum: 48f38c12721881370bca50ed3b5e3cc6fef741cfb4de7e48666f6ded07c1aaea53cf770cfef84a89bed286c17631111bf99a86241ddf6f679408c79c56f29560 - languageName: node - linkType: hard - "local-pkg@npm:^0.5.0": version: 0.5.0 resolution: "local-pkg@npm:0.5.0" @@ -10448,16 +10333,6 @@ __metadata: languageName: node linkType: hard -"log-symbols@npm:^4.1.0": - version: 4.1.0 - resolution: "log-symbols@npm:4.1.0" - dependencies: - chalk: "npm:^4.1.0" - is-unicode-supported: "npm:^0.1.0" - checksum: fce1497b3135a0198803f9f07464165e9eb83ed02ceb2273930a6f8a508951178d8cf4f0378e9d28300a2ed2bc49050995d2bd5f53ab716bb15ac84d58c6ef74 - languageName: node - linkType: hard - "loglevel-plugin-prefix@npm:0.8.4": version: 0.8.4 resolution: "loglevel-plugin-prefix@npm:0.8.4" @@ -10466,9 +10341,9 @@ __metadata: linkType: hard "loglevel@npm:^1.8.1": - version: 1.8.1 - resolution: "loglevel@npm:1.8.1" - checksum: 36a786082a7e4f1d962de330122291da3a102b88dbde81a45eb92a045c38b0903783958ba39dce641440c0413da303410e7f2565f897bccad828853bd5974c86 + version: 1.9.1 + resolution: "loglevel@npm:1.9.1" + checksum: 863cbbcddf850a937482c604e2d11586574a5110b746bb49c7cc04739e01f6035f6db841d25377106dd330bca7142d74995f15a97c5f3ea0af86d9472d4a99f4 languageName: node linkType: hard @@ -10502,9 +10377,9 @@ __metadata: linkType: hard "lru-cache@npm:^10.0.1, lru-cache@npm:^9.1.1 || ^10.0.0": - version: 10.1.0 - resolution: "lru-cache@npm:10.1.0" - checksum: 207278d6fa711fb1f94a0835d4d4737441d2475302482a14785b10515e4c906a57ebf9f35bf060740c9560e91c7c1ad5a04fd7ed030972a9ba18bce2a228e95b + version: 10.2.0 + resolution: "lru-cache@npm:10.2.0" + checksum: 502ec42c3309c0eae1ce41afca471f831c278566d45a5273a0c51102dee31e0e250a62fa9029c3370988df33a14188a38e682c16143b794de78668de3643e302 languageName: node linkType: hard @@ -10542,16 +10417,16 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.30.1, magic-string@npm:^0.30.5": - version: 0.30.5 - resolution: "magic-string@npm:0.30.5" +"magic-string@npm:^0.30.5": + version: 0.30.7 + resolution: "magic-string@npm:0.30.7" dependencies: "@jridgewell/sourcemap-codec": "npm:^1.4.15" - checksum: c8a6b25f813215ca9db526f3a407d6dc0bf35429c2b8111d6f1c2cf6cf6afd5e2d9f9cd189416a0e3959e20ecd635f73639f9825c73de1074b29331fe36ace59 + checksum: 883eaaf6792a3263e44f4bcdcd35ace272268e4b98ed5a770ad711947958d2f9fc683e474945e306e2bdc152b7e44d369ee312690d87025b9879fc63fbe1409c languageName: node linkType: hard -"magicast@npm:^0.3.2": +"magicast@npm:^0.3.3": version: 0.3.3 resolution: "magicast@npm:0.3.3" dependencies: @@ -10981,7 +10856,7 @@ __metadata: languageName: node linkType: hard -"mlly@npm:^1.2.0, mlly@npm:^1.4.0, mlly@npm:^1.4.2": +"mlly@npm:^1.2.0, mlly@npm:^1.4.2": version: 1.5.0 resolution: "mlly@npm:1.5.0" dependencies: @@ -11008,25 +10883,21 @@ __metadata: linkType: hard "msw@npm:^2.0.6": - version: 2.1.1 - resolution: "msw@npm:2.1.1" + version: 2.2.0 + resolution: "msw@npm:2.2.0" dependencies: "@bundled-es-modules/cookie": "npm:^2.0.0" - "@bundled-es-modules/js-levenshtein": "npm:^2.0.1" "@bundled-es-modules/statuses": "npm:^1.0.1" + "@inquirer/confirm": "npm:^3.0.0" "@mswjs/cookies": "npm:^1.1.0" - "@mswjs/interceptors": "npm:^0.25.14" + "@mswjs/interceptors": "npm:^0.25.16" "@open-draft/until": "npm:^2.1.0" "@types/cookie": "npm:^0.6.0" - "@types/js-levenshtein": "npm:^1.1.3" "@types/statuses": "npm:^2.0.4" chalk: "npm:^4.1.2" - chokidar: "npm:^3.4.2" graphql: "npm:^16.8.1" headers-polyfill: "npm:^4.0.2" - inquirer: "npm:^8.2.0" is-node-process: "npm:^1.2.0" - js-levenshtein: "npm:^1.1.6" outvariant: "npm:^1.4.2" path-to-regexp: "npm:^6.2.0" strict-event-emitter: "npm:^0.5.1" @@ -11039,14 +10910,14 @@ __metadata: optional: true bin: msw: cli/index.js - checksum: 854434e3bfc3d7594e5d8ace221ac0d03c87a1daca32d340c968a43476713af86063119bd3eaceb391fc050eecf01910eb7e9fe7fb1d9206dc9077d6b7356b22 + checksum: 36e6a1f0bc89d1c84bf24c1cf7ca7c3fe5d5b032c825d52a832e9b815830976a86c17a8c3f1f506db720f44e99d04c9302e014cf569b51b2d2af62562a9fe62a languageName: node linkType: hard -"mute-stream@npm:0.0.8": - version: 0.0.8 - resolution: "mute-stream@npm:0.0.8" - checksum: a2d2e79dde87e3424ffc8c334472c7f3d17b072137734ca46e6f221131f1b014201cc593b69a38062e974fb2394d3d1cb4349f80f012bbf8b8ac1b28033e515f +"mute-stream@npm:^1.0.0": + version: 1.0.0 + resolution: "mute-stream@npm:1.0.0" + checksum: 36fc968b0e9c9c63029d4f9dc63911950a3bdf55c9a87f58d3a266289b67180201cade911e7699f8b2fa596b34c9db43dad37649e3f7fdd13c3bb9edb0017ee7 languageName: node linkType: hard @@ -11410,7 +11281,7 @@ __metadata: languageName: node linkType: hard -"object-inspect@npm:^1.13.1, object-inspect@npm:^1.9.0": +"object-inspect@npm:^1.13.1": version: 1.13.1 resolution: "object-inspect@npm:1.13.1" checksum: 92f4989ed83422d56431bc39656d4c780348eb15d397ce352ade6b7fec08f973b53744bd41b94af021901e61acaf78fcc19e65bf464ecc0df958586a672700f0 @@ -11469,14 +11340,15 @@ __metadata: linkType: hard "object.groupby@npm:^1.0.1": - version: 1.0.1 - resolution: "object.groupby@npm:1.0.1" + version: 1.0.2 + resolution: "object.groupby@npm:1.0.2" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - get-intrinsic: "npm:^1.2.1" - checksum: b7123d91403f95d63978513b23a6079c30f503311f64035fafc863c291c787f287b58df3b21ef002ce1d0b820958c9009dd5a8ab696e0eca325639d345e41524 + array.prototype.filter: "npm:^1.0.3" + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.0.0" + checksum: 07c1bea1772c45f7967a63358a683ef7b0bd99cabe0563e6fee3e8acc061cc5984d2f01a46472ebf10b2cb439298c46776b2134550dce457fd7240baaaa4f592 languageName: node linkType: hard @@ -11528,7 +11400,7 @@ __metadata: languageName: node linkType: hard -"onetime@npm:^5.1.0, onetime@npm:^5.1.2": +"onetime@npm:^5.1.2": version: 5.1.2 resolution: "onetime@npm:5.1.2" dependencies: @@ -11557,19 +11429,12 @@ __metadata: languageName: node linkType: hard -"openapi-types@npm:^12.1.3": - version: 12.1.3 - resolution: "openapi-types@npm:12.1.3" - checksum: 9d1d7ed848622b63d0a4c3f881689161b99427133054e46b8e3241e137f1c78bb0031c5d80b420ee79ac2e91d2e727ffd6fc13c553d1b0488ddc8ad389dcbef8 - languageName: node - linkType: hard - -"openapi3-ts@npm:^3.0.0, openapi3-ts@npm:^3.2.0": - version: 3.2.0 - resolution: "openapi3-ts@npm:3.2.0" +"openapi3-ts@npm:4.2.1, openapi3-ts@npm:^4.2.1": + version: 4.2.1 + resolution: "openapi3-ts@npm:4.2.1" dependencies: - yaml: "npm:^2.2.1" - checksum: f3aee3ee2ce600bd945561cd8b69c5447f8c4b8f3e9c09bd1751ad8f20bbf601d5ccfca4cc0402693b74c5bd7b71a8e3890b32c37ab8cbafc98214265fcb362b + yaml: "npm:^2.3.4" + checksum: aac091f1e37b53af8f6de1cf77b247c4eebdbca7c769a46c8c89b772f014f1fcf68030b7ec0ea77c59b0408aa6b2e2a5e6a5b21cd04c7dc10937614b8ed75f0c languageName: node linkType: hard @@ -11587,23 +11452,6 @@ __metadata: languageName: node linkType: hard -"ora@npm:^5.4.1": - version: 5.4.1 - resolution: "ora@npm:5.4.1" - dependencies: - bl: "npm:^4.1.0" - chalk: "npm:^4.1.0" - cli-cursor: "npm:^3.1.0" - cli-spinners: "npm:^2.5.0" - is-interactive: "npm:^1.0.0" - is-unicode-supported: "npm:^0.1.0" - log-symbols: "npm:^4.1.0" - strip-ansi: "npm:^6.0.0" - wcwidth: "npm:^1.0.1" - checksum: 8d071828f40090a8e1c6e8f350c6eb065808e9ab2b3e57fa37e0d5ae78cb46dac00117c8f12c3c8b8da2923454afbd8265e08c10b69881170c5b269f451e7fef - languageName: node - linkType: hard - "orderedmap@npm:^2.0.0": version: 2.1.1 resolution: "orderedmap@npm:2.1.1" @@ -11612,17 +11460,17 @@ __metadata: linkType: hard "orval@npm:^6.22.1": - version: 6.23.0 - resolution: "orval@npm:6.23.0" + version: 6.24.0 + resolution: "orval@npm:6.24.0" dependencies: "@apidevtools/swagger-parser": "npm:^10.1.0" - "@orval/angular": "npm:6.23.0" - "@orval/axios": "npm:6.23.0" - "@orval/core": "npm:6.23.0" - "@orval/mock": "npm:6.23.0" - "@orval/query": "npm:6.23.0" - "@orval/swr": "npm:6.23.0" - "@orval/zod": "npm:6.23.0" + "@orval/angular": "npm:6.24.0" + "@orval/axios": "npm:6.24.0" + "@orval/core": "npm:6.24.0" + "@orval/mock": "npm:6.24.0" + "@orval/query": "npm:6.24.0" + "@orval/swr": "npm:6.24.0" + "@orval/zod": "npm:6.24.0" ajv: "npm:^8.12.0" cac: "npm:^6.7.14" chalk: "npm:^4.1.2" @@ -11632,20 +11480,12 @@ __metadata: find-up: "npm:5.0.0" fs-extra: "npm:^11.2.0" lodash.uniq: "npm:^4.5.0" - openapi-types: "npm:^12.1.3" - openapi3-ts: "npm:^3.2.0" + openapi3-ts: "npm:4.2.1" string-argv: "npm:^0.3.2" tsconfck: "npm:^2.0.1" bin: orval: dist/bin/orval.js - checksum: c1749f0bfef81454424f77c9b251b90847a5dbc97094f84872d84593e5bab0432abfbdf14ce8c4de7e073c9905661e9a0515b5ace5d50eee3b6870642c80009d - languageName: node - linkType: hard - -"os-tmpdir@npm:~1.0.2": - version: 1.0.2 - resolution: "os-tmpdir@npm:1.0.2" - checksum: 5666560f7b9f10182548bf7013883265be33620b1c1b4a4d405c25be2636f970c5488ff3e6c48de75b55d02bde037249fe5dbfbb4c0fb7714953d56aed062e6d + checksum: 1c46f348dc53904a20b7f3f72b7f76d148767066489206d645439801321964ce188be08d7313690c5539fa5e070f485fd49012ee72ff6713f60a36ea3af2b11c languageName: node linkType: hard @@ -11674,15 +11514,6 @@ __metadata: languageName: node linkType: hard -"p-limit@npm:^4.0.0": - version: 4.0.0 - resolution: "p-limit@npm:4.0.0" - dependencies: - yocto-queue: "npm:^1.0.0" - checksum: 01d9d70695187788f984226e16c903475ec6a947ee7b21948d6f597bed788e3112cc7ec2e171c1d37125057a5f45f3da21d8653e04a3a793589e12e9e80e756b - languageName: node - linkType: hard - "p-limit@npm:^5.0.0": version: 5.0.0 resolution: "p-limit@npm:5.0.0" @@ -11955,14 +11786,14 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.4.23, postcss@npm:^8.4.32": - version: 8.4.33 - resolution: "postcss@npm:8.4.33" +"postcss@npm:^8.4.23, postcss@npm:^8.4.35": + version: 8.4.35 + resolution: "postcss@npm:8.4.35" dependencies: nanoid: "npm:^3.3.7" picocolors: "npm:^1.0.0" source-map-js: "npm:^1.0.2" - checksum: e22a4594c255f26117f38419fb494d7ecab0f596cd409f7aadc8a6173abf180ed7ea970cd13fd366ab12b5840be901d2a09b25197700c2ebcb5a8077326bf519 + checksum: 93a7ce50cd6188f5f486a9ca98950ad27c19dfed996c45c414fa242944497e4d084a8760d3537f078630226f2bd3c6ab84b813b488740f4432e7c7039cd73a20 languageName: node linkType: hard @@ -12074,7 +11905,7 @@ __metadata: languageName: node linkType: hard -"pretty-format@npm:^29.5.0, pretty-format@npm:^29.7.0": +"pretty-format@npm:^29.7.0": version: 29.7.0 resolution: "pretty-format@npm:29.7.0" dependencies: @@ -12146,7 +11977,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-changeset@npm:^2.2.0": +"prosemirror-changeset@npm:^2.2.1": version: 2.2.1 resolution: "prosemirror-changeset@npm:2.2.1" dependencies: @@ -12155,7 +11986,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-collab@npm:^1.3.0": +"prosemirror-collab@npm:^1.3.1": version: 1.3.1 resolution: "prosemirror-collab@npm:1.3.1" dependencies: @@ -12164,7 +11995,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-commands@npm:^1.0.0, prosemirror-commands@npm:^1.3.1": +"prosemirror-commands@npm:^1.0.0, prosemirror-commands@npm:^1.5.2": version: 1.5.2 resolution: "prosemirror-commands@npm:1.5.2" dependencies: @@ -12175,7 +12006,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-dropcursor@npm:^1.5.0": +"prosemirror-dropcursor@npm:^1.8.1": version: 1.8.1 resolution: "prosemirror-dropcursor@npm:1.8.1" dependencies: @@ -12186,7 +12017,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-gapcursor@npm:^1.3.1": +"prosemirror-gapcursor@npm:^1.3.2": version: 1.3.2 resolution: "prosemirror-gapcursor@npm:1.3.2" dependencies: @@ -12198,7 +12029,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-history@npm:^1.0.0, prosemirror-history@npm:^1.3.0": +"prosemirror-history@npm:^1.0.0, prosemirror-history@npm:^1.3.2": version: 1.3.2 resolution: "prosemirror-history@npm:1.3.2" dependencies: @@ -12210,17 +12041,17 @@ __metadata: languageName: node linkType: hard -"prosemirror-inputrules@npm:^1.2.0": - version: 1.3.0 - resolution: "prosemirror-inputrules@npm:1.3.0" +"prosemirror-inputrules@npm:^1.3.0": + version: 1.4.0 + resolution: "prosemirror-inputrules@npm:1.4.0" dependencies: prosemirror-state: "npm:^1.0.0" prosemirror-transform: "npm:^1.0.0" - checksum: dbdfe2620542fece02f9848edd6d58c14fc3f46c34f2945233d7438cc074401b47a28cb1e0accf00b0bc771a345bb717dc4f6c6d11787f184c9048f5487d5b44 + checksum: 04453d06a4bb3540e3df254e46bcafd4faaf73cd72f4486a804af598a084ee9cddb9fedd23a09c34c79ed98182b151461f447e4f5920bdd7465327975c773bca languageName: node linkType: hard -"prosemirror-keymap@npm:^1.0.0, prosemirror-keymap@npm:^1.1.2, prosemirror-keymap@npm:^1.2.0": +"prosemirror-keymap@npm:^1.0.0, prosemirror-keymap@npm:^1.1.2, prosemirror-keymap@npm:^1.2.2": version: 1.2.2 resolution: "prosemirror-keymap@npm:1.2.2" dependencies: @@ -12230,7 +12061,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-markdown@npm:^1.10.1": +"prosemirror-markdown@npm:^1.12.0": version: 1.12.0 resolution: "prosemirror-markdown@npm:1.12.0" dependencies: @@ -12240,7 +12071,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-menu@npm:^1.2.1": +"prosemirror-menu@npm:^1.2.4": version: 1.2.4 resolution: "prosemirror-menu@npm:1.2.4" dependencies: @@ -12252,7 +12083,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-model@npm:^1.0.0, prosemirror-model@npm:^1.16.0, prosemirror-model@npm:^1.18.1, prosemirror-model@npm:^1.19.0, prosemirror-model@npm:^1.8.1": +"prosemirror-model@npm:^1.0.0, prosemirror-model@npm:^1.16.0, prosemirror-model@npm:^1.19.0, prosemirror-model@npm:^1.19.4, prosemirror-model@npm:^1.8.1": version: 1.19.4 resolution: "prosemirror-model@npm:1.19.4" dependencies: @@ -12261,7 +12092,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-schema-basic@npm:^1.2.0": +"prosemirror-schema-basic@npm:^1.2.2": version: 1.2.2 resolution: "prosemirror-schema-basic@npm:1.2.2" dependencies: @@ -12270,7 +12101,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-schema-list@npm:^1.2.2": +"prosemirror-schema-list@npm:^1.3.0": version: 1.3.0 resolution: "prosemirror-schema-list@npm:1.3.0" dependencies: @@ -12281,7 +12112,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-state@npm:^1.0.0, prosemirror-state@npm:^1.2.2, prosemirror-state@npm:^1.3.1, prosemirror-state@npm:^1.4.1": +"prosemirror-state@npm:^1.0.0, prosemirror-state@npm:^1.2.2, prosemirror-state@npm:^1.3.1, prosemirror-state@npm:^1.4.3": version: 1.4.3 resolution: "prosemirror-state@npm:1.4.3" dependencies: @@ -12292,7 +12123,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-tables@npm:^1.3.0": +"prosemirror-tables@npm:^1.3.5": version: 1.3.5 resolution: "prosemirror-tables@npm:1.3.5" dependencies: @@ -12305,7 +12136,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-trailing-node@npm:^2.0.2": +"prosemirror-trailing-node@npm:^2.0.7": version: 2.0.7 resolution: "prosemirror-trailing-node@npm:2.0.7" dependencies: @@ -12320,7 +12151,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-transform@npm:^1.0.0, prosemirror-transform@npm:^1.1.0, prosemirror-transform@npm:^1.2.1, prosemirror-transform@npm:^1.7.0, prosemirror-transform@npm:^1.7.3": +"prosemirror-transform@npm:^1.0.0, prosemirror-transform@npm:^1.1.0, prosemirror-transform@npm:^1.2.1, prosemirror-transform@npm:^1.7.3, prosemirror-transform@npm:^1.8.0": version: 1.8.0 resolution: "prosemirror-transform@npm:1.8.0" dependencies: @@ -12329,7 +12160,7 @@ __metadata: languageName: node linkType: hard -"prosemirror-view@npm:^1.0.0, prosemirror-view@npm:^1.1.0, prosemirror-view@npm:^1.13.3, prosemirror-view@npm:^1.27.0, prosemirror-view@npm:^1.28.2, prosemirror-view@npm:^1.31.0": +"prosemirror-view@npm:^1.0.0, prosemirror-view@npm:^1.1.0, prosemirror-view@npm:^1.13.3, prosemirror-view@npm:^1.27.0, prosemirror-view@npm:^1.31.0, prosemirror-view@npm:^1.32.7": version: 1.32.7 resolution: "prosemirror-view@npm:1.32.7" dependencies: @@ -12379,8 +12210,8 @@ __metadata: "@pzh-ui/config": "npm:^0.0.56" "@pzh-ui/css": "npm:^0.0.80" "@pzh-ui/icons": "npm:^0.0.50" - "@react-hookz/web": "npm:^24.0.2" - "@tanstack/react-query": "npm:^5.14.2" + "@react-hookz/web": "npm:^24.0.4" + "@tanstack/react-query": "npm:^5.20.5" "@testing-library/dom": "npm:^9.3.3" "@testing-library/jest-dom": "npm:^6.1.5" "@testing-library/react": "npm:^14.1.2" @@ -12401,10 +12232,10 @@ __metadata: "@types/react-router-dom": "npm:^5.3.2" "@types/uuid": "npm:^9.0.3" "@vitejs/plugin-react": "npm:^4.2.1" - "@vitest/coverage-v8": "npm:^1.0.4" + "@vitest/coverage-v8": "npm:^1.2.2" add: "npm:^2.0.6" autoprefixer: "npm:^10.4.4" - axios: "npm:^1.6.2" + axios: "npm:^1.6.7" c8: "npm:^8.0.0" classnames: "npm:^2.3.2" concurrently: "npm:^8.2.2" @@ -12437,12 +12268,12 @@ __metadata: react-router-dom: "npm:^6.14.2" rollup-plugin-visualizer: "npm:^5.11.0" sass: "npm:^1.63.6" - tailwindcss: "npm:^3.3.6" + tailwindcss: "npm:^3.4.1" typescript: "npm:^5.3.3" uuid: "npm:^9.0.1" - vite: "npm:^5.0.7" + vite: "npm:^5.1.1" vite-plugin-svgr: "npm:^4.2.0" - vite-tsconfig-paths: "npm:^4.2.2" + vite-tsconfig-paths: "npm:^4.3.1" vitest: "npm:^1.0.4" zod: "npm:^3.22.4" zod-formik-adapter: "npm:^1.2.0" @@ -12686,26 +12517,26 @@ __metadata: linkType: hard "react-router-dom@npm:^6.14.2": - version: 6.21.2 - resolution: "react-router-dom@npm:6.21.2" + version: 6.22.0 + resolution: "react-router-dom@npm:6.22.0" dependencies: - "@remix-run/router": "npm:1.14.2" - react-router: "npm:6.21.2" + "@remix-run/router": "npm:1.15.0" + react-router: "npm:6.22.0" peerDependencies: react: ">=16.8" react-dom: ">=16.8" - checksum: 24d1470e68f11369776c623b8873c8cf0af476d102317cb3aa6b13b48c86908f10a6e51209ce24dccf40e429538d4e23fda796c190f2ff98f894cb476d51f44d + checksum: 32ba0386d400354094116fa7dd98f1d23bc7cf683b0f4509694be5f730d4957fcb8cc73e35946576fc3f48b4d36743422f1b9bcdc37ad77f04bde0bde5d9102e languageName: node linkType: hard -"react-router@npm:6.21.2": - version: 6.21.2 - resolution: "react-router@npm:6.21.2" +"react-router@npm:6.22.0": + version: 6.22.0 + resolution: "react-router@npm:6.22.0" dependencies: - "@remix-run/router": "npm:1.14.2" + "@remix-run/router": "npm:1.15.0" peerDependencies: react: ">=16.8" - checksum: 08701bfe9e7b860442dd0f3c6e36d3ea6106d86db5ec9da930fd56d5782a13b82612826de7dd31bb38832f3fa76437d7a0ca36e63a76256f62d5b738f529a48c + checksum: 627c25533667da0c8008587208e0d5633409173969fd579de706cde355465f6d1245e2b1a7ca2adeb96201f2858932b59ce3402482786cd20c4bf278562976dd languageName: node linkType: hard @@ -12854,7 +12685,7 @@ __metadata: languageName: node linkType: hard -"readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0": +"readable-stream@npm:^3.6.0": version: 3.6.2 resolution: "readable-stream@npm:3.6.2" dependencies: @@ -12885,16 +12716,17 @@ __metadata: linkType: hard "reflect.getprototypeof@npm:^1.0.4": - version: 1.0.4 - resolution: "reflect.getprototypeof@npm:1.0.4" + version: 1.0.5 + resolution: "reflect.getprototypeof@npm:1.0.5" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - get-intrinsic: "npm:^1.2.1" + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.0.0" + get-intrinsic: "npm:^1.2.3" globalthis: "npm:^1.0.3" which-builtin-type: "npm:^1.1.3" - checksum: 52ff881f62a9cb4acdd7f9a8f4ac88234056c4a6b1ed570c249cc085de5c313249b90251d16eb8e58302b82ae697eec19dde16ff62949f6b87f035a3a26dc5df + checksum: 14560efa54b4b8549f5e0961ee4dfa9f034bd4b85c7805d487da30eb520ea252b566bc4098a7cb1bc2219e4d9cb095db43c05b27205bd6299bb141294cea2d14 languageName: node linkType: hard @@ -12938,13 +12770,14 @@ __metadata: linkType: hard "regexp.prototype.flags@npm:^1.5.0, regexp.prototype.flags@npm:^1.5.1": - version: 1.5.1 - resolution: "regexp.prototype.flags@npm:1.5.1" + version: 1.5.2 + resolution: "regexp.prototype.flags@npm:1.5.2" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - set-function-name: "npm:^2.0.0" - checksum: 3fa5610b8e411bbc3a43ddfd13162f3a817beb43155fbd8caa24d4fd0ce2f431a8197541808772a5a06e5946cebfb68464c827827115bde0d11720a92fe2981a + call-bind: "npm:^1.0.6" + define-properties: "npm:^1.2.1" + es-errors: "npm:^1.3.0" + set-function-name: "npm:^2.0.1" + checksum: 9fffc01da9c4e12670ff95bc5204364615fcc12d86fc30642765af908675678ebb0780883c874b2dbd184505fb52fa603d80073ecf69f461ce7f56b15d10be9c languageName: node linkType: hard @@ -13060,16 +12893,6 @@ __metadata: languageName: node linkType: hard -"restore-cursor@npm:^3.1.0": - version: 3.1.0 - resolution: "restore-cursor@npm:3.1.0" - dependencies: - onetime: "npm:^5.1.0" - signal-exit: "npm:^3.0.2" - checksum: f877dd8741796b909f2a82454ec111afb84eb45890eb49ac947d87991379406b3b83ff9673a46012fca0d7844bb989f45cc5b788254cf1a39b6b5a9659de0630 - languageName: node - linkType: hard - "retry@npm:^0.12.0": version: 0.12.0 resolution: "retry@npm:0.12.0" @@ -13095,7 +12918,7 @@ __metadata: languageName: node linkType: hard -"robust-predicates@npm:^3.0.0": +"robust-predicates@npm:^3.0.2": version: 3.0.2 resolution: "robust-predicates@npm:3.0.2" checksum: 88bd7d45a6b89e88da2631d4c111aaaf0443de4d7078e9ab7f732245790a3645cf79bf91882a9740dbc959cf56ba75d5dced5bf2259410f8b6de19fd240cd08c @@ -13122,22 +12945,22 @@ __metadata: linkType: hard "rollup@npm:^4.2.0": - version: 4.9.5 - resolution: "rollup@npm:4.9.5" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.9.5" - "@rollup/rollup-android-arm64": "npm:4.9.5" - "@rollup/rollup-darwin-arm64": "npm:4.9.5" - "@rollup/rollup-darwin-x64": "npm:4.9.5" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.9.5" - "@rollup/rollup-linux-arm64-gnu": "npm:4.9.5" - "@rollup/rollup-linux-arm64-musl": "npm:4.9.5" - "@rollup/rollup-linux-riscv64-gnu": "npm:4.9.5" - "@rollup/rollup-linux-x64-gnu": "npm:4.9.5" - "@rollup/rollup-linux-x64-musl": "npm:4.9.5" - "@rollup/rollup-win32-arm64-msvc": "npm:4.9.5" - "@rollup/rollup-win32-ia32-msvc": "npm:4.9.5" - "@rollup/rollup-win32-x64-msvc": "npm:4.9.5" + version: 4.10.0 + resolution: "rollup@npm:4.10.0" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.10.0" + "@rollup/rollup-android-arm64": "npm:4.10.0" + "@rollup/rollup-darwin-arm64": "npm:4.10.0" + "@rollup/rollup-darwin-x64": "npm:4.10.0" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.10.0" + "@rollup/rollup-linux-arm64-gnu": "npm:4.10.0" + "@rollup/rollup-linux-arm64-musl": "npm:4.10.0" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.10.0" + "@rollup/rollup-linux-x64-gnu": "npm:4.10.0" + "@rollup/rollup-linux-x64-musl": "npm:4.10.0" + "@rollup/rollup-win32-arm64-msvc": "npm:4.10.0" + "@rollup/rollup-win32-ia32-msvc": "npm:4.10.0" + "@rollup/rollup-win32-x64-msvc": "npm:4.10.0" "@types/estree": "npm:1.0.5" fsevents: "npm:~2.3.2" dependenciesMeta: @@ -13171,7 +12994,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 4debf528e63edea5c3f5d38e399c6dd7287e2977d90d2d3ce38d4b3412289e2081aff8f8488a11b1699c786f2e904e9e150f30d576fe9316b5b97df0e80b1bce + checksum: e8f55290736faa24b82ec3c2c7dafd422df27dba31ac22d6ff6ca5b8b0f962e59c254622f9b30066740a402b84a68469f8f191f9950a645ec403ee9fe3a37071 languageName: node linkType: hard @@ -13189,10 +13012,10 @@ __metadata: languageName: node linkType: hard -"run-async@npm:^2.4.0": - version: 2.4.1 - resolution: "run-async@npm:2.4.1" - checksum: c79551224dafa26ecc281cb1efad3510c82c79116aaf681f8a931ce70fdf4ca880d58f97d3b930a38992c7aad7955a08e065b32ec194e1dd49d7790c874ece50 +"run-async@npm:^3.0.0": + version: 3.0.0 + resolution: "run-async@npm:3.0.0" + checksum: 97fb8747f7765b77ebcd311d3a33548099336f04c6434e0763039b98c1de0f1b4421000695aff8751f309c0b995d8dfd620c1f1e4c35572da38c101488165305 languageName: node linkType: hard @@ -13212,7 +13035,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:^7.5.5, rxjs@npm:^7.8.1": +"rxjs@npm:^7.8.1": version: 7.8.1 resolution: "rxjs@npm:7.8.1" dependencies: @@ -13221,7 +13044,7 @@ __metadata: languageName: node linkType: hard -"safe-array-concat@npm:^1.0.1": +"safe-array-concat@npm:^1.0.1, safe-array-concat@npm:^1.1.0": version: 1.1.0 resolution: "safe-array-concat@npm:1.1.0" dependencies: @@ -13248,13 +13071,13 @@ __metadata: linkType: hard "safe-regex-test@npm:^1.0.0": - version: 1.0.2 - resolution: "safe-regex-test@npm:1.0.2" + version: 1.0.3 + resolution: "safe-regex-test@npm:1.0.3" dependencies: - call-bind: "npm:^1.0.5" - get-intrinsic: "npm:^1.2.2" + call-bind: "npm:^1.0.6" + es-errors: "npm:^1.3.0" is-regex: "npm:^1.1.4" - checksum: 0e6a472caa8f44a502c7842ea19749de42c2eb1b41cb00456061dc3746cf3468e907522f56e97a15f3b41d88f660bd3d4f9bdec064a39895f7babae0f7aafc6a + checksum: b04de61114b10274d92e25b6de7ccb5de07f11ea15637ff636de4b5190c0f5cd8823fe586dde718504cf78055437d70fd8804976894df502fcf5a210c970afb3 languageName: node linkType: hard @@ -13265,7 +13088,7 @@ __metadata: languageName: node linkType: hard -"safer-buffer@npm:>= 2.1.2 < 3, safer-buffer@npm:>= 2.1.2 < 3.0.0": +"safer-buffer@npm:>= 2.1.2 < 3.0.0": version: 2.1.2 resolution: "safer-buffer@npm:2.1.2" checksum: 7eaf7a0cf37cc27b42fb3ef6a9b1df6e93a1c6d98c6c6702b02fe262d5fcbd89db63320793b99b21cb5348097d0a53de81bd5f4e8b86e20cc9412e3f1cfb4e83 @@ -13287,15 +13110,15 @@ __metadata: linkType: hard "sass@npm:^1.63.6": - version: 1.69.7 - resolution: "sass@npm:1.69.7" + version: 1.70.0 + resolution: "sass@npm:1.70.0" dependencies: chokidar: "npm:>=3.0.0 <4.0.0" immutable: "npm:^4.0.0" source-map-js: "npm:>=0.6.2 <2.0.0" bin: sass: sass.js - checksum: 9c6d3fe468a267949e8dd766085351f59988caf5d3d5c13eb041d370366f869ad3704b5046586fd3584b2cbf59c03650d237b62a4c6ed26a0c003e27f9ef4e89 + checksum: f933545d72a932f4a82322dd4ca9f3ea7d3e9d08852d695f76d419939cbdf7f8db3dd894b059ed77bf76811b07319b75b3ef8bb077bf9f52f8fbdfd8cee162f6 languageName: node linkType: hard @@ -13346,13 +13169,13 @@ __metadata: linkType: hard "semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.3": - version: 7.5.4 - resolution: "semver@npm:7.5.4" + version: 7.6.0 + resolution: "semver@npm:7.6.0" dependencies: lru-cache: "npm:^6.0.0" bin: semver: bin/semver.js - checksum: 985dec0d372370229a262c737063860fabd4a1c730662c1ea3200a2f649117761a42184c96df62a0e885e76fbd5dace41087d6c1ac0351b13c0df5d6bcb1b5ac + checksum: 1b41018df2d8aca5a1db4729985e8e20428c650daea60fcd16e926e9383217d00f574fab92d79612771884a98d2ee2a1973f49d630829a8d54d6570defe62535 languageName: node linkType: hard @@ -13363,16 +13186,17 @@ __metadata: languageName: node linkType: hard -"set-function-length@npm:^1.1.1": - version: 1.2.0 - resolution: "set-function-length@npm:1.2.0" +"set-function-length@npm:^1.2.1": + version: 1.2.1 + resolution: "set-function-length@npm:1.2.1" dependencies: - define-data-property: "npm:^1.1.1" + define-data-property: "npm:^1.1.2" + es-errors: "npm:^1.3.0" function-bind: "npm:^1.1.2" - get-intrinsic: "npm:^1.2.2" + get-intrinsic: "npm:^1.2.3" gopd: "npm:^1.0.1" has-property-descriptors: "npm:^1.0.1" - checksum: 6d609cd060c488d7d2178a5d4c3689f8a6afa26fa4c48ff4a0516664ff9b84c1c0898915777f5628092dab55c4fcead205525e2edd15c659423bf86f790fdcae + checksum: 9ab1d200149574ab27c1a7acae56d6235e02568fc68655fe8afe63e4e02ccad3c27665f55c32408bd1ff40705939dbb7539abfb9c3a07fda27ecad1ab9e449f5 languageName: node linkType: hard @@ -13474,13 +13298,14 @@ __metadata: linkType: hard "side-channel@npm:^1.0.4": - version: 1.0.4 - resolution: "side-channel@npm:1.0.4" + version: 1.0.5 + resolution: "side-channel@npm:1.0.5" dependencies: - call-bind: "npm:^1.0.0" - get-intrinsic: "npm:^1.0.2" - object-inspect: "npm:^1.9.0" - checksum: c4998d9fc530b0e75a7fd791ad868fdc42846f072734f9080ff55cc8dc7d3899abcda24fd896aa6648c3ab7021b4bb478073eb4f44dfd55bce9714bc1a7c5d45 + call-bind: "npm:^1.0.6" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.4" + object-inspect: "npm:^1.13.1" + checksum: 27708b70b5d81bf18dc8cc23f38f1b6c9511691a64abc4aaf17956e67d132c855cf8b46f931e2fc5a6262b29371eb60da7755c1b9f4f862eccea8562b469f8f6 languageName: node linkType: hard @@ -13572,12 +13397,12 @@ __metadata: linkType: hard "socks@npm:^2.6.2, socks@npm:^2.7.1": - version: 2.7.1 - resolution: "socks@npm:2.7.1" + version: 2.8.0 + resolution: "socks@npm:2.8.0" dependencies: - ip: "npm:^2.0.0" + ip-address: "npm:^9.0.5" smart-buffer: "npm:^4.2.0" - checksum: 5074f7d6a13b3155fa655191df1c7e7a48ce3234b8ccf99afa2ccb56591c195e75e8bb78486f8e9ea8168e95a29573cbaad55b2b5e195160ae4d2ea6811ba833 + checksum: ed0224ce2c7daaa7690cb87cf53d9703ffc4e983aca221f6f5b46767b232658df49494fd86acd0bf97ada6de05248ea8ea625c2343d48155d8463fc40d4a340f languageName: node linkType: hard @@ -13627,9 +13452,9 @@ __metadata: linkType: hard "spdx-exceptions@npm:^2.1.0": - version: 2.3.0 - resolution: "spdx-exceptions@npm:2.3.0" - checksum: cb69a26fa3b46305637123cd37c85f75610e8c477b6476fa7354eb67c08128d159f1d36715f19be6f9daf4b680337deb8c65acdcae7f2608ba51931540687ac0 + version: 2.4.0 + resolution: "spdx-exceptions@npm:2.4.0" + checksum: b1b650a8d94424473bf9629cf972c86a91c03cccc260f5c901bce0e4b92d831627fec28c9e0a1e9c34c5ebad0a12cf2eab887bec088e0a862abb9d720c2fd0a1 languageName: node linkType: hard @@ -13644,9 +13469,16 @@ __metadata: linkType: hard "spdx-license-ids@npm:^3.0.0": - version: 3.0.16 - resolution: "spdx-license-ids@npm:3.0.16" - checksum: 6425c54132ca38d717315cdbd2b620235937d1859972c5978bbc95b4c14400438ffe113709d8aabb0d5498cc27a5b89876fca0fe21b4e26f5ce122bc86d0d88e + version: 3.0.17 + resolution: "spdx-license-ids@npm:3.0.17" + checksum: 8f6c6ae02ebb25b4ca658b8990d9e8a8f8d8a95e1d8b9fd84d87eed80a7dc8f8073d6a8d50b8a0295c0e8399e1f8814f5c00e2985e6bf3731540a16f7241cbf1 + languageName: node + linkType: hard + +"sprintf-js@npm:^1.1.3": + version: 1.1.3 + resolution: "sprintf-js@npm:1.1.3" + checksum: e7587128c423f7e43cc625fe2f87e6affdf5ca51c1cc468e910d8aaca46bb44a7fbcfa552f787b1d3987f7043aeb4527d1b99559e6621e01b42b3f45e5a24cbb languageName: node linkType: hard @@ -13698,7 +13530,7 @@ __metadata: languageName: node linkType: hard -"std-env@npm:^3.3.3, std-env@npm:^3.5.0": +"std-env@npm:^3.5.0": version: 3.7.0 resolution: "std-env@npm:3.7.0" checksum: 6ee0cca1add3fd84656b0002cfbc5bfa20340389d9ba4720569840f1caa34bce74322aef4c93f046391583e50649d0cf81a5f8fe1d411e50b659571690a45f12 @@ -13882,7 +13714,7 @@ __metadata: languageName: node linkType: hard -"strip-literal@npm:^1.0.1, strip-literal@npm:^1.3.0": +"strip-literal@npm:^1.3.0": version: 1.3.0 resolution: "strip-literal@npm:1.3.0" dependencies: @@ -14004,7 +13836,7 @@ __metadata: languageName: node linkType: hard -"tailwindcss@npm:^3.3.6": +"tailwindcss@npm:^3.4.1": version: 3.4.1 resolution: "tailwindcss@npm:3.4.1" dependencies: @@ -14094,13 +13926,6 @@ __metadata: languageName: node linkType: hard -"through@npm:^2.3.6": - version: 2.3.8 - resolution: "through@npm:2.3.8" - checksum: 5da78346f70139a7d213b65a0106f3c398d6bc5301f9248b5275f420abc2c4b1e77c2abc72d218dedc28c41efb2e7c312cb76a7730d04f9c2d37d247da3f4198 - languageName: node - linkType: hard - "tiny-warning@npm:^1.0.2": version: 1.0.3 resolution: "tiny-warning@npm:1.0.3" @@ -14108,31 +13933,24 @@ __metadata: languageName: node linkType: hard -"tinybench@npm:^2.5.0, tinybench@npm:^2.5.1": +"tinybench@npm:^2.5.1": version: 2.6.0 resolution: "tinybench@npm:2.6.0" checksum: 6d35f0540bbf6208e8f47fa88cad733bc4b35b3bea75ec995004a9a44f70b8947eff3d271a3b4a4f7e787a82211df0dec9370fa566ccf50441067c559382b3ed languageName: node linkType: hard -"tinypool@npm:^0.7.0": - version: 0.7.0 - resolution: "tinypool@npm:0.7.0" - checksum: e1fb1f430647525c6bb0bac71acc4c1594c7687fe8e4f08c8f389d9a672fb69746869e9d9818b55f1ab85ea6308d42f92cbc32a9847088abf6bc55a8700be390 +"tinypool@npm:^0.8.2": + version: 0.8.2 + resolution: "tinypool@npm:0.8.2" + checksum: 5e2cdddc1caf437e3b8d8c56c1c66dffcb46008be4b2e37d457b0921699c6b79930dd8d652e4890c5e1e24688489259da83fd853bc0ce348d8a0375dedefc2ba languageName: node linkType: hard -"tinypool@npm:^0.8.1": - version: 0.8.1 - resolution: "tinypool@npm:0.8.1" - checksum: 3fae8acc22b7d0364eb202b64f61f0d8b10dcead6bef9b8fab1836857dcecd0e34fadc47ab309754ead2cb29bfa4b3467a9fc0daae23669b19ff403ae1364b5c - languageName: node - linkType: hard - -"tinyspy@npm:^2.1.1, tinyspy@npm:^2.2.0": - version: 2.2.0 - resolution: "tinyspy@npm:2.2.0" - checksum: bcc5a08c2dc7574d32e6dcc2e760ad95a3cf30249c22799815b6389179427c95573d27d2d965ebc5fca2b6d338c46678cd7337ea2a9cebacee3dc662176b07cb +"tinyspy@npm:^2.2.0": + version: 2.2.1 + resolution: "tinyspy@npm:2.2.1" + checksum: 170d6232e87f9044f537b50b406a38fbfd6f79a261cd12b92879947bd340939a833a678632ce4f5c4a6feab4477e9c21cd43faac3b90b68b77dd0536c4149736 languageName: node linkType: hard @@ -14145,15 +13963,6 @@ __metadata: languageName: node linkType: hard -"tmp@npm:^0.0.33": - version: 0.0.33 - resolution: "tmp@npm:0.0.33" - dependencies: - os-tmpdir: "npm:~1.0.2" - checksum: 09c0abfd165cff29b32be42bc35e80b8c64727d97dedde6550022e88fa9fd39a084660415ed8e3ebaa2aca1ee142f86df8b31d4196d4f81c774a3a20fd4b6abf - languageName: node - linkType: hard - "to-fast-properties@npm:^2.0.0": version: 2.0.0 resolution: "to-fast-properties@npm:2.0.0" @@ -14250,8 +14059,8 @@ __metadata: linkType: hard "tsconfck@npm:^3.0.1": - version: 3.0.1 - resolution: "tsconfck@npm:3.0.1" + version: 3.0.2 + resolution: "tsconfck@npm:3.0.2" peerDependencies: typescript: ^5.0.0 peerDependenciesMeta: @@ -14259,7 +14068,7 @@ __metadata: optional: true bin: tsconfck: bin/tsconfck.js - checksum: c5317404e2a809af31ad093f82365518a5856b2f342371991f729f42cab0def1b87dca8d22df3fb8c82acda7248710d4fb5030270db024c8000bc8272a3e6d58 + checksum: bd0666cde64d576701b6b74b45795b76f002ea3c44279ce373426b075f56b47b4a34ee51083a4df7844b0077e2af4cb752a6c6ef246a80339a44351d6367c98c languageName: node linkType: hard @@ -14359,20 +14168,20 @@ __metadata: linkType: hard "type-fest@npm:^4.9.0": - version: 4.9.0 - resolution: "type-fest@npm:4.9.0" - checksum: 49acfb67999566a24d5604435c8cff786dfc26ebea5a2a343e14d437d34f30a55248f8e597b8f64446c344bb68ce14af68899f562cf66ca66c1e1a856b393259 + version: 4.10.2 + resolution: "type-fest@npm:4.10.2" + checksum: 2b1ad1270d9fabeeb506ba831d513caeb05bfc852e5e012511d785ce9dc68d773fe0a42bddf857a362c7f3406244809c5b8a698b743bb7617d4a8c470672087f languageName: node linkType: hard "typed-array-buffer@npm:^1.0.0": - version: 1.0.0 - resolution: "typed-array-buffer@npm:1.0.0" + version: 1.0.1 + resolution: "typed-array-buffer@npm:1.0.1" dependencies: - call-bind: "npm:^1.0.2" - get-intrinsic: "npm:^1.2.1" - is-typed-array: "npm:^1.1.10" - checksum: 3e0281c79b2a40cd97fe715db803884301993f4e8c18e8d79d75fd18f796e8cd203310fec8c7fdb5e6c09bedf0af4f6ab8b75eb3d3a85da69328f28a80456bd3 + call-bind: "npm:^1.0.6" + es-errors: "npm:^1.3.0" + is-typed-array: "npm:^1.1.13" + checksum: 1d65e46b2b9b7ec2a30df39b9ddf32e55ad08d6119aec33975506a3dba56057796bdc3c64dbeb7fdb61bf340a75e279dfd55b48ce8f3b874f01731e1da6833d2 languageName: node linkType: hard @@ -14440,9 +14249,9 @@ __metadata: linkType: hard "ufo@npm:^1.3.2": - version: 1.3.2 - resolution: "ufo@npm:1.3.2" - checksum: 7133290d495e2b3f9416de69982019e81cff40d28cfd3a07accff1122ee52f23d9165e495a140a1b34b183244e88fc4001cb649591385ecbad1d3d0d2264fa6e + version: 1.4.0 + resolution: "ufo@npm:1.4.0" + checksum: b7aea8503878dc5ad797d8fc6fe39fec64d9cc7e89fb147ef86ec676e37bb462d99d67c6aad20b15f7d3e6d275d66666b29214422e268f1d98f6eaf707a207a6 languageName: node linkType: hard @@ -14633,9 +14442,9 @@ __metadata: linkType: hard "utility-types@npm:^3.10.0": - version: 3.10.0 - resolution: "utility-types@npm:3.10.0" - checksum: 3ca80abfb9482b8f924110b643411d6a8c6bf84049e76212652fb46ccc9085c635485dd0351b63a8da6cf2cffbef32cc27d16e924dc7ad445881a481632b3da0 + version: 3.11.0 + resolution: "utility-types@npm:3.11.0" + checksum: a3c51463fc807ed04ccc8b5d0fa6e31f3dcd7a4cbd30ab4bc6d760ce5319dd493d95bf04244693daf316f97e9ab2a37741edfed8748ad38572a595398ad0fdaf languageName: node linkType: hard @@ -14676,25 +14485,9 @@ __metadata: languageName: node linkType: hard -"vite-node@npm:0.34.6": - version: 0.34.6 - resolution: "vite-node@npm:0.34.6" - dependencies: - cac: "npm:^6.7.14" - debug: "npm:^4.3.4" - mlly: "npm:^1.4.0" - pathe: "npm:^1.1.1" - picocolors: "npm:^1.0.0" - vite: "npm:^3.0.0 || ^4.0.0 || ^5.0.0-0" - bin: - vite-node: vite-node.mjs - checksum: ae49fd24874162196dd41477afe51dd8dc0bd1e8cb4ae885455d1d5569e14f628941f9867044bff263620536446e17d7e2c0828c9ea84b6308b9eb5711e80991 - languageName: node - linkType: hard - -"vite-node@npm:1.2.0": - version: 1.2.0 - resolution: "vite-node@npm:1.2.0" +"vite-node@npm:1.2.2": + version: 1.2.2 + resolution: "vite-node@npm:1.2.2" dependencies: cac: "npm:^6.7.14" debug: "npm:^4.3.4" @@ -14703,7 +14496,7 @@ __metadata: vite: "npm:^5.0.0" bin: vite-node: vite-node.mjs - checksum: 7e975f0fa3fc243d96a4056cac36309b726a7317dcb6ca612a788aa2bb3f95a172ef7f5d410054ae7a57f4b6e2bc3613fb898b7e8e9dac121acecca46fe1085c + checksum: a4b39361011ebf890fb2be83babd24aa29de76185f1683f57a76b6dfcfbdcd7700b83c9d0cd3b5bebc4a114427d7c2612095ab59d0d12732ce21ef816fe86b07 languageName: node linkType: hard @@ -14720,7 +14513,7 @@ __metadata: languageName: node linkType: hard -"vite-tsconfig-paths@npm:^4.2.2": +"vite-tsconfig-paths@npm:^4.3.1": version: 4.3.1 resolution: "vite-tsconfig-paths@npm:4.3.1" dependencies: @@ -14736,13 +14529,13 @@ __metadata: languageName: node linkType: hard -"vite@npm:^3.0.0 || ^4.0.0 || ^5.0.0-0, vite@npm:^3.1.0 || ^4.0.0 || ^5.0.0-0, vite@npm:^5.0.0, vite@npm:^5.0.7": - version: 5.0.11 - resolution: "vite@npm:5.0.11" +"vite@npm:^5.0.0, vite@npm:^5.1.1": + version: 5.1.1 + resolution: "vite@npm:5.1.1" dependencies: esbuild: "npm:^0.19.3" fsevents: "npm:~2.3.3" - postcss: "npm:^8.4.32" + postcss: "npm:^8.4.35" rollup: "npm:^4.2.0" peerDependencies: "@types/node": ^18.0.0 || >=20.0.0 @@ -14772,80 +14565,20 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: f1a8fea35ed9f162d7a10fd13efb2c96637028b0a319d726aeec8b31e20e4d047272bda5df82167618e7774a520236c66f3093ed172802660aec5227814072f4 - languageName: node - linkType: hard - -"vitest@npm:^0.34.6": - version: 0.34.6 - resolution: "vitest@npm:0.34.6" - dependencies: - "@types/chai": "npm:^4.3.5" - "@types/chai-subset": "npm:^1.3.3" - "@types/node": "npm:*" - "@vitest/expect": "npm:0.34.6" - "@vitest/runner": "npm:0.34.6" - "@vitest/snapshot": "npm:0.34.6" - "@vitest/spy": "npm:0.34.6" - "@vitest/utils": "npm:0.34.6" - acorn: "npm:^8.9.0" - acorn-walk: "npm:^8.2.0" - cac: "npm:^6.7.14" - chai: "npm:^4.3.10" - debug: "npm:^4.3.4" - local-pkg: "npm:^0.4.3" - magic-string: "npm:^0.30.1" - pathe: "npm:^1.1.1" - picocolors: "npm:^1.0.0" - std-env: "npm:^3.3.3" - strip-literal: "npm:^1.0.1" - tinybench: "npm:^2.5.0" - tinypool: "npm:^0.7.0" - vite: "npm:^3.1.0 || ^4.0.0 || ^5.0.0-0" - vite-node: "npm:0.34.6" - why-is-node-running: "npm:^2.2.2" - peerDependencies: - "@edge-runtime/vm": "*" - "@vitest/browser": "*" - "@vitest/ui": "*" - happy-dom: "*" - jsdom: "*" - playwright: "*" - safaridriver: "*" - webdriverio: "*" - peerDependenciesMeta: - "@edge-runtime/vm": - optional: true - "@vitest/browser": - optional: true - "@vitest/ui": - optional: true - happy-dom: - optional: true - jsdom: - optional: true - playwright: - optional: true - safaridriver: - optional: true - webdriverio: - optional: true - bin: - vitest: vitest.mjs - checksum: 0191422ab979823803aac64e657e288f1b84bb518a2b653fe9928b4f1c931b04efde14990d263ff76a18dc6c35ab34652db3ae7cbecea771cfa36abe547dd705 + checksum: bdb8e683caddaa0a9adcbf40144ca8ea3660836b208862b07d43787ea867845919af16e58745365bd13ed3b7f66bbf9788a6869ee22cfaacac01645b59729c34 languageName: node linkType: hard "vitest@npm:^1.0.4": - version: 1.2.0 - resolution: "vitest@npm:1.2.0" - dependencies: - "@vitest/expect": "npm:1.2.0" - "@vitest/runner": "npm:1.2.0" - "@vitest/snapshot": "npm:1.2.0" - "@vitest/spy": "npm:1.2.0" - "@vitest/utils": "npm:1.2.0" - acorn-walk: "npm:^8.3.1" + version: 1.2.2 + resolution: "vitest@npm:1.2.2" + dependencies: + "@vitest/expect": "npm:1.2.2" + "@vitest/runner": "npm:1.2.2" + "@vitest/snapshot": "npm:1.2.2" + "@vitest/spy": "npm:1.2.2" + "@vitest/utils": "npm:1.2.2" + acorn-walk: "npm:^8.3.2" cac: "npm:^6.7.14" chai: "npm:^4.3.10" debug: "npm:^4.3.4" @@ -14857,9 +14590,9 @@ __metadata: std-env: "npm:^3.5.0" strip-literal: "npm:^1.3.0" tinybench: "npm:^2.5.1" - tinypool: "npm:^0.8.1" + tinypool: "npm:^0.8.2" vite: "npm:^5.0.0" - vite-node: "npm:1.2.0" + vite-node: "npm:1.2.2" why-is-node-running: "npm:^2.2.2" peerDependencies: "@edge-runtime/vm": "*" @@ -14883,7 +14616,7 @@ __metadata: optional: true bin: vitest: vitest.mjs - checksum: 6ad4ffc76a8e364eaebc3c745c699638445b0f96259fcc028d95d521c01df84f0d00fea72beee73d48ea2ce93640cf7bbe76ad541230e076d6435946bb764f8e + checksum: 1dc90823cde249a60e955f82e67cef76c363c78a9783c4dae94a080199fa3e48a56a5c9d1f40667b4542862e183d05c444af846059477b3a66c6b952d168b9cb languageName: node linkType: hard @@ -14912,15 +14645,6 @@ __metadata: languageName: node linkType: hard -"wcwidth@npm:^1.0.1": - version: 1.0.1 - resolution: "wcwidth@npm:1.0.1" - dependencies: - defaults: "npm:^1.0.3" - checksum: 182ebac8ca0b96845fae6ef44afd4619df6987fe5cf552fdee8396d3daa1fb9b8ec5c6c69855acb7b3c1231571393bd1f0a4cdc4028d421575348f64bb0a8817 - languageName: node - linkType: hard - "webidl-conversions@npm:^3.0.0": version: 3.0.1 resolution: "webidl-conversions@npm:3.0.1" @@ -15016,16 +14740,16 @@ __metadata: languageName: node linkType: hard -"which-typed-array@npm:^1.1.11, which-typed-array@npm:^1.1.13, which-typed-array@npm:^1.1.9": - version: 1.1.13 - resolution: "which-typed-array@npm:1.1.13" +"which-typed-array@npm:^1.1.13, which-typed-array@npm:^1.1.14, which-typed-array@npm:^1.1.9": + version: 1.1.14 + resolution: "which-typed-array@npm:1.1.14" dependencies: - available-typed-arrays: "npm:^1.0.5" - call-bind: "npm:^1.0.4" + available-typed-arrays: "npm:^1.0.6" + call-bind: "npm:^1.0.5" for-each: "npm:^0.3.3" gopd: "npm:^1.0.1" - has-tostringtag: "npm:^1.0.0" - checksum: 605e3e10b7118af904a0e79d0d50b95275102f06ec902734024989cd71354929f7acee50de43529d3baf5858e2e4eb32c75e6ebd226c888ad976d8140e4a3e71 + has-tostringtag: "npm:^1.0.1" + checksum: 56253d2c9d6b41b8a4af96d8c2751bac5508906bd500cdcd0dc5301fb082de0391a4311ab21258bc8d2609ed593f422c1a66f0020fcb3a1e97f719bc928b9018 languageName: node linkType: hard @@ -15090,7 +14814,7 @@ __metadata: languageName: node linkType: hard -"wrap-ansi@npm:^6.0.1": +"wrap-ansi@npm:^6.2.0": version: 6.2.0 resolution: "wrap-ansi@npm:6.2.0" dependencies: @@ -15176,7 +14900,7 @@ __metadata: languageName: node linkType: hard -"yaml@npm:^2.2.1, yaml@npm:^2.3.4": +"yaml@npm:^2.3.4": version: 2.3.4 resolution: "yaml@npm:2.3.4" checksum: f8207ce43065a22268a2806ea6a0fa3974c6fde92b4b2fa0082357e487bc333e85dc518910007e7ac001b532c7c84bd3eccb6c7757e94182b564028b0008f44b @@ -15244,13 +14968,13 @@ __metadata: linkType: hard "zustand@npm:^4.4.7": - version: 4.4.7 - resolution: "zustand@npm:4.4.7" + version: 4.5.0 + resolution: "zustand@npm:4.5.0" dependencies: use-sync-external-store: "npm:1.2.0" peerDependencies: "@types/react": ">=16.8" - immer: ">=9.0" + immer: ">=9.0.6" react: ">=16.8" peerDependenciesMeta: "@types/react": @@ -15259,6 +14983,6 @@ __metadata: optional: true react: optional: true - checksum: 572e42d912362eb3aabde9a37bca47caa547391fc4563e41444d9aef7ca453ca730ee1f00aae4b25c2635ca293d69c23ab0a41688cd4db8394545732a2d9c236 + checksum: 2488b904b3c8ced5feddfd30d8641d9d0c58c044b182b401035fdea8201c53ee84d89992cb425c365445ec315616016e2346cc1a07b1fe09f070c9da45564200 languageName: node linkType: hard From d2d54400224424f72e724dbcd19318c0b0b2a91c Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 13 Feb 2024 15:41:49 +0100 Subject: [PATCH 24/82] fix type issue --- src/context/AuthContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/AuthContext.tsx b/src/context/AuthContext.tsx index 3f7da5e6..6c306aa9 100644 --- a/src/context/AuthContext.tsx +++ b/src/context/AuthContext.tsx @@ -51,8 +51,8 @@ function AuthProvider({ children }: { children: ReactNode }) { } = useLocalStorageValue( import.meta.env.VITE_KEY_API_ACCESS_TOKEN || '', { - parse: (data: string) => data, - stringify: (data: unknown) => data, + parse: (data: string | null) => data, + stringify: (data: string) => data, } ) const { From e1560539c986e56bed7ed756fb2170603fc51250 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 26 Feb 2024 16:42:50 +0100 Subject: [PATCH 25/82] Update packages --- package.json | 4 +- src/api/fetchers.msw.ts | 11925 ++++++++++------ src/api/fetchers.schemas.ts | 22 +- src/api/fetchers.ts | 2 +- .../PublicationAddModal.tsx | 60 +- .../PublicationEditModal.tsx | 72 + .../PublicationEditModal/index.ts | 1 + .../PublicationPackagesModal.tsx | 50 + .../PublicationPackagesModal/index.ts | 1 + .../PublicationVersionAddModal.tsx | 30 +- .../PublicationVersionEditModal.tsx | 30 +- .../Modals/PublicationModals/index.ts | 4 + src/components/Modals/types.ts | 8 + .../Publications/Publication/Publication.tsx | 91 +- .../PublicationForm/PublicationForm.tsx | 69 + .../Publications/PublicationForm/index.ts | 1 + .../PublicationPackages.tsx | 175 + .../components/PackageStep.tsx | 112 + .../components/PackageStepActions.tsx | 267 + .../PublicationPackages/components/index.ts | 4 + .../Publications/PublicationPackages/index.ts | 1 + .../PublicationVersions.tsx | 41 +- src/components/Publications/Publications.tsx | 54 + src/components/Publications/index.ts | 1 + .../Modules/ModuleDetail/ModuleDetail.tsx | 8 +- yarn.lock | 1886 +-- 26 files changed, 9249 insertions(+), 5670 deletions(-) create mode 100644 src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx create mode 100644 src/components/Modals/PublicationModals/PublicationEditModal/index.ts create mode 100644 src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx create mode 100644 src/components/Modals/PublicationModals/PublicationPackagesModal/index.ts create mode 100644 src/components/Publications/PublicationForm/PublicationForm.tsx create mode 100644 src/components/Publications/PublicationForm/index.ts create mode 100644 src/components/Publications/PublicationPackages/PublicationPackages.tsx create mode 100644 src/components/Publications/PublicationPackages/components/PackageStep.tsx create mode 100644 src/components/Publications/PublicationPackages/components/PackageStepActions.tsx create mode 100644 src/components/Publications/PublicationPackages/components/index.ts create mode 100644 src/components/Publications/PublicationPackages/index.ts create mode 100644 src/components/Publications/Publications.tsx create mode 100644 src/components/Publications/index.ts diff --git a/package.json b/package.json index f51cdb6f..e3cb0c0e 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.465", + "@pzh-ui/components": "^0.0.472", "@pzh-ui/config": "^0.0.56", - "@pzh-ui/css": "^0.0.80", + "@pzh-ui/css": "^0.0.81", "@pzh-ui/icons": "^0.0.50", "@react-hookz/web": "^24.0.4", "@tanstack/react-query": "^5.20.5", diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index 29e913d3..ea6659fb 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.23.0 🍺 + * Generated by orval v6.24.0 🍺 * Do not edit manually. * Omgevingsbeleid API * @@ -10,15 +10,90 @@ */ import { faker } from '@faker-js/faker' import { HttpResponse, delay, http } from 'msw' -import { - AppExtensionsPublicationsEnumsDocumentType, - GraphEdgeType, - PackageEventType, - ProcedureStepType, - ProcedureType, +import type { + AcknowledgedRelation, + ActiveModuleObjectWrapper, + AmbitieFull, + AmbitieUUID, + AuthToken, + BeleidsdoelFull, + BeleidsdoelUUID, + BeleidskeuzeFull, + BeleidskeuzeUUID, + BeleidsregelFull, + BeleidsregelUUID, + GebiedsprogrammaFull, + GebiedsprogrammaUUID, + GraphResponse, + MaatregelFull, + MaatregelUUID, + ModuleCreatedResponse, + ModuleObjectContext, + ModuleOverview, + ModuleSnapshot, + ModuleStatus, + NationaalBelangFull, + NationaalBelangUUID, + NewObjectStaticResponse, + ObjectCount, + PagedResponseAmbitieBasic, + PagedResponseAmbitieExtended, + PagedResponseBeleidsdoelBasic, + PagedResponseBeleidsdoelExtended, + PagedResponseBeleidskeuzeBasic, + PagedResponseBeleidskeuzeExtended, + PagedResponseBeleidsregelBasic, + PagedResponseBeleidsregelExtended, + PagedResponseGebiedsprogrammaBasic, + PagedResponseGebiedsprogrammaExtended, + PagedResponseGenericObjectShort, + PagedResponseGeoSearchResult, + PagedResponseMaatregelBasic, + PagedResponseMaatregelExtended, + PagedResponseModule, + PagedResponseModuleObjectShortStatus, + PagedResponseNationaalBelangBasic, + PagedResponseProgrammaAlgemeenBasic, + PagedResponseProgrammaAlgemeenExtended, + PagedResponsePublicModuleShort, + PagedResponsePublication, + PagedResponsePublicationBillShort, + PagedResponsePublicationPackage, + PagedResponseSearchObject, + PagedResponseUser, + PagedResponseValidSearchObject, + PagedResponseVerplichtProgrammaBasic, + PagedResponseVisieAlgemeenBasic, + PagedResponseVisieAlgemeenExtended, + PagedResponseWerkingsgebied, + PagedResponseWerkingsgebiedBasic, + PagedResponseWerkingsgebiedExtended, + PagedResponseWettelijkeTaakBasic, + ProgrammaAlgemeenFull, + ProgrammaAlgemeenUUID, + PublicModuleOverview, + Publication, + PublicationBill, + PublicationPackage, + PublicationPackageReport, + ReadRelation, + ResetPasswordResponse, + ResponseOK, + User, + UserCreateResponse, + VerplichtProgrammaFull, + VerplichtProgrammaUUID, + VisieAlgemeenFull, + VisieAlgemeenUUID, + WerkingsgebiedFull, + WerkingsgebiedUUID, + WettelijkeTaakFull, + WettelijkeTaakUUID, } from './fetchers.schemas' -export const getAmbitiesValidGetMock = () => ({ +export const getAmbitiesValidGetMock = ( + overrideResponse: any = {} +): PagedResponseAmbitieBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -64,11 +139,15 @@ export const getAmbitiesValidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getAmbitiesValidLineageIdGetMock = () => ({ +export const getAmbitiesValidLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseAmbitieBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -114,11 +193,15 @@ export const getAmbitiesValidLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getAmbitiesVersionObjectUuidGetMock = () => ({ +export const getAmbitiesVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -145,6 +228,7 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -153,7 +237,9 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -163,6 +249,7 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -183,6 +270,7 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -201,6 +289,7 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -209,6 +298,7 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -217,6 +307,7 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -225,6 +316,7 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -233,9 +325,11 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -248,6 +342,7 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -260,9 +355,12 @@ export const getAmbitiesVersionObjectUuidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getAmbitiesLatestLineageIdGetMock = () => ({ +export const getAmbitiesLatestLineageIdGetMock = ( + overrideResponse: any = {} +): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -289,6 +387,7 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -297,7 +396,9 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -307,6 +408,7 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -327,6 +429,7 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -345,6 +448,7 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -353,6 +457,7 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -361,6 +466,7 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -369,6 +475,7 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -377,9 +484,11 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -392,6 +501,7 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -404,9 +514,12 @@ export const getAmbitiesLatestLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getAmbitiesRelationsLineageIdGetMock = () => +export const getAmbitiesRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): ReadRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -421,17 +534,20 @@ export const getAmbitiesRelationsLineageIdGetMock = () => faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + ...overrideResponse, })) -export const getAmbitiesRelationsLineageIdPutMock = () => ({ - message: faker.word.sample(), -}) +export const getAmbitiesRelationsLineageIdPutMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getAmbitieStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getAmbitieStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectAmbitieLineageIdGetMock = () => ({ +export const getModulesModuleIdObjectAmbitieLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseAmbitieExtended => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -454,6 +570,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -473,6 +590,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -491,6 +609,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -499,6 +618,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -507,6 +627,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -515,6 +636,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -523,9 +645,11 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -538,19 +662,26 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getModulesModuleIdObjectAmbitieLineageIdPatchMock = () => ({ +export const getModulesModuleIdObjectAmbitieLineageIdPatchMock = ( + overrideResponse: any = {} +): AmbitieUUID => ({ Object_ID: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ +export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = ( + overrideResponse: any = {} +): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -577,6 +708,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -585,7 +717,9 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -595,6 +729,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -615,6 +750,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -633,6 +769,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -641,6 +778,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -649,6 +787,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -657,6 +796,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -665,9 +805,11 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -680,6 +822,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -692,9 +835,12 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ +export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -721,6 +867,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -729,7 +876,9 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -739,6 +888,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -759,6 +909,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -777,6 +928,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -785,6 +937,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -793,6 +946,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -801,6 +955,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -809,9 +964,11 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -824,6 +981,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -836,9 +994,12 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesObjectAmbitieActiveLineageIdGetMock = () => +export const getModulesObjectAmbitieActiveLineageIdGetMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -852,6 +1013,7 @@ export const getModulesObjectAmbitieActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -860,6 +1022,7 @@ export const getModulesObjectAmbitieActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -875,10 +1038,12 @@ export const getModulesObjectAmbitieActiveLineageIdGetMock = () => max: undefined, }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Module_Object: { Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -888,10 +1053,14 @@ export const getModulesObjectAmbitieActiveLineageIdGetMock = () => ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, + ...overrideResponse, })) -export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ +export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -918,6 +1087,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -926,7 +1096,9 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -936,6 +1108,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -956,6 +1129,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -974,6 +1148,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -982,6 +1157,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -990,6 +1166,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -998,6 +1175,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1006,9 +1184,11 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -1021,6 +1201,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -1033,9 +1214,12 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getBeleidsdoelenValidGetMock = () => ({ +export const getBeleidsdoelenValidGetMock = ( + overrideResponse: any = {} +): PagedResponseBeleidsdoelBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -1085,11 +1269,15 @@ export const getBeleidsdoelenValidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getBeleidsdoelenValidLineageIdGetMock = () => ({ +export const getBeleidsdoelenValidLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseBeleidsdoelBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -1139,11 +1327,15 @@ export const getBeleidsdoelenValidLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ +export const getBeleidsdoelenVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): BeleidsdoelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -1170,6 +1362,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -1178,7 +1371,9 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -1204,6 +1399,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -1212,7 +1408,9 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -1222,6 +1420,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1247,6 +1446,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -1272,6 +1472,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -1280,7 +1481,9 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -1289,6 +1492,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1307,6 +1511,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1315,6 +1520,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1323,6 +1529,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1331,6 +1538,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1339,9 +1547,11 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -1354,6 +1564,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -1366,9 +1577,12 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ +export const getBeleidsdoelenLatestLineageIdGetMock = ( + overrideResponse: any = {} +): BeleidsdoelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -1395,6 +1609,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -1403,7 +1618,9 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -1429,6 +1646,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -1437,7 +1655,9 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -1447,6 +1667,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1472,6 +1693,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -1497,6 +1719,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -1505,7 +1728,9 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -1514,6 +1739,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1532,6 +1758,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1540,6 +1767,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1548,6 +1776,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1556,6 +1785,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1564,9 +1794,11 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -1579,6 +1811,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -1591,9 +1824,12 @@ export const getBeleidsdoelenLatestLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getBeleidsdoelenRelationsLineageIdGetMock = () => +export const getBeleidsdoelenRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): ReadRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -1608,17 +1844,20 @@ export const getBeleidsdoelenRelationsLineageIdGetMock = () => faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + ...overrideResponse, })) -export const getBeleidsdoelenRelationsLineageIdPutMock = () => ({ - message: faker.word.sample(), -}) +export const getBeleidsdoelenRelationsLineageIdPutMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getBeleidsdoelStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getBeleidsdoelStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = () => ({ +export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseBeleidsdoelExtended => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -1641,6 +1880,7 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1668,6 +1908,7 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1686,6 +1927,7 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1694,6 +1936,7 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1702,6 +1945,7 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1710,6 +1954,7 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -1718,9 +1963,11 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -1733,495 +1980,520 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidsdoelLineageIdPatchMock = () => ({ +export const getModulesModuleIdObjectBeleidsdoelLineageIdPatchMock = ( + overrideResponse: any = {} +): BeleidsdoelUUID => ({ Object_ID: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Ambities: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), +export const getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetMock = ( + overrideResponse: any = {} +): BeleidsdoelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Ambities: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + ...overrideResponse, + })), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Title: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, + ...overrideResponse, + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) - -export const getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Ambities: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - })), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): BeleidsdoelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Ambities: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ + ...overrideResponse, + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, + null, ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Title: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) -export const getModulesObjectBeleidsdoelActiveLineageIdGetMock = () => +export const getModulesObjectBeleidsdoelActiveLineageIdGetMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -2235,6 +2507,7 @@ export const getModulesObjectBeleidsdoelActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2243,6 +2516,7 @@ export const getModulesObjectBeleidsdoelActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2258,10 +2532,12 @@ export const getModulesObjectBeleidsdoelActiveLineageIdGetMock = () => max: undefined, }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Module_Object: { Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -2271,10 +2547,14 @@ export const getModulesObjectBeleidsdoelActiveLineageIdGetMock = () => ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, + ...overrideResponse, })) -export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ +export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): BeleidsdoelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -2301,6 +2581,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -2309,7 +2590,9 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -2335,6 +2618,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -2343,7 +2627,9 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -2353,6 +2639,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2378,6 +2665,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -2403,6 +2691,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -2411,7 +2700,9 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -2420,6 +2711,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2438,6 +2730,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2446,6 +2739,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2454,6 +2748,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2462,6 +2757,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2470,9 +2766,11 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -2485,6 +2783,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -2497,9 +2796,12 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getBeleidskeuzesValidGetMock = () => ({ +export const getBeleidskeuzesValidGetMock = ( + overrideResponse: any = {} +): PagedResponseBeleidskeuzeBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -2545,11 +2847,15 @@ export const getBeleidskeuzesValidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getBeleidskeuzesValidLineageIdGetMock = () => ({ +export const getBeleidskeuzesValidLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseBeleidskeuzeBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -2595,11 +2901,15 @@ export const getBeleidskeuzesValidLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ +export const getBeleidskeuzesVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): BeleidskeuzeFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -2626,6 +2936,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -2634,7 +2945,9 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -2660,6 +2973,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -2668,7 +2982,9 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -2679,6 +2995,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2710,6 +3027,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2723,6 +3041,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -2748,6 +3067,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -2756,7 +3076,9 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -2765,6 +3087,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2810,6 +3133,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -2818,7 +3142,9 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -2833,6 +3159,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2841,6 +3168,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2849,6 +3177,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2857,6 +3186,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -2865,9 +3195,11 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -2884,6 +3216,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -2906,6 +3239,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -2943,6 +3277,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -2951,13 +3286,18 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), + ...overrideResponse, }) -export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ +export const getBeleidskeuzesLatestLineageIdGetMock = ( + overrideResponse: any = {} +): BeleidskeuzeFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -2984,6 +3324,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -2992,7 +3333,9 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -3018,6 +3361,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -3026,7 +3370,9 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -3037,6 +3383,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3068,6 +3415,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3081,6 +3429,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -3106,6 +3455,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -3114,7 +3464,9 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -3123,6 +3475,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3168,6 +3521,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -3176,7 +3530,9 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -3191,6 +3547,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3199,6 +3556,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3207,6 +3565,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3215,6 +3574,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3223,9 +3583,11 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -3242,6 +3604,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -3264,6 +3627,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -3301,6 +3665,7 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -3309,13 +3674,18 @@ export const getBeleidskeuzesLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), + ...overrideResponse, }) -export const getBeleidskeuzesRelationsLineageIdGetMock = () => +export const getBeleidskeuzesRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): ReadRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -3330,17 +3700,20 @@ export const getBeleidskeuzesRelationsLineageIdGetMock = () => faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + ...overrideResponse, })) -export const getBeleidskeuzesRelationsLineageIdPutMock = () => ({ - message: faker.word.sample(), -}) +export const getBeleidskeuzesRelationsLineageIdPutMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getBeleidskeuzeStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getBeleidskeuzeStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getBeleidskeuzeAcknowledgedRelationsLineageIdGetMock = () => +export const getBeleidskeuzeAcknowledgedRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): AcknowledgedRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -3374,6 +3747,7 @@ export const getBeleidskeuzeAcknowledgedRelationsLineageIdGetMock = () => Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, }, Side_B: { Acknowledged: faker.helpers.arrayElement([ @@ -3391,18 +3765,23 @@ export const getBeleidskeuzeAcknowledgedRelationsLineageIdGetMock = () => Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, }, Version: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, })) -export const getBeleidskeuzeAcknowledgedRelationsLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getBeleidskeuzeAcknowledgedRelationsLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostMock = - () => ({ message: faker.word.sample() }) +export const getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = () => ({ +export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseBeleidskeuzeExtended => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -3425,6 +3804,7 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3448,6 +3828,7 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3466,6 +3847,7 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3474,6 +3856,7 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3482,6 +3865,7 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3490,6 +3874,7 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -3498,9 +3883,11 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -3517,787 +3904,802 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidskeuzeLineageIdPatchMock = () => ({ +export const getModulesModuleIdObjectBeleidskeuzeLineageIdPatchMock = ( + overrideResponse: any = {} +): BeleidskeuzeUUID => ({ Object_ID: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Beleidsdoelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Beleidsregels: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), +export const getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMock = ( + overrideResponse: any = {} +): BeleidskeuzeFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidsdoelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Beleidsregels: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, + null, ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + undefined, + ]), + Explanation: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Gebied: faker.helpers.arrayElement([ + { + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + End_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Explanation: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Gebied: faker.helpers.arrayElement([ - { - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - End_Validity: faker.helpers.arrayElement([ + ID: faker.number.int({ min: undefined, max: undefined }), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Start_Validity: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + NationaleBelangen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), - Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Start_Validity: faker.helpers.arrayElement([ + Modified_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Title: faker.word.sample(), - UUID: faker.string.uuid(), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Weblink: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + ...overrideResponse, }, - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), + ...overrideResponse, + })), + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), + undefined, + ]), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - NationaleBelangen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - Weblink: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - })), - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Provincial_Interest: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Werkingsgebied_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Werkingsgebied_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + WettelijkeTaken: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), + ...overrideResponse, }, - undefined, - ]), - Provincial_Interest: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Werkingsgebied_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Werkingsgebied_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - WettelijkeTaken: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - }) + ...overrideResponse, + })), + undefined, + ]), + ...overrideResponse, +}) -export const getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Beleidsdoelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Beleidsregels: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), +export const getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): BeleidskeuzeFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidsdoelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Beleidsregels: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, + null, ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + undefined, + ]), + Explanation: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Gebied: faker.helpers.arrayElement([ + { + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + End_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Explanation: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Gebied: faker.helpers.arrayElement([ - { - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - End_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, + ID: faker.number.int({ min: undefined, max: undefined }), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Start_Validity: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), - Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Start_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Title: faker.word.sample(), - UUID: faker.string.uuid(), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, }, - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - NationaleBelangen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - Weblink: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + NationaleBelangen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Weblink: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), + ...overrideResponse, }, - undefined, - ]), - Provincial_Interest: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Werkingsgebied_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Werkingsgebied_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - WettelijkeTaken: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), + ...overrideResponse, + })), + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), + undefined, + ]), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - })), - undefined, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Provincial_Interest: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Werkingsgebied_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Werkingsgebied_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + WettelijkeTaken: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + ...overrideResponse, +}) -export const getModulesObjectsBeleidskeuzeActiveLineageIdGetMock = () => +export const getModulesObjectsBeleidskeuzeActiveLineageIdGetMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -4311,6 +4713,7 @@ export const getModulesObjectsBeleidskeuzeActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4319,6 +4722,7 @@ export const getModulesObjectsBeleidskeuzeActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4334,10 +4738,12 @@ export const getModulesObjectsBeleidskeuzeActiveLineageIdGetMock = () => max: undefined, }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Module_Object: { Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -4347,10 +4753,14 @@ export const getModulesObjectsBeleidskeuzeActiveLineageIdGetMock = () => ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, + ...overrideResponse, })) -export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ +export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): BeleidskeuzeFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -4377,6 +4787,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -4385,7 +4796,9 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -4411,6 +4824,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -4419,7 +4833,9 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -4430,6 +4846,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4461,6 +4878,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4474,6 +4892,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -4499,6 +4918,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -4507,7 +4927,9 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -4516,6 +4938,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4561,6 +4984,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -4569,7 +4993,9 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -4584,6 +5010,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4592,6 +5019,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4600,6 +5028,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4608,6 +5037,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4616,9 +5046,11 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -4635,6 +5067,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -4657,6 +5090,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -4694,6 +5128,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -4702,13 +5137,18 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), + ...overrideResponse, }) -export const getBeleidsregelsValidGetMock = () => ({ +export const getBeleidsregelsValidGetMock = ( + overrideResponse: any = {} +): PagedResponseBeleidsregelBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -4755,11 +5195,15 @@ export const getBeleidsregelsValidGetMock = () => ({ Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getBeleidsregelsValidLineageIdGetMock = () => ({ +export const getBeleidsregelsValidLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseBeleidsregelBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -4806,11 +5250,15 @@ export const getBeleidsregelsValidLineageIdGetMock = () => ({ Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ +export const getBeleidsregelsVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): BeleidsregelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -4837,6 +5285,7 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -4845,7 +5294,9 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -4855,6 +5306,7 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4875,6 +5327,7 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4893,6 +5346,7 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4901,6 +5355,7 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4909,6 +5364,7 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4917,6 +5373,7 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -4925,9 +5382,11 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -4940,6 +5399,7 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -4953,9 +5413,12 @@ export const getBeleidsregelsVersionObjectUuidGetMock = () => ({ Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, }) -export const getBeleidsregelsLatestLineageIdGetMock = () => ({ +export const getBeleidsregelsLatestLineageIdGetMock = ( + overrideResponse: any = {} +): BeleidsregelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -4982,6 +5445,7 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -4990,7 +5454,9 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -5000,6 +5466,7 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5020,6 +5487,7 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5038,6 +5506,7 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5046,6 +5515,7 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5054,6 +5524,7 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5062,6 +5533,7 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5070,9 +5542,11 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -5085,6 +5559,7 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -5098,9 +5573,12 @@ export const getBeleidsregelsLatestLineageIdGetMock = () => ({ Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, }) -export const getBeleidsregelsRelationsLineageIdGetMock = () => +export const getBeleidsregelsRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): ReadRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -5115,17 +5593,20 @@ export const getBeleidsregelsRelationsLineageIdGetMock = () => faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + ...overrideResponse, })) -export const getBeleidsregelsRelationsLineageIdPutMock = () => ({ - message: faker.word.sample(), -}) +export const getBeleidsregelsRelationsLineageIdPutMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getBeleidsregelStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getBeleidsregelStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = () => ({ +export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseBeleidsregelExtended => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -5148,6 +5629,7 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5167,6 +5649,7 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5185,6 +5668,7 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5193,6 +5677,7 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5201,6 +5686,7 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5209,6 +5695,7 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5217,9 +5704,11 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -5233,323 +5722,346 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = () => ({ Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidsregelLineageIdPatchMock = () => ({ +export const getModulesModuleIdObjectBeleidsregelLineageIdPatchMock = ( + overrideResponse: any = {} +): BeleidsregelUUID => ({ Object_ID: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidsregelLatestLineageIdGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, +export const getModulesModuleIdObjectBeleidsregelLatestLineageIdGetMock = ( + overrideResponse: any = {} +): BeleidsregelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Title: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), - }) - -export const getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, + ...overrideResponse, + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), + undefined, + ]), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, + null, ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): BeleidsregelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Title: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, + ...overrideResponse, + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, +}) -export const getModulesObjectsBeleidsregelActiveLineageIdGetMock = () => +export const getModulesObjectsBeleidsregelActiveLineageIdGetMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -5563,6 +6075,7 @@ export const getModulesObjectsBeleidsregelActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5571,6 +6084,7 @@ export const getModulesObjectsBeleidsregelActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5586,10 +6100,12 @@ export const getModulesObjectsBeleidsregelActiveLineageIdGetMock = () => max: undefined, }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Module_Object: { Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -5599,10 +6115,14 @@ export const getModulesObjectsBeleidsregelActiveLineageIdGetMock = () => ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, + ...overrideResponse, })) -export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ +export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): BeleidsregelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -5629,6 +6149,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -5637,7 +6158,9 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -5647,6 +6170,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5667,6 +6191,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5685,6 +6210,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5693,6 +6219,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5701,6 +6228,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5709,6 +6237,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5717,9 +6246,11 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -5732,6 +6263,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -5745,9 +6277,12 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = () => ({ Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, }) -export const getGebiedsprogrammasValidGetMock = () => ({ +export const getGebiedsprogrammasValidGetMock = ( + overrideResponse: any = {} +): PagedResponseGebiedsprogrammaBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -5797,11 +6332,15 @@ export const getGebiedsprogrammasValidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getGebiedsprogrammasValidLineageIdGetMock = () => ({ +export const getGebiedsprogrammasValidLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseGebiedsprogrammaBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -5851,11 +6390,15 @@ export const getGebiedsprogrammasValidLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ +export const getGebiedsprogrammasVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): GebiedsprogrammaFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -5866,6 +6409,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5907,6 +6451,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -5915,7 +6460,9 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -5924,6 +6471,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5942,6 +6490,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5950,6 +6499,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5958,6 +6508,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5966,6 +6517,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -5974,9 +6526,11 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -5989,6 +6543,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -6001,9 +6556,12 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ +export const getGebiedsprogrammasLatestLineageIdGetMock = ( + overrideResponse: any = {} +): GebiedsprogrammaFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -6014,6 +6572,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6055,6 +6614,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -6063,7 +6623,9 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -6072,6 +6634,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6090,6 +6653,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6098,6 +6662,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6106,6 +6671,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6114,6 +6680,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6122,9 +6689,11 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -6137,6 +6706,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -6149,9 +6719,12 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getGebiedsprogrammasRelationsLineageIdGetMock = () => +export const getGebiedsprogrammasRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): ReadRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -6166,143 +6739,32 @@ export const getGebiedsprogrammasRelationsLineageIdGetMock = () => faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + ...overrideResponse, })) -export const getGebiedsprogrammasRelationsLineageIdPutMock = () => ({ - message: faker.word.sample(), -}) - -export const getGebiedsprogrammasStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) - -export const getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMock = - () => ({ - limit: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - offset: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - results: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Image: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - })), - total: faker.number.int({ min: undefined, max: undefined }), - }) +export const getGebiedsprogrammasRelationsLineageIdPutMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchMock = - () => ({ - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) +export const getGebiedsprogrammasStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock = - () => ({ +export const getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseGebiedsprogrammaExtended => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -6313,6 +6775,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6320,10 +6783,6 @@ export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock = `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), End_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -6335,48 +6794,12 @@ export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock = faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), Modified_By: faker.helpers.arrayElement([ { Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6395,6 +6818,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6403,61 +6827,232 @@ export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + ...overrideResponse, + }, + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchMock = ( + overrideResponse: any = {} +): GebiedsprogrammaUUID => ({ + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock = ( + overrideResponse: any = {} +): GebiedsprogrammaFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Image: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Title: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), + ...overrideResponse, }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = - () => ({ + (overrideResponse: any = {}): GebiedsprogrammaFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -6468,6 +7063,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6512,6 +7108,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -6523,7 +7120,9 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = max: undefined, }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -6532,6 +7131,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6550,6 +7150,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6558,6 +7159,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6566,6 +7168,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6574,6 +7177,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6582,9 +7186,11 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -6597,6 +7203,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -6609,9 +7216,12 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock = () => +export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -6625,6 +7235,7 @@ export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6633,6 +7244,7 @@ export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -6648,10 +7260,12 @@ export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock = () => max: undefined, }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Module_Object: { Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -6661,165 +7275,177 @@ export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock = () => ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, + ...overrideResponse, })) -export const getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Image: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ +export const getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): GebiedsprogrammaFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, + null, ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + undefined, + ]), + Image: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Title: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) -export const getMaatregelenValidGetMock = () => ({ +export const getMaatregelenValidGetMock = ( + overrideResponse: any = {} +): PagedResponseMaatregelBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -6865,11 +7491,15 @@ export const getMaatregelenValidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getMaatregelenValidLineageIdGetMock = () => ({ +export const getMaatregelenValidLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseMaatregelBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -6915,11 +7545,15 @@ export const getMaatregelenValidLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getMaatregelenVersionObjectUuidGetMock = () => ({ +export const getMaatregelenVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): MaatregelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -6946,6 +7580,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -6954,7 +7589,9 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -6980,6 +7617,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -6988,7 +7626,9 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -6998,6 +7638,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7029,6 +7670,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7054,6 +7696,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -7062,7 +7705,9 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -7076,6 +7721,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -7084,6 +7730,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7102,6 +7749,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7110,6 +7758,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7118,6 +7767,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7126,6 +7776,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7134,9 +7785,11 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -7149,6 +7802,7 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -7172,12 +7826,16 @@ export const getMaatregelenVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }) -export const getMaatregelenLatestLineageIdGetMock = () => ({ +export const getMaatregelenLatestLineageIdGetMock = ( + overrideResponse: any = {} +): MaatregelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -7204,6 +7862,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -7212,7 +7871,9 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -7238,6 +7899,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -7246,7 +7908,9 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -7256,6 +7920,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7287,6 +7952,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7312,6 +7978,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -7320,7 +7987,9 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -7334,6 +8003,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -7342,6 +8012,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7360,6 +8031,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7368,6 +8040,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7376,6 +8049,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7384,6 +8058,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7392,9 +8067,11 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -7407,6 +8084,7 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -7430,12 +8108,16 @@ export const getMaatregelenLatestLineageIdGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }) -export const getMaatregelenRelationsLineageIdGetMock = () => +export const getMaatregelenRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): ReadRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -7450,17 +8132,20 @@ export const getMaatregelenRelationsLineageIdGetMock = () => faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + ...overrideResponse, })) -export const getMaatregelenRelationsLineageIdPutMock = () => ({ - message: faker.word.sample(), -}) +export const getMaatregelenRelationsLineageIdPutMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getMaatregelStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getMaatregelStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ +export const getModulesModuleIdObjectMaatregelLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseMaatregelExtended => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -7483,6 +8168,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7516,6 +8202,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7528,6 +8215,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7546,6 +8234,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7554,6 +8243,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7562,6 +8252,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7570,6 +8261,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7578,9 +8270,11 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -7597,19 +8291,26 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getModulesModuleIdObjectMaatregelLineageIdPatchMock = () => ({ +export const getModulesModuleIdObjectMaatregelLineageIdPatchMock = ( + overrideResponse: any = {} +): MaatregelUUID => ({ Object_ID: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ +export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = ( + overrideResponse: any = {} +): MaatregelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -7636,6 +8337,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -7644,7 +8346,9 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -7670,6 +8374,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -7678,7 +8383,9 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -7688,6 +8395,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7719,6 +8427,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7744,6 +8453,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -7752,7 +8462,9 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -7766,6 +8478,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -7774,6 +8487,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7792,6 +8506,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7800,6 +8515,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7808,6 +8524,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7816,6 +8533,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -7824,325 +8542,339 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Role: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Werkingsgebied_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Werkingsgebied_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectMaatregelVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): MaatregelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidsdoelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Role: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Start_Validity: faker.helpers.arrayElement([ + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Effect: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, null, ]), undefined, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Werkingsgebied_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Werkingsgebied_Statics: faker.helpers.arrayElement([ + Gebied: faker.helpers.arrayElement([ { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + End_Validity: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + ID: faker.number.int({ min: undefined, max: undefined }), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Start_Validity: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), -}) - -export const getModulesModuleIdObjectMaatregelVersionObjectUuidGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Beleidsdoelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Effect: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Gebied: faker.helpers.arrayElement([ - { - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - End_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - ID: faker.number.int({ min: undefined, max: undefined }), - Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Start_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Title: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Gebiedsprogrammas: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Object_Type: faker.word.sample(), - }, - })), - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - }, - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Gebiedsprogrammas: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + Title: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Role: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Werkingsgebied_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Werkingsgebied_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, - undefined, + ...overrideResponse, + })), + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Role: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Werkingsgebied_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Werkingsgebied_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, +}) -export const getModulesObjectsMaatregelActiveLineageIdGetMock = () => +export const getModulesObjectsMaatregelActiveLineageIdGetMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -8156,6 +8888,7 @@ export const getModulesObjectsMaatregelActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8164,6 +8897,7 @@ export const getModulesObjectsMaatregelActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8179,10 +8913,12 @@ export const getModulesObjectsMaatregelActiveLineageIdGetMock = () => max: undefined, }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Module_Object: { Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -8192,10 +8928,14 @@ export const getModulesObjectsMaatregelActiveLineageIdGetMock = () => ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, + ...overrideResponse, })) -export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ +export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): MaatregelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -8222,6 +8962,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -8230,7 +8971,9 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -8256,6 +8999,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -8264,7 +9008,9 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -8274,6 +9020,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8305,6 +9052,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8330,6 +9078,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -8338,7 +9087,9 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -8352,6 +9103,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), @@ -8360,6 +9112,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8378,6 +9131,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8386,6 +9140,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8394,6 +9149,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8402,6 +9158,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8410,9 +9167,11 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -8425,6 +9184,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -8448,28 +9208,35 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = () => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }) -export const getNationaalBelangPostMock = () => ({ +export const getNationaalBelangPostMock = ( + overrideResponse: any = {} +): NationaalBelangUUID => ({ Object_ID: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getNationaalBelangLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getNationaalBelangLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getNationaalBelangLineageIdDeleteMock = () => ({ - message: faker.word.sample(), -}) +export const getNationaalBelangLineageIdDeleteMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getNationaalBelangValidGetMock = () => ({ +export const getNationaalBelangValidGetMock = ( + overrideResponse: any = {} +): PagedResponseNationaalBelangBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -8502,11 +9269,15 @@ export const getNationaalBelangValidGetMock = () => ({ Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getNationaalBelangLatestLineageIdGetMock = () => ({ +export const getNationaalBelangLatestLineageIdGetMock = ( + overrideResponse: any = {} +): NationaalBelangFull => ({ Beleidskeuzes: faker.helpers.arrayElement([ Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, @@ -8522,6 +9293,7 @@ export const getNationaalBelangLatestLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), undefined, ]), @@ -8531,6 +9303,7 @@ export const getNationaalBelangLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8550,6 +9323,7 @@ export const getNationaalBelangLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8569,6 +9343,7 @@ export const getNationaalBelangLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8577,9 +9352,11 @@ export const getNationaalBelangLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -8593,9 +9370,12 @@ export const getNationaalBelangLatestLineageIdGetMock = () => ({ Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, }) -export const getNationaalBelangRelationsLineageIdGetMock = () => +export const getNationaalBelangRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): ReadRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -8610,17 +9390,20 @@ export const getNationaalBelangRelationsLineageIdGetMock = () => faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + ...overrideResponse, })) -export const getNationaalBelangRelationsLineageIdPutMock = () => ({ - message: faker.word.sample(), -}) +export const getNationaalBelangRelationsLineageIdPutMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getNationaalBelangStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getNationaalBelangStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getProgrammasAlgemeenValidGetMock = () => ({ +export const getProgrammasAlgemeenValidGetMock = ( + overrideResponse: any = {} +): PagedResponseProgrammaAlgemeenBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -8666,11 +9449,15 @@ export const getProgrammasAlgemeenValidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getProgrammasAlgemeenValidLineageIdGetMock = () => ({ +export const getProgrammasAlgemeenValidLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseProgrammaAlgemeenBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -8716,11 +9503,15 @@ export const getProgrammasAlgemeenValidLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getProgrammasAlgemeenVersionObjectUuidGetMock = () => ({ +export const getProgrammasAlgemeenVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): ProgrammaAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -8731,6 +9522,7 @@ export const getProgrammasAlgemeenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8751,6 +9543,7 @@ export const getProgrammasAlgemeenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8769,6 +9562,7 @@ export const getProgrammasAlgemeenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8777,9 +9571,11 @@ export const getProgrammasAlgemeenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -8792,6 +9588,7 @@ export const getProgrammasAlgemeenVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -8804,9 +9601,12 @@ export const getProgrammasAlgemeenVersionObjectUuidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getProgrammasAlgemeenLatestLineageIdGetMock = () => ({ +export const getProgrammasAlgemeenLatestLineageIdGetMock = ( + overrideResponse: any = {} +): ProgrammaAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -8817,6 +9617,7 @@ export const getProgrammasAlgemeenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8837,6 +9638,7 @@ export const getProgrammasAlgemeenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8855,6 +9657,7 @@ export const getProgrammasAlgemeenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -8863,9 +9666,11 @@ export const getProgrammasAlgemeenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -8878,6 +9683,7 @@ export const getProgrammasAlgemeenLatestLineageIdGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -8890,111 +9696,28 @@ export const getProgrammasAlgemeenLatestLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getProgrammaAlgemeenStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) - -export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMock = - () => ({ - limit: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - offset: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - results: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - })), - total: faker.number.int({ min: undefined, max: undefined }), - }) - -export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchMock = - () => ({ - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) +export const getProgrammaAlgemeenStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock = - () => ({ +export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseProgrammaAlgemeenExtended => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -9005,6 +9728,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9012,10 +9736,6 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock = `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), End_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -9028,6 +9748,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9046,6 +9767,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9054,24 +9776,14 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), Start_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -9081,10 +9793,120 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock = ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchMock = ( + overrideResponse: any = {} +): ProgrammaAlgemeenUUID => ({ + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock = ( + overrideResponse: any = {} +): ProgrammaAlgemeenFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock = - () => ({ + (overrideResponse: any = {}): ProgrammaAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -9095,6 +9917,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9118,6 +9941,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9136,6 +9960,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9144,9 +9969,11 @@ export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -9159,6 +9986,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock = Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -9171,9 +9999,12 @@ export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock = ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock = () => +export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -9187,6 +10018,7 @@ export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9195,6 +10027,7 @@ export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9210,10 +10043,12 @@ export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock = () => max: undefined, }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Module_Object: { Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -9223,116 +10058,128 @@ export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock = () => ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, + ...overrideResponse, })) -export const getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ +export const getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): ProgrammaAlgemeenFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, + null, ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) -export const getVerplichtProgrammaPostMock = () => ({ +export const getVerplichtProgrammaPostMock = ( + overrideResponse: any = {} +): VerplichtProgrammaUUID => ({ Object_ID: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getVerplichtProgrammaLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getVerplichtProgrammaLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getVerplichtProgrammaLineageIdDeleteMock = () => ({ - message: faker.word.sample(), -}) +export const getVerplichtProgrammaLineageIdDeleteMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getVerplichtProgrammaValidGetMock = () => ({ +export const getVerplichtProgrammaValidGetMock = ( + overrideResponse: any = {} +): PagedResponseVerplichtProgrammaBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -9364,17 +10211,22 @@ export const getVerplichtProgrammaValidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getVerplichtProgrammaLatestLineageIdGetMock = () => ({ +export const getVerplichtProgrammaLatestLineageIdGetMock = ( + overrideResponse: any = {} +): VerplichtProgrammaFull => ({ Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), Created_By: faker.helpers.arrayElement([ { Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9412,6 +10264,7 @@ export const getVerplichtProgrammaLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -9420,7 +10273,9 @@ export const getVerplichtProgrammaLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -9429,6 +10284,7 @@ export const getVerplichtProgrammaLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9448,6 +10304,7 @@ export const getVerplichtProgrammaLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9456,9 +10313,11 @@ export const getVerplichtProgrammaLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -9495,12 +10354,16 @@ export const getVerplichtProgrammaLatestLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), undefined, ]), + ...overrideResponse, }) -export const getVerplichtProgrammaRelationsLineageIdGetMock = () => +export const getVerplichtProgrammaRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): ReadRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -9515,17 +10378,20 @@ export const getVerplichtProgrammaRelationsLineageIdGetMock = () => faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + ...overrideResponse, })) -export const getVerplichtProgrammaRelationsLineageIdPutMock = () => ({ - message: faker.word.sample(), -}) +export const getVerplichtProgrammaRelationsLineageIdPutMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getVerplichtProgrammaStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getVerplichtProgrammaStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getVisiesAlgemeenValidGetMock = () => ({ +export const getVisiesAlgemeenValidGetMock = ( + overrideResponse: any = {} +): PagedResponseVisieAlgemeenBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -9571,11 +10437,15 @@ export const getVisiesAlgemeenValidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getVisiesAlgemeenValidLineageIdGetMock = () => ({ +export const getVisiesAlgemeenValidLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseVisieAlgemeenBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -9621,11 +10491,15 @@ export const getVisiesAlgemeenValidLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getVisiesAlgemeenVersionObjectUuidGetMock = () => ({ +export const getVisiesAlgemeenVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): VisieAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -9636,6 +10510,7 @@ export const getVisiesAlgemeenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9656,6 +10531,7 @@ export const getVisiesAlgemeenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9674,6 +10550,7 @@ export const getVisiesAlgemeenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9682,9 +10559,11 @@ export const getVisiesAlgemeenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -9697,6 +10576,7 @@ export const getVisiesAlgemeenVersionObjectUuidGetMock = () => ({ Module_Object_UUID: faker.string.uuid(), Module_Status: faker.word.sample(), Module_Title: faker.word.sample(), + ...overrideResponse, })), undefined, ]), @@ -9709,9 +10589,12 @@ export const getVisiesAlgemeenVersionObjectUuidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getVisiesAlgemeenLatestLineageIdGetMock = () => ({ +export const getVisiesAlgemeenLatestLineageIdGetMock = ( + overrideResponse: any = {} +): VisieAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -9722,6 +10605,7 @@ export const getVisiesAlgemeenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9742,6 +10626,7 @@ export const getVisiesAlgemeenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -9750,244 +10635,77 @@ export const getVisiesAlgemeenLatestLineageIdGetMock = () => ({ undefined, ]), Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), -}) - -export const getVisieAlgemeenStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) - -export const getModulesModuleIdObjectVisieAlgemeenLineageIdGetMock = () => ({ - limit: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - offset: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - results: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - })), - total: faker.number.int({ min: undefined, max: undefined }), -}) - -export const getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMock = () => ({ - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), -}) - -export const getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) -export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock = - () => ({ +export const getVisieAlgemeenStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) + +export const getModulesModuleIdObjectVisieAlgemeenLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseVisieAlgemeenExtended => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -9998,6 +10716,7 @@ export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10005,10 +10724,6 @@ export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock = `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), End_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -10021,6 +10736,7 @@ export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10039,6 +10755,7 @@ export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10047,24 +10764,14 @@ export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), Start_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -10074,9 +10781,216 @@ export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock = ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMock = ( + overrideResponse: any = {} +): VisieAlgemeenUUID => ({ + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetMock = ( + overrideResponse: any = {} +): VisieAlgemeenFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): VisieAlgemeenFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) -export const getModulesObjectVisieAlgemeenActiveLineageIdGetMock = () => +export const getModulesObjectVisieAlgemeenActiveLineageIdGetMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -10090,6 +11004,7 @@ export const getModulesObjectVisieAlgemeenActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10098,6 +11013,7 @@ export const getModulesObjectVisieAlgemeenActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10113,10 +11029,12 @@ export const getModulesObjectVisieAlgemeenActiveLineageIdGetMock = () => max: undefined, }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Module_Object: { Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -10126,100 +11044,109 @@ export const getModulesObjectVisieAlgemeenActiveLineageIdGetMock = () => ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, + ...overrideResponse, })) -export const getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ +export const getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): VisieAlgemeenFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, + null, ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) -export const getWerkingsgebiedenValidGetMock = () => ({ +export const getWerkingsgebiedenValidGetMock = ( + overrideResponse: any = {} +): PagedResponseWerkingsgebiedBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -10266,11 +11193,15 @@ export const getWerkingsgebiedenValidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getWerkingsgebiedenValidLineageIdGetMock = () => ({ +export const getWerkingsgebiedenValidLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseWerkingsgebiedBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -10317,11 +11248,15 @@ export const getWerkingsgebiedenValidLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getWerkingsgebiedenVersionObjectUuidGetMock = () => ({ +export const getWerkingsgebiedenVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): WerkingsgebiedFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -10336,6 +11271,7 @@ export const getWerkingsgebiedenVersionObjectUuidGetMock = () => ({ Source_Title: faker.word.sample(), Source_UUID: faker.string.uuid(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10346,6 +11282,7 @@ export const getWerkingsgebiedenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10366,6 +11303,7 @@ export const getWerkingsgebiedenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10384,6 +11322,7 @@ export const getWerkingsgebiedenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10392,9 +11331,11 @@ export const getWerkingsgebiedenVersionObjectUuidGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -10407,9 +11348,12 @@ export const getWerkingsgebiedenVersionObjectUuidGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getWerkingsgebiedenLatestLineageIdGetMock = () => ({ +export const getWerkingsgebiedenLatestLineageIdGetMock = ( + overrideResponse: any = {} +): WerkingsgebiedFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -10424,6 +11368,7 @@ export const getWerkingsgebiedenLatestLineageIdGetMock = () => ({ Source_Title: faker.word.sample(), Source_UUID: faker.string.uuid(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10434,6 +11379,7 @@ export const getWerkingsgebiedenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10454,6 +11400,7 @@ export const getWerkingsgebiedenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10472,6 +11419,7 @@ export const getWerkingsgebiedenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10480,144 +11428,49 @@ export const getWerkingsgebiedenLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), -}) - -export const getWerkingsgebiedStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) - -export const getModulesModuleIdObjectWerkingsgebiedLineageIdGetMock = () => ({ - limit: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - offset: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - results: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - })), - total: faker.number.int({ min: undefined, max: undefined }), -}) - -export const getModulesModuleIdObjectWerkingsgebiedLineageIdPatchMock = () => ({ - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), undefined, ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock = - () => ({ +export const getWerkingsgebiedStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) + +export const getModulesModuleIdObjectWerkingsgebiedLineageIdGetMock = ( + overrideResponse: any = {} +): PagedResponseWerkingsgebiedExtended => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, ]), - Area: faker.helpers.arrayElement([ - { - Created_By_UUID: faker.string.uuid(), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Source_Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Source_Title: faker.word.sample(), - Source_UUID: faker.string.uuid(), - UUID: faker.string.uuid(), - }, - undefined, - ]), Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), Created_By: faker.helpers.arrayElement([ @@ -10625,6 +11478,7 @@ export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10632,10 +11486,6 @@ export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock = `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), End_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -10648,6 +11498,7 @@ export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10666,6 +11517,7 @@ export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10674,9 +11526,11 @@ export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock = Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -10689,103 +11543,220 @@ export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock = ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) -export const getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Area: faker.helpers.arrayElement([ - { - Created_By_UUID: faker.string.uuid(), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Source_Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Source_Title: faker.word.sample(), - Source_UUID: faker.string.uuid(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ +export const getModulesModuleIdObjectWerkingsgebiedLineageIdPatchMock = ( + overrideResponse: any = {} +): WerkingsgebiedUUID => ({ + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock = ( + overrideResponse: any = {} +): WerkingsgebiedFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Area: faker.helpers.arrayElement([ + { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Source_Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Source_Title: faker.word.sample(), + Source_UUID: faker.string.uuid(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, + null, ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, + null, ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): WerkingsgebiedFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Area: faker.helpers.arrayElement([ + { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Source_Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Source_Title: faker.word.sample(), + Source_UUID: faker.string.uuid(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) -export const getModulesObjectWerkingsgebiedActiveLineageIdGetMock = () => +export const getModulesObjectWerkingsgebiedActiveLineageIdGetMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -10799,6 +11770,7 @@ export const getModulesObjectWerkingsgebiedActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10807,6 +11779,7 @@ export const getModulesObjectWerkingsgebiedActiveLineageIdGetMock = () => Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -10822,10 +11795,12 @@ export const getModulesObjectWerkingsgebiedActiveLineageIdGetMock = () => max: undefined, }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Module_Object: { Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -10835,120 +11810,130 @@ export const getModulesObjectWerkingsgebiedActiveLineageIdGetMock = () => ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, + ...overrideResponse, })) -export const getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetMock = - () => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Area: faker.helpers.arrayElement([ - { - Created_By_UUID: faker.string.uuid(), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Source_Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Source_Title: faker.word.sample(), - Source_UUID: faker.string.uuid(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ +export const getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetMock = ( + overrideResponse: any = {} +): WerkingsgebiedFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Area: faker.helpers.arrayElement([ + { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Source_Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Source_Title: faker.word.sample(), + Source_UUID: faker.string.uuid(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, + null, ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, + ...overrideResponse, + }, + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - }) + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) -export const getWettelijkeTaakPostMock = () => ({ +export const getWettelijkeTaakPostMock = ( + overrideResponse: any = {} +): WettelijkeTaakUUID => ({ Object_ID: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, }) -export const getWettelijkeTaakLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getWettelijkeTaakLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getWettelijkeTaakLineageIdDeleteMock = () => ({ - message: faker.word.sample(), -}) +export const getWettelijkeTaakLineageIdDeleteMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getWettelijkeTaakValidGetMock = () => ({ +export const getWettelijkeTaakValidGetMock = ( + overrideResponse: any = {} +): PagedResponseWettelijkeTaakBasic => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -10981,11 +11966,15 @@ export const getWettelijkeTaakValidGetMock = () => ({ Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getWettelijkeTaakLatestLineageIdGetMock = () => ({ +export const getWettelijkeTaakLatestLineageIdGetMock = ( + overrideResponse: any = {} +): WettelijkeTaakFull => ({ Beleidskeuzes: faker.helpers.arrayElement([ Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, @@ -11008,6 +11997,7 @@ export const getWettelijkeTaakLatestLineageIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, Relation: { Description: faker.helpers.arrayElement([ @@ -11016,7 +12006,9 @@ export const getWettelijkeTaakLatestLineageIdGetMock = () => ({ ]), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }, + ...overrideResponse, })), undefined, ]), @@ -11026,6 +12018,7 @@ export const getWettelijkeTaakLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11045,6 +12038,7 @@ export const getWettelijkeTaakLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11064,6 +12058,7 @@ export const getWettelijkeTaakLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11072,9 +12067,11 @@ export const getWettelijkeTaakLatestLineageIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -11111,13 +12108,17 @@ export const getWettelijkeTaakLatestLineageIdGetMock = () => ({ ]), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, })), undefined, ]), Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, }) -export const getWettelijkeTaakRelationsLineageIdGetMock = () => +export const getWettelijkeTaakRelationsLineageIdGetMock = ( + overrideResponse: any = {} +): ReadRelation[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -11132,17 +12133,20 @@ export const getWettelijkeTaakRelationsLineageIdGetMock = () => faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + ...overrideResponse, })) -export const getWettelijkeTaakRelationsLineageIdPutMock = () => ({ - message: faker.word.sample(), -}) +export const getWettelijkeTaakRelationsLineageIdPutMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getWettelijkeTaakStaticLineageIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getWettelijkeTaakStaticLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getUsersGetMock = () => ({ +export const getUsersGetMock = ( + overrideResponse: any = {} +): PagedResponseUser => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11161,18 +12165,25 @@ export const getUsersGetMock = () => ({ Rol: faker.word.sample(), Status: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getUsersPostMock = () => ({ +export const getUsersPostMock = ( + overrideResponse: any = {} +): UserCreateResponse => ({ Email: faker.word.sample(), Password: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }) -export const getUsersSearchGetMock = () => ({ +export const getUsersSearchGetMock = ( + overrideResponse: any = {} +): PagedResponseUser => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11191,27 +12202,37 @@ export const getUsersSearchGetMock = () => ({ Rol: faker.word.sample(), Status: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getUsersUserUuidGetMock = () => ({ +export const getUsersUserUuidGetMock = (overrideResponse: any = {}): User => ({ Email: faker.word.sample(), Gebruikersnaam: faker.word.sample(), IsActive: faker.datatype.boolean(), Rol: faker.word.sample(), Status: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }) -export const getUsersUserUuidPostMock = () => ({ message: faker.word.sample() }) +export const getUsersUserUuidPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getUsersUserUuidResetPasswordPostMock = () => ({ +export const getUsersUserUuidResetPasswordPostMock = ( + overrideResponse: any = {} +): ResetPasswordResponse => ({ NewPassword: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }) -export const getSourceWerkingsgebiedenGetMock = () => ({ +export const getSourceWerkingsgebiedenGetMock = ( + overrideResponse: any = {} +): PagedResponseWerkingsgebied => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11237,11 +12258,15 @@ export const getSourceWerkingsgebiedenGetMock = () => ({ ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getSearchSourceGeoPostMock = () => ({ +export const getSearchSourceGeoPostMock = ( + overrideResponse: any = {} +): PagedResponseGeoSearchResult => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11268,11 +12293,15 @@ export const getSearchSourceGeoPostMock = () => ({ faker.word.sample(), faker.string.uuid(), ]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getSearchSourceGeometryPostMock = () => ({ +export const getSearchSourceGeometryPostMock = ( + overrideResponse: any = {} +): PagedResponseGeoSearchResult => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11299,11 +12328,15 @@ export const getSearchSourceGeometryPostMock = () => ({ faker.word.sample(), faker.string.uuid(), ]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getSearchPostMock = () => ({ +export const getSearchPostMock = ( + overrideResponse: any = {} +): PagedResponseSearchObject => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11327,11 +12360,15 @@ export const getSearchPostMock = () => ({ Score: faker.number.int({ min: undefined, max: undefined }), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getSearchValidPostMock = () => ({ +export const getSearchValidPostMock = ( + overrideResponse: any = {} +): PagedResponseValidSearchObject => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11351,11 +12388,15 @@ export const getSearchValidPostMock = () => ({ Score: faker.number.int({ min: undefined, max: undefined }), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getFullGraphGetMock = () => ({ +export const getFullGraphGetMock = ( + overrideResponse: any = {} +): GraphResponse => ({ Edges: Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -11363,6 +12404,7 @@ export const getFullGraphGetMock = () => ({ Type: faker.helpers.arrayElement(Object.values(GraphEdgeType)), Vertice_A_Code: faker.word.sample(), Vertice_B_Code: faker.word.sample(), + ...overrideResponse, })), Vertices: Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, @@ -11373,10 +12415,14 @@ export const getFullGraphGetMock = () => ({ Object_Type: faker.word.sample(), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), + ...overrideResponse, }) -export const getObjectGraphGetMock = () => ({ +export const getObjectGraphGetMock = ( + overrideResponse: any = {} +): GraphResponse => ({ Edges: Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -11384,6 +12430,7 @@ export const getObjectGraphGetMock = () => ({ Type: faker.helpers.arrayElement(Object.values(GraphEdgeType)), Vertice_A_Code: faker.word.sample(), Vertice_B_Code: faker.word.sample(), + ...overrideResponse, })), Vertices: Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, @@ -11394,10 +12441,14 @@ export const getObjectGraphGetMock = () => ({ Object_Type: faker.word.sample(), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), + ...overrideResponse, }) -export const getRevisionsGetMock = () => ({ +export const getRevisionsGetMock = ( + overrideResponse: any = {} +): PagedResponsePublicModuleShort => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11421,15 +12472,20 @@ export const getRevisionsGetMock = () => ({ ID: faker.number.int({ min: undefined, max: undefined }), Module_ID: faker.number.int({ min: undefined, max: undefined }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getRevisionsModuleIdGetMock = () => ({ +export const getRevisionsModuleIdGetMock = ( + overrideResponse: any = {} +): PublicModuleOverview => ({ Module: { Description: faker.word.sample(), Module_ID: faker.number.int({ min: undefined, max: undefined }), @@ -11442,10 +12498,12 @@ export const getRevisionsModuleIdGetMock = () => ({ ID: faker.number.int({ min: undefined, max: undefined }), Module_ID: faker.number.int({ min: undefined, max: undefined }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), + ...overrideResponse, }, Objects: Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, @@ -11462,6 +12520,7 @@ export const getRevisionsModuleIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -11469,10 +12528,14 @@ export const getRevisionsModuleIdGetMock = () => ({ Object_Type: faker.word.sample(), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), + ...overrideResponse, }) -export const getModulesGetMock = () => ({ +export const getModulesGetMock = ( + overrideResponse: any = {} +): PagedResponseModule => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11492,6 +12555,7 @@ export const getModulesGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11503,6 +12567,7 @@ export const getModulesGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11514,6 +12579,7 @@ export const getModulesGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11523,6 +12589,7 @@ export const getModulesGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11539,21 +12606,29 @@ export const getModulesGetMock = () => ({ ID: faker.number.int({ min: undefined, max: undefined }), Module_ID: faker.number.int({ min: undefined, max: undefined }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Successful: faker.datatype.boolean(), Temporary_Locked: faker.datatype.boolean(), Title: faker.word.sample(), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getModulesPostMock = () => ({ +export const getModulesPostMock = ( + overrideResponse: any = {} +): ModuleCreatedResponse => ({ Module_ID: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getModulesModuleIdGetMock = () => ({ +export const getModulesModuleIdGetMock = ( + overrideResponse: any = {} +): ModuleOverview => ({ Module: { Activated: faker.datatype.boolean(), Closed: faker.datatype.boolean(), @@ -11562,6 +12637,7 @@ export const getModulesModuleIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11573,6 +12649,7 @@ export const getModulesModuleIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11584,6 +12661,7 @@ export const getModulesModuleIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11593,6 +12671,7 @@ export const getModulesModuleIdGetMock = () => ({ Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, undefined, ]), @@ -11609,12 +12688,14 @@ export const getModulesModuleIdGetMock = () => ({ ID: faker.number.int({ min: undefined, max: undefined }), Module_ID: faker.number.int({ min: undefined, max: undefined }), Status: faker.word.sample(), + ...overrideResponse, }, undefined, ]), Successful: faker.datatype.boolean(), Temporary_Locked: faker.datatype.boolean(), Title: faker.word.sample(), + ...overrideResponse, }, Objects: Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, @@ -11630,6 +12711,7 @@ export const getModulesModuleIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -11657,11 +12739,13 @@ export const getModulesModuleIdGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, undefined, ]), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), StatusHistory: Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, @@ -11672,26 +12756,30 @@ export const getModulesModuleIdGetMock = () => ({ ID: faker.number.int({ min: undefined, max: undefined }), Module_ID: faker.number.int({ min: undefined, max: undefined }), Status: faker.word.sample(), + ...overrideResponse, })), + ...overrideResponse, }) -export const getModulesModuleIdPostMock = () => ({ - message: faker.word.sample(), -}) +export const getModulesModuleIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdActivatePostMock = () => ({ - message: faker.word.sample(), -}) +export const getModulesModuleIdActivatePostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdCompletePostMock = () => ({ - message: faker.word.sample(), -}) +export const getModulesModuleIdCompletePostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdClosePostMock = () => ({ - message: faker.word.sample(), -}) +export const getModulesModuleIdClosePostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdStatusGetMock = () => +export const getModulesModuleIdStatusGetMock = ( + overrideResponse: any = {} +): ModuleStatus[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -11701,70 +12789,84 @@ export const getModulesModuleIdStatusGetMock = () => ID: faker.number.int({ min: undefined, max: undefined }), Module_ID: faker.number.int({ min: undefined, max: undefined }), Status: faker.word.sample(), + ...overrideResponse, })) -export const getModulesModuleIdStatusPatchMock = () => ({ - message: faker.word.sample(), -}) +export const getModulesModuleIdStatusPatchMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdAddNewObjectPostMock = () => ({ +export const getModulesModuleIdAddNewObjectPostMock = ( + overrideResponse: any = {} +): NewObjectStaticResponse => ({ Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, }) -export const getModulesModuleIdAddExistingObjectPostMock = () => ({ - message: faker.word.sample(), -}) +export const getModulesModuleIdAddExistingObjectPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectContextObjectTypeLineageIdGetMock = - () => ({ - Action: faker.word.sample(), - Code: faker.word.sample(), - Conclusion: faker.word.sample(), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Explanation: faker.word.sample(), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - }, - undefined, - ]), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - Original_Adjust_On: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - }) +export const getModulesModuleIdObjectContextObjectTypeLineageIdGetMock = ( + overrideResponse: any = {} +): ModuleObjectContext => ({ + Action: faker.word.sample(), + Code: faker.word.sample(), + Conclusion: faker.word.sample(), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Explanation: faker.word.sample(), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + Original_Adjust_On: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, +}) -export const getModulesModuleIdObjectContextObjectTypeLineageIdPostMock = - () => ({ message: faker.word.sample() }) +export const getModulesModuleIdObjectContextObjectTypeLineageIdPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdRemoveObjectTypeLineageIdDeleteMock = () => ({ - message: faker.word.sample(), -}) +export const getModulesModuleIdRemoveObjectTypeLineageIdDeleteMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdSnapshotStatusIdGetMock = () => ({ +export const getModulesModuleIdSnapshotStatusIdGetMock = ( + overrideResponse: any = {} +): ModuleSnapshot => ({ Objects: Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 ).map(() => ({})), + ...overrideResponse, }) -export const getModulesObjectsLatestGetMock = () => ({ +export const getModulesObjectsLatestGetMock = ( + overrideResponse: any = {} +): PagedResponseModuleObjectShortStatus => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11787,6 +12889,7 @@ export const getModulesObjectsLatestGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -11814,26 +12917,34 @@ export const getModulesObjectsLatestGetMock = () => ({ faker.string.uuid(), undefined, ]), + ...overrideResponse, }, undefined, ]), Status: faker.word.sample(), Title: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getObjectsValidCountGetMock = () => +export const getObjectsValidCountGetMock = ( + overrideResponse: any = {} +): ObjectCount[] => Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 ).map(() => ({ Count: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), + ...overrideResponse, })) -export const getObjectsValidGetMock = () => ({ +export const getObjectsValidGetMock = ( + overrideResponse: any = {} +): PagedResponseGenericObjectShort => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11850,11 +12961,15 @@ export const getObjectsValidGetMock = () => ({ Object_Type: faker.word.sample(), Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.string.uuid(), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getPublicationsGetMock = () => ({ +export const getPublicationsGetMock = ( + overrideResponse: any = {} +): PagedResponsePublication => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11883,11 +12998,15 @@ export const getPublicationsGetMock = () => ({ ]), UUID: faker.string.uuid(), Work_ID: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getPublicationsPostMock = () => ({ +export const getPublicationsPostMock = ( + overrideResponse: any = {} +): Publication => ({ Created_By_UUID: faker.string.uuid(), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Document_Type: faker.helpers.arrayElement( @@ -11904,9 +13023,12 @@ export const getPublicationsPostMock = () => ({ ]), UUID: faker.string.uuid(), Work_ID: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getPublicationsPublicationUuidGetMock = () => ({ +export const getPublicationsPublicationUuidGetMock = ( + overrideResponse: any = {} +): Publication => ({ Created_By_UUID: faker.string.uuid(), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Document_Type: faker.helpers.arrayElement( @@ -11923,9 +13045,12 @@ export const getPublicationsPublicationUuidGetMock = () => ({ ]), UUID: faker.string.uuid(), Work_ID: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getPublicationsPublicationUuidPatchMock = () => ({ +export const getPublicationsPublicationUuidPatchMock = ( + overrideResponse: any = {} +): Publication => ({ Created_By_UUID: faker.string.uuid(), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Document_Type: faker.helpers.arrayElement( @@ -11942,9 +13067,12 @@ export const getPublicationsPublicationUuidPatchMock = () => ({ ]), UUID: faker.string.uuid(), Work_ID: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getPublicationsPublicationUuidBillsGetMock = () => ({ +export const getPublicationsPublicationUuidBillsGetMock = ( + overrideResponse: any = {} +): PagedResponsePublicationBillShort => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -11959,6 +13087,7 @@ export const getPublicationsPublicationUuidBillsGetMock = () => ({ ).map(() => ({ Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Is_Official: faker.datatype.boolean(), + Locked: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_Status_ID: faker.number.int({ min: undefined, max: undefined }), Procedure_Type: faker.helpers.arrayElement( @@ -11970,11 +13099,15 @@ export const getPublicationsPublicationUuidBillsGetMock = () => ({ faker.number.int({ min: undefined, max: undefined }), undefined, ]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getPublicationsPublicationUuidBillsPostMock = () => ({ +export const getPublicationsPublicationUuidBillsPostMock = ( + overrideResponse: any = {} +): PublicationBill => ({ Announcement_Date: faker.date.past().toISOString().split('T')[0], Bill_Data: faker.helpers.arrayElement([ { @@ -11986,6 +13119,7 @@ export const getPublicationsPublicationUuidBillsPostMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -12000,6 +13134,7 @@ export const getPublicationsPublicationUuidBillsPostMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, })), undefined, ]), @@ -12019,9 +13154,11 @@ export const getPublicationsPublicationUuidBillsPostMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -12043,7 +13180,9 @@ export const getPublicationsPublicationUuidBillsPostMock = () => ({ Step_Type: faker.helpers.arrayElement( Object.values(ProcedureStepType) ), + ...overrideResponse, })), + ...overrideResponse, }, undefined, ]), @@ -12058,9 +13197,12 @@ export const getPublicationsPublicationUuidBillsPostMock = () => ({ faker.number.int({ min: undefined, max: undefined }), undefined, ]), + ...overrideResponse, }) -export const getPublicationsPublicationUuidBillsBillUuidGetMock = () => ({ +export const getPublicationsPublicationUuidBillsBillUuidGetMock = ( + overrideResponse: any = {} +): PublicationBill => ({ Announcement_Date: faker.date.past().toISOString().split('T')[0], Bill_Data: faker.helpers.arrayElement([ { @@ -12072,6 +13214,7 @@ export const getPublicationsPublicationUuidBillsBillUuidGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -12086,6 +13229,7 @@ export const getPublicationsPublicationUuidBillsBillUuidGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, })), undefined, ]), @@ -12105,9 +13249,11 @@ export const getPublicationsPublicationUuidBillsBillUuidGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -12129,7 +13275,9 @@ export const getPublicationsPublicationUuidBillsBillUuidGetMock = () => ({ Step_Type: faker.helpers.arrayElement( Object.values(ProcedureStepType) ), + ...overrideResponse, })), + ...overrideResponse, }, undefined, ]), @@ -12144,9 +13292,12 @@ export const getPublicationsPublicationUuidBillsBillUuidGetMock = () => ({ faker.number.int({ min: undefined, max: undefined }), undefined, ]), + ...overrideResponse, }) -export const getPublicationsPublicationUuidBillsBillUuidPatchMock = () => ({ +export const getPublicationsPublicationUuidBillsBillUuidPatchMock = ( + overrideResponse: any = {} +): PublicationBill => ({ Announcement_Date: faker.date.past().toISOString().split('T')[0], Bill_Data: faker.helpers.arrayElement([ { @@ -12158,6 +13309,7 @@ export const getPublicationsPublicationUuidBillsBillUuidPatchMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -12172,6 +13324,7 @@ export const getPublicationsPublicationUuidBillsBillUuidPatchMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, })), undefined, ]), @@ -12191,9 +13344,11 @@ export const getPublicationsPublicationUuidBillsBillUuidPatchMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, }, undefined, ]), + ...overrideResponse, }, undefined, ]), @@ -12215,7 +13370,9 @@ export const getPublicationsPublicationUuidBillsBillUuidPatchMock = () => ({ Step_Type: faker.helpers.arrayElement( Object.values(ProcedureStepType) ), + ...overrideResponse, })), + ...overrideResponse, }, undefined, ]), @@ -12230,9 +13387,12 @@ export const getPublicationsPublicationUuidBillsBillUuidPatchMock = () => ({ faker.number.int({ min: undefined, max: undefined }), undefined, ]), + ...overrideResponse, }) -export const getPublicationBillsBillUuidPackagesGetMock = () => ({ +export const getPublicationBillsBillUuidPackagesGetMock = ( + overrideResponse: any = {} +): PagedResponsePublicationPackage => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -12289,144 +13449,23 @@ export const getPublicationBillsBillUuidPackagesGetMock = () => ({ faker.date.past().toISOString().split('.')[0] }Z`, ID: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }, undefined, ]), + Latest_Download_By_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Latest_Download_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), Modified_By_UUID: faker.string.uuid(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Package_Event_Type: faker.helpers.arrayElement( Object.values(PackageEventType) ), - Publication_Bill: faker.helpers.arrayElement([ - { - Announcement_Date: faker.date - .past() - .toISOString() - .split('T')[0], - Bill_Data: faker.helpers.arrayElement([ - { - Amendment_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - }, - undefined, - ]), - Articles: faker.helpers.arrayElement([ - Array.from( - { - length: faker.number.int({ - min: 1, - max: 10, - }), - }, - (_, i) => i + 1 - ).map(() => ({ - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - })), - undefined, - ]), - Bill_Title: faker.word.sample(), - Closing: faker.word.sample(), - Preamble: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Regulation_Title: faker.word.sample(), - Signature: faker.word.sample(), - Time_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - }, - undefined, - ]), - }, - undefined, - ]), - Created_By_UUID: faker.string.uuid(), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Effective_Date: faker.date.past().toISOString().split('T')[0], - Is_Official: faker.datatype.boolean(), - Modified_By_UUID: faker.string.uuid(), - Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Module_Status_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Procedure_Data: faker.helpers.arrayElement([ - { - Announcement_Date: faker.date - .past() - .toISOString() - .split('T')[0], - Steps: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Conclusion_Date: faker.date - .past() - .toISOString() - .split('T')[0], - Step_Type: faker.helpers.arrayElement( - Object.values(ProcedureStepType) - ), - })), - }, - undefined, - ]), - Procedure_Type: faker.helpers.arrayElement( - Object.values(ProcedureType) - ), - Publication_UUID: faker.string.uuid(), - PZH_Bill_Identifier: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.string.uuid(), - Version_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - }, - undefined, - ]), - Publication_Config: faker.helpers.arrayElement([ - { - Act_Componentname: faker.word.sample(), - Authority_ID: faker.word.sample(), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - DSO_BHKV_VERSION: faker.word.sample(), - DSO_STOP_VERSION: faker.word.sample(), - DSO_TPOD_VERSION: faker.word.sample(), - Governing_Body_Type: faker.word.sample(), - ID: faker.number.int({ min: undefined, max: undefined }), - Jurisdiction: faker.word.sample(), - Province_ID: faker.word.sample(), - Subjects: faker.word.sample(), - Submitter_ID: faker.word.sample(), - }, - undefined, - ]), Publication_Filename: faker.helpers.arrayElement([ faker.word.sample(), undefined, @@ -12458,6 +13497,7 @@ export const getPublicationBillsBillUuidPackagesGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, })), undefined, ]), @@ -12474,11 +13514,15 @@ export const getPublicationBillsBillUuidPackagesGetMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }) -export const getPublicationBillsBillUuidPackagesPostMock = () => ({ +export const getPublicationBillsBillUuidPackagesPostMock = ( + overrideResponse: any = {} +): PublicationPackage => ({ Announcement_Date: faker.date.past().toISOString().split('T')[0], Bill_UUID: faker.string.uuid(), Config_ID: faker.number.int({ min: undefined, max: undefined }), @@ -12515,130 +13559,23 @@ export const getPublicationBillsBillUuidPackagesPostMock = () => ({ ]), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, ID: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, }, undefined, ]), + Latest_Download_By_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Latest_Download_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), Modified_By_UUID: faker.string.uuid(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Package_Event_Type: faker.helpers.arrayElement( Object.values(PackageEventType) ), - Publication_Bill: faker.helpers.arrayElement([ - { - Announcement_Date: faker.date.past().toISOString().split('T')[0], - Bill_Data: faker.helpers.arrayElement([ - { - Amendment_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - }, - undefined, - ]), - Articles: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - })), - undefined, - ]), - Bill_Title: faker.word.sample(), - Closing: faker.word.sample(), - Preamble: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Regulation_Title: faker.word.sample(), - Signature: faker.word.sample(), - Time_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - }, - undefined, - ]), - }, - undefined, - ]), - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Effective_Date: faker.date.past().toISOString().split('T')[0], - Is_Official: faker.datatype.boolean(), - Modified_By_UUID: faker.string.uuid(), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_Status_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Procedure_Data: faker.helpers.arrayElement([ - { - Announcement_Date: faker.date - .past() - .toISOString() - .split('T')[0], - Steps: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Conclusion_Date: faker.date - .past() - .toISOString() - .split('T')[0], - Step_Type: faker.helpers.arrayElement( - Object.values(ProcedureStepType) - ), - })), - }, - undefined, - ]), - Procedure_Type: faker.helpers.arrayElement( - Object.values(ProcedureType) - ), - Publication_UUID: faker.string.uuid(), - PZH_Bill_Identifier: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.string.uuid(), - Version_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - }, - undefined, - ]), - Publication_Config: faker.helpers.arrayElement([ - { - Act_Componentname: faker.word.sample(), - Authority_ID: faker.word.sample(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - DSO_BHKV_VERSION: faker.word.sample(), - DSO_STOP_VERSION: faker.word.sample(), - DSO_TPOD_VERSION: faker.word.sample(), - Governing_Body_Type: faker.word.sample(), - ID: faker.number.int({ min: undefined, max: undefined }), - Jurisdiction: faker.word.sample(), - Province_ID: faker.word.sample(), - Subjects: faker.word.sample(), - Submitter_ID: faker.word.sample(), - }, - undefined, - ]), Publication_Filename: faker.helpers.arrayElement([ faker.word.sample(), undefined, @@ -12668,6 +13605,7 @@ export const getPublicationBillsBillUuidPackagesPostMock = () => ({ faker.word.sample(), undefined, ]), + ...overrideResponse, })), undefined, ]), @@ -12681,9 +13619,12 @@ export const getPublicationBillsBillUuidPackagesPostMock = () => ({ undefined, ]), ZIP_File_Name: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, }) -export const getPublicationPackagesPackageUuidReportPostMock = () => ({ +export const getPublicationPackagesPackageUuidReportPostMock = ( + overrideResponse: any = {} +): PublicationPackageReport => ({ Created_By_UUID: faker.string.uuid(), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, ID: faker.number.int({ min: undefined, max: undefined }), @@ -12695,34 +13636,279 @@ export const getPublicationPackagesPackageUuidReportPostMock = () => ({ ]), Report_Type: faker.helpers.arrayElement([faker.word.sample(), undefined]), Result: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, }) -export const getLoginAccessTokenPostMock = () => ({ +export const getLoginAccessTokenPostMock = ( + overrideResponse: any = {} +): AuthToken => ({ access_token: faker.word.sample(), identifier: { Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), UUID: faker.string.uuid(), + ...overrideResponse, }, token_type: faker.word.sample(), + ...overrideResponse, }) -export const getPasswordResetPostMock = () => ({ message: faker.word.sample() }) +export const getPasswordResetPostMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getOmgevingsbeleidAPIMock = () => [ - http.get('*/ambities/valid', async () => { +export const getAmbitiesValidGetMockHandler = ( + overrideResponse?: PagedResponseAmbitieBasic +) => { + return http.get('*/ambities/valid', async () => { await delay(1000) - return new HttpResponse(JSON.stringify(getAmbitiesValidGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/ambities/valid/:lineageId', async () => { + return new HttpResponse( + JSON.stringify( + overrideResponse ? overrideResponse : getAmbitiesValidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getAmbitiesValidLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseAmbitieBasic +) => { + return http.get('*/ambities/valid/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getAmbitiesValidLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getAmbitiesVersionObjectUuidGetMockHandler = ( + overrideResponse?: AmbitieFull +) => { + return http.get('*/ambities/version/:objectUuid', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getAmbitiesVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getAmbitiesLatestLineageIdGetMockHandler = ( + overrideResponse?: AmbitieFull +) => { + return http.get('*/ambities/latest/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getAmbitiesLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getAmbitiesRelationsLineageIdGetMockHandler = ( + overrideResponse?: ReadRelation[] +) => { + return http.get('*/ambities/relations/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getAmbitiesRelationsLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getAmbitiesRelationsLineageIdPutMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.put('*/ambities/relations/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getAmbitiesRelationsLineageIdPutMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getAmbitieStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/ambitie/static/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getAmbitieStaticLineageIdPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getModulesModuleIdObjectAmbitieLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseAmbitieExtended +) => { + return http.get( + '*/modules/:moduleId/object/ambitie/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectAmbitieLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getModulesModuleIdObjectAmbitieLineageIdPatchMockHandler = ( + overrideResponse?: AmbitieUUID +) => { + return http.patch( + '*/modules/:moduleId/object/ambitie/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectAmbitieLineageIdPatchMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMockHandler = ( + overrideResponse?: AmbitieFull +) => { + return http.get( + '*/modules/:moduleId/object/ambitie/latest/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectAmbitieLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMockHandler = ( + overrideResponse?: AmbitieFull +) => { + return http.get( + '*/modules/:moduleId/object/ambitie/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getModulesObjectAmbitieActiveLineageIdGetMockHandler = ( + overrideResponse?: ActiveModuleObjectWrapper[] +) => { + return http.get('*/modules/object/ambitie/active/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getAmbitiesValidLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesObjectAmbitieActiveLineageIdGetMock() + ), { status: 200, headers: { @@ -12730,11 +13916,44 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/ambities/version/:objectUuid', async () => { + }) +} + +export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMockHandler = ( + overrideResponse?: AmbitieFull +) => { + return http.get( + '*/revisions/:moduleId/ambitie/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getRevisionsModuleIdAmbitieVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getBeleidsdoelenValidGetMockHandler = ( + overrideResponse?: PagedResponseBeleidsdoelBasic +) => { + return http.get('*/beleidsdoelen/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getAmbitiesVersionObjectUuidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsdoelenValidGetMock() + ), { status: 200, headers: { @@ -12742,11 +13961,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/ambities/latest/:lineageId', async () => { + }) +} + +export const getBeleidsdoelenValidLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseBeleidsdoelBasic +) => { + return http.get('*/beleidsdoelen/valid/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getAmbitiesLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsdoelenValidLineageIdGetMock() + ), { status: 200, headers: { @@ -12754,11 +13982,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/ambities/relations/:lineageId', async () => { + }) +} + +export const getBeleidsdoelenVersionObjectUuidGetMockHandler = ( + overrideResponse?: BeleidsdoelFull +) => { + return http.get('*/beleidsdoelen/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getAmbitiesRelationsLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsdoelenVersionObjectUuidGetMock() + ), { status: 200, headers: { @@ -12766,11 +14003,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.put('*/ambities/relations/:lineageId', async () => { + }) +} + +export const getBeleidsdoelenLatestLineageIdGetMockHandler = ( + overrideResponse?: BeleidsdoelFull +) => { + return http.get('*/beleidsdoelen/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getAmbitiesRelationsLineageIdPutMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsdoelenLatestLineageIdGetMock() + ), { status: 200, headers: { @@ -12778,11 +14024,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/ambitie/static/:lineageId', async () => { + }) +} + +export const getBeleidsdoelenRelationsLineageIdGetMockHandler = ( + overrideResponse?: ReadRelation[] +) => { + return http.get('*/beleidsdoelen/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getAmbitieStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsdoelenRelationsLineageIdGetMock() + ), { status: 200, headers: { @@ -12790,11 +14045,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/modules/:moduleId/object/ambitie/:lineageId', async () => { + }) +} + +export const getBeleidsdoelenRelationsLineageIdPutMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.put('*/beleidsdoelen/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdObjectAmbitieLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsdoelenRelationsLineageIdPutMock() + ), { status: 200, headers: { @@ -12802,11 +14066,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.patch('*/modules/:moduleId/object/ambitie/:lineageId', async () => { + }) +} + +export const getBeleidsdoelStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/beleidsdoel/static/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdObjectAmbitieLineageIdPatchMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsdoelStaticLineageIdPostMock() + ), { status: 200, headers: { @@ -12814,14 +14087,21 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/modules/:moduleId/object/ambitie/latest/:lineageId', + }) +} + +export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseBeleidsdoelExtended +) => { + return http.get( + '*/modules/:moduleId/object/beleidsdoel/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectAmbitieLatestLineageIdGetMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidsdoelLineageIdGetMock() ), { status: 200, @@ -12831,14 +14111,21 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/modules/:moduleId/object/ambitie/version/:objectUuid', + ) +} + +export const getModulesModuleIdObjectBeleidsdoelLineageIdPatchMockHandler = ( + overrideResponse?: BeleidsdoelUUID +) => { + return http.patch( + '*/modules/:moduleId/object/beleidsdoel/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidsdoelLineageIdPatchMock() ), { status: 200, @@ -12848,49 +14135,114 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get('*/modules/object/ambitie/active/:lineageId', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getModulesObjectAmbitieActiveLineageIdGetMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.get('*/revisions/:moduleId/ambitie/version/:objectUuid', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getRevisionsModuleIdAmbitieVersionObjectUuidGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, + ) +} + +export const getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetMockHandler = + (overrideResponse?: BeleidsdoelFull) => { + return http.get( + '*/modules/:moduleId/object/beleidsdoel/latest/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) } ) - }), - http.get('*/beleidsdoelen/valid', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getBeleidsdoelenValidGetMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, + } + +export const getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetMockHandler = + (overrideResponse?: BeleidsdoelFull) => { + return http.get( + '*/modules/:moduleId/object/beleidsdoel/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) } ) - }), - http.get('*/beleidsdoelen/valid/:lineageId', async () => { + } + +export const getModulesObjectBeleidsdoelActiveLineageIdGetMockHandler = ( + overrideResponse?: ActiveModuleObjectWrapper[] +) => { + return http.get( + '*/modules/object/beleidsdoel/active/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesObjectBeleidsdoelActiveLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMockHandler = ( + overrideResponse?: BeleidsdoelFull +) => { + return http.get( + '*/revisions/:moduleId/beleidsdoel/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getBeleidskeuzesValidGetMockHandler = ( + overrideResponse?: PagedResponseBeleidskeuzeBasic +) => { + return http.get('*/beleidskeuzes/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsdoelenValidLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidskeuzesValidGetMock() + ), { status: 200, headers: { @@ -12898,11 +14250,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/beleidsdoelen/version/:objectUuid', async () => { + }) +} + +export const getBeleidskeuzesValidLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseBeleidskeuzeBasic +) => { + return http.get('*/beleidskeuzes/valid/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsdoelenVersionObjectUuidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidskeuzesValidLineageIdGetMock() + ), { status: 200, headers: { @@ -12910,11 +14271,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/beleidsdoelen/latest/:lineageId', async () => { + }) +} + +export const getBeleidskeuzesVersionObjectUuidGetMockHandler = ( + overrideResponse?: BeleidskeuzeFull +) => { + return http.get('*/beleidskeuzes/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsdoelenLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidskeuzesVersionObjectUuidGetMock() + ), { status: 200, headers: { @@ -12922,11 +14292,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/beleidsdoelen/relations/:lineageId', async () => { + }) +} + +export const getBeleidskeuzesLatestLineageIdGetMockHandler = ( + overrideResponse?: BeleidskeuzeFull +) => { + return http.get('*/beleidskeuzes/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsdoelenRelationsLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidskeuzesLatestLineageIdGetMock() + ), { status: 200, headers: { @@ -12934,11 +14313,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.put('*/beleidsdoelen/relations/:lineageId', async () => { + }) +} + +export const getBeleidskeuzesRelationsLineageIdGetMockHandler = ( + overrideResponse?: ReadRelation[] +) => { + return http.get('*/beleidskeuzes/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsdoelenRelationsLineageIdPutMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidskeuzesRelationsLineageIdGetMock() + ), { status: 200, headers: { @@ -12946,11 +14334,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/beleidsdoel/static/:lineageId', async () => { + }) +} + +export const getBeleidskeuzesRelationsLineageIdPutMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.put('*/beleidskeuzes/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsdoelStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidskeuzesRelationsLineageIdPutMock() + ), { status: 200, headers: { @@ -12958,12 +14355,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/modules/:moduleId/object/beleidsdoel/:lineageId', async () => { + }) +} + +export const getBeleidskeuzeStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/beleidskeuze/static/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectBeleidsdoelLineageIdGetMock() + overrideResponse + ? overrideResponse + : getBeleidskeuzeStaticLineageIdPostMock() ), { status: 200, @@ -12972,14 +14376,21 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.patch( - '*/modules/:moduleId/object/beleidsdoel/:lineageId', + }) +} + +export const getBeleidskeuzeAcknowledgedRelationsLineageIdGetMockHandler = ( + overrideResponse?: AcknowledgedRelation[] +) => { + return http.get( + '*/beleidskeuze/acknowledged-relations/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectBeleidsdoelLineageIdPatchMock() + overrideResponse + ? overrideResponse + : getBeleidskeuzeAcknowledgedRelationsLineageIdGetMock() ), { status: 200, @@ -12989,14 +14400,21 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/modules/:moduleId/object/beleidsdoel/latest/:lineageId', + ) +} + +export const getBeleidskeuzeAcknowledgedRelationsLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post( + '*/beleidskeuze/acknowledged-relations/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetMock() + overrideResponse + ? overrideResponse + : getBeleidskeuzeAcknowledgedRelationsLineageIdPostMock() ), { status: 200, @@ -13006,14 +14424,44 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/modules/:moduleId/object/beleidsdoel/version/:objectUuid', + ) +} + +export const getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostMockHandler = + (overrideResponse?: ResponseOK) => { + return http.post( + '*/beleidskeuze/acknowledged-relations/:lineageId/edit', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseBeleidskeuzeExtended +) => { + return http.get( + '*/modules/:moduleId/object/beleidskeuze/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock() ), { status: 200, @@ -13023,26 +14471,21 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get('*/modules/object/beleidsdoel/active/:lineageId', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getModulesObjectBeleidsdoelActiveLineageIdGetMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.get( - '*/revisions/:moduleId/beleidsdoel/version/:objectUuid', + ) +} + +export const getModulesModuleIdObjectBeleidskeuzeLineageIdPatchMockHandler = ( + overrideResponse?: BeleidskeuzeUUID +) => { + return http.patch( + '*/modules/:moduleId/object/beleidskeuze/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidskeuzeLineageIdPatchMock() ), { status: 200, @@ -13052,47 +14495,114 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get('*/beleidskeuzes/valid', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getBeleidskeuzesValidGetMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.get('*/beleidskeuzes/valid/:lineageId', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getBeleidskeuzesValidLineageIdGetMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, + ) +} + +export const getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMockHandler = + (overrideResponse?: BeleidskeuzeFull) => { + return http.get( + '*/modules/:moduleId/object/beleidskeuze/latest/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) } ) - }), - http.get('*/beleidskeuzes/version/:objectUuid', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getBeleidskeuzesVersionObjectUuidGetMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, + } + +export const getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetMockHandler = + (overrideResponse?: BeleidskeuzeFull) => { + return http.get( + '*/modules/:moduleId/object/beleidskeuze/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) } ) - }), - http.get('*/beleidskeuzes/latest/:lineageId', async () => { + } + +export const getModulesObjectsBeleidskeuzeActiveLineageIdGetMockHandler = ( + overrideResponse?: ActiveModuleObjectWrapper[] +) => { + return http.get( + '*/modules/objects/beleidskeuze/active/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesObjectsBeleidskeuzeActiveLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMockHandler = ( + overrideResponse?: BeleidskeuzeFull +) => { + return http.get( + '*/revisions/:moduleId/beleidskeuze/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getBeleidsregelsValidGetMockHandler = ( + overrideResponse?: PagedResponseBeleidsregelBasic +) => { + return http.get('*/beleidsregels/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidskeuzesLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsregelsValidGetMock() + ), { status: 200, headers: { @@ -13100,11 +14610,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/beleidskeuzes/relations/:lineageId', async () => { + }) +} + +export const getBeleidsregelsValidLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseBeleidsregelBasic +) => { + return http.get('*/beleidsregels/valid/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidskeuzesRelationsLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsregelsValidLineageIdGetMock() + ), { status: 200, headers: { @@ -13112,11 +14631,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.put('*/beleidskeuzes/relations/:lineageId', async () => { + }) +} + +export const getBeleidsregelsVersionObjectUuidGetMockHandler = ( + overrideResponse?: BeleidsregelFull +) => { + return http.get('*/beleidsregels/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidskeuzesRelationsLineageIdPutMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsregelsVersionObjectUuidGetMock() + ), { status: 200, headers: { @@ -13124,11 +14652,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/beleidskeuze/static/:lineageId', async () => { + }) +} + +export const getBeleidsregelsLatestLineageIdGetMockHandler = ( + overrideResponse?: BeleidsregelFull +) => { + return http.get('*/beleidsregels/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidskeuzeStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getBeleidsregelsLatestLineageIdGetMock() + ), { status: 200, headers: { @@ -13136,12 +14673,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/beleidskeuze/acknowledged-relations/:lineageId', async () => { + }) +} + +export const getBeleidsregelsRelationsLineageIdGetMockHandler = ( + overrideResponse?: ReadRelation[] +) => { + return http.get('*/beleidsregels/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getBeleidskeuzeAcknowledgedRelationsLineageIdGetMock() + overrideResponse + ? overrideResponse + : getBeleidsregelsRelationsLineageIdGetMock() ), { status: 200, @@ -13150,12 +14694,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/beleidskeuze/acknowledged-relations/:lineageId', async () => { + }) +} + +export const getBeleidsregelsRelationsLineageIdPutMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.put('*/beleidsregels/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getBeleidskeuzeAcknowledgedRelationsLineageIdPostMock() + overrideResponse + ? overrideResponse + : getBeleidsregelsRelationsLineageIdPutMock() ), { status: 200, @@ -13164,29 +14715,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post( - '*/beleidskeuze/acknowledged-relations/:lineageId/edit', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get('*/modules/:moduleId/object/beleidskeuze/:lineageId', async () => { + }) +} + +export const getBeleidsregelStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/beleidsregel/static/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock() + overrideResponse + ? overrideResponse + : getBeleidsregelStaticLineageIdPostMock() ), { status: 200, @@ -13195,14 +14736,21 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.patch( - '*/modules/:moduleId/object/beleidskeuze/:lineageId', + }) +} + +export const getModulesModuleIdObjectBeleidsregelLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseBeleidsregelExtended +) => { + return http.get( + '*/modules/:moduleId/object/beleidsregel/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectBeleidskeuzeLineageIdPatchMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidsregelLineageIdGetMock() ), { status: 200, @@ -13212,14 +14760,21 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/modules/:moduleId/object/beleidskeuze/latest/:lineageId', + ) +} + +export const getModulesModuleIdObjectBeleidsregelLineageIdPatchMockHandler = ( + overrideResponse?: BeleidsregelUUID +) => { + return http.patch( + '*/modules/:moduleId/object/beleidsregel/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidsregelLineageIdPatchMock() ), { status: 200, @@ -13229,14 +14784,67 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/modules/:moduleId/object/beleidskeuze/version/:objectUuid', + ) +} + +export const getModulesModuleIdObjectBeleidsregelLatestLineageIdGetMockHandler = + (overrideResponse?: BeleidsregelFull) => { + return http.get( + '*/modules/:moduleId/object/beleidsregel/latest/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidsregelLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetMockHandler = + (overrideResponse?: BeleidsregelFull) => { + return http.get( + '*/modules/:moduleId/object/beleidsregel/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesObjectsBeleidsregelActiveLineageIdGetMockHandler = ( + overrideResponse?: ActiveModuleObjectWrapper[] +) => { + return http.get( + '*/modules/objects/beleidsregel/active/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getModulesObjectsBeleidsregelActiveLineageIdGetMock() ), { status: 200, @@ -13246,28 +14854,21 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get('*/modules/objects/beleidskeuze/active/:lineageId', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesObjectsBeleidskeuzeActiveLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.get( - '*/revisions/:moduleId/beleidskeuze/version/:objectUuid', + ) +} + +export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMockHandler = ( + overrideResponse?: BeleidsregelFull +) => { + return http.get( + '*/revisions/:moduleId/beleidsregel/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock() ), { status: 200, @@ -13277,35 +14878,20 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get('*/beleidsregels/valid', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getBeleidsregelsValidGetMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.get('*/beleidsregels/valid/:lineageId', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getBeleidsregelsValidLineageIdGetMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.get('*/beleidsregels/version/:objectUuid', async () => { + ) +} + +export const getGebiedsprogrammasValidGetMockHandler = ( + overrideResponse?: PagedResponseGebiedsprogrammaBasic +) => { + return http.get('*/gebiedsprogrammas/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsregelsVersionObjectUuidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getGebiedsprogrammasValidGetMock() + ), { status: 200, headers: { @@ -13313,11 +14899,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/beleidsregels/latest/:lineageId', async () => { + }) +} + +export const getGebiedsprogrammasValidLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseGebiedsprogrammaBasic +) => { + return http.get('*/gebiedsprogrammas/valid/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsregelsLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getGebiedsprogrammasValidLineageIdGetMock() + ), { status: 200, headers: { @@ -13325,11 +14920,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/beleidsregels/relations/:lineageId', async () => { + }) +} + +export const getGebiedsprogrammasVersionObjectUuidGetMockHandler = ( + overrideResponse?: GebiedsprogrammaFull +) => { + return http.get('*/gebiedsprogrammas/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsregelsRelationsLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getGebiedsprogrammasVersionObjectUuidGetMock() + ), { status: 200, headers: { @@ -13337,11 +14941,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.put('*/beleidsregels/relations/:lineageId', async () => { + }) +} + +export const getGebiedsprogrammasLatestLineageIdGetMockHandler = ( + overrideResponse?: GebiedsprogrammaFull +) => { + return http.get('*/gebiedsprogrammas/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsregelsRelationsLineageIdPutMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getGebiedsprogrammasLatestLineageIdGetMock() + ), { status: 200, headers: { @@ -13349,11 +14962,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/beleidsregel/static/:lineageId', async () => { + }) +} + +export const getGebiedsprogrammasRelationsLineageIdGetMockHandler = ( + overrideResponse?: ReadRelation[] +) => { + return http.get('*/gebiedsprogrammas/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getBeleidsregelStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getGebiedsprogrammasRelationsLineageIdGetMock() + ), { status: 200, headers: { @@ -13361,12 +14983,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/modules/:moduleId/object/beleidsregel/:lineageId', async () => { + }) +} + +export const getGebiedsprogrammasRelationsLineageIdPutMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.put('*/gebiedsprogrammas/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectBeleidsregelLineageIdGetMock() + overrideResponse + ? overrideResponse + : getGebiedsprogrammasRelationsLineageIdPutMock() ), { status: 200, @@ -13375,63 +15004,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.patch( - '*/modules/:moduleId/object/beleidsregel/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectBeleidsregelLineageIdPatchMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get( - '*/modules/:moduleId/object/beleidsregel/latest/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectBeleidsregelLatestLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get( - '*/modules/:moduleId/object/beleidsregel/version/:objectUuid', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get('*/modules/objects/beleidsregel/active/:lineageId', async () => { + }) +} + +export const getGebiedsprogrammasStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/gebiedsprogrammas/static/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesObjectsBeleidsregelActiveLineageIdGetMock() + overrideResponse + ? overrideResponse + : getGebiedsprogrammasStaticLineageIdPostMock() ), { status: 200, @@ -13440,14 +15025,113 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/revisions/:moduleId/beleidsregel/version/:objectUuid', + }) +} + +export const getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMockHandler = + (overrideResponse?: PagedResponseGebiedsprogrammaExtended) => { + return http.get( + '*/modules/:moduleId/object/gebiedsprogrammas/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchMockHandler = + (overrideResponse?: GebiedsprogrammaUUID) => { + return http.patch( + '*/modules/:moduleId/object/gebiedsprogrammas/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMockHandler = + (overrideResponse?: GebiedsprogrammaFull) => { + return http.get( + '*/modules/:moduleId/object/gebiedsprogrammas/latest/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMockHandler = + (overrideResponse?: GebiedsprogrammaFull) => { + return http.get( + '*/modules/:moduleId/object/gebiedsprogrammas/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMockHandler = ( + overrideResponse?: ActiveModuleObjectWrapper[] +) => { + return http.get( + '*/modules/objects/gebiedsprogramma/active/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock() ), { status: 200, @@ -13457,11 +15141,43 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get('*/gebiedsprogrammas/valid', async () => { + ) +} + +export const getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetMockHandler = + (overrideResponse?: GebiedsprogrammaFull) => { + return http.get( + '*/revisions/:moduleId/gebiedsprogramma/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getMaatregelenValidGetMockHandler = ( + overrideResponse?: PagedResponseMaatregelBasic +) => { + return http.get('*/maatregelen/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getGebiedsprogrammasValidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getMaatregelenValidGetMock() + ), { status: 200, headers: { @@ -13469,11 +15185,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/gebiedsprogrammas/valid/:lineageId', async () => { + }) +} + +export const getMaatregelenValidLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseMaatregelBasic +) => { + return http.get('*/maatregelen/valid/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getGebiedsprogrammasValidLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getMaatregelenValidLineageIdGetMock() + ), { status: 200, headers: { @@ -13481,11 +15206,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/gebiedsprogrammas/version/:objectUuid', async () => { + }) +} + +export const getMaatregelenVersionObjectUuidGetMockHandler = ( + overrideResponse?: MaatregelFull +) => { + return http.get('*/maatregelen/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getGebiedsprogrammasVersionObjectUuidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getMaatregelenVersionObjectUuidGetMock() + ), { status: 200, headers: { @@ -13493,11 +15227,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/gebiedsprogrammas/latest/:lineageId', async () => { + }) +} + +export const getMaatregelenLatestLineageIdGetMockHandler = ( + overrideResponse?: MaatregelFull +) => { + return http.get('*/maatregelen/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getGebiedsprogrammasLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getMaatregelenLatestLineageIdGetMock() + ), { status: 200, headers: { @@ -13505,11 +15248,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/gebiedsprogrammas/relations/:lineageId', async () => { + }) +} + +export const getMaatregelenRelationsLineageIdGetMockHandler = ( + overrideResponse?: ReadRelation[] +) => { + return http.get('*/maatregelen/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getGebiedsprogrammasRelationsLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getMaatregelenRelationsLineageIdGetMock() + ), { status: 200, headers: { @@ -13517,11 +15269,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.put('*/gebiedsprogrammas/relations/:lineageId', async () => { + }) +} + +export const getMaatregelenRelationsLineageIdPutMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.put('*/maatregelen/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getGebiedsprogrammasRelationsLineageIdPutMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getMaatregelenRelationsLineageIdPutMock() + ), { status: 200, headers: { @@ -13529,11 +15290,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/gebiedsprogrammas/static/:lineageId', async () => { + }) +} + +export const getMaatregelStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/maatregel/static/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getGebiedsprogrammasStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getMaatregelStaticLineageIdPostMock() + ), { status: 200, headers: { @@ -13541,31 +15311,21 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/modules/:moduleId/object/gebiedsprogrammas/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.patch( - '*/modules/:moduleId/object/gebiedsprogrammas/:lineageId', + }) +} + +export const getModulesModuleIdObjectMaatregelLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseMaatregelExtended +) => { + return http.get( + '*/modules/:moduleId/object/maatregel/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectMaatregelLineageIdGetMock() ), { status: 200, @@ -13575,14 +15335,21 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/modules/:moduleId/object/gebiedsprogrammas/latest/:lineageId', + ) +} + +export const getModulesModuleIdObjectMaatregelLineageIdPatchMockHandler = ( + overrideResponse?: MaatregelUUID +) => { + return http.patch( + '*/modules/:moduleId/object/maatregel/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectMaatregelLineageIdPatchMock() ), { status: 200, @@ -13592,14 +15359,21 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/modules/:moduleId/object/gebiedsprogrammas/version/:objectUuid', + ) +} + +export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMockHandler = ( + overrideResponse?: MaatregelFull +) => { + return http.get( + '*/modules/:moduleId/object/maatregel/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectMaatregelLatestLineageIdGetMock() ), { status: 200, @@ -13609,14 +15383,44 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/modules/objects/gebiedsprogramma/active/:lineageId', + ) +} + +export const getModulesModuleIdObjectMaatregelVersionObjectUuidGetMockHandler = + (overrideResponse?: MaatregelFull) => { + return http.get( + '*/modules/:moduleId/object/maatregel/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectMaatregelVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesObjectsMaatregelActiveLineageIdGetMockHandler = ( + overrideResponse?: ActiveModuleObjectWrapper[] +) => { + return http.get( + '*/modules/objects/maatregel/active/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock() + overrideResponse + ? overrideResponse + : getModulesObjectsMaatregelActiveLineageIdGetMock() ), { status: 200, @@ -13626,14 +15430,21 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/revisions/:moduleId/gebiedsprogramma/version/:objectUuid', + ) +} + +export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMockHandler = ( + overrideResponse?: MaatregelFull +) => { + return http.get( + '*/revisions/:moduleId/maatregel/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getRevisionsModuleIdMaatregelVersionObjectUuidGetMock() ), { status: 200, @@ -13643,20 +15454,125 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get('*/maatregelen/valid', async () => { + ) +} + +export const getNationaalBelangPostMockHandler = ( + overrideResponse?: NationaalBelangUUID +) => { + return http.post('*/nationaal-belang', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getNationaalBelangPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getNationaalBelangLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/nationaal-belang/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getNationaalBelangLineageIdPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getNationaalBelangLineageIdDeleteMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.delete('*/nationaal-belang/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getNationaalBelangLineageIdDeleteMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getNationaalBelangValidGetMockHandler = ( + overrideResponse?: PagedResponseNationaalBelangBasic +) => { + return http.get('*/nationaal-belang/valid', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getNationaalBelangValidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getNationaalBelangLatestLineageIdGetMockHandler = ( + overrideResponse?: NationaalBelangFull +) => { + return http.get('*/nationaal-belang/latest/:lineageId', async () => { await delay(1000) - return new HttpResponse(JSON.stringify(getMaatregelenValidGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/maatregelen/valid/:lineageId', async () => { + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getNationaalBelangLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getNationaalBelangRelationsLineageIdGetMockHandler = ( + overrideResponse?: ReadRelation[] +) => { + return http.get('*/nationaal-belang/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getMaatregelenValidLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getNationaalBelangRelationsLineageIdGetMock() + ), { status: 200, headers: { @@ -13664,11 +15580,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/maatregelen/version/:objectUuid', async () => { + }) +} + +export const getNationaalBelangRelationsLineageIdPutMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.put('*/nationaal-belang/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getMaatregelenVersionObjectUuidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getNationaalBelangRelationsLineageIdPutMock() + ), { status: 200, headers: { @@ -13676,11 +15601,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/maatregelen/latest/:lineageId', async () => { + }) +} + +export const getNationaalBelangStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/nationaal-belang/static/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getMaatregelenLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getNationaalBelangStaticLineageIdPostMock() + ), { status: 200, headers: { @@ -13688,11 +15622,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/maatregelen/relations/:lineageId', async () => { + }) +} + +export const getProgrammasAlgemeenValidGetMockHandler = ( + overrideResponse?: PagedResponseProgrammaAlgemeenBasic +) => { + return http.get('*/programmas-algemeen/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getMaatregelenRelationsLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getProgrammasAlgemeenValidGetMock() + ), { status: 200, headers: { @@ -13700,11 +15643,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.put('*/maatregelen/relations/:lineageId', async () => { + }) +} + +export const getProgrammasAlgemeenValidLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseProgrammaAlgemeenBasic +) => { + return http.get('*/programmas-algemeen/valid/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getMaatregelenRelationsLineageIdPutMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getProgrammasAlgemeenValidLineageIdGetMock() + ), { status: 200, headers: { @@ -13712,11 +15664,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/maatregel/static/:lineageId', async () => { + }) +} + +export const getProgrammasAlgemeenVersionObjectUuidGetMockHandler = ( + overrideResponse?: ProgrammaAlgemeenFull +) => { + return http.get('*/programmas-algemeen/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getMaatregelStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getProgrammasAlgemeenVersionObjectUuidGetMock() + ), { status: 200, headers: { @@ -13724,11 +15685,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/modules/:moduleId/object/maatregel/:lineageId', async () => { + }) +} + +export const getProgrammasAlgemeenLatestLineageIdGetMockHandler = ( + overrideResponse?: ProgrammaAlgemeenFull +) => { + return http.get('*/programmas-algemeen/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdObjectMaatregelLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getProgrammasAlgemeenLatestLineageIdGetMock() + ), { status: 200, headers: { @@ -13736,12 +15706,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.patch('*/modules/:moduleId/object/maatregel/:lineageId', async () => { + }) +} + +export const getProgrammaAlgemeenStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/programma-algemeen/static/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectMaatregelLineageIdPatchMock() + overrideResponse + ? overrideResponse + : getProgrammaAlgemeenStaticLineageIdPostMock() ), { status: 200, @@ -13750,31 +15727,113 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/modules/:moduleId/object/maatregel/latest/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectMaatregelLatestLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get( - '*/modules/:moduleId/object/maatregel/version/:objectUuid', + }) +} + +export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMockHandler = + (overrideResponse?: PagedResponseProgrammaAlgemeenExtended) => { + return http.get( + '*/modules/:moduleId/object/programma-algemeen/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchMockHandler = + (overrideResponse?: ProgrammaAlgemeenUUID) => { + return http.patch( + '*/modules/:moduleId/object/programma-algemeen/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMockHandler = + (overrideResponse?: ProgrammaAlgemeenFull) => { + return http.get( + '*/modules/:moduleId/object/programma-algemeen/latest/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMockHandler = + (overrideResponse?: ProgrammaAlgemeenFull) => { + return http.get( + '*/modules/:moduleId/object/programma-algemeen/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMockHandler = ( + overrideResponse?: ActiveModuleObjectWrapper[] +) => { + return http.get( + '*/modules/object/programma-algemeen/active/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectMaatregelVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock() ), { status: 200, @@ -13784,11 +15843,43 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get('*/modules/objects/maatregel/active/:lineageId', async () => { + ) +} + +export const getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetMockHandler = + (overrideResponse?: ProgrammaAlgemeenFull) => { + return http.get( + '*/revisions/:moduleId/programma-algemeen/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getVerplichtProgrammaPostMockHandler = ( + overrideResponse?: VerplichtProgrammaUUID +) => { + return http.post('*/verplicht-programma', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesObjectsMaatregelActiveLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getVerplichtProgrammaPostMock() + ), { status: 200, headers: { @@ -13796,37 +15887,125 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/revisions/:moduleId/maatregel/version/:objectUuid', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getRevisionsModuleIdMaatregelVersionObjectUuidGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.post('*/nationaal-belang', async () => { + }) +} + +export const getVerplichtProgrammaLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/verplicht-programma/:lineageId', async () => { await delay(1000) - return new HttpResponse(JSON.stringify(getNationaalBelangPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/nationaal-belang/:lineageId', async () => { + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getVerplichtProgrammaLineageIdPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getVerplichtProgrammaLineageIdDeleteMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.delete('*/verplicht-programma/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getVerplichtProgrammaLineageIdDeleteMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getVerplichtProgrammaValidGetMockHandler = ( + overrideResponse?: PagedResponseVerplichtProgrammaBasic +) => { + return http.get('*/verplicht-programma/valid', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getVerplichtProgrammaValidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getVerplichtProgrammaLatestLineageIdGetMockHandler = ( + overrideResponse?: VerplichtProgrammaFull +) => { + return http.get('*/verplicht-programma/latest/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getVerplichtProgrammaLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getVerplichtProgrammaRelationsLineageIdGetMockHandler = ( + overrideResponse?: ReadRelation[] +) => { + return http.get('*/verplicht-programma/relations/:lineageId', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getVerplichtProgrammaRelationsLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getVerplichtProgrammaRelationsLineageIdPutMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.put('*/verplicht-programma/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getNationaalBelangLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getVerplichtProgrammaRelationsLineageIdPutMock() + ), { status: 200, headers: { @@ -13834,11 +16013,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.delete('*/nationaal-belang/:lineageId', async () => { + }) +} + +export const getVerplichtProgrammaStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/verplicht-programma/static/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getNationaalBelangLineageIdDeleteMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getVerplichtProgrammaStaticLineageIdPostMock() + ), { status: 200, headers: { @@ -13846,11 +16034,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/nationaal-belang/valid', async () => { + }) +} + +export const getVisiesAlgemeenValidGetMockHandler = ( + overrideResponse?: PagedResponseVisieAlgemeenBasic +) => { + return http.get('*/visies-algemeen/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getNationaalBelangValidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getVisiesAlgemeenValidGetMock() + ), { status: 200, headers: { @@ -13858,11 +16055,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/nationaal-belang/latest/:lineageId', async () => { + }) +} + +export const getVisiesAlgemeenValidLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseVisieAlgemeenBasic +) => { + return http.get('*/visies-algemeen/valid/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getNationaalBelangLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getVisiesAlgemeenValidLineageIdGetMock() + ), { status: 200, headers: { @@ -13870,11 +16076,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/nationaal-belang/relations/:lineageId', async () => { + }) +} + +export const getVisiesAlgemeenVersionObjectUuidGetMockHandler = ( + overrideResponse?: VisieAlgemeenFull +) => { + return http.get('*/visies-algemeen/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getNationaalBelangRelationsLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getVisiesAlgemeenVersionObjectUuidGetMock() + ), { status: 200, headers: { @@ -13882,11 +16097,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.put('*/nationaal-belang/relations/:lineageId', async () => { + }) +} + +export const getVisiesAlgemeenLatestLineageIdGetMockHandler = ( + overrideResponse?: VisieAlgemeenFull +) => { + return http.get('*/visies-algemeen/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getNationaalBelangRelationsLineageIdPutMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getVisiesAlgemeenLatestLineageIdGetMock() + ), { status: 200, headers: { @@ -13894,11 +16118,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/nationaal-belang/static/:lineageId', async () => { + }) +} + +export const getVisieAlgemeenStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/visie-algemeen/static/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getNationaalBelangStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getVisieAlgemeenStaticLineageIdPostMock() + ), { status: 200, headers: { @@ -13906,11 +16139,161 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/programmas-algemeen/valid', async () => { + }) +} + +export const getModulesModuleIdObjectVisieAlgemeenLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseVisieAlgemeenExtended +) => { + return http.get( + '*/modules/:moduleId/object/visie-algemeen/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectVisieAlgemeenLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMockHandler = ( + overrideResponse?: VisieAlgemeenUUID +) => { + return http.patch( + '*/modules/:moduleId/object/visie-algemeen/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetMockHandler = + (overrideResponse?: VisieAlgemeenFull) => { + return http.get( + '*/modules/:moduleId/object/visie-algemeen/latest/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMockHandler = + (overrideResponse?: VisieAlgemeenFull) => { + return http.get( + '*/modules/:moduleId/object/visie-algemeen/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesObjectVisieAlgemeenActiveLineageIdGetMockHandler = ( + overrideResponse?: ActiveModuleObjectWrapper[] +) => { + return http.get( + '*/modules/object/visie-algemeen/active/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesObjectVisieAlgemeenActiveLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetMockHandler = + (overrideResponse?: VisieAlgemeenFull) => { + return http.get( + '*/revisions/:moduleId/visie-algemeen/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getWerkingsgebiedenValidGetMockHandler = ( + overrideResponse?: PagedResponseWerkingsgebiedBasic +) => { + return http.get('*/werkingsgebieden/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getProgrammasAlgemeenValidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWerkingsgebiedenValidGetMock() + ), { status: 200, headers: { @@ -13918,11 +16301,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/programmas-algemeen/valid/:lineageId', async () => { + }) +} + +export const getWerkingsgebiedenValidLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseWerkingsgebiedBasic +) => { + return http.get('*/werkingsgebieden/valid/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getProgrammasAlgemeenValidLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWerkingsgebiedenValidLineageIdGetMock() + ), { status: 200, headers: { @@ -13930,11 +16322,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/programmas-algemeen/version/:objectUuid', async () => { + }) +} + +export const getWerkingsgebiedenVersionObjectUuidGetMockHandler = ( + overrideResponse?: WerkingsgebiedFull +) => { + return http.get('*/werkingsgebieden/version/:objectUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getProgrammasAlgemeenVersionObjectUuidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWerkingsgebiedenVersionObjectUuidGetMock() + ), { status: 200, headers: { @@ -13942,11 +16343,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/programmas-algemeen/latest/:lineageId', async () => { + }) +} + +export const getWerkingsgebiedenLatestLineageIdGetMockHandler = ( + overrideResponse?: WerkingsgebiedFull +) => { + return http.get('*/werkingsgebieden/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getProgrammasAlgemeenLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWerkingsgebiedenLatestLineageIdGetMock() + ), { status: 200, headers: { @@ -13954,11 +16364,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/programma-algemeen/static/:lineageId', async () => { + }) +} + +export const getWerkingsgebiedStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/werkingsgebied/static/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getProgrammaAlgemeenStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWerkingsgebiedStaticLineageIdPostMock() + ), { status: 200, headers: { @@ -13966,65 +16385,21 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/modules/:moduleId/object/programma-algemeen/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.patch( - '*/modules/:moduleId/object/programma-algemeen/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get( - '*/modules/:moduleId/object/programma-algemeen/latest/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get( - '*/modules/:moduleId/object/programma-algemeen/version/:objectUuid', + }) +} + +export const getModulesModuleIdObjectWerkingsgebiedLineageIdGetMockHandler = ( + overrideResponse?: PagedResponseWerkingsgebiedExtended +) => { + return http.get( + '*/modules/:moduleId/object/werkingsgebied/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectWerkingsgebiedLineageIdGetMock() ), { status: 200, @@ -14034,14 +16409,21 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/modules/object/programma-algemeen/active/:lineageId', + ) +} + +export const getModulesModuleIdObjectWerkingsgebiedLineageIdPatchMockHandler = ( + overrideResponse?: WerkingsgebiedUUID +) => { + return http.patch( + '*/modules/:moduleId/object/werkingsgebied/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectWerkingsgebiedLineageIdPatchMock() ), { status: 200, @@ -14051,14 +16433,67 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get( - '*/revisions/:moduleId/programma-algemeen/version/:objectUuid', + ) +} + +export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMockHandler = + (overrideResponse?: WerkingsgebiedFull) => { + return http.get( + '*/modules/:moduleId/object/werkingsgebied/latest/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetMockHandler = + (overrideResponse?: WerkingsgebiedFull) => { + return http.get( + '*/modules/:moduleId/object/werkingsgebied/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesObjectWerkingsgebiedActiveLineageIdGetMockHandler = ( + overrideResponse?: ActiveModuleObjectWrapper[] +) => { + return http.get( + '*/modules/object/werkingsgebied/active/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetMock() + overrideResponse + ? overrideResponse + : getModulesObjectWerkingsgebiedActiveLineageIdGetMock() ), { status: 200, @@ -14068,47 +16503,43 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.post('*/verplicht-programma', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getVerplichtProgrammaPostMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.post('*/verplicht-programma/:lineageId', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getVerplichtProgrammaLineageIdPostMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.delete('*/verplicht-programma/:lineageId', async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify(getVerplichtProgrammaLineageIdDeleteMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, + ) +} + +export const getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetMockHandler = + (overrideResponse?: WerkingsgebiedFull) => { + return http.get( + '*/revisions/:moduleId/werkingsgebied/version/:objectUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) } ) - }), - http.get('*/verplicht-programma/valid', async () => { + } + +export const getWettelijkeTaakPostMockHandler = ( + overrideResponse?: WettelijkeTaakUUID +) => { + return http.post('*/wettelijke-taak', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getVerplichtProgrammaValidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWettelijkeTaakPostMock() + ), { status: 200, headers: { @@ -14116,11 +16547,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/verplicht-programma/latest/:lineageId', async () => { + }) +} + +export const getWettelijkeTaakLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/wettelijke-taak/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getVerplichtProgrammaLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWettelijkeTaakLineageIdPostMock() + ), { status: 200, headers: { @@ -14128,11 +16568,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/verplicht-programma/relations/:lineageId', async () => { + }) +} + +export const getWettelijkeTaakLineageIdDeleteMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.delete('*/wettelijke-taak/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getVerplichtProgrammaRelationsLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWettelijkeTaakLineageIdDeleteMock() + ), { status: 200, headers: { @@ -14140,11 +16589,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.put('*/verplicht-programma/relations/:lineageId', async () => { + }) +} + +export const getWettelijkeTaakValidGetMockHandler = ( + overrideResponse?: PagedResponseWettelijkeTaakBasic +) => { + return http.get('*/wettelijke-taak/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getVerplichtProgrammaRelationsLineageIdPutMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWettelijkeTaakValidGetMock() + ), { status: 200, headers: { @@ -14152,11 +16610,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/verplicht-programma/static/:lineageId', async () => { + }) +} + +export const getWettelijkeTaakLatestLineageIdGetMockHandler = ( + overrideResponse?: WettelijkeTaakFull +) => { + return http.get('*/wettelijke-taak/latest/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getVerplichtProgrammaStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWettelijkeTaakLatestLineageIdGetMock() + ), { status: 200, headers: { @@ -14164,11 +16631,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/visies-algemeen/valid', async () => { + }) +} + +export const getWettelijkeTaakRelationsLineageIdGetMockHandler = ( + overrideResponse?: ReadRelation[] +) => { + return http.get('*/wettelijke-taak/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getVisiesAlgemeenValidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWettelijkeTaakRelationsLineageIdGetMock() + ), { status: 200, headers: { @@ -14176,11 +16652,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/visies-algemeen/valid/:lineageId', async () => { + }) +} + +export const getWettelijkeTaakRelationsLineageIdPutMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.put('*/wettelijke-taak/relations/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getVisiesAlgemeenValidLineageIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWettelijkeTaakRelationsLineageIdPutMock() + ), { status: 200, headers: { @@ -14188,11 +16673,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/visies-algemeen/version/:objectUuid', async () => { + }) +} + +export const getWettelijkeTaakStaticLineageIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/wettelijke-taak/static/:lineageId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getVisiesAlgemeenVersionObjectUuidGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getWettelijkeTaakStaticLineageIdPostMock() + ), { status: 200, headers: { @@ -14200,134 +16694,61 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/visies-algemeen/latest/:lineageId', async () => { + }) +} + +export const getPlaygroundDoDsoModuleIdPostMockHandler = () => { + return http.post('*/playground/do-dso/:moduleId', async () => { await delay(1000) - return new HttpResponse( - JSON.stringify(getVisiesAlgemeenLatestLineageIdGetMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.post('*/visie-algemeen/static/:lineageId', async () => { + return new HttpResponse(null, { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + }) + }) +} + +export const getPlaygroundCheckGeoGetMockHandler = () => { + return http.get('*/playground/check-geo', async () => { await delay(1000) - return new HttpResponse( - JSON.stringify(getVisieAlgemeenStaticLineageIdPostMock()), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - }), - http.get( - '*/modules/:moduleId/object/visie-algemeen/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectVisieAlgemeenLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.patch( - '*/modules/:moduleId/object/visie-algemeen/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get( - '*/modules/:moduleId/object/visie-algemeen/latest/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get( - '*/modules/:moduleId/object/visie-algemeen/version/:objectUuid', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get('*/modules/object/visie-algemeen/active/:lineageId', async () => { + return new HttpResponse(null, { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + }) + }) +} + +export const getUsersGetMockHandler = ( + overrideResponse?: PagedResponseUser +) => { + return http.get('*/users', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesObjectVisieAlgemeenActiveLineageIdGetMock() + overrideResponse ? overrideResponse : getUsersGetMock() ), { status: 200, headers: { 'Content-Type': 'application/json', }, - } - ) - }), - http.get( - '*/revisions/:moduleId/visie-algemeen/version/:objectUuid', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get('*/werkingsgebieden/valid', async () => { + } + ) + }) +} + +export const getUsersPostMockHandler = ( + overrideResponse?: UserCreateResponse +) => { + return http.post('*/users', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWerkingsgebiedenValidGetMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getUsersPostMock() + ), { status: 200, headers: { @@ -14335,11 +16756,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/werkingsgebieden/valid/:lineageId', async () => { + }) +} + +export const getUsersSearchGetMockHandler = ( + overrideResponse?: PagedResponseUser +) => { + return http.get('*/users/search', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWerkingsgebiedenValidLineageIdGetMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getUsersSearchGetMock() + ), { status: 200, headers: { @@ -14347,11 +16775,16 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/werkingsgebieden/version/:objectUuid', async () => { + }) +} + +export const getUsersUserUuidGetMockHandler = (overrideResponse?: User) => { + return http.get('*/users/:userUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWerkingsgebiedenVersionObjectUuidGetMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getUsersUserUuidGetMock() + ), { status: 200, headers: { @@ -14359,11 +16792,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/werkingsgebieden/latest/:lineageId', async () => { + }) +} + +export const getUsersUserUuidPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/users/:userUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWerkingsgebiedenLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getUsersUserUuidPostMock() + ), { status: 200, headers: { @@ -14371,11 +16811,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/werkingsgebied/static/:lineageId', async () => { + }) +} + +export const getUsersUserUuidResetPasswordPostMockHandler = ( + overrideResponse?: ResetPasswordResponse +) => { + return http.post('*/users/:userUuid/reset-password', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWerkingsgebiedStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getUsersUserUuidResetPasswordPostMock() + ), { status: 200, headers: { @@ -14383,80 +16832,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/modules/:moduleId/object/werkingsgebied/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectWerkingsgebiedLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.patch( - '*/modules/:moduleId/object/werkingsgebied/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectWerkingsgebiedLineageIdPatchMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get( - '*/modules/:moduleId/object/werkingsgebied/latest/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get( - '*/modules/:moduleId/object/werkingsgebied/version/:objectUuid', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.get('*/modules/object/werkingsgebied/active/:lineageId', async () => { + }) +} + +export const getSourceWerkingsgebiedenGetMockHandler = ( + overrideResponse?: PagedResponseWerkingsgebied +) => { + return http.get('*/source-werkingsgebieden', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesObjectWerkingsgebiedActiveLineageIdGetMock() + overrideResponse + ? overrideResponse + : getSourceWerkingsgebiedenGetMock() ), { status: 200, @@ -14465,37 +16853,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/revisions/:moduleId/werkingsgebied/version/:objectUuid', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.post('*/wettelijke-taak', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getWettelijkeTaakPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/wettelijke-taak/:lineageId', async () => { + }) +} + +export const getSearchSourceGeoPostMockHandler = ( + overrideResponse?: PagedResponseGeoSearchResult +) => { + return http.post('*/search/source-geo', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWettelijkeTaakLineageIdPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getSearchSourceGeoPostMock() + ), { status: 200, headers: { @@ -14503,11 +16874,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.delete('*/wettelijke-taak/:lineageId', async () => { + }) +} + +export const getSearchSourceGeometryPostMockHandler = ( + overrideResponse?: PagedResponseGeoSearchResult +) => { + return http.post('*/search/source-geometry', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWettelijkeTaakLineageIdDeleteMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getSearchSourceGeometryPostMock() + ), { status: 200, headers: { @@ -14515,11 +16895,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/wettelijke-taak/valid', async () => { + }) +} + +export const getSearchPostMockHandler = ( + overrideResponse?: PagedResponseSearchObject +) => { + return http.post('*/search', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWettelijkeTaakValidGetMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getSearchPostMock() + ), { status: 200, headers: { @@ -14527,11 +16914,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/wettelijke-taak/latest/:lineageId', async () => { + }) +} + +export const getSearchValidPostMockHandler = ( + overrideResponse?: PagedResponseValidSearchObject +) => { + return http.post('*/search/valid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWettelijkeTaakLatestLineageIdGetMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getSearchValidPostMock() + ), { status: 200, headers: { @@ -14539,11 +16933,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/wettelijke-taak/relations/:lineageId', async () => { + }) +} + +export const getFullGraphGetMockHandler = ( + overrideResponse?: GraphResponse +) => { + return http.get('*/full-graph', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWettelijkeTaakRelationsLineageIdGetMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getFullGraphGetMock() + ), { status: 200, headers: { @@ -14551,11 +16952,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.put('*/wettelijke-taak/relations/:lineageId', async () => { + }) +} + +export const getObjectGraphGetMockHandler = ( + overrideResponse?: GraphResponse +) => { + return http.get('*/object-graph', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWettelijkeTaakRelationsLineageIdPutMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getObjectGraphGetMock() + ), { status: 200, headers: { @@ -14563,11 +16971,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/wettelijke-taak/static/:lineageId', async () => { + }) +} + +export const getRevisionsGetMockHandler = ( + overrideResponse?: PagedResponsePublicModuleShort +) => { + return http.get('*/revisions', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getWettelijkeTaakStaticLineageIdPostMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getRevisionsGetMock() + ), { status: 200, headers: { @@ -14575,74 +16990,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/playground/do-dso/:moduleId', async () => { - await delay(1000) - return new HttpResponse(null, { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/playground/check-geo', async () => { - await delay(1000) - return new HttpResponse(null, { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/users', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getUsersGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/users', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getUsersPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/users/search', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getUsersSearchGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/users/:userUuid', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getUsersUserUuidGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/users/:userUuid', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getUsersUserUuidPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/users/:userUuid/reset-password', async () => { + }) +} + +export const getRevisionsModuleIdGetMockHandler = ( + overrideResponse?: PublicModuleOverview +) => { + return http.get('*/revisions/:moduleId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getUsersUserUuidResetPasswordPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getRevisionsModuleIdGetMock() + ), { status: 200, headers: { @@ -14650,11 +17011,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/source-werkingsgebieden', async () => { + }) +} + +export const getModulesGetMockHandler = ( + overrideResponse?: PagedResponseModule +) => { + return http.get('*/modules', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getSourceWerkingsgebiedenGetMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getModulesGetMock() + ), { status: 200, headers: { @@ -14662,20 +17030,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/search/source-geo', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getSearchSourceGeoPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/search/source-geometry', async () => { + }) +} + +export const getModulesPostMockHandler = ( + overrideResponse?: ModuleCreatedResponse +) => { + return http.post('*/modules', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getSearchSourceGeometryPostMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getModulesPostMock() + ), { status: 200, headers: { @@ -14683,101 +17049,62 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/search', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getSearchPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/search/valid', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getSearchValidPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/full-graph', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getFullGraphGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/object-graph', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getObjectGraphGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/revisions', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getRevisionsGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/revisions/:moduleId', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getRevisionsModuleIdGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/modules', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getModulesGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/modules', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getModulesPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/modules/:moduleId', async () => { + }) +} + +export const getModulesModuleIdGetMockHandler = ( + overrideResponse?: ModuleOverview +) => { + return http.get('*/modules/:moduleId', async () => { await delay(1000) - return new HttpResponse(JSON.stringify(getModulesModuleIdGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/modules/:moduleId', async () => { + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getModulesModuleIdPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/modules/:moduleId', async () => { await delay(1000) - return new HttpResponse(JSON.stringify(getModulesModuleIdPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/modules/:moduleId/activate', async () => { + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getModulesModuleIdActivatePostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/modules/:moduleId/activate', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdActivatePostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdActivatePostMock() + ), { status: 200, headers: { @@ -14785,11 +17112,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/modules/:moduleId/complete', async () => { + }) +} + +export const getModulesModuleIdCompletePostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/modules/:moduleId/complete', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdCompletePostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdCompletePostMock() + ), { status: 200, headers: { @@ -14797,11 +17133,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/modules/:moduleId/close', async () => { + }) +} + +export const getModulesModuleIdClosePostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/modules/:moduleId/close', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdClosePostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdClosePostMock() + ), { status: 200, headers: { @@ -14809,11 +17154,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/modules/:moduleId/status', async () => { + }) +} + +export const getModulesModuleIdStatusGetMockHandler = ( + overrideResponse?: ModuleStatus[] +) => { + return http.get('*/modules/:moduleId/status', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdStatusGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdStatusGetMock() + ), { status: 200, headers: { @@ -14821,11 +17175,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.patch('*/modules/:moduleId/status', async () => { + }) +} + +export const getModulesModuleIdStatusPatchMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.patch('*/modules/:moduleId/status', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdStatusPatchMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdStatusPatchMock() + ), { status: 200, headers: { @@ -14833,8 +17196,11 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/modules/:moduleId/diff', async () => { + }) +} + +export const getModulesModuleIdDiffGetMockHandler = () => { + return http.get('*/modules/:moduleId/diff', async () => { await delay(1000) return new HttpResponse(null, { status: 200, @@ -14842,11 +17208,20 @@ export const getOmgevingsbeleidAPIMock = () => [ 'Content-Type': 'application/json', }, }) - }), - http.post('*/modules/:moduleId/add-new-object', async () => { + }) +} + +export const getModulesModuleIdAddNewObjectPostMockHandler = ( + overrideResponse?: NewObjectStaticResponse +) => { + return http.post('*/modules/:moduleId/add-new-object', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdAddNewObjectPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdAddNewObjectPostMock() + ), { status: 200, headers: { @@ -14854,11 +17229,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/modules/:moduleId/add-existing-object', async () => { + }) +} + +export const getModulesModuleIdAddExistingObjectPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/modules/:moduleId/add-existing-object', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdAddExistingObjectPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdAddExistingObjectPostMock() + ), { status: 200, headers: { @@ -14866,48 +17250,67 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/modules/:moduleId/object-context/:objectType/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectContextObjectTypeLineageIdGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.post( - '*/modules/:moduleId/object-context/:objectType/:lineageId', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - getModulesModuleIdObjectContextObjectTypeLineageIdPostMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ), - http.delete( + }) +} + +export const getModulesModuleIdObjectContextObjectTypeLineageIdGetMockHandler = + (overrideResponse?: ModuleObjectContext) => { + return http.get( + '*/modules/:moduleId/object-context/:objectType/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectContextObjectTypeLineageIdGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdObjectContextObjectTypeLineageIdPostMockHandler = + (overrideResponse?: ResponseOK) => { + return http.post( + '*/modules/:moduleId/object-context/:objectType/:lineageId', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdObjectContextObjectTypeLineageIdPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getModulesModuleIdRemoveObjectTypeLineageIdDeleteMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.delete( '*/modules/:moduleId/remove/:objectType/:lineageId', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getModulesModuleIdRemoveObjectTypeLineageIdDeleteMock() + overrideResponse + ? overrideResponse + : getModulesModuleIdRemoveObjectTypeLineageIdDeleteMock() ), { status: 200, @@ -14917,11 +17320,20 @@ export const getOmgevingsbeleidAPIMock = () => [ } ) } - ), - http.get('*/modules/:moduleId/snapshot/:statusId', async () => { + ) +} + +export const getModulesModuleIdSnapshotStatusIdGetMockHandler = ( + overrideResponse?: ModuleSnapshot +) => { + return http.get('*/modules/:moduleId/snapshot/:statusId', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesModuleIdSnapshotStatusIdGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesModuleIdSnapshotStatusIdGetMock() + ), { status: 200, headers: { @@ -14929,11 +17341,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/modules/objects/latest', async () => { + }) +} + +export const getModulesObjectsLatestGetMockHandler = ( + overrideResponse?: PagedResponseModuleObjectShortStatus +) => { + return http.get('*/modules/objects/latest', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getModulesObjectsLatestGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getModulesObjectsLatestGetMock() + ), { status: 200, headers: { @@ -14941,47 +17362,58 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/objects/valid/count', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getObjectsValidCountGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/objects/valid', async () => { - await delay(1000) - return new HttpResponse(JSON.stringify(getObjectsValidGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/publications', async () => { + }) +} + +export const getObjectsValidCountGetMockHandler = ( + overrideResponse?: ObjectCount[] +) => { + return http.get('*/objects/valid/count', async () => { await delay(1000) - return new HttpResponse(JSON.stringify(getPublicationsGetMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/publications', async () => { + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getObjectsValidCountGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getObjectsValidGetMockHandler = ( + overrideResponse?: PagedResponseGenericObjectShort +) => { + return http.get('*/objects/valid', async () => { await delay(1000) - return new HttpResponse(JSON.stringify(getPublicationsPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/publications/:publicationUuid', async () => { + return new HttpResponse( + JSON.stringify( + overrideResponse ? overrideResponse : getObjectsValidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationsGetMockHandler = ( + overrideResponse?: PagedResponsePublication +) => { + return http.get('*/publications', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getPublicationsPublicationUuidGetMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getPublicationsGetMock() + ), { status: 200, headers: { @@ -14989,11 +17421,18 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.patch('*/publications/:publicationUuid', async () => { + }) +} + +export const getPublicationsPostMockHandler = ( + overrideResponse?: Publication +) => { + return http.post('*/publications', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getPublicationsPublicationUuidPatchMock()), + JSON.stringify( + overrideResponse ? overrideResponse : getPublicationsPostMock() + ), { status: 200, headers: { @@ -15001,11 +17440,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/publications/:publicationUuid/bills', async () => { + }) +} + +export const getPublicationsPublicationUuidGetMockHandler = ( + overrideResponse?: Publication +) => { + return http.get('*/publications/:publicationUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getPublicationsPublicationUuidBillsGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationsPublicationUuidGetMock() + ), { status: 200, headers: { @@ -15013,11 +17461,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/publications/:publicationUuid/bills', async () => { + }) +} + +export const getPublicationsPublicationUuidPatchMockHandler = ( + overrideResponse?: Publication +) => { + return http.patch('*/publications/:publicationUuid', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getPublicationsPublicationUuidBillsPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationsPublicationUuidPatchMock() + ), { status: 200, headers: { @@ -15025,12 +17482,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/publications/:publicationUuid/bills/:billUuid', async () => { + }) +} + +export const getPublicationsPublicationUuidBillsGetMockHandler = ( + overrideResponse?: PagedResponsePublicationBillShort +) => { + return http.get('*/publications/:publicationUuid/bills', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getPublicationsPublicationUuidBillsBillUuidGetMock() + overrideResponse + ? overrideResponse + : getPublicationsPublicationUuidBillsGetMock() ), { status: 200, @@ -15039,12 +17503,19 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.patch('*/publications/:publicationUuid/bills/:billUuid', async () => { + }) +} + +export const getPublicationsPublicationUuidBillsPostMockHandler = ( + overrideResponse?: PublicationBill +) => { + return http.post('*/publications/:publicationUuid/bills', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - getPublicationsPublicationUuidBillsBillUuidPatchMock() + overrideResponse + ? overrideResponse + : getPublicationsPublicationUuidBillsPostMock() ), { status: 200, @@ -15053,11 +17524,68 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get('*/publication-bills/:billUuid/packages', async () => { + }) +} + +export const getPublicationsPublicationUuidBillsBillUuidGetMockHandler = ( + overrideResponse?: PublicationBill +) => { + return http.get( + '*/publications/:publicationUuid/bills/:billUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationsPublicationUuidBillsBillUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getPublicationsPublicationUuidBillsBillUuidPatchMockHandler = ( + overrideResponse?: PublicationBill +) => { + return http.patch( + '*/publications/:publicationUuid/bills/:billUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationsPublicationUuidBillsBillUuidPatchMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getPublicationBillsBillUuidPackagesGetMockHandler = ( + overrideResponse?: PagedResponsePublicationPackage +) => { + return http.get('*/publication-bills/:billUuid/packages', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getPublicationBillsBillUuidPackagesGetMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationBillsBillUuidPackagesGetMock() + ), { status: 200, headers: { @@ -15065,11 +17593,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/publication-bills/:billUuid/packages', async () => { + }) +} + +export const getPublicationBillsBillUuidPackagesPostMockHandler = ( + overrideResponse?: PublicationPackage +) => { + return http.post('*/publication-bills/:billUuid/packages', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getPublicationBillsBillUuidPackagesPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationBillsBillUuidPackagesPostMock() + ), { status: 200, headers: { @@ -15077,11 +17614,20 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.post('*/publication-packages/:packageUuid/report', async () => { + }) +} + +export const getPublicationPackagesPackageUuidReportPostMockHandler = ( + overrideResponse?: PublicationPackageReport +) => { + return http.post('*/publication-packages/:packageUuid/report', async () => { await delay(1000) return new HttpResponse( - JSON.stringify(getPublicationPackagesPackageUuidReportPostMock()), + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationPackagesPackageUuidReportPostMock() + ), { status: 200, headers: { @@ -15089,9 +17635,28 @@ export const getOmgevingsbeleidAPIMock = () => [ }, } ) - }), - http.get( - '*/publication-packages/:packageUuid/report/download', + }) +} + +export const getPublicationPackagesPackageUuidReportDownloadGetMockHandler = + () => { + return http.get( + '*/publication-packages/:packageUuid/report/download', + async () => { + await delay(1000) + return new HttpResponse(null, { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + }) + } + ) + } + +export const getPublicationPackagesPackageUuidDownloadGetMockHandler = () => { + return http.get( + '*/publication-packages/:packageUuid/download', async () => { await delay(1000) return new HttpResponse(null, { @@ -15101,35 +17666,51 @@ export const getOmgevingsbeleidAPIMock = () => [ }, }) } - ), - http.get('*/publication-packages/:packageUuid/download', async () => { - await delay(1000) - return new HttpResponse(null, { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/login/access-token', async () => { + ) +} + +export const getLoginAccessTokenPostMockHandler = ( + overrideResponse?: AuthToken +) => { + return http.post('*/login/access-token', async () => { await delay(1000) - return new HttpResponse(JSON.stringify(getLoginAccessTokenPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.post('*/password-reset', async () => { + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getLoginAccessTokenPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPasswordResetPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/password-reset', async () => { await delay(1000) - return new HttpResponse(JSON.stringify(getPasswordResetPostMock()), { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }), - http.get('*/health', async () => { + return new HttpResponse( + JSON.stringify( + overrideResponse ? overrideResponse : getPasswordResetPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getHealthCheckHealthGetMockHandler = () => { + return http.get('*/health', async () => { await delay(1000) return new HttpResponse(null, { status: 200, @@ -15137,5 +17718,197 @@ export const getOmgevingsbeleidAPIMock = () => [ 'Content-Type': 'application/json', }, }) - }), + }) +} +export const getOmgevingsbeleidAPIMock = () => [ + getAmbitiesValidGetMockHandler(), + getAmbitiesValidLineageIdGetMockHandler(), + getAmbitiesVersionObjectUuidGetMockHandler(), + getAmbitiesLatestLineageIdGetMockHandler(), + getAmbitiesRelationsLineageIdGetMockHandler(), + getAmbitiesRelationsLineageIdPutMockHandler(), + getAmbitieStaticLineageIdPostMockHandler(), + getModulesModuleIdObjectAmbitieLineageIdGetMockHandler(), + getModulesModuleIdObjectAmbitieLineageIdPatchMockHandler(), + getModulesModuleIdObjectAmbitieLatestLineageIdGetMockHandler(), + getModulesModuleIdObjectAmbitieVersionObjectUuidGetMockHandler(), + getModulesObjectAmbitieActiveLineageIdGetMockHandler(), + getRevisionsModuleIdAmbitieVersionObjectUuidGetMockHandler(), + getBeleidsdoelenValidGetMockHandler(), + getBeleidsdoelenValidLineageIdGetMockHandler(), + getBeleidsdoelenVersionObjectUuidGetMockHandler(), + getBeleidsdoelenLatestLineageIdGetMockHandler(), + getBeleidsdoelenRelationsLineageIdGetMockHandler(), + getBeleidsdoelenRelationsLineageIdPutMockHandler(), + getBeleidsdoelStaticLineageIdPostMockHandler(), + getModulesModuleIdObjectBeleidsdoelLineageIdGetMockHandler(), + getModulesModuleIdObjectBeleidsdoelLineageIdPatchMockHandler(), + getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetMockHandler(), + getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetMockHandler(), + getModulesObjectBeleidsdoelActiveLineageIdGetMockHandler(), + getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMockHandler(), + getBeleidskeuzesValidGetMockHandler(), + getBeleidskeuzesValidLineageIdGetMockHandler(), + getBeleidskeuzesVersionObjectUuidGetMockHandler(), + getBeleidskeuzesLatestLineageIdGetMockHandler(), + getBeleidskeuzesRelationsLineageIdGetMockHandler(), + getBeleidskeuzesRelationsLineageIdPutMockHandler(), + getBeleidskeuzeStaticLineageIdPostMockHandler(), + getBeleidskeuzeAcknowledgedRelationsLineageIdGetMockHandler(), + getBeleidskeuzeAcknowledgedRelationsLineageIdPostMockHandler(), + getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostMockHandler(), + getModulesModuleIdObjectBeleidskeuzeLineageIdGetMockHandler(), + getModulesModuleIdObjectBeleidskeuzeLineageIdPatchMockHandler(), + getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMockHandler(), + getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetMockHandler(), + getModulesObjectsBeleidskeuzeActiveLineageIdGetMockHandler(), + getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMockHandler(), + getBeleidsregelsValidGetMockHandler(), + getBeleidsregelsValidLineageIdGetMockHandler(), + getBeleidsregelsVersionObjectUuidGetMockHandler(), + getBeleidsregelsLatestLineageIdGetMockHandler(), + getBeleidsregelsRelationsLineageIdGetMockHandler(), + getBeleidsregelsRelationsLineageIdPutMockHandler(), + getBeleidsregelStaticLineageIdPostMockHandler(), + getModulesModuleIdObjectBeleidsregelLineageIdGetMockHandler(), + getModulesModuleIdObjectBeleidsregelLineageIdPatchMockHandler(), + getModulesModuleIdObjectBeleidsregelLatestLineageIdGetMockHandler(), + getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetMockHandler(), + getModulesObjectsBeleidsregelActiveLineageIdGetMockHandler(), + getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMockHandler(), + getGebiedsprogrammasValidGetMockHandler(), + getGebiedsprogrammasValidLineageIdGetMockHandler(), + getGebiedsprogrammasVersionObjectUuidGetMockHandler(), + getGebiedsprogrammasLatestLineageIdGetMockHandler(), + getGebiedsprogrammasRelationsLineageIdGetMockHandler(), + getGebiedsprogrammasRelationsLineageIdPutMockHandler(), + getGebiedsprogrammasStaticLineageIdPostMockHandler(), + getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMockHandler(), + getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchMockHandler(), + getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMockHandler(), + getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMockHandler(), + getModulesObjectsGebiedsprogrammaActiveLineageIdGetMockHandler(), + getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetMockHandler(), + getMaatregelenValidGetMockHandler(), + getMaatregelenValidLineageIdGetMockHandler(), + getMaatregelenVersionObjectUuidGetMockHandler(), + getMaatregelenLatestLineageIdGetMockHandler(), + getMaatregelenRelationsLineageIdGetMockHandler(), + getMaatregelenRelationsLineageIdPutMockHandler(), + getMaatregelStaticLineageIdPostMockHandler(), + getModulesModuleIdObjectMaatregelLineageIdGetMockHandler(), + getModulesModuleIdObjectMaatregelLineageIdPatchMockHandler(), + getModulesModuleIdObjectMaatregelLatestLineageIdGetMockHandler(), + getModulesModuleIdObjectMaatregelVersionObjectUuidGetMockHandler(), + getModulesObjectsMaatregelActiveLineageIdGetMockHandler(), + getRevisionsModuleIdMaatregelVersionObjectUuidGetMockHandler(), + getNationaalBelangPostMockHandler(), + getNationaalBelangLineageIdPostMockHandler(), + getNationaalBelangLineageIdDeleteMockHandler(), + getNationaalBelangValidGetMockHandler(), + getNationaalBelangLatestLineageIdGetMockHandler(), + getNationaalBelangRelationsLineageIdGetMockHandler(), + getNationaalBelangRelationsLineageIdPutMockHandler(), + getNationaalBelangStaticLineageIdPostMockHandler(), + getProgrammasAlgemeenValidGetMockHandler(), + getProgrammasAlgemeenValidLineageIdGetMockHandler(), + getProgrammasAlgemeenVersionObjectUuidGetMockHandler(), + getProgrammasAlgemeenLatestLineageIdGetMockHandler(), + getProgrammaAlgemeenStaticLineageIdPostMockHandler(), + getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMockHandler(), + getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchMockHandler(), + getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMockHandler(), + getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMockHandler(), + getModulesObjectProgrammaAlgemeenActiveLineageIdGetMockHandler(), + getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetMockHandler(), + getVerplichtProgrammaPostMockHandler(), + getVerplichtProgrammaLineageIdPostMockHandler(), + getVerplichtProgrammaLineageIdDeleteMockHandler(), + getVerplichtProgrammaValidGetMockHandler(), + getVerplichtProgrammaLatestLineageIdGetMockHandler(), + getVerplichtProgrammaRelationsLineageIdGetMockHandler(), + getVerplichtProgrammaRelationsLineageIdPutMockHandler(), + getVerplichtProgrammaStaticLineageIdPostMockHandler(), + getVisiesAlgemeenValidGetMockHandler(), + getVisiesAlgemeenValidLineageIdGetMockHandler(), + getVisiesAlgemeenVersionObjectUuidGetMockHandler(), + getVisiesAlgemeenLatestLineageIdGetMockHandler(), + getVisieAlgemeenStaticLineageIdPostMockHandler(), + getModulesModuleIdObjectVisieAlgemeenLineageIdGetMockHandler(), + getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMockHandler(), + getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetMockHandler(), + getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMockHandler(), + getModulesObjectVisieAlgemeenActiveLineageIdGetMockHandler(), + getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetMockHandler(), + getWerkingsgebiedenValidGetMockHandler(), + getWerkingsgebiedenValidLineageIdGetMockHandler(), + getWerkingsgebiedenVersionObjectUuidGetMockHandler(), + getWerkingsgebiedenLatestLineageIdGetMockHandler(), + getWerkingsgebiedStaticLineageIdPostMockHandler(), + getModulesModuleIdObjectWerkingsgebiedLineageIdGetMockHandler(), + getModulesModuleIdObjectWerkingsgebiedLineageIdPatchMockHandler(), + getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMockHandler(), + getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetMockHandler(), + getModulesObjectWerkingsgebiedActiveLineageIdGetMockHandler(), + getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetMockHandler(), + getWettelijkeTaakPostMockHandler(), + getWettelijkeTaakLineageIdPostMockHandler(), + getWettelijkeTaakLineageIdDeleteMockHandler(), + getWettelijkeTaakValidGetMockHandler(), + getWettelijkeTaakLatestLineageIdGetMockHandler(), + getWettelijkeTaakRelationsLineageIdGetMockHandler(), + getWettelijkeTaakRelationsLineageIdPutMockHandler(), + getWettelijkeTaakStaticLineageIdPostMockHandler(), + getPlaygroundDoDsoModuleIdPostMockHandler(), + getPlaygroundCheckGeoGetMockHandler(), + getUsersGetMockHandler(), + getUsersPostMockHandler(), + getUsersSearchGetMockHandler(), + getUsersUserUuidGetMockHandler(), + getUsersUserUuidPostMockHandler(), + getUsersUserUuidResetPasswordPostMockHandler(), + getSourceWerkingsgebiedenGetMockHandler(), + getSearchSourceGeoPostMockHandler(), + getSearchSourceGeometryPostMockHandler(), + getSearchPostMockHandler(), + getSearchValidPostMockHandler(), + getFullGraphGetMockHandler(), + getObjectGraphGetMockHandler(), + getRevisionsGetMockHandler(), + getRevisionsModuleIdGetMockHandler(), + getModulesGetMockHandler(), + getModulesPostMockHandler(), + getModulesModuleIdGetMockHandler(), + getModulesModuleIdPostMockHandler(), + getModulesModuleIdActivatePostMockHandler(), + getModulesModuleIdCompletePostMockHandler(), + getModulesModuleIdClosePostMockHandler(), + getModulesModuleIdStatusGetMockHandler(), + getModulesModuleIdStatusPatchMockHandler(), + getModulesModuleIdDiffGetMockHandler(), + getModulesModuleIdAddNewObjectPostMockHandler(), + getModulesModuleIdAddExistingObjectPostMockHandler(), + getModulesModuleIdObjectContextObjectTypeLineageIdGetMockHandler(), + getModulesModuleIdObjectContextObjectTypeLineageIdPostMockHandler(), + getModulesModuleIdRemoveObjectTypeLineageIdDeleteMockHandler(), + getModulesModuleIdSnapshotStatusIdGetMockHandler(), + getModulesObjectsLatestGetMockHandler(), + getObjectsValidCountGetMockHandler(), + getObjectsValidGetMockHandler(), + getPublicationsGetMockHandler(), + getPublicationsPostMockHandler(), + getPublicationsPublicationUuidGetMockHandler(), + getPublicationsPublicationUuidPatchMockHandler(), + getPublicationsPublicationUuidBillsGetMockHandler(), + getPublicationsPublicationUuidBillsPostMockHandler(), + getPublicationsPublicationUuidBillsBillUuidGetMockHandler(), + getPublicationsPublicationUuidBillsBillUuidPatchMockHandler(), + getPublicationBillsBillUuidPackagesGetMockHandler(), + getPublicationBillsBillUuidPackagesPostMockHandler(), + getPublicationPackagesPackageUuidReportPostMockHandler(), + getPublicationPackagesPackageUuidReportDownloadGetMockHandler(), + getPublicationPackagesPackageUuidDownloadGetMockHandler(), + getLoginAccessTokenPostMockHandler(), + getPasswordResetPostMockHandler(), + getHealthCheckHealthGetMockHandler(), ] diff --git a/src/api/fetchers.schemas.ts b/src/api/fetchers.schemas.ts index bdf074b3..62bcc3c1 100644 --- a/src/api/fetchers.schemas.ts +++ b/src/api/fetchers.schemas.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.23.0 🍺 + * Generated by orval v6.24.0 🍺 * Do not edit manually. * Omgevingsbeleid API * @@ -997,11 +997,11 @@ export interface PublicationPackage { Created_Date: string FRBR_ID: number FRBR_Info?: PublicationFRBR + Latest_Download_By_UUID?: string + Latest_Download_Date?: string Modified_By_UUID: string Modified_Date: string Package_Event_Type: PackageEventType - Publication_Bill?: PublicationBill - Publication_Config?: PublicationConfig Publication_Filename?: string Reports?: PublicationPackageReport[] UUID: string @@ -1024,24 +1024,10 @@ export interface PublicationCreate { Template_ID?: number } -export interface PublicationConfig { - Act_Componentname: string - Authority_ID: string - Created_Date: string - DSO_BHKV_VERSION: string - DSO_STOP_VERSION: string - DSO_TPOD_VERSION: string - Governing_Body_Type: string - ID: number - Jurisdiction: string - Province_ID: string - Subjects: string - Submitter_ID: string -} - export interface PublicationBillShort { Created_Date: string Is_Official: boolean + Locked: boolean Modified_Date: string Module_Status_ID: number Procedure_Type: ProcedureType diff --git a/src/api/fetchers.ts b/src/api/fetchers.ts index 4859452f..c53748cd 100644 --- a/src/api/fetchers.ts +++ b/src/api/fetchers.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.23.0 🍺 + * Generated by orval v6.24.0 🍺 * Do not edit manually. * Omgevingsbeleid API * diff --git a/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx b/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx index bc85b13e..bcc753f7 100644 --- a/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx @@ -1,14 +1,10 @@ -import { Button, Divider, FormikInput, FormikSelect } from '@pzh-ui/components' import { useQueryClient } from '@tanstack/react-query' -import { Form, Formik } from 'formik' import { useParams } from 'react-router-dom' import { getPublicationsGetQueryKey, usePublicationsPost } from '@/api/fetchers' -import { - AppExtensionsPublicationsEnumsDocumentType, - PublicationCreate, -} from '@/api/fetchers.schemas' +import { PublicationCreate } from '@/api/fetchers.schemas' import Modal from '@/components/Modal/Modal' +import PublicationForm from '@/components/Publications/PublicationForm' import useModalStore from '@/store/modalStore' import { ModalStateMap } from '../../types' @@ -41,63 +37,17 @@ const PublicationAddModal = () => { Document_Type: modalState?.type, } as PublicationCreate - const options = ( - Object.keys( - AppExtensionsPublicationsEnumsDocumentType - ) as Array - ).map(type => ({ label: type, value: type })) - const handleFormSubmit = (payload: PublicationCreate) => { mutate({ data: payload }) } return ( - - {({ isSubmitting }) => ( -
    -
    - - - - -
    - -
    - - -
    - - )} -
    + submitLabel="Publicatie aanmaken" + />
    ) } diff --git a/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx b/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx new file mode 100644 index 00000000..9df495f9 --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx @@ -0,0 +1,72 @@ +import { useQueryClient } from '@tanstack/react-query' + +import { + getPublicationsGetQueryKey, + usePublicationsPublicationUuidGet, + usePublicationsPublicationUuidPatch, +} from '@/api/fetchers' +import { PublicationEdit } from '@/api/fetchers.schemas' +import { LoaderSpinner } from '@/components/Loader' +import Modal from '@/components/Modal/Modal' +import PublicationForm from '@/components/Publications/PublicationForm' +import useModalStore from '@/store/modalStore' + +import { ModalStateMap } from '../../types' + +const PublicationEditModal = () => { + const queryClient = useQueryClient() + + const modalState = useModalStore( + state => state.modalStates['publicationEdit'] + ) as ModalStateMap['publicationEdit'] + const setActiveModal = useModalStore(state => state.setActiveModal) + + const { data, isFetching } = usePublicationsPublicationUuidGet( + modalState?.publication.UUID, + { + query: { + enabled: !!modalState?.publication.UUID, + }, + } + ) + + const { mutate } = usePublicationsPublicationUuidPatch({ + mutation: { + onSuccess: data => { + queryClient.invalidateQueries({ + queryKey: getPublicationsGetQueryKey({ + document_type: data.Document_Type, + }), + }) + + setActiveModal(null) + }, + }, + }) + + const initialValues = { + ...data, + } as PublicationEdit + + const handleFormSubmit = (payload: PublicationEdit) => { + mutate({ publicationUuid: modalState?.publication.UUID, data: payload }) + } + + return ( + + {isFetching ? ( +
    + +
    + ) : ( + + )} +
    + ) +} + +export default PublicationEditModal diff --git a/src/components/Modals/PublicationModals/PublicationEditModal/index.ts b/src/components/Modals/PublicationModals/PublicationEditModal/index.ts new file mode 100644 index 00000000..11690370 --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationEditModal/index.ts @@ -0,0 +1 @@ +export { default } from './PublicationEditModal' diff --git a/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx b/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx new file mode 100644 index 00000000..a990e782 --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx @@ -0,0 +1,50 @@ +import { Button, Divider, Text } from '@pzh-ui/components' +import { useParams } from 'react-router-dom' + +import { useModulesModuleIdStatusGet } from '@/api/fetchers' +import Modal from '@/components/Modal' +import PublicationPackages from '@/components/Publications/PublicationPackages' +import useModalStore from '@/store/modalStore' + +import { ModalStateMap } from '../../types' + +const PublicationPackagesModal = () => { + const { moduleId } = useParams() + + const modalState = useModalStore( + state => state.modalStates['publicationPackages'] + ) as ModalStateMap['publicationPackages'] + const setActiveModal = useModalStore(state => state.setActiveModal) + + const { data: status } = useModulesModuleIdStatusGet(parseInt(moduleId!), { + query: { + enabled: !!moduleId, + select: data => + data.find( + item => item.ID === modalState?.bill.Module_Status_ID + ), + }, + }) + + return ( + +
    + + {status?.Status} - {modalState?.publication.Official_Title}{' '} + ({modalState?.bill.Is_Official ? 'Officiële' : 'Interne'}{' '} + publicatie) + + +
    + +
    + +
    +
    + ) +} + +export default PublicationPackagesModal diff --git a/src/components/Modals/PublicationModals/PublicationPackagesModal/index.ts b/src/components/Modals/PublicationModals/PublicationPackagesModal/index.ts new file mode 100644 index 00000000..bc5b1689 --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationPackagesModal/index.ts @@ -0,0 +1 @@ +export { default } from './PublicationPackagesModal' diff --git a/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx index 8fd5df06..4a6571f5 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx @@ -1,4 +1,3 @@ -import { formatDate } from '@pzh-ui/components' import { useQueryClient } from '@tanstack/react-query' import { @@ -52,35 +51,8 @@ const PublicationVersionAddModal = () => { const handleFormSubmit = (payload: PublicationBillCreate) => { payload.Is_Official = (payload.Is_Official as unknown) === 'true' - payload.Effective_Date = - payload.Effective_Date && - formatDate(new Date(payload.Effective_Date), 'yyyy-MM-dd') - if (payload.Procedure_Data?.Announcement_Date) { - payload.Procedure_Data.Announcement_Date = - formatDate( - new Date(payload.Procedure_Data.Announcement_Date), - 'yyyy-MM-dd' - ) || '' - payload.Announcement_Date = - formatDate( - new Date(payload.Procedure_Data.Announcement_Date), - 'yyyy-MM-dd' - ) || '' - } - - if (payload.Procedure_Data?.Steps?.[0]?.Conclusion_Date) { - payload.Procedure_Data.Steps[0].Conclusion_Date = formatDate( - new Date(payload.Procedure_Data.Steps[0].Conclusion_Date), - 'yyyy-MM-dd' - ) - } - - if (payload.Procedure_Data?.Steps?.[1]?.Conclusion_Date) { - payload.Procedure_Data.Steps[1].Conclusion_Date = formatDate( - new Date(payload.Procedure_Data.Steps[1].Conclusion_Date), - 'yyyy-MM-dd' - ) + payload.Announcement_Date = payload.Procedure_Data.Announcement_Date } mutate({ publicationUuid: modalState.publication.UUID, data: payload }) diff --git a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx index dc5463d7..86806278 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx @@ -1,4 +1,3 @@ -import { formatDate } from '@pzh-ui/components' import { useQueryClient } from '@tanstack/react-query' import { @@ -55,35 +54,8 @@ const PublicationVersionEditModal = () => { }) const handleFormSubmit = (payload: PublicationBillEdit) => { - payload.Effective_Date = - payload.Effective_Date && - formatDate(new Date(payload.Effective_Date), 'yyyy-MM-dd') - if (payload.Procedure_Data?.Announcement_Date) { - payload.Procedure_Data.Announcement_Date = - formatDate( - new Date(payload.Procedure_Data.Announcement_Date), - 'yyyy-MM-dd' - ) || '' - payload.Announcement_Date = - formatDate( - new Date(payload.Procedure_Data.Announcement_Date), - 'yyyy-MM-dd' - ) || '' - } - - if (payload.Procedure_Data?.Steps?.[0]?.Conclusion_Date) { - payload.Procedure_Data.Steps[0].Conclusion_Date = formatDate( - new Date(payload.Procedure_Data.Steps[0].Conclusion_Date), - 'yyyy-MM-dd' - ) - } - - if (payload.Procedure_Data?.Steps?.[1]?.Conclusion_Date) { - payload.Procedure_Data.Steps[1].Conclusion_Date = formatDate( - new Date(payload.Procedure_Data.Steps[1].Conclusion_Date), - 'yyyy-MM-dd' - ) + payload.Announcement_Date = payload.Procedure_Data.Announcement_Date } mutate({ diff --git a/src/components/Modals/PublicationModals/index.ts b/src/components/Modals/PublicationModals/index.ts index 9211093b..c7280106 100644 --- a/src/components/Modals/PublicationModals/index.ts +++ b/src/components/Modals/PublicationModals/index.ts @@ -1,9 +1,13 @@ import PublicationAddModal from './PublicationAddModal' +import PublicationEditModal from './PublicationEditModal' +import PublicationPackagesModal from './PublicationPackagesModal' import PublicationVersionAddModal from './PublicationVersionAddModal' import PublicationVersionEditModal from './PublicationVersionEditModal' export { PublicationAddModal, + PublicationEditModal, + PublicationPackagesModal, PublicationVersionAddModal, PublicationVersionEditModal, } diff --git a/src/components/Modals/types.ts b/src/components/Modals/types.ts index 37dd588e..0c8b3b30 100644 --- a/src/components/Modals/types.ts +++ b/src/components/Modals/types.ts @@ -1,6 +1,7 @@ import { AppExtensionsPublicationsEnumsDocumentType, Publication, + PublicationBillShort, } from '@/api/fetchers.schemas' export type ModalType = @@ -29,11 +30,18 @@ export type ModalType = | 'userEdit' | 'userPasswordReset' | 'publicationAdd' + | 'publicationEdit' | 'publicationVersionAdd' | 'publicationVersionEdit' + | 'publicationPackages' export interface ModalStateMap { publicationAdd: { type: AppExtensionsPublicationsEnumsDocumentType } + publicationEdit: { publication: Publication } publicationVersionAdd: { publication: Publication; prevUUID?: string } publicationVersionEdit: { publication: Publication; UUID: string } + publicationPackages: { + publication: Publication + bill: PublicationBillShort + } } diff --git a/src/components/Publications/Publication/Publication.tsx b/src/components/Publications/Publication/Publication.tsx index b7ab4c02..802a40ab 100644 --- a/src/components/Publications/Publication/Publication.tsx +++ b/src/components/Publications/Publication/Publication.tsx @@ -1,80 +1,65 @@ import { Button, Heading } from '@pzh-ui/components' import { Plus } from '@pzh-ui/icons' -import { useParams } from 'react-router-dom' -import { - usePublicationsGet, - usePublicationsPublicationUuidBillsGet, -} from '@/api/fetchers' -import { AppExtensionsPublicationsEnumsDocumentType } from '@/api/fetchers.schemas' -import { LoaderSpinner } from '@/components/Loader' +import { usePublicationsPublicationUuidBillsGet } from '@/api/fetchers' +import { Publication as PublicationType } from '@/api/fetchers.schemas' import useModalStore from '@/store/modalStore' import PublicationVersions from '../PublicationVersions' interface PublicationProps { - type: AppExtensionsPublicationsEnumsDocumentType + data: PublicationType } -const Publication = ({ type }: PublicationProps) => { - const { moduleId } = useParams() +const Publication = ({ data }: PublicationProps) => { const setActiveModal = useModalStore(state => state.setActiveModal) - const { data: publication, isPending } = usePublicationsGet( - { document_type: type, module_ID: parseInt(moduleId!) }, - { query: { enabled: !!moduleId, select: data => data.results?.[0] } } - ) - const { data: latest } = usePublicationsPublicationUuidBillsGet( - publication?.UUID || '', + data?.UUID || '', undefined, { query: { - enabled: !!publication?.UUID, + enabled: !!data?.UUID, select: data => data.results?.slice(-1)[0], }, } ) return ( -
    - - {type} - +
    +
    + {data.Official_Title} + +
    - {isPending ? ( - - ) : ( - <> - {!!publication && ( - - )} + {!!data && } - {!!!publication ? ( - - ) : ( - - )} - - )} +
    + + +
    ) } diff --git a/src/components/Publications/PublicationForm/PublicationForm.tsx b/src/components/Publications/PublicationForm/PublicationForm.tsx new file mode 100644 index 00000000..3f82b629 --- /dev/null +++ b/src/components/Publications/PublicationForm/PublicationForm.tsx @@ -0,0 +1,69 @@ +import { Button, Divider, FormikInput, FormikSelect } from '@pzh-ui/components' +import { Form, Formik, FormikConfig, FormikValues } from 'formik' + +import { AppExtensionsPublicationsEnumsDocumentType } from '@/api/fetchers.schemas' +import useModalStore from '@/store/modalStore' + +interface PublicationFormProps { + submitLabel: string +} + +const PublicationForm = ({ + submitLabel, + ...rest +}: PublicationFormProps & FormikConfig) => { + const setActiveModal = useModalStore(state => state.setActiveModal) + + const options = ( + Object.keys( + AppExtensionsPublicationsEnumsDocumentType + ) as Array + ).map(type => ({ label: type, value: type })) + + return ( + + {({ isSubmitting }) => ( +
    +
    + + + + +
    + +
    + + +
    + + )} +
    + ) +} + +export default PublicationForm diff --git a/src/components/Publications/PublicationForm/index.ts b/src/components/Publications/PublicationForm/index.ts new file mode 100644 index 00000000..297c918d --- /dev/null +++ b/src/components/Publications/PublicationForm/index.ts @@ -0,0 +1 @@ +export { default } from './PublicationForm' diff --git a/src/components/Publications/PublicationPackages/PublicationPackages.tsx b/src/components/Publications/PublicationPackages/PublicationPackages.tsx new file mode 100644 index 00000000..9f880902 --- /dev/null +++ b/src/components/Publications/PublicationPackages/PublicationPackages.tsx @@ -0,0 +1,175 @@ +import { Notification, Text, formatDate } from '@pzh-ui/components' +import { useMemo } from 'react' + +import { + usePublicationBillsBillUuidPackagesGet, + usePublicationsPublicationUuidBillsBillUuidGet, +} from '@/api/fetchers' +import { PackageEventType, PublicationBillShort } from '@/api/fetchers.schemas' + +import { PackageStep } from './components' + +export interface PublicationPackageProps { + type: 'create' | 'download' | 'upload' + eventType: PackageEventType +} + +const PublicationPackages = ({ ...bill }: PublicationBillShort) => { + const { data } = usePublicationsPublicationUuidBillsBillUuidGet( + bill.Publication_UUID, + bill.UUID + ) + + const { data: packages, refetch } = usePublicationBillsBillUuidPackagesGet( + bill.UUID + ) + + const { validationPackage, publicationPackage } = useMemo(() => { + const validationPackage = packages?.results.find( + pkg => pkg.Package_Event_Type === 'Validatie' + ) + const publicationPackage = packages?.results.find( + pkg => pkg.Package_Event_Type === 'Publicatie' + ) + + return { validationPackage, publicationPackage } + }, [packages?.results]) + + const { announcementDate, effectiveDate } = useMemo(() => { + const announcementDate = + data?.Announcement_Date && + formatDate(new Date(data.Announcement_Date), 'd LLLL yyyy') + + const effectiveDate = + data?.Effective_Date && + formatDate(new Date(data.Effective_Date), 'd LLLL yyyy') + + return { announcementDate, effectiveDate } + }, [data]) + + // useEffect(() => { + // // Refetch packages every 10 seconds if Validation_Status is 'Pending' + // const intervalId = setInterval(() => { + // if ( + // validationPackage?.Validation_Status === 'Pending' || + // publicationPackage?.Validation_Status === 'Pending' + // ) { + // refetch() + // } + // }, 5000) // 10 seconds in milliseconds + + // return () => clearInterval(intervalId) // Cleanup the interval on unmount + // }, [validationPackage, publicationPackage, refetch]) + + return ( + <> + {!!!packages?.results.length && ( + + )} + +
    + + {bill.Is_Official ? 'Validatie' : 'Publicatie'} + + + + {bill.Is_Official && ( + + )} +
    + + {bill.Is_Official && + validationPackage?.Validation_Status === 'Valid' && + !!!publicationPackage && ( + + )} + + {bill.Is_Official && ( +
    + + Publicatie + + + + +
    + )} + + {bill.Is_Official && + publicationPackage?.Validation_Status === 'Valid' && ( + + )} + + ) +} + +export default PublicationPackages diff --git a/src/components/Publications/PublicationPackages/components/PackageStep.tsx b/src/components/Publications/PublicationPackages/components/PackageStep.tsx new file mode 100644 index 00000000..e296e5b4 --- /dev/null +++ b/src/components/Publications/PublicationPackages/components/PackageStep.tsx @@ -0,0 +1,112 @@ +import { Text } from '@pzh-ui/components' +import { Check } from '@pzh-ui/icons' +import classNames from 'classnames' + +import { usePublicationBillsBillUuidPackagesGet } from '@/api/fetchers' +import { PublicationBillShort } from '@/api/fetchers.schemas' + +import { PublicationPackageProps } from '../PublicationPackages' +import PackageStepActions from './PackageStepActions' + +interface PackageStepProps extends PublicationPackageProps { + bill: PublicationBillShort + isActive?: boolean + isSucceeded?: boolean + isFirst?: boolean + isLast?: boolean + isLoading?: boolean +} + +const STEP_LABEL = { + create: 'Maak levering', + download: 'Download levering', + upload: 'Upload rapport(en)', +} + +const PackageStep = ({ + bill, + type, + eventType, + isActive, + isSucceeded, + isFirst, + isLast, + isLoading, +}: PackageStepProps) => { + const { data: pkg } = usePublicationBillsBillUuidPackagesGet( + bill.UUID, + undefined, + { + query: { + select: data => + data.results.find( + pkg => pkg.Package_Event_Type === eventType + ), + }, + } + ) + + const indicatorClass = classNames( + 'after:content-[` `] -mt-1 flex h-[19px] w-[19px] items-center justify-center rounded-full border', + { + 'after:block after:h-[13px] after:w-[13px] after:rounded-full after:bg-pzh-green-500': + isActive && !isSucceeded, + 'border-pzh-gray-600': !isSucceeded, + 'border-pzh-green-500 bg-pzh-green-500': isSucceeded, + } + ) + + const borderClass = classNames('absolute h-full', { + 'before:content-[` `] before:left-[9px] before:absolute before:top-0 before:block before:h-[calc(50%-13px)] before:w-px before:bg-pzh-gray-300': + !isFirst, + 'after:content-[` `] after:left-[9px] after:absolute after:bottom-0 after:block after:h-[calc(50%-9px)] after:w-px after:bg-pzh-gray-300': + !isLast, + }) + + return ( +
    +
    +
    + {isSucceeded && } +
    +
    +
    + + {STEP_LABEL[type]} ( + {`${!bill.Is_Official ? 'interne ' : ''}${ + eventType === 'Publicatie' || !bill.Is_Official + ? 'publicatie' + : 'validatie' + }`} + ) + + {type === 'upload' && !isSucceeded && ( + + Selecteer alle(!) rapporten die zijn teruggekomen + van het DSO, je kunt deze eenmalig uploaden + + )} +
    + +
    +
    + ) +} + +export default PackageStep diff --git a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx new file mode 100644 index 00000000..ee607a13 --- /dev/null +++ b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx @@ -0,0 +1,267 @@ +import { Button, FileTrigger, Tag, Text, formatDate } from '@pzh-ui/components' +import { Plus } from '@pzh-ui/icons' +import { useQuery, useQueryClient } from '@tanstack/react-query' +import { useMemo, useState } from 'react' + +import { + getPublicationBillsBillUuidPackagesGetQueryKey, + getPublicationsPublicationUuidBillsGetQueryKey, + usePublicationBillsBillUuidPackagesPost, + usePublicationPackagesPackageUuidReportPost, +} from '@/api/fetchers' +import { + PublicationBillShort, + PublicationPackage, +} from '@/api/fetchers.schemas' +import downloadFile from '@/utils/downloadFile' + +import { PublicationPackageProps } from '../PublicationPackages' + +interface PackageStepActionsProps extends PublicationPackageProps { + bill: PublicationBillShort + publicationPackage?: PublicationPackage + isActive?: boolean + isSucceeded?: boolean + isLoading?: boolean +} + +const PackageStepActions = ({ type, ...props }: PackageStepActionsProps) => { + switch (type) { + case 'create': + return + case 'download': + return + case 'upload': + return + } +} + +const CreateAction = ({ + bill, + publicationPackage, + eventType, + isActive, + isSucceeded, +}: PackageStepActionsProps) => { + const queryClient = useQueryClient() + + const { mutate: create, isPending } = + usePublicationBillsBillUuidPackagesPost({ + mutation: { + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: + getPublicationBillsBillUuidPackagesGetQueryKey( + bill.UUID + ), + }) + queryClient.invalidateQueries({ + queryKey: + getPublicationsPublicationUuidBillsGetQueryKey( + bill.Publication_UUID + ), + }) + }, + }, + }) + + const handleAction = () => + create({ + billUuid: bill.UUID, + data: { Package_Event_Type: eventType }, + }) + + const date = useMemo(() => { + if (!!publicationPackage && isSucceeded) { + return formatDate( + new Date(publicationPackage.Created_Date), + 'dd-MM-yyyy' + ) + } + }, [isSucceeded, publicationPackage]) + + /** + * Only show text if step isSucceeded + */ + if (!!publicationPackage && isSucceeded) { + return Levering gemaakt op {date} + } + + return ( +
    + {isPending && ( + + Levering wordt gemaakt, dit kan even duren.. + + )} + +
    + ) +} + +const DownloadAction = ({ + bill, + publicationPackage, + eventType, + isActive, +}: PackageStepActionsProps) => { + const queryClient = useQueryClient() + + const { isFetching, refetch: download } = useQuery({ + queryKey: [ + 'downloadPackage', + publicationPackage?.UUID, + bill.UUID, + eventType, + ], + queryFn: async () => + downloadFile( + `publication-packages/${publicationPackage?.UUID}/download` + ), + enabled: false, + }) + + const handleAction = () => + download().finally(() => + queryClient.invalidateQueries({ + queryKey: getPublicationBillsBillUuidPackagesGetQueryKey( + bill.UUID + ), + }) + ) + + const date = useMemo(() => { + if (!!publicationPackage?.Latest_Download_Date) { + return formatDate( + new Date(publicationPackage.Latest_Download_Date), + 'dd-MM-yyyy' + ) + } + }, [publicationPackage]) + + return ( +
    + {!!publicationPackage?.Latest_Download_Date && ( + + Laatst gedownload op {date} + + )} + +
    + ) +} + +const UploadAction = ({ + bill, + publicationPackage, + isActive, + isLoading, +}: PackageStepActionsProps) => { + const queryClient = useQueryClient() + + const [files, setFiles] = useState(null) + + const { mutate, isPending } = usePublicationPackagesPackageUuidReportPost() + + const handleAction = () => { + if (!publicationPackage?.UUID || !!!files?.length) return + + Promise.all( + files.map(file => + mutate({ + packageUuid: publicationPackage.UUID, + data: { xml_file: file }, + }) + ) + ).finally(() => { + queryClient.invalidateQueries({ + queryKey: getPublicationBillsBillUuidPackagesGetQueryKey( + bill.UUID + ), + }) + }) + } + + const date = useMemo(() => { + if (!!publicationPackage?.Reports?.[0]) { + return formatDate( + new Date(publicationPackage.Reports[0].Created_Date), + 'dd-MM-yyyy' + ) + } + }, [publicationPackage]) + + return ( +
    + {publicationPackage?.Validation_Status !== 'Valid' ? ( + <> + {!!files?.length && ( +
    + {files.map(file => ( + + setFiles( + files.filter( + e => e.name !== file.name + ) + ) + } + /> + ))} +
    + )} + { + if (!e) return + + const newFiles = Array.from(e) + + setFiles( + !!files?.length + ? [...files, ...newFiles] + : newFiles + ) + }}> + + + {!!files?.length && ( + + )} + + ) : ( + Geupload op {date} + )} +
    + ) +} + +export default PackageStepActions diff --git a/src/components/Publications/PublicationPackages/components/index.ts b/src/components/Publications/PublicationPackages/components/index.ts new file mode 100644 index 00000000..36d4b3c0 --- /dev/null +++ b/src/components/Publications/PublicationPackages/components/index.ts @@ -0,0 +1,4 @@ +import PackageStep from './PackageStep' +import PackageStepActions from './PackageStepActions' + +export { PackageStep, PackageStepActions } diff --git a/src/components/Publications/PublicationPackages/index.ts b/src/components/Publications/PublicationPackages/index.ts new file mode 100644 index 00000000..e10af1c9 --- /dev/null +++ b/src/components/Publications/PublicationPackages/index.ts @@ -0,0 +1 @@ +export { default } from './PublicationPackages' diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx index 416cefed..bceb4936 100644 --- a/src/components/Publications/PublicationVersions/PublicationVersions.tsx +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -46,7 +46,7 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { - + @@ -75,12 +75,8 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { const VersionRow = ({ publication, - Version_ID, - Procedure_Type, - Is_Official, status, - UUID, - Module_Status_ID, + ...bill }: PublicationBillShort & { publication: Publication; status?: string }) => { const { moduleId } = useParams() @@ -98,30 +94,45 @@ const VersionRow = ({ ) const { isFetching, refetch: download } = useQuery({ - queryKey: ['downloadDiff', moduleId, Module_Status_ID, UUID], - queryFn: () => downloadDiff({ moduleId, Module_Status_ID }), + queryKey: ['downloadDiff', moduleId, bill.Module_Status_ID, bill.UUID], + queryFn: () => + downloadDiff({ moduleId, Module_Status_ID: bill.Module_Status_ID }), enabled: false, }) return ( - + - - + +
    Versie# Gebaseerd op Modulestatus Type besluit Doel
    {Version_ID}{bill.Version_ID} {status}{Procedure_Type}{Is_Official ? 'Officiële' : 'Interne'} publicatie{bill.Procedure_Type}{bill.Is_Official ? 'Officiële' : 'Interne'} publicatie
    + {!bill.Locked && ( + + )}
    diff --git a/src/components/Publications/Publications.tsx b/src/components/Publications/Publications.tsx new file mode 100644 index 00000000..b87aa635 --- /dev/null +++ b/src/components/Publications/Publications.tsx @@ -0,0 +1,54 @@ +import { Button, Heading } from '@pzh-ui/components' +import { Plus } from '@pzh-ui/icons' +import { useParams } from 'react-router-dom' + +import { usePublicationsGet } from '@/api/fetchers' +import { AppExtensionsPublicationsEnumsDocumentType } from '@/api/fetchers.schemas' +import useModalStore from '@/store/modalStore' + +import { LoaderSpinner } from '../Loader' +import Publication from './Publication' + +interface PublicationsProps { + type: AppExtensionsPublicationsEnumsDocumentType +} + +const Publications = ({ type }: PublicationsProps) => { + const { moduleId } = useParams() + + const setActiveModal = useModalStore(state => state.setActiveModal) + + const { data, isPending } = usePublicationsGet( + { document_type: type, module_ID: parseInt(moduleId!) }, + { query: { enabled: !!moduleId } } + ) + + return ( +
    + + {type} + + + {isPending ? ( +
    + +
    + ) : ( + data?.results.map(publication => ( + + )) + )} + + +
    + ) +} + +export default Publications diff --git a/src/components/Publications/index.ts b/src/components/Publications/index.ts new file mode 100644 index 00000000..53ba7944 --- /dev/null +++ b/src/components/Publications/index.ts @@ -0,0 +1 @@ +export { default } from './Publications' diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 06dab5fb..128c910d 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -30,6 +30,8 @@ import { } from '@/components/Modals/ModuleModals' import { PublicationAddModal, + PublicationEditModal, + PublicationPackagesModal, PublicationVersionAddModal, PublicationVersionEditModal, } from '@/components/Modals/PublicationModals' @@ -39,7 +41,7 @@ import ModuleItemList from '@/components/Modules/ModuleItemList' import ModuleLock from '@/components/Modules/ModuleLock' import ModuleTimeline from '@/components/Modules/ModuleTimeline' import ModuleVersionCard from '@/components/Modules/ModuleVersionCard' -import Publication from '@/components/Publications/Publication' +import Publications from '@/components/Publications' import useModule from '@/hooks/useModule' import useModuleManagers from '@/hooks/useModuleManagers' import usePermissions from '@/hooks/usePermissions' @@ -265,7 +267,7 @@ const TabDecisions = () => { {documentTypes.map((type, index) => ( - + {index + 1 !== documentTypes.length && ( @@ -275,8 +277,10 @@ const TabDecisions = () => { + + ) } diff --git a/yarn.lock b/yarn.lock index 43659a74..34f946d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1931,7 +1931,7 @@ __metadata: languageName: node linkType: hard -"@floating-ui/react-dom@npm:^2.0.1": +"@floating-ui/react-dom@npm:^2.0.1, @floating-ui/react-dom@npm:^2.0.8": version: 2.0.8 resolution: "@floating-ui/react-dom@npm:2.0.8" dependencies: @@ -1957,6 +1957,20 @@ __metadata: languageName: node linkType: hard +"@floating-ui/react@npm:^0.26.2": + version: 0.26.9 + resolution: "@floating-ui/react@npm:0.26.9" + dependencies: + "@floating-ui/react-dom": "npm:^2.0.8" + "@floating-ui/utils": "npm:^0.2.1" + tabbable: "npm:^6.0.1" + peerDependencies: + react: ">=16.8.0" + react-dom: ">=16.8.0" + checksum: 997f5a471ac6080c5162ad86fbb8e5bc0eca9335c40d8445597a90ba645e5d35ee796c29bdc66d868182afe5901804ecd52b82560332ae123b0c269400421e63 + languageName: node + linkType: hard + "@floating-ui/utils@npm:^0.2.0, @floating-ui/utils@npm:^0.2.1": version: 0.2.1 resolution: "@floating-ui/utils@npm:0.2.1" @@ -2122,40 +2136,40 @@ __metadata: languageName: node linkType: hard -"@internationalized/date@npm:^3.5.1": - version: 3.5.1 - resolution: "@internationalized/date@npm:3.5.1" +"@internationalized/date@npm:^3.5.2": + version: 3.5.2 + resolution: "@internationalized/date@npm:3.5.2" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: 38bce4ca2123dc4a3a7ef62ea44a86e0619764d42c3895ae5f0c4f17e7320dc945d61691dd0bc0f4dff6cda834113d1fe55253afebf4a46bf21e7b0e9f890096 + checksum: e37cdea4efa6214e72148f55f42782b3e8cd40bdca29705e52e6c490855f9ccbf38d0182632be005d9555463b50e8bf5fdb0d759cadff1baf7bae4fdaa28e96f languageName: node linkType: hard -"@internationalized/message@npm:^3.1.1": - version: 3.1.1 - resolution: "@internationalized/message@npm:3.1.1" +"@internationalized/message@npm:^3.1.2": + version: 3.1.2 + resolution: "@internationalized/message@npm:3.1.2" dependencies: "@swc/helpers": "npm:^0.5.0" intl-messageformat: "npm:^10.1.0" - checksum: b73b443e75ab1d95e0d406a75107b1899d221883463de95769f3d63836bf91e7ac1ce07bd141121b9ccb89ff24d469aa424ba47e85b02dc8a8e0827b991bf801 + checksum: c6b8f9983f1922f27c45586d82500a8fd4e75cab622c367b70047bb9f45749ab8153c77b02fd3da635e3d6649d8609ae6d1df6da710a166361078e32b4516d2e languageName: node linkType: hard -"@internationalized/number@npm:^3.5.0": - version: 3.5.0 - resolution: "@internationalized/number@npm:3.5.0" +"@internationalized/number@npm:^3.5.1": + version: 3.5.1 + resolution: "@internationalized/number@npm:3.5.1" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: 8272b5da8afd4e1379767765f9ef24283e7ccb7c077646ded17fe7de11d72d2fd8f6e41f4ea21f101d084133f670059f062c3929ff18cf171f8f768151502bf5 + checksum: 4ad68d98285a18a910d19455a0fa9c3960a919a139f0b01d2d589bfda1a2ebb8378b8c912e17c0d82cf756e7b3f48b0bff8a6decef1644c6c2f894da4e1e7c79 languageName: node linkType: hard -"@internationalized/string@npm:^3.2.0": - version: 3.2.0 - resolution: "@internationalized/string@npm:3.2.0" +"@internationalized/string@npm:^3.2.1": + version: 3.2.1 + resolution: "@internationalized/string@npm:3.2.1" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: ebe3cf9394baa5cc134eb6956f57785ddaaae79e9f66400783a0560541747fef170a59fd05923dc0c41e3f860343cc1175b3435412a616570d3247199f10c0e0 + checksum: 69603641a90fee37fc539adc8f3f5cbdd61909da486515bd4580fcce05495a9f0f303e6d8a36a8accb86c95845d84e78b088e4680ca087928b6b588756eb879b languageName: node linkType: hard @@ -2507,14 +2521,14 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.465": - version: 0.0.465 - resolution: "@pzh-ui/components@npm:0.0.465" +"@pzh-ui/components@npm:^0.0.472": + version: 0.0.472 + resolution: "@pzh-ui/components@npm:0.0.472" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" "@pzh-ui/icons": "npm:^0.0.50" - "@react-aria/utils": "npm:^3.19.0" + "@react-aria/utils": "npm:^3.23.2" "@react-hookz/web": "npm:^23.1.0" "@react-types/shared": "npm:^3.19.0" "@tanstack/react-table": "npm:^8.9.9" @@ -2549,17 +2563,18 @@ __metadata: focus-trap-react: "npm:^10.1.1" formik: "npm:^2.4.2" react: "npm:^18.2.0" - react-aria: "npm:^3.26.0" - react-datepicker: "npm:^4.16.0" + react-aria: "npm:^3.32.1" + react-aria-components: "npm:^1.1.1" + react-datepicker: "npm:^6.1.0" react-dom: "npm:^18.2.0" react-dropzone: "npm:^14.2.3" react-paginate: "npm:^8.2.0" react-router-dom: "npm:^6.14.2" react-select: "npm:^5.7.3" - react-stately: "npm:^3.18.0" + react-stately: "npm:^3.30.1" react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" - checksum: c58dc32aa107819994b6240749e9871c0288a18c3d8baa30cc1714501f82a08c92481c8ce874bb2e0a5cb21055bc0041a939856c7a3cda22ff70cc7cb78e714c + checksum: d443a4abe96e91ae1df6f2db79fe48ca2513c7a40c5c974180e946ad625993a4cbfc247113810f5bee8af56dc67bace1738a0b97f04d62cc821856647d9084eb languageName: node linkType: hard @@ -2591,9 +2606,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/css@npm:^0.0.80": - version: 0.0.80 - resolution: "@pzh-ui/css@npm:0.0.80" +"@pzh-ui/css@npm:^0.0.81": + version: 0.0.81 + resolution: "@pzh-ui/css@npm:0.0.81" dependencies: "@rollup/plugin-typescript": "npm:^8.3.1" "@tailwindcss/custom-forms": "npm:^0.2.1" @@ -2602,7 +2617,7 @@ __metadata: "@tailwindcss/typography": "npm:^0.5.9" react-datepicker: "npm:^4.7.0" react-toastify: "npm:^9.1.2" - checksum: f33cfa8697ac1840659461e1bc574a74d7ce26a6194bd4c159c7256073734c5f72e20c6a19535e5d767f0997902bd632ecce8a95342aafff32177effc70a9211 + checksum: 7f1c22f2fca0c92f4735e9f60b679a7e0fb761d7c5f7588cb7031bb32b79bd1db56cb8e40c664623b7fba1b7694f717db90e777bf7502301990ce2606cae91bc languageName: node linkType: hard @@ -2616,736 +2631,752 @@ __metadata: languageName: node linkType: hard -"@react-aria/breadcrumbs@npm:^3.5.9": - version: 3.5.9 - resolution: "@react-aria/breadcrumbs@npm:3.5.9" +"@react-aria/breadcrumbs@npm:^3.5.11": + version: 3.5.11 + resolution: "@react-aria/breadcrumbs@npm:3.5.11" dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/link": "npm:^3.6.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/breadcrumbs": "npm:^3.7.2" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/link": "npm:^3.6.5" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/breadcrumbs": "npm:^3.7.3" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 28be0194f434c79c3414d9e549cc51c38ff8b84794508a0abc0211752e828c53b69b53b6b23d7566797c7e303724616e0c0e4e7d00cd9b33206ccc685eac6f01 + checksum: baf8ce4c8a5c85dca93463349fb45a151c91ae90475d28cda119083c45588f28a2e043108bc66d8f9d936eb93829743427b026f31f986069e009f0749c70ae10 languageName: node linkType: hard -"@react-aria/button@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-aria/button@npm:3.9.1" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/button@npm:^3.9.3": + version: 3.9.3 + resolution: "@react-aria/button@npm:3.9.3" + dependencies: + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/toggle": "npm:^3.7.2" + "@react-types/button": "npm:^3.9.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 15739bb1e09d7999c0fe58545a1f514a999553dfdda336a45e1c51a4e9fc928f83683a7dd142420f5e3f225c248a62b98d9367ab0144269db190cb3b1c435898 + checksum: e3c535f00109d7409e1b42e4fc02313f28c7236d3689eb6de2861050c193f51a73dc27b512c8c3c733da7ec4329a7c6ace5a5ea8d75629215e63a9bf625c9db7 languageName: node linkType: hard -"@react-aria/calendar@npm:^3.5.4": - version: 3.5.4 - resolution: "@react-aria/calendar@npm:3.5.4" +"@react-aria/calendar@npm:^3.5.6": + version: 3.5.6 + resolution: "@react-aria/calendar@npm:3.5.6" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/calendar": "npm:^3.4.3" - "@react-types/button": "npm:^3.9.1" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.2" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/live-announcer": "npm:^3.3.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/calendar": "npm:^3.4.4" + "@react-types/button": "npm:^3.9.2" + "@react-types/calendar": "npm:^3.4.4" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9f192ed7ee613ca9c15ba4bc36b3a01a525424341b1edb454d7fe5b941be9159852467714275e993e8dc82b9621db858983596aee8a77bbaf23da6a4c717703e + checksum: 85612ff6bcc20150ee33a5e690e581c636435cdab1c48a56e867207b24e64df464bbec87287a2c912aeffd9a43f9dbb4049ac211900f9fe98f4b33ea42cf0489 languageName: node linkType: hard -"@react-aria/checkbox@npm:^3.13.0": - version: 3.13.0 - resolution: "@react-aria/checkbox@npm:3.13.0" - dependencies: - "@react-aria/form": "npm:^3.0.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/toggle": "npm:^3.10.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/checkbox": "npm:^3.6.1" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/checkbox@npm:^3.14.1": + version: 3.14.1 + resolution: "@react-aria/checkbox@npm:3.14.1" + dependencies: + "@react-aria/form": "npm:^3.0.3" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/toggle": "npm:^3.10.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/checkbox": "npm:^3.6.3" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/toggle": "npm:^3.7.2" + "@react-types/checkbox": "npm:^3.7.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 208e8b095710f5140654f2a0bac14ae046e7a44ddca1200fe4fc6ddf09af95189446c6e2fc0f72d5de34098ea39e5b653c5830350eae2db577de69ea2c52caee + checksum: d579d277aff110e5cfecf3f4c25b4f635d227104558af5448d18bce32c5a85663d728ac3814347ca3d5c9088a76f09a04ce858e4c2853d7cc4709e4146ab96f1 languageName: node linkType: hard -"@react-aria/combobox@npm:^3.8.2": - version: 3.8.2 - resolution: "@react-aria/combobox@npm:3.8.2" - dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/listbox": "npm:^3.11.3" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/menu": "npm:^3.12.0" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/combobox": "npm:^3.8.1" - "@react-stately/form": "npm:^3.0.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/combobox": "npm:^3.10.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/combobox@npm:^3.8.4": + version: 3.8.4 + resolution: "@react-aria/combobox@npm:3.8.4" + dependencies: + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/listbox": "npm:^3.11.5" + "@react-aria/live-announcer": "npm:^3.3.2" + "@react-aria/menu": "npm:^3.13.1" + "@react-aria/overlays": "npm:^3.21.1" + "@react-aria/selection": "npm:^3.17.5" + "@react-aria/textfield": "npm:^3.14.3" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/combobox": "npm:^3.8.2" + "@react-stately/form": "npm:^3.0.1" + "@react-types/button": "npm:^3.9.2" + "@react-types/combobox": "npm:^3.10.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 2b3758d337af9d45cd929be2e38bd7c96e6ec8af377c8f3210d7bba89aec6cf4c8001e3f66261467f54509d586668aabd80b24bde7aa9f074a87ffb7a0ca0cf9 - languageName: node - linkType: hard - -"@react-aria/datepicker@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-aria/datepicker@npm:3.9.1" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@internationalized/number": "npm:^3.5.0" - "@internationalized/string": "npm:^3.2.0" - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/form": "npm:^3.0.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/spinbutton": "npm:^3.6.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/datepicker": "npm:^3.9.1" - "@react-stately/form": "npm:^3.0.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/datepicker": "npm:^3.7.1" - "@react-types/dialog": "npm:^3.5.7" - "@react-types/shared": "npm:^3.22.0" + checksum: abe760b78d4b7de41131816f7939a2fceed9acb1531a2c3e471230f9d2de01661ae891faf01ffe95b426bbe5f29960d7bd7ce7f54631e3d85e51a27556775aad + languageName: node + linkType: hard + +"@react-aria/datepicker@npm:^3.9.3": + version: 3.9.3 + resolution: "@react-aria/datepicker@npm:3.9.3" + dependencies: + "@internationalized/date": "npm:^3.5.2" + "@internationalized/number": "npm:^3.5.1" + "@internationalized/string": "npm:^3.2.1" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/form": "npm:^3.0.3" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/spinbutton": "npm:^3.6.3" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/datepicker": "npm:^3.9.2" + "@react-stately/form": "npm:^3.0.1" + "@react-types/button": "npm:^3.9.2" + "@react-types/calendar": "npm:^3.4.4" + "@react-types/datepicker": "npm:^3.7.2" + "@react-types/dialog": "npm:^3.5.8" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 13c4e3dbcf358cddb34022fb58e0d6259f40a47bc36f790fba8cb0545d5cfc5b17652e18f6fe0857e764b446f8c53663b3b2160ea1722096e016918e2ceb5190 + checksum: c6d27d3dd75e9e9fd958d0b08982e8517a49400c02bd37cb75a2e31839b024388d63cb53200cf4a654c83dd61049d5d687f716789ee6d7d915b1b9c45164e9b8 languageName: node linkType: hard -"@react-aria/dialog@npm:^3.5.10": - version: 3.5.10 - resolution: "@react-aria/dialog@npm:3.5.10" +"@react-aria/dialog@npm:^3.5.12": + version: 3.5.12 + resolution: "@react-aria/dialog@npm:3.5.12" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/dialog": "npm:^3.5.7" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/overlays": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/dialog": "npm:^3.5.8" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f9a514a5fb36cf3bb1545f4d4d8162ec143e7d9c8f6e7f8c0510f3767639b16a24d43013909606067fe5a103cf11c80a772fa0b4902f28bb70b974d5144c0120 + checksum: 3de699980e8582056675fef747746c23f8875940d85bd6dafadacf9e59c0edd0d9b1dc2f011fb1cfbcbdebdf4a2796fa9bc19e953c4c809f671151975031d6bf languageName: node linkType: hard -"@react-aria/dnd@npm:^3.5.1": - version: 3.5.1 - resolution: "@react-aria/dnd@npm:3.5.1" - dependencies: - "@internationalized/string": "npm:^3.2.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/dnd": "npm:^3.2.7" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/dnd@npm:^3.5.3": + version: 3.5.3 + resolution: "@react-aria/dnd@npm:3.5.3" + dependencies: + "@internationalized/string": "npm:^3.2.1" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/live-announcer": "npm:^3.3.2" + "@react-aria/overlays": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/dnd": "npm:^3.2.8" + "@react-types/button": "npm:^3.9.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 3d7fbb5388b55227d71c201edfa9c3d60fb8c65e6129d136d15f4120d8d07f7f9db61d5c0e749fc671c0727c211013cb369715d1018d970bcbb22bb09084ff0d + checksum: 6fe1cd94956167bfc0f4aeaab6f87edec082a996d8745dde5113ae09c63d5d70e2b0648cb1357d54e0f7a62b34002f2d6a499bf2486f78ba7f7fbfac6db9aa58 languageName: node linkType: hard -"@react-aria/focus@npm:^3.16.0": - version: 3.16.0 - resolution: "@react-aria/focus@npm:3.16.0" +"@react-aria/focus@npm:^3.16.2": + version: 3.16.2 + resolution: "@react-aria/focus@npm:3.16.2" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" clsx: "npm:^2.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 1c01a56bf29e21b95f05f9e97ec8b4cb5ea4024702103e8222c36ef9e0ff62e67b5419cc9003c91f79a41420d1d26a17c7f126392372b6b441657b6c0a7c395e + checksum: da25d79534443652ed2ad560ce1e56653a28ac5ccbd5a7be2822c11b748f46e8a544f37bea0bff8ad1a82493c77c6f17c418c86c995abe45df36fbe33bae0156 languageName: node linkType: hard -"@react-aria/form@npm:^3.0.1": - version: 3.0.1 - resolution: "@react-aria/form@npm:3.0.1" +"@react-aria/form@npm:^3.0.3": + version: 3.0.3 + resolution: "@react-aria/form@npm:3.0.3" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/form": "npm:^3.0.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/form": "npm:^3.0.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: b3d8e1e0abba4acd107814157e14af8ebe0f5989326574b6a8bf132046f5b76678018b44ffd093393eba60aefb970673f76f549f6ed8aaec4cf9cc794b6b31f8 - languageName: node - linkType: hard - -"@react-aria/grid@npm:^3.8.6": - version: 3.8.6 - resolution: "@react-aria/grid@npm:3.8.6" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/grid": "npm:^3.8.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/virtualizer": "npm:^3.6.6" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" + checksum: 2b4f6f7a33c1cfc1f82f05a2433d5bd9dfda93b2dd365c16631fe63c32d113ca11353ae2151274f6b8e1ad3885aecaf569b357b24cf7464b8436ba6785eca2ee + languageName: node + linkType: hard + +"@react-aria/grid@npm:^3.8.8": + version: 3.8.8 + resolution: "@react-aria/grid@npm:3.8.8" + dependencies: + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/live-announcer": "npm:^3.3.2" + "@react-aria/selection": "npm:^3.17.5" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/grid": "npm:^3.8.5" + "@react-stately/selection": "npm:^3.14.3" + "@react-stately/virtualizer": "npm:^3.6.8" + "@react-types/checkbox": "npm:^3.7.1" + "@react-types/grid": "npm:^3.2.4" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e0f5942c598551f6b50807217e61c8d2d2340abaa468df969409fd71a9e7c7d782b26fbd03a70a04e3396900b78f5b9cf356832f0008ed44a34a0d03c700dcc3 + checksum: 61e1d82b39c8c7638465060826f6bbf19a971294f6060fcdbc13d3b326c696b8cdc2c88d49d07b66f894cb5aaa76ab324cf8ba8e112e894122d330ab6f4b3a58 languageName: node linkType: hard -"@react-aria/gridlist@npm:^3.7.3": - version: 3.7.3 - resolution: "@react-aria/gridlist@npm:3.7.3" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/grid": "npm:^3.8.6" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/list": "npm:^3.10.2" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/gridlist@npm:^3.7.5": + version: 3.7.5 + resolution: "@react-aria/gridlist@npm:3.7.5" + dependencies: + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/grid": "npm:^3.8.8" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/selection": "npm:^3.17.5" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/list": "npm:^3.10.3" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ce1bb4764fcc100d3f22432f9651622b9e396f88c04c71e62ff6f428f97c503c8793ace2d52145ff22501d3c2486e11a35cf7726a57bb02ab863804e7ecd4d44 + checksum: dd540ee75105a40a9a1f23dcdea6e6e54d901e823d43a18bc2c1653791cdbf41a375834e9dce6c279703657239cb9651cc9e6c61449e981c0a2d11e260d7abae languageName: node linkType: hard -"@react-aria/i18n@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-aria/i18n@npm:3.10.0" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@internationalized/message": "npm:^3.1.1" - "@internationalized/number": "npm:^3.5.0" - "@internationalized/string": "npm:^3.2.0" - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/i18n@npm:^3.10.2": + version: 3.10.2 + resolution: "@react-aria/i18n@npm:3.10.2" + dependencies: + "@internationalized/date": "npm:^3.5.2" + "@internationalized/message": "npm:^3.1.2" + "@internationalized/number": "npm:^3.5.1" + "@internationalized/string": "npm:^3.2.1" + "@react-aria/ssr": "npm:^3.9.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 911ea23df89d303ef2a25fffec8d9d272dc9949bf76615b8219e3484178de19cf6aa77d05ac67de6fa1d40e7adde9c029bea3cdcee20ce7099f83899c4eea966 + checksum: e24558e3f659246b59e5a2862a99debec7cd9ec152c74fbfbfc15c0816a77448d455a131790b954697fcc0bf8633bc102c1b27121a8b7043820563c7b5987095 languageName: node linkType: hard -"@react-aria/interactions@npm:^3.20.1": - version: 3.20.1 - resolution: "@react-aria/interactions@npm:3.20.1" +"@react-aria/interactions@npm:^3.21.1": + version: 3.21.1 + resolution: "@react-aria/interactions@npm:3.21.1" dependencies: - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/ssr": "npm:^3.9.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 17fbbab6bfb0e0860fa0250ba644b1e6aaf23023e143a7f9f816c37d164813f858be592644cc89f06f6a1baa9dffdfa8bd5a2db12246f0837dce4a9169217932 + checksum: ca0918dca1ee41e7ac9129eeb5a23f02a9043cae55f0ee381dc93bd763ac31928a809e029e8bd144223b0f44275736b29079d99fbd22891c244f09c50d16665b languageName: node linkType: hard -"@react-aria/label@npm:^3.7.4": - version: 3.7.4 - resolution: "@react-aria/label@npm:3.7.4" +"@react-aria/label@npm:^3.7.6": + version: 3.7.6 + resolution: "@react-aria/label@npm:3.7.6" dependencies: - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 30c14e5e985d671e49a162392e890b9d86c1fcc7758d6c80196158209fe62ee4a48392a496940e18065a6682a5271e02d68ec4afc8c3a553f624fda8338806a2 + checksum: 812c2b4268f10c9927a6bfff6ef44c836afac0468c2a1e48c71fd5644792c9ee25f4d4b1c5a784cbbfa8c0369893ce0ca9eab8b63e9baf5bf255b240414a1c81 languageName: node linkType: hard -"@react-aria/link@npm:^3.6.3": - version: 3.6.3 - resolution: "@react-aria/link@npm:3.6.3" +"@react-aria/link@npm:^3.6.5": + version: 3.6.5 + resolution: "@react-aria/link@npm:3.6.5" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/link": "npm:^3.5.2" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/link": "npm:^3.5.3" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 647c85cdb07f7a4a7244a5fb6baf4d634a8031542a2336ef71dea9f733c52e95fdf59ef94cb556f29c68e07f4c14469f988c6b3200d15f565e205500b0ecf08b + checksum: efc425d1991799c8577b2d0166def63b389dc58db7f45204bee4a86c16f127f610bf6d543a57eac7cfad5e85941400ea97bddb8e6b688c1da0c13f8893ca7c0c languageName: node linkType: hard -"@react-aria/listbox@npm:^3.11.3": - version: 3.11.3 - resolution: "@react-aria/listbox@npm:3.11.3" +"@react-aria/listbox@npm:^3.11.5": + version: 3.11.5 + resolution: "@react-aria/listbox@npm:3.11.5" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/list": "npm:^3.10.2" - "@react-types/listbox": "npm:^3.4.6" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/selection": "npm:^3.17.5" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/list": "npm:^3.10.3" + "@react-types/listbox": "npm:^3.4.7" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7b79433489afcd20178529e43227b3a7d45157d0a0832bca5c7b8925d57fcfce2502b126a05eef73d1e2ca58386afc04d6dffc3e89acfffeecf0ba326d748c28 + checksum: f3f9449c8bfae36b631994ea1beea804711ffae90be7a118c51b862c4a1b40011a504b8ffc537025184acce1ba07a20e4d2f57a1e14d3875b9ec305ea0eab257 languageName: node linkType: hard -"@react-aria/live-announcer@npm:^3.3.1": - version: 3.3.1 - resolution: "@react-aria/live-announcer@npm:3.3.1" +"@react-aria/live-announcer@npm:^3.3.2": + version: 3.3.2 + resolution: "@react-aria/live-announcer@npm:3.3.2" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: ec87c553a49510197bf2d7eb9c654cf4116240fb276d76c3766d5d2f76e2c83ba99c30c79b620c6941c07997ad43ee9c10f793eaf9dcfafd41d8af42bf45bf4f - languageName: node - linkType: hard - -"@react-aria/menu@npm:^3.12.0": - version: 3.12.0 - resolution: "@react-aria/menu@npm:3.12.0" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/menu": "npm:^3.6.0" - "@react-stately/tree": "npm:^3.7.5" - "@react-types/button": "npm:^3.9.1" - "@react-types/menu": "npm:^3.9.6" - "@react-types/shared": "npm:^3.22.0" + checksum: 32af58277cf132970f9974bbc2adc69119be98222757a0e0538a7aa42541d28aad6c084f2b0f0d6b5e8b06727a2ffed61413e448433fbe38a5ff2ce59477f75f + languageName: node + linkType: hard + +"@react-aria/menu@npm:^3.13.1": + version: 3.13.1 + resolution: "@react-aria/menu@npm:3.13.1" + dependencies: + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/overlays": "npm:^3.21.1" + "@react-aria/selection": "npm:^3.17.5" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/menu": "npm:^3.6.1" + "@react-stately/tree": "npm:^3.7.6" + "@react-types/button": "npm:^3.9.2" + "@react-types/menu": "npm:^3.9.7" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 574e4e5eaecd2267ddf7f5cc27af8f51d7a142f343db7cc1638edb7dabed8bc2ef39a72d0fdafb64f947af2b521523936b8bf644b3232e85c310c3def602931e + checksum: 16ff5650950580688f752487126f6637f9f4fb0c44c753f205e43d676fb87dede868b013135795ca66b1a9c4e4ba70fc3a9dbcdbeb124c9231bacfa4a90d2360 languageName: node linkType: hard -"@react-aria/meter@npm:^3.4.9": - version: 3.4.9 - resolution: "@react-aria/meter@npm:3.4.9" +"@react-aria/meter@npm:^3.4.11": + version: 3.4.11 + resolution: "@react-aria/meter@npm:3.4.11" dependencies: - "@react-aria/progress": "npm:^3.4.9" - "@react-types/meter": "npm:^3.3.6" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/progress": "npm:^3.4.11" + "@react-types/meter": "npm:^3.3.7" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 59f776b87a61a19d488cfb41f3f09a8a66e50c0342108ac5272bdff05eeade5b3c2f9aea79b1995b0d22b86413035fec6e36284dc6d1fde108c46cf1893ce046 + checksum: 026effea67234eb8b2c424625f09af89133947b1cb00a80cddfaa0ad41b14ccb304e707b10162f2e0adfb56b0610b519b0b86ba2d4f640388b1e75db2dda7ea4 languageName: node linkType: hard -"@react-aria/numberfield@npm:^3.10.2": - version: 3.10.2 - resolution: "@react-aria/numberfield@npm:3.10.2" - dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/spinbutton": "npm:^3.6.1" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/numberfield": "npm:^3.8.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/numberfield": "npm:^3.7.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/numberfield@npm:^3.11.1": + version: 3.11.1 + resolution: "@react-aria/numberfield@npm:3.11.1" + dependencies: + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/spinbutton": "npm:^3.6.3" + "@react-aria/textfield": "npm:^3.14.3" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/numberfield": "npm:^3.9.1" + "@react-types/button": "npm:^3.9.2" + "@react-types/numberfield": "npm:^3.8.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 297a8f91f93ba7daf12648aa0c3bab61db1151a1a8f4ed79d990a046439747622811422df5583050c802e67e5dcde9a59b942b3f3b2cd5bb10dc13f818182427 + checksum: 2eec4cd6e19b720e4a7801a13e0c06febcd4efcf58f3b6e89fc84ffc4e72e38ed23321863caa226c3e3dd88572fec11888a6884b788a4d98c20fdfe6a4fcfa1a languageName: node linkType: hard -"@react-aria/overlays@npm:^3.20.0": - version: 3.20.0 - resolution: "@react-aria/overlays@npm:3.20.0" +"@react-aria/overlays@npm:^3.21.1": + version: 3.21.1 + resolution: "@react-aria/overlays@npm:3.21.1" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/button": "npm:^3.9.1" - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/ssr": "npm:^3.9.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-aria/visually-hidden": "npm:^3.8.10" + "@react-stately/overlays": "npm:^3.6.5" + "@react-types/button": "npm:^3.9.2" + "@react-types/overlays": "npm:^3.8.5" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9103beae43a92b13ef4745585aef2d03f6c690ec9d24bd66151ae4bfb101c08fdad7d09278ed19ac3c0068fd25c72080c58750d2e0c60aec20174f392c6bd4ef + checksum: 3143558dfb6e266194c0581475d10827d1296bb517e3cb3b50e4fe09a5e44a5616440a8f857389ab83572bbb507d738976651fcbf8eec9df0730a93aca159eb7 languageName: node linkType: hard -"@react-aria/progress@npm:^3.4.9": - version: 3.4.9 - resolution: "@react-aria/progress@npm:3.4.9" +"@react-aria/progress@npm:^3.4.11": + version: 3.4.11 + resolution: "@react-aria/progress@npm:3.4.11" dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/progress": "npm:^3.5.1" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/progress": "npm:^3.5.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 8ec633e71ed35189fc1d950cf5aa5cbe7830bcebb5a86d2cdfb785b8435602c8ec310956e8684e213ab2aee6cabd8940311bd3d0544db0028403ea6a76db32d9 + checksum: 16bc8ce8a33b5bbe0152780f2d1343fb687107323b122e1602e55ac55132d21108be137e7d00f13529356e706e2d24400e78762533c33352b40c6cfc89d7b8d5 languageName: node linkType: hard -"@react-aria/radio@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-aria/radio@npm:3.10.0" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/form": "npm:^3.0.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/radio": "npm:^3.10.1" - "@react-types/radio": "npm:^3.7.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/radio@npm:^3.10.2": + version: 3.10.2 + resolution: "@react-aria/radio@npm:3.10.2" + dependencies: + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/form": "npm:^3.0.3" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/radio": "npm:^3.10.2" + "@react-types/radio": "npm:^3.7.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e4078d95d20af82eb12029a10cd617eaa45f22c52913d0a1591a8cf48c76d7c3d9b81c9414bc53bf9eafb0a71125a93d575308063d9a20ff50171c50a5be7de5 + checksum: 184287a6d54b9f3a6b7f3f4344fc8eaace617e584a29601fbd87bb96f0d732c660438201c4342900ca6fd05fc3bd29764e26c4346b7dbbd6104cd4ca17cf6150 languageName: node linkType: hard -"@react-aria/searchfield@npm:^3.7.1": - version: 3.7.1 - resolution: "@react-aria/searchfield@npm:3.7.1" - dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/searchfield": "npm:^3.5.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/searchfield": "npm:^3.5.2" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/searchfield@npm:^3.7.3": + version: 3.7.3 + resolution: "@react-aria/searchfield@npm:3.7.3" + dependencies: + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/textfield": "npm:^3.14.3" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/searchfield": "npm:^3.5.1" + "@react-types/button": "npm:^3.9.2" + "@react-types/searchfield": "npm:^3.5.3" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f2b1183fbfa5c533391a7a29abe793b704d430ef57f8eb43a65a9967e5595959ebdb19967423b03c39174ed1d316e6666910a416534eb1b0bf4a4e70ee7d942a - languageName: node - linkType: hard - -"@react-aria/select@npm:^3.14.1": - version: 3.14.1 - resolution: "@react-aria/select@npm:3.14.1" - dependencies: - "@react-aria/form": "npm:^3.0.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/listbox": "npm:^3.11.3" - "@react-aria/menu": "npm:^3.12.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-stately/select": "npm:^3.6.1" - "@react-types/button": "npm:^3.9.1" - "@react-types/select": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" + checksum: 5f85c001e2c677d7f48ffa389d054411644e2f4c584eb3a00e8eb1207d02e7d5da85f03da356670a8f335ab40385a3fcf4263dc1768372aaf9a0b8eafebbb6e3 + languageName: node + linkType: hard + +"@react-aria/select@npm:^3.14.3": + version: 3.14.3 + resolution: "@react-aria/select@npm:3.14.3" + dependencies: + "@react-aria/form": "npm:^3.0.3" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/listbox": "npm:^3.11.5" + "@react-aria/menu": "npm:^3.13.1" + "@react-aria/selection": "npm:^3.17.5" + "@react-aria/utils": "npm:^3.23.2" + "@react-aria/visually-hidden": "npm:^3.8.10" + "@react-stately/select": "npm:^3.6.2" + "@react-types/button": "npm:^3.9.2" + "@react-types/select": "npm:^3.9.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4f2192b513e49a920fbc54343c734d855dda207a71fe31a84852d01a19aba4c4862f82e33c08ac814551938be709336b6546411a427b19972c5a628c1b831730 + checksum: d3ddeb22afed02ad323b94420db3b9f87a3f29f9a97a52984d198c48e2465b352897f21dcf0c29eb4f98d078822e8a3c3815c4044c1a8deed21ef87ab1aba791 languageName: node linkType: hard -"@react-aria/selection@npm:^3.17.3": - version: 3.17.3 - resolution: "@react-aria/selection@npm:3.17.3" +"@react-aria/selection@npm:^3.17.5": + version: 3.17.5 + resolution: "@react-aria/selection@npm:3.17.5" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/selection": "npm:^3.14.2" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/selection": "npm:^3.14.3" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9e15db4919fb483fb2303901133cc317d8c2b13cc990e864f7da4b4445388697edc2cb056189977af36f33d7f04237e1f30a717e9db924fcb6065a159c92d4b1 + checksum: d6fb38e79a2cac200dc46f22cdf1131188cbbe765a28d815b3503166339987bdebb37ba79b9f4abecdd8b83c2b26669064b8dbfc8913a665105a444d21cab0e5 languageName: node linkType: hard -"@react-aria/separator@npm:^3.3.9": - version: 3.3.9 - resolution: "@react-aria/separator@npm:3.3.9" +"@react-aria/separator@npm:^3.3.11": + version: 3.3.11 + resolution: "@react-aria/separator@npm:3.3.11" dependencies: - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 670c74708705e56daa6907f48bb7fe429cd4c7470dad4bb4555a4324c1755e429b93059112cc0919bf799adf452747983b216515f10ed54d3243ae348cdd154f + checksum: e11e5b60a899da3b71c3afb23c666f7ac96090fadcd12b1d03ba278c80b8124023ddcff0d9628a3679db78d315c56d533172c032d87df429e8d8f40bd45991e5 languageName: node linkType: hard -"@react-aria/slider@npm:^3.7.4": - version: 3.7.4 - resolution: "@react-aria/slider@npm:3.7.4" +"@react-aria/slider@npm:^3.7.6": + version: 3.7.6 + resolution: "@react-aria/slider@npm:3.7.6" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/slider": "npm:^3.5.0" - "@react-types/shared": "npm:^3.22.0" - "@react-types/slider": "npm:^3.7.0" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/slider": "npm:^3.5.2" + "@react-types/shared": "npm:^3.22.1" + "@react-types/slider": "npm:^3.7.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 5ff6b579076ad88918463e06a8664ed94adfcb5a5d8ee24f9948d546b1ef255d1f0691f25947cc8308202b6ce216737cc277493d4e4cf70785d17b051707fb14 + checksum: 9cbec4465cc099192ff17075c1cf10660b1567dbfe31a674aa76e16658163cc32af0c5009ca54ed728085d277e462d44852821be166e396a9f44a7cf0a5918ad languageName: node linkType: hard -"@react-aria/spinbutton@npm:^3.6.1": - version: 3.6.1 - resolution: "@react-aria/spinbutton@npm:3.6.1" +"@react-aria/spinbutton@npm:^3.6.3": + version: 3.6.3 + resolution: "@react-aria/spinbutton@npm:3.6.3" dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/live-announcer": "npm:^3.3.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/button": "npm:^3.9.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 64ecdc11d666220b9a08577d7d010e1898e7a0496d8d54b6d4454e208f2d8a4da54aa9d56c331e52893ebc83632de66188100f4204ea61ef501035d4cf0865a9 + checksum: ad39a9408cf1f8cbd7aae64161a3150bea3711b55d78b724c21e17ce46cfe3fb3bcecd31a15d4f380004e5d593c10f91a36ec3be0ff271a049792ef674cf6f0e languageName: node linkType: hard -"@react-aria/ssr@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-aria/ssr@npm:3.9.1" +"@react-aria/ssr@npm:^3.9.2": + version: 3.9.2 + resolution: "@react-aria/ssr@npm:3.9.2" dependencies: "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: a42bf23241b022e2e55ca95aeec5cafb3aa276b4586373f4b85834655ab05068d5af81707bf1d4548f2f5b29c80a02ef920c0711b2d1a8b189effca2c72ca5f9 + checksum: fe4ce0ccc647d14f158724c0605433291f1403a73c82cb6654c323b5153fa3afbf0d36618bb3ecac38217b56837c27490c32b7d2082034b1171de6e95a4382a8 languageName: node linkType: hard -"@react-aria/switch@npm:^3.6.0": - version: 3.6.0 - resolution: "@react-aria/switch@npm:3.6.0" +"@react-aria/switch@npm:^3.6.2": + version: 3.6.2 + resolution: "@react-aria/switch@npm:3.6.2" dependencies: - "@react-aria/toggle": "npm:^3.10.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/switch": "npm:^3.5.0" + "@react-aria/toggle": "npm:^3.10.2" + "@react-stately/toggle": "npm:^3.7.2" + "@react-types/switch": "npm:^3.5.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e6c76700841d77ca72e1917a3c240c9057dd0e6842efa22fae8f44f9a7677a1c7345331a3cbeb0b7a1fcb240039d1cad1f363e026345917433a919dacd840f4f - languageName: node - linkType: hard - -"@react-aria/table@npm:^3.13.3": - version: 3.13.3 - resolution: "@react-aria/table@npm:3.13.3" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/grid": "npm:^3.8.6" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/flags": "npm:^3.0.0" - "@react-stately/table": "npm:^3.11.4" - "@react-stately/virtualizer": "npm:^3.6.6" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" - "@react-types/table": "npm:^3.9.2" + checksum: 6eb2268652b92e3d156a1d63e5490ce3527f592b6f310ad725fa06379c5629d4db430b0f7482996ea8b0581db2e6dd083f132c84ae31401d4dcb8393806e61d3 + languageName: node + linkType: hard + +"@react-aria/table@npm:^3.13.5": + version: 3.13.5 + resolution: "@react-aria/table@npm:3.13.5" + dependencies: + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/grid": "npm:^3.8.8" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/live-announcer": "npm:^3.3.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-aria/visually-hidden": "npm:^3.8.10" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/flags": "npm:^3.0.1" + "@react-stately/table": "npm:^3.11.6" + "@react-stately/virtualizer": "npm:^3.6.8" + "@react-types/checkbox": "npm:^3.7.1" + "@react-types/grid": "npm:^3.2.4" + "@react-types/shared": "npm:^3.22.1" + "@react-types/table": "npm:^3.9.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9fe1170d5100f035e1d92d20b0838e699a75872a67cf6244744a5be7c331ebe0e2e0c1561c07eeed95516ea7fd32858562e076858fe0770b56aee61b20590e6f + checksum: 1b7bd3269f38ea745bc5e7356eb81139d6238e039d7e7fbfc43db5ecfabd27d15c6b1251b44cf1f2921ac4e5c82d0b8767ac839c5f4e724ba326c59bd1ed4c2e languageName: node linkType: hard -"@react-aria/tabs@npm:^3.8.3": - version: 3.8.3 - resolution: "@react-aria/tabs@npm:3.8.3" +"@react-aria/tabs@npm:^3.8.5": + version: 3.8.5 + resolution: "@react-aria/tabs@npm:3.8.5" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/tabs": "npm:^3.6.3" - "@react-types/shared": "npm:^3.22.0" - "@react-types/tabs": "npm:^3.3.4" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/selection": "npm:^3.17.5" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/tabs": "npm:^3.6.4" + "@react-types/shared": "npm:^3.22.1" + "@react-types/tabs": "npm:^3.3.5" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 086a3edca6250966592feac07eea6963457688f4e4984309fb082752c22907237270aed6e211c3e600254a51b3fcabf172389570956fce4320e4badce4962c60 + checksum: 9a2c569c167c378cec709d1a38cbf628f14ae152c2cfbb0160c883212dd20c03657b172c880f2db79ae5b88e145210ddd150f4920ce2179702f9ba1ea7f501f8 languageName: node linkType: hard -"@react-aria/tag@npm:^3.3.1": - version: 3.3.1 - resolution: "@react-aria/tag@npm:3.3.1" - dependencies: - "@react-aria/gridlist": "npm:^3.7.3" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/list": "npm:^3.10.2" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/tag@npm:^3.3.3": + version: 3.3.3 + resolution: "@react-aria/tag@npm:3.3.3" + dependencies: + "@react-aria/gridlist": "npm:^3.7.5" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/selection": "npm:^3.17.5" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/list": "npm:^3.10.3" + "@react-types/button": "npm:^3.9.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 188b6394f0a95bc4362d85ec9a456c55483778f7b91acc40f5287276a1f69d8babd22fc40bc6fd5d11096426ef39061bcfe9078cbdb64ae3147bba52dd30bd9b + checksum: 10aee2f83c1c5ae0a4954c50b8d3153708944ad391bdcf3f4deb0be87bb229a78834cafa9cd860988f3fc3d7a4757cff161becb7d761b4db98b2e280ba6d9e7c languageName: node linkType: hard -"@react-aria/textfield@npm:^3.14.1": - version: 3.14.1 - resolution: "@react-aria/textfield@npm:3.14.1" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/form": "npm:^3.0.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" - "@react-types/textfield": "npm:^3.9.0" +"@react-aria/textfield@npm:^3.14.3": + version: 3.14.3 + resolution: "@react-aria/textfield@npm:3.14.3" + dependencies: + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/form": "npm:^3.0.3" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/shared": "npm:^3.22.1" + "@react-types/textfield": "npm:^3.9.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 131885917122c34bb5a124e3b120fbd175fe1eefdb5020ac786ec4ffdd8f370c4fd2d2a0e69257d6e337c99ab14548c51f43d677a26836c66433374b3d47bae5 + checksum: db3ac87112d4da65762805247c7eace92cede25855d589e61a8e00ae0a7593ca6778ddb5d15f3499ff294153f356de6a12bb679d49f3848592df57fd8b4929d6 languageName: node linkType: hard -"@react-aria/toggle@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-aria/toggle@npm:3.10.0" +"@react-aria/toggle@npm:^3.10.2": + version: 3.10.2 + resolution: "@react-aria/toggle@npm:3.10.2" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/checkbox": "npm:^3.6.0" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/toggle": "npm:^3.7.2" + "@react-types/checkbox": "npm:^3.7.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c22e29f1e8d87b9963183272098bc0f40e40668f08e28193e21b3880166872dc525e52efb1c80ee1b5abd51cdefacb9bb3f9161e8c2eded37eac51eed5e0740f + checksum: fd402ca7e83674dcecfb95e18075bece6dbf49250610ac8260ee6543f651d8c07042110ec368747cc1bd82a0915f5e900df5c3a5c6fc55dd244f161661eb5c5b languageName: node linkType: hard -"@react-aria/tooltip@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-aria/tooltip@npm:3.7.0" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/tooltip": "npm:^3.4.6" - "@react-types/shared": "npm:^3.22.0" - "@react-types/tooltip": "npm:^3.4.6" +"@react-aria/toolbar@npm:3.0.0-beta.3": + version: 3.0.0-beta.3 + resolution: "@react-aria/toolbar@npm:3.0.0-beta.3" + dependencies: + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/shared": "npm:^3.22.1" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 4d6541aa2ce3126c0705aa9edd44a305c7a37818c915ddd06efd1812f258b1d3a515225b651af4973ed2aa41268607338a9c929128fa9eaeab0510fd7b25717c + languageName: node + linkType: hard + +"@react-aria/tooltip@npm:^3.7.2": + version: 3.7.2 + resolution: "@react-aria/tooltip@npm:3.7.2" + dependencies: + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/tooltip": "npm:^3.4.7" + "@react-types/shared": "npm:^3.22.1" + "@react-types/tooltip": "npm:^3.4.7" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 335190e8e009144e979e03fbdc92f02ad0ba070719c71410ee4a34a4a1f533823165e0fcf389d3e215cf98f61559b7c822d6ead2fb53cbcfd65d8ea712462e19 + checksum: 2f7017b97b01c612ef9e04b10275df0f52df1eaa581910754210f3d250e369596b740befbdac117c4a1ff3df39b4a9cbc9d5c5c5397adc5f261bb4394a3e8f04 languageName: node linkType: hard -"@react-aria/utils@npm:^3.19.0, @react-aria/utils@npm:^3.23.0": - version: 3.23.0 - resolution: "@react-aria/utils@npm:3.23.0" +"@react-aria/utils@npm:^3.23.2": + version: 3.23.2 + resolution: "@react-aria/utils@npm:3.23.2" dependencies: - "@react-aria/ssr": "npm:^3.9.1" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/ssr": "npm:^3.9.2" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" clsx: "npm:^2.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7be5f852fb80b4cdb0a983542804534ce14bbd3809c8e81786507335d457202a5cd57a4a437c32aabb1b678902405da00f5ba9d697c7ab6f33cf0840bb1978be + checksum: 132ac6e2e6f5eb7469a52ebc5a909ad2bdb8606b835c0cc8e5320447dc3cd34f8d0ed3441a75827ae1cd91bef435c0c6e463fec72fe4fa5fe565c7d87576301d languageName: node linkType: hard -"@react-aria/visually-hidden@npm:^3.8.8": - version: 3.8.8 - resolution: "@react-aria/visually-hidden@npm:3.8.8" +"@react-aria/visually-hidden@npm:^3.8.10": + version: 3.8.10 + resolution: "@react-aria/visually-hidden@npm:3.8.10" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 08f0390968af92ad77ab0c606dfa47e2e9e45dffe21c7472ac2659424aa79665338afeea475a2b3b2fdae0f064596fb9cb22edd1bddc873e408c882bb48c9ddf + checksum: a7f9d8dccfeefb035d01ad8d9db4576f6acf7f0fcb94aad717cec177f113f6507f0dca0c7ee157abe40b358685b4cb84f9bce0c24dab2af753698ec8c1504264 languageName: node linkType: hard @@ -3399,580 +3430,591 @@ __metadata: languageName: node linkType: hard -"@react-stately/calendar@npm:^3.4.3": - version: 3.4.3 - resolution: "@react-stately/calendar@npm:3.4.3" +"@react-stately/calendar@npm:^3.4.4": + version: 3.4.4 + resolution: "@react-stately/calendar@npm:3.4.4" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.2" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/calendar": "npm:^3.4.4" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 8bf9e67390d71f79ff4d685a7e7b34b33bc714fc78747e108c88f611fedca197c676ad8f8648c6f98068ae9aef1eb0fa654cbfaa502cf161bbd00a57cc3c6b70 + checksum: c8beae06f86d52a1644eda56cdf5035ebe14c97e515c2932c101649da30e2447ec530e4de5e0ca0c18ef72c39ae6b12c1760b206d64cec27214ab001c23c4afd languageName: node linkType: hard -"@react-stately/checkbox@npm:^3.6.1": - version: 3.6.1 - resolution: "@react-stately/checkbox@npm:3.6.1" +"@react-stately/checkbox@npm:^3.6.3": + version: 3.6.3 + resolution: "@react-stately/checkbox@npm:3.6.3" dependencies: - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/checkbox": "npm:^3.7.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 2aefb0b42063f13e89e9eac4ea9a52b4d7e68fb528064549067bd680a8887b400e13e5303a190552b3543e899170bd6474bfc04fa46d4fb5b8e6c8bb50a15c71 + checksum: ece58d7f0347e2e4df71475edd92fad38edfa247b940bac4ddac17c8baf2e670b2dd57c63201758cd2389f4ac4efcd40645ca2427463bf2ad1899619078ecbb9 languageName: node linkType: hard -"@react-stately/collections@npm:^3.10.4": - version: 3.10.4 - resolution: "@react-stately/collections@npm:3.10.4" +"@react-stately/collections@npm:^3.10.5": + version: 3.10.5 + resolution: "@react-stately/collections@npm:3.10.5" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d82209a198c1cfcc7a7b67ea33a0990cb2a4e371bb838a533b3a95ba9c7ae2a80d1ac5957fdecc77e8e90c711b1beb9d4e8c65073e5826d20d8492990979098a + checksum: bf447652b19f16831b43c6cc2aa877c638756e08566f574a3b0d7c21cc60c523e90cc0ea7a2c3616dbf1d3b0724c2f354e99ae993c1633ab99b93e4bf35e09eb languageName: node linkType: hard -"@react-stately/combobox@npm:^3.8.1": - version: 3.8.1 - resolution: "@react-stately/combobox@npm:3.8.1" - dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/list": "npm:^3.10.2" - "@react-stately/overlays": "npm:^3.6.4" - "@react-stately/select": "npm:^3.6.1" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/combobox": "npm:^3.10.0" - "@react-types/shared": "npm:^3.22.0" +"@react-stately/combobox@npm:^3.8.2": + version: 3.8.2 + resolution: "@react-stately/combobox@npm:3.8.2" + dependencies: + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/list": "npm:^3.10.3" + "@react-stately/overlays": "npm:^3.6.5" + "@react-stately/select": "npm:^3.6.2" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/combobox": "npm:^3.10.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ad4ded0fe656e0786c169be662b91254eaa5721ff0eff265a0bc71ddb9cc6226486ca6b84cd4c98f9374029f59228a490537b3e805dab0de942af741e7eaf4d2 + checksum: e2f5801fe74abe77c72f02768dfc2e79b1c0f253b973a28ed4bf81da8c5880343ca0f8b0fc624ce64f67ba66bd9a8e725476b69c1c1fa000234d14f10204ebca languageName: node linkType: hard -"@react-stately/data@npm:^3.11.0": - version: 3.11.0 - resolution: "@react-stately/data@npm:3.11.0" +"@react-stately/data@npm:^3.11.2": + version: 3.11.2 + resolution: "@react-stately/data@npm:3.11.2" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ca7873a58a19be51863384f738a69efc369cc0db262564f8842b251fefecbad74b9b74e8cd17230b1e300a5de3574f1b5f09253b88d949541af1066e5df28da7 + checksum: 24f912c926d2466fd8493827b15099256d22f3a408054af832cb3b44b51cdfd96cba15e5697ec9b8b97f80e73f73d727a232b7dfe4f403dff52f54dae9b3172c languageName: node linkType: hard -"@react-stately/datepicker@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-stately/datepicker@npm:3.9.1" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@internationalized/string": "npm:^3.2.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/overlays": "npm:^3.6.4" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/datepicker": "npm:^3.7.1" - "@react-types/shared": "npm:^3.22.0" +"@react-stately/datepicker@npm:^3.9.2": + version: 3.9.2 + resolution: "@react-stately/datepicker@npm:3.9.2" + dependencies: + "@internationalized/date": "npm:^3.5.2" + "@internationalized/string": "npm:^3.2.1" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/overlays": "npm:^3.6.5" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/datepicker": "npm:^3.7.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 14b816140c158fb6986eb14d18f79b75d859d06f7d5c93854d6cfdc699cd537e90b50356e0b2c1e2c0d684173abc1e1fee51c15488167f4c6a29ca3dd369c43f + checksum: 11392885e5d7dbce2ed6df095529785133429f178d47834445211f18e62afa166be05a1a8eacd62a0fa90a87eac33dd6773e2534716c1203b606d2ada4e5ed30 languageName: node linkType: hard -"@react-stately/dnd@npm:^3.2.7": - version: 3.2.7 - resolution: "@react-stately/dnd@npm:3.2.7" +"@react-stately/dnd@npm:^3.2.8": + version: 3.2.8 + resolution: "@react-stately/dnd@npm:3.2.8" dependencies: - "@react-stately/selection": "npm:^3.14.2" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/selection": "npm:^3.14.3" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 308fb88db9d650a9d306da5fd51fe1500598a75e22d8e488165224735a0300658cd05645f48f2b1dbf3aeb35fc162e9ce9e38c122a0005d53b4b7733851a1673 + checksum: 007e479c2991fe7cce41d5fecd7f6b94a003857de1e1f9baa40714607ecd12332ffd8e1ea8567f96a6a00c454256e4e0e99e764c9aa68148a455c28d21465ef1 languageName: node linkType: hard -"@react-stately/flags@npm:^3.0.0": - version: 3.0.0 - resolution: "@react-stately/flags@npm:3.0.0" +"@react-stately/flags@npm:^3.0.1": + version: 3.0.1 + resolution: "@react-stately/flags@npm:3.0.1" dependencies: "@swc/helpers": "npm:^0.4.14" - checksum: 7a65481abb3093766d5912d0f428214481047d52c350879c62306829b3f0127389b338a1fc5262400dd7d5d6847b8fa5bf02da766c1474bbddb30cb58384d38a + checksum: 9fd6731a3bb74c613d427a5457a8e1dcec1c596352d912e006005ecf9aeefa51f76b553993456dde927cdbb3237cc6d95bcd7dbd60b2917638c9cd05ad019460 languageName: node linkType: hard -"@react-stately/form@npm:^3.0.0": - version: 3.0.0 - resolution: "@react-stately/form@npm:3.0.0" +"@react-stately/form@npm:^3.0.1": + version: 3.0.1 + resolution: "@react-stately/form@npm:3.0.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 6c55818e846df74ac18ac7a6249c5967010440d6148017c100456eace6fd88d9472e99feec27fe41e7c4c8289a028266d7b619cdc16da0ca164dd492fa4c0d78 + checksum: a734c9a93320d518480114aeff35540204aaca116e64973d9c817a5a73479c0a40eee882ccc0e22979e0bc1cfbec22ab703fc4b10f5197a92a75b73ea8ea69d0 languageName: node linkType: hard -"@react-stately/grid@npm:^3.8.4": - version: 3.8.4 - resolution: "@react-stately/grid@npm:3.8.4" +"@react-stately/grid@npm:^3.8.5": + version: 3.8.5 + resolution: "@react-stately/grid@npm:3.8.5" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/selection": "npm:^3.14.3" + "@react-types/grid": "npm:^3.2.4" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d50a721f2487efc96306a76b9b9d7de973533c6ad79597d13d3635a05e5262421394d94ae0ec06bb9ea8b1dbe58af6f80dc01fde04544c1c4b8ef9ab864d0012 + checksum: 5d38d707f090d5a1e84038ce0145ca72d509d12bd825407952767842f4b6db1c995f2bd95bb7206f506d4f67c35bde66b89172aaba7f2f495867d0950aaa96b8 languageName: node linkType: hard -"@react-stately/list@npm:^3.10.2": - version: 3.10.2 - resolution: "@react-stately/list@npm:3.10.2" +"@react-stately/list@npm:^3.10.3": + version: 3.10.3 + resolution: "@react-stately/list@npm:3.10.3" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/selection": "npm:^3.14.3" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 64523ed6842a64204d86478c416aae164a40f47593fa4eb374c2f291b262d5a28ec1c245992a142722278022f8603851dfa1371d023bb2857bd078074087466c + checksum: c9009a30df5607ec618632f11b013c13abfbef6e0e54a1a49aeb4385a97a910cece7568aa1055fe0ba6b888d3f24f9fa0cbad963e4a84637cd8cf0339fdd3982 languageName: node linkType: hard -"@react-stately/menu@npm:^3.6.0": - version: 3.6.0 - resolution: "@react-stately/menu@npm:3.6.0" +"@react-stately/menu@npm:^3.6.1": + version: 3.6.1 + resolution: "@react-stately/menu@npm:3.6.1" dependencies: - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/menu": "npm:^3.9.6" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/overlays": "npm:^3.6.5" + "@react-types/menu": "npm:^3.9.7" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 21c7f04cb910005fbc6b1f6b78bbf24f98e0b8c37f27bbb8d4b91161c76b823b049aae831b38d0bce15585ab78ffbb10762760e0bdb3a956b4f3a290be2d16b5 + checksum: 21c7c4c1415ce78573aee4dc8e4c64bd5c500ee0203a819a6da5188e12232776eff25111c6fc76214285dcc3778a174f830606173ad08f97958cf585924f3fcb languageName: node linkType: hard -"@react-stately/numberfield@npm:^3.8.0": - version: 3.8.0 - resolution: "@react-stately/numberfield@npm:3.8.0" +"@react-stately/numberfield@npm:^3.9.1": + version: 3.9.1 + resolution: "@react-stately/numberfield@npm:3.9.1" dependencies: - "@internationalized/number": "npm:^3.5.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/numberfield": "npm:^3.7.0" + "@internationalized/number": "npm:^3.5.1" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/numberfield": "npm:^3.8.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 758d6d90a62fa33416be5c7d6b18fa998c31b1bc16b626d61682a6d39b33e96bb93a6af9f6224af6afe233ac490e496286c3fcf6a5b421fdb04326375bf20ad7 + checksum: e8b8833cca6d524f7ea76b7d854d4b1ad5e419355502c220bab5e4bb8e45dbf2094c30c80f68471f814ebeb48bd58fa8050988edd0a48eb62421e299b44eddca languageName: node linkType: hard -"@react-stately/overlays@npm:^3.6.4": - version: 3.6.4 - resolution: "@react-stately/overlays@npm:3.6.4" +"@react-stately/overlays@npm:^3.6.5": + version: 3.6.5 + resolution: "@react-stately/overlays@npm:3.6.5" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/overlays": "npm:^3.8.4" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/overlays": "npm:^3.8.5" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 80205ef3a99c80ebc43c14f55287de45a71185acdb5243d0194ee8fe963f3ea4acc4abc877ed445e457df5b0c8cc5812b7d8181d425f9b28c895cfd7d05e6a55 + checksum: 83805f078eb42290ddb9f88d8cbd7403a4d5f15177fce4c9f8cec91acf177af1d5a414472c58029fc1f8bf6730d5ca9716a8b3cd750f2afd6b57e592a7f09ef7 languageName: node linkType: hard -"@react-stately/radio@npm:^3.10.1": - version: 3.10.1 - resolution: "@react-stately/radio@npm:3.10.1" +"@react-stately/radio@npm:^3.10.2": + version: 3.10.2 + resolution: "@react-stately/radio@npm:3.10.2" dependencies: - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/radio": "npm:^3.7.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/radio": "npm:^3.7.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 345a844e24c037dd50c2eb05bec77151bf1988755ce451bb996bfaa7bbd84ce33be42fd79351048d560fe5900da089b6f62972e9b602026d859f33f826371106 + checksum: 1c6d46c6342e6f96ced268bbf397aa10fcc536b22ee593af9031aea3a16be9f4876fb6b45cdb65aacfe665ad5671f3f64cf029b9c4b4698cbf157a363dddafe3 languageName: node linkType: hard -"@react-stately/searchfield@npm:^3.5.0": - version: 3.5.0 - resolution: "@react-stately/searchfield@npm:3.5.0" +"@react-stately/searchfield@npm:^3.5.1": + version: 3.5.1 + resolution: "@react-stately/searchfield@npm:3.5.1" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/searchfield": "npm:^3.5.2" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/searchfield": "npm:^3.5.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c6b350390de0e6ab5a7749f45da44547460424c497024291375ef5702083e7d787484c3d1191e73a54cb5b5b20eab6e4e8f4cf2d38c9326a0d84f74dad0c5363 + checksum: dfdc257a7e75e2ba81e1ca578570b14d57200472a85d58dd91cfcfb60d372c81a7f79401802a4f611d35831bbd7a619185b812afdd05e20430feb00afff5fbeb languageName: node linkType: hard -"@react-stately/select@npm:^3.6.1": - version: 3.6.1 - resolution: "@react-stately/select@npm:3.6.1" +"@react-stately/select@npm:^3.6.2": + version: 3.6.2 + resolution: "@react-stately/select@npm:3.6.2" dependencies: - "@react-stately/form": "npm:^3.0.0" - "@react-stately/list": "npm:^3.10.2" - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/select": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/list": "npm:^3.10.3" + "@react-stately/overlays": "npm:^3.6.5" + "@react-types/select": "npm:^3.9.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e355aa78a7d3f9670a7e8882169e0ddbc330bd828920e392dcbc5c8604b9d4fb58bea2db365e58371f0df26d0ec4703c3562f8eeccbfce32c4182f1db135501e + checksum: 9df52dba77b4bf383ffd9ce8552442de198f6bb8ece78cdc4a9075a4bea334c4dff2d7d115b2a3258f0169c212cc0dbfa1df623207c1917af908b853c9897769 languageName: node linkType: hard -"@react-stately/selection@npm:^3.14.2": - version: 3.14.2 - resolution: "@react-stately/selection@npm:3.14.2" +"@react-stately/selection@npm:^3.14.3": + version: 3.14.3 + resolution: "@react-stately/selection@npm:3.14.3" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ff596df1e8bb42bad29e8f6f7613ff86bf938ecdc066dd69bb10daae4e55b3180f36fce1b826deb3abe24fd19733b468a8ae7ae87d47fff3e55077b8ab07645d + checksum: 43bc7c6c21198d93037fdf107e86149ecdbd6f8618d7c0469cfdfc30db450b9b04e9ec9ef238e7e473e04cdfc127af822553eed5d7e2d69921adbb2131bd2cc6 languageName: node linkType: hard -"@react-stately/slider@npm:^3.5.0": - version: 3.5.0 - resolution: "@react-stately/slider@npm:3.5.0" +"@react-stately/slider@npm:^3.5.2": + version: 3.5.2 + resolution: "@react-stately/slider@npm:3.5.2" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" - "@react-types/slider": "npm:^3.7.0" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/shared": "npm:^3.22.1" + "@react-types/slider": "npm:^3.7.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9dc3413bdbc4dee764dc274b7636c5cd794ab3d847dce47179701d09fe4e0dbd4d8aa21d763e7a4726332c4df6033b55b4038e5d658c8ae1cc191f17687d3015 + checksum: d1553e12102579972c1b2f07d0dac178af7476f5419117b87dbabb48d631613d9a44ce4528ebb2a459a6d568c7797000dad62a454b1051419ca018fae8f1e101 languageName: node linkType: hard -"@react-stately/table@npm:^3.11.4": - version: 3.11.4 - resolution: "@react-stately/table@npm:3.11.4" +"@react-stately/table@npm:^3.11.6": + version: 3.11.6 + resolution: "@react-stately/table@npm:3.11.6" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/flags": "npm:^3.0.0" - "@react-stately/grid": "npm:^3.8.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" - "@react-types/table": "npm:^3.9.2" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/flags": "npm:^3.0.1" + "@react-stately/grid": "npm:^3.8.5" + "@react-stately/selection": "npm:^3.14.3" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/grid": "npm:^3.2.4" + "@react-types/shared": "npm:^3.22.1" + "@react-types/table": "npm:^3.9.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 2becaf04ef06e2e61e5834a383ed322f8f0b01ede285adacb5efdb1318589bf357071a639c2f63d753b3c7d6049c7f253f2a6ec4a2526c2efef873a5a5c02be0 + checksum: 4af9888ee1ec0bde3d683aa81a0e768ddca2589323386327bf36328bb47729589b58e81ea504cae69f6193b520cd8fe73e253ea5dbc9f6a9bc7feefc76185550 languageName: node linkType: hard -"@react-stately/tabs@npm:^3.6.3": - version: 3.6.3 - resolution: "@react-stately/tabs@npm:3.6.3" +"@react-stately/tabs@npm:^3.6.4": + version: 3.6.4 + resolution: "@react-stately/tabs@npm:3.6.4" dependencies: - "@react-stately/list": "npm:^3.10.2" - "@react-types/shared": "npm:^3.22.0" - "@react-types/tabs": "npm:^3.3.4" + "@react-stately/list": "npm:^3.10.3" + "@react-types/shared": "npm:^3.22.1" + "@react-types/tabs": "npm:^3.3.5" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d2b776e0481d9497e2b1c9610d55412afa36e1ce5cf2fb28bc6b5a5b454941f587bcf948ff0307990d8b7f7d4c6ee1a739fc997cf639343cab7fb8ac17647b8a + checksum: 28dd71e3e5bf5dd31facd394f4cbae1021faa0a16dec382a5a588918708f0e8167b61905665f07653debfef21d17fa0ad949cb7660887c45a05078a8028dc3bc languageName: node linkType: hard -"@react-stately/toggle@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-stately/toggle@npm:3.7.0" +"@react-stately/toggle@npm:^3.7.2": + version: 3.7.2 + resolution: "@react-stately/toggle@npm:3.7.2" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/checkbox": "npm:^3.6.0" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/checkbox": "npm:^3.7.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f366a41c92948d1631ad7fed699115bc0c2c6f134a29b3b1b5d0cdc083f72a1862cd0f447e4a1a1b37c2013f1b859d00583a1c8691a7e1d93ba9db0cacffe36a + checksum: 6805c874c647fd16331a6ec00cf1a8e5d1c1ca9e91cbda4410e8d5dd17d999810593e24b28e9e34f6a9aa0f5c9828aa5ed392bf99483f6fb133ca3c1743b2883 languageName: node linkType: hard -"@react-stately/tooltip@npm:^3.4.6": - version: 3.4.6 - resolution: "@react-stately/tooltip@npm:3.4.6" +"@react-stately/tooltip@npm:^3.4.7": + version: 3.4.7 + resolution: "@react-stately/tooltip@npm:3.4.7" dependencies: - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/tooltip": "npm:^3.4.6" + "@react-stately/overlays": "npm:^3.6.5" + "@react-types/tooltip": "npm:^3.4.7" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: a9fef79f850592a9eb418edc800cc4ecd92f00d918796472fb65d7eaa4541496bdad8d9327a131db585b1c7bdb7b9ed882d5c9e78bb84127f3ea8217c217996b + checksum: 05487e629daa27c2789498fbf1f37f416e68f2fd1a527d977d07b49ccaec4e82d7482fa343ab4086e7dd0a468b8bdd75a07dddc4c4b002b5998a06a950a641d5 languageName: node linkType: hard -"@react-stately/tree@npm:^3.7.5": - version: 3.7.5 - resolution: "@react-stately/tree@npm:3.7.5" +"@react-stately/tree@npm:^3.7.6": + version: 3.7.6 + resolution: "@react-stately/tree@npm:3.7.6" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/selection": "npm:^3.14.3" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 46a81a00c2aa0f7b90a436e0dd25893934f4d63f3103284d865f5ab0fc5d84a38e2bf99149b18ed715077bff24f4fa2ef6d7db6ce191d0599547b258e205849d + checksum: e8e2d5f874e50312b06b41702cbd5a301601b72df37b6edeb4199f64069dd2c07de946316e1150a7a167292c133bb95dd6e6d3a086c82bd4c5c44e1862c47a8e languageName: node linkType: hard -"@react-stately/utils@npm:^3.9.0": - version: 3.9.0 - resolution: "@react-stately/utils@npm:3.9.0" +"@react-stately/utils@npm:^3.9.1": + version: 3.9.1 + resolution: "@react-stately/utils@npm:3.9.1" dependencies: "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 66bb72441c289c334cf626ac789bb601db8b765e3f522181f8ff38b281bede9d1b2474dc6d5f17b6b31c12f48425797151eb2d4df5922e05c2e467ee195b7ade + checksum: 17ddef6415db0950c474c6ad87a0d7b20a98aac817771887922ea6c6a90b9b91eb49205adf021349034f8da012fc0e3c30f6c9b378265ae6d0df93c3b4104b53 languageName: node linkType: hard -"@react-stately/virtualizer@npm:^3.6.6": - version: 3.6.6 - resolution: "@react-stately/virtualizer@npm:3.6.6" +"@react-stately/virtualizer@npm:^3.6.8": + version: 3.6.8 + resolution: "@react-stately/virtualizer@npm:3.6.8" dependencies: - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/utils": "npm:^3.23.2" + "@react-types/shared": "npm:^3.22.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 45fd982fb3c0c52af3e5c4c6ab8a79f14b6b2c768cfd13754ee1397fb9459a97a4a28db666df144c3f569ac5d82bb6d8832de8e2f017c17ab986fc0437888017 + checksum: d0e26d14aa2c3a31efd61e2d037788e80052439fe364c1f61f13c30cfdd5abc670fc980a0b6479d0921aca4ed7a6cfee40b29193042bd5e09162b2a428d91c72 languageName: node linkType: hard -"@react-types/breadcrumbs@npm:^3.7.2": - version: 3.7.2 - resolution: "@react-types/breadcrumbs@npm:3.7.2" +"@react-types/breadcrumbs@npm:^3.7.3": + version: 3.7.3 + resolution: "@react-types/breadcrumbs@npm:3.7.3" dependencies: - "@react-types/link": "npm:^3.5.2" - "@react-types/shared": "npm:^3.22.0" + "@react-types/link": "npm:^3.5.3" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f911a57124652dd1ae7f30b4e5158a9accaec166a244f3c98942c26250997a28e4e2aaa2e66923738ee8fe832e95babcae14bc3dd1f20c9eeed533ef597de2cc + checksum: 4ec1f9bfd3ce2980d3691a0a2ca9a436212e38599e3b883241a587ecb6575cc60ba12f9f24288987ec98f3f19ededc9fbf021782724e23b0e8d1e87647f08447 languageName: node linkType: hard -"@react-types/button@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-types/button@npm:3.9.1" +"@react-types/button@npm:^3.9.2": + version: 3.9.2 + resolution: "@react-types/button@npm:3.9.2" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 712eb4dbd3bf1afe96a4d1438c95e54b44117bb1cef31a1984d678ef716672d47ebbbbbb1736a2083e47e435e652aa70384f4cf9e9e302d7f1d0878d176ace68 + checksum: 8393ba87dfd6ca73fedf8f7ab3567361f1d6057f640346f2a0cc631e9659ad7c1aa2ddb255e1df6b880d8f6cd209e8c9d1d01c73e2ee2a149f180d8ebaabf1db languageName: node linkType: hard -"@react-types/calendar@npm:^3.4.3": - version: 3.4.3 - resolution: "@react-types/calendar@npm:3.4.3" +"@react-types/calendar@npm:^3.4.4": + version: 3.4.4 + resolution: "@react-types/calendar@npm:3.4.4" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.2" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 965fbe34431e8296cc3d14a647e528c31079ee5d07a5cd0cbb83c7ca7c873d0c69f7f779f5fa2ada704610f75a757e51b7589928e67fe371f0b6947c8a1bc1f1 + checksum: def8bdf94b38df3c2c49f63fe505734ad24669d87a5e917c061fd198b759e5561a9f89e4137278740ef6d6b441518f6f2dd51e1916a7ddff7d7d0878bd63a5b6 languageName: node linkType: hard -"@react-types/checkbox@npm:^3.6.0": - version: 3.6.0 - resolution: "@react-types/checkbox@npm:3.6.0" +"@react-types/checkbox@npm:^3.7.1": + version: 3.7.1 + resolution: "@react-types/checkbox@npm:3.7.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c3e945a666922384ebc868e5eb56b8861c302824fd73e8c109fbd5d0b9ff6752014f411b998c3ee4e4ae636f84b0c124ee97dbbf6a6c0d343c1092bd9b2a2b21 + checksum: d8d1b860225bf29ae335b6e9e5b814e74f75ef498acc93fc08ad411ada078399e407b146e15a3ff2ab6003b44a34cf0c26f327c1a25f43baaf633cb2999a2836 languageName: node linkType: hard -"@react-types/combobox@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-types/combobox@npm:3.10.0" +"@react-types/combobox@npm:^3.10.1": + version: 3.10.1 + resolution: "@react-types/combobox@npm:3.10.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ae8841fc55cb19ab25a876e2afd05e06d6ab51fdfaeec6ab7cd6c577ff26c16d506ed628c20750db2596ea86eb990c731ca61e89f7fda03d2f65feb10a306cd7 + checksum: 5c1fcad50731387da3d77820e55605a0a2e7c6371e2c6b0ef9a567f727cf63856b69aef8d8448765f78c940fd89835391b5afa2fe6a87f2809b6908b615578a7 languageName: node linkType: hard -"@react-types/datepicker@npm:^3.7.1": - version: 3.7.1 - resolution: "@react-types/datepicker@npm:3.7.1" +"@react-types/datepicker@npm:^3.7.2": + version: 3.7.2 + resolution: "@react-types/datepicker@npm:3.7.2" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.2" + "@react-types/calendar": "npm:^3.4.4" + "@react-types/overlays": "npm:^3.8.5" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: afe84b362d041c3559847b564c44a3468ff957fb86feec1c28a222e9d4724601d608b504619033bc325f880dcb8aae25779379770b4c2e6c1d8d0091d4cc4199 + checksum: 4a8495a9079e88a0847ef67d07423e350161239aae4c17657fee765f9929456ad49f061e1a3b3e1ac4936898ed1cc9ac718cb2c24c4afde8068907bed7c08408 languageName: node linkType: hard -"@react-types/dialog@npm:^3.5.7": - version: 3.5.7 - resolution: "@react-types/dialog@npm:3.5.7" +"@react-types/dialog@npm:^3.5.8": + version: 3.5.8 + resolution: "@react-types/dialog@npm:3.5.8" dependencies: - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-types/overlays": "npm:^3.8.5" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4f79ee1eb4e935435c2f04571900ac83fd0638f0d15fe4ac1b5acac6057718a37fdec0b735c3b44439f09b905552c241107c1b14fac57dcb7e14bc68127f0e9c + checksum: c0c387367fd697dff96fa7252cdd1d63fe7c871c93f57ed313c890ef1366e0dd85763966e1e9adc16aa9486414075b349757198572c5c5feb010897f6af9d0bf languageName: node linkType: hard -"@react-types/grid@npm:^3.2.3": - version: 3.2.3 - resolution: "@react-types/grid@npm:3.2.3" +"@react-types/form@npm:^3.7.2": + version: 3.7.2 + resolution: "@react-types/form@npm:3.7.2" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ab2abf027d1a5364bfb3957732dfea9485f739ba50e86eb4c75be5cce1a9b374191d8a1664dea3487504207ffed93a1fbc395fb01d7c503ab34f52f8a6adcd0e + checksum: caead2f12d6c784b12e80be1de5a4521f7229897b8ed762e6af5bd31e3aa2343f8d33183c493e29c82637f40b652ba8bf2c249788b10b42113eb7cb1b3b1f522 languageName: node linkType: hard -"@react-types/link@npm:^3.5.2": - version: 3.5.2 - resolution: "@react-types/link@npm:3.5.2" +"@react-types/grid@npm:^3.2.4": + version: 3.2.4 + resolution: "@react-types/grid@npm:3.2.4" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c3268a83614f2d10274a93ebbab77bb586f3e8c9050eea96a74646e1a456d77b844c4f0e2437277dd932ba260806aea2327ffc5f3351b6279808e599c8c2f5eb + checksum: 44246cd315f339ed3d1ea5cecf8b56b6677d6c15c26e6bda77cf256b5f148adcc4bbbbfb3adc949e408a5118039474c69038526cf5ff65ec2ff2fccc75b45666 languageName: node linkType: hard -"@react-types/listbox@npm:^3.4.6": - version: 3.4.6 - resolution: "@react-types/listbox@npm:3.4.6" +"@react-types/link@npm:^3.5.3": + version: 3.5.3 + resolution: "@react-types/link@npm:3.5.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 12e2f6eb27692b9af7095101ebf84910d65743615c0fadf21bbf60d2f2dd4fe8f1c885137b7237062fe774704889e3645b22d27b74ef5490e518db63dbba7ffa + checksum: 55e23b17ec5935b8246048b99c719645d65bbf179822f818a66e21097bc49a23f9214b2677f631cec799dbe8aaf25c5fb61f30a5d8a30e2c7fdf14445058cb3b languageName: node linkType: hard -"@react-types/menu@npm:^3.9.6": - version: 3.9.6 - resolution: "@react-types/menu@npm:3.9.6" +"@react-types/listbox@npm:^3.4.7": + version: 3.4.7 + resolution: "@react-types/listbox@npm:3.4.7" dependencies: - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 14812700f810a75a1b6f85077c35292c50783fbaf404d6ee3ab21ca73151cb95f527824e45cb4c0dd02ce5b99d5a4eba21f78da53093000a003e848b06690b86 + checksum: 3c8e938fb9e0c4761a770711da7d084222b3fedcf094c49dc37a441fb07bfcd2b10dc25460d29565538f6dcb1e200ff05d1c6c2fb16a0e503003e3dfc2a8a09b languageName: node linkType: hard -"@react-types/meter@npm:^3.3.6": - version: 3.3.6 - resolution: "@react-types/meter@npm:3.3.6" +"@react-types/menu@npm:^3.9.7": + version: 3.9.7 + resolution: "@react-types/menu@npm:3.9.7" dependencies: - "@react-types/progress": "npm:^3.5.1" + "@react-types/overlays": "npm:^3.8.5" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7e6b97cc18ec0fbb23bc8ee6e486f41bdeb1c1ee6852c303c01403c13598b4613b2025f0b40d0b539a8f3c00cd840d9d9fa0abe9aed4e59cef6e91faecee42f6 + checksum: 97cec66432e6c53909dab25d9a7d5c2646d484caeb6c4eff402f152baf667079ef5774c31098f29d66045a1b0f841b0cd579aaa1948353631739ddf61042a0e7 languageName: node linkType: hard -"@react-types/numberfield@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-types/numberfield@npm:3.7.0" +"@react-types/meter@npm:^3.3.7": + version: 3.3.7 + resolution: "@react-types/meter@npm:3.3.7" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/progress": "npm:^3.5.2" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: b34c5d3433968b9cc40e23bcdccd5da25c4a322ddc0c31adb7519d379480c5f5c5cd283e3878092aa41fb534f73542fe0b773bf2dff3bc65c40e8a17900dd165 + checksum: d9e697640efc198f441775b8a007f9653df86451d5dca491db9240cf0437df16c9118014eee4add23bd5015bbf72b63761256b2334597feb1c277fb6573024e5 languageName: node linkType: hard -"@react-types/overlays@npm:^3.8.4": - version: 3.8.4 - resolution: "@react-types/overlays@npm:3.8.4" +"@react-types/numberfield@npm:^3.8.1": + version: 3.8.1 + resolution: "@react-types/numberfield@npm:3.8.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 14b7ab6b24d322c37fc23571dacb2cba7a144902f7421f65c9809029a573e40144ad4db1a583d807e52d4f4e40f1a8785eca303d1a79edf9bb390bb482a5707f + checksum: aa647a5573ff8ac52a43c5f2a2dc348d3d39d097f976ac44b8fe8e61bd8fc9f8b1c3447ac7b36d2e39df36f45f8776055a3cb9c0f84566e747cf99188e47572c languageName: node linkType: hard -"@react-types/progress@npm:^3.5.1": - version: 3.5.1 - resolution: "@react-types/progress@npm:3.5.1" +"@react-types/overlays@npm:^3.8.5": + version: 3.8.5 + resolution: "@react-types/overlays@npm:3.8.5" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4f177805e16d6ee3df51e18f0df07b12dffae746f3c065958939cddbec13d3307bf63f43c27e2e74a6eae1b08b24a14a24ceaf64232b166e368f25cef5da7fa0 + checksum: 6c952fdbe7724b07cade95e8d3fe6bf61cb6e993b730051c1ada33da2afe246e3124a8981127977cc55f6df32124b049504fda7d19593446895559ca00a9f0b9 languageName: node linkType: hard -"@react-types/radio@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-types/radio@npm:3.7.0" +"@react-types/progress@npm:^3.5.2": + version: 3.5.2 + resolution: "@react-types/progress@npm:3.5.2" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 5ab509b7cc377599be000c74f7f0ce6458a82d951f45edd72df499c7b598cd1c2dcb47ebdf9f5aecfbe57b1d900863909289e24646291b93153590de358b414d + checksum: 1ddda7a41c51b22dabc1a7b1a6bc7ae10afbd93676a5b288415e600909b6c4ccf762ea4c6c8f7bf04b2ca3216ef389075bf5448400587de675e65840c715bcca languageName: node linkType: hard -"@react-types/searchfield@npm:^3.5.2": - version: 3.5.2 - resolution: "@react-types/searchfield@npm:3.5.2" +"@react-types/radio@npm:^3.7.1": + version: 3.7.1 + resolution: "@react-types/radio@npm:3.7.1" dependencies: - "@react-types/shared": "npm:^3.22.0" - "@react-types/textfield": "npm:^3.9.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c70a534cffc4e19c2acc5613becbd77b71527b8befcf4e6cf2000a9328f8985195ef662a3cfdf61a4c05d996636b8f462b0b22e33ccbedf54b181e6bf1633cb4 + checksum: a400034d69f9963664ac608ef35e50f5e3090f095800de0d88d78883bb3465392a8c3f2ff043c84c5c08abb8186b5a544f9897ff80e81fd2a07498be8408b86c languageName: node linkType: hard -"@react-types/select@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-types/select@npm:3.9.1" +"@react-types/searchfield@npm:^3.5.3": + version: 3.5.3 + resolution: "@react-types/searchfield@npm:3.5.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" + "@react-types/textfield": "npm:^3.9.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7faa872468e2d4789cc35903410582141743c8b327dd44816a5f888d53bba28e44fa040f79b031545754477fd82e1bb8e5cfe86ac6051076e18d2f92eedf0c7d + checksum: ee3847b33318cef9ad84ad59c7ae1c326046d24e79a5a94bf1636c9d6d5376bf001454343af797043e2216ecb2573b19877fced24534269b9eb092b410f49869 languageName: node linkType: hard -"@react-types/shared@npm:^3.19.0, @react-types/shared@npm:^3.22.0": +"@react-types/select@npm:^3.9.2": + version: 3.9.2 + resolution: "@react-types/select@npm:3.9.2" + dependencies: + "@react-types/shared": "npm:^3.22.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 13ded3c246304acc250bd21a54211b64732eaf8c9e4127c2ba61f440aa7d172f560d5cb64cf5d580cfbaeaadc54946c0b159097f5066cf69789c4ea776c7a116 + languageName: node + linkType: hard + +"@react-types/shared@npm:^3.19.0": version: 3.22.0 resolution: "@react-types/shared@npm:3.22.0" peerDependencies: @@ -3981,71 +4023,80 @@ __metadata: languageName: node linkType: hard -"@react-types/slider@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-types/slider@npm:3.7.0" +"@react-types/shared@npm:^3.22.1": + version: 3.22.1 + resolution: "@react-types/shared@npm:3.22.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: da5fc6775a79ae8148d80a6cd7025ff0d44462c5b8923cdd072ac34626ac7416049f297ec078ebed29fd49d65fd356f21ede9587517b88f20f9d6236107c1333 + languageName: node + linkType: hard + +"@react-types/slider@npm:^3.7.1": + version: 3.7.1 + resolution: "@react-types/slider@npm:3.7.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d1683f71e872db02fbe8c699b4647cb3b729bde94077e4f01d19c0f3ad8be3a137c8be927bc4fe5b2f5a96dfa669ef411f82baa0af93f986c77545e99882c258 + checksum: 36a53097dfa39c10f53d4bd0af62502785bf958623cab23df6cec26842484db76e64c2ce44cbd3202a60eb41f3dc0733b4b7bb71a4eb124bf9996e84eb6f38d5 languageName: node linkType: hard -"@react-types/switch@npm:^3.5.0": - version: 3.5.0 - resolution: "@react-types/switch@npm:3.5.0" +"@react-types/switch@npm:^3.5.1": + version: 3.5.1 + resolution: "@react-types/switch@npm:3.5.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c562dea2175236ce2f77f969a6db87fcd77ab4f32331556f76c4004688d9da485dcfaa387f835d354fd8661b7a9c9422d850e67cbcf75ded2b3ac6f6a21c271e + checksum: 8798a3c6f88951dc88bfff7059c243fe0247bf352a1954b78ca0c9fb9ed764415b6fe89849a33aab72b4a2e73f3540b7ca28aefd791e34a1a4053ee723e91b16 languageName: node linkType: hard -"@react-types/table@npm:^3.9.2": - version: 3.9.2 - resolution: "@react-types/table@npm:3.9.2" +"@react-types/table@npm:^3.9.3": + version: 3.9.3 + resolution: "@react-types/table@npm:3.9.3" dependencies: - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" + "@react-types/grid": "npm:^3.2.4" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c7ad042ba7a3daffbfb1b278fec198e19a102ffb28117505294ce5f4fe10581062e9190a32ccfd9ee132225d438509e214d68a8df26ec25739db26de882321ee + checksum: 6483078311ad6fe16cbe3ae1896962ff95509b843641dbb2b2cc0c437fe8a4b1493aecb6cff5b5364f76e43b591e13837c14daef12b6dac087d5395e828594e8 languageName: node linkType: hard -"@react-types/tabs@npm:^3.3.4": - version: 3.3.4 - resolution: "@react-types/tabs@npm:3.3.4" +"@react-types/tabs@npm:^3.3.5": + version: 3.3.5 + resolution: "@react-types/tabs@npm:3.3.5" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4a314f24879205d48d12b558a3af03da67d827d7c5f1a3b161a38efdf796b2394b01945ca48ff4452f818c8d07a5ada9c90a0a760fcc7105ea5799dc0e64da1b + checksum: 1df4042f8f8eadaa60ab91ffcd5d3c75636c86a6f98660b902e8aeb9c4bcc6ee3581d40bf3c48318dd591690ab8b555b3a0a3ac0d35dea1f3e03a2679008e686 languageName: node linkType: hard -"@react-types/textfield@npm:^3.9.0": - version: 3.9.0 - resolution: "@react-types/textfield@npm:3.9.0" +"@react-types/textfield@npm:^3.9.1": + version: 3.9.1 + resolution: "@react-types/textfield@npm:3.9.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 993cc525649e5a7be67580b18b5539c77915c75902d23fe7a7fbc572ee35dccba8128a53bd6a82069751bc21611937d06492b518f2acd9aa80a86075dd336afb + checksum: 978c3190c0a0e585d948f137b21dabd3cf2c7cbee63598c5bfd9da94cec890193801a27a4b143771609ac26e99dc47039e55d3d3ec86d7aa5488a59b5afd3c49 languageName: node linkType: hard -"@react-types/tooltip@npm:^3.4.6": - version: 3.4.6 - resolution: "@react-types/tooltip@npm:3.4.6" +"@react-types/tooltip@npm:^3.4.7": + version: 3.4.7 + resolution: "@react-types/tooltip@npm:3.4.7" dependencies: - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-types/overlays": "npm:^3.8.5" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d312ae556488949101cc462a69091a7174b2b0d8937efc32a0da6d385135f2fefeaa813b7c86bf7cbe4256f503b8b99f312d4399aa71c00b77706c222fc142c0 + checksum: cca3b7df6b58514c1f3bb8ef7eb42ae2c8d527472733db80c12f9a898a869a6537022b9a146baf37cca70f6bd88192b26bfb249eb6798e79e66b8c331a75447d languageName: node linkType: hard @@ -7507,6 +7558,13 @@ __metadata: languageName: node linkType: hard +"date-fns@npm:^3.3.1": + version: 3.3.1 + resolution: "date-fns@npm:3.3.1" + checksum: 98231936765dfb6fc6897676319b500a06a39f051b2c3ecbdd541a07ce9b1344b770277b8bfb1049fb7a2f70bf365ac8e6f1e2bb452b10e1a8101d518ca7f95d + languageName: node + linkType: hard + "debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" @@ -12206,9 +12264,9 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.465" + "@pzh-ui/components": "npm:^0.0.472" "@pzh-ui/config": "npm:^0.0.56" - "@pzh-ui/css": "npm:^0.0.80" + "@pzh-ui/css": "npm:^0.0.81" "@pzh-ui/icons": "npm:^0.0.50" "@react-hookz/web": "npm:^24.0.4" "@tanstack/react-query": "npm:^5.20.5" @@ -12302,51 +12360,81 @@ __metadata: languageName: node linkType: hard -"react-aria@npm:^3.26.0": - version: 3.31.1 - resolution: "react-aria@npm:3.31.1" - dependencies: - "@internationalized/string": "npm:^3.2.0" - "@react-aria/breadcrumbs": "npm:^3.5.9" - "@react-aria/button": "npm:^3.9.1" - "@react-aria/calendar": "npm:^3.5.4" - "@react-aria/checkbox": "npm:^3.13.0" - "@react-aria/combobox": "npm:^3.8.2" - "@react-aria/datepicker": "npm:^3.9.1" - "@react-aria/dialog": "npm:^3.5.10" - "@react-aria/dnd": "npm:^3.5.1" - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/gridlist": "npm:^3.7.3" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/link": "npm:^3.6.3" - "@react-aria/listbox": "npm:^3.11.3" - "@react-aria/menu": "npm:^3.12.0" - "@react-aria/meter": "npm:^3.4.9" - "@react-aria/numberfield": "npm:^3.10.2" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/progress": "npm:^3.4.9" - "@react-aria/radio": "npm:^3.10.0" - "@react-aria/searchfield": "npm:^3.7.1" - "@react-aria/select": "npm:^3.14.1" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/separator": "npm:^3.3.9" - "@react-aria/slider": "npm:^3.7.4" - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/switch": "npm:^3.6.0" - "@react-aria/table": "npm:^3.13.3" - "@react-aria/tabs": "npm:^3.8.3" - "@react-aria/tag": "npm:^3.3.1" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/tooltip": "npm:^3.7.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-types/shared": "npm:^3.22.0" +"react-aria-components@npm:^1.1.1": + version: 1.1.1 + resolution: "react-aria-components@npm:1.1.1" + dependencies: + "@internationalized/date": "npm:^3.5.2" + "@internationalized/string": "npm:^3.2.1" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/menu": "npm:^3.13.1" + "@react-aria/toolbar": "npm:3.0.0-beta.3" + "@react-aria/utils": "npm:^3.23.2" + "@react-stately/menu": "npm:^3.6.1" + "@react-stately/table": "npm:^3.11.6" + "@react-stately/utils": "npm:^3.9.1" + "@react-types/form": "npm:^3.7.2" + "@react-types/grid": "npm:^3.2.4" + "@react-types/shared": "npm:^3.22.1" + "@react-types/table": "npm:^3.9.3" + "@swc/helpers": "npm:^0.5.0" + client-only: "npm:^0.0.1" + react-aria: "npm:^3.32.1" + react-stately: "npm:^3.30.1" + use-sync-external-store: "npm:^1.2.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c4e7a213d86fe9c9bcd11343dfa0339e1642a954bdc50b0ee2c9c4c42671fb13e59ccc3f2fdb5791f5449822b89b2f4f2e8ff97293f90114f250f7e33139dfd1 + checksum: c3e92afa10df49e66ef9022b397f55780a84ec76b383f64e7aaa7a5a8053330f18c673b2904f5b379f1c2d80369e5eaf9a8c0e68df6d7efd684746300f184e09 + languageName: node + linkType: hard + +"react-aria@npm:^3.32.1": + version: 3.32.1 + resolution: "react-aria@npm:3.32.1" + dependencies: + "@internationalized/string": "npm:^3.2.1" + "@react-aria/breadcrumbs": "npm:^3.5.11" + "@react-aria/button": "npm:^3.9.3" + "@react-aria/calendar": "npm:^3.5.6" + "@react-aria/checkbox": "npm:^3.14.1" + "@react-aria/combobox": "npm:^3.8.4" + "@react-aria/datepicker": "npm:^3.9.3" + "@react-aria/dialog": "npm:^3.5.12" + "@react-aria/dnd": "npm:^3.5.3" + "@react-aria/focus": "npm:^3.16.2" + "@react-aria/gridlist": "npm:^3.7.5" + "@react-aria/i18n": "npm:^3.10.2" + "@react-aria/interactions": "npm:^3.21.1" + "@react-aria/label": "npm:^3.7.6" + "@react-aria/link": "npm:^3.6.5" + "@react-aria/listbox": "npm:^3.11.5" + "@react-aria/menu": "npm:^3.13.1" + "@react-aria/meter": "npm:^3.4.11" + "@react-aria/numberfield": "npm:^3.11.1" + "@react-aria/overlays": "npm:^3.21.1" + "@react-aria/progress": "npm:^3.4.11" + "@react-aria/radio": "npm:^3.10.2" + "@react-aria/searchfield": "npm:^3.7.3" + "@react-aria/select": "npm:^3.14.3" + "@react-aria/selection": "npm:^3.17.5" + "@react-aria/separator": "npm:^3.3.11" + "@react-aria/slider": "npm:^3.7.6" + "@react-aria/ssr": "npm:^3.9.2" + "@react-aria/switch": "npm:^3.6.2" + "@react-aria/table": "npm:^3.13.5" + "@react-aria/tabs": "npm:^3.8.5" + "@react-aria/tag": "npm:^3.3.3" + "@react-aria/textfield": "npm:^3.14.3" + "@react-aria/tooltip": "npm:^3.7.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-aria/visually-hidden": "npm:^3.8.10" + "@react-types/shared": "npm:^3.22.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 8ef6d071ef8de6102a2c7123e4dcde9137f01af40993e9e8e129795d6ffdb94cafaa583d8d309cacb9563c79ee1533fa35fbbd478ba671b49ba41bdba4d47ec4 languageName: node linkType: hard @@ -12359,7 +12447,7 @@ __metadata: languageName: node linkType: hard -"react-datepicker@npm:^4.16.0, react-datepicker@npm:^4.7.0": +"react-datepicker@npm:^4.7.0": version: 4.25.0 resolution: "react-datepicker@npm:4.25.0" dependencies: @@ -12376,6 +12464,22 @@ __metadata: languageName: node linkType: hard +"react-datepicker@npm:^6.1.0": + version: 6.1.0 + resolution: "react-datepicker@npm:6.1.0" + dependencies: + "@floating-ui/react": "npm:^0.26.2" + classnames: "npm:^2.2.6" + date-fns: "npm:^3.3.1" + prop-types: "npm:^15.7.2" + react-onclickoutside: "npm:^6.13.0" + peerDependencies: + react: ^16.9.0 || ^17 || ^18 + react-dom: ^16.9.0 || ^17 || ^18 + checksum: 4e3147808e962c9643f6ef777904cd67cfe4ad3ae937f78746672ff961ffeaa8dc849307e03d6925111db03f66f40fe3622ed147f0b0991c678cc7be58807b7f + languageName: node + linkType: hard + "react-dom@npm:^18.2.0": version: 18.2.0 resolution: "react-dom@npm:18.2.0" @@ -12560,36 +12664,36 @@ __metadata: languageName: node linkType: hard -"react-stately@npm:^3.18.0": - version: 3.29.1 - resolution: "react-stately@npm:3.29.1" - dependencies: - "@react-stately/calendar": "npm:^3.4.3" - "@react-stately/checkbox": "npm:^3.6.1" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/combobox": "npm:^3.8.1" - "@react-stately/data": "npm:^3.11.0" - "@react-stately/datepicker": "npm:^3.9.1" - "@react-stately/dnd": "npm:^3.2.7" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/list": "npm:^3.10.2" - "@react-stately/menu": "npm:^3.6.0" - "@react-stately/numberfield": "npm:^3.8.0" - "@react-stately/overlays": "npm:^3.6.4" - "@react-stately/radio": "npm:^3.10.1" - "@react-stately/searchfield": "npm:^3.5.0" - "@react-stately/select": "npm:^3.6.1" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/slider": "npm:^3.5.0" - "@react-stately/table": "npm:^3.11.4" - "@react-stately/tabs": "npm:^3.6.3" - "@react-stately/toggle": "npm:^3.7.0" - "@react-stately/tooltip": "npm:^3.4.6" - "@react-stately/tree": "npm:^3.7.5" - "@react-types/shared": "npm:^3.22.0" +"react-stately@npm:^3.30.1": + version: 3.30.1 + resolution: "react-stately@npm:3.30.1" + dependencies: + "@react-stately/calendar": "npm:^3.4.4" + "@react-stately/checkbox": "npm:^3.6.3" + "@react-stately/collections": "npm:^3.10.5" + "@react-stately/combobox": "npm:^3.8.2" + "@react-stately/data": "npm:^3.11.2" + "@react-stately/datepicker": "npm:^3.9.2" + "@react-stately/dnd": "npm:^3.2.8" + "@react-stately/form": "npm:^3.0.1" + "@react-stately/list": "npm:^3.10.3" + "@react-stately/menu": "npm:^3.6.1" + "@react-stately/numberfield": "npm:^3.9.1" + "@react-stately/overlays": "npm:^3.6.5" + "@react-stately/radio": "npm:^3.10.2" + "@react-stately/searchfield": "npm:^3.5.1" + "@react-stately/select": "npm:^3.6.2" + "@react-stately/selection": "npm:^3.14.3" + "@react-stately/slider": "npm:^3.5.2" + "@react-stately/table": "npm:^3.11.6" + "@react-stately/tabs": "npm:^3.6.4" + "@react-stately/toggle": "npm:^3.7.2" + "@react-stately/tooltip": "npm:^3.4.7" + "@react-stately/tree": "npm:^3.7.6" + "@react-types/shared": "npm:^3.22.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 6f2f3d2a831338238bafab15bebb12d4bbc7832f80e49d28d7412938a78e9e31619f6335e743191662586abc0eab37534470f42297a4f1596783855e05ff9b8b + checksum: 347c997a5f33dbaa38ccc59c08d12d2c8912a52a48d7d787b9efeaf0b8a2004f0f20a2ce2f0e892438b184ea5ef4b8771b335a226e2ab601cf84ab532723adf9 languageName: node linkType: hard @@ -14425,7 +14529,7 @@ __metadata: languageName: node linkType: hard -"use-sync-external-store@npm:1.2.0": +"use-sync-external-store@npm:1.2.0, use-sync-external-store@npm:^1.2.0": version: 1.2.0 resolution: "use-sync-external-store@npm:1.2.0" peerDependencies: From 49730c7fd71dc698f5dff21623e41d0e5f1007db Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 26 Feb 2024 17:00:09 +0100 Subject: [PATCH 26/82] Update types --- src/api/fetchers.msw.ts | 167 +++++++++++++++++++----------------- src/api/fetchers.schemas.ts | 1 + 2 files changed, 89 insertions(+), 79 deletions(-) diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index ea6659fb..36f6407b 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -10,85 +10,91 @@ */ import { faker } from '@faker-js/faker' import { HttpResponse, delay, http } from 'msw' -import type { - AcknowledgedRelation, - ActiveModuleObjectWrapper, - AmbitieFull, - AmbitieUUID, - AuthToken, - BeleidsdoelFull, - BeleidsdoelUUID, - BeleidskeuzeFull, - BeleidskeuzeUUID, - BeleidsregelFull, - BeleidsregelUUID, - GebiedsprogrammaFull, - GebiedsprogrammaUUID, - GraphResponse, - MaatregelFull, - MaatregelUUID, - ModuleCreatedResponse, - ModuleObjectContext, - ModuleOverview, - ModuleSnapshot, - ModuleStatus, - NationaalBelangFull, - NationaalBelangUUID, - NewObjectStaticResponse, - ObjectCount, - PagedResponseAmbitieBasic, - PagedResponseAmbitieExtended, - PagedResponseBeleidsdoelBasic, - PagedResponseBeleidsdoelExtended, - PagedResponseBeleidskeuzeBasic, - PagedResponseBeleidskeuzeExtended, - PagedResponseBeleidsregelBasic, - PagedResponseBeleidsregelExtended, - PagedResponseGebiedsprogrammaBasic, - PagedResponseGebiedsprogrammaExtended, - PagedResponseGenericObjectShort, - PagedResponseGeoSearchResult, - PagedResponseMaatregelBasic, - PagedResponseMaatregelExtended, - PagedResponseModule, - PagedResponseModuleObjectShortStatus, - PagedResponseNationaalBelangBasic, - PagedResponseProgrammaAlgemeenBasic, - PagedResponseProgrammaAlgemeenExtended, - PagedResponsePublicModuleShort, - PagedResponsePublication, - PagedResponsePublicationBillShort, - PagedResponsePublicationPackage, - PagedResponseSearchObject, - PagedResponseUser, - PagedResponseValidSearchObject, - PagedResponseVerplichtProgrammaBasic, - PagedResponseVisieAlgemeenBasic, - PagedResponseVisieAlgemeenExtended, - PagedResponseWerkingsgebied, - PagedResponseWerkingsgebiedBasic, - PagedResponseWerkingsgebiedExtended, - PagedResponseWettelijkeTaakBasic, - ProgrammaAlgemeenFull, - ProgrammaAlgemeenUUID, - PublicModuleOverview, - Publication, - PublicationBill, - PublicationPackage, - PublicationPackageReport, - ReadRelation, - ResetPasswordResponse, - ResponseOK, - User, - UserCreateResponse, - VerplichtProgrammaFull, - VerplichtProgrammaUUID, - VisieAlgemeenFull, - VisieAlgemeenUUID, - WerkingsgebiedFull, - WerkingsgebiedUUID, - WettelijkeTaakFull, - WettelijkeTaakUUID, + +import { + AppExtensionsPublicationsEnumsDocumentType, + GraphEdgeType, + PackageEventType, + ProcedureStepType, + ProcedureType, + type AcknowledgedRelation, + type ActiveModuleObjectWrapper, + type AmbitieFull, + type AmbitieUUID, + type AuthToken, + type BeleidsdoelFull, + type BeleidsdoelUUID, + type BeleidskeuzeFull, + type BeleidskeuzeUUID, + type BeleidsregelFull, + type BeleidsregelUUID, + type GebiedsprogrammaFull, + type GebiedsprogrammaUUID, + type GraphResponse, + type MaatregelFull, + type MaatregelUUID, + type ModuleCreatedResponse, + type ModuleObjectContext, + type ModuleOverview, + type ModuleSnapshot, + type ModuleStatus, + type NationaalBelangFull, + type NationaalBelangUUID, + type NewObjectStaticResponse, + type ObjectCount, + type PagedResponseAmbitieBasic, + type PagedResponseAmbitieExtended, + type PagedResponseBeleidsdoelBasic, + type PagedResponseBeleidsdoelExtended, + type PagedResponseBeleidskeuzeBasic, + type PagedResponseBeleidskeuzeExtended, + type PagedResponseBeleidsregelBasic, + type PagedResponseBeleidsregelExtended, + type PagedResponseGebiedsprogrammaBasic, + type PagedResponseGebiedsprogrammaExtended, + type PagedResponseGenericObjectShort, + type PagedResponseGeoSearchResult, + type PagedResponseMaatregelBasic, + type PagedResponseMaatregelExtended, + type PagedResponseModule, + type PagedResponseModuleObjectShortStatus, + type PagedResponseNationaalBelangBasic, + type PagedResponseProgrammaAlgemeenBasic, + type PagedResponseProgrammaAlgemeenExtended, + type PagedResponsePublicModuleShort, + type PagedResponsePublication, + type PagedResponsePublicationBillShort, + type PagedResponsePublicationPackage, + type PagedResponseSearchObject, + type PagedResponseUser, + type PagedResponseValidSearchObject, + type PagedResponseVerplichtProgrammaBasic, + type PagedResponseVisieAlgemeenBasic, + type PagedResponseVisieAlgemeenExtended, + type PagedResponseWerkingsgebied, + type PagedResponseWerkingsgebiedBasic, + type PagedResponseWerkingsgebiedExtended, + type PagedResponseWettelijkeTaakBasic, + type ProgrammaAlgemeenFull, + type ProgrammaAlgemeenUUID, + type PublicModuleOverview, + type Publication, + type PublicationBill, + type PublicationPackage, + type PublicationPackageReport, + type ReadRelation, + type ResetPasswordResponse, + type ResponseOK, + type User, + type UserCreateResponse, + type VerplichtProgrammaFull, + type VerplichtProgrammaUUID, + type VisieAlgemeenFull, + type VisieAlgemeenUUID, + type WerkingsgebiedFull, + type WerkingsgebiedUUID, + type WettelijkeTaakFull, + type WettelijkeTaakUUID, } from './fetchers.schemas' export const getAmbitiesValidGetMock = ( @@ -13166,6 +13172,7 @@ export const getPublicationsPublicationUuidBillsPostMock = ( Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Effective_Date: faker.date.past().toISOString().split('T')[0], Is_Official: faker.datatype.boolean(), + Locked: faker.datatype.boolean(), Modified_By_UUID: faker.string.uuid(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_Status_ID: faker.number.int({ min: undefined, max: undefined }), @@ -13261,6 +13268,7 @@ export const getPublicationsPublicationUuidBillsBillUuidGetMock = ( Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Effective_Date: faker.date.past().toISOString().split('T')[0], Is_Official: faker.datatype.boolean(), + Locked: faker.datatype.boolean(), Modified_By_UUID: faker.string.uuid(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_Status_ID: faker.number.int({ min: undefined, max: undefined }), @@ -13356,6 +13364,7 @@ export const getPublicationsPublicationUuidBillsBillUuidPatchMock = ( Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Effective_Date: faker.date.past().toISOString().split('T')[0], Is_Official: faker.datatype.boolean(), + Locked: faker.datatype.boolean(), Modified_By_UUID: faker.string.uuid(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_Status_ID: faker.number.int({ min: undefined, max: undefined }), diff --git a/src/api/fetchers.schemas.ts b/src/api/fetchers.schemas.ts index 62bcc3c1..493fd594 100644 --- a/src/api/fetchers.schemas.ts +++ b/src/api/fetchers.schemas.ts @@ -1064,6 +1064,7 @@ export interface PublicationBill { Created_Date: string Effective_Date: string Is_Official: boolean + Locked: boolean Modified_By_UUID: string Modified_Date: string Module_Status_ID: number From 2053b6937499f8d417faee260efae606df2d6a95 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 27 Feb 2024 14:19:21 +0100 Subject: [PATCH 27/82] Add Form validation --- .../PublicationForm/PublicationForm.tsx | 58 +++++++++----- .../PublicationVersionForm.tsx | 69 +++++++++++------ src/validation/modules.ts | 6 +- src/validation/publication.ts | 77 +++++++++++++++++++ src/validation/zodSchema.ts | 9 ++- 5 files changed, 167 insertions(+), 52 deletions(-) create mode 100644 src/validation/publication.ts diff --git a/src/components/Publications/PublicationForm/PublicationForm.tsx b/src/components/Publications/PublicationForm/PublicationForm.tsx index 3f82b629..2a0db9c4 100644 --- a/src/components/Publications/PublicationForm/PublicationForm.tsx +++ b/src/components/Publications/PublicationForm/PublicationForm.tsx @@ -1,8 +1,10 @@ import { Button, Divider, FormikInput, FormikSelect } from '@pzh-ui/components' import { Form, Formik, FormikConfig, FormikValues } from 'formik' +import { toFormikValidationSchema } from 'zod-formik-adapter' import { AppExtensionsPublicationsEnumsDocumentType } from '@/api/fetchers.schemas' import useModalStore from '@/store/modalStore' +import { PUBLICATION_SCHEMA } from '@/validation/publication' interface PublicationFormProps { submitLabel: string @@ -21,30 +23,44 @@ const PublicationForm = ({ ).map(type => ({ label: type, value: type })) return ( - + {({ isSubmitting }) => (
    - - - - +
    + +
    +
    + +
    +
    + +
    +
    + +
    diff --git a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx index 72e2b29f..04134b65 100644 --- a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx +++ b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx @@ -11,6 +11,7 @@ import { } from '@pzh-ui/components' import { Form, Formik, FormikConfig, FormikValues } from 'formik' import { useParams } from 'react-router-dom' +import { toFormikValidationSchema } from 'zod-formik-adapter' import { useModulesModuleIdStatusGet } from '@/api/fetchers' import { @@ -20,6 +21,7 @@ import { AccordionTrigger, } from '@/components/Accordion' import useModalStore from '@/store/modalStore' +import { PUBLICATION_VERSION_SCHEMA } from '@/validation/publication' interface PublicationVersionFormProps { submitLabel: string @@ -55,7 +57,12 @@ const PublicationVersionForm = ({ ) return ( - +
    ({ }, ]} disabled={isEdit} + required /> ({ }, ]} disabled={isEdit} + required />
    ({ placeholder="Selecteer een module status" options={statusOptions} disabled={isEdit} + required /> ({ name="Bill_Data.Closing" label="Sluiting" placeholder="Bijv. Gegeven te 's-Gravenhage, 27 september 2023" + required />
    - - - - - +
    + +
    +
    + +
    +
    + +
    +
    + +
    diff --git a/src/validation/modules.ts b/src/validation/modules.ts index 2c1cc9e7..7bf3c56d 100644 --- a/src/validation/modules.ts +++ b/src/validation/modules.ts @@ -59,7 +59,7 @@ export const SCHEMA_COMPLETE_MODULE = object({ object({ Object_Type: schemaDefaults.requiredString(), Object_ID: schemaDefaults.requiredNumber(), - Start_Validity: schemaDefaults.date, + Start_Validity: schemaDefaults.date(), }).partial({ Start_Validity: true, }) @@ -68,7 +68,7 @@ export const SCHEMA_COMPLETE_MODULE = object({ export const SCHEMA_COMPLETE_MODULE_STEPS = [ object({ - Default_Start_Validity: schemaDefaults.date, + Default_Start_Validity: schemaDefaults.date(), IDMS_Link: schemaDefaults.url(), Decision_Number: schemaDefaults.requiredString(), Link_To_Decision_Document: schemaDefaults.url(), @@ -78,7 +78,7 @@ export const SCHEMA_COMPLETE_MODULE_STEPS = [ object({ Object_Type: schemaDefaults.requiredString(), Object_ID: schemaDefaults.requiredNumber(), - Start_Validity: schemaDefaults.date, + Start_Validity: schemaDefaults.date(), }).partial({ Start_Validity: true, }) diff --git a/src/validation/publication.ts b/src/validation/publication.ts new file mode 100644 index 00000000..ba91829a --- /dev/null +++ b/src/validation/publication.ts @@ -0,0 +1,77 @@ +import { array, object, tuple } from 'zod' + +import { schemaDefaults } from '@/validation/zodSchema' + +export const PUBLICATION_SCHEMA = object({ + Document_Type: schemaDefaults.requiredString(), + Official_Title: schemaDefaults.requiredString(), + Regulation_Title: schemaDefaults.requiredString(), + Template_ID: schemaDefaults.optionalNumber, +}) + +export const PUBLICATION_VERSION_SCHEMA = object({ + Is_Official: schemaDefaults.requiredString(), + Procedure_Type: schemaDefaults.requiredString(), + Module_Status_ID: schemaDefaults.requiredNumber(), + PZH_Bill_Identifier: schemaDefaults.optionalString, + Effective_Date: schemaDefaults.optionalString + .refine(date => { + return date && new Date(date) > new Date(Date.now()) + }, 'De inwerkingtredingsdatum moet in de toekomst liggen') + .nullable(), + Announcement_Date: schemaDefaults.optionalString + .refine(date => { + return date && new Date(date) > new Date(Date.now()) + }, 'De bekendmakingsdatum moet in de toekomst liggen') + .nullable(), + Bill_Data: object({ + Preamble: schemaDefaults.optionalString, + Amendment_Article: object({ + Label: schemaDefaults.requiredString(), + Number: schemaDefaults.optionalString, + Content: schemaDefaults.optionalString, + }).optional(), + Articles: array( + object({ + Label: schemaDefaults.requiredString(), + Number: schemaDefaults.optionalString, + Content: schemaDefaults.optionalString, + }) + ).optional(), + Time_Article: object({ + Label: schemaDefaults.requiredString(), + Number: schemaDefaults.optionalString, + Content: schemaDefaults.optionalString, + }).optional(), + Closing: schemaDefaults.requiredString(), + Signature: schemaDefaults.requiredString(), + }), + Procedure_Data: object({ + Announcement_Date: schemaDefaults.requiredString().refine(date => { + return new Date(date) > new Date(Date.now()) + }, 'De bekendmakingsdatum moet in de toekomst liggen'), + Steps: tuple([ + object({ + Step_Type: schemaDefaults.requiredString(), + Conclusion_Date: schemaDefaults.requiredString(), + }), + object({ + Step_Type: schemaDefaults.requiredString(), + Conclusion_Date: schemaDefaults.requiredString(), + }), + ]), + }), +}).superRefine(({ Effective_Date, Announcement_Date }: any, ctx) => { + if ( + Effective_Date && + Announcement_Date && + new Date(Announcement_Date) >= new Date(Effective_Date) + ) { + ctx.addIssue({ + code: 'custom', + message: + 'De bekendmakingsdatum moet eerder zijn dan de inwerkingtredingsdatum', + path: ['Procedure_Data.Announcement_Date'], + }) + } +}) diff --git a/src/validation/zodSchema.ts b/src/validation/zodSchema.ts index db0a89a4..80361512 100644 --- a/src/validation/zodSchema.ts +++ b/src/validation/zodSchema.ts @@ -12,6 +12,7 @@ export const schemaDefaults = { required_error: msg, invalid_type_error: msg, }), + optionalNumber: number().optional().nullable(), email: (msg = 'Dit veld is verplicht.') => string({ required_error: msg, @@ -32,9 +33,11 @@ export const schemaDefaults = { .trim() .min(4, 'Vul een titel in van minimaal 4 karakters') .max(220, 'Vul een titel in van maximaal 220 karakters'), - date: string({ required_error: 'Selecteer een datum' }).datetime( - 'Onjuiste datum' - ), + date: (msg = 'Selecteer een datum') => + string({ required_error: msg, invalid_type_error: msg }).datetime( + 'Onjuiste datum' + ), + optionalDate: string().datetime().optional().nullable(), file: instanceOf(File), } From fa496f544f484b3f8265e43fec09f04b195a7360 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 4 Mar 2024 09:47:46 +0100 Subject: [PATCH 28/82] Update dependencies --- package.json | 21 ++- src/components/Accordion/Accordion.tsx | 5 +- src/components/Avatar/Avatar.tsx | 2 +- .../ContainerMapSearch/ContainerMapSearch.tsx | 2 +- src/components/Draggable/Draggable.tsx | 2 +- src/components/DropArea/DropArea.tsx | 2 +- src/components/Dropdown/Dropdown.tsx | 2 +- .../ObjectAcknowledgedRelationPart.tsx | 2 +- .../ObjectContent/ObjectContent.tsx | 2 +- .../ObjectRelationPart/ObjectRelationPart.tsx | 2 +- .../ObjectRevision/ObjectRevision.tsx | 2 +- src/components/Filter/Filter.tsx | 3 +- src/components/Footer/Footer.tsx | 2 +- .../Form/FieldSelectArea/FieldSelectArea.tsx | 2 +- .../LeafletLayers/LeafletAreaLayer.tsx | 5 +- .../ModuleCompleteModal/steps/StepTwo.tsx | 11 +- .../ObjectConnectionModal/steps/StepOne.tsx | 2 +- .../PublicationVersionAddModal.tsx | 4 +- .../PublicationVersionEditModal.tsx | 4 +- .../Modules/ModulePart/ModulePart.tsx | 2 +- .../Modules/ModuleTimeline/ModuleTimeline.tsx | 5 +- src/components/Navigation/Navigation.tsx | 2 +- .../NavigationPopupMenu.tsx | 2 +- .../NetworkGraphButtons.tsx | 2 +- .../NetworkGraphPopup/NetworkGraphPopup.tsx | 2 +- .../NetworkGraphTooltip.tsx | 2 +- .../Network/NetworkLegend/NetworkLegend.tsx | 2 +- .../Publications/Publication/Publication.tsx | 6 +- .../PublicationPackages.tsx | 20 +-- .../components/PackageStep.tsx | 4 +- .../components/PackageStepActions.tsx | 131 +++++++++------ .../PublicationVersionForm.tsx | 2 +- .../PublicationVersions.tsx | 92 ++++++---- .../RecursiveAccordion/RecursiveAccordion.tsx | 2 +- .../components/Handle/Handle.tsx | 2 +- .../RegulationForm/components/FieldLabel.tsx | 2 +- .../components/FieldListItem.tsx | 2 +- .../Regulations/Sidebar/Sidebar.tsx | 2 +- src/components/Sidebar/Sidebar.tsx | 2 +- .../TableOfContents/TableOfContents.tsx | 2 +- src/components/Users/UserMenu/UserMenu.tsx | 2 +- .../Modules/ModuleDetail/ModuleDetail.tsx | 6 +- .../public/DynamicObject/DynamicObject.tsx | 27 +-- src/pages/public/Login/Login.tsx | 2 +- src/pages/public/MapSearch/MapSearch.tsx | 2 +- src/pages/public/Network/Network.tsx | 2 +- src/pages/public/Revisions/Revisions.tsx | 2 +- .../public/SearchResults/SearchResults.tsx | 2 +- src/templates/MutateLayout.tsx | 2 +- src/utils/downloadFile.ts | 40 ----- src/utils/file.ts | 39 +++++ src/utils/formatDate.ts | 14 -- src/validation/publication.ts | 2 +- yarn.lock | 159 ++++++++---------- 54 files changed, 340 insertions(+), 326 deletions(-) delete mode 100644 src/utils/downloadFile.ts delete mode 100644 src/utils/formatDate.ts diff --git a/package.json b/package.json index e3cb0c0e..c12fb04e 100644 --- a/package.json +++ b/package.json @@ -6,18 +6,17 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.472", + "@pzh-ui/components": "^0.0.478", "@pzh-ui/config": "^0.0.56", "@pzh-ui/css": "^0.0.81", "@pzh-ui/icons": "^0.0.50", "@react-hookz/web": "^24.0.4", - "@tanstack/react-query": "^5.20.5", + "@tanstack/react-query": "^5.24.7", "axios": "^1.6.7", - "classnames": "^2.3.2", + "clsx": "^2.1.0", "d3": "^7.8.5", - "date-fns": "^2.23.0", - "dompurify": "^3.0.5", - "formik": "^2.4.2", + "dompurify": "^3.0.9", + "formik": "^2.4.5", "jwt-decode": "^4.0.0", "leaflet": "^1.9.4", "leaflet-draw": "^1.0.4", @@ -30,14 +29,14 @@ "react": "^18.2.0", "react-content-loader": "^6.2.1", "react-dom": "^18.2.0", - "react-error-boundary": "^4.0.10", - "react-helmet-async": "^2.0.3", + "react-error-boundary": "^4.0.13", + "react-helmet-async": "^2.0.4", "react-leaflet": "^4.2.1", - "react-router-dom": "^6.14.2", + "react-router-dom": "^6.22.2", "uuid": "^9.0.1", "zod": "^3.22.4", "zod-formik-adapter": "^1.2.0", - "zustand": "^4.4.7" + "zustand": "^4.5.2" }, "scripts": { "build:css": "npx tailwindcss -i node_modules/@pzh-ui/css/src/tailwind.src.css -o src/css/tailwind.css", @@ -83,7 +82,7 @@ "@types/react": "^18.2.15", "@types/react-dom": "^18.2.7", "@types/react-leaflet": "^3.0.0", - "@types/react-router-dom": "^5.3.2", + "@types/react-router-dom": "^5.3.3", "@types/uuid": "^9.0.3", "@vitejs/plugin-react": "^4.2.1", "@vitest/coverage-v8": "^1.2.2", diff --git a/src/components/Accordion/Accordion.tsx b/src/components/Accordion/Accordion.tsx index 30806fff..ea6de0c1 100644 --- a/src/components/Accordion/Accordion.tsx +++ b/src/components/Accordion/Accordion.tsx @@ -1,6 +1,6 @@ import { AngleDown } from '@pzh-ui/icons' import { useUpdateEffect } from '@react-hookz/web' -import classNames from 'classnames' +import classNames from 'clsx' import { Children, HTMLAttributes, @@ -163,7 +163,8 @@ const AccordionTrigger = ({ "after:content-[' '] ml-auto after:absolute after:right-0 after:top-0 after:h-full", classNameButton )} - type="button"> + type="button" + aria-label={isOpen ? 'Inklappen' : 'Uitklappen'}> { const { values } = useFormikContext() @@ -40,7 +39,9 @@ export const StepTwo = () => { hebben, geef dit per object aan. - {objects?.map(object => )} + {objects?.map(object => ( + + ))} ) } diff --git a/src/components/Modals/ObjectModals/ObjectConnectionModal/steps/StepOne.tsx b/src/components/Modals/ObjectModals/ObjectConnectionModal/steps/StepOne.tsx index c893012e..a170397d 100644 --- a/src/components/Modals/ObjectModals/ObjectConnectionModal/steps/StepOne.tsx +++ b/src/components/Modals/ObjectModals/ObjectConnectionModal/steps/StepOne.tsx @@ -1,6 +1,6 @@ import { Button, Divider, Heading, Text } from '@pzh-ui/components' import { PenToSquare, TrashCan } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { useFormikContext } from 'formik' import { useMemo } from 'react' diff --git a/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx index 4a6571f5..c64f4a48 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx @@ -51,8 +51,8 @@ const PublicationVersionAddModal = () => { const handleFormSubmit = (payload: PublicationBillCreate) => { payload.Is_Official = (payload.Is_Official as unknown) === 'true' - if (payload.Procedure_Data?.Announcement_Date) { - payload.Announcement_Date = payload.Procedure_Data.Announcement_Date + if (payload.Announcement_Date && payload.Procedure_Data) { + payload.Procedure_Data.Announcement_Date = payload.Announcement_Date } mutate({ publicationUuid: modalState.publication.UUID, data: payload }) diff --git a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx index 86806278..80f128d3 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx @@ -54,8 +54,8 @@ const PublicationVersionEditModal = () => { }) const handleFormSubmit = (payload: PublicationBillEdit) => { - if (payload.Procedure_Data?.Announcement_Date) { - payload.Announcement_Date = payload.Procedure_Data.Announcement_Date + if (payload.Announcement_Date && payload.Procedure_Data) { + payload.Procedure_Data.Announcement_Date = payload.Announcement_Date } mutate({ diff --git a/src/components/Modules/ModulePart/ModulePart.tsx b/src/components/Modules/ModulePart/ModulePart.tsx index 7f134891..daab549f 100644 --- a/src/components/Modules/ModulePart/ModulePart.tsx +++ b/src/components/Modules/ModulePart/ModulePart.tsx @@ -1,6 +1,6 @@ import { Text, Tooltip } from '@pzh-ui/components' import { TrashCan } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { ModuleObjectShort } from '@/api/fetchers.schemas' import { getObjectActionText } from '@/utils/dynamicObject' diff --git a/src/components/Modules/ModuleTimeline/ModuleTimeline.tsx b/src/components/Modules/ModuleTimeline/ModuleTimeline.tsx index 2507a03b..b09c6cc2 100644 --- a/src/components/Modules/ModuleTimeline/ModuleTimeline.tsx +++ b/src/components/Modules/ModuleTimeline/ModuleTimeline.tsx @@ -1,9 +1,8 @@ -import { Badge, Text } from '@pzh-ui/components' -import classNames from 'classnames' +import { Badge, Text, formatDate } from '@pzh-ui/components' +import classNames from 'clsx' import { useMemo } from 'react' import { ModuleStatus } from '@/api/fetchers.schemas' -import formatDate from '@/utils/formatDate' import { getModuleStatusColor } from '@/utils/module' interface ModuleTimelineProps { diff --git a/src/components/Navigation/Navigation.tsx b/src/components/Navigation/Navigation.tsx index 4b6362e9..93e19828 100644 --- a/src/components/Navigation/Navigation.tsx +++ b/src/components/Navigation/Navigation.tsx @@ -1,7 +1,7 @@ import { Badge } from '@pzh-ui/components' import { ArrowRightFromBracket, Eye } from '@pzh-ui/icons' import { useClickOutside } from '@react-hookz/web' -import classNames from 'classnames' +import classNames from 'clsx' import { ReactNode, useRef, useState } from 'react' import { Link } from 'react-router-dom' diff --git a/src/components/NavigationPopupMenu/NavigationPopupMenu.tsx b/src/components/NavigationPopupMenu/NavigationPopupMenu.tsx index c60958b0..90e55d9b 100644 --- a/src/components/NavigationPopupMenu/NavigationPopupMenu.tsx +++ b/src/components/NavigationPopupMenu/NavigationPopupMenu.tsx @@ -1,7 +1,7 @@ import { Heading, Text } from '@pzh-ui/components' import { AngleRight, Bars, Xmark } from '@pzh-ui/icons' import { useKeyboardEvent, useWindowSize } from '@react-hookz/web' -import classNames from 'classnames' +import classNames from 'clsx' import { useEffect, useState } from 'react' import { Link } from 'react-router-dom' diff --git a/src/components/Network/NetworkGraphButtons/NetworkGraphButtons.tsx b/src/components/Network/NetworkGraphButtons/NetworkGraphButtons.tsx index 7ceed0cf..c5eae666 100644 --- a/src/components/Network/NetworkGraphButtons/NetworkGraphButtons.tsx +++ b/src/components/Network/NetworkGraphButtons/NetworkGraphButtons.tsx @@ -1,6 +1,6 @@ import { Divider } from '@pzh-ui/components' import { Minus, Plus, RotateLeft } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import useNetworkStore from '@/store/networkStore' diff --git a/src/components/Network/NetworkGraphPopup/NetworkGraphPopup.tsx b/src/components/Network/NetworkGraphPopup/NetworkGraphPopup.tsx index 8e66f666..b9bf8e0f 100644 --- a/src/components/Network/NetworkGraphPopup/NetworkGraphPopup.tsx +++ b/src/components/Network/NetworkGraphPopup/NetworkGraphPopup.tsx @@ -1,6 +1,6 @@ import { Hyperlink, Text } from '@pzh-ui/components' import { Xmark } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { ModelType } from '@/config/objects/types' import useNetworkStore from '@/store/networkStore' diff --git a/src/components/Network/NetworkGraphTooltip/NetworkGraphTooltip.tsx b/src/components/Network/NetworkGraphTooltip/NetworkGraphTooltip.tsx index 0059af4a..1510fc9f 100644 --- a/src/components/Network/NetworkGraphTooltip/NetworkGraphTooltip.tsx +++ b/src/components/Network/NetworkGraphTooltip/NetworkGraphTooltip.tsx @@ -1,4 +1,4 @@ -import classNames from 'classnames' +import classNames from 'clsx' import { forwardRef } from 'react' /** diff --git a/src/components/Network/NetworkLegend/NetworkLegend.tsx b/src/components/Network/NetworkLegend/NetworkLegend.tsx index 75652381..30bac5e2 100644 --- a/src/components/Network/NetworkLegend/NetworkLegend.tsx +++ b/src/components/Network/NetworkLegend/NetworkLegend.tsx @@ -1,6 +1,6 @@ import { Text } from '@pzh-ui/components' import { Triangle } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { ModelType } from '@/config/objects/types' import useFilterStore from '@/store/filterStore' diff --git a/src/components/Publications/Publication/Publication.tsx b/src/components/Publications/Publication/Publication.tsx index 802a40ab..deb149dd 100644 --- a/src/components/Publications/Publication/Publication.tsx +++ b/src/components/Publications/Publication/Publication.tsx @@ -42,7 +42,11 @@ const Publication = ({ data }: PublicationProps) => { - {!!data && } + {!!data && ( +
    + +
    + )}
    diff --git a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx index ee607a13..ae855cf9 100644 --- a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx +++ b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx @@ -13,7 +13,7 @@ import { PublicationBillShort, PublicationPackage, } from '@/api/fetchers.schemas' -import downloadFile from '@/utils/downloadFile' +import { downloadFile } from '@/utils/file' import { PublicationPackageProps } from '../PublicationPackages' @@ -199,66 +199,93 @@ const UploadAction = ({ } const date = useMemo(() => { - if (!!publicationPackage?.Reports?.[0]) { + if (!!publicationPackage?.Reports?.length) { return formatDate( - new Date(publicationPackage.Reports[0].Created_Date), + new Date(publicationPackage.Reports?.slice(-1)[0].Created_Date), 'dd-MM-yyyy' ) } }, [publicationPackage]) + const allFiles = useMemo( + () => + ((!!files?.length || !!publicationPackage?.Reports?.length) && [ + ...(publicationPackage?.Reports || []), + ...(files || []), + ]) || + undefined, + [files, publicationPackage?.Reports] + ) + return ( -
    - {publicationPackage?.Validation_Status !== 'Valid' ? ( - <> - {!!files?.length && ( -
    - {files.map(file => ( - - setFiles( - files.filter( - e => e.name !== file.name - ) - ) - } - /> - ))} -
    - )} - { - if (!e) return +
    +
    + {!!allFiles?.length && ( +
    + {allFiles.map(file => ( + + setFiles( + files.filter( + e => e.name !== file.name + ) + ) + : undefined + } + /> + ))} +
    + )} + { + if (!e) return - const newFiles = Array.from(e) + const newFiles = Array.from(e) - setFiles( - !!files?.length - ? [...files, ...newFiles] - : newFiles - ) - }}> - - - {!!files?.length && ( - - )} - - ) : ( - Geupload op {date} + setFiles( + !!files?.length ? [...files, ...newFiles] : newFiles + ) + }}> + + + {!!files?.length && ( + + )} +
    + {date && ( + + Geupload op {date} + )}
    ) diff --git a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx index 04134b65..87c24528 100644 --- a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx +++ b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx @@ -151,7 +151,7 @@ const PublicationVersionForm = ({
    { const { moduleId } = useParams() - const { data } = usePublicationsPublicationUuidBillsGet( + const [currPage, setCurrPage] = useState(1) + + const { data, isFetching } = usePublicationsPublicationUuidBillsGet( publication!.UUID, - undefined, + { + limit: PAGE_LIMIT, + offset: (currPage - 1) * PAGE_LIMIT, + }, { query: { enabled: !!publication, + placeholderData: keepPreviousData, }, } ) @@ -43,33 +54,52 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { ) return ( - - - - - - - - - - - - {data?.results.map(bill => { - const status = statusOptions?.find( - option => option.value === bill.Module_Status_ID - ) + <> +
    + {isFetching && ( +
    + +
    + )} +
    #Gebaseerd op ModulestatusType besluitDoelActie
    + + + + + + + + + + + {data?.results.map(bill => { + const status = statusOptions?.find( + option => option.value === bill.Module_Status_ID + ) - return ( - - ) - })} - -
    #Gebaseerd op ModulestatusType besluitDoelActie
    + return ( + + ) + })} + +
    +
    + {!!data?.total && !!data?.limit && data.total > data.limit && ( +
    + +
    + )} + ) } diff --git a/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx b/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx index 39d0700a..78cecea2 100644 --- a/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx +++ b/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx @@ -1,4 +1,4 @@ -import classNames from 'classnames' +import classNames from 'clsx' import { Accordion, diff --git a/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx b/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx index 5f82091c..b0ed6cb3 100644 --- a/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx +++ b/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx @@ -1,6 +1,6 @@ import { Button, Text } from '@pzh-ui/components' import { GripDotsVertical, PenToSquare, TrashCan } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { Section, SectionType } from '@/config/regulations/sections/types' import useModalStore from '@/store/modalStore' diff --git a/src/components/Regulations/RegulationForm/components/FieldLabel.tsx b/src/components/Regulations/RegulationForm/components/FieldLabel.tsx index 75beca25..85c66f5b 100644 --- a/src/components/Regulations/RegulationForm/components/FieldLabel.tsx +++ b/src/components/Regulations/RegulationForm/components/FieldLabel.tsx @@ -1,6 +1,6 @@ import { Text } from '@pzh-ui/components' import { GripDotsVertical, Xmark } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { RegulationFieldProps } from './types' diff --git a/src/components/Regulations/RegulationForm/components/FieldListItem.tsx b/src/components/Regulations/RegulationForm/components/FieldListItem.tsx index a911656a..2d95e2a7 100644 --- a/src/components/Regulations/RegulationForm/components/FieldListItem.tsx +++ b/src/components/Regulations/RegulationForm/components/FieldListItem.tsx @@ -1,6 +1,6 @@ import { FieldInputProps, FormikInput, Text } from '@pzh-ui/components' import { GripDotsVertical, Xmark } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { ORDERED_LIST } from '../../constants' import { RegulationFieldProps } from './types' diff --git a/src/components/Regulations/Sidebar/Sidebar.tsx b/src/components/Regulations/Sidebar/Sidebar.tsx index e027f75d..be865511 100644 --- a/src/components/Regulations/Sidebar/Sidebar.tsx +++ b/src/components/Regulations/Sidebar/Sidebar.tsx @@ -1,6 +1,6 @@ import { Button, Heading, PillButton } from '@pzh-ui/components' import { AngleRight, Plus } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { useCallback, useState } from 'react' import regulation from '@/config/regulations' diff --git a/src/components/Sidebar/Sidebar.tsx b/src/components/Sidebar/Sidebar.tsx index 87c6a3e5..ffb81ad2 100644 --- a/src/components/Sidebar/Sidebar.tsx +++ b/src/components/Sidebar/Sidebar.tsx @@ -1,6 +1,6 @@ import { Text } from '@pzh-ui/components' import { House, Users } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { useState } from 'react' import { Link } from 'react-router-dom' diff --git a/src/components/TableOfContents/TableOfContents.tsx b/src/components/TableOfContents/TableOfContents.tsx index ec7fa67c..f7fbbfdc 100644 --- a/src/components/TableOfContents/TableOfContents.tsx +++ b/src/components/TableOfContents/TableOfContents.tsx @@ -1,5 +1,5 @@ import { AngleRight } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { useEffect, useState } from 'react' const TableOfContents = () => { diff --git a/src/components/Users/UserMenu/UserMenu.tsx b/src/components/Users/UserMenu/UserMenu.tsx index 7c102edd..e1d70372 100644 --- a/src/components/Users/UserMenu/UserMenu.tsx +++ b/src/components/Users/UserMenu/UserMenu.tsx @@ -1,6 +1,6 @@ import { Divider, Text } from '@pzh-ui/components' import { AngleDown, AngleRight, User } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { useState } from 'react' import { useNavigate } from 'react-router-dom' diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 128c910d..b2720878 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -10,7 +10,7 @@ import { Tabs, Text, } from '@pzh-ui/components' -import classNames from 'classnames' +import classNames from 'clsx' import { Fragment, useState } from 'react' import { @@ -106,7 +106,9 @@ const ModuleDetail = () => { />
    - + {module.Description}
    diff --git a/src/pages/public/DynamicObject/DynamicObject.tsx b/src/pages/public/DynamicObject/DynamicObject.tsx index 2c8e0f2e..29f1510d 100644 --- a/src/pages/public/DynamicObject/DynamicObject.tsx +++ b/src/pages/public/DynamicObject/DynamicObject.tsx @@ -4,7 +4,7 @@ import { Hyperlink, Notification, } from '@pzh-ui/components' -import classNames from 'classnames' +import classNames from 'clsx' import { useCallback, useEffect, useMemo, useState } from 'react' import { Helmet } from 'react-helmet-async' import { useParams } from 'react-router-dom' @@ -232,7 +232,7 @@ const DynamicObject = ({ model, isRevision }: DynamicObjectProps) => {
    )} - {model.allowedConnections && + {!!model.allowedConnections && !model.acknowledgedRelation && (
    {
    )} - {model.allowedConnections && model.acknowledgedRelation && ( -
    - -
    - )} + {!!model.allowedConnections && + !!model.acknowledgedRelation && ( +
    + +
    + )} diff --git a/src/pages/public/Login/Login.tsx b/src/pages/public/Login/Login.tsx index 0c6d0326..f23ab6c1 100644 --- a/src/pages/public/Login/Login.tsx +++ b/src/pages/public/Login/Login.tsx @@ -1,5 +1,5 @@ import { Heading, Text } from '@pzh-ui/components' -import classNames from 'classnames' +import classNames from 'clsx' import { Helmet } from 'react-helmet-async' import { Link } from 'react-router-dom' diff --git a/src/pages/public/MapSearch/MapSearch.tsx b/src/pages/public/MapSearch/MapSearch.tsx index 09ba2374..a824d84b 100644 --- a/src/pages/public/MapSearch/MapSearch.tsx +++ b/src/pages/public/MapSearch/MapSearch.tsx @@ -1,5 +1,5 @@ import { useMountEffect, useUpdateEffect } from '@react-hookz/web' -import classNames from 'classnames' +import classNames from 'clsx' import { point } from 'leaflet' import Proj from 'proj4leaflet' import { useEffect, useMemo, useRef, useState } from 'react' diff --git a/src/pages/public/Network/Network.tsx b/src/pages/public/Network/Network.tsx index a65f6849..3cdf4ce1 100644 --- a/src/pages/public/Network/Network.tsx +++ b/src/pages/public/Network/Network.tsx @@ -1,5 +1,5 @@ import { Breadcrumbs, Heading, TabItem, Tabs, Text } from '@pzh-ui/components' -import classNames from 'classnames' +import classNames from 'clsx' import { Helmet } from 'react-helmet-async' import { Container } from '@/components/Container' diff --git a/src/pages/public/Revisions/Revisions.tsx b/src/pages/public/Revisions/Revisions.tsx index e3bf50c0..9b8cf067 100644 --- a/src/pages/public/Revisions/Revisions.tsx +++ b/src/pages/public/Revisions/Revisions.tsx @@ -10,7 +10,7 @@ import { Tooltip, } from '@pzh-ui/components' import { Plus } from '@pzh-ui/icons' -import classNames from 'classnames' +import classNames from 'clsx' import { Fragment, useMemo } from 'react' import { Helmet } from 'react-helmet-async' diff --git a/src/pages/public/SearchResults/SearchResults.tsx b/src/pages/public/SearchResults/SearchResults.tsx index 97d62004..640c0bb9 100644 --- a/src/pages/public/SearchResults/SearchResults.tsx +++ b/src/pages/public/SearchResults/SearchResults.tsx @@ -5,7 +5,7 @@ import { Text, } from '@pzh-ui/components' import { useUpdateEffect } from '@react-hookz/web' -import classNames from 'classnames' +import classNames from 'clsx' import { useEffect, useMemo, useState } from 'react' import { Helmet } from 'react-helmet-async' diff --git a/src/templates/MutateLayout.tsx b/src/templates/MutateLayout.tsx index 44e9fd03..baef08c2 100644 --- a/src/templates/MutateLayout.tsx +++ b/src/templates/MutateLayout.tsx @@ -1,5 +1,5 @@ import { Breadcrumbs } from '@pzh-ui/components' -import classNames from 'classnames' +import classNames from 'clsx' import { ReactNode, useMemo } from 'react' import { Helmet } from 'react-helmet-async' diff --git a/src/utils/downloadFile.ts b/src/utils/downloadFile.ts deleted file mode 100644 index 833f2909..00000000 --- a/src/utils/downloadFile.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { getAccessToken } from '@/api/instance' - -import getApiUrl from './getApiUrl' - -const downloadFile = async (path: string) => { - try { - const response = await fetch(`${getApiUrl()}/${path}`, { - method: 'GET', - headers: { - Authorization: `Bearer ${getAccessToken()}`, - }, - }) - - if (!response.ok) { - throw new Error(`HTTP error! status: ${response.status}`) - } - - const blob = await response.blob() - const contentDisposition = response.headers.get('content-disposition') - let fileName = 'downloaded_file' - if (contentDisposition) { - fileName = contentDisposition.split('=')[1] - } - - const url = URL.createObjectURL(blob) - const link = document.createElement('a') - link.href = url - link.setAttribute('download', fileName) - document.body.appendChild(link) - link.click() - - // Clean up - link.parentNode?.removeChild(link) - URL.revokeObjectURL(url) - } catch (error) { - console.error(`Error fetching data: ${error}`) - } -} - -export default downloadFile diff --git a/src/utils/file.ts b/src/utils/file.ts index 8e8cb49f..aaa58e6e 100644 --- a/src/utils/file.ts +++ b/src/utils/file.ts @@ -1,3 +1,7 @@ +import { getAccessToken } from '@/api/instance' + +import getApiUrl from './getApiUrl' + export const fileToBase64 = async (file: File): Promise => await new Promise((resolve, reject) => { const reader = new FileReader() @@ -21,3 +25,38 @@ export async function base64ToFile( return new File([blob], fileName, { type: 'image/png' }) } + +export const downloadFile = async (path: string) => { + try { + const response = await fetch(`${getApiUrl()}/${path}`, { + method: 'GET', + headers: { + Authorization: `Bearer ${getAccessToken()}`, + }, + }) + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`) + } + + const blob = await response.blob() + const contentDisposition = response.headers.get('content-disposition') + let fileName = 'downloaded_file' + if (contentDisposition) { + fileName = contentDisposition.split('=')[1] + } + + const url = URL.createObjectURL(blob) + const link = document.createElement('a') + link.href = url + link.setAttribute('download', fileName) + document.body.appendChild(link) + link.click() + + // Clean up + link.parentNode?.removeChild(link) + URL.revokeObjectURL(url) + } catch (error) { + console.error(`Error fetching data: ${error}`) + } +} diff --git a/src/utils/formatDate.ts b/src/utils/formatDate.ts deleted file mode 100644 index 6fec2b64..00000000 --- a/src/utils/formatDate.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Eslint needs to be disabled for these imports, - * otherwise eslint will merge them together causing a conflict. - */ - -// eslint-disable-next-line -import { format } from 'date-fns' -// eslint-disable-next-line -import nlLocale from 'date-fns/locale/nl' - -const formatDate = (date: Date, dateFormat: string) => - format(date, dateFormat, { locale: nlLocale }) - -export default formatDate diff --git a/src/validation/publication.ts b/src/validation/publication.ts index ba91829a..c62a2bdf 100644 --- a/src/validation/publication.ts +++ b/src/validation/publication.ts @@ -71,7 +71,7 @@ export const PUBLICATION_VERSION_SCHEMA = object({ code: 'custom', message: 'De bekendmakingsdatum moet eerder zijn dan de inwerkingtredingsdatum', - path: ['Procedure_Data.Announcement_Date'], + path: ['Announcement_Date'], }) } }) diff --git a/yarn.lock b/yarn.lock index 34f946d5..65706cf1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2521,17 +2521,17 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.472": - version: 0.0.472 - resolution: "@pzh-ui/components@npm:0.0.472" +"@pzh-ui/components@npm:^0.0.478": + version: 0.0.478 + resolution: "@pzh-ui/components@npm:0.0.478" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" "@pzh-ui/icons": "npm:^0.0.50" "@react-aria/utils": "npm:^3.23.2" - "@react-hookz/web": "npm:^23.1.0" + "@react-hookz/web": "npm:^24.0.4" "@react-types/shared": "npm:^3.19.0" - "@tanstack/react-table": "npm:^8.9.9" + "@tanstack/react-table": "npm:^8.13.2" "@tiptap/core": "npm:^2.1.7" "@tiptap/extension-bold": "npm:^2.1.7" "@tiptap/extension-bullet-list": "npm:^2.1.7" @@ -2558,10 +2558,10 @@ __metadata: "@tiptap/pm": "npm:^2.0.3" "@tiptap/react": "npm:^2.0.3" "@types/react-table": "npm:^7.7.15" - classnames: "npm:^2.3.2" - date-fns: "npm:^2.30.0" + clsx: "npm:^2.1.0" + date-fns: "npm:^3.3.1" focus-trap-react: "npm:^10.1.1" - formik: "npm:^2.4.2" + formik: "npm:^2.4.5" react: "npm:^18.2.0" react-aria: "npm:^3.32.1" react-aria-components: "npm:^1.1.1" @@ -2569,12 +2569,12 @@ __metadata: react-dom: "npm:^18.2.0" react-dropzone: "npm:^14.2.3" react-paginate: "npm:^8.2.0" - react-router-dom: "npm:^6.14.2" + react-router-dom: "npm:^6.22.2" react-select: "npm:^5.7.3" react-stately: "npm:^3.30.1" react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" - checksum: d443a4abe96e91ae1df6f2db79fe48ca2513c7a40c5c974180e946ad625993a4cbfc247113810f5bee8af56dc67bace1738a0b97f04d62cc821856647d9084eb + checksum: 904676a45fd6e16b81748a9554c2e716df0d9361fc007c1a9d7bf51623c247761e6bf641d7b5d1bb4cc30c904e0c705be6dd7cfeba72eb142cfd5d63b0651173 languageName: node linkType: hard @@ -3387,22 +3387,6 @@ __metadata: languageName: node linkType: hard -"@react-hookz/web@npm:^23.1.0": - version: 23.1.0 - resolution: "@react-hookz/web@npm:23.1.0" - dependencies: - "@react-hookz/deep-equal": "npm:^1.0.4" - peerDependencies: - js-cookie: ^3.0.5 - react: ^16.8 || ^17 || ^18 - react-dom: ^16.8 || ^17 || ^18 - peerDependenciesMeta: - js-cookie: - optional: true - checksum: 7f345fc286ee3bae74b76b909898213a589250856783805d0356d8ef9ca0e3d1638e7499d8b77ae1dff6350dec230fda468e0e4c8fc05a9997902569d3d81b49 - languageName: node - linkType: hard - "@react-hookz/web@npm:^24.0.4": version: 24.0.4 resolution: "@react-hookz/web@npm:24.0.4" @@ -4137,10 +4121,10 @@ __metadata: languageName: node linkType: hard -"@remix-run/router@npm:1.15.0": - version: 1.15.0 - resolution: "@remix-run/router@npm:1.15.0" - checksum: 5cadae0c90874966ebd6b1b202284a337da32a68fc95af502859cd6158d3c254fbb4f76fa1844c837205dbc8a8120223360b9287a3d6aa0c747d02767c4c072c +"@remix-run/router@npm:1.15.2": + version: 1.15.2 + resolution: "@remix-run/router@npm:1.15.2" + checksum: 2a2c9c062228130d0383328de2757301e878fc268a72f813b60b8463bb7ed2c1fa4018072883af8096982a4b2741ec6eb349587cd7f95acfdf09588d93adea67 languageName: node linkType: hard @@ -4720,33 +4704,33 @@ __metadata: languageName: node linkType: hard -"@tanstack/query-core@npm:5.20.5": - version: 5.20.5 - resolution: "@tanstack/query-core@npm:5.20.5" - checksum: ca495a213850a79a23ea45a4e22982e06eea07959f7cf5062c154dc8c7fc01f7cc7f1f8abf74cdb2a9f38347f1df9a39238fbee6cd49662e464064d92cf1c48b +"@tanstack/query-core@npm:5.24.7": + version: 5.24.7 + resolution: "@tanstack/query-core@npm:5.24.7" + checksum: 7fa647dfdb7fb17184652ef81af4a29eab542a1070c9054f28a67054e251da479c1dd52037336e6277d2608f3246343a530cda2eefe84b74c7058e9940f8d37d languageName: node linkType: hard -"@tanstack/react-query@npm:^5.20.5": - version: 5.20.5 - resolution: "@tanstack/react-query@npm:5.20.5" +"@tanstack/react-query@npm:^5.24.7": + version: 5.24.7 + resolution: "@tanstack/react-query@npm:5.24.7" dependencies: - "@tanstack/query-core": "npm:5.20.5" + "@tanstack/query-core": "npm:5.24.7" peerDependencies: react: ^18.0.0 - checksum: 77b3129f8a44a0dcca4cc5eb34b877cce08c8ee41f13585bed4fe1b1b9c4a8823e454e8989b6dc4c240cda69604efa70dd7c6b954f4e4f6aefcf518254079f96 + checksum: a401b4fd81fd032c266e44a5f1dcf667ee6aaaa494cf4814fb5c0a126a45c364ac508fab10e025135c01ff543b3cf332632c4e15abcadbfa2349b74b629c617d languageName: node linkType: hard -"@tanstack/react-table@npm:^8.9.9": - version: 8.11.8 - resolution: "@tanstack/react-table@npm:8.11.8" +"@tanstack/react-table@npm:^8.13.2": + version: 8.13.2 + resolution: "@tanstack/react-table@npm:8.13.2" dependencies: - "@tanstack/table-core": "npm:8.11.8" + "@tanstack/table-core": "npm:8.13.2" peerDependencies: react: ">=16" react-dom: ">=16" - checksum: f003112ac153922db18fe458cb816958c743f32c921febf6e2ead4e8ad8527001bc258e987d80957394bf85de82fcdb0116ecc3324b93d059bf06c95c532603f + checksum: b91d5fc04a9a0b43c38da00a5a5c2fcfe0c3b3ec521c97f5e2eb2893a7f3446209fe4d07950b8179a0ab10b7b49230abce3d2db2a56fdc9d8fdb27023afea639 languageName: node linkType: hard @@ -4762,10 +4746,10 @@ __metadata: languageName: node linkType: hard -"@tanstack/table-core@npm:8.11.8": - version: 8.11.8 - resolution: "@tanstack/table-core@npm:8.11.8" - checksum: 579244b5cc23da0056d8d5b491d725afe49bc917f3b1baaf863fcc3f82568e94c7781deabbef9109fa6ee163f8c067728603021e3161e66e763af1e46364953c +"@tanstack/table-core@npm:8.13.2": + version: 8.13.2 + resolution: "@tanstack/table-core@npm:8.13.2" + checksum: 7381147fd9d50905cb581e1498f2924a3b46646872248b25cb4f287419b0819919211da983873921497efb82e4ca40b20db86dac332027a371df4d84cddc9532 languageName: node linkType: hard @@ -5699,7 +5683,7 @@ __metadata: languageName: node linkType: hard -"@types/react-router-dom@npm:^5.3.2": +"@types/react-router-dom@npm:^5.3.3": version: 5.3.3 resolution: "@types/react-router-dom@npm:5.3.3" dependencies: @@ -6924,7 +6908,7 @@ __metadata: languageName: node linkType: hard -"classnames@npm:^2.2.6, classnames@npm:^2.3.2": +"classnames@npm:^2.2.6": version: 2.5.1 resolution: "classnames@npm:2.5.1" checksum: 58eb394e8817021b153bb6e7d782cfb667e4ab390cb2e9dac2fc7c6b979d1cc2b2a733093955fc5c94aa79ef5c8c89f11ab77780894509be6afbb91dddd79d15 @@ -6977,7 +6961,7 @@ __metadata: languageName: node linkType: hard -"clsx@npm:^2.0.0": +"clsx@npm:^2.0.0, clsx@npm:^2.1.0": version: 2.1.0 resolution: "clsx@npm:2.1.0" checksum: 2e0ce7c3b6803d74fc8147c408f88e79245583202ac14abd9691e2aebb9f312de44270b79154320d10bb7804a9197869635d1291741084826cff20820f31542b @@ -7549,7 +7533,7 @@ __metadata: languageName: node linkType: hard -"date-fns@npm:^2.23.0, date-fns@npm:^2.30.0": +"date-fns@npm:^2.30.0": version: 2.30.0 resolution: "date-fns@npm:2.30.0" dependencies: @@ -7814,10 +7798,10 @@ __metadata: languageName: node linkType: hard -"dompurify@npm:^3.0.5": - version: 3.0.8 - resolution: "dompurify@npm:3.0.8" - checksum: 671fa18bd4bcb1a6ff2e59ecf919f807615b551e7add8834b27751d4e0f3d754a67725482d1efdd259317cadcaaccb72a8afc3aba829ac59730e760041591a1a +"dompurify@npm:^3.0.9": + version: 3.0.9 + resolution: "dompurify@npm:3.0.9" + checksum: cfb8ed92672e7ddfa43a9ce5bfcd4b3c91287454402672da930b0ecfc8c86d0d2133116607e6c7c77a07ddd8c6baec6d11fa07d9fddebd8701572e3cace2ecea languageName: node linkType: hard @@ -8784,7 +8768,7 @@ __metadata: languageName: node linkType: hard -"formik@npm:^2.4.2": +"formik@npm:^2.4.5": version: 2.4.5 resolution: "formik@npm:2.4.5" dependencies: @@ -12264,12 +12248,12 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.472" + "@pzh-ui/components": "npm:^0.0.478" "@pzh-ui/config": "npm:^0.0.56" "@pzh-ui/css": "npm:^0.0.81" "@pzh-ui/icons": "npm:^0.0.50" "@react-hookz/web": "npm:^24.0.4" - "@tanstack/react-query": "npm:^5.20.5" + "@tanstack/react-query": "npm:^5.24.7" "@testing-library/dom": "npm:^9.3.3" "@testing-library/jest-dom": "npm:^6.1.5" "@testing-library/react": "npm:^14.1.2" @@ -12287,7 +12271,7 @@ __metadata: "@types/react": "npm:^18.2.15" "@types/react-dom": "npm:^18.2.7" "@types/react-leaflet": "npm:^3.0.0" - "@types/react-router-dom": "npm:^5.3.2" + "@types/react-router-dom": "npm:^5.3.3" "@types/uuid": "npm:^9.0.3" "@vitejs/plugin-react": "npm:^4.2.1" "@vitest/coverage-v8": "npm:^1.2.2" @@ -12295,15 +12279,14 @@ __metadata: autoprefixer: "npm:^10.4.4" axios: "npm:^1.6.7" c8: "npm:^8.0.0" - classnames: "npm:^2.3.2" + clsx: "npm:^2.1.0" concurrently: "npm:^8.2.2" d3: "npm:^7.8.5" - date-fns: "npm:^2.23.0" - dompurify: "npm:^3.0.5" + dompurify: "npm:^3.0.9" dotenv: "npm:^16.3.1" eslint: "npm:^8.48.0" eslint-plugin-prettier: "npm:^5.0.0" - formik: "npm:^2.4.2" + formik: "npm:^2.4.5" jsdom: "npm:^22.1.0" jwt-decode: "npm:^4.0.0" leaflet: "npm:^1.9.4" @@ -12320,10 +12303,10 @@ __metadata: react: "npm:^18.2.0" react-content-loader: "npm:^6.2.1" react-dom: "npm:^18.2.0" - react-error-boundary: "npm:^4.0.10" - react-helmet-async: "npm:^2.0.3" + react-error-boundary: "npm:^4.0.13" + react-helmet-async: "npm:^2.0.4" react-leaflet: "npm:^4.2.1" - react-router-dom: "npm:^6.14.2" + react-router-dom: "npm:^6.22.2" rollup-plugin-visualizer: "npm:^5.11.0" sass: "npm:^1.63.6" tailwindcss: "npm:^3.4.1" @@ -12335,7 +12318,7 @@ __metadata: vitest: "npm:^1.0.4" zod: "npm:^3.22.4" zod-formik-adapter: "npm:^1.2.0" - zustand: "npm:^4.4.7" + zustand: "npm:^4.5.2" languageName: unknown linkType: soft @@ -12505,14 +12488,14 @@ __metadata: languageName: node linkType: hard -"react-error-boundary@npm:^4.0.10": - version: 4.0.12 - resolution: "react-error-boundary@npm:4.0.12" +"react-error-boundary@npm:^4.0.13": + version: 4.0.13 + resolution: "react-error-boundary@npm:4.0.13" dependencies: "@babel/runtime": "npm:^7.12.5" peerDependencies: react: ">=16.13.1" - checksum: ba59f885eae3c3786548086c6c2088a9f511080c4052e778017959e9e0b6461892efdcf58fcfc2b3a6bc3e79e17cf842fc8ccdc6d82698c51c2ccab12c8c0b85 + checksum: 28fdf498a58621e21d93978c61719c52455bc00b778080259c5830fe003736153469ebc84f243d7989567b1196e25648c7592f7c8e47de47fcd7d12b875879b9 languageName: node linkType: hard @@ -12530,7 +12513,7 @@ __metadata: languageName: node linkType: hard -"react-helmet-async@npm:^2.0.3": +"react-helmet-async@npm:^2.0.4": version: 2.0.4 resolution: "react-helmet-async@npm:2.0.4" dependencies: @@ -12620,27 +12603,27 @@ __metadata: languageName: node linkType: hard -"react-router-dom@npm:^6.14.2": - version: 6.22.0 - resolution: "react-router-dom@npm:6.22.0" +"react-router-dom@npm:^6.22.2": + version: 6.22.2 + resolution: "react-router-dom@npm:6.22.2" dependencies: - "@remix-run/router": "npm:1.15.0" - react-router: "npm:6.22.0" + "@remix-run/router": "npm:1.15.2" + react-router: "npm:6.22.2" peerDependencies: react: ">=16.8" react-dom: ">=16.8" - checksum: 32ba0386d400354094116fa7dd98f1d23bc7cf683b0f4509694be5f730d4957fcb8cc73e35946576fc3f48b4d36743422f1b9bcdc37ad77f04bde0bde5d9102e + checksum: 1469ea32fd5b35d44909c8e64a778620e990b43a1c6f4d5989630e769a9956e0057a54771ccde2e434a9aff7591c02752dcfe0678a1868d4e53411cec7ecf7a8 languageName: node linkType: hard -"react-router@npm:6.22.0": - version: 6.22.0 - resolution: "react-router@npm:6.22.0" +"react-router@npm:6.22.2": + version: 6.22.2 + resolution: "react-router@npm:6.22.2" dependencies: - "@remix-run/router": "npm:1.15.0" + "@remix-run/router": "npm:1.15.2" peerDependencies: react: ">=16.8" - checksum: 627c25533667da0c8008587208e0d5633409173969fd579de706cde355465f6d1245e2b1a7ca2adeb96201f2858932b59ce3402482786cd20c4bf278562976dd + checksum: 744c9c3d3b6f3d031ef8c34d86f16075f96d4487584f2a526f722bc5b05c5879fc5056236b824472530fc5aad0ecf6eef88d2848d5b1a32aab9849bda3a5c839 languageName: node linkType: hard @@ -15071,9 +15054,9 @@ __metadata: languageName: node linkType: hard -"zustand@npm:^4.4.7": - version: 4.5.0 - resolution: "zustand@npm:4.5.0" +"zustand@npm:^4.5.2": + version: 4.5.2 + resolution: "zustand@npm:4.5.2" dependencies: use-sync-external-store: "npm:1.2.0" peerDependencies: @@ -15087,6 +15070,6 @@ __metadata: optional: true react: optional: true - checksum: 2488b904b3c8ced5feddfd30d8641d9d0c58c044b182b401035fdea8201c53ee84d89992cb425c365445ec315616016e2346cc1a07b1fe09f070c9da45564200 + checksum: 9e9e92ce7378c5de1d7682f4f10340a1c07a81b673ad0a125b59883a6ade3f2bf39eac6ccc5b05630f9df6ed925291f681592db59ccd3815685c2e83f67c8525 languageName: node linkType: hard From c8729fa8da849b61956cb76416215849b5360358 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 4 Mar 2024 09:49:43 +0100 Subject: [PATCH 29/82] Update Vite config --- vite.config.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 11c527a1..5331b06b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -46,7 +46,6 @@ export default defineConfig({ zod: ['zod', 'zod-formik-adapter'], dompurify: ['dompurify'], formik: ['formik'], - 'date-fns': ['date-fns/esm'], pzh: ['@pzh-ui/components', '@pzh-ui/icons'], }, }, From 9861e2f4504f9efb15b61b490c7d5345599204ff Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 4 Mar 2024 11:00:16 +0100 Subject: [PATCH 30/82] Update validation --- src/config/objects/werkingsgebied.tsx | 3 ++- src/validation/passwordReset.ts | 6 +++--- src/validation/publication.ts | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/config/objects/werkingsgebied.tsx b/src/config/objects/werkingsgebied.tsx index d01d5811..78943146 100644 --- a/src/config/objects/werkingsgebied.tsx +++ b/src/config/objects/werkingsgebied.tsx @@ -1,4 +1,5 @@ import { DrawPolygon } from '@pzh-ui/icons' +import { ZodIssueCode } from 'zod' import { useModulesModuleIdObjectWerkingsgebiedLatestLineageIdGet, @@ -106,7 +107,7 @@ werkingsgebied.validationSchema = generateDynamicSchema( ).superRefine(({ Title, Source_Title }: any, ctx) => { if (Title !== Source_Title) { ctx.addIssue({ - code: 'custom', + code: ZodIssueCode.custom, message: 'De titel moet overeen komen met de titel van de gekozen bron', path: ['Title'], diff --git a/src/validation/passwordReset.ts b/src/validation/passwordReset.ts index 246806bf..b13e813d 100644 --- a/src/validation/passwordReset.ts +++ b/src/validation/passwordReset.ts @@ -1,4 +1,4 @@ -import { string, object } from 'zod' +import { ZodIssueCode, object, string } from 'zod' export const SCHEMA = object({ currentPassword: string({ @@ -16,7 +16,7 @@ export const SCHEMA = object({ }).superRefine(({ currentPassword, newPassword, newPasswordCopy }, ctx) => { if (currentPassword === newPassword) { ctx.addIssue({ - code: 'custom', + code: ZodIssueCode.custom, message: 'Het nieuwe wachtwoord mag niet gelijk zijn aan het oude wachtwoord', path: ['newPassword'], @@ -25,7 +25,7 @@ export const SCHEMA = object({ if (newPassword !== newPasswordCopy) { ctx.addIssue({ - code: 'custom', + code: ZodIssueCode.custom, message: 'Het herhaalde wachtwoord komt niet overeen', path: ['newPasswordCopy'], }) diff --git a/src/validation/publication.ts b/src/validation/publication.ts index c62a2bdf..421d4b6c 100644 --- a/src/validation/publication.ts +++ b/src/validation/publication.ts @@ -1,4 +1,4 @@ -import { array, object, tuple } from 'zod' +import { array, object, tuple, ZodIssueCode } from 'zod' import { schemaDefaults } from '@/validation/zodSchema' @@ -61,14 +61,14 @@ export const PUBLICATION_VERSION_SCHEMA = object({ }), ]), }), -}).superRefine(({ Effective_Date, Announcement_Date }: any, ctx) => { +}).superRefine(({ Effective_Date, Announcement_Date }, ctx) => { if ( Effective_Date && Announcement_Date && new Date(Announcement_Date) >= new Date(Effective_Date) ) { ctx.addIssue({ - code: 'custom', + code: ZodIssueCode.custom, message: 'De bekendmakingsdatum moet eerder zijn dan de inwerkingtredingsdatum', path: ['Announcement_Date'], From 5430530bb6b6bbf3cd29db0f064b035fce2fde83 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 11 Mar 2024 10:46:52 +0100 Subject: [PATCH 31/82] Generate types --- src/api/fetchers.msw.ts | 164 +++++++++++++++++++--------------------- 1 file changed, 79 insertions(+), 85 deletions(-) diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index 36f6407b..218dc3f8 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -10,91 +10,85 @@ */ import { faker } from '@faker-js/faker' import { HttpResponse, delay, http } from 'msw' - -import { - AppExtensionsPublicationsEnumsDocumentType, - GraphEdgeType, - PackageEventType, - ProcedureStepType, - ProcedureType, - type AcknowledgedRelation, - type ActiveModuleObjectWrapper, - type AmbitieFull, - type AmbitieUUID, - type AuthToken, - type BeleidsdoelFull, - type BeleidsdoelUUID, - type BeleidskeuzeFull, - type BeleidskeuzeUUID, - type BeleidsregelFull, - type BeleidsregelUUID, - type GebiedsprogrammaFull, - type GebiedsprogrammaUUID, - type GraphResponse, - type MaatregelFull, - type MaatregelUUID, - type ModuleCreatedResponse, - type ModuleObjectContext, - type ModuleOverview, - type ModuleSnapshot, - type ModuleStatus, - type NationaalBelangFull, - type NationaalBelangUUID, - type NewObjectStaticResponse, - type ObjectCount, - type PagedResponseAmbitieBasic, - type PagedResponseAmbitieExtended, - type PagedResponseBeleidsdoelBasic, - type PagedResponseBeleidsdoelExtended, - type PagedResponseBeleidskeuzeBasic, - type PagedResponseBeleidskeuzeExtended, - type PagedResponseBeleidsregelBasic, - type PagedResponseBeleidsregelExtended, - type PagedResponseGebiedsprogrammaBasic, - type PagedResponseGebiedsprogrammaExtended, - type PagedResponseGenericObjectShort, - type PagedResponseGeoSearchResult, - type PagedResponseMaatregelBasic, - type PagedResponseMaatregelExtended, - type PagedResponseModule, - type PagedResponseModuleObjectShortStatus, - type PagedResponseNationaalBelangBasic, - type PagedResponseProgrammaAlgemeenBasic, - type PagedResponseProgrammaAlgemeenExtended, - type PagedResponsePublicModuleShort, - type PagedResponsePublication, - type PagedResponsePublicationBillShort, - type PagedResponsePublicationPackage, - type PagedResponseSearchObject, - type PagedResponseUser, - type PagedResponseValidSearchObject, - type PagedResponseVerplichtProgrammaBasic, - type PagedResponseVisieAlgemeenBasic, - type PagedResponseVisieAlgemeenExtended, - type PagedResponseWerkingsgebied, - type PagedResponseWerkingsgebiedBasic, - type PagedResponseWerkingsgebiedExtended, - type PagedResponseWettelijkeTaakBasic, - type ProgrammaAlgemeenFull, - type ProgrammaAlgemeenUUID, - type PublicModuleOverview, - type Publication, - type PublicationBill, - type PublicationPackage, - type PublicationPackageReport, - type ReadRelation, - type ResetPasswordResponse, - type ResponseOK, - type User, - type UserCreateResponse, - type VerplichtProgrammaFull, - type VerplichtProgrammaUUID, - type VisieAlgemeenFull, - type VisieAlgemeenUUID, - type WerkingsgebiedFull, - type WerkingsgebiedUUID, - type WettelijkeTaakFull, - type WettelijkeTaakUUID, +import type { + AcknowledgedRelation, + ActiveModuleObjectWrapper, + AmbitieFull, + AmbitieUUID, + AuthToken, + BeleidsdoelFull, + BeleidsdoelUUID, + BeleidskeuzeFull, + BeleidskeuzeUUID, + BeleidsregelFull, + BeleidsregelUUID, + GebiedsprogrammaFull, + GebiedsprogrammaUUID, + GraphResponse, + MaatregelFull, + MaatregelUUID, + ModuleCreatedResponse, + ModuleObjectContext, + ModuleOverview, + ModuleSnapshot, + ModuleStatus, + NationaalBelangFull, + NationaalBelangUUID, + NewObjectStaticResponse, + ObjectCount, + PagedResponseAmbitieBasic, + PagedResponseAmbitieExtended, + PagedResponseBeleidsdoelBasic, + PagedResponseBeleidsdoelExtended, + PagedResponseBeleidskeuzeBasic, + PagedResponseBeleidskeuzeExtended, + PagedResponseBeleidsregelBasic, + PagedResponseBeleidsregelExtended, + PagedResponseGebiedsprogrammaBasic, + PagedResponseGebiedsprogrammaExtended, + PagedResponseGenericObjectShort, + PagedResponseGeoSearchResult, + PagedResponseMaatregelBasic, + PagedResponseMaatregelExtended, + PagedResponseModule, + PagedResponseModuleObjectShortStatus, + PagedResponseNationaalBelangBasic, + PagedResponseProgrammaAlgemeenBasic, + PagedResponseProgrammaAlgemeenExtended, + PagedResponsePublicModuleShort, + PagedResponsePublication, + PagedResponsePublicationBillShort, + PagedResponsePublicationPackage, + PagedResponseSearchObject, + PagedResponseUser, + PagedResponseValidSearchObject, + PagedResponseVerplichtProgrammaBasic, + PagedResponseVisieAlgemeenBasic, + PagedResponseVisieAlgemeenExtended, + PagedResponseWerkingsgebied, + PagedResponseWerkingsgebiedBasic, + PagedResponseWerkingsgebiedExtended, + PagedResponseWettelijkeTaakBasic, + ProgrammaAlgemeenFull, + ProgrammaAlgemeenUUID, + PublicModuleOverview, + Publication, + PublicationBill, + PublicationPackage, + PublicationPackageReport, + ReadRelation, + ResetPasswordResponse, + ResponseOK, + User, + UserCreateResponse, + VerplichtProgrammaFull, + VerplichtProgrammaUUID, + VisieAlgemeenFull, + VisieAlgemeenUUID, + WerkingsgebiedFull, + WerkingsgebiedUUID, + WettelijkeTaakFull, + WettelijkeTaakUUID, } from './fetchers.schemas' export const getAmbitiesValidGetMock = ( From c963a3e0e5de656c558fc9a9ad1701e085e3ddfa Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 12 Mar 2024 10:25:22 +0100 Subject: [PATCH 32/82] Update endpoints --- src/api/fetchers.msw.ts | 1114 +++++------- src/api/fetchers.schemas.ts | 562 ++++--- src/api/fetchers.ts | 1498 ++++++++++------- .../PublicationAddModal.tsx | 4 +- .../PublicationPackagesModal.tsx | 11 +- .../PublicationVersionAddModal.tsx | 85 +- .../PublicationVersionEditModal.tsx | 35 +- src/components/Modals/types.ts | 8 +- .../Publications/Publication/Publication.tsx | 4 +- .../PublicationPackages.tsx | 41 +- .../components/PackageStep.tsx | 14 +- .../components/PackageStepActions.tsx | 48 +- .../PublicationVersions.tsx | 36 +- src/components/Publications/Publications.tsx | 9 +- .../Modules/ModuleDetail/ModuleDetail.tsx | 10 +- 15 files changed, 1730 insertions(+), 1749 deletions(-) diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index 218dc3f8..1e2d5573 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -11,6 +11,7 @@ import { faker } from '@faker-js/faker' import { HttpResponse, delay, http } from 'msw' import type { + AOJCreatedResponse, AcknowledgedRelation, ActiveModuleObjectWrapper, AmbitieFull, @@ -22,6 +23,7 @@ import type { BeleidskeuzeUUID, BeleidsregelFull, BeleidsregelUUID, + EnvironmentCreatedResponse, GebiedsprogrammaFull, GebiedsprogrammaUUID, GraphResponse, @@ -57,8 +59,11 @@ import type { PagedResponseProgrammaAlgemeenExtended, PagedResponsePublicModuleShort, PagedResponsePublication, - PagedResponsePublicationBillShort, + PagedResponsePublicationAOJ, + PagedResponsePublicationEnvironment, PagedResponsePublicationPackage, + PagedResponsePublicationTemplate, + PagedResponsePublicationVersionShort, PagedResponseSearchObject, PagedResponseUser, PagedResponseValidSearchObject, @@ -73,12 +78,15 @@ import type { ProgrammaAlgemeenUUID, PublicModuleOverview, Publication, - PublicationBill, - PublicationPackage, - PublicationPackageReport, + PublicationCreatedResponse, + PublicationPackageCreatedResponse, + PublicationVersion, + PublicationVersionCreatedResponse, + PublicationVersionEditResponse, ReadRelation, ResetPasswordResponse, ResponseOK, + TemplateCreatedResponse, User, UserCreateResponse, VerplichtProgrammaFull, @@ -12967,9 +12975,9 @@ export const getObjectsValidGetMock = ( ...overrideResponse, }) -export const getPublicationsGetMock = ( +export const getPublicationAojGetMock = ( overrideResponse: any = {} -): PagedResponsePublication => ({ +): PagedResponsePublicationAOJ => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -12982,97 +12990,121 @@ export const getPublicationsGetMock = ( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 ).map(() => ({ - Created_By_UUID: faker.string.uuid(), + Administrative_Borders_Date: faker.date + .past() + .toISOString() + .split('T')[0], + Administrative_Borders_Domain: faker.word.sample(), + Administrative_Borders_ID: faker.word.sample(), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Document_Type: faker.helpers.arrayElement( - Object.values(AppExtensionsPublicationsEnumsDocumentType) - ), - Modified_By_UUID: faker.string.uuid(), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Official_Title: faker.word.sample(), - Regulation_Title: faker.word.sample(), - Template_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), UUID: faker.string.uuid(), - Work_ID: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) -export const getPublicationsPostMock = ( +export const getPublicationAojPostMock = ( overrideResponse: any = {} -): Publication => ({ - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Document_Type: faker.helpers.arrayElement( - Object.values(AppExtensionsPublicationsEnumsDocumentType) - ), - Modified_By_UUID: faker.string.uuid(), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Official_Title: faker.word.sample(), - Regulation_Title: faker.word.sample(), - Template_ID: faker.helpers.arrayElement([ +): AOJCreatedResponse => ({ UUID: faker.string.uuid(), ...overrideResponse }) + +export const getPublicationTemplatesGetMock = ( + overrideResponse: any = {} +): PagedResponsePublicationTemplate => ({ + limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), - UUID: faker.string.uuid(), - Work_ID: faker.number.int({ min: undefined, max: undefined }), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Description: faker.word.sample(), + Document_Type: faker.word.sample(), + Is_Active: faker.datatype.boolean(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Object_Templates: { + [faker.string.alphanumeric(5)]: faker.word.sample(), + }, + Object_Types: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => faker.word.sample()), + Text_Template: faker.word.sample(), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) -export const getPublicationsPublicationUuidGetMock = ( +export const getPublicationTemplatesPostMock = ( overrideResponse: any = {} -): Publication => ({ - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Document_Type: faker.helpers.arrayElement( - Object.values(AppExtensionsPublicationsEnumsDocumentType) - ), - Modified_By_UUID: faker.string.uuid(), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Official_Title: faker.word.sample(), - Regulation_Title: faker.word.sample(), - Template_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), +): TemplateCreatedResponse => ({ UUID: faker.string.uuid(), - Work_ID: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) -export const getPublicationsPublicationUuidPatchMock = ( +export const getPublicationTemplatesTemplateUuidPostMock = ( overrideResponse: any = {} -): Publication => ({ - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Document_Type: faker.helpers.arrayElement( - Object.values(AppExtensionsPublicationsEnumsDocumentType) - ), - Modified_By_UUID: faker.string.uuid(), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Official_Title: faker.word.sample(), - Regulation_Title: faker.word.sample(), - Template_ID: faker.helpers.arrayElement([ +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) + +export const getPublicationEnvironmentsGetMock = ( + overrideResponse: any = {} +): PagedResponsePublicationEnvironment => ({ + limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Authority_ID: faker.word.sample(), + Can_Publicate: faker.datatype.boolean(), + Can_Validate: faker.datatype.boolean(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Description: faker.word.sample(), + Frbr_Country: faker.word.sample(), + Frbr_Language: faker.word.sample(), + Governing_Body_Type: faker.word.sample(), + Has_State: faker.datatype.boolean(), + Is_Active: faker.datatype.boolean(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Province_ID: faker.word.sample(), + Submitter_ID: faker.word.sample(), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getPublicationEnvironmentsPostMock = ( + overrideResponse: any = {} +): EnvironmentCreatedResponse => ({ UUID: faker.string.uuid(), - Work_ID: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) -export const getPublicationsPublicationUuidBillsGetMock = ( +export const getPublicationEnvironmentsEnvironmentUuidPostMock = ( overrideResponse: any = {} -): PagedResponsePublicationBillShort => ({ +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) + +export const getPublicationsGetMock = ( + overrideResponse: any = {} +): PagedResponsePublication => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -13086,316 +13118,61 @@ export const getPublicationsPublicationUuidBillsGetMock = ( (_, i) => i + 1 ).map(() => ({ Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Is_Official: faker.datatype.boolean(), - Locked: faker.datatype.boolean(), + Document_Type: faker.helpers.arrayElement(Object.values(DocumentType)), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_Status_ID: faker.number.int({ min: undefined, max: undefined }), - Procedure_Type: faker.helpers.arrayElement( - Object.values(ProcedureType) - ), - Publication_UUID: faker.string.uuid(), - UUID: faker.string.uuid(), - Version_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Template_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), + UUID: faker.string.uuid(), ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) -export const getPublicationsPublicationUuidBillsPostMock = ( +export const getPublicationsPostMock = ( overrideResponse: any = {} -): PublicationBill => ({ - Announcement_Date: faker.date.past().toISOString().split('T')[0], - Bill_Data: faker.helpers.arrayElement([ - { - Amendment_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Articles: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - })), - undefined, - ]), - Bill_Title: faker.word.sample(), - Closing: faker.word.sample(), - Preamble: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Regulation_Title: faker.word.sample(), - Signature: faker.word.sample(), - Time_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Effective_Date: faker.date.past().toISOString().split('T')[0], - Is_Official: faker.datatype.boolean(), - Locked: faker.datatype.boolean(), - Modified_By_UUID: faker.string.uuid(), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_Status_ID: faker.number.int({ min: undefined, max: undefined }), - Procedure_Data: faker.helpers.arrayElement([ - { - Announcement_Date: faker.date.past().toISOString().split('T')[0], - Steps: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Conclusion_Date: faker.date.past().toISOString().split('T')[0], - Step_Type: faker.helpers.arrayElement( - Object.values(ProcedureStepType) - ), - ...overrideResponse, - })), - ...overrideResponse, - }, - undefined, - ]), - Procedure_Type: faker.helpers.arrayElement(Object.values(ProcedureType)), - Publication_UUID: faker.string.uuid(), - PZH_Bill_Identifier: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), +): PublicationCreatedResponse => ({ UUID: faker.string.uuid(), - Version_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), ...overrideResponse, }) -export const getPublicationsPublicationUuidBillsBillUuidGetMock = ( +export const getPublicationsPublicationUuidGetMock = ( overrideResponse: any = {} -): PublicationBill => ({ - Announcement_Date: faker.date.past().toISOString().split('T')[0], - Bill_Data: faker.helpers.arrayElement([ - { - Amendment_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Articles: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - })), - undefined, - ]), - Bill_Title: faker.word.sample(), - Closing: faker.word.sample(), - Preamble: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Regulation_Title: faker.word.sample(), - Signature: faker.word.sample(), - Time_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Created_By_UUID: faker.string.uuid(), +): Publication => ({ Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Effective_Date: faker.date.past().toISOString().split('T')[0], - Is_Official: faker.datatype.boolean(), - Locked: faker.datatype.boolean(), - Modified_By_UUID: faker.string.uuid(), + Document_Type: faker.helpers.arrayElement(Object.values(DocumentType)), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_Status_ID: faker.number.int({ min: undefined, max: undefined }), - Procedure_Data: faker.helpers.arrayElement([ - { - Announcement_Date: faker.date.past().toISOString().split('T')[0], - Steps: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Conclusion_Date: faker.date.past().toISOString().split('T')[0], - Step_Type: faker.helpers.arrayElement( - Object.values(ProcedureStepType) - ), - ...overrideResponse, - })), - ...overrideResponse, - }, - undefined, - ]), - Procedure_Type: faker.helpers.arrayElement(Object.values(ProcedureType)), - Publication_UUID: faker.string.uuid(), - PZH_Bill_Identifier: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Template_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), UUID: faker.string.uuid(), - Version_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), ...overrideResponse, }) -export const getPublicationsPublicationUuidBillsBillUuidPatchMock = ( +export const getPublicationsPublicationUuidPatchMock = ( overrideResponse: any = {} -): PublicationBill => ({ - Announcement_Date: faker.date.past().toISOString().split('T')[0], - Bill_Data: faker.helpers.arrayElement([ - { - Amendment_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Articles: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - })), - undefined, - ]), - Bill_Title: faker.word.sample(), - Closing: faker.word.sample(), - Preamble: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Regulation_Title: faker.word.sample(), - Signature: faker.word.sample(), - Time_Article: faker.helpers.arrayElement([ - { - Content: faker.word.sample(), - Label: faker.word.sample(), - Number: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Created_By_UUID: faker.string.uuid(), +): Publication => ({ Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Effective_Date: faker.date.past().toISOString().split('T')[0], - Is_Official: faker.datatype.boolean(), - Locked: faker.datatype.boolean(), - Modified_By_UUID: faker.string.uuid(), + Document_Type: faker.helpers.arrayElement(Object.values(DocumentType)), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_Status_ID: faker.number.int({ min: undefined, max: undefined }), - Procedure_Data: faker.helpers.arrayElement([ - { - Announcement_Date: faker.date.past().toISOString().split('T')[0], - Steps: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Conclusion_Date: faker.date.past().toISOString().split('T')[0], - Step_Type: faker.helpers.arrayElement( - Object.values(ProcedureStepType) - ), - ...overrideResponse, - })), - ...overrideResponse, - }, - undefined, - ]), - Procedure_Type: faker.helpers.arrayElement(Object.values(ProcedureType)), - Publication_UUID: faker.string.uuid(), - PZH_Bill_Identifier: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Template_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), UUID: faker.string.uuid(), - Version_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), ...overrideResponse, }) -export const getPublicationBillsBillUuidPackagesGetMock = ( +export const getPublicationsPublicationUuidVersionPostMock = ( overrideResponse: any = {} -): PagedResponsePublicationPackage => ({ +): PublicationVersionCreatedResponse => ({ + UUID: faker.string.uuid(), + ...overrideResponse, +}) + +export const getPublicationsPublicationUuidVersionsGetMock = ( + overrideResponse: any = {} +): PagedResponsePublicationVersionShort => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -13408,237 +13185,147 @@ export const getPublicationBillsBillUuidPackagesGetMock = ( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 ).map(() => ({ - Announcement_Date: faker.date.past().toISOString().split('T')[0], - Bill_UUID: faker.string.uuid(), - Config_ID: faker.number.int({ min: undefined, max: undefined }), - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - FRBR_ID: faker.number.int({ min: undefined, max: undefined }), - FRBR_Info: faker.helpers.arrayElement([ - { - act_expression_date: faker.date - .past() - .toISOString() - .split('T')[0], - act_expression_lang: faker.word.sample(), - act_expression_misc: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - act_expression_version: faker.word.sample(), - act_work_country: faker.word.sample(), - act_work_date: faker.word.sample(), - act_work_misc: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - bill_expression_date: faker.date - .past() - .toISOString() - .split('T')[0], - bill_expression_lang: faker.word.sample(), - bill_expression_misc: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - bill_expression_version: faker.word.sample(), - bill_work_country: faker.word.sample(), - bill_work_date: faker.word.sample(), - bill_work_misc: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - ID: faker.number.int({ min: undefined, max: undefined }), - ...overrideResponse, - }, - undefined, - ]), - Latest_Download_By_UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Announcement_Date: faker.helpers.arrayElement([ + faker.date.past().toISOString().split('T')[0], undefined, ]), - Latest_Download_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Effective_Date: faker.helpers.arrayElement([ + faker.date.past().toISOString().split('T')[0], undefined, ]), - Modified_By_UUID: faker.string.uuid(), + Environment_UUID: faker.string.uuid(), + Locked: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Package_Event_Type: faker.helpers.arrayElement( - Object.values(PackageEventType) - ), - Publication_Filename: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Reports: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Created_By_UUID: faker.string.uuid(), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - ID: faker.number.int({ min: undefined, max: undefined }), - Messages: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Package_UUID: faker.string.uuid(), - Report_Timestamp: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Report_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Result: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - })), - undefined, - ]), + Module_Status: { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + ID: faker.number.int({ min: undefined, max: undefined }), + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Status: faker.word.sample(), + ...overrideResponse, + }, + Procedure_Type: faker.word.sample(), + Publication_UUID: faker.string.uuid(), UUID: faker.string.uuid(), - Validation_Status: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ZIP_File_Checksum: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ZIP_File_Name: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) -export const getPublicationBillsBillUuidPackagesPostMock = ( +export const getPublicationVersionsVersionUuidGetMock = ( overrideResponse: any = {} -): PublicationPackage => ({ - Announcement_Date: faker.date.past().toISOString().split('T')[0], - Bill_UUID: faker.string.uuid(), - Config_ID: faker.number.int({ min: undefined, max: undefined }), - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - FRBR_ID: faker.number.int({ min: undefined, max: undefined }), - FRBR_Info: faker.helpers.arrayElement([ - { - act_expression_date: faker.date.past().toISOString().split('T')[0], - act_expression_lang: faker.word.sample(), - act_expression_misc: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - act_expression_version: faker.word.sample(), - act_work_country: faker.word.sample(), - act_work_date: faker.word.sample(), - act_work_misc: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - bill_expression_date: faker.date.past().toISOString().split('T')[0], - bill_expression_lang: faker.word.sample(), - bill_expression_misc: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - bill_expression_version: faker.word.sample(), - bill_work_country: faker.word.sample(), - bill_work_date: faker.word.sample(), - bill_work_misc: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - ID: faker.number.int({ min: undefined, max: undefined }), - ...overrideResponse, - }, - undefined, - ]), - Latest_Download_By_UUID: faker.helpers.arrayElement([ - faker.string.uuid(), +): PublicationVersion => ({ + Act_Metadata: {}, + Announcement_Date: faker.helpers.arrayElement([ + faker.date.past().toISOString().split('T')[0], undefined, ]), - Latest_Download_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, + Bill_Compact: {}, + Bill_Metadata: {}, + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Effective_Date: faker.helpers.arrayElement([ + faker.date.past().toISOString().split('T')[0], undefined, ]), - Modified_By_UUID: faker.string.uuid(), + Environment: { + Authority_ID: faker.word.sample(), + Can_Publicate: faker.datatype.boolean(), + Can_Validate: faker.datatype.boolean(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Description: faker.word.sample(), + Frbr_Country: faker.word.sample(), + Frbr_Language: faker.word.sample(), + Governing_Body_Type: faker.word.sample(), + Has_State: faker.datatype.boolean(), + Is_Active: faker.datatype.boolean(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Province_ID: faker.word.sample(), + Submitter_ID: faker.word.sample(), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + Is_Valid: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), + Locked: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Package_Event_Type: faker.helpers.arrayElement( - Object.values(PackageEventType) - ), - Publication_Filename: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Reports: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - ID: faker.number.int({ min: undefined, max: undefined }), - Messages: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Package_UUID: faker.string.uuid(), - Report_Timestamp: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Report_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Result: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - })), - undefined, - ]), + Module_Status: { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + ID: faker.number.int({ min: undefined, max: undefined }), + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Status: faker.word.sample(), + ...overrideResponse, + }, + Procedural: {}, + Procedure_Type: faker.word.sample(), + Publication: { + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Document_Type: faker.word.sample(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Template_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + UUID: faker.string.uuid(), + ...overrideResponse, + }, UUID: faker.string.uuid(), - Validation_Status: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ZIP_File_Checksum: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ZIP_File_Name: faker.helpers.arrayElement([faker.word.sample(), undefined]), ...overrideResponse, }) -export const getPublicationPackagesPackageUuidReportPostMock = ( +export const getPublicationVersionsVersionUuidPostMock = ( overrideResponse: any = {} -): PublicationPackageReport => ({ - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - ID: faker.number.int({ min: undefined, max: undefined }), - Messages: faker.helpers.arrayElement([faker.word.sample(), undefined]), +): PublicationVersionEditResponse => ({ + Is_Valid: faker.datatype.boolean(), + ...overrideResponse, +}) + +export const getPublicationVersionsVersionUuidPackagesPostMock = ( + overrideResponse: any = {} +): PublicationPackageCreatedResponse => ({ Package_UUID: faker.string.uuid(), - Report_Timestamp: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, + Zip_UUID: faker.string.uuid(), + ...overrideResponse, +}) + +export const getPublicationPackagesGetMock = ( + overrideResponse: any = {} +): PagedResponsePublicationPackage => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Report_Type: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Result: faker.helpers.arrayElement([faker.word.sample(), undefined]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Created_By_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Latest_Download_By_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Latest_Download_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Modified_By_UUID: faker.string.uuid(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + UUID: faker.string.uuid(), + Validation_Status: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) @@ -16700,30 +16387,6 @@ export const getWettelijkeTaakStaticLineageIdPostMockHandler = ( }) } -export const getPlaygroundDoDsoModuleIdPostMockHandler = () => { - return http.post('*/playground/do-dso/:moduleId', async () => { - await delay(1000) - return new HttpResponse(null, { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }) -} - -export const getPlaygroundCheckGeoGetMockHandler = () => { - return http.get('*/playground/check-geo', async () => { - await delay(1000) - return new HttpResponse(null, { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) - }) -} - export const getUsersGetMockHandler = ( overrideResponse?: PagedResponseUser ) => { @@ -17408,14 +17071,14 @@ export const getObjectsValidGetMockHandler = ( }) } -export const getPublicationsGetMockHandler = ( - overrideResponse?: PagedResponsePublication +export const getPublicationAojGetMockHandler = ( + overrideResponse?: PagedResponsePublicationAOJ ) => { - return http.get('*/publications', async () => { + return http.get('*/publication-aoj', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getPublicationsGetMock() + overrideResponse ? overrideResponse : getPublicationAojGetMock() ), { status: 200, @@ -17427,14 +17090,16 @@ export const getPublicationsGetMockHandler = ( }) } -export const getPublicationsPostMockHandler = ( - overrideResponse?: Publication +export const getPublicationAojPostMockHandler = ( + overrideResponse?: AOJCreatedResponse ) => { - return http.post('*/publications', async () => { + return http.post('*/publication-aoj', async () => { await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getPublicationsPostMock() + overrideResponse + ? overrideResponse + : getPublicationAojPostMock() ), { status: 200, @@ -17446,16 +17111,16 @@ export const getPublicationsPostMockHandler = ( }) } -export const getPublicationsPublicationUuidGetMockHandler = ( - overrideResponse?: Publication +export const getPublicationTemplatesGetMockHandler = ( + overrideResponse?: PagedResponsePublicationTemplate ) => { - return http.get('*/publications/:publicationUuid', async () => { + return http.get('*/publication-templates', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidGetMock() + : getPublicationTemplatesGetMock() ), { status: 200, @@ -17467,16 +17132,16 @@ export const getPublicationsPublicationUuidGetMockHandler = ( }) } -export const getPublicationsPublicationUuidPatchMockHandler = ( - overrideResponse?: Publication +export const getPublicationTemplatesPostMockHandler = ( + overrideResponse?: TemplateCreatedResponse ) => { - return http.patch('*/publications/:publicationUuid', async () => { + return http.post('*/publication-templates', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidPatchMock() + : getPublicationTemplatesPostMock() ), { status: 200, @@ -17488,16 +17153,16 @@ export const getPublicationsPublicationUuidPatchMockHandler = ( }) } -export const getPublicationsPublicationUuidBillsGetMockHandler = ( - overrideResponse?: PagedResponsePublicationBillShort +export const getPublicationTemplatesTemplateUuidPostMockHandler = ( + overrideResponse?: ResponseOK ) => { - return http.get('*/publications/:publicationUuid/bills', async () => { + return http.post('*/publication-templates/:templateUuid', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidBillsGetMock() + : getPublicationTemplatesTemplateUuidPostMock() ), { status: 200, @@ -17509,16 +17174,16 @@ export const getPublicationsPublicationUuidBillsGetMockHandler = ( }) } -export const getPublicationsPublicationUuidBillsPostMockHandler = ( - overrideResponse?: PublicationBill +export const getPublicationEnvironmentsGetMockHandler = ( + overrideResponse?: PagedResponsePublicationEnvironment ) => { - return http.post('*/publications/:publicationUuid/bills', async () => { + return http.get('*/publication-environments', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidBillsPostMock() + : getPublicationEnvironmentsGetMock() ), { status: 200, @@ -17530,42 +17195,39 @@ export const getPublicationsPublicationUuidBillsPostMockHandler = ( }) } -export const getPublicationsPublicationUuidBillsBillUuidGetMockHandler = ( - overrideResponse?: PublicationBill +export const getPublicationEnvironmentsPostMockHandler = ( + overrideResponse?: EnvironmentCreatedResponse ) => { - return http.get( - '*/publications/:publicationUuid/bills/:billUuid', - async () => { - await delay(1000) - return new HttpResponse( - JSON.stringify( - overrideResponse - ? overrideResponse - : getPublicationsPublicationUuidBillsBillUuidGetMock() - ), - { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - } - ) - } - ) + return http.post('*/publication-environments', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationEnvironmentsPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) } -export const getPublicationsPublicationUuidBillsBillUuidPatchMockHandler = ( - overrideResponse?: PublicationBill +export const getPublicationEnvironmentsEnvironmentUuidPostMockHandler = ( + overrideResponse?: ResponseOK ) => { - return http.patch( - '*/publications/:publicationUuid/bills/:billUuid', + return http.post( + '*/publication-environments/:environmentUuid', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidBillsBillUuidPatchMock() + : getPublicationEnvironmentsEnvironmentUuidPostMock() ), { status: 200, @@ -17578,16 +17240,54 @@ export const getPublicationsPublicationUuidBillsBillUuidPatchMockHandler = ( ) } -export const getPublicationBillsBillUuidPackagesGetMockHandler = ( - overrideResponse?: PagedResponsePublicationPackage +export const getPublicationsGetMockHandler = ( + overrideResponse?: PagedResponsePublication +) => { + return http.get('*/publications', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse ? overrideResponse : getPublicationsGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationsPostMockHandler = ( + overrideResponse?: PublicationCreatedResponse +) => { + return http.post('*/publications', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse ? overrideResponse : getPublicationsPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationsPublicationUuidGetMockHandler = ( + overrideResponse?: Publication ) => { - return http.get('*/publication-bills/:billUuid/packages', async () => { + return http.get('*/publications/:publicationUuid', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationBillsBillUuidPackagesGetMock() + : getPublicationsPublicationUuidGetMock() ), { status: 200, @@ -17599,16 +17299,16 @@ export const getPublicationBillsBillUuidPackagesGetMockHandler = ( }) } -export const getPublicationBillsBillUuidPackagesPostMockHandler = ( - overrideResponse?: PublicationPackage +export const getPublicationsPublicationUuidPatchMockHandler = ( + overrideResponse?: Publication ) => { - return http.post('*/publication-bills/:billUuid/packages', async () => { + return http.patch('*/publications/:publicationUuid', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationBillsBillUuidPackagesPostMock() + : getPublicationsPublicationUuidPatchMock() ), { status: 200, @@ -17620,16 +17320,16 @@ export const getPublicationBillsBillUuidPackagesPostMockHandler = ( }) } -export const getPublicationPackagesPackageUuidReportPostMockHandler = ( - overrideResponse?: PublicationPackageReport +export const getPublicationsPublicationUuidVersionPostMockHandler = ( + overrideResponse?: PublicationVersionCreatedResponse ) => { - return http.post('*/publication-packages/:packageUuid/report', async () => { + return http.post('*/publications/:publicationUuid/version', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationPackagesPackageUuidReportPostMock() + : getPublicationsPublicationUuidVersionPostMock() ), { status: 200, @@ -17641,21 +17341,113 @@ export const getPublicationPackagesPackageUuidReportPostMockHandler = ( }) } -export const getPublicationPackagesPackageUuidReportDownloadGetMockHandler = - () => { - return http.get( - '*/publication-packages/:packageUuid/report/download', - async () => { - await delay(1000) - return new HttpResponse(null, { +export const getPublicationsPublicationUuidVersionsGetMockHandler = ( + overrideResponse?: PagedResponsePublicationVersionShort +) => { + return http.get('*/publications/:publicationUuid/versions', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationsPublicationUuidVersionsGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationVersionsVersionUuidGetMockHandler = ( + overrideResponse?: PublicationVersion +) => { + return http.get('*/publication-versions/:versionUuid', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationVersionsVersionUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationVersionsVersionUuidPostMockHandler = ( + overrideResponse?: PublicationVersionEditResponse +) => { + return http.post('*/publication-versions/:versionUuid', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationVersionsVersionUuidPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationVersionsVersionUuidPackagesPostMockHandler = ( + overrideResponse?: PublicationPackageCreatedResponse +) => { + return http.post( + '*/publication-versions/:versionUuid/packages', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationVersionsVersionUuidPackagesPostMock() + ), + { status: 200, headers: { 'Content-Type': 'application/json', }, - }) + } + ) + } + ) +} + +export const getPublicationPackagesGetMockHandler = ( + overrideResponse?: PagedResponsePublicationPackage +) => { + return http.get('*/publication-packages', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationPackagesGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, } ) - } + }) +} export const getPublicationPackagesPackageUuidDownloadGetMockHandler = () => { return http.get( @@ -17862,8 +17654,6 @@ export const getOmgevingsbeleidAPIMock = () => [ getWettelijkeTaakRelationsLineageIdGetMockHandler(), getWettelijkeTaakRelationsLineageIdPutMockHandler(), getWettelijkeTaakStaticLineageIdPostMockHandler(), - getPlaygroundDoDsoModuleIdPostMockHandler(), - getPlaygroundCheckGeoGetMockHandler(), getUsersGetMockHandler(), getUsersPostMockHandler(), getUsersSearchGetMockHandler(), @@ -17898,18 +17688,24 @@ export const getOmgevingsbeleidAPIMock = () => [ getModulesObjectsLatestGetMockHandler(), getObjectsValidCountGetMockHandler(), getObjectsValidGetMockHandler(), + getPublicationAojGetMockHandler(), + getPublicationAojPostMockHandler(), + getPublicationTemplatesGetMockHandler(), + getPublicationTemplatesPostMockHandler(), + getPublicationTemplatesTemplateUuidPostMockHandler(), + getPublicationEnvironmentsGetMockHandler(), + getPublicationEnvironmentsPostMockHandler(), + getPublicationEnvironmentsEnvironmentUuidPostMockHandler(), getPublicationsGetMockHandler(), getPublicationsPostMockHandler(), getPublicationsPublicationUuidGetMockHandler(), getPublicationsPublicationUuidPatchMockHandler(), - getPublicationsPublicationUuidBillsGetMockHandler(), - getPublicationsPublicationUuidBillsPostMockHandler(), - getPublicationsPublicationUuidBillsBillUuidGetMockHandler(), - getPublicationsPublicationUuidBillsBillUuidPatchMockHandler(), - getPublicationBillsBillUuidPackagesGetMockHandler(), - getPublicationBillsBillUuidPackagesPostMockHandler(), - getPublicationPackagesPackageUuidReportPostMockHandler(), - getPublicationPackagesPackageUuidReportDownloadGetMockHandler(), + getPublicationsPublicationUuidVersionPostMockHandler(), + getPublicationsPublicationUuidVersionsGetMockHandler(), + getPublicationVersionsVersionUuidGetMockHandler(), + getPublicationVersionsVersionUuidPostMockHandler(), + getPublicationVersionsVersionUuidPackagesPostMockHandler(), + getPublicationPackagesGetMockHandler(), getPublicationPackagesPackageUuidDownloadGetMockHandler(), getLoginAccessTokenPostMockHandler(), getPasswordResetPostMockHandler(), diff --git a/src/api/fetchers.schemas.ts b/src/api/fetchers.schemas.ts index 493fd594..f8cf7c66 100644 --- a/src/api/fetchers.schemas.ts +++ b/src/api/fetchers.schemas.ts @@ -13,23 +13,37 @@ export type PasswordResetPostParams = { new_password: string } -export type PublicationBillsBillUuidPackagesGetParams = { - package_event_type?: PackageEventType - is_successful?: boolean +export type PublicationPackagesGetParams = { + version_uuid?: string offset?: number limit?: number } -export type PublicationsPublicationUuidBillsGetParams = { - version_id?: number - module_status?: ModuleStatusCode +export type PublicationsPublicationUuidVersionsGetParams = { offset?: number limit?: number } export type PublicationsGetParams = { - document_type?: AppExtensionsPublicationsEnumsDocumentType - module_ID?: number + document_type?: DocumentType + module_id?: number + offset?: number + limit?: number +} + +export type PublicationEnvironmentsGetParams = { + only_active?: boolean + offset?: number + limit?: number +} + +export type PublicationTemplatesGetParams = { + only_active?: boolean + offset?: number + limit?: number +} + +export type PublicationAojGetParams = { offset?: number limit?: number } @@ -129,13 +143,6 @@ export type UsersGetParams = { sort_order?: SortOrder } -export type PlaygroundDoDsoModuleIdPostParams = { - work_version: string - document_type: DsoModelsDocumentType - geo_new?: boolean - opdracht_type?: OpdrachtType -} - export type WettelijkeTaakValidGetParams = { all_filters?: string any_filters?: string @@ -448,31 +455,6 @@ export type AmbitiesValidGetParams = { sort_order?: SortOrder } -/** - * An enumeration. - */ -export type DsoModelsDocumentType = - (typeof DsoModelsDocumentType)[keyof typeof DsoModelsDocumentType] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const DsoModelsDocumentType = { - Programma: 'Programma', - Omgevingsvisie: 'Omgevingsvisie', -} as const - -/** - * An enumeration. - */ -export type AppExtensionsPublicationsEnumsDocumentType = - (typeof AppExtensionsPublicationsEnumsDocumentType)[keyof typeof AppExtensionsPublicationsEnumsDocumentType] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const AppExtensionsPublicationsEnumsDocumentType = { - Omgevingsvisie: 'Omgevingsvisie', - Omgevingsprogramma: 'Omgevingsprogramma', - Omgevingsverordening: 'Omgevingsverordening', -} as const - export interface WriteRelation { Description?: string | null Object_ID: number @@ -664,30 +646,8 @@ export interface VisieAlgemeenPatch { Title?: string | null } -export interface VisieAlgemeenFullStatics { - Owner_1?: UserShort - Owner_2?: UserShort -} - export type VisieAlgemeenFullObjectStatics = VisieAlgemeenFullStatics | null -export interface VisieAlgemeenFull { - Adjust_On?: string | null - Code?: string - Created_By?: UserShort - Created_Date?: string - Description?: string - End_Validity?: string | null - Modified_By?: UserShort - Modified_Date?: string - Object_ID?: number - ObjectStatics?: VisieAlgemeenFullObjectStatics - Public_Revisions?: PublicModuleObjectRevision[] - Start_Validity?: string | null - Title?: string - UUID?: string -} - export interface VisieAlgemeenExtendedStatics { Owner_1?: UserShort Owner_2?: UserShort @@ -822,6 +782,28 @@ export interface UserShort { UUID: string } +export interface VisieAlgemeenFullStatics { + Owner_1?: UserShort + Owner_2?: UserShort +} + +export interface VisieAlgemeenFull { + Adjust_On?: string | null + Code?: string + Created_By?: UserShort + Created_Date?: string + Description?: string + End_Validity?: string | null + Modified_By?: UserShort + Modified_Date?: string + Object_ID?: number + ObjectStatics?: VisieAlgemeenFullObjectStatics + Public_Revisions?: PublicModuleObjectRevision[] + Start_Validity?: string | null + Title?: string + UUID?: string +} + export interface UserCreateResponse { Email: string Password: string @@ -844,13 +826,35 @@ export interface User { UUID: string } -/** - * tijd_artikel - */ -export interface TimeArticle { - Content: string - Label: string - Number?: string +export type TemplateEditObjectTemplates = { [key: string]: string } | null + +export type TemplateEditDocumentType = DocumentType | null + +export interface TemplateEdit { + Description?: string | null + Document_Type?: TemplateEditDocumentType + Field_Map?: string[] | null + Is_Active?: boolean | null + Object_Templates?: TemplateEditObjectTemplates + Object_Types?: string[] | null + Text_Template?: string | null + Title?: string | null +} + +export interface TemplateCreatedResponse { + UUID: string +} + +export type TemplateCreateObjectTemplates = { [key: string]: string } + +export interface TemplateCreate { + Description: string + Document_Type: DocumentType + Field_Map: string[] + Object_Templates: TemplateCreateObjectTemplates + Object_Types: string[] + Text_Template: string + Title: string } /** @@ -953,141 +957,158 @@ export interface ReadRelation { Title?: string | null } -export interface PublicationPackageReport { - Created_By_UUID: string +export interface PublicationVersionShort { + Announcement_Date?: string Created_Date: string - ID: number - Messages?: string - Package_UUID: string - Report_Timestamp?: string - Report_Type?: string - Result?: string + Effective_Date?: string + Environment_UUID: string + Locked: boolean + Modified_Date: string + Module_Status: ModuleStatus + Procedure_Type: string + Publication_UUID: string + UUID: string } -export interface PublicationPackageCreate { +export interface PublicationVersionEditResponse { + Is_Valid: boolean +} + +export interface PublicationVersionEdit { + Act_Metadata?: ActMetadata Announcement_Date?: string - Config_ID?: number - Package_Event_Type: PackageEventType -} - -export interface PublicationFRBR { - act_expression_date: string - act_expression_lang: string - act_expression_misc?: string - act_expression_version: string - act_work_country: string - act_work_date: string - act_work_misc?: string - bill_expression_date: string - bill_expression_lang: string - bill_expression_misc?: string - bill_expression_version: string - bill_work_country: string - bill_work_date: string - bill_work_misc?: string + Bill_Compact?: BillCompact + Bill_Metadata?: BillMetadata + Effective_Date?: string + Procedural?: Procedural +} + +export interface PublicationVersionCreatedResponse { + UUID: string +} + +export interface PublicationVersionCreate { + Environment_UUID: string + Module_Status_ID: number +} + +export type PublicationVersionProcedural = { [key: string]: any } + +export type PublicationVersionBillMetadata = { [key: string]: any } + +export type PublicationVersionBillCompact = { [key: string]: any } + +export type PublicationVersionActMetadata = { [key: string]: any } + +export interface PublicationVersion { + Act_Metadata: PublicationVersionActMetadata + Announcement_Date?: string + Bill_Compact: PublicationVersionBillCompact + Bill_Metadata: PublicationVersionBillMetadata Created_Date: string - ID: number + Effective_Date?: string + Environment: PublicationEnvironment + Is_Valid?: boolean + Locked: boolean + Modified_Date: string + Module_Status: ModuleStatus + Procedural: PublicationVersionProcedural + Procedure_Type: string + Publication: PublicationShort + UUID: string +} + +export type PublicationTemplateObjectTemplates = { [key: string]: string } + +export interface PublicationTemplate { + Created_Date: string + Description: string + Document_Type: string + Is_Active: boolean + Modified_Date: string + Object_Templates: PublicationTemplateObjectTemplates + Object_Types: string[] + Text_Template: string + Title: string + UUID: string +} + +export interface PublicationShort { + Created_Date: string + Document_Type: string + Modified_Date: string + Module_ID: number + Template_UUID?: string + UUID: string +} + +export interface PublicationPackageCreatedResponse { + Package_UUID: string + Zip_UUID: string +} + +export interface PublicationPackageCreate { + Package_Type: PackageType } export interface PublicationPackage { - Announcement_Date: string - Bill_UUID: string - Config_ID: number Created_By_UUID: string Created_Date: string - FRBR_ID: number - FRBR_Info?: PublicationFRBR Latest_Download_By_UUID?: string Latest_Download_Date?: string Modified_By_UUID: string Modified_Date: string - Package_Event_Type: PackageEventType - Publication_Filename?: string - Reports?: PublicationPackageReport[] UUID: string Validation_Status?: string - ZIP_File_Checksum?: string - ZIP_File_Name?: string } -export interface PublicationEdit { - Official_Title?: string - Regulation_Title?: string - Template_ID?: number -} - -export interface PublicationCreate { - Document_Type: AppExtensionsPublicationsEnumsDocumentType - Module_ID: number - Official_Title: string - Regulation_Title: string - Template_ID?: number -} - -export interface PublicationBillShort { +export interface PublicationEnvironment { + Authority_ID: string + Can_Publicate: boolean + Can_Validate: boolean Created_Date: string - Is_Official: boolean - Locked: boolean + Description: string + Frbr_Country: string + Frbr_Language: string + Governing_Body_Type: string + Has_State: boolean + Is_Active: boolean Modified_Date: string - Module_Status_ID: number - Procedure_Type: ProcedureType - Publication_UUID: string + Province_ID: string + Submitter_ID: string + Title: string UUID: string - Version_ID?: number } -export interface PublicationBillEdit { - Announcement_Date?: string - Bill_Data?: BillData - Effective_Date?: string - Procedure_Data?: ProcedureData +export interface PublicationEdit { + Template_UUID?: string } -export interface PublicationBillCreate { - Announcement_Date?: string - Bill_Data?: BillData - Effective_Date?: string - Is_Official: boolean - Module_Status_ID: number - Procedure_Data?: ProcedureData - Procedure_Type: ProcedureType - PZH_Bill_Identifier?: string +export interface PublicationCreatedResponse { + UUID: string } -/** - * STOP Besluit - */ -export interface PublicationBill { - Announcement_Date: string - Bill_Data?: BillData - Created_By_UUID: string +export interface PublicationCreate { + Document_Type: DocumentType + Module_ID: number + Template_UUID: string +} + +export interface PublicationAOJ { + Administrative_Borders_Date: string + Administrative_Borders_Domain: string + Administrative_Borders_ID: string Created_Date: string - Effective_Date: string - Is_Official: boolean - Locked: boolean - Modified_By_UUID: string - Modified_Date: string - Module_Status_ID: number - Procedure_Data?: ProcedureData - Procedure_Type: ProcedureType - Publication_UUID: string - PZH_Bill_Identifier?: string UUID: string - Version_ID?: number } export interface Publication { - Created_By_UUID: string Created_Date: string - Document_Type: AppExtensionsPublicationsEnumsDocumentType - Modified_By_UUID: string + Document_Type: DocumentType Modified_Date: string Module_ID: number - Official_Title: string - Regulation_Title: string - Template_ID?: number + Template_UUID?: string UUID: string - Work_ID: number } export interface PublicModuleShort { @@ -1201,50 +1222,10 @@ export interface ProgrammaAlgemeenBasic { UUID?: string } -/** - * An enumeration. - */ -export type ProcedureType = (typeof ProcedureType)[keyof typeof ProcedureType] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const ProcedureType = { - Ontwerp: 'Ontwerp', - Definitief: 'Definitief', -} as const - -/** - * STOP ProcedureStappenDefinitief - */ -export type ProcedureStepType = - (typeof ProcedureStepType)[keyof typeof ProcedureStepType] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const ProcedureStepType = { - Vaststelling: 'Vaststelling', - Ondertekening: 'Ondertekening', - Publicatie: 'Publicatie', - Einde_bezwaartermijn: 'Einde_bezwaartermijn', - Einde_beroepstermijn: 'Einde_beroepstermijn', - Start_beroepsprocedures: 'Start_beroepsprocedures', - Schorsing: 'Schorsing', - Opheffing_Schorsing: 'Opheffing_Schorsing', - Einde_beroepsprocedures: 'Einde_beroepsprocedures', -} as const - -/** - * STOP Procedurestap - */ -export interface ProcedureStep { - Conclusion_Date: string - Step_Type: ProcedureStepType -} - -/** - * STOP Procedureverloop - */ -export interface ProcedureData { - Announcement_Date: string - Steps: ProcedureStep[] +export interface Procedural { + EnactmentDate?: string + Procedural_Announcement_Date?: string + SignedDate?: string } /** @@ -1357,6 +1338,26 @@ export interface PagedResponsePublication { total: number } +/** + * Wrap any response schema and add pagination metadata. + */ +export interface PagedResponsePublicationVersionShort { + limit?: number + offset?: number + results: PublicationVersionShort[] + total: number +} + +/** + * Wrap any response schema and add pagination metadata. + */ +export interface PagedResponsePublicationTemplate { + limit?: number + offset?: number + results: PublicationTemplate[] + total: number +} + /** * Wrap any response schema and add pagination metadata. */ @@ -1370,10 +1371,20 @@ export interface PagedResponsePublicationPackage { /** * Wrap any response schema and add pagination metadata. */ -export interface PagedResponsePublicationBillShort { +export interface PagedResponsePublicationEnvironment { limit?: number offset?: number - results: PublicationBillShort[] + results: PublicationEnvironment[] + total: number +} + +/** + * Wrap any response schema and add pagination metadata. + */ +export interface PagedResponsePublicationAOJ { + limit?: number + offset?: number + results: PublicationAOJ[] total: number } @@ -1580,27 +1591,15 @@ export interface PagedResponseAmbitieBasic { /** * An enumeration. */ -export type PackageEventType = - (typeof PackageEventType)[keyof typeof PackageEventType] +export type PackageType = (typeof PackageType)[keyof typeof PackageType] // eslint-disable-next-line @typescript-eslint/no-redeclare -export const PackageEventType = { +export const PackageType = { Validatie: 'Validatie', Publicatie: 'Publicatie', Afbreken: 'Afbreken', } as const -/** - * An enumeration. - */ -export type OpdrachtType = (typeof OpdrachtType)[keyof typeof OpdrachtType] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const OpdrachtType = { - PUBLICATIE: 'PUBLICATIE', - VALIDATIE: 'VALIDATIE', -} as const - export interface ObjectStaticShort { Client_1_UUID?: string Owner_1_UUID?: string @@ -1747,12 +1746,6 @@ export interface ModulePatchStatus { Status: ModuleStatusCode } -export interface ModuleOverview { - Module: Module - Objects: ModuleObjectShort[] - StatusHistory: ModuleStatus[] -} - export interface ModuleObjectContextShort { Action: string Original_Adjust_On?: string @@ -1888,6 +1881,12 @@ export interface Module { Title: string } +export interface ModuleOverview { + Module: Module + Objects: ModuleObjectShort[] + StatusHistory: ModuleStatus[] +} + export interface MaatregelUUID { Object_ID?: number UUID?: string @@ -2185,6 +2184,36 @@ export const Format = { pdf: 'pdf', } as const +export interface EnvironmentEdit { + Authority_ID?: string | null + Can_Publicate?: boolean | null + Can_Validate?: boolean | null + Description?: string | null + Frbr_Country?: string | null + Frbr_Language?: string | null + Is_Active?: boolean | null + Province_ID?: string | null + Submitter_ID?: string | null + Title?: string | null +} + +export interface EnvironmentCreatedResponse { + UUID: string +} + +export interface EnvironmentCreate { + Authority_ID: string + Can_Publicate: boolean + Can_Validate: boolean + Description: string + Frbr_Country: string + Frbr_Language: string + Has_State: boolean + Province_ID: string + Submitter_ID: string + Title: string +} + export interface EditUser { Email?: string | null Gebruikersnaam?: string | null @@ -2201,6 +2230,17 @@ export interface EditAcknowledgedRelation { Object_Type: string } +/** + * An enumeration. + */ +export type DocumentType = (typeof DocumentType)[keyof typeof DocumentType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const DocumentType = { + Omgevingsvisie: 'Omgevingsvisie', + Programma: 'Programma', +} as const + export interface CompleteModule { Decision_Number: string Default_Start_Validity?: string | null @@ -2209,10 +2249,6 @@ export interface CompleteModule { ObjectSpecifiekeGeldigheden?: ObjectSpecifiekeGeldigheid[] } -export interface BodyFastapiHandlerPublicationPackagesPackageUuidReportPost { - xml_file: Blob -} - export interface BodyFastapiHandlerLoginAccessTokenPost { client_id?: string client_secret?: string @@ -2222,24 +2258,18 @@ export interface BodyFastapiHandlerLoginAccessTokenPost { username: string } -/** - * tekst_artikel - */ -export interface BillArticle { - Content: string - Label: string - Number?: string +export interface BillMetadata { + Jurisdictions?: string[] + OfficialTitle?: string + Subjects?: string[] } -export interface BillData { - Amendment_Article?: AmendmentArticle - Articles?: BillArticle[] - Bill_Title: string - Closing: string +export interface BillCompact { + AmendmentArticle?: string + Closing?: string Preamble?: string - Regulation_Title: string - Signature: string - Time_Article?: TimeArticle + Signed?: string + TimeArticle?: string } export interface BeleidsregelUUID { @@ -2561,15 +2591,6 @@ export interface AreaBasic { UUID: string } -/** - * STOP WijzigingArtikel - */ -export interface AmendmentArticle { - Content: string - Label: string - Number?: string -} - export interface AmbitieUUID { Object_ID?: number UUID?: string @@ -2672,6 +2693,13 @@ export interface ActiveModuleObjectWrapper { Module_Object: ActiveModuleObject } +export interface ActMetadata { + Jurisdictions?: string[] + OfficialTitle?: string + QuoteTitle?: string + Subjects?: string[] +} + export interface AcknowledgedRelationSide { Acknowledged?: string Acknowledged_By_UUID?: string @@ -2693,3 +2721,13 @@ export interface AcknowledgedRelation { Side_B: AcknowledgedRelationSide Version: number } + +export interface AOJCreatedResponse { + UUID: string +} + +export interface AOJCreate { + Administrative_Borders_Date: string + Administrative_Borders_Domain: string + Administrative_Borders_ID: string +} diff --git a/src/api/fetchers.ts b/src/api/fetchers.ts index c53748cd..6ae65079 100644 --- a/src/api/fetchers.ts +++ b/src/api/fetchers.ts @@ -19,6 +19,8 @@ import type { import { useMutation, useQuery } from '@tanstack/react-query' import type { + AOJCreate, + AOJCreatedResponse, AcknowledgedRelation, ActiveModuleObjectWrapper, AmbitieFull, @@ -48,10 +50,12 @@ import type { BeleidsregelsValidGetParams, BeleidsregelsValidLineageIdGetParams, BodyFastapiHandlerLoginAccessTokenPost, - BodyFastapiHandlerPublicationPackagesPackageUuidReportPost, CompleteModule, EditAcknowledgedRelation, EditUser, + EnvironmentCreate, + EnvironmentCreatedResponse, + EnvironmentEdit, GebiedsprogrammaFull, GebiedsprogrammaPatch, GebiedsprogrammaStaticPostStatics, @@ -130,8 +134,11 @@ import type { PagedResponseProgrammaAlgemeenExtended, PagedResponsePublicModuleShort, PagedResponsePublication, - PagedResponsePublicationBillShort, + PagedResponsePublicationAOJ, + PagedResponsePublicationEnvironment, PagedResponsePublicationPackage, + PagedResponsePublicationTemplate, + PagedResponsePublicationVersionShort, PagedResponseSearchObject, PagedResponseUser, PagedResponseValidSearchObject, @@ -143,7 +150,6 @@ import type { PagedResponseWerkingsgebiedExtended, PagedResponseWettelijkeTaakBasic, PasswordResetPostParams, - PlaygroundDoDsoModuleIdPostParams, ProgrammaAlgemeenFull, ProgrammaAlgemeenPatch, ProgrammaAlgemeenStaticPostStatics, @@ -152,17 +158,22 @@ import type { ProgrammasAlgemeenValidLineageIdGetParams, PublicModuleOverview, Publication, - PublicationBill, - PublicationBillCreate, - PublicationBillEdit, - PublicationBillsBillUuidPackagesGetParams, + PublicationAojGetParams, PublicationCreate, + PublicationCreatedResponse, PublicationEdit, - PublicationPackage, + PublicationEnvironmentsGetParams, PublicationPackageCreate, - PublicationPackageReport, + PublicationPackageCreatedResponse, + PublicationPackagesGetParams, + PublicationTemplatesGetParams, + PublicationVersion, + PublicationVersionCreate, + PublicationVersionCreatedResponse, + PublicationVersionEdit, + PublicationVersionEditResponse, PublicationsGetParams, - PublicationsPublicationUuidBillsGetParams, + PublicationsPublicationUuidVersionsGetParams, ReadRelation, RequestAcknowledgedRelation, ResetPasswordResponse, @@ -175,6 +186,9 @@ import type { SearchSourceGeometryPostParams, SearchValidPostParams, SourceWerkingsgebiedenGetParams, + TemplateCreate, + TemplateCreatedResponse, + TemplateEdit, User, UserCreate, UserCreateResponse, @@ -14348,150 +14362,6 @@ export const useWettelijkeTaakStaticLineageIdPost = < return useMutation(mutationOptions) } -/** - * @summary Download DSO - */ -export const playgroundDoDsoModuleIdPost = ( - moduleId: number, - params: PlaygroundDoDsoModuleIdPostParams -) => { - return customInstance({ - url: `/playground/do-dso/${moduleId}`, - method: 'POST', - params, - }) -} - -export const getPlaygroundDoDsoModuleIdPostMutationOptions = < - TError = HTTPValidationError, - TContext = unknown ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { moduleId: number; params: PlaygroundDoDsoModuleIdPostParams }, - TContext - > -}): UseMutationOptions< - Awaited>, - TError, - { moduleId: number; params: PlaygroundDoDsoModuleIdPostParams }, - TContext -> => { - const { mutation: mutationOptions } = options ?? {} - - const mutationFn: MutationFunction< - Awaited>, - { moduleId: number; params: PlaygroundDoDsoModuleIdPostParams } - > = props => { - const { moduleId, params } = props ?? {} - - return playgroundDoDsoModuleIdPost(moduleId, params) - } - - return { mutationFn, ...mutationOptions } -} - -export type PlaygroundDoDsoModuleIdPostMutationResult = NonNullable< - Awaited> -> - -export type PlaygroundDoDsoModuleIdPostMutationError = HTTPValidationError - -/** - * @summary Download DSO - */ -export const usePlaygroundDoDsoModuleIdPost = < - TError = HTTPValidationError, - TContext = unknown ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { moduleId: number; params: PlaygroundDoDsoModuleIdPostParams }, - TContext - > -}) => { - const mutationOptions = - getPlaygroundDoDsoModuleIdPostMutationOptions(options) - - return useMutation(mutationOptions) -} - -/** - * @summary Check GEO - */ -export const playgroundCheckGeoGet = (signal?: AbortSignal) => { - return customInstance({ - url: `/playground/check-geo`, - method: 'GET', - signal, - }) -} - -export const getPlaygroundCheckGeoGetQueryKey = () => { - return [`/playground/check-geo`] as const -} - -export const getPlaygroundCheckGeoGetQueryOptions = < - TData = Awaited>, - TError = unknown ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - > -}) => { - const { query: queryOptions } = options ?? {} - - const queryKey = - queryOptions?.queryKey ?? getPlaygroundCheckGeoGetQueryKey() - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => playgroundCheckGeoGet(signal) - - return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey } -} - -export type PlaygroundCheckGeoGetQueryResult = NonNullable< - Awaited> -> -export type PlaygroundCheckGeoGetQueryError = unknown - -/** - * @summary Check GEO - */ -export const usePlaygroundCheckGeoGet = < - TData = Awaited>, - TError = unknown ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - > -}): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getPlaygroundCheckGeoGetQueryOptions(options) - - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey - } - - query.queryKey = queryOptions.queryKey - - return query -} - /** * @summary List the users */ @@ -17248,33 +17118,35 @@ export const useObjectsValidGet = < } /** - * @summary List the existing Publication + * @summary List the publication area of jurisdictions */ -export const publicationsGet = ( - params?: PublicationsGetParams, +export const publicationAojGet = ( + params?: PublicationAojGetParams, signal?: AbortSignal ) => { - return customInstance({ - url: `/publications`, + return customInstance({ + url: `/publication-aoj`, method: 'GET', params, signal, }) } -export const getPublicationsGetQueryKey = (params?: PublicationsGetParams) => { - return [`/publications`, ...(params ? [params] : [])] as const +export const getPublicationAojGetQueryKey = ( + params?: PublicationAojGetParams +) => { + return [`/publication-aoj`, ...(params ? [params] : [])] as const } -export const getPublicationsGetQueryOptions = < - TData = Awaited>, +export const getPublicationAojGetQueryOptions = < + TData = Awaited>, TError = HTTPValidationError >( - params?: PublicationsGetParams, + params?: PublicationAojGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > @@ -17284,43 +17156,43 @@ export const getPublicationsGetQueryOptions = < const { query: queryOptions } = options ?? {} const queryKey = - queryOptions?.queryKey ?? getPublicationsGetQueryKey(params) + queryOptions?.queryKey ?? getPublicationAojGetQueryKey(params) const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => publicationsGet(params, signal) + Awaited> + > = ({ signal }) => publicationAojGet(params, signal) return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< - Awaited>, + Awaited>, TError, TData > & { queryKey: QueryKey } } -export type PublicationsGetQueryResult = NonNullable< - Awaited> +export type PublicationAojGetQueryResult = NonNullable< + Awaited> > -export type PublicationsGetQueryError = HTTPValidationError +export type PublicationAojGetQueryError = HTTPValidationError /** - * @summary List the existing Publication + * @summary List the publication area of jurisdictions */ -export const usePublicationsGet = < - TData = Awaited>, +export const usePublicationAojGet = < + TData = Awaited>, TError = HTTPValidationError >( - params?: PublicationsGetParams, + params?: PublicationAojGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getPublicationsGetQueryOptions(params, options) + const queryOptions = getPublicationAojGetQueryOptions(params, options) const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey @@ -17332,101 +17204,102 @@ export const usePublicationsGet = < } /** - * @summary Create a new publication + * @summary Create new publication area of jurisdictions */ -export const publicationsPost = (publicationCreate: PublicationCreate) => { - return customInstance({ - url: `/publications`, +export const publicationAojPost = (aOJCreate: AOJCreate) => { + return customInstance({ + url: `/publication-aoj`, method: 'POST', headers: { 'Content-Type': 'application/json' }, - data: publicationCreate, + data: aOJCreate, }) } -export const getPublicationsPostMutationOptions = < +export const getPublicationAojPostMutationOptions = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { data: PublicationCreate }, + { data: AOJCreate }, TContext > }): UseMutationOptions< - Awaited>, + Awaited>, TError, - { data: PublicationCreate }, + { data: AOJCreate }, TContext > => { const { mutation: mutationOptions } = options ?? {} const mutationFn: MutationFunction< - Awaited>, - { data: PublicationCreate } + Awaited>, + { data: AOJCreate } > = props => { const { data } = props ?? {} - return publicationsPost(data) + return publicationAojPost(data) } return { mutationFn, ...mutationOptions } } -export type PublicationsPostMutationResult = NonNullable< - Awaited> +export type PublicationAojPostMutationResult = NonNullable< + Awaited> > -export type PublicationsPostMutationBody = PublicationCreate -export type PublicationsPostMutationError = HTTPValidationError +export type PublicationAojPostMutationBody = AOJCreate +export type PublicationAojPostMutationError = HTTPValidationError /** - * @summary Create a new publication + * @summary Create new publication area of jurisdictions */ -export const usePublicationsPost = < +export const usePublicationAojPost = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { data: PublicationCreate }, + { data: AOJCreate }, TContext > }) => { - const mutationOptions = getPublicationsPostMutationOptions(options) + const mutationOptions = getPublicationAojPostMutationOptions(options) return useMutation(mutationOptions) } /** - * @summary Get details of a publication + * @summary List the publication templates */ -export const publicationsPublicationUuidGet = ( - publicationUuid: string, +export const publicationTemplatesGet = ( + params?: PublicationTemplatesGetParams, signal?: AbortSignal ) => { - return customInstance({ - url: `/publications/${publicationUuid}`, + return customInstance({ + url: `/publication-templates`, method: 'GET', + params, signal, }) } -export const getPublicationsPublicationUuidGetQueryKey = ( - publicationUuid: string +export const getPublicationTemplatesGetQueryKey = ( + params?: PublicationTemplatesGetParams ) => { - return [`/publications/${publicationUuid}`] as const + return [`/publication-templates`, ...(params ? [params] : [])] as const } -export const getPublicationsPublicationUuidGetQueryOptions = < - TData = Awaited>, +export const getPublicationTemplatesGetQueryOptions = < + TData = Awaited>, TError = HTTPValidationError >( - publicationUuid: string, + params?: PublicationTemplatesGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > @@ -17436,52 +17309,43 @@ export const getPublicationsPublicationUuidGetQueryOptions = < const { query: queryOptions } = options ?? {} const queryKey = - queryOptions?.queryKey ?? - getPublicationsPublicationUuidGetQueryKey(publicationUuid) + queryOptions?.queryKey ?? getPublicationTemplatesGetQueryKey(params) const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => publicationsPublicationUuidGet(publicationUuid, signal) + Awaited> + > = ({ signal }) => publicationTemplatesGet(params, signal) - return { - queryKey, - queryFn, - enabled: !!publicationUuid, - ...queryOptions, - } as UseQueryOptions< - Awaited>, + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, TError, TData > & { queryKey: QueryKey } } -export type PublicationsPublicationUuidGetQueryResult = NonNullable< - Awaited> +export type PublicationTemplatesGetQueryResult = NonNullable< + Awaited> > -export type PublicationsPublicationUuidGetQueryError = HTTPValidationError +export type PublicationTemplatesGetQueryError = HTTPValidationError /** - * @summary Get details of a publication + * @summary List the publication templates */ -export const usePublicationsPublicationUuidGet = < - TData = Awaited>, +export const usePublicationTemplatesGet = < + TData = Awaited>, TError = HTTPValidationError >( - publicationUuid: string, + params?: PublicationTemplatesGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getPublicationsPublicationUuidGetQueryOptions( - publicationUuid, - options - ) + const queryOptions = getPublicationTemplatesGetQueryOptions(params, options) const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey @@ -17493,128 +17357,572 @@ export const usePublicationsPublicationUuidGet = < } /** - * @summary Edit an existing publication + * @summary Create new publication template */ -export const publicationsPublicationUuidPatch = ( - publicationUuid: string, - publicationEdit: PublicationEdit -) => { - return customInstance({ - url: `/publications/${publicationUuid}`, - method: 'PATCH', +export const publicationTemplatesPost = (templateCreate: TemplateCreate) => { + return customInstance({ + url: `/publication-templates`, + method: 'POST', headers: { 'Content-Type': 'application/json' }, - data: publicationEdit, + data: templateCreate, }) } -export const getPublicationsPublicationUuidPatchMutationOptions = < +export const getPublicationTemplatesPostMutationOptions = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { publicationUuid: string; data: PublicationEdit }, + { data: TemplateCreate }, TContext > }): UseMutationOptions< - Awaited>, + Awaited>, TError, - { publicationUuid: string; data: PublicationEdit }, + { data: TemplateCreate }, TContext > => { const { mutation: mutationOptions } = options ?? {} const mutationFn: MutationFunction< - Awaited>, - { publicationUuid: string; data: PublicationEdit } + Awaited>, + { data: TemplateCreate } > = props => { - const { publicationUuid, data } = props ?? {} + const { data } = props ?? {} - return publicationsPublicationUuidPatch(publicationUuid, data) + return publicationTemplatesPost(data) } return { mutationFn, ...mutationOptions } } -export type PublicationsPublicationUuidPatchMutationResult = NonNullable< - Awaited> +export type PublicationTemplatesPostMutationResult = NonNullable< + Awaited> > -export type PublicationsPublicationUuidPatchMutationBody = PublicationEdit -export type PublicationsPublicationUuidPatchMutationError = HTTPValidationError +export type PublicationTemplatesPostMutationBody = TemplateCreate +export type PublicationTemplatesPostMutationError = HTTPValidationError /** - * @summary Edit an existing publication + * @summary Create new publication template */ -export const usePublicationsPublicationUuidPatch = < +export const usePublicationTemplatesPost = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { publicationUuid: string; data: PublicationEdit }, + { data: TemplateCreate }, TContext > }) => { - const mutationOptions = - getPublicationsPublicationUuidPatchMutationOptions(options) + const mutationOptions = getPublicationTemplatesPostMutationOptions(options) return useMutation(mutationOptions) } /** - * @summary List the existing Publication Bills + * @summary Edit publication template */ -export const publicationsPublicationUuidBillsGet = ( - publicationUuid: string, - params?: PublicationsPublicationUuidBillsGetParams, - signal?: AbortSignal +export const publicationTemplatesTemplateUuidPost = ( + templateUuid: string, + templateEdit: TemplateEdit ) => { - return customInstance({ - url: `/publications/${publicationUuid}/bills`, - method: 'GET', - params, - signal, + return customInstance({ + url: `/publication-templates/${templateUuid}`, + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + data: templateEdit, }) } -export const getPublicationsPublicationUuidBillsGetQueryKey = ( - publicationUuid: string, - params?: PublicationsPublicationUuidBillsGetParams -) => { - return [ - `/publications/${publicationUuid}/bills`, - ...(params ? [params] : []), - ] as const -} +export const getPublicationTemplatesTemplateUuidPostMutationOptions = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { templateUuid: string; data: TemplateEdit }, + TContext + > +}): UseMutationOptions< + Awaited>, + TError, + { templateUuid: string; data: TemplateEdit }, + TContext +> => { + const { mutation: mutationOptions } = options ?? {} -export const getPublicationsPublicationUuidBillsGetQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError ->( - publicationUuid: string, - params?: PublicationsPublicationUuidBillsGetParams, - options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - > + const mutationFn: MutationFunction< + Awaited>, + { templateUuid: string; data: TemplateEdit } + > = props => { + const { templateUuid, data } = props ?? {} + + return publicationTemplatesTemplateUuidPost(templateUuid, data) + } + + return { mutationFn, ...mutationOptions } +} + +export type PublicationTemplatesTemplateUuidPostMutationResult = NonNullable< + Awaited> +> +export type PublicationTemplatesTemplateUuidPostMutationBody = TemplateEdit +export type PublicationTemplatesTemplateUuidPostMutationError = + HTTPValidationError + +/** + * @summary Edit publication template + */ +export const usePublicationTemplatesTemplateUuidPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { templateUuid: string; data: TemplateEdit }, + TContext + > +}) => { + const mutationOptions = + getPublicationTemplatesTemplateUuidPostMutationOptions(options) + + return useMutation(mutationOptions) +} + +/** + * @summary List the publication environments + */ +export const publicationEnvironmentsGet = ( + params?: PublicationEnvironmentsGetParams, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-environments`, + method: 'GET', + params, + signal, + }) +} + +export const getPublicationEnvironmentsGetQueryKey = ( + params?: PublicationEnvironmentsGetParams +) => { + return [`/publication-environments`, ...(params ? [params] : [])] as const +} + +export const getPublicationEnvironmentsGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationEnvironmentsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? getPublicationEnvironmentsGetQueryKey(params) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => publicationEnvironmentsGet(params, signal) + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationEnvironmentsGetQueryResult = NonNullable< + Awaited> +> +export type PublicationEnvironmentsGetQueryError = HTTPValidationError + +/** + * @summary List the publication environments + */ +export const usePublicationEnvironmentsGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationEnvironmentsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationEnvironmentsGetQueryOptions( + params, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Create new publication environment + */ +export const publicationEnvironmentsPost = ( + environmentCreate: EnvironmentCreate +) => { + return customInstance({ + url: `/publication-environments`, + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + data: environmentCreate, + }) +} + +export const getPublicationEnvironmentsPostMutationOptions = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: EnvironmentCreate }, + TContext + > +}): UseMutationOptions< + Awaited>, + TError, + { data: EnvironmentCreate }, + TContext +> => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited>, + { data: EnvironmentCreate } + > = props => { + const { data } = props ?? {} + + return publicationEnvironmentsPost(data) + } + + return { mutationFn, ...mutationOptions } +} + +export type PublicationEnvironmentsPostMutationResult = NonNullable< + Awaited> +> +export type PublicationEnvironmentsPostMutationBody = EnvironmentCreate +export type PublicationEnvironmentsPostMutationError = HTTPValidationError + +/** + * @summary Create new publication environment + */ +export const usePublicationEnvironmentsPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: EnvironmentCreate }, + TContext + > +}) => { + const mutationOptions = + getPublicationEnvironmentsPostMutationOptions(options) + + return useMutation(mutationOptions) +} + +/** + * @summary Edit publication environment + */ +export const publicationEnvironmentsEnvironmentUuidPost = ( + environmentUuid: string, + environmentEdit: EnvironmentEdit +) => { + return customInstance({ + url: `/publication-environments/${environmentUuid}`, + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + data: environmentEdit, + }) +} + +export const getPublicationEnvironmentsEnvironmentUuidPostMutationOptions = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { environmentUuid: string; data: EnvironmentEdit }, + TContext + > +}): UseMutationOptions< + Awaited>, + TError, + { environmentUuid: string; data: EnvironmentEdit }, + TContext +> => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited>, + { environmentUuid: string; data: EnvironmentEdit } + > = props => { + const { environmentUuid, data } = props ?? {} + + return publicationEnvironmentsEnvironmentUuidPost(environmentUuid, data) + } + + return { mutationFn, ...mutationOptions } +} + +export type PublicationEnvironmentsEnvironmentUuidPostMutationResult = + NonNullable< + Awaited> + > +export type PublicationEnvironmentsEnvironmentUuidPostMutationBody = + EnvironmentEdit +export type PublicationEnvironmentsEnvironmentUuidPostMutationError = + HTTPValidationError + +/** + * @summary Edit publication environment + */ +export const usePublicationEnvironmentsEnvironmentUuidPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { environmentUuid: string; data: EnvironmentEdit }, + TContext + > +}) => { + const mutationOptions = + getPublicationEnvironmentsEnvironmentUuidPostMutationOptions(options) + + return useMutation(mutationOptions) +} + +/** + * @summary List the existing Publication + */ +export const publicationsGet = ( + params?: PublicationsGetParams, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publications`, + method: 'GET', + params, + signal, + }) +} + +export const getPublicationsGetQueryKey = (params?: PublicationsGetParams) => { + return [`/publications`, ...(params ? [params] : [])] as const +} + +export const getPublicationsGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? getPublicationsGetQueryKey(params) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => publicationsGet(params, signal) + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationsGetQueryResult = NonNullable< + Awaited> +> +export type PublicationsGetQueryError = HTTPValidationError + +/** + * @summary List the existing Publication + */ +export const usePublicationsGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationsGetQueryOptions(params, options) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Create a new publication + */ +export const publicationsPost = (publicationCreate: PublicationCreate) => { + return customInstance({ + url: `/publications`, + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + data: publicationCreate, + }) +} + +export const getPublicationsPostMutationOptions = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: PublicationCreate }, + TContext + > +}): UseMutationOptions< + Awaited>, + TError, + { data: PublicationCreate }, + TContext +> => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited>, + { data: PublicationCreate } + > = props => { + const { data } = props ?? {} + + return publicationsPost(data) + } + + return { mutationFn, ...mutationOptions } +} + +export type PublicationsPostMutationResult = NonNullable< + Awaited> +> +export type PublicationsPostMutationBody = PublicationCreate +export type PublicationsPostMutationError = HTTPValidationError + +/** + * @summary Create a new publication + */ +export const usePublicationsPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: PublicationCreate }, + TContext + > +}) => { + const mutationOptions = getPublicationsPostMutationOptions(options) + + return useMutation(mutationOptions) +} + +/** + * @summary Get details of a publication + */ +export const publicationsPublicationUuidGet = ( + publicationUuid: string, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publications/${publicationUuid}`, + method: 'GET', + signal, + }) +} + +export const getPublicationsPublicationUuidGetQueryKey = ( + publicationUuid: string +) => { + return [`/publications/${publicationUuid}`] as const +} + +export const getPublicationsPublicationUuidGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + publicationUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > } ) => { const { query: queryOptions } = options ?? {} const queryKey = queryOptions?.queryKey ?? - getPublicationsPublicationUuidBillsGetQueryKey(publicationUuid, params) + getPublicationsPublicationUuidGetQueryKey(publicationUuid) const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => - publicationsPublicationUuidBillsGet(publicationUuid, params, signal) + Awaited> + > = ({ signal }) => publicationsPublicationUuidGet(publicationUuid, signal) return { queryKey, @@ -17622,39 +17930,37 @@ export const getPublicationsPublicationUuidBillsGetQueryOptions = < enabled: !!publicationUuid, ...queryOptions, } as UseQueryOptions< - Awaited>, + Awaited>, TError, TData > & { queryKey: QueryKey } } -export type PublicationsPublicationUuidBillsGetQueryResult = NonNullable< - Awaited> +export type PublicationsPublicationUuidGetQueryResult = NonNullable< + Awaited> > -export type PublicationsPublicationUuidBillsGetQueryError = HTTPValidationError +export type PublicationsPublicationUuidGetQueryError = HTTPValidationError /** - * @summary List the existing Publication Bills + * @summary Get details of a publication */ -export const usePublicationsPublicationUuidBillsGet = < - TData = Awaited>, +export const usePublicationsPublicationUuidGet = < + TData = Awaited>, TError = HTTPValidationError >( publicationUuid: string, - params?: PublicationsPublicationUuidBillsGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getPublicationsPublicationUuidBillsGetQueryOptions( + const queryOptions = getPublicationsPublicationUuidGetQueryOptions( publicationUuid, - params, options ) @@ -17668,115 +17974,186 @@ export const usePublicationsPublicationUuidBillsGet = < } /** - * @summary Create new publication Bill or version + * @summary Edit an existing publication + */ +export const publicationsPublicationUuidPatch = ( + publicationUuid: string, + publicationEdit: PublicationEdit +) => { + return customInstance({ + url: `/publications/${publicationUuid}`, + method: 'PATCH', + headers: { 'Content-Type': 'application/json' }, + data: publicationEdit, + }) +} + +export const getPublicationsPublicationUuidPatchMutationOptions = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { publicationUuid: string; data: PublicationEdit }, + TContext + > +}): UseMutationOptions< + Awaited>, + TError, + { publicationUuid: string; data: PublicationEdit }, + TContext +> => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited>, + { publicationUuid: string; data: PublicationEdit } + > = props => { + const { publicationUuid, data } = props ?? {} + + return publicationsPublicationUuidPatch(publicationUuid, data) + } + + return { mutationFn, ...mutationOptions } +} + +export type PublicationsPublicationUuidPatchMutationResult = NonNullable< + Awaited> +> +export type PublicationsPublicationUuidPatchMutationBody = PublicationEdit +export type PublicationsPublicationUuidPatchMutationError = HTTPValidationError + +/** + * @summary Edit an existing publication + */ +export const usePublicationsPublicationUuidPatch = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { publicationUuid: string; data: PublicationEdit }, + TContext + > +}) => { + const mutationOptions = + getPublicationsPublicationUuidPatchMutationOptions(options) + + return useMutation(mutationOptions) +} + +/** + * @summary Create new publication version */ -export const publicationsPublicationUuidBillsPost = ( +export const publicationsPublicationUuidVersionPost = ( publicationUuid: string, - publicationBillCreate: PublicationBillCreate + publicationVersionCreate: PublicationVersionCreate ) => { - return customInstance({ - url: `/publications/${publicationUuid}/bills`, + return customInstance({ + url: `/publications/${publicationUuid}/version`, method: 'POST', headers: { 'Content-Type': 'application/json' }, - data: publicationBillCreate, + data: publicationVersionCreate, }) } -export const getPublicationsPublicationUuidBillsPostMutationOptions = < +export const getPublicationsPublicationUuidVersionPostMutationOptions = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { publicationUuid: string; data: PublicationBillCreate }, + { publicationUuid: string; data: PublicationVersionCreate }, TContext > }): UseMutationOptions< - Awaited>, + Awaited>, TError, - { publicationUuid: string; data: PublicationBillCreate }, + { publicationUuid: string; data: PublicationVersionCreate }, TContext > => { const { mutation: mutationOptions } = options ?? {} const mutationFn: MutationFunction< - Awaited>, - { publicationUuid: string; data: PublicationBillCreate } + Awaited>, + { publicationUuid: string; data: PublicationVersionCreate } > = props => { const { publicationUuid, data } = props ?? {} - return publicationsPublicationUuidBillsPost(publicationUuid, data) + return publicationsPublicationUuidVersionPost(publicationUuid, data) } return { mutationFn, ...mutationOptions } } -export type PublicationsPublicationUuidBillsPostMutationResult = NonNullable< - Awaited> +export type PublicationsPublicationUuidVersionPostMutationResult = NonNullable< + Awaited> > -export type PublicationsPublicationUuidBillsPostMutationBody = - PublicationBillCreate -export type PublicationsPublicationUuidBillsPostMutationError = +export type PublicationsPublicationUuidVersionPostMutationBody = + PublicationVersionCreate +export type PublicationsPublicationUuidVersionPostMutationError = HTTPValidationError /** - * @summary Create new publication Bill or version + * @summary Create new publication version */ -export const usePublicationsPublicationUuidBillsPost = < +export const usePublicationsPublicationUuidVersionPost = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { publicationUuid: string; data: PublicationBillCreate }, + { publicationUuid: string; data: PublicationVersionCreate }, TContext > }) => { const mutationOptions = - getPublicationsPublicationUuidBillsPostMutationOptions(options) + getPublicationsPublicationUuidVersionPostMutationOptions(options) return useMutation(mutationOptions) } /** - * @summary Get details of a publication bill + * @summary List the existing Publication versions */ -export const publicationsPublicationUuidBillsBillUuidGet = ( +export const publicationsPublicationUuidVersionsGet = ( publicationUuid: string, - billUuid: string, + params?: PublicationsPublicationUuidVersionsGetParams, signal?: AbortSignal ) => { - return customInstance({ - url: `/publications/${publicationUuid}/bills/${billUuid}`, + return customInstance({ + url: `/publications/${publicationUuid}/versions`, method: 'GET', + params, signal, }) } -export const getPublicationsPublicationUuidBillsBillUuidGetQueryKey = ( +export const getPublicationsPublicationUuidVersionsGetQueryKey = ( publicationUuid: string, - billUuid: string + params?: PublicationsPublicationUuidVersionsGetParams ) => { - return [`/publications/${publicationUuid}/bills/${billUuid}`] as const + return [ + `/publications/${publicationUuid}/versions`, + ...(params ? [params] : []), + ] as const } -export const getPublicationsPublicationUuidBillsBillUuidGetQueryOptions = < - TData = Awaited< - ReturnType - >, +export const getPublicationsPublicationUuidVersionsGetQueryOptions = < + TData = Awaited>, TError = HTTPValidationError >( publicationUuid: string, - billUuid: string, + params?: PublicationsPublicationUuidVersionsGetParams, options?: { query?: Partial< UseQueryOptions< Awaited< - ReturnType< - typeof publicationsPublicationUuidBillsBillUuidGet - > + ReturnType >, TError, TData @@ -17788,57 +18165,48 @@ export const getPublicationsPublicationUuidBillsBillUuidGetQueryOptions = < const queryKey = queryOptions?.queryKey ?? - getPublicationsPublicationUuidBillsBillUuidGetQueryKey( + getPublicationsPublicationUuidVersionsGetQueryKey( publicationUuid, - billUuid + params ) const queryFn: QueryFunction< - Awaited> + Awaited> > = ({ signal }) => - publicationsPublicationUuidBillsBillUuidGet( - publicationUuid, - billUuid, - signal - ) + publicationsPublicationUuidVersionsGet(publicationUuid, params, signal) return { queryKey, queryFn, - enabled: !!(publicationUuid && billUuid), + enabled: !!publicationUuid, ...queryOptions, } as UseQueryOptions< - Awaited>, + Awaited>, TError, TData > & { queryKey: QueryKey } } -export type PublicationsPublicationUuidBillsBillUuidGetQueryResult = - NonNullable< - Awaited> - > -export type PublicationsPublicationUuidBillsBillUuidGetQueryError = +export type PublicationsPublicationUuidVersionsGetQueryResult = NonNullable< + Awaited> +> +export type PublicationsPublicationUuidVersionsGetQueryError = HTTPValidationError /** - * @summary Get details of a publication bill + * @summary List the existing Publication versions */ -export const usePublicationsPublicationUuidBillsBillUuidGet = < - TData = Awaited< - ReturnType - >, +export const usePublicationsPublicationUuidVersionsGet = < + TData = Awaited>, TError = HTTPValidationError >( publicationUuid: string, - billUuid: string, + params?: PublicationsPublicationUuidVersionsGetParams, options?: { query?: Partial< UseQueryOptions< Awaited< - ReturnType< - typeof publicationsPublicationUuidBillsBillUuidGet - > + ReturnType >, TError, TData @@ -17846,12 +18214,11 @@ export const usePublicationsPublicationUuidBillsBillUuidGet = < > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getPublicationsPublicationUuidBillsBillUuidGetQueryOptions( - publicationUuid, - billUuid, - options - ) + const queryOptions = getPublicationsPublicationUuidVersionsGetQueryOptions( + publicationUuid, + params, + options + ) const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey @@ -17863,136 +18230,34 @@ export const usePublicationsPublicationUuidBillsBillUuidGet = < } /** - * @summary Edit an existing publication Bill or version - */ -export const publicationsPublicationUuidBillsBillUuidPatch = ( - publicationUuid: string, - billUuid: string, - publicationBillEdit: PublicationBillEdit -) => { - return customInstance({ - url: `/publications/${publicationUuid}/bills/${billUuid}`, - method: 'PATCH', - headers: { 'Content-Type': 'application/json' }, - data: publicationBillEdit, - }) -} - -export const getPublicationsPublicationUuidBillsBillUuidPatchMutationOptions = < - TError = HTTPValidationError, - TContext = unknown ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { - publicationUuid: string - billUuid: string - data: PublicationBillEdit - }, - TContext - > -}): UseMutationOptions< - Awaited>, - TError, - { publicationUuid: string; billUuid: string; data: PublicationBillEdit }, - TContext -> => { - const { mutation: mutationOptions } = options ?? {} - - const mutationFn: MutationFunction< - Awaited< - ReturnType - >, - { publicationUuid: string; billUuid: string; data: PublicationBillEdit } - > = props => { - const { publicationUuid, billUuid, data } = props ?? {} - - return publicationsPublicationUuidBillsBillUuidPatch( - publicationUuid, - billUuid, - data - ) - } - - return { mutationFn, ...mutationOptions } -} - -export type PublicationsPublicationUuidBillsBillUuidPatchMutationResult = - NonNullable< - Awaited< - ReturnType - > - > -export type PublicationsPublicationUuidBillsBillUuidPatchMutationBody = - PublicationBillEdit -export type PublicationsPublicationUuidBillsBillUuidPatchMutationError = - HTTPValidationError - -/** - * @summary Edit an existing publication Bill or version - */ -export const usePublicationsPublicationUuidBillsBillUuidPatch = < - TError = HTTPValidationError, - TContext = unknown ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { - publicationUuid: string - billUuid: string - data: PublicationBillEdit - }, - TContext - > -}) => { - const mutationOptions = - getPublicationsPublicationUuidBillsBillUuidPatchMutationOptions(options) - - return useMutation(mutationOptions) -} - -/** - * @summary List the existing publication Packages + * @summary Get details of a publication version */ -export const publicationBillsBillUuidPackagesGet = ( - billUuid: string, - params?: PublicationBillsBillUuidPackagesGetParams, +export const publicationVersionsVersionUuidGet = ( + versionUuid: string, signal?: AbortSignal ) => { - return customInstance({ - url: `/publication-bills/${billUuid}/packages`, + return customInstance({ + url: `/publication-versions/${versionUuid}`, method: 'GET', - params, signal, }) } -export const getPublicationBillsBillUuidPackagesGetQueryKey = ( - billUuid: string, - params?: PublicationBillsBillUuidPackagesGetParams +export const getPublicationVersionsVersionUuidGetQueryKey = ( + versionUuid: string ) => { - return [ - `/publication-bills/${billUuid}/packages`, - ...(params ? [params] : []), - ] as const + return [`/publication-versions/${versionUuid}`] as const } -export const getPublicationBillsBillUuidPackagesGetQueryOptions = < - TData = Awaited>, +export const getPublicationVersionsVersionUuidGetQueryOptions = < + TData = Awaited>, TError = HTTPValidationError >( - billUuid: string, - params?: PublicationBillsBillUuidPackagesGetParams, + versionUuid: string, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > @@ -18003,52 +18268,49 @@ export const getPublicationBillsBillUuidPackagesGetQueryOptions = < const queryKey = queryOptions?.queryKey ?? - getPublicationBillsBillUuidPackagesGetQueryKey(billUuid, params) + getPublicationVersionsVersionUuidGetQueryKey(versionUuid) const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => - publicationBillsBillUuidPackagesGet(billUuid, params, signal) + Awaited> + > = ({ signal }) => publicationVersionsVersionUuidGet(versionUuid, signal) return { queryKey, queryFn, - enabled: !!billUuid, + enabled: !!versionUuid, ...queryOptions, } as UseQueryOptions< - Awaited>, + Awaited>, TError, TData > & { queryKey: QueryKey } } -export type PublicationBillsBillUuidPackagesGetQueryResult = NonNullable< - Awaited> +export type PublicationVersionsVersionUuidGetQueryResult = NonNullable< + Awaited> > -export type PublicationBillsBillUuidPackagesGetQueryError = HTTPValidationError +export type PublicationVersionsVersionUuidGetQueryError = HTTPValidationError /** - * @summary List the existing publication Packages + * @summary Get details of a publication version */ -export const usePublicationBillsBillUuidPackagesGet = < - TData = Awaited>, +export const usePublicationVersionsVersionUuidGet = < + TData = Awaited>, TError = HTTPValidationError >( - billUuid: string, - params?: PublicationBillsBillUuidPackagesGetParams, + versionUuid: string, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getPublicationBillsBillUuidPackagesGetQueryOptions( - billUuid, - params, + const queryOptions = getPublicationVersionsVersionUuidGetQueryOptions( + versionUuid, options ) @@ -18062,205 +18324,182 @@ export const usePublicationBillsBillUuidPackagesGet = < } /** - * @summary Create new Publication Package + * @summary Edit an existing publication version */ -export const publicationBillsBillUuidPackagesPost = ( - billUuid: string, - publicationPackageCreate: PublicationPackageCreate +export const publicationVersionsVersionUuidPost = ( + versionUuid: string, + publicationVersionEdit: PublicationVersionEdit ) => { - return customInstance({ - url: `/publication-bills/${billUuid}/packages`, + return customInstance({ + url: `/publication-versions/${versionUuid}`, method: 'POST', headers: { 'Content-Type': 'application/json' }, - data: publicationPackageCreate, + data: publicationVersionEdit, }) } -export const getPublicationBillsBillUuidPackagesPostMutationOptions = < +export const getPublicationVersionsVersionUuidPostMutationOptions = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { billUuid: string; data: PublicationPackageCreate }, + { versionUuid: string; data: PublicationVersionEdit }, TContext > }): UseMutationOptions< - Awaited>, + Awaited>, TError, - { billUuid: string; data: PublicationPackageCreate }, + { versionUuid: string; data: PublicationVersionEdit }, TContext > => { const { mutation: mutationOptions } = options ?? {} const mutationFn: MutationFunction< - Awaited>, - { billUuid: string; data: PublicationPackageCreate } + Awaited>, + { versionUuid: string; data: PublicationVersionEdit } > = props => { - const { billUuid, data } = props ?? {} + const { versionUuid, data } = props ?? {} - return publicationBillsBillUuidPackagesPost(billUuid, data) + return publicationVersionsVersionUuidPost(versionUuid, data) } return { mutationFn, ...mutationOptions } } -export type PublicationBillsBillUuidPackagesPostMutationResult = NonNullable< - Awaited> +export type PublicationVersionsVersionUuidPostMutationResult = NonNullable< + Awaited> > -export type PublicationBillsBillUuidPackagesPostMutationBody = - PublicationPackageCreate -export type PublicationBillsBillUuidPackagesPostMutationError = +export type PublicationVersionsVersionUuidPostMutationBody = + PublicationVersionEdit +export type PublicationVersionsVersionUuidPostMutationError = HTTPValidationError /** - * @summary Create new Publication Package + * @summary Edit an existing publication version */ -export const usePublicationBillsBillUuidPackagesPost = < +export const usePublicationVersionsVersionUuidPost = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { billUuid: string; data: PublicationPackageCreate }, + { versionUuid: string; data: PublicationVersionEdit }, TContext > }) => { const mutationOptions = - getPublicationBillsBillUuidPackagesPostMutationOptions(options) + getPublicationVersionsVersionUuidPostMutationOptions(options) return useMutation(mutationOptions) } /** - * @summary Record the submission response from lvbb of a publication package + * @summary Create new Publication Package */ -export const publicationPackagesPackageUuidReportPost = ( - packageUuid: string, - bodyFastapiHandlerPublicationPackagesPackageUuidReportPost: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost +export const publicationVersionsVersionUuidPackagesPost = ( + versionUuid: string, + publicationPackageCreate: PublicationPackageCreate ) => { - const formData = new FormData() - formData.append( - 'xml_file', - bodyFastapiHandlerPublicationPackagesPackageUuidReportPost.xml_file - ) - - return customInstance({ - url: `/publication-packages/${packageUuid}/report`, + return customInstance({ + url: `/publication-versions/${versionUuid}/packages`, method: 'POST', - headers: { 'Content-Type': 'multipart/form-data' }, - data: formData, + headers: { 'Content-Type': 'application/json' }, + data: publicationPackageCreate, }) } -export const getPublicationPackagesPackageUuidReportPostMutationOptions = < +export const getPublicationVersionsVersionUuidPackagesPostMutationOptions = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { - packageUuid: string - data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost - }, + { versionUuid: string; data: PublicationPackageCreate }, TContext > }): UseMutationOptions< - Awaited>, + Awaited>, TError, - { - packageUuid: string - data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost - }, + { versionUuid: string; data: PublicationPackageCreate }, TContext > => { const { mutation: mutationOptions } = options ?? {} const mutationFn: MutationFunction< - Awaited>, - { - packageUuid: string - data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost - } + Awaited>, + { versionUuid: string; data: PublicationPackageCreate } > = props => { - const { packageUuid, data } = props ?? {} + const { versionUuid, data } = props ?? {} - return publicationPackagesPackageUuidReportPost(packageUuid, data) + return publicationVersionsVersionUuidPackagesPost(versionUuid, data) } return { mutationFn, ...mutationOptions } } -export type PublicationPackagesPackageUuidReportPostMutationResult = +export type PublicationVersionsVersionUuidPackagesPostMutationResult = NonNullable< - Awaited> + Awaited> > -export type PublicationPackagesPackageUuidReportPostMutationBody = - BodyFastapiHandlerPublicationPackagesPackageUuidReportPost -export type PublicationPackagesPackageUuidReportPostMutationError = +export type PublicationVersionsVersionUuidPackagesPostMutationBody = + PublicationPackageCreate +export type PublicationVersionsVersionUuidPackagesPostMutationError = HTTPValidationError /** - * @summary Record the submission response from lvbb of a publication package + * @summary Create new Publication Package */ -export const usePublicationPackagesPackageUuidReportPost = < +export const usePublicationVersionsVersionUuidPackagesPost = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, - { - packageUuid: string - data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost - }, + { versionUuid: string; data: PublicationPackageCreate }, TContext > }) => { const mutationOptions = - getPublicationPackagesPackageUuidReportPostMutationOptions(options) + getPublicationVersionsVersionUuidPackagesPostMutationOptions(options) return useMutation(mutationOptions) } /** - * @summary Download package reports + * @summary List the existing publication packages of a publication version */ -export const publicationPackagesPackageUuidReportDownloadGet = ( - packageUuid: string, +export const publicationPackagesGet = ( + params?: PublicationPackagesGetParams, signal?: AbortSignal ) => { - return customInstance({ - url: `/publication-packages/${packageUuid}/report/download`, + return customInstance({ + url: `/publication-packages`, method: 'GET', + params, signal, }) } -export const getPublicationPackagesPackageUuidReportDownloadGetQueryKey = ( - packageUuid: string +export const getPublicationPackagesGetQueryKey = ( + params?: PublicationPackagesGetParams ) => { - return [`/publication-packages/${packageUuid}/report/download`] as const + return [`/publication-packages`, ...(params ? [params] : [])] as const } -export const getPublicationPackagesPackageUuidReportDownloadGetQueryOptions = < - TData = Awaited< - ReturnType - >, +export const getPublicationPackagesGetQueryOptions = < + TData = Awaited>, TError = HTTPValidationError >( - packageUuid: string, + params?: PublicationPackagesGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited< - ReturnType< - typeof publicationPackagesPackageUuidReportDownloadGet - > - >, + Awaited>, TError, TData > @@ -18270,68 +18509,43 @@ export const getPublicationPackagesPackageUuidReportDownloadGetQueryOptions = < const { query: queryOptions } = options ?? {} const queryKey = - queryOptions?.queryKey ?? - getPublicationPackagesPackageUuidReportDownloadGetQueryKey(packageUuid) + queryOptions?.queryKey ?? getPublicationPackagesGetQueryKey(params) const queryFn: QueryFunction< - Awaited< - ReturnType - > - > = ({ signal }) => - publicationPackagesPackageUuidReportDownloadGet(packageUuid, signal) + Awaited> + > = ({ signal }) => publicationPackagesGet(params, signal) - return { - queryKey, - queryFn, - enabled: !!packageUuid, - ...queryOptions, - } as UseQueryOptions< - Awaited< - ReturnType - >, + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, TError, TData > & { queryKey: QueryKey } } -export type PublicationPackagesPackageUuidReportDownloadGetQueryResult = - NonNullable< - Awaited< - ReturnType - > - > -export type PublicationPackagesPackageUuidReportDownloadGetQueryError = - HTTPValidationError +export type PublicationPackagesGetQueryResult = NonNullable< + Awaited> +> +export type PublicationPackagesGetQueryError = HTTPValidationError /** - * @summary Download package reports + * @summary List the existing publication packages of a publication version */ -export const usePublicationPackagesPackageUuidReportDownloadGet = < - TData = Awaited< - ReturnType - >, +export const usePublicationPackagesGet = < + TData = Awaited>, TError = HTTPValidationError >( - packageUuid: string, + params?: PublicationPackagesGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited< - ReturnType< - typeof publicationPackagesPackageUuidReportDownloadGet - > - >, + Awaited>, TError, TData > > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getPublicationPackagesPackageUuidReportDownloadGetQueryOptions( - packageUuid, - options - ) + const queryOptions = getPublicationPackagesGetQueryOptions(params, options) const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey diff --git a/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx b/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx index bcc753f7..e1306ec3 100644 --- a/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx @@ -20,10 +20,10 @@ const PublicationAddModal = () => { const { mutate } = usePublicationsPost({ mutation: { - onSuccess: data => { + onSuccess: () => { queryClient.invalidateQueries({ queryKey: getPublicationsGetQueryKey({ - document_type: data.Document_Type, + document_type: modalState?.type, }), }) diff --git a/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx b/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx index a990e782..13845dc5 100644 --- a/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx @@ -21,23 +21,20 @@ const PublicationPackagesModal = () => { enabled: !!moduleId, select: data => data.find( - item => item.ID === modalState?.bill.Module_Status_ID + item => item.ID === modalState?.version.Module_Status.ID ), }, }) return ( - +
    {status?.Status} - {modalState?.publication.Official_Title}{' '} - ({modalState?.bill.Is_Official ? 'Officiële' : 'Interne'}{' '} + ({modalState?.version.Is_Official ? 'Officiële' : 'Interne'}{' '} publicatie) - +
    diff --git a/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx index c64f4a48..74dce313 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionAddModal/PublicationVersionAddModal.tsx @@ -1,12 +1,10 @@ import { useQueryClient } from '@tanstack/react-query' import { - getPublicationsPublicationUuidBillsGetQueryKey, - usePublicationsPublicationUuidBillsBillUuidGet, - usePublicationsPublicationUuidBillsPost, + getPublicationsPublicationUuidVersionsGetQueryKey, + usePublicationsPublicationUuidVersionPost, } from '@/api/fetchers' -import { PublicationBillCreate } from '@/api/fetchers.schemas' -import { LoaderSpinner } from '@/components/Loader' +import { PublicationVersionCreate } from '@/api/fetchers.schemas' import Modal from '@/components/Modal/Modal' import PublicationVersionForm from '@/components/Publications/PublicationVersionForm' import useModalStore from '@/store/modalStore' @@ -21,24 +19,11 @@ const PublicationVersionAddModal = () => { state => state.modalStates['publicationVersionAdd'] ) as ModalStateMap['publicationVersionAdd'] - const { data: prefill, isFetching } = - usePublicationsPublicationUuidBillsBillUuidGet( - modalState?.publication.UUID, - modalState?.prevUUID || '', - { - query: { - enabled: - !!modalState?.publication.UUID && - !!modalState?.prevUUID, - }, - } - ) - - const { mutate } = usePublicationsPublicationUuidBillsPost({ + const { mutate } = usePublicationsPublicationUuidVersionPost({ mutation: { onSuccess: () => { queryClient.invalidateQueries({ - queryKey: getPublicationsPublicationUuidBillsGetQueryKey( + queryKey: getPublicationsPublicationUuidVersionsGetQueryKey( modalState.publication.UUID ), }) @@ -48,65 +33,17 @@ const PublicationVersionAddModal = () => { }, }) - const handleFormSubmit = (payload: PublicationBillCreate) => { - payload.Is_Official = (payload.Is_Official as unknown) === 'true' - - if (payload.Announcement_Date && payload.Procedure_Data) { - payload.Procedure_Data.Announcement_Date = payload.Announcement_Date - } - + const handleFormSubmit = (payload: PublicationVersionCreate) => { mutate({ publicationUuid: modalState.publication.UUID, data: payload }) } - const initialValues = !!prefill - ? { - ...prefill, - Is_Official: prefill.Is_Official ? 'true' : 'false', - } - : ({ - Bill_Data: { - Bill_Title: modalState?.publication?.Official_Title, - Regulation_Title: modalState?.publication?.Regulation_Title, - Amendment_Article: { - Label: 'Genomen besluit', - Number: '1', - }, - Articles: [ - { - Label: 'Wijzigingen', - Number: '2', - }, - ], - Time_Article: { - Label: 'Inwerkingtreding', - Number: '3', - }, - }, - Procedure_Data: { - Steps: [ - { - Step_Type: 'Vaststelling', - }, - { - Step_Type: 'Ondertekening', - }, - ], - }, - } as PublicationBillCreate) - return ( - {isFetching ? ( -
    - -
    - ) : ( - - )} +
    ) } diff --git a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx index 80f128d3..137a960f 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx @@ -1,12 +1,12 @@ import { useQueryClient } from '@tanstack/react-query' import { - getPublicationsPublicationUuidBillsBillUuidGetQueryKey, - getPublicationsPublicationUuidBillsGetQueryKey, - usePublicationsPublicationUuidBillsBillUuidGet, - usePublicationsPublicationUuidBillsBillUuidPatch, + getPublicationVersionsVersionUuidGetQueryKey, + getPublicationsPublicationUuidVersionsGetQueryKey, + usePublicationVersionsVersionUuidGet, + usePublicationVersionsVersionUuidPost, } from '@/api/fetchers' -import { PublicationBillEdit } from '@/api/fetchers.schemas' +import { PublicationVersionEdit } from '@/api/fetchers.schemas' import { LoaderSpinner } from '@/components/Loader' import Modal from '@/components/Modal/Modal' import PublicationVersionForm from '@/components/Publications/PublicationVersionForm' @@ -22,8 +22,7 @@ const PublicationVersionEditModal = () => { state => state.modalStates['publicationVersionEdit'] ) as ModalStateMap['publicationVersionEdit'] - const { data, isFetching } = usePublicationsPublicationUuidBillsBillUuidGet( - modalState?.publication.UUID, + const { data, isFetching } = usePublicationVersionsVersionUuidGet( modalState?.UUID, { query: { @@ -32,20 +31,18 @@ const PublicationVersionEditModal = () => { } ) - const { mutate } = usePublicationsPublicationUuidBillsBillUuidPatch({ + const { mutate } = usePublicationVersionsVersionUuidPost({ mutation: { onSuccess: () => { queryClient.invalidateQueries({ - queryKey: getPublicationsPublicationUuidBillsGetQueryKey( + queryKey: getPublicationsPublicationUuidVersionsGetQueryKey( modalState.publication.UUID ), }) queryClient.invalidateQueries({ - queryKey: - getPublicationsPublicationUuidBillsBillUuidGetQueryKey( - modalState.publication.UUID, - modalState.UUID - ), + queryKey: getPublicationVersionsVersionUuidGetQueryKey( + modalState.UUID + ), }) setActiveModal(null) @@ -53,14 +50,14 @@ const PublicationVersionEditModal = () => { }, }) - const handleFormSubmit = (payload: PublicationBillEdit) => { - if (payload.Announcement_Date && payload.Procedure_Data) { - payload.Procedure_Data.Announcement_Date = payload.Announcement_Date + const handleFormSubmit = (payload: PublicationVersionEdit) => { + if (payload.Announcement_Date && payload.Procedural) { + payload.Procedural.Procedural_Announcement_Date = + payload.Announcement_Date } mutate({ - publicationUuid: modalState.publication.UUID, - billUuid: modalState.UUID, + versionUuid: modalState.UUID, data: payload, }) } diff --git a/src/components/Modals/types.ts b/src/components/Modals/types.ts index 0c8b3b30..80863f74 100644 --- a/src/components/Modals/types.ts +++ b/src/components/Modals/types.ts @@ -1,7 +1,7 @@ import { - AppExtensionsPublicationsEnumsDocumentType, + DocumentType, Publication, - PublicationBillShort, + PublicationVersionShort, } from '@/api/fetchers.schemas' export type ModalType = @@ -36,12 +36,12 @@ export type ModalType = | 'publicationPackages' export interface ModalStateMap { - publicationAdd: { type: AppExtensionsPublicationsEnumsDocumentType } + publicationAdd: { type: DocumentType } publicationEdit: { publication: Publication } publicationVersionAdd: { publication: Publication; prevUUID?: string } publicationVersionEdit: { publication: Publication; UUID: string } publicationPackages: { publication: Publication - bill: PublicationBillShort + version: PublicationVersionShort } } diff --git a/src/components/Publications/Publication/Publication.tsx b/src/components/Publications/Publication/Publication.tsx index deb149dd..683bc858 100644 --- a/src/components/Publications/Publication/Publication.tsx +++ b/src/components/Publications/Publication/Publication.tsx @@ -1,7 +1,7 @@ import { Button, Heading } from '@pzh-ui/components' import { Plus } from '@pzh-ui/icons' -import { usePublicationsPublicationUuidBillsGet } from '@/api/fetchers' +import { usePublicationsPublicationUuidVersionsGet } from '@/api/fetchers' import { Publication as PublicationType } from '@/api/fetchers.schemas' import useModalStore from '@/store/modalStore' @@ -14,7 +14,7 @@ interface PublicationProps { const Publication = ({ data }: PublicationProps) => { const setActiveModal = useModalStore(state => state.setActiveModal) - const { data: latest } = usePublicationsPublicationUuidBillsGet( + const { data: latest } = usePublicationsPublicationUuidVersionsGet( data?.UUID || '', undefined, { diff --git a/src/components/Publications/PublicationPackages/PublicationPackages.tsx b/src/components/Publications/PublicationPackages/PublicationPackages.tsx index fc679d2f..c766641d 100644 --- a/src/components/Publications/PublicationPackages/PublicationPackages.tsx +++ b/src/components/Publications/PublicationPackages/PublicationPackages.tsx @@ -5,7 +5,10 @@ import { usePublicationBillsBillUuidPackagesGet, usePublicationsPublicationUuidBillsBillUuidGet, } from '@/api/fetchers' -import { PackageEventType, PublicationBillShort } from '@/api/fetchers.schemas' +import { + PackageEventType, + PublicationVersionShort, +} from '@/api/fetchers.schemas' import { PackageStep } from './components' @@ -14,13 +17,15 @@ export interface PublicationPackageProps { eventType: PackageEventType } -const PublicationPackages = (bill: PublicationBillShort) => { +const PublicationPackages = (version: PublicationVersionShort) => { const { data } = usePublicationsPublicationUuidBillsBillUuidGet( - bill.Publication_UUID, - bill.UUID + version.Publication_UUID, + version.UUID ) - const { data: packages } = usePublicationBillsBillUuidPackagesGet(bill.UUID) + const { data: packages } = usePublicationBillsBillUuidPackagesGet( + version.UUID + ) const { validationPackage, publicationPackage } = useMemo(() => { const validationPackage = packages?.results.find( @@ -57,10 +62,10 @@ const PublicationPackages = (bill: PublicationBillShort) => {
    - {bill.Is_Official ? 'Validatie' : 'Publicatie'} + {version.Is_Official ? 'Validatie' : 'Publicatie'} { isFirst /> - {bill.Is_Official && ( + {version.Is_Official && ( { )}
    - {bill.Is_Official && + {version.Is_Official && validationPackage?.Validation_Status === 'Valid' && !!!publicationPackage && ( { /> )} - {bill.Is_Official && ( + {version.Is_Official && (
    Publicatie { isFirst /> {
    )} - {bill.Is_Official && + {version.Is_Official && publicationPackage?.Validation_Status === 'Valid' && ( { const { data: pkg } = usePublicationBillsBillUuidPackagesGet( - bill.UUID, + version.UUID, undefined, { query: { @@ -81,8 +81,8 @@ const PackageStep = ({ color="text-pzh-blue-500" className="whitespace-nowrap"> {STEP_LABEL[type]} ( - {`${!bill.Is_Official ? 'interne ' : ''}${ - eventType === 'Publicatie' || !bill.Is_Official + {`${!version.Is_Official ? 'interne ' : ''}${ + eventType === 'Publicatie' || !version.Is_Official ? 'publicatie' : 'validatie' }`} @@ -96,7 +96,7 @@ const PackageStep = ({ )}
    { } const CreateAction = ({ - bill, + version, publicationPackage, eventType, isActive, @@ -46,19 +45,18 @@ const CreateAction = ({ const queryClient = useQueryClient() const { mutate: create, isPending } = - usePublicationBillsBillUuidPackagesPost({ + usePublicationVersionsVersionUuidPackagesPost({ mutation: { onSuccess: () => { queryClient.invalidateQueries({ - queryKey: - getPublicationBillsBillUuidPackagesGetQueryKey( - bill.UUID - ), + queryKey: getPublicationPackagesGetQueryKey({ + version_uuid: version.UUID, + }), }) queryClient.invalidateQueries({ queryKey: - getPublicationsPublicationUuidBillsGetQueryKey( - bill.Publication_UUID + getPublicationsPublicationUuidVersionsGetQueryKey( + version.Publication_UUID ), }) }, @@ -67,8 +65,8 @@ const CreateAction = ({ const handleAction = () => create({ - billUuid: bill.UUID, - data: { Package_Event_Type: eventType }, + versionUuid: version.UUID, + data: { Package_Type: eventType }, }) const date = useMemo(() => { @@ -106,7 +104,7 @@ const CreateAction = ({ } const DownloadAction = ({ - bill, + version, publicationPackage, eventType, isActive, @@ -117,7 +115,7 @@ const DownloadAction = ({ queryKey: [ 'downloadPackage', publicationPackage?.UUID, - bill.UUID, + version.UUID, eventType, ], queryFn: async () => @@ -130,9 +128,9 @@ const DownloadAction = ({ const handleAction = () => download().finally(() => queryClient.invalidateQueries({ - queryKey: getPublicationBillsBillUuidPackagesGetQueryKey( - bill.UUID - ), + queryKey: getPublicationPackagesGetQueryKey({ + version_uuid: version.UUID, + }), }) ) @@ -168,7 +166,7 @@ const DownloadAction = ({ } const UploadAction = ({ - bill, + version, publicationPackage, isActive, isLoading, @@ -191,9 +189,9 @@ const UploadAction = ({ ) ).finally(() => { queryClient.invalidateQueries({ - queryKey: getPublicationBillsBillUuidPackagesGetQueryKey( - bill.UUID - ), + queryKey: getPublicationPackagesGetQueryKey({ + version_uuid: version.UUID, + }), }) }) } diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx index 40ebf6cf..0acd8a3a 100644 --- a/src/components/Publications/PublicationVersions/PublicationVersions.tsx +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -7,9 +7,9 @@ import { useParams } from 'react-router-dom' import { useModulesModuleIdStatusGet, - usePublicationsPublicationUuidBillsGet, + usePublicationsPublicationUuidVersionsGet, } from '@/api/fetchers' -import { Publication, PublicationBillShort } from '@/api/fetchers.schemas' +import { Publication, PublicationVersionShort } from '@/api/fetchers.schemas' import { LoaderSpinner } from '@/components/Loader' import useModalStore from '@/store/modalStore' import { downloadFile } from '@/utils/file' @@ -25,7 +25,7 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { const [currPage, setCurrPage] = useState(1) - const { data, isFetching } = usePublicationsPublicationUuidBillsGet( + const { data, isFetching } = usePublicationsPublicationUuidVersionsGet( publication!.UUID, { limit: PAGE_LIMIT, @@ -64,7 +64,6 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { - @@ -74,7 +73,7 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { {data?.results.map(bill => { const status = statusOptions?.find( - option => option.value === bill.Module_Status_ID + option => option.value === bill.Module_Status.ID ) return ( @@ -106,8 +105,8 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { const VersionRow = ({ publication, status, - ...bill -}: PublicationBillShort & { publication: Publication; status?: string }) => { + ...version +}: PublicationVersionShort & { publication: Publication; status?: string }) => { const { moduleId } = useParams() const setActiveModal = useModalStore(state => state.setActiveModal) @@ -124,21 +123,28 @@ const VersionRow = ({ ) const { isFetching, refetch: download } = useQuery({ - queryKey: ['downloadDiff', moduleId, bill.Module_Status_ID, bill.UUID], + queryKey: [ + 'downloadDiff', + moduleId, + version.Module_Status.ID, + version.UUID, + ], queryFn: () => - downloadDiff({ moduleId, Module_Status_ID: bill.Module_Status_ID }), + downloadDiff({ + moduleId, + Module_Status_ID: version.Module_Status.ID, + }), enabled: false, }) return ( - - - + + - - - + + +
    # Gebaseerd op Modulestatus Type besluit Doel
    {bill.Version_ID} {status}{bill.Procedure_Type}{bill.Is_Official ? 'Officiële' : 'Interne'} publicatie{version.Procedure_Type}{version.Is_Official ? 'Officiële' : 'Interne'} publicatie
    - {!bill.Locked && ( + {!version.Locked && (
    diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index b2720878..eb3c0bb2 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -13,11 +13,7 @@ import { import classNames from 'clsx' import { Fragment, useState } from 'react' -import { - AppExtensionsPublicationsEnumsDocumentType, - Module, - ModuleObjectShort, -} from '@/api/fetchers.schemas' +import { DocumentType, Module, ModuleObjectShort } from '@/api/fetchers.schemas' import Avatar from '@/components/Avatar' import { LoaderContent } from '@/components/Loader' import { @@ -250,9 +246,7 @@ const TabObjects = () => { } const TabDecisions = () => { - const documentTypes = Object.keys( - AppExtensionsPublicationsEnumsDocumentType - ) as Array + const documentTypes = Object.keys(DocumentType) as Array return ( <> From 015758eb7d4e9fa30b53af731b12cc501773f33d Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 14 Mar 2024 12:06:36 +0100 Subject: [PATCH 33/82] AB#16122 AB#16730 --- package.json | 3 +- src/App/Routes/AppRoutes.tsx | 6 +- src/api/fetchers.msw.ts | 243 ++++++++- src/api/fetchers.schemas.ts | 129 ++++- src/api/fetchers.ts | 502 +++++++++++++++++- .../DynamicObjectForm/DynamicObjectForm.tsx | 7 +- src/components/Form/FieldArray/FieldArray.tsx | 80 +-- .../PublicationEditModal.tsx | 8 +- .../PublicationPackagesModal.tsx | 22 +- src/components/Modals/types.ts | 2 +- .../Publications/Publication/Publication.tsx | 18 +- .../PublicationForm/PublicationForm.tsx | 10 +- .../PublicationPackages.tsx | 163 +++--- .../components/PackageStep.tsx | 12 +- .../components/PackageStepActions.tsx | 83 +-- .../PublicationVersionForm.tsx | 100 ++-- .../PublicationVersions.tsx | 77 ++- src/components/Publications/Publications.tsx | 6 +- src/components/Sidebar/Sidebar.tsx | 4 +- src/config/notifications.ts | 10 + src/config/publicationTemplates/index.ts | 105 +++- src/hooks/usePermissions.ts | 45 +- .../ObjectCreate/ObjectCreate.tsx | 1 - .../PublicationTemplateCreate.tsx | 36 +- .../PublicationTemplateEdit.tsx | 126 ++++- .../PublicationTemplateOverview.tsx | 199 ++++--- src/validation/dynamicObject.ts | 1 + src/validation/publication.ts | 50 +- yarn.lock | 33 +- 29 files changed, 1613 insertions(+), 468 deletions(-) diff --git a/package.json b/package.json index c12fb04e..01fc044c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.478", + "@pzh-ui/components": "^0.0.487", "@pzh-ui/config": "^0.0.56", "@pzh-ui/css": "^0.0.81", "@pzh-ui/icons": "^0.0.50", @@ -33,6 +33,7 @@ "react-helmet-async": "^2.0.4", "react-leaflet": "^4.2.1", "react-router-dom": "^6.22.2", + "tailwind-merge": "^2.2.1", "uuid": "^9.0.1", "zod": "^3.22.4", "zod-formik-adapter": "^1.2.0", diff --git a/src/App/Routes/AppRoutes.tsx b/src/App/Routes/AppRoutes.tsx index 07dd5616..db071410 100644 --- a/src/App/Routes/AppRoutes.tsx +++ b/src/App/Routes/AppRoutes.tsx @@ -393,7 +393,7 @@ const AppRoutes = () => { element: ( @@ -405,7 +405,7 @@ const AppRoutes = () => { element: ( @@ -417,7 +417,7 @@ const AppRoutes = () => { element: ( diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index 1e2d5573..d28c9794 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -62,6 +62,7 @@ import type { PagedResponsePublicationAOJ, PagedResponsePublicationEnvironment, PagedResponsePublicationPackage, + PagedResponsePublicationPackageReportShort, PagedResponsePublicationTemplate, PagedResponsePublicationVersionShort, PagedResponseSearchObject, @@ -80,6 +81,8 @@ import type { Publication, PublicationCreatedResponse, PublicationPackageCreatedResponse, + PublicationPackageReport, + PublicationTemplate, PublicationVersion, PublicationVersionCreatedResponse, PublicationVersionEditResponse, @@ -87,6 +90,7 @@ import type { ResetPasswordResponse, ResponseOK, TemplateCreatedResponse, + UploadPackageReportResponse, User, UserCreateResponse, VerplichtProgrammaFull, @@ -13026,6 +13030,10 @@ export const getPublicationTemplatesGetMock = ( Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Description: faker.word.sample(), Document_Type: faker.word.sample(), + Field_Map: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => faker.word.sample()), Is_Active: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Object_Templates: { @@ -13051,6 +13059,31 @@ export const getPublicationTemplatesPostMock = ( ...overrideResponse, }) +export const getPublicationTemplatesTemplateUuidGetMock = ( + overrideResponse: any = {} +): PublicationTemplate => ({ + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Description: faker.word.sample(), + Document_Type: faker.word.sample(), + Field_Map: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => faker.word.sample()), + Is_Active: faker.datatype.boolean(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Object_Templates: { + [faker.string.alphanumeric(5)]: faker.word.sample(), + }, + Object_Types: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => faker.word.sample()), + Text_Template: faker.word.sample(), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, +}) + export const getPublicationTemplatesTemplateUuidPostMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) @@ -13125,6 +13158,7 @@ export const getPublicationsGetMock = ( faker.string.uuid(), undefined, ]), + Title: faker.word.sample(), UUID: faker.string.uuid(), ...overrideResponse, })), @@ -13147,21 +13181,14 @@ export const getPublicationsPublicationUuidGetMock = ( Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_ID: faker.number.int({ min: undefined, max: undefined }), Template_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Title: faker.word.sample(), UUID: faker.string.uuid(), ...overrideResponse, }) -export const getPublicationsPublicationUuidPatchMock = ( +export const getPublicationsPublicationUuidPostMock = ( overrideResponse: any = {} -): Publication => ({ - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Document_Type: faker.helpers.arrayElement(Object.values(DocumentType)), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Template_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - UUID: faker.string.uuid(), - ...overrideResponse, -}) +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) export const getPublicationsPublicationUuidVersionPostMock = ( overrideResponse: any = {} @@ -13189,13 +13216,14 @@ export const getPublicationsPublicationUuidVersionsGetMock = ( faker.date.past().toISOString().split('T')[0], undefined, ]), + Bill_Metadata: {}, Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Effective_Date: faker.helpers.arrayElement([ faker.date.past().toISOString().split('T')[0], undefined, ]), Environment_UUID: faker.string.uuid(), - Locked: faker.datatype.boolean(), + Is_Locked: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_Status: { Created_By_UUID: faker.string.uuid(), @@ -13247,8 +13275,8 @@ export const getPublicationVersionsVersionUuidGetMock = ( UUID: faker.string.uuid(), ...overrideResponse, }, + Is_Locked: faker.datatype.boolean(), Is_Valid: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), - Locked: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_Status: { Created_By_UUID: faker.string.uuid(), @@ -13269,6 +13297,7 @@ export const getPublicationVersionsVersionUuidGetMock = ( faker.string.uuid(), undefined, ]), + Title: faker.word.sample(), UUID: faker.string.uuid(), ...overrideResponse, }, @@ -13308,27 +13337,82 @@ export const getPublicationPackagesGetMock = ( ).map(() => ({ Created_By_UUID: faker.string.uuid(), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Latest_Download_By_UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - Latest_Download_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), + Delivery_ID: faker.word.sample(), Modified_By_UUID: faker.string.uuid(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Package_Type: faker.word.sample(), + Report_Status: faker.word.sample(), UUID: faker.string.uuid(), - Validation_Status: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), + Zip: { + Filename: faker.word.sample(), + Latest_Download_By_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Latest_Download_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + UUID: faker.string.uuid(), + ...overrideResponse, + }, ...overrideResponse, })), total: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) +export const getPublicationPackagesPackageUuidReportPostMock = ( + overrideResponse: any = {} +): UploadPackageReportResponse => ({ + Duplicate_Count: faker.number.int({ min: undefined, max: undefined }), + Status: faker.helpers.arrayElement(Object.values(ReportStatusType)), + ...overrideResponse, +}) + +export const getPublicationReportsGetMock = ( + overrideResponse: any = {} +): PagedResponsePublicationPackageReportShort => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Filename: faker.word.sample(), + Main_Outcome: faker.word.sample(), + Package_UUID: faker.string.uuid(), + Report_Status: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getPublicationReportsReportUuidGetMock = ( + overrideResponse: any = {} +): PublicationPackageReport => ({ + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Filename: faker.word.sample(), + Main_Outcome: faker.word.sample(), + Package_UUID: faker.string.uuid(), + Report_Status: faker.word.sample(), + Source_Document: faker.word.sample(), + Sub_Delivery_ID: faker.word.sample(), + Sub_Outcome: faker.word.sample(), + Sub_Progress: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, +}) + export const getLoginAccessTokenPostMock = ( overrideResponse: any = {} ): AuthToken => ({ @@ -17153,6 +17237,27 @@ export const getPublicationTemplatesPostMockHandler = ( }) } +export const getPublicationTemplatesTemplateUuidGetMockHandler = ( + overrideResponse?: PublicationTemplate +) => { + return http.get('*/publication-templates/:templateUuid', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationTemplatesTemplateUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + export const getPublicationTemplatesTemplateUuidPostMockHandler = ( overrideResponse?: ResponseOK ) => { @@ -17299,16 +17404,16 @@ export const getPublicationsPublicationUuidGetMockHandler = ( }) } -export const getPublicationsPublicationUuidPatchMockHandler = ( - overrideResponse?: Publication +export const getPublicationsPublicationUuidPostMockHandler = ( + overrideResponse?: ResponseOK ) => { - return http.patch('*/publications/:publicationUuid', async () => { + return http.post('*/publications/:publicationUuid', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidPatchMock() + : getPublicationsPublicationUuidPostMock() ), { status: 200, @@ -17464,6 +17569,81 @@ export const getPublicationPackagesPackageUuidDownloadGetMockHandler = () => { ) } +export const getPublicationPackagesPackageUuidReportPostMockHandler = ( + overrideResponse?: UploadPackageReportResponse +) => { + return http.post('*/publication-packages/:packageUuid/report', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationPackagesPackageUuidReportPostMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationReportsGetMockHandler = ( + overrideResponse?: PagedResponsePublicationPackageReportShort +) => { + return http.get('*/publication-reports', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationReportsGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationReportsReportUuidGetMockHandler = ( + overrideResponse?: PublicationPackageReport +) => { + return http.get('*/publication-reports/:reportUuid', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationReportsReportUuidGetMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationReportsReportUuidDownloadGetMockHandler = () => { + return http.get('*/publication-reports/:reportUuid/download', async () => { + await delay(1000) + return new HttpResponse(null, { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + }) + }) +} + export const getLoginAccessTokenPostMockHandler = ( overrideResponse?: AuthToken ) => { @@ -17692,6 +17872,7 @@ export const getOmgevingsbeleidAPIMock = () => [ getPublicationAojPostMockHandler(), getPublicationTemplatesGetMockHandler(), getPublicationTemplatesPostMockHandler(), + getPublicationTemplatesTemplateUuidGetMockHandler(), getPublicationTemplatesTemplateUuidPostMockHandler(), getPublicationEnvironmentsGetMockHandler(), getPublicationEnvironmentsPostMockHandler(), @@ -17699,7 +17880,7 @@ export const getOmgevingsbeleidAPIMock = () => [ getPublicationsGetMockHandler(), getPublicationsPostMockHandler(), getPublicationsPublicationUuidGetMockHandler(), - getPublicationsPublicationUuidPatchMockHandler(), + getPublicationsPublicationUuidPostMockHandler(), getPublicationsPublicationUuidVersionPostMockHandler(), getPublicationsPublicationUuidVersionsGetMockHandler(), getPublicationVersionsVersionUuidGetMockHandler(), @@ -17707,6 +17888,10 @@ export const getOmgevingsbeleidAPIMock = () => [ getPublicationVersionsVersionUuidPackagesPostMockHandler(), getPublicationPackagesGetMockHandler(), getPublicationPackagesPackageUuidDownloadGetMockHandler(), + getPublicationPackagesPackageUuidReportPostMockHandler(), + getPublicationReportsGetMockHandler(), + getPublicationReportsReportUuidGetMockHandler(), + getPublicationReportsReportUuidDownloadGetMockHandler(), getLoginAccessTokenPostMockHandler(), getPasswordResetPostMockHandler(), getHealthCheckHealthGetMockHandler(), diff --git a/src/api/fetchers.schemas.ts b/src/api/fetchers.schemas.ts index 899d8b1d..4e2376f1 100644 --- a/src/api/fetchers.schemas.ts +++ b/src/api/fetchers.schemas.ts @@ -13,6 +13,13 @@ export type PasswordResetPostParams = { new_password: string } +export type PublicationReportsGetParams = { + package_uuid?: string + report_status?: ReportStatusType + offset?: number + limit?: number +} + export type PublicationPackagesGetParams = { version_uuid?: string offset?: number @@ -646,6 +653,11 @@ export interface VisieAlgemeenPatch { Title?: string | null } +export interface VisieAlgemeenFullStatics { + Owner_1?: UserShort + Owner_2?: UserShort +} + export type VisieAlgemeenFullObjectStatics = VisieAlgemeenFullStatics | null export interface VisieAlgemeenExtendedStatics { @@ -656,6 +668,21 @@ export interface VisieAlgemeenExtendedStatics { export type VisieAlgemeenExtendedObjectStatics = VisieAlgemeenExtendedStatics | null +export interface VisieAlgemeenExtended { + Adjust_On?: string | null + Code?: string + Created_By?: UserShort + Created_Date?: string + End_Validity?: string | null + Modified_By?: UserShort + Modified_Date?: string + Object_ID?: number + ObjectStatics?: VisieAlgemeenExtendedObjectStatics + Start_Validity?: string | null + Title?: string + UUID?: string +} + export interface VisieAlgemeenBasic { Adjust_On?: string | null Code?: string @@ -767,11 +794,6 @@ export interface UserShort { UUID: string } -export interface VisieAlgemeenFullStatics { - Owner_1?: UserShort - Owner_2?: UserShort -} - export interface VisieAlgemeenFull { Adjust_On?: string | null Code?: string @@ -789,21 +811,6 @@ export interface VisieAlgemeenFull { UUID?: string } -export interface VisieAlgemeenExtended { - Adjust_On?: string | null - Code?: string - Created_By?: UserShort - Created_Date?: string - End_Validity?: string | null - Modified_By?: UserShort - Modified_Date?: string - Object_ID?: number - ObjectStatics?: VisieAlgemeenExtendedObjectStatics - Start_Validity?: string | null - Title?: string - UUID?: string -} - export interface UserCreateResponse { Email: string Password: string @@ -826,6 +833,11 @@ export interface User { UUID: string } +export interface UploadPackageReportResponse { + Duplicate_Count: number + Status: ReportStatusType +} + export type TemplateEditObjectTemplates = { [key: string]: string } | null export type TemplateEditDocumentType = DocumentType | null @@ -904,6 +916,20 @@ export interface RequestAcknowledgedRelation { Object_Type: string } +/** + * An enumeration. + */ +export type ReportStatusType = + (typeof ReportStatusType)[keyof typeof ReportStatusType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ReportStatusType = { + Not_Applicable: 'Not Applicable', + Pending: 'Pending', + Valid: 'Valid', + Failed: 'Failed', +} as const + export interface ReadRelationShort { Description?: string | null Object_ID: number @@ -957,12 +983,15 @@ export interface ReadRelation { Title?: string | null } +export type PublicationVersionShortBillMetadata = { [key: string]: any } + export interface PublicationVersionShort { Announcement_Date?: string + Bill_Metadata: PublicationVersionShortBillMetadata Created_Date: string Effective_Date?: string Environment_UUID: string - Locked: boolean + Is_Locked: boolean Modified_Date: string Module_Status: ModuleStatus Procedure_Type: string @@ -1008,8 +1037,8 @@ export interface PublicationVersion { Created_Date: string Effective_Date?: string Environment: PublicationEnvironment + Is_Locked: boolean Is_Valid?: boolean - Locked: boolean Modified_Date: string Module_Status: ModuleStatus Procedural: PublicationVersionProcedural @@ -1024,6 +1053,7 @@ export interface PublicationTemplate { Created_Date: string Description: string Document_Type: string + Field_Map: string[] Is_Active: boolean Modified_Date: string Object_Templates: PublicationTemplateObjectTemplates @@ -1039,6 +1069,29 @@ export interface PublicationShort { Modified_Date: string Module_ID: number Template_UUID?: string + Title: string + UUID: string +} + +export interface PublicationPackageReportShort { + Created_Date: string + Filename: string + Main_Outcome: string + Package_UUID: string + Report_Status: string + UUID: string +} + +export interface PublicationPackageReport { + Created_Date: string + Filename: string + Main_Outcome: string + Package_UUID: string + Report_Status: string + Source_Document: string + Sub_Delivery_ID: string + Sub_Outcome: string + Sub_Progress: string UUID: string } @@ -1054,12 +1107,13 @@ export interface PublicationPackageCreate { export interface PublicationPackage { Created_By_UUID: string Created_Date: string - Latest_Download_By_UUID?: string - Latest_Download_Date?: string + Delivery_ID: string Modified_By_UUID: string Modified_Date: string + Package_Type: string + Report_Status: string UUID: string - Validation_Status?: string + Zip: PackageZipShort } export interface PublicationEnvironment { @@ -1082,6 +1136,7 @@ export interface PublicationEnvironment { export interface PublicationEdit { Template_UUID?: string + Title?: string } export interface PublicationCreatedResponse { @@ -1092,6 +1147,7 @@ export interface PublicationCreate { Document_Type: DocumentType Module_ID: number Template_UUID: string + Title: string } export interface PublicationAOJ { @@ -1108,6 +1164,7 @@ export interface Publication { Modified_Date: string Module_ID: number Template_UUID?: string + Title: string UUID: string } @@ -1368,6 +1425,16 @@ export interface PagedResponsePublicationPackage { total: number } +/** + * Wrap any response schema and add pagination metadata. + */ +export interface PagedResponsePublicationPackageReportShort { + limit?: number + offset?: number + results: PublicationPackageReportShort[] + total: number +} + /** * Wrap any response schema and add pagination metadata. */ @@ -1588,6 +1655,13 @@ export interface PagedResponseAmbitieBasic { total: number } +export interface PackageZipShort { + Filename: string + Latest_Download_By_UUID?: string + Latest_Download_Date?: string + UUID: string +} + /** * An enumeration. */ @@ -2249,6 +2323,10 @@ export interface CompleteModule { ObjectSpecifiekeGeldigheden?: ObjectSpecifiekeGeldigheid[] } +export interface BodyFastapiHandlerPublicationPackagesPackageUuidReportPost { + uploaded_files: Blob[] +} + export interface BodyFastapiHandlerLoginAccessTokenPost { client_id?: string client_secret?: string @@ -2267,6 +2345,7 @@ export interface BillMetadata { export interface BillCompact { Amendment_Article?: string Closing?: string + Component_Name?: string Custom_Articles?: Article[] Preamble?: string Signed?: string diff --git a/src/api/fetchers.ts b/src/api/fetchers.ts index 6ae65079..386ffe35 100644 --- a/src/api/fetchers.ts +++ b/src/api/fetchers.ts @@ -50,6 +50,7 @@ import type { BeleidsregelsValidGetParams, BeleidsregelsValidLineageIdGetParams, BodyFastapiHandlerLoginAccessTokenPost, + BodyFastapiHandlerPublicationPackagesPackageUuidReportPost, CompleteModule, EditAcknowledgedRelation, EditUser, @@ -137,6 +138,7 @@ import type { PagedResponsePublicationAOJ, PagedResponsePublicationEnvironment, PagedResponsePublicationPackage, + PagedResponsePublicationPackageReportShort, PagedResponsePublicationTemplate, PagedResponsePublicationVersionShort, PagedResponseSearchObject, @@ -165,7 +167,10 @@ import type { PublicationEnvironmentsGetParams, PublicationPackageCreate, PublicationPackageCreatedResponse, + PublicationPackageReport, PublicationPackagesGetParams, + PublicationReportsGetParams, + PublicationTemplate, PublicationTemplatesGetParams, PublicationVersion, PublicationVersionCreate, @@ -189,6 +194,7 @@ import type { TemplateCreate, TemplateCreatedResponse, TemplateEdit, + UploadPackageReportResponse, User, UserCreate, UserCreateResponse, @@ -17423,6 +17429,101 @@ export const usePublicationTemplatesPost = < return useMutation(mutationOptions) } +/** + * @summary Get details of a publication template + */ +export const publicationTemplatesTemplateUuidGet = ( + templateUuid: string, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-templates/${templateUuid}`, + method: 'GET', + signal, + }) +} + +export const getPublicationTemplatesTemplateUuidGetQueryKey = ( + templateUuid: string +) => { + return [`/publication-templates/${templateUuid}`] as const +} + +export const getPublicationTemplatesTemplateUuidGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + templateUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? + getPublicationTemplatesTemplateUuidGetQueryKey(templateUuid) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => + publicationTemplatesTemplateUuidGet(templateUuid, signal) + + return { + queryKey, + queryFn, + enabled: !!templateUuid, + ...queryOptions, + } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationTemplatesTemplateUuidGetQueryResult = NonNullable< + Awaited> +> +export type PublicationTemplatesTemplateUuidGetQueryError = HTTPValidationError + +/** + * @summary Get details of a publication template + */ +export const usePublicationTemplatesTemplateUuidGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + templateUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationTemplatesTemplateUuidGetQueryOptions( + templateUuid, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + /** * @summary Edit publication template */ @@ -17976,30 +18077,30 @@ export const usePublicationsPublicationUuidGet = < /** * @summary Edit an existing publication */ -export const publicationsPublicationUuidPatch = ( +export const publicationsPublicationUuidPost = ( publicationUuid: string, publicationEdit: PublicationEdit ) => { - return customInstance({ + return customInstance({ url: `/publications/${publicationUuid}`, - method: 'PATCH', + method: 'POST', headers: { 'Content-Type': 'application/json' }, data: publicationEdit, }) } -export const getPublicationsPublicationUuidPatchMutationOptions = < +export const getPublicationsPublicationUuidPostMutationOptions = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, { publicationUuid: string; data: PublicationEdit }, TContext > }): UseMutationOptions< - Awaited>, + Awaited>, TError, { publicationUuid: string; data: PublicationEdit }, TContext @@ -18007,39 +18108,39 @@ export const getPublicationsPublicationUuidPatchMutationOptions = < const { mutation: mutationOptions } = options ?? {} const mutationFn: MutationFunction< - Awaited>, + Awaited>, { publicationUuid: string; data: PublicationEdit } > = props => { const { publicationUuid, data } = props ?? {} - return publicationsPublicationUuidPatch(publicationUuid, data) + return publicationsPublicationUuidPost(publicationUuid, data) } return { mutationFn, ...mutationOptions } } -export type PublicationsPublicationUuidPatchMutationResult = NonNullable< - Awaited> +export type PublicationsPublicationUuidPostMutationResult = NonNullable< + Awaited> > -export type PublicationsPublicationUuidPatchMutationBody = PublicationEdit -export type PublicationsPublicationUuidPatchMutationError = HTTPValidationError +export type PublicationsPublicationUuidPostMutationBody = PublicationEdit +export type PublicationsPublicationUuidPostMutationError = HTTPValidationError /** * @summary Edit an existing publication */ -export const usePublicationsPublicationUuidPatch = < +export const usePublicationsPublicationUuidPost = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited>, TError, { publicationUuid: string; data: PublicationEdit }, TContext > }) => { const mutationOptions = - getPublicationsPublicationUuidPatchMutationOptions(options) + getPublicationsPublicationUuidPostMutationOptions(options) return useMutation(mutationOptions) } @@ -18661,6 +18762,377 @@ export const usePublicationPackagesPackageUuidDownloadGet = < return query } +/** + * @summary Record the submission response from lvbb of a publication package + */ +export const publicationPackagesPackageUuidReportPost = ( + packageUuid: string, + bodyFastapiHandlerPublicationPackagesPackageUuidReportPost: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost +) => { + const formData = new FormData() + bodyFastapiHandlerPublicationPackagesPackageUuidReportPost.uploaded_files.forEach( + value => formData.append('uploaded_files', value) + ) + + return customInstance({ + url: `/publication-packages/${packageUuid}/report`, + method: 'POST', + headers: { 'Content-Type': 'multipart/form-data' }, + data: formData, + }) +} + +export const getPublicationPackagesPackageUuidReportPostMutationOptions = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { + packageUuid: string + data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost + }, + TContext + > +}): UseMutationOptions< + Awaited>, + TError, + { + packageUuid: string + data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost + }, + TContext +> => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited>, + { + packageUuid: string + data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost + } + > = props => { + const { packageUuid, data } = props ?? {} + + return publicationPackagesPackageUuidReportPost(packageUuid, data) + } + + return { mutationFn, ...mutationOptions } +} + +export type PublicationPackagesPackageUuidReportPostMutationResult = + NonNullable< + Awaited> + > +export type PublicationPackagesPackageUuidReportPostMutationBody = + BodyFastapiHandlerPublicationPackagesPackageUuidReportPost +export type PublicationPackagesPackageUuidReportPostMutationError = + HTTPValidationError + +/** + * @summary Record the submission response from lvbb of a publication package + */ +export const usePublicationPackagesPackageUuidReportPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { + packageUuid: string + data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost + }, + TContext + > +}) => { + const mutationOptions = + getPublicationPackagesPackageUuidReportPostMutationOptions(options) + + return useMutation(mutationOptions) +} + +/** + * @summary List the existing Publication reports + */ +export const publicationReportsGet = ( + params?: PublicationReportsGetParams, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-reports`, + method: 'GET', + params, + signal, + }) +} + +export const getPublicationReportsGetQueryKey = ( + params?: PublicationReportsGetParams +) => { + return [`/publication-reports`, ...(params ? [params] : [])] as const +} + +export const getPublicationReportsGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationReportsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? getPublicationReportsGetQueryKey(params) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => publicationReportsGet(params, signal) + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationReportsGetQueryResult = NonNullable< + Awaited> +> +export type PublicationReportsGetQueryError = HTTPValidationError + +/** + * @summary List the existing Publication reports + */ +export const usePublicationReportsGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationReportsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationReportsGetQueryOptions(params, options) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Get details of a publication report + */ +export const publicationReportsReportUuidGet = ( + reportUuid: string, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-reports/${reportUuid}`, + method: 'GET', + signal, + }) +} + +export const getPublicationReportsReportUuidGetQueryKey = ( + reportUuid: string +) => { + return [`/publication-reports/${reportUuid}`] as const +} + +export const getPublicationReportsReportUuidGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + reportUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? + getPublicationReportsReportUuidGetQueryKey(reportUuid) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => publicationReportsReportUuidGet(reportUuid, signal) + + return { + queryKey, + queryFn, + enabled: !!reportUuid, + ...queryOptions, + } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationReportsReportUuidGetQueryResult = NonNullable< + Awaited> +> +export type PublicationReportsReportUuidGetQueryError = HTTPValidationError + +/** + * @summary Get details of a publication report + */ +export const usePublicationReportsReportUuidGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + reportUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationReportsReportUuidGetQueryOptions( + reportUuid, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Download publication package report + */ +export const publicationReportsReportUuidDownloadGet = ( + reportUuid: string, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-reports/${reportUuid}/download`, + method: 'GET', + signal, + }) +} + +export const getPublicationReportsReportUuidDownloadGetQueryKey = ( + reportUuid: string +) => { + return [`/publication-reports/${reportUuid}/download`] as const +} + +export const getPublicationReportsReportUuidDownloadGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + reportUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? + getPublicationReportsReportUuidDownloadGetQueryKey(reportUuid) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => + publicationReportsReportUuidDownloadGet(reportUuid, signal) + + return { + queryKey, + queryFn, + enabled: !!reportUuid, + ...queryOptions, + } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationReportsReportUuidDownloadGetQueryResult = NonNullable< + Awaited> +> +export type PublicationReportsReportUuidDownloadGetQueryError = + HTTPValidationError + +/** + * @summary Download publication package report + */ +export const usePublicationReportsReportUuidDownloadGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + reportUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationReportsReportUuidDownloadGetQueryOptions( + reportUuid, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + /** * @summary Login an user and receive a JWT token */ diff --git a/src/components/DynamicObject/DynamicObjectForm/DynamicObjectForm.tsx b/src/components/DynamicObject/DynamicObjectForm/DynamicObjectForm.tsx index 2fc9f375..adb3a2d4 100644 --- a/src/components/DynamicObject/DynamicObjectForm/DynamicObjectForm.tsx +++ b/src/components/DynamicObject/DynamicObjectForm/DynamicObjectForm.tsx @@ -20,6 +20,7 @@ interface DynamicObjectFormProps { defaultValues?: { [key: string]: FieldSelectProps['defaultValue'] } + canEdit?: boolean } const DynamicObjectForm = ({ @@ -39,7 +40,8 @@ const DynamicObjectForm = ({ } validateOnMount onSubmit={handleSubmit} - enableReinitialize> + enableReinitialize + validateOnBlur={false}> {props => ( ({ isSubmitting, dirty, defaultValues, + canEdit = true, }: Omit, 'initialData' | 'handleSubmit'> & FormikProps) => { const sections = model.dynamicSections @@ -94,7 +97,7 @@ const ObjectForm = ({ diff --git a/src/components/Form/FieldArray/FieldArray.tsx b/src/components/Form/FieldArray/FieldArray.tsx index 80922a09..3764487d 100644 --- a/src/components/Form/FieldArray/FieldArray.tsx +++ b/src/components/Form/FieldArray/FieldArray.tsx @@ -6,6 +6,7 @@ import { FormikValues, useFormikContext, } from 'formik' +import { twMerge } from 'tailwind-merge' import DynamicObjectField from '@/components/DynamicObject/DynamicObjectForm/DynamicField' import { Model } from '@/config/objects/types' @@ -24,14 +25,23 @@ const FieldArray = ({ variant: 'primary', size: 'large', }, + itemClassName, }: Omit, 'type'> & { model?: Model buttonLabel?: string buttonOptions?: ButtonProps<'button'> + itemClassName?: string }) => { const { values } = useFormikContext() + const nestedProperties = name.split('.') // Split the nested property string + let nestedValue = values // Initialize nestedValue with values object - const groupChildren: any[] = values?.[name] + // Traverse through the nested properties + for (const prop of nestedProperties) { + nestedValue = nestedValue?.[prop] // Access nested property + } + + const groupChildren = nestedValue as any[] return ( <> @@ -48,36 +58,44 @@ const FieldArray = ({ name={name} render={(arrayHelpers: ArrayHelpers) => (
    - {groupChildren?.map((child, childIndex) => ( -
    -
    - {!!arrayLabel && ( - {arrayLabel} - )} - -
    - {fields.map(field => ( - - ))} -
    - ))} + {Array.isArray(groupChildren) && + (groupChildren as any[])?.map( + (child, childIndex) => ( +
    +
    + {!!arrayLabel && ( + {arrayLabel} + )} + +
    + {fields.map(field => ( + + ))} +
    + ) + )}
    +
    + +
    diff --git a/src/components/Publications/PublicationPackages/PublicationPackages.tsx b/src/components/Publications/PublicationPackages/PublicationPackages.tsx index 9ad7d730..6a3f3d55 100644 --- a/src/components/Publications/PublicationPackages/PublicationPackages.tsx +++ b/src/components/Publications/PublicationPackages/PublicationPackages.tsx @@ -2,6 +2,7 @@ import { Notification, Text, formatDate } from '@pzh-ui/components' import { useMemo } from 'react' import { + usePublicationEnvironmentsGet, usePublicationPackagesGet, usePublicationVersionsVersionUuidGet, } from '@/api/fetchers' @@ -21,12 +22,21 @@ const PublicationPackages = (version: PublicationVersionShort) => { version_uuid: version.UUID, }) + const { data: environment } = usePublicationEnvironmentsGet(undefined, { + query: { + select: data => + data.results.find( + environment => environment.UUID === version.Environment_UUID + ), + }, + }) + const { validationPackage, publicationPackage } = useMemo(() => { const validationPackage = packages?.results.find( - pkg => pkg.Package_Event_Type === 'Validatie' + pkg => pkg.Package_Type === 'Validatie' ) const publicationPackage = packages?.results.find( - pkg => pkg.Package_Event_Type === 'Publicatie' + pkg => pkg.Package_Type === 'Publicatie' ) return { validationPackage, publicationPackage } @@ -44,25 +54,29 @@ const PublicationPackages = (version: PublicationVersionShort) => { return { announcementDate, effectiveDate } }, [data]) + const isOfficial = useMemo( + () => environment?.Can_Publicate, + [environment?.Can_Publicate] + ) + return ( <> - {!!!packages?.results.length && ( + {!data?.Is_Valid && !!!validationPackage && ( )}
    - {version.Is_Official ? 'Validatie' : 'Publicatie'} + {isOfficial ? 'Validatie' : 'Publicatie'} @@ -71,29 +85,33 @@ const PublicationPackages = (version: PublicationVersionShort) => { type="download" eventType="Validatie" isActive={!!validationPackage} - isLast={!version.Is_Official} - isSucceeded={!!validationPackage?.Latest_Download_Date} + isLast={!isOfficial} + isSucceeded={!!validationPackage?.Zip.Latest_Download_Date} /> - {version.Is_Official && ( + {isOfficial && ( )}
    - {version.Is_Official && - validationPackage?.Validation_Status === 'Valid' && + {isOfficial && !data?.Is_Valid && !!validationPackage && ( + + )} + + {isOfficial && + validationPackage?.Report_Status === 'Valid' && !!!publicationPackage && ( { /> )} - {version.Is_Official && ( -
    - - Publicatie - - - - -
    - )} - - {version.Is_Official && - publicationPackage?.Validation_Status === 'Valid' && ( + {isOfficial && + validationPackage?.Report_Status === 'Failed' && + !!!publicationPackage && ( )} + + {isOfficial && ( + <> + {validationPackage?.Report_Status === 'Valid' && + !data?.Is_Valid && ( + + )} + +
    + + Publicatie + + + + +
    + + )} + + {isOfficial && publicationPackage?.Report_Status === 'Valid' && ( + + )} ) } diff --git a/src/components/Publications/PublicationPackages/components/PackageStep.tsx b/src/components/Publications/PublicationPackages/components/PackageStep.tsx index c08dbe6c..c7949dcc 100644 --- a/src/components/Publications/PublicationPackages/components/PackageStep.tsx +++ b/src/components/Publications/PublicationPackages/components/PackageStep.tsx @@ -38,9 +38,7 @@ const PackageStep = ({ { query: { select: data => - data.results.find( - pkg => pkg.Package_Event_Type === eventType - ), + data.results.find(pkg => pkg.Package_Type === eventType), }, } ) @@ -79,13 +77,7 @@ const PackageStep = ({ - {STEP_LABEL[type]} ( - {`${!version.Is_Official ? 'interne ' : ''}${ - eventType === 'Publicatie' || !version.Is_Official - ? 'publicatie' - : 'validatie' - }`} - ) + {STEP_LABEL[type]} {type === 'upload' && !isSucceeded && ( diff --git a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx index 5c74c0df..c149de4a 100644 --- a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx +++ b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx @@ -1,11 +1,14 @@ import { Button, FileTrigger, Tag, Text, formatDate } from '@pzh-ui/components' import { Plus } from '@pzh-ui/icons' import { useQuery, useQueryClient } from '@tanstack/react-query' +import clsx from 'clsx' import { useMemo, useState } from 'react' import { getPublicationPackagesGetQueryKey, getPublicationsPublicationUuidVersionsGetQueryKey, + usePublicationPackagesPackageUuidReportPost, + usePublicationReportsGet, usePublicationVersionsVersionUuidPackagesPost, } from '@/api/fetchers' import { @@ -135,9 +138,9 @@ const DownloadAction = ({ ) const date = useMemo(() => { - if (!!publicationPackage?.Latest_Download_Date) { + if (!!publicationPackage?.Zip.Latest_Download_Date) { return formatDate( - new Date(publicationPackage.Latest_Download_Date), + new Date(publicationPackage.Zip.Latest_Download_Date), 'dd-MM-yyyy' ) } @@ -145,14 +148,14 @@ const DownloadAction = ({ return (
    - {!!publicationPackage?.Latest_Download_Date && ( + {!!publicationPackage?.Zip.Latest_Download_Date && ( Laatst gedownload op {date} )}
    @@ -254,19 +279,17 @@ const UploadAction = ({ }}> diff --git a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx index 6cef2940..13bbab95 100644 --- a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx +++ b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx @@ -2,6 +2,7 @@ import { Button, Divider, FormikDate, + FormikInput, FormikRadioGroup, FormikRte, FormikSelect, @@ -112,46 +113,71 @@ const PublicationVersionForm = ({ name="Bill_Compact.Closing" label="Sluiting" placeholder="Bijv. Gegeven te 's-Gravenhage, 27 september 2023" - required /> -
    -
    - -
    -
    - -
    -
    - + +
    + Procedureverloop + +
    +
    + +
    +
    + +
    +
    + +
    -
    - +
    + +
    + Juridische data + +
    +
    + +
    +
    + +
    + + + )}
    @@ -197,22 +223,22 @@ const Articles = () => ( { - const { moduleId } = useParams() - const [currPage, setCurrPage] = useState(1) const { data, isFetching } = usePublicationsPublicationUuidVersionsGet( @@ -39,20 +37,6 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { } ) - const { data: statusOptions } = useModulesModuleIdStatusGet( - parseInt(moduleId!), - { - query: { - enabled: !!moduleId, - select: data => - data.map(status => ({ - label: status.Status, - value: status.ID, - })), - }, - } - ) - return ( <>
    @@ -64,27 +48,20 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { - - - + + + - {data?.results.map(bill => { - const status = statusOptions?.find( - option => option.value === bill.Module_Status.ID - ) - - return ( - - ) - })} + {data?.results.map(version => ( + + ))}
    Gebaseerd op ModulestatusType besluitDoelDatum aangemaaktPublicatieomgevingGebaseerd op Modulestatus Actie
    @@ -104,13 +81,21 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { const VersionRow = ({ publication, - status, ...version -}: PublicationVersionShort & { publication: Publication; status?: string }) => { +}: PublicationVersionShort & { publication: Publication }) => { const { moduleId } = useParams() const setActiveModal = useModalStore(state => state.setActiveModal) + const { data: environment } = usePublicationEnvironmentsGet(undefined, { + query: { + select: data => + data.results.find( + environment => environment.UUID === version.Environment_UUID + ), + }, + }) + const downloadDiff = async ({ moduleId, Module_Status_ID, @@ -137,14 +122,19 @@ const VersionRow = ({ enabled: false, }) + const date = useMemo( + () => formatDate(new Date(version.Created_Date), 'dd-MM-yyyy'), + [version.Created_Date] + ) + return (
    {status}{version.Procedure_Type}{version.Is_Official ? 'Officiële' : 'Interne'} publicatie{date}{environment?.Title}{version.Module_Status.Status}
    - {!version.Locked && ( + {!version.Is_Locked && (
    diff --git a/src/components/Publications/Publications.tsx b/src/components/Publications/Publications.tsx index bc4249ec..d1f6c4b8 100644 --- a/src/components/Publications/Publications.tsx +++ b/src/components/Publications/Publications.tsx @@ -24,10 +24,8 @@ const Publications = ({ type }: PublicationsProps) => { ) return ( -
    - - {type} - +
    + {type} {isPending ? (
    diff --git a/src/components/Sidebar/Sidebar.tsx b/src/components/Sidebar/Sidebar.tsx index ca8accbd..ed885869 100644 --- a/src/components/Sidebar/Sidebar.tsx +++ b/src/components/Sidebar/Sidebar.tsx @@ -9,7 +9,7 @@ import { ModelType } from '@/config/objects/types' import usePermissions from '@/hooks/usePermissions' const Sidebar = () => { - const { canEditUser, canCreatePublicationTemplates } = usePermissions() + const { canEditUser, canCreatePublicationTemplate } = usePermissions() const [expanded, setExpanded] = useState(false) @@ -92,7 +92,7 @@ const Sidebar = () => { )} - {canCreatePublicationTemplates && ( + {canCreatePublicationTemplate && ( = { defaults: { singular: 'publicatietemplate', singularReadable: 'publicatietemplate', @@ -21,6 +27,17 @@ const model: Model = { description: 'Geef aan voor welk instrument dit template is, en geef er een titel en omschrijving aan', fields: [ + { + type: 'select', + label: 'Instrument', + placeholder: 'Kies het instrument', + name: 'Document_Type', + options: Object.keys(DocumentType).map(type => ({ + label: type, + value: type, + })), + required: true, + }, { name: 'Title', label: 'Titel', @@ -28,21 +45,11 @@ const model: Model = { required: true, validation: schemaDefaults.title, }, - { - type: 'select', - label: 'Instrument', - placeholder: 'Kies het instrument', - name: 'Instrument', - options: [ - { label: 'Visie', value: 'Visie' }, - { label: 'Programma', value: 'Programma' }, - ], - required: true, - }, { name: 'Description', label: 'Omschrijving', type: 'textarea', + required: true, }, ], }, @@ -55,6 +62,31 @@ const model: Model = { name: 'Text_Template', label: 'Text template', type: 'textarea', + required: true, + }, + ], + }, + { + title: 'Object types', + description: 'Selecteer een of meerdere object types.', + fields: [ + { + name: 'Object_Types', + type: 'select', + label: 'Object types', + options: Object.keys(models) + .filter(model => !!!models[model].defaults.atemporal) + .map(model => ({ + label: models[model].defaults.singularCapitalize, + value: models[model].defaults.singular, + })), + placeholder: 'Selecteer een of meerdere object types', + isMulti: true, + required: true, + validation: array(schemaDefaults.requiredString(), { + required_error: 'Dit veld is verplicht.', + invalid_type_error: 'Dit veld is verplicht.', + }), }, ], }, @@ -64,21 +96,60 @@ const model: Model = { 'Geef per gebruikt object aan hoe het moet worden getoond in de export.', fields: [ { - name: 'Object_Template', + name: 'Object_Templates', arrayLabel: 'Object Template', type: 'array', fields: [ { - type: 'text', + type: 'select', placeholder: 'key', - name: 'Key', + name: 'key', + required: true, + options: Object.keys(models) + .filter( + model => !!!models[model].defaults.atemporal + ) + .map(model => ({ + label: models[model].defaults + .singularCapitalize, + value: models[model].defaults.singular, + })), }, { type: 'textarea', placeholder: 'value', - name: 'Value', + name: 'value', + required: true, }, ], + validation: array( + object({ + key: schemaDefaults.requiredString(), + value: schemaDefaults.requiredString(), + }) + ), + }, + ], + }, + { + title: 'Field map', + fields: [ + { + name: 'Field_Map', + type: 'select', + label: 'Field map', + placeholder: 'Vul een waarde in en druk op enter', + isMulti: true, + validation: array(schemaDefaults.requiredString(), { + required_error: 'Dit veld is verplicht.', + invalid_type_error: 'Dit veld is verplicht.', + }), + isCreatable: true, + menuIsOpen: false, + components: { + DropdownIndicator: null, + }, + required: true, }, ], }, diff --git a/src/hooks/usePermissions.ts b/src/hooks/usePermissions.ts index da4c952b..ed864a1e 100644 --- a/src/hooks/usePermissions.ts +++ b/src/hooks/usePermissions.ts @@ -12,7 +12,20 @@ export interface Permissions { canCreateUser: boolean canEditUser: boolean canResetUserPassword: boolean - canCreatePublicationTemplates: boolean + canCreatePublicationTemplate: boolean + canEditPublicationTemplate: boolean + canViewPublicationTemplate: boolean + canViewPublicationEnvironment: boolean + canViewPublicationAoj: boolean + canCreatePublication: boolean + canEditPublication: boolean + canViewPublication: boolean + canCreatePublicationVersion: boolean + canEditPublicationVersion: boolean + canViewPublicationVersion: boolean + canCreatePublicationPackage: boolean + canViewPublicationPackage: boolean + canDownloadPublicationPackage: boolean } const usePermissions = (): Permissions => { @@ -30,7 +43,20 @@ const usePermissions = (): Permissions => { canCreateUser: false, canEditUser: false, canResetUserPassword: false, - canCreatePublicationTemplates: false, + canCreatePublicationTemplate: false, + canEditPublicationTemplate: false, + canViewPublicationTemplate: false, + canViewPublicationEnvironment: false, + canViewPublicationAoj: false, + canCreatePublication: false, + canEditPublication: false, + canViewPublication: false, + canCreatePublicationVersion: false, + canEditPublicationVersion: false, + canViewPublicationVersion: false, + canCreatePublicationPackage: false, + canViewPublicationPackage: false, + canDownloadPublicationPackage: false, } switch (role) { @@ -53,7 +79,20 @@ const usePermissions = (): Permissions => { canCreateUser: true, canEditUser: true, canResetUserPassword: true, - canCreatePublicationTemplates: true, + canCreatePublicationTemplate: true, + canEditPublicationTemplate: true, + canViewPublicationTemplate: true, + canViewPublicationEnvironment: true, + canViewPublicationAoj: true, + canCreatePublication: true, + canEditPublication: true, + canViewPublication: true, + canCreatePublicationVersion: true, + canEditPublicationVersion: true, + canViewPublicationVersion: true, + canCreatePublicationPackage: true, + canViewPublicationPackage: true, + canDownloadPublicationPackage: true, } case 'Behandelend Ambtenaar': return { diff --git a/src/pages/protected/DynamicObject/ObjectCreate/ObjectCreate.tsx b/src/pages/protected/DynamicObject/ObjectCreate/ObjectCreate.tsx index 958e7212..f42eb462 100644 --- a/src/pages/protected/DynamicObject/ObjectCreate/ObjectCreate.tsx +++ b/src/pages/protected/DynamicObject/ObjectCreate/ObjectCreate.tsx @@ -125,7 +125,6 @@ const ObjectCreate = ({ model }: ObjectCreateProps) => { initialData={initialData} handleSubmit={handleSubmit} onCancel={() => navigate(`/muteer/${plural}`)} - isLoading={false} />
    diff --git a/src/pages/protected/PublicationTemplates/PublicationTemplateCreate/PublicationTemplateCreate.tsx b/src/pages/protected/PublicationTemplates/PublicationTemplateCreate/PublicationTemplateCreate.tsx index ca7ae738..ed5411fe 100644 --- a/src/pages/protected/PublicationTemplates/PublicationTemplateCreate/PublicationTemplateCreate.tsx +++ b/src/pages/protected/PublicationTemplates/PublicationTemplateCreate/PublicationTemplateCreate.tsx @@ -1,16 +1,30 @@ import { Heading } from '@pzh-ui/components' +import { useQueryClient } from '@tanstack/react-query' +import { FormikHelpers } from 'formik' import { useMemo } from 'react' import { useNavigate } from 'react-router-dom' +import { + getPublicationTemplatesGetQueryKey, + usePublicationTemplatesPost, +} from '@/api/fetchers' +import { TemplateCreate } from '@/api/fetchers.schemas' import DynamicObjectForm from '@/components/DynamicObject/DynamicObjectForm' +import { Model } from '@/config/objects/types' import model from '@/config/publicationTemplates' import MutateLayout from '@/templates/MutateLayout' +import handleError from '@/utils/handleError' +import { toastNotification } from '@/utils/toastNotification' const PublicationTemplateCreate = () => { + const queryClient = useQueryClient() + const navigate = useNavigate() const { plural, pluralCapitalize, singularCapitalize } = model.defaults + const { mutateAsync } = usePublicationTemplatesPost() + /** * Format initialData based on object fields */ @@ -28,7 +42,25 @@ const PublicationTemplateCreate = () => { return objectData }, []) - const handleSubmit = () => {} + const handleSubmit = ( + payload: TemplateCreate, + helpers: FormikHelpers + ) => { + mutateAsync( + { data: payload }, + { + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: getPublicationTemplatesGetQueryKey(), + refetchType: 'all', + }) + + toastNotification('saved') + navigate('/muteer/publicatietemplates') + }, + } + ).catch(err => handleError(err.response, helpers)) + } const breadcrumbPaths = [ { name: 'Dashboard', path: '/muteer' }, @@ -49,7 +81,7 @@ const PublicationTemplateCreate = () => { navigate(`/muteer/${plural}`)} diff --git a/src/pages/protected/PublicationTemplates/PublicationTemplateEdit/PublicationTemplateEdit.tsx b/src/pages/protected/PublicationTemplates/PublicationTemplateEdit/PublicationTemplateEdit.tsx index 9db352b5..1c46a6e6 100644 --- a/src/pages/protected/PublicationTemplates/PublicationTemplateEdit/PublicationTemplateEdit.tsx +++ b/src/pages/protected/PublicationTemplates/PublicationTemplateEdit/PublicationTemplateEdit.tsx @@ -1,17 +1,43 @@ -import { Heading } from '@pzh-ui/components' +import { Badge, Heading } from '@pzh-ui/components' +import { useQueryClient } from '@tanstack/react-query' +import { FormikHelpers } from 'formik' import { useMemo } from 'react' -import { useNavigate } from 'react-router-dom' +import { useNavigate, useParams } from 'react-router-dom' +import { + getPublicationTemplatesGetQueryKey, + usePublicationTemplatesTemplateUuidGet, + usePublicationTemplatesTemplateUuidPost, +} from '@/api/fetchers' +import { TemplateEdit } from '@/api/fetchers.schemas' import DynamicObjectForm from '@/components/DynamicObject/DynamicObjectForm' +import ToggleSwitch from '@/components/ToggleSwitch' +import { Model } from '@/config/objects/types' import model from '@/config/publicationTemplates' +import usePermissions from '@/hooks/usePermissions' import MutateLayout from '@/templates/MutateLayout' +import handleError from '@/utils/handleError' +import { toastNotification } from '@/utils/toastNotification' const PublicationTemplateEdit = () => { + const queryClient = useQueryClient() + + const { uuid } = useParams() + const navigate = useNavigate() + const { canEditPublicationTemplate } = usePermissions() + const { plural, pluralCapitalize, singularCapitalize } = model.defaults - const data = useMemo(() => {}, []) + const { data, isFetching, queryKey } = + usePublicationTemplatesTemplateUuidGet(uuid!, { + query: { + enabled: !!uuid, + }, + }) + + const { mutate, mutateAsync } = usePublicationTemplatesTemplateUuidPost() /** * Format initialData based on object fields @@ -24,13 +50,75 @@ const PublicationTemplateEdit = () => { const objectData = {} as { [key in (typeof fields)[number]]: any } fields?.forEach(field => { + if ( + field === 'Object_Templates' && + !!data?.[field as keyof typeof data] + ) { + return (objectData[field] = Object.keys(data[field]).map( + template => ({ + key: template, + value: data[field][template], + }) + )) + } + return (objectData[field] = data?.[field as keyof typeof data]) }) return objectData }, [data]) - const handleSubmit = () => {} + const handleSubmit = ( + payload: TemplateEdit, + helpers: FormikHelpers + ) => { + if (!!payload.Object_Templates?.length) { + payload.Object_Templates = (payload.Object_Templates as any).reduce( + (acc: any, curr: { key: string; value: string }) => ( + (acc[curr.key] = curr.value), acc + ), + {} + ) + } + + mutateAsync({ templateUuid: uuid!, data: payload }) + .then(() => { + Promise.all([ + queryClient.invalidateQueries({ + queryKey: getPublicationTemplatesGetQueryKey(), + refetchType: 'all', + }), + queryClient.invalidateQueries({ queryKey }), + ]).then(() => navigate('/muteer/publicatietemplates')) + }) + .catch(err => + handleError(err.response, helpers) + ) + } + + const handleTemplateStatus = (activate: boolean) => { + if (!data) return + + mutate( + { templateUuid: uuid!, data: { Is_Active: activate } }, + { + onSuccess: () => + Promise.all([ + queryClient.invalidateQueries({ + queryKey: getPublicationTemplatesGetQueryKey(), + refetchType: 'all', + }), + queryClient.invalidateQueries({ queryKey }), + ]).then(() => + toastNotification( + activate + ? 'templateActivated' + : 'templateDeactivated' + ) + ), + } + ) + } const breadcrumbPaths = [ { name: 'Dashboard', path: '/muteer' }, @@ -45,17 +133,39 @@ const PublicationTemplateEdit = () => { -
    - +
    + {singularCapitalize} bewerken +
    +
    + + +
    +
    +
    + +
    navigate(`/muteer/${plural}`)} - isLoading={false} + isLoading={isFetching} + canEdit={canEditPublicationTemplate} />
    diff --git a/src/pages/protected/PublicationTemplates/PublicationTemplateOverview/PublicationTemplateOverview.tsx b/src/pages/protected/PublicationTemplates/PublicationTemplateOverview/PublicationTemplateOverview.tsx index 3efa252c..6abb06ff 100644 --- a/src/pages/protected/PublicationTemplates/PublicationTemplateOverview/PublicationTemplateOverview.tsx +++ b/src/pages/protected/PublicationTemplates/PublicationTemplateOverview/PublicationTemplateOverview.tsx @@ -1,36 +1,99 @@ -import { Button, Heading, Table, formatDate } from '@pzh-ui/components' +import { + Button, + Heading, + TabItem, + Table, + Tabs, + formatDate, +} from '@pzh-ui/components' import { AngleRight } from '@pzh-ui/icons' -import { useMemo } from 'react' +import { keepPreviousData } from '@tanstack/react-query' +import { useMemo, useState } from 'react' import { useNavigate } from 'react-router-dom' -import { LoaderSpinner } from '@/components/Loader' +import { usePublicationTemplatesGet } from '@/api/fetchers' import model from '@/config/publicationTemplates' +import usePermissions from '@/hooks/usePermissions' import MutateLayout from '@/templates/MutateLayout' +const PAGE_LIMIT = 20 + +type TabType = 'active' | 'inactive' + const PublicationTemplateOverview = () => { - const navigate = useNavigate() + const { canCreatePublicationTemplate } = usePermissions() + + const [activeTab, setActiveTab] = useState('active') const { plural, pluralCapitalize, prefixNewObject, singularReadable } = model.defaults - const isFetching = false + const breadcrumbPaths = [ + { name: 'Dashboard', path: '/muteer' }, + { name: pluralCapitalize, isCurrent: true }, + ] - const data = useMemo( - () => [ - { - Title: 'Visie WWW', - UUID: '1', - Instrument: 'Visie', - Created_Date: '2021-08-09T05:32:29.417000', - }, - { - Title: 'Visie Herziening 2024', - UUID: '2', - Instrument: 'Visie', - Created_Date: '2021-08-09T05:32:29.417000', + return ( + +
    +
    + {pluralCapitalize} + + {canCreatePublicationTemplate && ( + + )} +
    + + + setActiveTab(key as typeof activeTab) + }> + + + + + + + +
    +
    + ) +} + +interface TabTableProps { + type: TabType + activeTab: TabType +} + +const TabTable = ({ type, activeTab }: TabTableProps) => { + const navigate = useNavigate() + + const { canViewPublicationTemplate } = usePermissions() + + const { plural } = model.defaults + + const [{ pageIndex }, setPagination] = useState({ + pageIndex: 1, + pageSize: PAGE_LIMIT, + }) + + const { data, isFetching } = usePublicationTemplatesGet( + { + limit: PAGE_LIMIT, + offset: (pageIndex - 1) * PAGE_LIMIT, + only_active: activeTab === 'active', + }, + { + query: { + placeholderData: keepPreviousData, }, - ], - [] + } ) /** @@ -44,7 +107,7 @@ const PublicationTemplateOverview = () => { }, { header: 'Instrument', - accessorKey: 'Instrument', + accessorKey: 'Document_Type', }, { header: 'Aanmaakdatum', @@ -59,63 +122,49 @@ const PublicationTemplateOverview = () => { */ const formattedData = useMemo( () => - data?.map(({ Title, Instrument, Created_Date, UUID }) => ({ - Title, - Instrument, - Created_Date: ( - - {formatDate( - new Date(Created_Date + 'Z'), - 'cccccc d MMMM yyyy, p' - )} - - - ), - onClick: () => navigate(`/muteer/${plural}/${UUID}`), - })) || [], - [data, plural, navigate] + data?.results.map( + ({ Title, Document_Type, Created_Date, UUID }) => ({ + Title, + Document_Type, + Created_Date: ( + + {formatDate( + new Date(Created_Date + 'Z'), + 'cccccc d MMMM yyyy, p' + )} + + + ), + ...(canViewPublicationTemplate && { + onClick: () => navigate(`/muteer/${plural}/${UUID}`), + }), + }) + ) || [], + [data, plural, navigate, canViewPublicationTemplate] ) - const breadcrumbPaths = [ - { name: 'Dashboard', path: '/muteer' }, - { name: pluralCapitalize, isCurrent: true }, - ] - return ( - -
    -
    - {pluralCapitalize} - - -
    - -
    - {!!formattedData?.length ? ( - - ) : !isFetching ? ( - - Er zijn geen {plural} gevonden - - ) : ( -
    - -
    - )} - - - +
    + {!!formattedData?.length ? ( +
    + ) : ( + + {`Er zijn geen ${ + type === 'active' ? 'actieve' : 'inactieve' + } templates gevonden`} + + )} + ) } diff --git a/src/validation/dynamicObject.ts b/src/validation/dynamicObject.ts index d0ecd8b4..4ca8bd0b 100644 --- a/src/validation/dynamicObject.ts +++ b/src/validation/dynamicObject.ts @@ -18,6 +18,7 @@ const generateDynamicSchema = (sections: DynamicSection[]) => { case 'select': case 'image': case 'search': + case 'array': return (dynamicSchema = dynamicSchema.extend({ [field.name]: field.validation || diff --git a/src/validation/publication.ts b/src/validation/publication.ts index 93d7b3b4..e4bb8449 100644 --- a/src/validation/publication.ts +++ b/src/validation/publication.ts @@ -1,8 +1,9 @@ -import { array, object, tuple, ZodIssueCode } from 'zod' +import { array, object, ZodIssueCode } from 'zod' import { schemaDefaults } from '@/validation/zodSchema' export const PUBLICATION_SCHEMA = object({ + Title: schemaDefaults.requiredString(), Document_Type: schemaDefaults.requiredString(), Template_UUID: schemaDefaults.requiredString(), }) @@ -13,9 +14,7 @@ export const PUBLICATION_VERSION_ADD_SCHEMA = object({ }) export const PUBLICATION_VERSION_EDIT_SCHEMA = object({ - Is_Official: schemaDefaults.requiredString(), Procedure_Type: schemaDefaults.requiredString(), - PZH_Bill_Identifier: schemaDefaults.optionalString, Effective_Date: schemaDefaults.optionalString .refine(date => { return date && new Date(date) > new Date(Date.now()) @@ -26,42 +25,27 @@ export const PUBLICATION_VERSION_EDIT_SCHEMA = object({ return date && new Date(date) > new Date(Date.now()) }, 'De bekendmakingsdatum moet in de toekomst liggen') .nullable(), - Bill_Data: object({ + Bill_Compact: object({ Preamble: schemaDefaults.optionalString, - Amendment_Article: object({ - Label: schemaDefaults.requiredString(), - Number: schemaDefaults.optionalString, - Content: schemaDefaults.optionalString, - }).optional(), - Articles: array( + Amendment_Article: schemaDefaults.requiredString(), + Time_Article: schemaDefaults.requiredString(), + Custom_Articles: array( object({ Label: schemaDefaults.requiredString(), - Number: schemaDefaults.optionalString, - Content: schemaDefaults.optionalString, + Content: schemaDefaults.requiredString(), }) ).optional(), - Time_Article: object({ - Label: schemaDefaults.requiredString(), - Number: schemaDefaults.optionalString, - Content: schemaDefaults.optionalString, - }).optional(), - Closing: schemaDefaults.requiredString(), - Signature: schemaDefaults.requiredString(), + Closing: schemaDefaults.optionalString, + Signed: schemaDefaults.optionalString, }), - Procedure_Data: object({ - Announcement_Date: schemaDefaults.requiredString().refine(date => { - return new Date(date) > new Date(Date.now()) - }, 'De bekendmakingsdatum moet in de toekomst liggen'), - Steps: tuple([ - object({ - Step_Type: schemaDefaults.requiredString(), - Conclusion_Date: schemaDefaults.requiredString(), - }), - object({ - Step_Type: schemaDefaults.requiredString(), - Conclusion_Date: schemaDefaults.requiredString(), - }), - ]), + Procedural: object({ + Enactment_Date: schemaDefaults.optionalString, + Signed_Date: schemaDefaults.optionalString, + Procedural_Announcement_Date: schemaDefaults.optionalString + .refine(date => { + return date && new Date(date) > new Date(Date.now()) + }, 'De bekend op datum moet in de toekomst liggen') + .nullable(), }), }).superRefine(({ Effective_Date, Announcement_Date }, ctx) => { if ( diff --git a/yarn.lock b/yarn.lock index 78d02275..f104e95c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1513,6 +1513,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.23.7": + version: 7.24.0 + resolution: "@babel/runtime@npm:7.24.0" + dependencies: + regenerator-runtime: "npm:^0.14.0" + checksum: 8d32c7e116606ea322b89f9fde8ffae6be9503b549dc0d0abb38bd9dc26e87469b9fb7a66964cc089ee558fd0a97d304fb0a3cfec140694764fb0d71b6a6f5e4 + languageName: node + linkType: hard + "@babel/template@npm:^7.22.15, @babel/template@npm:^7.23.9": version: 7.23.9 resolution: "@babel/template@npm:7.23.9" @@ -2693,9 +2702,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.478": - version: 0.0.478 - resolution: "@pzh-ui/components@npm:0.0.478" +"@pzh-ui/components@npm:^0.0.487": + version: 0.0.487 + resolution: "@pzh-ui/components@npm:0.0.487" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" @@ -2742,11 +2751,11 @@ __metadata: react-dropzone: "npm:^14.2.3" react-paginate: "npm:^8.2.0" react-router-dom: "npm:^6.22.2" - react-select: "npm:^5.7.3" + react-select: "npm:^5.8.0" react-stately: "npm:^3.30.1" react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" - checksum: 904676a45fd6e16b81748a9554c2e716df0d9361fc007c1a9d7bf51623c247761e6bf641d7b5d1bb4cc30c904e0c705be6dd7cfeba72eb142cfd5d63b0651173 + checksum: b39158307edbbbb0d69d367b0d12704ce897098ea115e0ed9c40f2bcb1a4d453fdb46de766c37044ce839c25c6806edd07a36d6603046f8832d8c7405cab4be0 languageName: node linkType: hard @@ -12520,7 +12529,7 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.478" + "@pzh-ui/components": "npm:^0.0.487" "@pzh-ui/config": "npm:^0.0.56" "@pzh-ui/css": "npm:^0.0.81" "@pzh-ui/icons": "npm:^0.0.50" @@ -12581,6 +12590,7 @@ __metadata: react-router-dom: "npm:^6.22.2" rollup-plugin-visualizer: "npm:^5.11.0" sass: "npm:^1.63.6" + tailwind-merge: "npm:^2.2.1" tailwindcss: "npm:^3.4.1" typescript: "npm:^5.3.3" uuid: "npm:^9.0.1" @@ -12899,7 +12909,7 @@ __metadata: languageName: node linkType: hard -"react-select@npm:^5.7.3": +"react-select@npm:^5.8.0": version: 5.8.0 resolution: "react-select@npm:5.8.0" dependencies: @@ -14208,6 +14218,15 @@ __metadata: languageName: node linkType: hard +"tailwind-merge@npm:^2.2.1": + version: 2.2.1 + resolution: "tailwind-merge@npm:2.2.1" + dependencies: + "@babel/runtime": "npm:^7.23.7" + checksum: 3d8aecfa03c077472a038f25e95504ca47c1e7549ab843a854a690509098caac4e2e57790a7cadda4054fd07ec31421980a7afac33547013cf22299788625e72 + languageName: node + linkType: hard + "tailwindcss@npm:^3.4.1": version: 3.4.1 resolution: "tailwindcss@npm:3.4.1" From 760d47c4b9aa0df6e30cb07c663522d1a7f57913 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 14 Mar 2024 13:13:56 +0100 Subject: [PATCH 34/82] Fix msw file --- src/api/fetchers.msw.ts | 185 ++++++++++++++++++++-------------------- 1 file changed, 94 insertions(+), 91 deletions(-) diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index d28c9794..e8be499d 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -10,97 +10,100 @@ */ import { faker } from '@faker-js/faker' import { HttpResponse, delay, http } from 'msw' -import type { - AOJCreatedResponse, - AcknowledgedRelation, - ActiveModuleObjectWrapper, - AmbitieFull, - AmbitieUUID, - AuthToken, - BeleidsdoelFull, - BeleidsdoelUUID, - BeleidskeuzeFull, - BeleidskeuzeUUID, - BeleidsregelFull, - BeleidsregelUUID, - EnvironmentCreatedResponse, - GebiedsprogrammaFull, - GebiedsprogrammaUUID, - GraphResponse, - MaatregelFull, - MaatregelUUID, - ModuleCreatedResponse, - ModuleObjectContext, - ModuleOverview, - ModuleSnapshot, - ModuleStatus, - NationaalBelangFull, - NationaalBelangUUID, - NewObjectStaticResponse, - ObjectCount, - PagedResponseAmbitieBasic, - PagedResponseAmbitieExtended, - PagedResponseBeleidsdoelBasic, - PagedResponseBeleidsdoelExtended, - PagedResponseBeleidskeuzeBasic, - PagedResponseBeleidskeuzeExtended, - PagedResponseBeleidsregelBasic, - PagedResponseBeleidsregelExtended, - PagedResponseGebiedsprogrammaBasic, - PagedResponseGebiedsprogrammaExtended, - PagedResponseGenericObjectShort, - PagedResponseGeoSearchResult, - PagedResponseMaatregelBasic, - PagedResponseMaatregelExtended, - PagedResponseModule, - PagedResponseModuleObjectShortStatus, - PagedResponseNationaalBelangBasic, - PagedResponseProgrammaAlgemeenBasic, - PagedResponseProgrammaAlgemeenExtended, - PagedResponsePublicModuleShort, - PagedResponsePublication, - PagedResponsePublicationAOJ, - PagedResponsePublicationEnvironment, - PagedResponsePublicationPackage, - PagedResponsePublicationPackageReportShort, - PagedResponsePublicationTemplate, - PagedResponsePublicationVersionShort, - PagedResponseSearchObject, - PagedResponseUser, - PagedResponseValidSearchObject, - PagedResponseVerplichtProgrammaBasic, - PagedResponseVisieAlgemeenBasic, - PagedResponseVisieAlgemeenExtended, - PagedResponseWerkingsgebied, - PagedResponseWerkingsgebiedBasic, - PagedResponseWerkingsgebiedExtended, - PagedResponseWettelijkeTaakBasic, - ProgrammaAlgemeenFull, - ProgrammaAlgemeenUUID, - PublicModuleOverview, - Publication, - PublicationCreatedResponse, - PublicationPackageCreatedResponse, - PublicationPackageReport, - PublicationTemplate, - PublicationVersion, - PublicationVersionCreatedResponse, - PublicationVersionEditResponse, - ReadRelation, - ResetPasswordResponse, - ResponseOK, - TemplateCreatedResponse, - UploadPackageReportResponse, - User, - UserCreateResponse, - VerplichtProgrammaFull, - VerplichtProgrammaUUID, - VisieAlgemeenFull, - VisieAlgemeenUUID, - WerkingsgebiedFull, - WerkingsgebiedUUID, - WettelijkeTaakFull, - WettelijkeTaakUUID, + +import { + GraphEdgeType, + ReportStatusType, + type AOJCreatedResponse, + type AcknowledgedRelation, + type ActiveModuleObjectWrapper, + type AmbitieFull, + type AmbitieUUID, + type AuthToken, + type BeleidsdoelFull, + type BeleidsdoelUUID, + type BeleidskeuzeFull, + type BeleidskeuzeUUID, + type BeleidsregelFull, + type BeleidsregelUUID, + type EnvironmentCreatedResponse, + type GebiedsprogrammaFull, + type GebiedsprogrammaUUID, + type GraphResponse, + type MaatregelFull, + type MaatregelUUID, + type ModuleCreatedResponse, + type ModuleObjectContext, + type ModuleOverview, + type ModuleSnapshot, + type ModuleStatus, + type NationaalBelangFull, + type NationaalBelangUUID, + type NewObjectStaticResponse, + type ObjectCount, + type PagedResponseAmbitieBasic, + type PagedResponseAmbitieExtended, + type PagedResponseBeleidsdoelBasic, + type PagedResponseBeleidsdoelExtended, + type PagedResponseBeleidskeuzeBasic, + type PagedResponseBeleidskeuzeExtended, + type PagedResponseBeleidsregelBasic, + type PagedResponseBeleidsregelExtended, + type PagedResponseGebiedsprogrammaBasic, + type PagedResponseGebiedsprogrammaExtended, + type PagedResponseGenericObjectShort, + type PagedResponseGeoSearchResult, + type PagedResponseMaatregelBasic, + type PagedResponseMaatregelExtended, + type PagedResponseModule, + type PagedResponseModuleObjectShortStatus, + type PagedResponseNationaalBelangBasic, + type PagedResponseProgrammaAlgemeenBasic, + type PagedResponseProgrammaAlgemeenExtended, + type PagedResponsePublicModuleShort, + type PagedResponsePublication, + type PagedResponsePublicationAOJ, + type PagedResponsePublicationEnvironment, + type PagedResponsePublicationPackage, + type PagedResponsePublicationPackageReportShort, + type PagedResponsePublicationTemplate, + type PagedResponsePublicationVersionShort, + type PagedResponseSearchObject, + type PagedResponseUser, + type PagedResponseValidSearchObject, + type PagedResponseVerplichtProgrammaBasic, + type PagedResponseVisieAlgemeenBasic, + type PagedResponseVisieAlgemeenExtended, + type PagedResponseWerkingsgebied, + type PagedResponseWerkingsgebiedBasic, + type PagedResponseWerkingsgebiedExtended, + type PagedResponseWettelijkeTaakBasic, + type ProgrammaAlgemeenFull, + type ProgrammaAlgemeenUUID, + type PublicModuleOverview, + type Publication, + type PublicationCreatedResponse, + type PublicationPackageCreatedResponse, + type PublicationPackageReport, + type PublicationTemplate, + type PublicationVersion, + type PublicationVersionCreatedResponse, + type PublicationVersionEditResponse, + type ReadRelation, + type ResetPasswordResponse, + type ResponseOK, + type TemplateCreatedResponse, + type UploadPackageReportResponse, + type User, + type UserCreateResponse, + type VerplichtProgrammaFull, + type VerplichtProgrammaUUID, + type VisieAlgemeenFull, + type VisieAlgemeenUUID, + type WerkingsgebiedFull, + type WerkingsgebiedUUID, + type WettelijkeTaakFull, + type WettelijkeTaakUUID, } from './fetchers.schemas' export const getAmbitiesValidGetMock = ( From becce921a77a850c47f38502eeca5df9be95dda2 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 14 Mar 2024 13:17:15 +0100 Subject: [PATCH 35/82] Add notification for failed publication --- .../PublicationPackages/PublicationPackages.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/Publications/PublicationPackages/PublicationPackages.tsx b/src/components/Publications/PublicationPackages/PublicationPackages.tsx index 6a3f3d55..9bd92f01 100644 --- a/src/components/Publications/PublicationPackages/PublicationPackages.tsx +++ b/src/components/Publications/PublicationPackages/PublicationPackages.tsx @@ -188,6 +188,14 @@ const PublicationPackages = (version: PublicationVersionShort) => { className="my-6" /> )} + + {isOfficial && publicationPackage?.Report_Status === 'Failed' && ( + + )} ) } From 6b2e1165162ef752281117fbe2032ba9f2f9120c Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 14 Mar 2024 16:31:55 +0100 Subject: [PATCH 36/82] Update publication --- .../PublicationVersionAbortModal.tsx | 64 ++++++++++ .../PublicationVersionAbortModal/index.ts | 1 + .../Modals/PublicationModals/index.ts | 2 + src/components/Modals/types.ts | 5 + .../Publications/Publication/Publication.tsx | 25 ++-- .../PublicationPackages.tsx | 113 ++++++++++++++---- .../components/PackageStepActions.tsx | 11 +- .../PublicationVersions.tsx | 14 +++ src/components/Publications/Publications.tsx | 11 +- .../Modules/ModuleDetail/ModuleDetail.tsx | 2 + 10 files changed, 206 insertions(+), 42 deletions(-) create mode 100644 src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx create mode 100644 src/components/Modals/PublicationModals/PublicationVersionAbortModal/index.ts diff --git a/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx new file mode 100644 index 00000000..8b9037ed --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx @@ -0,0 +1,64 @@ +import { Button, Divider, Text } from '@pzh-ui/components' +import { useParams } from 'react-router-dom' + +import { + useModulesModuleIdStatusGet, + usePublicationEnvironmentsGet, +} from '@/api/fetchers' +import Modal from '@/components/Modal/Modal' +import PublicationPackages from '@/components/Publications/PublicationPackages' +import useModalStore from '@/store/modalStore' + +import { ModalStateMap } from '../../types' + +const PublicationVersionAbortModal = () => { + const { moduleId } = useParams() + + const setActiveModal = useModalStore(state => state.setActiveModal) + const modalState = useModalStore( + state => state.modalStates['publicationVersionAbort'] + ) as ModalStateMap['publicationVersionAbort'] + + const { data: status } = useModulesModuleIdStatusGet(parseInt(moduleId!), { + query: { + enabled: !!moduleId, + select: data => + data.find( + item => item.ID === modalState?.version.Module_Status.ID + ), + }, + }) + + const { data: environment } = usePublicationEnvironmentsGet(undefined, { + query: { + select: data => + data.results.find( + environment => + environment.UUID === modalState.version.Environment_UUID + ), + }, + }) + + return ( + +
    + + {status?.Status} -{' '} + {modalState?.version.Bill_Metadata.Official_Title} ( + {environment?.Can_Publicate ? 'Officiële' : 'Interne'}{' '} + publicatie) + + +
    + +
    + +
    +
    + ) +} + +export default PublicationVersionAbortModal diff --git a/src/components/Modals/PublicationModals/PublicationVersionAbortModal/index.ts b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/index.ts new file mode 100644 index 00000000..328d4e50 --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/index.ts @@ -0,0 +1 @@ +export { default } from './PublicationVersionAbortModal' diff --git a/src/components/Modals/PublicationModals/index.ts b/src/components/Modals/PublicationModals/index.ts index c7280106..5fffe1ac 100644 --- a/src/components/Modals/PublicationModals/index.ts +++ b/src/components/Modals/PublicationModals/index.ts @@ -1,6 +1,7 @@ import PublicationAddModal from './PublicationAddModal' import PublicationEditModal from './PublicationEditModal' import PublicationPackagesModal from './PublicationPackagesModal' +import PublicationVersionAbortModal from './PublicationVersionAbortModal' import PublicationVersionAddModal from './PublicationVersionAddModal' import PublicationVersionEditModal from './PublicationVersionEditModal' @@ -8,6 +9,7 @@ export { PublicationAddModal, PublicationEditModal, PublicationPackagesModal, + PublicationVersionAbortModal, PublicationVersionAddModal, PublicationVersionEditModal, } diff --git a/src/components/Modals/types.ts b/src/components/Modals/types.ts index d4b18b51..cdca54cd 100644 --- a/src/components/Modals/types.ts +++ b/src/components/Modals/types.ts @@ -34,6 +34,7 @@ export type ModalType = | 'publicationVersionAdd' | 'publicationVersionEdit' | 'publicationPackages' + | 'publicationVersionAbort' export interface ModalStateMap { publicationAdd: { type: DocumentType } @@ -44,4 +45,8 @@ export interface ModalStateMap { publication: Publication version: PublicationVersionShort } + publicationVersionAbort: { + publication: Publication + version: PublicationVersionShort + } } diff --git a/src/components/Publications/Publication/Publication.tsx b/src/components/Publications/Publication/Publication.tsx index 8b809412..e20e5226 100644 --- a/src/components/Publications/Publication/Publication.tsx +++ b/src/components/Publications/Publication/Publication.tsx @@ -36,21 +36,16 @@ const Publication = ({ data }: PublicationProps) => { )} -
    - - -
    + ) } diff --git a/src/components/Publications/PublicationPackages/PublicationPackages.tsx b/src/components/Publications/PublicationPackages/PublicationPackages.tsx index 9bd92f01..fe5451e3 100644 --- a/src/components/Publications/PublicationPackages/PublicationPackages.tsx +++ b/src/components/Publications/PublicationPackages/PublicationPackages.tsx @@ -8,14 +8,21 @@ import { } from '@/api/fetchers' import { PackageType, PublicationVersionShort } from '@/api/fetchers.schemas' -import { PackageStep } from './components' +import { PackageStep, PackageStepActions } from './components' export interface PublicationPackageProps { type: 'create' | 'download' | 'upload' eventType: PackageType } -const PublicationPackages = (version: PublicationVersionShort) => { +interface PublicationPackagesProps extends PublicationVersionShort { + isAbort?: boolean +} + +const PublicationPackages = ({ + isAbort, + ...version +}: PublicationPackagesProps) => { const { data } = usePublicationVersionsVersionUuidGet(version.UUID) const { data: packages } = usePublicationPackagesGet({ @@ -31,16 +38,20 @@ const PublicationPackages = (version: PublicationVersionShort) => { }, }) - const { validationPackage, publicationPackage } = useMemo(() => { - const validationPackage = packages?.results.find( - pkg => pkg.Package_Type === 'Validatie' - ) - const publicationPackage = packages?.results.find( - pkg => pkg.Package_Type === 'Publicatie' - ) + const { validationPackage, publicationPackage, abortPackage } = + useMemo(() => { + const validationPackage = packages?.results.find( + pkg => pkg.Package_Type === 'Validatie' + ) + const publicationPackage = packages?.results.find( + pkg => pkg.Package_Type === 'Publicatie' + ) + const abortPackage = packages?.results.find( + pkg => pkg.Package_Type === 'Afbreken' + ) - return { validationPackage, publicationPackage } - }, [packages?.results]) + return { validationPackage, publicationPackage, abortPackage } + }, [packages?.results]) const { announcementDate, effectiveDate } = useMemo(() => { const announcementDate = @@ -59,6 +70,46 @@ const PublicationPackages = (version: PublicationVersionShort) => { [environment?.Can_Publicate] ) + if (isAbort) { + return ( + <> +
    + + Afbreekverzoek + + + + {isOfficial && ( + + )} +
    + + ) + } + return ( <> {!data?.Is_Valid && !!!validationPackage && ( @@ -123,11 +174,21 @@ const PublicationPackages = (version: PublicationVersionShort) => { {isOfficial && validationPackage?.Report_Status === 'Failed' && !!!publicationPackage && ( - +
    + + +
    )} {isOfficial && ( @@ -190,11 +251,21 @@ const PublicationPackages = (version: PublicationVersionShort) => { )} {isOfficial && publicationPackage?.Report_Status === 'Failed' && ( - +
    + + +
    )} ) diff --git a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx index c149de4a..86cd9300 100644 --- a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx +++ b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx @@ -25,6 +25,8 @@ interface PackageStepActionsProps extends PublicationPackageProps { isActive?: boolean isSucceeded?: boolean isLoading?: boolean + buttonLabel?: string + hideDescription?: boolean } const PackageStepActions = ({ type, ...props }: PackageStepActionsProps) => { @@ -44,6 +46,8 @@ const CreateAction = ({ eventType, isActive, isSucceeded, + buttonLabel = 'Maak levering', + hideDescription = false, }: PackageStepActionsProps) => { const queryClient = useQueryClient() @@ -90,7 +94,7 @@ const CreateAction = ({ return (
    - {isPending && ( + {isPending && !hideDescription && ( Levering wordt gemaakt, dit kan even duren.. @@ -99,8 +103,9 @@ const CreateAction = ({ variant="cta" isDisabled={!isActive || isPending} onPress={handleAction} - isLoading={isPending}> - Maak levering + isLoading={isPending} + className="h-full"> + {buttonLabel}
    ) diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx index 0a251465..04a69582 100644 --- a/src/components/Publications/PublicationVersions/PublicationVersions.tsx +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -134,6 +134,20 @@ const VersionRow = ({
    - @@ -83,7 +79,9 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { const VersionRow = ({ publication, ...version -}: PublicationVersionShort & { publication: Publication }) => { +}: PublicationVersionShort & { + publication: Publication +}) => { const { moduleId } = useParams() const { @@ -94,15 +92,6 @@ const VersionRow = ({ const setActiveModal = useModalStore(state => state.setActiveModal) - const { data: environment } = usePublicationEnvironmentsGet(undefined, { - query: { - select: data => - data.results.find( - environment => environment.UUID === version.Environment_UUID - ), - }, - }) - const downloadDiff = ({ moduleId, Module_Status_ID, @@ -137,7 +126,6 @@ const VersionRow = ({ return ( -
    {version.Module_Status.Status}
    + {version.Is_Locked && ( + + )} {!version.Is_Locked && (
    diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 097c46b5..b8de75fc 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -255,11 +255,9 @@ const TabDecisions = () => { Voor elke (interne en officiële) publicatie moet een nieuwe versie van een besluit worden aangemaakt. Een besluit is te - bewerken tot het moment dat er op ‘Maak levering’ wordt - geklikt. Iets niet goed gedaan? Maak dan een nieuwe versie - aan. Standaard worden de gegevens overgenomen van de vorige - versie, maar deze zijn uiteraard aan te passen. Voor alle - leveringen zie leveringen. + bewerken tot het moment dat er een officiële publicatie is + gedaan. Validatie of publicatie niet gelukt? Bewerk dan de + versie en maak een nieuwe levering aan. {documentTypes.map((type, index) => ( From 12d582b778e21c03266172b5ba888115ec864a44 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 26 Mar 2024 09:53:19 +0100 Subject: [PATCH 40/82] Update tailwind color classes --- src/App/App.tsx | 2 +- src/components/Accordion/Accordion.tsx | 2 +- src/components/Avatar/Avatar.tsx | 2 +- .../DashboardAdmin/DashboardAdmin.tsx | 6 +-- src/components/DropArea/DropArea.tsx | 2 +- .../DynamicSection/DynamicSection.tsx | 2 +- .../DynamicObjectSearch.tsx | 2 +- .../ObjectAcknowledgedRelationPart.tsx | 8 +-- .../DynamicObject/ObjectArea/ObjectArea.tsx | 2 +- .../ObjectConnectionPart.tsx | 6 +-- .../ObjectConnectionsPublic.tsx | 2 +- .../ObjectContent/ObjectContent.tsx | 8 +-- .../ObjectDefaultInfo/ObjectDefaultInfo.tsx | 8 +-- .../ObjectNetwork/ObjectNetwork.tsx | 21 +++++--- .../ObjectRelationPart/ObjectRelationPart.tsx | 7 +-- .../ObjectRelations/ObjectRelations.tsx | 2 +- .../ObjectRelationsPublic.tsx | 4 +- .../ObjectRevision/ObjectRevision.tsx | 10 ++-- .../ObjectSidebar/ObjectSidebar.tsx | 4 +- .../ObjectValidArchived.tsx | 2 +- src/components/Filter/Filter.tsx | 2 +- src/components/Footer/Footer.tsx | 14 +++--- src/components/Form/FieldArray/FieldArray.tsx | 2 +- .../Form/FieldSelectArea/FieldSelectArea.tsx | 4 +- .../LeafletSearchInput/LeafletSearchInput.tsx | 2 +- .../Leaflet/utils/createCustomPopup.tsx | 2 +- src/components/LoginForm/LoginForm.tsx | 8 +-- .../Modals/NetworkModal/NetworkModal.tsx | 2 +- .../ObjectConnectionModal/steps/StepOne.tsx | 7 ++- .../ObjectConnectionModal/steps/StepTwo.tsx | 2 +- .../ObjectDeleteModal/ObjectDeleteModal.tsx | 2 +- .../steps/StepOne.tsx | 2 +- .../ObjectRelationSentModal/steps/StepOne.tsx | 5 +- .../UserModals/UserAddModal/steps/StepTwo.tsx | 2 +- .../steps/StepTwo.tsx | 2 +- .../ModuleCompleteCard/ModuleCompleteCard.tsx | 2 +- .../Modules/ModuleItemList/ModuleItemList.tsx | 9 ++-- .../Modules/ModulePart/ModulePart.tsx | 2 +- .../Modules/ModuleTile/ModuleTile.tsx | 5 +- .../Modules/ModuleTimeline/ModuleTimeline.tsx | 6 +-- .../ModuleVersionCard/ModuleVersionCard.tsx | 2 +- src/components/Navigation/Navigation.tsx | 4 +- .../NavigationPopupMenu.tsx | 13 ++--- .../Network/NetworkFilter/NetworkFilter.tsx | 2 +- .../NetworkGraphButtons.tsx | 6 +-- .../Network/NetworkLegend/NetworkLegend.tsx | 10 ++-- .../Publications/Publication/Publication.tsx | 49 +++++++++++-------- .../PublicationVersions.tsx | 8 ++- src/components/Publications/Publications.tsx | 19 ++++--- .../RecursiveAccordion/RecursiveAccordion.tsx | 2 +- .../components/AddItem/AddItem.tsx | 2 +- .../components/Handle/Handle.tsx | 12 ++--- .../RegulationForm/RegulationForm.tsx | 4 +- .../RegulationForm/components/FieldGroup.tsx | 2 +- .../RegulationForm/components/FieldLabel.tsx | 8 +-- .../RegulationForm/components/FieldList.tsx | 2 +- .../components/FieldListItem.tsx | 8 +-- .../RegulationPreview/RegulationPreview.tsx | 2 +- .../Regulations/Sidebar/Sidebar.tsx | 2 +- src/components/Regulations/constants.ts | 13 +++-- .../SearchResultItem/SearchResultItem.tsx | 2 +- src/components/Sidebar/Sidebar.tsx | 12 ++--- .../TableOfContents/TableOfContents.tsx | 4 +- src/components/ToggleSwitch/ToggleSwitch.tsx | 2 +- src/config/objects/beleidsdoel.tsx | 2 +- src/config/objects/beleidskeuze.tsx | 4 +- src/config/objects/maatregel.tsx | 4 +- .../ObjectDetail/ObjectDetail.tsx | 2 +- .../Modules/ModuleDetail/ModuleDetail.tsx | 2 +- .../protected/Users/UserDetail/UserDetail.tsx | 6 +-- .../public/Accessibility/Accessibility.tsx | 6 +-- src/pages/public/AreaDetail/AreaDetail.tsx | 4 +- .../AtemportalObject/AtemportalObject.tsx | 2 +- .../EnvironmentProgram/EnvironmentProgram.tsx | 10 ++-- .../public/Home/DocumentLink/DocumentLink.tsx | 4 +- src/pages/public/Home/Home.tsx | 8 +-- .../Home/SearchSection/SearchSection.tsx | 2 +- src/pages/public/Login/Login.tsx | 6 +-- .../SidebarResults/SidebarResults.tsx | 2 +- .../public/NotFoundPage/NotFoundPage.tsx | 2 +- .../PlanningAndReleases.tsx | 10 ++-- src/pages/public/Revisions/Revisions.tsx | 12 ++--- .../public/SearchResults/SearchResults.tsx | 4 +- src/pages/public/ThemeDetail/ThemeDetail.tsx | 4 +- src/utils/d3.ts | 2 +- 85 files changed, 255 insertions(+), 217 deletions(-) diff --git a/src/App/App.tsx b/src/App/App.tsx index d3b6b742..aff9c0ac 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -40,7 +40,7 @@ const App = () => {
    diff --git a/src/components/Accordion/Accordion.tsx b/src/components/Accordion/Accordion.tsx index ea6de0c1..8ac1a8fe 100644 --- a/src/components/Accordion/Accordion.tsx +++ b/src/components/Accordion/Accordion.tsx @@ -167,7 +167,7 @@ const AccordionTrigger = ({ aria-label={isOpen ? 'Inklappen' : 'Uitklappen'}> diff --git a/src/components/Avatar/Avatar.tsx b/src/components/Avatar/Avatar.tsx index 6a6bb8e4..473b7785 100644 --- a/src/components/Avatar/Avatar.tsx +++ b/src/components/Avatar/Avatar.tsx @@ -30,7 +30,7 @@ const Avatar = ({ name, prefix, className, isSmall }: AvatarProps) => { }>
    {
    -
    +
    {modulesLoading ? ( @@ -119,13 +119,13 @@ const ModelTile = ({ model }: { model: Model }) => {
    - + {pluralCapitalize}
    - +
    diff --git a/src/components/DropArea/DropArea.tsx b/src/components/DropArea/DropArea.tsx index 14d0e1e2..ca896ea8 100644 --- a/src/components/DropArea/DropArea.tsx +++ b/src/components/DropArea/DropArea.tsx @@ -20,7 +20,7 @@ const DropArea = ({ onDrop, position, className }: DropAreaProps) => { }} onDragOver={ev => ev.preventDefault()} className={classNames( - 'after:content-[` `] absolute left-0 z-1 h-2 w-full py-2 transition-[opacity] after:absolute after:h-1 after:w-full after:animate-pulse after:bg-pzh-blue-light', + 'after:content-[` `] absolute left-0 z-1 h-2 w-full py-2 transition-[opacity] after:absolute after:h-1 after:w-full after:animate-pulse after:bg-pzh-blue-100', { '-top-2 after:top-2': position === 'top' && !className, '-bottom-2 after:bottom-2': diff --git a/src/components/DynamicObject/DynamicObjectForm/DynamicSection/DynamicSection.tsx b/src/components/DynamicObject/DynamicObjectForm/DynamicSection/DynamicSection.tsx index fe817bb0..2d80b82e 100644 --- a/src/components/DynamicObject/DynamicObjectForm/DynamicSection/DynamicSection.tsx +++ b/src/components/DynamicObject/DynamicObjectForm/DynamicSection/DynamicSection.tsx @@ -27,7 +27,7 @@ const DynamicSection = ({ level="2" size="s" className="mb-3" - color="text-pzh-blue-dark"> + color="text-pzh-blue-900"> {title} diff --git a/src/components/DynamicObject/DynamicObjectSearch/DynamicObjectSearch.tsx b/src/components/DynamicObject/DynamicObjectSearch/DynamicObjectSearch.tsx index 3c35e3fc..06ddc6c2 100644 --- a/src/components/DynamicObject/DynamicObjectSearch/DynamicObjectSearch.tsx +++ b/src/components/DynamicObject/DynamicObjectSearch/DynamicObjectSearch.tsx @@ -139,7 +139,7 @@ const DynamicObjectSearch = ({
    ), diff --git a/src/components/DynamicObject/ObjectAcknowledgedRelationPart/ObjectAcknowledgedRelationPart.tsx b/src/components/DynamicObject/ObjectAcknowledgedRelationPart/ObjectAcknowledgedRelationPart.tsx index 112e7572..4b81998c 100644 --- a/src/components/DynamicObject/ObjectAcknowledgedRelationPart/ObjectAcknowledgedRelationPart.tsx +++ b/src/components/DynamicObject/ObjectAcknowledgedRelationPart/ObjectAcknowledgedRelationPart.tsx @@ -64,10 +64,10 @@ const ObjectAcknowledgedRelationPart = ({ diff --git a/src/components/DynamicObject/ObjectArea/ObjectArea.tsx b/src/components/DynamicObject/ObjectArea/ObjectArea.tsx index 8c32b283..31b19805 100644 --- a/src/components/DynamicObject/ObjectArea/ObjectArea.tsx +++ b/src/components/DynamicObject/ObjectArea/ObjectArea.tsx @@ -68,7 +68,7 @@ const ObjectArea = ({ Tip! Gebruik het icoon{' '} {' '} om de kaartlagen binnen dit werkingsgebied te bekijken diff --git a/src/components/DynamicObject/ObjectConnectionPart/ObjectConnectionPart.tsx b/src/components/DynamicObject/ObjectConnectionPart/ObjectConnectionPart.tsx index 7f6b68d9..14dd0d50 100644 --- a/src/components/DynamicObject/ObjectConnectionPart/ObjectConnectionPart.tsx +++ b/src/components/DynamicObject/ObjectConnectionPart/ObjectConnectionPart.tsx @@ -60,7 +60,7 @@ const ObjectConnectionPart = ({ return (
    -
    +
    {amount}
    @@ -86,11 +86,11 @@ const ObjectConnectionPart = ({ className="animate-spin text-pzh-gray-600" /> ) : amount === 0 ? ( -
    +
    ) : ( - + ))}
    diff --git a/src/components/DynamicObject/ObjectConnectionsPublic/ObjectConnectionsPublic.tsx b/src/components/DynamicObject/ObjectConnectionsPublic/ObjectConnectionsPublic.tsx index 2575c8a0..70318673 100644 --- a/src/components/DynamicObject/ObjectConnectionsPublic/ObjectConnectionsPublic.tsx +++ b/src/components/DynamicObject/ObjectConnectionsPublic/ObjectConnectionsPublic.tsx @@ -41,7 +41,7 @@ const ObjectConnectionsPublic = ({ item.Object.UUID )} text={item.Object.Title || ''} - className="text-pzh-green hover:text-pzh-green-dark" + className="text-pzh-green-500 hover:text-pzh-green-900" /> ))} diff --git a/src/components/DynamicObject/ObjectContent/ObjectContent.tsx b/src/components/DynamicObject/ObjectContent/ObjectContent.tsx index 4311c17c..7b9df04c 100644 --- a/src/components/DynamicObject/ObjectContent/ObjectContent.tsx +++ b/src/components/DynamicObject/ObjectContent/ObjectContent.tsx @@ -67,7 +67,7 @@ const Content = ({ title, value, hidden, html, customTitle }: ContentProps) => { if (value === 'Weblink') { cleanHtml = cleanHtml.replace( /\bhttps?:\/\/\S+/gi, - '$&' + '$&' ) } @@ -86,7 +86,7 @@ const Content = ({ title, value, hidden, html, customTitle }: ContentProps) => { )} @@ -106,7 +106,7 @@ interface ListProps { const List = ({ title, description, items, hidden }: ListProps) => (
    + className="prose prose-neutral mb-4 max-w-full whitespace-pre-line text-m text-pzh-blue-900 marker:text-pzh-blue-900 prose-li:my-0 md:mb-8">
    {version.Module_Status.Status}
    - {version.Is_Locked && ( + {version.Is_Locked && canCreatePublicationPackage && ( + {canCreatePublication && ( + + )}
    ) } diff --git a/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx b/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx index 78cecea2..cddc2d3d 100644 --- a/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx +++ b/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx @@ -111,7 +111,7 @@ const RecursiveAccordion = ({ )} 1, 'pr-4': !!!section.children?.length, })} diff --git a/src/components/Regulations/RecursiveAccordion/components/AddItem/AddItem.tsx b/src/components/Regulations/RecursiveAccordion/components/AddItem/AddItem.tsx index d8e7b0db..15d89b76 100644 --- a/src/components/Regulations/RecursiveAccordion/components/AddItem/AddItem.tsx +++ b/src/components/Regulations/RecursiveAccordion/components/AddItem/AddItem.tsx @@ -28,7 +28,7 @@ const AddItem = ({ return (
    - + Invoegen in {section.defaults.demonstrative}{' '} {section.defaults.singular}: diff --git a/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx b/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx index b0ed6cb3..a677adae 100644 --- a/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx +++ b/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx @@ -50,7 +50,7 @@ const Handle = ({ {isDraggable && expanded && ( )}
    @@ -95,13 +95,13 @@ const Handle = ({ variant="default" onPress={handleDelete} isDisabled={!expanded}> - + diff --git a/src/components/Regulations/RegulationForm/RegulationForm.tsx b/src/components/Regulations/RegulationForm/RegulationForm.tsx index 663a2c59..7739db08 100644 --- a/src/components/Regulations/RegulationForm/RegulationForm.tsx +++ b/src/components/Regulations/RegulationForm/RegulationForm.tsx @@ -52,7 +52,7 @@ const RegulationForm = ({ {title} @@ -73,7 +73,7 @@ const RegulationForm = ({ {section.contents?.length && ( <> - + Inhoud diff --git a/src/components/Regulations/RegulationForm/components/FieldGroup.tsx b/src/components/Regulations/RegulationForm/components/FieldGroup.tsx index 81c32bb2..998c1fb2 100644 --- a/src/components/Regulations/RegulationForm/components/FieldGroup.tsx +++ b/src/components/Regulations/RegulationForm/components/FieldGroup.tsx @@ -70,7 +70,7 @@ const FieldGroup = ({ name, label, index, ...props }: RegulationFieldProps) => { })}
    - + Invoegen in deze groep: {children?.map(child => { diff --git a/src/components/Regulations/RegulationForm/components/FieldLabel.tsx b/src/components/Regulations/RegulationForm/components/FieldLabel.tsx index 85c66f5b..a1b38023 100644 --- a/src/components/Regulations/RegulationForm/components/FieldLabel.tsx +++ b/src/components/Regulations/RegulationForm/components/FieldLabel.tsx @@ -14,7 +14,7 @@ const FieldLabel = ({ }: Omit & { name?: string }) => (
    @@ -22,7 +22,7 @@ const FieldLabel = ({ {isDraggable && ( )} @@ -31,11 +31,11 @@ const FieldLabel = ({
    ) diff --git a/src/components/Regulations/RegulationPreview/RegulationPreview.tsx b/src/components/Regulations/RegulationPreview/RegulationPreview.tsx index f60e5a20..69cd81eb 100644 --- a/src/components/Regulations/RegulationPreview/RegulationPreview.tsx +++ b/src/components/Regulations/RegulationPreview/RegulationPreview.tsx @@ -48,7 +48,7 @@ const Preview = ({ {section.defaults.singularCapitalize} {parentIndex}: {title}
    ) : ( - + {section.defaults.singularCapitalize} {index}: {title} )} diff --git a/src/components/Regulations/Sidebar/Sidebar.tsx b/src/components/Regulations/Sidebar/Sidebar.tsx index be865511..db199c3b 100644 --- a/src/components/Regulations/Sidebar/Sidebar.tsx +++ b/src/components/Regulations/Sidebar/Sidebar.tsx @@ -51,7 +51,7 @@ const Sidebar = () => { )} diff --git a/src/pages/protected/Users/UserDetail/UserDetail.tsx b/src/pages/protected/Users/UserDetail/UserDetail.tsx index 5dacba93..cb4641e3 100644 --- a/src/pages/protected/Users/UserDetail/UserDetail.tsx +++ b/src/pages/protected/Users/UserDetail/UserDetail.tsx @@ -77,7 +77,7 @@ const UserDetail = () => { + color="text-pzh-blue-500"> Gebruiker status
    @@ -108,7 +108,7 @@ const UserDetail = () => {
    @@ -127,7 +127,7 @@ const UserDetail = () => {
    - + Wachtwoord diff --git a/src/pages/public/Accessibility/Accessibility.tsx b/src/pages/public/Accessibility/Accessibility.tsx index 6fbb895f..67a736f6 100644 --- a/src/pages/public/Accessibility/Accessibility.tsx +++ b/src/pages/public/Accessibility/Accessibility.tsx @@ -17,7 +17,7 @@ function Accessibility() { @@ -54,14 +54,14 @@ function Accessibility() { dan contact op met ons Contact Centrum via{' '} + className="text-pzh-green-500 underline hover:text-pzh-green-900"> zuidholland@pzh.nl {' '} of kijk op{' '} www.zuid-holland.nl/contact diff --git a/src/pages/public/AreaDetail/AreaDetail.tsx b/src/pages/public/AreaDetail/AreaDetail.tsx index b631f962..b10364f0 100644 --- a/src/pages/public/AreaDetail/AreaDetail.tsx +++ b/src/pages/public/AreaDetail/AreaDetail.tsx @@ -65,7 +65,7 @@ function AreaDetail() { {data?.Description && ( {data?.Title} -
    +
    Indicatieve weergave gebied ‘{data?.Title}’.
    diff --git a/src/pages/public/AtemportalObject/AtemportalObject.tsx b/src/pages/public/AtemportalObject/AtemportalObject.tsx index 7f3fd5de..cc06cf87 100644 --- a/src/pages/public/AtemportalObject/AtemportalObject.tsx +++ b/src/pages/public/AtemportalObject/AtemportalObject.tsx @@ -84,7 +84,7 @@ const AtemportalObject = ({ model }: DynamicObjectProps) => { {data?.Description && (
    Bekijk de verplichte programma’s @@ -64,7 +64,7 @@ function EnvironmentProgram() { beleidsdoelen vindt u hier. Bekijk de thematische programma’s @@ -78,7 +78,7 @@ function EnvironmentProgram() { gebieden (welke soms overlappen) is hieronder te vinden. Bekijk de gebiedsprogramma’s @@ -92,7 +92,7 @@ function EnvironmentProgram() { Omgevingsprogramma. Bekijk de maatregelen diff --git a/src/pages/public/Home/DocumentLink/DocumentLink.tsx b/src/pages/public/Home/DocumentLink/DocumentLink.tsx index 4c306348..ca1f1166 100644 --- a/src/pages/public/Home/DocumentLink/DocumentLink.tsx +++ b/src/pages/public/Home/DocumentLink/DocumentLink.tsx @@ -14,7 +14,7 @@ const DocumentLink = ({ className = '', }: DocumentLinkProps) => (
  • + className={`pb-2 text-pzh-green-500 transition-colors duration-100 ease-in ${className}`}> {iconLeft} {title} diff --git a/src/pages/public/Home/Home.tsx b/src/pages/public/Home/Home.tsx index 1b646837..7fe5cfdf 100644 --- a/src/pages/public/Home/Home.tsx +++ b/src/pages/public/Home/Home.tsx @@ -86,7 +86,7 @@ const Home = () => ( -
    +
    @@ -173,13 +173,13 @@ const Home = () => ( In het{' '} Omgevingsprogramma {' '} staat beschreven welke{' '} maatregelen {' '} @@ -221,7 +221,7 @@ const Home = () => ( Al deze regels van de provincie over de fysieke leefomgeving zijn ondergebracht in de{' '} diff --git a/src/pages/public/Home/SearchSection/SearchSection.tsx b/src/pages/public/Home/SearchSection/SearchSection.tsx index 1d0c2332..4ca0f0da 100644 --- a/src/pages/public/Home/SearchSection/SearchSection.tsx +++ b/src/pages/public/Home/SearchSection/SearchSection.tsx @@ -32,7 +32,7 @@ const SearchSection = () => (
    + className="text-pzh-green-500 underline hover:text-pzh-green-900"> Wilt u uitgebreider zoeken op de kaart?
    diff --git a/src/pages/public/Login/Login.tsx b/src/pages/public/Login/Login.tsx index f23ab6c1..5004bb2d 100644 --- a/src/pages/public/Login/Login.tsx +++ b/src/pages/public/Login/Login.tsx @@ -40,7 +40,7 @@ const Login = () => {
    -
    +
    @@ -54,7 +54,7 @@ const Login = () => { Zuid-Holland inzien. Ga naar de raadpleegomgeving @@ -68,7 +68,7 @@ const Login = () => { afdeling omgevingsbeleid via{' '} omgevingsbeleid@pzh.nl diff --git a/src/pages/public/MapSearch/SidebarResults/SidebarResults.tsx b/src/pages/public/MapSearch/SidebarResults/SidebarResults.tsx index 573ed789..9fb119f2 100644 --- a/src/pages/public/MapSearch/SidebarResults/SidebarResults.tsx +++ b/src/pages/public/MapSearch/SidebarResults/SidebarResults.tsx @@ -233,7 +233,7 @@ const SidebarResults = () => { Resultaten {!isLoading && !geoLoading ? ( - + {!data?.total ? 'Er zijn geen resultaten' : data.total === 1 diff --git a/src/pages/public/NotFoundPage/NotFoundPage.tsx b/src/pages/public/NotFoundPage/NotFoundPage.tsx index df4451a1..ab6cb08b 100644 --- a/src/pages/public/NotFoundPage/NotFoundPage.tsx +++ b/src/pages/public/NotFoundPage/NotFoundPage.tsx @@ -31,7 +31,7 @@ const NotFoundPage = () => { Je kunt het volgende proberen: -
    +
    @@ -256,11 +256,11 @@ const OntwikkelingenListItem = ({ icon?: JSX.Element }) => (
  • - + {icon ? icon : }
    - + {title}

    {children}

    diff --git a/src/pages/public/Revisions/Revisions.tsx b/src/pages/public/Revisions/Revisions.tsx index 9b8cf067..f1bebd56 100644 --- a/src/pages/public/Revisions/Revisions.tsx +++ b/src/pages/public/Revisions/Revisions.tsx @@ -65,7 +65,7 @@ const Revisions = () => { href="https://www.zuid-holland.nl/onderwerpen/omgevingsbeleid/voortgang-wijzigingen-omgevingsbeleid/" target="_blank" rel="noopener noreferrer" - className="text-pzh-green underline hover:text-pzh-green-dark"> + className="text-pzh-green-500 underline hover:text-pzh-green-900"> provinciale website {' '} zie je precies welk beleid ter inzage ligt en hoe je een @@ -200,7 +200,7 @@ const Dropdown = ({ {({ open }) => ( <> {buttonText} @@ -212,7 +212,7 @@ const Dropdown = ({ }`} /> - + {panelText} @@ -339,13 +339,13 @@ const RevisionItem = ({ className={classNames( 'flex h-4 w-4 cursor-help items-center justify-center rounded', { - 'bg-pzh-green': + 'bg-pzh-green-500': ModuleObjectContext?.Action === 'Create', - 'bg-pzh-red': + 'bg-pzh-red-500': ModuleObjectContext?.Action === 'Terminate', - 'bg-pzh-blue': + 'bg-pzh-blue-500': ModuleObjectContext?.Action === 'Edit', } diff --git a/src/pages/public/SearchResults/SearchResults.tsx b/src/pages/public/SearchResults/SearchResults.tsx index 640c0bb9..e68fb309 100644 --- a/src/pages/public/SearchResults/SearchResults.tsx +++ b/src/pages/public/SearchResults/SearchResults.tsx @@ -140,7 +140,7 @@ const SearchResults = () => { <> -
    +
    { className={classNames({ 'mb-6': index + 1 !== filters.length, })}> - + {filter.label} diff --git a/src/pages/public/ThemeDetail/ThemeDetail.tsx b/src/pages/public/ThemeDetail/ThemeDetail.tsx index 400c81bc..42d120c8 100644 --- a/src/pages/public/ThemeDetail/ThemeDetail.tsx +++ b/src/pages/public/ThemeDetail/ThemeDetail.tsx @@ -64,7 +64,7 @@ function ThemeDetail() {
    {data?.Description && ( { key={item.Object.UUID} text={item.Object.Title || ''} to={`/${slugOverview}/${plural}/${item.Object.UUID}`} - className="text-pzh-green hover:text-pzh-blue" + className="text-pzh-green-500 hover:text-pzh-blue-500" /> ) })} diff --git a/src/utils/d3.ts b/src/utils/d3.ts index f049a8e7..9384f805 100644 --- a/src/utils/d3.ts +++ b/src/utils/d3.ts @@ -43,7 +43,7 @@ export const generateNodes = ( .attr('stroke-width', 1.5) .attr( 'class', - 'cursor-pointer stroke-pzh-white hover:stroke-pzh-blue-dark data-[active=true]:stroke-pzh-blue-dark' + 'cursor-pointer stroke-pzh-white hover:stroke-pzh-blue-900 data-[active=true]:stroke-pzh-blue-900' ) .attr('data-code-shape', d => d.Code) From bf05827f343211dc5278535d69b3ad8d830b1234 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 26 Mar 2024 10:42:54 +0100 Subject: [PATCH 41/82] Update package.json --- package.json | 4 - src/api/fetchers.msw.ts | 185 +++---- yarn.lock | 1071 ++------------------------------------- 3 files changed, 124 insertions(+), 1136 deletions(-) diff --git a/package.json b/package.json index 8dce52dc..205e2430 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "lodash.debounce": "^4.0.8", "lodash.groupby": "^4.6.0", "node-htmldiff": "^0.9.4", - "node-sass": "9.0.0", "proj4leaflet": "^1.0.2", "react": "^18.2.0", "react-content-loader": "^6.2.1", @@ -110,9 +109,6 @@ "msw": { "workerDirectory": "public" }, - "resolutions": { - "csstype": "3.1.2" - }, "packageManager": "yarn@4.0.1", "prettier": "@pzh-ui/config/prettier" } diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index d28c9794..e8be499d 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -10,97 +10,100 @@ */ import { faker } from '@faker-js/faker' import { HttpResponse, delay, http } from 'msw' -import type { - AOJCreatedResponse, - AcknowledgedRelation, - ActiveModuleObjectWrapper, - AmbitieFull, - AmbitieUUID, - AuthToken, - BeleidsdoelFull, - BeleidsdoelUUID, - BeleidskeuzeFull, - BeleidskeuzeUUID, - BeleidsregelFull, - BeleidsregelUUID, - EnvironmentCreatedResponse, - GebiedsprogrammaFull, - GebiedsprogrammaUUID, - GraphResponse, - MaatregelFull, - MaatregelUUID, - ModuleCreatedResponse, - ModuleObjectContext, - ModuleOverview, - ModuleSnapshot, - ModuleStatus, - NationaalBelangFull, - NationaalBelangUUID, - NewObjectStaticResponse, - ObjectCount, - PagedResponseAmbitieBasic, - PagedResponseAmbitieExtended, - PagedResponseBeleidsdoelBasic, - PagedResponseBeleidsdoelExtended, - PagedResponseBeleidskeuzeBasic, - PagedResponseBeleidskeuzeExtended, - PagedResponseBeleidsregelBasic, - PagedResponseBeleidsregelExtended, - PagedResponseGebiedsprogrammaBasic, - PagedResponseGebiedsprogrammaExtended, - PagedResponseGenericObjectShort, - PagedResponseGeoSearchResult, - PagedResponseMaatregelBasic, - PagedResponseMaatregelExtended, - PagedResponseModule, - PagedResponseModuleObjectShortStatus, - PagedResponseNationaalBelangBasic, - PagedResponseProgrammaAlgemeenBasic, - PagedResponseProgrammaAlgemeenExtended, - PagedResponsePublicModuleShort, - PagedResponsePublication, - PagedResponsePublicationAOJ, - PagedResponsePublicationEnvironment, - PagedResponsePublicationPackage, - PagedResponsePublicationPackageReportShort, - PagedResponsePublicationTemplate, - PagedResponsePublicationVersionShort, - PagedResponseSearchObject, - PagedResponseUser, - PagedResponseValidSearchObject, - PagedResponseVerplichtProgrammaBasic, - PagedResponseVisieAlgemeenBasic, - PagedResponseVisieAlgemeenExtended, - PagedResponseWerkingsgebied, - PagedResponseWerkingsgebiedBasic, - PagedResponseWerkingsgebiedExtended, - PagedResponseWettelijkeTaakBasic, - ProgrammaAlgemeenFull, - ProgrammaAlgemeenUUID, - PublicModuleOverview, - Publication, - PublicationCreatedResponse, - PublicationPackageCreatedResponse, - PublicationPackageReport, - PublicationTemplate, - PublicationVersion, - PublicationVersionCreatedResponse, - PublicationVersionEditResponse, - ReadRelation, - ResetPasswordResponse, - ResponseOK, - TemplateCreatedResponse, - UploadPackageReportResponse, - User, - UserCreateResponse, - VerplichtProgrammaFull, - VerplichtProgrammaUUID, - VisieAlgemeenFull, - VisieAlgemeenUUID, - WerkingsgebiedFull, - WerkingsgebiedUUID, - WettelijkeTaakFull, - WettelijkeTaakUUID, + +import { + GraphEdgeType, + ReportStatusType, + type AOJCreatedResponse, + type AcknowledgedRelation, + type ActiveModuleObjectWrapper, + type AmbitieFull, + type AmbitieUUID, + type AuthToken, + type BeleidsdoelFull, + type BeleidsdoelUUID, + type BeleidskeuzeFull, + type BeleidskeuzeUUID, + type BeleidsregelFull, + type BeleidsregelUUID, + type EnvironmentCreatedResponse, + type GebiedsprogrammaFull, + type GebiedsprogrammaUUID, + type GraphResponse, + type MaatregelFull, + type MaatregelUUID, + type ModuleCreatedResponse, + type ModuleObjectContext, + type ModuleOverview, + type ModuleSnapshot, + type ModuleStatus, + type NationaalBelangFull, + type NationaalBelangUUID, + type NewObjectStaticResponse, + type ObjectCount, + type PagedResponseAmbitieBasic, + type PagedResponseAmbitieExtended, + type PagedResponseBeleidsdoelBasic, + type PagedResponseBeleidsdoelExtended, + type PagedResponseBeleidskeuzeBasic, + type PagedResponseBeleidskeuzeExtended, + type PagedResponseBeleidsregelBasic, + type PagedResponseBeleidsregelExtended, + type PagedResponseGebiedsprogrammaBasic, + type PagedResponseGebiedsprogrammaExtended, + type PagedResponseGenericObjectShort, + type PagedResponseGeoSearchResult, + type PagedResponseMaatregelBasic, + type PagedResponseMaatregelExtended, + type PagedResponseModule, + type PagedResponseModuleObjectShortStatus, + type PagedResponseNationaalBelangBasic, + type PagedResponseProgrammaAlgemeenBasic, + type PagedResponseProgrammaAlgemeenExtended, + type PagedResponsePublicModuleShort, + type PagedResponsePublication, + type PagedResponsePublicationAOJ, + type PagedResponsePublicationEnvironment, + type PagedResponsePublicationPackage, + type PagedResponsePublicationPackageReportShort, + type PagedResponsePublicationTemplate, + type PagedResponsePublicationVersionShort, + type PagedResponseSearchObject, + type PagedResponseUser, + type PagedResponseValidSearchObject, + type PagedResponseVerplichtProgrammaBasic, + type PagedResponseVisieAlgemeenBasic, + type PagedResponseVisieAlgemeenExtended, + type PagedResponseWerkingsgebied, + type PagedResponseWerkingsgebiedBasic, + type PagedResponseWerkingsgebiedExtended, + type PagedResponseWettelijkeTaakBasic, + type ProgrammaAlgemeenFull, + type ProgrammaAlgemeenUUID, + type PublicModuleOverview, + type Publication, + type PublicationCreatedResponse, + type PublicationPackageCreatedResponse, + type PublicationPackageReport, + type PublicationTemplate, + type PublicationVersion, + type PublicationVersionCreatedResponse, + type PublicationVersionEditResponse, + type ReadRelation, + type ResetPasswordResponse, + type ResponseOK, + type TemplateCreatedResponse, + type UploadPackageReportResponse, + type User, + type UserCreateResponse, + type VerplichtProgrammaFull, + type VerplichtProgrammaUUID, + type VisieAlgemeenFull, + type VisieAlgemeenUUID, + type WerkingsgebiedFull, + type WerkingsgebiedUUID, + type WettelijkeTaakFull, + type WettelijkeTaakUUID, } from './fetchers.schemas' export const getAmbitiesValidGetMock = ( diff --git a/yarn.lock b/yarn.lock index b3bf7884..fa2ced77 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2208,13 +2208,6 @@ __metadata: languageName: node linkType: hard -"@gar/promisify@npm:^1.0.1, @gar/promisify@npm:^1.1.3": - version: 1.1.3 - resolution: "@gar/promisify@npm:1.1.3" - checksum: 052dd232140fa60e81588000cbe729a40146579b361f1070bce63e2a761388a22a16d00beeffc504bd3601cb8e055c57b21a185448b3ed550cf50716f4fd442e - languageName: node - linkType: hard - "@headlessui/react@npm:^1.5.0, @headlessui/react@npm:^1.7.17": version: 1.7.18 resolution: "@headlessui/react@npm:1.7.18" @@ -2521,26 +2514,6 @@ __metadata: languageName: node linkType: hard -"@npmcli/fs@npm:^1.0.0": - version: 1.1.1 - resolution: "@npmcli/fs@npm:1.1.1" - dependencies: - "@gar/promisify": "npm:^1.0.1" - semver: "npm:^7.3.5" - checksum: 8b5e6d75759b9f1a8b7885913df274c8cbbb1221176872615f2aecedf47b2c36e5dfbf4046ff1a905c9f3592fbd32051b3050b8a897bf03514a1a404b39af074 - languageName: node - linkType: hard - -"@npmcli/fs@npm:^2.1.0": - version: 2.1.2 - resolution: "@npmcli/fs@npm:2.1.2" - dependencies: - "@gar/promisify": "npm:^1.1.3" - semver: "npm:^7.3.5" - checksum: c5d4dfee80de2236e1e4ed595d17e217aada72ebd8215183fc46096fa010f583dd2aaaa486758de7cc0b89440dbc31cfe8b276269d75d47af35c716e896f78ec - languageName: node - linkType: hard - "@npmcli/fs@npm:^3.1.0": version: 3.1.0 resolution: "@npmcli/fs@npm:3.1.0" @@ -2550,26 +2523,6 @@ __metadata: languageName: node linkType: hard -"@npmcli/move-file@npm:^1.0.1": - version: 1.1.2 - resolution: "@npmcli/move-file@npm:1.1.2" - dependencies: - mkdirp: "npm:^1.0.4" - rimraf: "npm:^3.0.2" - checksum: c96381d4a37448ea280951e46233f7e541058cf57a57d4094dd4bdcaae43fa5872b5f2eb6bfb004591a68e29c5877abe3cdc210cb3588cbf20ab2877f31a7de7 - languageName: node - linkType: hard - -"@npmcli/move-file@npm:^2.0.0": - version: 2.0.1 - resolution: "@npmcli/move-file@npm:2.0.1" - dependencies: - mkdirp: "npm:^1.0.4" - rimraf: "npm:^3.0.2" - checksum: 52dc02259d98da517fae4cb3a0a3850227bdae4939dda1980b788a7670636ca2b4a01b58df03dd5f65c1e3cb70c50fa8ce5762b582b3f499ec30ee5ce1fd9380 - languageName: node - linkType: hard - "@open-draft/deferred-promise@npm:^2.2.0": version: 2.2.0 resolution: "@open-draft/deferred-promise@npm:2.2.0" @@ -5291,13 +5244,6 @@ __metadata: languageName: node linkType: hard -"@tootallnate/once@npm:1": - version: 1.1.2 - resolution: "@tootallnate/once@npm:1.1.2" - checksum: e1fb1bbbc12089a0cb9433dc290f97bddd062deadb6178ce9bcb93bb7c1aecde5e60184bc7065aec42fe1663622a213493c48bbd4972d931aae48315f18e1be9 - languageName: node - linkType: hard - "@tootallnate/once@npm:2": version: 2.0.0 resolution: "@tootallnate/once@npm:2.0.0" @@ -5768,13 +5714,6 @@ __metadata: languageName: node linkType: hard -"@types/minimist@npm:^1.2.0": - version: 1.2.5 - resolution: "@types/minimist@npm:1.2.5" - checksum: 477047b606005058ab0263c4f58097136268007f320003c348794f74adedc3166ffc47c80ec3e94687787f2ab7f4e72c468223946e79892cf0fd9e25e9970a90 - languageName: node - linkType: hard - "@types/mute-stream@npm:^0.0.4": version: 0.0.4 resolution: "@types/mute-stream@npm:0.0.4" @@ -5793,13 +5732,6 @@ __metadata: languageName: node linkType: hard -"@types/normalize-package-data@npm:^2.4.0": - version: 2.4.4 - resolution: "@types/normalize-package-data@npm:2.4.4" - checksum: 65dff72b543997b7be8b0265eca7ace0e34b75c3e5fee31de11179d08fa7124a7a5587265d53d0409532ecb7f7fba662c2012807963e1f9b059653ec2c83ee05 - languageName: node - linkType: hard - "@types/object.omit@npm:^3.0.0": version: 3.0.3 resolution: "@types/object.omit@npm:3.0.3" @@ -6197,13 +6129,6 @@ __metadata: languageName: node linkType: hard -"abbrev@npm:1": - version: 1.1.1 - resolution: "abbrev@npm:1.1.1" - checksum: 2d882941183c66aa665118bafdab82b7a177e9add5eb2776c33e960a4f3c89cff88a1b38aba13a456de01d0dd9d66a8bea7c903268b21ea91dd1097e1e2e8243 - languageName: node - linkType: hard - "abbrev@npm:^2.0.0": version: 2.0.0 resolution: "abbrev@npm:2.0.0" @@ -6252,7 +6177,7 @@ __metadata: languageName: node linkType: hard -"agent-base@npm:6, agent-base@npm:^6.0.2": +"agent-base@npm:6": version: 6.0.2 resolution: "agent-base@npm:6.0.2" dependencies: @@ -6270,15 +6195,6 @@ __metadata: languageName: node linkType: hard -"agentkeepalive@npm:^4.1.3, agentkeepalive@npm:^4.2.1": - version: 4.5.0 - resolution: "agentkeepalive@npm:4.5.0" - dependencies: - humanize-ms: "npm:^1.2.1" - checksum: dd210ba2a2e2482028f027b1156789744aadbfd773a6c9dd8e4e8001930d5af82382abe19a69240307b1d8003222ce6b0542935038313434b900e351914fc15f - languageName: node - linkType: hard - "aggregate-error@npm:^3.0.0": version: 3.1.0 resolution: "aggregate-error@npm:3.1.0" @@ -6427,23 +6343,6 @@ __metadata: languageName: node linkType: hard -"aproba@npm:^1.0.3 || ^2.0.0": - version: 2.0.0 - resolution: "aproba@npm:2.0.0" - checksum: c2b9a631298e8d6f3797547e866db642f68493808f5b37cd61da778d5f6ada890d16f668285f7d60bd4fc3b03889bd590ffe62cf81b700e9bb353431238a0a7b - languageName: node - linkType: hard - -"are-we-there-yet@npm:^3.0.0": - version: 3.0.1 - resolution: "are-we-there-yet@npm:3.0.1" - dependencies: - delegates: "npm:^1.0.0" - readable-stream: "npm:^3.6.0" - checksum: 390731720e1bf9ed5d0efc635ea7df8cbc4c90308b0645a932f06e8495a0bf1ecc7987d3b97e805f62a17d6c4b634074b25200aa4d149be2a7b17250b9744bc4 - languageName: node - linkType: hard - "arg@npm:^5.0.2": version: 5.0.2 resolution: "arg@npm:5.0.2" @@ -6603,13 +6502,6 @@ __metadata: languageName: node linkType: hard -"arrify@npm:^1.0.1": - version: 1.0.1 - resolution: "arrify@npm:1.0.1" - checksum: 745075dd4a4624ff0225c331dacb99be501a515d39bcb7c84d24660314a6ec28e68131b137e6f7e16318170842ce97538cd298fc4cd6b2cc798e0b957f2747e7 - languageName: node - linkType: hard - "assertion-error@npm:^1.1.0": version: 1.1.0 resolution: "assertion-error@npm:1.1.0" @@ -6633,13 +6525,6 @@ __metadata: languageName: node linkType: hard -"async-foreach@npm:^0.1.3": - version: 0.1.3 - resolution: "async-foreach@npm:0.1.3" - checksum: 8023859043cfade478d3637adb3083eeb713b0da28752db26a9095bed05632782d3545a04be3a4f2d28583216742689552ba32538c72f4a35bf2211141edebf4 - languageName: node - linkType: hard - "asynciterator.prototype@npm:^1.0.0": version: 1.0.0 resolution: "asynciterator.prototype@npm:1.0.0" @@ -6863,58 +6748,6 @@ __metadata: languageName: node linkType: hard -"cacache@npm:^15.2.0": - version: 15.3.0 - resolution: "cacache@npm:15.3.0" - dependencies: - "@npmcli/fs": "npm:^1.0.0" - "@npmcli/move-file": "npm:^1.0.1" - chownr: "npm:^2.0.0" - fs-minipass: "npm:^2.0.0" - glob: "npm:^7.1.4" - infer-owner: "npm:^1.0.4" - lru-cache: "npm:^6.0.0" - minipass: "npm:^3.1.1" - minipass-collect: "npm:^1.0.2" - minipass-flush: "npm:^1.0.5" - minipass-pipeline: "npm:^1.2.2" - mkdirp: "npm:^1.0.3" - p-map: "npm:^4.0.0" - promise-inflight: "npm:^1.0.1" - rimraf: "npm:^3.0.2" - ssri: "npm:^8.0.1" - tar: "npm:^6.0.2" - unique-filename: "npm:^1.1.1" - checksum: 1432d84f3f4b31421cf47c15e6956e5e736a93c65126b0fd69ae5f70643d29be8996f33d4995204f578850de5d556268540911c04ecc1c026375b18600534f08 - languageName: node - linkType: hard - -"cacache@npm:^16.1.0": - version: 16.1.3 - resolution: "cacache@npm:16.1.3" - dependencies: - "@npmcli/fs": "npm:^2.1.0" - "@npmcli/move-file": "npm:^2.0.0" - chownr: "npm:^2.0.0" - fs-minipass: "npm:^2.1.0" - glob: "npm:^8.0.1" - infer-owner: "npm:^1.0.4" - lru-cache: "npm:^7.7.1" - minipass: "npm:^3.1.6" - minipass-collect: "npm:^1.0.2" - minipass-flush: "npm:^1.0.5" - minipass-pipeline: "npm:^1.2.4" - mkdirp: "npm:^1.0.4" - p-map: "npm:^4.0.0" - promise-inflight: "npm:^1.0.1" - rimraf: "npm:^3.0.2" - ssri: "npm:^9.0.0" - tar: "npm:^6.1.11" - unique-filename: "npm:^2.0.0" - checksum: a14524d90e377ee691d63a81173b33c473f8bc66eb299c64290b58e1d41b28842397f8d6c15a01b4c57ca340afcec019ae112a45c2f67a79f76130d326472e92 - languageName: node - linkType: hard - "cacache@npm:^18.0.0": version: 18.0.2 resolution: "cacache@npm:18.0.2" @@ -6980,24 +6813,6 @@ __metadata: languageName: node linkType: hard -"camelcase-keys@npm:^6.2.2": - version: 6.2.2 - resolution: "camelcase-keys@npm:6.2.2" - dependencies: - camelcase: "npm:^5.3.1" - map-obj: "npm:^4.0.0" - quick-lru: "npm:^4.0.1" - checksum: c1999f5b6d03bee7be9a36e48eef3da9e93e51b000677348ec8d15d51fc4418375890fb6c7155e387322d2ebb2a2cdebf9cd96607a6753d1d6c170d9b1e2eed5 - languageName: node - linkType: hard - -"camelcase@npm:^5.3.1": - version: 5.3.1 - resolution: "camelcase@npm:5.3.1" - checksum: e6effce26b9404e3c0f301498184f243811c30dfe6d0b9051863bd8e4034d09c8c2923794f280d6827e5aa055f6c434115ff97864a16a963366fb35fd673024b - languageName: node - linkType: hard - "camelcase@npm:^6.2.0": version: 6.3.0 resolution: "camelcase@npm:6.3.0" @@ -7192,15 +7007,6 @@ __metadata: languageName: node linkType: hard -"color-support@npm:^1.1.3": - version: 1.1.3 - resolution: "color-support@npm:1.1.3" - bin: - color-support: bin.js - checksum: 4bcfe30eea1498fe1cabc852bbda6c9770f230ea0e4faf4611c5858b1b9e4dde3730ac485e65f54ca182f4c50b626c1bea7c8441ceda47367a54a818c248aa7a - languageName: node - linkType: hard - "combined-stream@npm:^1.0.8": version: 1.0.8 resolution: "combined-stream@npm:1.0.8" @@ -7258,13 +7064,6 @@ __metadata: languageName: node linkType: hard -"console-control-strings@npm:^1.1.0": - version: 1.1.0 - resolution: "console-control-strings@npm:1.1.0" - checksum: 27b5fa302bc8e9ae9e98c03c66d76ca289ad0c61ce2fe20ab288d288bee875d217512d2edb2363fc83165e88f1c405180cf3f5413a46e51b4fe1a004840c6cdb - languageName: node - linkType: hard - "convert-source-map@npm:^1.5.0": version: 1.9.0 resolution: "convert-source-map@npm:1.9.0" @@ -7295,13 +7094,6 @@ __metadata: languageName: node linkType: hard -"core-util-is@npm:~1.0.0": - version: 1.0.3 - resolution: "core-util-is@npm:1.0.3" - checksum: 9de8597363a8e9b9952491ebe18167e3b36e7707569eed0ebf14f8bba773611376466ae34575bca8cfe3c767890c859c74056084738f09d4e4a6f902b2ad7d99 - languageName: node - linkType: hard - "cosmiconfig@npm:^7.0.0": version: 7.1.0 resolution: "cosmiconfig@npm:7.1.0" @@ -7375,10 +7167,10 @@ __metadata: languageName: node linkType: hard -"csstype@npm:3.1.2": - version: 3.1.2 - resolution: "csstype@npm:3.1.2" - checksum: 1f39c541e9acd9562996d88bc9fb62d1cb234786ef11ed275567d4b2bd82e1ceacde25debc8de3d3b4871ae02c2933fa02614004c97190711caebad6347debc2 +"csstype@npm:^3.0.2": + version: 3.1.3 + resolution: "csstype@npm:3.1.3" + checksum: f593cce41ff5ade23f44e77521e3a1bcc2c64107041e1bf6c3c32adc5187d0d60983292fda326154d20b01079e24931aa5b08e4467cc488b60bb1e7f6d478ade languageName: node linkType: hard @@ -7741,7 +7533,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": +"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" dependencies: @@ -7762,23 +7554,6 @@ __metadata: languageName: node linkType: hard -"decamelize-keys@npm:^1.1.0": - version: 1.1.1 - resolution: "decamelize-keys@npm:1.1.1" - dependencies: - decamelize: "npm:^1.1.0" - map-obj: "npm:^1.0.0" - checksum: 71d5898174f17a8d2303cecc98ba0236e842948c4d042a8180d5e749be8442220bca2d16dd93bebd7b49e86c807814273212e4da0fae67be7c58c282ff76057a - languageName: node - linkType: hard - -"decamelize@npm:^1.1.0, decamelize@npm:^1.2.0": - version: 1.2.0 - resolution: "decamelize@npm:1.2.0" - checksum: ad8c51a7e7e0720c70ec2eeb1163b66da03e7616d7b98c9ef43cce2416395e84c1e9548dd94f5f6ffecfee9f8b94251fc57121a8b021f2ff2469b2bae247b8aa - languageName: node - linkType: hard - "decimal.js@npm:^10.4.3": version: 10.4.3 resolution: "decimal.js@npm:10.4.3" @@ -7888,13 +7663,6 @@ __metadata: languageName: node linkType: hard -"delegates@npm:^1.0.0": - version: 1.0.0 - resolution: "delegates@npm:1.0.0" - checksum: a51744d9b53c164ba9c0492471a1a2ffa0b6727451bdc89e31627fdf4adda9d51277cfcbfb20f0a6f08ccb3c436f341df3e92631a3440226d93a8971724771fd - languageName: node - linkType: hard - "dependency-graph@npm:0.11.0, dependency-graph@npm:~0.11.0": version: 0.11.0 resolution: "dependency-graph@npm:0.11.0" @@ -8042,7 +7810,7 @@ __metadata: languageName: node linkType: hard -"encoding@npm:^0.1.12, encoding@npm:^0.1.13": +"encoding@npm:^0.1.13": version: 0.1.13 resolution: "encoding@npm:0.1.13" dependencies: @@ -8939,16 +8707,6 @@ __metadata: languageName: node linkType: hard -"find-up@npm:^4.1.0": - version: 4.1.0 - resolution: "find-up@npm:4.1.0" - dependencies: - locate-path: "npm:^5.0.0" - path-exists: "npm:^4.0.0" - checksum: 4c172680e8f8c1f78839486e14a43ef82e9decd0e74145f40707cc42e7420506d5ec92d9a11c22bd2c48fb0c384ea05dd30e10dd152fefeec6f2f75282a8b844 - languageName: node - linkType: hard - "flat-cache@npm:^3.0.4": version: 3.2.0 resolution: "flat-cache@npm:3.2.0" @@ -9076,7 +8834,7 @@ __metadata: languageName: node linkType: hard -"fs-minipass@npm:^2.0.0, fs-minipass@npm:^2.1.0": +"fs-minipass@npm:^2.0.0": version: 2.1.0 resolution: "fs-minipass@npm:2.1.0" dependencies: @@ -9146,31 +8904,6 @@ __metadata: languageName: node linkType: hard -"gauge@npm:^4.0.3": - version: 4.0.4 - resolution: "gauge@npm:4.0.4" - dependencies: - aproba: "npm:^1.0.3 || ^2.0.0" - color-support: "npm:^1.1.3" - console-control-strings: "npm:^1.1.0" - has-unicode: "npm:^2.0.1" - signal-exit: "npm:^3.0.7" - string-width: "npm:^4.2.3" - strip-ansi: "npm:^6.0.1" - wide-align: "npm:^1.1.5" - checksum: 09535dd53b5ced6a34482b1fa9f3929efdeac02f9858569cde73cef3ed95050e0f3d095706c1689614059898924b7a74aa14042f51381a1ccc4ee5c29d2389c4 - languageName: node - linkType: hard - -"gaze@npm:^1.0.0": - version: 1.1.3 - resolution: "gaze@npm:1.1.3" - dependencies: - globule: "npm:^1.0.0" - checksum: 9ff1110aae5c7d96cbd49812883558971c2f9eba00bdd20e326b5644e262956464fa67edcad03f2cb2ae6ca4f26c80cb1fb5b4a610280a77fca51046acc7749c - languageName: node - linkType: hard - "gensync@npm:^1.0.0-beta.2": version: 1.0.0-beta.2 resolution: "gensync@npm:1.0.0-beta.2" @@ -9205,13 +8938,6 @@ __metadata: languageName: node linkType: hard -"get-stdin@npm:^4.0.1": - version: 4.0.1 - resolution: "get-stdin@npm:4.0.1" - checksum: 4f73d3fe0516bc1f3dc7764466a68ad7c2ba809397a02f56c2a598120e028430fcff137a648a01876b2adfb486b4bc164119f98f1f7d7c0abd63385bdaa0113f - languageName: node - linkType: hard - "get-stream@npm:^6.0.0": version: 6.0.1 resolution: "get-stream@npm:6.0.1" @@ -9270,7 +8996,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^7.0.0, glob@npm:^7.0.3, glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.2.0": +"glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.2.0": version: 7.2.3 resolution: "glob@npm:7.2.3" dependencies: @@ -9284,33 +9010,6 @@ __metadata: languageName: node linkType: hard -"glob@npm:^8.0.1": - version: 8.1.0 - resolution: "glob@npm:8.1.0" - dependencies: - fs.realpath: "npm:^1.0.0" - inflight: "npm:^1.0.4" - inherits: "npm:2" - minimatch: "npm:^5.0.1" - once: "npm:^1.3.0" - checksum: 9aab1c75eb087c35dbc41d1f742e51d0507aa2b14c910d96fb8287107a10a22f4bbdce26fc0a3da4c69a20f7b26d62f1640b346a4f6e6becfff47f335bb1dc5e - languageName: node - linkType: hard - -"glob@npm:~7.1.1": - version: 7.1.7 - resolution: "glob@npm:7.1.7" - dependencies: - fs.realpath: "npm:^1.0.0" - inflight: "npm:^1.0.4" - inherits: "npm:2" - minimatch: "npm:^3.0.4" - once: "npm:^1.3.0" - path-is-absolute: "npm:^1.0.0" - checksum: ff5aab0386e9cace92b0550d42085b71013c5ea382982dd7fdded998a559635f61413b8ba6fb7294eef289c83b52f4e64136f888300ac8afc4f3e5623182d6c8 - languageName: node - linkType: hard - "globals@npm:^11.1.0": version: 11.12.0 resolution: "globals@npm:11.12.0" @@ -9357,17 +9056,6 @@ __metadata: languageName: node linkType: hard -"globule@npm:^1.0.0": - version: 1.3.4 - resolution: "globule@npm:1.3.4" - dependencies: - glob: "npm:~7.1.1" - lodash: "npm:^4.17.21" - minimatch: "npm:~3.0.2" - checksum: 04ac30656f9fc34e7e30a700ef39bfc357629a9214e2e228ee714bc0f1be60c5e4e2a78facafa5588889b02d25f02012d9e8c057704040e19e86b920effe54d5 - languageName: node - linkType: hard - "gopd@npm:^1.0.1": version: 1.0.1 resolution: "gopd@npm:1.0.1" @@ -9398,13 +9086,6 @@ __metadata: languageName: node linkType: hard -"hard-rejection@npm:^2.1.0": - version: 2.1.0 - resolution: "hard-rejection@npm:2.1.0" - checksum: 7baaf80a0c7fff4ca79687b4060113f1529589852152fa935e6787a2bc96211e784ad4588fb3048136ff8ffc9dfcf3ae385314a5b24db32de20bea0d1597f9dc - languageName: node - linkType: hard - "has-bigints@npm:^1.0.1, has-bigints@npm:^1.0.2": version: 1.0.2 resolution: "has-bigints@npm:1.0.2" @@ -9458,13 +9139,6 @@ __metadata: languageName: node linkType: hard -"has-unicode@npm:^2.0.1": - version: 2.0.1 - resolution: "has-unicode@npm:2.0.1" - checksum: 041b4293ad6bf391e21c5d85ed03f412506d6623786b801c4ab39e4e6ca54993f13201bceb544d92963f9e0024e6e7fbf0cb1d84c9d6b31cb9c79c8c990d13d8 - languageName: node - linkType: hard - "hasown@npm:^2.0.0": version: 2.0.1 resolution: "hasown@npm:2.0.1" @@ -9490,22 +9164,6 @@ __metadata: languageName: node linkType: hard -"hosted-git-info@npm:^2.1.4": - version: 2.8.9 - resolution: "hosted-git-info@npm:2.8.9" - checksum: 96da7d412303704af41c3819207a09ea2cab2de97951db4cf336bb8bce8d8e36b9a6821036ad2e55e67d3be0af8f967a7b57981203fbfb88bc05cd803407b8c3 - languageName: node - linkType: hard - -"hosted-git-info@npm:^4.0.1": - version: 4.1.0 - resolution: "hosted-git-info@npm:4.1.0" - dependencies: - lru-cache: "npm:^6.0.0" - checksum: 4dc67022b7ecb12829966bd731fb9a5f14d351547aafc6520ef3c8e7211f4f0e69452d24e29eae3d9b17df924d660052e53d8ca321cf3008418fb7e6c7c47d6f - languageName: node - linkType: hard - "html-encoding-sniffer@npm:^3.0.0": version: 3.0.0 resolution: "html-encoding-sniffer@npm:3.0.0" @@ -9522,24 +9180,13 @@ __metadata: languageName: node linkType: hard -"http-cache-semantics@npm:^4.1.0, http-cache-semantics@npm:^4.1.1": +"http-cache-semantics@npm:^4.1.1": version: 4.1.1 resolution: "http-cache-semantics@npm:4.1.1" checksum: 362d5ed66b12ceb9c0a328fb31200b590ab1b02f4a254a697dc796850cc4385603e75f53ec59f768b2dad3bfa1464bd229f7de278d2899a0e3beffc634b6683f languageName: node linkType: hard -"http-proxy-agent@npm:^4.0.1": - version: 4.0.1 - resolution: "http-proxy-agent@npm:4.0.1" - dependencies: - "@tootallnate/once": "npm:1" - agent-base: "npm:6" - debug: "npm:4" - checksum: 2e17f5519f2f2740b236d1d14911ea4be170c67419dc15b05ea9a860a22c5d9c6ff4da270972117067cc2cefeba9df5f7cd5e7818fdc6ae52b6acf2a533e5fdd - languageName: node - linkType: hard - "http-proxy-agent@npm:^5.0.0": version: 5.0.0 resolution: "http-proxy-agent@npm:5.0.0" @@ -9568,7 +9215,7 @@ __metadata: languageName: node linkType: hard -"https-proxy-agent@npm:^5.0.0, https-proxy-agent@npm:^5.0.1": +"https-proxy-agent@npm:^5.0.1": version: 5.0.1 resolution: "https-proxy-agent@npm:5.0.1" dependencies: @@ -9602,15 +9249,6 @@ __metadata: languageName: node linkType: hard -"humanize-ms@npm:^1.2.1": - version: 1.2.1 - resolution: "humanize-ms@npm:1.2.1" - dependencies: - ms: "npm:^2.0.0" - checksum: 9c7a74a2827f9294c009266c82031030eae811ca87b0da3dceb8d6071b9bde22c9f3daef0469c3c533cc67a97d8a167cd9fc0389350e5f415f61a79b171ded16 - languageName: node - linkType: hard - "iconv-lite@npm:0.6, iconv-lite@npm:0.6.3, iconv-lite@npm:^0.6.2": version: 0.6.3 resolution: "iconv-lite@npm:0.6.3" @@ -9665,13 +9303,6 @@ __metadata: languageName: node linkType: hard -"infer-owner@npm:^1.0.4": - version: 1.0.4 - resolution: "infer-owner@npm:1.0.4" - checksum: 181e732764e4a0611576466b4b87dac338972b839920b2a8cde43642e4ed6bd54dc1fb0b40874728f2a2df9a1b097b8ff83b56d5f8f8e3927f837fdcb47d8a89 - languageName: node - linkType: hard - "inflight@npm:^1.0.4": version: 1.0.6 resolution: "inflight@npm:1.0.6" @@ -9682,7 +9313,7 @@ __metadata: languageName: node linkType: hard -"inherits@npm:2, inherits@npm:^2.0.3, inherits@npm:~2.0.3": +"inherits@npm:2": version: 2.0.4 resolution: "inherits@npm:2.0.4" checksum: cd45e923bee15186c07fa4c89db0aace24824c482fb887b528304694b2aa6ff8a898da8657046a5dcf3e46cd6db6c61629551f9215f208d7c3f157cf9b290521 @@ -9809,7 +9440,7 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.13.0, is-core-module@npm:^2.13.1, is-core-module@npm:^2.5.0": +"is-core-module@npm:^2.13.0, is-core-module@npm:^2.13.1": version: 2.13.1 resolution: "is-core-module@npm:2.13.1" dependencies: @@ -9937,13 +9568,6 @@ __metadata: languageName: node linkType: hard -"is-plain-obj@npm:^1.1.0": - version: 1.1.0 - resolution: "is-plain-obj@npm:1.1.0" - checksum: 0ee04807797aad50859652a7467481816cbb57e5cc97d813a7dcd8915da8195dc68c436010bf39d195226cde6a2d352f4b815f16f26b7bf486a5754290629931 - languageName: node - linkType: hard - "is-plain-object@npm:^2.0.4": version: 2.0.4 resolution: "is-plain-object@npm:2.0.4" @@ -10078,13 +9702,6 @@ __metadata: languageName: node linkType: hard -"isarray@npm:~1.0.0": - version: 1.0.0 - resolution: "isarray@npm:1.0.0" - checksum: f032df8e02dce8ec565cf2eb605ea939bdccea528dbcf565cdf92bfa2da9110461159d86a537388ef1acef8815a330642d7885b29010e8f7eac967c9993b65ab - languageName: node - linkType: hard - "isexe@npm:^2.0.0": version: 2.0.0 resolution: "isexe@npm:2.0.0" @@ -10180,13 +9797,6 @@ __metadata: languageName: node linkType: hard -"js-base64@npm:^2.4.9": - version: 2.6.4 - resolution: "js-base64@npm:2.6.4" - checksum: c1a740a34fbb0ad0a528c2ab8749d7f873b1856a0638826306fcd98502e3c8c833334dff233085407e3201be543e5e71bf9692da7891ca680d9b03d027247a6a - languageName: node - linkType: hard - "js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -10416,13 +10026,6 @@ __metadata: languageName: node linkType: hard -"kind-of@npm:^6.0.3": - version: 6.0.3 - resolution: "kind-of@npm:6.0.3" - checksum: 5873d303fb36aad875b7538798867da2ae5c9e328d67194b0162a3659a627d22f742fc9c4ae95cd1704132a24b00cae5041fc00c0f6ef937dc17080dc4dbb962 - languageName: node - linkType: hard - "language-subtag-registry@npm:^0.3.20": version: 0.3.22 resolution: "language-subtag-registry@npm:0.3.22" @@ -10526,15 +10129,6 @@ __metadata: languageName: node linkType: hard -"locate-path@npm:^5.0.0": - version: 5.0.0 - resolution: "locate-path@npm:5.0.0" - dependencies: - p-locate: "npm:^4.1.0" - checksum: 83e51725e67517287d73e1ded92b28602e3ae5580b301fe54bfb76c0c723e3f285b19252e375712316774cf52006cb236aed5704692c32db0d5d089b69696e30 - languageName: node - linkType: hard - "locate-path@npm:^6.0.0": version: 6.0.0 resolution: "locate-path@npm:6.0.0" @@ -10724,13 +10318,6 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:^7.7.1": - version: 7.18.3 - resolution: "lru-cache@npm:7.18.3" - checksum: 6029ca5aba3aacb554e919d7ef804fffd4adfc4c83db00fac8248c7c78811fb6d4b6f70f7fd9d55032b3823446546a007edaa66ad1f2377ae833bd983fac5d98 - languageName: node - linkType: hard - "lz-string@npm:^1.5.0": version: 1.5.0 resolution: "lz-string@npm:1.5.0" @@ -10776,30 +10363,6 @@ __metadata: languageName: node linkType: hard -"make-fetch-happen@npm:^10.0.4": - version: 10.2.1 - resolution: "make-fetch-happen@npm:10.2.1" - dependencies: - agentkeepalive: "npm:^4.2.1" - cacache: "npm:^16.1.0" - http-cache-semantics: "npm:^4.1.0" - http-proxy-agent: "npm:^5.0.0" - https-proxy-agent: "npm:^5.0.0" - is-lambda: "npm:^1.0.1" - lru-cache: "npm:^7.7.1" - minipass: "npm:^3.1.6" - minipass-collect: "npm:^1.0.2" - minipass-fetch: "npm:^2.0.3" - minipass-flush: "npm:^1.0.5" - minipass-pipeline: "npm:^1.2.4" - negotiator: "npm:^0.6.3" - promise-retry: "npm:^2.0.1" - socks-proxy-agent: "npm:^7.0.0" - ssri: "npm:^9.0.0" - checksum: fef5acb865a46f25ad0b5ad7d979799125db5dbb24ea811ffa850fbb804bc8e495df2237a8ec3a4fc6250e73c2f95549cca6d6d36a73b1faa61224504eb1188f - languageName: node - linkType: hard - "make-fetch-happen@npm:^13.0.0": version: 13.0.0 resolution: "make-fetch-happen@npm:13.0.0" @@ -10819,44 +10382,6 @@ __metadata: languageName: node linkType: hard -"make-fetch-happen@npm:^9.1.0": - version: 9.1.0 - resolution: "make-fetch-happen@npm:9.1.0" - dependencies: - agentkeepalive: "npm:^4.1.3" - cacache: "npm:^15.2.0" - http-cache-semantics: "npm:^4.1.0" - http-proxy-agent: "npm:^4.0.1" - https-proxy-agent: "npm:^5.0.0" - is-lambda: "npm:^1.0.1" - lru-cache: "npm:^6.0.0" - minipass: "npm:^3.1.3" - minipass-collect: "npm:^1.0.2" - minipass-fetch: "npm:^1.3.2" - minipass-flush: "npm:^1.0.5" - minipass-pipeline: "npm:^1.2.4" - negotiator: "npm:^0.6.2" - promise-retry: "npm:^2.0.1" - socks-proxy-agent: "npm:^6.0.0" - ssri: "npm:^8.0.0" - checksum: a868e74fc223a78afb7a1f8115133befdffae84f07a5f5dd9317cbf9f784a8373f28829a73ae3f31060e1b0cb4944e73257733c3b10c314354060fab412b6028 - languageName: node - linkType: hard - -"map-obj@npm:^1.0.0": - version: 1.0.1 - resolution: "map-obj@npm:1.0.1" - checksum: f8e6fc7f6137329c376c4524f6d25b3c243c17019bc8f621d15a2dcb855919e482a9298a78ae58b00dbd0e76b640bf6533aa343a9e993cfc16e0346a2507e7f8 - languageName: node - linkType: hard - -"map-obj@npm:^4.0.0": - version: 4.3.0 - resolution: "map-obj@npm:4.3.0" - checksum: fbc554934d1a27a1910e842bc87b177b1a556609dd803747c85ece420692380827c6ae94a95cce4407c054fa0964be3bf8226f7f2cb2e9eeee432c7c1985684e - languageName: node - linkType: hard - "markdown-it@npm:^14.0.0": version: 14.0.0 resolution: "markdown-it@npm:14.0.0" @@ -10887,26 +10412,6 @@ __metadata: languageName: node linkType: hard -"meow@npm:^9.0.0": - version: 9.0.0 - resolution: "meow@npm:9.0.0" - dependencies: - "@types/minimist": "npm:^1.2.0" - camelcase-keys: "npm:^6.2.2" - decamelize: "npm:^1.2.0" - decamelize-keys: "npm:^1.1.0" - hard-rejection: "npm:^2.1.0" - minimist-options: "npm:4.1.0" - normalize-package-data: "npm:^3.0.0" - read-pkg-up: "npm:^7.0.1" - redent: "npm:^3.0.0" - trim-newlines: "npm:^3.0.0" - type-fest: "npm:^0.18.0" - yargs-parser: "npm:^20.2.3" - checksum: 3d0f199b9ccd81856a112f651290676f6816833626df53cee72b8e2c9acbd95beea4fa1f9fa729a553b5a0e74b18954f9fbc74c3ab837b3fc44e57de98f6c18f - languageName: node - linkType: hard - "merge-stream@npm:^2.0.0": version: 2.0.0 resolution: "merge-stream@npm:2.0.0" @@ -10993,15 +10498,6 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^5.0.1": - version: 5.1.6 - resolution: "minimatch@npm:5.1.6" - dependencies: - brace-expansion: "npm:^2.0.1" - checksum: 126b36485b821daf96d33b5c821dac600cc1ab36c87e7a532594f9b1652b1fa89a1eebcaad4dff17c764dce1a7ac1531327f190fed5f97d8f6e5f889c116c429 - languageName: node - linkType: hard - "minimatch@npm:^6.1.6": version: 6.2.0 resolution: "minimatch@npm:6.2.0" @@ -11020,26 +10516,6 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:~3.0.2": - version: 3.0.8 - resolution: "minimatch@npm:3.0.8" - dependencies: - brace-expansion: "npm:^1.1.7" - checksum: 6df5373cb1ea79020beb6887ff5576c58cfabcfd32c5a65c2cf58f326e4ee8eae84f129e5fa50b8a4347fa1d1e583f931285c9fb3040d984bdfb5109ef6607ec - languageName: node - linkType: hard - -"minimist-options@npm:4.1.0": - version: 4.1.0 - resolution: "minimist-options@npm:4.1.0" - dependencies: - arrify: "npm:^1.0.1" - is-plain-obj: "npm:^1.1.0" - kind-of: "npm:^6.0.3" - checksum: 8c040b3068811e79de1140ca2b708d3e203c8003eb9a414c1ab3cd467fc5f17c9ca02a5aef23bedc51a7f8bfbe77f87e9a7e31ec81fba304cda675b019496f4e - languageName: node - linkType: hard - "minimist@npm:^1.2.0, minimist@npm:^1.2.6": version: 1.2.8 resolution: "minimist@npm:1.2.8" @@ -11047,15 +10523,6 @@ __metadata: languageName: node linkType: hard -"minipass-collect@npm:^1.0.2": - version: 1.0.2 - resolution: "minipass-collect@npm:1.0.2" - dependencies: - minipass: "npm:^3.0.0" - checksum: 14df761028f3e47293aee72888f2657695ec66bd7d09cae7ad558da30415fdc4752bbfee66287dcc6fd5e6a2fa3466d6c484dc1cbd986525d9393b9523d97f10 - languageName: node - linkType: hard - "minipass-collect@npm:^2.0.1": version: 2.0.1 resolution: "minipass-collect@npm:2.0.1" @@ -11065,36 +10532,6 @@ __metadata: languageName: node linkType: hard -"minipass-fetch@npm:^1.3.2": - version: 1.4.1 - resolution: "minipass-fetch@npm:1.4.1" - dependencies: - encoding: "npm:^0.1.12" - minipass: "npm:^3.1.0" - minipass-sized: "npm:^1.0.3" - minizlib: "npm:^2.0.0" - dependenciesMeta: - encoding: - optional: true - checksum: 4c6f678d2c976c275ba35735aa18e341401d1fb94bbf38a36bb2c2d01835ac699f15b7ab1adaf4ee40a751361527d312a18853feaf9c0121f4904f811656575a - languageName: node - linkType: hard - -"minipass-fetch@npm:^2.0.3": - version: 2.1.2 - resolution: "minipass-fetch@npm:2.1.2" - dependencies: - encoding: "npm:^0.1.13" - minipass: "npm:^3.1.6" - minipass-sized: "npm:^1.0.3" - minizlib: "npm:^2.1.2" - dependenciesMeta: - encoding: - optional: true - checksum: 8cfc589563ae2a11eebbf79121ef9a526fd078fca949ed3f1e4a51472ca4a4aad89fcea1738982ce9d7d833116ecc9c6ae9ebbd844832a94e3f4a3d4d1b9d3b9 - languageName: node - linkType: hard - "minipass-fetch@npm:^3.0.0": version: 3.0.4 resolution: "minipass-fetch@npm:3.0.4" @@ -11119,7 +10556,7 @@ __metadata: languageName: node linkType: hard -"minipass-pipeline@npm:^1.2.2, minipass-pipeline@npm:^1.2.4": +"minipass-pipeline@npm:^1.2.4": version: 1.2.4 resolution: "minipass-pipeline@npm:1.2.4" dependencies: @@ -11137,7 +10574,7 @@ __metadata: languageName: node linkType: hard -"minipass@npm:^3.0.0, minipass@npm:^3.1.0, minipass@npm:^3.1.1, minipass@npm:^3.1.3, minipass@npm:^3.1.6": +"minipass@npm:^3.0.0": version: 3.3.6 resolution: "minipass@npm:3.3.6" dependencies: @@ -11160,7 +10597,7 @@ __metadata: languageName: node linkType: hard -"minizlib@npm:^2.0.0, minizlib@npm:^2.1.1, minizlib@npm:^2.1.2": +"minizlib@npm:^2.1.1, minizlib@npm:^2.1.2": version: 2.1.2 resolution: "minizlib@npm:2.1.2" dependencies: @@ -11170,7 +10607,7 @@ __metadata: languageName: node linkType: hard -"mkdirp@npm:^1.0.3, mkdirp@npm:^1.0.4": +"mkdirp@npm:^1.0.3": version: 1.0.4 resolution: "mkdirp@npm:1.0.4" bin: @@ -11198,7 +10635,7 @@ __metadata: languageName: node linkType: hard -"ms@npm:^2.0.0, ms@npm:^2.1.1": +"ms@npm:^2.1.1": version: 2.1.3 resolution: "ms@npm:2.1.3" checksum: aa92de608021b242401676e35cfa5aa42dd70cbdc082b916da7fb925c542173e36bce97ea3e804923fe92c0ad991434e4a38327e15a1b5b5f945d66df615ae6d @@ -11255,15 +10692,6 @@ __metadata: languageName: node linkType: hard -"nan@npm:^2.17.0": - version: 2.18.0 - resolution: "nan@npm:2.18.0" - dependencies: - node-gyp: "npm:latest" - checksum: 5520e22c64e2b5b495b1d765d6334c989b848bbe1502fec89c5857cabcc7f9f0474563377259e7574bff1c8a041d3b90e9ffa1f5e15502ffddee7b2550cc26a0 - languageName: node - linkType: hard - "nanoid@npm:^3.3.7": version: 3.3.7 resolution: "nanoid@npm:3.3.7" @@ -11287,7 +10715,7 @@ __metadata: languageName: node linkType: hard -"negotiator@npm:^0.6.2, negotiator@npm:^0.6.3": +"negotiator@npm:^0.6.3": version: 0.6.3 resolution: "negotiator@npm:0.6.3" checksum: 2723fb822a17ad55c93a588a4bc44d53b22855bf4be5499916ca0cab1e7165409d0b288ba2577d7b029f10ce18cf2ed8e703e5af31c984e1e2304277ef979837 @@ -11346,26 +10774,6 @@ __metadata: languageName: node linkType: hard -"node-gyp@npm:^8.4.1": - version: 8.4.1 - resolution: "node-gyp@npm:8.4.1" - dependencies: - env-paths: "npm:^2.2.0" - glob: "npm:^7.1.4" - graceful-fs: "npm:^4.2.6" - make-fetch-happen: "npm:^9.1.0" - nopt: "npm:^5.0.0" - npmlog: "npm:^6.0.0" - rimraf: "npm:^3.0.2" - semver: "npm:^7.3.5" - tar: "npm:^6.1.2" - which: "npm:^2.0.2" - bin: - node-gyp: bin/node-gyp.js - checksum: 5ac19a7f6212c787f33bb72f889fafb1ce9d80b7ecb87b3785aebb0ff94a70cd5dbb3ecb435a308eaeb26d037c6edaf173951a9edacaadf0f4c3ae189f1e5077 - languageName: node - linkType: hard - "node-gyp@npm:latest": version: 10.0.1 resolution: "node-gyp@npm:10.0.1" @@ -11411,41 +10819,6 @@ __metadata: languageName: node linkType: hard -"node-sass@npm:9.0.0": - version: 9.0.0 - resolution: "node-sass@npm:9.0.0" - dependencies: - async-foreach: "npm:^0.1.3" - chalk: "npm:^4.1.2" - cross-spawn: "npm:^7.0.3" - gaze: "npm:^1.0.0" - get-stdin: "npm:^4.0.1" - glob: "npm:^7.0.3" - lodash: "npm:^4.17.15" - make-fetch-happen: "npm:^10.0.4" - meow: "npm:^9.0.0" - nan: "npm:^2.17.0" - node-gyp: "npm:^8.4.1" - sass-graph: "npm:^4.0.1" - stdout-stream: "npm:^1.4.0" - true-case-path: "npm:^2.2.1" - bin: - node-sass: bin/node-sass - checksum: 614abdcadb3f3112ab8f68d10abcc5abdd87285865c1ffca031071338a40ecb3055e842ab2bc509c50ca389948da8bba3ff6c31c704b4a71349b7fdd67eb98e4 - languageName: node - linkType: hard - -"nopt@npm:^5.0.0": - version: 5.0.0 - resolution: "nopt@npm:5.0.0" - dependencies: - abbrev: "npm:1" - bin: - nopt: bin/nopt.js - checksum: 00f9bb2d16449469ba8ffcf9b8f0eae6bae285ec74b135fec533e5883563d2400c0cd70902d0a7759e47ac031ccf206ace4e86556da08ed3f1c66dda206e9ccd - languageName: node - linkType: hard - "nopt@npm:^7.0.0": version: 7.2.0 resolution: "nopt@npm:7.2.0" @@ -11457,30 +10830,6 @@ __metadata: languageName: node linkType: hard -"normalize-package-data@npm:^2.5.0": - version: 2.5.0 - resolution: "normalize-package-data@npm:2.5.0" - dependencies: - hosted-git-info: "npm:^2.1.4" - resolve: "npm:^1.10.0" - semver: "npm:2 || 3 || 4 || 5" - validate-npm-package-license: "npm:^3.0.1" - checksum: 644f830a8bb9b7cc9bf2f6150618727659ee27cdd0840d1c1f97e8e6cab0803a098a2c19f31c6247ad9d3a0792e61521a13a6e8cd87cc6bb676e3150612c03d4 - languageName: node - linkType: hard - -"normalize-package-data@npm:^3.0.0": - version: 3.0.3 - resolution: "normalize-package-data@npm:3.0.3" - dependencies: - hosted-git-info: "npm:^4.0.1" - is-core-module: "npm:^2.5.0" - semver: "npm:^7.3.4" - validate-npm-package-license: "npm:^3.0.1" - checksum: 3cd3b438c9c7b15d72ed2d1bbf0f8cc2d07bfe27702fc9e95d039f0af4e069dc75c0646e75068f9f9255a8aae64b59aa4fe2177e65787145fb996c3d38d48acb - languageName: node - linkType: hard - "normalize-path@npm:^3.0.0, normalize-path@npm:~3.0.0": version: 3.0.0 resolution: "normalize-path@npm:3.0.0" @@ -11513,18 +10862,6 @@ __metadata: languageName: node linkType: hard -"npmlog@npm:^6.0.0": - version: 6.0.2 - resolution: "npmlog@npm:6.0.2" - dependencies: - are-we-there-yet: "npm:^3.0.0" - console-control-strings: "npm:^1.1.0" - gauge: "npm:^4.0.3" - set-blocking: "npm:^2.0.0" - checksum: 82b123677e62deb9e7472e27b92386c09e6e254ee6c8bcd720b3011013e4168bc7088e984f4fbd53cb6e12f8b4690e23e4fa6132689313e0d0dc4feea45489bb - languageName: node - linkType: hard - "nwsapi@npm:^2.2.4": version: 2.2.7 resolution: "nwsapi@npm:2.2.7" @@ -11819,15 +11156,6 @@ __metadata: languageName: node linkType: hard -"p-limit@npm:^2.2.0": - version: 2.3.0 - resolution: "p-limit@npm:2.3.0" - dependencies: - p-try: "npm:^2.0.0" - checksum: 84ff17f1a38126c3314e91ecfe56aecbf36430940e2873dadaa773ffe072dc23b7af8e46d4b6485d302a11673fe94c6b67ca2cfbb60c989848b02100d0594ac1 - languageName: node - linkType: hard - "p-limit@npm:^3.0.2": version: 3.1.0 resolution: "p-limit@npm:3.1.0" @@ -11846,15 +11174,6 @@ __metadata: languageName: node linkType: hard -"p-locate@npm:^4.1.0": - version: 4.1.0 - resolution: "p-locate@npm:4.1.0" - dependencies: - p-limit: "npm:^2.2.0" - checksum: 513bd14a455f5da4ebfcb819ef706c54adb09097703de6aeaa5d26fe5ea16df92b48d1ac45e01e3944ce1e6aa2a66f7f8894742b8c9d6e276e16cd2049a2b870 - languageName: node - linkType: hard - "p-locate@npm:^5.0.0": version: 5.0.0 resolution: "p-locate@npm:5.0.0" @@ -11873,13 +11192,6 @@ __metadata: languageName: node linkType: hard -"p-try@npm:^2.0.0": - version: 2.2.0 - resolution: "p-try@npm:2.2.0" - checksum: f8a8e9a7693659383f06aec604ad5ead237c7a261c18048a6e1b5b85a5f8a067e469aa24f5bc009b991ea3b058a87f5065ef4176793a200d4917349881216cae - languageName: node - linkType: hard - "parent-module@npm:^1.0.0": version: 1.0.1 resolution: "parent-module@npm:1.0.1" @@ -12246,13 +11558,6 @@ __metadata: languageName: node linkType: hard -"process-nextick-args@npm:~2.0.0": - version: 2.0.1 - resolution: "process-nextick-args@npm:2.0.1" - checksum: 1d38588e520dab7cea67cbbe2efdd86a10cc7a074c09657635e34f035277b59fbb57d09d8638346bf7090f8e8ebc070c96fa5fd183b777fff4f5edff5e9466cf - languageName: node - linkType: hard - "proj4@npm:^2.3.14": version: 2.10.0 resolution: "proj4@npm:2.10.0" @@ -12272,13 +11577,6 @@ __metadata: languageName: node linkType: hard -"promise-inflight@npm:^1.0.1": - version: 1.0.1 - resolution: "promise-inflight@npm:1.0.1" - checksum: 1560d413ea20c5a74f3631d39ba8cbd1972b9228072a755d01e1f5ca5110382d9af76a1582d889445adc6e75bb5ac4886b56dc4b6eae51b30145d7bb1ac7505b - languageName: node - linkType: hard - "promise-retry@npm:^2.0.1": version: 2.0.1 resolution: "promise-retry@npm:2.0.1" @@ -12577,7 +11875,6 @@ __metadata: lodash.groupby: "npm:^4.6.0" msw: "npm:^2.0.6" node-htmldiff: "npm:^0.9.4" - node-sass: "npm:9.0.0" orval: "npm:^6.22.1" prettier: "npm:2.8.8" proj4leaflet: "npm:^1.0.2" @@ -12618,13 +11915,6 @@ __metadata: languageName: node linkType: hard -"quick-lru@npm:^4.0.1": - version: 4.0.1 - resolution: "quick-lru@npm:4.0.1" - checksum: 5c7c75f1c696750f619b165cc9957382f919e4207dabf04597a64f0298861391cdc5ee91a1dde1a5d460ecf7ee1af7fc36fef6d155bef2be66f05d43fd63d4f0 - languageName: node - linkType: hard - "react-aria-components@npm:^1.1.1": version: 1.1.1 resolution: "react-aria-components@npm:1.1.1" @@ -13016,55 +12306,6 @@ __metadata: languageName: node linkType: hard -"read-pkg-up@npm:^7.0.1": - version: 7.0.1 - resolution: "read-pkg-up@npm:7.0.1" - dependencies: - find-up: "npm:^4.1.0" - read-pkg: "npm:^5.2.0" - type-fest: "npm:^0.8.1" - checksum: e4e93ce70e5905b490ca8f883eb9e48b5d3cebc6cd4527c25a0d8f3ae2903bd4121c5ab9c5a3e217ada0141098eeb661313c86fa008524b089b8ed0b7f165e44 - languageName: node - linkType: hard - -"read-pkg@npm:^5.2.0": - version: 5.2.0 - resolution: "read-pkg@npm:5.2.0" - dependencies: - "@types/normalize-package-data": "npm:^2.4.0" - normalize-package-data: "npm:^2.5.0" - parse-json: "npm:^5.0.0" - type-fest: "npm:^0.6.0" - checksum: eb696e60528b29aebe10e499ba93f44991908c57d70f2d26f369e46b8b9afc208ef11b4ba64f67630f31df8b6872129e0a8933c8c53b7b4daf0eace536901222 - languageName: node - linkType: hard - -"readable-stream@npm:^2.0.1": - version: 2.3.8 - resolution: "readable-stream@npm:2.3.8" - dependencies: - core-util-is: "npm:~1.0.0" - inherits: "npm:~2.0.3" - isarray: "npm:~1.0.0" - process-nextick-args: "npm:~2.0.0" - safe-buffer: "npm:~5.1.1" - string_decoder: "npm:~1.1.1" - util-deprecate: "npm:~1.0.1" - checksum: 8500dd3a90e391d6c5d889256d50ec6026c059fadee98ae9aa9b86757d60ac46fff24fafb7a39fa41d54cb39d8be56cc77be202ebd4cd8ffcf4cb226cbaa40d4 - languageName: node - linkType: hard - -"readable-stream@npm:^3.6.0": - version: 3.6.2 - resolution: "readable-stream@npm:3.6.2" - dependencies: - inherits: "npm:^2.0.3" - string_decoder: "npm:^1.1.1" - util-deprecate: "npm:^1.0.1" - checksum: d9e3e53193adcdb79d8f10f2a1f6989bd4389f5936c6f8b870e77570853561c362bee69feca2bbb7b32368ce96a85504aa4cedf7cf80f36e6a9de30d64244048 - languageName: node - linkType: hard - "readdirp@npm:~3.6.0": version: 3.6.0 resolution: "readdirp@npm:3.6.0" @@ -13210,7 +12451,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.1.7, resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.17.0, resolve@npm:^1.19.0, resolve@npm:^1.22.0, resolve@npm:^1.22.2, resolve@npm:^1.22.4": +"resolve@npm:^1.1.7, resolve@npm:^1.14.2, resolve@npm:^1.17.0, resolve@npm:^1.19.0, resolve@npm:^1.22.0, resolve@npm:^1.22.2, resolve@npm:^1.22.4": version: 1.22.8 resolution: "resolve@npm:1.22.8" dependencies: @@ -13236,7 +12477,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.1.7#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.17.0#optional!builtin, resolve@patch:resolve@npm%3A^1.19.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.2#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": +"resolve@patch:resolve@npm%3A^1.1.7#optional!builtin, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.17.0#optional!builtin, resolve@patch:resolve@npm%3A^1.19.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.2#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": version: 1.22.8 resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin::version=1.22.8&hash=c3c19d" dependencies: @@ -13425,20 +12666,6 @@ __metadata: languageName: node linkType: hard -"safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1": - version: 5.1.2 - resolution: "safe-buffer@npm:5.1.2" - checksum: 7eb5b48f2ed9a594a4795677d5a150faa7eb54483b2318b568dc0c4fc94092a6cce5be02c7288a0500a156282f5276d5688bce7259299568d1053b2150ef374a - languageName: node - linkType: hard - -"safe-buffer@npm:~5.2.0": - version: 5.2.1 - resolution: "safe-buffer@npm:5.2.1" - checksum: 32872cd0ff68a3ddade7a7617b8f4c2ae8764d8b7d884c651b74457967a9e0e886267d3ecc781220629c44a865167b61c375d2da6c720c840ecd73f45d5d9451 - languageName: node - linkType: hard - "safe-regex-test@npm:^1.0.0": version: 1.0.3 resolution: "safe-regex-test@npm:1.0.3" @@ -13464,20 +12691,6 @@ __metadata: languageName: node linkType: hard -"sass-graph@npm:^4.0.1": - version: 4.0.1 - resolution: "sass-graph@npm:4.0.1" - dependencies: - glob: "npm:^7.0.0" - lodash: "npm:^4.17.11" - scss-tokenizer: "npm:^0.4.3" - yargs: "npm:^17.2.1" - bin: - sassgraph: bin/sassgraph - checksum: 896f99253bd77a429a95e483ebddee946e195b61d3f84b3e1ccf8ad843265ec0585fa40bf55fbf354c5f57eb9fd0349834a8b190cd2161ab1234cb9af10e3601 - languageName: node - linkType: hard - "sass@npm:^1.63.6": version: 1.70.0 resolution: "sass@npm:1.70.0" @@ -13509,25 +12722,6 @@ __metadata: languageName: node linkType: hard -"scss-tokenizer@npm:^0.4.3": - version: 0.4.3 - resolution: "scss-tokenizer@npm:0.4.3" - dependencies: - js-base64: "npm:^2.4.9" - source-map: "npm:^0.7.3" - checksum: d7f9eedaa4a3310b8a198b6267012db6c960e394138007d13f999032b32cb41517adad662ca2ad797bf56d55e97664a1d12991b39f95e42a1992a47f6f988b8b - languageName: node - linkType: hard - -"semver@npm:2 || 3 || 4 || 5": - version: 5.7.2 - resolution: "semver@npm:5.7.2" - bin: - semver: bin/semver - checksum: fca14418a174d4b4ef1fecb32c5941e3412d52a4d3d85165924ce3a47fbc7073372c26faf7484ceb4bbc2bde25880c6b97e492473dc7e9708fdfb1c6a02d546e - languageName: node - linkType: hard - "semver@npm:^6.3.1": version: 6.3.1 resolution: "semver@npm:6.3.1" @@ -13537,7 +12731,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.3": +"semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.3": version: 7.6.0 resolution: "semver@npm:7.6.0" dependencies: @@ -13548,13 +12742,6 @@ __metadata: languageName: node linkType: hard -"set-blocking@npm:^2.0.0": - version: 2.0.0 - resolution: "set-blocking@npm:2.0.0" - checksum: 8980ebf7ae9eb945bb036b6e283c547ee783a1ad557a82babf758a065e2fb6ea337fd82cac30dd565c1e606e423f30024a19fff7afbf4977d784720c4026a8ef - languageName: node - linkType: hard - "set-function-length@npm:^1.1.1": version: 1.2.0 resolution: "set-function-length@npm:1.2.0" @@ -13698,7 +12885,7 @@ __metadata: languageName: node linkType: hard -"signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3, signal-exit@npm:^3.0.7": +"signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3": version: 3.0.7 resolution: "signal-exit@npm:3.0.7" checksum: a2f098f247adc367dffc27845853e9959b9e88b01cb301658cfe4194352d8d2bb32e18467c786a7fe15f1d44b233ea35633d076d5e737870b7139949d1ab6318 @@ -13745,28 +12932,6 @@ __metadata: languageName: node linkType: hard -"socks-proxy-agent@npm:^6.0.0": - version: 6.2.1 - resolution: "socks-proxy-agent@npm:6.2.1" - dependencies: - agent-base: "npm:^6.0.2" - debug: "npm:^4.3.3" - socks: "npm:^2.6.2" - checksum: 554749ba3bdba0742ec36493a907261c116dd0dafcd618ea5babdfc90ce5a5ae648d4ee4d2e26e7184afd854973d282372ce0af63e1fc6412bb9fa1a2b1f2d45 - languageName: node - linkType: hard - -"socks-proxy-agent@npm:^7.0.0": - version: 7.0.0 - resolution: "socks-proxy-agent@npm:7.0.0" - dependencies: - agent-base: "npm:^6.0.2" - debug: "npm:^4.3.3" - socks: "npm:^2.6.2" - checksum: 26c75d9c62a9ed3fd494df60e65e88da442f78e0d4bc19bfd85ac37bd2c67470d6d4bba5202e804561cda6674db52864c9e2a2266775f879bc8d89c1445a5f4c - languageName: node - linkType: hard - "socks-proxy-agent@npm:^8.0.1": version: 8.0.2 resolution: "socks-proxy-agent@npm:8.0.2" @@ -13778,7 +12943,7 @@ __metadata: languageName: node linkType: hard -"socks@npm:^2.6.2, socks@npm:^2.7.1": +"socks@npm:^2.7.1": version: 2.8.0 resolution: "socks@npm:2.8.0" dependencies: @@ -13809,7 +12974,7 @@ __metadata: languageName: node linkType: hard -"source-map@npm:^0.7.3, source-map@npm:^0.7.4": +"source-map@npm:^0.7.4": version: 0.7.4 resolution: "source-map@npm:0.7.4" checksum: a0f7c9b797eda93139842fd28648e868a9a03ea0ad0d9fa6602a0c1f17b7fb6a7dcca00c144476cccaeaae5042e99a285723b1a201e844ad67221bf5d428f1dc @@ -13823,40 +12988,6 @@ __metadata: languageName: node linkType: hard -"spdx-correct@npm:^3.0.0": - version: 3.2.0 - resolution: "spdx-correct@npm:3.2.0" - dependencies: - spdx-expression-parse: "npm:^3.0.0" - spdx-license-ids: "npm:^3.0.0" - checksum: cc2e4dbef822f6d12142116557d63f5facf3300e92a6bd24e907e4865e17b7e1abd0ee6b67f305cae6790fc2194175a24dc394bfcc01eea84e2bdad728e9ae9a - languageName: node - linkType: hard - -"spdx-exceptions@npm:^2.1.0": - version: 2.4.0 - resolution: "spdx-exceptions@npm:2.4.0" - checksum: b1b650a8d94424473bf9629cf972c86a91c03cccc260f5c901bce0e4b92d831627fec28c9e0a1e9c34c5ebad0a12cf2eab887bec088e0a862abb9d720c2fd0a1 - languageName: node - linkType: hard - -"spdx-expression-parse@npm:^3.0.0": - version: 3.0.1 - resolution: "spdx-expression-parse@npm:3.0.1" - dependencies: - spdx-exceptions: "npm:^2.1.0" - spdx-license-ids: "npm:^3.0.0" - checksum: a1c6e104a2cbada7a593eaa9f430bd5e148ef5290d4c0409899855ce8b1c39652bcc88a725259491a82601159d6dc790bedefc9016c7472f7de8de7361f8ccde - languageName: node - linkType: hard - -"spdx-license-ids@npm:^3.0.0": - version: 3.0.17 - resolution: "spdx-license-ids@npm:3.0.17" - checksum: 8f6c6ae02ebb25b4ca658b8990d9e8a8f8d8a95e1d8b9fd84d87eed80a7dc8f8073d6a8d50b8a0295c0e8399e1f8814f5c00e2985e6bf3731540a16f7241cbf1 - languageName: node - linkType: hard - "sprintf-js@npm:^1.1.3": version: 1.1.3 resolution: "sprintf-js@npm:1.1.3" @@ -13880,24 +13011,6 @@ __metadata: languageName: node linkType: hard -"ssri@npm:^8.0.0, ssri@npm:^8.0.1": - version: 8.0.1 - resolution: "ssri@npm:8.0.1" - dependencies: - minipass: "npm:^3.1.1" - checksum: fde247b7107674d9a424a20f9c1a6e3ad88a139c2636b9d9ffa7df59e85e11a894cdae48fadd0ad6be41eb0d5b847fe094736513d333615c7eebc3d111abe0d2 - languageName: node - linkType: hard - -"ssri@npm:^9.0.0": - version: 9.0.1 - resolution: "ssri@npm:9.0.1" - dependencies: - minipass: "npm:^3.1.1" - checksum: 7638a61e91432510718e9265d48d0438a17d53065e5184f1336f234ef6aa3479663942e41e97df56cda06bb24d9d0b5ef342c10685add3cac7267a82d7fa6718 - languageName: node - linkType: hard - "stackback@npm:0.0.2": version: 0.0.2 resolution: "stackback@npm:0.0.2" @@ -13919,15 +13032,6 @@ __metadata: languageName: node linkType: hard -"stdout-stream@npm:^1.4.0": - version: 1.4.1 - resolution: "stdout-stream@npm:1.4.1" - dependencies: - readable-stream: "npm:^2.0.1" - checksum: 205bee8c3ba4e1e1d471b9302764405d2ee5dd272af6e9a71c95a9af6cf2ad8f4d102099a917c591ba9e14c1b2b5f5244f7a526e9d3cf311327cecd7c2bd4c2e - languageName: node - linkType: hard - "stop-iteration-iterator@npm:^1.0.0": version: 1.0.0 resolution: "stop-iteration-iterator@npm:1.0.0" @@ -13951,7 +13055,7 @@ __metadata: languageName: node linkType: hard -"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": +"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": version: 4.2.3 resolution: "string-width@npm:4.2.3" dependencies: @@ -14023,24 +13127,6 @@ __metadata: languageName: node linkType: hard -"string_decoder@npm:^1.1.1": - version: 1.3.0 - resolution: "string_decoder@npm:1.3.0" - dependencies: - safe-buffer: "npm:~5.2.0" - checksum: 54d23f4a6acae0e93f999a585e673be9e561b65cd4cca37714af1e893ab8cd8dfa52a9e4f58f48f87b4a44918d3a9254326cb80ed194bf2e4c226e2b21767e56 - languageName: node - linkType: hard - -"string_decoder@npm:~1.1.1": - version: 1.1.1 - resolution: "string_decoder@npm:1.1.1" - dependencies: - safe-buffer: "npm:~5.1.0" - checksum: 7c41c17ed4dea105231f6df208002ebddd732e8e9e2d619d133cecd8e0087ddfd9587d2feb3c8caf3213cbd841ada6d057f5142cae68a4e62d3540778d9819b4 - languageName: node - linkType: hard - "strip-ansi-cjs@npm:strip-ansi@^6.0.1, strip-ansi@npm:^6.0.0, strip-ansi@npm:^6.0.1": version: 6.0.1 resolution: "strip-ansi@npm:6.0.1" @@ -14260,7 +13346,7 @@ __metadata: languageName: node linkType: hard -"tar@npm:^6.0.2, tar@npm:^6.1.11, tar@npm:^6.1.2": +"tar@npm:^6.1.11, tar@npm:^6.1.2": version: 6.2.0 resolution: "tar@npm:6.2.0" dependencies: @@ -14414,20 +13500,6 @@ __metadata: languageName: node linkType: hard -"trim-newlines@npm:^3.0.0": - version: 3.0.1 - resolution: "trim-newlines@npm:3.0.1" - checksum: b530f3fadf78e570cf3c761fb74fef655beff6b0f84b29209bac6c9622db75ad1417f4a7b5d54c96605dcd72734ad44526fef9f396807b90839449eb543c6206 - languageName: node - linkType: hard - -"true-case-path@npm:^2.2.1": - version: 2.2.1 - resolution: "true-case-path@npm:2.2.1" - checksum: 8c6ddd8dab044012a7bb1bed0b31cbb8f9924e903e996f7378d9b86113cde29251e684075203490d4dca2a199ef401ba89228c602bc5e2a3e4550446e8ae1ccf - languageName: node - linkType: hard - "ts-interface-checker@npm:^0.1.9": version: 0.1.13 resolution: "ts-interface-checker@npm:0.1.13" @@ -14516,13 +13588,6 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^0.18.0": - version: 0.18.1 - resolution: "type-fest@npm:0.18.1" - checksum: 08844377058435c2b0e633ba01bab6102dba0ed63d85417d8e18feff265eed6f5c9f8f9a25d405ea9db88a41a569be73a3c4c0d4e29150bf89fb145bb23114a2 - languageName: node - linkType: hard - "type-fest@npm:^0.20.2": version: 0.20.2 resolution: "type-fest@npm:0.20.2" @@ -14537,20 +13602,6 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^0.6.0": - version: 0.6.0 - resolution: "type-fest@npm:0.6.0" - checksum: 9ecbf4ba279402b14c1a0614b6761bbe95626fab11377291fecd7e32b196109551e0350dcec6af74d97ced1b000ba8060a23eca33157091e642b409c2054ba82 - languageName: node - linkType: hard - -"type-fest@npm:^0.8.1": - version: 0.8.1 - resolution: "type-fest@npm:0.8.1" - checksum: fd4a91bfb706aeeb0d326ebd2e9a8ea5263979e5dec8d16c3e469a5bd3a946e014a062ef76c02e3086d3d1c7209a56a20a4caafd0e9f9a5c2ab975084ea3d388 - languageName: node - linkType: hard - "type-fest@npm:^2.19.0": version: 2.19.0 resolution: "type-fest@npm:2.19.0" @@ -14696,24 +13747,6 @@ __metadata: languageName: node linkType: hard -"unique-filename@npm:^1.1.1": - version: 1.1.1 - resolution: "unique-filename@npm:1.1.1" - dependencies: - unique-slug: "npm:^2.0.0" - checksum: 9b6969d649a2096755f19f793315465c6427453b66d67c2a1bee8f36ca7e1fc40725be2c028e974dec110d365bd30a4248e89b1044dc1dfe29663b6867d071ef - languageName: node - linkType: hard - -"unique-filename@npm:^2.0.0": - version: 2.0.1 - resolution: "unique-filename@npm:2.0.1" - dependencies: - unique-slug: "npm:^3.0.0" - checksum: 807acf3381aff319086b64dc7125a9a37c09c44af7620bd4f7f3247fcd5565660ac12d8b80534dcbfd067e6fe88a67e621386dd796a8af828d1337a8420a255f - languageName: node - linkType: hard - "unique-filename@npm:^3.0.0": version: 3.0.0 resolution: "unique-filename@npm:3.0.0" @@ -14723,24 +13756,6 @@ __metadata: languageName: node linkType: hard -"unique-slug@npm:^2.0.0": - version: 2.0.2 - resolution: "unique-slug@npm:2.0.2" - dependencies: - imurmurhash: "npm:^0.1.4" - checksum: 6cfaf91976acc9c125fd0686c561ee9ca0784bb4b2b408972e6cd30e747b4ff0ca50264c01bcf5e711b463535ea611ffb84199e9f73088cd79ac9ddee8154042 - languageName: node - linkType: hard - -"unique-slug@npm:^3.0.0": - version: 3.0.0 - resolution: "unique-slug@npm:3.0.0" - dependencies: - imurmurhash: "npm:^0.1.4" - checksum: 26fc5bc209a875956dd5e84ca39b89bc3be777b112504667c35c861f9547df95afc80439358d836b878b6d91f6ee21fe5ba1a966e9ec2e9f071ddf3fd67d45ee - languageName: node - linkType: hard - "unique-slug@npm:^4.0.0": version: 4.0.0 resolution: "unique-slug@npm:4.0.0" @@ -14825,7 +13840,7 @@ __metadata: languageName: node linkType: hard -"util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1": +"util-deprecate@npm:^1.0.2": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" checksum: 474acf1146cb2701fe3b074892217553dfcf9a031280919ba1b8d651a068c9b15d863b7303cb15bd00a862b498e6cf4ad7b4a08fb134edd5a6f7641681cb54a2 @@ -14859,16 +13874,6 @@ __metadata: languageName: node linkType: hard -"validate-npm-package-license@npm:^3.0.1": - version: 3.0.4 - resolution: "validate-npm-package-license@npm:3.0.4" - dependencies: - spdx-correct: "npm:^3.0.0" - spdx-expression-parse: "npm:^3.0.0" - checksum: 86242519b2538bb8aeb12330edebb61b4eb37fd35ef65220ab0b03a26c0592c1c8a7300d32da3cde5abd08d18d95e8dabfad684b5116336f6de9e6f207eec224 - languageName: node - linkType: hard - "validator@npm:^13.7.0": version: 13.11.0 resolution: "validator@npm:13.11.0" @@ -15157,7 +14162,7 @@ __metadata: languageName: node linkType: hard -"which@npm:^2.0.1, which@npm:^2.0.2": +"which@npm:^2.0.1": version: 2.0.2 resolution: "which@npm:2.0.2" dependencies: @@ -15191,15 +14196,6 @@ __metadata: languageName: node linkType: hard -"wide-align@npm:^1.1.5": - version: 1.1.5 - resolution: "wide-align@npm:1.1.5" - dependencies: - string-width: "npm:^1.0.2 || 2 || 3 || 4" - checksum: d5f8027b9a8255a493a94e4ec1b74a27bff6679d5ffe29316a3215e4712945c84ef73ca4045c7e20ae7d0c72f5f57f296e04a4928e773d4276a2f1222e4c2e99 - languageName: node - linkType: hard - "wkt-parser@npm:^1.3.3": version: 1.3.3 resolution: "wkt-parser@npm:1.3.3" @@ -15311,13 +14307,6 @@ __metadata: languageName: node linkType: hard -"yargs-parser@npm:^20.2.3": - version: 20.2.9 - resolution: "yargs-parser@npm:20.2.9" - checksum: 0188f430a0f496551d09df6719a9132a3469e47fe2747208b1dd0ab2bb0c512a95d0b081628bbca5400fb20dbf2fabe63d22badb346cecadffdd948b049f3fcc - languageName: node - linkType: hard - "yargs-parser@npm:^21.1.1": version: 21.1.1 resolution: "yargs-parser@npm:21.1.1" @@ -15325,7 +14314,7 @@ __metadata: languageName: node linkType: hard -"yargs@npm:^17.0.1, yargs@npm:^17.2.1, yargs@npm:^17.5.1, yargs@npm:^17.7.2": +"yargs@npm:^17.0.1, yargs@npm:^17.5.1, yargs@npm:^17.7.2": version: 17.7.2 resolution: "yargs@npm:17.7.2" dependencies: From 5231d8eaa6746d1674dbbcb100f977e28763a483 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 26 Mar 2024 11:23:41 +0100 Subject: [PATCH 42/82] Fix build --- src/api/fetchers.msw.ts | 185 ++++++++++++++++++++-------------------- 1 file changed, 94 insertions(+), 91 deletions(-) diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index d28c9794..e8be499d 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -10,97 +10,100 @@ */ import { faker } from '@faker-js/faker' import { HttpResponse, delay, http } from 'msw' -import type { - AOJCreatedResponse, - AcknowledgedRelation, - ActiveModuleObjectWrapper, - AmbitieFull, - AmbitieUUID, - AuthToken, - BeleidsdoelFull, - BeleidsdoelUUID, - BeleidskeuzeFull, - BeleidskeuzeUUID, - BeleidsregelFull, - BeleidsregelUUID, - EnvironmentCreatedResponse, - GebiedsprogrammaFull, - GebiedsprogrammaUUID, - GraphResponse, - MaatregelFull, - MaatregelUUID, - ModuleCreatedResponse, - ModuleObjectContext, - ModuleOverview, - ModuleSnapshot, - ModuleStatus, - NationaalBelangFull, - NationaalBelangUUID, - NewObjectStaticResponse, - ObjectCount, - PagedResponseAmbitieBasic, - PagedResponseAmbitieExtended, - PagedResponseBeleidsdoelBasic, - PagedResponseBeleidsdoelExtended, - PagedResponseBeleidskeuzeBasic, - PagedResponseBeleidskeuzeExtended, - PagedResponseBeleidsregelBasic, - PagedResponseBeleidsregelExtended, - PagedResponseGebiedsprogrammaBasic, - PagedResponseGebiedsprogrammaExtended, - PagedResponseGenericObjectShort, - PagedResponseGeoSearchResult, - PagedResponseMaatregelBasic, - PagedResponseMaatregelExtended, - PagedResponseModule, - PagedResponseModuleObjectShortStatus, - PagedResponseNationaalBelangBasic, - PagedResponseProgrammaAlgemeenBasic, - PagedResponseProgrammaAlgemeenExtended, - PagedResponsePublicModuleShort, - PagedResponsePublication, - PagedResponsePublicationAOJ, - PagedResponsePublicationEnvironment, - PagedResponsePublicationPackage, - PagedResponsePublicationPackageReportShort, - PagedResponsePublicationTemplate, - PagedResponsePublicationVersionShort, - PagedResponseSearchObject, - PagedResponseUser, - PagedResponseValidSearchObject, - PagedResponseVerplichtProgrammaBasic, - PagedResponseVisieAlgemeenBasic, - PagedResponseVisieAlgemeenExtended, - PagedResponseWerkingsgebied, - PagedResponseWerkingsgebiedBasic, - PagedResponseWerkingsgebiedExtended, - PagedResponseWettelijkeTaakBasic, - ProgrammaAlgemeenFull, - ProgrammaAlgemeenUUID, - PublicModuleOverview, - Publication, - PublicationCreatedResponse, - PublicationPackageCreatedResponse, - PublicationPackageReport, - PublicationTemplate, - PublicationVersion, - PublicationVersionCreatedResponse, - PublicationVersionEditResponse, - ReadRelation, - ResetPasswordResponse, - ResponseOK, - TemplateCreatedResponse, - UploadPackageReportResponse, - User, - UserCreateResponse, - VerplichtProgrammaFull, - VerplichtProgrammaUUID, - VisieAlgemeenFull, - VisieAlgemeenUUID, - WerkingsgebiedFull, - WerkingsgebiedUUID, - WettelijkeTaakFull, - WettelijkeTaakUUID, + +import { + GraphEdgeType, + ReportStatusType, + type AOJCreatedResponse, + type AcknowledgedRelation, + type ActiveModuleObjectWrapper, + type AmbitieFull, + type AmbitieUUID, + type AuthToken, + type BeleidsdoelFull, + type BeleidsdoelUUID, + type BeleidskeuzeFull, + type BeleidskeuzeUUID, + type BeleidsregelFull, + type BeleidsregelUUID, + type EnvironmentCreatedResponse, + type GebiedsprogrammaFull, + type GebiedsprogrammaUUID, + type GraphResponse, + type MaatregelFull, + type MaatregelUUID, + type ModuleCreatedResponse, + type ModuleObjectContext, + type ModuleOverview, + type ModuleSnapshot, + type ModuleStatus, + type NationaalBelangFull, + type NationaalBelangUUID, + type NewObjectStaticResponse, + type ObjectCount, + type PagedResponseAmbitieBasic, + type PagedResponseAmbitieExtended, + type PagedResponseBeleidsdoelBasic, + type PagedResponseBeleidsdoelExtended, + type PagedResponseBeleidskeuzeBasic, + type PagedResponseBeleidskeuzeExtended, + type PagedResponseBeleidsregelBasic, + type PagedResponseBeleidsregelExtended, + type PagedResponseGebiedsprogrammaBasic, + type PagedResponseGebiedsprogrammaExtended, + type PagedResponseGenericObjectShort, + type PagedResponseGeoSearchResult, + type PagedResponseMaatregelBasic, + type PagedResponseMaatregelExtended, + type PagedResponseModule, + type PagedResponseModuleObjectShortStatus, + type PagedResponseNationaalBelangBasic, + type PagedResponseProgrammaAlgemeenBasic, + type PagedResponseProgrammaAlgemeenExtended, + type PagedResponsePublicModuleShort, + type PagedResponsePublication, + type PagedResponsePublicationAOJ, + type PagedResponsePublicationEnvironment, + type PagedResponsePublicationPackage, + type PagedResponsePublicationPackageReportShort, + type PagedResponsePublicationTemplate, + type PagedResponsePublicationVersionShort, + type PagedResponseSearchObject, + type PagedResponseUser, + type PagedResponseValidSearchObject, + type PagedResponseVerplichtProgrammaBasic, + type PagedResponseVisieAlgemeenBasic, + type PagedResponseVisieAlgemeenExtended, + type PagedResponseWerkingsgebied, + type PagedResponseWerkingsgebiedBasic, + type PagedResponseWerkingsgebiedExtended, + type PagedResponseWettelijkeTaakBasic, + type ProgrammaAlgemeenFull, + type ProgrammaAlgemeenUUID, + type PublicModuleOverview, + type Publication, + type PublicationCreatedResponse, + type PublicationPackageCreatedResponse, + type PublicationPackageReport, + type PublicationTemplate, + type PublicationVersion, + type PublicationVersionCreatedResponse, + type PublicationVersionEditResponse, + type ReadRelation, + type ResetPasswordResponse, + type ResponseOK, + type TemplateCreatedResponse, + type UploadPackageReportResponse, + type User, + type UserCreateResponse, + type VerplichtProgrammaFull, + type VerplichtProgrammaUUID, + type VisieAlgemeenFull, + type VisieAlgemeenUUID, + type WerkingsgebiedFull, + type WerkingsgebiedUUID, + type WettelijkeTaakFull, + type WettelijkeTaakUUID, } from './fetchers.schemas' export const getAmbitiesValidGetMock = ( From 590a6919afde5d80ab2ea1956b96c63e939794a3 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 26 Mar 2024 13:38:38 +0100 Subject: [PATCH 43/82] Upgrade PublishCodeCoverageResults to v2 --- azure-pipelines.yml | 3 +- package.json | 1 - .../PublicationPackages.tsx | 6 ++-- .../PublicationVersions.tsx | 35 +++++++++++-------- yarn.lock | 3 +- 5 files changed, 25 insertions(+), 23 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 127ca118..10a43e13 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,9 +48,8 @@ stages: inputs: script: yarn test:coverage - - task: PublishCodeCoverageResults@1 + - task: PublishCodeCoverageResults@2 inputs: - codeCoverageTool: Cobertura summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml - task: CmdLine@2 diff --git a/package.json b/package.json index 205e2430..1a637ff1 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,6 @@ "@types/lodash.clonedeep": "^4.5.6", "@types/lodash.debounce": "^4.0.7", "@types/lodash.groupby": "^4.6.7", - "@types/node": "^20.10.5", "@types/proj4leaflet": "^1.0.10", "@types/react": "^18.2.15", "@types/react-dom": "^18.2.7", diff --git a/src/components/Publications/PublicationPackages/PublicationPackages.tsx b/src/components/Publications/PublicationPackages/PublicationPackages.tsx index 49d2b051..58d6269b 100644 --- a/src/components/Publications/PublicationPackages/PublicationPackages.tsx +++ b/src/components/Publications/PublicationPackages/PublicationPackages.tsx @@ -42,13 +42,13 @@ const PublicationPackages = ({ const { validationPackage, publicationPackage, abortPackage } = useMemo(() => { const validationPackage = packages?.results.find( - pkg => pkg.Package_Type === 'Validatie' + pkg => pkg.Package_Type === PackageType['Validatie'] ) const publicationPackage = packages?.results.find( - pkg => pkg.Package_Type === 'Publicatie' + pkg => pkg.Package_Type === PackageType['Publicatie'] ) const abortPackage = packages?.results.find( - pkg => pkg.Package_Type === 'Afbreken' + pkg => pkg.Package_Type === PackageType['Afbreken'] ) return { validationPackage, publicationPackage, abortPackage } diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx index 479a0a3b..f490a538 100644 --- a/src/components/Publications/PublicationVersions/PublicationVersions.tsx +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -86,8 +86,11 @@ const VersionRow = ({ }: PublicationVersionShort & { publication: Publication }) => { const { moduleId } = useParams() - const { canEditPublicationVersion, canCreatePublicationPackage } = - usePermissions() + const { + canEditPublicationVersion, + canCreatePublicationPackage, + canViewPublicationPackage, + } = usePermissions() const setActiveModal = useModalStore(state => state.setActiveModal) @@ -100,7 +103,7 @@ const VersionRow = ({ }, }) - const downloadDiff = async ({ + const downloadDiff = ({ moduleId, Module_Status_ID, }: { @@ -166,18 +169,20 @@ const VersionRow = ({ Bewerken )} - + {canViewPublicationPackage && ( + + )} Date: Tue, 26 Mar 2024 13:54:22 +0100 Subject: [PATCH 44/82] Fix yarn.lock --- public/mockServiceWorker.js | 2 +- yarn.lock | 1797 +++++++++++++++-------------------- 2 files changed, 769 insertions(+), 1030 deletions(-) diff --git a/public/mockServiceWorker.js b/public/mockServiceWorker.js index a2745d12..a37382fc 100644 --- a/public/mockServiceWorker.js +++ b/public/mockServiceWorker.js @@ -2,7 +2,7 @@ /* tslint:disable */ /** - * Mock Service Worker (2.1.5). + * Mock Service Worker (2.2.0). * @see https://github.com/mswjs/msw * - Please do NOT modify this file. * - Please do NOT serve this file on production. diff --git a/yarn.lock b/yarn.lock index 9f034394..3f5c7ec2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -88,12 +88,12 @@ __metadata: linkType: hard "@axe-core/react@npm:^4.8.2": - version: 4.8.4 - resolution: "@axe-core/react@npm:4.8.4" + version: 4.8.5 + resolution: "@axe-core/react@npm:4.8.5" dependencies: - axe-core: "npm:~4.8.3" + axe-core: "npm:~4.8.4" requestidlecallback: "npm:^0.3.0" - checksum: 59feeacf5aa378705e8583a7b443c92f0e6528b43d5e6caa2db82862520233a2633597d9a9c3996275e86947d0c923d3d4af35d5b515c387d0b58d28d45786bc + checksum: 0d103fde320962c9551359739372fd608585bdd88d109dae0875c3e8c7bff9738c6915357f6722ced5e3d56a6003191cb8b1725b8ad85f2c58299d457b2f5ed1 languageName: node linkType: hard @@ -138,8 +138,8 @@ __metadata: linkType: hard "@babel/eslint-parser@npm:^7.17.0": - version: 7.23.9 - resolution: "@babel/eslint-parser@npm:7.23.9" + version: 7.23.10 + resolution: "@babel/eslint-parser@npm:7.23.10" dependencies: "@nicolo-ribaudo/eslint-scope-5-internals": "npm:5.1.1-v1" eslint-visitor-keys: "npm:^2.1.0" @@ -147,7 +147,7 @@ __metadata: peerDependencies: "@babel/core": ^7.11.0 eslint: ^7.5.0 || ^8.0.0 - checksum: 2710888b116990526f8639bf2c38c955aa4eb2d30609c87b00d006be58d24193e93522f01f5eae16c205af421b833b877f15873496f1cd97e01ea436d96d43d7 + checksum: eb62ad6a1098836331317be978ebd5991a9257d58118062f252b002e995b4f35b76a5dc976b07d84d21e64c8395587a044c5e6e444b3b69ab53e50a18facf2af languageName: node linkType: hard @@ -195,8 +195,8 @@ __metadata: linkType: hard "@babel/helper-create-class-features-plugin@npm:^7.22.15, @babel/helper-create-class-features-plugin@npm:^7.23.6": - version: 7.23.9 - resolution: "@babel/helper-create-class-features-plugin@npm:7.23.9" + version: 7.23.10 + resolution: "@babel/helper-create-class-features-plugin@npm:7.23.10" dependencies: "@babel/helper-annotate-as-pure": "npm:^7.22.5" "@babel/helper-environment-visitor": "npm:^7.22.20" @@ -209,7 +209,7 @@ __metadata: semver: "npm:^6.3.1" peerDependencies: "@babel/core": ^7.0.0 - checksum: 91c8aa8888780bd90aa50f511917cb0953ccd61b2ea4abf61915c1d68d99bb14b472969a8ae5b391d7890759dfc22be79104297be07919c38351714a4ce2fe74 + checksum: 8b9f02526eeb03ef1d2bc89e3554377ae966b33a74078ab1f88168dfa725dc206ea5ecf4cf417c3651d8a6b3c70204f6939a9aa0401be3d0d32ddbf6024ea3c7 languageName: node linkType: hard @@ -1715,6 +1715,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/aix-ppc64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/aix-ppc64@npm:0.19.11" + conditions: os=aix & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/aix-ppc64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/aix-ppc64@npm:0.19.12" @@ -1722,6 +1729,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/android-arm64@npm:0.19.11" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/android-arm64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/android-arm64@npm:0.19.12" @@ -1729,6 +1743,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/android-arm@npm:0.19.11" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@esbuild/android-arm@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/android-arm@npm:0.19.12" @@ -1736,6 +1757,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/android-x64@npm:0.19.11" + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + "@esbuild/android-x64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/android-x64@npm:0.19.12" @@ -1743,6 +1771,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/darwin-arm64@npm:0.19.11" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/darwin-arm64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/darwin-arm64@npm:0.19.12" @@ -1750,6 +1785,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/darwin-x64@npm:0.19.11" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@esbuild/darwin-x64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/darwin-x64@npm:0.19.12" @@ -1757,6 +1799,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/freebsd-arm64@npm:0.19.11" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/freebsd-arm64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/freebsd-arm64@npm:0.19.12" @@ -1764,6 +1813,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/freebsd-x64@npm:0.19.11" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/freebsd-x64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/freebsd-x64@npm:0.19.12" @@ -1771,6 +1827,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-arm64@npm:0.19.11" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/linux-arm64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/linux-arm64@npm:0.19.12" @@ -1778,6 +1841,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-arm@npm:0.19.11" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + "@esbuild/linux-arm@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/linux-arm@npm:0.19.12" @@ -1785,6 +1855,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ia32@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-ia32@npm:0.19.11" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/linux-ia32@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/linux-ia32@npm:0.19.12" @@ -1792,6 +1869,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-loong64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-loong64@npm:0.19.11" + conditions: os=linux & cpu=loong64 + languageName: node + linkType: hard + "@esbuild/linux-loong64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/linux-loong64@npm:0.19.12" @@ -1799,6 +1883,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-mips64el@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-mips64el@npm:0.19.11" + conditions: os=linux & cpu=mips64el + languageName: node + linkType: hard + "@esbuild/linux-mips64el@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/linux-mips64el@npm:0.19.12" @@ -1806,6 +1897,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ppc64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-ppc64@npm:0.19.11" + conditions: os=linux & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/linux-ppc64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/linux-ppc64@npm:0.19.12" @@ -1813,6 +1911,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-riscv64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-riscv64@npm:0.19.11" + conditions: os=linux & cpu=riscv64 + languageName: node + linkType: hard + "@esbuild/linux-riscv64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/linux-riscv64@npm:0.19.12" @@ -1820,6 +1925,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-s390x@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-s390x@npm:0.19.11" + conditions: os=linux & cpu=s390x + languageName: node + linkType: hard + "@esbuild/linux-s390x@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/linux-s390x@npm:0.19.12" @@ -1827,6 +1939,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-x64@npm:0.19.11" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + "@esbuild/linux-x64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/linux-x64@npm:0.19.12" @@ -1834,6 +1953,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/netbsd-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/netbsd-x64@npm:0.19.11" + conditions: os=netbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/netbsd-x64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/netbsd-x64@npm:0.19.12" @@ -1841,6 +1967,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/openbsd-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/openbsd-x64@npm:0.19.11" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/openbsd-x64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/openbsd-x64@npm:0.19.12" @@ -1848,6 +1981,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/sunos-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/sunos-x64@npm:0.19.11" + conditions: os=sunos & cpu=x64 + languageName: node + linkType: hard + "@esbuild/sunos-x64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/sunos-x64@npm:0.19.12" @@ -1855,6 +1995,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/win32-arm64@npm:0.19.11" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/win32-arm64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/win32-arm64@npm:0.19.12" @@ -1862,6 +2009,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-ia32@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/win32-ia32@npm:0.19.11" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/win32-ia32@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/win32-ia32@npm:0.19.12" @@ -1869,6 +2023,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/win32-x64@npm:0.19.11" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@esbuild/win32-x64@npm:0.19.12": version: 0.19.12 resolution: "@esbuild/win32-x64@npm:0.19.12" @@ -1926,13 +2087,13 @@ __metadata: linkType: hard "@faker-js/faker@npm:^8.3.1": - version: 8.4.0 - resolution: "@faker-js/faker@npm:8.4.0" - checksum: f9253d0b4846ab0fd769cd78be88c4ea24741d9201cccb0038b3627ac21041a2aef150b0f843b2f63d5a056737bec28bcdf493e0b72201a892df4423be0dff79 + version: 8.4.1 + resolution: "@faker-js/faker@npm:8.4.1" + checksum: 5983c2ea64f26055ad6648de748878e11ebe2fb751e3c7435ae141cdffabc2dccfe4c4f49da69a3d2add71e21b415c683ac5fba196fab0d5ed6779fbec436c80 languageName: node linkType: hard -"@floating-ui/core@npm:^1.6.0": +"@floating-ui/core@npm:^1.0.0": version: 1.6.0 resolution: "@floating-ui/core@npm:1.6.0" dependencies: @@ -1942,12 +2103,12 @@ __metadata: linkType: hard "@floating-ui/dom@npm:^1.0.1, @floating-ui/dom@npm:^1.6.1": - version: 1.6.1 - resolution: "@floating-ui/dom@npm:1.6.1" + version: 1.6.3 + resolution: "@floating-ui/dom@npm:1.6.3" dependencies: - "@floating-ui/core": "npm:^1.6.0" - "@floating-ui/utils": "npm:^0.2.1" - checksum: c010feb55be37662eb4cc8d0a22e21359c25247bbdcd9557617fd305cf08c8f020435b17e4b4f410201ba9abe3a0dd96b5c42d56e85f7a5e11e7d30b85afc116 + "@floating-ui/core": "npm:^1.0.0" + "@floating-ui/utils": "npm:^0.2.0" + checksum: 83e97076c7a5f55c3506f574bc53f03d38bed6eb8181920c8733076889371e287e9ae6f28c520a076967759b9b6ff425362832a5cdf16a999069530dbb9cce53 languageName: node linkType: hard @@ -1991,7 +2152,7 @@ __metadata: languageName: node linkType: hard -"@floating-ui/utils@npm:^0.2.1": +"@floating-ui/utils@npm:^0.2.0, @floating-ui/utils@npm:^0.2.1": version: 0.2.1 resolution: "@floating-ui/utils@npm:0.2.1" checksum: 33c9ab346e7b05c5a1e6a95bc902aafcfc2c9d513a147e2491468843bd5607531b06d0b9aa56aa491cbf22a6c2495c18ccfc4c0344baec54a689a7bb8e4898d6 @@ -2093,8 +2254,8 @@ __metadata: linkType: hard "@ibm-cloud/openapi-ruleset@npm:^1.14.2": - version: 1.14.2 - resolution: "@ibm-cloud/openapi-ruleset@npm:1.14.2" + version: 1.15.2 + resolution: "@ibm-cloud/openapi-ruleset@npm:1.15.2" dependencies: "@ibm-cloud/openapi-ruleset-utilities": "npm:1.3.0" "@stoplight/spectral-formats": "npm:^1.5.0" @@ -2106,7 +2267,46 @@ __metadata: loglevel-plugin-prefix: "npm:0.8.4" minimatch: "npm:^6.1.6" validator: "npm:^13.7.0" - checksum: 94c9f366107e7b93648cdf44129b5a2a9f61fb3bfdcd377b962c7a4a08c28e35867265c10da3b8b5f5980ebcabb55ea0ced04394fe2c4aa99624f63a5b70a0dd + checksum: 4118beb2d1415ad4a0b81f317499d694af7787dadf175778c9cb5884864b78f8fe72e155f849e3798651559ed3fee583d1f90dbe8ad63802708da93fbf8fc45c + languageName: node + linkType: hard + +"@inquirer/confirm@npm:^3.0.0": + version: 3.0.0 + resolution: "@inquirer/confirm@npm:3.0.0" + dependencies: + "@inquirer/core": "npm:^7.0.0" + "@inquirer/type": "npm:^1.2.0" + checksum: ed16dc0e5b22115474853ca57dbe3dacdcd15bcb37cc50020e8e76ff8d0875d62d8b63b93b3092c653faeb6c83a139eac997ff05638b0f1f78ae919f29ee29d4 + languageName: node + linkType: hard + +"@inquirer/core@npm:^7.0.0": + version: 7.0.0 + resolution: "@inquirer/core@npm:7.0.0" + dependencies: + "@inquirer/type": "npm:^1.2.0" + "@types/mute-stream": "npm:^0.0.4" + "@types/node": "npm:^20.11.16" + "@types/wrap-ansi": "npm:^3.0.0" + ansi-escapes: "npm:^4.3.2" + chalk: "npm:^4.1.2" + cli-spinners: "npm:^2.9.2" + cli-width: "npm:^4.1.0" + figures: "npm:^3.2.0" + mute-stream: "npm:^1.0.0" + run-async: "npm:^3.0.0" + signal-exit: "npm:^4.1.0" + strip-ansi: "npm:^6.0.1" + wrap-ansi: "npm:^6.2.0" + checksum: 78c0ef4bb82cb7be23f16a80c9cff02839c77e378d272327f49878788a4c3b1cc00137387317053d242a87634954850a4d2546b3e48b1abd27130a21f598afef + languageName: node + linkType: hard + +"@inquirer/type@npm:^1.2.0": + version: 1.2.0 + resolution: "@inquirer/type@npm:1.2.0" + checksum: 12f68a16d8995efb409bd243d6ccc501b366e8009630a075071a9d9497cebd36bbd6c46d7d59b37435629e5e50236394679f414f7676b68b913ecc28a85cba0a languageName: node linkType: hard @@ -2251,9 +2451,9 @@ __metadata: languageName: node linkType: hard -"@mswjs/interceptors@npm:^0.25.15": - version: 0.25.15 - resolution: "@mswjs/interceptors@npm:0.25.15" +"@mswjs/interceptors@npm:^0.25.16": + version: 0.25.16 + resolution: "@mswjs/interceptors@npm:0.25.16" dependencies: "@open-draft/deferred-promise": "npm:^2.2.0" "@open-draft/logger": "npm:^0.3.0" @@ -2261,7 +2461,7 @@ __metadata: is-node-process: "npm:^1.2.0" outvariant: "npm:^1.2.1" strict-event-emitter: "npm:^0.5.1" - checksum: 9cdcad91fca0fb30f5c7e8de0ed294bb2c2815e92b8236da8c49faa3605571460d143fa34f80ba62e8594af9b1ab7eb4b3b8207889cec225e9e17c52e8883ae5 + checksum: d8fb74db45a63971e9da7367c8d120343c8f49fec7bcc3f0c77c04c3f628d307b70875f52e4a99df561547b92d0d53edacc421e42d69940d44999254b5d028b5 languageName: node linkType: hard @@ -2302,15 +2502,15 @@ __metadata: linkType: hard "@npmcli/agent@npm:^2.0.0": - version: 2.2.0 - resolution: "@npmcli/agent@npm:2.2.0" + version: 2.2.1 + resolution: "@npmcli/agent@npm:2.2.1" dependencies: agent-base: "npm:^7.1.0" http-proxy-agent: "npm:^7.0.0" https-proxy-agent: "npm:^7.0.1" lru-cache: "npm:^10.0.1" socks-proxy-agent: "npm:^8.0.1" - checksum: 822ea077553cd9cfc5cbd6d92380b0950fcb054a7027cd1b63a33bd0cbb16b0c6626ea75d95ec0e804643c8904472d3361d2da8c2444b1fb02a9b525d9c07c41 + checksum: d4a48128f61e47f2f5c89315a5350e265dc619987e635bd62b52b29c7ed93536e724e721418c0ce352ceece86c13043c67aba1b70c3f5cc72fce6bb746706162 languageName: node linkType: hard @@ -2347,27 +2547,27 @@ __metadata: languageName: node linkType: hard -"@orval/angular@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/angular@npm:6.23.0" +"@orval/angular@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/angular@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" - checksum: 532290a2ea384366fc88b9715b33c70517f2ebdab8152a20efe5db481c4f04ccec92ebfb195e1c6f9604d7120c588d7edab3ec2ab6da68a5bbe4383deb794c32 + "@orval/core": "npm:6.24.0" + checksum: c55be75276f6e387f99fdb4cc2eccffde54093a3bfd262622e392ce3b33761d06fe5e7518cf6a8e5d839e39239e47fa5a3063dc1951a849142858c67a039db40 languageName: node linkType: hard -"@orval/axios@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/axios@npm:6.23.0" +"@orval/axios@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/axios@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" - checksum: a65d4e73d2b0aec3a26a3e8cc9728a175a16ae5bb68395fe4756b32e250fa78630be36aefbfe9e6c6488ff6d7950338c2f19c3e8b8bc373706103956aa93a3de + "@orval/core": "npm:6.24.0" + checksum: b4f568599f1bf466344c641ce0c95e51b87d46cfb8ecd8a4ac4df88206388bccc19d20a80d010c87319bfe456e26ad8d7cc7b5f64252ae1e0f8d0066c47df6b3 languageName: node linkType: hard -"@orval/core@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/core@npm:6.23.0" +"@orval/core@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/core@npm:6.24.0" dependencies: "@apidevtools/swagger-parser": "npm:^10.1.0" "@ibm-cloud/openapi-ruleset": "npm:^1.14.2" @@ -2376,7 +2576,7 @@ __metadata: chalk: "npm:^4.1.2" compare-versions: "npm:^6.1.0" debug: "npm:^4.3.4" - esbuild: "npm:^0.19.5" + esbuild: "npm:^0.19.11" esutils: "npm:2.0.3" fs-extra: "npm:^11.2.0" globby: "npm:11.1.0" @@ -2387,52 +2587,50 @@ __metadata: lodash.uniqby: "npm:^4.7.0" lodash.uniqwith: "npm:^4.5.0" micromatch: "npm:^4.0.5" - openapi-types: "npm:^12.1.3" - openapi3-ts: "npm:^3.2.0" + openapi3-ts: "npm:4.2.1" swagger2openapi: "npm:^7.0.8" - checksum: e527c07b24cfa8d1f74db1c49bda58e4f21ab91d46a05dc6d2c9f9f1838eb98c3717d3890abad00e3f2a24e53dd866b5164f3a663e84e72fd55bb7f90f179b13 + checksum: cdb3b948f2c979ced2082635039b50eb20cc437b842172f53bf779395b88116abf17aafcce622714f70d0b8248f526526cc035dbae15901ea6477a4b5ca205b9 languageName: node linkType: hard -"@orval/mock@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/mock@npm:6.23.0" +"@orval/mock@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/mock@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" + "@orval/core": "npm:6.24.0" lodash.get: "npm:^4.4.2" lodash.omit: "npm:^4.5.0" - openapi3-ts: "npm:^3.0.0" - checksum: d408fd5057fcb3eb9b6d848a5e84822e1e7f92b69802f11dde733eab9c10c4dfa7705c4405ddf5fec675d85d61ccd0b899daa5e71bedfb547fc0f71ee1e3f7d3 + openapi3-ts: "npm:^4.2.1" + checksum: 43f2654cae95508e8e2d088205052d11d5fee01d3db124709e58bfab04356978e350a86281a9b21a99155e19eb1da4a2fad23f15a4979fb6995d868c77de78c0 languageName: node linkType: hard -"@orval/query@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/query@npm:6.23.0" +"@orval/query@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/query@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" + "@orval/core": "npm:6.24.0" lodash.omitby: "npm:^4.6.0" - vitest: "npm:^0.34.6" - checksum: da81755d3ef146e80c2c614b2a3e2f14617042ab44795d72911566274fb7898ad2feb25505c31ef51c014cea28f6668e59e4461e2f27e79f95bd27d4c2090103 + checksum: 6a4afbeea1a09473f5026acd1ae83827c7b648fcd977f7be9e28f5899742f25cbaccebcc026a3acc85818102b75dba6c525bb68bbddd1391e4ddc58c29e084bc languageName: node linkType: hard -"@orval/swr@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/swr@npm:6.23.0" +"@orval/swr@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/swr@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" - checksum: 688b78647c0eea86589718132ad35d0942128208a624da5b929ac06b06e53ccf06e86dc97bf439ef3826f335279713ed1e39548241229ac14f46e5d50e462a1e + "@orval/core": "npm:6.24.0" + checksum: ed5bbc40467b82718b038120a78a3645cdc3cd8b5f216a3fffe94be179fa7275ad432a5dbeae2343aac6bdb4a98b2bcbbff4bfc3cc2d4a418c34257f511ac215 languageName: node linkType: hard -"@orval/zod@npm:6.23.0": - version: 6.23.0 - resolution: "@orval/zod@npm:6.23.0" +"@orval/zod@npm:6.24.0": + version: 6.24.0 + resolution: "@orval/zod@npm:6.24.0" dependencies: - "@orval/core": "npm:6.23.0" + "@orval/core": "npm:6.24.0" lodash.uniq: "npm:^4.5.0" - checksum: 624684e2c84b3531a965521086f41433188885e02c2bd6f51867dc842cf9f0d1108f8aa58a6e8ab461f68dd711dafa9e18d7a6b016b1a4b9bfe65cc2a6451796 + checksum: df55f0f92d704f199e7e97cabccc4f7ae5e306620148d117471e7ccdff66d5b6e6470e1120a76d838d27e1b1d1798157600072fb82a938a326e9f29ad752f738 languageName: node linkType: hard @@ -4110,93 +4308,93 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.9.6" +"@rollup/rollup-android-arm-eabi@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.10.0" conditions: os=android & cpu=arm languageName: node linkType: hard -"@rollup/rollup-android-arm64@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-android-arm64@npm:4.9.6" +"@rollup/rollup-android-arm64@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-android-arm64@npm:4.10.0" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-arm64@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-darwin-arm64@npm:4.9.6" +"@rollup/rollup-darwin-arm64@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.10.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-x64@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-darwin-x64@npm:4.9.6" +"@rollup/rollup-darwin-x64@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.10.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-linux-arm-gnueabihf@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.9.6" +"@rollup/rollup-linux-arm-gnueabihf@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.10.0" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@rollup/rollup-linux-arm64-gnu@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.9.6" +"@rollup/rollup-linux-arm64-gnu@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.10.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm64-musl@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-linux-arm64-musl@npm:4.9.6" +"@rollup/rollup-linux-arm64-musl@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.10.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-riscv64-gnu@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.9.6" +"@rollup/rollup-linux-riscv64-gnu@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.10.0" conditions: os=linux & cpu=riscv64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-gnu@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-linux-x64-gnu@npm:4.9.6" +"@rollup/rollup-linux-x64-gnu@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.10.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-musl@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-linux-x64-musl@npm:4.9.6" +"@rollup/rollup-linux-x64-musl@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.10.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-win32-arm64-msvc@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.9.6" +"@rollup/rollup-win32-arm64-msvc@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.10.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-win32-ia32-msvc@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.9.6" +"@rollup/rollup-win32-ia32-msvc@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.10.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rollup/rollup-win32-x64-msvc@npm:4.9.6": - version: 4.9.6 - resolution: "@rollup/rollup-win32-x64-msvc@npm:4.9.6" +"@rollup/rollup-win32-x64-msvc@npm:4.10.0": + version: 4.10.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.10.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -4585,11 +4783,11 @@ __metadata: linkType: hard "@swc/helpers@npm:^0.5.0": - version: 0.5.3 - resolution: "@swc/helpers@npm:0.5.3" + version: 0.5.6 + resolution: "@swc/helpers@npm:0.5.6" dependencies: tslib: "npm:^2.4.0" - checksum: 5ed4329cd36106e4c3c9c9fa710fae5b80521accce697d81030c42798c4653237f719269c24c26adf42579e15e1f720f31cd63983dea30debd298582a6cbd20a + checksum: 16f0a18367b1248317dcc3e5f32411da1a2906f983f4f072e394dfed37523385bc4d7bf71bab204cc8b3875c024a91421dd5c1f9c5bad1b1172fcb50aa2ec96f languageName: node linkType: hard @@ -4671,14 +4869,14 @@ __metadata: linkType: hard "@tanstack/react-virtual@npm:^3.0.0-beta.60": - version: 3.0.2 - resolution: "@tanstack/react-virtual@npm:3.0.2" + version: 3.0.4 + resolution: "@tanstack/react-virtual@npm:3.0.4" dependencies: "@tanstack/virtual-core": "npm:3.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 3794940cac5e17aa390905fc8e3c058e5a2570e54dc594c6c701622b3bcbec2e9551a769df3ae0210f33affa648c9935f65ee3c59373b8595bb7edaa474d516d + checksum: d99a18c78cbe2ab0618f9fd75b626bb9db36794dab62a4273922fd887996b01a36bc324a69047e4449c7b9aa0f11f2a19d02d70a94fb6255eaf924a619548322 languageName: node linkType: hard @@ -4713,8 +4911,8 @@ __metadata: linkType: hard "@testing-library/jest-dom@npm:^6.1.5": - version: 6.4.0 - resolution: "@testing-library/jest-dom@npm:6.4.0" + version: 6.4.2 + resolution: "@testing-library/jest-dom@npm:6.4.2" dependencies: "@adobe/css-tools": "npm:^4.3.2" "@babel/runtime": "npm:^7.9.2" @@ -4741,13 +4939,13 @@ __metadata: optional: true vitest: optional: true - checksum: 09179611c61357925ca26a9cde4398a6ceee87940ab1c991c61d76fa74adb80e637f60e2ad1443e2cc75f1d336dc6285d5f50419e37b9bd04ad585233f913fc8 + checksum: 7ee1e51caffad032734a4a43a00bf72d49080cf1bbf53021b443e91c7fa3762a66f55ce68f1c6643590fe66fbc4df92142659b8cf17c92166a3fb22691987e0d languageName: node linkType: hard "@testing-library/react@npm:^14.1.2": - version: 14.1.2 - resolution: "@testing-library/react@npm:14.1.2" + version: 14.2.1 + resolution: "@testing-library/react@npm:14.2.1" dependencies: "@babel/runtime": "npm:^7.12.5" "@testing-library/dom": "npm:^9.0.0" @@ -4755,7 +4953,7 @@ __metadata: peerDependencies: react: ^18.0.0 react-dom: ^18.0.0 - checksum: 1664990ad9673403ee1d74c1c1b60ec30591d42a3fe1e2175c28cb935cd49bc9a4ba398707f702acc3278c3b0cb492ee57fe66f41ceb040c5da57de98cba5414 + checksum: e02b2f32ae79665a79fc4d8ee053fd3832bfcd4753aa1dba05cdece1a9f59c72a0fae91e0a9387597dcb686d631a722729f2878e38dc95e6f23b291ad8d09b6c languageName: node linkType: hard @@ -4769,245 +4967,245 @@ __metadata: linkType: hard "@tiptap/core@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/core@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/core@npm:2.2.2" peerDependencies: "@tiptap/pm": ^2.0.0 - checksum: 63a268e800a3d7cbedb64b060bd7bf69f6516a25d4b40163ce0cd418b8a1bffb52cbbc48d82d68206a9e8a022930bf45a8b77bb7d817fb357122d6cdde6383a6 + checksum: db1e0a26f07d7a2a839315464a00301ef1204aad40834e283dc4abe3e9fb64e9e45020b7b8bcbe2d4b0bf934346ec1b815afd126a9036ebaa4f5ff513df10e53 languageName: node linkType: hard "@tiptap/extension-bold@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-bold@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-bold@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 4a25d73c639cce07522cd98701a90974eefc369ed4887bbb213146f48dee5e69dd5603139d837fe67f9e6de669703ba93a3b8640b21ec16176b50aae35af3656 + checksum: 4d14e12f1099341d80a554952f268614a9224c5ab8261d96bf61114d2957493032ac238eca3643677f712358871a78d39232b56aa052187d4618abce6786c97d languageName: node linkType: hard -"@tiptap/extension-bubble-menu@npm:^2.2.0": - version: 2.2.0 - resolution: "@tiptap/extension-bubble-menu@npm:2.2.0" +"@tiptap/extension-bubble-menu@npm:^2.2.2": + version: 2.2.2 + resolution: "@tiptap/extension-bubble-menu@npm:2.2.2" dependencies: tippy.js: "npm:^6.3.7" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: ba9b7b4fef6387f0bc8d6d1939e346143a1a49c788bbc78bde3ca0f55d2885fb112bca6e474d4eed84bd8c2fc89f0c928e6b148c90ba343a00d572a9de404f7d + checksum: eaed5f13c9079ddfc64468ab1899c2b59fd1ed80ae07ff7f3fc03d26707124dd34d18f572e831bec5c38b3ab9f4f4eaa30d44b4fc624b48ae42a5cebc6affb7a languageName: node linkType: hard "@tiptap/extension-bullet-list@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-bullet-list@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-bullet-list@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: d6303f543444a43c15ddbc2aaf054d10b828bb6841651928f3dc53459cdf5f9acf28ae2f1899d24bc04587d2e50a0528d3eb681e381fd903a7669563194e51e0 + checksum: 2d4b1c2cf09fb7ece423fdc963404452859350f378122eb5d1aa283de7819d598eac6e2279a6863a38b04007d6a40aa19370617df773ac8294a15c2980bda187 languageName: node linkType: hard "@tiptap/extension-document@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-document@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-document@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: b2ddd370f6ada0aabd6c4df0390937da1d3756c3507911ed522f0586292a075922d98de128c966960efb7955137601109943ccb2d6786a248c3a0077e22f3e67 + checksum: 249f4b95e52cd9fbd9b20d7393254a8acbb047d90b93a6f1a8b4c0812b2b0a70d5541b58124aa94b072d9d64fc8caa419c9f06436d00605008cc0cde063ebd64 languageName: node linkType: hard -"@tiptap/extension-floating-menu@npm:^2.2.0": - version: 2.2.0 - resolution: "@tiptap/extension-floating-menu@npm:2.2.0" +"@tiptap/extension-floating-menu@npm:^2.2.2": + version: 2.2.2 + resolution: "@tiptap/extension-floating-menu@npm:2.2.2" dependencies: tippy.js: "npm:^6.3.7" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: 96a77eee4766b9a86d80133cb42e658c9ef6788a8de5d1960d8e34ebf7caea97d1042fd7d87d9e3c081e15ab9317a1eb5894be94c1fcffc8021a5a74853d6040 + checksum: 8c73b42b0933caeada53c64dd6132b14ae57ecfcf0874815cdce09e9a6cc9323a1d3bcc51f03237629dc0c910d3e0e3e94a145d36a10c61ede98f1cecb0f6f64 languageName: node linkType: hard "@tiptap/extension-hard-break@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-hard-break@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-hard-break@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 5e8240869364925dc17c615db5c1fe595b0cd6bdccb1e15b554a6c2602c39baf7b67cc1ee715403a22d7692e533a38a22679eb9e2150111f23bb0d016d664623 + checksum: f659a0a1d39b0c637deedd8dc0f004ed62f9e116497849e3f2c6294e30ec60ee1f145912dcbf5d591aeb2bbf1512c7f9b6502b2868a5a1afc7a1142ef9bc59c7 languageName: node linkType: hard "@tiptap/extension-heading@npm:^2.1.12": - version: 2.2.0 - resolution: "@tiptap/extension-heading@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-heading@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: d5c27a7d48e5d0750905194858488d16e54f6146eac53af97bfd93aa33f28f59fd1fd8daca5c9de5c8dfe14b6ec17592cd8770a854424ebb1edb355c4936a0be + checksum: 05e0c1cd917a0d7c5f64fcf80d174a05f8e8ccb7bc53cf78f0df4135ad661aef64e9a9d9c0becd80e0bcb173c095da256e7ee7813757444d687f52182b563032 languageName: node linkType: hard "@tiptap/extension-history@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-history@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-history@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: 09e7139a2016a6f1884428b414ee44cb839d0102cdc102dc248e03e6103b0f34d4ff314846989c81e513fda1a50bf44cc6421596b6ecdd3791a22aa8ac39e131 + checksum: 716036566c5d8acd70eb4799f70fc12b76162484b8028b9d8004511301eb94107e62d6d5c221e45b6737aef3ac3009f794aeb7ebbfdfab8e835c585b87c178d1 languageName: node linkType: hard "@tiptap/extension-image@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-image@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-image@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: e1d9e7cdc07c0e992c79a33bf9209f6af2405d309ba841fe24248456a11b14db5293e768f13849bd32f51ada5bb69ceb69b8a2098e927d95578b92c72427cc3b + checksum: 4445e7227d8f4613547bb865007ef32665f7562851d7dedb6740db582638be2f63faa52fccfee54d56a62d44656be49de3504464a0371fb0afc9d2bd0320afb4 languageName: node linkType: hard "@tiptap/extension-italic@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-italic@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-italic@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 2aa75e950a9bd9d32c7309595f620fbbbf8d9e536f7ab53cb16503b3ce64fb886cf87d4dd1bacb585e7be814a1f9190b34bf86d27f7b5420f5b99b5a64704268 + checksum: 4ed975750c976134684c28faca2730771cdd0161179af8685a19333cb27d083bb30c7dcbbe9bb5183a51dab5305240ee43f12000d8618bda6e9699d42e1a63df languageName: node linkType: hard "@tiptap/extension-link@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-link@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-link@npm:2.2.2" dependencies: linkifyjs: "npm:^4.1.0" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: c3ba58a4657b350ef29d6b187b05eea59469d164361ce6523e3bd232e95c46ba3f09fda03e74202ef38ac610fc6fe3ee45067dd7e1bc5c0bff5f0ad9ac1b4e3b + checksum: 063f8313dde3fda2c05e45de0523b09d1a8b81b808bd5668898b2f467b63968e4e9803527da8262f832e70539bbec89b3a9d2569cd01dd3efa5ac10ff75c55a0 languageName: node linkType: hard "@tiptap/extension-list-item@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-list-item@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-list-item@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 31cae36526e445a37abb5b4f27474e9cfdfa09f60ab004717742d4368b55679ffba5905485bedbb05c6117eb34176f497973fa7e26afb1890424d0a2019a53c0 + checksum: 5cc4471b4ba1f3159b1315aee70e019e3c232233fb95bcf1afe825b66b65217b587dba88c57599c6155604b2fb3542efb139e01ec567d8326c291d0577fb6794 languageName: node linkType: hard "@tiptap/extension-ordered-list@npm:^2.1.12": - version: 2.2.0 - resolution: "@tiptap/extension-ordered-list@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-ordered-list@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 80c48810b8dcf085d1c79725596ebe5b036d22257bba34b7693f32850eeb43b4f5c40708c7b4b8cb4be446d66718d8decf923d6e2d8f17a61737379f914cfb44 + checksum: ec831c59f7aa46b275fff5041733cfb9e39ee01151657b875a03d16f66722c36f8d842a4dde314b24a5124d2f63d5cf43b2502adda7bbeb7d3eb70f28abfbe8f languageName: node linkType: hard "@tiptap/extension-paragraph@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-paragraph@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-paragraph@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: fa020baf05b3ce9ea883822a66e6384329e6cf6190036bab6644897e5b3b8a14b0a8ebd362572055f5c546e84b856497dfde20fa107029f6cf7f116b50e5f4c9 + checksum: 3061f5fcebece46aec029fea9e6e57199acd45b63c87464e519797d18b94f2eb3289aee03935259bc09caad5c3b87384998bddc9b4ad94e171189df40ef25534 languageName: node linkType: hard "@tiptap/extension-placeholder@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-placeholder@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-placeholder@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: 1a4bae63b5434944a840e0c26c1acf20b0426bfd4bbd090b773a7dd0015d8ad4705f594050462fcffe22f808a7d7e6d216019d572f369b46ba38eb7ec77c9223 + checksum: 20b1b59af87880b4d900757a1df81b9789b56d1b97087e0a2f03da72cdf0320d1e2e899fe6321fb6b4c6cd878c61fe8e486929b44a5448304735cc06019f65aa languageName: node linkType: hard "@tiptap/extension-subscript@npm:^2.1.12": - version: 2.2.0 - resolution: "@tiptap/extension-subscript@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-subscript@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: aea044bcdf45cde06c8ef4ec83597c85a0f617c93d1ba8152d76c7296562b550f68173e33034d276245b8cdf9cf9d32be9a7c73c62c5a43756f355f70516c129 + checksum: f3a2fe6909867887c31792f768a56735c7f6e4605ecc5a74bea28e836db574e9267944a9c43e5bb5df4caf5456c6ce749247db4ddf438ea11dbcbcae455216fa languageName: node linkType: hard "@tiptap/extension-superscript@npm:^2.1.12": - version: 2.2.0 - resolution: "@tiptap/extension-superscript@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-superscript@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 6ee19a75494c32c528bc1c2ab10129a798760aa31e49b76d5ffa84383d207ed991d113ca503c00111db1b1e0ddcbe9b82538de865d5dc6aa3257149bdd8bed25 + checksum: 09361338767113260c34c13955a3d4080a11ca59626c0057e4ae24f34e2a0906a24b1fa51f17d4ff035e904cccd8ec3084ddfa937a386f588b0fd1d9dc3df92b languageName: node linkType: hard "@tiptap/extension-table-cell@npm:^2.1.12": - version: 2.2.0 - resolution: "@tiptap/extension-table-cell@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-table-cell@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: d90f0a4bf6d1ffa9d927de9229095b624eedc024606781c68124deb69428b18976b267b908c361a5f4deb05ef730e046c0a6d85069d0642ef0ea504f45615122 + checksum: 23181ce0e7bce0d354eb62db3b474d3c4f61810a781aed28b6b07058388533e6a18cec41c4a11ac30d5185c7abdb6f137375e0708c99ab621f7406b74bae08a8 languageName: node linkType: hard "@tiptap/extension-table-header@npm:^2.1.12": - version: 2.2.0 - resolution: "@tiptap/extension-table-header@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-table-header@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 3e751f76317725b449816e2a435033eae76a131ccf72d612f3e1a43220ec681e463bab6ee46ecf6f5351c4d7d0081e4d0b76bbc2ea9ec36e64630cd193914db4 + checksum: b91fe3f1ed093fbd70c45c960f9dddd0e128fc1e3e37e134e74631ca30a68dd5012cae7bc17c3129a70cf2059edcfece82fa6fd93eeeb32ae254d3b0e53cb0c1 languageName: node linkType: hard "@tiptap/extension-table-row@npm:^2.1.12": - version: 2.2.0 - resolution: "@tiptap/extension-table-row@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-table-row@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 1091df2687f632d08c66e22c7a9ce6a1b6fd008ba9bc1b06e34348e868a41a970c7266b36f9c5ed6c705eeb77aa36025a7c279ca547905a04944459bcbb39b16 + checksum: 58196af47aaaf93d1f49ea5d9ca402465831fdf68c4827770189f2dba4e35aed5eb09cca75344ed92fd1217c6edb62d3c630e5a40921e7e6bf78ccd97fabe847 languageName: node linkType: hard "@tiptap/extension-table@npm:^2.1.12": - version: 2.2.0 - resolution: "@tiptap/extension-table@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-table@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 - checksum: d094ff509faeb46c240b4f7fce448a2f3322247cfb4b315920914cab5c14c72c8a946b67806b299a5e7a6595ab115a6d2665fbfa3ffb4b91beb398bc0bfeca11 + checksum: 0ebf676ccc65ac085b901c814fa61065b6e3a8b14eb1a1a16305d6a5b7b5b8e7853cf21f229b25b360c57f706683f182703eac4c3ff70cf5d93b5b6665afe60d languageName: node linkType: hard "@tiptap/extension-text-style@npm:^2.1.10": - version: 2.2.0 - resolution: "@tiptap/extension-text-style@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-text-style@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 995b3c74276d954056d6260f238a20b8a043f736f60badd1cb7c33db5f6f1a561d0798c76aef91596990252fce08cc792704fa549c8783535e95b606aca1e526 + checksum: 8a0049b339a53439c11c8f565386b77b363c055d4531cb05d13f7cc37833ee3b38714bf4e8bda73031432c7d5df9d6b5f73594ce7a7fb041a8942a4f2f8a4725 languageName: node linkType: hard "@tiptap/extension-text@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-text@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-text@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: 71eb3ff58d0bcccbcee4af5e93bc3d748c2725443c43327d8702ca5eea2fa451252bf67fe649b97195ccc435d069d95c3b3c241495e189561065ad2f6f453368 + checksum: 2827800bbca558131ee34286b705e07f9f509079848d4c71e80988e4d6c68cf633bc5a780de6b3bc5be7c7d7b6a9d9c11145f1335a3b6a9c10bcbbef936a4971 languageName: node linkType: hard "@tiptap/extension-underline@npm:^2.1.7": - version: 2.2.0 - resolution: "@tiptap/extension-underline@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/extension-underline@npm:2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 - checksum: cb4879cbcefbeae7e519192964de879facf1f415ca07075cff4b9104da1ecd2a7826f0b3abf2f63f58251657e0a7d7808c3382bb56e0642f2c54b2f9b9e371ac + checksum: e833f083bf6d0718f28c12aeb1d2e26c3eddcf1c466daa2f7e3e800a7d11de6700705f9043abf9af7f0489453d4e2af96142f743295e8c99d5027e5290ba2c2f languageName: node linkType: hard "@tiptap/pm@npm:^2.0.3": - version: 2.2.0 - resolution: "@tiptap/pm@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/pm@npm:2.2.2" dependencies: prosemirror-changeset: "npm:^2.2.1" prosemirror-collab: "npm:^1.3.1" @@ -5027,22 +5225,22 @@ __metadata: prosemirror-trailing-node: "npm:^2.0.7" prosemirror-transform: "npm:^1.8.0" prosemirror-view: "npm:^1.32.7" - checksum: 2ccc4a06d69ff3489f740b97af070297587334d225dc2f7f7363bf6aa642e8320ba38cf596eb9e6b219856b722b1b040a54a32fa8bf2c27913380e8297752b30 + checksum: bc234b5d66d5b0f7f33f36af72effdc8cae895e2817446c95ed2307bcf6a46e180cc510bcb13a0ca8913d8c5bb186293d6dc669133e71dad5d26f5638e3ba7af languageName: node linkType: hard "@tiptap/react@npm:^2.0.3": - version: 2.2.0 - resolution: "@tiptap/react@npm:2.2.0" + version: 2.2.2 + resolution: "@tiptap/react@npm:2.2.2" dependencies: - "@tiptap/extension-bubble-menu": "npm:^2.2.0" - "@tiptap/extension-floating-menu": "npm:^2.2.0" + "@tiptap/extension-bubble-menu": "npm:^2.2.2" + "@tiptap/extension-floating-menu": "npm:^2.2.2" peerDependencies: "@tiptap/core": ^2.0.0 "@tiptap/pm": ^2.0.0 react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 - checksum: c98f6930568a5bed6273c38442cdd46cba6b7331bb011fef6fde38a03b011c36609ee6124b9937aa215196bb750ce0c9c2285519e696be88fd3d267b18efea56 + checksum: 6a4de68fc8b79bd77630a11952a1aadb716dd1af6a5b7dbe36c0673eb37c61c7dc2638b2529e0705bdc3ee972410fe6f697527478a8a1684ca3e387c78a0cd69 languageName: node linkType: hard @@ -5108,22 +5306,6 @@ __metadata: languageName: node linkType: hard -"@types/chai-subset@npm:^1.3.3": - version: 1.3.5 - resolution: "@types/chai-subset@npm:1.3.5" - dependencies: - "@types/chai": "npm:*" - checksum: 715c46d3e90f87482c2769389d560456bb257b225716ff44c275c231bdb62c8a30629f355f412bac0ecab07ebc036c1806d9ed9dde9792254f8ef4f07f76033b - languageName: node - linkType: hard - -"@types/chai@npm:*, @types/chai@npm:^4.3.5": - version: 4.3.11 - resolution: "@types/chai@npm:4.3.11" - checksum: c83a00359684bf06114d5ad0ffa62c78b2fbfe09a985eda56e55cd3c191fe176052aef6e297a8c8a3608efb8ea7a44598cf7e0ae1a3a9311af892417e95b0b28 - languageName: node - linkType: hard - "@types/cookie@npm:^0.6.0": version: 0.6.0 resolution: "@types/cookie@npm:0.6.0" @@ -5266,9 +5448,9 @@ __metadata: linkType: hard "@types/d3-path@npm:*": - version: 3.0.2 - resolution: "@types/d3-path@npm:3.0.2" - checksum: fc974ffd75ff9268ea689cec764fffdd582d96f6f113db5bd2aba6d5d4a843eccc7919730fbca9134bd97ba6c91c13018a0c7c3f0813b73259f3603d140e0cb5 + version: 3.1.0 + resolution: "@types/d3-path@npm:3.1.0" + checksum: 7348d65c9b37c7023590d4e5ef11e37f9eee62df9fa23e0758da1fbd66a1cbff40e37cbe0b85e9388ab900451e9c18a5a973469e9fd725c8c85c4a3f84647b9d languageName: node linkType: hard @@ -5436,9 +5618,9 @@ __metadata: linkType: hard "@types/geojson@npm:*": - version: 7946.0.13 - resolution: "@types/geojson@npm:7946.0.13" - checksum: b3b68457c89bc3f0445dc9eb54d07e6f89658672867c54989bc7f71f87d54e562195b291d43e1b84476493351271d7ccb9f5c6ab2012b29fbafbb0e8e43c4bca + version: 7946.0.14 + resolution: "@types/geojson@npm:7946.0.14" + checksum: ae511bee6488ae3bd5a3a3347aedb0371e997b14225b8983679284e22fa4ebd88627c6e3ff8b08bf4cc35068cb29310c89427311ffc9322c255615821a922e71 languageName: node linkType: hard @@ -5532,16 +5714,6 @@ __metadata: languageName: node linkType: hard -<<<<<<< HEAD -"@types/minimist@npm:^1.2.0": - version: 1.2.5 - resolution: "@types/minimist@npm:1.2.5" - checksum: 477047b606005058ab0263c4f58097136268007f320003c348794f74adedc3166ffc47c80ec3e94687787f2ab7f4e72c468223946e79892cf0fd9e25e9970a90 - languageName: node - linkType: hard - -"@types/node@npm:*, @types/node@npm:^20.10.5": -======= "@types/mute-stream@npm:^0.0.4": version: 0.0.4 resolution: "@types/mute-stream@npm:0.0.4" @@ -5552,7 +5724,6 @@ __metadata: linkType: hard "@types/node@npm:*, @types/node@npm:^20.11.16": ->>>>>>> feature/AB#16122 version: 20.11.17 resolution: "@types/node@npm:20.11.17" dependencies: @@ -5608,11 +5779,11 @@ __metadata: linkType: hard "@types/react-dom@npm:^18.0.0, @types/react-dom@npm:^18.2.7": - version: 18.2.18 - resolution: "@types/react-dom@npm:18.2.18" + version: 18.2.19 + resolution: "@types/react-dom@npm:18.2.19" dependencies: "@types/react": "npm:*" - checksum: 4ef7725b4cebd4a32e049097ddfdfd855a178e63ead97ab6d3084872e7d6c1acd71aa923488123cd1015f0e0b11489d2b44f674a1df8fe82d7827eabbec6dbf1 + checksum: 98eb760ce78f1016d97c70f605f0b1a53873a548d3c2192b40c897f694fd9c8bb12baeada16581a9c7b26f5022c1d2613547be98284d8f1b82d1611b1e3e7df0 languageName: node linkType: hard @@ -5665,13 +5836,13 @@ __metadata: linkType: hard "@types/react@npm:*, @types/react@npm:^18.2.15": - version: 18.2.48 - resolution: "@types/react@npm:18.2.48" + version: 18.2.55 + resolution: "@types/react@npm:18.2.55" dependencies: "@types/prop-types": "npm:*" "@types/scheduler": "npm:*" csstype: "npm:^3.0.2" - checksum: 2e56ea6bd821ae96bd943f727a59d85384eaf5f8a3e6fce4fa1d34453e32d8eedda742432b3857fa0de7a4214bf84ce4239757eb52918e76452c00384731e585 + checksum: bf8fe19e73575489e63c0726355f164157cd69e75f2a862436ad2c0586e732cb953a7255a6bc73145e8f9506ee7a723f9a569ca9a39c53984e5b12b84e1c718a languageName: node linkType: hard @@ -5683,9 +5854,9 @@ __metadata: linkType: hard "@types/semver@npm:^7.3.12": - version: 7.5.6 - resolution: "@types/semver@npm:7.5.6" - checksum: e77282b17f74354e17e771c0035cccb54b94cc53d0433fa7e9ba9d23fd5d7edcd14b6c8b7327d58bbd89e83b1c5eda71dfe408e06b929007e2b89586e9b63459 + version: 7.5.7 + resolution: "@types/semver@npm:7.5.7" + checksum: 535d88ec577fe59e38211881f79a1e2ba391e9e1516f8fff74e7196a5ba54315bace9c67a4616c334c830c89027d70a9f473a4ceb634526086a9da39180f2f9a languageName: node linkType: hard @@ -5724,6 +5895,13 @@ __metadata: languageName: node linkType: hard +"@types/wrap-ansi@npm:^3.0.0": + version: 3.0.0 + resolution: "@types/wrap-ansi@npm:3.0.0" + checksum: 8aa644946ca4e859668c36b8e2bcf2ac4bdee59dac760414730ea57be8a93ae9166ebd40a088f2ab714843aaea2a2a67f0e6e6ec11cfc9c8701b2466ca1c4089 + languageName: node + linkType: hard + "@typescript-eslint/eslint-plugin@npm:^5.14.0": version: 5.62.0 resolution: "@typescript-eslint/eslint-plugin@npm:5.62.0" @@ -5890,17 +6068,6 @@ __metadata: languageName: node linkType: hard -"@vitest/expect@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/expect@npm:0.34.6" - dependencies: - "@vitest/spy": "npm:0.34.6" - "@vitest/utils": "npm:0.34.6" - chai: "npm:^4.3.10" - checksum: c5dbd3db4d914857287dcff5dd7084070a2f73ed616197c80acaa54c27e5563cecf7a11e86d6aeef002e38f2ca52626f4b9c765db9b56add736f4e94a7fb0954 - languageName: node - linkType: hard - "@vitest/expect@npm:1.2.2": version: 1.2.2 resolution: "@vitest/expect@npm:1.2.2" @@ -5912,17 +6079,6 @@ __metadata: languageName: node linkType: hard -"@vitest/runner@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/runner@npm:0.34.6" - dependencies: - "@vitest/utils": "npm:0.34.6" - p-limit: "npm:^4.0.0" - pathe: "npm:^1.1.1" - checksum: 3525d8e4f8cd8a8b3f8f43a7b2604cda891fe31cfa1604e179628ced89d21114a55d6bb3bf192c02b4419e760eb15188d490e861cb46ddab2786193f8a999b0e - languageName: node - linkType: hard - "@vitest/runner@npm:1.2.2": version: 1.2.2 resolution: "@vitest/runner@npm:1.2.2" @@ -5934,17 +6090,6 @@ __metadata: languageName: node linkType: hard -"@vitest/snapshot@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/snapshot@npm:0.34.6" - dependencies: - magic-string: "npm:^0.30.1" - pathe: "npm:^1.1.1" - pretty-format: "npm:^29.5.0" - checksum: a9a321a089b22a383253b8cf3092c3af9b35453bb1c0ba0762760644a6ab0f727a4083872c7fd5a7d18c9a4fc4a798c4392872e337858a7c8ccc25ada6bf4d96 - languageName: node - linkType: hard - "@vitest/snapshot@npm:1.2.2": version: 1.2.2 resolution: "@vitest/snapshot@npm:1.2.2" @@ -5956,15 +6101,6 @@ __metadata: languageName: node linkType: hard -"@vitest/spy@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/spy@npm:0.34.6" - dependencies: - tinyspy: "npm:^2.1.1" - checksum: 9de152ac928c31e21bb4d8e1262b70db50dd11479efe8babce6bd993cc89957b974a584414a99d66ca188775b50baea1b934fdfb8d0d53c66fc2feb6dc2e348d - languageName: node - linkType: hard - "@vitest/spy@npm:1.2.2": version: 1.2.2 resolution: "@vitest/spy@npm:1.2.2" @@ -5974,17 +6110,6 @@ __metadata: languageName: node linkType: hard -"@vitest/utils@npm:0.34.6": - version: 0.34.6 - resolution: "@vitest/utils@npm:0.34.6" - dependencies: - diff-sequences: "npm:^29.4.3" - loupe: "npm:^2.3.6" - pretty-format: "npm:^29.5.0" - checksum: 09a1b2122ceb5541b4f3d64410088e363a36d6e4addf208b6458615ac856adf36c1c9b5431a45ea13a78c30e6a7dcb0696854abe69a710089ffa229356a5202b - languageName: node - linkType: hard - "@vitest/utils@npm:1.2.2": version: 1.2.2 resolution: "@vitest/utils@npm:1.2.2" @@ -6029,7 +6154,7 @@ __metadata: languageName: node linkType: hard -"acorn-walk@npm:^8.2.0, acorn-walk@npm:^8.3.2": +"acorn-walk@npm:^8.3.2": version: 8.3.2 resolution: "acorn-walk@npm:8.3.2" checksum: 57dbe2fd8cf744f562431775741c5c087196cd7a65ce4ccb3f3981cdfad25cd24ad2bad404997b88464ac01e789a0a61e5e355b2a84876f13deef39fb39686ca @@ -6146,7 +6271,7 @@ __metadata: languageName: node linkType: hard -"ansi-escapes@npm:^4.2.1": +"ansi-escapes@npm:^4.3.2": version: 4.3.2 resolution: "ansi-escapes@npm:4.3.2" dependencies: @@ -6268,7 +6393,7 @@ __metadata: languageName: node linkType: hard -"array-buffer-byte-length@npm:^1.0.0": +"array-buffer-byte-length@npm:^1.0.0, array-buffer-byte-length@npm:^1.0.1": version: 1.0.1 resolution: "array-buffer-byte-length@npm:1.0.1" dependencies: @@ -6298,16 +6423,29 @@ __metadata: languageName: node linkType: hard -"array.prototype.findlastindex@npm:^1.2.3": - version: 1.2.3 - resolution: "array.prototype.findlastindex@npm:1.2.3" +"array.prototype.filter@npm:^1.0.3": + version: 1.0.3 + resolution: "array.prototype.filter@npm:1.0.3" dependencies: call-bind: "npm:^1.0.2" define-properties: "npm:^1.2.0" es-abstract: "npm:^1.22.1" - es-shim-unscopables: "npm:^1.0.0" - get-intrinsic: "npm:^1.2.1" - checksum: 063cbab8eeac3aa01f3e980eecb9a8c5d87723032b49f7f814ecc6d75c33c03c17e3f43a458127a62e16303cab412f95d6ad9dc7e0ae6d9dc27a9bb76c24df7a + es-array-method-boxes-properly: "npm:^1.0.0" + is-string: "npm:^1.0.7" + checksum: 3da2189afb00f95559cc73fc3c50f17a071a65bb705c0b2f2e2a2b2142781215b622442368c8b4387389b6ab251adf09ad347f9a8a4cf29d24404cc5ea1e295c + languageName: node + linkType: hard + +"array.prototype.findlastindex@npm:^1.2.3": + version: 1.2.4 + resolution: "array.prototype.findlastindex@npm:1.2.4" + dependencies: + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.3.0" + es-shim-unscopables: "npm:^1.0.2" + checksum: 12d7de8da619065b9d4c40550d11c13f2fbbc863c4270ef01d022f49ef16fbe9022441ee9d60b1e952853c661dd4b3e05c21e4348d4631c6d93ddf802a252296 languageName: node linkType: hard @@ -6336,30 +6474,31 @@ __metadata: linkType: hard "array.prototype.tosorted@npm:^1.1.1": - version: 1.1.2 - resolution: "array.prototype.tosorted@npm:1.1.2" + version: 1.1.3 + resolution: "array.prototype.tosorted@npm:1.1.3" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - es-shim-unscopables: "npm:^1.0.0" - get-intrinsic: "npm:^1.2.1" - checksum: aadb7725bb923f594be8121c80def8193ff2871ce1bfa1180b7e7ef705b8a7b32327fcc0d998c5569bb0cabc1c11ad93b1ef11443a26091e8bd1a55b382ab715 + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.1.0" + es-shim-unscopables: "npm:^1.0.2" + checksum: 9a5b7909a9ddd02a5f5489911766c314a11fb40f8f5106bdbedf6c21898763faeb78ba3af53f7038f288de9161d2605ad10d8b720e07f71a7ed1de49f39c0897 languageName: node linkType: hard "arraybuffer.prototype.slice@npm:^1.0.2": - version: 1.0.2 - resolution: "arraybuffer.prototype.slice@npm:1.0.2" + version: 1.0.3 + resolution: "arraybuffer.prototype.slice@npm:1.0.3" dependencies: - array-buffer-byte-length: "npm:^1.0.0" - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - get-intrinsic: "npm:^1.2.1" - is-array-buffer: "npm:^3.0.2" + array-buffer-byte-length: "npm:^1.0.1" + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.2.1" + get-intrinsic: "npm:^1.2.3" + is-array-buffer: "npm:^3.0.4" is-shared-array-buffer: "npm:^1.0.2" - checksum: c200faf437786f5b2c80d4564ff5481c886a16dee642ef02abdc7306c7edd523d1f01d1dd12b769c7eb42ac9bc53874510db19a92a2c035c0f6696172aafa5d3 + checksum: 0221f16c1e3ec7b67da870ee0e1f12b825b5f9189835392b59a22990f715827561a4f4cd5330dc7507de272d8df821be6cd4b0cb569babf5ea4be70e365a2f3d languageName: node linkType: hard @@ -6441,10 +6580,10 @@ __metadata: languageName: node linkType: hard -"axe-core@npm:~4.8.3": - version: 4.8.3 - resolution: "axe-core@npm:4.8.3" - checksum: 86d72bcdff867b8a4f223b910f90d1c963ddab1db3bdc5290e111453bae4e319ed14d667cd7a6ac97185ffa141261c88ac9a586aa007d007ffc19ed9ae81ee1d +"axe-core@npm:~4.8.4": + version: 4.8.4 + resolution: "axe-core@npm:4.8.4" + checksum: c8b3972b17afac33b9e151556fa500b9218086ca763866942de30e7f51ac50582902ad03ec16381796c95afaacfa8c33efb2d02ab4f09b6c09d6be58b95da978 languageName: node linkType: hard @@ -6531,13 +6670,6 @@ __metadata: languageName: node linkType: hard -"base64-js@npm:^1.3.1": - version: 1.5.1 - resolution: "base64-js@npm:1.5.1" - checksum: 669632eb3745404c2f822a18fc3a0122d2f9a7a13f7fb8b5823ee19d1d2ff9ee5b52c53367176ea4ad093c332fd5ab4bd0ebae5a8e27917a4105a4cfc86b1005 - languageName: node - linkType: hard - "binary-extensions@npm:^2.0.0": version: 2.2.0 resolution: "binary-extensions@npm:2.2.0" @@ -6545,17 +6677,6 @@ __metadata: languageName: node linkType: hard -"bl@npm:^4.1.0": - version: 4.1.0 - resolution: "bl@npm:4.1.0" - dependencies: - buffer: "npm:^5.5.0" - inherits: "npm:^2.0.4" - readable-stream: "npm:^3.4.0" - checksum: b7904e66ed0bdfc813c06ea6c3e35eafecb104369dbf5356d0f416af90c1546de3b74e5b63506f0629acf5e16a6f87c3798f16233dcff086e9129383aa02ab55 - languageName: node - linkType: hard - "brace-expansion@npm:^1.1.7": version: 1.1.11 resolution: "brace-expansion@npm:1.1.11" @@ -6598,16 +6719,6 @@ __metadata: languageName: node linkType: hard -"buffer@npm:^5.5.0": - version: 5.7.1 - resolution: "buffer@npm:5.7.1" - dependencies: - base64-js: "npm:^1.3.1" - ieee754: "npm:^1.1.13" - checksum: 997434d3c6e3b39e0be479a80288875f71cd1c07d75a3855e6f08ef848a3c966023f79534e22e415ff3a5112708ce06127277ab20e527146d55c84566405c7c6 - languageName: node - linkType: hard - "c8@npm:^8.0.0": version: 8.0.1 resolution: "c8@npm:8.0.1" @@ -6657,18 +6768,7 @@ __metadata: languageName: node linkType: hard -"call-bind@npm:^1.0.0, call-bind@npm:^1.0.4": - version: 1.0.5 - resolution: "call-bind@npm:1.0.5" - dependencies: - function-bind: "npm:^1.1.2" - get-intrinsic: "npm:^1.2.1" - set-function-length: "npm:^1.1.1" - checksum: 246d44db6ef9bbd418828dbd5337f80b46be4398d522eded015f31554cbb2ea33025b0203b75c7ab05a1a255b56ef218880cca1743e4121e306729f9e414da39 - languageName: node - linkType: hard - -"call-bind@npm:^1.0.2, call-bind@npm:^1.0.5": +"call-bind@npm:^1.0.2, call-bind@npm:^1.0.5, call-bind@npm:^1.0.6": version: 1.0.7 resolution: "call-bind@npm:1.0.7" dependencies: @@ -6681,6 +6781,17 @@ __metadata: languageName: node linkType: hard +"call-bind@npm:^1.0.4": + version: 1.0.5 + resolution: "call-bind@npm:1.0.5" + dependencies: + function-bind: "npm:^1.1.2" + get-intrinsic: "npm:^1.2.1" + set-function-length: "npm:^1.1.1" + checksum: 246d44db6ef9bbd418828dbd5337f80b46be4398d522eded015f31554cbb2ea33025b0203b75c7ab05a1a255b56ef218880cca1743e4121e306729f9e414da39 + languageName: node + linkType: hard + "call-me-maybe@npm:^1.0.1": version: 1.0.2 resolution: "call-me-maybe@npm:1.0.2" @@ -6710,9 +6821,9 @@ __metadata: linkType: hard "caniuse-lite@npm:^1.0.30001578, caniuse-lite@npm:^1.0.30001580": - version: 1.0.30001581 - resolution: "caniuse-lite@npm:1.0.30001581" - checksum: c2d049514e6af5e9a9b23646b7828191f4c2d3ef1ad999d3efe02683d56d0067d616e2eadb055fe5477f870b22e7252dc09834f95007c95f310d8eca30cfa912 + version: 1.0.30001587 + resolution: "caniuse-lite@npm:1.0.30001587" + checksum: 960e26927ad876971021186337df1df2d37d7ed4fc7907098c060f56ae8de737d471791e51387ca55bea07f56b0a76553a90125f88a2f958ca1f4f715013cf71 languageName: node linkType: hard @@ -6769,13 +6880,6 @@ __metadata: languageName: node linkType: hard -"chardet@npm:^0.7.0": - version: 0.7.0 - resolution: "chardet@npm:0.7.0" - checksum: b0ec668fba5eeec575ed2559a0917ba41a6481f49063c8445400e476754e0957ee09e44dc032310f526182b8f1bf25e9d4ed371f74050af7be1383e06bc44952 - languageName: node - linkType: hard - "check-error@npm:^1.0.3": version: 1.0.3 resolution: "check-error@npm:1.0.3" @@ -6804,25 +6908,6 @@ __metadata: languageName: node linkType: hard -"chokidar@npm:^3.4.2": - version: 3.5.3 - resolution: "chokidar@npm:3.5.3" - dependencies: - anymatch: "npm:~3.1.2" - braces: "npm:~3.0.2" - fsevents: "npm:~2.3.2" - glob-parent: "npm:~5.1.2" - is-binary-path: "npm:~2.1.0" - is-glob: "npm:~4.0.1" - normalize-path: "npm:~3.0.0" - readdirp: "npm:~3.6.0" - dependenciesMeta: - fsevents: - optional: true - checksum: 863e3ff78ee7a4a24513d2a416856e84c8e4f5e60efbe03e8ab791af1a183f569b62fc6f6b8044e2804966cb81277ddbbc1dc374fba3265bd609ea8efd62f5b3 - languageName: node - linkType: hard - "chownr@npm:^2.0.0": version: 2.0.0 resolution: "chownr@npm:2.0.0" @@ -6844,26 +6929,17 @@ __metadata: languageName: node linkType: hard -"cli-cursor@npm:^3.1.0": - version: 3.1.0 - resolution: "cli-cursor@npm:3.1.0" - dependencies: - restore-cursor: "npm:^3.1.0" - checksum: 2692784c6cd2fd85cfdbd11f53aea73a463a6d64a77c3e098b2b4697a20443f430c220629e1ca3b195ea5ac4a97a74c2ee411f3807abf6df2b66211fec0c0a29 - languageName: node - linkType: hard - -"cli-spinners@npm:^2.5.0": +"cli-spinners@npm:^2.9.2": version: 2.9.2 resolution: "cli-spinners@npm:2.9.2" checksum: a0a863f442df35ed7294424f5491fa1756bd8d2e4ff0c8736531d886cec0ece4d85e8663b77a5afaf1d296e3cbbebff92e2e99f52bbea89b667cbe789b994794 languageName: node linkType: hard -"cli-width@npm:^3.0.0": - version: 3.0.0 - resolution: "cli-width@npm:3.0.0" - checksum: 8730848b04fb189666ab037a35888d191c8f05b630b1d770b0b0e4c920b47bb5cc14bddf6b8ffe5bfc66cee97c8211d4d18e756c1ffcc75d7dbe7e1186cd7826 +"cli-width@npm:^4.1.0": + version: 4.1.0 + resolution: "cli-width@npm:4.1.0" + checksum: b58876fbf0310a8a35c79b72ecfcf579b354e18ad04e6b20588724ea2b522799a758507a37dfe132fafaf93a9922cafd9514d9e1598e6b2cd46694853aed099f languageName: node linkType: hard @@ -6885,13 +6961,6 @@ __metadata: languageName: node linkType: hard -"clone@npm:^1.0.2": - version: 1.0.4 - resolution: "clone@npm:1.0.4" - checksum: d06418b7335897209e77bdd430d04f882189582e67bd1f75a04565f3f07f5b3f119a9d670c943b6697d0afb100f03b866b3b8a1f91d4d02d72c4ecf2bb64b5dd - languageName: node - linkType: hard - "clsx@npm:^1.1.1": version: 1.2.1 resolution: "clsx@npm:1.2.1" @@ -7548,15 +7617,6 @@ __metadata: languageName: node linkType: hard -"defaults@npm:^1.0.3": - version: 1.0.4 - resolution: "defaults@npm:1.0.4" - dependencies: - clone: "npm:^1.0.2" - checksum: 3a88b7a587fc076b84e60affad8b85245c01f60f38fc1d259e7ac1d89eb9ce6abb19e27215de46b98568dd5bc48471730b327637e6f20b0f1bc85cf00440c80a - languageName: node - linkType: hard - "define-data-property@npm:^1.0.1, define-data-property@npm:^1.1.1, define-data-property@npm:^1.1.2": version: 1.1.3 resolution: "define-data-property@npm:1.1.3" @@ -7569,17 +7629,6 @@ __metadata: languageName: node linkType: hard -"define-data-property@npm:^1.1.0": - version: 1.1.1 - resolution: "define-data-property@npm:1.1.1" - dependencies: - get-intrinsic: "npm:^1.2.1" - gopd: "npm:^1.0.1" - has-property-descriptors: "npm:^1.0.0" - checksum: 5573c8df96b5857408cad64d9b91b69152e305ce4b06218e5f49b59c6cafdbb90a8bd8a0bb83c7bc67a8d479c04aa697063c9bc28d849b7282f9327586d6bc7b - languageName: node - linkType: hard - "define-lazy-prop@npm:^2.0.0": version: 2.0.0 resolution: "define-lazy-prop@npm:2.0.0" @@ -7635,7 +7684,7 @@ __metadata: languageName: node linkType: hard -"diff-sequences@npm:^29.4.3, diff-sequences@npm:^29.6.3": +"diff-sequences@npm:^29.6.3": version: 29.6.3 resolution: "diff-sequences@npm:29.6.3" checksum: 179daf9d2f9af5c57ad66d97cb902a538bcf8ed64963fa7aa0c329b3de3665ce2eb6ffdc2f69f29d445fa4af2517e5e55e5b6e00c00a9ae4f43645f97f7078cb @@ -7727,9 +7776,9 @@ __metadata: linkType: hard "dotenv@npm:^16.3.1": - version: 16.4.1 - resolution: "dotenv@npm:16.4.1" - checksum: 8da20250633703686961004df3ea81b1f81e16fbe873372050676f54ca4053172d0589aae902e683eb575884d56b6bc89fe48bbac5e1e0bef606a061389ca33c + version: 16.4.3 + resolution: "dotenv@npm:16.4.3" + checksum: f07db902c62c239aef7a7b696b21dfab8e95bf5883bcf23c6b9b55f42578d18b842e6257b4f4ecfdbd024a3ee9949fbaaa4c84807de7ba037c74fe3c70785198 languageName: node linkType: hard @@ -7741,9 +7790,9 @@ __metadata: linkType: hard "electron-to-chromium@npm:^1.4.648": - version: 1.4.650 - resolution: "electron-to-chromium@npm:1.4.650" - checksum: 5e57767ff25cdc1175203ab41d9fe141916651b239f90b2b531d48fc21cd98a602e44b443ac5e21bab3ffac2c8da61513f3e459e44621aa5999ad12a87e62965 + version: 1.4.667 + resolution: "electron-to-chromium@npm:1.4.667" + checksum: ec7c1ea6eb74b0909b011639ce8e7f3c6faa7b98225176fbb85bf4a03ffeb14ef69c99d710d9f9891e426552faaa8f0df5a5118a5ac0dc2f2ab29ab22a9196ce languageName: node linkType: hard @@ -7810,7 +7859,7 @@ __metadata: languageName: node linkType: hard -"es-abstract@npm:^1.22.1": +"es-abstract@npm:^1.22.1, es-abstract@npm:^1.22.3": version: 1.22.3 resolution: "es-abstract@npm:1.22.3" dependencies: @@ -7858,18 +7907,25 @@ __metadata: linkType: hard "es-aggregate-error@npm:^1.0.7": - version: 1.0.11 - resolution: "es-aggregate-error@npm:1.0.11" + version: 1.0.12 + resolution: "es-aggregate-error@npm:1.0.12" dependencies: - define-data-property: "npm:^1.1.0" + define-data-property: "npm:^1.1.1" define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.22.1" - function-bind: "npm:^1.1.1" - get-intrinsic: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.1.0" + function-bind: "npm:^1.1.2" globalthis: "npm:^1.0.3" - has-property-descriptors: "npm:^1.0.0" + has-property-descriptors: "npm:^1.0.1" set-function-name: "npm:^2.0.1" - checksum: b0dff08a0b72f1bae1e4d751c31d28d24e5f19402b607457af852c2dd1f51bc32b543a0a63b76909baf4305ec51d42e1cb9ded22ce67d812d1b7e90c134632d4 + checksum: c7658d8531aed3d261dd887cdd4af5a246d6b3779a9a7c2570daafa07ba0a0fc80b49c2e65bb1dcda2dd36d871308b8d0333c780c1df4d01aeaff0b8dabb65f3 + languageName: node + linkType: hard + +"es-array-method-boxes-properly@npm:^1.0.0": + version: 1.0.0 + resolution: "es-array-method-boxes-properly@npm:1.0.0" + checksum: 27a8a21acf20f3f51f69dce8e643f151e380bffe569e95dc933b9ded9fcd89a765ee21b5229c93f9206c93f87395c6b75f80be8ac8c08a7ceb8771e1822ff1fb languageName: node linkType: hard @@ -7882,7 +7938,7 @@ __metadata: languageName: node linkType: hard -"es-errors@npm:^1.3.0": +"es-errors@npm:^1.0.0, es-errors@npm:^1.1.0, es-errors@npm:^1.2.1, es-errors@npm:^1.3.0": version: 1.3.0 resolution: "es-errors@npm:1.3.0" checksum: 96e65d640156f91b707517e8cdc454dd7d47c32833aa3e85d79f24f9eb7ea85f39b63e36216ef0114996581969b59fe609a94e30316b08f5f4df1d44134cf8d5 @@ -7907,28 +7963,29 @@ __metadata: linkType: hard "es-iterator-helpers@npm:^1.0.12, es-iterator-helpers@npm:^1.0.15": - version: 1.0.15 - resolution: "es-iterator-helpers@npm:1.0.15" + version: 1.0.16 + resolution: "es-iterator-helpers@npm:1.0.16" dependencies: asynciterator.prototype: "npm:^1.0.0" - call-bind: "npm:^1.0.2" + call-bind: "npm:^1.0.6" define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.22.1" - es-set-tostringtag: "npm:^2.0.1" - function-bind: "npm:^1.1.1" - get-intrinsic: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.3.0" + es-set-tostringtag: "npm:^2.0.2" + function-bind: "npm:^1.1.2" + get-intrinsic: "npm:^1.2.4" globalthis: "npm:^1.0.3" - has-property-descriptors: "npm:^1.0.0" + has-property-descriptors: "npm:^1.0.1" has-proto: "npm:^1.0.1" has-symbols: "npm:^1.0.3" - internal-slot: "npm:^1.0.5" + internal-slot: "npm:^1.0.7" iterator.prototype: "npm:^1.1.2" - safe-array-concat: "npm:^1.0.1" - checksum: 78535c00c49d81df603e650886d3806f3cd8d288e2c07703cfb145725753a3d2df19bff9feeb14cd1baed02252d1f85c4bbc922c8db02841722ab3ec02e78339 + safe-array-concat: "npm:^1.1.0" + checksum: 979eeca89ef150f3797b1143d4cac2e0670fa50a63aea534845130495e35779ab328ed0d550d619541bda39f7afc3a7a9564749cbb616f4f15aa3efbd042b99e languageName: node linkType: hard -"es-set-tostringtag@npm:^2.0.1": +"es-set-tostringtag@npm:^2.0.1, es-set-tostringtag@npm:^2.0.2": version: 2.0.2 resolution: "es-set-tostringtag@npm:2.0.2" dependencies: @@ -7939,7 +7996,7 @@ __metadata: languageName: node linkType: hard -"es-shim-unscopables@npm:^1.0.0": +"es-shim-unscopables@npm:^1.0.0, es-shim-unscopables@npm:^1.0.2": version: 1.0.2 resolution: "es-shim-unscopables@npm:1.0.2" dependencies: @@ -7966,7 +8023,7 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.19.3, esbuild@npm:^0.19.5": +"esbuild@npm:^0.19.11": version: 0.19.12 resolution: "esbuild@npm:0.19.12" dependencies: @@ -8046,10 +8103,90 @@ __metadata: languageName: node linkType: hard +"esbuild@npm:^0.19.3": + version: 0.19.11 + resolution: "esbuild@npm:0.19.11" + dependencies: + "@esbuild/aix-ppc64": "npm:0.19.11" + "@esbuild/android-arm": "npm:0.19.11" + "@esbuild/android-arm64": "npm:0.19.11" + "@esbuild/android-x64": "npm:0.19.11" + "@esbuild/darwin-arm64": "npm:0.19.11" + "@esbuild/darwin-x64": "npm:0.19.11" + "@esbuild/freebsd-arm64": "npm:0.19.11" + "@esbuild/freebsd-x64": "npm:0.19.11" + "@esbuild/linux-arm": "npm:0.19.11" + "@esbuild/linux-arm64": "npm:0.19.11" + "@esbuild/linux-ia32": "npm:0.19.11" + "@esbuild/linux-loong64": "npm:0.19.11" + "@esbuild/linux-mips64el": "npm:0.19.11" + "@esbuild/linux-ppc64": "npm:0.19.11" + "@esbuild/linux-riscv64": "npm:0.19.11" + "@esbuild/linux-s390x": "npm:0.19.11" + "@esbuild/linux-x64": "npm:0.19.11" + "@esbuild/netbsd-x64": "npm:0.19.11" + "@esbuild/openbsd-x64": "npm:0.19.11" + "@esbuild/sunos-x64": "npm:0.19.11" + "@esbuild/win32-arm64": "npm:0.19.11" + "@esbuild/win32-ia32": "npm:0.19.11" + "@esbuild/win32-x64": "npm:0.19.11" + dependenciesMeta: + "@esbuild/aix-ppc64": + optional: true + "@esbuild/android-arm": + optional: true + "@esbuild/android-arm64": + optional: true + "@esbuild/android-x64": + optional: true + "@esbuild/darwin-arm64": + optional: true + "@esbuild/darwin-x64": + optional: true + "@esbuild/freebsd-arm64": + optional: true + "@esbuild/freebsd-x64": + optional: true + "@esbuild/linux-arm": + optional: true + "@esbuild/linux-arm64": + optional: true + "@esbuild/linux-ia32": + optional: true + "@esbuild/linux-loong64": + optional: true + "@esbuild/linux-mips64el": + optional: true + "@esbuild/linux-ppc64": + optional: true + "@esbuild/linux-riscv64": + optional: true + "@esbuild/linux-s390x": + optional: true + "@esbuild/linux-x64": + optional: true + "@esbuild/netbsd-x64": + optional: true + "@esbuild/openbsd-x64": + optional: true + "@esbuild/sunos-x64": + optional: true + "@esbuild/win32-arm64": + optional: true + "@esbuild/win32-ia32": + optional: true + "@esbuild/win32-x64": + optional: true + bin: + esbuild: bin/esbuild + checksum: a40b3858c29618c8c893389372f469245a6b2d1319782af75d33d8ba5dcadfe181fcc935f8e1a907be667946384950a4cf482ebe1e79c99c932d2b8eb35a09d0 + languageName: node + linkType: hard + "escalade@npm:^3.1.1": - version: 3.1.1 - resolution: "escalade@npm:3.1.1" - checksum: afa618e73362576b63f6ca83c975456621095a1ed42ff068174e3f5cea48afc422814dda548c96e6ebb5333e7265140c7292abcc81bbd6ccb1757d50d3a4e182 + version: 3.1.2 + resolution: "escalade@npm:3.1.2" + checksum: a1e07fea2f15663c30e40b9193d658397846ffe28ce0a3e4da0d8e485fedfeca228ab846aee101a05015829adf39f9934ff45b2a3fca47bed37a29646bd05cd3 languageName: node linkType: hard @@ -8453,17 +8590,6 @@ __metadata: languageName: node linkType: hard -"external-editor@npm:^3.0.3": - version: 3.1.0 - resolution: "external-editor@npm:3.1.0" - dependencies: - chardet: "npm:^0.7.0" - iconv-lite: "npm:^0.4.24" - tmp: "npm:^0.0.33" - checksum: 776dff1d64a1d28f77ff93e9e75421a81c062983fd1544279d0a32f563c0b18c52abbb211f31262e2827e48edef5c9dc8f960d06dd2d42d1654443b88568056b - languageName: node - linkType: hard - "fast-deep-equal@npm:^3.1.1, fast-deep-equal@npm:^3.1.3": version: 3.1.3 resolution: "fast-deep-equal@npm:3.1.3" @@ -8520,15 +8646,15 @@ __metadata: linkType: hard "fastq@npm:^1.6.0": - version: 1.17.0 - resolution: "fastq@npm:1.17.0" + version: 1.17.1 + resolution: "fastq@npm:1.17.1" dependencies: reusify: "npm:^1.0.4" - checksum: f81e9fdb1395806f49f0caa30a06978d4949fd723709e1b564c7d0f8e6d0c7681d7c632540d56e81bc22321f7f51160b47c9bc5814c058102a65dd345b5d9f0a + checksum: a443180068b527dd7b3a63dc7f2a47ceca2f3e97b9c00a1efe5538757e6cc4056a3526df94308075d7727561baf09ebaa5b67da8dcbddb913a021c5ae69d1f69 languageName: node linkType: hard -"figures@npm:^3.0.0": +"figures@npm:^3.2.0": version: 3.2.0 resolution: "figures@npm:3.2.0" dependencies: @@ -8752,7 +8878,7 @@ __metadata: languageName: node linkType: hard -"function-bind@npm:^1.1.1, function-bind@npm:^1.1.2": +"function-bind@npm:^1.1.2": version: 1.1.2 resolution: "function-bind@npm:1.1.2" checksum: 185e20d20f10c8d661d59aac0f3b63b31132d492e1b11fcc2a93cb2c47257ebaee7407c38513efd2b35cafdf972d9beb2ea4593c1e0f3bf8f2744836928d7454 @@ -8799,18 +8925,6 @@ __metadata: languageName: node linkType: hard -"get-intrinsic@npm:^1.0.2": - version: 1.2.2 - resolution: "get-intrinsic@npm:1.2.2" - dependencies: - function-bind: "npm:^1.1.2" - has-proto: "npm:^1.0.1" - has-symbols: "npm:^1.0.3" - hasown: "npm:^2.0.0" - checksum: aa96db4f809734d26d49b59bc8669d73a0ae792da561514e987735573a1dfaede516cd102f217a078ea2b42d4c4fb1f83d487932cb15d49826b726cc9cd4470b - languageName: node - linkType: hard - "get-intrinsic@npm:^1.1.1, get-intrinsic@npm:^1.1.3, get-intrinsic@npm:^1.2.1, get-intrinsic@npm:^1.2.2, get-intrinsic@npm:^1.2.3, get-intrinsic@npm:^1.2.4": version: 1.2.4 resolution: "get-intrinsic@npm:1.2.4" @@ -8839,12 +8953,13 @@ __metadata: linkType: hard "get-symbol-description@npm:^1.0.0": - version: 1.0.0 - resolution: "get-symbol-description@npm:1.0.0" + version: 1.0.2 + resolution: "get-symbol-description@npm:1.0.2" dependencies: - call-bind: "npm:^1.0.2" - get-intrinsic: "npm:^1.1.1" - checksum: 7e5f298afe0f0872747dce4a949ce490ebc5d6dd6aefbbe5044543711c9b19a4dfaebdbc627aee99e1299d58a435b2fbfa083458c1d58be6dc03a3bada24d359 + call-bind: "npm:^1.0.5" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.4" + checksum: e1cb53bc211f9dbe9691a4f97a46837a553c4e7caadd0488dc24ac694db8a390b93edd412b48dcdd0b4bbb4c595de1709effc75fc87c0839deedc6968f5bd973 languageName: node linkType: hard @@ -8993,11 +9108,11 @@ __metadata: linkType: hard "has-property-descriptors@npm:^1.0.0, has-property-descriptors@npm:^1.0.1": - version: 1.0.1 - resolution: "has-property-descriptors@npm:1.0.1" + version: 1.0.2 + resolution: "has-property-descriptors@npm:1.0.2" dependencies: - get-intrinsic: "npm:^1.2.2" - checksum: 21a47bb080a24e79594aef1ce71e1a18a1c5ab4120308e218088f67ebb7f6f408847541e2d96e5bd00e90eef5c5a49e4ebbdc8fc2d5b365a2c379aef071642f0 + es-define-property: "npm:^1.0.0" + checksum: 2d8c9ab8cebb572e3362f7d06139a4592105983d4317e68f7adba320fe6ddfc8874581e0971e899e633fd5f72e262830edce36d5a0bc863dad17ad20572484b2 languageName: node linkType: hard @@ -9025,11 +9140,11 @@ __metadata: linkType: hard "hasown@npm:^2.0.0": - version: 2.0.0 - resolution: "hasown@npm:2.0.0" + version: 2.0.1 + resolution: "hasown@npm:2.0.1" dependencies: function-bind: "npm:^1.1.2" - checksum: c330f8d93f9d23fe632c719d4db3d698ef7d7c367d51548b836069e06a90fa9151e868c8e67353cfe98d67865bf7354855db28fa36eb1b18fa5d4a3f4e7f1c90 + checksum: b7f9107387ee68abed88e965c2b99e868b5e0e9d289db1ddd080706ffafb69533b4f538b0e6362585bae8d6cbd080249f65e79702f74c225990f66d6106be3f6 languageName: node linkType: hard @@ -9084,12 +9199,12 @@ __metadata: linkType: hard "http-proxy-agent@npm:^7.0.0": - version: 7.0.0 - resolution: "http-proxy-agent@npm:7.0.0" + version: 7.0.1 + resolution: "http-proxy-agent@npm:7.0.1" dependencies: agent-base: "npm:^7.1.0" debug: "npm:^4.3.4" - checksum: dbaaf3d9f3fc4df4a5d7ec45d456ec50f575240b557160fa63427b447d1f812dd7fe4a4f17d2e1ba003d231f07edf5a856ea6d91cb32d533062ff20a7803ccac + checksum: d82c1cde756b8e1a0464f1e3761fe98a4b62ccde09a84f225ae61e1ec6c6321aad714ce7f8a05e4bee38cab7c4bc688e1bd1b8463ff879b433a097f485675ba2 languageName: node linkType: hard @@ -9111,12 +9226,12 @@ __metadata: linkType: hard "https-proxy-agent@npm:^7.0.1": - version: 7.0.2 - resolution: "https-proxy-agent@npm:7.0.2" + version: 7.0.3 + resolution: "https-proxy-agent@npm:7.0.3" dependencies: agent-base: "npm:^7.0.2" debug: "npm:4" - checksum: 9ec844f78fd643608239c9c3f6819918631df5cd3e17d104cc507226a39b5d4adda9d790fc9fd63ac0d2bb8a761b2f9f60faa80584a9bf9d7f2e8c5ed0acd330 + checksum: 32eb80fe7a414c13246440972059ce2d590d2ff52707f5b0ad927a5fe336714f39d0baa46d25baff87554cb10a463ca218ea4713651302591e2b3beb964c495e languageName: node linkType: hard @@ -9143,26 +9258,10 @@ __metadata: languageName: node linkType: hard -"iconv-lite@npm:^0.4.24": - version: 0.4.24 - resolution: "iconv-lite@npm:0.4.24" - dependencies: - safer-buffer: "npm:>= 2.1.2 < 3" - checksum: 6d3a2dac6e5d1fb126d25645c25c3a1209f70cceecc68b8ef51ae0da3cdc078c151fade7524a30b12a3094926336831fca09c666ef55b37e2c69638b5d6bd2e3 - languageName: node - linkType: hard - -"ieee754@npm:^1.1.13": - version: 1.2.1 - resolution: "ieee754@npm:1.2.1" - checksum: d9f2557a59036f16c282aaeb107832dc957a93d73397d89bbad4eb1130560560eb695060145e8e6b3b498b15ab95510226649a0b8f52ae06583575419fe10fc4 - languageName: node - linkType: hard - "ignore@npm:^5.2.0": - version: 5.3.0 - resolution: "ignore@npm:5.3.0" - checksum: 51594355cea4c6ad6b28b3b85eb81afa7b988a1871feefd7062baf136c95aa06760ee934fa9590e43d967bd377ce84a4cf6135fbeb6063e063f1182a0e9a3bcd + version: 5.3.1 + resolution: "ignore@npm:5.3.1" + checksum: 0a884c2fbc8c316f0b9f92beaf84464253b73230a4d4d286697be45fca081199191ca33e1c2e82d9e5f851f5e9a48a78e25a35c951e7eb41e59f150db3530065 languageName: node linkType: hard @@ -9214,41 +9313,14 @@ __metadata: languageName: node linkType: hard -<<<<<<< HEAD -"inherits@npm:2, inherits@npm:^2.0.3, inherits@npm:^2.0.4, inherits@npm:~2.0.3": -======= "inherits@npm:2": ->>>>>>> feature/AB#16122 version: 2.0.4 resolution: "inherits@npm:2.0.4" checksum: cd45e923bee15186c07fa4c89db0aace24824c482fb887b528304694b2aa6ff8a898da8657046a5dcf3e46cd6db6c61629551f9215f208d7c3f157cf9b290521 languageName: node linkType: hard -"inquirer@npm:^8.2.0": - version: 8.2.6 - resolution: "inquirer@npm:8.2.6" - dependencies: - ansi-escapes: "npm:^4.2.1" - chalk: "npm:^4.1.1" - cli-cursor: "npm:^3.1.0" - cli-width: "npm:^3.0.0" - external-editor: "npm:^3.0.3" - figures: "npm:^3.0.0" - lodash: "npm:^4.17.21" - mute-stream: "npm:0.0.8" - ora: "npm:^5.4.1" - run-async: "npm:^2.4.0" - rxjs: "npm:^7.5.5" - string-width: "npm:^4.1.0" - strip-ansi: "npm:^6.0.0" - through: "npm:^2.3.6" - wrap-ansi: "npm:^6.0.1" - checksum: f642b9e5a94faaba54f277bdda2af0e0a6b592bd7f88c60e1614b5795b19336c7025e0c2923915d5f494f600a02fe8517413779a794415bb79a9563b061d68ab - languageName: node - linkType: hard - -"internal-slot@npm:^1.0.4, internal-slot@npm:^1.0.5": +"internal-slot@npm:^1.0.4, internal-slot@npm:^1.0.5, internal-slot@npm:^1.0.7": version: 1.0.7 resolution: "internal-slot@npm:1.0.7" dependencies: @@ -9287,10 +9359,13 @@ __metadata: languageName: node linkType: hard -"ip@npm:^2.0.0": - version: 2.0.0 - resolution: "ip@npm:2.0.0" - checksum: 1270b11e534a466fb4cf4426cbcc3a907c429389f7f4e4e3b288b42823562e88d6a509ceda8141a507de147ca506141f745005c0aa144569d94cf24a54eb52bc +"ip-address@npm:^9.0.5": + version: 9.0.5 + resolution: "ip-address@npm:9.0.5" + dependencies: + jsbn: "npm:1.1.0" + sprintf-js: "npm:^1.1.3" + checksum: 1ed81e06721af012306329b31f532b5e24e00cb537be18ddc905a84f19fe8f83a09a1699862bf3a1ec4b9dea93c55a3fa5faf8b5ea380431469df540f38b092c languageName: node linkType: hard @@ -9442,13 +9517,6 @@ __metadata: languageName: node linkType: hard -"is-interactive@npm:^1.0.0": - version: 1.0.0 - resolution: "is-interactive@npm:1.0.0" - checksum: 824808776e2d468b2916cdd6c16acacebce060d844c35ca6d82267da692e92c3a16fdba624c50b54a63f38bdc4016055b6f443ce57d7147240de4f8cdabaf6f9 - languageName: node - linkType: hard - "is-lambda@npm:^1.0.1": version: 1.0.1 resolution: "is-lambda@npm:1.0.1" @@ -9583,10 +9651,12 @@ __metadata: languageName: node linkType: hard -"is-unicode-supported@npm:^0.1.0": - version: 0.1.0 - resolution: "is-unicode-supported@npm:0.1.0" - checksum: a2aab86ee7712f5c2f999180daaba5f361bdad1efadc9610ff5b8ab5495b86e4f627839d085c6530363c6d6d4ecbde340fb8e54bdb83da4ba8e0865ed5513c52 +"is-typed-array@npm:^1.1.13": + version: 1.1.13 + resolution: "is-typed-array@npm:1.1.13" + dependencies: + which-typed-array: "npm:^1.1.14" + checksum: f850ba08286358b9a11aee6d93d371a45e3c59b5953549ee1c1a9a55ba5c1dd1bd9952488ae194ad8f32a9cf5e79c8fa5f0cc4d78c00720aa0bbcf238b38062d languageName: node linkType: hard @@ -9757,6 +9827,13 @@ __metadata: languageName: node linkType: hard +"jsbn@npm:1.1.0": + version: 1.1.0 + resolution: "jsbn@npm:1.1.0" + checksum: bebe7ae829bbd586ce8cbe83501dd8cb8c282c8902a8aeeed0a073a89dc37e8103b1244f3c6acd60278bcbfe12d93a3f83c9ac396868a3b3bbc3c5e5e3b648ef + languageName: node + linkType: hard + "jsdom@npm:^22.1.0": version: 22.1.0 resolution: "jsdom@npm:22.1.0" @@ -10042,13 +10119,6 @@ __metadata: languageName: node linkType: hard -"local-pkg@npm:^0.4.3": - version: 0.4.3 - resolution: "local-pkg@npm:0.4.3" - checksum: 48f38c12721881370bca50ed3b5e3cc6fef741cfb4de7e48666f6ded07c1aaea53cf770cfef84a89bed286c17631111bf99a86241ddf6f679408c79c56f29560 - languageName: node - linkType: hard - "local-pkg@npm:^0.5.0": version: 0.5.0 resolution: "local-pkg@npm:0.5.0" @@ -10180,16 +10250,6 @@ __metadata: languageName: node linkType: hard -"log-symbols@npm:^4.1.0": - version: 4.1.0 - resolution: "log-symbols@npm:4.1.0" - dependencies: - chalk: "npm:^4.1.0" - is-unicode-supported: "npm:^0.1.0" - checksum: fce1497b3135a0198803f9f07464165e9eb83ed02ceb2273930a6f8a508951178d8cf4f0378e9d28300a2ed2bc49050995d2bd5f53ab716bb15ac84d58c6ef74 - languageName: node - linkType: hard - "loglevel-plugin-prefix@npm:0.8.4": version: 0.8.4 resolution: "loglevel-plugin-prefix@npm:0.8.4" @@ -10267,15 +10327,6 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.30.1": - version: 0.30.5 - resolution: "magic-string@npm:0.30.5" - dependencies: - "@jridgewell/sourcemap-codec": "npm:^1.4.15" - checksum: c8a6b25f813215ca9db526f3a407d6dc0bf35429c2b8111d6f1c2cf6cf6afd5e2d9f9cd189416a0e3959e20ecd635f73639f9825c73de1074b29331fe36ace59 - languageName: node - linkType: hard - "magic-string@npm:^0.30.5": version: 0.30.7 resolution: "magic-string@npm:0.30.7" @@ -10565,7 +10616,7 @@ __metadata: languageName: node linkType: hard -"mlly@npm:^1.2.0, mlly@npm:^1.4.0, mlly@npm:^1.4.2": +"mlly@npm:^1.2.0, mlly@npm:^1.4.2": version: 1.5.0 resolution: "mlly@npm:1.5.0" dependencies: @@ -10592,21 +10643,20 @@ __metadata: linkType: hard "msw@npm:^2.0.6": - version: 2.1.5 - resolution: "msw@npm:2.1.5" + version: 2.2.0 + resolution: "msw@npm:2.2.0" dependencies: "@bundled-es-modules/cookie": "npm:^2.0.0" "@bundled-es-modules/statuses": "npm:^1.0.1" + "@inquirer/confirm": "npm:^3.0.0" "@mswjs/cookies": "npm:^1.1.0" - "@mswjs/interceptors": "npm:^0.25.15" + "@mswjs/interceptors": "npm:^0.25.16" "@open-draft/until": "npm:^2.1.0" "@types/cookie": "npm:^0.6.0" "@types/statuses": "npm:^2.0.4" chalk: "npm:^4.1.2" - chokidar: "npm:^3.4.2" graphql: "npm:^16.8.1" headers-polyfill: "npm:^4.0.2" - inquirer: "npm:^8.2.0" is-node-process: "npm:^1.2.0" outvariant: "npm:^1.4.2" path-to-regexp: "npm:^6.2.0" @@ -10620,14 +10670,14 @@ __metadata: optional: true bin: msw: cli/index.js - checksum: 7c00379217cbf22a3bbf3b513312e2718aa16dd0e8455680bd0f19054c72f64e66adfd9f847faa6996d9b9570b29e3a993b93a17c2b6904225fe7d33dda57340 + checksum: 36e6a1f0bc89d1c84bf24c1cf7ca7c3fe5d5b032c825d52a832e9b815830976a86c17a8c3f1f506db720f44e99d04c9302e014cf569b51b2d2af62562a9fe62a languageName: node linkType: hard -"mute-stream@npm:0.0.8": - version: 0.0.8 - resolution: "mute-stream@npm:0.0.8" - checksum: a2d2e79dde87e3424ffc8c334472c7f3d17b072137734ca46e6f221131f1b014201cc593b69a38062e974fb2394d3d1cb4349f80f012bbf8b8ac1b28033e515f +"mute-stream@npm:^1.0.0": + version: 1.0.0 + resolution: "mute-stream@npm:1.0.0" + checksum: 36fc968b0e9c9c63029d4f9dc63911950a3bdf55c9a87f58d3a266289b67180201cade911e7699f8b2fa596b34c9db43dad37649e3f7fdd13c3bb9edb0017ee7 languageName: node linkType: hard @@ -10891,7 +10941,7 @@ __metadata: languageName: node linkType: hard -"object-inspect@npm:^1.13.1, object-inspect@npm:^1.9.0": +"object-inspect@npm:^1.13.1": version: 1.13.1 resolution: "object-inspect@npm:1.13.1" checksum: 92f4989ed83422d56431bc39656d4c780348eb15d397ce352ade6b7fec08f973b53744bd41b94af021901e61acaf78fcc19e65bf464ecc0df958586a672700f0 @@ -10950,14 +11000,15 @@ __metadata: linkType: hard "object.groupby@npm:^1.0.1": - version: 1.0.1 - resolution: "object.groupby@npm:1.0.1" + version: 1.0.2 + resolution: "object.groupby@npm:1.0.2" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - get-intrinsic: "npm:^1.2.1" - checksum: b7123d91403f95d63978513b23a6079c30f503311f64035fafc863c291c787f287b58df3b21ef002ce1d0b820958c9009dd5a8ab696e0eca325639d345e41524 + array.prototype.filter: "npm:^1.0.3" + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.0.0" + checksum: 07c1bea1772c45f7967a63358a683ef7b0bd99cabe0563e6fee3e8acc061cc5984d2f01a46472ebf10b2cb439298c46776b2134550dce457fd7240baaaa4f592 languageName: node linkType: hard @@ -11009,7 +11060,7 @@ __metadata: languageName: node linkType: hard -"onetime@npm:^5.1.0, onetime@npm:^5.1.2": +"onetime@npm:^5.1.2": version: 5.1.2 resolution: "onetime@npm:5.1.2" dependencies: @@ -11038,19 +11089,12 @@ __metadata: languageName: node linkType: hard -"openapi-types@npm:^12.1.3": - version: 12.1.3 - resolution: "openapi-types@npm:12.1.3" - checksum: 9d1d7ed848622b63d0a4c3f881689161b99427133054e46b8e3241e137f1c78bb0031c5d80b420ee79ac2e91d2e727ffd6fc13c553d1b0488ddc8ad389dcbef8 - languageName: node - linkType: hard - -"openapi3-ts@npm:^3.0.0, openapi3-ts@npm:^3.2.0": - version: 3.2.0 - resolution: "openapi3-ts@npm:3.2.0" +"openapi3-ts@npm:4.2.1, openapi3-ts@npm:^4.2.1": + version: 4.2.1 + resolution: "openapi3-ts@npm:4.2.1" dependencies: - yaml: "npm:^2.2.1" - checksum: f3aee3ee2ce600bd945561cd8b69c5447f8c4b8f3e9c09bd1751ad8f20bbf601d5ccfca4cc0402693b74c5bd7b71a8e3890b32c37ab8cbafc98214265fcb362b + yaml: "npm:^2.3.4" + checksum: aac091f1e37b53af8f6de1cf77b247c4eebdbca7c769a46c8c89b772f014f1fcf68030b7ec0ea77c59b0408aa6b2e2a5e6a5b21cd04c7dc10937614b8ed75f0c languageName: node linkType: hard @@ -11068,23 +11112,6 @@ __metadata: languageName: node linkType: hard -"ora@npm:^5.4.1": - version: 5.4.1 - resolution: "ora@npm:5.4.1" - dependencies: - bl: "npm:^4.1.0" - chalk: "npm:^4.1.0" - cli-cursor: "npm:^3.1.0" - cli-spinners: "npm:^2.5.0" - is-interactive: "npm:^1.0.0" - is-unicode-supported: "npm:^0.1.0" - log-symbols: "npm:^4.1.0" - strip-ansi: "npm:^6.0.0" - wcwidth: "npm:^1.0.1" - checksum: 8d071828f40090a8e1c6e8f350c6eb065808e9ab2b3e57fa37e0d5ae78cb46dac00117c8f12c3c8b8da2923454afbd8265e08c10b69881170c5b269f451e7fef - languageName: node - linkType: hard - "orderedmap@npm:^2.0.0": version: 2.1.1 resolution: "orderedmap@npm:2.1.1" @@ -11093,17 +11120,17 @@ __metadata: linkType: hard "orval@npm:^6.22.1": - version: 6.23.0 - resolution: "orval@npm:6.23.0" + version: 6.24.0 + resolution: "orval@npm:6.24.0" dependencies: "@apidevtools/swagger-parser": "npm:^10.1.0" - "@orval/angular": "npm:6.23.0" - "@orval/axios": "npm:6.23.0" - "@orval/core": "npm:6.23.0" - "@orval/mock": "npm:6.23.0" - "@orval/query": "npm:6.23.0" - "@orval/swr": "npm:6.23.0" - "@orval/zod": "npm:6.23.0" + "@orval/angular": "npm:6.24.0" + "@orval/axios": "npm:6.24.0" + "@orval/core": "npm:6.24.0" + "@orval/mock": "npm:6.24.0" + "@orval/query": "npm:6.24.0" + "@orval/swr": "npm:6.24.0" + "@orval/zod": "npm:6.24.0" ajv: "npm:^8.12.0" cac: "npm:^6.7.14" chalk: "npm:^4.1.2" @@ -11113,20 +11140,12 @@ __metadata: find-up: "npm:5.0.0" fs-extra: "npm:^11.2.0" lodash.uniq: "npm:^4.5.0" - openapi-types: "npm:^12.1.3" - openapi3-ts: "npm:^3.2.0" + openapi3-ts: "npm:4.2.1" string-argv: "npm:^0.3.2" tsconfck: "npm:^2.0.1" bin: orval: dist/bin/orval.js - checksum: c1749f0bfef81454424f77c9b251b90847a5dbc97094f84872d84593e5bab0432abfbdf14ce8c4de7e073c9905661e9a0515b5ace5d50eee3b6870642c80009d - languageName: node - linkType: hard - -"os-tmpdir@npm:~1.0.2": - version: 1.0.2 - resolution: "os-tmpdir@npm:1.0.2" - checksum: 5666560f7b9f10182548bf7013883265be33620b1c1b4a4d405c25be2636f970c5488ff3e6c48de75b55d02bde037249fe5dbfbb4c0fb7714953d56aed062e6d + checksum: 1c46f348dc53904a20b7f3f72b7f76d148767066489206d645439801321964ce188be08d7313690c5539fa5e070f485fd49012ee72ff6713f60a36ea3af2b11c languageName: node linkType: hard @@ -11146,15 +11165,6 @@ __metadata: languageName: node linkType: hard -"p-limit@npm:^4.0.0": - version: 4.0.0 - resolution: "p-limit@npm:4.0.0" - dependencies: - yocto-queue: "npm:^1.0.0" - checksum: 01d9d70695187788f984226e16c903475ec6a947ee7b21948d6f597bed788e3112cc7ec2e171c1d37125057a5f45f3da21d8653e04a3a793589e12e9e80e756b - languageName: node - linkType: hard - "p-limit@npm:^5.0.0": version: 5.0.0 resolution: "p-limit@npm:5.0.0" @@ -11422,17 +11432,6 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.4.32": - version: 8.4.33 - resolution: "postcss@npm:8.4.33" - dependencies: - nanoid: "npm:^3.3.7" - picocolors: "npm:^1.0.0" - source-map-js: "npm:^1.0.2" - checksum: e22a4594c255f26117f38419fb494d7ecab0f596cd409f7aadc8a6173abf180ed7ea970cd13fd366ab12b5840be901d2a09b25197700c2ebcb5a8077326bf519 - languageName: node - linkType: hard - "prelude-ls@npm:^1.2.1": version: 1.2.1 resolution: "prelude-ls@npm:1.2.1" @@ -11541,7 +11540,7 @@ __metadata: languageName: node linkType: hard -"pretty-format@npm:^29.5.0, pretty-format@npm:^29.7.0": +"pretty-format@npm:^29.7.0": version: 29.7.0 resolution: "pretty-format@npm:29.7.0" dependencies: @@ -12306,58 +12305,6 @@ __metadata: languageName: node linkType: hard -<<<<<<< HEAD -"read-pkg-up@npm:^7.0.1": - version: 7.0.1 - resolution: "read-pkg-up@npm:7.0.1" - dependencies: - find-up: "npm:^4.1.0" - read-pkg: "npm:^5.2.0" - type-fest: "npm:^0.8.1" - checksum: e4e93ce70e5905b490ca8f883eb9e48b5d3cebc6cd4527c25a0d8f3ae2903bd4121c5ab9c5a3e217ada0141098eeb661313c86fa008524b089b8ed0b7f165e44 - languageName: node - linkType: hard - -"read-pkg@npm:^5.2.0": - version: 5.2.0 - resolution: "read-pkg@npm:5.2.0" - dependencies: - "@types/normalize-package-data": "npm:^2.4.0" - normalize-package-data: "npm:^2.5.0" - parse-json: "npm:^5.0.0" - type-fest: "npm:^0.6.0" - checksum: eb696e60528b29aebe10e499ba93f44991908c57d70f2d26f369e46b8b9afc208ef11b4ba64f67630f31df8b6872129e0a8933c8c53b7b4daf0eace536901222 - languageName: node - linkType: hard - -"readable-stream@npm:^2.0.1": - version: 2.3.8 - resolution: "readable-stream@npm:2.3.8" - dependencies: - core-util-is: "npm:~1.0.0" - inherits: "npm:~2.0.3" - isarray: "npm:~1.0.0" - process-nextick-args: "npm:~2.0.0" - safe-buffer: "npm:~5.1.1" - string_decoder: "npm:~1.1.1" - util-deprecate: "npm:~1.0.1" - checksum: 8500dd3a90e391d6c5d889256d50ec6026c059fadee98ae9aa9b86757d60ac46fff24fafb7a39fa41d54cb39d8be56cc77be202ebd4cd8ffcf4cb226cbaa40d4 - languageName: node - linkType: hard - -"readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0": - version: 3.6.2 - resolution: "readable-stream@npm:3.6.2" - dependencies: - inherits: "npm:^2.0.3" - string_decoder: "npm:^1.1.1" - util-deprecate: "npm:^1.0.1" - checksum: d9e3e53193adcdb79d8f10f2a1f6989bd4389f5936c6f8b870e77570853561c362bee69feca2bbb7b32368ce96a85504aa4cedf7cf80f36e6a9de30d64244048 - languageName: node - linkType: hard - -======= ->>>>>>> feature/AB#16122 "readdirp@npm:~3.6.0": version: 3.6.0 resolution: "readdirp@npm:3.6.0" @@ -12378,16 +12325,17 @@ __metadata: linkType: hard "reflect.getprototypeof@npm:^1.0.4": - version: 1.0.4 - resolution: "reflect.getprototypeof@npm:1.0.4" + version: 1.0.5 + resolution: "reflect.getprototypeof@npm:1.0.5" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - get-intrinsic: "npm:^1.2.1" + call-bind: "npm:^1.0.5" + define-properties: "npm:^1.2.1" + es-abstract: "npm:^1.22.3" + es-errors: "npm:^1.0.0" + get-intrinsic: "npm:^1.2.3" globalthis: "npm:^1.0.3" which-builtin-type: "npm:^1.1.3" - checksum: 52ff881f62a9cb4acdd7f9a8f4ac88234056c4a6b1ed570c249cc085de5c313249b90251d16eb8e58302b82ae697eec19dde16ff62949f6b87f035a3a26dc5df + checksum: 14560efa54b4b8549f5e0961ee4dfa9f034bd4b85c7805d487da30eb520ea252b566bc4098a7cb1bc2219e4d9cb095db43c05b27205bd6299bb141294cea2d14 languageName: node linkType: hard @@ -12431,13 +12379,14 @@ __metadata: linkType: hard "regexp.prototype.flags@npm:^1.5.0, regexp.prototype.flags@npm:^1.5.1": - version: 1.5.1 - resolution: "regexp.prototype.flags@npm:1.5.1" + version: 1.5.2 + resolution: "regexp.prototype.flags@npm:1.5.2" dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - set-function-name: "npm:^2.0.0" - checksum: 3fa5610b8e411bbc3a43ddfd13162f3a817beb43155fbd8caa24d4fd0ce2f431a8197541808772a5a06e5946cebfb68464c827827115bde0d11720a92fe2981a + call-bind: "npm:^1.0.6" + define-properties: "npm:^1.2.1" + es-errors: "npm:^1.3.0" + set-function-name: "npm:^2.0.1" + checksum: 9fffc01da9c4e12670ff95bc5204364615fcc12d86fc30642765af908675678ebb0780883c874b2dbd184505fb52fa603d80073ecf69f461ce7f56b15d10be9c languageName: node linkType: hard @@ -12553,16 +12502,6 @@ __metadata: languageName: node linkType: hard -"restore-cursor@npm:^3.1.0": - version: 3.1.0 - resolution: "restore-cursor@npm:3.1.0" - dependencies: - onetime: "npm:^5.1.0" - signal-exit: "npm:^3.0.2" - checksum: f877dd8741796b909f2a82454ec111afb84eb45890eb49ac947d87991379406b3b83ff9673a46012fca0d7844bb989f45cc5b788254cf1a39b6b5a9659de0630 - languageName: node - linkType: hard - "retry@npm:^0.12.0": version: 0.12.0 resolution: "retry@npm:0.12.0" @@ -12615,22 +12554,22 @@ __metadata: linkType: hard "rollup@npm:^4.2.0": - version: 4.9.6 - resolution: "rollup@npm:4.9.6" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.9.6" - "@rollup/rollup-android-arm64": "npm:4.9.6" - "@rollup/rollup-darwin-arm64": "npm:4.9.6" - "@rollup/rollup-darwin-x64": "npm:4.9.6" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.9.6" - "@rollup/rollup-linux-arm64-gnu": "npm:4.9.6" - "@rollup/rollup-linux-arm64-musl": "npm:4.9.6" - "@rollup/rollup-linux-riscv64-gnu": "npm:4.9.6" - "@rollup/rollup-linux-x64-gnu": "npm:4.9.6" - "@rollup/rollup-linux-x64-musl": "npm:4.9.6" - "@rollup/rollup-win32-arm64-msvc": "npm:4.9.6" - "@rollup/rollup-win32-ia32-msvc": "npm:4.9.6" - "@rollup/rollup-win32-x64-msvc": "npm:4.9.6" + version: 4.10.0 + resolution: "rollup@npm:4.10.0" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.10.0" + "@rollup/rollup-android-arm64": "npm:4.10.0" + "@rollup/rollup-darwin-arm64": "npm:4.10.0" + "@rollup/rollup-darwin-x64": "npm:4.10.0" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.10.0" + "@rollup/rollup-linux-arm64-gnu": "npm:4.10.0" + "@rollup/rollup-linux-arm64-musl": "npm:4.10.0" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.10.0" + "@rollup/rollup-linux-x64-gnu": "npm:4.10.0" + "@rollup/rollup-linux-x64-musl": "npm:4.10.0" + "@rollup/rollup-win32-arm64-msvc": "npm:4.10.0" + "@rollup/rollup-win32-ia32-msvc": "npm:4.10.0" + "@rollup/rollup-win32-x64-msvc": "npm:4.10.0" "@types/estree": "npm:1.0.5" fsevents: "npm:~2.3.2" dependenciesMeta: @@ -12664,7 +12603,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 7c343d9d8ece2ebfbde20b62545f7ee16cbba719da94584fef72ad2f0bdea5f2c49cc429839350e7a4181be04e01bfcd1bd45e1654b8b288a612c409eaebdae4 + checksum: e8f55290736faa24b82ec3c2c7dafd422df27dba31ac22d6ff6ca5b8b0f962e59c254622f9b30066740a402b84a68469f8f191f9950a645ec403ee9fe3a37071 languageName: node linkType: hard @@ -12682,10 +12621,10 @@ __metadata: languageName: node linkType: hard -"run-async@npm:^2.4.0": - version: 2.4.1 - resolution: "run-async@npm:2.4.1" - checksum: c79551224dafa26ecc281cb1efad3510c82c79116aaf681f8a931ce70fdf4ca880d58f97d3b930a38992c7aad7955a08e065b32ec194e1dd49d7790c874ece50 +"run-async@npm:^3.0.0": + version: 3.0.0 + resolution: "run-async@npm:3.0.0" + checksum: 97fb8747f7765b77ebcd311d3a33548099336f04c6434e0763039b98c1de0f1b4421000695aff8751f309c0b995d8dfd620c1f1e4c35572da38c101488165305 languageName: node linkType: hard @@ -12705,7 +12644,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:^7.5.5, rxjs@npm:^7.8.1": +"rxjs@npm:^7.8.1": version: 7.8.1 resolution: "rxjs@npm:7.8.1" dependencies: @@ -12714,7 +12653,7 @@ __metadata: languageName: node linkType: hard -"safe-array-concat@npm:^1.0.1": +"safe-array-concat@npm:^1.0.1, safe-array-concat@npm:^1.1.0": version: 1.1.0 resolution: "safe-array-concat@npm:1.1.0" dependencies: @@ -12727,13 +12666,13 @@ __metadata: linkType: hard "safe-regex-test@npm:^1.0.0": - version: 1.0.2 - resolution: "safe-regex-test@npm:1.0.2" + version: 1.0.3 + resolution: "safe-regex-test@npm:1.0.3" dependencies: - call-bind: "npm:^1.0.5" - get-intrinsic: "npm:^1.2.2" + call-bind: "npm:^1.0.6" + es-errors: "npm:^1.3.0" is-regex: "npm:^1.1.4" - checksum: 0e6a472caa8f44a502c7842ea19749de42c2eb1b41cb00456061dc3746cf3468e907522f56e97a15f3b41d88f660bd3d4f9bdec064a39895f7babae0f7aafc6a + checksum: b04de61114b10274d92e25b6de7ccb5de07f11ea15637ff636de4b5190c0f5cd8823fe586dde718504cf78055437d70fd8804976894df502fcf5a210c970afb3 languageName: node linkType: hard @@ -12744,7 +12683,7 @@ __metadata: languageName: node linkType: hard -"safer-buffer@npm:>= 2.1.2 < 3, safer-buffer@npm:>= 2.1.2 < 3.0.0": +"safer-buffer@npm:>= 2.1.2 < 3.0.0": version: 2.1.2 resolution: "safer-buffer@npm:2.1.2" checksum: 7eaf7a0cf37cc27b42fb3ef6a9b1df6e93a1c6d98c6c6702b02fe262d5fcbd89db63320793b99b21cb5348097d0a53de81bd5f4e8b86e20cc9412e3f1cfb4e83 @@ -12791,20 +12730,14 @@ __metadata: languageName: node linkType: hard -<<<<<<< HEAD -"semver@npm:^7.3.4, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.3": - version: 7.5.4 - resolution: "semver@npm:7.5.4" -======= "semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.3": version: 7.6.0 resolution: "semver@npm:7.6.0" ->>>>>>> feature/AB#16122 dependencies: lru-cache: "npm:^6.0.0" bin: semver: bin/semver.js - checksum: 985dec0d372370229a262c737063860fabd4a1c730662c1ea3200a2f649117761a42184c96df62a0e885e76fbd5dace41087d6c1ac0351b13c0df5d6bcb1b5ac + checksum: 1b41018df2d8aca5a1db4729985e8e20428c650daea60fcd16e926e9383217d00f574fab92d79612771884a98d2ee2a1973f49d630829a8d54d6570defe62535 languageName: node linkType: hard @@ -12933,13 +12866,14 @@ __metadata: linkType: hard "side-channel@npm:^1.0.4": - version: 1.0.4 - resolution: "side-channel@npm:1.0.4" + version: 1.0.5 + resolution: "side-channel@npm:1.0.5" dependencies: - call-bind: "npm:^1.0.0" - get-intrinsic: "npm:^1.0.2" - object-inspect: "npm:^1.9.0" - checksum: c4998d9fc530b0e75a7fd791ad868fdc42846f072734f9080ff55cc8dc7d3899abcda24fd896aa6648c3ab7021b4bb478073eb4f44dfd55bce9714bc1a7c5d45 + call-bind: "npm:^1.0.6" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.4" + object-inspect: "npm:^1.13.1" + checksum: 27708b70b5d81bf18dc8cc23f38f1b6c9511691a64abc4aaf17956e67d132c855cf8b46f931e2fc5a6262b29371eb60da7755c1b9f4f862eccea8562b469f8f6 languageName: node linkType: hard @@ -13008,19 +12942,13 @@ __metadata: languageName: node linkType: hard -<<<<<<< HEAD -"socks@npm:^2.6.2, socks@npm:^2.7.1": - version: 2.7.1 - resolution: "socks@npm:2.7.1" -======= "socks@npm:^2.7.1": version: 2.8.0 resolution: "socks@npm:2.8.0" ->>>>>>> feature/AB#16122 dependencies: - ip: "npm:^2.0.0" + ip-address: "npm:^9.0.5" smart-buffer: "npm:^4.2.0" - checksum: 5074f7d6a13b3155fa655191df1c7e7a48ce3234b8ccf99afa2ccb56591c195e75e8bb78486f8e9ea8168e95a29573cbaad55b2b5e195160ae4d2ea6811ba833 + checksum: ed0224ce2c7daaa7690cb87cf53d9703ffc4e983aca221f6f5b46767b232658df49494fd86acd0bf97ada6de05248ea8ea625c2343d48155d8463fc40d4a340f languageName: node linkType: hard @@ -13059,44 +12987,10 @@ __metadata: languageName: node linkType: hard -<<<<<<< HEAD -"spdx-correct@npm:^3.0.0": - version: 3.2.0 - resolution: "spdx-correct@npm:3.2.0" - dependencies: - spdx-expression-parse: "npm:^3.0.0" - spdx-license-ids: "npm:^3.0.0" - checksum: cc2e4dbef822f6d12142116557d63f5facf3300e92a6bd24e907e4865e17b7e1abd0ee6b67f305cae6790fc2194175a24dc394bfcc01eea84e2bdad728e9ae9a - languageName: node - linkType: hard - -"spdx-exceptions@npm:^2.1.0": - version: 2.4.0 - resolution: "spdx-exceptions@npm:2.4.0" - checksum: b1b650a8d94424473bf9629cf972c86a91c03cccc260f5c901bce0e4b92d831627fec28c9e0a1e9c34c5ebad0a12cf2eab887bec088e0a862abb9d720c2fd0a1 - languageName: node - linkType: hard - -"spdx-expression-parse@npm:^3.0.0": - version: 3.0.1 - resolution: "spdx-expression-parse@npm:3.0.1" - dependencies: - spdx-exceptions: "npm:^2.1.0" - spdx-license-ids: "npm:^3.0.0" - checksum: a1c6e104a2cbada7a593eaa9f430bd5e148ef5290d4c0409899855ce8b1c39652bcc88a725259491a82601159d6dc790bedefc9016c7472f7de8de7361f8ccde - languageName: node - linkType: hard - -"spdx-license-ids@npm:^3.0.0": - version: 3.0.16 - resolution: "spdx-license-ids@npm:3.0.16" - checksum: 6425c54132ca38d717315cdbd2b620235937d1859972c5978bbc95b4c14400438ffe113709d8aabb0d5498cc27a5b89876fca0fe21b4e26f5ce122bc86d0d88e -======= "sprintf-js@npm:^1.1.3": version: 1.1.3 resolution: "sprintf-js@npm:1.1.3" checksum: e7587128c423f7e43cc625fe2f87e6affdf5ca51c1cc468e910d8aaca46bb44a7fbcfa552f787b1d3987f7043aeb4527d1b99559e6621e01b42b3f45e5a24cbb ->>>>>>> feature/AB#16122 languageName: node linkType: hard @@ -13130,7 +13024,7 @@ __metadata: languageName: node linkType: hard -"std-env@npm:^3.3.3, std-env@npm:^3.5.0": +"std-env@npm:^3.5.0": version: 3.7.0 resolution: "std-env@npm:3.7.0" checksum: 6ee0cca1add3fd84656b0002cfbc5bfa20340389d9ba4720569840f1caa34bce74322aef4c93f046391583e50649d0cf81a5f8fe1d411e50b659571690a45f12 @@ -13287,7 +13181,7 @@ __metadata: languageName: node linkType: hard -"strip-literal@npm:^1.0.1, strip-literal@npm:^1.3.0": +"strip-literal@npm:^1.3.0": version: 1.3.0 resolution: "strip-literal@npm:1.3.0" dependencies: @@ -13508,13 +13402,6 @@ __metadata: languageName: node linkType: hard -"through@npm:^2.3.6": - version: 2.3.8 - resolution: "through@npm:2.3.8" - checksum: 5da78346f70139a7d213b65a0106f3c398d6bc5301f9248b5275f420abc2c4b1e77c2abc72d218dedc28c41efb2e7c312cb76a7730d04f9c2d37d247da3f4198 - languageName: node - linkType: hard - "tiny-warning@npm:^1.0.2": version: 1.0.3 resolution: "tiny-warning@npm:1.0.3" @@ -13522,20 +13409,13 @@ __metadata: languageName: node linkType: hard -"tinybench@npm:^2.5.0, tinybench@npm:^2.5.1": +"tinybench@npm:^2.5.1": version: 2.6.0 resolution: "tinybench@npm:2.6.0" checksum: 6d35f0540bbf6208e8f47fa88cad733bc4b35b3bea75ec995004a9a44f70b8947eff3d271a3b4a4f7e787a82211df0dec9370fa566ccf50441067c559382b3ed languageName: node linkType: hard -"tinypool@npm:^0.7.0": - version: 0.7.0 - resolution: "tinypool@npm:0.7.0" - checksum: e1fb1f430647525c6bb0bac71acc4c1594c7687fe8e4f08c8f389d9a672fb69746869e9d9818b55f1ab85ea6308d42f92cbc32a9847088abf6bc55a8700be390 - languageName: node - linkType: hard - "tinypool@npm:^0.8.2": version: 0.8.2 resolution: "tinypool@npm:0.8.2" @@ -13543,13 +13423,6 @@ __metadata: languageName: node linkType: hard -"tinyspy@npm:^2.1.1": - version: 2.2.0 - resolution: "tinyspy@npm:2.2.0" - checksum: bcc5a08c2dc7574d32e6dcc2e760ad95a3cf30249c22799815b6389179427c95573d27d2d965ebc5fca2b6d338c46678cd7337ea2a9cebacee3dc662176b07cb - languageName: node - linkType: hard - "tinyspy@npm:^2.2.0": version: 2.2.1 resolution: "tinyspy@npm:2.2.1" @@ -13566,15 +13439,6 @@ __metadata: languageName: node linkType: hard -"tmp@npm:^0.0.33": - version: 0.0.33 - resolution: "tmp@npm:0.0.33" - dependencies: - os-tmpdir: "npm:~1.0.2" - checksum: 09c0abfd165cff29b32be42bc35e80b8c64727d97dedde6550022e88fa9fd39a084660415ed8e3ebaa2aca1ee142f86df8b31d4196d4f81c774a3a20fd4b6abf - languageName: node - linkType: hard - "to-fast-properties@npm:^2.0.0": version: 2.0.0 resolution: "to-fast-properties@npm:2.0.0" @@ -13657,8 +13521,8 @@ __metadata: linkType: hard "tsconfck@npm:^3.0.1": - version: 3.0.1 - resolution: "tsconfck@npm:3.0.1" + version: 3.0.2 + resolution: "tsconfck@npm:3.0.2" peerDependencies: typescript: ^5.0.0 peerDependenciesMeta: @@ -13666,7 +13530,7 @@ __metadata: optional: true bin: tsconfck: bin/tsconfck.js - checksum: c5317404e2a809af31ad093f82365518a5856b2f342371991f729f42cab0def1b87dca8d22df3fb8c82acda7248710d4fb5030270db024c8000bc8272a3e6d58 + checksum: bd0666cde64d576701b6b74b45795b76f002ea3c44279ce373426b075f56b47b4a34ee51083a4df7844b0077e2af4cb752a6c6ef246a80339a44351d6367c98c languageName: node linkType: hard @@ -13752,13 +13616,13 @@ __metadata: linkType: hard "typed-array-buffer@npm:^1.0.0": - version: 1.0.0 - resolution: "typed-array-buffer@npm:1.0.0" + version: 1.0.1 + resolution: "typed-array-buffer@npm:1.0.1" dependencies: - call-bind: "npm:^1.0.2" - get-intrinsic: "npm:^1.2.1" - is-typed-array: "npm:^1.1.10" - checksum: 3e0281c79b2a40cd97fe715db803884301993f4e8c18e8d79d75fd18f796e8cd203310fec8c7fdb5e6c09bedf0af4f6ab8b75eb3d3a85da69328f28a80456bd3 + call-bind: "npm:^1.0.6" + es-errors: "npm:^1.3.0" + is-typed-array: "npm:^1.1.13" + checksum: 1d65e46b2b9b7ec2a30df39b9ddf32e55ad08d6119aec33975506a3dba56057796bdc3c64dbeb7fdb61bf340a75e279dfd55b48ce8f3b874f01731e1da6833d2 languageName: node linkType: hard @@ -13826,9 +13690,9 @@ __metadata: linkType: hard "ufo@npm:^1.3.2": - version: 1.3.2 - resolution: "ufo@npm:1.3.2" - checksum: 7133290d495e2b3f9416de69982019e81cff40d28cfd3a07accff1122ee52f23d9165e495a140a1b34b183244e88fc4001cb649591385ecbad1d3d0d2264fa6e + version: 1.4.0 + resolution: "ufo@npm:1.4.0" + checksum: b7aea8503878dc5ad797d8fc6fe39fec64d9cc7e89fb147ef86ec676e37bb462d99d67c6aad20b15f7d3e6d275d66666b29214422e268f1d98f6eaf707a207a6 languageName: node linkType: hard @@ -14016,22 +13880,6 @@ __metadata: languageName: node linkType: hard -"vite-node@npm:0.34.6": - version: 0.34.6 - resolution: "vite-node@npm:0.34.6" - dependencies: - cac: "npm:^6.7.14" - debug: "npm:^4.3.4" - mlly: "npm:^1.4.0" - pathe: "npm:^1.1.1" - picocolors: "npm:^1.0.0" - vite: "npm:^3.0.0 || ^4.0.0 || ^5.0.0-0" - bin: - vite-node: vite-node.mjs - checksum: ae49fd24874162196dd41477afe51dd8dc0bd1e8cb4ae885455d1d5569e14f628941f9867044bff263620536446e17d7e2c0828c9ea84b6308b9eb5711e80991 - languageName: node - linkType: hard - "vite-node@npm:1.2.2": version: 1.2.2 resolution: "vite-node@npm:1.2.2" @@ -14076,46 +13924,6 @@ __metadata: languageName: node linkType: hard -"vite@npm:^3.0.0 || ^4.0.0 || ^5.0.0-0, vite@npm:^3.1.0 || ^4.0.0 || ^5.0.0-0": - version: 5.0.12 - resolution: "vite@npm:5.0.12" - dependencies: - esbuild: "npm:^0.19.3" - fsevents: "npm:~2.3.3" - postcss: "npm:^8.4.32" - rollup: "npm:^4.2.0" - peerDependencies: - "@types/node": ^18.0.0 || >=20.0.0 - less: "*" - lightningcss: ^1.21.0 - sass: "*" - stylus: "*" - sugarss: "*" - terser: ^5.4.0 - dependenciesMeta: - fsevents: - optional: true - peerDependenciesMeta: - "@types/node": - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - bin: - vite: bin/vite.js - checksum: ed0bb26a0d0c8e1dae0b70af9e36adffd7e15d80297443fe4da762596dc81570bad7f0291f590a57c1553f5e435338d8c7ffc483bd9431a95c09d9ac90665fad - languageName: node - linkType: hard - "vite@npm:^5.0.0, vite@npm:^5.1.1": version: 5.1.1 resolution: "vite@npm:5.1.1" @@ -14156,66 +13964,6 @@ __metadata: languageName: node linkType: hard -"vitest@npm:^0.34.6": - version: 0.34.6 - resolution: "vitest@npm:0.34.6" - dependencies: - "@types/chai": "npm:^4.3.5" - "@types/chai-subset": "npm:^1.3.3" - "@types/node": "npm:*" - "@vitest/expect": "npm:0.34.6" - "@vitest/runner": "npm:0.34.6" - "@vitest/snapshot": "npm:0.34.6" - "@vitest/spy": "npm:0.34.6" - "@vitest/utils": "npm:0.34.6" - acorn: "npm:^8.9.0" - acorn-walk: "npm:^8.2.0" - cac: "npm:^6.7.14" - chai: "npm:^4.3.10" - debug: "npm:^4.3.4" - local-pkg: "npm:^0.4.3" - magic-string: "npm:^0.30.1" - pathe: "npm:^1.1.1" - picocolors: "npm:^1.0.0" - std-env: "npm:^3.3.3" - strip-literal: "npm:^1.0.1" - tinybench: "npm:^2.5.0" - tinypool: "npm:^0.7.0" - vite: "npm:^3.1.0 || ^4.0.0 || ^5.0.0-0" - vite-node: "npm:0.34.6" - why-is-node-running: "npm:^2.2.2" - peerDependencies: - "@edge-runtime/vm": "*" - "@vitest/browser": "*" - "@vitest/ui": "*" - happy-dom: "*" - jsdom: "*" - playwright: "*" - safaridriver: "*" - webdriverio: "*" - peerDependenciesMeta: - "@edge-runtime/vm": - optional: true - "@vitest/browser": - optional: true - "@vitest/ui": - optional: true - happy-dom: - optional: true - jsdom: - optional: true - playwright: - optional: true - safaridriver: - optional: true - webdriverio: - optional: true - bin: - vitest: vitest.mjs - checksum: 0191422ab979823803aac64e657e288f1b84bb518a2b653fe9928b4f1c931b04efde14990d263ff76a18dc6c35ab34652db3ae7cbecea771cfa36abe547dd705 - languageName: node - linkType: hard - "vitest@npm:^1.0.4": version: 1.2.2 resolution: "vitest@npm:1.2.2" @@ -14292,15 +14040,6 @@ __metadata: languageName: node linkType: hard -"wcwidth@npm:^1.0.1": - version: 1.0.1 - resolution: "wcwidth@npm:1.0.1" - dependencies: - defaults: "npm:^1.0.3" - checksum: 182ebac8ca0b96845fae6ef44afd4619df6987fe5cf552fdee8396d3daa1fb9b8ec5c6c69855acb7b3c1231571393bd1f0a4cdc4028d421575348f64bb0a8817 - languageName: node - linkType: hard - "webidl-conversions@npm:^3.0.0": version: 3.0.1 resolution: "webidl-conversions@npm:3.0.1" @@ -14409,7 +14148,7 @@ __metadata: languageName: node linkType: hard -"which-typed-array@npm:^1.1.13, which-typed-array@npm:^1.1.9": +"which-typed-array@npm:^1.1.13, which-typed-array@npm:^1.1.14, which-typed-array@npm:^1.1.9": version: 1.1.14 resolution: "which-typed-array@npm:1.1.14" dependencies: @@ -14474,7 +14213,7 @@ __metadata: languageName: node linkType: hard -"wrap-ansi@npm:^6.0.1": +"wrap-ansi@npm:^6.2.0": version: 6.2.0 resolution: "wrap-ansi@npm:6.2.0" dependencies: @@ -14560,7 +14299,7 @@ __metadata: languageName: node linkType: hard -"yaml@npm:^2.2.1, yaml@npm:^2.3.4": +"yaml@npm:^2.3.4": version: 2.3.4 resolution: "yaml@npm:2.3.4" checksum: f8207ce43065a22268a2806ea6a0fa3974c6fde92b4b2fa0082357e487bc333e85dc518910007e7ac001b532c7c84bd3eccb6c7757e94182b564028b0008f44b From a7d5ec73c6d9825569131e4cb21f4a94cbfc0518 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 26 Mar 2024 14:07:19 +0100 Subject: [PATCH 45/82] Upgrade PublishCodeCoverageResults to v2 --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 10a43e13..9d11445c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -51,6 +51,7 @@ stages: - task: PublishCodeCoverageResults@2 inputs: summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml + pathToSources: $(System.DefaultWorkingDirectory)/ - task: CmdLine@2 displayName: Build From 3b8d56aa75c3a3325e8fb2ff646b6e9849337806 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 26 Mar 2024 14:21:39 +0100 Subject: [PATCH 46/82] Downgrade PublishCodeCoverageResults to v1 --- azure-pipelines.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9d11445c..320ae887 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,10 +48,9 @@ stages: inputs: script: yarn test:coverage - - task: PublishCodeCoverageResults@2 + - task: PublishCodeCoverageResults@1 inputs: summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml - pathToSources: $(System.DefaultWorkingDirectory)/ - task: CmdLine@2 displayName: Build From cf89fd619ac311c36377dcb79d8ad2a750797b0c Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 26 Mar 2024 14:29:47 +0100 Subject: [PATCH 47/82] Downgrade PublishCodeCoverageResults to v1 --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 320ae887..127ca118 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -50,6 +50,7 @@ stages: - task: PublishCodeCoverageResults@1 inputs: + codeCoverageTool: Cobertura summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml - task: CmdLine@2 From 00019c6753eb79b1f4c18d620ed241af3d7c4395 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 26 Mar 2024 14:49:19 +0100 Subject: [PATCH 48/82] Update orval --- package.json | 2 +- src/api/fetchers.msw.ts | 8811 +++++++++-------- src/api/fetchers.schemas.ts | 8 +- src/api/fetchers.ts | 15 +- .../Modules/ModuleCard/ModuleCard.test.tsx | 4 +- .../public/AreaDetail/AreaDetail.test.tsx | 4 +- .../public/ThemeDetail/ThemeDetail.test.tsx | 4 +- yarn.lock | 92 +- 8 files changed, 4591 insertions(+), 4349 deletions(-) diff --git a/package.json b/package.json index 1a637ff1..da5e4e42 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "eslint-plugin-prettier": "^5.0.0", "jsdom": "^22.1.0", "msw": "^2.0.6", - "orval": "^6.22.1", + "orval": "^6.25.0", "prettier": "2.8.8", "rollup-plugin-visualizer": "^5.11.0", "sass": "^1.63.6", diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index e8be499d..2ee0b5ad 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.24.0 🍺 + * Generated by orval v6.25.0 🍺 * Do not edit manually. * Omgevingsbeleid API * @@ -10,103 +10,108 @@ */ import { faker } from '@faker-js/faker' import { HttpResponse, delay, http } from 'msw' - +import type { + AOJCreatedResponse, + AcknowledgedRelation, + ActiveModuleObjectWrapper, + AmbitieFull, + AmbitieUUID, + AuthToken, + BeleidsdoelFull, + BeleidsdoelUUID, + BeleidskeuzeFull, + BeleidskeuzeUUID, + BeleidsregelFull, + BeleidsregelUUID, + EnvironmentCreatedResponse, + GebiedsprogrammaFull, + GebiedsprogrammaUUID, + GraphResponse, + HealthCheckHealthGet200, + MaatregelFull, + MaatregelUUID, + ModuleCreatedResponse, + ModuleObjectContext, + ModuleOverview, + ModuleSnapshot, + ModuleStatus, + NationaalBelangFull, + NationaalBelangUUID, + NewObjectStaticResponse, + ObjectCount, + PagedResponseAmbitieBasic, + PagedResponseAmbitieExtended, + PagedResponseBeleidsdoelBasic, + PagedResponseBeleidsdoelExtended, + PagedResponseBeleidskeuzeBasic, + PagedResponseBeleidskeuzeExtended, + PagedResponseBeleidsregelBasic, + PagedResponseBeleidsregelExtended, + PagedResponseGebiedsprogrammaBasic, + PagedResponseGebiedsprogrammaExtended, + PagedResponseGenericObjectShort, + PagedResponseGeoSearchResult, + PagedResponseMaatregelBasic, + PagedResponseMaatregelExtended, + PagedResponseModule, + PagedResponseModuleObjectShortStatus, + PagedResponseNationaalBelangBasic, + PagedResponseProgrammaAlgemeenBasic, + PagedResponseProgrammaAlgemeenExtended, + PagedResponsePublicModuleShort, + PagedResponsePublication, + PagedResponsePublicationAOJ, + PagedResponsePublicationEnvironment, + PagedResponsePublicationPackage, + PagedResponsePublicationPackageReportShort, + PagedResponsePublicationTemplate, + PagedResponsePublicationVersionShort, + PagedResponseSearchObject, + PagedResponseUser, + PagedResponseValidSearchObject, + PagedResponseVerplichtProgrammaBasic, + PagedResponseVisieAlgemeenBasic, + PagedResponseVisieAlgemeenExtended, + PagedResponseWerkingsgebied, + PagedResponseWerkingsgebiedBasic, + PagedResponseWerkingsgebiedExtended, + PagedResponseWettelijkeTaakBasic, + ProgrammaAlgemeenFull, + ProgrammaAlgemeenUUID, + PublicModuleOverview, + Publication, + PublicationCreatedResponse, + PublicationPackageCreatedResponse, + PublicationPackageReport, + PublicationPackagesPackageUuidDownloadGet200, + PublicationReportsReportUuidDownloadGet200, + PublicationTemplate, + PublicationVersion, + PublicationVersionCreatedResponse, + PublicationVersionEditResponse, + ReadRelation, + ResetPasswordResponse, + ResponseOK, + TemplateCreatedResponse, + UploadPackageReportResponse, + User, + UserCreateResponse, + VerplichtProgrammaFull, + VerplichtProgrammaUUID, + VisieAlgemeenFull, + VisieAlgemeenUUID, + WerkingsgebiedFull, + WerkingsgebiedUUID, + WettelijkeTaakFull, + WettelijkeTaakUUID, +} from './fetchers.schemas' import { + DocumentType, GraphEdgeType, ReportStatusType, - type AOJCreatedResponse, - type AcknowledgedRelation, - type ActiveModuleObjectWrapper, - type AmbitieFull, - type AmbitieUUID, - type AuthToken, - type BeleidsdoelFull, - type BeleidsdoelUUID, - type BeleidskeuzeFull, - type BeleidskeuzeUUID, - type BeleidsregelFull, - type BeleidsregelUUID, - type EnvironmentCreatedResponse, - type GebiedsprogrammaFull, - type GebiedsprogrammaUUID, - type GraphResponse, - type MaatregelFull, - type MaatregelUUID, - type ModuleCreatedResponse, - type ModuleObjectContext, - type ModuleOverview, - type ModuleSnapshot, - type ModuleStatus, - type NationaalBelangFull, - type NationaalBelangUUID, - type NewObjectStaticResponse, - type ObjectCount, - type PagedResponseAmbitieBasic, - type PagedResponseAmbitieExtended, - type PagedResponseBeleidsdoelBasic, - type PagedResponseBeleidsdoelExtended, - type PagedResponseBeleidskeuzeBasic, - type PagedResponseBeleidskeuzeExtended, - type PagedResponseBeleidsregelBasic, - type PagedResponseBeleidsregelExtended, - type PagedResponseGebiedsprogrammaBasic, - type PagedResponseGebiedsprogrammaExtended, - type PagedResponseGenericObjectShort, - type PagedResponseGeoSearchResult, - type PagedResponseMaatregelBasic, - type PagedResponseMaatregelExtended, - type PagedResponseModule, - type PagedResponseModuleObjectShortStatus, - type PagedResponseNationaalBelangBasic, - type PagedResponseProgrammaAlgemeenBasic, - type PagedResponseProgrammaAlgemeenExtended, - type PagedResponsePublicModuleShort, - type PagedResponsePublication, - type PagedResponsePublicationAOJ, - type PagedResponsePublicationEnvironment, - type PagedResponsePublicationPackage, - type PagedResponsePublicationPackageReportShort, - type PagedResponsePublicationTemplate, - type PagedResponsePublicationVersionShort, - type PagedResponseSearchObject, - type PagedResponseUser, - type PagedResponseValidSearchObject, - type PagedResponseVerplichtProgrammaBasic, - type PagedResponseVisieAlgemeenBasic, - type PagedResponseVisieAlgemeenExtended, - type PagedResponseWerkingsgebied, - type PagedResponseWerkingsgebiedBasic, - type PagedResponseWerkingsgebiedExtended, - type PagedResponseWettelijkeTaakBasic, - type ProgrammaAlgemeenFull, - type ProgrammaAlgemeenUUID, - type PublicModuleOverview, - type Publication, - type PublicationCreatedResponse, - type PublicationPackageCreatedResponse, - type PublicationPackageReport, - type PublicationTemplate, - type PublicationVersion, - type PublicationVersionCreatedResponse, - type PublicationVersionEditResponse, - type ReadRelation, - type ResetPasswordResponse, - type ResponseOK, - type TemplateCreatedResponse, - type UploadPackageReportResponse, - type User, - type UserCreateResponse, - type VerplichtProgrammaFull, - type VerplichtProgrammaUUID, - type VisieAlgemeenFull, - type VisieAlgemeenUUID, - type WerkingsgebiedFull, - type WerkingsgebiedUUID, - type WettelijkeTaakFull, - type WettelijkeTaakUUID, } from './fetchers.schemas' -export const getAmbitiesValidGetMock = ( +export const getAmbitiesValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseAmbitieBasic => ({ limit: faker.helpers.arrayElement([ @@ -160,7 +165,7 @@ export const getAmbitiesValidGetMock = ( ...overrideResponse, }) -export const getAmbitiesValidLineageIdGetMock = ( +export const getAmbitiesValidLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseAmbitieBasic => ({ limit: faker.helpers.arrayElement([ @@ -214,7 +219,7 @@ export const getAmbitiesValidLineageIdGetMock = ( ...overrideResponse, }) -export const getAmbitiesVersionObjectUuidGetMock = ( +export const getAmbitiesVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -373,7 +378,7 @@ export const getAmbitiesVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getAmbitiesLatestLineageIdGetMock = ( +export const getAmbitiesLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -532,7 +537,7 @@ export const getAmbitiesLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getAmbitiesRelationsLineageIdGetMock = ( +export const getAmbitiesRelationsLineageIdGetResponseMock = ( overrideResponse: any = {} ): ReadRelation[] => Array.from( @@ -552,15 +557,15 @@ export const getAmbitiesRelationsLineageIdGetMock = ( ...overrideResponse, })) -export const getAmbitiesRelationsLineageIdPutMock = ( +export const getAmbitiesRelationsLineageIdPutResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getAmbitieStaticLineageIdPostMock = ( +export const getAmbitieStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectAmbitieLineageIdGetMock = ( +export const getModulesModuleIdObjectAmbitieLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseAmbitieExtended => ({ limit: faker.helpers.arrayElement([ @@ -683,7 +688,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectAmbitieLineageIdPatchMock = ( +export const getModulesModuleIdObjectAmbitieLineageIdPatchResponseMock = ( overrideResponse: any = {} ): AmbitieUUID => ({ Object_ID: faker.helpers.arrayElement([ @@ -694,7 +699,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdPatchMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = ( +export const getModulesModuleIdObjectAmbitieLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -853,7 +858,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = ( +export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -1012,7 +1017,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getModulesObjectAmbitieActiveLineageIdGetMock = ( +export const getModulesObjectAmbitieActiveLineageIdGetResponseMock = ( overrideResponse: any = {} ): ActiveModuleObjectWrapper[] => Array.from( @@ -1073,7 +1078,7 @@ export const getModulesObjectAmbitieActiveLineageIdGetMock = ( ...overrideResponse, })) -export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = ( +export const getRevisionsModuleIdAmbitieVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): AmbitieFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -1232,7 +1237,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getBeleidsdoelenValidGetMock = ( +export const getBeleidsdoelenValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseBeleidsdoelBasic => ({ limit: faker.helpers.arrayElement([ @@ -1290,7 +1295,7 @@ export const getBeleidsdoelenValidGetMock = ( ...overrideResponse, }) -export const getBeleidsdoelenValidLineageIdGetMock = ( +export const getBeleidsdoelenValidLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseBeleidsdoelBasic => ({ limit: faker.helpers.arrayElement([ @@ -1348,7 +1353,7 @@ export const getBeleidsdoelenValidLineageIdGetMock = ( ...overrideResponse, }) -export const getBeleidsdoelenVersionObjectUuidGetMock = ( +export const getBeleidsdoelenVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): BeleidsdoelFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -1595,7 +1600,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getBeleidsdoelenLatestLineageIdGetMock = ( +export const getBeleidsdoelenLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): BeleidsdoelFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -1842,7 +1847,7 @@ export const getBeleidsdoelenLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getBeleidsdoelenRelationsLineageIdGetMock = ( +export const getBeleidsdoelenRelationsLineageIdGetResponseMock = ( overrideResponse: any = {} ): ReadRelation[] => Array.from( @@ -1862,15 +1867,15 @@ export const getBeleidsdoelenRelationsLineageIdGetMock = ( ...overrideResponse, })) -export const getBeleidsdoelenRelationsLineageIdPutMock = ( +export const getBeleidsdoelenRelationsLineageIdPutResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getBeleidsdoelStaticLineageIdPostMock = ( +export const getBeleidsdoelStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = ( +export const getModulesModuleIdObjectBeleidsdoelLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseBeleidsdoelExtended => ({ limit: faker.helpers.arrayElement([ @@ -2001,7 +2006,7 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidsdoelLineageIdPatchMock = ( +export const getModulesModuleIdObjectBeleidsdoelLineageIdPatchResponseMock = ( overrideResponse: any = {} ): BeleidsdoelUUID => ({ Object_ID: faker.helpers.arrayElement([ @@ -2012,832 +2017,368 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdPatchMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetMock = ( - overrideResponse: any = {} -): BeleidsdoelFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Ambities: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), +export const getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetResponseMock = + (overrideResponse: any = {}): BeleidsdoelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Ambities: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) -export const getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): BeleidsdoelFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Ambities: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) - -export const getModulesObjectBeleidsdoelActiveLineageIdGetMock = ( - overrideResponse: any = {} -): ActiveModuleObjectWrapper[] => - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module: { - Closed: faker.datatype.boolean(), - Description: faker.word.sample(), - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Manager_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Module_Manager_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Status: faker.helpers.arrayElement([ - { - Created_By_UUID: faker.string.uuid(), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - ID: faker.number.int({ min: undefined, max: undefined }), - Module_ID: faker.number.int({ - min: undefined, - max: undefined, - }), - Status: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - Title: faker.word.sample(), - ...overrideResponse, - }, - Module_Object: { - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Title: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - ...overrideResponse, - })) - -export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): BeleidsdoelFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Ambities: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, +export const getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): BeleidsdoelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, ]), - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Ambities: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), ...overrideResponse, }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + ...overrideResponse, + })), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), ...overrideResponse, }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) - -export const getBeleidskeuzesValidGetMock = ( - overrideResponse: any = {} -): PagedResponseBeleidskeuzeBasic => ({ - limit: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - offset: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - results: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), + ...overrideResponse, + })), undefined, ]), Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), End_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -2845,12 +2386,139 @@ export const getBeleidskeuzesValidGetMock = ( ]), undefined, ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), Modified_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), undefined, ]), Start_Validity: faker.helpers.arrayElement([ @@ -2863,73 +2531,77 @@ export const getBeleidskeuzesValidGetMock = ( Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), ...overrideResponse, - })), - total: faker.number.int({ min: undefined, max: undefined }), - ...overrideResponse, -}) + }) -export const getBeleidskeuzesValidLineageIdGetMock = ( +export const getModulesObjectBeleidsdoelActiveLineageIdGetResponseMock = ( overrideResponse: any = {} -): PagedResponseBeleidskeuzeBasic => ({ - limit: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - offset: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - results: Array.from( +): ActiveModuleObjectWrapper[] => + Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 ).map(() => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + Module: { + Closed: faker.datatype.boolean(), + Description: faker.word.sample(), + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Manager_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + Module_Manager_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Status: faker.helpers.arrayElement([ + { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + ID: faker.number.int({ min: undefined, max: undefined }), + Module_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Status: faker.word.sample(), + ...overrideResponse, + }, + undefined, + ]), + Title: faker.word.sample(), + ...overrideResponse, + }, + Module_Object: { + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Module_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, ...overrideResponse, - })), - total: faker.number.int({ min: undefined, max: undefined }), - ...overrideResponse, -}) + })) -export const getBeleidskeuzesVersionObjectUuidGetMock = ( +export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} -): BeleidskeuzeFull => ({ +): BeleidsdoelFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, ]), - Beleidsdoelen: faker.helpers.arrayElement([ + Ambities: faker.helpers.arrayElement([ Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -2966,7 +2638,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = ( })), undefined, ]), - Beleidsregels: faker.helpers.arrayElement([ + Beleidskeuzes: faker.helpers.arrayElement([ Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 @@ -3003,7 +2675,6 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = ( })), undefined, ]), - Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), Created_By: faker.helpers.arrayElement([ { @@ -3026,26 +2697,6 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = ( ]), undefined, ]), - Explanation: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Gebied: faker.helpers.arrayElement([ - { - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - End_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - ID: faker.number.int({ min: undefined, max: undefined }), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Start_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Title: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), Hierarchy_Code: faker.helpers.arrayElement([ faker.word.sample(), undefined, @@ -3110,59 +2761,6 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - NationaleBelangen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - Weblink: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), Object_ID: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -3218,10 +2816,6 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = ( }, undefined, ]), - Provincial_Interest: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), Public_Revisions: faker.helpers.arrayElement([ Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, @@ -3242,75 +2836,120 @@ export const getBeleidskeuzesVersionObjectUuidGetMock = ( ]), undefined, ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Werkingsgebied_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Werkingsgebied_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - WettelijkeTaken: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) + +export const getBeleidskeuzesValidGetResponseMock = ( + overrideResponse: any = {} +): PagedResponseBeleidskeuzeBasic => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getBeleidskeuzesValidLineageIdGetResponseMock = ( + overrideResponse: any = {} +): PagedResponseBeleidskeuzeBasic => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) -export const getBeleidskeuzesLatestLineageIdGetMock = ( +export const getBeleidskeuzesVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): BeleidskeuzeFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -3635,308 +3274,70 @@ export const getBeleidskeuzesLatestLineageIdGetMock = ( Werkingsgebied_Code: faker.helpers.arrayElement([ faker.word.sample(), undefined, - ]), - Werkingsgebied_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - WettelijkeTaken: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - ...overrideResponse, -}) - -export const getBeleidskeuzesRelationsLineageIdGetMock = ( - overrideResponse: any = {} -): ReadRelation[] => - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - Title: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - ...overrideResponse, - })) - -export const getBeleidskeuzesRelationsLineageIdPutMock = ( - overrideResponse: any = {} -): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) - -export const getBeleidskeuzeStaticLineageIdPostMock = ( - overrideResponse: any = {} -): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) - -export const getBeleidskeuzeAcknowledgedRelationsLineageIdGetMock = ( - overrideResponse: any = {} -): AcknowledgedRelation[] => - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Deleted_At: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Denied: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_By_UUID: faker.string.uuid(), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Requested_By_Code: faker.word.sample(), - Side_A: { - Acknowledged: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Acknowledged_By_UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - Explanation: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - ...overrideResponse, - }, - Side_B: { - Acknowledged: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Acknowledged_By_UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - Explanation: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), + ]), + Werkingsgebied_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), ...overrideResponse, }, - Version: faker.number.int({ min: undefined, max: undefined }), - ...overrideResponse, - })) - -export const getBeleidskeuzeAcknowledgedRelationsLineageIdPostMock = ( - overrideResponse: any = {} -): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) - -export const getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostMock = ( - overrideResponse: any = {} -): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) - -export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock = ( - overrideResponse: any = {} -): PagedResponseBeleidskeuzeExtended => ({ - limit: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - offset: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), undefined, ]), - results: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, + WettelijkeTaken: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), undefined, ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), undefined, ]), ...overrideResponse, }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Werkingsgebied_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - ...overrideResponse, - })), - total: faker.number.int({ min: undefined, max: undefined }), - ...overrideResponse, -}) - -export const getModulesModuleIdObjectBeleidskeuzeLineageIdPatchMock = ( - overrideResponse: any = {} -): BeleidskeuzeUUID => ({ - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), undefined, ]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMock = ( +export const getBeleidskeuzesLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): BeleidskeuzeFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -4324,844 +3725,1544 @@ export const getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetMock = ( +export const getBeleidskeuzesRelationsLineageIdGetResponseMock = ( + overrideResponse: any = {} +): ReadRelation[] => + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + Title: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + ...overrideResponse, + })) + +export const getBeleidskeuzesRelationsLineageIdPutResponseMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) + +export const getBeleidskeuzeStaticLineageIdPostResponseMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) + +export const getBeleidskeuzeAcknowledgedRelationsLineageIdGetResponseMock = ( + overrideResponse: any = {} +): AcknowledgedRelation[] => + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Created_By_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Deleted_At: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Denied: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Modified_By_UUID: faker.string.uuid(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Requested_By_Code: faker.word.sample(), + Side_A: { + Acknowledged: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Acknowledged_By_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Explanation: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, + }, + Side_B: { + Acknowledged: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Acknowledged_By_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Explanation: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, + }, + Version: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, + })) + +export const getBeleidskeuzeAcknowledgedRelationsLineageIdPostResponseMock = ( overrideResponse: any = {} -): BeleidskeuzeFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) + +export const getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostResponseMock = + (overrideResponse: any = {}): ResponseOK => ({ + message: faker.word.sample(), + ...overrideResponse, + }) + +export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetResponseMock = ( + overrideResponse: any = {} +): PagedResponseBeleidskeuzeExtended => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Beleidsdoelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Werkingsgebied_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectBeleidskeuzeLineageIdPatchResponseMock = ( + overrideResponse: any = {} +): BeleidskeuzeUUID => ({ + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), - Beleidsregels: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, +}) + +export const getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetResponseMock = + (overrideResponse: any = {}): BeleidskeuzeFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidsdoelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), + })), + undefined, + ]), + Beleidsregels: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Explanation: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Gebied: faker.helpers.arrayElement([ - { - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - End_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - ID: faker.number.int({ min: undefined, max: undefined }), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Start_Validity: faker.helpers.arrayElement([ + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, + null, ]), - Title: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + undefined, + ]), + Explanation: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Gebied: faker.helpers.arrayElement([ + { + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + End_Validity: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + ID: faker.number.int({ min: undefined, max: undefined }), + Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Start_Validity: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - NationaleBelangen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + NationaleBelangen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Weblink: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Weblink: faker.helpers.arrayElement([ - faker.word.sample(), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), + undefined, + ]), + Provincial_Interest: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Werkingsgebied_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Werkingsgebied_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + undefined, + ]), + WettelijkeTaken: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), ...overrideResponse, }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + ...overrideResponse, + })), + undefined, + ]), + ...overrideResponse, + }) + +export const getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): BeleidskeuzeFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidsdoelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), ...overrideResponse, }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + ...overrideResponse, + })), + undefined, + ]), + Beleidsregels: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Provincial_Interest: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + ...overrideResponse, + })), + undefined, + ]), + Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Werkingsgebied_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Werkingsgebied_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - WettelijkeTaken: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Explanation: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Gebied: faker.helpers.arrayElement([ + { + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + End_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Modified_Date: faker.helpers.arrayElement([ + ID: faker.number.int({ min: undefined, max: undefined }), + Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Start_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - ...overrideResponse, -}) - -export const getModulesObjectsBeleidskeuzeActiveLineageIdGetMock = ( - overrideResponse: any = {} -): ActiveModuleObjectWrapper[] => - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module: { - Closed: faker.datatype.boolean(), - Description: faker.word.sample(), - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Manager_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), ...overrideResponse, }, - undefined, - ]), - Module_Manager_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - Status: faker.helpers.arrayElement([ - { - Created_By_UUID: faker.string.uuid(), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - ID: faker.number.int({ min: undefined, max: undefined }), - Module_ID: faker.number.int({ + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + NationaleBelangen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Weblink: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined, }), - Status: faker.word.sample(), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - Title: faker.word.sample(), - ...overrideResponse, - }, - Module_Object: { - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Title: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - ...overrideResponse, - })) - -export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): BeleidskeuzeFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Beleidsdoelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), + })), + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - Beleidsregels: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), + undefined, + ]), + Provincial_Interest: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Werkingsgebied_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Werkingsgebied_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Explanation: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Gebied: faker.helpers.arrayElement([ - { - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - End_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, + WettelijkeTaken: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + ...overrideResponse, + }) + +export const getModulesObjectsBeleidskeuzeActiveLineageIdGetResponseMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module: { + Closed: faker.datatype.boolean(), + Description: faker.word.sample(), + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Manager_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Start_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, + Module_Manager_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Status: faker.helpers.arrayElement([ + { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + ID: faker.number.int({ min: undefined, max: undefined }), + Module_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Status: faker.word.sample(), + ...overrideResponse, + }, undefined, ]), Title: faker.word.sample(), - UUID: faker.string.uuid(), ...overrideResponse, }, - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), + Module_Object: { + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Module_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), + ...overrideResponse, + })) + +export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): BeleidskeuzeFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidsdoelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), + })), + undefined, + ]), + Beleidsregels: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Cause: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - NationaleBelangen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Explanation: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Gebied: faker.helpers.arrayElement([ + { + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + End_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - Weblink: faker.helpers.arrayElement([ - faker.word.sample(), + ID: faker.number.int({ min: undefined, max: undefined }), + Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Start_Validity: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), ...overrideResponse, }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + NationaleBelangen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Weblink: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), ...overrideResponse, }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Provincial_Interest: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + ...overrideResponse, + })), + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Werkingsgebied_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Werkingsgebied_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - WettelijkeTaken: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), + undefined, + ]), + Provincial_Interest: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Werkingsgebied_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Werkingsgebied_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - ...overrideResponse, -}) + undefined, + ]), + WettelijkeTaken: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + ...overrideResponse, + }) -export const getBeleidsregelsValidGetMock = ( +export const getBeleidsregelsValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseBeleidsregelBasic => ({ limit: faker.helpers.arrayElement([ @@ -5216,7 +5317,7 @@ export const getBeleidsregelsValidGetMock = ( ...overrideResponse, }) -export const getBeleidsregelsValidLineageIdGetMock = ( +export const getBeleidsregelsValidLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseBeleidsregelBasic => ({ limit: faker.helpers.arrayElement([ @@ -5271,7 +5372,7 @@ export const getBeleidsregelsValidLineageIdGetMock = ( ...overrideResponse, }) -export const getBeleidsregelsVersionObjectUuidGetMock = ( +export const getBeleidsregelsVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): BeleidsregelFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -5431,7 +5532,7 @@ export const getBeleidsregelsVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getBeleidsregelsLatestLineageIdGetMock = ( +export const getBeleidsregelsLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): BeleidsregelFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -5591,7 +5692,7 @@ export const getBeleidsregelsLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getBeleidsregelsRelationsLineageIdGetMock = ( +export const getBeleidsregelsRelationsLineageIdGetResponseMock = ( overrideResponse: any = {} ): ReadRelation[] => Array.from( @@ -5611,15 +5712,15 @@ export const getBeleidsregelsRelationsLineageIdGetMock = ( ...overrideResponse, })) -export const getBeleidsregelsRelationsLineageIdPutMock = ( +export const getBeleidsregelsRelationsLineageIdPutResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getBeleidsregelStaticLineageIdPostMock = ( +export const getBeleidsregelStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = ( +export const getModulesModuleIdObjectBeleidsregelLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseBeleidsregelExtended => ({ limit: faker.helpers.arrayElement([ @@ -5743,7 +5844,7 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidsregelLineageIdPatchMock = ( +export const getModulesModuleIdObjectBeleidsregelLineageIdPatchResponseMock = ( overrideResponse: any = {} ): BeleidsregelUUID => ({ Object_ID: faker.helpers.arrayElement([ @@ -5754,482 +5855,348 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdPatchMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectBeleidsregelLatestLineageIdGetMock = ( - overrideResponse: any = {} -): BeleidsregelFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - ...overrideResponse, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, +export const getModulesModuleIdObjectBeleidsregelLatestLineageIdGetResponseMock = + (overrideResponse: any = {}): BeleidsregelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), ...overrideResponse, }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, + ...overrideResponse, + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), - ...overrideResponse, -}) - -export const getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): BeleidsregelFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), - ...overrideResponse, -}) - -export const getModulesObjectsBeleidsregelActiveLineageIdGetMock = ( - overrideResponse: any = {} -): ActiveModuleObjectWrapper[] => - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module: { - Closed: faker.datatype.boolean(), - Description: faker.word.sample(), - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Manager_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Module_Manager_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, + }) + +export const getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): BeleidsregelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), ...overrideResponse, }, - undefined, - ]), - Status: faker.helpers.arrayElement([ - { - Created_By_UUID: faker.string.uuid(), - Created_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - ID: faker.number.int({ min: undefined, max: undefined }), - Module_ID: faker.number.int({ + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ min: undefined, max: undefined, }), - Status: faker.word.sample(), + Object_Type: faker.word.sample(), ...overrideResponse, }, - undefined, - ]), - Title: faker.word.sample(), - ...overrideResponse, - }, - Module_Object: { - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, + ...overrideResponse, + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Title: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - ...overrideResponse, - })) - -export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): BeleidsregelFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Owner_1: faker.helpers.arrayElement([ + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, + }) + +export const getModulesObjectsBeleidsregelActiveLineageIdGetResponseMock = ( + overrideResponse: any = {} +): ActiveModuleObjectWrapper[] => + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module: { + Closed: faker.datatype.boolean(), + Description: faker.word.sample(), + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Manager_1: faker.helpers.arrayElement([ { Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), @@ -6238,7 +6205,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = ( }, undefined, ]), - Owner_2: faker.helpers.arrayElement([ + Module_Manager_2: faker.helpers.arrayElement([ { Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), @@ -6247,55 +6214,204 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock = ( }, undefined, ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ + Status: faker.helpers.arrayElement([ { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), + Created_By_UUID: faker.string.uuid(), + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + ID: faker.number.int({ min: undefined, max: undefined }), + Module_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Status: faker.word.sample(), ...overrideResponse, }, undefined, ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, + Title: faker.word.sample(), + ...overrideResponse, + }, + Module_Object: { + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Module_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), undefined, ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + ...overrideResponse, + })) + +export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): BeleidsregelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), - ...overrideResponse, -}) + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Weblink: faker.helpers.arrayElement([faker.word.sample(), undefined]), + ...overrideResponse, + }) -export const getGebiedsprogrammasValidGetMock = ( +export const getGebiedsprogrammasValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseGebiedsprogrammaBasic => ({ limit: faker.helpers.arrayElement([ @@ -6353,7 +6469,7 @@ export const getGebiedsprogrammasValidGetMock = ( ...overrideResponse, }) -export const getGebiedsprogrammasValidLineageIdGetMock = ( +export const getGebiedsprogrammasValidLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseGebiedsprogrammaBasic => ({ limit: faker.helpers.arrayElement([ @@ -6411,7 +6527,7 @@ export const getGebiedsprogrammasValidLineageIdGetMock = ( ...overrideResponse, }) -export const getGebiedsprogrammasVersionObjectUuidGetMock = ( +export const getGebiedsprogrammasVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): GebiedsprogrammaFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -6574,7 +6690,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getGebiedsprogrammasLatestLineageIdGetMock = ( +export const getGebiedsprogrammasLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): GebiedsprogrammaFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -6737,7 +6853,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getGebiedsprogrammasRelationsLineageIdGetMock = ( +export const getGebiedsprogrammasRelationsLineageIdGetResponseMock = ( overrideResponse: any = {} ): ReadRelation[] => Array.from( @@ -6757,29 +6873,152 @@ export const getGebiedsprogrammasRelationsLineageIdGetMock = ( ...overrideResponse, })) -export const getGebiedsprogrammasRelationsLineageIdPutMock = ( +export const getGebiedsprogrammasRelationsLineageIdPutResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getGebiedsprogrammasStaticLineageIdPostMock = ( +export const getGebiedsprogrammasStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMock = ( - overrideResponse: any = {} -): PagedResponseGebiedsprogrammaExtended => ({ - limit: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - offset: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - results: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ +export const getModulesModuleIdObjectGebiedsprogrammasLineageIdGetResponseMock = + (overrideResponse: any = {}): PagedResponseGebiedsprogrammaExtended => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Image: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, + }) + +export const getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchResponseMock = + (overrideResponse: any = {}): GebiedsprogrammaUUID => ({ + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) + +export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetResponseMock = + (overrideResponse: any = {}): GebiedsprogrammaFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -6798,6 +7037,10 @@ export const getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), End_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -6809,6 +7052,46 @@ export const getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMock = ( faker.helpers.arrayElement([faker.word.sample(), null]), undefined, ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), Modified_By: faker.helpers.arrayElement([ { Gebruikersnaam: faker.word.sample(), @@ -6868,205 +7151,41 @@ export const getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMock = ( { Gebruikersnaam: faker.word.sample(), Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, - })), - total: faker.number.int({ min: undefined, max: undefined }), - ...overrideResponse, -}) - -export const getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchMock = ( - overrideResponse: any = {} -): GebiedsprogrammaUUID => ({ - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) - -export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock = ( - overrideResponse: any = {} -): GebiedsprogrammaFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Image: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) -export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = +export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetResponseMock = (overrideResponse: any = {}): GebiedsprogrammaFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), @@ -7234,7 +7353,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock = ...overrideResponse, }) -export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock = ( +export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetResponseMock = ( overrideResponse: any = {} ): ActiveModuleObjectWrapper[] => Array.from( @@ -7295,170 +7414,175 @@ export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock = ( ...overrideResponse, })) -export const getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): GebiedsprogrammaFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ +export const getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): GebiedsprogrammaFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Image: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Maatregelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Image: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Maatregelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) -export const getMaatregelenValidGetMock = ( +export const getMaatregelenValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseMaatregelBasic => ({ limit: faker.helpers.arrayElement([ @@ -7512,7 +7636,7 @@ export const getMaatregelenValidGetMock = ( ...overrideResponse, }) -export const getMaatregelenValidLineageIdGetMock = ( +export const getMaatregelenValidLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseMaatregelBasic => ({ limit: faker.helpers.arrayElement([ @@ -7566,7 +7690,7 @@ export const getMaatregelenValidLineageIdGetMock = ( ...overrideResponse, }) -export const getMaatregelenVersionObjectUuidGetMock = ( +export const getMaatregelenVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): MaatregelFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -7848,7 +7972,7 @@ export const getMaatregelenVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getMaatregelenLatestLineageIdGetMock = ( +export const getMaatregelenLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): MaatregelFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -8130,7 +8254,7 @@ export const getMaatregelenLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getMaatregelenRelationsLineageIdGetMock = ( +export const getMaatregelenRelationsLineageIdGetResponseMock = ( overrideResponse: any = {} ): ReadRelation[] => Array.from( @@ -8150,15 +8274,15 @@ export const getMaatregelenRelationsLineageIdGetMock = ( ...overrideResponse, })) -export const getMaatregelenRelationsLineageIdPutMock = ( +export const getMaatregelenRelationsLineageIdPutResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getMaatregelStaticLineageIdPostMock = ( +export const getMaatregelStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectMaatregelLineageIdGetMock = ( +export const getModulesModuleIdObjectMaatregelLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseMaatregelExtended => ({ limit: faker.helpers.arrayElement([ @@ -8312,7 +8436,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectMaatregelLineageIdPatchMock = ( +export const getModulesModuleIdObjectMaatregelLineageIdPatchResponseMock = ( overrideResponse: any = {} ): MaatregelUUID => ({ Object_ID: faker.helpers.arrayElement([ @@ -8323,7 +8447,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdPatchMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = ( +export const getModulesModuleIdObjectMaatregelLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): MaatregelFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -8605,289 +8729,304 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectMaatregelVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): MaatregelFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Beleidsdoelen: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), +export const getModulesModuleIdObjectMaatregelVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): MaatregelFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Beleidsdoelen: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Beleidskeuzes: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), + })), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Beleidskeuzes: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Effect: faker.helpers.arrayElement([faker.word.sample(), undefined]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Gebied: faker.helpers.arrayElement([ + { + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + End_Validity: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + ID: faker.number.int({ min: undefined, max: undefined }), + Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Start_Validity: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), ...overrideResponse, }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), + undefined, + ]), + Gebiedsprogrammas: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Object: { + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + Object_Type: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Title: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }, + Relation: { + Description: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.word.sample(), null]), + undefined, + ]), + Object_ID: faker.number.int({ + min: undefined, + max: undefined, + }), + Object_Type: faker.word.sample(), + ...overrideResponse, + }, + ...overrideResponse, + })), + undefined, + ]), + Hierarchy_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Hierarchy_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Effect: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Gebied: faker.helpers.arrayElement([ - { - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - End_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - ID: faker.number.int({ min: undefined, max: undefined }), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Start_Validity: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Title: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Gebiedsprogrammas: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Object: { - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Client_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Object_Type: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - Title: faker.helpers.arrayElement([ - faker.word.sample(), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), - UUID: faker.helpers.arrayElement([ - faker.string.uuid(), + Portfolio_Holder_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Portfolio_Holder_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, undefined, ]), ...overrideResponse, - }, - Relation: { - Description: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.word.sample(), null]), - undefined, - ]), + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Role: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Werkingsgebied_Code: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + Werkingsgebied_Statics: faker.helpers.arrayElement([ + { + Cached_Title: faker.word.sample(), + Code: faker.word.sample(), Object_ID: faker.number.int({ min: undefined, max: undefined }), Object_Type: faker.word.sample(), ...overrideResponse, }, - ...overrideResponse, - })), - undefined, - ]), - Hierarchy_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Hierarchy_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Client_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Portfolio_Holder_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Role: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Werkingsgebied_Code: faker.helpers.arrayElement([ - faker.word.sample(), - undefined, - ]), - Werkingsgebied_Statics: faker.helpers.arrayElement([ - { - Cached_Title: faker.word.sample(), - Code: faker.word.sample(), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - ...overrideResponse, - }, - undefined, - ]), - ...overrideResponse, -}) + ...overrideResponse, + }) -export const getModulesObjectsMaatregelActiveLineageIdGetMock = ( +export const getModulesObjectsMaatregelActiveLineageIdGetResponseMock = ( overrideResponse: any = {} ): ActiveModuleObjectWrapper[] => Array.from( @@ -8948,7 +9087,7 @@ export const getModulesObjectsMaatregelActiveLineageIdGetMock = ( ...overrideResponse, })) -export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = ( +export const getRevisionsModuleIdMaatregelVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): MaatregelFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -9230,7 +9369,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getNationaalBelangPostMock = ( +export const getNationaalBelangPostResponseMock = ( overrideResponse: any = {} ): NationaalBelangUUID => ({ Object_ID: faker.helpers.arrayElement([ @@ -9241,15 +9380,15 @@ export const getNationaalBelangPostMock = ( ...overrideResponse, }) -export const getNationaalBelangLineageIdPostMock = ( +export const getNationaalBelangLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getNationaalBelangLineageIdDeleteMock = ( +export const getNationaalBelangLineageIdDeleteResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getNationaalBelangValidGetMock = ( +export const getNationaalBelangValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseNationaalBelangBasic => ({ limit: faker.helpers.arrayElement([ @@ -9290,7 +9429,7 @@ export const getNationaalBelangValidGetMock = ( ...overrideResponse, }) -export const getNationaalBelangLatestLineageIdGetMock = ( +export const getNationaalBelangLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): NationaalBelangFull => ({ Beleidskeuzes: faker.helpers.arrayElement([ @@ -9388,7 +9527,7 @@ export const getNationaalBelangLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getNationaalBelangRelationsLineageIdGetMock = ( +export const getNationaalBelangRelationsLineageIdGetResponseMock = ( overrideResponse: any = {} ): ReadRelation[] => Array.from( @@ -9408,15 +9547,15 @@ export const getNationaalBelangRelationsLineageIdGetMock = ( ...overrideResponse, })) -export const getNationaalBelangRelationsLineageIdPutMock = ( +export const getNationaalBelangRelationsLineageIdPutResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getNationaalBelangStaticLineageIdPostMock = ( +export const getNationaalBelangStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getProgrammasAlgemeenValidGetMock = ( +export const getProgrammasAlgemeenValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseProgrammaAlgemeenBasic => ({ limit: faker.helpers.arrayElement([ @@ -9470,7 +9609,7 @@ export const getProgrammasAlgemeenValidGetMock = ( ...overrideResponse, }) -export const getProgrammasAlgemeenValidLineageIdGetMock = ( +export const getProgrammasAlgemeenValidLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseProgrammaAlgemeenBasic => ({ limit: faker.helpers.arrayElement([ @@ -9524,7 +9663,7 @@ export const getProgrammasAlgemeenValidLineageIdGetMock = ( ...overrideResponse, }) -export const getProgrammasAlgemeenVersionObjectUuidGetMock = ( +export const getProgrammasAlgemeenVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): ProgrammaAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -9619,7 +9758,7 @@ export const getProgrammasAlgemeenVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getProgrammasAlgemeenLatestLineageIdGetMock = ( +export const getProgrammasAlgemeenLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): ProgrammaAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -9714,25 +9853,117 @@ export const getProgrammasAlgemeenLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getProgrammaAlgemeenStaticLineageIdPostMock = ( +export const getProgrammaAlgemeenStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMock = ( - overrideResponse: any = {} -): PagedResponseProgrammaAlgemeenExtended => ({ - limit: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - offset: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - results: Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ +export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetResponseMock = + (overrideResponse: any = {}): PagedResponseProgrammaAlgemeenExtended => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, + }) + +export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchResponseMock = + (overrideResponse: any = {}): ProgrammaAlgemeenUUID => ({ + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) + +export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetResponseMock = + (overrideResponse: any = {}): ProgrammaAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), undefined, @@ -9751,6 +9982,10 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), End_Validity: faker.helpers.arrayElement([ faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -9796,7 +10031,20 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMock = ( undefined, ]), ...overrideResponse, - }, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), undefined, ]), Start_Validity: faker.helpers.arrayElement([ @@ -9809,118 +10057,9 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMock = ( Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), ...overrideResponse, - })), - total: faker.number.int({ min: undefined, max: undefined }), - ...overrideResponse, -}) - -export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchMock = ( - overrideResponse: any = {} -): ProgrammaAlgemeenUUID => ({ - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) - -export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock = ( - overrideResponse: any = {} -): ProgrammaAlgemeenFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, - ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) + }) -export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock = +export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetResponseMock = (overrideResponse: any = {}): ProgrammaAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ faker.helpers.arrayElement([faker.string.uuid(), null]), @@ -10017,7 +10156,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock = ...overrideResponse, }) -export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock = ( +export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetResponseMock = ( overrideResponse: any = {} ): ActiveModuleObjectWrapper[] => Array.from( @@ -10078,102 +10217,104 @@ export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock = ( ...overrideResponse, })) -export const getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): ProgrammaAlgemeenFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ +export const getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): ProgrammaAlgemeenFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) -export const getVerplichtProgrammaPostMock = ( +export const getVerplichtProgrammaPostResponseMock = ( overrideResponse: any = {} ): VerplichtProgrammaUUID => ({ Object_ID: faker.helpers.arrayElement([ @@ -10184,15 +10325,15 @@ export const getVerplichtProgrammaPostMock = ( ...overrideResponse, }) -export const getVerplichtProgrammaLineageIdPostMock = ( +export const getVerplichtProgrammaLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getVerplichtProgrammaLineageIdDeleteMock = ( +export const getVerplichtProgrammaLineageIdDeleteResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getVerplichtProgrammaValidGetMock = ( +export const getVerplichtProgrammaValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseVerplichtProgrammaBasic => ({ limit: faker.helpers.arrayElement([ @@ -10232,7 +10373,7 @@ export const getVerplichtProgrammaValidGetMock = ( ...overrideResponse, }) -export const getVerplichtProgrammaLatestLineageIdGetMock = ( +export const getVerplichtProgrammaLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): VerplichtProgrammaFull => ({ Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), @@ -10376,7 +10517,7 @@ export const getVerplichtProgrammaLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getVerplichtProgrammaRelationsLineageIdGetMock = ( +export const getVerplichtProgrammaRelationsLineageIdGetResponseMock = ( overrideResponse: any = {} ): ReadRelation[] => Array.from( @@ -10396,15 +10537,15 @@ export const getVerplichtProgrammaRelationsLineageIdGetMock = ( ...overrideResponse, })) -export const getVerplichtProgrammaRelationsLineageIdPutMock = ( +export const getVerplichtProgrammaRelationsLineageIdPutResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getVerplichtProgrammaStaticLineageIdPostMock = ( +export const getVerplichtProgrammaStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getVisiesAlgemeenValidGetMock = ( +export const getVisiesAlgemeenValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseVisieAlgemeenBasic => ({ limit: faker.helpers.arrayElement([ @@ -10458,7 +10599,7 @@ export const getVisiesAlgemeenValidGetMock = ( ...overrideResponse, }) -export const getVisiesAlgemeenValidLineageIdGetMock = ( +export const getVisiesAlgemeenValidLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseVisieAlgemeenBasic => ({ limit: faker.helpers.arrayElement([ @@ -10512,7 +10653,7 @@ export const getVisiesAlgemeenValidLineageIdGetMock = ( ...overrideResponse, }) -export const getVisiesAlgemeenVersionObjectUuidGetMock = ( +export const getVisiesAlgemeenVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): VisieAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -10607,7 +10748,7 @@ export const getVisiesAlgemeenVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getVisiesAlgemeenLatestLineageIdGetMock = ( +export const getVisiesAlgemeenLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): VisieAlgemeenFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -10702,11 +10843,11 @@ export const getVisiesAlgemeenLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getVisieAlgemeenStaticLineageIdPostMock = ( +export const getVisieAlgemeenStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectVisieAlgemeenLineageIdGetMock = ( +export const getModulesModuleIdObjectVisieAlgemeenLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseVisieAlgemeenExtended => ({ limit: faker.helpers.arrayElement([ @@ -10802,7 +10943,7 @@ export const getModulesModuleIdObjectVisieAlgemeenLineageIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMock = ( +export const getModulesModuleIdObjectVisieAlgemeenLineageIdPatchResponseMock = ( overrideResponse: any = {} ): VisieAlgemeenUUID => ({ Object_ID: faker.helpers.arrayElement([ @@ -10813,197 +10954,201 @@ export const getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetMock = ( - overrideResponse: any = {} -): VisieAlgemeenFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ +export const getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetResponseMock = + (overrideResponse: any = {}): VisieAlgemeenFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) - -export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): VisieAlgemeenFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) + +export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): VisieAlgemeenFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) -export const getModulesObjectVisieAlgemeenActiveLineageIdGetMock = ( +export const getModulesObjectVisieAlgemeenActiveLineageIdGetResponseMock = ( overrideResponse: any = {} ): ActiveModuleObjectWrapper[] => Array.from( @@ -11064,102 +11209,104 @@ export const getModulesObjectVisieAlgemeenActiveLineageIdGetMock = ( ...overrideResponse, })) -export const getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): VisieAlgemeenFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ +export const getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): VisieAlgemeenFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Public_Revisions: faker.helpers.arrayElement([ + Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Module_Object_UUID: faker.string.uuid(), + Module_Status: faker.word.sample(), + Module_Title: faker.word.sample(), + ...overrideResponse, + })), + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Public_Revisions: faker.helpers.arrayElement([ - Array.from( - { length: faker.number.int({ min: 1, max: 10 }) }, - (_, i) => i + 1 - ).map(() => ({ - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Module_Object_UUID: faker.string.uuid(), - Module_Status: faker.word.sample(), - Module_Title: faker.word.sample(), - ...overrideResponse, - })), - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) -export const getWerkingsgebiedenValidGetMock = ( +export const getWerkingsgebiedenValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseWerkingsgebiedBasic => ({ limit: faker.helpers.arrayElement([ @@ -11214,7 +11361,7 @@ export const getWerkingsgebiedenValidGetMock = ( ...overrideResponse, }) -export const getWerkingsgebiedenValidLineageIdGetMock = ( +export const getWerkingsgebiedenValidLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseWerkingsgebiedBasic => ({ limit: faker.helpers.arrayElement([ @@ -11269,7 +11416,7 @@ export const getWerkingsgebiedenValidLineageIdGetMock = ( ...overrideResponse, }) -export const getWerkingsgebiedenVersionObjectUuidGetMock = ( +export const getWerkingsgebiedenVersionObjectUuidGetResponseMock = ( overrideResponse: any = {} ): WerkingsgebiedFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -11366,7 +11513,7 @@ export const getWerkingsgebiedenVersionObjectUuidGetMock = ( ...overrideResponse, }) -export const getWerkingsgebiedenLatestLineageIdGetMock = ( +export const getWerkingsgebiedenLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): WerkingsgebiedFull => ({ Adjust_On: faker.helpers.arrayElement([ @@ -11463,11 +11610,11 @@ export const getWerkingsgebiedenLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getWerkingsgebiedStaticLineageIdPostMock = ( +export const getWerkingsgebiedStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectWerkingsgebiedLineageIdGetMock = ( +export const getModulesModuleIdObjectWerkingsgebiedLineageIdGetResponseMock = ( overrideResponse: any = {} ): PagedResponseWerkingsgebiedExtended => ({ limit: faker.helpers.arrayElement([ @@ -11564,212 +11711,219 @@ export const getModulesModuleIdObjectWerkingsgebiedLineageIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdObjectWerkingsgebiedLineageIdPatchMock = ( - overrideResponse: any = {} -): WerkingsgebiedUUID => ({ - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) +export const getModulesModuleIdObjectWerkingsgebiedLineageIdPatchResponseMock = + (overrideResponse: any = {}): WerkingsgebiedUUID => ({ + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) -export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock = ( - overrideResponse: any = {} -): WerkingsgebiedFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Area: faker.helpers.arrayElement([ - { - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Source_Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Source_Title: faker.word.sample(), - Source_UUID: faker.string.uuid(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ +export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetResponseMock = + (overrideResponse: any = {}): WerkingsgebiedFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Area: faker.helpers.arrayElement([ + { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Source_Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Source_Title: faker.word.sample(), + Source_UUID: faker.string.uuid(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, + ]), + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) + +export const getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): WerkingsgebiedFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Area: faker.helpers.arrayElement([ + { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Source_Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Source_Title: faker.word.sample(), + Source_UUID: faker.string.uuid(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) - -export const getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): WerkingsgebiedFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Area: faker.helpers.arrayElement([ - { - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Source_Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Source_Title: faker.word.sample(), - Source_UUID: faker.string.uuid(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) -export const getModulesObjectWerkingsgebiedActiveLineageIdGetMock = ( +export const getModulesObjectWerkingsgebiedActiveLineageIdGetResponseMock = ( overrideResponse: any = {} ): ActiveModuleObjectWrapper[] => Array.from( @@ -11830,104 +11984,108 @@ export const getModulesObjectWerkingsgebiedActiveLineageIdGetMock = ( ...overrideResponse, })) -export const getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetMock = ( - overrideResponse: any = {} -): WerkingsgebiedFull => ({ - Adjust_On: faker.helpers.arrayElement([ - faker.helpers.arrayElement([faker.string.uuid(), null]), - undefined, - ]), - Area: faker.helpers.arrayElement([ - { - Created_By_UUID: faker.string.uuid(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Source_Modified_Date: `${ - faker.date.past().toISOString().split('.')[0] - }Z`, - Source_Title: faker.word.sample(), - Source_UUID: faker.string.uuid(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Description: faker.helpers.arrayElement([faker.word.sample(), undefined]), - End_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ +export const getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetResponseMock = + (overrideResponse: any = {}): WerkingsgebiedFull => ({ + Adjust_On: faker.helpers.arrayElement([ + faker.helpers.arrayElement([faker.string.uuid(), null]), + undefined, + ]), + Area: faker.helpers.arrayElement([ + { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Source_Modified_Date: `${ + faker.date.past().toISOString().split('.')[0] + }Z`, + Source_Title: faker.word.sample(), + Source_UUID: faker.string.uuid(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Area_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Code: faker.helpers.arrayElement([faker.word.sample(), undefined]), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + Description: faker.helpers.arrayElement([ + faker.word.sample(), + undefined, + ]), + End_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, + ]), + undefined, + ]), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - undefined, - ]), - Object_ID: faker.helpers.arrayElement([ - faker.number.int({ min: undefined, max: undefined }), - undefined, - ]), - ObjectStatics: faker.helpers.arrayElement([ - { - Owner_1: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Owner_2: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, + Object_ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + ObjectStatics: faker.helpers.arrayElement([ + { + Owner_1: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Owner_2: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + ...overrideResponse, + }, + undefined, + ]), + Start_Validity: faker.helpers.arrayElement([ + faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + null, ]), - ...overrideResponse, - }, - undefined, - ]), - Start_Validity: faker.helpers.arrayElement([ - faker.helpers.arrayElement([ - `${faker.date.past().toISOString().split('.')[0]}Z`, - null, + undefined, ]), - undefined, - ]), - Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), - UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), - ...overrideResponse, -}) + Title: faker.helpers.arrayElement([faker.word.sample(), undefined]), + UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + ...overrideResponse, + }) -export const getWettelijkeTaakPostMock = ( +export const getWettelijkeTaakPostResponseMock = ( overrideResponse: any = {} ): WettelijkeTaakUUID => ({ Object_ID: faker.helpers.arrayElement([ @@ -11938,15 +12096,15 @@ export const getWettelijkeTaakPostMock = ( ...overrideResponse, }) -export const getWettelijkeTaakLineageIdPostMock = ( +export const getWettelijkeTaakLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getWettelijkeTaakLineageIdDeleteMock = ( +export const getWettelijkeTaakLineageIdDeleteResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getWettelijkeTaakValidGetMock = ( +export const getWettelijkeTaakValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseWettelijkeTaakBasic => ({ limit: faker.helpers.arrayElement([ @@ -11987,7 +12145,7 @@ export const getWettelijkeTaakValidGetMock = ( ...overrideResponse, }) -export const getWettelijkeTaakLatestLineageIdGetMock = ( +export const getWettelijkeTaakLatestLineageIdGetResponseMock = ( overrideResponse: any = {} ): WettelijkeTaakFull => ({ Beleidskeuzes: faker.helpers.arrayElement([ @@ -12131,7 +12289,7 @@ export const getWettelijkeTaakLatestLineageIdGetMock = ( ...overrideResponse, }) -export const getWettelijkeTaakRelationsLineageIdGetMock = ( +export const getWettelijkeTaakRelationsLineageIdGetResponseMock = ( overrideResponse: any = {} ): ReadRelation[] => Array.from( @@ -12151,15 +12309,15 @@ export const getWettelijkeTaakRelationsLineageIdGetMock = ( ...overrideResponse, })) -export const getWettelijkeTaakRelationsLineageIdPutMock = ( +export const getWettelijkeTaakRelationsLineageIdPutResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getWettelijkeTaakStaticLineageIdPostMock = ( +export const getWettelijkeTaakStaticLineageIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getUsersGetMock = ( +export const getUsersGetResponseMock = ( overrideResponse: any = {} ): PagedResponseUser => ({ limit: faker.helpers.arrayElement([ @@ -12186,7 +12344,7 @@ export const getUsersGetMock = ( ...overrideResponse, }) -export const getUsersPostMock = ( +export const getUsersPostResponseMock = ( overrideResponse: any = {} ): UserCreateResponse => ({ Email: faker.word.sample(), @@ -12196,7 +12354,7 @@ export const getUsersPostMock = ( ...overrideResponse, }) -export const getUsersSearchGetMock = ( +export const getUsersSearchGetResponseMock = ( overrideResponse: any = {} ): PagedResponseUser => ({ limit: faker.helpers.arrayElement([ @@ -12223,7 +12381,9 @@ export const getUsersSearchGetMock = ( ...overrideResponse, }) -export const getUsersUserUuidGetMock = (overrideResponse: any = {}): User => ({ +export const getUsersUserUuidGetResponseMock = ( + overrideResponse: any = {} +): User => ({ Email: faker.word.sample(), Gebruikersnaam: faker.word.sample(), IsActive: faker.datatype.boolean(), @@ -12233,11 +12393,11 @@ export const getUsersUserUuidGetMock = (overrideResponse: any = {}): User => ({ ...overrideResponse, }) -export const getUsersUserUuidPostMock = ( +export const getUsersUserUuidPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getUsersUserUuidResetPasswordPostMock = ( +export const getUsersUserUuidResetPasswordPostResponseMock = ( overrideResponse: any = {} ): ResetPasswordResponse => ({ NewPassword: faker.word.sample(), @@ -12245,7 +12405,7 @@ export const getUsersUserUuidResetPasswordPostMock = ( ...overrideResponse, }) -export const getSourceWerkingsgebiedenGetMock = ( +export const getSourceWerkingsgebiedenGetResponseMock = ( overrideResponse: any = {} ): PagedResponseWerkingsgebied => ({ limit: faker.helpers.arrayElement([ @@ -12279,7 +12439,7 @@ export const getSourceWerkingsgebiedenGetMock = ( ...overrideResponse, }) -export const getSearchSourceGeoPostMock = ( +export const getSearchSourceGeoPostResponseMock = ( overrideResponse: any = {} ): PagedResponseGeoSearchResult => ({ limit: faker.helpers.arrayElement([ @@ -12314,7 +12474,7 @@ export const getSearchSourceGeoPostMock = ( ...overrideResponse, }) -export const getSearchSourceGeometryPostMock = ( +export const getSearchSourceGeometryPostResponseMock = ( overrideResponse: any = {} ): PagedResponseGeoSearchResult => ({ limit: faker.helpers.arrayElement([ @@ -12349,7 +12509,7 @@ export const getSearchSourceGeometryPostMock = ( ...overrideResponse, }) -export const getSearchPostMock = ( +export const getSearchPostResponseMock = ( overrideResponse: any = {} ): PagedResponseSearchObject => ({ limit: faker.helpers.arrayElement([ @@ -12381,7 +12541,7 @@ export const getSearchPostMock = ( ...overrideResponse, }) -export const getSearchValidPostMock = ( +export const getSearchValidPostResponseMock = ( overrideResponse: any = {} ): PagedResponseValidSearchObject => ({ limit: faker.helpers.arrayElement([ @@ -12409,7 +12569,7 @@ export const getSearchValidPostMock = ( ...overrideResponse, }) -export const getFullGraphGetMock = ( +export const getFullGraphGetResponseMock = ( overrideResponse: any = {} ): GraphResponse => ({ Edges: Array.from( @@ -12435,7 +12595,7 @@ export const getFullGraphGetMock = ( ...overrideResponse, }) -export const getObjectGraphGetMock = ( +export const getObjectGraphGetResponseMock = ( overrideResponse: any = {} ): GraphResponse => ({ Edges: Array.from( @@ -12461,7 +12621,7 @@ export const getObjectGraphGetMock = ( ...overrideResponse, }) -export const getRevisionsGetMock = ( +export const getRevisionsGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublicModuleShort => ({ limit: faker.helpers.arrayElement([ @@ -12498,7 +12658,7 @@ export const getRevisionsGetMock = ( ...overrideResponse, }) -export const getRevisionsModuleIdGetMock = ( +export const getRevisionsModuleIdGetResponseMock = ( overrideResponse: any = {} ): PublicModuleOverview => ({ Module: { @@ -12548,7 +12708,7 @@ export const getRevisionsModuleIdGetMock = ( ...overrideResponse, }) -export const getModulesGetMock = ( +export const getModulesGetResponseMock = ( overrideResponse: any = {} ): PagedResponseModule => ({ limit: faker.helpers.arrayElement([ @@ -12634,14 +12794,14 @@ export const getModulesGetMock = ( ...overrideResponse, }) -export const getModulesPostMock = ( +export const getModulesPostResponseMock = ( overrideResponse: any = {} ): ModuleCreatedResponse => ({ Module_ID: faker.number.int({ min: undefined, max: undefined }), ...overrideResponse, }) -export const getModulesModuleIdGetMock = ( +export const getModulesModuleIdGetResponseMock = ( overrideResponse: any = {} ): ModuleOverview => ({ Module: { @@ -12776,23 +12936,23 @@ export const getModulesModuleIdGetMock = ( ...overrideResponse, }) -export const getModulesModuleIdPostMock = ( +export const getModulesModuleIdPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdActivatePostMock = ( +export const getModulesModuleIdActivatePostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdCompletePostMock = ( +export const getModulesModuleIdCompletePostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdClosePostMock = ( +export const getModulesModuleIdClosePostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdStatusGetMock = ( +export const getModulesModuleIdStatusGetResponseMock = ( overrideResponse: any = {} ): ModuleStatus[] => Array.from( @@ -12807,11 +12967,11 @@ export const getModulesModuleIdStatusGetMock = ( ...overrideResponse, })) -export const getModulesModuleIdStatusPatchMock = ( +export const getModulesModuleIdStatusPatchResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdAddNewObjectPostMock = ( +export const getModulesModuleIdAddNewObjectPostResponseMock = ( overrideResponse: any = {} ): NewObjectStaticResponse => ({ Code: faker.word.sample(), @@ -12820,56 +12980,57 @@ export const getModulesModuleIdAddNewObjectPostMock = ( ...overrideResponse, }) -export const getModulesModuleIdAddExistingObjectPostMock = ( +export const getModulesModuleIdAddExistingObjectPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdObjectContextObjectTypeLineageIdGetMock = ( - overrideResponse: any = {} -): ModuleObjectContext => ({ - Action: faker.word.sample(), - Code: faker.word.sample(), - Conclusion: faker.word.sample(), - Created_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Explanation: faker.word.sample(), - Modified_By: faker.helpers.arrayElement([ - { - Gebruikersnaam: faker.word.sample(), - Rol: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, - undefined, - ]), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Module_ID: faker.number.int({ min: undefined, max: undefined }), - Object_ID: faker.number.int({ min: undefined, max: undefined }), - Object_Type: faker.word.sample(), - Original_Adjust_On: faker.helpers.arrayElement([ - faker.string.uuid(), - undefined, - ]), - ...overrideResponse, -}) +export const getModulesModuleIdObjectContextObjectTypeLineageIdGetResponseMock = + (overrideResponse: any = {}): ModuleObjectContext => ({ + Action: faker.word.sample(), + Code: faker.word.sample(), + Conclusion: faker.word.sample(), + Created_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Explanation: faker.word.sample(), + Modified_By: faker.helpers.arrayElement([ + { + Gebruikersnaam: faker.word.sample(), + Rol: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + undefined, + ]), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Object_ID: faker.number.int({ min: undefined, max: undefined }), + Object_Type: faker.word.sample(), + Original_Adjust_On: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + ...overrideResponse, + }) -export const getModulesModuleIdObjectContextObjectTypeLineageIdPostMock = ( - overrideResponse: any = {} -): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) +export const getModulesModuleIdObjectContextObjectTypeLineageIdPostResponseMock = + (overrideResponse: any = {}): ResponseOK => ({ + message: faker.word.sample(), + ...overrideResponse, + }) -export const getModulesModuleIdRemoveObjectTypeLineageIdDeleteMock = ( +export const getModulesModuleIdRemoveObjectTypeLineageIdDeleteResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getModulesModuleIdSnapshotStatusIdGetMock = ( +export const getModulesModuleIdSnapshotStatusIdGetResponseMock = ( overrideResponse: any = {} ): ModuleSnapshot => ({ Objects: Array.from( @@ -12879,7 +13040,7 @@ export const getModulesModuleIdSnapshotStatusIdGetMock = ( ...overrideResponse, }) -export const getModulesObjectsLatestGetMock = ( +export const getModulesObjectsLatestGetResponseMock = ( overrideResponse: any = {} ): PagedResponseModuleObjectShortStatus => ({ limit: faker.helpers.arrayElement([ @@ -12945,7 +13106,7 @@ export const getModulesObjectsLatestGetMock = ( ...overrideResponse, }) -export const getObjectsValidCountGetMock = ( +export const getObjectsValidCountGetResponseMock = ( overrideResponse: any = {} ): ObjectCount[] => Array.from( @@ -12957,7 +13118,7 @@ export const getObjectsValidCountGetMock = ( ...overrideResponse, })) -export const getObjectsValidGetMock = ( +export const getObjectsValidGetResponseMock = ( overrideResponse: any = {} ): PagedResponseGenericObjectShort => ({ limit: faker.helpers.arrayElement([ @@ -12982,7 +13143,7 @@ export const getObjectsValidGetMock = ( ...overrideResponse, }) -export const getPublicationAojGetMock = ( +export const getPublicationAojGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublicationAOJ => ({ limit: faker.helpers.arrayElement([ @@ -13011,11 +13172,11 @@ export const getPublicationAojGetMock = ( ...overrideResponse, }) -export const getPublicationAojPostMock = ( +export const getPublicationAojPostResponseMock = ( overrideResponse: any = {} ): AOJCreatedResponse => ({ UUID: faker.string.uuid(), ...overrideResponse }) -export const getPublicationTemplatesGetMock = ( +export const getPublicationTemplatesGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublicationTemplate => ({ limit: faker.helpers.arrayElement([ @@ -13055,14 +13216,14 @@ export const getPublicationTemplatesGetMock = ( ...overrideResponse, }) -export const getPublicationTemplatesPostMock = ( +export const getPublicationTemplatesPostResponseMock = ( overrideResponse: any = {} ): TemplateCreatedResponse => ({ UUID: faker.string.uuid(), ...overrideResponse, }) -export const getPublicationTemplatesTemplateUuidGetMock = ( +export const getPublicationTemplatesTemplateUuidGetResponseMock = ( overrideResponse: any = {} ): PublicationTemplate => ({ Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -13087,11 +13248,11 @@ export const getPublicationTemplatesTemplateUuidGetMock = ( ...overrideResponse, }) -export const getPublicationTemplatesTemplateUuidPostMock = ( +export const getPublicationTemplatesTemplateUuidPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getPublicationEnvironmentsGetMock = ( +export const getPublicationEnvironmentsGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublicationEnvironment => ({ limit: faker.helpers.arrayElement([ @@ -13127,18 +13288,18 @@ export const getPublicationEnvironmentsGetMock = ( ...overrideResponse, }) -export const getPublicationEnvironmentsPostMock = ( +export const getPublicationEnvironmentsPostResponseMock = ( overrideResponse: any = {} ): EnvironmentCreatedResponse => ({ UUID: faker.string.uuid(), ...overrideResponse, }) -export const getPublicationEnvironmentsEnvironmentUuidPostMock = ( +export const getPublicationEnvironmentsEnvironmentUuidPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getPublicationsGetMock = ( +export const getPublicationsGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublication => ({ limit: faker.helpers.arrayElement([ @@ -13169,14 +13330,14 @@ export const getPublicationsGetMock = ( ...overrideResponse, }) -export const getPublicationsPostMock = ( +export const getPublicationsPostResponseMock = ( overrideResponse: any = {} ): PublicationCreatedResponse => ({ UUID: faker.string.uuid(), ...overrideResponse, }) -export const getPublicationsPublicationUuidGetMock = ( +export const getPublicationsPublicationUuidGetResponseMock = ( overrideResponse: any = {} ): Publication => ({ Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -13189,18 +13350,18 @@ export const getPublicationsPublicationUuidGetMock = ( ...overrideResponse, }) -export const getPublicationsPublicationUuidPostMock = ( +export const getPublicationsPublicationUuidPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) -export const getPublicationsPublicationUuidVersionPostMock = ( +export const getPublicationsPublicationUuidVersionPostResponseMock = ( overrideResponse: any = {} ): PublicationVersionCreatedResponse => ({ UUID: faker.string.uuid(), ...overrideResponse, }) -export const getPublicationsPublicationUuidVersionsGetMock = ( +export const getPublicationsPublicationUuidVersionsGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublicationVersionShort => ({ limit: faker.helpers.arrayElement([ @@ -13245,7 +13406,7 @@ export const getPublicationsPublicationUuidVersionsGetMock = ( ...overrideResponse, }) -export const getPublicationVersionsVersionUuidGetMock = ( +export const getPublicationVersionsVersionUuidGetResponseMock = ( overrideResponse: any = {} ): PublicationVersion => ({ Act_Metadata: {}, @@ -13308,14 +13469,14 @@ export const getPublicationVersionsVersionUuidGetMock = ( ...overrideResponse, }) -export const getPublicationVersionsVersionUuidPostMock = ( +export const getPublicationVersionsVersionUuidPostResponseMock = ( overrideResponse: any = {} ): PublicationVersionEditResponse => ({ Is_Valid: faker.datatype.boolean(), ...overrideResponse, }) -export const getPublicationVersionsVersionUuidPackagesPostMock = ( +export const getPublicationVersionsVersionUuidPackagesPostResponseMock = ( overrideResponse: any = {} ): PublicationPackageCreatedResponse => ({ Package_UUID: faker.string.uuid(), @@ -13323,7 +13484,7 @@ export const getPublicationVersionsVersionUuidPackagesPostMock = ( ...overrideResponse, }) -export const getPublicationPackagesGetMock = ( +export const getPublicationPackagesGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublicationPackage => ({ limit: faker.helpers.arrayElement([ @@ -13365,7 +13526,10 @@ export const getPublicationPackagesGetMock = ( ...overrideResponse, }) -export const getPublicationPackagesPackageUuidReportPostMock = ( +export const getPublicationPackagesPackageUuidDownloadGetResponseMock = + (): PublicationPackagesPackageUuidDownloadGet200 => ({}) + +export const getPublicationPackagesPackageUuidReportPostResponseMock = ( overrideResponse: any = {} ): UploadPackageReportResponse => ({ Duplicate_Count: faker.number.int({ min: undefined, max: undefined }), @@ -13373,7 +13537,7 @@ export const getPublicationPackagesPackageUuidReportPostMock = ( ...overrideResponse, }) -export const getPublicationReportsGetMock = ( +export const getPublicationReportsGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublicationPackageReportShort => ({ limit: faker.helpers.arrayElement([ @@ -13400,7 +13564,7 @@ export const getPublicationReportsGetMock = ( ...overrideResponse, }) -export const getPublicationReportsReportUuidGetMock = ( +export const getPublicationReportsReportUuidGetResponseMock = ( overrideResponse: any = {} ): PublicationPackageReport => ({ Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -13416,7 +13580,10 @@ export const getPublicationReportsReportUuidGetMock = ( ...overrideResponse, }) -export const getLoginAccessTokenPostMock = ( +export const getPublicationReportsReportUuidDownloadGetResponseMock = + (): PublicationReportsReportUuidDownloadGet200 => ({}) + +export const getLoginAccessTokenPostResponseMock = ( overrideResponse: any = {} ): AuthToken => ({ access_token: faker.word.sample(), @@ -13430,10 +13597,13 @@ export const getLoginAccessTokenPostMock = ( ...overrideResponse, }) -export const getPasswordResetPostMock = ( +export const getPasswordResetPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) +export const getHealthCheckHealthGetResponseMock = + (): HealthCheckHealthGet200 => ({}) + export const getAmbitiesValidGetMockHandler = ( overrideResponse?: PagedResponseAmbitieBasic ) => { @@ -13441,7 +13611,9 @@ export const getAmbitiesValidGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getAmbitiesValidGetMock() + overrideResponse + ? overrideResponse + : getAmbitiesValidGetResponseMock() ), { status: 200, @@ -13462,7 +13634,7 @@ export const getAmbitiesValidLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getAmbitiesValidLineageIdGetMock() + : getAmbitiesValidLineageIdGetResponseMock() ), { status: 200, @@ -13483,7 +13655,7 @@ export const getAmbitiesVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getAmbitiesVersionObjectUuidGetMock() + : getAmbitiesVersionObjectUuidGetResponseMock() ), { status: 200, @@ -13504,7 +13676,7 @@ export const getAmbitiesLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getAmbitiesLatestLineageIdGetMock() + : getAmbitiesLatestLineageIdGetResponseMock() ), { status: 200, @@ -13525,7 +13697,7 @@ export const getAmbitiesRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getAmbitiesRelationsLineageIdGetMock() + : getAmbitiesRelationsLineageIdGetResponseMock() ), { status: 200, @@ -13546,7 +13718,7 @@ export const getAmbitiesRelationsLineageIdPutMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getAmbitiesRelationsLineageIdPutMock() + : getAmbitiesRelationsLineageIdPutResponseMock() ), { status: 200, @@ -13567,7 +13739,7 @@ export const getAmbitieStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getAmbitieStaticLineageIdPostMock() + : getAmbitieStaticLineageIdPostResponseMock() ), { status: 200, @@ -13590,7 +13762,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectAmbitieLineageIdGetMock() + : getModulesModuleIdObjectAmbitieLineageIdGetResponseMock() ), { status: 200, @@ -13614,7 +13786,7 @@ export const getModulesModuleIdObjectAmbitieLineageIdPatchMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectAmbitieLineageIdPatchMock() + : getModulesModuleIdObjectAmbitieLineageIdPatchResponseMock() ), { status: 200, @@ -13638,7 +13810,7 @@ export const getModulesModuleIdObjectAmbitieLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectAmbitieLatestLineageIdGetMock() + : getModulesModuleIdObjectAmbitieLatestLineageIdGetResponseMock() ), { status: 200, @@ -13662,7 +13834,7 @@ export const getModulesModuleIdObjectAmbitieVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectAmbitieVersionObjectUuidGetMock() + : getModulesModuleIdObjectAmbitieVersionObjectUuidGetResponseMock() ), { status: 200, @@ -13684,7 +13856,7 @@ export const getModulesObjectAmbitieActiveLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectAmbitieActiveLineageIdGetMock() + : getModulesObjectAmbitieActiveLineageIdGetResponseMock() ), { status: 200, @@ -13707,7 +13879,7 @@ export const getRevisionsModuleIdAmbitieVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdAmbitieVersionObjectUuidGetMock() + : getRevisionsModuleIdAmbitieVersionObjectUuidGetResponseMock() ), { status: 200, @@ -13729,7 +13901,7 @@ export const getBeleidsdoelenValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsdoelenValidGetMock() + : getBeleidsdoelenValidGetResponseMock() ), { status: 200, @@ -13750,7 +13922,7 @@ export const getBeleidsdoelenValidLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsdoelenValidLineageIdGetMock() + : getBeleidsdoelenValidLineageIdGetResponseMock() ), { status: 200, @@ -13771,7 +13943,7 @@ export const getBeleidsdoelenVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsdoelenVersionObjectUuidGetMock() + : getBeleidsdoelenVersionObjectUuidGetResponseMock() ), { status: 200, @@ -13792,7 +13964,7 @@ export const getBeleidsdoelenLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsdoelenLatestLineageIdGetMock() + : getBeleidsdoelenLatestLineageIdGetResponseMock() ), { status: 200, @@ -13813,7 +13985,7 @@ export const getBeleidsdoelenRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsdoelenRelationsLineageIdGetMock() + : getBeleidsdoelenRelationsLineageIdGetResponseMock() ), { status: 200, @@ -13834,7 +14006,7 @@ export const getBeleidsdoelenRelationsLineageIdPutMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsdoelenRelationsLineageIdPutMock() + : getBeleidsdoelenRelationsLineageIdPutResponseMock() ), { status: 200, @@ -13855,7 +14027,7 @@ export const getBeleidsdoelStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsdoelStaticLineageIdPostMock() + : getBeleidsdoelStaticLineageIdPostResponseMock() ), { status: 200, @@ -13878,7 +14050,7 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidsdoelLineageIdGetMock() + : getModulesModuleIdObjectBeleidsdoelLineageIdGetResponseMock() ), { status: 200, @@ -13902,7 +14074,7 @@ export const getModulesModuleIdObjectBeleidsdoelLineageIdPatchMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidsdoelLineageIdPatchMock() + : getModulesModuleIdObjectBeleidsdoelLineageIdPatchResponseMock() ), { status: 200, @@ -13925,7 +14097,7 @@ export const getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetMock() + : getModulesModuleIdObjectBeleidsdoelLatestLineageIdGetResponseMock() ), { status: 200, @@ -13948,7 +14120,7 @@ export const getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetMockHandler JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetMock() + : getModulesModuleIdObjectBeleidsdoelVersionObjectUuidGetResponseMock() ), { status: 200, @@ -13972,7 +14144,7 @@ export const getModulesObjectBeleidsdoelActiveLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectBeleidsdoelActiveLineageIdGetMock() + : getModulesObjectBeleidsdoelActiveLineageIdGetResponseMock() ), { status: 200, @@ -13996,7 +14168,7 @@ export const getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetMock() + : getRevisionsModuleIdBeleidsdoelVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14018,7 +14190,7 @@ export const getBeleidskeuzesValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzesValidGetMock() + : getBeleidskeuzesValidGetResponseMock() ), { status: 200, @@ -14039,7 +14211,7 @@ export const getBeleidskeuzesValidLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzesValidLineageIdGetMock() + : getBeleidskeuzesValidLineageIdGetResponseMock() ), { status: 200, @@ -14060,7 +14232,7 @@ export const getBeleidskeuzesVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzesVersionObjectUuidGetMock() + : getBeleidskeuzesVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14081,7 +14253,7 @@ export const getBeleidskeuzesLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzesLatestLineageIdGetMock() + : getBeleidskeuzesLatestLineageIdGetResponseMock() ), { status: 200, @@ -14102,7 +14274,7 @@ export const getBeleidskeuzesRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzesRelationsLineageIdGetMock() + : getBeleidskeuzesRelationsLineageIdGetResponseMock() ), { status: 200, @@ -14123,7 +14295,7 @@ export const getBeleidskeuzesRelationsLineageIdPutMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzesRelationsLineageIdPutMock() + : getBeleidskeuzesRelationsLineageIdPutResponseMock() ), { status: 200, @@ -14144,7 +14316,7 @@ export const getBeleidskeuzeStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzeStaticLineageIdPostMock() + : getBeleidskeuzeStaticLineageIdPostResponseMock() ), { status: 200, @@ -14167,7 +14339,7 @@ export const getBeleidskeuzeAcknowledgedRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzeAcknowledgedRelationsLineageIdGetMock() + : getBeleidskeuzeAcknowledgedRelationsLineageIdGetResponseMock() ), { status: 200, @@ -14191,7 +14363,7 @@ export const getBeleidskeuzeAcknowledgedRelationsLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzeAcknowledgedRelationsLineageIdPostMock() + : getBeleidskeuzeAcknowledgedRelationsLineageIdPostResponseMock() ), { status: 200, @@ -14214,7 +14386,7 @@ export const getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostMock() + : getBeleidskeuzeAcknowledgedRelationsLineageIdEditPostResponseMock() ), { status: 200, @@ -14238,7 +14410,7 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidskeuzeLineageIdGetMock() + : getModulesModuleIdObjectBeleidskeuzeLineageIdGetResponseMock() ), { status: 200, @@ -14262,7 +14434,7 @@ export const getModulesModuleIdObjectBeleidskeuzeLineageIdPatchMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidskeuzeLineageIdPatchMock() + : getModulesModuleIdObjectBeleidskeuzeLineageIdPatchResponseMock() ), { status: 200, @@ -14285,7 +14457,7 @@ export const getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetMock() + : getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetResponseMock() ), { status: 200, @@ -14308,7 +14480,7 @@ export const getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetMockHandler JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetMock() + : getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14332,7 +14504,7 @@ export const getModulesObjectsBeleidskeuzeActiveLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectsBeleidskeuzeActiveLineageIdGetMock() + : getModulesObjectsBeleidskeuzeActiveLineageIdGetResponseMock() ), { status: 200, @@ -14356,7 +14528,7 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetMock() + : getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14378,7 +14550,7 @@ export const getBeleidsregelsValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsregelsValidGetMock() + : getBeleidsregelsValidGetResponseMock() ), { status: 200, @@ -14399,7 +14571,7 @@ export const getBeleidsregelsValidLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsregelsValidLineageIdGetMock() + : getBeleidsregelsValidLineageIdGetResponseMock() ), { status: 200, @@ -14420,7 +14592,7 @@ export const getBeleidsregelsVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsregelsVersionObjectUuidGetMock() + : getBeleidsregelsVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14441,7 +14613,7 @@ export const getBeleidsregelsLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsregelsLatestLineageIdGetMock() + : getBeleidsregelsLatestLineageIdGetResponseMock() ), { status: 200, @@ -14462,7 +14634,7 @@ export const getBeleidsregelsRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsregelsRelationsLineageIdGetMock() + : getBeleidsregelsRelationsLineageIdGetResponseMock() ), { status: 200, @@ -14483,7 +14655,7 @@ export const getBeleidsregelsRelationsLineageIdPutMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsregelsRelationsLineageIdPutMock() + : getBeleidsregelsRelationsLineageIdPutResponseMock() ), { status: 200, @@ -14504,7 +14676,7 @@ export const getBeleidsregelStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getBeleidsregelStaticLineageIdPostMock() + : getBeleidsregelStaticLineageIdPostResponseMock() ), { status: 200, @@ -14527,7 +14699,7 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidsregelLineageIdGetMock() + : getModulesModuleIdObjectBeleidsregelLineageIdGetResponseMock() ), { status: 200, @@ -14551,7 +14723,7 @@ export const getModulesModuleIdObjectBeleidsregelLineageIdPatchMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidsregelLineageIdPatchMock() + : getModulesModuleIdObjectBeleidsregelLineageIdPatchResponseMock() ), { status: 200, @@ -14574,7 +14746,7 @@ export const getModulesModuleIdObjectBeleidsregelLatestLineageIdGetMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidsregelLatestLineageIdGetMock() + : getModulesModuleIdObjectBeleidsregelLatestLineageIdGetResponseMock() ), { status: 200, @@ -14597,7 +14769,7 @@ export const getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetMockHandler JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetMock() + : getModulesModuleIdObjectBeleidsregelVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14621,7 +14793,7 @@ export const getModulesObjectsBeleidsregelActiveLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectsBeleidsregelActiveLineageIdGetMock() + : getModulesObjectsBeleidsregelActiveLineageIdGetResponseMock() ), { status: 200, @@ -14645,7 +14817,7 @@ export const getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdBeleidsregelVersionObjectUuidGetMock() + : getRevisionsModuleIdBeleidsregelVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14667,7 +14839,7 @@ export const getGebiedsprogrammasValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getGebiedsprogrammasValidGetMock() + : getGebiedsprogrammasValidGetResponseMock() ), { status: 200, @@ -14688,7 +14860,7 @@ export const getGebiedsprogrammasValidLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getGebiedsprogrammasValidLineageIdGetMock() + : getGebiedsprogrammasValidLineageIdGetResponseMock() ), { status: 200, @@ -14709,7 +14881,7 @@ export const getGebiedsprogrammasVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getGebiedsprogrammasVersionObjectUuidGetMock() + : getGebiedsprogrammasVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14730,7 +14902,7 @@ export const getGebiedsprogrammasLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getGebiedsprogrammasLatestLineageIdGetMock() + : getGebiedsprogrammasLatestLineageIdGetResponseMock() ), { status: 200, @@ -14751,7 +14923,7 @@ export const getGebiedsprogrammasRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getGebiedsprogrammasRelationsLineageIdGetMock() + : getGebiedsprogrammasRelationsLineageIdGetResponseMock() ), { status: 200, @@ -14772,7 +14944,7 @@ export const getGebiedsprogrammasRelationsLineageIdPutMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getGebiedsprogrammasRelationsLineageIdPutMock() + : getGebiedsprogrammasRelationsLineageIdPutResponseMock() ), { status: 200, @@ -14793,7 +14965,7 @@ export const getGebiedsprogrammasStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getGebiedsprogrammasStaticLineageIdPostMock() + : getGebiedsprogrammasStaticLineageIdPostResponseMock() ), { status: 200, @@ -14815,7 +14987,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectGebiedsprogrammasLineageIdGetMock() + : getModulesModuleIdObjectGebiedsprogrammasLineageIdGetResponseMock() ), { status: 200, @@ -14838,7 +15010,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchMockHandler JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchMock() + : getModulesModuleIdObjectGebiedsprogrammasLineageIdPatchResponseMock() ), { status: 200, @@ -14861,7 +15033,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMockHand JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetMock() + : getModulesModuleIdObjectGebiedsprogrammasLatestLineageIdGetResponseMock() ), { status: 200, @@ -14884,7 +15056,7 @@ export const getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMockHa JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetMock() + : getModulesModuleIdObjectGebiedsprogrammasVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14908,7 +15080,7 @@ export const getModulesObjectsGebiedsprogrammaActiveLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectsGebiedsprogrammaActiveLineageIdGetMock() + : getModulesObjectsGebiedsprogrammaActiveLineageIdGetResponseMock() ), { status: 200, @@ -14931,7 +15103,7 @@ export const getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetMockHandler JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetMock() + : getRevisionsModuleIdGebiedsprogrammaVersionObjectUuidGetResponseMock() ), { status: 200, @@ -14953,7 +15125,7 @@ export const getMaatregelenValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getMaatregelenValidGetMock() + : getMaatregelenValidGetResponseMock() ), { status: 200, @@ -14974,7 +15146,7 @@ export const getMaatregelenValidLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getMaatregelenValidLineageIdGetMock() + : getMaatregelenValidLineageIdGetResponseMock() ), { status: 200, @@ -14995,7 +15167,7 @@ export const getMaatregelenVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getMaatregelenVersionObjectUuidGetMock() + : getMaatregelenVersionObjectUuidGetResponseMock() ), { status: 200, @@ -15016,7 +15188,7 @@ export const getMaatregelenLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getMaatregelenLatestLineageIdGetMock() + : getMaatregelenLatestLineageIdGetResponseMock() ), { status: 200, @@ -15037,7 +15209,7 @@ export const getMaatregelenRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getMaatregelenRelationsLineageIdGetMock() + : getMaatregelenRelationsLineageIdGetResponseMock() ), { status: 200, @@ -15058,7 +15230,7 @@ export const getMaatregelenRelationsLineageIdPutMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getMaatregelenRelationsLineageIdPutMock() + : getMaatregelenRelationsLineageIdPutResponseMock() ), { status: 200, @@ -15079,7 +15251,7 @@ export const getMaatregelStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getMaatregelStaticLineageIdPostMock() + : getMaatregelStaticLineageIdPostResponseMock() ), { status: 200, @@ -15102,7 +15274,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectMaatregelLineageIdGetMock() + : getModulesModuleIdObjectMaatregelLineageIdGetResponseMock() ), { status: 200, @@ -15126,7 +15298,7 @@ export const getModulesModuleIdObjectMaatregelLineageIdPatchMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectMaatregelLineageIdPatchMock() + : getModulesModuleIdObjectMaatregelLineageIdPatchResponseMock() ), { status: 200, @@ -15150,7 +15322,7 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectMaatregelLatestLineageIdGetMock() + : getModulesModuleIdObjectMaatregelLatestLineageIdGetResponseMock() ), { status: 200, @@ -15173,7 +15345,7 @@ export const getModulesModuleIdObjectMaatregelVersionObjectUuidGetMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectMaatregelVersionObjectUuidGetMock() + : getModulesModuleIdObjectMaatregelVersionObjectUuidGetResponseMock() ), { status: 200, @@ -15197,7 +15369,7 @@ export const getModulesObjectsMaatregelActiveLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectsMaatregelActiveLineageIdGetMock() + : getModulesObjectsMaatregelActiveLineageIdGetResponseMock() ), { status: 200, @@ -15221,7 +15393,7 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdMaatregelVersionObjectUuidGetMock() + : getRevisionsModuleIdMaatregelVersionObjectUuidGetResponseMock() ), { status: 200, @@ -15243,7 +15415,7 @@ export const getNationaalBelangPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getNationaalBelangPostMock() + : getNationaalBelangPostResponseMock() ), { status: 200, @@ -15264,7 +15436,7 @@ export const getNationaalBelangLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getNationaalBelangLineageIdPostMock() + : getNationaalBelangLineageIdPostResponseMock() ), { status: 200, @@ -15285,7 +15457,7 @@ export const getNationaalBelangLineageIdDeleteMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getNationaalBelangLineageIdDeleteMock() + : getNationaalBelangLineageIdDeleteResponseMock() ), { status: 200, @@ -15306,7 +15478,7 @@ export const getNationaalBelangValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getNationaalBelangValidGetMock() + : getNationaalBelangValidGetResponseMock() ), { status: 200, @@ -15327,7 +15499,7 @@ export const getNationaalBelangLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getNationaalBelangLatestLineageIdGetMock() + : getNationaalBelangLatestLineageIdGetResponseMock() ), { status: 200, @@ -15348,7 +15520,7 @@ export const getNationaalBelangRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getNationaalBelangRelationsLineageIdGetMock() + : getNationaalBelangRelationsLineageIdGetResponseMock() ), { status: 200, @@ -15369,7 +15541,7 @@ export const getNationaalBelangRelationsLineageIdPutMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getNationaalBelangRelationsLineageIdPutMock() + : getNationaalBelangRelationsLineageIdPutResponseMock() ), { status: 200, @@ -15390,7 +15562,7 @@ export const getNationaalBelangStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getNationaalBelangStaticLineageIdPostMock() + : getNationaalBelangStaticLineageIdPostResponseMock() ), { status: 200, @@ -15411,7 +15583,7 @@ export const getProgrammasAlgemeenValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getProgrammasAlgemeenValidGetMock() + : getProgrammasAlgemeenValidGetResponseMock() ), { status: 200, @@ -15432,7 +15604,7 @@ export const getProgrammasAlgemeenValidLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getProgrammasAlgemeenValidLineageIdGetMock() + : getProgrammasAlgemeenValidLineageIdGetResponseMock() ), { status: 200, @@ -15453,7 +15625,7 @@ export const getProgrammasAlgemeenVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getProgrammasAlgemeenVersionObjectUuidGetMock() + : getProgrammasAlgemeenVersionObjectUuidGetResponseMock() ), { status: 200, @@ -15474,7 +15646,7 @@ export const getProgrammasAlgemeenLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getProgrammasAlgemeenLatestLineageIdGetMock() + : getProgrammasAlgemeenLatestLineageIdGetResponseMock() ), { status: 200, @@ -15495,7 +15667,7 @@ export const getProgrammaAlgemeenStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getProgrammaAlgemeenStaticLineageIdPostMock() + : getProgrammaAlgemeenStaticLineageIdPostResponseMock() ), { status: 200, @@ -15517,7 +15689,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetMock() + : getModulesModuleIdObjectProgrammaAlgemeenLineageIdGetResponseMock() ), { status: 200, @@ -15540,7 +15712,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchMockHandler JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchMock() + : getModulesModuleIdObjectProgrammaAlgemeenLineageIdPatchResponseMock() ), { status: 200, @@ -15563,7 +15735,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMockHand JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetMock() + : getModulesModuleIdObjectProgrammaAlgemeenLatestLineageIdGetResponseMock() ), { status: 200, @@ -15586,7 +15758,7 @@ export const getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMockHa JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetMock() + : getModulesModuleIdObjectProgrammaAlgemeenVersionObjectUuidGetResponseMock() ), { status: 200, @@ -15610,7 +15782,7 @@ export const getModulesObjectProgrammaAlgemeenActiveLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectProgrammaAlgemeenActiveLineageIdGetMock() + : getModulesObjectProgrammaAlgemeenActiveLineageIdGetResponseMock() ), { status: 200, @@ -15633,7 +15805,7 @@ export const getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetMockHandle JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetMock() + : getRevisionsModuleIdProgrammaAlgemeenVersionObjectUuidGetResponseMock() ), { status: 200, @@ -15655,7 +15827,7 @@ export const getVerplichtProgrammaPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVerplichtProgrammaPostMock() + : getVerplichtProgrammaPostResponseMock() ), { status: 200, @@ -15676,7 +15848,7 @@ export const getVerplichtProgrammaLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVerplichtProgrammaLineageIdPostMock() + : getVerplichtProgrammaLineageIdPostResponseMock() ), { status: 200, @@ -15697,7 +15869,7 @@ export const getVerplichtProgrammaLineageIdDeleteMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVerplichtProgrammaLineageIdDeleteMock() + : getVerplichtProgrammaLineageIdDeleteResponseMock() ), { status: 200, @@ -15718,7 +15890,7 @@ export const getVerplichtProgrammaValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVerplichtProgrammaValidGetMock() + : getVerplichtProgrammaValidGetResponseMock() ), { status: 200, @@ -15739,7 +15911,7 @@ export const getVerplichtProgrammaLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVerplichtProgrammaLatestLineageIdGetMock() + : getVerplichtProgrammaLatestLineageIdGetResponseMock() ), { status: 200, @@ -15760,7 +15932,7 @@ export const getVerplichtProgrammaRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVerplichtProgrammaRelationsLineageIdGetMock() + : getVerplichtProgrammaRelationsLineageIdGetResponseMock() ), { status: 200, @@ -15781,7 +15953,7 @@ export const getVerplichtProgrammaRelationsLineageIdPutMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVerplichtProgrammaRelationsLineageIdPutMock() + : getVerplichtProgrammaRelationsLineageIdPutResponseMock() ), { status: 200, @@ -15802,7 +15974,7 @@ export const getVerplichtProgrammaStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVerplichtProgrammaStaticLineageIdPostMock() + : getVerplichtProgrammaStaticLineageIdPostResponseMock() ), { status: 200, @@ -15823,7 +15995,7 @@ export const getVisiesAlgemeenValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVisiesAlgemeenValidGetMock() + : getVisiesAlgemeenValidGetResponseMock() ), { status: 200, @@ -15844,7 +16016,7 @@ export const getVisiesAlgemeenValidLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVisiesAlgemeenValidLineageIdGetMock() + : getVisiesAlgemeenValidLineageIdGetResponseMock() ), { status: 200, @@ -15865,7 +16037,7 @@ export const getVisiesAlgemeenVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVisiesAlgemeenVersionObjectUuidGetMock() + : getVisiesAlgemeenVersionObjectUuidGetResponseMock() ), { status: 200, @@ -15886,7 +16058,7 @@ export const getVisiesAlgemeenLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVisiesAlgemeenLatestLineageIdGetMock() + : getVisiesAlgemeenLatestLineageIdGetResponseMock() ), { status: 200, @@ -15907,7 +16079,7 @@ export const getVisieAlgemeenStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getVisieAlgemeenStaticLineageIdPostMock() + : getVisieAlgemeenStaticLineageIdPostResponseMock() ), { status: 200, @@ -15930,7 +16102,7 @@ export const getModulesModuleIdObjectVisieAlgemeenLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectVisieAlgemeenLineageIdGetMock() + : getModulesModuleIdObjectVisieAlgemeenLineageIdGetResponseMock() ), { status: 200, @@ -15954,7 +16126,7 @@ export const getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectVisieAlgemeenLineageIdPatchMock() + : getModulesModuleIdObjectVisieAlgemeenLineageIdPatchResponseMock() ), { status: 200, @@ -15977,7 +16149,7 @@ export const getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetMockHandler JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetMock() + : getModulesModuleIdObjectVisieAlgemeenLatestLineageIdGetResponseMock() ), { status: 200, @@ -16000,7 +16172,7 @@ export const getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMockHandle JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetMock() + : getModulesModuleIdObjectVisieAlgemeenVersionObjectUuidGetResponseMock() ), { status: 200, @@ -16024,7 +16196,7 @@ export const getModulesObjectVisieAlgemeenActiveLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectVisieAlgemeenActiveLineageIdGetMock() + : getModulesObjectVisieAlgemeenActiveLineageIdGetResponseMock() ), { status: 200, @@ -16047,7 +16219,7 @@ export const getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetMock() + : getRevisionsModuleIdVisieAlgemeenVersionObjectUuidGetResponseMock() ), { status: 200, @@ -16069,7 +16241,7 @@ export const getWerkingsgebiedenValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWerkingsgebiedenValidGetMock() + : getWerkingsgebiedenValidGetResponseMock() ), { status: 200, @@ -16090,7 +16262,7 @@ export const getWerkingsgebiedenValidLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWerkingsgebiedenValidLineageIdGetMock() + : getWerkingsgebiedenValidLineageIdGetResponseMock() ), { status: 200, @@ -16111,7 +16283,7 @@ export const getWerkingsgebiedenVersionObjectUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWerkingsgebiedenVersionObjectUuidGetMock() + : getWerkingsgebiedenVersionObjectUuidGetResponseMock() ), { status: 200, @@ -16132,7 +16304,7 @@ export const getWerkingsgebiedenLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWerkingsgebiedenLatestLineageIdGetMock() + : getWerkingsgebiedenLatestLineageIdGetResponseMock() ), { status: 200, @@ -16153,7 +16325,7 @@ export const getWerkingsgebiedStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWerkingsgebiedStaticLineageIdPostMock() + : getWerkingsgebiedStaticLineageIdPostResponseMock() ), { status: 200, @@ -16176,7 +16348,7 @@ export const getModulesModuleIdObjectWerkingsgebiedLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectWerkingsgebiedLineageIdGetMock() + : getModulesModuleIdObjectWerkingsgebiedLineageIdGetResponseMock() ), { status: 200, @@ -16200,7 +16372,7 @@ export const getModulesModuleIdObjectWerkingsgebiedLineageIdPatchMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectWerkingsgebiedLineageIdPatchMock() + : getModulesModuleIdObjectWerkingsgebiedLineageIdPatchResponseMock() ), { status: 200, @@ -16223,7 +16395,7 @@ export const getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMockHandler JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetMock() + : getModulesModuleIdObjectWerkingsgebiedLatestLineageIdGetResponseMock() ), { status: 200, @@ -16246,7 +16418,7 @@ export const getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetMockHandl JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetMock() + : getModulesModuleIdObjectWerkingsgebiedVersionObjectUuidGetResponseMock() ), { status: 200, @@ -16270,7 +16442,7 @@ export const getModulesObjectWerkingsgebiedActiveLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectWerkingsgebiedActiveLineageIdGetMock() + : getModulesObjectWerkingsgebiedActiveLineageIdGetResponseMock() ), { status: 200, @@ -16293,7 +16465,7 @@ export const getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetMock() + : getRevisionsModuleIdWerkingsgebiedVersionObjectUuidGetResponseMock() ), { status: 200, @@ -16315,7 +16487,7 @@ export const getWettelijkeTaakPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWettelijkeTaakPostMock() + : getWettelijkeTaakPostResponseMock() ), { status: 200, @@ -16336,7 +16508,7 @@ export const getWettelijkeTaakLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWettelijkeTaakLineageIdPostMock() + : getWettelijkeTaakLineageIdPostResponseMock() ), { status: 200, @@ -16357,7 +16529,7 @@ export const getWettelijkeTaakLineageIdDeleteMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWettelijkeTaakLineageIdDeleteMock() + : getWettelijkeTaakLineageIdDeleteResponseMock() ), { status: 200, @@ -16378,7 +16550,7 @@ export const getWettelijkeTaakValidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWettelijkeTaakValidGetMock() + : getWettelijkeTaakValidGetResponseMock() ), { status: 200, @@ -16399,7 +16571,7 @@ export const getWettelijkeTaakLatestLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWettelijkeTaakLatestLineageIdGetMock() + : getWettelijkeTaakLatestLineageIdGetResponseMock() ), { status: 200, @@ -16420,7 +16592,7 @@ export const getWettelijkeTaakRelationsLineageIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWettelijkeTaakRelationsLineageIdGetMock() + : getWettelijkeTaakRelationsLineageIdGetResponseMock() ), { status: 200, @@ -16441,7 +16613,7 @@ export const getWettelijkeTaakRelationsLineageIdPutMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWettelijkeTaakRelationsLineageIdPutMock() + : getWettelijkeTaakRelationsLineageIdPutResponseMock() ), { status: 200, @@ -16462,7 +16634,7 @@ export const getWettelijkeTaakStaticLineageIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getWettelijkeTaakStaticLineageIdPostMock() + : getWettelijkeTaakStaticLineageIdPostResponseMock() ), { status: 200, @@ -16481,7 +16653,7 @@ export const getUsersGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getUsersGetMock() + overrideResponse ? overrideResponse : getUsersGetResponseMock() ), { status: 200, @@ -16500,7 +16672,7 @@ export const getUsersPostMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getUsersPostMock() + overrideResponse ? overrideResponse : getUsersPostResponseMock() ), { status: 200, @@ -16519,7 +16691,9 @@ export const getUsersSearchGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getUsersSearchGetMock() + overrideResponse + ? overrideResponse + : getUsersSearchGetResponseMock() ), { status: 200, @@ -16536,7 +16710,9 @@ export const getUsersUserUuidGetMockHandler = (overrideResponse?: User) => { await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getUsersUserUuidGetMock() + overrideResponse + ? overrideResponse + : getUsersUserUuidGetResponseMock() ), { status: 200, @@ -16555,7 +16731,9 @@ export const getUsersUserUuidPostMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getUsersUserUuidPostMock() + overrideResponse + ? overrideResponse + : getUsersUserUuidPostResponseMock() ), { status: 200, @@ -16576,7 +16754,7 @@ export const getUsersUserUuidResetPasswordPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getUsersUserUuidResetPasswordPostMock() + : getUsersUserUuidResetPasswordPostResponseMock() ), { status: 200, @@ -16597,7 +16775,7 @@ export const getSourceWerkingsgebiedenGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getSourceWerkingsgebiedenGetMock() + : getSourceWerkingsgebiedenGetResponseMock() ), { status: 200, @@ -16618,7 +16796,7 @@ export const getSearchSourceGeoPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getSearchSourceGeoPostMock() + : getSearchSourceGeoPostResponseMock() ), { status: 200, @@ -16639,7 +16817,7 @@ export const getSearchSourceGeometryPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getSearchSourceGeometryPostMock() + : getSearchSourceGeometryPostResponseMock() ), { status: 200, @@ -16658,7 +16836,9 @@ export const getSearchPostMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getSearchPostMock() + overrideResponse + ? overrideResponse + : getSearchPostResponseMock() ), { status: 200, @@ -16677,7 +16857,9 @@ export const getSearchValidPostMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getSearchValidPostMock() + overrideResponse + ? overrideResponse + : getSearchValidPostResponseMock() ), { status: 200, @@ -16696,7 +16878,9 @@ export const getFullGraphGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getFullGraphGetMock() + overrideResponse + ? overrideResponse + : getFullGraphGetResponseMock() ), { status: 200, @@ -16715,7 +16899,9 @@ export const getObjectGraphGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getObjectGraphGetMock() + overrideResponse + ? overrideResponse + : getObjectGraphGetResponseMock() ), { status: 200, @@ -16734,7 +16920,9 @@ export const getRevisionsGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getRevisionsGetMock() + overrideResponse + ? overrideResponse + : getRevisionsGetResponseMock() ), { status: 200, @@ -16755,7 +16943,7 @@ export const getRevisionsModuleIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getRevisionsModuleIdGetMock() + : getRevisionsModuleIdGetResponseMock() ), { status: 200, @@ -16774,7 +16962,9 @@ export const getModulesGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getModulesGetMock() + overrideResponse + ? overrideResponse + : getModulesGetResponseMock() ), { status: 200, @@ -16793,7 +16983,9 @@ export const getModulesPostMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getModulesPostMock() + overrideResponse + ? overrideResponse + : getModulesPostResponseMock() ), { status: 200, @@ -16814,7 +17006,7 @@ export const getModulesModuleIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdGetMock() + : getModulesModuleIdGetResponseMock() ), { status: 200, @@ -16835,7 +17027,7 @@ export const getModulesModuleIdPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdPostMock() + : getModulesModuleIdPostResponseMock() ), { status: 200, @@ -16856,7 +17048,7 @@ export const getModulesModuleIdActivatePostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdActivatePostMock() + : getModulesModuleIdActivatePostResponseMock() ), { status: 200, @@ -16877,7 +17069,7 @@ export const getModulesModuleIdCompletePostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdCompletePostMock() + : getModulesModuleIdCompletePostResponseMock() ), { status: 200, @@ -16898,7 +17090,7 @@ export const getModulesModuleIdClosePostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdClosePostMock() + : getModulesModuleIdClosePostResponseMock() ), { status: 200, @@ -16919,7 +17111,7 @@ export const getModulesModuleIdStatusGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdStatusGetMock() + : getModulesModuleIdStatusGetResponseMock() ), { status: 200, @@ -16940,7 +17132,7 @@ export const getModulesModuleIdStatusPatchMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdStatusPatchMock() + : getModulesModuleIdStatusPatchResponseMock() ), { status: 200, @@ -16973,7 +17165,7 @@ export const getModulesModuleIdAddNewObjectPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdAddNewObjectPostMock() + : getModulesModuleIdAddNewObjectPostResponseMock() ), { status: 200, @@ -16994,7 +17186,7 @@ export const getModulesModuleIdAddExistingObjectPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdAddExistingObjectPostMock() + : getModulesModuleIdAddExistingObjectPostResponseMock() ), { status: 200, @@ -17016,7 +17208,7 @@ export const getModulesModuleIdObjectContextObjectTypeLineageIdGetMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectContextObjectTypeLineageIdGetMock() + : getModulesModuleIdObjectContextObjectTypeLineageIdGetResponseMock() ), { status: 200, @@ -17039,7 +17231,7 @@ export const getModulesModuleIdObjectContextObjectTypeLineageIdPostMockHandler = JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdObjectContextObjectTypeLineageIdPostMock() + : getModulesModuleIdObjectContextObjectTypeLineageIdPostResponseMock() ), { status: 200, @@ -17063,7 +17255,7 @@ export const getModulesModuleIdRemoveObjectTypeLineageIdDeleteMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdRemoveObjectTypeLineageIdDeleteMock() + : getModulesModuleIdRemoveObjectTypeLineageIdDeleteResponseMock() ), { status: 200, @@ -17085,7 +17277,7 @@ export const getModulesModuleIdSnapshotStatusIdGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesModuleIdSnapshotStatusIdGetMock() + : getModulesModuleIdSnapshotStatusIdGetResponseMock() ), { status: 200, @@ -17106,7 +17298,7 @@ export const getModulesObjectsLatestGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getModulesObjectsLatestGetMock() + : getModulesObjectsLatestGetResponseMock() ), { status: 200, @@ -17127,7 +17319,7 @@ export const getObjectsValidCountGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getObjectsValidCountGetMock() + : getObjectsValidCountGetResponseMock() ), { status: 200, @@ -17146,7 +17338,9 @@ export const getObjectsValidGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getObjectsValidGetMock() + overrideResponse + ? overrideResponse + : getObjectsValidGetResponseMock() ), { status: 200, @@ -17165,7 +17359,9 @@ export const getPublicationAojGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getPublicationAojGetMock() + overrideResponse + ? overrideResponse + : getPublicationAojGetResponseMock() ), { status: 200, @@ -17186,7 +17382,7 @@ export const getPublicationAojPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationAojPostMock() + : getPublicationAojPostResponseMock() ), { status: 200, @@ -17207,7 +17403,7 @@ export const getPublicationTemplatesGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationTemplatesGetMock() + : getPublicationTemplatesGetResponseMock() ), { status: 200, @@ -17228,7 +17424,7 @@ export const getPublicationTemplatesPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationTemplatesPostMock() + : getPublicationTemplatesPostResponseMock() ), { status: 200, @@ -17249,7 +17445,7 @@ export const getPublicationTemplatesTemplateUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationTemplatesTemplateUuidGetMock() + : getPublicationTemplatesTemplateUuidGetResponseMock() ), { status: 200, @@ -17270,7 +17466,7 @@ export const getPublicationTemplatesTemplateUuidPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationTemplatesTemplateUuidPostMock() + : getPublicationTemplatesTemplateUuidPostResponseMock() ), { status: 200, @@ -17291,7 +17487,7 @@ export const getPublicationEnvironmentsGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationEnvironmentsGetMock() + : getPublicationEnvironmentsGetResponseMock() ), { status: 200, @@ -17312,7 +17508,7 @@ export const getPublicationEnvironmentsPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationEnvironmentsPostMock() + : getPublicationEnvironmentsPostResponseMock() ), { status: 200, @@ -17335,7 +17531,7 @@ export const getPublicationEnvironmentsEnvironmentUuidPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationEnvironmentsEnvironmentUuidPostMock() + : getPublicationEnvironmentsEnvironmentUuidPostResponseMock() ), { status: 200, @@ -17355,7 +17551,9 @@ export const getPublicationsGetMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getPublicationsGetMock() + overrideResponse + ? overrideResponse + : getPublicationsGetResponseMock() ), { status: 200, @@ -17374,7 +17572,9 @@ export const getPublicationsPostMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getPublicationsPostMock() + overrideResponse + ? overrideResponse + : getPublicationsPostResponseMock() ), { status: 200, @@ -17395,7 +17595,7 @@ export const getPublicationsPublicationUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidGetMock() + : getPublicationsPublicationUuidGetResponseMock() ), { status: 200, @@ -17416,7 +17616,7 @@ export const getPublicationsPublicationUuidPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidPostMock() + : getPublicationsPublicationUuidPostResponseMock() ), { status: 200, @@ -17437,7 +17637,7 @@ export const getPublicationsPublicationUuidVersionPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidVersionPostMock() + : getPublicationsPublicationUuidVersionPostResponseMock() ), { status: 200, @@ -17458,7 +17658,7 @@ export const getPublicationsPublicationUuidVersionsGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationsPublicationUuidVersionsGetMock() + : getPublicationsPublicationUuidVersionsGetResponseMock() ), { status: 200, @@ -17479,7 +17679,7 @@ export const getPublicationVersionsVersionUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationVersionsVersionUuidGetMock() + : getPublicationVersionsVersionUuidGetResponseMock() ), { status: 200, @@ -17500,7 +17700,7 @@ export const getPublicationVersionsVersionUuidPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationVersionsVersionUuidPostMock() + : getPublicationVersionsVersionUuidPostResponseMock() ), { status: 200, @@ -17523,7 +17723,7 @@ export const getPublicationVersionsVersionUuidPackagesPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationVersionsVersionUuidPackagesPostMock() + : getPublicationVersionsVersionUuidPackagesPostResponseMock() ), { status: 200, @@ -17545,7 +17745,7 @@ export const getPublicationPackagesGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationPackagesGetMock() + : getPublicationPackagesGetResponseMock() ), { status: 200, @@ -17557,17 +17757,26 @@ export const getPublicationPackagesGetMockHandler = ( }) } -export const getPublicationPackagesPackageUuidDownloadGetMockHandler = () => { +export const getPublicationPackagesPackageUuidDownloadGetMockHandler = ( + overrideResponse?: PublicationPackagesPackageUuidDownloadGet200 +) => { return http.get( '*/publication-packages/:packageUuid/download', async () => { await delay(1000) - return new HttpResponse(null, { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationPackagesPackageUuidDownloadGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) } ) } @@ -17581,7 +17790,7 @@ export const getPublicationPackagesPackageUuidReportPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationPackagesPackageUuidReportPostMock() + : getPublicationPackagesPackageUuidReportPostResponseMock() ), { status: 200, @@ -17602,7 +17811,7 @@ export const getPublicationReportsGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationReportsGetMock() + : getPublicationReportsGetResponseMock() ), { status: 200, @@ -17623,7 +17832,7 @@ export const getPublicationReportsReportUuidGetMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationReportsReportUuidGetMock() + : getPublicationReportsReportUuidGetResponseMock() ), { status: 200, @@ -17635,15 +17844,24 @@ export const getPublicationReportsReportUuidGetMockHandler = ( }) } -export const getPublicationReportsReportUuidDownloadGetMockHandler = () => { +export const getPublicationReportsReportUuidDownloadGetMockHandler = ( + overrideResponse?: PublicationReportsReportUuidDownloadGet200 +) => { return http.get('*/publication-reports/:reportUuid/download', async () => { await delay(1000) - return new HttpResponse(null, { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationReportsReportUuidDownloadGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) }) } @@ -17656,7 +17874,7 @@ export const getLoginAccessTokenPostMockHandler = ( JSON.stringify( overrideResponse ? overrideResponse - : getLoginAccessTokenPostMock() + : getLoginAccessTokenPostResponseMock() ), { status: 200, @@ -17675,7 +17893,9 @@ export const getPasswordResetPostMockHandler = ( await delay(1000) return new HttpResponse( JSON.stringify( - overrideResponse ? overrideResponse : getPasswordResetPostMock() + overrideResponse + ? overrideResponse + : getPasswordResetPostResponseMock() ), { status: 200, @@ -17687,15 +17907,24 @@ export const getPasswordResetPostMockHandler = ( }) } -export const getHealthCheckHealthGetMockHandler = () => { +export const getHealthCheckHealthGetMockHandler = ( + overrideResponse?: HealthCheckHealthGet200 +) => { return http.get('*/health', async () => { await delay(1000) - return new HttpResponse(null, { - status: 200, - headers: { - 'Content-Type': 'application/json', - }, - }) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getHealthCheckHealthGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) }) } export const getOmgevingsbeleidAPIMock = () => [ diff --git a/src/api/fetchers.schemas.ts b/src/api/fetchers.schemas.ts index 6fafc373..ef7d944b 100644 --- a/src/api/fetchers.schemas.ts +++ b/src/api/fetchers.schemas.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.24.0 🍺 + * Generated by orval v6.25.0 🍺 * Do not edit manually. * Omgevingsbeleid API * @@ -8,11 +8,15 @@ * OpenAPI spec version: 3.0-alpha */ +export type HealthCheckHealthGet200 = {} + export type PasswordResetPostParams = { password: string new_password: string } +export type PublicationReportsReportUuidDownloadGet200 = {} + export type PublicationReportsGetParams = { package_uuid?: string report_status?: ReportStatusType @@ -20,6 +24,8 @@ export type PublicationReportsGetParams = { limit?: number } +export type PublicationPackagesPackageUuidDownloadGet200 = {} + export type PublicationPackagesGetParams = { version_uuid?: string offset?: number diff --git a/src/api/fetchers.ts b/src/api/fetchers.ts index 386ffe35..38a113d8 100644 --- a/src/api/fetchers.ts +++ b/src/api/fetchers.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.24.0 🍺 + * Generated by orval v6.25.0 🍺 * Do not edit manually. * Omgevingsbeleid API * @@ -65,6 +65,7 @@ import type { GebiedsprogrammasValidLineageIdGetParams, GraphResponse, HTTPValidationError, + HealthCheckHealthGet200, ListObjectsByGeometryRequestData, MaatregelFull, MaatregelPatch, @@ -169,7 +170,9 @@ import type { PublicationPackageCreatedResponse, PublicationPackageReport, PublicationPackagesGetParams, + PublicationPackagesPackageUuidDownloadGet200, PublicationReportsGetParams, + PublicationReportsReportUuidDownloadGet200, PublicationTemplate, PublicationTemplatesGetParams, PublicationVersion, @@ -18664,7 +18667,7 @@ export const publicationPackagesPackageUuidDownloadGet = ( packageUuid: string, signal?: AbortSignal ) => { - return customInstance({ + return customInstance({ url: `/publication-packages/${packageUuid}/download`, method: 'GET', signal, @@ -19040,7 +19043,7 @@ export const publicationReportsReportUuidDownloadGet = ( reportUuid: string, signal?: AbortSignal ) => { - return customInstance({ + return customInstance({ url: `/publication-reports/${reportUuid}/download`, method: 'GET', signal, @@ -19307,7 +19310,11 @@ export const usePasswordResetPost = < * @summary Health Check */ export const healthCheckHealthGet = (signal?: AbortSignal) => { - return customInstance({ url: `/health`, method: 'GET', signal }) + return customInstance({ + url: `/health`, + method: 'GET', + signal, + }) } export const getHealthCheckHealthGetQueryKey = () => { diff --git a/src/components/Modules/ModuleCard/ModuleCard.test.tsx b/src/components/Modules/ModuleCard/ModuleCard.test.tsx index b422a89c..a4624677 100644 --- a/src/components/Modules/ModuleCard/ModuleCard.test.tsx +++ b/src/components/Modules/ModuleCard/ModuleCard.test.tsx @@ -1,12 +1,12 @@ import { render, screen } from '@testing-library/react' import { MemoryRouter } from 'react-router-dom' -import { getModulesModuleIdGetMock } from '@/api/fetchers.msw' +import { getModulesModuleIdGetResponseMock } from '@/api/fetchers.msw' import ModuleCard from './ModuleCard' describe('ModuleCard', () => { - const props = getModulesModuleIdGetMock().Module + const props = getModulesModuleIdGetResponseMock().Module const setup = () => { render( diff --git a/src/pages/public/AreaDetail/AreaDetail.test.tsx b/src/pages/public/AreaDetail/AreaDetail.test.tsx index 7fa8377f..8448b26f 100644 --- a/src/pages/public/AreaDetail/AreaDetail.test.tsx +++ b/src/pages/public/AreaDetail/AreaDetail.test.tsx @@ -2,14 +2,14 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { render, screen, waitFor } from '@testing-library/react' import { MemoryRouter, Route, Routes } from 'react-router-dom' -import { getGebiedsprogrammasValidGetMock } from '@/api/fetchers.msw' +import { getGebiedsprogrammasValidGetResponseMock } from '@/api/fetchers.msw' import AreaDetail from './AreaDetail' const queryClient = new QueryClient() describe('AreaDetail', () => { - const gebiedsprogrammas = getGebiedsprogrammasValidGetMock() + const gebiedsprogrammas = getGebiedsprogrammasValidGetResponseMock() const defaultProps = {} const setup = (customProps?: any) => { diff --git a/src/pages/public/ThemeDetail/ThemeDetail.test.tsx b/src/pages/public/ThemeDetail/ThemeDetail.test.tsx index 8c138c2d..7a1a01ea 100644 --- a/src/pages/public/ThemeDetail/ThemeDetail.test.tsx +++ b/src/pages/public/ThemeDetail/ThemeDetail.test.tsx @@ -2,14 +2,14 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { render, screen, waitFor } from '@testing-library/react' import { MemoryRouter, Route, Routes } from 'react-router-dom' -import { getBeleidsdoelenValidGetMock } from '@/api/fetchers.msw' +import { getBeleidsdoelenValidGetResponseMock } from '@/api/fetchers.msw' import ThemeDetail from './ThemeDetail' const queryClient = new QueryClient() describe('ThemeDetail', () => { - const beleidsdoelen = getBeleidsdoelenValidGetMock() + const beleidsdoelen = getBeleidsdoelenValidGetResponseMock() const defaultProps = {} const setup = (customProps?: any) => { diff --git a/yarn.lock b/yarn.lock index 3f5c7ec2..fe3fc226 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2547,27 +2547,27 @@ __metadata: languageName: node linkType: hard -"@orval/angular@npm:6.24.0": - version: 6.24.0 - resolution: "@orval/angular@npm:6.24.0" +"@orval/angular@npm:6.25.0": + version: 6.25.0 + resolution: "@orval/angular@npm:6.25.0" dependencies: - "@orval/core": "npm:6.24.0" - checksum: c55be75276f6e387f99fdb4cc2eccffde54093a3bfd262622e392ce3b33761d06fe5e7518cf6a8e5d839e39239e47fa5a3063dc1951a849142858c67a039db40 + "@orval/core": "npm:6.25.0" + checksum: 6b9e604f865449d52b94bb763bbc1e8ed9d012b317ff79cffc46fd168f8610201341d44fb78caf97ecb7e0f62e24628be0afc758ffa8c4e18f2f19d13ae57738 languageName: node linkType: hard -"@orval/axios@npm:6.24.0": - version: 6.24.0 - resolution: "@orval/axios@npm:6.24.0" +"@orval/axios@npm:6.25.0": + version: 6.25.0 + resolution: "@orval/axios@npm:6.25.0" dependencies: - "@orval/core": "npm:6.24.0" - checksum: b4f568599f1bf466344c641ce0c95e51b87d46cfb8ecd8a4ac4df88206388bccc19d20a80d010c87319bfe456e26ad8d7cc7b5f64252ae1e0f8d0066c47df6b3 + "@orval/core": "npm:6.25.0" + checksum: 5c0c3d8bcbdc4592c7a6f45aec78ced9e5fac8958cd4593912674b6e2075abeffe38fb2eaf80cd459d4607f49b63a63cd6e186f6b1185628943802860bbb956f languageName: node linkType: hard -"@orval/core@npm:6.24.0": - version: 6.24.0 - resolution: "@orval/core@npm:6.24.0" +"@orval/core@npm:6.25.0": + version: 6.25.0 + resolution: "@orval/core@npm:6.25.0" dependencies: "@apidevtools/swagger-parser": "npm:^10.1.0" "@ibm-cloud/openapi-ruleset": "npm:^1.14.2" @@ -2589,48 +2589,48 @@ __metadata: micromatch: "npm:^4.0.5" openapi3-ts: "npm:4.2.1" swagger2openapi: "npm:^7.0.8" - checksum: cdb3b948f2c979ced2082635039b50eb20cc437b842172f53bf779395b88116abf17aafcce622714f70d0b8248f526526cc035dbae15901ea6477a4b5ca205b9 + checksum: d66e2d8c412e8934e7e84b835e52733a08d7635b3757a9c2341fd5fc8c744d28a7f358abcf8c24e413b6bcc5e4622433d7edb259cddffd601f7a5b2e1ad13452 languageName: node linkType: hard -"@orval/mock@npm:6.24.0": - version: 6.24.0 - resolution: "@orval/mock@npm:6.24.0" +"@orval/mock@npm:6.25.0": + version: 6.25.0 + resolution: "@orval/mock@npm:6.25.0" dependencies: - "@orval/core": "npm:6.24.0" + "@orval/core": "npm:6.25.0" lodash.get: "npm:^4.4.2" lodash.omit: "npm:^4.5.0" openapi3-ts: "npm:^4.2.1" - checksum: 43f2654cae95508e8e2d088205052d11d5fee01d3db124709e58bfab04356978e350a86281a9b21a99155e19eb1da4a2fad23f15a4979fb6995d868c77de78c0 + checksum: 05a165bbd3c757c13a50bec58b28b11a5ddd83c52333682ccd2e7f9b6bd70f8cbe5a904d1b36593ed574d40c5a00fb772c1fa64fbdcc91aab63f161bd0a515c9 languageName: node linkType: hard -"@orval/query@npm:6.24.0": - version: 6.24.0 - resolution: "@orval/query@npm:6.24.0" +"@orval/query@npm:6.25.0": + version: 6.25.0 + resolution: "@orval/query@npm:6.25.0" dependencies: - "@orval/core": "npm:6.24.0" + "@orval/core": "npm:6.25.0" lodash.omitby: "npm:^4.6.0" - checksum: 6a4afbeea1a09473f5026acd1ae83827c7b648fcd977f7be9e28f5899742f25cbaccebcc026a3acc85818102b75dba6c525bb68bbddd1391e4ddc58c29e084bc + checksum: edbb35f6b183d1cdafebb368e3e0cf4d5631e7db8891f17a149b4f92456c7518ad41ddf897345063a3f5c58bee531d1a3326802f0d73ad60764a7c899cfa3a10 languageName: node linkType: hard -"@orval/swr@npm:6.24.0": - version: 6.24.0 - resolution: "@orval/swr@npm:6.24.0" +"@orval/swr@npm:6.25.0": + version: 6.25.0 + resolution: "@orval/swr@npm:6.25.0" dependencies: - "@orval/core": "npm:6.24.0" - checksum: ed5bbc40467b82718b038120a78a3645cdc3cd8b5f216a3fffe94be179fa7275ad432a5dbeae2343aac6bdb4a98b2bcbbff4bfc3cc2d4a418c34257f511ac215 + "@orval/core": "npm:6.25.0" + checksum: 1134b9b7cf5426b688447c8d4d13c6937168cafabeca97b76dfa1a7fce93c74596bbc049fcffb0887e873bd6d129bfe61601d9be1bed729c3b3854a6c9d9504b languageName: node linkType: hard -"@orval/zod@npm:6.24.0": - version: 6.24.0 - resolution: "@orval/zod@npm:6.24.0" +"@orval/zod@npm:6.25.0": + version: 6.25.0 + resolution: "@orval/zod@npm:6.25.0" dependencies: - "@orval/core": "npm:6.24.0" + "@orval/core": "npm:6.25.0" lodash.uniq: "npm:^4.5.0" - checksum: df55f0f92d704f199e7e97cabccc4f7ae5e306620148d117471e7ccdff66d5b6e6470e1120a76d838d27e1b1d1798157600072fb82a938a326e9f29ad752f738 + checksum: ef6984fee902721332e78a787c3a53a111ddbf539a84eb879d41ef3c39693bf4a8b1732ce595d9675c26065c2e9df88a5afdc5e3c39e01a3f2020b2475c698aa languageName: node linkType: hard @@ -11119,18 +11119,18 @@ __metadata: languageName: node linkType: hard -"orval@npm:^6.22.1": - version: 6.24.0 - resolution: "orval@npm:6.24.0" +"orval@npm:^6.25.0": + version: 6.25.0 + resolution: "orval@npm:6.25.0" dependencies: "@apidevtools/swagger-parser": "npm:^10.1.0" - "@orval/angular": "npm:6.24.0" - "@orval/axios": "npm:6.24.0" - "@orval/core": "npm:6.24.0" - "@orval/mock": "npm:6.24.0" - "@orval/query": "npm:6.24.0" - "@orval/swr": "npm:6.24.0" - "@orval/zod": "npm:6.24.0" + "@orval/angular": "npm:6.25.0" + "@orval/axios": "npm:6.25.0" + "@orval/core": "npm:6.25.0" + "@orval/mock": "npm:6.25.0" + "@orval/query": "npm:6.25.0" + "@orval/swr": "npm:6.25.0" + "@orval/zod": "npm:6.25.0" ajv: "npm:^8.12.0" cac: "npm:^6.7.14" chalk: "npm:^4.1.2" @@ -11145,7 +11145,7 @@ __metadata: tsconfck: "npm:^2.0.1" bin: orval: dist/bin/orval.js - checksum: 1c46f348dc53904a20b7f3f72b7f76d148767066489206d645439801321964ce188be08d7313690c5539fa5e070f485fd49012ee72ff6713f60a36ea3af2b11c + checksum: edf2aba2f63d105337697d56097c3e6e8167cbaf83f762275493ee0289fd4b48d07f5ebb2ae5d3aaa4466d6522dd1370b4f8fd7b3dca8015c5906336b284ad44 languageName: node linkType: hard @@ -11874,7 +11874,7 @@ __metadata: lodash.groupby: "npm:^4.6.0" msw: "npm:^2.0.6" node-htmldiff: "npm:^0.9.4" - orval: "npm:^6.22.1" + orval: "npm:^6.25.0" prettier: "npm:2.8.8" proj4leaflet: "npm:^1.0.2" react: "npm:^18.2.0" From 12c8df7a48ca66a3cce2db3a2ef3fd8db872f0e8 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 28 Mar 2024 10:54:47 +0100 Subject: [PATCH 49/82] Update publication --- src/api/fetchers.msw.ts | 221 ++++++++++-- src/api/fetchers.schemas.ts | 176 +++++++--- src/api/fetchers.ts | 321 ++++++++++++++++++ .../Modules/ModuleLock/ModuleLock.tsx | 9 +- .../PublicationEnvironmentAction.tsx | 51 +++ .../PublicationEnvironmentAction/index.ts | 1 + .../PublicationForm/PublicationForm.tsx | 6 +- .../PublicationPackages.tsx | 28 +- .../components/PackageStepActions.tsx | 2 +- src/components/Publications/Publications.tsx | 55 ++- 10 files changed, 772 insertions(+), 98 deletions(-) create mode 100644 src/components/Publications/PublicationEnvironmentAction/PublicationEnvironmentAction.tsx create mode 100644 src/components/Publications/PublicationEnvironmentAction/index.ts diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index 2ee0b5ad..eb9c8772 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -13,6 +13,7 @@ import { HttpResponse, delay, http } from 'msw' import type { AOJCreatedResponse, AcknowledgedRelation, + ActCreatedResponse, ActiveModuleObjectWrapper, AmbitieFull, AmbitieUUID, @@ -61,6 +62,7 @@ import type { PagedResponsePublicModuleShort, PagedResponsePublication, PagedResponsePublicationAOJ, + PagedResponsePublicationActShort, PagedResponsePublicationEnvironment, PagedResponsePublicationPackage, PagedResponsePublicationPackageReportShort, @@ -80,6 +82,7 @@ import type { ProgrammaAlgemeenUUID, PublicModuleOverview, Publication, + PublicationAct, PublicationCreatedResponse, PublicationPackageCreatedResponse, PublicationPackageReport, @@ -105,11 +108,7 @@ import type { WettelijkeTaakFull, WettelijkeTaakUUID, } from './fetchers.schemas' -import { - DocumentType, - GraphEdgeType, - ReportStatusType, -} from './fetchers.schemas' +import { GraphEdgeType, ReportStatusType } from './fetchers.schemas' export const getAmbitiesValidGetResponseMock = ( overrideResponse: any = {} @@ -13252,6 +13251,83 @@ export const getPublicationTemplatesTemplateUuidPostResponseMock = ( overrideResponse: any = {} ): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) +export const getPublicationActsGetResponseMock = ( + overrideResponse: any = {} +): PagedResponsePublicationActShort => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Document_Type: faker.word.sample(), + Environment_UUID: faker.string.uuid(), + Is_Active: faker.datatype.boolean(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Procedure_Type: faker.word.sample(), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + Work_Country: faker.word.sample(), + Work_Date: faker.word.sample(), + Work_Other: faker.word.sample(), + Work_Province_ID: faker.word.sample(), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getPublicationActsPostResponseMock = ( + overrideResponse: any = {} +): ActCreatedResponse => ({ UUID: faker.string.uuid(), ...overrideResponse }) + +export const getPublicationActsActUuidGetResponseMock = ( + overrideResponse: any = {} +): PublicationAct => ({ + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Document_Type: faker.word.sample(), + Environment: { + Authority_ID: faker.word.sample(), + Can_Publicate: faker.datatype.boolean(), + Can_Validate: faker.datatype.boolean(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Description: faker.word.sample(), + Frbr_Country: faker.word.sample(), + Frbr_Language: faker.word.sample(), + Governing_Body_Type: faker.word.sample(), + Has_State: faker.datatype.boolean(), + Is_Active: faker.datatype.boolean(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Province_ID: faker.word.sample(), + Submitter_ID: faker.word.sample(), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + Is_Active: faker.datatype.boolean(), + Metadata: {}, + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Procedure_Type: faker.word.sample(), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + Work_Country: faker.word.sample(), + Work_Date: faker.word.sample(), + Work_Other: faker.word.sample(), + Work_Province_ID: faker.word.sample(), + ...overrideResponse, +}) + +export const getPublicationActsActUuidPostResponseMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) + export const getPublicationEnvironmentsGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublicationEnvironment => ({ @@ -13314,10 +13390,17 @@ export const getPublicationsGetResponseMock = ( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 ).map(() => ({ + Act_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Document_Type: faker.helpers.arrayElement(Object.values(DocumentType)), + Document_Type: faker.word.sample(), + Environment_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Is_Locked: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_ID: faker.number.int({ min: undefined, max: undefined }), + Procedure_Type: faker.word.sample(), Template_UUID: faker.helpers.arrayElement([ faker.string.uuid(), undefined, @@ -13340,10 +13423,17 @@ export const getPublicationsPostResponseMock = ( export const getPublicationsPublicationUuidGetResponseMock = ( overrideResponse: any = {} ): Publication => ({ + Act_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Document_Type: faker.helpers.arrayElement(Object.values(DocumentType)), + Document_Type: faker.word.sample(), + Environment_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Is_Locked: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_ID: faker.number.int({ min: undefined, max: undefined }), + Procedure_Type: faker.word.sample(), Template_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Title: faker.word.sample(), UUID: faker.string.uuid(), @@ -13386,7 +13476,6 @@ export const getPublicationsPublicationUuidVersionsGetResponseMock = ( faker.date.past().toISOString().split('T')[0], undefined, ]), - Environment_UUID: faker.string.uuid(), Is_Locked: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_Status: { @@ -13397,7 +13486,6 @@ export const getPublicationsPublicationUuidVersionsGetResponseMock = ( Status: faker.word.sample(), ...overrideResponse, }, - Procedure_Type: faker.word.sample(), Publication_UUID: faker.string.uuid(), UUID: faker.string.uuid(), ...overrideResponse, @@ -13409,7 +13497,6 @@ export const getPublicationsPublicationUuidVersionsGetResponseMock = ( export const getPublicationVersionsVersionUuidGetResponseMock = ( overrideResponse: any = {} ): PublicationVersion => ({ - Act_Metadata: {}, Announcement_Date: faker.helpers.arrayElement([ faker.date.past().toISOString().split('T')[0], undefined, @@ -13421,24 +13508,6 @@ export const getPublicationVersionsVersionUuidGetResponseMock = ( faker.date.past().toISOString().split('T')[0], undefined, ]), - Environment: { - Authority_ID: faker.word.sample(), - Can_Publicate: faker.datatype.boolean(), - Can_Validate: faker.datatype.boolean(), - Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Description: faker.word.sample(), - Frbr_Country: faker.word.sample(), - Frbr_Language: faker.word.sample(), - Governing_Body_Type: faker.word.sample(), - Has_State: faker.datatype.boolean(), - Is_Active: faker.datatype.boolean(), - Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, - Province_ID: faker.word.sample(), - Submitter_ID: faker.word.sample(), - Title: faker.word.sample(), - UUID: faker.string.uuid(), - ...overrideResponse, - }, Is_Locked: faker.datatype.boolean(), Is_Valid: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -13451,12 +13520,18 @@ export const getPublicationVersionsVersionUuidGetResponseMock = ( ...overrideResponse, }, Procedural: {}, - Procedure_Type: faker.word.sample(), Publication: { + Act_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Document_Type: faker.word.sample(), + Environment_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Is_Locked: faker.datatype.boolean(), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Module_ID: faker.number.int({ min: undefined, max: undefined }), + Procedure_Type: faker.word.sample(), Template_UUID: faker.helpers.arrayElement([ faker.string.uuid(), undefined, @@ -17478,6 +17553,90 @@ export const getPublicationTemplatesTemplateUuidPostMockHandler = ( }) } +export const getPublicationActsGetMockHandler = ( + overrideResponse?: PagedResponsePublicationActShort +) => { + return http.get('*/publication-acts', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationActsGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationActsPostMockHandler = ( + overrideResponse?: ActCreatedResponse +) => { + return http.post('*/publication-acts', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationActsPostResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationActsActUuidGetMockHandler = ( + overrideResponse?: PublicationAct +) => { + return http.get('*/publication-acts/:actUuid', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationActsActUuidGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationActsActUuidPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post('*/publication-acts/:actUuid', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationActsActUuidPostResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + export const getPublicationEnvironmentsGetMockHandler = ( overrideResponse?: PagedResponsePublicationEnvironment ) => { @@ -18106,6 +18265,10 @@ export const getOmgevingsbeleidAPIMock = () => [ getPublicationTemplatesPostMockHandler(), getPublicationTemplatesTemplateUuidGetMockHandler(), getPublicationTemplatesTemplateUuidPostMockHandler(), + getPublicationActsGetMockHandler(), + getPublicationActsPostMockHandler(), + getPublicationActsActUuidGetMockHandler(), + getPublicationActsActUuidPostMockHandler(), getPublicationEnvironmentsGetMockHandler(), getPublicationEnvironmentsPostMockHandler(), getPublicationEnvironmentsEnvironmentUuidPostMockHandler(), diff --git a/src/api/fetchers.schemas.ts b/src/api/fetchers.schemas.ts index ef7d944b..6d6f0c17 100644 --- a/src/api/fetchers.schemas.ts +++ b/src/api/fetchers.schemas.ts @@ -50,6 +50,15 @@ export type PublicationEnvironmentsGetParams = { limit?: number } +export type PublicationActsGetParams = { + is_active?: boolean + environment_uuid?: string + document_type?: DocumentType + procedure_type?: ProcedureType + offset?: number + limit?: number +} + export type PublicationTemplatesGetParams = { is_active?: boolean offset?: number @@ -666,6 +675,23 @@ export interface VisieAlgemeenFullStatics { export type VisieAlgemeenFullObjectStatics = VisieAlgemeenFullStatics | null +export interface VisieAlgemeenFull { + Adjust_On?: string | null + Code?: string + Created_By?: UserShort + Created_Date?: string + Description?: string + End_Validity?: string | null + Modified_By?: UserShort + Modified_Date?: string + Object_ID?: number + ObjectStatics?: VisieAlgemeenFullObjectStatics + Public_Revisions?: PublicModuleObjectRevision[] + Start_Validity?: string | null + Title?: string + UUID?: string +} + export interface VisieAlgemeenExtendedStatics { Owner_1?: UserShort Owner_2?: UserShort @@ -800,23 +826,6 @@ export interface UserShort { UUID: string } -export interface VisieAlgemeenFull { - Adjust_On?: string | null - Code?: string - Created_By?: UserShort - Created_Date?: string - Description?: string - End_Validity?: string | null - Modified_By?: UserShort - Modified_Date?: string - Object_ID?: number - ObjectStatics?: VisieAlgemeenFullObjectStatics - Public_Revisions?: PublicModuleObjectRevision[] - Start_Validity?: string | null - Title?: string - UUID?: string -} - export interface UserCreateResponse { Email: string Password: string @@ -930,10 +939,10 @@ export type ReportStatusType = // eslint-disable-next-line @typescript-eslint/no-redeclare export const ReportStatusType = { - Not_Applicable: 'Not Applicable', - Pending: 'Pending', - Valid: 'Valid', - Failed: 'Failed', + not_applicable: 'not_applicable', + pending: 'pending', + valid: 'valid', + failed: 'failed', } as const export interface ReadRelationShort { @@ -996,11 +1005,9 @@ export interface PublicationVersionShort { Bill_Metadata: PublicationVersionShortBillMetadata Created_Date: string Effective_Date?: string - Environment_UUID: string Is_Locked: boolean Modified_Date: string Module_Status: ModuleStatus - Procedure_Type: string Publication_UUID: string UUID: string } @@ -1010,7 +1017,6 @@ export interface PublicationVersionEditResponse { } export interface PublicationVersionEdit { - Act_Metadata?: ActMetadata Announcement_Date?: string Bill_Compact?: BillCompact Bill_Metadata?: BillMetadata @@ -1023,7 +1029,6 @@ export interface PublicationVersionCreatedResponse { } export interface PublicationVersionCreate { - Environment_UUID: string Module_Status_ID: number } @@ -1033,22 +1038,17 @@ export type PublicationVersionBillMetadata = { [key: string]: any } export type PublicationVersionBillCompact = { [key: string]: any } -export type PublicationVersionActMetadata = { [key: string]: any } - export interface PublicationVersion { - Act_Metadata: PublicationVersionActMetadata Announcement_Date?: string Bill_Compact: PublicationVersionBillCompact Bill_Metadata: PublicationVersionBillMetadata Created_Date: string Effective_Date?: string - Environment: PublicationEnvironment Is_Locked: boolean Is_Valid?: boolean Modified_Date: string Module_Status: ModuleStatus Procedural: PublicationVersionProcedural - Procedure_Type: string Publication: PublicationShort UUID: string } @@ -1070,10 +1070,14 @@ export interface PublicationTemplate { } export interface PublicationShort { + Act_UUID?: string Created_Date: string Document_Type: string + Environment_UUID?: string + Is_Locked: boolean Modified_Date: string Module_ID: number + Procedure_Type: string Template_UUID?: string Title: string UUID: string @@ -1150,12 +1154,48 @@ export interface PublicationCreatedResponse { } export interface PublicationCreate { + Act_UUID: string Document_Type: DocumentType + Environment_UUID: string Module_ID: number + Procedure_Type: ImplementedProcedureType Template_UUID: string Title: string } +export interface PublicationActShort { + Created_Date: string + Document_Type: string + Environment_UUID: string + Is_Active: boolean + Modified_Date: string + Procedure_Type: string + Title: string + UUID: string + Work_Country: string + Work_Date: string + Work_Other: string + Work_Province_ID: string +} + +export type PublicationActMetadata = { [key: string]: any } + +export interface PublicationAct { + Created_Date: string + Document_Type: string + Environment: PublicationEnvironment + Is_Active: boolean + Metadata: PublicationActMetadata + Modified_Date: string + Procedure_Type: string + Title: string + UUID: string + Work_Country: string + Work_Date: string + Work_Other: string + Work_Province_ID: string +} + export interface PublicationAOJ { Administrative_Borders_Date: string Administrative_Borders_Domain: string @@ -1165,10 +1205,14 @@ export interface PublicationAOJ { } export interface Publication { + Act_UUID?: string Created_Date: string - Document_Type: DocumentType + Document_Type: string + Environment_UUID?: string + Is_Locked: boolean Modified_Date: string Module_ID: number + Procedure_Type: string Template_UUID?: string Title: string UUID: string @@ -1285,6 +1329,17 @@ export interface ProgrammaAlgemeenBasic { UUID?: string } +/** + * An enumeration. + */ +export type ProcedureType = (typeof ProcedureType)[keyof typeof ProcedureType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ProcedureType = { + draft: 'draft', + final: 'final', +} as const + export interface Procedural { Enactment_Date?: string Procedural_Announcement_Date?: string @@ -1451,6 +1506,16 @@ export interface PagedResponsePublicationEnvironment { total: number } +/** + * Wrap any response schema and add pagination metadata. + */ +export interface PagedResponsePublicationActShort { + limit?: number + offset?: number + results: PublicationActShort[] + total: number +} + /** * Wrap any response schema and add pagination metadata. */ @@ -1675,9 +1740,9 @@ export type PackageType = (typeof PackageType)[keyof typeof PackageType] // eslint-disable-next-line @typescript-eslint/no-redeclare export const PackageType = { - Validatie: 'Validatie', - Publicatie: 'Publicatie', - Afbreken: 'Afbreken', + validation: 'validation', + publication: 'publication', + publication_abort: 'publication_abort', } as const export interface ObjectStaticShort { @@ -1826,12 +1891,6 @@ export interface ModulePatchStatus { Status: ModuleStatusCode } -export interface ModuleOverview { - Module: Module - Objects: ModuleObjectShort[] - StatusHistory: ModuleStatus[] -} - export interface ModuleObjectContextShort { Action: string Original_Adjust_On?: string @@ -1967,6 +2026,12 @@ export interface Module { Title: string } +export interface ModuleOverview { + Module: Module + Objects: ModuleObjectShort[] + StatusHistory: ModuleStatus[] +} + export interface MaatregelUUID { Object_ID?: number UUID?: string @@ -2080,6 +2145,17 @@ export interface ListObjectsByGeometryRequestData { Object_Types?: string[] } +/** + * An enumeration. + */ +export type ImplementedProcedureType = + (typeof ImplementedProcedureType)[keyof typeof ImplementedProcedureType] + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ImplementedProcedureType = { + final: 'final', +} as const + export interface HierarchyStatics { Cached_Title: string Code: string @@ -2317,8 +2393,8 @@ export type DocumentType = (typeof DocumentType)[keyof typeof DocumentType] // eslint-disable-next-line @typescript-eslint/no-redeclare export const DocumentType = { - Omgevingsvisie: 'Omgevingsvisie', - Programma: 'Programma', + omgevingsvisie: 'omgevingsvisie', + programma: 'programma', } as const export interface CompleteModule { @@ -2791,6 +2867,22 @@ export interface ActMetadata { Subjects?: string[] } +export interface ActEdit { + Metadata?: ActMetadata + Title?: string | null +} + +export interface ActCreatedResponse { + UUID: string +} + +export interface ActCreate { + Document_Type: DocumentType + Environment_UUID: string + Procedure_Type: ProcedureType + Title: string +} + export interface AcknowledgedRelationSide { Acknowledged?: string Acknowledged_By_UUID?: string diff --git a/src/api/fetchers.ts b/src/api/fetchers.ts index 38a113d8..5714c5ed 100644 --- a/src/api/fetchers.ts +++ b/src/api/fetchers.ts @@ -22,6 +22,9 @@ import type { AOJCreate, AOJCreatedResponse, AcknowledgedRelation, + ActCreate, + ActCreatedResponse, + ActEdit, ActiveModuleObjectWrapper, AmbitieFull, AmbitiePatch, @@ -137,6 +140,7 @@ import type { PagedResponsePublicModuleShort, PagedResponsePublication, PagedResponsePublicationAOJ, + PagedResponsePublicationActShort, PagedResponsePublicationEnvironment, PagedResponsePublicationPackage, PagedResponsePublicationPackageReportShort, @@ -161,6 +165,8 @@ import type { ProgrammasAlgemeenValidLineageIdGetParams, PublicModuleOverview, Publication, + PublicationAct, + PublicationActsGetParams, PublicationAojGetParams, PublicationCreate, PublicationCreatedResponse, @@ -17599,6 +17605,321 @@ export const usePublicationTemplatesTemplateUuidPost = < return useMutation(mutationOptions) } +/** + * @summary List the publication acts + */ +export const publicationActsGet = ( + params?: PublicationActsGetParams, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-acts`, + method: 'GET', + params, + signal, + }) +} + +export const getPublicationActsGetQueryKey = ( + params?: PublicationActsGetParams +) => { + return [`/publication-acts`, ...(params ? [params] : [])] as const +} + +export const getPublicationActsGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationActsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? getPublicationActsGetQueryKey(params) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => publicationActsGet(params, signal) + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationActsGetQueryResult = NonNullable< + Awaited> +> +export type PublicationActsGetQueryError = HTTPValidationError + +/** + * @summary List the publication acts + */ +export const usePublicationActsGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationActsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationActsGetQueryOptions(params, options) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Create new Act + */ +export const publicationActsPost = (actCreate: ActCreate) => { + return customInstance({ + url: `/publication-acts`, + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + data: actCreate, + }) +} + +export const getPublicationActsPostMutationOptions = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: ActCreate }, + TContext + > +}): UseMutationOptions< + Awaited>, + TError, + { data: ActCreate }, + TContext +> => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited>, + { data: ActCreate } + > = props => { + const { data } = props ?? {} + + return publicationActsPost(data) + } + + return { mutationFn, ...mutationOptions } +} + +export type PublicationActsPostMutationResult = NonNullable< + Awaited> +> +export type PublicationActsPostMutationBody = ActCreate +export type PublicationActsPostMutationError = HTTPValidationError + +/** + * @summary Create new Act + */ +export const usePublicationActsPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: ActCreate }, + TContext + > +}) => { + const mutationOptions = getPublicationActsPostMutationOptions(options) + + return useMutation(mutationOptions) +} + +/** + * @summary Get details of a publication act + */ +export const publicationActsActUuidGet = ( + actUuid: string, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-acts/${actUuid}`, + method: 'GET', + signal, + }) +} + +export const getPublicationActsActUuidGetQueryKey = (actUuid: string) => { + return [`/publication-acts/${actUuid}`] as const +} + +export const getPublicationActsActUuidGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + actUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? getPublicationActsActUuidGetQueryKey(actUuid) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => publicationActsActUuidGet(actUuid, signal) + + return { + queryKey, + queryFn, + enabled: !!actUuid, + ...queryOptions, + } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationActsActUuidGetQueryResult = NonNullable< + Awaited> +> +export type PublicationActsActUuidGetQueryError = HTTPValidationError + +/** + * @summary Get details of a publication act + */ +export const usePublicationActsActUuidGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + actUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationActsActUuidGetQueryOptions( + actUuid, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Edit publication act + */ +export const publicationActsActUuidPost = ( + actUuid: string, + actEdit: ActEdit +) => { + return customInstance({ + url: `/publication-acts/${actUuid}`, + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + data: actEdit, + }) +} + +export const getPublicationActsActUuidPostMutationOptions = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { actUuid: string; data: ActEdit }, + TContext + > +}): UseMutationOptions< + Awaited>, + TError, + { actUuid: string; data: ActEdit }, + TContext +> => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited>, + { actUuid: string; data: ActEdit } + > = props => { + const { actUuid, data } = props ?? {} + + return publicationActsActUuidPost(actUuid, data) + } + + return { mutationFn, ...mutationOptions } +} + +export type PublicationActsActUuidPostMutationResult = NonNullable< + Awaited> +> +export type PublicationActsActUuidPostMutationBody = ActEdit +export type PublicationActsActUuidPostMutationError = HTTPValidationError + +/** + * @summary Edit publication act + */ +export const usePublicationActsActUuidPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { actUuid: string; data: ActEdit }, + TContext + > +}) => { + const mutationOptions = + getPublicationActsActUuidPostMutationOptions(options) + + return useMutation(mutationOptions) +} + /** * @summary List the publication environments */ diff --git a/src/components/Modules/ModuleLock/ModuleLock.tsx b/src/components/Modules/ModuleLock/ModuleLock.tsx index ca33f053..d502ce6e 100644 --- a/src/components/Modules/ModuleLock/ModuleLock.tsx +++ b/src/components/Modules/ModuleLock/ModuleLock.tsx @@ -64,10 +64,11 @@ interface LockedNotificationProps { export const LockedNotification = ({ isDetail }: LockedNotificationProps) => ( <> {!isDetail && } - - De module is op dit moment gelockt, er kunnen geen wijzigingen - worden aangebracht. - + ) diff --git a/src/components/Publications/PublicationEnvironmentAction/PublicationEnvironmentAction.tsx b/src/components/Publications/PublicationEnvironmentAction/PublicationEnvironmentAction.tsx new file mode 100644 index 00000000..a641d2fb --- /dev/null +++ b/src/components/Publications/PublicationEnvironmentAction/PublicationEnvironmentAction.tsx @@ -0,0 +1,51 @@ +import { Button } from '@pzh-ui/components' +import { Check, Plus } from '@pzh-ui/icons' +import { useParams } from 'react-router-dom' + +import { usePublicationsGet } from '@/api/fetchers' +import { DocumentType, PublicationEnvironment } from '@/api/fetchers.schemas' +import useModalStore from '@/store/modalStore' + +interface PublicationEnvironmentActionProps extends PublicationEnvironment { + type: DocumentType +} + +const PublicationEnvironmentAction = ({ + type, + Title, + UUID, +}: PublicationEnvironmentActionProps) => { + const { moduleId } = useParams() + + const setActiveModal = useModalStore(state => state.setActiveModal) + + const { data } = usePublicationsGet( + { document_type: type, module_id: parseInt(moduleId!) }, + { + query: { + enabled: !!moduleId, + select: data => + data.results.find( + publication => publication.Environment_UUID === UUID + ), + }, + } + ) + + return ( + + ) +} + +export default PublicationEnvironmentAction diff --git a/src/components/Publications/PublicationEnvironmentAction/index.ts b/src/components/Publications/PublicationEnvironmentAction/index.ts new file mode 100644 index 00000000..dc6ff32c --- /dev/null +++ b/src/components/Publications/PublicationEnvironmentAction/index.ts @@ -0,0 +1 @@ +export { default } from './PublicationEnvironmentAction' diff --git a/src/components/Publications/PublicationForm/PublicationForm.tsx b/src/components/Publications/PublicationForm/PublicationForm.tsx index 76014cd6..3da3b086 100644 --- a/src/components/Publications/PublicationForm/PublicationForm.tsx +++ b/src/components/Publications/PublicationForm/PublicationForm.tsx @@ -31,9 +31,9 @@ const PublicationForm = ({ } ) - const documentTypeOptions = ( - Object.keys(DocumentType) as Array - ).map(type => ({ label: type, value: type })) + const documentTypeOptions = Object.entries(DocumentType).map( + ([, value]) => ({ label: value, value }) + ) return ( { const validationPackage = packages?.results.find( - pkg => pkg.Package_Type === PackageType['Validatie'] + pkg => pkg.Package_Type === PackageType['validation'] ) const publicationPackage = packages?.results.find( - pkg => pkg.Package_Type === PackageType['Publicatie'] + pkg => pkg.Package_Type === PackageType['publication'] ) const abortPackage = packages?.results.find( - pkg => pkg.Package_Type === PackageType['Afbreken'] + pkg => pkg.Package_Type === PackageType['publication_abort'] ) return { validationPackage, publicationPackage, abortPackage } @@ -89,7 +89,7 @@ const PublicationPackages = ({ { const setActiveModal = useModalStore(state => state.setActiveModal) + const { data: environments } = usePublicationEnvironmentsGet({ + is_active: true, + }) + const { data, isPending } = usePublicationsGet( { document_type: type, module_id: parseInt(moduleId!) }, { query: { enabled: !!moduleId } } @@ -28,7 +41,40 @@ const Publications = ({ type }: PublicationsProps) => { return (
    - {type} + + {type} + + +
    + {Object.entries(ProcedureType).map(([key, value]) => ( +
    +
    + + {PROCEDURE_TYPE[value]} + +
    + +
    + {environments?.results.map(environment => ( +
    + +
    + ))} +
    +
    + ))} +
    {isPending ? (
    @@ -40,8 +86,7 @@ const Publications = ({ type }: PublicationsProps) => { )) ) : ( - Er zijn nog geen {type.toLowerCase()} publicaties - aangemaakt. + Er zijn nog geen {type} publicaties aangemaakt. )} From 799a6e07e7280feffbe887586123fa30181b5f02 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 1 Apr 2024 15:02:34 +0200 Subject: [PATCH 50/82] Add publication acts --- .../PublicationAddModal.tsx | 6 +- .../PublicationEditModal.tsx | 5 +- .../PublicationPackagesModal.tsx | 8 +- .../PublicationVersionAbortModal.tsx | 9 +- .../PublicationVersionEditModal.tsx | 1 - src/components/Modals/types.ts | 7 +- .../Publications/Publication/Publication.tsx | 18 +- .../PublicationEnvironmentAction.tsx | 18 +- .../PublicationForm/PublicationForm.tsx | 205 +++++++++++++----- .../PublicationPackages.tsx | 18 +- .../PublicationVersionForm.tsx | 42 +--- .../PublicationVersions.tsx | 20 +- src/components/Publications/Publications.tsx | 142 ++++++------ src/validation/publication.ts | 1 - 14 files changed, 296 insertions(+), 204 deletions(-) diff --git a/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx b/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx index e1306ec3..629aeca0 100644 --- a/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationAddModal/PublicationAddModal.tsx @@ -23,7 +23,7 @@ const PublicationAddModal = () => { onSuccess: () => { queryClient.invalidateQueries({ queryKey: getPublicationsGetQueryKey({ - document_type: modalState?.type, + document_type: modalState?.documentType, }), }) @@ -34,7 +34,9 @@ const PublicationAddModal = () => { const initialValues = { Module_ID: parseInt(moduleId!), - Document_Type: modalState?.type, + Document_Type: modalState?.documentType, + Procedure_Type: modalState?.procedureType, + Environment_UUID: modalState?.environmentUUID, } as PublicationCreate const handleFormSubmit = (payload: PublicationCreate) => { diff --git a/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx b/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx index 102b7506..116a44c3 100644 --- a/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx @@ -5,7 +5,7 @@ import { usePublicationsPublicationUuidGet, usePublicationsPublicationUuidPost, } from '@/api/fetchers' -import { PublicationEdit } from '@/api/fetchers.schemas' +import { DocumentType, PublicationEdit } from '@/api/fetchers.schemas' import { LoaderSpinner } from '@/components/Loader' import Modal from '@/components/Modal/Modal' import PublicationForm from '@/components/Publications/PublicationForm' @@ -35,7 +35,8 @@ const PublicationEditModal = () => { onSuccess: () => { queryClient.invalidateQueries({ queryKey: getPublicationsGetQueryKey({ - document_type: modalState.publication.Document_Type, + document_type: modalState.publication + .Document_Type as DocumentType, }), }) diff --git a/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx b/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx index b50964fa..7e90ccba 100644 --- a/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx @@ -34,7 +34,8 @@ const PublicationPackagesModal = () => { select: data => data.results.find( environment => - environment.UUID === modalState.version.Environment_UUID + environment.UUID === + modalState.publication.Environment_UUID ), }, }) @@ -48,7 +49,10 @@ const PublicationPackagesModal = () => { {environment?.Can_Publicate ? 'Officiële' : 'Interne'}{' '} publicatie) - +
    diff --git a/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx index 8b9037ed..f2d73749 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx @@ -34,7 +34,8 @@ const PublicationVersionAbortModal = () => { select: data => data.results.find( environment => - environment.UUID === modalState.version.Environment_UUID + environment.UUID === + modalState.publication.Environment_UUID ), }, }) @@ -51,7 +52,11 @@ const PublicationVersionAbortModal = () => { {environment?.Can_Publicate ? 'Officiële' : 'Interne'}{' '} publicatie) - +
    diff --git a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx index 94a9ce6a..8bf20d6a 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx @@ -66,7 +66,6 @@ const PublicationVersionEditModal = () => { const initialValues = { ...data, - Environment_UUID: data?.Environment.UUID, Module_Status_ID: data?.Module_Status.ID, } as PublicationVersionEdit diff --git a/src/components/Modals/types.ts b/src/components/Modals/types.ts index cdca54cd..b9e3bee0 100644 --- a/src/components/Modals/types.ts +++ b/src/components/Modals/types.ts @@ -1,5 +1,6 @@ import { DocumentType, + ProcedureType, Publication, PublicationVersionShort, } from '@/api/fetchers.schemas' @@ -37,7 +38,11 @@ export type ModalType = | 'publicationVersionAbort' export interface ModalStateMap { - publicationAdd: { type: DocumentType } + publicationAdd: { + documentType: DocumentType + procedureType: ProcedureType + environmentUUID: string + } publicationEdit: { publication: Publication } publicationVersionAdd: { publication: Publication } publicationVersionEdit: { publication: Publication; UUID: string } diff --git a/src/components/Publications/Publication/Publication.tsx b/src/components/Publications/Publication/Publication.tsx index cc757ad0..f626ae21 100644 --- a/src/components/Publications/Publication/Publication.tsx +++ b/src/components/Publications/Publication/Publication.tsx @@ -1,6 +1,7 @@ import { Button, Heading } from '@pzh-ui/components' import { Plus } from '@pzh-ui/icons' +import { usePublicationEnvironmentsGet } from '@/api/fetchers' import { Publication as PublicationType } from '@/api/fetchers.schemas' import usePermissions from '@/hooks/usePermissions' import useModalStore from '@/store/modalStore' @@ -16,10 +17,22 @@ const Publication = ({ data }: PublicationProps) => { const setActiveModal = useModalStore(state => state.setActiveModal) + const { data: environment } = usePublicationEnvironmentsGet(undefined, { + query: { + select: e => + e.results.find( + environment => environment.UUID === data.Environment_UUID + ), + }, + }) + return ( -
    +
    - {data.Title || data.Document_Type} + + {data.Title || data.Document_Type} - {environment?.Title}{' '} + publicatie + {canEditPublication && (
    - - - )}
    diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx index f490a538..7673bab7 100644 --- a/src/components/Publications/PublicationVersions/PublicationVersions.tsx +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -5,10 +5,7 @@ import classNames from 'clsx' import { useMemo, useState } from 'react' import { useParams } from 'react-router-dom' -import { - usePublicationEnvironmentsGet, - usePublicationsPublicationUuidVersionsGet, -} from '@/api/fetchers' +import { usePublicationsPublicationUuidVersionsGet } from '@/api/fetchers' import { Publication, PublicationVersionShort } from '@/api/fetchers.schemas' import { LoaderSpinner } from '@/components/Loader' import usePermissions from '@/hooks/usePermissions' @@ -50,7 +47,6 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => {
  • Datum aangemaaktPublicatieomgeving Gebaseerd op Modulestatus Actie
    {date}{environment?.Title} {version.Module_Status.Status}
    diff --git a/src/components/Publications/Publications.tsx b/src/components/Publications/Publications.tsx index 06d7270a..17ddcead 100644 --- a/src/components/Publications/Publications.tsx +++ b/src/components/Publications/Publications.tsx @@ -1,5 +1,7 @@ -import { Button, Heading, Text } from '@pzh-ui/components' -import { Plus } from '@pzh-ui/icons' +import { Button, Heading } from '@pzh-ui/components' +import { Minus, Plus } from '@pzh-ui/icons' +import classNames from 'clsx' +import { useState } from 'react' import { useParams } from 'react-router-dom' import { @@ -7,10 +9,7 @@ import { usePublicationsGet, } from '@/api/fetchers' import { DocumentType, ProcedureType } from '@/api/fetchers.schemas' -import usePermissions from '@/hooks/usePermissions' -import useModalStore from '@/store/modalStore' -import { LoaderSpinner } from '../Loader' import Publication from './Publication' import PublicationEnvironmentAction from './PublicationEnvironmentAction' @@ -23,81 +22,96 @@ interface PublicationsProps { type: DocumentType } -const Publications = ({ type }: PublicationsProps) => { - const { moduleId } = useParams() +const Publications = ({ type }: PublicationsProps) => ( +
    + + {type} + - const { canCreatePublication } = usePermissions() +
    + {Object.entries(ProcedureType).map(([key, value]) => ( + + ))} +
    +
    +) - const setActiveModal = useModalStore(state => state.setActiveModal) +interface PublicationCollection { + procedureType: ProcedureType + documentType: DocumentType +} + +const PublicationCollection = ({ + procedureType, + documentType, +}: PublicationCollection) => { + const { moduleId } = useParams() + + const [isOpen, setIsOpen] = useState(false) const { data: environments } = usePublicationEnvironmentsGet({ is_active: true, }) - const { data, isPending } = usePublicationsGet( - { document_type: type, module_id: parseInt(moduleId!) }, - { query: { enabled: !!moduleId } } + const { data } = usePublicationsGet( + { document_type: documentType, module_id: parseInt(moduleId!) }, + { + query: { + enabled: !!moduleId, + select: data => + data.results.filter( + publication => + publication.Procedure_Type === procedureType + ), + }, + } ) return ( -
    - - {type} - +
    +
    + {PROCEDURE_TYPE[procedureType]} +
    -
    - {Object.entries(ProcedureType).map(([key, value]) => ( -
    -
    - - {PROCEDURE_TYPE[value]} - -
    - ))} -
    - - {isPending ? ( -
    - + ))}
    - ) : !!data?.results.length ? ( - data.results.map(publication => ( + ) : ( + !!data?.length && + data.map(publication => ( )) - ) : ( - - Er zijn nog geen {type} publicaties aangemaakt. - - )} - - {canCreatePublication && ( - )}
    ) diff --git a/src/validation/publication.ts b/src/validation/publication.ts index e4bb8449..6c742a87 100644 --- a/src/validation/publication.ts +++ b/src/validation/publication.ts @@ -10,7 +10,6 @@ export const PUBLICATION_SCHEMA = object({ export const PUBLICATION_VERSION_ADD_SCHEMA = object({ Module_Status_ID: schemaDefaults.requiredNumber(), - Environment_UUID: schemaDefaults.requiredString(), }) export const PUBLICATION_VERSION_EDIT_SCHEMA = object({ From db3796b7d27daa6d1a65a78064ddf780a656742b Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Wed, 3 Apr 2024 14:26:38 +0200 Subject: [PATCH 51/82] Update api endpoints --- package.json | 6 +- src/api/fetchers.msw.ts | 631 ++++++- src/api/fetchers.schemas.ts | 310 +++- src/api/fetchers.ts | 1642 +++++++++++++++-- .../PublicationVersionAbortModal.tsx | 1 - .../PublicationPackages.tsx | 68 +- .../components/PackageStep.tsx | 4 +- .../components/PackageStepActions.tsx | 63 +- .../PublicationVersions.tsx | 13 +- .../Modules/ModuleDetail/ModuleDetail.tsx | 3 +- yarn.lock | 60 +- 11 files changed, 2332 insertions(+), 469 deletions(-) diff --git a/package.json b/package.json index da5e4e42..fa51ca67 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,10 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.488", - "@pzh-ui/config": "^0.0.56", + "@pzh-ui/components": "^0.0.494", + "@pzh-ui/config": "^0.0.58", "@pzh-ui/css": "^0.0.82", - "@pzh-ui/icons": "^0.0.50", + "@pzh-ui/icons": "^0.0.52", "@react-hookz/web": "^24.0.4", "@tanstack/react-query": "^5.24.7", "axios": "^1.6.7", diff --git a/src/api/fetchers.msw.ts b/src/api/fetchers.msw.ts index eb9c8772..096a71ef 100644 --- a/src/api/fetchers.msw.ts +++ b/src/api/fetchers.msw.ts @@ -17,6 +17,9 @@ import type { ActiveModuleObjectWrapper, AmbitieFull, AmbitieUUID, + AnnouncementCreatedResponse, + AppExtensionsPublicationsEndpointsPublicationsActReportsUploadActPackageReportUploadPackageReportResponse, + AppExtensionsPublicationsEndpointsPublicationsAnnouncementReportsUploadAnnouncementPackageReportUploadPackageReportResponse, AuthToken, BeleidsdoelFull, BeleidsdoelUUID, @@ -62,10 +65,12 @@ import type { PagedResponsePublicModuleShort, PagedResponsePublication, PagedResponsePublicationAOJ, + PagedResponsePublicationActPackageReportShort, PagedResponsePublicationActShort, + PagedResponsePublicationAnnouncementPackageReportShort, + PagedResponsePublicationAnnouncementShort, PagedResponsePublicationEnvironment, PagedResponsePublicationPackage, - PagedResponsePublicationPackageReportShort, PagedResponsePublicationTemplate, PagedResponsePublicationVersionShort, PagedResponseSearchObject, @@ -83,11 +88,16 @@ import type { PublicModuleOverview, Publication, PublicationAct, + PublicationActPackageReport, + PublicationActPackagesActPackageUuidDownloadGet200, + PublicationActReportsActReportUuidDownloadGet200, + PublicationAnnouncement, + PublicationAnnouncementPackageCreatedResponse, + PublicationAnnouncementPackageReport, + PublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet200, + PublicationAnnouncementReportsAnnouncementReportUuidDownloadGet200, PublicationCreatedResponse, PublicationPackageCreatedResponse, - PublicationPackageReport, - PublicationPackagesPackageUuidDownloadGet200, - PublicationReportsReportUuidDownloadGet200, PublicationTemplate, PublicationVersion, PublicationVersionCreatedResponse, @@ -96,7 +106,6 @@ import type { ResetPasswordResponse, ResponseOK, TemplateCreatedResponse, - UploadPackageReportResponse, User, UserCreateResponse, VerplichtProgrammaFull, @@ -3060,7 +3069,10 @@ export const getBeleidskeuzesVersionObjectUuidGetResponseMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Start_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -3448,7 +3460,10 @@ export const getBeleidskeuzesLatestLineageIdGetResponseMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Start_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -4089,7 +4104,10 @@ export const getModulesModuleIdObjectBeleidskeuzeLatestLineageIdGetResponseMock `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${ faker.date.past().toISOString().split('.')[0] }Z`, @@ -4501,7 +4519,10 @@ export const getModulesModuleIdObjectBeleidskeuzeVersionObjectUuidGetResponseMoc `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${ faker.date.past().toISOString().split('.')[0] }Z`, @@ -4974,7 +4995,10 @@ export const getRevisionsModuleIdBeleidskeuzeVersionObjectUuidGetResponseMock = `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${ faker.date.past().toISOString().split('.')[0] }Z`, @@ -7800,7 +7824,10 @@ export const getMaatregelenVersionObjectUuidGetResponseMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Start_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -8082,7 +8109,10 @@ export const getMaatregelenLatestLineageIdGetResponseMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Start_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -8330,7 +8360,10 @@ export const getModulesModuleIdObjectMaatregelLineageIdGetResponseMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${ faker.date.past().toISOString().split('.')[0] }Z`, @@ -8557,7 +8590,10 @@ export const getModulesModuleIdObjectMaatregelLatestLineageIdGetResponseMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Start_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -8849,7 +8885,10 @@ export const getModulesModuleIdObjectMaatregelVersionObjectUuidGetResponseMock = `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${ faker.date.past().toISOString().split('.')[0] }Z`, @@ -9197,7 +9236,10 @@ export const getRevisionsModuleIdMaatregelVersionObjectUuidGetResponseMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Start_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -12424,7 +12466,10 @@ export const getSourceWerkingsgebiedenGetResponseMock = ( `${faker.date.past().toISOString().split('.')[0]}Z`, undefined, ]), - ID: faker.number.int({ min: undefined, max: undefined }), + ID: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Start_Validity: faker.helpers.arrayElement([ `${faker.date.past().toISOString().split('.')[0]}Z`, @@ -13559,7 +13604,7 @@ export const getPublicationVersionsVersionUuidPackagesPostResponseMock = ( ...overrideResponse, }) -export const getPublicationPackagesGetResponseMock = ( +export const getPublicationActPackagesGetResponseMock = ( overrideResponse: any = {} ): PagedResponsePublicationPackage => ({ limit: faker.helpers.arrayElement([ @@ -13601,20 +13646,20 @@ export const getPublicationPackagesGetResponseMock = ( ...overrideResponse, }) -export const getPublicationPackagesPackageUuidDownloadGetResponseMock = - (): PublicationPackagesPackageUuidDownloadGet200 => ({}) +export const getPublicationActPackagesActPackageUuidDownloadGetResponseMock = + (): PublicationActPackagesActPackageUuidDownloadGet200 => ({}) -export const getPublicationPackagesPackageUuidReportPostResponseMock = ( +export const getPublicationActPackagesActPackageUuidReportPostResponseMock = ( overrideResponse: any = {} -): UploadPackageReportResponse => ({ +): AppExtensionsPublicationsEndpointsPublicationsActReportsUploadActPackageReportUploadPackageReportResponse => ({ Duplicate_Count: faker.number.int({ min: undefined, max: undefined }), Status: faker.helpers.arrayElement(Object.values(ReportStatusType)), ...overrideResponse, }) -export const getPublicationReportsGetResponseMock = ( +export const getPublicationActReportsGetResponseMock = ( overrideResponse: any = {} -): PagedResponsePublicationPackageReportShort => ({ +): PagedResponsePublicationActPackageReportShort => ({ limit: faker.helpers.arrayElement([ faker.number.int({ min: undefined, max: undefined }), undefined, @@ -13627,10 +13672,10 @@ export const getPublicationReportsGetResponseMock = ( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 ).map(() => ({ + Act_Package_UUID: faker.string.uuid(), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Filename: faker.word.sample(), Main_Outcome: faker.word.sample(), - Package_UUID: faker.string.uuid(), Report_Status: faker.word.sample(), UUID: faker.string.uuid(), ...overrideResponse, @@ -13639,13 +13684,13 @@ export const getPublicationReportsGetResponseMock = ( ...overrideResponse, }) -export const getPublicationReportsReportUuidGetResponseMock = ( +export const getPublicationActReportsActReportUuidGetResponseMock = ( overrideResponse: any = {} -): PublicationPackageReport => ({ +): PublicationActPackageReport => ({ + Act_Package_UUID: faker.string.uuid(), Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, Filename: faker.word.sample(), Main_Outcome: faker.word.sample(), - Package_UUID: faker.string.uuid(), Report_Status: faker.word.sample(), Source_Document: faker.word.sample(), Sub_Delivery_ID: faker.word.sample(), @@ -13655,8 +13700,204 @@ export const getPublicationReportsReportUuidGetResponseMock = ( ...overrideResponse, }) -export const getPublicationReportsReportUuidDownloadGetResponseMock = - (): PublicationReportsReportUuidDownloadGet200 => ({}) +export const getPublicationActReportsActReportUuidDownloadGetResponseMock = + (): PublicationActReportsActReportUuidDownloadGet200 => ({}) + +export const getPublicationActPackagesActPackageUuidCreateAnnouncementPostResponseMock = + (overrideResponse: any = {}): AnnouncementCreatedResponse => ({ + UUID: faker.string.uuid(), + ...overrideResponse, + }) + +export const getPublicationAnnouncementsGetResponseMock = ( + overrideResponse: any = {} +): PagedResponsePublicationAnnouncementShort => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Announcement_Date: faker.helpers.arrayElement([ + faker.date.past().toISOString().split('T')[0], + undefined, + ]), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Is_Locked: faker.datatype.boolean(), + Metadata: {}, + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + UUID: faker.string.uuid(), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getPublicationAnnouncementsAnnouncementUuidGetResponseMock = ( + overrideResponse: any = {} +): PublicationAnnouncement => ({ + Act_Package: { + Created_By_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Delivery_ID: faker.word.sample(), + Modified_By_UUID: faker.string.uuid(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Package_Type: faker.word.sample(), + Report_Status: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + Announcement_Date: faker.helpers.arrayElement([ + faker.date.past().toISOString().split('T')[0], + undefined, + ]), + Content: {}, + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Is_Locked: faker.datatype.boolean(), + Metadata: {}, + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Procedural: {}, + Publication: { + Act_UUID: faker.helpers.arrayElement([faker.string.uuid(), undefined]), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Document_Type: faker.word.sample(), + Environment_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Is_Locked: faker.datatype.boolean(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Module_ID: faker.number.int({ min: undefined, max: undefined }), + Procedure_Type: faker.word.sample(), + Template_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Title: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + UUID: faker.string.uuid(), + ...overrideResponse, +}) + +export const getPublicationAnnouncementsAnnouncementUuidPostResponseMock = ( + overrideResponse: any = {} +): ResponseOK => ({ message: faker.word.sample(), ...overrideResponse }) + +export const getPublicationAnnouncementsAnnouncementUuidPackagesPostResponseMock = + ( + overrideResponse: any = {} + ): PublicationAnnouncementPackageCreatedResponse => ({ + Package_UUID: faker.string.uuid(), + Zip_UUID: faker.string.uuid(), + ...overrideResponse, + }) + +export const getPublicationAnnouncementPackagesGetResponseMock = ( + overrideResponse: any = {} +): PagedResponsePublicationPackage => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Created_By_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Delivery_ID: faker.word.sample(), + Modified_By_UUID: faker.string.uuid(), + Modified_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Package_Type: faker.word.sample(), + Report_Status: faker.word.sample(), + UUID: faker.string.uuid(), + Zip: { + Filename: faker.word.sample(), + Latest_Download_By_UUID: faker.helpers.arrayElement([ + faker.string.uuid(), + undefined, + ]), + Latest_Download_Date: faker.helpers.arrayElement([ + `${faker.date.past().toISOString().split('.')[0]}Z`, + undefined, + ]), + UUID: faker.string.uuid(), + ...overrideResponse, + }, + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetResponseMock = + (): PublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet200 => ({}) + +export const getPublicationAnnouncementPackagesAnnouncementPackageUuidReportPostResponseMock = + ( + overrideResponse: any = {} + ): AppExtensionsPublicationsEndpointsPublicationsAnnouncementReportsUploadAnnouncementPackageReportUploadPackageReportResponse => ({ + Duplicate_Count: faker.number.int({ min: undefined, max: undefined }), + Status: faker.helpers.arrayElement(Object.values(ReportStatusType)), + ...overrideResponse, + }) + +export const getPublicationAnnouncementReportsGetResponseMock = ( + overrideResponse: any = {} +): PagedResponsePublicationAnnouncementPackageReportShort => ({ + limit: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + offset: faker.helpers.arrayElement([ + faker.number.int({ min: undefined, max: undefined }), + undefined, + ]), + results: Array.from( + { length: faker.number.int({ min: 1, max: 10 }) }, + (_, i) => i + 1 + ).map(() => ({ + Announcement_Package_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Filename: faker.word.sample(), + Main_Outcome: faker.word.sample(), + Report_Status: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + })), + total: faker.number.int({ min: undefined, max: undefined }), + ...overrideResponse, +}) + +export const getPublicationAnnouncementReportsAnnouncementReportUuidGetResponseMock = + (overrideResponse: any = {}): PublicationAnnouncementPackageReport => ({ + Announcement_Package_UUID: faker.string.uuid(), + Created_Date: `${faker.date.past().toISOString().split('.')[0]}Z`, + Filename: faker.word.sample(), + Main_Outcome: faker.word.sample(), + Report_Status: faker.word.sample(), + Source_Document: faker.word.sample(), + Sub_Delivery_ID: faker.word.sample(), + Sub_Outcome: faker.word.sample(), + Sub_Progress: faker.word.sample(), + UUID: faker.string.uuid(), + ...overrideResponse, + }) + +export const getPublicationAnnouncementReportsAnnouncementReportUuidDownloadGetResponseMock = + (): PublicationAnnouncementReportsAnnouncementReportUuidDownloadGet200 => ({}) export const getLoginAccessTokenPostResponseMock = ( overrideResponse: any = {} @@ -17895,16 +18136,16 @@ export const getPublicationVersionsVersionUuidPackagesPostMockHandler = ( ) } -export const getPublicationPackagesGetMockHandler = ( +export const getPublicationActPackagesGetMockHandler = ( overrideResponse?: PagedResponsePublicationPackage ) => { - return http.get('*/publication-packages', async () => { + return http.get('*/publication-act-packages', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationPackagesGetResponseMock() + : getPublicationActPackagesGetResponseMock() ), { status: 200, @@ -17916,18 +18157,18 @@ export const getPublicationPackagesGetMockHandler = ( }) } -export const getPublicationPackagesPackageUuidDownloadGetMockHandler = ( - overrideResponse?: PublicationPackagesPackageUuidDownloadGet200 +export const getPublicationActPackagesActPackageUuidDownloadGetMockHandler = ( + overrideResponse?: PublicationActPackagesActPackageUuidDownloadGet200 ) => { return http.get( - '*/publication-packages/:packageUuid/download', + '*/publication-act-packages/:actPackageUuid/download', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationPackagesPackageUuidDownloadGetResponseMock() + : getPublicationActPackagesActPackageUuidDownloadGetResponseMock() ), { status: 200, @@ -17940,16 +18181,40 @@ export const getPublicationPackagesPackageUuidDownloadGetMockHandler = ( ) } -export const getPublicationPackagesPackageUuidReportPostMockHandler = ( - overrideResponse?: UploadPackageReportResponse +export const getPublicationActPackagesActPackageUuidReportPostMockHandler = ( + overrideResponse?: AppExtensionsPublicationsEndpointsPublicationsActReportsUploadActPackageReportUploadPackageReportResponse ) => { - return http.post('*/publication-packages/:packageUuid/report', async () => { + return http.post( + '*/publication-act-packages/:actPackageUuid/report', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationActPackagesActPackageUuidReportPostResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getPublicationActReportsGetMockHandler = ( + overrideResponse?: PagedResponsePublicationActPackageReportShort +) => { + return http.get('*/publication-act-reports', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationPackagesPackageUuidReportPostResponseMock() + : getPublicationActReportsGetResponseMock() ), { status: 200, @@ -17961,16 +18226,16 @@ export const getPublicationPackagesPackageUuidReportPostMockHandler = ( }) } -export const getPublicationReportsGetMockHandler = ( - overrideResponse?: PagedResponsePublicationPackageReportShort +export const getPublicationActReportsActReportUuidGetMockHandler = ( + overrideResponse?: PublicationActPackageReport ) => { - return http.get('*/publication-reports', async () => { + return http.get('*/publication-act-reports/:actReportUuid', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationReportsGetResponseMock() + : getPublicationActReportsActReportUuidGetResponseMock() ), { status: 200, @@ -17982,16 +18247,63 @@ export const getPublicationReportsGetMockHandler = ( }) } -export const getPublicationReportsReportUuidGetMockHandler = ( - overrideResponse?: PublicationPackageReport +export const getPublicationActReportsActReportUuidDownloadGetMockHandler = ( + overrideResponse?: PublicationActReportsActReportUuidDownloadGet200 +) => { + return http.get( + '*/publication-act-reports/:actReportUuid/download', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationActReportsActReportUuidDownloadGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getPublicationActPackagesActPackageUuidCreateAnnouncementPostMockHandler = + (overrideResponse?: AnnouncementCreatedResponse) => { + return http.post( + '*/publication-act-packages/:actPackageUuid/create-announcement', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationActPackagesActPackageUuidCreateAnnouncementPostResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getPublicationAnnouncementsGetMockHandler = ( + overrideResponse?: PagedResponsePublicationAnnouncementShort ) => { - return http.get('*/publication-reports/:reportUuid', async () => { + return http.get('*/publication-announcements', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationReportsReportUuidGetResponseMock() + : getPublicationAnnouncementsGetResponseMock() ), { status: 200, @@ -18003,16 +18315,87 @@ export const getPublicationReportsReportUuidGetMockHandler = ( }) } -export const getPublicationReportsReportUuidDownloadGetMockHandler = ( - overrideResponse?: PublicationReportsReportUuidDownloadGet200 +export const getPublicationAnnouncementsAnnouncementUuidGetMockHandler = ( + overrideResponse?: PublicationAnnouncement ) => { - return http.get('*/publication-reports/:reportUuid/download', async () => { + return http.get( + '*/publication-announcements/:announcementUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationAnnouncementsAnnouncementUuidGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getPublicationAnnouncementsAnnouncementUuidPostMockHandler = ( + overrideResponse?: ResponseOK +) => { + return http.post( + '*/publication-announcements/:announcementUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationAnnouncementsAnnouncementUuidPostResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) +} + +export const getPublicationAnnouncementsAnnouncementUuidPackagesPostMockHandler = + (overrideResponse?: PublicationAnnouncementPackageCreatedResponse) => { + return http.post( + '*/publication-announcements/:announcementUuid/packages', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationAnnouncementsAnnouncementUuidPackagesPostResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getPublicationAnnouncementPackagesGetMockHandler = ( + overrideResponse?: PagedResponsePublicationPackage +) => { + return http.get('*/publication-announcement-packages', async () => { await delay(1000) return new HttpResponse( JSON.stringify( overrideResponse ? overrideResponse - : getPublicationReportsReportUuidDownloadGetResponseMock() + : getPublicationAnnouncementPackagesGetResponseMock() ), { status: 200, @@ -18024,6 +18407,125 @@ export const getPublicationReportsReportUuidDownloadGetMockHandler = ( }) } +export const getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetMockHandler = + ( + overrideResponse?: PublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet200 + ) => { + return http.get( + '*/publication-announcement-packages/:announcementPackageUuid/download', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getPublicationAnnouncementPackagesAnnouncementPackageUuidReportPostMockHandler = + ( + overrideResponse?: AppExtensionsPublicationsEndpointsPublicationsAnnouncementReportsUploadAnnouncementPackageReportUploadPackageReportResponse + ) => { + return http.post( + '*/publication-announcement-packages/:announcementPackageUuid/report', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationAnnouncementPackagesAnnouncementPackageUuidReportPostResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getPublicationAnnouncementReportsGetMockHandler = ( + overrideResponse?: PagedResponsePublicationAnnouncementPackageReportShort +) => { + return http.get('*/publication-announcement-reports', async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationAnnouncementReportsGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + }) +} + +export const getPublicationAnnouncementReportsAnnouncementReportUuidGetMockHandler = + (overrideResponse?: PublicationAnnouncementPackageReport) => { + return http.get( + '*/publication-announcement-reports/:announcementReportUuid', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationAnnouncementReportsAnnouncementReportUuidGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + +export const getPublicationAnnouncementReportsAnnouncementReportUuidDownloadGetMockHandler = + ( + overrideResponse?: PublicationAnnouncementReportsAnnouncementReportUuidDownloadGet200 + ) => { + return http.get( + '*/publication-announcement-reports/:announcementReportUuid/download', + async () => { + await delay(1000) + return new HttpResponse( + JSON.stringify( + overrideResponse + ? overrideResponse + : getPublicationAnnouncementReportsAnnouncementReportUuidDownloadGetResponseMock() + ), + { + status: 200, + headers: { + 'Content-Type': 'application/json', + }, + } + ) + } + ) + } + export const getLoginAccessTokenPostMockHandler = ( overrideResponse?: AuthToken ) => { @@ -18281,12 +18783,23 @@ export const getOmgevingsbeleidAPIMock = () => [ getPublicationVersionsVersionUuidGetMockHandler(), getPublicationVersionsVersionUuidPostMockHandler(), getPublicationVersionsVersionUuidPackagesPostMockHandler(), - getPublicationPackagesGetMockHandler(), - getPublicationPackagesPackageUuidDownloadGetMockHandler(), - getPublicationPackagesPackageUuidReportPostMockHandler(), - getPublicationReportsGetMockHandler(), - getPublicationReportsReportUuidGetMockHandler(), - getPublicationReportsReportUuidDownloadGetMockHandler(), + getPublicationActPackagesGetMockHandler(), + getPublicationActPackagesActPackageUuidDownloadGetMockHandler(), + getPublicationActPackagesActPackageUuidReportPostMockHandler(), + getPublicationActReportsGetMockHandler(), + getPublicationActReportsActReportUuidGetMockHandler(), + getPublicationActReportsActReportUuidDownloadGetMockHandler(), + getPublicationActPackagesActPackageUuidCreateAnnouncementPostMockHandler(), + getPublicationAnnouncementsGetMockHandler(), + getPublicationAnnouncementsAnnouncementUuidGetMockHandler(), + getPublicationAnnouncementsAnnouncementUuidPostMockHandler(), + getPublicationAnnouncementsAnnouncementUuidPackagesPostMockHandler(), + getPublicationAnnouncementPackagesGetMockHandler(), + getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetMockHandler(), + getPublicationAnnouncementPackagesAnnouncementPackageUuidReportPostMockHandler(), + getPublicationAnnouncementReportsGetMockHandler(), + getPublicationAnnouncementReportsAnnouncementReportUuidGetMockHandler(), + getPublicationAnnouncementReportsAnnouncementReportUuidDownloadGetMockHandler(), getLoginAccessTokenPostMockHandler(), getPasswordResetPostMockHandler(), getHealthCheckHealthGetMockHandler(), diff --git a/src/api/fetchers.schemas.ts b/src/api/fetchers.schemas.ts index 6d6f0c17..97129fde 100644 --- a/src/api/fetchers.schemas.ts +++ b/src/api/fetchers.schemas.ts @@ -15,18 +15,43 @@ export type PasswordResetPostParams = { new_password: string } -export type PublicationReportsReportUuidDownloadGet200 = {} +export type PublicationAnnouncementReportsAnnouncementReportUuidDownloadGet200 = + {} -export type PublicationReportsGetParams = { - package_uuid?: string +export type PublicationAnnouncementReportsGetParams = { + announcement_package_uuid?: string report_status?: ReportStatusType offset?: number limit?: number } -export type PublicationPackagesPackageUuidDownloadGet200 = {} +export type PublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet200 = + {} -export type PublicationPackagesGetParams = { +export type PublicationAnnouncementPackagesGetParams = { + announcement_uuid?: string + offset?: number + limit?: number +} + +export type PublicationAnnouncementsGetParams = { + act_package_uuid?: string + offset?: number + limit?: number +} + +export type PublicationActReportsActReportUuidDownloadGet200 = {} + +export type PublicationActReportsGetParams = { + act_package_uuid?: string + report_status?: ReportStatusType + offset?: number + limit?: number +} + +export type PublicationActPackagesActPackageUuidDownloadGet200 = {} + +export type PublicationActPackagesGetParams = { version_uuid?: string offset?: number limit?: number @@ -477,6 +502,16 @@ export type AmbitiesValidGetParams = { sort_order?: SortOrder } +export interface AppExtensionsPublicationsEndpointsPublicationsAnnouncementReportsUploadAnnouncementPackageReportUploadPackageReportResponse { + Duplicate_Count: number + Status: ReportStatusType +} + +export interface AppExtensionsPublicationsEndpointsPublicationsActReportsUploadActPackageReportUploadPackageReportResponse { + Duplicate_Count: number + Status: ReportStatusType +} + export interface WriteRelation { Description?: string | null Object_ID: number @@ -646,7 +681,7 @@ export interface WerkingsgebiedBasic { export interface Werkingsgebied { Created_Date: string End_Validity?: string - ID: number + ID?: number Modified_Date: string Start_Validity?: string Title: string @@ -848,11 +883,6 @@ export interface User { UUID: string } -export interface UploadPackageReportResponse { - Duplicate_Count: number - Status: ReportStatusType -} - export type TemplateEditObjectTemplates = { [key: string]: string } | null export type TemplateEditDocumentType = DocumentType | null @@ -1038,21 +1068,6 @@ export type PublicationVersionBillMetadata = { [key: string]: any } export type PublicationVersionBillCompact = { [key: string]: any } -export interface PublicationVersion { - Announcement_Date?: string - Bill_Compact: PublicationVersionBillCompact - Bill_Metadata: PublicationVersionBillMetadata - Created_Date: string - Effective_Date?: string - Is_Locked: boolean - Is_Valid?: boolean - Modified_Date: string - Module_Status: ModuleStatus - Procedural: PublicationVersionProcedural - Publication: PublicationShort - UUID: string -} - export type PublicationTemplateObjectTemplates = { [key: string]: string } export interface PublicationTemplate { @@ -1083,25 +1098,29 @@ export interface PublicationShort { UUID: string } -export interface PublicationPackageReportShort { +export interface PublicationVersion { + Announcement_Date?: string + Bill_Compact: PublicationVersionBillCompact + Bill_Metadata: PublicationVersionBillMetadata Created_Date: string - Filename: string - Main_Outcome: string - Package_UUID: string - Report_Status: string + Effective_Date?: string + Is_Locked: boolean + Is_Valid?: boolean + Modified_Date: string + Module_Status: ModuleStatus + Procedural: PublicationVersionProcedural + Publication: PublicationShort UUID: string } -export interface PublicationPackageReport { +export interface PublicationPackageShort { + Created_By_UUID: string Created_Date: string - Filename: string - Main_Outcome: string - Package_UUID: string + Delivery_ID: string + Modified_By_UUID: string + Modified_Date: string + Package_Type: string Report_Status: string - Source_Document: string - Sub_Delivery_ID: string - Sub_Outcome: string - Sub_Progress: string UUID: string } @@ -1158,11 +1177,79 @@ export interface PublicationCreate { Document_Type: DocumentType Environment_UUID: string Module_ID: number - Procedure_Type: ImplementedProcedureType + Procedure_Type: ProcedureType Template_UUID: string Title: string } +export type PublicationAnnouncementShortMetadata = { [key: string]: any } + +export interface PublicationAnnouncementShort { + Announcement_Date?: string + Created_Date: string + Is_Locked: boolean + Metadata: PublicationAnnouncementShortMetadata + Modified_Date: string + UUID: string +} + +export interface PublicationAnnouncementPackageReportShort { + Announcement_Package_UUID: string + Created_Date: string + Filename: string + Main_Outcome: string + Report_Status: string + UUID: string +} + +export interface PublicationAnnouncementPackageReport { + Announcement_Package_UUID: string + Created_Date: string + Filename: string + Main_Outcome: string + Report_Status: string + Source_Document: string + Sub_Delivery_ID: string + Sub_Outcome: string + Sub_Progress: string + UUID: string +} + +export interface PublicationAnnouncementPackageCreatedResponse { + Package_UUID: string + Zip_UUID: string +} + +export interface PublicationAnnouncementPackageCreate { + Package_Type: PackageType +} + +export interface PublicationAnnouncementEdit { + Announcement_Date?: string + Metadata?: AnnouncementMetadata + Procedural?: AnnouncementProcedural + Texts?: AnnouncementContent +} + +export type PublicationAnnouncementProcedural = { [key: string]: any } + +export type PublicationAnnouncementMetadata = { [key: string]: any } + +export type PublicationAnnouncementContent = { [key: string]: any } + +export interface PublicationAnnouncement { + Act_Package: PublicationPackageShort + Announcement_Date?: string + Content: PublicationAnnouncementContent + Created_Date: string + Is_Locked: boolean + Metadata: PublicationAnnouncementMetadata + Modified_Date: string + Procedural: PublicationAnnouncementProcedural + Publication: PublicationShort + UUID: string +} + export interface PublicationActShort { Created_Date: string Document_Type: string @@ -1178,6 +1265,28 @@ export interface PublicationActShort { Work_Province_ID: string } +export interface PublicationActPackageReportShort { + Act_Package_UUID: string + Created_Date: string + Filename: string + Main_Outcome: string + Report_Status: string + UUID: string +} + +export interface PublicationActPackageReport { + Act_Package_UUID: string + Created_Date: string + Filename: string + Main_Outcome: string + Report_Status: string + Source_Document: string + Sub_Delivery_ID: string + Sub_Outcome: string + Sub_Progress: string + UUID: string +} + export type PublicationActMetadata = { [key: string]: any } export interface PublicationAct { @@ -1225,18 +1334,6 @@ export interface PublicModuleShort { Title: string } -export interface PublicModuleObjectRevision { - Module_ID: number - Module_Object_UUID: string - Module_Status: string - Module_Title: string -} - -export interface PublicModuleObjectContextShort { - Action: string - Original_Adjust_On?: string -} - export interface PublicModuleObjectShort { Code: string Description: string @@ -1254,6 +1351,18 @@ export interface PublicModuleOverview { Objects: PublicModuleObjectShort[] } +export interface PublicModuleObjectRevision { + Module_ID: number + Module_Object_UUID: string + Module_Status: string + Module_Title: string +} + +export interface PublicModuleObjectContextShort { + Action: string + Original_Adjust_On?: string +} + export interface ProgrammaAlgemeenUUID { Object_ID?: number UUID?: string @@ -1489,20 +1598,30 @@ export interface PagedResponsePublicationPackage { /** * Wrap any response schema and add pagination metadata. */ -export interface PagedResponsePublicationPackageReportShort { +export interface PagedResponsePublicationEnvironment { limit?: number offset?: number - results: PublicationPackageReportShort[] + results: PublicationEnvironment[] total: number } /** * Wrap any response schema and add pagination metadata. */ -export interface PagedResponsePublicationEnvironment { +export interface PagedResponsePublicationAnnouncementShort { limit?: number offset?: number - results: PublicationEnvironment[] + results: PublicationAnnouncementShort[] + total: number +} + +/** + * Wrap any response schema and add pagination metadata. + */ +export interface PagedResponsePublicationAnnouncementPackageReportShort { + limit?: number + offset?: number + results: PublicationAnnouncementPackageReportShort[] total: number } @@ -1516,6 +1635,16 @@ export interface PagedResponsePublicationActShort { total: number } +/** + * Wrap any response schema and add pagination metadata. + */ +export interface PagedResponsePublicationActPackageReportShort { + limit?: number + offset?: number + results: PublicationActPackageReportShort[] + total: number +} + /** * Wrap any response schema and add pagination metadata. */ @@ -1742,7 +1871,6 @@ export type PackageType = (typeof PackageType)[keyof typeof PackageType] export const PackageType = { validation: 'validation', publication: 'publication', - publication_abort: 'publication_abort', } as const export interface ObjectStaticShort { @@ -1891,6 +2019,12 @@ export interface ModulePatchStatus { Status: ModuleStatusCode } +export interface ModuleOverview { + Module: Module + Objects: ModuleObjectShort[] + StatusHistory: ModuleStatus[] +} + export interface ModuleObjectContextShort { Action: string Original_Adjust_On?: string @@ -2026,12 +2160,6 @@ export interface Module { Title: string } -export interface ModuleOverview { - Module: Module - Objects: ModuleObjectShort[] - StatusHistory: ModuleStatus[] -} - export interface MaatregelUUID { Object_ID?: number UUID?: string @@ -2139,23 +2267,6 @@ export interface MaatregelBasic { UUID?: string } -export interface ListObjectsByGeometryRequestData { - Function?: GeometryFunctions - Geometry: string - Object_Types?: string[] -} - -/** - * An enumeration. - */ -export type ImplementedProcedureType = - (typeof ImplementedProcedureType)[keyof typeof ImplementedProcedureType] - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const ImplementedProcedureType = { - final: 'final', -} as const - export interface HierarchyStatics { Cached_Title: string Code: string @@ -2211,6 +2322,12 @@ export const GeometryFunctions = { INTERSECTS: 'INTERSECTS', } as const +export interface ListObjectsByGeometryRequestData { + Function?: GeometryFunctions + Geometry: string + Object_Types?: string[] +} + export type GeoSearchResultUUID = string | string export type GeoSearchResultGebied = string | string @@ -2405,7 +2522,11 @@ export interface CompleteModule { ObjectSpecifiekeGeldigheden?: ObjectSpecifiekeGeldigheid[] } -export interface BodyFastapiHandlerPublicationPackagesPackageUuidReportPost { +export interface BodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost { + uploaded_files: Blob[] +} + +export interface BodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost { uploaded_files: Blob[] } @@ -2421,6 +2542,7 @@ export interface BodyFastapiHandlerLoginAccessTokenPost { export interface BillMetadata { Jurisdictions?: string[] Official_Title?: string + Quote_Title?: string Subjects?: string[] } @@ -2758,6 +2880,32 @@ export interface AreaBasic { UUID: string } +export interface AnnouncementText { + Description: string + Title: string +} + +export interface AnnouncementProcedural { + Begin_Inspection_Period_Date?: string + Enactment_Date?: string + End_Inspection_Period_Date?: string + Procedural_Announcement_Date?: string + Signed_Date?: string +} + +export interface AnnouncementMetadata { + Official_Title?: string + Subjects?: string[] +} + +export interface AnnouncementCreatedResponse { + UUID: string +} + +export interface AnnouncementContent { + Texts: AnnouncementText[] +} + export interface AmbitieUUID { Object_ID?: number UUID?: string diff --git a/src/api/fetchers.ts b/src/api/fetchers.ts index 5714c5ed..e4181580 100644 --- a/src/api/fetchers.ts +++ b/src/api/fetchers.ts @@ -32,6 +32,9 @@ import type { AmbitieUUID, AmbitiesValidGetParams, AmbitiesValidLineageIdGetParams, + AnnouncementCreatedResponse, + AppExtensionsPublicationsEndpointsPublicationsActReportsUploadActPackageReportUploadPackageReportResponse, + AppExtensionsPublicationsEndpointsPublicationsAnnouncementReportsUploadAnnouncementPackageReportUploadPackageReportResponse, AuthToken, BeleidsdoelFull, BeleidsdoelPatch, @@ -53,7 +56,8 @@ import type { BeleidsregelsValidGetParams, BeleidsregelsValidLineageIdGetParams, BodyFastapiHandlerLoginAccessTokenPost, - BodyFastapiHandlerPublicationPackagesPackageUuidReportPost, + BodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost, + BodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost, CompleteModule, EditAcknowledgedRelation, EditUser, @@ -140,10 +144,12 @@ import type { PagedResponsePublicModuleShort, PagedResponsePublication, PagedResponsePublicationAOJ, + PagedResponsePublicationActPackageReportShort, PagedResponsePublicationActShort, + PagedResponsePublicationAnnouncementPackageReportShort, + PagedResponsePublicationAnnouncementShort, PagedResponsePublicationEnvironment, PagedResponsePublicationPackage, - PagedResponsePublicationPackageReportShort, PagedResponsePublicationTemplate, PagedResponsePublicationVersionShort, PagedResponseSearchObject, @@ -166,7 +172,22 @@ import type { PublicModuleOverview, Publication, PublicationAct, + PublicationActPackageReport, + PublicationActPackagesActPackageUuidDownloadGet200, + PublicationActPackagesGetParams, + PublicationActReportsActReportUuidDownloadGet200, + PublicationActReportsGetParams, PublicationActsGetParams, + PublicationAnnouncement, + PublicationAnnouncementEdit, + PublicationAnnouncementPackageCreate, + PublicationAnnouncementPackageCreatedResponse, + PublicationAnnouncementPackageReport, + PublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet200, + PublicationAnnouncementPackagesGetParams, + PublicationAnnouncementReportsAnnouncementReportUuidDownloadGet200, + PublicationAnnouncementReportsGetParams, + PublicationAnnouncementsGetParams, PublicationAojGetParams, PublicationCreate, PublicationCreatedResponse, @@ -174,11 +195,6 @@ import type { PublicationEnvironmentsGetParams, PublicationPackageCreate, PublicationPackageCreatedResponse, - PublicationPackageReport, - PublicationPackagesGetParams, - PublicationPackagesPackageUuidDownloadGet200, - PublicationReportsGetParams, - PublicationReportsReportUuidDownloadGet200, PublicationTemplate, PublicationTemplatesGetParams, PublicationVersion, @@ -203,7 +219,6 @@ import type { TemplateCreate, TemplateCreatedResponse, TemplateEdit, - UploadPackageReportResponse, User, UserCreate, UserCreateResponse, @@ -18822,7 +18837,7 @@ export const usePublicationVersionsVersionUuidPost = < } /** - * @summary Create new Publication Package + * @summary Create new Publication Act Package */ export const publicationVersionsVersionUuidPackagesPost = ( versionUuid: string, @@ -18876,7 +18891,7 @@ export type PublicationVersionsVersionUuidPackagesPostMutationError = HTTPValidationError /** - * @summary Create new Publication Package + * @summary Create new Publication Act Package */ export const usePublicationVersionsVersionUuidPackagesPost = < TError = HTTPValidationError, @@ -18896,35 +18911,35 @@ export const usePublicationVersionsVersionUuidPackagesPost = < } /** - * @summary List the existing publication packages of a publication version + * @summary List the existing publication act packages of a publication version */ -export const publicationPackagesGet = ( - params?: PublicationPackagesGetParams, +export const publicationActPackagesGet = ( + params?: PublicationActPackagesGetParams, signal?: AbortSignal ) => { return customInstance({ - url: `/publication-packages`, + url: `/publication-act-packages`, method: 'GET', params, signal, }) } -export const getPublicationPackagesGetQueryKey = ( - params?: PublicationPackagesGetParams +export const getPublicationActPackagesGetQueryKey = ( + params?: PublicationActPackagesGetParams ) => { - return [`/publication-packages`, ...(params ? [params] : [])] as const + return [`/publication-act-packages`, ...(params ? [params] : [])] as const } -export const getPublicationPackagesGetQueryOptions = < - TData = Awaited>, +export const getPublicationActPackagesGetQueryOptions = < + TData = Awaited>, TError = HTTPValidationError >( - params?: PublicationPackagesGetParams, + params?: PublicationActPackagesGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > @@ -18934,43 +18949,46 @@ export const getPublicationPackagesGetQueryOptions = < const { query: queryOptions } = options ?? {} const queryKey = - queryOptions?.queryKey ?? getPublicationPackagesGetQueryKey(params) + queryOptions?.queryKey ?? getPublicationActPackagesGetQueryKey(params) const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => publicationPackagesGet(params, signal) + Awaited> + > = ({ signal }) => publicationActPackagesGet(params, signal) return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< - Awaited>, + Awaited>, TError, TData > & { queryKey: QueryKey } } -export type PublicationPackagesGetQueryResult = NonNullable< - Awaited> +export type PublicationActPackagesGetQueryResult = NonNullable< + Awaited> > -export type PublicationPackagesGetQueryError = HTTPValidationError +export type PublicationActPackagesGetQueryError = HTTPValidationError /** - * @summary List the existing publication packages of a publication version + * @summary List the existing publication act packages of a publication version */ -export const usePublicationPackagesGet = < - TData = Awaited>, +export const usePublicationActPackagesGet = < + TData = Awaited>, TError = HTTPValidationError >( - params?: PublicationPackagesGetParams, + params?: PublicationActPackagesGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getPublicationPackagesGetQueryOptions(params, options) + const queryOptions = getPublicationActPackagesGetQueryOptions( + params, + options + ) const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey @@ -18982,37 +19000,39 @@ export const usePublicationPackagesGet = < } /** - * @summary Download a generated publication package ZIP file + * @summary Download a generated publication act package ZIP file */ -export const publicationPackagesPackageUuidDownloadGet = ( - packageUuid: string, +export const publicationActPackagesActPackageUuidDownloadGet = ( + actPackageUuid: string, signal?: AbortSignal ) => { - return customInstance({ - url: `/publication-packages/${packageUuid}/download`, + return customInstance({ + url: `/publication-act-packages/${actPackageUuid}/download`, method: 'GET', signal, }) } -export const getPublicationPackagesPackageUuidDownloadGetQueryKey = ( - packageUuid: string +export const getPublicationActPackagesActPackageUuidDownloadGetQueryKey = ( + actPackageUuid: string ) => { - return [`/publication-packages/${packageUuid}/download`] as const + return [`/publication-act-packages/${actPackageUuid}/download`] as const } -export const getPublicationPackagesPackageUuidDownloadGetQueryOptions = < +export const getPublicationActPackagesActPackageUuidDownloadGetQueryOptions = < TData = Awaited< - ReturnType + ReturnType >, TError = HTTPValidationError >( - packageUuid: string, + actPackageUuid: string, options?: { query?: Partial< UseQueryOptions< Awaited< - ReturnType + ReturnType< + typeof publicationActPackagesActPackageUuidDownloadGet + > >, TError, TData @@ -19024,46 +19044,57 @@ export const getPublicationPackagesPackageUuidDownloadGetQueryOptions = < const queryKey = queryOptions?.queryKey ?? - getPublicationPackagesPackageUuidDownloadGetQueryKey(packageUuid) + getPublicationActPackagesActPackageUuidDownloadGetQueryKey( + actPackageUuid + ) const queryFn: QueryFunction< - Awaited> + Awaited< + ReturnType + > > = ({ signal }) => - publicationPackagesPackageUuidDownloadGet(packageUuid, signal) + publicationActPackagesActPackageUuidDownloadGet(actPackageUuid, signal) return { queryKey, queryFn, - enabled: !!packageUuid, + enabled: !!actPackageUuid, ...queryOptions, } as UseQueryOptions< - Awaited>, + Awaited< + ReturnType + >, TError, TData > & { queryKey: QueryKey } } -export type PublicationPackagesPackageUuidDownloadGetQueryResult = NonNullable< - Awaited> -> -export type PublicationPackagesPackageUuidDownloadGetQueryError = +export type PublicationActPackagesActPackageUuidDownloadGetQueryResult = + NonNullable< + Awaited< + ReturnType + > + > +export type PublicationActPackagesActPackageUuidDownloadGetQueryError = HTTPValidationError /** - * @summary Download a generated publication package ZIP file + * @summary Download a generated publication act package ZIP file */ -export const usePublicationPackagesPackageUuidDownloadGet = < +export const usePublicationActPackagesActPackageUuidDownloadGet = < TData = Awaited< - ReturnType + ReturnType >, TError = HTTPValidationError >( - packageUuid: string, + actPackageUuid: string, options?: { query?: Partial< UseQueryOptions< Awaited< - ReturnType + ReturnType< + typeof publicationActPackagesActPackageUuidDownloadGet + > >, TError, TData @@ -19072,8 +19103,8 @@ export const usePublicationPackagesPackageUuidDownloadGet = < } ): UseQueryResult & { queryKey: QueryKey } => { const queryOptions = - getPublicationPackagesPackageUuidDownloadGetQueryOptions( - packageUuid, + getPublicationActPackagesActPackageUuidDownloadGetQueryOptions( + actPackageUuid, options ) @@ -19089,124 +19120,143 @@ export const usePublicationPackagesPackageUuidDownloadGet = < /** * @summary Record the submission response from lvbb of a publication package */ -export const publicationPackagesPackageUuidReportPost = ( - packageUuid: string, - bodyFastapiHandlerPublicationPackagesPackageUuidReportPost: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost +export const publicationActPackagesActPackageUuidReportPost = ( + actPackageUuid: string, + bodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost: BodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost ) => { const formData = new FormData() - bodyFastapiHandlerPublicationPackagesPackageUuidReportPost.uploaded_files.forEach( + bodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost.uploaded_files.forEach( value => formData.append('uploaded_files', value) ) - return customInstance({ - url: `/publication-packages/${packageUuid}/report`, - method: 'POST', - headers: { 'Content-Type': 'multipart/form-data' }, - data: formData, - }) + return customInstance( + { + url: `/publication-act-packages/${actPackageUuid}/report`, + method: 'POST', + headers: { 'Content-Type': 'multipart/form-data' }, + data: formData, + } + ) } -export const getPublicationPackagesPackageUuidReportPostMutationOptions = < - TError = HTTPValidationError, - TContext = unknown ->(options?: { - mutation?: UseMutationOptions< - Awaited>, +export const getPublicationActPackagesActPackageUuidReportPostMutationOptions = + (options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof publicationActPackagesActPackageUuidReportPost + > + >, + TError, + { + actPackageUuid: string + data: BodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost + }, + TContext + > + }): UseMutationOptions< + Awaited< + ReturnType + >, TError, { - packageUuid: string - data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost + actPackageUuid: string + data: BodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost }, TContext - > -}): UseMutationOptions< - Awaited>, - TError, - { - packageUuid: string - data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost - }, - TContext -> => { - const { mutation: mutationOptions } = options ?? {} + > => { + const { mutation: mutationOptions } = options ?? {} - const mutationFn: MutationFunction< - Awaited>, - { - packageUuid: string - data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost + const mutationFn: MutationFunction< + Awaited< + ReturnType< + typeof publicationActPackagesActPackageUuidReportPost + > + >, + { + actPackageUuid: string + data: BodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost + } + > = props => { + const { actPackageUuid, data } = props ?? {} + + return publicationActPackagesActPackageUuidReportPost( + actPackageUuid, + data + ) } - > = props => { - const { packageUuid, data } = props ?? {} - return publicationPackagesPackageUuidReportPost(packageUuid, data) + return { mutationFn, ...mutationOptions } } - return { mutationFn, ...mutationOptions } -} - -export type PublicationPackagesPackageUuidReportPostMutationResult = +export type PublicationActPackagesActPackageUuidReportPostMutationResult = NonNullable< - Awaited> + Awaited< + ReturnType + > > -export type PublicationPackagesPackageUuidReportPostMutationBody = - BodyFastapiHandlerPublicationPackagesPackageUuidReportPost -export type PublicationPackagesPackageUuidReportPostMutationError = +export type PublicationActPackagesActPackageUuidReportPostMutationBody = + BodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost +export type PublicationActPackagesActPackageUuidReportPostMutationError = HTTPValidationError /** * @summary Record the submission response from lvbb of a publication package */ -export const usePublicationPackagesPackageUuidReportPost = < +export const usePublicationActPackagesActPackageUuidReportPost = < TError = HTTPValidationError, TContext = unknown >(options?: { mutation?: UseMutationOptions< - Awaited>, + Awaited< + ReturnType + >, TError, { - packageUuid: string - data: BodyFastapiHandlerPublicationPackagesPackageUuidReportPost + actPackageUuid: string + data: BodyFastapiHandlerPublicationActPackagesActPackageUuidReportPost }, TContext > }) => { const mutationOptions = - getPublicationPackagesPackageUuidReportPostMutationOptions(options) + getPublicationActPackagesActPackageUuidReportPostMutationOptions( + options + ) return useMutation(mutationOptions) } /** - * @summary List the existing Publication reports + * @summary List the existing Publication Act reports */ -export const publicationReportsGet = ( - params?: PublicationReportsGetParams, +export const publicationActReportsGet = ( + params?: PublicationActReportsGetParams, signal?: AbortSignal ) => { - return customInstance({ - url: `/publication-reports`, + return customInstance({ + url: `/publication-act-reports`, method: 'GET', params, signal, }) } -export const getPublicationReportsGetQueryKey = ( - params?: PublicationReportsGetParams +export const getPublicationActReportsGetQueryKey = ( + params?: PublicationActReportsGetParams ) => { - return [`/publication-reports`, ...(params ? [params] : [])] as const + return [`/publication-act-reports`, ...(params ? [params] : [])] as const } -export const getPublicationReportsGetQueryOptions = < - TData = Awaited>, +export const getPublicationActReportsGetQueryOptions = < + TData = Awaited>, TError = HTTPValidationError >( - params?: PublicationReportsGetParams, + params?: PublicationActReportsGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > @@ -19216,43 +19266,46 @@ export const getPublicationReportsGetQueryOptions = < const { query: queryOptions } = options ?? {} const queryKey = - queryOptions?.queryKey ?? getPublicationReportsGetQueryKey(params) + queryOptions?.queryKey ?? getPublicationActReportsGetQueryKey(params) const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => publicationReportsGet(params, signal) + Awaited> + > = ({ signal }) => publicationActReportsGet(params, signal) return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< - Awaited>, + Awaited>, TError, TData > & { queryKey: QueryKey } } -export type PublicationReportsGetQueryResult = NonNullable< - Awaited> +export type PublicationActReportsGetQueryResult = NonNullable< + Awaited> > -export type PublicationReportsGetQueryError = HTTPValidationError +export type PublicationActReportsGetQueryError = HTTPValidationError /** - * @summary List the existing Publication reports + * @summary List the existing Publication Act reports */ -export const usePublicationReportsGet = < - TData = Awaited>, +export const usePublicationActReportsGet = < + TData = Awaited>, TError = HTTPValidationError >( - params?: PublicationReportsGetParams, + params?: PublicationActReportsGetParams, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited>, TError, TData > > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getPublicationReportsGetQueryOptions(params, options) + const queryOptions = getPublicationActReportsGetQueryOptions( + params, + options + ) const query = useQuery(queryOptions) as UseQueryResult & { queryKey: QueryKey @@ -19266,32 +19319,34 @@ export const usePublicationReportsGet = < /** * @summary Get details of a publication report */ -export const publicationReportsReportUuidGet = ( - reportUuid: string, +export const publicationActReportsActReportUuidGet = ( + actReportUuid: string, signal?: AbortSignal ) => { - return customInstance({ - url: `/publication-reports/${reportUuid}`, + return customInstance({ + url: `/publication-act-reports/${actReportUuid}`, method: 'GET', signal, }) } -export const getPublicationReportsReportUuidGetQueryKey = ( - reportUuid: string +export const getPublicationActReportsActReportUuidGetQueryKey = ( + actReportUuid: string ) => { - return [`/publication-reports/${reportUuid}`] as const + return [`/publication-act-reports/${actReportUuid}`] as const } -export const getPublicationReportsReportUuidGetQueryOptions = < - TData = Awaited>, +export const getPublicationActReportsActReportUuidGetQueryOptions = < + TData = Awaited>, TError = HTTPValidationError >( - reportUuid: string, + actReportUuid: string, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited< + ReturnType + >, TError, TData > @@ -19302,49 +19357,53 @@ export const getPublicationReportsReportUuidGetQueryOptions = < const queryKey = queryOptions?.queryKey ?? - getPublicationReportsReportUuidGetQueryKey(reportUuid) + getPublicationActReportsActReportUuidGetQueryKey(actReportUuid) const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => publicationReportsReportUuidGet(reportUuid, signal) + Awaited> + > = ({ signal }) => + publicationActReportsActReportUuidGet(actReportUuid, signal) return { queryKey, queryFn, - enabled: !!reportUuid, + enabled: !!actReportUuid, ...queryOptions, } as UseQueryOptions< - Awaited>, + Awaited>, TError, TData > & { queryKey: QueryKey } } -export type PublicationReportsReportUuidGetQueryResult = NonNullable< - Awaited> +export type PublicationActReportsActReportUuidGetQueryResult = NonNullable< + Awaited> > -export type PublicationReportsReportUuidGetQueryError = HTTPValidationError +export type PublicationActReportsActReportUuidGetQueryError = + HTTPValidationError /** * @summary Get details of a publication report */ -export const usePublicationReportsReportUuidGet = < - TData = Awaited>, +export const usePublicationActReportsActReportUuidGet = < + TData = Awaited>, TError = HTTPValidationError >( - reportUuid: string, + actReportUuid: string, options?: { query?: Partial< UseQueryOptions< - Awaited>, + Awaited< + ReturnType + >, TError, TData > > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getPublicationReportsReportUuidGetQueryOptions( - reportUuid, + const queryOptions = getPublicationActReportsActReportUuidGetQueryOptions( + actReportUuid, options ) @@ -19360,33 +19419,37 @@ export const usePublicationReportsReportUuidGet = < /** * @summary Download publication package report */ -export const publicationReportsReportUuidDownloadGet = ( - reportUuid: string, +export const publicationActReportsActReportUuidDownloadGet = ( + actReportUuid: string, signal?: AbortSignal ) => { - return customInstance({ - url: `/publication-reports/${reportUuid}/download`, + return customInstance({ + url: `/publication-act-reports/${actReportUuid}/download`, method: 'GET', signal, }) } -export const getPublicationReportsReportUuidDownloadGetQueryKey = ( - reportUuid: string +export const getPublicationActReportsActReportUuidDownloadGetQueryKey = ( + actReportUuid: string ) => { - return [`/publication-reports/${reportUuid}/download`] as const + return [`/publication-act-reports/${actReportUuid}/download`] as const } -export const getPublicationReportsReportUuidDownloadGetQueryOptions = < - TData = Awaited>, +export const getPublicationActReportsActReportUuidDownloadGetQueryOptions = < + TData = Awaited< + ReturnType + >, TError = HTTPValidationError >( - reportUuid: string, + actReportUuid: string, options?: { query?: Partial< UseQueryOptions< Awaited< - ReturnType + ReturnType< + typeof publicationActReportsActReportUuidDownloadGet + > >, TError, TData @@ -19398,44 +19461,55 @@ export const getPublicationReportsReportUuidDownloadGetQueryOptions = < const queryKey = queryOptions?.queryKey ?? - getPublicationReportsReportUuidDownloadGetQueryKey(reportUuid) + getPublicationActReportsActReportUuidDownloadGetQueryKey(actReportUuid) const queryFn: QueryFunction< - Awaited> + Awaited< + ReturnType + > > = ({ signal }) => - publicationReportsReportUuidDownloadGet(reportUuid, signal) + publicationActReportsActReportUuidDownloadGet(actReportUuid, signal) return { queryKey, queryFn, - enabled: !!reportUuid, + enabled: !!actReportUuid, ...queryOptions, } as UseQueryOptions< - Awaited>, + Awaited< + ReturnType + >, TError, TData > & { queryKey: QueryKey } } -export type PublicationReportsReportUuidDownloadGetQueryResult = NonNullable< - Awaited> -> -export type PublicationReportsReportUuidDownloadGetQueryError = +export type PublicationActReportsActReportUuidDownloadGetQueryResult = + NonNullable< + Awaited< + ReturnType + > + > +export type PublicationActReportsActReportUuidDownloadGetQueryError = HTTPValidationError /** * @summary Download publication package report */ -export const usePublicationReportsReportUuidDownloadGet = < - TData = Awaited>, +export const usePublicationActReportsActReportUuidDownloadGet = < + TData = Awaited< + ReturnType + >, TError = HTTPValidationError >( - reportUuid: string, + actReportUuid: string, options?: { query?: Partial< UseQueryOptions< Awaited< - ReturnType + ReturnType< + typeof publicationActReportsActReportUuidDownloadGet + > >, TError, TData @@ -19443,8 +19517,190 @@ export const usePublicationReportsReportUuidDownloadGet = < > } ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = getPublicationReportsReportUuidDownloadGetQueryOptions( - reportUuid, + const queryOptions = + getPublicationActReportsActReportUuidDownloadGetQueryOptions( + actReportUuid, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Create new publication announcement + */ +export const publicationActPackagesActPackageUuidCreateAnnouncementPost = ( + actPackageUuid: string +) => { + return customInstance({ + url: `/publication-act-packages/${actPackageUuid}/create-announcement`, + method: 'POST', + }) +} + +export const getPublicationActPackagesActPackageUuidCreateAnnouncementPostMutationOptions = + (options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof publicationActPackagesActPackageUuidCreateAnnouncementPost + > + >, + TError, + { actPackageUuid: string }, + TContext + > + }): UseMutationOptions< + Awaited< + ReturnType< + typeof publicationActPackagesActPackageUuidCreateAnnouncementPost + > + >, + TError, + { actPackageUuid: string }, + TContext + > => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited< + ReturnType< + typeof publicationActPackagesActPackageUuidCreateAnnouncementPost + > + >, + { actPackageUuid: string } + > = props => { + const { actPackageUuid } = props ?? {} + + return publicationActPackagesActPackageUuidCreateAnnouncementPost( + actPackageUuid + ) + } + + return { mutationFn, ...mutationOptions } + } + +export type PublicationActPackagesActPackageUuidCreateAnnouncementPostMutationResult = + NonNullable< + Awaited< + ReturnType< + typeof publicationActPackagesActPackageUuidCreateAnnouncementPost + > + > + > + +export type PublicationActPackagesActPackageUuidCreateAnnouncementPostMutationError = + HTTPValidationError + +/** + * @summary Create new publication announcement + */ +export const usePublicationActPackagesActPackageUuidCreateAnnouncementPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof publicationActPackagesActPackageUuidCreateAnnouncementPost + > + >, + TError, + { actPackageUuid: string }, + TContext + > +}) => { + const mutationOptions = + getPublicationActPackagesActPackageUuidCreateAnnouncementPostMutationOptions( + options + ) + + return useMutation(mutationOptions) +} + +/** + * @summary List the existing Publication announcements + */ +export const publicationAnnouncementsGet = ( + params?: PublicationAnnouncementsGetParams, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-announcements`, + method: 'GET', + params, + signal, + }) +} + +export const getPublicationAnnouncementsGetQueryKey = ( + params?: PublicationAnnouncementsGetParams +) => { + return [`/publication-announcements`, ...(params ? [params] : [])] as const +} + +export const getPublicationAnnouncementsGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationAnnouncementsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? getPublicationAnnouncementsGetQueryKey(params) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => publicationAnnouncementsGet(params, signal) + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationAnnouncementsGetQueryResult = NonNullable< + Awaited> +> +export type PublicationAnnouncementsGetQueryError = HTTPValidationError + +/** + * @summary List the existing Publication announcements + */ +export const usePublicationAnnouncementsGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationAnnouncementsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationAnnouncementsGetQueryOptions( + params, options ) @@ -19457,6 +19713,1016 @@ export const usePublicationReportsReportUuidDownloadGet = < return query } +/** + * @summary Get details of a publication announcement + */ +export const publicationAnnouncementsAnnouncementUuidGet = ( + announcementUuid: string, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-announcements/${announcementUuid}`, + method: 'GET', + signal, + }) +} + +export const getPublicationAnnouncementsAnnouncementUuidGetQueryKey = ( + announcementUuid: string +) => { + return [`/publication-announcements/${announcementUuid}`] as const +} + +export const getPublicationAnnouncementsAnnouncementUuidGetQueryOptions = < + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError +>( + announcementUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementsAnnouncementUuidGet + > + >, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? + getPublicationAnnouncementsAnnouncementUuidGetQueryKey(announcementUuid) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => + publicationAnnouncementsAnnouncementUuidGet(announcementUuid, signal) + + return { + queryKey, + queryFn, + enabled: !!announcementUuid, + ...queryOptions, + } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationAnnouncementsAnnouncementUuidGetQueryResult = + NonNullable< + Awaited> + > +export type PublicationAnnouncementsAnnouncementUuidGetQueryError = + HTTPValidationError + +/** + * @summary Get details of a publication announcement + */ +export const usePublicationAnnouncementsAnnouncementUuidGet = < + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError +>( + announcementUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementsAnnouncementUuidGet + > + >, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = + getPublicationAnnouncementsAnnouncementUuidGetQueryOptions( + announcementUuid, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Edit an existing publication announcement + */ +export const publicationAnnouncementsAnnouncementUuidPost = ( + announcementUuid: string, + publicationAnnouncementEdit: PublicationAnnouncementEdit +) => { + return customInstance({ + url: `/publication-announcements/${announcementUuid}`, + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + data: publicationAnnouncementEdit, + }) +} + +export const getPublicationAnnouncementsAnnouncementUuidPostMutationOptions = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + { announcementUuid: string; data: PublicationAnnouncementEdit }, + TContext + > +}): UseMutationOptions< + Awaited>, + TError, + { announcementUuid: string; data: PublicationAnnouncementEdit }, + TContext +> => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited< + ReturnType + >, + { announcementUuid: string; data: PublicationAnnouncementEdit } + > = props => { + const { announcementUuid, data } = props ?? {} + + return publicationAnnouncementsAnnouncementUuidPost( + announcementUuid, + data + ) + } + + return { mutationFn, ...mutationOptions } +} + +export type PublicationAnnouncementsAnnouncementUuidPostMutationResult = + NonNullable< + Awaited> + > +export type PublicationAnnouncementsAnnouncementUuidPostMutationBody = + PublicationAnnouncementEdit +export type PublicationAnnouncementsAnnouncementUuidPostMutationError = + HTTPValidationError + +/** + * @summary Edit an existing publication announcement + */ +export const usePublicationAnnouncementsAnnouncementUuidPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + { announcementUuid: string; data: PublicationAnnouncementEdit }, + TContext + > +}) => { + const mutationOptions = + getPublicationAnnouncementsAnnouncementUuidPostMutationOptions(options) + + return useMutation(mutationOptions) +} + +/** + * @summary Create new Publication Announcement Package + */ +export const publicationAnnouncementsAnnouncementUuidPackagesPost = ( + announcementUuid: string, + publicationAnnouncementPackageCreate: PublicationAnnouncementPackageCreate +) => { + return customInstance({ + url: `/publication-announcements/${announcementUuid}/packages`, + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + data: publicationAnnouncementPackageCreate, + }) +} + +export const getPublicationAnnouncementsAnnouncementUuidPackagesPostMutationOptions = + (options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementsAnnouncementUuidPackagesPost + > + >, + TError, + { + announcementUuid: string + data: PublicationAnnouncementPackageCreate + }, + TContext + > + }): UseMutationOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementsAnnouncementUuidPackagesPost + > + >, + TError, + { + announcementUuid: string + data: PublicationAnnouncementPackageCreate + }, + TContext + > => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited< + ReturnType< + typeof publicationAnnouncementsAnnouncementUuidPackagesPost + > + >, + { + announcementUuid: string + data: PublicationAnnouncementPackageCreate + } + > = props => { + const { announcementUuid, data } = props ?? {} + + return publicationAnnouncementsAnnouncementUuidPackagesPost( + announcementUuid, + data + ) + } + + return { mutationFn, ...mutationOptions } + } + +export type PublicationAnnouncementsAnnouncementUuidPackagesPostMutationResult = + NonNullable< + Awaited< + ReturnType< + typeof publicationAnnouncementsAnnouncementUuidPackagesPost + > + > + > +export type PublicationAnnouncementsAnnouncementUuidPackagesPostMutationBody = + PublicationAnnouncementPackageCreate +export type PublicationAnnouncementsAnnouncementUuidPackagesPostMutationError = + HTTPValidationError + +/** + * @summary Create new Publication Announcement Package + */ +export const usePublicationAnnouncementsAnnouncementUuidPackagesPost = < + TError = HTTPValidationError, + TContext = unknown +>(options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementsAnnouncementUuidPackagesPost + > + >, + TError, + { + announcementUuid: string + data: PublicationAnnouncementPackageCreate + }, + TContext + > +}) => { + const mutationOptions = + getPublicationAnnouncementsAnnouncementUuidPackagesPostMutationOptions( + options + ) + + return useMutation(mutationOptions) +} + +/** + * @summary List the existing publication announcement packages of a publication version + */ +export const publicationAnnouncementPackagesGet = ( + params?: PublicationAnnouncementPackagesGetParams, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-announcement-packages`, + method: 'GET', + params, + signal, + }) +} + +export const getPublicationAnnouncementPackagesGetQueryKey = ( + params?: PublicationAnnouncementPackagesGetParams +) => { + return [ + `/publication-announcement-packages`, + ...(params ? [params] : []), + ] as const +} + +export const getPublicationAnnouncementPackagesGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationAnnouncementPackagesGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? + getPublicationAnnouncementPackagesGetQueryKey(params) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => publicationAnnouncementPackagesGet(params, signal) + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationAnnouncementPackagesGetQueryResult = NonNullable< + Awaited> +> +export type PublicationAnnouncementPackagesGetQueryError = HTTPValidationError + +/** + * @summary List the existing publication announcement packages of a publication version + */ +export const usePublicationAnnouncementPackagesGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationAnnouncementPackagesGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationAnnouncementPackagesGetQueryOptions( + params, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Download a generated publication announcement package ZIP file + */ +export const publicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet = + (announcementPackageUuid: string, signal?: AbortSignal) => { + return customInstance( + { + url: `/publication-announcement-packages/${announcementPackageUuid}/download`, + method: 'GET', + signal, + } + ) + } + +export const getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetQueryKey = + (announcementPackageUuid: string) => { + return [ + `/publication-announcement-packages/${announcementPackageUuid}/download`, + ] as const + } + +export const getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetQueryOptions = + < + TData = Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet + > + >, + TError = HTTPValidationError + >( + announcementPackageUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet + > + >, + TError, + TData + > + > + } + ) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? + getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetQueryKey( + announcementPackageUuid + ) + + const queryFn: QueryFunction< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet + > + > + > = ({ signal }) => + publicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet( + announcementPackageUuid, + signal + ) + + return { + queryKey, + queryFn, + enabled: !!announcementPackageUuid, + ...queryOptions, + } as UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet + > + >, + TError, + TData + > & { queryKey: QueryKey } + } + +export type PublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetQueryResult = + NonNullable< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet + > + > + > +export type PublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetQueryError = + HTTPValidationError + +/** + * @summary Download a generated publication announcement package ZIP file + */ +export const usePublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet = + < + TData = Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet + > + >, + TError = HTTPValidationError + >( + announcementPackageUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidDownloadGet + > + >, + TError, + TData + > + > + } + ): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = + getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetQueryOptions( + announcementPackageUuid, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult< + TData, + TError + > & { queryKey: QueryKey } + + query.queryKey = queryOptions.queryKey + + return query + } + +/** + * @summary Record the submission response from lvbb of a publication announcement package + */ +export const publicationAnnouncementPackagesAnnouncementPackageUuidReportPost = + ( + announcementPackageUuid: string, + bodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost: BodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost + ) => { + const formData = new FormData() + bodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost.uploaded_files.forEach( + value => formData.append('uploaded_files', value) + ) + + return customInstance( + { + url: `/publication-announcement-packages/${announcementPackageUuid}/report`, + method: 'POST', + headers: { 'Content-Type': 'multipart/form-data' }, + data: formData, + } + ) + } + +export const getPublicationAnnouncementPackagesAnnouncementPackageUuidReportPostMutationOptions = + (options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidReportPost + > + >, + TError, + { + announcementPackageUuid: string + data: BodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost + }, + TContext + > + }): UseMutationOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidReportPost + > + >, + TError, + { + announcementPackageUuid: string + data: BodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost + }, + TContext + > => { + const { mutation: mutationOptions } = options ?? {} + + const mutationFn: MutationFunction< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidReportPost + > + >, + { + announcementPackageUuid: string + data: BodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost + } + > = props => { + const { announcementPackageUuid, data } = props ?? {} + + return publicationAnnouncementPackagesAnnouncementPackageUuidReportPost( + announcementPackageUuid, + data + ) + } + + return { mutationFn, ...mutationOptions } + } + +export type PublicationAnnouncementPackagesAnnouncementPackageUuidReportPostMutationResult = + NonNullable< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidReportPost + > + > + > +export type PublicationAnnouncementPackagesAnnouncementPackageUuidReportPostMutationBody = + BodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost +export type PublicationAnnouncementPackagesAnnouncementPackageUuidReportPostMutationError = + HTTPValidationError + +/** + * @summary Record the submission response from lvbb of a publication announcement package + */ +export const usePublicationAnnouncementPackagesAnnouncementPackageUuidReportPost = + (options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementPackagesAnnouncementPackageUuidReportPost + > + >, + TError, + { + announcementPackageUuid: string + data: BodyFastapiHandlerPublicationAnnouncementPackagesAnnouncementPackageUuidReportPost + }, + TContext + > + }) => { + const mutationOptions = + getPublicationAnnouncementPackagesAnnouncementPackageUuidReportPostMutationOptions( + options + ) + + return useMutation(mutationOptions) + } + +/** + * @summary List the existing Publication Announcement reports + */ +export const publicationAnnouncementReportsGet = ( + params?: PublicationAnnouncementReportsGetParams, + signal?: AbortSignal +) => { + return customInstance( + { + url: `/publication-announcement-reports`, + method: 'GET', + params, + signal, + } + ) +} + +export const getPublicationAnnouncementReportsGetQueryKey = ( + params?: PublicationAnnouncementReportsGetParams +) => { + return [ + `/publication-announcement-reports`, + ...(params ? [params] : []), + ] as const +} + +export const getPublicationAnnouncementReportsGetQueryOptions = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationAnnouncementReportsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? + getPublicationAnnouncementReportsGetQueryKey(params) + + const queryFn: QueryFunction< + Awaited> + > = ({ signal }) => publicationAnnouncementReportsGet(params, signal) + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: QueryKey } +} + +export type PublicationAnnouncementReportsGetQueryResult = NonNullable< + Awaited> +> +export type PublicationAnnouncementReportsGetQueryError = HTTPValidationError + +/** + * @summary List the existing Publication Announcement reports + */ +export const usePublicationAnnouncementReportsGet = < + TData = Awaited>, + TError = HTTPValidationError +>( + params?: PublicationAnnouncementReportsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = getPublicationAnnouncementReportsGetQueryOptions( + params, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Get details of a publication announcement report + */ +export const publicationAnnouncementReportsAnnouncementReportUuidGet = ( + announcementReportUuid: string, + signal?: AbortSignal +) => { + return customInstance({ + url: `/publication-announcement-reports/${announcementReportUuid}`, + method: 'GET', + signal, + }) +} + +export const getPublicationAnnouncementReportsAnnouncementReportUuidGetQueryKey = + (announcementReportUuid: string) => { + return [ + `/publication-announcement-reports/${announcementReportUuid}`, + ] as const + } + +export const getPublicationAnnouncementReportsAnnouncementReportUuidGetQueryOptions = + < + TData = Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidGet + > + >, + TError = HTTPValidationError + >( + announcementReportUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidGet + > + >, + TError, + TData + > + > + } + ) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? + getPublicationAnnouncementReportsAnnouncementReportUuidGetQueryKey( + announcementReportUuid + ) + + const queryFn: QueryFunction< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidGet + > + > + > = ({ signal }) => + publicationAnnouncementReportsAnnouncementReportUuidGet( + announcementReportUuid, + signal + ) + + return { + queryKey, + queryFn, + enabled: !!announcementReportUuid, + ...queryOptions, + } as UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidGet + > + >, + TError, + TData + > & { queryKey: QueryKey } + } + +export type PublicationAnnouncementReportsAnnouncementReportUuidGetQueryResult = + NonNullable< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidGet + > + > + > +export type PublicationAnnouncementReportsAnnouncementReportUuidGetQueryError = + HTTPValidationError + +/** + * @summary Get details of a publication announcement report + */ +export const usePublicationAnnouncementReportsAnnouncementReportUuidGet = < + TData = Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidGet + > + >, + TError = HTTPValidationError +>( + announcementReportUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidGet + > + >, + TError, + TData + > + > + } +): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = + getPublicationAnnouncementReportsAnnouncementReportUuidGetQueryOptions( + announcementReportUuid, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult & { + queryKey: QueryKey + } + + query.queryKey = queryOptions.queryKey + + return query +} + +/** + * @summary Download publication announcement package report + */ +export const publicationAnnouncementReportsAnnouncementReportUuidDownloadGet = ( + announcementReportUuid: string, + signal?: AbortSignal +) => { + return customInstance( + { + url: `/publication-announcement-reports/${announcementReportUuid}/download`, + method: 'GET', + signal, + } + ) +} + +export const getPublicationAnnouncementReportsAnnouncementReportUuidDownloadGetQueryKey = + (announcementReportUuid: string) => { + return [ + `/publication-announcement-reports/${announcementReportUuid}/download`, + ] as const + } + +export const getPublicationAnnouncementReportsAnnouncementReportUuidDownloadGetQueryOptions = + < + TData = Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidDownloadGet + > + >, + TError = HTTPValidationError + >( + announcementReportUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidDownloadGet + > + >, + TError, + TData + > + > + } + ) => { + const { query: queryOptions } = options ?? {} + + const queryKey = + queryOptions?.queryKey ?? + getPublicationAnnouncementReportsAnnouncementReportUuidDownloadGetQueryKey( + announcementReportUuid + ) + + const queryFn: QueryFunction< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidDownloadGet + > + > + > = ({ signal }) => + publicationAnnouncementReportsAnnouncementReportUuidDownloadGet( + announcementReportUuid, + signal + ) + + return { + queryKey, + queryFn, + enabled: !!announcementReportUuid, + ...queryOptions, + } as UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidDownloadGet + > + >, + TError, + TData + > & { queryKey: QueryKey } + } + +export type PublicationAnnouncementReportsAnnouncementReportUuidDownloadGetQueryResult = + NonNullable< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidDownloadGet + > + > + > +export type PublicationAnnouncementReportsAnnouncementReportUuidDownloadGetQueryError = + HTTPValidationError + +/** + * @summary Download publication announcement package report + */ +export const usePublicationAnnouncementReportsAnnouncementReportUuidDownloadGet = + < + TData = Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidDownloadGet + > + >, + TError = HTTPValidationError + >( + announcementReportUuid: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof publicationAnnouncementReportsAnnouncementReportUuidDownloadGet + > + >, + TError, + TData + > + > + } + ): UseQueryResult & { queryKey: QueryKey } => { + const queryOptions = + getPublicationAnnouncementReportsAnnouncementReportUuidDownloadGetQueryOptions( + announcementReportUuid, + options + ) + + const query = useQuery(queryOptions) as UseQueryResult< + TData, + TError + > & { queryKey: QueryKey } + + query.queryKey = queryOptions.queryKey + + return query + } + /** * @summary Login an user and receive a JWT token */ diff --git a/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx index f2d73749..0c6e21a2 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx @@ -54,7 +54,6 @@ const PublicationVersionAbortModal = () => {
    diff --git a/src/components/Publications/PublicationPackages/PublicationPackages.tsx b/src/components/Publications/PublicationPackages/PublicationPackages.tsx index 6bae4e15..00bd25e5 100644 --- a/src/components/Publications/PublicationPackages/PublicationPackages.tsx +++ b/src/components/Publications/PublicationPackages/PublicationPackages.tsx @@ -2,7 +2,7 @@ import { Notification, Text, formatDate } from '@pzh-ui/components' import { useMemo } from 'react' import { - usePublicationPackagesGet, + usePublicationActPackagesGet, usePublicationVersionsVersionUuidGet, } from '@/api/fetchers' import { @@ -21,34 +21,28 @@ export interface PublicationPackageProps { interface PublicationPackagesProps extends PublicationVersionShort { environment?: PublicationEnvironment - isAbort?: boolean } const PublicationPackages = ({ environment, - isAbort, ...version }: PublicationPackagesProps) => { const { data } = usePublicationVersionsVersionUuidGet(version.UUID) - const { data: packages, isPending } = usePublicationPackagesGet({ + const { data: packages, isPending } = usePublicationActPackagesGet({ version_uuid: version.UUID, }) - const { validationPackage, publicationPackage, abortPackage } = - useMemo(() => { - const validationPackage = packages?.results.find( - pkg => pkg.Package_Type === PackageType['validation'] - ) - const publicationPackage = packages?.results.find( - pkg => pkg.Package_Type === PackageType['publication'] - ) - const abortPackage = packages?.results.find( - pkg => pkg.Package_Type === PackageType['publication_abort'] - ) + const { validationPackage, publicationPackage } = useMemo(() => { + const validationPackage = packages?.results.find( + pkg => pkg.Package_Type === PackageType['validation'] + ) + const publicationPackage = packages?.results.find( + pkg => pkg.Package_Type === PackageType['publication'] + ) - return { validationPackage, publicationPackage, abortPackage } - }, [packages?.results]) + return { validationPackage, publicationPackage } + }, [packages?.results]) const { announcementDate, effectiveDate } = useMemo(() => { const announcementDate = @@ -75,46 +69,6 @@ const PublicationPackages = ({ ) } - if (isAbort) { - return ( - <> -
    - - Afbreekverzoek - - - - {isOfficial && ( - - )} -
    - - ) - } - return ( <> {!data?.Is_Valid && !!!validationPackage && ( diff --git a/src/components/Publications/PublicationPackages/components/PackageStep.tsx b/src/components/Publications/PublicationPackages/components/PackageStep.tsx index c7949dcc..e9f47281 100644 --- a/src/components/Publications/PublicationPackages/components/PackageStep.tsx +++ b/src/components/Publications/PublicationPackages/components/PackageStep.tsx @@ -2,7 +2,7 @@ import { Text } from '@pzh-ui/components' import { Check } from '@pzh-ui/icons' import classNames from 'clsx' -import { usePublicationPackagesGet } from '@/api/fetchers' +import { usePublicationActPackagesGet } from '@/api/fetchers' import { PublicationVersionShort } from '@/api/fetchers.schemas' import { PublicationPackageProps } from '../PublicationPackages' @@ -33,7 +33,7 @@ const PackageStep = ({ isLast, isLoading, }: PackageStepProps) => { - const { data: pkg } = usePublicationPackagesGet( + const { data: pkg } = usePublicationActPackagesGet( { version_uuid: version.UUID }, { query: { diff --git a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx index 5e783624..7927cc07 100644 --- a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx +++ b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx @@ -5,11 +5,11 @@ import clsx from 'clsx' import { useMemo, useState } from 'react' import { - getPublicationPackagesGetQueryKey, - getPublicationPackagesPackageUuidDownloadGetQueryKey, + getPublicationActPackagesActPackageUuidDownloadGetQueryKey, + getPublicationActPackagesGetQueryKey, getPublicationsPublicationUuidVersionsGetQueryKey, - usePublicationPackagesPackageUuidReportPost, - usePublicationReportsGet, + usePublicationActPackagesActPackageUuidReportPost, + usePublicationActReportsGet, usePublicationVersionsVersionUuidPackagesPost, } from '@/api/fetchers' import { @@ -57,7 +57,7 @@ const CreateAction = ({ mutation: { onSuccess: () => { queryClient.invalidateQueries({ - queryKey: getPublicationPackagesGetQueryKey({ + queryKey: getPublicationActPackagesGetQueryKey({ version_uuid: version.UUID, }), }) @@ -129,7 +129,7 @@ const DownloadAction = ({ ], queryFn: async () => downloadFile( - getPublicationPackagesPackageUuidDownloadGetQueryKey( + getPublicationActPackagesActPackageUuidDownloadGetQueryKey( publicationPackage?.UUID || '' )[0] ), @@ -139,7 +139,7 @@ const DownloadAction = ({ const handleAction = () => download().finally(() => queryClient.invalidateQueries({ - queryKey: getPublicationPackagesGetQueryKey({ + queryKey: getPublicationActPackagesGetQueryKey({ version_uuid: version.UUID, }), }) @@ -186,9 +186,9 @@ const UploadAction = ({ const [files, setFiles] = useState(null) - const { data: reports, queryKey } = usePublicationReportsGet( + const { data: reports, queryKey } = usePublicationActReportsGet( { - package_uuid: publicationPackage?.UUID, + act_package_uuid: publicationPackage?.UUID, limit: 100, }, { @@ -198,37 +198,38 @@ const UploadAction = ({ } ) - const { mutate, isPending } = usePublicationPackagesPackageUuidReportPost({ - mutation: { - onSuccess: data => { - setFiles(null) - - queryClient.invalidateQueries({ - queryKey: getPublicationPackagesGetQueryKey({ - version_uuid: version.UUID, - }), - }) - queryClient.invalidateQueries({ - queryKey, - }) + const { mutate, isPending } = + usePublicationActPackagesActPackageUuidReportPost({ + mutation: { + onSuccess: data => { + setFiles(null) - if (data.Status === 'valid') { queryClient.invalidateQueries({ - queryKey: - getPublicationsPublicationUuidVersionsGetQueryKey( - version.Publication_UUID - ), + queryKey: getPublicationActPackagesGetQueryKey({ + version_uuid: version.UUID, + }), }) - } + queryClient.invalidateQueries({ + queryKey, + }) + + if (data.Status === 'valid') { + queryClient.invalidateQueries({ + queryKey: + getPublicationsPublicationUuidVersionsGetQueryKey( + version.Publication_UUID + ), + }) + } + }, }, - }, - }) + }) const handleAction = () => { if (!publicationPackage?.UUID || !!!files?.length) return mutate({ - packageUuid: publicationPackage.UUID, + actPackageUuid: publicationPackage.UUID, data: { uploaded_files: files }, }) } diff --git a/src/components/Publications/PublicationVersions/PublicationVersions.tsx b/src/components/Publications/PublicationVersions/PublicationVersions.tsx index 7673bab7..bfd72944 100644 --- a/src/components/Publications/PublicationVersions/PublicationVersions.tsx +++ b/src/components/Publications/PublicationVersions/PublicationVersions.tsx @@ -134,12 +134,13 @@ const VersionRow = ({ variant="link" size="small" className="text-pzh-red-500" - onPress={() => - setActiveModal('publicationVersionAbort', { - publication, - version, - }) - }> + // onPress={() => + // setActiveModal('publicationVersionAbort', { + // publication, + // version, + // }) + // } + > Afbreken )} diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index f6f046fc..5faf4181 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -28,7 +28,6 @@ import { PublicationAddModal, PublicationEditModal, PublicationPackagesModal, - PublicationVersionAbortModal, PublicationVersionAddModal, PublicationVersionEditModal, } from '@/components/Modals/PublicationModals' @@ -276,7 +275,7 @@ const TabDecisions = () => { - + {/* */} ) } diff --git a/yarn.lock b/yarn.lock index fe3fc226..8923c7fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2655,13 +2655,13 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.488": - version: 0.0.488 - resolution: "@pzh-ui/components@npm:0.0.488" +"@pzh-ui/components@npm:^0.0.494": + version: 0.0.494 + resolution: "@pzh-ui/components@npm:0.0.494" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" - "@pzh-ui/icons": "npm:^0.0.50" + "@pzh-ui/icons": "npm:^0.0.52" "@react-aria/utils": "npm:^3.23.2" "@react-hookz/web": "npm:^24.0.4" "@react-types/shared": "npm:^3.19.0" @@ -2701,20 +2701,20 @@ __metadata: react-aria-components: "npm:^1.1.1" react-datepicker: "npm:^6.1.0" react-dom: "npm:^18.2.0" - react-dropzone: "npm:^14.2.3" + react-dropzone-esm: "npm:^15.0.1" react-paginate: "npm:^8.2.0" react-router-dom: "npm:^6.22.2" react-select: "npm:^5.8.0" react-stately: "npm:^3.30.1" react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" - checksum: 709a08ff00fc666d1be5ad2a77f1bf1ef546d09640c174b90031ba4e8d89e7ff29995179b103d24d3b2149511155e8fc4e0f6a30487b6ec8b99e555c27fac710 + checksum: eb33b25fc826142970c387ed3f1c6d968af64ee3e26b5a98fceb2076e4634cbfc54014dec126be250205806bc25db11aabdb448763a4beb64dcd00bd51b8a726 languageName: node linkType: hard -"@pzh-ui/config@npm:^0.0.56": - version: 0.0.56 - resolution: "@pzh-ui/config@npm:0.0.56" +"@pzh-ui/config@npm:^0.0.58": + version: 0.0.58 + resolution: "@pzh-ui/config@npm:0.0.58" dependencies: "@babel/eslint-parser": "npm:^7.17.0" "@babel/preset-env": "npm:^7.16.11" @@ -2736,7 +2736,7 @@ __metadata: prettier-plugin-organize-imports: "npm:^3.2.3" prettier-plugin-tailwindcss: "npm:^0.4.1" react-toastify: "npm:^9.1.2" - checksum: ef96b60953f637613c949ce05a7f51c9ac1fc5a01a8603fbdb06e84eeb4a4af750dc47f705ff4740a16177c2e43f5d5b212adeb1a7c658352b4bb1fc1f8046ec + checksum: 88ca405e2eabe681066106fdc6bd0af34f6b9c774a4b4be1000d5e747d9d6bf6647bffdbde91b681567044fb018ad9be766fc26379a2b505df71f8201bd21557 languageName: node linkType: hard @@ -2755,13 +2755,13 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/icons@npm:^0.0.50": - version: 0.0.50 - resolution: "@pzh-ui/icons@npm:0.0.50" +"@pzh-ui/icons@npm:^0.0.52": + version: 0.0.52 + resolution: "@pzh-ui/icons@npm:0.0.52" dependencies: react: "npm:^18.0.0" react-toastify: "npm:^9.1.2" - checksum: a94a31decee8c7d314e8befbd4139875700729c136704c4f49c1ccad4dc4e1f2190af5f794d98a27b7479b21fea8c7b7b0fda1bd319d1374b34e6defc2f119de + checksum: 8afc476208a17ef7802e3988bc4e5eab89dd4d8beba3cad29cc7ee288efebfdb6d064b30ef94cef429be131e6b6f4ede48256ff1b25f1b72468f86f94c9a8f6c languageName: node linkType: hard @@ -6541,13 +6541,6 @@ __metadata: languageName: node linkType: hard -"attr-accept@npm:^2.2.2": - version: 2.2.2 - resolution: "attr-accept@npm:2.2.2" - checksum: c867ed41ed749988ad2a6fc70eb2498b9c3c2d58aaad2a8d05422a383058f9d29e50c4bca363c5ee7433df738a7920cc95377bbce8678e817fb498299dd82010 - languageName: node - linkType: hard - "autoprefixer@npm:^10.4.4": version: 10.4.17 resolution: "autoprefixer@npm:10.4.17" @@ -8672,15 +8665,6 @@ __metadata: languageName: node linkType: hard -"file-selector@npm:^0.6.0": - version: 0.6.0 - resolution: "file-selector@npm:0.6.0" - dependencies: - tslib: "npm:^2.4.0" - checksum: 6add4098ae07fd1e9050b1e8d3fd9f128680c1d6648c0676af54ace4586e6e5bfcb8fdfa45b69e9131ffd8175bf630d54a445a5facf9be244f85b99ce309183e - languageName: node - linkType: hard - "fill-range@npm:^7.0.1": version: 7.0.1 resolution: "fill-range@npm:7.0.1" @@ -11827,10 +11811,10 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.488" - "@pzh-ui/config": "npm:^0.0.56" + "@pzh-ui/components": "npm:^0.0.494" + "@pzh-ui/config": "npm:^0.0.58" "@pzh-ui/css": "npm:^0.0.82" - "@pzh-ui/icons": "npm:^0.0.50" + "@pzh-ui/icons": "npm:^0.0.52" "@react-hookz/web": "npm:^24.0.4" "@tanstack/react-query": "npm:^5.24.7" "@testing-library/dom": "npm:^9.3.3" @@ -12046,16 +12030,14 @@ __metadata: languageName: node linkType: hard -"react-dropzone@npm:^14.2.3": - version: 14.2.3 - resolution: "react-dropzone@npm:14.2.3" +"react-dropzone-esm@npm:^15.0.1": + version: 15.0.1 + resolution: "react-dropzone-esm@npm:15.0.1" dependencies: - attr-accept: "npm:^2.2.2" - file-selector: "npm:^0.6.0" prop-types: "npm:^15.8.1" peerDependencies: react: ">= 16.8 || 18.0.0" - checksum: 34cf1758a896795b579adab5f9cdc144330577ab1826a0b66ff9daa8c60a80ed6b31b8f989647664f2548cfe00b336e9c31a2f3dd8de43111c8318fcc89b279c + checksum: c6b9aa91fcb10f62a1d1758d38d6e38f1b4030419a321a477df70b05a6831a2bbe2dae4a926dece8543243bc6bba77521309b69eb707fc40f346391f554211dd languageName: node linkType: hard From 92f2a6d6d8632a86901f7ab569710ffdfdfef9ea Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 8 Apr 2024 16:00:04 +0200 Subject: [PATCH 52/82] Update UI --- package.json | 6 +- src/components/AreaCard/AreaCard.tsx | 5 +- src/components/Breadcrumbs/Breadcrumbs.tsx | 40 +++++++ src/components/Breadcrumbs/index.ts | 1 + .../DashboardAdmin/DashboardAdmin.tsx | 11 +- .../Dashboard/DashboardUser/DashboardUser.tsx | 10 +- .../ObjectCard/ObjectCard.tsx | 11 +- .../ObjectCard/index.ts | 0 .../ObjectConnectionsPublic.tsx | 18 +-- .../ObjectSidebar/ObjectSidebar.tsx | 20 ++-- src/components/Form/FieldArray/FieldArray.tsx | 2 +- .../Leaflet/utils/createCustomPopup.tsx | 10 +- .../Modals/NetworkModal/NetworkModal.tsx | 10 +- .../UserModals/UserAddModal/steps/StepTwo.tsx | 2 +- .../steps/StepTwo.tsx | 2 +- .../Modules/ModuleCard/ModuleCard.tsx | 8 +- .../Modules/ModuleItem/ModuleItem.tsx | 21 ++-- .../NetworkGraphPopup/NetworkGraphPopup.tsx | 25 ++-- src/components/ObjectList/ObjectList.tsx | 24 ++-- .../Publications/Publication/Publication.tsx | 2 +- .../PublicationEnvironmentAction.tsx | 41 ++++--- .../components/PackageStepActions.tsx | 3 +- .../PublicationVersions.tsx | 52 ++++----- src/components/Publications/Publications.tsx | 64 ++++++++-- src/config/objects/ambitie.tsx | 6 +- src/config/objects/beleidsdoel.tsx | 6 +- src/config/objects/beleidskeuze.tsx | 6 +- src/config/objects/beleidsregel.tsx | 6 +- src/config/objects/gebiedsprogramma.tsx | 6 +- src/config/objects/maatregel.tsx | 6 +- .../DynamicOverview/DynamicOverview.tsx | 12 +- .../Modules/ModuleDetail/ModuleDetail.tsx | 20 ++-- .../PublicationTemplateOverview.tsx | 12 +- .../Users/UsersOverview/UsersOverview.tsx | 1 + .../public/Accessibility/Accessibility.tsx | 7 +- src/pages/public/AreaDetail/AreaDetail.tsx | 10 +- .../public/AreaOverview/AreaOverview.tsx | 8 +- .../AtemportalObject/AtemportalObject.tsx | 11 +- .../public/DynamicObject/DynamicObject.tsx | 31 +++-- .../DynamicOverview/DynamicOverview.tsx | 13 +-- .../EnvironmentProgram/EnvironmentProgram.tsx | 7 +- src/pages/public/Home/Home.tsx | 25 ++-- .../SidebarResults/SidebarResults.tsx | 7 +- src/pages/public/Network/Network.tsx | 9 +- .../public/NotFoundPage/NotFoundPage.tsx | 9 +- src/pages/public/Revisions/Revisions.tsx | 11 +- .../public/SearchResults/SearchResults.tsx | 7 +- src/pages/public/ThemeDetail/ThemeDetail.tsx | 49 ++++---- .../public/ThemeOverview/ThemeOverview.tsx | 9 +- src/templates/MutateLayout.tsx | 4 +- src/utils/dynamicObject.tsx | 11 +- yarn.lock | 109 +++++++++++++----- 52 files changed, 503 insertions(+), 303 deletions(-) create mode 100644 src/components/Breadcrumbs/Breadcrumbs.tsx create mode 100644 src/components/Breadcrumbs/index.ts rename src/components/DynamicObject/{ => ObjectActiveModules}/ObjectCard/ObjectCard.tsx (77%) rename src/components/DynamicObject/{ => ObjectActiveModules}/ObjectCard/index.ts (100%) diff --git a/package.json b/package.json index fa51ca67..f9773ea5 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.494", - "@pzh-ui/config": "^0.0.58", - "@pzh-ui/css": "^0.0.82", + "@pzh-ui/components": "^0.0.514", + "@pzh-ui/config": "^0.0.63", + "@pzh-ui/css": "^0.0.89", "@pzh-ui/icons": "^0.0.52", "@react-hookz/web": "^24.0.4", "@tanstack/react-query": "^5.24.7", diff --git a/src/components/AreaCard/AreaCard.tsx b/src/components/AreaCard/AreaCard.tsx index a1655944..8e647268 100644 --- a/src/components/AreaCard/AreaCard.tsx +++ b/src/components/AreaCard/AreaCard.tsx @@ -1,4 +1,5 @@ import { Button, Heading } from '@pzh-ui/components' +import { Link } from 'react-router-dom' interface AreaCardProps { image?: string | null @@ -18,8 +19,8 @@ const AreaCard = ({ image, title, link }: AreaCardProps) => ( {title}
    -
    diff --git a/src/components/Breadcrumbs/Breadcrumbs.tsx b/src/components/Breadcrumbs/Breadcrumbs.tsx new file mode 100644 index 00000000..d392a006 --- /dev/null +++ b/src/components/Breadcrumbs/Breadcrumbs.tsx @@ -0,0 +1,40 @@ +import { + BackLink, + BreadCrumbsList, + BreadcrumbItem, + Breadcrumbs as ProvidedBreadcrumbs, +} from '@pzh-ui/components' +import { Link } from 'react-router-dom' + +interface BreadcrumbsProps { + items: { + name: string + to?: string + }[] + className?: string +} + +const Breadcrumbs = ({ items, className }: BreadcrumbsProps) => ( + + + {items.map((item, index) => ( + + {item.to ? ( + {item.name} + ) : ( + item.name + )} + + ))} + + + + {items[items.length - 2].name} + + + +) + +export default Breadcrumbs diff --git a/src/components/Breadcrumbs/index.ts b/src/components/Breadcrumbs/index.ts new file mode 100644 index 00000000..04223fc9 --- /dev/null +++ b/src/components/Breadcrumbs/index.ts @@ -0,0 +1 @@ +export { default } from './Breadcrumbs' diff --git a/src/components/Dashboard/DashboardAdmin/DashboardAdmin.tsx b/src/components/Dashboard/DashboardAdmin/DashboardAdmin.tsx index 5833af5c..bceff8ab 100644 --- a/src/components/Dashboard/DashboardAdmin/DashboardAdmin.tsx +++ b/src/components/Dashboard/DashboardAdmin/DashboardAdmin.tsx @@ -57,12 +57,13 @@ const DashboardAdmin = () => { Modules
    @@ -99,8 +100,8 @@ const DashboardAdmin = () => { modules.total > modules.limit && (
    diff --git a/src/components/Dashboard/DashboardUser/DashboardUser.tsx b/src/components/Dashboard/DashboardUser/DashboardUser.tsx index dc5ce36b..5ce7d7b7 100644 --- a/src/components/Dashboard/DashboardUser/DashboardUser.tsx +++ b/src/components/Dashboard/DashboardUser/DashboardUser.tsx @@ -12,7 +12,7 @@ import { ModuleObjectShort, PagedResponseGenericObjectShort, } from '@/api/fetchers.schemas' -import ObjectCard from '@/components/DynamicObject/ObjectCard' +import ObjectCard from '@/components/DynamicObject/ObjectActiveModules/ObjectCard' import { LoaderCard } from '@/components/Loader' import ModuleCard from '@/components/Modules/ModuleCard' import * as models from '@/config/objects' @@ -77,8 +77,8 @@ const UserModules = () => { modules.total > modules.limit && (
    @@ -138,8 +138,8 @@ const UserObject = () => { objects.total > objects.limit && (
    diff --git a/src/components/DynamicObject/ObjectCard/ObjectCard.tsx b/src/components/DynamicObject/ObjectActiveModules/ObjectCard/ObjectCard.tsx similarity index 77% rename from src/components/DynamicObject/ObjectCard/ObjectCard.tsx rename to src/components/DynamicObject/ObjectActiveModules/ObjectCard/ObjectCard.tsx index 8ef89a5f..e5c5d3a0 100644 --- a/src/components/DynamicObject/ObjectCard/ObjectCard.tsx +++ b/src/components/DynamicObject/ObjectActiveModules/ObjectCard/ObjectCard.tsx @@ -1,4 +1,5 @@ import { Button, Heading, Text } from '@pzh-ui/components' +import { Link } from 'react-router-dom' import * as models from '@/config/objects' import { ModelReturnType, ModelType } from '@/config/objects/types' @@ -18,12 +19,10 @@ const ObjectCard = ({ Object_Type, Object_ID, Title }: ModelReturnType) => { {Title}
    -
    diff --git a/src/components/DynamicObject/ObjectCard/index.ts b/src/components/DynamicObject/ObjectActiveModules/ObjectCard/index.ts similarity index 100% rename from src/components/DynamicObject/ObjectCard/index.ts rename to src/components/DynamicObject/ObjectActiveModules/ObjectCard/index.ts diff --git a/src/components/DynamicObject/ObjectConnectionsPublic/ObjectConnectionsPublic.tsx b/src/components/DynamicObject/ObjectConnectionsPublic/ObjectConnectionsPublic.tsx index 70318673..6d2cce38 100644 --- a/src/components/DynamicObject/ObjectConnectionsPublic/ObjectConnectionsPublic.tsx +++ b/src/components/DynamicObject/ObjectConnectionsPublic/ObjectConnectionsPublic.tsx @@ -1,4 +1,5 @@ import { Heading, ListLink, Text } from '@pzh-ui/components' +import { Link } from 'react-router-dom' import * as models from '@/config/objects' import { Model, ModelReturnType } from '@/config/objects/types' @@ -36,13 +37,16 @@ const ObjectConnectionsPublic = ({ {(items as any[]).map(item => (
  • + asChild + className="text-pzh-green-500 hover:text-pzh-green-900"> + + {item.Object.Title} + +
  • ))} diff --git a/src/components/DynamicObject/ObjectSidebar/ObjectSidebar.tsx b/src/components/DynamicObject/ObjectSidebar/ObjectSidebar.tsx index 5f81cdb0..2bfb35b4 100644 --- a/src/components/DynamicObject/ObjectSidebar/ObjectSidebar.tsx +++ b/src/components/DynamicObject/ObjectSidebar/ObjectSidebar.tsx @@ -1,6 +1,6 @@ import { Heading, Hyperlink, Text, formatDate } from '@pzh-ui/components' import { useMemo } from 'react' -import { useParams } from 'react-router-dom' +import { Link, useParams } from 'react-router-dom' import Avatar from '@/components/Avatar/Avatar' import { LoaderCard } from '@/components/Loader' @@ -128,14 +128,16 @@ const ObjectSidebar = ({ />
    )} */} - + + + Open in beheeromgeving + +
    )} diff --git a/src/components/Form/FieldArray/FieldArray.tsx b/src/components/Form/FieldArray/FieldArray.tsx index 758a7444..0a6af039 100644 --- a/src/components/Form/FieldArray/FieldArray.tsx +++ b/src/components/Form/FieldArray/FieldArray.tsx @@ -29,7 +29,7 @@ const FieldArray = ({ }: Omit, 'type'> & { model?: Model buttonLabel?: string - buttonOptions?: ButtonProps<'button'> + buttonOptions?: ButtonProps itemClassName?: string }) => { const { values } = useFormikContext() diff --git a/src/components/Leaflet/utils/createCustomPopup.tsx b/src/components/Leaflet/utils/createCustomPopup.tsx index fb53344c..9241eb79 100644 --- a/src/components/Leaflet/utils/createCustomPopup.tsx +++ b/src/components/Leaflet/utils/createCustomPopup.tsx @@ -199,10 +199,12 @@ export const CreateCustomPopup = ({ Bekijk beleid ) : ( - - - + )} )}
    diff --git a/src/components/Modules/ModuleItem/ModuleItem.tsx b/src/components/Modules/ModuleItem/ModuleItem.tsx index b2d34dfb..9cc6f3b8 100644 --- a/src/components/Modules/ModuleItem/ModuleItem.tsx +++ b/src/components/Modules/ModuleItem/ModuleItem.tsx @@ -1,6 +1,7 @@ import { Divider, Hyperlink, Text } from '@pzh-ui/components' import { CircleInfo, EllipsisVertical } from '@pzh-ui/icons' import { useMemo, useState } from 'react' +import { Link } from 'react-router-dom' import { ModuleObjectShort } from '@/api/fetchers.schemas' import Dropdown, { DropdownItem } from '@/components/Dropdown' @@ -149,16 +150,20 @@ const ModuleItem = ({ canPatchObjectInModule && !isLocked && isActive && ( - + + + Bewerken + + )} {hasViewButton && !hasRights && ( - + + + Bekijken + + )} {!!dropdownItems.length ? ( diff --git a/src/components/Network/NetworkGraphPopup/NetworkGraphPopup.tsx b/src/components/Network/NetworkGraphPopup/NetworkGraphPopup.tsx index b9bf8e0f..427e1c21 100644 --- a/src/components/Network/NetworkGraphPopup/NetworkGraphPopup.tsx +++ b/src/components/Network/NetworkGraphPopup/NetworkGraphPopup.tsx @@ -1,6 +1,7 @@ import { Hyperlink, Text } from '@pzh-ui/components' import { Xmark } from '@pzh-ui/icons' import classNames from 'clsx' +import { Link } from 'react-router-dom' import { ModelType } from '@/config/objects/types' import useNetworkStore from '@/store/networkStore' @@ -18,17 +19,19 @@ const NetworkGraphPopup = () => { } )}> {activeNode?.Object_Type} - + + + {activeNode?.Title} + + + ) + } return ( ) : ( activeTab !== 'latest' && ( @@ -303,6 +302,7 @@ const TabTable = ({ type, activeTab, model, query }: TabTableProps) => { enableMultiSort={false} limit={!query ? PAGE_LIMIT : undefined} total={!query ? data?.total : undefined} + current={pageIndex} onPaginationChange={setPagination} state={{ sorting: sortBy, diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 5faf4181..c86344f1 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -1,6 +1,5 @@ import { Badge, - Breadcrumbs, Button, Divider, Heading, @@ -12,9 +11,11 @@ import { } from '@pzh-ui/components' import classNames from 'clsx' import { Fragment, useState } from 'react' +import { Link } from 'react-router-dom' import { DocumentType, Module, ModuleObjectShort } from '@/api/fetchers.schemas' import Avatar from '@/components/Avatar' +import Breadcrumbs from '@/components/Breadcrumbs' import { LoaderContent } from '@/components/Loader' import { ModuleActivateModal, @@ -53,7 +54,6 @@ export interface ModuleContext { const ModuleDetail = () => { const { canEditModule } = usePermissions() - const pathName = location.pathname || '' const { data: { Module: module } = {}, @@ -64,9 +64,9 @@ const ModuleDetail = () => { const managers = useModuleManagers(module) const breadcrumbPaths = [ - { name: 'Dashboard', path: '/muteer' }, - { name: 'Modules', path: '/muteer' }, - { name: module?.Title || '', path: pathName }, + { name: 'Dashboard', to: '/muteer' }, + { name: 'Modules', to: '/muteer' }, + { name: module?.Title || '' }, ] if (isLoading || !module) return @@ -77,10 +77,12 @@ const ModuleDetail = () => {
    {(canEditModule || isModuleManager) && ( - + + + Module bewerken + + )}
    diff --git a/src/pages/protected/PublicationTemplates/PublicationTemplateOverview/PublicationTemplateOverview.tsx b/src/pages/protected/PublicationTemplates/PublicationTemplateOverview/PublicationTemplateOverview.tsx index cc03cada..9414834b 100644 --- a/src/pages/protected/PublicationTemplates/PublicationTemplateOverview/PublicationTemplateOverview.tsx +++ b/src/pages/protected/PublicationTemplates/PublicationTemplateOverview/PublicationTemplateOverview.tsx @@ -9,7 +9,7 @@ import { import { AngleRight } from '@pzh-ui/icons' import { keepPreviousData } from '@tanstack/react-query' import { useMemo, useState } from 'react' -import { useNavigate } from 'react-router-dom' +import { Link, useNavigate } from 'react-router-dom' import { usePublicationTemplatesGet } from '@/api/fetchers' import model from '@/config/publicationTemplates' @@ -40,11 +40,10 @@ const PublicationTemplateOverview = () => { {pluralCapitalize} {canCreatePublicationTemplate && ( - )}
    @@ -153,6 +152,7 @@ const TabTable = ({ type, activeTab }: TabTableProps) => { enableMultiSort={false} limit={PAGE_LIMIT} total={data?.total} + current={pageIndex} onPaginationChange={setPagination} manualSorting isLoading={isFetching} diff --git a/src/pages/protected/Users/UsersOverview/UsersOverview.tsx b/src/pages/protected/Users/UsersOverview/UsersOverview.tsx index 300be261..9956ad0c 100644 --- a/src/pages/protected/Users/UsersOverview/UsersOverview.tsx +++ b/src/pages/protected/Users/UsersOverview/UsersOverview.tsx @@ -155,6 +155,7 @@ const TabTable = ({ type, activeTab }: TabTableProps) => { enableMultiSort={false} limit={PAGE_LIMIT} total={data?.total} + current={pageIndex} onPaginationChange={setPagination} state={{ sorting: sortBy, diff --git a/src/pages/public/Accessibility/Accessibility.tsx b/src/pages/public/Accessibility/Accessibility.tsx index 67a736f6..a8dffeef 100644 --- a/src/pages/public/Accessibility/Accessibility.tsx +++ b/src/pages/public/Accessibility/Accessibility.tsx @@ -1,13 +1,14 @@ -import { Breadcrumbs, Heading, Text } from '@pzh-ui/components' +import { Heading, Text } from '@pzh-ui/components' import { Helmet } from 'react-helmet-async' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import imgDigiToegankelijkheid from '@/images/digi-toegankelijkheid.webp' function Accessibility() { const breadcrumbPaths = [ - { name: 'Home', path: '/' }, - { name: 'Digitale toegankelijkheid', path: '/digi-toegankelijkheid' }, + { name: 'Home', to: '/' }, + { name: 'Digitale toegankelijkheid', to: '/digi-toegankelijkheid' }, ] return ( diff --git a/src/pages/public/AreaDetail/AreaDetail.tsx b/src/pages/public/AreaDetail/AreaDetail.tsx index b10364f0..24d4c0a2 100644 --- a/src/pages/public/AreaDetail/AreaDetail.tsx +++ b/src/pages/public/AreaDetail/AreaDetail.tsx @@ -1,7 +1,8 @@ -import { Breadcrumbs, Heading, Text } from '@pzh-ui/components' +import { Heading, Text } from '@pzh-ui/components' import { useMemo } from 'react' import { useParams } from 'react-router-dom' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import { LoaderContent } from '@/components/Loader' import ObjectList from '@/components/ObjectList' @@ -39,15 +40,14 @@ function AreaDetail() { ) const breadcrumbPaths = [ - { name: 'Home', path: '/' }, - { name: 'Omgevingsprogramma', path: '/omgevingsprogramma' }, + { name: 'Home', to: '/' }, + { name: 'Omgevingsprogramma', to: '/omgevingsprogramma' }, { name: 'Gebiedsprogramma’s', - path: '/omgevingsprogramma/gebiedsprogrammas', + to: '/omgevingsprogramma/gebiedsprogrammas', }, { name: data?.Title || '', - path: `/omgevingsprogramma/gebiedsprogrammas/${data?.UUID}`, }, ] diff --git a/src/pages/public/AreaOverview/AreaOverview.tsx b/src/pages/public/AreaOverview/AreaOverview.tsx index 660027e1..506990e4 100644 --- a/src/pages/public/AreaOverview/AreaOverview.tsx +++ b/src/pages/public/AreaOverview/AreaOverview.tsx @@ -1,8 +1,9 @@ -import { Breadcrumbs, Heading, Text } from '@pzh-ui/components' +import { Heading, Text } from '@pzh-ui/components' import { Helmet } from 'react-helmet-async' import { useGebiedsprogrammasValidGet } from '@/api/fetchers' import AreaCard from '@/components/AreaCard' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import { LoaderContent, LoaderSpinner } from '@/components/Loader' @@ -10,11 +11,10 @@ function AreaOverview() { const { data, isLoading } = useGebiedsprogrammasValidGet() const breadcrumbPaths = [ - { name: 'Home', path: '/' }, - { name: 'Omgevingsprogramma', path: '/omgevingsprogramma' }, + { name: 'Home', to: '/' }, + { name: 'Omgevingsprogramma', to: '/omgevingsprogramma' }, { name: 'Gebiedsprogramma’s', - path: '/omgevingsprogramma/gebiedsprogrammas', }, ] diff --git a/src/pages/public/AtemportalObject/AtemportalObject.tsx b/src/pages/public/AtemportalObject/AtemportalObject.tsx index cc06cf87..634358d2 100644 --- a/src/pages/public/AtemportalObject/AtemportalObject.tsx +++ b/src/pages/public/AtemportalObject/AtemportalObject.tsx @@ -1,9 +1,10 @@ -import { Breadcrumbs, Heading, Text } from '@pzh-ui/components' +import { Heading, Text } from '@pzh-ui/components' import groupBy from 'lodash.groupby' import { useMemo } from 'react' import { Helmet } from 'react-helmet-async' import { useParams } from 'react-router-dom' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import { LoaderContent } from '@/components/Loader' import ObjectList from '@/components/ObjectList' @@ -54,13 +55,13 @@ const AtemportalObject = ({ model }: DynamicObjectProps) => { }, [data, model.allowedConnections]) const breadcrumbPaths = [ - { name: 'Omgevingsbeleid', path: '/' }, + { name: 'Omgevingsbeleid', to: '/' }, { name: slugOverview || '', - path: `/${slugOverview}`, + to: `/${slugOverview}`, }, - { name: pluralCapitalize, path: `/${slugOverview}/${plural}` || '' }, - { name: data.Title || '', path: pathName }, + { name: pluralCapitalize, to: `/${slugOverview}/${plural}` || '' }, + { name: data.Title || '', isCurrent: true }, ] if (isLoading) return diff --git a/src/pages/public/DynamicObject/DynamicObject.tsx b/src/pages/public/DynamicObject/DynamicObject.tsx index 29f1510d..4daa12a4 100644 --- a/src/pages/public/DynamicObject/DynamicObject.tsx +++ b/src/pages/public/DynamicObject/DynamicObject.tsx @@ -1,15 +1,11 @@ -import { - Breadcrumbs, - Heading, - Hyperlink, - Notification, -} from '@pzh-ui/components' +import { Heading, Hyperlink, Notification } from '@pzh-ui/components' import classNames from 'clsx' import { useCallback, useEffect, useMemo, useState } from 'react' import { Helmet } from 'react-helmet-async' -import { useParams } from 'react-router-dom' +import { Link, useParams } from 'react-router-dom' import { PublicModuleObjectRevision } from '@/api/fetchers.schemas' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import ObjectArea from '@/components/DynamicObject/ObjectArea' import ObjectConnectionsPublic from '@/components/DynamicObject/ObjectConnectionsPublic' @@ -32,7 +28,6 @@ interface DynamicObjectProps { const DynamicObject = ({ model, isRevision }: DynamicObjectProps) => { const { moduleId, uuid } = useParams() - const pathName = location.pathname || '' const { setInitialObject, setRevisionFrom, setRevisionTo } = useRevisionStore(state => ({ ...state })) @@ -107,23 +102,23 @@ const DynamicObject = ({ model, isRevision }: DynamicObjectProps) => { ) const breadcrumbPaths = [ - { name: 'Omgevingsbeleid', path: '/' }, + { name: 'Omgevingsbeleid', to: '/' }, { name: slugOverview || '', - path: slugOverviewPublic ? `/${slugOverview}` : '/', + to: slugOverviewPublic ? `/${slugOverview}` : '/', }, - { name: pluralCapitalize, path: `/${slugOverview}/${plural}` }, + { name: pluralCapitalize, to: `/${slugOverview}/${plural}` }, ...(isRevision ? [ { name: 'Ontwerpversie', - path: !latestIsError + to: !latestIsError ? `/${slugOverview}/${plural}/${latest?.UUID}` : `/${slugOverview}/${plural}`, }, ] : []), - { name: data?.Title || '', path: pathName }, + { name: data?.Title || '' }, ] /** @@ -181,10 +176,12 @@ const DynamicObject = ({ model, isRevision }: DynamicObjectProps) => { ? 'ontwerpversie' : 'verouderde versie'}{' '} van {demonstrative} {singularReadable},{' '} - + + + bekijk hier de vigerende versie + + )} diff --git a/src/pages/public/DynamicOverview/DynamicOverview.tsx b/src/pages/public/DynamicOverview/DynamicOverview.tsx index 4e34242a..fa256a06 100644 --- a/src/pages/public/DynamicOverview/DynamicOverview.tsx +++ b/src/pages/public/DynamicOverview/DynamicOverview.tsx @@ -1,9 +1,10 @@ -import { Breadcrumbs, Heading, Text } from '@pzh-ui/components' +import { Heading, Text } from '@pzh-ui/components' import { useUpdateEffect } from '@react-hookz/web' import { keepPreviousData } from '@tanstack/react-query' import { useMemo, useState } from 'react' import { Helmet } from 'react-helmet-async' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import ObjectList from '@/components/ObjectList' import { Model } from '@/config/objects/types' @@ -16,8 +17,6 @@ interface DynamicOverviewProps { } function DynamicOverview({ model }: DynamicOverviewProps) { - const pathName = location.pathname || '' - const { get, set, remove } = useSearchParam() const [page] = get(['page']) @@ -76,12 +75,12 @@ function DynamicOverview({ model }: DynamicOverviewProps) { }, [plural]) const breadcrumbPaths = [ - { name: 'Omgevingsbeleid', path: '/' }, + { name: 'Omgevingsbeleid', to: '/' }, { name: slugOverview || '', - path: slugOverviewPublic ? `/${slugOverview}` : '/', + to: slugOverviewPublic ? `/${slugOverview}` : '/', }, - { name: pluralCapitalize || '', path: pathName }, + { name: pluralCapitalize || '' }, ] return ( @@ -108,7 +107,7 @@ function DynamicOverview({ model }: DynamicOverviewProps) { limit={PAGE_LIMIT} onPageChange={handlePageChange} total={data?.total} - currPage={currPage - 1} + currPage={currPage} /> diff --git a/src/pages/public/EnvironmentProgram/EnvironmentProgram.tsx b/src/pages/public/EnvironmentProgram/EnvironmentProgram.tsx index 6d615aa6..9cd3b3b3 100644 --- a/src/pages/public/EnvironmentProgram/EnvironmentProgram.tsx +++ b/src/pages/public/EnvironmentProgram/EnvironmentProgram.tsx @@ -1,13 +1,14 @@ -import { Breadcrumbs, Heading, Text } from '@pzh-ui/components' +import { Heading, Text } from '@pzh-ui/components' import { Link } from 'react-router-dom' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import imgEnvironmentProgram from '@/images/environment-program.webp' function EnvironmentProgram() { const breadcrumbPaths = [ - { name: 'Home', path: '/' }, - { name: 'Omgevingsprogramma', path: '/omgevingsprogramma' }, + { name: 'Home', to: '/' }, + { name: 'Omgevingsprogramma' }, ] return ( diff --git a/src/pages/public/Home/Home.tsx b/src/pages/public/Home/Home.tsx index 7fe5cfdf..360d2eb1 100644 --- a/src/pages/public/Home/Home.tsx +++ b/src/pages/public/Home/Home.tsx @@ -136,20 +136,21 @@ const Home = () => ( provincie voor staat. Het beschrijft hoe de provincie de toekomst van Zuid-Holland voor zich ziet. De Omgevingsvisie bevat verschillende onderdelen: in de{' '} - {' '} + + ambities + {' '} wordt omschreven waar we als provincie heen willen, de{' '} - {' '} + + + beleidsdoelen + + {' '} geven hier richting aan en de{' '} - {' '} + + + beleidskeuzes + + {' '} bepalen hoe de ambities bereikt dienen te worden. diff --git a/src/pages/public/MapSearch/SidebarResults/SidebarResults.tsx b/src/pages/public/MapSearch/SidebarResults/SidebarResults.tsx index 9fb119f2..ade0bde0 100644 --- a/src/pages/public/MapSearch/SidebarResults/SidebarResults.tsx +++ b/src/pages/public/MapSearch/SidebarResults/SidebarResults.tsx @@ -307,9 +307,10 @@ const SidebarResults = () => { pagination.total > pagination.limit && (
    )} diff --git a/src/pages/public/Network/Network.tsx b/src/pages/public/Network/Network.tsx index 3cdf4ce1..0a7b329f 100644 --- a/src/pages/public/Network/Network.tsx +++ b/src/pages/public/Network/Network.tsx @@ -1,7 +1,8 @@ -import { Breadcrumbs, Heading, TabItem, Tabs, Text } from '@pzh-ui/components' +import { Heading, TabItem, Tabs, Text } from '@pzh-ui/components' import classNames from 'clsx' import { Helmet } from 'react-helmet-async' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import NetworkGraph from '@/components/Network/NetworkGraph' import useNetworkStore from '@/store/networkStore' @@ -10,11 +11,9 @@ const Network = () => { const activeTab = useNetworkStore(state => state.activeTab) const setActiveTab = useNetworkStore(state => state.setActiveTab) - const pathName = location.pathname || '' - const breadcrumbPaths = [ - { name: 'Omgevingsbeleid', path: '/' }, - { name: 'Beleidsnetwerk' || '', path: pathName }, + { name: 'Omgevingsbeleid', to: '/' }, + { name: 'Beleidsnetwerk' || '' }, ] return ( diff --git a/src/pages/public/NotFoundPage/NotFoundPage.tsx b/src/pages/public/NotFoundPage/NotFoundPage.tsx index ab6cb08b..80646e9c 100644 --- a/src/pages/public/NotFoundPage/NotFoundPage.tsx +++ b/src/pages/public/NotFoundPage/NotFoundPage.tsx @@ -1,14 +1,13 @@ -import { Breadcrumbs, Heading, Text } from '@pzh-ui/components' +import { Heading, Text } from '@pzh-ui/components' import { Helmet } from 'react-helmet-async' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' const NotFoundPage = () => { - const pathName = location.pathname || '' - const breadcrumbPaths = [ - { name: 'Omgevingsbeleid', path: '/' }, - { name: 'Pagina niet gevonden', path: pathName }, + { name: 'Omgevingsbeleid', to: '/' }, + { name: 'Pagina niet gevonden' }, ] return ( diff --git a/src/pages/public/Revisions/Revisions.tsx b/src/pages/public/Revisions/Revisions.tsx index f1bebd56..ffb0f0d9 100644 --- a/src/pages/public/Revisions/Revisions.tsx +++ b/src/pages/public/Revisions/Revisions.tsx @@ -13,6 +13,7 @@ import { Plus } from '@pzh-ui/icons' import classNames from 'clsx' import { Fragment, useMemo } from 'react' import { Helmet } from 'react-helmet-async' +import { Link } from 'react-router-dom' import { useRevisionsGet, useRevisionsModuleIdGet } from '@/api/fetchers' import { @@ -364,10 +365,12 @@ const RevisionItem = ({ {singularCapitalize} - + + + {Title} + + ) } diff --git a/src/pages/public/SearchResults/SearchResults.tsx b/src/pages/public/SearchResults/SearchResults.tsx index e68fb309..82edafbe 100644 --- a/src/pages/public/SearchResults/SearchResults.tsx +++ b/src/pages/public/SearchResults/SearchResults.tsx @@ -216,9 +216,10 @@ const SearchResults = () => {
    )} diff --git a/src/pages/public/ThemeDetail/ThemeDetail.tsx b/src/pages/public/ThemeDetail/ThemeDetail.tsx index 42d120c8..0780b16f 100644 --- a/src/pages/public/ThemeDetail/ThemeDetail.tsx +++ b/src/pages/public/ThemeDetail/ThemeDetail.tsx @@ -1,14 +1,9 @@ -import { - Breadcrumbs, - Heading, - Hyperlink, - ListLink, - Text, -} from '@pzh-ui/components' -import { useParams } from 'react-router-dom' +import { Heading, Hyperlink, ListLink, Text } from '@pzh-ui/components' +import { Link, useParams } from 'react-router-dom' import { useBeleidsdoelenVersionObjectUuidGet } from '@/api/fetchers' import { ReadRelationShortBeleidskeuzeMinimal } from '@/api/fetchers.schemas' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import { LoaderContent } from '@/components/Loader' import TableOfContents from '@/components/TableOfContents' @@ -21,15 +16,14 @@ function ThemeDetail() { const { data, isLoading } = useBeleidsdoelenVersionObjectUuidGet(uuid!) const breadcrumbPaths = [ - { name: 'Home', path: '/' }, - { name: 'Omgevingsprogramma', path: '/omgevingsprogramma' }, + { name: 'Home', to: '/' }, + { name: 'Omgevingsprogramma', to: '/omgevingsprogramma' }, { name: 'Thematische programma’s', - path: '/omgevingsprogramma/thematische-programmas', + to: '/omgevingsprogramma/thematische-programmas', }, { name: data?.Title || '', - path: `/omgevingsprogramma/thematische-programmas/${data?.UUID}`, }, ] @@ -70,10 +64,12 @@ function ThemeDetail() { }} /> )} - + + + Lees meer informatie over dit beleidsdoel + + {data?.Beleidskeuzes?.map(object => ( @@ -110,11 +106,14 @@ const ConnectedObject = ({ Object }: ReadRelationShortBeleidskeuzeMinimal) => { return ( + className="text-pzh-green-500 hover:text-pzh-blue-500"> + + {item.Object.Title} + + ) })} @@ -124,10 +123,12 @@ const ConnectedObject = ({ Object }: ReadRelationShortBeleidskeuzeMinimal) => { )} - + + + Lees meer informatie over {prefixSingular}{' '} + {singularReadable} '{Object.Title}' + + ) } diff --git a/src/pages/public/ThemeOverview/ThemeOverview.tsx b/src/pages/public/ThemeOverview/ThemeOverview.tsx index 325afb90..63cc371a 100644 --- a/src/pages/public/ThemeOverview/ThemeOverview.tsx +++ b/src/pages/public/ThemeOverview/ThemeOverview.tsx @@ -1,9 +1,10 @@ -import { Breadcrumbs, Heading, Text } from '@pzh-ui/components' +import { Heading, Text } from '@pzh-ui/components' import { keepPreviousData } from '@tanstack/react-query' import { useMemo, useState } from 'react' import { Helmet } from 'react-helmet-async' import { useBeleidsdoelenValidGet } from '@/api/fetchers' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import { LoaderContent } from '@/components/Loader' import ObjectList from '@/components/ObjectList' @@ -26,9 +27,9 @@ function ThemeOverview() { ) const breadcrumbPaths = [ - { name: 'Home', path: '/' }, - { name: 'Omgevingsprogramma', path: '/omgevingsprogramma' }, - { name: 'Thematische programma’s', path: '/thematische-programmas' }, + { name: 'Home', to: '/' }, + { name: 'Omgevingsprogramma', to: '/omgevingsprogramma' }, + { name: 'Thematische programma’s' }, ] const transformedData = useMemo( diff --git a/src/templates/MutateLayout.tsx b/src/templates/MutateLayout.tsx index baef08c2..daa72e76 100644 --- a/src/templates/MutateLayout.tsx +++ b/src/templates/MutateLayout.tsx @@ -1,8 +1,8 @@ -import { Breadcrumbs } from '@pzh-ui/components' import classNames from 'clsx' import { ReactNode, useMemo } from 'react' import { Helmet } from 'react-helmet-async' +import Breadcrumbs from '@/components/Breadcrumbs' import { Container } from '@/components/Container' import RegulationSidebar from '@/components/Regulations/Sidebar' import Sidebar from '@/components/Sidebar' @@ -38,7 +38,7 @@ const MutateLayout = ({ () => breadcrumbs?.map(breadcrumb => ({ name: breadcrumb?.name, - path: breadcrumb?.isCurrent ? pathName : breadcrumb?.path || '', + to: breadcrumb?.isCurrent ? pathName : breadcrumb?.path || '', })), [breadcrumbs, pathName] ) diff --git a/src/utils/dynamicObject.tsx b/src/utils/dynamicObject.tsx index cd72d9e1..48d1557e 100644 --- a/src/utils/dynamicObject.tsx +++ b/src/utils/dynamicObject.tsx @@ -1,5 +1,6 @@ import { Hyperlink } from '@pzh-ui/components' import { Pencil, Plus, Xmark } from '@pzh-ui/icons' +import { Link } from 'react-router-dom' import * as models from '@/config/objects' import { ModelPatchStaticType, ModelType } from '@/config/objects/types' @@ -161,7 +162,10 @@ export const getObjectRevisionBannerText = ( Op dit moment ligt er in de module '{revision.Module_Title}' een nieuwe versie van {model.defaults.demonstrative}{' '} {model.defaults.singularReadable} ter inzage,{' '} - . + + bekijk deze versie hier + + . ) case 'Definitief ontwerp GS Concept': @@ -177,7 +181,10 @@ export const getObjectRevisionBannerText = ( gewerkt aan een nieuwe versie van{' '} {model.defaults.demonstrative}{' '} {model.defaults.singularReadable},{' '} - . + + bekijk deze versie hier + + . ) default: diff --git a/yarn.lock b/yarn.lock index 8923c7fb..89e996b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1513,6 +1513,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.13.10, @babel/runtime@npm:^7.24.0": + version: 7.24.4 + resolution: "@babel/runtime@npm:7.24.4" + dependencies: + regenerator-runtime: "npm:^0.14.0" + checksum: 8ec8ce2c145bc7e31dd39ab66df124f357f65c11489aefacb30f431bae913b9aaa66aa5efe5321ea2bf8878af3fcee338c87e7599519a952e3a6f83aa1b03308 + languageName: node + linkType: hard + "@babel/runtime@npm:^7.23.7": version: 7.24.0 resolution: "@babel/runtime@npm:7.24.0" @@ -2655,13 +2664,14 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.494": - version: 0.0.494 - resolution: "@pzh-ui/components@npm:0.0.494" +"@pzh-ui/components@npm:^0.0.514": + version: 0.0.514 + resolution: "@pzh-ui/components@npm:0.0.514" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" "@pzh-ui/icons": "npm:^0.0.52" + "@radix-ui/react-slot": "npm:^1.0.2" "@react-aria/utils": "npm:^3.23.2" "@react-hookz/web": "npm:^24.0.4" "@react-types/shared": "npm:^3.19.0" @@ -2702,19 +2712,19 @@ __metadata: react-datepicker: "npm:^6.1.0" react-dom: "npm:^18.2.0" react-dropzone-esm: "npm:^15.0.1" - react-paginate: "npm:^8.2.0" - react-router-dom: "npm:^6.22.2" + react-responsive-pagination: "npm:^2.4.2" react-select: "npm:^5.8.0" react-stately: "npm:^3.30.1" react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" - checksum: eb33b25fc826142970c387ed3f1c6d968af64ee3e26b5a98fceb2076e4634cbfc54014dec126be250205806bc25db11aabdb448763a4beb64dcd00bd51b8a726 + tailwind-merge: "npm:^2.2.2" + checksum: 58fd1e376ab1db3e8053b2a5f9c3d31854cc6dea240a8ed29bcfe112466c73b592b98b8b3c1157e5a96cf884a834555f05376d85e13251938dd012abb33cc3b4 languageName: node linkType: hard -"@pzh-ui/config@npm:^0.0.58": - version: 0.0.58 - resolution: "@pzh-ui/config@npm:0.0.58" +"@pzh-ui/config@npm:^0.0.63": + version: 0.0.63 + resolution: "@pzh-ui/config@npm:0.0.63" dependencies: "@babel/eslint-parser": "npm:^7.17.0" "@babel/preset-env": "npm:^7.16.11" @@ -2736,13 +2746,13 @@ __metadata: prettier-plugin-organize-imports: "npm:^3.2.3" prettier-plugin-tailwindcss: "npm:^0.4.1" react-toastify: "npm:^9.1.2" - checksum: 88ca405e2eabe681066106fdc6bd0af34f6b9c774a4b4be1000d5e747d9d6bf6647bffdbde91b681567044fb018ad9be766fc26379a2b505df71f8201bd21557 + checksum: f09e71156710317d9c9acede32493c311a6c82857755621855e0bfd9c6857465e214d32592c8d52678516cc01a5a8fba013755135ff7706be911a42768e86ecf languageName: node linkType: hard -"@pzh-ui/css@npm:^0.0.82": - version: 0.0.82 - resolution: "@pzh-ui/css@npm:0.0.82" +"@pzh-ui/css@npm:^0.0.89": + version: 0.0.89 + resolution: "@pzh-ui/css@npm:0.0.89" dependencies: "@rollup/plugin-typescript": "npm:^8.3.1" "@tailwindcss/custom-forms": "npm:^0.2.1" @@ -2751,7 +2761,7 @@ __metadata: "@tailwindcss/typography": "npm:^0.5.9" react-datepicker: "npm:^4.7.0" react-toastify: "npm:^9.1.2" - checksum: d1aa88f31bc685f36782d8f6369b1ef083a30829ab63c703675832128b8b5ff46f4709f1b175c96a703adc55aa7426be3813058d7ce161f008272a03aab653ea + checksum: a83e0904d61c94bae339885ca9c56572c626810f29777902bba0025af1040fbaf76c17c2a8c6e861bb9f8482ce4075c799bd34b050e31b526b398b12f6896874 languageName: node linkType: hard @@ -2765,6 +2775,37 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-compose-refs@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-compose-refs@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 2b9a613b6db5bff8865588b6bf4065f73021b3d16c0a90b2d4c23deceeb63612f1f15de188227ebdc5f88222cab031be617a9dd025874c0487b303be3e5cc2a8 + languageName: node + linkType: hard + +"@radix-ui/react-slot@npm:^1.0.2": + version: 1.0.2 + resolution: "@radix-ui/react-slot@npm:1.0.2" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-compose-refs": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 734866561e991438fbcf22af06e56b272ed6ee8f7b536489ee3bf2f736f8b53bf6bc14ebde94834aa0aceda854d018a0ce20bb171defffbaed1f566006cbb887 + languageName: node + linkType: hard + "@react-aria/breadcrumbs@npm:^3.5.11": version: 3.5.11 resolution: "@react-aria/breadcrumbs@npm:3.5.11" @@ -11571,7 +11612,7 @@ __metadata: languageName: node linkType: hard -"prop-types@npm:^15, prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1": +"prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1": version: 15.8.1 resolution: "prop-types@npm:15.8.1" dependencies: @@ -11811,9 +11852,9 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.494" - "@pzh-ui/config": "npm:^0.0.58" - "@pzh-ui/css": "npm:^0.0.82" + "@pzh-ui/components": "npm:^0.0.514" + "@pzh-ui/config": "npm:^0.0.63" + "@pzh-ui/css": "npm:^0.0.89" "@pzh-ui/icons": "npm:^0.0.52" "@react-hookz/web": "npm:^24.0.4" "@tanstack/react-query": "npm:^5.24.7" @@ -12124,17 +12165,6 @@ __metadata: languageName: node linkType: hard -"react-paginate@npm:^8.2.0": - version: 8.2.0 - resolution: "react-paginate@npm:8.2.0" - dependencies: - prop-types: "npm:^15" - peerDependencies: - react: ^16 || ^17 || ^18 - checksum: 13911c1db55a0ca0fa21c7e0df5e913be1febf7bd0ec7fde5618c48e0119ac45ff8920202c4fd7216f93244529180b4e91de41fc86a40be5e53dec14ae65956c - languageName: node - linkType: hard - "react-popper@npm:^2.3.0": version: 2.3.0 resolution: "react-popper@npm:2.3.0" @@ -12156,6 +12186,18 @@ __metadata: languageName: node linkType: hard +"react-responsive-pagination@npm:^2.4.2": + version: 2.4.2 + resolution: "react-responsive-pagination@npm:2.4.2" + dependencies: + prop-types: "npm:^15.8.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: e48bbe452e4d1b9876c9eaf908fbac5b40d1f5e2961458f8e6d2fcc000c954f4d84b006719e7bd38db810b234f31183dcdcd007d14f395bcc57def40292e1a82 + languageName: node + linkType: hard + "react-router-dom@npm:^6.22.2": version: 6.22.2 resolution: "react-router-dom@npm:6.22.2" @@ -13294,6 +13336,15 @@ __metadata: languageName: node linkType: hard +"tailwind-merge@npm:^2.2.2": + version: 2.2.2 + resolution: "tailwind-merge@npm:2.2.2" + dependencies: + "@babel/runtime": "npm:^7.24.0" + checksum: f7ec370e58d1d8f12ed6509d93333f2dacfcb43110334c5424db50ae456d14939ad32cff1ef7e31d1d10a6fff9d2e80be11560ef1ebb3fe5c83de6d465a7f7b8 + languageName: node + linkType: hard + "tailwindcss@npm:^3.4.1": version: 3.4.1 resolution: "tailwindcss@npm:3.4.1" From 6ea2a8baec2576ed28091bdac4afe41e32492fe4 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 11 Apr 2024 15:57:23 +0200 Subject: [PATCH 53/82] Update publication versions --- package.json | 3 +- src/components/Form/FieldArray/FieldArray.tsx | 5 ++- .../PublicationEditModal.tsx | 3 +- .../PublicationVersionEditModal.tsx | 2 +- .../Publications/Publication/Publication.tsx | 2 +- .../PublicationEnvironmentAction.tsx | 3 ++ .../PublicationPackages.tsx | 29 +++++++-------- .../components/PackageStepActions.tsx | 9 ++--- .../PublicationVersionForm.tsx | 5 +++ .../PublicationVersions.tsx | 36 ++++++++----------- src/components/Publications/Publications.tsx | 1 + src/validation/publication.ts | 10 +++--- yarn.lock | 29 +++------------ 13 files changed, 57 insertions(+), 80 deletions(-) diff --git a/package.json b/package.json index f9773ea5..9145d3a5 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.514", + "@pzh-ui/components": "^0.0.515", "@pzh-ui/config": "^0.0.63", "@pzh-ui/css": "^0.0.89", "@pzh-ui/icons": "^0.0.52", @@ -32,7 +32,6 @@ "react-helmet-async": "^2.0.4", "react-leaflet": "^4.2.1", "react-router-dom": "^6.22.2", - "tailwind-merge": "^2.2.1", "uuid": "^9.0.1", "zod": "^3.22.4", "zod-formik-adapter": "^1.2.0", diff --git a/src/components/Form/FieldArray/FieldArray.tsx b/src/components/Form/FieldArray/FieldArray.tsx index 0a6af039..3f011afb 100644 --- a/src/components/Form/FieldArray/FieldArray.tsx +++ b/src/components/Form/FieldArray/FieldArray.tsx @@ -1,4 +1,4 @@ -import { Button, ButtonProps, FieldLabel, Text } from '@pzh-ui/components' +import { Button, ButtonProps, FieldLabel, Text, cn } from '@pzh-ui/components' import { Plus, Xmark } from '@pzh-ui/icons' import { ArrayHelpers, @@ -6,7 +6,6 @@ import { FormikValues, useFormikContext, } from 'formik' -import { twMerge } from 'tailwind-merge' import DynamicObjectField from '@/components/DynamicObject/DynamicObjectForm/DynamicField' import { Model } from '@/config/objects/types' @@ -63,7 +62,7 @@ const FieldArray = ({ (child, childIndex) => (
    diff --git a/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx b/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx index 116a44c3..d898480f 100644 --- a/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationEditModal/PublicationEditModal.tsx @@ -21,7 +21,7 @@ const PublicationEditModal = () => { ) as ModalStateMap['publicationEdit'] const setActiveModal = useModalStore(state => state.setActiveModal) - const { data, isFetching } = usePublicationsPublicationUuidGet( + const { data, isFetching, queryKey } = usePublicationsPublicationUuidGet( modalState?.publication.UUID, { query: { @@ -33,6 +33,7 @@ const PublicationEditModal = () => { const { mutate } = usePublicationsPublicationUuidPost({ mutation: { onSuccess: () => { + queryClient.invalidateQueries({ queryKey }) queryClient.invalidateQueries({ queryKey: getPublicationsGetQueryKey({ document_type: modalState.publication diff --git a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx index 8bf20d6a..d98baf5a 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionEditModal/PublicationVersionEditModal.tsx @@ -82,7 +82,7 @@ const PublicationVersionEditModal = () => { validationSchema={toFormikValidationSchema( PUBLICATION_VERSION_EDIT_SCHEMA )} - submitLabel="Versie opslaan" + submitLabel="Opslaan" isEdit /> )} diff --git a/src/components/Publications/Publication/Publication.tsx b/src/components/Publications/Publication/Publication.tsx index a8228497..3e25beff 100644 --- a/src/components/Publications/Publication/Publication.tsx +++ b/src/components/Publications/Publication/Publication.tsx @@ -36,7 +36,7 @@ const Publication = ({ data }: PublicationProps) => { {canEditPublication && (
    - {isOfficial && !data?.Is_Valid && !!validationPackage && ( - - )} - {isOfficial && - validationPackage?.Report_Status === 'Valid' && + validationPackage?.Report_Status === 'valid' && !!!publicationPackage && ( - {validationPackage?.Report_Status === 'Valid' && + {validationPackage?.Report_Status === 'valid' && !data?.Is_Valid && ( )} + {validationPackage?.Report_Status === 'valid' && + data?.Is_Valid && ( + + )} +
    Publicatie @@ -169,7 +166,7 @@ const PublicationPackages = ({ type="create" eventType="publication" isActive={ - validationPackage?.Report_Status === 'Valid' && + validationPackage?.Report_Status === 'valid' && data?.Is_Valid } isSucceeded={!!publicationPackage} @@ -193,7 +190,7 @@ const PublicationPackages = ({ !!publicationPackage?.Zip.Latest_Download_Date } isSucceeded={ - publicationPackage?.Report_Status === 'Valid' + publicationPackage?.Report_Status === 'valid' } isLast /> @@ -201,7 +198,7 @@ const PublicationPackages = ({ )} - {isOfficial && publicationPackage?.Report_Status === 'Valid' && ( + {isOfficial && publicationPackage?.Report_Status === 'valid' && ( )} - {isOfficial && publicationPackage?.Report_Status === 'Failed' && ( + {isOfficial && publicationPackage?.Report_Status === 'failed' && (
    + isLoading={isPending}> {buttonLabel}
    @@ -278,7 +277,7 @@ const UploadAction = ({ className={clsx({ 'border-pzh-red-900 bg-pzh-red-10 text-pzh-red-900': 'Report_Status' in file && - file.Report_Status === 'Failed', + file.Report_Status === 'failed', })} /> ))} @@ -314,7 +313,9 @@ const UploadAction = ({ {!!files?.length && (
    {isEdit && ( <> + {
    {isFetching ? ( - ) : ( + ) : !!data?.results.length ? ( @@ -58,6 +64,10 @@ const PublicationVersions = ({ publication }: PublicationVersionsProps) => { ))}
    + ) : ( + + Er is nog geen versie aangemaakt + )}
    {!!data?.total && !!data?.limit && data.total > data.limit && ( @@ -82,11 +92,8 @@ const VersionRow = ({ }) => { const { moduleId } = useParams() - const { - canEditPublicationVersion, - canCreatePublicationPackage, - canViewPublicationPackage, - } = usePermissions() + const { canEditPublicationVersion, canViewPublicationPackage } = + usePermissions() const setActiveModal = useModalStore(state => state.setActiveModal) @@ -127,21 +134,6 @@ const VersionRow = ({
    {version.Module_Status.Status}
    - {version.Is_Locked && canCreatePublicationPackage && ( - - )} {!version.Is_Locked && canEditPublicationVersion && (
    diff --git a/src/validation/publication.ts b/src/validation/publication.ts index 6c742a87..5c85cecb 100644 --- a/src/validation/publication.ts +++ b/src/validation/publication.ts @@ -13,7 +13,6 @@ export const PUBLICATION_VERSION_ADD_SCHEMA = object({ }) export const PUBLICATION_VERSION_EDIT_SCHEMA = object({ - Procedure_Type: schemaDefaults.requiredString(), Effective_Date: schemaDefaults.optionalString .refine(date => { return date && new Date(date) > new Date(Date.now()) @@ -24,6 +23,9 @@ export const PUBLICATION_VERSION_EDIT_SCHEMA = object({ return date && new Date(date) > new Date(Date.now()) }, 'De bekendmakingsdatum moet in de toekomst liggen') .nullable(), + Bill_Metadata: object({ + Official_Title: schemaDefaults.requiredString(), + }), Bill_Compact: object({ Preamble: schemaDefaults.optionalString, Amendment_Article: schemaDefaults.requiredString(), @@ -40,11 +42,7 @@ export const PUBLICATION_VERSION_EDIT_SCHEMA = object({ Procedural: object({ Enactment_Date: schemaDefaults.optionalString, Signed_Date: schemaDefaults.optionalString, - Procedural_Announcement_Date: schemaDefaults.optionalString - .refine(date => { - return date && new Date(date) > new Date(Date.now()) - }, 'De bekend op datum moet in de toekomst liggen') - .nullable(), + Procedural_Announcement_Date: schemaDefaults.optionalString, }), }).superRefine(({ Effective_Date, Announcement_Date }, ctx) => { if ( diff --git a/yarn.lock b/yarn.lock index 89e996b8..99bf9497 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1522,15 +1522,6 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.23.7": - version: 7.24.0 - resolution: "@babel/runtime@npm:7.24.0" - dependencies: - regenerator-runtime: "npm:^0.14.0" - checksum: 8d32c7e116606ea322b89f9fde8ffae6be9503b549dc0d0abb38bd9dc26e87469b9fb7a66964cc089ee558fd0a97d304fb0a3cfec140694764fb0d71b6a6f5e4 - languageName: node - linkType: hard - "@babel/template@npm:^7.22.15, @babel/template@npm:^7.23.9": version: 7.23.9 resolution: "@babel/template@npm:7.23.9" @@ -2664,9 +2655,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.514": - version: 0.0.514 - resolution: "@pzh-ui/components@npm:0.0.514" +"@pzh-ui/components@npm:^0.0.515": + version: 0.0.515 + resolution: "@pzh-ui/components@npm:0.0.515" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" @@ -2718,7 +2709,7 @@ __metadata: react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" tailwind-merge: "npm:^2.2.2" - checksum: 58fd1e376ab1db3e8053b2a5f9c3d31854cc6dea240a8ed29bcfe112466c73b592b98b8b3c1157e5a96cf884a834555f05376d85e13251938dd012abb33cc3b4 + checksum: ef5b5193999268625a397ac40df8b1f8d53760a1ff649bcbc440f5e1b257b496a0ebc0c8644a2f612a77bc4c59246cb918605f73fa19f2cbf13d09ea555063c2 languageName: node linkType: hard @@ -11852,7 +11843,7 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.514" + "@pzh-ui/components": "npm:^0.0.515" "@pzh-ui/config": "npm:^0.0.63" "@pzh-ui/css": "npm:^0.0.89" "@pzh-ui/icons": "npm:^0.0.52" @@ -11911,7 +11902,6 @@ __metadata: react-router-dom: "npm:^6.22.2" rollup-plugin-visualizer: "npm:^5.11.0" sass: "npm:^1.63.6" - tailwind-merge: "npm:^2.2.1" tailwindcss: "npm:^3.4.1" typescript: "npm:^5.3.3" uuid: "npm:^9.0.1" @@ -13327,15 +13317,6 @@ __metadata: languageName: node linkType: hard -"tailwind-merge@npm:^2.2.1": - version: 2.2.1 - resolution: "tailwind-merge@npm:2.2.1" - dependencies: - "@babel/runtime": "npm:^7.23.7" - checksum: 3d8aecfa03c077472a038f25e95504ca47c1e7549ab843a854a690509098caac4e2e57790a7cadda4054fd07ec31421980a7afac33547013cf22299788625e72 - languageName: node - linkType: hard - "tailwind-merge@npm:^2.2.2": version: 2.2.2 resolution: "tailwind-merge@npm:2.2.2" From 61a9eafb12fb6bdfffaac2c24cb8551046e36dd8 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 11 Apr 2024 16:23:29 +0200 Subject: [PATCH 54/82] Update vitest config --- vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 5331b06b..5ef6c2fe 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -80,5 +80,10 @@ export default defineConfig({ }, restoreMocks: true, mockReset: true, + server: { + deps: { + inline: ['@pzh-ui/components'], + }, + }, }, }) From 50363cb238052a6ebd3c6ee35af329ed08287dbd Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 25 Apr 2024 11:57:47 +0200 Subject: [PATCH 55/82] Update packages --- package.json | 10 +- .../Network/NetworkTextual/NetworkTextual.tsx | 37 +++--- .../components/PackageStepActions.tsx | 14 ++- yarn.lock | 108 +++++++----------- 4 files changed, 80 insertions(+), 89 deletions(-) diff --git a/package.json b/package.json index 9145d3a5..ec1a0ad5 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,10 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.515", - "@pzh-ui/config": "^0.0.63", - "@pzh-ui/css": "^0.0.89", - "@pzh-ui/icons": "^0.0.52", + "@pzh-ui/components": "^0.0.522", + "@pzh-ui/config": "^0.0.69", + "@pzh-ui/css": "^0.0.95", + "@pzh-ui/icons": "^0.0.59", "@react-hookz/web": "^24.0.4", "@tanstack/react-query": "^5.24.7", "axios": "^1.6.7", @@ -77,7 +77,7 @@ "@types/lodash.debounce": "^4.0.7", "@types/lodash.groupby": "^4.6.7", "@types/proj4leaflet": "^1.0.10", - "@types/react": "^18.2.15", + "@types/react": "^18.2.79", "@types/react-dom": "^18.2.7", "@types/react-leaflet": "^3.0.0", "@types/react-router-dom": "^5.3.3", diff --git a/src/components/Network/NetworkTextual/NetworkTextual.tsx b/src/components/Network/NetworkTextual/NetworkTextual.tsx index 2683b046..d0b22487 100644 --- a/src/components/Network/NetworkTextual/NetworkTextual.tsx +++ b/src/components/Network/NetworkTextual/NetworkTextual.tsx @@ -1,7 +1,7 @@ -import { OLDTable as Table } from '@pzh-ui/components' +import { Table } from '@pzh-ui/components' import { AngleRight } from '@pzh-ui/icons' import { useUpdateEffect } from '@react-hookz/web' -import { useCallback, useMemo } from 'react' +import { useCallback, useMemo, useState } from 'react' import { GraphVertice } from '@/api/fetchers.schemas' import NetworkModal from '@/components/Modals/NetworkModal' @@ -27,7 +27,7 @@ const NetworkTextual = ({ graph }: NetworkTextualProps) => { * Function to sort column by Object_Type */ const customSortType = (rowA: any, rowB: any, columnId: string) => { - let [a, b] = [rowA.values[columnId], rowB.values[columnId]] + let [a, b] = [rowA.getValue(columnId), rowB.getValue(columnId)] a = a ? a.props['data-value'] : null b = b ? b.props['data-value'] : null @@ -88,16 +88,26 @@ const NetworkTextual = ({ graph }: NetworkTextualProps) => { } }, [activeNode]) + const [sortBy, setSortBy] = useState([ + { + id: 'Title', + desc: false, + }, + ]) + + /** + * Setup Table columns + */ const columns = useMemo( () => [ { - Header: 'Titel', - accessor: 'Title', + header: 'Titel', + accessorKey: 'Title', }, { - Header: 'Type', - accessor: 'Object_Type', - sortType: customSortType, + header: 'Type', + accessorKey: 'Object_Type', + sortingFn: customSortType, }, ], [] @@ -128,13 +138,12 @@ const NetworkTextual = ({ graph }: NetworkTextualProps) => { diff --git a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx index ee30b7ab..ae79dae8 100644 --- a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx +++ b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx @@ -234,13 +234,17 @@ const UploadAction = ({ } const date = useMemo(() => { - if (!!reports?.results.length) { + if ( + publicationPackage?.Modified_Date && + !!publicationPackage.Report_Status && + publicationPackage.Report_Status !== 'pending' + ) { return formatDate( - new Date(reports.results?.slice(-1)[0].Created_Date), + new Date(publicationPackage.Modified_Date), 'dd-MM-yyyy' ) } - }, [reports?.results]) + }, [publicationPackage]) const allFiles = useMemo( () => @@ -278,6 +282,8 @@ const UploadAction = ({ 'border-pzh-red-900 bg-pzh-red-10 text-pzh-red-900': 'Report_Status' in file && file.Report_Status === 'failed', + 'border-pzh-gray-200 bg-pzh-gray-200 text-pzh-gray-600': + 'Filename' in file && !!files?.length, })} /> ))} @@ -325,7 +331,7 @@ const UploadAction = ({ {date && ( - Geupload op {date} + Gevalideerd op {date} )} diff --git a/yarn.lock b/yarn.lock index 99bf9497..ae85ad14 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2655,13 +2655,13 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.515": - version: 0.0.515 - resolution: "@pzh-ui/components@npm:0.0.515" +"@pzh-ui/components@npm:^0.0.522": + version: 0.0.522 + resolution: "@pzh-ui/components@npm:0.0.522" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" - "@pzh-ui/icons": "npm:^0.0.52" + "@pzh-ui/icons": "npm:^0.0.59" "@radix-ui/react-slot": "npm:^1.0.2" "@react-aria/utils": "npm:^3.23.2" "@react-hookz/web": "npm:^24.0.4" @@ -2695,27 +2695,25 @@ __metadata: "@types/react-table": "npm:^7.7.15" clsx: "npm:^2.1.0" date-fns: "npm:^3.3.1" - focus-trap-react: "npm:^10.1.1" formik: "npm:^2.4.5" react: "npm:^18.2.0" react-aria: "npm:^3.32.1" react-aria-components: "npm:^1.1.1" - react-datepicker: "npm:^6.1.0" + react-datepicker: "npm:^6.9.0" react-dom: "npm:^18.2.0" react-dropzone-esm: "npm:^15.0.1" react-responsive-pagination: "npm:^2.4.2" react-select: "npm:^5.8.0" react-stately: "npm:^3.30.1" - react-table: "npm:^7.8.0" react-toastify: "npm:^9.1.2" tailwind-merge: "npm:^2.2.2" - checksum: ef5b5193999268625a397ac40df8b1f8d53760a1ff649bcbc440f5e1b257b496a0ebc0c8644a2f612a77bc4c59246cb918605f73fa19f2cbf13d09ea555063c2 + checksum: 334e4b5583d567c2774c755948ee72c7f93e4917102073fbe529b658872d44ef4613ad95628cf9219ea2597699e5859e58f6824de6ed46e6a1c70206a1693f43 languageName: node linkType: hard -"@pzh-ui/config@npm:^0.0.63": - version: 0.0.63 - resolution: "@pzh-ui/config@npm:0.0.63" +"@pzh-ui/config@npm:^0.0.69": + version: 0.0.69 + resolution: "@pzh-ui/config@npm:0.0.69" dependencies: "@babel/eslint-parser": "npm:^7.17.0" "@babel/preset-env": "npm:^7.16.11" @@ -2737,13 +2735,13 @@ __metadata: prettier-plugin-organize-imports: "npm:^3.2.3" prettier-plugin-tailwindcss: "npm:^0.4.1" react-toastify: "npm:^9.1.2" - checksum: f09e71156710317d9c9acede32493c311a6c82857755621855e0bfd9c6857465e214d32592c8d52678516cc01a5a8fba013755135ff7706be911a42768e86ecf + checksum: 8064dfb0869d006363fbf5448fc20e7d55a40eb4bf0cf5d79d49c190346d3d1d95e7b3664d4f1a48438794ad23d22d9411e2c120a694d76e6c4fe4807d919404 languageName: node linkType: hard -"@pzh-ui/css@npm:^0.0.89": - version: 0.0.89 - resolution: "@pzh-ui/css@npm:0.0.89" +"@pzh-ui/css@npm:^0.0.95": + version: 0.0.95 + resolution: "@pzh-ui/css@npm:0.0.95" dependencies: "@rollup/plugin-typescript": "npm:^8.3.1" "@tailwindcss/custom-forms": "npm:^0.2.1" @@ -2752,17 +2750,17 @@ __metadata: "@tailwindcss/typography": "npm:^0.5.9" react-datepicker: "npm:^4.7.0" react-toastify: "npm:^9.1.2" - checksum: a83e0904d61c94bae339885ca9c56572c626810f29777902bba0025af1040fbaf76c17c2a8c6e861bb9f8482ce4075c799bd34b050e31b526b398b12f6896874 + checksum: 5f94eab3ec26a106d2ad3324dfe5043cb7ed91b361ff25c081a13c8e76a58dc2ed8ecf62a981cb763541c6f7b1a9f0a45b25c037008c7d0db1cc3f9a3ce01781 languageName: node linkType: hard -"@pzh-ui/icons@npm:^0.0.52": - version: 0.0.52 - resolution: "@pzh-ui/icons@npm:0.0.52" +"@pzh-ui/icons@npm:^0.0.59": + version: 0.0.59 + resolution: "@pzh-ui/icons@npm:0.0.59" dependencies: - react: "npm:^18.0.0" + react: "npm:^18.2.0" react-toastify: "npm:^9.1.2" - checksum: 8afc476208a17ef7802e3988bc4e5eab89dd4d8beba3cad29cc7ee288efebfdb6d064b30ef94cef429be131e6b6f4ede48256ff1b25f1b72468f86f94c9a8f6c + checksum: 24a508c8e994912d14e2bca1e8850be22ec2e16ba43698d4ebb1393fb06ad87608665ad703fb12759080323e3817fbc5871079aed36bbf83aea026f7d139639f languageName: node linkType: hard @@ -5867,7 +5865,7 @@ __metadata: languageName: node linkType: hard -"@types/react@npm:*, @types/react@npm:^18.2.15": +"@types/react@npm:*": version: 18.2.55 resolution: "@types/react@npm:18.2.55" dependencies: @@ -5878,6 +5876,16 @@ __metadata: languageName: node linkType: hard +"@types/react@npm:^18.2.79": + version: 18.2.79 + resolution: "@types/react@npm:18.2.79" + dependencies: + "@types/prop-types": "npm:*" + csstype: "npm:^3.0.2" + checksum: 2ef833e7d0a5c226beddbbe090811582371f6ae5e2f092a3d9f47cc6087c8bce0b96ee33e351de6d1d470f0a0ec5892d971933f841ef31538c1821681fc6569e + languageName: node + linkType: hard + "@types/scheduler@npm:*": version: 0.16.8 resolution: "@types/scheduler@npm:0.16.8" @@ -8741,29 +8749,6 @@ __metadata: languageName: node linkType: hard -"focus-trap-react@npm:^10.1.1": - version: 10.2.3 - resolution: "focus-trap-react@npm:10.2.3" - dependencies: - focus-trap: "npm:^7.5.4" - tabbable: "npm:^6.2.0" - peerDependencies: - prop-types: ^15.8.1 - react: ">=16.3.0" - react-dom: ">=16.3.0" - checksum: 64c39cbc44c37319ac5c96c9b105798ac7d36e477878adca3cf9c9099edd72db960ce97a7b281ef612d5c1bca7d425331c25dec030e3e34120003a948c8553a8 - languageName: node - linkType: hard - -"focus-trap@npm:^7.5.4": - version: 7.5.4 - resolution: "focus-trap@npm:7.5.4" - dependencies: - tabbable: "npm:^6.2.0" - checksum: e9059aae46b8f18721e868bd73e1fec3d8cbb4f6e4e89feb9a708af505a2dd5c93f87468895f1d908cd4dec1b2f35824dfcd1623cf3adbfb5c6c8c589ed59dcf - languageName: node - linkType: hard - "follow-redirects@npm:^1.15.4": version: 1.15.5 resolution: "follow-redirects@npm:1.15.5" @@ -11843,10 +11828,10 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.515" - "@pzh-ui/config": "npm:^0.0.63" - "@pzh-ui/css": "npm:^0.0.89" - "@pzh-ui/icons": "npm:^0.0.52" + "@pzh-ui/components": "npm:^0.0.522" + "@pzh-ui/config": "npm:^0.0.69" + "@pzh-ui/css": "npm:^0.0.95" + "@pzh-ui/icons": "npm:^0.0.59" "@react-hookz/web": "npm:^24.0.4" "@tanstack/react-query": "npm:^5.24.7" "@testing-library/dom": "npm:^9.3.3" @@ -11862,7 +11847,7 @@ __metadata: "@types/lodash.debounce": "npm:^4.0.7" "@types/lodash.groupby": "npm:^4.6.7" "@types/proj4leaflet": "npm:^1.0.10" - "@types/react": "npm:^18.2.15" + "@types/react": "npm:^18.2.79" "@types/react-dom": "npm:^18.2.7" "@types/react-leaflet": "npm:^3.0.0" "@types/react-router-dom": "npm:^5.3.3" @@ -12033,19 +12018,19 @@ __metadata: languageName: node linkType: hard -"react-datepicker@npm:^6.1.0": - version: 6.1.0 - resolution: "react-datepicker@npm:6.1.0" +"react-datepicker@npm:^6.9.0": + version: 6.9.0 + resolution: "react-datepicker@npm:6.9.0" dependencies: "@floating-ui/react": "npm:^0.26.2" - classnames: "npm:^2.2.6" + clsx: "npm:^2.1.0" date-fns: "npm:^3.3.1" prop-types: "npm:^15.7.2" react-onclickoutside: "npm:^6.13.0" peerDependencies: react: ^16.9.0 || ^17 || ^18 react-dom: ^16.9.0 || ^17 || ^18 - checksum: 4e3147808e962c9643f6ef777904cd67cfe4ad3ae937f78746672ff961ffeaa8dc849307e03d6925111db03f66f40fe3622ed147f0b0991c678cc7be58807b7f + checksum: 7effd81e0e00e77d691c552bed77e2b08f7abc377528ae67727de9cc08eb05f7ec021f3daa40748dd7d32b12dd6cf2833eac0cbc2d9f3026fa8c606100752d32 languageName: node linkType: hard @@ -12265,15 +12250,6 @@ __metadata: languageName: node linkType: hard -"react-table@npm:^7.8.0": - version: 7.8.0 - resolution: "react-table@npm:7.8.0" - peerDependencies: - react: ^16.8.3 || ^17.0.0-0 || ^18.0.0 - checksum: 0c87db8f8823f8eca7a5521d406fa0c75d79972d47768f0c8347af3fa51f9856eea449186a0e2db2effc54d1d74a4e3477855cdbe9adf836d7dfac3a6ec5cdbf - languageName: node - linkType: hard - "react-toastify@npm:^9.1.2": version: 9.1.3 resolution: "react-toastify@npm:9.1.3" @@ -12301,7 +12277,7 @@ __metadata: languageName: node linkType: hard -"react@npm:^18.0.0, react@npm:^18.2.0": +"react@npm:^18.2.0": version: 18.2.0 resolution: "react@npm:18.2.0" dependencies: @@ -13310,7 +13286,7 @@ __metadata: languageName: node linkType: hard -"tabbable@npm:^6.0.1, tabbable@npm:^6.2.0": +"tabbable@npm:^6.0.1": version: 6.2.0 resolution: "tabbable@npm:6.2.0" checksum: 980fa73476026e99dcacfc0d6e000d41d42c8e670faf4682496d30c625495e412c4369694f2a15cf1e5252d22de3c396f2b62edbe8d60b5dadc40d09e3f2dde3 From 6a60474f30fe7956b0f1675914f1236677bb08ae Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 30 Apr 2024 14:47:40 +0200 Subject: [PATCH 56/82] Add Publication announcements --- src/api/fetchers.schemas.ts | 2 +- src/components/Breadcrumbs/Breadcrumbs.tsx | 3 +- src/components/Draggable/Draggable.tsx | 8 +- src/components/LoginForm/LoginForm.tsx | 4 +- .../PublicationPackagesModal.tsx | 77 ++-- .../steps/StepOne.tsx | 65 ++++ .../steps/StepTwo.tsx | 201 ++++++++++ .../PublicationPackagesModal/steps/index.ts | 2 + .../PublicationPackagesModal/steps/types.ts | 3 + .../PublicationVersionAbortModal.tsx | 5 +- src/components/Modals/types.ts | 8 + .../PublicationAnnouncement.tsx | 122 ++++++ .../components/PackageStep.tsx | 107 ++++++ .../components/PackageStepActions.tsx | 347 ++++++++++++++++++ .../components/index.ts | 4 + .../PublicationAnnouncement/index.ts | 1 + .../PublicationPackages.tsx | 333 +++++++++++------ .../components/PackageStepActions.tsx | 1 + .../Modules/ModuleDetail/ModuleDetail.tsx | 9 - src/pages/public/Login/index.ts | 4 +- 20 files changed, 1117 insertions(+), 189 deletions(-) create mode 100644 src/components/Modals/PublicationModals/PublicationPackagesModal/steps/StepOne.tsx create mode 100644 src/components/Modals/PublicationModals/PublicationPackagesModal/steps/StepTwo.tsx create mode 100644 src/components/Modals/PublicationModals/PublicationPackagesModal/steps/index.ts create mode 100644 src/components/Modals/PublicationModals/PublicationPackagesModal/steps/types.ts create mode 100644 src/components/Publications/PublicationAnnouncement/PublicationAnnouncement.tsx create mode 100644 src/components/Publications/PublicationAnnouncement/components/PackageStep.tsx create mode 100644 src/components/Publications/PublicationAnnouncement/components/PackageStepActions.tsx create mode 100644 src/components/Publications/PublicationAnnouncement/components/index.ts create mode 100644 src/components/Publications/PublicationAnnouncement/index.ts diff --git a/src/api/fetchers.schemas.ts b/src/api/fetchers.schemas.ts index 97129fde..ee31b0c1 100644 --- a/src/api/fetchers.schemas.ts +++ b/src/api/fetchers.schemas.ts @@ -1226,9 +1226,9 @@ export interface PublicationAnnouncementPackageCreate { export interface PublicationAnnouncementEdit { Announcement_Date?: string + Content?: AnnouncementContent Metadata?: AnnouncementMetadata Procedural?: AnnouncementProcedural - Texts?: AnnouncementContent } export type PublicationAnnouncementProcedural = { [key: string]: any } diff --git a/src/components/Breadcrumbs/Breadcrumbs.tsx b/src/components/Breadcrumbs/Breadcrumbs.tsx index d392a006..d15e1734 100644 --- a/src/components/Breadcrumbs/Breadcrumbs.tsx +++ b/src/components/Breadcrumbs/Breadcrumbs.tsx @@ -20,7 +20,8 @@ const Breadcrumbs = ({ items, className }: BreadcrumbsProps) => ( {items.map((item, index) => ( + isCurrent={index === items.length - 1} + asChild> {item.to ? ( {item.name} ) : ( diff --git a/src/components/Draggable/Draggable.tsx b/src/components/Draggable/Draggable.tsx index 657878e9..6a6d01c8 100644 --- a/src/components/Draggable/Draggable.tsx +++ b/src/components/Draggable/Draggable.tsx @@ -1,10 +1,12 @@ +import classNames from 'clsx' +import { ArrayHelpers } from 'formik' +import { ElementType, cloneElement } from 'react' + import { DragResult } from '@/hooks/useDrag' import useRegulationStore from '@/store/regulationStore' import equalArrays from '@/utils/equalArrays' import handleViewTransition from '@/utils/handleViewTransition' -import classNames from 'clsx' -import { ArrayHelpers } from 'formik' -import { ElementType, cloneElement } from 'react' + import DropArea from '../DropArea' interface DraggableProps extends DragResult { diff --git a/src/components/LoginForm/LoginForm.tsx b/src/components/LoginForm/LoginForm.tsx index a81200d9..f8170b31 100644 --- a/src/components/LoginForm/LoginForm.tsx +++ b/src/components/LoginForm/LoginForm.tsx @@ -54,14 +54,13 @@ const LoginForm = () => { initialValues={{ email: '', password: '' }} onSubmit={handleFormSubmit} validationSchema={toFormikValidationSchema(loginForm.SCHEMA)}> - {({ values, handleSubmit, isValid, dirty }) => ( + {({ handleSubmit, isValid, dirty }) => (
    { name="password" type="password" placeholder="Vul hier je wachtwoord in" - value={values.password} />
    diff --git a/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx b/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx index 7e90ccba..c4f43874 100644 --- a/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationPackagesModal/PublicationPackagesModal.tsx @@ -1,63 +1,42 @@ -import { Button, Divider, Text } from '@pzh-ui/components' -import { useParams } from 'react-router-dom' +import { useState } from 'react' -import { - useModulesModuleIdStatusGet, - usePublicationEnvironmentsGet, -} from '@/api/fetchers' import Modal from '@/components/Modal' -import PublicationPackages from '@/components/Publications/PublicationPackages' import useModalStore from '@/store/modalStore' -import { ModalStateMap } from '../../types' +import { StepOne, StepTwo } from './steps' -const PublicationPackagesModal = () => { - const { moduleId } = useParams() +const steps = [StepOne, StepTwo] - const modalState = useModalStore( - state => state.modalStates['publicationPackages'] - ) as ModalStateMap['publicationPackages'] +interface PublicationPackagesModalProps { + initialStep?: number +} + +const PublicationPackagesModal = ({ + initialStep = 1, +}: PublicationPackagesModalProps) => { const setActiveModal = useModalStore(state => state.setActiveModal) - const { data: status } = useModulesModuleIdStatusGet(parseInt(moduleId!), { - query: { - enabled: !!moduleId, - select: data => - data.find( - item => item.ID === modalState?.version.Module_Status.ID - ), - }, - }) + const [step, setStep] = useState(initialStep) + + const CurrentStep = steps[step - 1] + + const handleClose = () => { + setActiveModal(null) - const { data: environment } = usePublicationEnvironmentsGet(undefined, { - query: { - select: data => - data.results.find( - environment => - environment.UUID === - modalState.publication.Environment_UUID - ), - }, - }) + // Wait for modal animation to finish before resetting step + setTimeout(() => { + setStep(initialStep) + }, 300) + } return ( - -
    - - {status?.Status} -{' '} - {modalState?.version.Bill_Metadata.Official_Title} ( - {environment?.Can_Publicate ? 'Officiële' : 'Interne'}{' '} - publicatie) - - -
    - -
    - -
    + + ) } diff --git a/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/StepOne.tsx b/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/StepOne.tsx new file mode 100644 index 00000000..b25dfef2 --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/StepOne.tsx @@ -0,0 +1,65 @@ +import { Button, Divider, Heading, Text } from '@pzh-ui/components' +import { useParams } from 'react-router-dom' + +import { + useModulesModuleIdStatusGet, + usePublicationEnvironmentsGet, +} from '@/api/fetchers' +import { ModalStateMap } from '@/components/Modals/types' +import PublicationPackages from '@/components/Publications/PublicationPackages' +import useModalStore from '@/store/modalStore' + +import { StepProps } from './types' + +export const StepOne = ({ setStep }: StepProps) => { + const { moduleId } = useParams() + + const modalState = useModalStore( + state => state.modalStates['publicationPackages'] + ) as ModalStateMap['publicationPackages'] + const setActiveModal = useModalStore(state => state.setActiveModal) + + const { data: status } = useModulesModuleIdStatusGet(parseInt(moduleId!), { + query: { + enabled: !!moduleId, + select: data => + data.find( + item => item.ID === modalState?.version.Module_Status.ID + ), + }, + }) + + const { data: environment } = usePublicationEnvironmentsGet(undefined, { + query: { + select: data => + data.results.find( + environment => + environment.UUID === + modalState.publication.Environment_UUID + ), + }, + }) + + return ( +
    + Levering + + + {status?.Status} -{' '} + {modalState?.version.Bill_Metadata.Official_Title} ( + {environment?.Can_Publicate ? 'Officiële' : 'Interne'}{' '} + publicatie) + + setStep(2)} + {...modalState?.version} + /> + +
    + +
    +
    + ) +} diff --git a/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/StepTwo.tsx b/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/StepTwo.tsx new file mode 100644 index 00000000..9a5018e5 --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/StepTwo.tsx @@ -0,0 +1,201 @@ +import { + Button, + Divider, + FormikDate, + FormikInput, + FormikRte, + Heading, +} from '@pzh-ui/components' +import { useQueryClient } from '@tanstack/react-query' +import { Form, Formik } from 'formik' +import { isNull, isUndefined, mergeWith } from 'lodash' + +import { + usePublicationAnnouncementsAnnouncementUuidGet, + usePublicationAnnouncementsAnnouncementUuidPost, +} from '@/api/fetchers' +import { PublicationAnnouncementEdit } from '@/api/fetchers.schemas' +import { LoaderSpinner } from '@/components/Loader' +import { ModalStateMap } from '@/components/Modals/types' +import useModalStore from '@/store/modalStore' + +import { StepProps } from './types' + +export const StepTwo = ({ setStep }: StepProps) => { + const queryClient = useQueryClient() + + const modalState = useModalStore( + state => state.modalStates['publicationPackages'] + ) as ModalStateMap['publicationPackages'] + + const { data, isFetching, queryKey } = + usePublicationAnnouncementsAnnouncementUuidGet( + modalState?.announcementUuid, + { + query: { + enabled: !!modalState?.announcementUuid, + }, + } + ) + + const { mutate, isError } = usePublicationAnnouncementsAnnouncementUuidPost( + { + mutation: { + onSuccess: () => { + queryClient + .invalidateQueries({ queryKey }) + .finally(() => setStep(1)) + }, + }, + } + ) + + const handleSubmit = (payload: PublicationAnnouncementEdit) => { + mutate({ + announcementUuid: modalState?.announcementUuid, + data: payload, + }) + } + + const initialValues = { + Content: { + Texts: [ + { + Title: null, + }, + { + Title: 'Planning', + }, + { + Title: 'Reageren', + }, + { + Title: 'Inzien', + }, + { + Title: 'Sluiting', + }, + ], + }, + } as PublicationAnnouncementEdit + + const mergedValues = mergeWith( + initialValues, + data, + (objValue, srcValue) => { + if (isUndefined(objValue) || isNull(objValue)) { + return srcValue + } + } + ) + + return ( + <> + + Kennisgeving + + + {isFetching ? ( +
    + +
    + ) : ( + + {({ isSubmitting }) => ( + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    + +
    + + +
    + + )} +
    + )} + + ) +} diff --git a/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/index.ts b/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/index.ts new file mode 100644 index 00000000..33a926f0 --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/index.ts @@ -0,0 +1,2 @@ +export * from './StepOne' +export * from './StepTwo' diff --git a/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/types.ts b/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/types.ts new file mode 100644 index 00000000..5d0e798d --- /dev/null +++ b/src/components/Modals/PublicationModals/PublicationPackagesModal/steps/types.ts @@ -0,0 +1,3 @@ +export interface StepProps { + setStep: (step: number) => void +} diff --git a/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx index 0c6e21a2..fb6273e3 100644 --- a/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx +++ b/src/components/Modals/PublicationModals/PublicationVersionAbortModal/PublicationVersionAbortModal.tsx @@ -6,7 +6,6 @@ import { usePublicationEnvironmentsGet, } from '@/api/fetchers' import Modal from '@/components/Modal/Modal' -import PublicationPackages from '@/components/Publications/PublicationPackages' import useModalStore from '@/store/modalStore' import { ModalStateMap } from '../../types' @@ -52,10 +51,10 @@ const PublicationVersionAbortModal = () => { {environment?.Can_Publicate ? 'Officiële' : 'Interne'}{' '} publicatie) - + /> */}
    diff --git a/src/components/Modals/types.ts b/src/components/Modals/types.ts index b9e3bee0..38d74a17 100644 --- a/src/components/Modals/types.ts +++ b/src/components/Modals/types.ts @@ -2,6 +2,7 @@ import { DocumentType, ProcedureType, Publication, + PublicationEnvironment, PublicationVersionShort, } from '@/api/fetchers.schemas' @@ -36,6 +37,7 @@ export type ModalType = | 'publicationVersionEdit' | 'publicationPackages' | 'publicationVersionAbort' + | 'publicationAnnouncementPackages' export interface ModalStateMap { publicationAdd: { @@ -49,6 +51,12 @@ export interface ModalStateMap { publicationPackages: { publication: Publication version: PublicationVersionShort + announcementUuid: string + } + publicationAnnouncementPackages: { + environment?: PublicationEnvironment + version: PublicationVersionShort + announcementUuid: string } publicationVersionAbort: { publication: Publication diff --git a/src/components/Publications/PublicationAnnouncement/PublicationAnnouncement.tsx b/src/components/Publications/PublicationAnnouncement/PublicationAnnouncement.tsx new file mode 100644 index 00000000..b7b004a0 --- /dev/null +++ b/src/components/Publications/PublicationAnnouncement/PublicationAnnouncement.tsx @@ -0,0 +1,122 @@ +import { Text } from '@pzh-ui/components' +import { useMemo } from 'react' + +import { usePublicationAnnouncementPackagesGet } from '@/api/fetchers' +import { + PackageType, + PublicationAnnouncementShort, +} from '@/api/fetchers.schemas' +import { LoaderSpinner } from '@/components/Loader' + +import { PackageStep } from './components' + +export interface PublicationAnnouncementPackageProps { + type: 'update' | 'create' | 'download' | 'upload' + eventType: PackageType +} + +interface PublicationAnnouncementProps extends PublicationAnnouncementShort { + handleUpdateAction: () => void +} + +const PublicationAnnouncement = ({ + handleUpdateAction, + ...announcement +}: PublicationAnnouncementProps) => { + const { data: packages, isPending } = usePublicationAnnouncementPackagesGet( + { + announcement_uuid: announcement.UUID, + } + ) + + const { validationPackage, publicationPackage } = useMemo(() => { + const validationPackage = packages?.results.find( + pkg => pkg.Package_Type === PackageType['validation'] + ) + const publicationPackage = packages?.results.find( + pkg => pkg.Package_Type === PackageType['publication'] + ) + + return { validationPackage, publicationPackage } + }, [packages?.results]) + + if (isPending) { + return ( +
    + +
    + ) + } + + return ( + <> +
    + + Kennisgeving + + + + + + +
    + + {/* {isOfficial && publicationPackage?.Report_Status === 'valid' && ( +
    + +
    + )} + + {isOfficial && publicationPackage?.Report_Status === 'failed' && ( +
    + + +
    + )} */} + + ) +} + +export default PublicationAnnouncement diff --git a/src/components/Publications/PublicationAnnouncement/components/PackageStep.tsx b/src/components/Publications/PublicationAnnouncement/components/PackageStep.tsx new file mode 100644 index 00000000..64fc8ec1 --- /dev/null +++ b/src/components/Publications/PublicationAnnouncement/components/PackageStep.tsx @@ -0,0 +1,107 @@ +import { Text } from '@pzh-ui/components' +import { Check } from '@pzh-ui/icons' +import classNames from 'clsx' + +import { usePublicationAnnouncementPackagesGet } from '@/api/fetchers' +import { PublicationAnnouncementShort } from '@/api/fetchers.schemas' + +import { PublicationAnnouncementPackageProps } from '../PublicationAnnouncement' +import PackageStepActions from './PackageStepActions' + +interface PackageStepProps extends PublicationAnnouncementPackageProps { + handleAction?: () => void + announcement: PublicationAnnouncementShort + isActive?: boolean + isSucceeded?: boolean + isFirst?: boolean + isLast?: boolean + isLoading?: boolean +} + +const STEP_LABEL = { + update: 'Vul gegevens in', + create: 'Maak kennisgeving', + download: 'Download kennisgeving', + upload: 'Upload rapport(en) (kennisgeving)', +} + +const PackageStep = ({ + handleAction, + announcement, + type, + eventType, + isActive, + isSucceeded, + isFirst, + isLast, + isLoading, +}: PackageStepProps) => { + const { data: pkg } = usePublicationAnnouncementPackagesGet( + { announcement_uuid: announcement.UUID }, + { + query: { + select: data => + data.results.find(pkg => pkg.Package_Type === eventType), + }, + } + ) + + const indicatorClass = classNames( + 'after:content-[` `] -mt-1 flex h-[19px] w-[19px] items-center justify-center rounded-full border', + { + 'after:block after:h-[13px] after:w-[13px] after:rounded-full after:bg-pzh-green-500': + isActive && !isSucceeded, + 'border-pzh-gray-600': !isSucceeded, + 'border-pzh-green-500 bg-pzh-green-500': isSucceeded, + } + ) + + const borderClass = classNames('absolute h-full', { + 'before:content-[` `] before:left-[9px] before:absolute before:top-0 before:block before:h-[calc(50%-13px)] before:w-px before:bg-pzh-gray-300': + !isFirst, + 'after:content-[` `] after:left-[9px] after:absolute after:bottom-0 after:block after:h-[calc(50%-9px)] after:w-px after:bg-pzh-gray-300': + !isLast, + }) + + return ( +
    +
    +
    + {isSucceeded && } +
    +
    +
    + + {STEP_LABEL[type]} + + {type === 'upload' && !isSucceeded && ( + + Selecteer alle(!) rapporten die zijn teruggekomen + van het DSO + + )} +
    + +
    +
    + ) +} + +export default PackageStep diff --git a/src/components/Publications/PublicationAnnouncement/components/PackageStepActions.tsx b/src/components/Publications/PublicationAnnouncement/components/PackageStepActions.tsx new file mode 100644 index 00000000..8eff3f0f --- /dev/null +++ b/src/components/Publications/PublicationAnnouncement/components/PackageStepActions.tsx @@ -0,0 +1,347 @@ +import { Button, FileTrigger, Tag, Text, formatDate } from '@pzh-ui/components' +import { Plus } from '@pzh-ui/icons' +import { useQuery, useQueryClient } from '@tanstack/react-query' +import clsx from 'clsx' +import { useMemo, useState } from 'react' + +import { + getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetQueryKey, + getPublicationAnnouncementPackagesGetQueryKey, + usePublicationAnnouncementPackagesAnnouncementPackageUuidReportPost, + usePublicationAnnouncementReportsGet, + usePublicationAnnouncementsAnnouncementUuidPackagesPost, +} from '@/api/fetchers' +import { + PublicationAnnouncementShort, + PublicationPackage, +} from '@/api/fetchers.schemas' +import { downloadFile } from '@/utils/file' + +import { PublicationAnnouncementPackageProps } from '../PublicationAnnouncement' + +interface PackageStepActionsProps extends PublicationAnnouncementPackageProps { + handleAction?: () => void + announcement: PublicationAnnouncementShort + publicationPackage?: PublicationPackage + isActive?: boolean + isSucceeded?: boolean + isLoading?: boolean + buttonLabel?: string + hideDescription?: boolean +} + +const PackageStepActions = ({ type, ...props }: PackageStepActionsProps) => { + switch (type) { + case 'create': + return + case 'download': + return + case 'upload': + return + case 'update': + return + } +} + +const CreateAction = ({ + announcement, + publicationPackage, + eventType, + isActive, + isSucceeded, + buttonLabel = 'Maak levering', + hideDescription = false, +}: PackageStepActionsProps) => { + const queryClient = useQueryClient() + + const { mutate: create, isPending } = + usePublicationAnnouncementsAnnouncementUuidPackagesPost({ + mutation: { + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: getPublicationAnnouncementPackagesGetQueryKey( + { + announcement_uuid: announcement.UUID, + } + ), + }) + }, + }, + }) + + const handleAction = () => + create({ + announcementUuid: announcement.UUID, + data: { Package_Type: eventType }, + }) + + const date = useMemo(() => { + if (!!publicationPackage && isSucceeded) { + return formatDate( + new Date(publicationPackage.Created_Date), + 'dd-MM-yyyy' + ) + } + }, [isSucceeded, publicationPackage]) + + /** + * Only show text if step isSucceeded + */ + if (!!publicationPackage && isSucceeded) { + return Levering gemaakt op {date} + } + + return ( +
    + {isPending && !hideDescription && ( + + Levering wordt gemaakt, dit kan even duren.. + + )} + +
    + ) +} + +const DownloadAction = ({ + announcement, + publicationPackage, + eventType, + isActive, +}: PackageStepActionsProps) => { + const queryClient = useQueryClient() + + const { isFetching, refetch: download } = useQuery({ + queryKey: [ + 'downloadPackage', + publicationPackage?.UUID, + announcement.UUID, + eventType, + ], + queryFn: async () => + downloadFile( + getPublicationAnnouncementPackagesAnnouncementPackageUuidDownloadGetQueryKey( + publicationPackage?.UUID || '' + )[0] + ), + enabled: false, + }) + + const handleAction = () => + download().finally(() => + queryClient.invalidateQueries({ + queryKey: getPublicationAnnouncementPackagesGetQueryKey({ + announcement_uuid: announcement.UUID, + }), + }) + ) + + const date = useMemo(() => { + if (!!publicationPackage?.Zip.Latest_Download_Date) { + return formatDate( + new Date(publicationPackage.Zip.Latest_Download_Date), + 'dd-MM-yyyy' + ) + } + }, [publicationPackage]) + + return ( +
    + {!!publicationPackage?.Zip.Latest_Download_Date && ( + + Laatst gedownload op {date} + + )} + +
    + ) +} + +const UploadAction = ({ + announcement, + publicationPackage, + isActive, + isLoading, +}: PackageStepActionsProps) => { + const queryClient = useQueryClient() + + const [files, setFiles] = useState(null) + + const { data: reports, queryKey } = usePublicationAnnouncementReportsGet( + { + announcement_package_uuid: publicationPackage?.UUID, + limit: 100, + }, + { + query: { + enabled: !!publicationPackage?.UUID, + }, + } + ) + + const { mutate, isPending } = + usePublicationAnnouncementPackagesAnnouncementPackageUuidReportPost({ + mutation: { + onSuccess: () => { + setFiles(null) + + queryClient.invalidateQueries({ + queryKey: getPublicationAnnouncementPackagesGetQueryKey( + { + announcement_uuid: announcement.UUID, + } + ), + }) + queryClient.invalidateQueries({ + queryKey, + }) + }, + }, + }) + + const handleAction = () => { + if (!publicationPackage?.UUID || !!!files?.length) return + + mutate({ + announcementPackageUuid: publicationPackage.UUID, + data: { uploaded_files: files }, + }) + } + + const date = useMemo(() => { + if ( + publicationPackage?.Modified_Date && + !!publicationPackage.Report_Status && + publicationPackage.Report_Status !== 'pending' + ) { + return formatDate( + new Date(publicationPackage.Modified_Date), + 'dd-MM-yyyy' + ) + } + }, [publicationPackage]) + + const allFiles = useMemo( + () => + ((!!files?.length || !!reports?.results.length) && [ + ...(reports?.results || []), + ...(files || []), + ]) || + undefined, + [files, reports?.results] + ) + + return ( +
    +
    + {!!allFiles?.length && ( +
    + {allFiles.map(file => ( + + setFiles( + files.filter( + e => e.name !== file.name + ) + ) + : undefined + } + className={clsx({ + 'border-pzh-red-900 bg-pzh-red-10 text-pzh-red-900': + 'Report_Status' in file && + file.Report_Status === 'failed', + 'border-pzh-gray-200 bg-pzh-gray-200 text-pzh-gray-600': + 'Filename' in file && !!files?.length, + })} + /> + ))} +
    + )} + { + if (!e) return + + const newFiles = Array.from(e) + + setFiles( + !!files?.length ? [...files, ...newFiles] : newFiles + ) + }}> + + + {!!files?.length && ( + + )} +
    + {date && ( + + Gevalideerd op {date} + + )} +
    + ) +} + +const UpdateAction = ({ + handleAction, + isActive, + isSucceeded, + buttonLabel = 'Ga naar het formulier', +}: PackageStepActionsProps) => ( + +) + +export default PackageStepActions diff --git a/src/components/Publications/PublicationAnnouncement/components/index.ts b/src/components/Publications/PublicationAnnouncement/components/index.ts new file mode 100644 index 00000000..36d4b3c0 --- /dev/null +++ b/src/components/Publications/PublicationAnnouncement/components/index.ts @@ -0,0 +1,4 @@ +import PackageStep from './PackageStep' +import PackageStepActions from './PackageStepActions' + +export { PackageStep, PackageStepActions } diff --git a/src/components/Publications/PublicationAnnouncement/index.ts b/src/components/Publications/PublicationAnnouncement/index.ts new file mode 100644 index 00000000..35d3ac42 --- /dev/null +++ b/src/components/Publications/PublicationAnnouncement/index.ts @@ -0,0 +1 @@ +export { default } from './PublicationAnnouncement' diff --git a/src/components/Publications/PublicationPackages/PublicationPackages.tsx b/src/components/Publications/PublicationPackages/PublicationPackages.tsx index 97de6980..34516f61 100644 --- a/src/components/Publications/PublicationPackages/PublicationPackages.tsx +++ b/src/components/Publications/PublicationPackages/PublicationPackages.tsx @@ -1,17 +1,29 @@ -import { Notification, Text, formatDate } from '@pzh-ui/components' +import { Button, Notification, Text, formatDate } from '@pzh-ui/components' import { useMemo } from 'react' import { + usePublicationActPackagesActPackageUuidCreateAnnouncementPost, usePublicationActPackagesGet, + usePublicationAnnouncementsGet, usePublicationVersionsVersionUuidGet, } from '@/api/fetchers' import { PackageType, + ProcedureType, PublicationEnvironment, PublicationVersionShort, } from '@/api/fetchers.schemas' +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from '@/components/Accordion' import { LoaderSpinner } from '@/components/Loader' +import { ModalStateMap } from '@/components/Modals/types' +import useModalStore from '@/store/modalStore' +import PublicationAnnouncement from '../PublicationAnnouncement' import { PackageStep, PackageStepActions } from './components' export interface PublicationPackageProps { @@ -21,12 +33,21 @@ export interface PublicationPackageProps { interface PublicationPackagesProps extends PublicationVersionShort { environment?: PublicationEnvironment + procedureType: string + handleUpdateAction: () => void } const PublicationPackages = ({ environment, + procedureType, + handleUpdateAction, ...version }: PublicationPackagesProps) => { + const modalState = useModalStore( + state => state.modalStates['publicationPackages'] + ) as ModalStateMap['publicationPackages'] + const setActiveModal = useModalStore(state => state.setActiveModal) + const { data } = usePublicationVersionsVersionUuidGet(version.UUID) const { data: packages, isPending } = usePublicationActPackagesGet({ @@ -44,6 +65,28 @@ const PublicationPackages = ({ return { validationPackage, publicationPackage } }, [packages?.results]) + const { mutate: createAnnouncement } = + usePublicationActPackagesActPackageUuidCreateAnnouncementPost({ + mutation: { + onSuccess: data => + setActiveModal('publicationAnnouncementPackages', { + environment, + version, + announcementUuid: data.UUID, + }), + }, + }) + + const { data: announcement } = usePublicationAnnouncementsGet( + { act_package_uuid: publicationPackage?.UUID }, + { + query: { + enabled: publicationPackage?.Report_Status === 'valid', + select: data => data.results[0], + }, + } + ) + const { announcementDate, effectiveDate } = useMemo(() => { const announcementDate = data?.Announcement_Date && @@ -70,141 +113,182 @@ const PublicationPackages = ({ } return ( - <> - {!data?.Is_Valid && !!!validationPackage && ( - - )} - -
    - - {isOfficial ? 'Validatie' : 'Publicatie'} - - - - {isOfficial && ( + + + + + {isOfficial ? 'Validatie' : 'Publicatie'} + + + + - )} -
    - - {isOfficial && - validationPackage?.Report_Status === 'valid' && - !!!publicationPackage && ( - - )} - - {isOfficial && - validationPackage?.Report_Status === 'failed' && - !!!publicationPackage && ( -
    - - -
    - )} + )} - {isOfficial && ( - <> - {validationPackage?.Report_Status === 'valid' && - !data?.Is_Valid && ( + {isOfficial && + validationPackage?.Report_Status === 'valid' && + !!!publicationPackage && ( )} - {validationPackage?.Report_Status === 'valid' && - data?.Is_Valid && ( - + {isOfficial && + validationPackage?.Report_Status === 'failed' && + !!!publicationPackage && ( +
    + + +
    )} + + -
    - - Publicatie - - - - + {/* {validationPackage?.Report_Status === 'valid' && ( + !data?.Is_Valid && + -
    + )} */} + + + + + Publicatie + + + + {validationPackage?.Report_Status === 'valid' && + data?.Is_Valid && ( + + )} + + + + + + )} - {isOfficial && publicationPackage?.Report_Status === 'valid' && ( - - )} + {isOfficial && + publicationPackage?.Report_Status === 'valid' && + !!!announcement && ( +
    + + {(procedureType as ProcedureType) === 'draft' && + !!publicationPackage && ( + + )} +
    + )} {isOfficial && publicationPackage?.Report_Status === 'failed' && (
    @@ -223,7 +307,22 @@ const PublicationPackages = ({ />
    )} - + + {!!announcement && (procedureType as ProcedureType) === 'draft' && ( +
    + { + setActiveModal('publicationPackages', { + ...modalState, + announcementUuid: announcement.UUID, + }) + handleUpdateAction() + }} + {...announcement} + /> +
    + )} + ) } diff --git a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx index ae79dae8..ad4cdf41 100644 --- a/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx +++ b/src/components/Publications/PublicationPackages/components/PackageStepActions.tsx @@ -263,6 +263,7 @@ const UploadAction = ({
    {allFiles.map(file => ( { return ( <>
    - - Voor elke (interne en officiële) publicatie moet een nieuwe - versie van een besluit worden aangemaakt. Een besluit is te - bewerken tot het moment dat er een officiële publicatie is - gedaan. Validatie of publicatie niet gelukt? Bewerk dan de - versie en maak een nieuwe levering aan. - - {documentTypes.map((type, index) => ( diff --git a/src/pages/public/Login/index.ts b/src/pages/public/Login/index.ts index 393a6df4..626bc075 100644 --- a/src/pages/public/Login/index.ts +++ b/src/pages/public/Login/index.ts @@ -1,3 +1 @@ -import Login from './Login' - -export default Login +export { default } from './Login' From 5d2719c9c7f3748aa38a092724c8d60005fdc5a9 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 2 May 2024 12:53:53 +0200 Subject: [PATCH 57/82] Update modals --- .../Leaflet/LeafletMap/LeafletMap.test.tsx | 8 ++++---- .../ModuleEditObjectModal.tsx | 11 +++++++---- .../ModuleObjectDeleteConfirmationModal.tsx | 18 +++++++++--------- src/components/Modals/types.ts | 9 +++++++++ .../Modules/ModuleItemList/ModuleItemList.tsx | 18 ++++++------------ src/components/SearchBar/SearchBar.test.tsx | 5 +---- .../Modules/ModuleDetail/ModuleDetail.tsx | 19 ++++--------------- 7 files changed, 40 insertions(+), 48 deletions(-) diff --git a/src/components/Leaflet/LeafletMap/LeafletMap.test.tsx b/src/components/Leaflet/LeafletMap/LeafletMap.test.tsx index b07c7548..0ffbd490 100644 --- a/src/components/Leaflet/LeafletMap/LeafletMap.test.tsx +++ b/src/components/Leaflet/LeafletMap/LeafletMap.test.tsx @@ -1,4 +1,4 @@ -import { fireEvent, render, screen } from '@testing-library/react' +import { act, fireEvent, render, screen } from '@testing-library/react' import { BrowserRouter } from 'react-router-dom' import LeafletMap, { LeafletMapProps } from './LeafletMap' @@ -51,7 +51,7 @@ describe('LeafletMap', () => { controllers: { showSearch: true }, }) - fireEvent.click(searchController) + act(() => fireEvent.click(searchController)) const searchInput = screen.getByText( 'Zoeken op de kaart' @@ -73,7 +73,7 @@ describe('LeafletMap', () => { controllers: { showDraw: true }, }) - fireEvent.click(drawController) + act(() => fireEvent.click(drawController)) const marker = container.getElementsByClassName('leaflet-marker-icon') expect(marker).toBeTruthy() @@ -89,7 +89,7 @@ describe('LeafletMap', () => { setup({ controllers: { showLayers: true } }) const toggle = screen.getByTestId('leaflet-layers-control-toggle') - fireEvent.click(toggle) + act(() => fireEvent.click(toggle)) const pane = screen.getByTestId('leaflet-layers-control-pane') expect(pane).toBeInTheDocument() diff --git a/src/components/Modals/ModuleModals/ModuleEditObjectModal/ModuleEditObjectModal.tsx b/src/components/Modals/ModuleModals/ModuleEditObjectModal/ModuleEditObjectModal.tsx index d7f398a2..531af829 100644 --- a/src/components/Modals/ModuleModals/ModuleEditObjectModal/ModuleEditObjectModal.tsx +++ b/src/components/Modals/ModuleModals/ModuleEditObjectModal/ModuleEditObjectModal.tsx @@ -21,14 +21,17 @@ import useModalStore from '@/store/modalStore' import { toastNotification } from '@/utils/toastNotification' import * as modules from '@/validation/modules' -interface ModuleEditObjectModalProps { - object: ModuleObjectShort -} +import { ModalStateMap } from '../../types' -const ModuleEditObjectModal = ({ object }: ModuleEditObjectModalProps) => { +const ModuleEditObjectModal = () => { const queryClient = useQueryClient() const setActiveModal = useModalStore(state => state.setActiveModal) + const modalState = useModalStore( + state => state.modalStates['moduleEditObject'] + ) as ModalStateMap['moduleEditObject'] + + const { object = {} as ModuleObjectShort } = modalState || {} const model = models[object.Object_Type as ModelType] || {} const { singularReadable, singularCapitalize, prefixSingular } = diff --git a/src/components/Modals/ModuleModals/ModuleObjectDeleteConfirmationModal/ModuleObjectDeleteConfirmationModal.tsx b/src/components/Modals/ModuleModals/ModuleObjectDeleteConfirmationModal/ModuleObjectDeleteConfirmationModal.tsx index 7a919a98..d9594941 100644 --- a/src/components/Modals/ModuleModals/ModuleObjectDeleteConfirmationModal/ModuleObjectDeleteConfirmationModal.tsx +++ b/src/components/Modals/ModuleModals/ModuleObjectDeleteConfirmationModal/ModuleObjectDeleteConfirmationModal.tsx @@ -7,16 +7,16 @@ import { ModelType } from '@/config/objects/types' import useModule from '@/hooks/useModule' import useModalStore from '@/store/modalStore' -interface ModuleObjectDeleteConfirmationModalProps { - object: ModuleObjectShort - module: Module -} +import { ModalStateMap } from '../../types' -const ModuleObjectDeleteConfirmationModal = ({ - object, - module, -}: ModuleObjectDeleteConfirmationModalProps) => { +const ModuleObjectDeleteConfirmationModal = () => { const setActiveModal = useModalStore(state => state.setActiveModal) + const modalState = useModalStore( + state => state.modalStates['moduleDeleteObject'] + ) as ModalStateMap['moduleDeleteObject'] + + const { object = {} as ModuleObjectShort, module = {} as Module } = + modalState || {} const { useRemoveObjectFromModule } = useModule() const { mutate } = useRemoveObjectFromModule(() => setActiveModal(null)) @@ -28,7 +28,7 @@ const ModuleObjectDeleteConfirmationModal = ({ lineageId: object.Object_ID, }) - const model = models[object.Object_Type as ModelType] + const model = models[object?.Object_Type as ModelType] return ( diff --git a/src/components/Modals/types.ts b/src/components/Modals/types.ts index 38d74a17..97f8f858 100644 --- a/src/components/Modals/types.ts +++ b/src/components/Modals/types.ts @@ -1,5 +1,7 @@ import { DocumentType, + Module, + ModuleObjectShort, ProcedureType, Publication, PublicationEnvironment, @@ -40,6 +42,13 @@ export type ModalType = | 'publicationAnnouncementPackages' export interface ModalStateMap { + moduleEditObject: { + object: ModuleObjectShort + } + moduleDeleteObject: { + object: ModuleObjectShort + module: Module + } publicationAdd: { documentType: DocumentType procedureType: ProcedureType diff --git a/src/components/Modules/ModuleItemList/ModuleItemList.tsx b/src/components/Modules/ModuleItemList/ModuleItemList.tsx index a9a62dbf..9c12144a 100644 --- a/src/components/Modules/ModuleItemList/ModuleItemList.tsx +++ b/src/components/Modules/ModuleItemList/ModuleItemList.tsx @@ -7,7 +7,6 @@ import { ModelType } from '@/config/objects/types' import useAuth from '@/hooks/useAuth' import useModule from '@/hooks/useModule' import usePermissions from '@/hooks/usePermissions' -import { ModuleContext } from '@/pages/protected/Modules/ModuleDetail' import useModalStore from '@/store/modalStore' import ModuleItem from '../ModuleItem' @@ -17,8 +16,6 @@ interface ModuleItemListProps { objects?: ModuleObjectShort[] /** Current model object */ module?: Module - /** Set module context */ - setModuleContext: (e: ModuleContext) => void } const ModuleItemList = ({ objects, ...rest }: ModuleItemListProps) => { @@ -108,7 +105,6 @@ interface ItemListProps extends ModuleItemListProps { const ItemList = ({ objects, - setModuleContext, module, title, noResultsText, @@ -134,19 +130,17 @@ const ItemList = ({ return ( { - setModuleContext({ + editCallback={() => + setActiveModal('moduleEditObject', { object, }) - setActiveModal('moduleEditObject') - }} - deleteCallback={() => { - setModuleContext({ + } + deleteCallback={() => + setActiveModal('moduleDeleteObject', { object, module, }) - setActiveModal('moduleDeleteObject') - }} + } viewCallback={() => window .open( diff --git a/src/components/SearchBar/SearchBar.test.tsx b/src/components/SearchBar/SearchBar.test.tsx index 095308ed..0cc65109 100644 --- a/src/components/SearchBar/SearchBar.test.tsx +++ b/src/components/SearchBar/SearchBar.test.tsx @@ -16,10 +16,7 @@ vi.mock('react-router-dom', async () => { }) describe('SearchBar', () => { - const defaultProps = { - width: 'w-64', - compInNavigation: true, - } + const defaultProps = {} const setup = (customProps?: any) => { const props = { ...defaultProps, ...customProps } diff --git a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx index 1434e05b..b5dc3167 100644 --- a/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx +++ b/src/pages/protected/Modules/ModuleDetail/ModuleDetail.tsx @@ -9,7 +9,7 @@ import { Text, } from '@pzh-ui/components' import classNames from 'clsx' -import { Fragment, useState } from 'react' +import { Fragment } from 'react' import { Link } from 'react-router-dom' import { DocumentType, Module, ModuleObjectShort } from '@/api/fetchers.schemas' @@ -173,18 +173,12 @@ const TabObjects = () => { canComplete, } = useModule() - const [moduleContext, setModuleContext] = useState({}) - if (isLoading || !module) return return ( <>
    - + {(canAddExistingObjectToModule || canAddNewObjectToModule) && !isLocked && ( @@ -232,14 +226,9 @@ const TabObjects = () => { - + - + From b8cfb6af9c9cbc1f0999974e14c82e749fa646a9 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 13 May 2024 14:55:33 +0200 Subject: [PATCH 58/82] Tweak ObjectNetwork --- src/components/DynamicObject/ObjectNetwork/ObjectNetwork.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DynamicObject/ObjectNetwork/ObjectNetwork.tsx b/src/components/DynamicObject/ObjectNetwork/ObjectNetwork.tsx index a1065923..22a4cf8c 100644 --- a/src/components/DynamicObject/ObjectNetwork/ObjectNetwork.tsx +++ b/src/components/DynamicObject/ObjectNetwork/ObjectNetwork.tsx @@ -49,10 +49,10 @@ const ObjectNetwork = ({ data }: ObjectNetworkProps) => { if (type === 'enter') { element.classList.add('font-bold') - el?.classList.add('stroke-pzh-blue-900') + el?.classList.add('!stroke-pzh-blue-900') } else { element.classList.remove('font-bold') - el?.classList.remove('stroke-pzh-blue-900') + el?.classList.remove('!stroke-pzh-blue-900') } }, [] From d0aecb6113fb255a32eabefe6deabc76af7eda7e Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 21 May 2024 09:38:09 +0200 Subject: [PATCH 59/82] Update PublicationVersion --- package.json | 8 +-- .../Modules/ModuleItem/ModuleItem.tsx | 1 + .../Modules/ModuleItemList/ModuleItemList.tsx | 2 +- .../PublicationVersionForm.tsx | 3 +- yarn.lock | 57 ++++++++++++++++--- 5 files changed, 56 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index ec1a0ad5..98b25586 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ "lodash.groupby": "^4.6.0", "node-htmldiff": "^0.9.4", "proj4leaflet": "^1.0.2", - "react": "^18.2.0", + "react": "^18.3.1", "react-content-loader": "^6.2.1", - "react-dom": "^18.2.0", + "react-dom": "^18.3.1", "react-error-boundary": "^4.0.13", "react-helmet-async": "^2.0.4", "react-leaflet": "^4.2.1", @@ -77,8 +77,8 @@ "@types/lodash.debounce": "^4.0.7", "@types/lodash.groupby": "^4.6.7", "@types/proj4leaflet": "^1.0.10", - "@types/react": "^18.2.79", - "@types/react-dom": "^18.2.7", + "@types/react": "^18.3.2", + "@types/react-dom": "^18.3.0", "@types/react-leaflet": "^3.0.0", "@types/react-router-dom": "^5.3.3", "@types/uuid": "^9.0.3", diff --git a/src/components/Modules/ModuleItem/ModuleItem.tsx b/src/components/Modules/ModuleItem/ModuleItem.tsx index 9cc6f3b8..bbb24c3c 100644 --- a/src/components/Modules/ModuleItem/ModuleItem.tsx +++ b/src/components/Modules/ModuleItem/ModuleItem.tsx @@ -175,6 +175,7 @@ const ModuleItem = ({ data-testid="module-item-menu"> + {!!objects?.length ? ( -
    +
    {objects.map(object => { const model = models[ diff --git a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx index a934b708..2c7dece5 100644 --- a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx +++ b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx @@ -30,7 +30,7 @@ const PublicationVersionForm = ({ const setActiveModal = useModalStore(state => state.setActiveModal) - const { data: statusOptions } = useModulesModuleIdStatusGet( + const { data: statusOptions, isLoading } = useModulesModuleIdStatusGet( parseInt(moduleId!), { query: { @@ -56,6 +56,7 @@ const PublicationVersionForm = ({
    Date: Tue, 21 May 2024 10:36:01 +0200 Subject: [PATCH 60/82] Remove few tests for now --- package.json | 4 +- src/components/LoginForm/LoginForm.test.tsx | 55 --- src/pages/public/Login/Login.test.tsx | 27 -- yarn.lock | 463 +++++++++++++++++++- 4 files changed, 445 insertions(+), 104 deletions(-) delete mode 100644 src/components/LoginForm/LoginForm.test.tsx delete mode 100644 src/pages/public/Login/Login.test.tsx diff --git a/package.json b/package.json index 98b25586..7ab3d468 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.522", + "@pzh-ui/components": "^0.0.525", "@pzh-ui/config": "^0.0.69", "@pzh-ui/css": "^0.0.95", "@pzh-ui/icons": "^0.0.59", @@ -16,7 +16,7 @@ "clsx": "^2.1.0", "d3": "^7.8.5", "dompurify": "^3.0.9", - "formik": "^2.4.5", + "formik": "^2.4.6", "jwt-decode": "^4.0.0", "leaflet": "^1.9.4", "leaflet-draw": "^1.0.4", diff --git a/src/components/LoginForm/LoginForm.test.tsx b/src/components/LoginForm/LoginForm.test.tsx deleted file mode 100644 index 5d3755ac..00000000 --- a/src/components/LoginForm/LoginForm.test.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import { QueryClient, QueryClientProvider } from '@tanstack/react-query' -import { fireEvent, render, screen } from '@testing-library/react' -import { MemoryRouter } from 'react-router-dom' - -import AuthProvider from '@/context/AuthContext' - -import LoginForm from './LoginForm' - -const queryClient = new QueryClient() - -describe('LoginForm', () => { - const setup = () => { - const loginStatePromise = Promise.resolve() - const loginUserPromise = Promise.resolve() - - render( - - - - - - - - ) - - return { - loginStatePromise, - loginUserPromise, - } - } - - const fillLoginForm = () => { - const inputUsername = screen.getByLabelText( - 'E-mailadres' - ) as HTMLInputElement - const inputPassword = screen.getByLabelText( - 'Wachtwoord' - ) as HTMLInputElement - fireEvent.change(inputUsername, { target: { value: 'E-mail' } }) - fireEvent.change(inputPassword, { target: { value: 'Password' } }) - - return { inputUsername, inputPassword } - } - - it('user can type their credentials', () => { - setup() - const { inputUsername, inputPassword } = fillLoginForm() - - expect(inputUsername).toBeTruthy() - expect(inputPassword).toBeTruthy() - - expect(inputUsername.value).toBe('E-mail') - expect(inputPassword.value).toBe('Password') - }) -}) diff --git a/src/pages/public/Login/Login.test.tsx b/src/pages/public/Login/Login.test.tsx deleted file mode 100644 index baf133b2..00000000 --- a/src/pages/public/Login/Login.test.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { QueryClient, QueryClientProvider } from '@tanstack/react-query' -import { render, screen } from '@testing-library/react' -import { BrowserRouter } from 'react-router-dom' - -import AuthProvider from '@/context/AuthContext' - -import Login from './Login' - -const queryClient = new QueryClient() - -describe('Login', () => { - it('should render', () => { - render( - - - - - - - - ) - const header = screen.getByRole('heading', { - name: 'Inloggen', - }) - expect(header).toBeInTheDocument() - }) -}) diff --git a/yarn.lock b/yarn.lock index 6054f9a6..90ce57e2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2655,9 +2655,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.522": - version: 0.0.522 - resolution: "@pzh-ui/components@npm:0.0.522" +"@pzh-ui/components@npm:^0.0.525": + version: 0.0.525 + resolution: "@pzh-ui/components@npm:0.0.525" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" @@ -2666,6 +2666,7 @@ __metadata: "@react-aria/utils": "npm:^3.23.2" "@react-hookz/web": "npm:^24.0.4" "@react-types/shared": "npm:^3.19.0" + "@storybook/test": "npm:^8.1.1" "@tanstack/react-table": "npm:^8.13.2" "@tiptap/core": "npm:^2.1.7" "@tiptap/extension-bold": "npm:^2.1.7" @@ -2695,7 +2696,7 @@ __metadata: "@types/react-table": "npm:^7.7.15" clsx: "npm:^2.1.0" date-fns: "npm:^3.3.1" - formik: "npm:^2.4.5" + formik: "npm:^2.4.6" react: "npm:^18.2.0" react-aria: "npm:^3.32.1" react-aria-components: "npm:^1.1.1" @@ -2707,7 +2708,7 @@ __metadata: react-stately: "npm:^3.30.1" react-toastify: "npm:^9.1.2" tailwind-merge: "npm:^2.2.2" - checksum: 334e4b5583d567c2774c755948ee72c7f93e4917102073fbe529b658872d44ef4613ad95628cf9219ea2597699e5859e58f6824de6ed46e6a1c70206a1693f43 + checksum: 1aa44f49cc0919e7da5e91e3ebc175f7b57c27b13e3a0a75bc05ed81d38d4f72882fc8f68f612aa0c41ee04f0fbec7325a163a684f28ac4fc0d52c3df4729cac languageName: node linkType: hard @@ -4675,6 +4676,120 @@ __metadata: languageName: node linkType: hard +"@storybook/channels@npm:8.1.1": + version: 8.1.1 + resolution: "@storybook/channels@npm:8.1.1" + dependencies: + "@storybook/client-logger": "npm:8.1.1" + "@storybook/core-events": "npm:8.1.1" + "@storybook/global": "npm:^5.0.0" + telejson: "npm:^7.2.0" + tiny-invariant: "npm:^1.3.1" + checksum: c60349f3ea1306d17eee43cca352b5d1dc1431ebdbce80181da3f45e49fb479090094f73c6f55a10763951917ad0bbae02558fc392712a4a098d1a79710080d6 + languageName: node + linkType: hard + +"@storybook/client-logger@npm:8.1.1": + version: 8.1.1 + resolution: "@storybook/client-logger@npm:8.1.1" + dependencies: + "@storybook/global": "npm:^5.0.0" + checksum: 0255552c93c66e2d11fa282a76e813861427e7cb0c3dc860e8d686bfd4cbceb37f04589d3540db39eb1e37761761d964e1d0266cbe3074e1dcc80af26cd5f153 + languageName: node + linkType: hard + +"@storybook/core-events@npm:8.1.1": + version: 8.1.1 + resolution: "@storybook/core-events@npm:8.1.1" + dependencies: + "@storybook/csf": "npm:^0.1.7" + ts-dedent: "npm:^2.0.0" + checksum: 46d88ff57ecb4a1ebb4698354bf52e5191b8ca676f41b467ccd8d56b63e55455aa38835f2d88b7ddcfc61f60e4ce45fab7453bc644562c0fd4b81887934d0e99 + languageName: node + linkType: hard + +"@storybook/csf@npm:^0.1.7": + version: 0.1.7 + resolution: "@storybook/csf@npm:0.1.7" + dependencies: + type-fest: "npm:^2.19.0" + checksum: 19dbd5c72a0c60e4b7cf0255fbbb74452172c03911d0236a0bd26c5e1d1453870800ebfbcd6afd455384fac30bbb5d261193ee2d455bd863344ceb96265139e3 + languageName: node + linkType: hard + +"@storybook/global@npm:^5.0.0": + version: 5.0.0 + resolution: "@storybook/global@npm:5.0.0" + checksum: 0e7b495f4fe7f36447e793926f1c0460ec07fd66f0da68e3150da5878f6043c9eeb9b41614a45c5ec0d48d5d383c59ca8f88b6dc7882a2a784ac9b20375d8edb + languageName: node + linkType: hard + +"@storybook/instrumenter@npm:8.1.1": + version: 8.1.1 + resolution: "@storybook/instrumenter@npm:8.1.1" + dependencies: + "@storybook/channels": "npm:8.1.1" + "@storybook/client-logger": "npm:8.1.1" + "@storybook/core-events": "npm:8.1.1" + "@storybook/global": "npm:^5.0.0" + "@storybook/preview-api": "npm:8.1.1" + "@vitest/utils": "npm:^1.3.1" + util: "npm:^0.12.4" + checksum: 293aaf7425525791cc024edf6ad709cce4cbf44f4a92912cd9356741e7652a0faf7b3a26e6d5ddf1f0c983da40b40c9915db569b3d459f2bfad4dbdf00926127 + languageName: node + linkType: hard + +"@storybook/preview-api@npm:8.1.1": + version: 8.1.1 + resolution: "@storybook/preview-api@npm:8.1.1" + dependencies: + "@storybook/channels": "npm:8.1.1" + "@storybook/client-logger": "npm:8.1.1" + "@storybook/core-events": "npm:8.1.1" + "@storybook/csf": "npm:^0.1.7" + "@storybook/global": "npm:^5.0.0" + "@storybook/types": "npm:8.1.1" + "@types/qs": "npm:^6.9.5" + dequal: "npm:^2.0.2" + lodash: "npm:^4.17.21" + memoizerific: "npm:^1.11.3" + qs: "npm:^6.10.0" + tiny-invariant: "npm:^1.3.1" + ts-dedent: "npm:^2.0.0" + util-deprecate: "npm:^1.0.2" + checksum: fb6c9e38d86f039075b80ec1b8b5eccd2ef624b4f393760de243a79b60e108e6afb25ce50a3b01eb749575f104ebeeae6829b76216273b1e81e226e3e0c08745 + languageName: node + linkType: hard + +"@storybook/test@npm:^8.1.1": + version: 8.1.1 + resolution: "@storybook/test@npm:8.1.1" + dependencies: + "@storybook/client-logger": "npm:8.1.1" + "@storybook/core-events": "npm:8.1.1" + "@storybook/instrumenter": "npm:8.1.1" + "@storybook/preview-api": "npm:8.1.1" + "@testing-library/dom": "npm:^9.3.4" + "@testing-library/jest-dom": "npm:^6.4.2" + "@testing-library/user-event": "npm:^14.5.2" + "@vitest/expect": "npm:1.3.1" + "@vitest/spy": "npm:^1.3.1" + util: "npm:^0.12.4" + checksum: 5a1a66241d0a9267e783161071d7aa6e7b77a129a041db9127b3546997affc2855bdb185b7fb6dad0e9673d1246821d5b91cde3ba69f273da3bbf905505f9947 + languageName: node + linkType: hard + +"@storybook/types@npm:8.1.1": + version: 8.1.1 + resolution: "@storybook/types@npm:8.1.1" + dependencies: + "@storybook/channels": "npm:8.1.1" + "@types/express": "npm:^4.7.0" + file-system-cache: "npm:2.3.0" + checksum: f367334074e3f4464bcd0efdad75a0110a11d72265f8dc398d2e53a62b9d77dc159006a0db50bd63f0844c3466d7c7a099a0a81cddb87acfeb2e3d178d6cbfbb + languageName: node + linkType: hard + "@svgr/babel-plugin-add-jsx-attribute@npm:8.0.0": version: 8.0.0 resolution: "@svgr/babel-plugin-add-jsx-attribute@npm:8.0.0" @@ -4924,7 +5039,7 @@ __metadata: languageName: node linkType: hard -"@testing-library/dom@npm:^9.0.0, @testing-library/dom@npm:^9.3.3": +"@testing-library/dom@npm:^9.0.0, @testing-library/dom@npm:^9.3.3, @testing-library/dom@npm:^9.3.4": version: 9.3.4 resolution: "@testing-library/dom@npm:9.3.4" dependencies: @@ -4973,6 +5088,39 @@ __metadata: languageName: node linkType: hard +"@testing-library/jest-dom@npm:^6.4.2": + version: 6.4.5 + resolution: "@testing-library/jest-dom@npm:6.4.5" + dependencies: + "@adobe/css-tools": "npm:^4.3.2" + "@babel/runtime": "npm:^7.9.2" + aria-query: "npm:^5.0.0" + chalk: "npm:^3.0.0" + css.escape: "npm:^1.5.1" + dom-accessibility-api: "npm:^0.6.3" + lodash: "npm:^4.17.21" + redent: "npm:^3.0.0" + peerDependencies: + "@jest/globals": ">= 28" + "@types/bun": "*" + "@types/jest": ">= 28" + jest: ">= 28" + vitest: ">= 0.32" + peerDependenciesMeta: + "@jest/globals": + optional: true + "@types/bun": + optional: true + "@types/jest": + optional: true + jest: + optional: true + vitest: + optional: true + checksum: 6d9e6cc01ec9111ea631657d93596fa9505d294fdfc4172fbd750b8df6268f02d55900626423b195dac5b067a302557453894a5814bdf4e770dee37cdb1c0f2d + languageName: node + linkType: hard + "@testing-library/react@npm:^14.1.2": version: 14.2.1 resolution: "@testing-library/react@npm:14.2.1" @@ -4987,7 +5135,7 @@ __metadata: languageName: node linkType: hard -"@testing-library/user-event@npm:^14.5.1": +"@testing-library/user-event@npm:^14.5.1, @testing-library/user-event@npm:^14.5.2": version: 14.5.2 resolution: "@testing-library/user-event@npm:14.5.2" peerDependencies: @@ -5336,6 +5484,25 @@ __metadata: languageName: node linkType: hard +"@types/body-parser@npm:*": + version: 1.19.5 + resolution: "@types/body-parser@npm:1.19.5" + dependencies: + "@types/connect": "npm:*" + "@types/node": "npm:*" + checksum: 1e251118c4b2f61029cc43b0dc028495f2d1957fe8ee49a707fb940f86a9bd2f9754230805598278fe99958b49e9b7e66eec8ef6a50ab5c1f6b93e1ba2aaba82 + languageName: node + linkType: hard + +"@types/connect@npm:*": + version: 3.4.38 + resolution: "@types/connect@npm:3.4.38" + dependencies: + "@types/node": "npm:*" + checksum: 7eb1bc5342a9604facd57598a6c62621e244822442976c443efb84ff745246b10d06e8b309b6e80130026a396f19bf6793b7cecd7380169f369dac3bfc46fb99 + languageName: node + linkType: hard + "@types/cookie@npm:^0.6.0": version: 0.6.0 resolution: "@types/cookie@npm:0.6.0" @@ -5647,6 +5814,30 @@ __metadata: languageName: node linkType: hard +"@types/express-serve-static-core@npm:^4.17.33": + version: 4.19.0 + resolution: "@types/express-serve-static-core@npm:4.19.0" + dependencies: + "@types/node": "npm:*" + "@types/qs": "npm:*" + "@types/range-parser": "npm:*" + "@types/send": "npm:*" + checksum: 3e803822f90106158e2c7598d0a44e078e22fad67806eadb1e9f00261fa2be7ea65725d9d177157225d2b0ab22793a84039a433c2d97910586ae6f79e9d04c2f + languageName: node + linkType: hard + +"@types/express@npm:^4.7.0": + version: 4.17.21 + resolution: "@types/express@npm:4.17.21" + dependencies: + "@types/body-parser": "npm:*" + "@types/express-serve-static-core": "npm:^4.17.33" + "@types/qs": "npm:*" + "@types/serve-static": "npm:*" + checksum: 7a6d26cf6f43d3151caf4fec66ea11c9d23166e4f3102edfe45a94170654a54ea08cf3103d26b3928d7ebcc24162c90488e33986b7e3a5f8941225edd5eb18c7 + languageName: node + linkType: hard + "@types/geojson@npm:*": version: 7946.0.14 resolution: "@types/geojson@npm:7946.0.14" @@ -5671,6 +5862,13 @@ __metadata: languageName: node linkType: hard +"@types/http-errors@npm:*": + version: 2.0.4 + resolution: "@types/http-errors@npm:2.0.4" + checksum: 1f3d7c3b32c7524811a45690881736b3ef741bf9849ae03d32ad1ab7062608454b150a4e7f1351f83d26a418b2d65af9bdc06198f1c079d75578282884c4e8e3 + languageName: node + linkType: hard + "@types/istanbul-lib-coverage@npm:^2.0.1": version: 2.0.6 resolution: "@types/istanbul-lib-coverage@npm:2.0.6" @@ -5744,6 +5942,13 @@ __metadata: languageName: node linkType: hard +"@types/mime@npm:^1": + version: 1.3.5 + resolution: "@types/mime@npm:1.3.5" + checksum: e29a5f9c4776f5229d84e525b7cd7dd960b51c30a0fb9a028c0821790b82fca9f672dab56561e2acd9e8eed51d431bde52eafdfef30f643586c4162f1aecfc78 + languageName: node + linkType: hard + "@types/mute-stream@npm:^0.0.4": version: 0.0.4 resolution: "@types/mute-stream@npm:0.0.4" @@ -5808,6 +6013,20 @@ __metadata: languageName: node linkType: hard +"@types/qs@npm:*, @types/qs@npm:^6.9.5": + version: 6.9.15 + resolution: "@types/qs@npm:6.9.15" + checksum: 97d8208c2b82013b618e7a9fc14df6bd40a73e1385ac479b6896bafc7949a46201c15f42afd06e86a05e914f146f495f606b6fb65610cc60cf2e0ff743ec38a2 + languageName: node + linkType: hard + +"@types/range-parser@npm:*": + version: 1.2.7 + resolution: "@types/range-parser@npm:1.2.7" + checksum: 95640233b689dfbd85b8c6ee268812a732cf36d5affead89e806fe30da9a430767af8ef2cd661024fd97e19d61f3dec75af2df5e80ec3bea000019ab7028629a + languageName: node + linkType: hard + "@types/react-dom@npm:^18.0.0": version: 18.2.19 resolution: "@types/react-dom@npm:18.2.19" @@ -5909,6 +6128,27 @@ __metadata: languageName: node linkType: hard +"@types/send@npm:*": + version: 0.17.4 + resolution: "@types/send@npm:0.17.4" + dependencies: + "@types/mime": "npm:^1" + "@types/node": "npm:*" + checksum: 28320a2aa1eb704f7d96a65272a07c0bf3ae7ed5509c2c96ea5e33238980f71deeed51d3631927a77d5250e4091b3e66bce53b42d770873282c6a20bb8b0280d + languageName: node + linkType: hard + +"@types/serve-static@npm:*": + version: 1.15.7 + resolution: "@types/serve-static@npm:1.15.7" + dependencies: + "@types/http-errors": "npm:*" + "@types/node": "npm:*" + "@types/send": "npm:*" + checksum: c5a7171d5647f9fbd096ed1a26105759f3153ccf683824d99fee4c7eb9cde2953509621c56a070dd9fb1159e799e86d300cbe4e42245ebc5b0c1767e8ca94a67 + languageName: node + linkType: hard + "@types/statuses@npm:^2.0.4": version: 2.0.4 resolution: "@types/statuses@npm:2.0.4" @@ -6128,6 +6368,17 @@ __metadata: languageName: node linkType: hard +"@vitest/expect@npm:1.3.1": + version: 1.3.1 + resolution: "@vitest/expect@npm:1.3.1" + dependencies: + "@vitest/spy": "npm:1.3.1" + "@vitest/utils": "npm:1.3.1" + chai: "npm:^4.3.10" + checksum: 7c2818b2080ec107cffcc1566195132695c8e87cba883e878c2f36ac4d8107bb0a1f8d3823ccc0da5989e245ea114b8afffe790512aebcde8537ac8c1bcf3454 + languageName: node + linkType: hard + "@vitest/runner@npm:1.2.2": version: 1.2.2 resolution: "@vitest/runner@npm:1.2.2" @@ -6159,6 +6410,24 @@ __metadata: languageName: node linkType: hard +"@vitest/spy@npm:1.3.1": + version: 1.3.1 + resolution: "@vitest/spy@npm:1.3.1" + dependencies: + tinyspy: "npm:^2.2.0" + checksum: 544c8a30fdeb32fb7bf2c2b5816519be943f5ef90668c306b14efdde7676771d0e83cf0e0a5c79fad722be3839432226bcf74173110a032299821e00b67f47e6 + languageName: node + linkType: hard + +"@vitest/spy@npm:^1.3.1": + version: 1.6.0 + resolution: "@vitest/spy@npm:1.6.0" + dependencies: + tinyspy: "npm:^2.2.0" + checksum: 1c9698272a58aa47708bb8a1672d655fcec3285b02067cc3f70bfe76f4eda7a756eb379f8c945ccbe61677f5189aeb5ba93c2737a9d7db2de8c4e7bbdffcd372 + languageName: node + linkType: hard + "@vitest/utils@npm:1.2.2": version: 1.2.2 resolution: "@vitest/utils@npm:1.2.2" @@ -6171,6 +6440,30 @@ __metadata: languageName: node linkType: hard +"@vitest/utils@npm:1.3.1": + version: 1.3.1 + resolution: "@vitest/utils@npm:1.3.1" + dependencies: + diff-sequences: "npm:^29.6.3" + estree-walker: "npm:^3.0.3" + loupe: "npm:^2.3.7" + pretty-format: "npm:^29.7.0" + checksum: 170c62e6c348562f611d8caddc893e8cba75ed89986e09aa2f0fe6812c96664e8d0f6e329f7a96a4c9cdecf147f4853e4054c3db597b111ec993d3cdd546eddc + languageName: node + linkType: hard + +"@vitest/utils@npm:^1.3.1": + version: 1.6.0 + resolution: "@vitest/utils@npm:1.6.0" + dependencies: + diff-sequences: "npm:^29.6.3" + estree-walker: "npm:^3.0.3" + loupe: "npm:^2.3.7" + pretty-format: "npm:^29.7.0" + checksum: 5c5d7295ac13fcea1da039232bcc7c3fc6f070070fe12ba2ad152456af6e216e48a3ae169016cfcd5055706a00dc567b8f62e4a9b1914f069f52b8f0a3c25e60 + languageName: node + linkType: hard + "abab@npm:^2.0.6": version: 2.0.6 resolution: "abab@npm:2.0.6" @@ -6615,6 +6908,15 @@ __metadata: languageName: node linkType: hard +"available-typed-arrays@npm:^1.0.7": + version: 1.0.7 + resolution: "available-typed-arrays@npm:1.0.7" + dependencies: + possible-typed-array-names: "npm:^1.0.0" + checksum: 6c9da3a66caddd83c875010a1ca8ef11eac02ba15fb592dc9418b2b5e7b77b645fa7729380a92d9835c2f05f2ca1b6251f39b993e0feb3f1517c74fa1af02cab + languageName: node + linkType: hard + "axe-core@npm:=4.7.0": version: 4.7.0 resolution: "axe-core@npm:4.7.0" @@ -6810,7 +7112,7 @@ __metadata: languageName: node linkType: hard -"call-bind@npm:^1.0.2, call-bind@npm:^1.0.5, call-bind@npm:^1.0.6": +"call-bind@npm:^1.0.2, call-bind@npm:^1.0.5, call-bind@npm:^1.0.6, call-bind@npm:^1.0.7": version: 1.0.7 resolution: "call-bind@npm:1.0.7" dependencies: @@ -7712,7 +8014,7 @@ __metadata: languageName: node linkType: hard -"dequal@npm:^2.0.3": +"dequal@npm:^2.0.2, dequal@npm:^2.0.3": version: 2.0.3 resolution: "dequal@npm:2.0.3" checksum: 6ff05a7561f33603df87c45e389c9ac0a95e3c056be3da1a0c4702149e3a7f6fe5ffbb294478687ba51a9e95f3a60e8b6b9005993acd79c292c7d15f71964b6b @@ -8714,6 +9016,16 @@ __metadata: languageName: node linkType: hard +"file-system-cache@npm:2.3.0": + version: 2.3.0 + resolution: "file-system-cache@npm:2.3.0" + dependencies: + fs-extra: "npm:11.1.1" + ramda: "npm:0.29.0" + checksum: 8f0530aaa8bed115ef1b00f69accde8d1311d0eaffc6e37bb0b5057b8be79e6e960823025ea3c980a58147eed0ba690b9906c2229e132f5d96158e9b635a052c + languageName: node + linkType: hard + "fill-range@npm:^7.0.1": version: 7.0.1 resolution: "fill-range@npm:7.0.1" @@ -8808,9 +9120,9 @@ __metadata: languageName: node linkType: hard -"formik@npm:^2.4.5": - version: 2.4.5 - resolution: "formik@npm:2.4.5" +"formik@npm:^2.4.6": + version: 2.4.6 + resolution: "formik@npm:2.4.6" dependencies: "@types/hoist-non-react-statics": "npm:^3.3.1" deepmerge: "npm:^2.1.1" @@ -8822,7 +9134,7 @@ __metadata: tslib: "npm:^2.0.0" peerDependencies: react: ">=16.8.0" - checksum: 223fb3e6b0a7803221c030364a015b9adb01b61f7aed7c64e28ef8341a3e7c94c7a70aef7ed9f65d03ac44e4e19972c1247fb0e39538e4e084833fd1fa3b11c4 + checksum: 65d6845d913cfceebdbb1e34d498725965e07abd4c17f3ea9eeba77d9fab7d3b0f726fdfcae73f002b660ba56b236abc8d8aa6670a9c7cc0db27afebf6e48f4b languageName: node linkType: hard @@ -8833,6 +9145,17 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:11.1.1": + version: 11.1.1 + resolution: "fs-extra@npm:11.1.1" + dependencies: + graceful-fs: "npm:^4.2.0" + jsonfile: "npm:^6.0.1" + universalify: "npm:^2.0.0" + checksum: c4e9fabf9762a70d1403316b7faa899f3d3303c8afa765b891c2210fdeba368461e04ae1203920b64ef6a7d066a39ab8cef2160b5ce8d1011bb4368688cd9bb7 + languageName: node + linkType: hard + "fs-extra@npm:^11.2.0": version: 11.2.0 resolution: "fs-extra@npm:11.2.0" @@ -9140,7 +9463,7 @@ __metadata: languageName: node linkType: hard -"has-tostringtag@npm:^1.0.0, has-tostringtag@npm:^1.0.1": +"has-tostringtag@npm:^1.0.0, has-tostringtag@npm:^1.0.1, has-tostringtag@npm:^1.0.2": version: 1.0.2 resolution: "has-tostringtag@npm:1.0.2" dependencies: @@ -9323,7 +9646,7 @@ __metadata: languageName: node linkType: hard -"inherits@npm:2": +"inherits@npm:2, inherits@npm:^2.0.3": version: 2.0.4 resolution: "inherits@npm:2.0.4" checksum: cd45e923bee15186c07fa4c89db0aace24824c482fb887b528304694b2aa6ff8a898da8657046a5dcf3e46cd6db6c61629551f9215f208d7c3f157cf9b290521 @@ -9379,7 +9702,7 @@ __metadata: languageName: node linkType: hard -"is-arguments@npm:^1.1.1": +"is-arguments@npm:^1.0.4, is-arguments@npm:^1.1.1": version: 1.1.1 resolution: "is-arguments@npm:1.1.1" dependencies: @@ -9509,7 +9832,7 @@ __metadata: languageName: node linkType: hard -"is-generator-function@npm:^1.0.10": +"is-generator-function@npm:^1.0.10, is-generator-function@npm:^1.0.7": version: 1.0.10 resolution: "is-generator-function@npm:1.0.10" dependencies: @@ -9661,7 +9984,7 @@ __metadata: languageName: node linkType: hard -"is-typed-array@npm:^1.1.13": +"is-typed-array@npm:^1.1.13, is-typed-array@npm:^1.1.3": version: 1.1.13 resolution: "is-typed-array@npm:1.1.13" dependencies: @@ -10392,6 +10715,13 @@ __metadata: languageName: node linkType: hard +"map-or-similar@npm:^1.5.0": + version: 1.5.0 + resolution: "map-or-similar@npm:1.5.0" + checksum: 3cf43bcd0e7af41d7bade5f8b5be6bb9d021cc47e6008ad545d071cf3a709ba782884002f9eec6ccd51f572fc17841e07bf74628e0bc3694c33f4622b03e4b4c + languageName: node + linkType: hard + "markdown-it@npm:^14.0.0": version: 14.0.0 resolution: "markdown-it@npm:14.0.0" @@ -10422,6 +10752,15 @@ __metadata: languageName: node linkType: hard +"memoizerific@npm:^1.11.3": + version: 1.11.3 + resolution: "memoizerific@npm:1.11.3" + dependencies: + map-or-similar: "npm:^1.5.0" + checksum: 72b6b80699777d000f03db6e15fdabcd4afe77feb45be51fe195cb230c64a368fcfcfbb976375eac3283bd8193d6b1a67ac3081cae07f64fca73f1aa568d59e3 + languageName: node + linkType: hard + "merge-stream@npm:^2.0.0": version: 2.0.0 resolution: "merge-stream@npm:2.0.0" @@ -11351,6 +11690,13 @@ __metadata: languageName: node linkType: hard +"possible-typed-array-names@npm:^1.0.0": + version: 1.0.0 + resolution: "possible-typed-array-names@npm:1.0.0" + checksum: 8ed3e96dfeea1c5880c1f4c9cb707e5fb26e8be22f14f82ef92df20fd2004e635c62ba47fbe8f2bb63bfd80dac1474be2fb39798da8c2feba2815435d1f749af + languageName: node + linkType: hard + "postcss-import@npm:^15.1.0": version: 15.1.0 resolution: "postcss-import@npm:15.1.0" @@ -11837,7 +12183,7 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.522" + "@pzh-ui/components": "npm:^0.0.525" "@pzh-ui/config": "npm:^0.0.69" "@pzh-ui/css": "npm:^0.0.95" "@pzh-ui/icons": "npm:^0.0.59" @@ -11874,7 +12220,7 @@ __metadata: dotenv: "npm:^16.3.1" eslint: "npm:^8.48.0" eslint-plugin-prettier: "npm:^5.0.0" - formik: "npm:^2.4.5" + formik: "npm:^2.4.6" jsdom: "npm:^22.1.0" jwt-decode: "npm:^4.0.0" leaflet: "npm:^1.9.4" @@ -11909,6 +12255,15 @@ __metadata: languageName: unknown linkType: soft +"qs@npm:^6.10.0": + version: 6.12.1 + resolution: "qs@npm:6.12.1" + dependencies: + side-channel: "npm:^1.0.6" + checksum: 035bcad2a1ab0175bac7a74c904c15913bdac252834149ccff988c93a51de02642fe7be10e43058ba4dc4094bb28ce9b59d12b9e91d40997f445cfde3ecc1c29 + languageName: node + linkType: hard + "querystringify@npm:^2.1.1": version: 2.2.0 resolution: "querystringify@npm:2.2.0" @@ -11923,6 +12278,13 @@ __metadata: languageName: node linkType: hard +"ramda@npm:0.29.0": + version: 0.29.0 + resolution: "ramda@npm:0.29.0" + checksum: b156660f2c58b4a13bcc4f1a0eabc1145d8db11d33d26a2fb03cd6adf3983a1c1f2bbaaf708c421029e9b09684262d056752623f7e62b79a503fb9217dec69d4 + languageName: node + linkType: hard + "react-aria-components@npm:^1.1.1": version: 1.1.1 resolution: "react-aria-components@npm:1.1.1" @@ -12906,6 +13268,18 @@ __metadata: languageName: node linkType: hard +"side-channel@npm:^1.0.6": + version: 1.0.6 + resolution: "side-channel@npm:1.0.6" + dependencies: + call-bind: "npm:^1.0.7" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.4" + object-inspect: "npm:^1.13.1" + checksum: eb10944f38cebad8ad643dd02657592fa41273ce15b8bfa928d3291aff2d30c20ff777cfe908f76ccc4551ace2d1245822fdc576657cce40e9066c638ca8fa4d + languageName: node + linkType: hard + "siginfo@npm:^2.0.0": version: 2.0.0 resolution: "siginfo@npm:2.0.0" @@ -13388,6 +13762,15 @@ __metadata: languageName: node linkType: hard +"telejson@npm:^7.2.0": + version: 7.2.0 + resolution: "telejson@npm:7.2.0" + dependencies: + memoizerific: "npm:^1.11.3" + checksum: 6e89b3d3c45b5a2aced9132f6a968fcdf758c00be4c3acb115d7d81e95c9e04083a7a4a9b43057fcf48b101156c1607a38f5491615956acb28d4d1f78a4bda20 + languageName: node + linkType: hard + "test-exclude@npm:^6.0.0": version: 6.0.0 resolution: "test-exclude@npm:6.0.0" @@ -13431,6 +13814,13 @@ __metadata: languageName: node linkType: hard +"tiny-invariant@npm:^1.3.1": + version: 1.3.3 + resolution: "tiny-invariant@npm:1.3.3" + checksum: 5e185c8cc2266967984ce3b352a4e57cb89dad5a8abb0dea21468a6ecaa67cd5bb47a3b7a85d08041008644af4f667fb8b6575ba38ba5fb00b3b5068306e59fe + languageName: node + linkType: hard + "tiny-warning@npm:^1.0.2": version: 1.0.3 resolution: "tiny-warning@npm:1.0.3" @@ -13528,6 +13918,13 @@ __metadata: languageName: node linkType: hard +"ts-dedent@npm:^2.0.0": + version: 2.2.0 + resolution: "ts-dedent@npm:2.2.0" + checksum: 93ed8f7878b6d5ed3c08d99b740010eede6bccfe64bce61c5a4da06a2c17d6ddbb80a8c49c2d15251de7594a4f93ffa21dd10e7be75ef66a4dc9951b4a94e2af + languageName: node + linkType: hard + "ts-interface-checker@npm:^0.1.9": version: 0.1.13 resolution: "ts-interface-checker@npm:0.1.13" @@ -13875,6 +14272,19 @@ __metadata: languageName: node linkType: hard +"util@npm:^0.12.4": + version: 0.12.5 + resolution: "util@npm:0.12.5" + dependencies: + inherits: "npm:^2.0.3" + is-arguments: "npm:^1.0.4" + is-generator-function: "npm:^1.0.7" + is-typed-array: "npm:^1.1.3" + which-typed-array: "npm:^1.1.2" + checksum: 61a10de7753353dd4d744c917f74cdd7d21b8b46379c1e48e1c4fd8e83f8190e6bd9978fc4e5102ab6a10ebda6019d1b36572fa4a325e175ec8b789a121f6147 + languageName: node + linkType: hard + "utility-types@npm:^3.10.0": version: 3.11.0 resolution: "utility-types@npm:3.11.0" @@ -14190,6 +14600,19 @@ __metadata: languageName: node linkType: hard +"which-typed-array@npm:^1.1.2": + version: 1.1.15 + resolution: "which-typed-array@npm:1.1.15" + dependencies: + available-typed-arrays: "npm:^1.0.7" + call-bind: "npm:^1.0.7" + for-each: "npm:^0.3.3" + gopd: "npm:^1.0.1" + has-tostringtag: "npm:^1.0.2" + checksum: c3b6a99beadc971baa53c3ee5b749f2b9bdfa3b3b9a70650dd8511a48b61d877288b498d424712e9991d16019633086bd8b5923369460d93463c5825fa36c448 + languageName: node + linkType: hard + "which@npm:^2.0.1": version: 2.0.2 resolution: "which@npm:2.0.2" From 762f12b915f38775206c3b8c8fa704c39a04dd50 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 21 May 2024 10:51:20 +0200 Subject: [PATCH 61/82] Update vite config --- package.json | 2 +- vite.config.ts | 2 - yarn.lock | 478 ++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 477 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7ab3d468..3d8043fb 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "sass": "^1.63.6", "tailwindcss": "^3.4.1", "typescript": "^5.3.3", - "vite": "^5.1.1", + "vite": "^5.2.11", "vite-plugin-svgr": "^4.2.0", "vite-tsconfig-paths": "^4.3.1", "vitest": "^1.0.4" diff --git a/vite.config.ts b/vite.config.ts index 5ef6c2fe..88f2d545 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -34,9 +34,7 @@ export default defineConfig({ '@tiptap/extension-placeholder', '@tiptap/extension-text', '@tiptap/extension-underline', - '@tiptap/react', ], - 'react-select': ['react-select'], leaflet: [ 'leaflet', 'leaflet-draw', diff --git a/yarn.lock b/yarn.lock index 90ce57e2..1b6ae4dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1729,6 +1729,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/aix-ppc64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/aix-ppc64@npm:0.20.2" + conditions: os=aix & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/android-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/android-arm64@npm:0.19.11" @@ -1743,6 +1750,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/android-arm64@npm:0.20.2" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/android-arm@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/android-arm@npm:0.19.11" @@ -1757,6 +1771,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/android-arm@npm:0.20.2" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@esbuild/android-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/android-x64@npm:0.19.11" @@ -1771,6 +1792,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/android-x64@npm:0.20.2" + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + "@esbuild/darwin-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/darwin-arm64@npm:0.19.11" @@ -1785,6 +1813,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/darwin-arm64@npm:0.20.2" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/darwin-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/darwin-x64@npm:0.19.11" @@ -1799,6 +1834,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/darwin-x64@npm:0.20.2" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@esbuild/freebsd-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/freebsd-arm64@npm:0.19.11" @@ -1813,6 +1855,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/freebsd-arm64@npm:0.20.2" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/freebsd-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/freebsd-x64@npm:0.19.11" @@ -1827,6 +1876,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/freebsd-x64@npm:0.20.2" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/linux-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-arm64@npm:0.19.11" @@ -1841,6 +1897,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-arm64@npm:0.20.2" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/linux-arm@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-arm@npm:0.19.11" @@ -1855,6 +1918,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-arm@npm:0.20.2" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + "@esbuild/linux-ia32@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-ia32@npm:0.19.11" @@ -1869,6 +1939,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ia32@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-ia32@npm:0.20.2" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/linux-loong64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-loong64@npm:0.19.11" @@ -1883,6 +1960,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-loong64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-loong64@npm:0.20.2" + conditions: os=linux & cpu=loong64 + languageName: node + linkType: hard + "@esbuild/linux-mips64el@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-mips64el@npm:0.19.11" @@ -1897,6 +1981,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-mips64el@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-mips64el@npm:0.20.2" + conditions: os=linux & cpu=mips64el + languageName: node + linkType: hard + "@esbuild/linux-ppc64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-ppc64@npm:0.19.11" @@ -1911,6 +2002,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ppc64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-ppc64@npm:0.20.2" + conditions: os=linux & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/linux-riscv64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-riscv64@npm:0.19.11" @@ -1925,6 +2023,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-riscv64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-riscv64@npm:0.20.2" + conditions: os=linux & cpu=riscv64 + languageName: node + linkType: hard + "@esbuild/linux-s390x@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-s390x@npm:0.19.11" @@ -1939,6 +2044,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-s390x@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-s390x@npm:0.20.2" + conditions: os=linux & cpu=s390x + languageName: node + linkType: hard + "@esbuild/linux-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-x64@npm:0.19.11" @@ -1953,6 +2065,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-x64@npm:0.20.2" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + "@esbuild/netbsd-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/netbsd-x64@npm:0.19.11" @@ -1967,6 +2086,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/netbsd-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/netbsd-x64@npm:0.20.2" + conditions: os=netbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/openbsd-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/openbsd-x64@npm:0.19.11" @@ -1981,6 +2107,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/openbsd-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/openbsd-x64@npm:0.20.2" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/sunos-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/sunos-x64@npm:0.19.11" @@ -1995,6 +2128,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/sunos-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/sunos-x64@npm:0.20.2" + conditions: os=sunos & cpu=x64 + languageName: node + linkType: hard + "@esbuild/win32-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/win32-arm64@npm:0.19.11" @@ -2009,6 +2149,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/win32-arm64@npm:0.20.2" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/win32-ia32@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/win32-ia32@npm:0.19.11" @@ -2023,6 +2170,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-ia32@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/win32-ia32@npm:0.20.2" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/win32-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/win32-x64@npm:0.19.11" @@ -2037,6 +2191,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/win32-x64@npm:0.20.2" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@eslint-community/eslint-utils@npm:^4.2.0": version: 4.4.0 resolution: "@eslint-community/eslint-utils@npm:4.4.0" @@ -4346,6 +4507,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm-eabi@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.17.2" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@rollup/rollup-android-arm64@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-android-arm64@npm:4.10.0" @@ -4353,6 +4521,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm64@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-android-arm64@npm:4.17.2" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-darwin-arm64@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-darwin-arm64@npm:4.10.0" @@ -4360,6 +4535,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-darwin-arm64@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-darwin-arm64@npm:4.17.2" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-darwin-x64@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-darwin-x64@npm:4.10.0" @@ -4367,6 +4549,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-darwin-x64@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-darwin-x64@npm:4.17.2" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@rollup/rollup-linux-arm-gnueabihf@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.10.0" @@ -4374,6 +4563,20 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm-gnueabihf@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.17.2" + conditions: os=linux & cpu=arm & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-arm-musleabihf@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.17.2" + conditions: os=linux & cpu=arm & libc=musl + languageName: node + linkType: hard + "@rollup/rollup-linux-arm64-gnu@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.10.0" @@ -4381,6 +4584,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm64-gnu@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.17.2" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-arm64-musl@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-linux-arm64-musl@npm:4.10.0" @@ -4388,6 +4598,20 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm64-musl@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.17.2" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@rollup/rollup-linux-powerpc64le-gnu@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.17.2" + conditions: os=linux & cpu=ppc64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-riscv64-gnu@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.10.0" @@ -4395,6 +4619,20 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-riscv64-gnu@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.17.2" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-s390x-gnu@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.17.2" + conditions: os=linux & cpu=s390x & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-x64-gnu@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-linux-x64-gnu@npm:4.10.0" @@ -4402,6 +4640,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-x64-gnu@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.17.2" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-x64-musl@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-linux-x64-musl@npm:4.10.0" @@ -4409,6 +4654,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-x64-musl@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.17.2" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + "@rollup/rollup-win32-arm64-msvc@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.10.0" @@ -4416,6 +4668,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-arm64-msvc@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.17.2" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-win32-ia32-msvc@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.10.0" @@ -4423,6 +4682,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-ia32-msvc@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.17.2" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@rollup/rollup-win32-x64-msvc@npm:4.10.0": version: 4.10.0 resolution: "@rollup/rollup-win32-x64-msvc@npm:4.10.0" @@ -4430,6 +4696,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-x64-msvc@npm:4.17.2": + version: 4.17.2 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.17.2" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@sinclair/typebox@npm:^0.27.8": version: 0.27.8 resolution: "@sinclair/typebox@npm:0.27.8" @@ -8527,6 +8800,86 @@ __metadata: languageName: node linkType: hard +"esbuild@npm:^0.20.1": + version: 0.20.2 + resolution: "esbuild@npm:0.20.2" + dependencies: + "@esbuild/aix-ppc64": "npm:0.20.2" + "@esbuild/android-arm": "npm:0.20.2" + "@esbuild/android-arm64": "npm:0.20.2" + "@esbuild/android-x64": "npm:0.20.2" + "@esbuild/darwin-arm64": "npm:0.20.2" + "@esbuild/darwin-x64": "npm:0.20.2" + "@esbuild/freebsd-arm64": "npm:0.20.2" + "@esbuild/freebsd-x64": "npm:0.20.2" + "@esbuild/linux-arm": "npm:0.20.2" + "@esbuild/linux-arm64": "npm:0.20.2" + "@esbuild/linux-ia32": "npm:0.20.2" + "@esbuild/linux-loong64": "npm:0.20.2" + "@esbuild/linux-mips64el": "npm:0.20.2" + "@esbuild/linux-ppc64": "npm:0.20.2" + "@esbuild/linux-riscv64": "npm:0.20.2" + "@esbuild/linux-s390x": "npm:0.20.2" + "@esbuild/linux-x64": "npm:0.20.2" + "@esbuild/netbsd-x64": "npm:0.20.2" + "@esbuild/openbsd-x64": "npm:0.20.2" + "@esbuild/sunos-x64": "npm:0.20.2" + "@esbuild/win32-arm64": "npm:0.20.2" + "@esbuild/win32-ia32": "npm:0.20.2" + "@esbuild/win32-x64": "npm:0.20.2" + dependenciesMeta: + "@esbuild/aix-ppc64": + optional: true + "@esbuild/android-arm": + optional: true + "@esbuild/android-arm64": + optional: true + "@esbuild/android-x64": + optional: true + "@esbuild/darwin-arm64": + optional: true + "@esbuild/darwin-x64": + optional: true + "@esbuild/freebsd-arm64": + optional: true + "@esbuild/freebsd-x64": + optional: true + "@esbuild/linux-arm": + optional: true + "@esbuild/linux-arm64": + optional: true + "@esbuild/linux-ia32": + optional: true + "@esbuild/linux-loong64": + optional: true + "@esbuild/linux-mips64el": + optional: true + "@esbuild/linux-ppc64": + optional: true + "@esbuild/linux-riscv64": + optional: true + "@esbuild/linux-s390x": + optional: true + "@esbuild/linux-x64": + optional: true + "@esbuild/netbsd-x64": + optional: true + "@esbuild/openbsd-x64": + optional: true + "@esbuild/sunos-x64": + optional: true + "@esbuild/win32-arm64": + optional: true + "@esbuild/win32-ia32": + optional: true + "@esbuild/win32-x64": + optional: true + bin: + esbuild: bin/esbuild + checksum: 663215ab7e599651e00d61b528a63136e1f1d397db8b9c3712540af928c9476d61da95aefa81b7a8dfc7a9fdd7616fcf08395c27be68be8c99953fb461863ce4 + languageName: node + linkType: hard + "escalade@npm:^3.1.1": version: 3.1.2 resolution: "escalade@npm:3.1.2" @@ -11788,6 +12141,17 @@ __metadata: languageName: node linkType: hard +"postcss@npm:^8.4.38": + version: 8.4.38 + resolution: "postcss@npm:8.4.38" + dependencies: + nanoid: "npm:^3.3.7" + picocolors: "npm:^1.0.0" + source-map-js: "npm:^1.2.0" + checksum: 6e44a7ed835ffa9a2b096e8d3e5dfc6bcf331a25c48aeb862dd54e3aaecadf814fa22be224fd308f87d08adf2299164f88c5fd5ab1c4ef6cbd693ceb295377f4 + languageName: node + linkType: hard + "prelude-ls@npm:^1.2.1": version: 1.2.1 resolution: "prelude-ls@npm:1.2.1" @@ -12245,7 +12609,7 @@ __metadata: tailwindcss: "npm:^3.4.1" typescript: "npm:^5.3.3" uuid: "npm:^9.0.1" - vite: "npm:^5.1.1" + vite: "npm:^5.2.11" vite-plugin-svgr: "npm:^4.2.0" vite-tsconfig-paths: "npm:^4.3.1" vitest: "npm:^1.0.4" @@ -12935,6 +13299,69 @@ __metadata: languageName: node linkType: hard +"rollup@npm:^4.13.0": + version: 4.17.2 + resolution: "rollup@npm:4.17.2" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.17.2" + "@rollup/rollup-android-arm64": "npm:4.17.2" + "@rollup/rollup-darwin-arm64": "npm:4.17.2" + "@rollup/rollup-darwin-x64": "npm:4.17.2" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.17.2" + "@rollup/rollup-linux-arm-musleabihf": "npm:4.17.2" + "@rollup/rollup-linux-arm64-gnu": "npm:4.17.2" + "@rollup/rollup-linux-arm64-musl": "npm:4.17.2" + "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.17.2" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.17.2" + "@rollup/rollup-linux-s390x-gnu": "npm:4.17.2" + "@rollup/rollup-linux-x64-gnu": "npm:4.17.2" + "@rollup/rollup-linux-x64-musl": "npm:4.17.2" + "@rollup/rollup-win32-arm64-msvc": "npm:4.17.2" + "@rollup/rollup-win32-ia32-msvc": "npm:4.17.2" + "@rollup/rollup-win32-x64-msvc": "npm:4.17.2" + "@types/estree": "npm:1.0.5" + fsevents: "npm:~2.3.2" + dependenciesMeta: + "@rollup/rollup-android-arm-eabi": + optional: true + "@rollup/rollup-android-arm64": + optional: true + "@rollup/rollup-darwin-arm64": + optional: true + "@rollup/rollup-darwin-x64": + optional: true + "@rollup/rollup-linux-arm-gnueabihf": + optional: true + "@rollup/rollup-linux-arm-musleabihf": + optional: true + "@rollup/rollup-linux-arm64-gnu": + optional: true + "@rollup/rollup-linux-arm64-musl": + optional: true + "@rollup/rollup-linux-powerpc64le-gnu": + optional: true + "@rollup/rollup-linux-riscv64-gnu": + optional: true + "@rollup/rollup-linux-s390x-gnu": + optional: true + "@rollup/rollup-linux-x64-gnu": + optional: true + "@rollup/rollup-linux-x64-musl": + optional: true + "@rollup/rollup-win32-arm64-msvc": + optional: true + "@rollup/rollup-win32-ia32-msvc": + optional: true + "@rollup/rollup-win32-x64-msvc": + optional: true + fsevents: + optional: true + bin: + rollup: dist/bin/rollup + checksum: a021d57f73d746340a1c2b3a03ef0b3bb7f3c837e6acd9aa78b1b1234011aa5b5271b0ef25abba2c1ed268b5e2c90c39a0f8194bcf825728be720f9f2496b248 + languageName: node + linkType: hard + "rollup@npm:^4.2.0": version: 4.10.0 resolution: "rollup@npm:4.10.0" @@ -13362,6 +13789,13 @@ __metadata: languageName: node linkType: hard +"source-map-js@npm:^1.2.0": + version: 1.2.0 + resolution: "source-map-js@npm:1.2.0" + checksum: 74f331cfd2d121c50790c8dd6d3c9de6be21926de80583b23b37029b0f37aefc3e019fa91f9a10a5e120c08135297e1ecf312d561459c45908cb1e0e365f49e5 + languageName: node + linkType: hard + "source-map@npm:^0.5.7": version: 0.5.7 resolution: "source-map@npm:0.5.7" @@ -14363,7 +14797,7 @@ __metadata: languageName: node linkType: hard -"vite@npm:^5.0.0, vite@npm:^5.1.1": +"vite@npm:^5.0.0": version: 5.1.1 resolution: "vite@npm:5.1.1" dependencies: @@ -14403,6 +14837,46 @@ __metadata: languageName: node linkType: hard +"vite@npm:^5.2.11": + version: 5.2.11 + resolution: "vite@npm:5.2.11" + dependencies: + esbuild: "npm:^0.20.1" + fsevents: "npm:~2.3.3" + postcss: "npm:^8.4.38" + rollup: "npm:^4.13.0" + peerDependencies: + "@types/node": ^18.0.0 || >=20.0.0 + less: "*" + lightningcss: ^1.21.0 + sass: "*" + stylus: "*" + sugarss: "*" + terser: ^5.4.0 + dependenciesMeta: + fsevents: + optional: true + peerDependenciesMeta: + "@types/node": + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + bin: + vite: bin/vite.js + checksum: ee0ad038f0831c9514796522deb1e2dcb84bc311abbccb77e4b12216d37fc9559137f4f1b8e75187d51007b954e845c6518e36ee3acac2e2a2789c1181ebb16c + languageName: node + linkType: hard + "vitest@npm:^1.0.4": version: 1.2.2 resolution: "vitest@npm:1.2.2" From abcef50ce564f704c5cfac22cc4c5e5574a0747a Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Wed, 22 May 2024 17:06:45 +0200 Subject: [PATCH 62/82] Update packages, put back tests --- package.json | 2 +- src/components/LoginForm/LoginForm.test.tsx | 55 +++++++++++++++++++++ src/pages/public/Login/Login.test.tsx | 27 ++++++++++ yarn.lock | 35 +++---------- 4 files changed, 90 insertions(+), 29 deletions(-) create mode 100644 src/components/LoginForm/LoginForm.test.tsx create mode 100644 src/pages/public/Login/Login.test.tsx diff --git a/package.json b/package.json index 3d8043fb..1ca78c3c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.525", + "@pzh-ui/components": "^0.0.526", "@pzh-ui/config": "^0.0.69", "@pzh-ui/css": "^0.0.95", "@pzh-ui/icons": "^0.0.59", diff --git a/src/components/LoginForm/LoginForm.test.tsx b/src/components/LoginForm/LoginForm.test.tsx new file mode 100644 index 00000000..5d3755ac --- /dev/null +++ b/src/components/LoginForm/LoginForm.test.tsx @@ -0,0 +1,55 @@ +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' +import { fireEvent, render, screen } from '@testing-library/react' +import { MemoryRouter } from 'react-router-dom' + +import AuthProvider from '@/context/AuthContext' + +import LoginForm from './LoginForm' + +const queryClient = new QueryClient() + +describe('LoginForm', () => { + const setup = () => { + const loginStatePromise = Promise.resolve() + const loginUserPromise = Promise.resolve() + + render( + + + + + + + + ) + + return { + loginStatePromise, + loginUserPromise, + } + } + + const fillLoginForm = () => { + const inputUsername = screen.getByLabelText( + 'E-mailadres' + ) as HTMLInputElement + const inputPassword = screen.getByLabelText( + 'Wachtwoord' + ) as HTMLInputElement + fireEvent.change(inputUsername, { target: { value: 'E-mail' } }) + fireEvent.change(inputPassword, { target: { value: 'Password' } }) + + return { inputUsername, inputPassword } + } + + it('user can type their credentials', () => { + setup() + const { inputUsername, inputPassword } = fillLoginForm() + + expect(inputUsername).toBeTruthy() + expect(inputPassword).toBeTruthy() + + expect(inputUsername.value).toBe('E-mail') + expect(inputPassword.value).toBe('Password') + }) +}) diff --git a/src/pages/public/Login/Login.test.tsx b/src/pages/public/Login/Login.test.tsx new file mode 100644 index 00000000..baf133b2 --- /dev/null +++ b/src/pages/public/Login/Login.test.tsx @@ -0,0 +1,27 @@ +import { QueryClient, QueryClientProvider } from '@tanstack/react-query' +import { render, screen } from '@testing-library/react' +import { BrowserRouter } from 'react-router-dom' + +import AuthProvider from '@/context/AuthContext' + +import Login from './Login' + +const queryClient = new QueryClient() + +describe('Login', () => { + it('should render', () => { + render( + + + + + + + + ) + const header = screen.getByRole('heading', { + name: 'Inloggen', + }) + expect(header).toBeInTheDocument() + }) +}) diff --git a/yarn.lock b/yarn.lock index 1b6ae4dd..00758967 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2816,9 +2816,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.525": - version: 0.0.525 - resolution: "@pzh-ui/components@npm:0.0.525" +"@pzh-ui/components@npm:^0.0.526": + version: 0.0.526 + resolution: "@pzh-ui/components@npm:0.0.526" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" @@ -2858,18 +2858,18 @@ __metadata: clsx: "npm:^2.1.0" date-fns: "npm:^3.3.1" formik: "npm:^2.4.6" - react: "npm:^18.2.0" + react: "npm:^18.3.1" react-aria: "npm:^3.32.1" react-aria-components: "npm:^1.1.1" react-datepicker: "npm:^6.9.0" - react-dom: "npm:^18.2.0" + react-dom: "npm:^18.3.1" react-dropzone-esm: "npm:^15.0.1" react-responsive-pagination: "npm:^2.4.2" react-select: "npm:^5.8.0" react-stately: "npm:^3.30.1" react-toastify: "npm:^9.1.2" tailwind-merge: "npm:^2.2.2" - checksum: 1aa44f49cc0919e7da5e91e3ebc175f7b57c27b13e3a0a75bc05ed81d38d4f72882fc8f68f612aa0c41ee04f0fbec7325a163a684f28ac4fc0d52c3df4729cac + checksum: 2658ad34913a840e260a63b32083a1103cb88475150e13dae05cba632e398f883ca4c132c6a31192a626207bbc79c52a4c8afa0aa7ecf9ccf8db230b309c82b6 languageName: node linkType: hard @@ -12547,7 +12547,7 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.525" + "@pzh-ui/components": "npm:^0.0.526" "@pzh-ui/config": "npm:^0.0.69" "@pzh-ui/css": "npm:^0.0.95" "@pzh-ui/icons": "npm:^0.0.59" @@ -12769,18 +12769,6 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:^18.2.0": - version: 18.2.0 - resolution: "react-dom@npm:18.2.0" - dependencies: - loose-envify: "npm:^1.1.0" - scheduler: "npm:^0.23.0" - peerDependencies: - react: ^18.2.0 - checksum: ca5e7762ec8c17a472a3605b6f111895c9f87ac7d43a610ab7024f68cd833d08eda0625ce02ec7178cc1f3c957cf0b9273cdc17aa2cd02da87544331c43b1d21 - languageName: node - linkType: hard - "react-dom@npm:^18.3.1": version: 18.3.1 resolution: "react-dom@npm:18.3.1" @@ -13521,15 +13509,6 @@ __metadata: languageName: node linkType: hard -"scheduler@npm:^0.23.0": - version: 0.23.0 - resolution: "scheduler@npm:0.23.0" - dependencies: - loose-envify: "npm:^1.1.0" - checksum: 0c4557aa37bafca44ff21dc0ea7c92e2dbcb298bc62eae92b29a39b029134f02fb23917d6ebc8b1fa536b4184934314c20d8864d156a9f6357f3398aaf7bfda8 - languageName: node - linkType: hard - "scheduler@npm:^0.23.2": version: 0.23.2 resolution: "scheduler@npm:0.23.2" From 208c29212ffb92e41471a997e5056d1049c8e0ed Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Wed, 22 May 2024 17:39:23 +0200 Subject: [PATCH 63/82] Update Geoserver endpoint --- src/api/axiosGeoJSON.ts | 30 +++++++++++-------- .../LeafletLayers/LeafletAreaLayer.tsx | 8 +++-- .../LeafletTinyViewer/LeafletTinyViewer.tsx | 15 ++++++---- .../utils/handleWerkingsgebiedSelect.tsx | 6 ++-- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/src/api/axiosGeoJSON.ts b/src/api/axiosGeoJSON.ts index a3ad94af..acccd04d 100644 --- a/src/api/axiosGeoJSON.ts +++ b/src/api/axiosGeoJSON.ts @@ -7,7 +7,7 @@ export interface Feature { id: string properties: { Onderverdeling?: string - Gebied?: string + Werkingsgebied?: string UUID: string symbol: string } @@ -22,7 +22,9 @@ const api_version = '1.3.0' // https://geo-omgevingsbeleid-test.azurewebsites.net/OMGEVINGSBELEID/wms?service=WMS&version=1.1.0&request=GetMap&layers=OMGEVINGSBELEID%3AWerkingsgebieden&bbox=43662.62000000104%2C406692.0%2C138647.9990000017%2C483120.0&width=768&height=617&srs=EPSG%3A28992&format=application/openlayers const instance = axios.create({ - baseURL: `${import.meta.env.VITE_GEOSERVER_API_URL}/OMGEVINGSBELEID/`, + baseURL: `${ + import.meta.env.VITE_GEOSERVER_API_URL + }/geoserver/Omgevingsbeleid/wms`, headers: { 'Content-Type': 'application/json', }, @@ -36,7 +38,7 @@ const fetchData = async ( const queryString = generateQueryString(params) try { - const response = await instance.get(`ows?${queryString}`, config) + const response = await instance.get(`?${queryString}`, config) return response.data } catch (error) { // Handle error if necessary @@ -54,7 +56,7 @@ const getGeoJsonData = async ( service: 'wfs', version: api_version, request: 'GetFeature', - typeNames: `OMGEVINGSBELEID:${type}`, + typeNames: `Omgevingsbeleid:${type}`, cql_filter: `UUID='${UUID}'`, outputFormat: 'application/json', } @@ -70,7 +72,7 @@ const getOnderverdeling = async ( service: 'wfs', version: api_version, request: 'GetFeature', - typeName: 'OMGEVINGSBELEID:Werkingsgebieden_Onderverdeling', + typeName: 'Omgevingsbeleid:Werkingsgebieden_Onderverdeling', outputFormat: 'application/json', cql_filter: `UUID='${UUID}'`, propertyName: 'Onderverdeling,symbol,UUID', @@ -87,10 +89,10 @@ const getWerkingsgebied = async ( service: 'wfs', version: api_version, request: 'GetFeature', - typeName: 'OMGEVINGSBELEID:Werkingsgebieden', + typeName: 'Omgevingsbeleid:Werkingsgebieden', outputFormat: 'application/json', cql_filter: `UUID='${UUID}'`, - propertyName: 'Gebied,symbol,UUID', + propertyName: 'Werkingsgebied,UUID', } return fetchData(params, config) @@ -106,9 +108,9 @@ const getWerkingsGebieden = async ( version: api_version, request: 'GetFeature', outputFormat: 'application/json', - typeName: 'OMGEVINGSBELEID:Werkingsgebieden', + typeName: 'Omgevingsbeleid:Werkingsgebieden', cql_filter: `INTERSECTS(Shape, POINT (${pointA} ${pointB}))`, - propertyName: 'UUID,Gebied', + propertyName: 'UUID,Werkingsgebied', } const data = await fetchData(params, config) @@ -128,9 +130,9 @@ const getWerkingsGebiedenByArea = async ( version: '1.1.0', request: 'GetFeature', outputFormat: 'application/json', - typeName: 'OMGEVINGSBELEID:Werkingsgebieden', + typeName: 'Omgevingsbeleid:Werkingsgebieden', cql_filter: `CONTAINS(Shape, POLYGON ((${polygon})))`, - propertyName: 'UUID,Gebied', + propertyName: 'UUID,Werkingsgebied', } return fetchData(params, config) @@ -141,7 +143,7 @@ const generateImageUrl = (symbol: string) => { version: api_version, request: 'GetLegendGraphic', format: 'image/png', - layer: 'OMGEVINGSBELEID:Werkingsgebieden', + layer: 'Omgevingsbeleid:Werkingsgebieden', width: 20, height: 20, rule: symbol, @@ -149,7 +151,9 @@ const generateImageUrl = (symbol: string) => { const path = generateQueryString(params) - return `${import.meta.env.VITE_GEOSERVER_API_URL}/wms?${path}` + return `${ + import.meta.env.VITE_GEOSERVER_API_URL + }/geoserver/Omgevingsbeleid/wms?${path}` } export default instance diff --git a/src/components/Leaflet/LeafletLayers/LeafletAreaLayer.tsx b/src/components/Leaflet/LeafletLayers/LeafletAreaLayer.tsx index a407a71d..247d9f34 100644 --- a/src/components/Leaflet/LeafletLayers/LeafletAreaLayer.tsx +++ b/src/components/Leaflet/LeafletLayers/LeafletAreaLayer.tsx @@ -57,7 +57,7 @@ const LeafletAreaLayer = ({ {layer.feature.properties.Onderverdeling || - layer.feature.properties.Gebied} + layer.feature.properties.Werkingsgebied}
    @@ -77,7 +77,9 @@ const LeafletAreaLayer = ({ )} onClick={() => { onClick?.( - properties?.Onderverdeling || properties?.Gebied || '' + properties?.Onderverdeling || + properties?.Werkingsgebied || + '' ) }}>
    @@ -95,7 +97,7 @@ const LeafletAreaLayer = ({ className={classNames({ 'line-through': !providedIsActive, })}> - {properties?.Onderverdeling || properties?.Gebied} + {properties?.Onderverdeling || properties?.Werkingsgebied}
    diff --git a/src/components/Leaflet/LeafletTinyViewer/LeafletTinyViewer.tsx b/src/components/Leaflet/LeafletTinyViewer/LeafletTinyViewer.tsx index a0f5775b..1b0c85ba 100644 --- a/src/components/Leaflet/LeafletTinyViewer/LeafletTinyViewer.tsx +++ b/src/components/Leaflet/LeafletTinyViewer/LeafletTinyViewer.tsx @@ -66,23 +66,26 @@ const LeafletTinyViewerInner = ({ uuid }: LeafletTinyViewerProps) => { transparent: true, cql_filter: `UUID='${uuid}'`, tiled: true, - maxFeatures: 50, updateWhenZooming: false, tileSize: 512, } const layerInstance = Leaflet.tileLayer.wms( - `${import.meta.env.VITE_GEOSERVER_API_URL}/ows`, + `${ + import.meta.env.VITE_GEOSERVER_API_URL + }/geoserver/Omgevingsbeleid/wms`, { - layers: 'OMGEVINGSBELEID:Werkingsgebieden', + layers: 'Omgevingsbeleid:Werkingsgebieden', zIndex: 1, ...defaultLayerOptions, } ) const subLayerInstance = Leaflet.tileLayer.wms( - `${import.meta.env.VITE_GEOSERVER_API_URL}/ows`, + `${ + import.meta.env.VITE_GEOSERVER_API_URL + }/geoserver/Omgevingsbeleid/wms`, { - layers: 'OMGEVINGSBELEID:Werkingsgebieden_Onderverdeling', + layers: 'Omgevingsbeleid:Werkingsgebieden_Onderverdeling', zIndex: 2, ...defaultLayerOptions, } @@ -105,7 +108,7 @@ const LeafletTinyViewerInner = ({ uuid }: LeafletTinyViewerProps) => { } useEffect( - () => onderverdeling && werkingsgebied && initializeMap(), + () => (onderverdeling || werkingsgebied) && initializeMap(), // eslint-disable-next-line react-hooks/exhaustive-deps [onderverdeling, werkingsgebied] ) diff --git a/src/pages/public/MapSearch/utils/handleWerkingsgebiedSelect.tsx b/src/pages/public/MapSearch/utils/handleWerkingsgebiedSelect.tsx index bc7c0898..f8bad0f5 100644 --- a/src/pages/public/MapSearch/utils/handleWerkingsgebiedSelect.tsx +++ b/src/pages/public/MapSearch/utils/handleWerkingsgebiedSelect.tsx @@ -16,9 +16,11 @@ const handleWerkingsgebiedSelect = async ( } const layerInstance = Leaflet.tileLayer.wms( - `${import.meta.env.VITE_GEOSERVER_API_URL}/ows`, + `${ + import.meta.env.VITE_GEOSERVER_API_URL + }/geoserver/Omgevingsbeleid/wms`, { - layers: 'OMGEVINGSBELEID:Werkingsgebieden', + layers: 'Omgevingsbeleid:Werkingsgebieden', version: '1.3.0', format: 'image/png', transparent: true, From 785fef7790b21b19cb20ab0f39db4a763dbd085e Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 27 May 2024 10:02:43 +0200 Subject: [PATCH 64/82] Update --- .../Modules/ModuleItemList/ModuleItemList.tsx | 2 +- .../SidebarInformation/SidebarInformation.tsx | 41 +++++-------------- 2 files changed, 12 insertions(+), 31 deletions(-) diff --git a/src/components/Modules/ModuleItemList/ModuleItemList.tsx b/src/components/Modules/ModuleItemList/ModuleItemList.tsx index 13663bcd..9c12144a 100644 --- a/src/components/Modules/ModuleItemList/ModuleItemList.tsx +++ b/src/components/Modules/ModuleItemList/ModuleItemList.tsx @@ -119,7 +119,7 @@ const ItemList = ({ {title} {!!objects?.length ? ( -
    +
    {objects.map(object => { const model = models[ diff --git a/src/pages/public/MapSearch/SidebarInformation/SidebarInformation.tsx b/src/pages/public/MapSearch/SidebarInformation/SidebarInformation.tsx index 1238713b..fc9934ee 100644 --- a/src/pages/public/MapSearch/SidebarInformation/SidebarInformation.tsx +++ b/src/pages/public/MapSearch/SidebarInformation/SidebarInformation.tsx @@ -2,11 +2,10 @@ import { Transition } from '@headlessui/react' import { FieldSelect, Heading, Text } from '@pzh-ui/components' import { ArrowLeft, DrawPolygon, LocationDot } from '@pzh-ui/icons' import Leaflet, { latLng } from 'leaflet' -import groupBy from 'lodash.groupby' import { ReactNode, useEffect, useMemo, useState } from 'react' import { useNavigate } from 'react-router-dom' -import { useSourceWerkingsgebiedenGet } from '@/api/fetchers' +import { useWerkingsgebiedenValidGet } from '@/api/fetchers' import { LeafletSearchInput } from '@/components/Leaflet' import { MAP_SEARCH_PAGE } from '@/constants/leaflet' import useSearchParam from '@/hooks/useSearchParam' @@ -33,7 +32,7 @@ const SidebarInformation = ({ onDraw }: SidebarInformationProps) => { const [werkingsgebied, setWerkingsgebied] = useState(null) - const { data, isLoading } = useSourceWerkingsgebiedenGet({ + const { data, isLoading } = useWerkingsgebiedenValidGet({ limit: 1000, sort_column: 'Title', sort_order: 'ASC', @@ -43,32 +42,14 @@ const SidebarInformation = ({ onDraw }: SidebarInformationProps) => { [data, paramWerkingsgebied] ) - const options = useMemo(() => { - const filteredData = data?.results.filter( - item => - !!item.Start_Validity && - !!item.End_Validity && - new Date(item.Start_Validity).getTime() < - new Date().getTime() && - new Date(item.End_Validity).getTime() > new Date().getTime() - ) - - const grouped = groupBy(filteredData, 'Title') - const newest = Object.keys(grouped).map(item => { - const label = item - - const sortedData = grouped[item].sort( - (a, b) => - new Date(b.Modified_Date).getTime() - - new Date(a.Modified_Date).getTime() - ) - const value = sortedData[0].UUID - - return { label, value } - }) - - return newest - }, [data]) + const options = useMemo( + () => + data?.results.map(option => ({ + label: option.Title, + value: option.Area_UUID, + })), + [data] + ) const goBack = () => { navigate(MAP_SEARCH_PAGE) @@ -197,7 +178,7 @@ const SidebarInformation = ({ onDraw }: SidebarInformationProps) => { } menuPlacement="auto" isLoading={isLoading} - onChange={val => { + onChange={(val: any) => { remove('geoQuery') set( 'werkingsgebied', From b7e91ca6ecaa1f6f2bed58f6b8358286237d54b4 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 27 May 2024 10:07:02 +0200 Subject: [PATCH 65/82] AB#17639 AB#18622 From 6ec8e139b5fab9fea1d7cfbbc98ca0189f2a6cfc Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 28 May 2024 09:00:23 +0200 Subject: [PATCH 66/82] Revert change --- src/components/Modules/ModuleItemList/ModuleItemList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Modules/ModuleItemList/ModuleItemList.tsx b/src/components/Modules/ModuleItemList/ModuleItemList.tsx index 13663bcd..9c12144a 100644 --- a/src/components/Modules/ModuleItemList/ModuleItemList.tsx +++ b/src/components/Modules/ModuleItemList/ModuleItemList.tsx @@ -119,7 +119,7 @@ const ItemList = ({ {title} {!!objects?.length ? ( -
    +
    {objects.map(object => { const model = models[ From ede124c73708c45fed3589b9e89b22d0518a5231 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 28 May 2024 09:25:23 +0200 Subject: [PATCH 67/82] Revert change --- src/components/Modules/ModuleItemList/ModuleItemList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Modules/ModuleItemList/ModuleItemList.tsx b/src/components/Modules/ModuleItemList/ModuleItemList.tsx index 13663bcd..9c12144a 100644 --- a/src/components/Modules/ModuleItemList/ModuleItemList.tsx +++ b/src/components/Modules/ModuleItemList/ModuleItemList.tsx @@ -119,7 +119,7 @@ const ItemList = ({ {title} {!!objects?.length ? ( -
    +
    {objects.map(object => { const model = models[ From ed63b47ba06701639e8377890a12b0b8fe885729 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 28 May 2024 13:51:58 +0200 Subject: [PATCH 68/82] Update FieldRte validation --- package.json | 10 +- .../Network/NetworkTextual/NetworkTextual.tsx | 37 +- src/validation/dynamicObject.ts | 9 +- src/validation/zodSchema.ts | 23 +- yarn.lock | 2843 +++++++++++------ 5 files changed, 1872 insertions(+), 1050 deletions(-) diff --git a/package.json b/package.json index 7810fed7..cec122a0 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.452", + "@pzh-ui/components": "^0.0.535", "@pzh-ui/config": "^0.0.56", "@pzh-ui/css": "^0.0.75", "@pzh-ui/icons": "^0.0.47", @@ -27,9 +27,9 @@ "node-htmldiff": "^0.9.4", "node-sass": "9.0.0", "proj4leaflet": "^1.0.2", - "react": "^18.2.0", + "react": "^18.3.1", "react-content-loader": "^6.2.1", - "react-dom": "^18.2.0", + "react-dom": "^18.3.1", "react-error-boundary": "^4.0.10", "react-helmet-async": "^2.0.3", "react-leaflet": "^4.2.1", @@ -80,8 +80,8 @@ "@types/lodash.groupby": "^4.6.7", "@types/node": "^20.10.5", "@types/proj4leaflet": "^1.0.10", - "@types/react": "^18.2.15", - "@types/react-dom": "^18.2.7", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", "@types/react-leaflet": "^3.0.0", "@types/react-router-dom": "^5.3.2", "@types/uuid": "^9.0.3", diff --git a/src/components/Network/NetworkTextual/NetworkTextual.tsx b/src/components/Network/NetworkTextual/NetworkTextual.tsx index 2683b046..d0b22487 100644 --- a/src/components/Network/NetworkTextual/NetworkTextual.tsx +++ b/src/components/Network/NetworkTextual/NetworkTextual.tsx @@ -1,7 +1,7 @@ -import { OLDTable as Table } from '@pzh-ui/components' +import { Table } from '@pzh-ui/components' import { AngleRight } from '@pzh-ui/icons' import { useUpdateEffect } from '@react-hookz/web' -import { useCallback, useMemo } from 'react' +import { useCallback, useMemo, useState } from 'react' import { GraphVertice } from '@/api/fetchers.schemas' import NetworkModal from '@/components/Modals/NetworkModal' @@ -27,7 +27,7 @@ const NetworkTextual = ({ graph }: NetworkTextualProps) => { * Function to sort column by Object_Type */ const customSortType = (rowA: any, rowB: any, columnId: string) => { - let [a, b] = [rowA.values[columnId], rowB.values[columnId]] + let [a, b] = [rowA.getValue(columnId), rowB.getValue(columnId)] a = a ? a.props['data-value'] : null b = b ? b.props['data-value'] : null @@ -88,16 +88,26 @@ const NetworkTextual = ({ graph }: NetworkTextualProps) => { } }, [activeNode]) + const [sortBy, setSortBy] = useState([ + { + id: 'Title', + desc: false, + }, + ]) + + /** + * Setup Table columns + */ const columns = useMemo( () => [ { - Header: 'Titel', - accessor: 'Title', + header: 'Titel', + accessorKey: 'Title', }, { - Header: 'Type', - accessor: 'Object_Type', - sortType: customSortType, + header: 'Type', + accessorKey: 'Object_Type', + sortingFn: customSortType, }, ], [] @@ -128,13 +138,12 @@ const NetworkTextual = ({ graph }: NetworkTextualProps) => {
    diff --git a/src/validation/dynamicObject.ts b/src/validation/dynamicObject.ts index d0ecd8b4..339ef484 100644 --- a/src/validation/dynamicObject.ts +++ b/src/validation/dynamicObject.ts @@ -14,7 +14,6 @@ const generateDynamicSchema = (sections: DynamicSection[]) => { switch (field.type) { case 'text': case 'textarea': - case 'wysiwyg': case 'select': case 'image': case 'search': @@ -25,6 +24,14 @@ const generateDynamicSchema = (sections: DynamicSection[]) => { ? schemaDefaults.requiredString() : schemaDefaults.optionalString) as any), })) + case 'wysiwyg': + return (dynamicSchema = dynamicSchema.extend({ + [field.name]: + field.validation || + ((field.required + ? schemaDefaults.rte() + : schemaDefaults.optionalRte()) as any), + })) case 'url': return (dynamicSchema = dynamicSchema.extend({ [field.name]: diff --git a/src/validation/zodSchema.ts b/src/validation/zodSchema.ts index db0a89a4..d36bb1fd 100644 --- a/src/validation/zodSchema.ts +++ b/src/validation/zodSchema.ts @@ -1,4 +1,4 @@ -import { instanceof as instanceOf, number, string } from 'zod' +import { custom, instanceof as instanceOf, number, string } from 'zod' export const schemaDefaults = { requiredString: (msg = 'Dit veld is verplicht.') => @@ -36,8 +36,29 @@ export const schemaDefaults = { 'Onjuiste datum' ), file: instanceOf(File), + rte: (msg = 'Het is niet toegestaan om lege paragrafen te gebruiken.') => + customRteValidation(msg).and( + string({ + required_error: 'Dit veld is verplicht.', + invalid_type_error: 'Dit veld is verplicht.', + }) + ), + optionalRte: ( + msg = 'Lege paragrafen zijn niet toegestaan. Vul ze in of verwijder ze.' + ) => customRteValidation(msg).optional().nullable(), } +const customRteValidation = (msg: string) => + custom(html => { + const doc = new DOMParser().parseFromString(html as string, 'text/html') + + const containsEmptyParagraphs = Array.from( + doc.querySelectorAll('p') + ).some(p => p.innerHTML.trim() === '
    ' || p.innerHTML.trim() === '') + + return !containsEmptyParagraphs + }, msg) + export type Validation = { [K in keyof typeof schemaDefaults]?: (typeof schemaDefaults)[K] } diff --git a/yarn.lock b/yarn.lock index 1bb34ecb..3f5df99f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1513,6 +1513,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.13.10, @babel/runtime@npm:^7.24.1": + version: 7.24.6 + resolution: "@babel/runtime@npm:7.24.6" + dependencies: + regenerator-runtime: "npm:^0.14.0" + checksum: 6c4e12731cd9206a883c19d48fa04f6aaaf7ee83f049b22631e6521b866edc20832b4d5db30aa86d8ae799c4dcf57761fe8a4af2bf7e233245c079c1dafb5668 + languageName: node + linkType: hard + "@babel/template@npm:^7.22.15": version: 7.22.15 resolution: "@babel/template@npm:7.22.15" @@ -1921,6 +1930,15 @@ __metadata: languageName: node linkType: hard +"@floating-ui/core@npm:^1.0.0": + version: 1.6.2 + resolution: "@floating-ui/core@npm:1.6.2" + dependencies: + "@floating-ui/utils": "npm:^0.2.0" + checksum: 5c940ef3d397aa23f859ecb033bda408dde20820af3f82090a889c35a99826cfaa7864e8131b9906a26b2c04f31fa468538a28d0715b34de541e0776e0f82d03 + languageName: node + linkType: hard + "@floating-ui/core@npm:^1.5.3": version: 1.5.3 resolution: "@floating-ui/core@npm:1.5.3" @@ -1930,6 +1948,16 @@ __metadata: languageName: node linkType: hard +"@floating-ui/dom@npm:^1.0.0": + version: 1.6.5 + resolution: "@floating-ui/dom@npm:1.6.5" + dependencies: + "@floating-ui/core": "npm:^1.0.0" + "@floating-ui/utils": "npm:^0.2.0" + checksum: d421e7f239e9af5a2a4c7a560c29b8ce1f29398c411c8e3bd0c33a2ce800e13a378749a1606e4f6b460830f4007c459792534821013262d24d1385476b1ba48d + languageName: node + linkType: hard + "@floating-ui/dom@npm:^1.0.1, @floating-ui/dom@npm:^1.5.4": version: 1.5.4 resolution: "@floating-ui/dom@npm:1.5.4" @@ -1952,6 +1980,18 @@ __metadata: languageName: node linkType: hard +"@floating-ui/react-dom@npm:^2.1.0": + version: 2.1.0 + resolution: "@floating-ui/react-dom@npm:2.1.0" + dependencies: + "@floating-ui/dom": "npm:^1.0.0" + peerDependencies: + react: ">=16.8.0" + react-dom: ">=16.8.0" + checksum: 15be0714379c271ff01347e7c9bcdba96d6b39f3960697380e23de9b9d59fb91ba07bc75b8bdb12d72da7a9272191a9ce73f843a0d5f89939caa9f3137acd8ec + languageName: node + linkType: hard + "@floating-ui/react@npm:^0.24.8": version: 0.24.8 resolution: "@floating-ui/react@npm:0.24.8" @@ -1966,6 +2006,20 @@ __metadata: languageName: node linkType: hard +"@floating-ui/react@npm:^0.26.2": + version: 0.26.16 + resolution: "@floating-ui/react@npm:0.26.16" + dependencies: + "@floating-ui/react-dom": "npm:^2.1.0" + "@floating-ui/utils": "npm:^0.2.0" + tabbable: "npm:^6.0.0" + peerDependencies: + react: ">=16.8.0" + react-dom: ">=16.8.0" + checksum: 4d5216ba10c05f08a94730c0899578ead75a6cdfa9e531461e8d7ef7fea43d6b5818869c38a3c30c36f2e557c0af58b52b2325248d19029e2a89f34bfcc8c421 + languageName: node + linkType: hard + "@floating-ui/utils@npm:^0.2.0": version: 0.2.1 resolution: "@floating-ui/utils@npm:0.2.1" @@ -2092,40 +2146,40 @@ __metadata: languageName: node linkType: hard -"@internationalized/date@npm:^3.5.1": - version: 3.5.1 - resolution: "@internationalized/date@npm:3.5.1" +"@internationalized/date@npm:^3.5.4": + version: 3.5.4 + resolution: "@internationalized/date@npm:3.5.4" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: 38bce4ca2123dc4a3a7ef62ea44a86e0619764d42c3895ae5f0c4f17e7320dc945d61691dd0bc0f4dff6cda834113d1fe55253afebf4a46bf21e7b0e9f890096 + checksum: 0e38a3be70fbbbce291ec5a977fadb5f3a7dc2ca9a921494bd892e9ff6c8bba9cd44cd8767e5f50cf2d7e422ab2d5323da2eb7595142d8b487c83500ab135abe languageName: node linkType: hard -"@internationalized/message@npm:^3.1.1": - version: 3.1.1 - resolution: "@internationalized/message@npm:3.1.1" +"@internationalized/message@npm:^3.1.4": + version: 3.1.4 + resolution: "@internationalized/message@npm:3.1.4" dependencies: "@swc/helpers": "npm:^0.5.0" intl-messageformat: "npm:^10.1.0" - checksum: b73b443e75ab1d95e0d406a75107b1899d221883463de95769f3d63836bf91e7ac1ce07bd141121b9ccb89ff24d469aa424ba47e85b02dc8a8e0827b991bf801 + checksum: 1b895871cbf81cab360046aca07d7d1433aed5f8904abed03fb5e581516403c7b9b075a0e497d1095368329a5980e0ff38a14103b6d9fdb0621fbeeded8b71aa languageName: node linkType: hard -"@internationalized/number@npm:^3.5.0": - version: 3.5.0 - resolution: "@internationalized/number@npm:3.5.0" +"@internationalized/number@npm:^3.5.3": + version: 3.5.3 + resolution: "@internationalized/number@npm:3.5.3" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: 8272b5da8afd4e1379767765f9ef24283e7ccb7c077646ded17fe7de11d72d2fd8f6e41f4ea21f101d084133f670059f062c3929ff18cf171f8f768151502bf5 + checksum: 2b154a82f1150224ce0ae0e97a87e3eff5c60111342a89f0360d3146f8ca3b482b704d25d370a7233e4ff21eeb62cff8fb6e9594dc79984d05459f03a0d348f7 languageName: node linkType: hard -"@internationalized/string@npm:^3.2.0": - version: 3.2.0 - resolution: "@internationalized/string@npm:3.2.0" +"@internationalized/string@npm:^3.2.3": + version: 3.2.3 + resolution: "@internationalized/string@npm:3.2.3" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: ebe3cf9394baa5cc134eb6956f57785ddaaae79e9f66400783a0560541747fef170a59fd05923dc0c41e3f860343cc1175b3435412a616570d3247199f10c0e0 + checksum: d7ff86646e8cd10696fadd43f59eae767b7bcced652ecc70afaddcea396d6cebc34f8e08af274a32324a923f9a88f1ecf477b1cd2a64954fed8bc1111808f0d7 languageName: node linkType: hard @@ -2479,17 +2533,19 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.452": - version: 0.0.452 - resolution: "@pzh-ui/components@npm:0.0.452" +"@pzh-ui/components@npm:^0.0.535": + version: 0.0.535 + resolution: "@pzh-ui/components@npm:0.0.535" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" - "@pzh-ui/icons": "npm:^0.0.47" - "@react-aria/utils": "npm:^3.19.0" - "@react-hookz/web": "npm:^23.1.0" + "@pzh-ui/icons": "npm:^0.0.59" + "@radix-ui/react-slot": "npm:^1.0.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-hookz/web": "npm:^24.0.4" "@react-types/shared": "npm:^3.19.0" - "@tanstack/react-table": "npm:^8.9.9" + "@storybook/test": "npm:^8.1.1" + "@tanstack/react-table": "npm:^8.13.2" "@tiptap/core": "npm:^2.1.7" "@tiptap/extension-bold": "npm:^2.1.7" "@tiptap/extension-bullet-list": "npm:^2.1.7" @@ -2516,22 +2572,21 @@ __metadata: "@tiptap/pm": "npm:^2.0.3" "@tiptap/react": "npm:^2.0.3" "@types/react-table": "npm:^7.7.15" - classnames: "npm:^2.3.2" - date-fns: "npm:^2.30.0" - focus-trap-react: "npm:^10.1.1" - formik: "npm:^2.4.2" - react: "npm:^18.2.0" - react-aria: "npm:^3.26.0" - react-datepicker: "npm:^4.16.0" - react-dom: "npm:^18.2.0" - react-dropzone: "npm:^14.2.3" - react-paginate: "npm:^8.2.0" - react-router-dom: "npm:^6.14.2" - react-select: "npm:^5.7.3" - react-stately: "npm:^3.18.0" - react-table: "npm:^7.8.0" + clsx: "npm:^2.1.0" + date-fns: "npm:^3.3.1" + formik: "npm:^2.4.6" + react: "npm:^18.3.1" + react-aria: "npm:^3.32.1" + react-aria-components: "npm:^1.1.1" + react-datepicker: "npm:^6.9.0" + react-dom: "npm:^18.3.1" + react-dropzone-esm: "npm:^15.0.1" + react-responsive-pagination: "npm:^2.4.2" + react-select: "npm:^5.8.0" + react-stately: "npm:^3.30.1" react-toastify: "npm:^9.1.2" - checksum: 63dcd0d4e425dee788102bec43f5d4899843fe81c0961d8d0f9e238e23cce738868e152a42491f03f91a61b1b2dccbe0fee9740b29a815f692cc02eb64d4f7dc + tailwind-merge: "npm:^2.2.2" + checksum: fe498e62239bd4fcb35516bd222be0476a3b7c7108d1e4ecddbe3fa3d44e08ae3047f2da744e4b5ec6c4bbd1108611e9423dec3a78c07e52c9fa9d34a0657d7a languageName: node linkType: hard @@ -2588,736 +2643,838 @@ __metadata: languageName: node linkType: hard -"@react-aria/breadcrumbs@npm:^3.5.9": - version: 3.5.9 - resolution: "@react-aria/breadcrumbs@npm:3.5.9" +"@pzh-ui/icons@npm:^0.0.59": + version: 0.0.59 + resolution: "@pzh-ui/icons@npm:0.0.59" + dependencies: + react: "npm:^18.2.0" + react-toastify: "npm:^9.1.2" + checksum: 24a508c8e994912d14e2bca1e8850be22ec2e16ba43698d4ebb1393fb06ad87608665ad703fb12759080323e3817fbc5871079aed36bbf83aea026f7d139639f + languageName: node + linkType: hard + +"@radix-ui/react-compose-refs@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-compose-refs@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 2b9a613b6db5bff8865588b6bf4065f73021b3d16c0a90b2d4c23deceeb63612f1f15de188227ebdc5f88222cab031be617a9dd025874c0487b303be3e5cc2a8 + languageName: node + linkType: hard + +"@radix-ui/react-slot@npm:^1.0.2": + version: 1.0.2 + resolution: "@radix-ui/react-slot@npm:1.0.2" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-compose-refs": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 734866561e991438fbcf22af06e56b272ed6ee8f7b536489ee3bf2f736f8b53bf6bc14ebde94834aa0aceda854d018a0ce20bb171defffbaed1f566006cbb887 + languageName: node + linkType: hard + +"@react-aria/breadcrumbs@npm:^3.5.13": + version: 3.5.13 + resolution: "@react-aria/breadcrumbs@npm:3.5.13" dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/link": "npm:^3.6.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/breadcrumbs": "npm:^3.7.2" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/link": "npm:^3.7.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/breadcrumbs": "npm:^3.7.5" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 28be0194f434c79c3414d9e549cc51c38ff8b84794508a0abc0211752e828c53b69b53b6b23d7566797c7e303724616e0c0e4e7d00cd9b33206ccc685eac6f01 + checksum: 9bb2797fcfca7706aa391bbdef6a5775baa18b5e28d9545e4ac2723517c2e7b9f620d0c0ef833bfb4b04f7257a00dcd20573aeb8ca4dc15af5e382377b9c5e83 languageName: node linkType: hard -"@react-aria/button@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-aria/button@npm:3.9.1" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/button@npm:^3.9.5": + version: 3.9.5 + resolution: "@react-aria/button@npm:3.9.5" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/toggle": "npm:^3.7.4" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 15739bb1e09d7999c0fe58545a1f514a999553dfdda336a45e1c51a4e9fc928f83683a7dd142420f5e3f225c248a62b98d9367ab0144269db190cb3b1c435898 + checksum: 044eace71b00039336d5282481f38476da662d243404ef35ea5648641a297f65141e889b982d4b59c3e1f34bf1b9e422da0c04310eac1b86df51ff5774365a77 languageName: node linkType: hard -"@react-aria/calendar@npm:^3.5.4": - version: 3.5.4 - resolution: "@react-aria/calendar@npm:3.5.4" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/calendar": "npm:^3.4.3" - "@react-types/button": "npm:^3.9.1" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/calendar@npm:^3.5.8": + version: 3.5.8 + resolution: "@react-aria/calendar@npm:3.5.8" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/calendar": "npm:^3.5.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/calendar": "npm:^3.4.6" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9f192ed7ee613ca9c15ba4bc36b3a01a525424341b1edb454d7fe5b941be9159852467714275e993e8dc82b9621db858983596aee8a77bbaf23da6a4c717703e + checksum: af8365cda1e6afaa527df4a9872ce4c1e2702b49e8375f0fe2610d5e9c67dee068df949aa5a5f2d0060b5f505258e8c17a521fc22dbb20bf2b6bf30d8d6d1723 languageName: node linkType: hard -"@react-aria/checkbox@npm:^3.13.0": - version: 3.13.0 - resolution: "@react-aria/checkbox@npm:3.13.0" +"@react-aria/checkbox@npm:^3.14.3": + version: 3.14.3 + resolution: "@react-aria/checkbox@npm:3.14.3" dependencies: - "@react-aria/form": "npm:^3.0.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/toggle": "npm:^3.10.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/checkbox": "npm:^3.6.1" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/form": "npm:^3.0.5" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/toggle": "npm:^3.10.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/checkbox": "npm:^3.6.5" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/toggle": "npm:^3.7.4" + "@react-types/checkbox": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 208e8b095710f5140654f2a0bac14ae046e7a44ddca1200fe4fc6ddf09af95189446c6e2fc0f72d5de34098ea39e5b653c5830350eae2db577de69ea2c52caee - languageName: node - linkType: hard - -"@react-aria/combobox@npm:^3.8.2": - version: 3.8.2 - resolution: "@react-aria/combobox@npm:3.8.2" - dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/listbox": "npm:^3.11.3" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/menu": "npm:^3.12.0" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/combobox": "npm:^3.8.1" - "@react-stately/form": "npm:^3.0.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/combobox": "npm:^3.10.0" - "@react-types/shared": "npm:^3.22.0" + checksum: 4484a177f95d1d20872592ec6edf06413517e08d8b0a406bb7b4ff697d24ea3098159b100607c73a84833e5c32b22a7d511d1008bec7543cd2127de88563148d + languageName: node + linkType: hard + +"@react-aria/color@npm:3.0.0-beta.33": + version: 3.0.0-beta.33 + resolution: "@react-aria/color@npm:3.0.0-beta.33" + dependencies: + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/numberfield": "npm:^3.11.3" + "@react-aria/slider": "npm:^3.7.8" + "@react-aria/spinbutton": "npm:^3.6.5" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-stately/color": "npm:^3.6.1" + "@react-stately/form": "npm:^3.0.3" + "@react-types/color": "npm:3.0.0-beta.25" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 2b3758d337af9d45cd929be2e38bd7c96e6ec8af377c8f3210d7bba89aec6cf4c8001e3f66261467f54509d586668aabd80b24bde7aa9f074a87ffb7a0ca0cf9 + checksum: 184e7521f6de7e740e8807535fe87c80fbaeb753263cce53504c98785599a945003c48b9a419ec69d9d1848558a7a048a06e22b5b626df64ff1ad62e4a29bc2a languageName: node linkType: hard -"@react-aria/datepicker@npm:^3.9.1": +"@react-aria/combobox@npm:^3.9.1": version: 3.9.1 - resolution: "@react-aria/datepicker@npm:3.9.1" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@internationalized/number": "npm:^3.5.0" - "@internationalized/string": "npm:^3.2.0" - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/form": "npm:^3.0.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/spinbutton": "npm:^3.6.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/datepicker": "npm:^3.9.1" - "@react-stately/form": "npm:^3.0.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/datepicker": "npm:^3.7.1" - "@react-types/dialog": "npm:^3.5.7" - "@react-types/shared": "npm:^3.22.0" + resolution: "@react-aria/combobox@npm:3.9.1" + dependencies: + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/listbox": "npm:^3.12.1" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/menu": "npm:^3.14.1" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/combobox": "npm:^3.8.4" + "@react-stately/form": "npm:^3.0.3" + "@react-types/button": "npm:^3.9.4" + "@react-types/combobox": "npm:^3.11.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 13c4e3dbcf358cddb34022fb58e0d6259f40a47bc36f790fba8cb0545d5cfc5b17652e18f6fe0857e764b446f8c53663b3b2160ea1722096e016918e2ceb5190 + checksum: a0ac563b353e2c72c2d0661bdd80a01a640bfe97bbae7294c4eecc34416cb027b5d6d8fefeed02adf3c3fb80bbbd95c02ddf107e9d0080522442a0b55ad807d0 languageName: node linkType: hard -"@react-aria/dialog@npm:^3.5.10": - version: 3.5.10 - resolution: "@react-aria/dialog@npm:3.5.10" +"@react-aria/datepicker@npm:^3.10.1": + version: 3.10.1 + resolution: "@react-aria/datepicker@npm:3.10.1" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@internationalized/number": "npm:^3.5.3" + "@internationalized/string": "npm:^3.2.3" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/form": "npm:^3.0.5" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/spinbutton": "npm:^3.6.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/datepicker": "npm:^3.9.4" + "@react-stately/form": "npm:^3.0.3" + "@react-types/button": "npm:^3.9.4" + "@react-types/calendar": "npm:^3.4.6" + "@react-types/datepicker": "npm:^3.7.4" + "@react-types/dialog": "npm:^3.5.10" + "@react-types/shared": "npm:^3.23.1" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 0e3c87063e839e24bb91ed0d852112c4872c9a580ec9f5986b5ea92bdfc787c1d9365390158bdc0a9cc8b6e76fac82be4bbefbbfa3035f789bf704f5d5de5cd7 + languageName: node + linkType: hard + +"@react-aria/dialog@npm:^3.5.14": + version: 3.5.14 + resolution: "@react-aria/dialog@npm:3.5.14" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/dialog": "npm:^3.5.7" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/dialog": "npm:^3.5.10" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f9a514a5fb36cf3bb1545f4d4d8162ec143e7d9c8f6e7f8c0510f3767639b16a24d43013909606067fe5a103cf11c80a772fa0b4902f28bb70b974d5144c0120 + checksum: daae893065fe73b1c02c02572fa146ffa13280a39b4fedbab5a9581952ff021728673dd35f1e64d03413e8ace43eeef55f62aeabcc17a7600f987788895b1416 languageName: node linkType: hard -"@react-aria/dnd@npm:^3.5.1": - version: 3.5.1 - resolution: "@react-aria/dnd@npm:3.5.1" - dependencies: - "@internationalized/string": "npm:^3.2.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/dnd": "npm:^3.2.7" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/dnd@npm:^3.6.1": + version: 3.6.1 + resolution: "@react-aria/dnd@npm:3.6.1" + dependencies: + "@internationalized/string": "npm:^3.2.3" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/dnd": "npm:^3.3.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 3d7fbb5388b55227d71c201edfa9c3d60fb8c65e6129d136d15f4120d8d07f7f9db61d5c0e749fc671c0727c211013cb369715d1018d970bcbb22bb09084ff0d + checksum: 53d44c58300f5a96d7e528c2df8cc454f9b3d558ff6e6aa2a878f68cae827321034753b2a27a717e2d8bc2888b02976697803da75a34677b541be5db7e6c61c6 languageName: node linkType: hard -"@react-aria/focus@npm:^3.16.0": - version: 3.16.0 - resolution: "@react-aria/focus@npm:3.16.0" +"@react-aria/focus@npm:^3.17.1": + version: 3.17.1 + resolution: "@react-aria/focus@npm:3.17.1" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" clsx: "npm:^2.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 1c01a56bf29e21b95f05f9e97ec8b4cb5ea4024702103e8222c36ef9e0ff62e67b5419cc9003c91f79a41420d1d26a17c7f126392372b6b441657b6c0a7c395e + checksum: 4c3c7b26c983c83119a5ff1595e339b8bf68dcb6ea4349dc3b6bb26af41bbae4be50df8a96b12beea9b9f700c4508addfa4fd4626e7955bce667ec7620693af8 languageName: node linkType: hard -"@react-aria/form@npm:^3.0.1": - version: 3.0.1 - resolution: "@react-aria/form@npm:3.0.1" +"@react-aria/form@npm:^3.0.5": + version: 3.0.5 + resolution: "@react-aria/form@npm:3.0.5" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/form": "npm:^3.0.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/form": "npm:^3.0.3" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: b3d8e1e0abba4acd107814157e14af8ebe0f5989326574b6a8bf132046f5b76678018b44ffd093393eba60aefb970673f76f549f6ed8aaec4cf9cc794b6b31f8 - languageName: node - linkType: hard - -"@react-aria/grid@npm:^3.8.6": - version: 3.8.6 - resolution: "@react-aria/grid@npm:3.8.6" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/grid": "npm:^3.8.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/virtualizer": "npm:^3.6.6" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" + checksum: f428113530658498b143670fa775feb2839ad259b90db957ecb8f7094523e1c3f7b2357f9b4f9b26639d14b9889137566fa8ca750e053bfffb1b837b666c1eb2 + languageName: node + linkType: hard + +"@react-aria/grid@npm:^3.9.1": + version: 3.9.1 + resolution: "@react-aria/grid@npm:3.9.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/grid": "npm:^3.8.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/virtualizer": "npm:^3.7.1" + "@react-types/checkbox": "npm:^3.8.1" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e0f5942c598551f6b50807217e61c8d2d2340abaa468df969409fd71a9e7c7d782b26fbd03a70a04e3396900b78f5b9cf356832f0008ed44a34a0d03c700dcc3 + checksum: b07dbd270ba829cca6631a8261798204ed31e6e0670e5d214f220a0dd66fa851e33729b2982aae0ab0dd5518e9ca1dfe88d8abc6051fc98e21b0d356de314e79 languageName: node linkType: hard -"@react-aria/gridlist@npm:^3.7.3": - version: 3.7.3 - resolution: "@react-aria/gridlist@npm:3.7.3" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/grid": "npm:^3.8.6" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/list": "npm:^3.10.2" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/gridlist@npm:^3.8.1": + version: 3.8.1 + resolution: "@react-aria/gridlist@npm:3.8.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/grid": "npm:^3.9.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/list": "npm:^3.10.5" + "@react-stately/tree": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ce1bb4764fcc100d3f22432f9651622b9e396f88c04c71e62ff6f428f97c503c8793ace2d52145ff22501d3c2486e11a35cf7726a57bb02ab863804e7ecd4d44 + checksum: a345b3d6819c1ce1b7fe8b0cce48230c73e83e7491d402c9df11bbd5d05106ba4700b823283e05608bec24e4dd8200324b6af839355eacff92058167dd926174 languageName: node linkType: hard -"@react-aria/i18n@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-aria/i18n@npm:3.10.0" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@internationalized/message": "npm:^3.1.1" - "@internationalized/number": "npm:^3.5.0" - "@internationalized/string": "npm:^3.2.0" - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/i18n@npm:^3.11.1": + version: 3.11.1 + resolution: "@react-aria/i18n@npm:3.11.1" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@internationalized/message": "npm:^3.1.4" + "@internationalized/number": "npm:^3.5.3" + "@internationalized/string": "npm:^3.2.3" + "@react-aria/ssr": "npm:^3.9.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 911ea23df89d303ef2a25fffec8d9d272dc9949bf76615b8219e3484178de19cf6aa77d05ac67de6fa1d40e7adde9c029bea3cdcee20ce7099f83899c4eea966 + checksum: b193d4b7382343c2d15510fa490c3c2f6d10f43cb8f43b29f5313a3144221e2849e93cc1d94c56c9590f398739f8bad826cc1299f23aea0ef4e974feb71d9dfa languageName: node linkType: hard -"@react-aria/interactions@npm:^3.20.1": - version: 3.20.1 - resolution: "@react-aria/interactions@npm:3.20.1" +"@react-aria/interactions@npm:^3.21.3": + version: 3.21.3 + resolution: "@react-aria/interactions@npm:3.21.3" dependencies: - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/ssr": "npm:^3.9.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 17fbbab6bfb0e0860fa0250ba644b1e6aaf23023e143a7f9f816c37d164813f858be592644cc89f06f6a1baa9dffdfa8bd5a2db12246f0837dce4a9169217932 + checksum: 84fe368a40631f02fb9b9fcc103820a7659132b74a029a3bac3939f4a8bee05c9fe1f023f2d170760adaf3cc110793c6b8db396f016bab740922ffc823f99833 languageName: node linkType: hard -"@react-aria/label@npm:^3.7.4": - version: 3.7.4 - resolution: "@react-aria/label@npm:3.7.4" +"@react-aria/label@npm:^3.7.8": + version: 3.7.8 + resolution: "@react-aria/label@npm:3.7.8" dependencies: - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 30c14e5e985d671e49a162392e890b9d86c1fcc7758d6c80196158209fe62ee4a48392a496940e18065a6682a5271e02d68ec4afc8c3a553f624fda8338806a2 + checksum: 7bbbc8afe2947dcb427734b7ddc482e8e3c6df6963e5be95744942e44fcba209c87b23cc87fff753e3ff872f2796afeb35901ac48a3c89a5d6e40f41160820f0 languageName: node linkType: hard -"@react-aria/link@npm:^3.6.3": - version: 3.6.3 - resolution: "@react-aria/link@npm:3.6.3" +"@react-aria/link@npm:^3.7.1": + version: 3.7.1 + resolution: "@react-aria/link@npm:3.7.1" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/link": "npm:^3.5.2" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/link": "npm:^3.5.5" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 647c85cdb07f7a4a7244a5fb6baf4d634a8031542a2336ef71dea9f733c52e95fdf59ef94cb556f29c68e07f4c14469f988c6b3200d15f565e205500b0ecf08b + checksum: 4cc2d1795308fa26728dc23863ed4863a3e70161fe8ac0f541e9a439fea54a6d3791a42ec2cf120968465ecd5f1e9ceffca3d81708604529ec4bf9b3d1a4cacf languageName: node linkType: hard -"@react-aria/listbox@npm:^3.11.3": - version: 3.11.3 - resolution: "@react-aria/listbox@npm:3.11.3" - dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/list": "npm:^3.10.2" - "@react-types/listbox": "npm:^3.4.6" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/listbox@npm:^3.12.1": + version: 3.12.1 + resolution: "@react-aria/listbox@npm:3.12.1" + dependencies: + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/list": "npm:^3.10.5" + "@react-types/listbox": "npm:^3.4.9" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7b79433489afcd20178529e43227b3a7d45157d0a0832bca5c7b8925d57fcfce2502b126a05eef73d1e2ca58386afc04d6dffc3e89acfffeecf0ba326d748c28 + checksum: 1c873b36737fccca63f19088d69f6132c8d90c16c7532200c1943e25f08f5e374a76572e590ba1b3840b96e7273bf37c761ca3985a066c2b61f6c142261b58d6 languageName: node linkType: hard -"@react-aria/live-announcer@npm:^3.3.1": - version: 3.3.1 - resolution: "@react-aria/live-announcer@npm:3.3.1" +"@react-aria/live-announcer@npm:^3.3.4": + version: 3.3.4 + resolution: "@react-aria/live-announcer@npm:3.3.4" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: ec87c553a49510197bf2d7eb9c654cf4116240fb276d76c3766d5d2f76e2c83ba99c30c79b620c6941c07997ad43ee9c10f793eaf9dcfafd41d8af42bf45bf4f - languageName: node - linkType: hard - -"@react-aria/menu@npm:^3.12.0": - version: 3.12.0 - resolution: "@react-aria/menu@npm:3.12.0" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/menu": "npm:^3.6.0" - "@react-stately/tree": "npm:^3.7.5" - "@react-types/button": "npm:^3.9.1" - "@react-types/menu": "npm:^3.9.6" - "@react-types/shared": "npm:^3.22.0" + checksum: 8cc5d07116c0c3f088fe727df83b7847bd62b35af25e9cbf2d5373b17cd3900a751235bf69ab12d480814a92faab992e3a9d43ed4eeb57491231ce8cb6f5e6e4 + languageName: node + linkType: hard + +"@react-aria/menu@npm:^3.14.1": + version: 3.14.1 + resolution: "@react-aria/menu@npm:3.14.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/menu": "npm:^3.7.1" + "@react-stately/tree": "npm:^3.8.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/menu": "npm:^3.9.9" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 574e4e5eaecd2267ddf7f5cc27af8f51d7a142f343db7cc1638edb7dabed8bc2ef39a72d0fdafb64f947af2b521523936b8bf644b3232e85c310c3def602931e + checksum: 75ba7461017de8358066a92fd7545c886dec6cf31ce7f42bf8e90228ab8c68e95747a7b6da428a3805f1a0d7fe1a4699d8891f8dae7afb6df4c036e5ab25b0a7 languageName: node linkType: hard -"@react-aria/meter@npm:^3.4.9": - version: 3.4.9 - resolution: "@react-aria/meter@npm:3.4.9" +"@react-aria/meter@npm:^3.4.13": + version: 3.4.13 + resolution: "@react-aria/meter@npm:3.4.13" dependencies: - "@react-aria/progress": "npm:^3.4.9" - "@react-types/meter": "npm:^3.3.6" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/progress": "npm:^3.4.13" + "@react-types/meter": "npm:^3.4.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 59f776b87a61a19d488cfb41f3f09a8a66e50c0342108ac5272bdff05eeade5b3c2f9aea79b1995b0d22b86413035fec6e36284dc6d1fde108c46cf1893ce046 + checksum: d25fb6cc18ae4001f9e4b877cb53a79a887cb00d1bd39004c641b00d8255eaac157c85ab3a11dfc2837ae0f9f376383236e9e57335360c5e4c3fe268d517eb6f languageName: node linkType: hard -"@react-aria/numberfield@npm:^3.10.2": - version: 3.10.2 - resolution: "@react-aria/numberfield@npm:3.10.2" - dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/spinbutton": "npm:^3.6.1" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/numberfield": "npm:^3.8.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/numberfield": "npm:^3.7.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/numberfield@npm:^3.11.3": + version: 3.11.3 + resolution: "@react-aria/numberfield@npm:3.11.3" + dependencies: + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/spinbutton": "npm:^3.6.5" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/numberfield": "npm:^3.9.3" + "@react-types/button": "npm:^3.9.4" + "@react-types/numberfield": "npm:^3.8.3" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 297a8f91f93ba7daf12648aa0c3bab61db1151a1a8f4ed79d990a046439747622811422df5583050c802e67e5dcde9a59b942b3f3b2cd5bb10dc13f818182427 + checksum: 36d192b6e4ae86e0ba8b5e194aea34392018d81ecd269c0d2343f4a8c7bdc00398e4822422b27b04763bf59e4b9de994688b9dad18677f20034917d32cb3e8ff languageName: node linkType: hard -"@react-aria/overlays@npm:^3.20.0": - version: 3.20.0 - resolution: "@react-aria/overlays@npm:3.20.0" +"@react-aria/overlays@npm:^3.22.1": + version: 3.22.1 + resolution: "@react-aria/overlays@npm:3.22.1" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/button": "npm:^3.9.1" - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/ssr": "npm:^3.9.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-stately/overlays": "npm:^3.6.7" + "@react-types/button": "npm:^3.9.4" + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9103beae43a92b13ef4745585aef2d03f6c690ec9d24bd66151ae4bfb101c08fdad7d09278ed19ac3c0068fd25c72080c58750d2e0c60aec20174f392c6bd4ef + checksum: 1bcddb0c9406fdf594f164f2a465461c9e44a3cb84ccb1e640e397778ba243b755bfc4501ff8476fbe756bc43fc1aded1d61b3e7d9cdd6d9937b92c42ca82f46 languageName: node linkType: hard -"@react-aria/progress@npm:^3.4.9": - version: 3.4.9 - resolution: "@react-aria/progress@npm:3.4.9" +"@react-aria/progress@npm:^3.4.13": + version: 3.4.13 + resolution: "@react-aria/progress@npm:3.4.13" dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/progress": "npm:^3.5.1" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/progress": "npm:^3.5.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 8ec633e71ed35189fc1d950cf5aa5cbe7830bcebb5a86d2cdfb785b8435602c8ec310956e8684e213ab2aee6cabd8940311bd3d0544db0028403ea6a76db32d9 + checksum: 84cebddc9068634f0dd3ed181eaf9be3c302b6883632171796cabacac78459f68f237ac8808428682707379d1acce5ac93f4d08a4157bbd56aa03220d7b450f0 languageName: node linkType: hard -"@react-aria/radio@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-aria/radio@npm:3.10.0" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/form": "npm:^3.0.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/radio": "npm:^3.10.1" - "@react-types/radio": "npm:^3.7.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/radio@npm:^3.10.4": + version: 3.10.4 + resolution: "@react-aria/radio@npm:3.10.4" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/form": "npm:^3.0.5" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/radio": "npm:^3.10.4" + "@react-types/radio": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e4078d95d20af82eb12029a10cd617eaa45f22c52913d0a1591a8cf48c76d7c3d9b81c9414bc53bf9eafb0a71125a93d575308063d9a20ff50171c50a5be7de5 + checksum: 5fa0d6a9858a84cfd4dce0f2d40a52dcd31fa507df489f83b5ef010f6f0de3df7f5bdb54897968f805c2da4e6121fef3f9031575f5bc80b836e9d1ce83dbeb45 languageName: node linkType: hard -"@react-aria/searchfield@npm:^3.7.1": - version: 3.7.1 - resolution: "@react-aria/searchfield@npm:3.7.1" - dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/searchfield": "npm:^3.5.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/searchfield": "npm:^3.5.2" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/searchfield@npm:^3.7.5": + version: 3.7.5 + resolution: "@react-aria/searchfield@npm:3.7.5" + dependencies: + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/searchfield": "npm:^3.5.3" + "@react-types/button": "npm:^3.9.4" + "@react-types/searchfield": "npm:^3.5.5" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f2b1183fbfa5c533391a7a29abe793b704d430ef57f8eb43a65a9967e5595959ebdb19967423b03c39174ed1d316e6666910a416534eb1b0bf4a4e70ee7d942a - languageName: node - linkType: hard - -"@react-aria/select@npm:^3.14.1": - version: 3.14.1 - resolution: "@react-aria/select@npm:3.14.1" - dependencies: - "@react-aria/form": "npm:^3.0.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/listbox": "npm:^3.11.3" - "@react-aria/menu": "npm:^3.12.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-stately/select": "npm:^3.6.1" - "@react-types/button": "npm:^3.9.1" - "@react-types/select": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" + checksum: f1aeccfe38d921da8f892e12ea26ed9d83dc8d015569b64d13817f2777da1aef8fa742ca7e73bc740019b9831d19b16ff5c4ad30aa51eb40b3b1323ce1e62a34 + languageName: node + linkType: hard + +"@react-aria/select@npm:^3.14.5": + version: 3.14.5 + resolution: "@react-aria/select@npm:3.14.5" + dependencies: + "@react-aria/form": "npm:^3.0.5" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/listbox": "npm:^3.12.1" + "@react-aria/menu": "npm:^3.14.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-stately/select": "npm:^3.6.4" + "@react-types/button": "npm:^3.9.4" + "@react-types/select": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4f2192b513e49a920fbc54343c734d855dda207a71fe31a84852d01a19aba4c4862f82e33c08ac814551938be709336b6546411a427b19972c5a628c1b831730 + checksum: 76af6d008d72702b12eb76ebd4e0ee59aa59c2e95dae7a35c8d96fe0e4b1fe56c84f6a4ae8696e99bfd5978fdc1681a524d14b70cf08e02dc74a6447fb29b724 languageName: node linkType: hard -"@react-aria/selection@npm:^3.17.3": - version: 3.17.3 - resolution: "@react-aria/selection@npm:3.17.3" +"@react-aria/selection@npm:^3.18.1": + version: 3.18.1 + resolution: "@react-aria/selection@npm:3.18.1" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/selection": "npm:^3.14.2" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/selection": "npm:^3.15.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9e15db4919fb483fb2303901133cc317d8c2b13cc990e864f7da4b4445388697edc2cb056189977af36f33d7f04237e1f30a717e9db924fcb6065a159c92d4b1 + checksum: 233ed769f9539b5e70cb0f8f81c269153386b3d6f2d15a60c331bcf9f4fc78aac2b608f539ef3772caffa8f44fd081eec46af0ec8e577633cb3c6e130509d060 languageName: node linkType: hard -"@react-aria/separator@npm:^3.3.9": - version: 3.3.9 - resolution: "@react-aria/separator@npm:3.3.9" +"@react-aria/separator@npm:^3.3.13": + version: 3.3.13 + resolution: "@react-aria/separator@npm:3.3.13" dependencies: - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 670c74708705e56daa6907f48bb7fe429cd4c7470dad4bb4555a4324c1755e429b93059112cc0919bf799adf452747983b216515f10ed54d3243ae348cdd154f + checksum: 2938cc88047f274d898d3ec9026b2a2aebbfe3a27fbb9cec7f4444596bab4708417fabfd5388181e511fa2ee814a8fed5099031af391f55f966080e48b20b435 languageName: node linkType: hard -"@react-aria/slider@npm:^3.7.4": - version: 3.7.4 - resolution: "@react-aria/slider@npm:3.7.4" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/slider": "npm:^3.5.0" - "@react-types/shared": "npm:^3.22.0" - "@react-types/slider": "npm:^3.7.0" +"@react-aria/slider@npm:^3.7.8": + version: 3.7.8 + resolution: "@react-aria/slider@npm:3.7.8" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/slider": "npm:^3.5.4" + "@react-types/shared": "npm:^3.23.1" + "@react-types/slider": "npm:^3.7.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 5ff6b579076ad88918463e06a8664ed94adfcb5a5d8ee24f9948d546b1ef255d1f0691f25947cc8308202b6ce216737cc277493d4e4cf70785d17b051707fb14 + checksum: aefa070af4241848be09cf66afef893a9279368692a1e505883a37d9630ab959b9ec65aad47e53a68cef627fe6dd25bb0f90c96d617c13bcc0006cf5a826d477 languageName: node linkType: hard -"@react-aria/spinbutton@npm:^3.6.1": - version: 3.6.1 - resolution: "@react-aria/spinbutton@npm:3.6.1" +"@react-aria/spinbutton@npm:^3.6.5": + version: 3.6.5 + resolution: "@react-aria/spinbutton@npm:3.6.5" dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 64ecdc11d666220b9a08577d7d010e1898e7a0496d8d54b6d4454e208f2d8a4da54aa9d56c331e52893ebc83632de66188100f4204ea61ef501035d4cf0865a9 + checksum: 5567e91640ab71cdc621d91dacacaeef4ca9d1d3bd1a9f89402de2db0eb9adf1e7ec594a6c48e432003ebacf5964186e54220f7c00bcfb975ea3e12a633f0dbc languageName: node linkType: hard -"@react-aria/ssr@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-aria/ssr@npm:3.9.1" +"@react-aria/ssr@npm:^3.9.4": + version: 3.9.4 + resolution: "@react-aria/ssr@npm:3.9.4" dependencies: "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: a42bf23241b022e2e55ca95aeec5cafb3aa276b4586373f4b85834655ab05068d5af81707bf1d4548f2f5b29c80a02ef920c0711b2d1a8b189effca2c72ca5f9 + checksum: c55e5e0bf86bc39c7c0c9f86f4166e923cf62304903b7b5e700619bff64edc4fbeec5a66741aa39635445ff0b26d80ee03d6471c5df02ec764b9a71938dd17de languageName: node linkType: hard -"@react-aria/switch@npm:^3.6.0": - version: 3.6.0 - resolution: "@react-aria/switch@npm:3.6.0" +"@react-aria/switch@npm:^3.6.4": + version: 3.6.4 + resolution: "@react-aria/switch@npm:3.6.4" dependencies: - "@react-aria/toggle": "npm:^3.10.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/switch": "npm:^3.5.0" + "@react-aria/toggle": "npm:^3.10.4" + "@react-stately/toggle": "npm:^3.7.4" + "@react-types/switch": "npm:^3.5.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e6c76700841d77ca72e1917a3c240c9057dd0e6842efa22fae8f44f9a7677a1c7345331a3cbeb0b7a1fcb240039d1cad1f363e026345917433a919dacd840f4f - languageName: node - linkType: hard - -"@react-aria/table@npm:^3.13.3": - version: 3.13.3 - resolution: "@react-aria/table@npm:3.13.3" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/grid": "npm:^3.8.6" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/flags": "npm:^3.0.0" - "@react-stately/table": "npm:^3.11.4" - "@react-stately/virtualizer": "npm:^3.6.6" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" - "@react-types/table": "npm:^3.9.2" + checksum: 97a26a41126beb4df20ff857a7e6af78242ea8ec864d86a60082826f0cbce40bc2288af50c705da237f6ef9eafc4aa9bc775e5a6b67ccd2b2dacb6754abc2fcc + languageName: node + linkType: hard + +"@react-aria/table@npm:^3.14.1": + version: 3.14.1 + resolution: "@react-aria/table@npm:3.14.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/grid": "npm:^3.9.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/flags": "npm:^3.0.3" + "@react-stately/table": "npm:^3.11.8" + "@react-stately/virtualizer": "npm:^3.7.1" + "@react-types/checkbox": "npm:^3.8.1" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" + "@react-types/table": "npm:^3.9.5" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9fe1170d5100f035e1d92d20b0838e699a75872a67cf6244744a5be7c331ebe0e2e0c1561c07eeed95516ea7fd32858562e076858fe0770b56aee61b20590e6f + checksum: 3b20885aefbecf40e76d2d594a4c6cd3894878c031041bd3c398d440cad6cc938098c9fcc112bc0a1744478d0e8e241acd2e1641129dceab54f04e9e1bd2e5b2 languageName: node linkType: hard -"@react-aria/tabs@npm:^3.8.3": - version: 3.8.3 - resolution: "@react-aria/tabs@npm:3.8.3" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/tabs": "npm:^3.6.3" - "@react-types/shared": "npm:^3.22.0" - "@react-types/tabs": "npm:^3.3.4" +"@react-aria/tabs@npm:^3.9.1": + version: 3.9.1 + resolution: "@react-aria/tabs@npm:3.9.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/tabs": "npm:^3.6.6" + "@react-types/shared": "npm:^3.23.1" + "@react-types/tabs": "npm:^3.3.7" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 086a3edca6250966592feac07eea6963457688f4e4984309fb082752c22907237270aed6e211c3e600254a51b3fcabf172389570956fce4320e4badce4962c60 + checksum: 69d0f482ce94ed34a587eb9da6bf7c62911040a4c02c37fe768710d043ffcd6750bed506dc7cbe16881db2cf6b271cbef2dc91ac4e7be70965f3f8bf56ba1918 languageName: node linkType: hard -"@react-aria/tag@npm:^3.3.1": - version: 3.3.1 - resolution: "@react-aria/tag@npm:3.3.1" - dependencies: - "@react-aria/gridlist": "npm:^3.7.3" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/list": "npm:^3.10.2" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/tag@npm:^3.4.1": + version: 3.4.1 + resolution: "@react-aria/tag@npm:3.4.1" + dependencies: + "@react-aria/gridlist": "npm:^3.8.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/list": "npm:^3.10.5" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 188b6394f0a95bc4362d85ec9a456c55483778f7b91acc40f5287276a1f69d8babd22fc40bc6fd5d11096426ef39061bcfe9078cbdb64ae3147bba52dd30bd9b + checksum: d85ac6ea1dec19f51acfde677cb3fd6da799d2a022468c984b1ed3d0cb7e6820e8fc5e8b9b12a2617d9830343a232b5d39a21c268d10d7a411d5d27d06c72055 languageName: node linkType: hard -"@react-aria/textfield@npm:^3.14.1": - version: 3.14.1 - resolution: "@react-aria/textfield@npm:3.14.1" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/form": "npm:^3.0.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" - "@react-types/textfield": "npm:^3.9.0" +"@react-aria/textfield@npm:^3.14.5": + version: 3.14.5 + resolution: "@react-aria/textfield@npm:3.14.5" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/form": "npm:^3.0.5" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" + "@react-types/textfield": "npm:^3.9.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 131885917122c34bb5a124e3b120fbd175fe1eefdb5020ac786ec4ffdd8f370c4fd2d2a0e69257d6e337c99ab14548c51f43d677a26836c66433374b3d47bae5 + checksum: db1a3270a6d7b7947567554a56748a6960a2f83f1f4b4b3649896777ef7d02ba3a6b657dba93860c89b11fa2abe0ea94b47aa499c15751be11a092e494f4c016 languageName: node linkType: hard -"@react-aria/toggle@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-aria/toggle@npm:3.10.0" +"@react-aria/toggle@npm:^3.10.4": + version: 3.10.4 + resolution: "@react-aria/toggle@npm:3.10.4" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/checkbox": "npm:^3.6.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/toggle": "npm:^3.7.4" + "@react-types/checkbox": "npm:^3.8.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c22e29f1e8d87b9963183272098bc0f40e40668f08e28193e21b3880166872dc525e52efb1c80ee1b5abd51cdefacb9bb3f9161e8c2eded37eac51eed5e0740f + checksum: 66f59d898399977ed640d40c40634c9f5f95d50a1241c8a604d04b652c261353377f1a8c1a05ffbd49090ff8c120ead4f2567e4732c07c0dfc4368fa3399c2c9 languageName: node linkType: hard -"@react-aria/tooltip@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-aria/tooltip@npm:3.7.0" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/tooltip": "npm:^3.4.6" - "@react-types/shared": "npm:^3.22.0" - "@react-types/tooltip": "npm:^3.4.6" +"@react-aria/toolbar@npm:3.0.0-beta.5": + version: 3.0.0-beta.5 + resolution: "@react-aria/toolbar@npm:3.0.0-beta.5" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 4f9114fd900cb81b98399f917222a83f59d9012114fd198f1954a24c09c805875e502695ca69edb7f4e51f031da0649394b587bd7b83efa404fba9fcf18152a3 + languageName: node + linkType: hard + +"@react-aria/tooltip@npm:^3.7.4": + version: 3.7.4 + resolution: "@react-aria/tooltip@npm:3.7.4" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/tooltip": "npm:^3.4.9" + "@react-types/shared": "npm:^3.23.1" + "@react-types/tooltip": "npm:^3.4.9" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 335190e8e009144e979e03fbdc92f02ad0ba070719c71410ee4a34a4a1f533823165e0fcf389d3e215cf98f61559b7c822d6ead2fb53cbcfd65d8ea712462e19 + checksum: b184bded727abc4b85c53de6b348bae2bada8ad1bba167ce998c1fc9ace4d2b9e9c4362352ece91e321e0ce4da88795d60c1e96298203cedfb8553a9f4e50ebc languageName: node linkType: hard -"@react-aria/utils@npm:^3.19.0, @react-aria/utils@npm:^3.23.0": - version: 3.23.0 - resolution: "@react-aria/utils@npm:3.23.0" +"@react-aria/tree@npm:3.0.0-alpha.1": + version: 3.0.0-alpha.1 + resolution: "@react-aria/tree@npm:3.0.0-alpha.1" dependencies: - "@react-aria/ssr": "npm:^3.9.1" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/gridlist": "npm:^3.8.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/tree": "npm:^3.8.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: d21790594918886e8c3214dc666af563e8c13dd0dbe956492f251291144b3f18418dd2901df10569bc639a30c8edfcfa90d21b1fc3e6c69d4fc6d7e512531b52 + languageName: node + linkType: hard + +"@react-aria/utils@npm:^3.23.2, @react-aria/utils@npm:^3.24.1": + version: 3.24.1 + resolution: "@react-aria/utils@npm:3.24.1" + dependencies: + "@react-aria/ssr": "npm:^3.9.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" clsx: "npm:^2.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7be5f852fb80b4cdb0a983542804534ce14bbd3809c8e81786507335d457202a5cd57a4a437c32aabb1b678902405da00f5ba9d697c7ab6f33cf0840bb1978be + checksum: 7acf52f3cdf66aaa0c55bde86959a3772bc266682389bf19865739ca8b77a652db8d9f970dc37600c69b8a7cce78b821913f3d7f066bdcb1224599e3fe35afce languageName: node linkType: hard -"@react-aria/visually-hidden@npm:^3.8.8": - version: 3.8.8 - resolution: "@react-aria/visually-hidden@npm:3.8.8" +"@react-aria/visually-hidden@npm:^3.8.12": + version: 3.8.12 + resolution: "@react-aria/visually-hidden@npm:3.8.12" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 08f0390968af92ad77ab0c606dfa47e2e9e45dffe21c7472ac2659424aa79665338afeea475a2b3b2fdae0f064596fb9cb22edd1bddc873e408c882bb48c9ddf + checksum: 2b3c43f713e37b5536ecd1dd4d975b98fbec5287d06ff462ac4aaea9ed5136a0939e5b6cd5857c2db57b94e41b49aa2c5cfd25d1c87c580d3e204c07fde80895 languageName: node linkType: hard @@ -3328,9 +3485,9 @@ __metadata: languageName: node linkType: hard -"@react-hookz/web@npm:^23.1.0": - version: 23.1.0 - resolution: "@react-hookz/web@npm:23.1.0" +"@react-hookz/web@npm:^24.0.2": + version: 24.0.2 + resolution: "@react-hookz/web@npm:24.0.2" dependencies: "@react-hookz/deep-equal": "npm:^1.0.4" peerDependencies: @@ -3340,13 +3497,13 @@ __metadata: peerDependenciesMeta: js-cookie: optional: true - checksum: 7f345fc286ee3bae74b76b909898213a589250856783805d0356d8ef9ca0e3d1638e7499d8b77ae1dff6350dec230fda468e0e4c8fc05a9997902569d3d81b49 + checksum: 90ee7d03a81944cc5ee4b36762baecf4853b6e09dfb12a4c3f84b0444f3696d5a616173ae3e4e75efeb15e867248e5afc8660223d75fa938c1c96ddb142c8236 languageName: node linkType: hard -"@react-hookz/web@npm:^24.0.2": - version: 24.0.2 - resolution: "@react-hookz/web@npm:24.0.2" +"@react-hookz/web@npm:^24.0.4": + version: 24.0.4 + resolution: "@react-hookz/web@npm:24.0.4" dependencies: "@react-hookz/deep-equal": "npm:^1.0.4" peerDependencies: @@ -3356,7 +3513,7 @@ __metadata: peerDependenciesMeta: js-cookie: optional: true - checksum: 90ee7d03a81944cc5ee4b36762baecf4853b6e09dfb12a4c3f84b0444f3696d5a616173ae3e4e75efeb15e867248e5afc8660223d75fa938c1c96ddb142c8236 + checksum: 6a841c648edbc54b11fd90de9bb61c3059255598fc4a714c508c269a03c4ca9bbf32cf017d3bd2b3a1bf7cd1d9bf4bb56028f64ad455f796079632f4a7cd4f00 languageName: node linkType: hard @@ -3371,580 +3528,623 @@ __metadata: languageName: node linkType: hard -"@react-stately/calendar@npm:^3.4.3": - version: 3.4.3 - resolution: "@react-stately/calendar@npm:3.4.3" +"@react-stately/calendar@npm:^3.5.1": + version: 3.5.1 + resolution: "@react-stately/calendar@npm:3.5.1" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/calendar": "npm:^3.4.6" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 8bf9e67390d71f79ff4d685a7e7b34b33bc714fc78747e108c88f611fedca197c676ad8f8648c6f98068ae9aef1eb0fa654cbfaa502cf161bbd00a57cc3c6b70 + checksum: b410874e1a028f889e4b98b6488be7c10d04a918df73493754a92fcae9020f0fa1891a7663d0295aee45fb010c50ed92f9379564ec1bd45479d2be2ec4bf62ca languageName: node linkType: hard -"@react-stately/checkbox@npm:^3.6.1": - version: 3.6.1 - resolution: "@react-stately/checkbox@npm:3.6.1" +"@react-stately/checkbox@npm:^3.6.5": + version: 3.6.5 + resolution: "@react-stately/checkbox@npm:3.6.5" dependencies: - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/checkbox": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 2aefb0b42063f13e89e9eac4ea9a52b4d7e68fb528064549067bd680a8887b400e13e5303a190552b3543e899170bd6474bfc04fa46d4fb5b8e6c8bb50a15c71 + checksum: fa9c1c0376fca5ac384f6a02dfc6543945dde81458d0466fa9e788ec61a71d0e84e1f6749a12917e02638f6d887df2eb7cba597e161eacd16ae907c8c75da2f6 languageName: node linkType: hard -"@react-stately/collections@npm:^3.10.4": - version: 3.10.4 - resolution: "@react-stately/collections@npm:3.10.4" +"@react-stately/collections@npm:^3.10.7": + version: 3.10.7 + resolution: "@react-stately/collections@npm:3.10.7" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d82209a198c1cfcc7a7b67ea33a0990cb2a4e371bb838a533b3a95ba9c7ae2a80d1ac5957fdecc77e8e90c711b1beb9d4e8c65073e5826d20d8492990979098a + checksum: f52ee5478a4473accd828798d29a21542d9ce340eab49ce631bcb25f99963aee2696338be3798fcb5d90172759dd7dd547e73f12127a48533dd84d3f9fd7e4cf languageName: node linkType: hard -"@react-stately/combobox@npm:^3.8.1": - version: 3.8.1 - resolution: "@react-stately/combobox@npm:3.8.1" - dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/list": "npm:^3.10.2" - "@react-stately/overlays": "npm:^3.6.4" - "@react-stately/select": "npm:^3.6.1" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/combobox": "npm:^3.10.0" - "@react-types/shared": "npm:^3.22.0" +"@react-stately/color@npm:^3.6.1": + version: 3.6.1 + resolution: "@react-stately/color@npm:3.6.1" + dependencies: + "@internationalized/number": "npm:^3.5.3" + "@internationalized/string": "npm:^3.2.3" + "@react-aria/i18n": "npm:^3.11.1" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/numberfield": "npm:^3.9.3" + "@react-stately/slider": "npm:^3.5.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/color": "npm:3.0.0-beta.25" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ad4ded0fe656e0786c169be662b91254eaa5721ff0eff265a0bc71ddb9cc6226486ca6b84cd4c98f9374029f59228a490537b3e805dab0de942af741e7eaf4d2 + checksum: 41e9ff4c5d965b429a96001d845984b4a9e86fb46b4b340d590f6bfbafd91b454093b921a3eb2c1f5d8884cb59fc0408b0c867972436777b6af2b99eb13d0e44 languageName: node linkType: hard -"@react-stately/data@npm:^3.11.0": - version: 3.11.0 - resolution: "@react-stately/data@npm:3.11.0" +"@react-stately/combobox@npm:^3.8.4": + version: 3.8.4 + resolution: "@react-stately/combobox@npm:3.8.4" + dependencies: + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/list": "npm:^3.10.5" + "@react-stately/overlays": "npm:^3.6.7" + "@react-stately/select": "npm:^3.6.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/combobox": "npm:^3.11.1" + "@react-types/shared": "npm:^3.23.1" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 0a5863a6d82eab95d0e08a8ffcd92cc6a3f7c35589feeb9bad615d9cbe105f4abcfe1e641898b334b1c34ab84d8d97cf7e3c942175306808eb1b291f1bbc753a + languageName: node + linkType: hard + +"@react-stately/data@npm:^3.11.4": + version: 3.11.4 + resolution: "@react-stately/data@npm:3.11.4" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ca7873a58a19be51863384f738a69efc369cc0db262564f8842b251fefecbad74b9b74e8cd17230b1e300a5de3574f1b5f09253b88d949541af1066e5df28da7 + checksum: 79ae8819cac2cdf0888dbf50bac646ed1d5183b7e565d27894ca2fea8066b4b259acb04d41af21cf8abe9bbf1b96c743c6e05c5b53158888c2917fd482e8e3e2 languageName: node linkType: hard -"@react-stately/datepicker@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-stately/datepicker@npm:3.9.1" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@internationalized/string": "npm:^3.2.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/overlays": "npm:^3.6.4" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/datepicker": "npm:^3.7.1" - "@react-types/shared": "npm:^3.22.0" +"@react-stately/datepicker@npm:^3.9.4": + version: 3.9.4 + resolution: "@react-stately/datepicker@npm:3.9.4" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@internationalized/string": "npm:^3.2.3" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/overlays": "npm:^3.6.7" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/datepicker": "npm:^3.7.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 14b816140c158fb6986eb14d18f79b75d859d06f7d5c93854d6cfdc699cd537e90b50356e0b2c1e2c0d684173abc1e1fee51c15488167f4c6a29ca3dd369c43f + checksum: a50188bb2a15b7cddadc2bd6b5a9b81c297bba6820df874472c67fdd66c590cf4ce21fc4af8b2e02e08c3284246deb674743456c8b5d85c20490efcc6491a785 languageName: node linkType: hard -"@react-stately/dnd@npm:^3.2.7": - version: 3.2.7 - resolution: "@react-stately/dnd@npm:3.2.7" +"@react-stately/dnd@npm:^3.3.1": + version: 3.3.1 + resolution: "@react-stately/dnd@npm:3.3.1" dependencies: - "@react-stately/selection": "npm:^3.14.2" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/selection": "npm:^3.15.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 308fb88db9d650a9d306da5fd51fe1500598a75e22d8e488165224735a0300658cd05645f48f2b1dbf3aeb35fc162e9ce9e38c122a0005d53b4b7733851a1673 + checksum: 100a5a32ade132ae18887354547d704c2cd78e0b8e572009e589563a1947f9c72bfcbc62c46598692106c733107a53033144f288e82db99557137d144b0465bb languageName: node linkType: hard -"@react-stately/flags@npm:^3.0.0": - version: 3.0.0 - resolution: "@react-stately/flags@npm:3.0.0" +"@react-stately/flags@npm:^3.0.3": + version: 3.0.3 + resolution: "@react-stately/flags@npm:3.0.3" dependencies: - "@swc/helpers": "npm:^0.4.14" - checksum: 7a65481abb3093766d5912d0f428214481047d52c350879c62306829b3f0127389b338a1fc5262400dd7d5d6847b8fa5bf02da766c1474bbddb30cb58384d38a + "@swc/helpers": "npm:^0.5.0" + checksum: a5e8d2ce3a2d535d96e20b8a495641b41c242bfbcec9e0c2f4fa82531654a04d4ffb709fbe2a71f1d9e3bba612f8dcd1fbb8c03888e7600549882f40f3cd1897 languageName: node linkType: hard -"@react-stately/form@npm:^3.0.0": - version: 3.0.0 - resolution: "@react-stately/form@npm:3.0.0" +"@react-stately/form@npm:^3.0.3": + version: 3.0.3 + resolution: "@react-stately/form@npm:3.0.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 6c55818e846df74ac18ac7a6249c5967010440d6148017c100456eace6fd88d9472e99feec27fe41e7c4c8289a028266d7b619cdc16da0ca164dd492fa4c0d78 + checksum: d89c2099455e84cd0c77f6c8f3204f790aaab90a4e713f77269ab1a13229daa222906b7bf5d12188380cebb041a48c7d4c60676c920d5f2d27c577ee90a86b5e languageName: node linkType: hard -"@react-stately/grid@npm:^3.8.4": - version: 3.8.4 - resolution: "@react-stately/grid@npm:3.8.4" +"@react-stately/grid@npm:^3.8.7": + version: 3.8.7 + resolution: "@react-stately/grid@npm:3.8.7" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d50a721f2487efc96306a76b9b9d7de973533c6ad79597d13d3635a05e5262421394d94ae0ec06bb9ea8b1dbe58af6f80dc01fde04544c1c4b8ef9ab864d0012 + checksum: 9f727ef1129ec03b4ab311e56e6ea46bd042e25a4b8adec89a1177c67dbc13b67e15191d69d10d328478d1460651c6bee2afa212a3de1951fd49cbe8ee6f4231 languageName: node linkType: hard -"@react-stately/list@npm:^3.10.2": - version: 3.10.2 - resolution: "@react-stately/list@npm:3.10.2" +"@react-stately/list@npm:^3.10.5": + version: 3.10.5 + resolution: "@react-stately/list@npm:3.10.5" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 64523ed6842a64204d86478c416aae164a40f47593fa4eb374c2f291b262d5a28ec1c245992a142722278022f8603851dfa1371d023bb2857bd078074087466c + checksum: 14ce16f56ed8614701a2eb1dd6f31b17ec1ae87775576ff9d24a80079634c706590b77de07bfa0da7d20424f83fa33e12365df749ab893680ab163fa899e68fb languageName: node linkType: hard -"@react-stately/menu@npm:^3.6.0": - version: 3.6.0 - resolution: "@react-stately/menu@npm:3.6.0" +"@react-stately/menu@npm:^3.7.1": + version: 3.7.1 + resolution: "@react-stately/menu@npm:3.7.1" dependencies: - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/menu": "npm:^3.9.6" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/overlays": "npm:^3.6.7" + "@react-types/menu": "npm:^3.9.9" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 21c7f04cb910005fbc6b1f6b78bbf24f98e0b8c37f27bbb8d4b91161c76b823b049aae831b38d0bce15585ab78ffbb10762760e0bdb3a956b4f3a290be2d16b5 + checksum: 7574fbc461ce6686650aceeec6a6af1758983938cdeb0a67e808c389b6867970da75048c5c4cdca807e3ed4c58408e569216bb1b8903a98f232e69c5ed79faf9 languageName: node linkType: hard -"@react-stately/numberfield@npm:^3.8.0": - version: 3.8.0 - resolution: "@react-stately/numberfield@npm:3.8.0" +"@react-stately/numberfield@npm:^3.9.3": + version: 3.9.3 + resolution: "@react-stately/numberfield@npm:3.9.3" dependencies: - "@internationalized/number": "npm:^3.5.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/numberfield": "npm:^3.7.0" + "@internationalized/number": "npm:^3.5.3" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/numberfield": "npm:^3.8.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 758d6d90a62fa33416be5c7d6b18fa998c31b1bc16b626d61682a6d39b33e96bb93a6af9f6224af6afe233ac490e496286c3fcf6a5b421fdb04326375bf20ad7 + checksum: e67979f4327b951b63720ae5ef00a42c2358f2c6a7ecd87aab218a891bc192a369b330f8cdb00d9d9c086e36a2eb96c3faa001225e636c68cbb5efdd865997a2 languageName: node linkType: hard -"@react-stately/overlays@npm:^3.6.4": - version: 3.6.4 - resolution: "@react-stately/overlays@npm:3.6.4" +"@react-stately/overlays@npm:^3.6.7": + version: 3.6.7 + resolution: "@react-stately/overlays@npm:3.6.7" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/overlays": "npm:^3.8.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/overlays": "npm:^3.8.7" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 80205ef3a99c80ebc43c14f55287de45a71185acdb5243d0194ee8fe963f3ea4acc4abc877ed445e457df5b0c8cc5812b7d8181d425f9b28c895cfd7d05e6a55 + checksum: 061f54d71de0f9c436393d48d21af7780003f48719e87e21fdbddd7b01abfb200dd91ca5a4dcce0498e9683780cd1f3f9470be9a365250aa82911ba184279bb5 languageName: node linkType: hard -"@react-stately/radio@npm:^3.10.1": - version: 3.10.1 - resolution: "@react-stately/radio@npm:3.10.1" +"@react-stately/radio@npm:^3.10.4": + version: 3.10.4 + resolution: "@react-stately/radio@npm:3.10.4" dependencies: - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/radio": "npm:^3.7.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/radio": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 345a844e24c037dd50c2eb05bec77151bf1988755ce451bb996bfaa7bbd84ce33be42fd79351048d560fe5900da089b6f62972e9b602026d859f33f826371106 + checksum: 9be023632c4bdeeef958d0aae4cc61644bb1f2f9700dbb0d5cf0fbfced58ed2c2c449a22e95bed8830647ad4a02ebfb8695bd3c381acd6e4574ced498a92b5d8 languageName: node linkType: hard -"@react-stately/searchfield@npm:^3.5.0": - version: 3.5.0 - resolution: "@react-stately/searchfield@npm:3.5.0" +"@react-stately/searchfield@npm:^3.5.3": + version: 3.5.3 + resolution: "@react-stately/searchfield@npm:3.5.3" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/searchfield": "npm:^3.5.2" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/searchfield": "npm:^3.5.5" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c6b350390de0e6ab5a7749f45da44547460424c497024291375ef5702083e7d787484c3d1191e73a54cb5b5b20eab6e4e8f4cf2d38c9326a0d84f74dad0c5363 + checksum: c26168cb48b6fed1afecda2bc096aad983666b3ebcce1e90e683807c491cd6927dfe2f630f0a1a785de8de16775897ad6682040a0102b84f8ab312e53873f8c0 languageName: node linkType: hard -"@react-stately/select@npm:^3.6.1": - version: 3.6.1 - resolution: "@react-stately/select@npm:3.6.1" +"@react-stately/select@npm:^3.6.4": + version: 3.6.4 + resolution: "@react-stately/select@npm:3.6.4" dependencies: - "@react-stately/form": "npm:^3.0.0" - "@react-stately/list": "npm:^3.10.2" - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/select": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/list": "npm:^3.10.5" + "@react-stately/overlays": "npm:^3.6.7" + "@react-types/select": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e355aa78a7d3f9670a7e8882169e0ddbc330bd828920e392dcbc5c8604b9d4fb58bea2db365e58371f0df26d0ec4703c3562f8eeccbfce32c4182f1db135501e + checksum: 25ed84df9f2b56a7e03fa6214845d88b4090ebfb3868a0a29c507e24879bd2db7abb24df0f6aeacabd3ea0b0e9759c0e1b2689634b82a4a1c856f47dabc3383a languageName: node linkType: hard -"@react-stately/selection@npm:^3.14.2": - version: 3.14.2 - resolution: "@react-stately/selection@npm:3.14.2" +"@react-stately/selection@npm:^3.15.1": + version: 3.15.1 + resolution: "@react-stately/selection@npm:3.15.1" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ff596df1e8bb42bad29e8f6f7613ff86bf938ecdc066dd69bb10daae4e55b3180f36fce1b826deb3abe24fd19733b468a8ae7ae87d47fff3e55077b8ab07645d + checksum: 4926d0c67b92ced4b9fcc2c092e693fd12e9a3b94bdd4a1ba0c5cdb76d399c5cc45ba814901bf9547a031e1af1e0d7ca21d2be7e5539d17b6a20f47044469276 languageName: node linkType: hard -"@react-stately/slider@npm:^3.5.0": - version: 3.5.0 - resolution: "@react-stately/slider@npm:3.5.0" +"@react-stately/slider@npm:^3.5.4": + version: 3.5.4 + resolution: "@react-stately/slider@npm:3.5.4" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" - "@react-types/slider": "npm:^3.7.0" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" + "@react-types/slider": "npm:^3.7.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9dc3413bdbc4dee764dc274b7636c5cd794ab3d847dce47179701d09fe4e0dbd4d8aa21d763e7a4726332c4df6033b55b4038e5d658c8ae1cc191f17687d3015 + checksum: 9af16a9b69d2899827ca1a79630978999784a08ab800998486e0788bd37168d98dab75cc66a92679dbe26db1ae9b2b7af84459e4f35d0a57455322cba3c03483 languageName: node linkType: hard -"@react-stately/table@npm:^3.11.4": - version: 3.11.4 - resolution: "@react-stately/table@npm:3.11.4" - dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/flags": "npm:^3.0.0" - "@react-stately/grid": "npm:^3.8.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" - "@react-types/table": "npm:^3.9.2" +"@react-stately/table@npm:^3.11.8": + version: 3.11.8 + resolution: "@react-stately/table@npm:3.11.8" + dependencies: + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/flags": "npm:^3.0.3" + "@react-stately/grid": "npm:^3.8.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" + "@react-types/table": "npm:^3.9.5" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 2becaf04ef06e2e61e5834a383ed322f8f0b01ede285adacb5efdb1318589bf357071a639c2f63d753b3c7d6049c7f253f2a6ec4a2526c2efef873a5a5c02be0 + checksum: a473010b2a8c6674192a3b7d0cacca18174600f5dc0c0320eb4575a5d2b973b2c57b8757fc154a2f8c97367b7e306f8e2ab6a51bfa6357f861adc50f1ff69503 languageName: node linkType: hard -"@react-stately/tabs@npm:^3.6.3": - version: 3.6.3 - resolution: "@react-stately/tabs@npm:3.6.3" +"@react-stately/tabs@npm:^3.6.6": + version: 3.6.6 + resolution: "@react-stately/tabs@npm:3.6.6" dependencies: - "@react-stately/list": "npm:^3.10.2" - "@react-types/shared": "npm:^3.22.0" - "@react-types/tabs": "npm:^3.3.4" + "@react-stately/list": "npm:^3.10.5" + "@react-types/shared": "npm:^3.23.1" + "@react-types/tabs": "npm:^3.3.7" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d2b776e0481d9497e2b1c9610d55412afa36e1ce5cf2fb28bc6b5a5b454941f587bcf948ff0307990d8b7f7d4c6ee1a739fc997cf639343cab7fb8ac17647b8a + checksum: cd46ac05290f235a566cd8b67bf471e435e6effc5fa8b0cfa3ed4d3bcbaeb991d22c49e161f95aa177e5a1366d7b81dc4ac54a6e82d7aa9c17ee412ea4bb4fce languageName: node linkType: hard -"@react-stately/toggle@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-stately/toggle@npm:3.7.0" +"@react-stately/toggle@npm:^3.7.4": + version: 3.7.4 + resolution: "@react-stately/toggle@npm:3.7.4" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/checkbox": "npm:^3.6.0" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/checkbox": "npm:^3.8.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f366a41c92948d1631ad7fed699115bc0c2c6f134a29b3b1b5d0cdc083f72a1862cd0f447e4a1a1b37c2013f1b859d00583a1c8691a7e1d93ba9db0cacffe36a + checksum: d0d4260e9434120699fe25266ce1db8ebd74bf0c2b18c838db23e9f2f7337b5e8fc9eff7a0d1edc210a947b3b87e8bda70b095c26cd32d226ff64ae1f561be63 languageName: node linkType: hard -"@react-stately/tooltip@npm:^3.4.6": - version: 3.4.6 - resolution: "@react-stately/tooltip@npm:3.4.6" +"@react-stately/tooltip@npm:^3.4.9": + version: 3.4.9 + resolution: "@react-stately/tooltip@npm:3.4.9" dependencies: - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/tooltip": "npm:^3.4.6" + "@react-stately/overlays": "npm:^3.6.7" + "@react-types/tooltip": "npm:^3.4.9" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: a9fef79f850592a9eb418edc800cc4ecd92f00d918796472fb65d7eaa4541496bdad8d9327a131db585b1c7bdb7b9ed882d5c9e78bb84127f3ea8217c217996b + checksum: f5ec609a90970926833cc29e626a26e485ef51a3a1315ac7f4e52708b4cbbb1c33f95952dc901e8b9bb439ac663195ed5ab2db8ac39918562a8427aba1fb9f99 languageName: node linkType: hard -"@react-stately/tree@npm:^3.7.5": - version: 3.7.5 - resolution: "@react-stately/tree@npm:3.7.5" +"@react-stately/tree@npm:^3.8.1": + version: 3.8.1 + resolution: "@react-stately/tree@npm:3.8.1" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 46a81a00c2aa0f7b90a436e0dd25893934f4d63f3103284d865f5ab0fc5d84a38e2bf99149b18ed715077bff24f4fa2ef6d7db6ce191d0599547b258e205849d + checksum: 24ab312778bb49f612047e889afbed5a47a790bb2b6952c0181bb5fae15fadc6ab3ee18dbd22176b56a9701c41dbc1ca96b46bc3218dbc1b517b7b1dbc9a9d20 languageName: node linkType: hard -"@react-stately/utils@npm:^3.9.0": - version: 3.9.0 - resolution: "@react-stately/utils@npm:3.9.0" +"@react-stately/utils@npm:^3.10.1": + version: 3.10.1 + resolution: "@react-stately/utils@npm:3.10.1" dependencies: "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 66bb72441c289c334cf626ac789bb601db8b765e3f522181f8ff38b281bede9d1b2474dc6d5f17b6b31c12f48425797151eb2d4df5922e05c2e467ee195b7ade + checksum: b3fc1367eb26afa1d7a4e3d5cf5cf215be4a4698296db25d34a9096a9eb79cff5c3770da48989970e6b6734199bfb9a10c31cd62a39b20980b2ede78061f8ee9 languageName: node linkType: hard -"@react-stately/virtualizer@npm:^3.6.6": - version: 3.6.6 - resolution: "@react-stately/virtualizer@npm:3.6.6" +"@react-stately/virtualizer@npm:^3.7.1": + version: 3.7.1 + resolution: "@react-stately/virtualizer@npm:3.7.1" dependencies: - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 45fd982fb3c0c52af3e5c4c6ab8a79f14b6b2c768cfd13754ee1397fb9459a97a4a28db666df144c3f569ac5d82bb6d8832de8e2f017c17ab986fc0437888017 + checksum: b40b095cd57d87f2db0533ca19cd5572d47b020cca1410b3e9627003426f3be0cd3fab48d20ef30b541e852eeea285993e8ed65c09a32ff199240c4196999812 languageName: node linkType: hard -"@react-types/breadcrumbs@npm:^3.7.2": - version: 3.7.2 - resolution: "@react-types/breadcrumbs@npm:3.7.2" +"@react-types/breadcrumbs@npm:^3.7.5": + version: 3.7.5 + resolution: "@react-types/breadcrumbs@npm:3.7.5" dependencies: - "@react-types/link": "npm:^3.5.2" - "@react-types/shared": "npm:^3.22.0" + "@react-types/link": "npm:^3.5.5" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f911a57124652dd1ae7f30b4e5158a9accaec166a244f3c98942c26250997a28e4e2aaa2e66923738ee8fe832e95babcae14bc3dd1f20c9eeed533ef597de2cc + checksum: bf9a7e5f3eafaf007d0ba561f20849c2d1ad07ea973f6ee05ecb0826d4175fb49c86c4d0a2aaa56e343ed5b00c347661eef98dd2870c46130b1e1e843bc80747 languageName: node linkType: hard -"@react-types/button@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-types/button@npm:3.9.1" +"@react-types/button@npm:^3.9.4": + version: 3.9.4 + resolution: "@react-types/button@npm:3.9.4" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 712eb4dbd3bf1afe96a4d1438c95e54b44117bb1cef31a1984d678ef716672d47ebbbbbb1736a2083e47e435e652aa70384f4cf9e9e302d7f1d0878d176ace68 + checksum: aebbbbb61320c78ea41ebc51ce8b1bf4a08952dde17e2de96a5f0e1f49e9d9a3d9fc74862448f28eedde0230f2d07c25ed06138964d5c1b3892ced1d80470872 languageName: node linkType: hard -"@react-types/calendar@npm:^3.4.3": - version: 3.4.3 - resolution: "@react-types/calendar@npm:3.4.3" +"@react-types/calendar@npm:^3.4.6": + version: 3.4.6 + resolution: "@react-types/calendar@npm:3.4.6" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.4" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 965fbe34431e8296cc3d14a647e528c31079ee5d07a5cd0cbb83c7ca7c873d0c69f7f779f5fa2ada704610f75a757e51b7589928e67fe371f0b6947c8a1bc1f1 + checksum: 347f800f056c90e8bd6928fcb7377c6cbaf596296ea7f20059d650ae7a192a5aa83deb874edd85955453e03a5112cbb2e586f66652158044dba3035aa653674a languageName: node linkType: hard -"@react-types/checkbox@npm:^3.6.0": - version: 3.6.0 - resolution: "@react-types/checkbox@npm:3.6.0" +"@react-types/checkbox@npm:^3.8.1": + version: 3.8.1 + resolution: "@react-types/checkbox@npm:3.8.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c3e945a666922384ebc868e5eb56b8861c302824fd73e8c109fbd5d0b9ff6752014f411b998c3ee4e4ae636f84b0c124ee97dbbf6a6c0d343c1092bd9b2a2b21 + checksum: a5dc85c06aed4e96f39dd2357bebf866f3abb59c5966b7307a1d6702d54aa0b252e3eba428af49cd0cd9e575961272ec307b1a4e09d72a936880b7388313bb26 languageName: node linkType: hard -"@react-types/combobox@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-types/combobox@npm:3.10.0" +"@react-types/color@npm:3.0.0-beta.25": + version: 3.0.0-beta.25 + resolution: "@react-types/color@npm:3.0.0-beta.25" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" + "@react-types/slider": "npm:^3.7.3" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ae8841fc55cb19ab25a876e2afd05e06d6ab51fdfaeec6ab7cd6c577ff26c16d506ed628c20750db2596ea86eb990c731ca61e89f7fda03d2f65feb10a306cd7 + checksum: 1f0598949e73088e69fc5637fdb6e32662b8b47f0e7d9bfaf5f9f9ef8a5bbaad5b40771ff40e4fbb0cb353ab2002396c1889b554dad8aadb223178b40a851cdb languageName: node linkType: hard -"@react-types/datepicker@npm:^3.7.1": - version: 3.7.1 - resolution: "@react-types/datepicker@npm:3.7.1" +"@react-types/combobox@npm:^3.11.1": + version: 3.11.1 + resolution: "@react-types/combobox@npm:3.11.1" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: afe84b362d041c3559847b564c44a3468ff957fb86feec1c28a222e9d4724601d608b504619033bc325f880dcb8aae25779379770b4c2e6c1d8d0091d4cc4199 + checksum: 0f5539a2c721b4f1d8cf343924f269dc7b82502b6f7aa032b79521320f4dd1761e3908c5d671fb207866c1652ffb67ecab4c8baba7be521f54fb04713478c9e3 languageName: node linkType: hard -"@react-types/dialog@npm:^3.5.7": - version: 3.5.7 - resolution: "@react-types/dialog@npm:3.5.7" +"@react-types/datepicker@npm:^3.7.4": + version: 3.7.4 + resolution: "@react-types/datepicker@npm:3.7.4" dependencies: - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.4" + "@react-types/calendar": "npm:^3.4.6" + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4f79ee1eb4e935435c2f04571900ac83fd0638f0d15fe4ac1b5acac6057718a37fdec0b735c3b44439f09b905552c241107c1b14fac57dcb7e14bc68127f0e9c + checksum: d323c6d8e8e8162cb59e1b8ef65c54271cf36f7b6e04c6279712294a2d0a47c037d9b93501950bfcb527a24ee97c9196201357ce74577386762b9effb0dc5e67 languageName: node linkType: hard -"@react-types/grid@npm:^3.2.3": - version: 3.2.3 - resolution: "@react-types/grid@npm:3.2.3" +"@react-types/dialog@npm:^3.5.10": + version: 3.5.10 + resolution: "@react-types/dialog@npm:3.5.10" + dependencies: + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 56d49adb78bfdcf4252ca784c7f0a7ccfc1e766f909a24d2864ab988e948c0f82b7bd04be3d023dcc1f69395502fbbf09214f00624499e0c6342d5167420d5bd + languageName: node + linkType: hard + +"@react-types/form@npm:^3.7.4": + version: 3.7.4 + resolution: "@react-types/form@npm:3.7.4" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ab2abf027d1a5364bfb3957732dfea9485f739ba50e86eb4c75be5cce1a9b374191d8a1664dea3487504207ffed93a1fbc395fb01d7c503ab34f52f8a6adcd0e + checksum: 24c84e455f27f170f32c616e99baa0c44f8686c5d1573c6f4ae9791d95dec095c3a0f745bcac6d63212187476d58cef0c9766f968376d98ecd3d517f3c24d7fe languageName: node linkType: hard -"@react-types/link@npm:^3.5.2": - version: 3.5.2 - resolution: "@react-types/link@npm:3.5.2" +"@react-types/grid@npm:^3.2.6": + version: 3.2.6 + resolution: "@react-types/grid@npm:3.2.6" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c3268a83614f2d10274a93ebbab77bb586f3e8c9050eea96a74646e1a456d77b844c4f0e2437277dd932ba260806aea2327ffc5f3351b6279808e599c8c2f5eb + checksum: a1da4fe93186c32b59c9f3f8506bf92c01a909d72de136ec277c877a26ebdae7d9fae1505de2b90ed3cfa118c300d58192eaf8cb0f2bb1a48b27329e37c5ee16 languageName: node linkType: hard -"@react-types/listbox@npm:^3.4.6": - version: 3.4.6 - resolution: "@react-types/listbox@npm:3.4.6" +"@react-types/link@npm:^3.5.5": + version: 3.5.5 + resolution: "@react-types/link@npm:3.5.5" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 12e2f6eb27692b9af7095101ebf84910d65743615c0fadf21bbf60d2f2dd4fe8f1c885137b7237062fe774704889e3645b22d27b74ef5490e518db63dbba7ffa + checksum: 45ed617810314eaddc1a0472a360de8e1ca9c955baa319d51e22e822fb0194e62fc1fee225d6e9a9a8fba7f044d607cb510cd6d20bb53dd144fd751dc550fa81 languageName: node linkType: hard -"@react-types/menu@npm:^3.9.6": - version: 3.9.6 - resolution: "@react-types/menu@npm:3.9.6" +"@react-types/listbox@npm:^3.4.9": + version: 3.4.9 + resolution: "@react-types/listbox@npm:3.4.9" dependencies: - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 14812700f810a75a1b6f85077c35292c50783fbaf404d6ee3ab21ca73151cb95f527824e45cb4c0dd02ce5b99d5a4eba21f78da53093000a003e848b06690b86 + checksum: 6f536c06d1a9fe9e2fa24b7bae3cabfec1474e65e3a9bea41eef128984cf5a83ab8f8dd0f22033a61f09e0f725024687590c9d2a8430024c96a583196d97f1c6 languageName: node linkType: hard -"@react-types/meter@npm:^3.3.6": - version: 3.3.6 - resolution: "@react-types/meter@npm:3.3.6" +"@react-types/menu@npm:^3.9.9": + version: 3.9.9 + resolution: "@react-types/menu@npm:3.9.9" dependencies: - "@react-types/progress": "npm:^3.5.1" + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7e6b97cc18ec0fbb23bc8ee6e486f41bdeb1c1ee6852c303c01403c13598b4613b2025f0b40d0b539a8f3c00cd840d9d9fa0abe9aed4e59cef6e91faecee42f6 + checksum: efa730a42a7152613e15bf967f6cda74dcd365d81cbda3a018f926f546d19f6c09f1eaf7a2e834f2cdfccccde68d1e909413e058a61f15e1f98695b26a103ea6 languageName: node linkType: hard -"@react-types/numberfield@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-types/numberfield@npm:3.7.0" +"@react-types/meter@npm:^3.4.1": + version: 3.4.1 + resolution: "@react-types/meter@npm:3.4.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/progress": "npm:^3.5.4" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: b34c5d3433968b9cc40e23bcdccd5da25c4a322ddc0c31adb7519d379480c5f5c5cd283e3878092aa41fb534f73542fe0b773bf2dff3bc65c40e8a17900dd165 + checksum: 553c823cfa591f512e11fb2cb269cd88ee629da267cf0e98ee0fbafcbf4537a582dde0070f2d783d349c12813ed797e95b83bf56e9bfc380a14ba3680578655b languageName: node linkType: hard -"@react-types/overlays@npm:^3.8.4": - version: 3.8.4 - resolution: "@react-types/overlays@npm:3.8.4" +"@react-types/numberfield@npm:^3.8.3": + version: 3.8.3 + resolution: "@react-types/numberfield@npm:3.8.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 14b7ab6b24d322c37fc23571dacb2cba7a144902f7421f65c9809029a573e40144ad4db1a583d807e52d4f4e40f1a8785eca303d1a79edf9bb390bb482a5707f + checksum: 4ed826ea05a90cb798b267007ec6ab3aa03844c71b04ca01113ac6ddef10d3d278909e4388454f41558f91ea51c25977a9bc02c02aa834104b0a1ec643af9297 languageName: node linkType: hard -"@react-types/progress@npm:^3.5.1": - version: 3.5.1 - resolution: "@react-types/progress@npm:3.5.1" +"@react-types/overlays@npm:^3.8.7": + version: 3.8.7 + resolution: "@react-types/overlays@npm:3.8.7" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4f177805e16d6ee3df51e18f0df07b12dffae746f3c065958939cddbec13d3307bf63f43c27e2e74a6eae1b08b24a14a24ceaf64232b166e368f25cef5da7fa0 + checksum: 758eed6a2a13128c40585dd4e47bdc807d49ecf7b12822ec9aa84c5797604c67fe4750300253805a4206feddb0f0bbc01e8f70666aff299dce51b3aeda46c4d2 languageName: node linkType: hard -"@react-types/radio@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-types/radio@npm:3.7.0" +"@react-types/progress@npm:^3.5.4": + version: 3.5.4 + resolution: "@react-types/progress@npm:3.5.4" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 5ab509b7cc377599be000c74f7f0ce6458a82d951f45edd72df499c7b598cd1c2dcb47ebdf9f5aecfbe57b1d900863909289e24646291b93153590de358b414d + checksum: 756cf6b1a2b697f4a2152e454da679ce5ed98172ddc68e86433db8d047a4623b6b00808436e4f65ce5253343cd566cf6fe94d486476fb6e55849d182fd182590 languageName: node linkType: hard -"@react-types/searchfield@npm:^3.5.2": - version: 3.5.2 - resolution: "@react-types/searchfield@npm:3.5.2" +"@react-types/radio@npm:^3.8.1": + version: 3.8.1 + resolution: "@react-types/radio@npm:3.8.1" dependencies: - "@react-types/shared": "npm:^3.22.0" - "@react-types/textfield": "npm:^3.9.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c70a534cffc4e19c2acc5613becbd77b71527b8befcf4e6cf2000a9328f8985195ef662a3cfdf61a4c05d996636b8f462b0b22e33ccbedf54b181e6bf1633cb4 + checksum: 6caa15aafc76f4c09be63a307c7ff02ebc6404c4ef3b64b4c43a904be49f8640ba91845cffe0c05e7e77d84a63aa1ac6332d30f2fcf560d3c6d15ea58833910a languageName: node linkType: hard -"@react-types/select@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-types/select@npm:3.9.1" +"@react-types/searchfield@npm:^3.5.5": + version: 3.5.5 + resolution: "@react-types/searchfield@npm:3.5.5" + dependencies: + "@react-types/shared": "npm:^3.23.1" + "@react-types/textfield": "npm:^3.9.3" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 455c9a2d8e76194dcae9ec216c05472646c998e9bce6a53cc7b119f2df9b9b139de4acf31485d9137c49dce7f2468ae48aa647a3bb8a644080f143718f0b4658 + languageName: node + linkType: hard + +"@react-types/select@npm:^3.9.4": + version: 3.9.4 + resolution: "@react-types/select@npm:3.9.4" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7faa872468e2d4789cc35903410582141743c8b327dd44816a5f888d53bba28e44fa040f79b031545754477fd82e1bb8e5cfe86ac6051076e18d2f92eedf0c7d + checksum: 630f1ac7381e61e91546ee1dd567928d1b0cd151d699c1b3e7a5ad7824aa1f786c1d4efd70ff6626f8cf80eac2ae9666a1d18b7fd72c31ff41073da50abac622 languageName: node linkType: hard -"@react-types/shared@npm:^3.19.0, @react-types/shared@npm:^3.22.0": +"@react-types/shared@npm:^3.19.0": version: 3.22.0 resolution: "@react-types/shared@npm:3.22.0" peerDependencies: @@ -3953,71 +4153,80 @@ __metadata: languageName: node linkType: hard -"@react-types/slider@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-types/slider@npm:3.7.0" +"@react-types/shared@npm:^3.23.1": + version: 3.23.1 + resolution: "@react-types/shared@npm:3.23.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 1ea30702a408554e45b827e66ebf2a9674aec7d7d04a4f3723f2fe1c677be36701d5f08d4914d6018c4bcb6f2fe07d8c3a5840dfe3299ee69092b78c723c9c03 + languageName: node + linkType: hard + +"@react-types/slider@npm:^3.7.3": + version: 3.7.3 + resolution: "@react-types/slider@npm:3.7.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d1683f71e872db02fbe8c699b4647cb3b729bde94077e4f01d19c0f3ad8be3a137c8be927bc4fe5b2f5a96dfa669ef411f82baa0af93f986c77545e99882c258 + checksum: 583cf97a5fd8150cff44ef9449192a10d5dc3111ad401cc72e6f961158e3369f8115e5858e5998687f5e936ffa8ff037d043ffaa3caf93dfe3f4a37d613fc6aa languageName: node linkType: hard -"@react-types/switch@npm:^3.5.0": - version: 3.5.0 - resolution: "@react-types/switch@npm:3.5.0" +"@react-types/switch@npm:^3.5.3": + version: 3.5.3 + resolution: "@react-types/switch@npm:3.5.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c562dea2175236ce2f77f969a6db87fcd77ab4f32331556f76c4004688d9da485dcfaa387f835d354fd8661b7a9c9422d850e67cbcf75ded2b3ac6f6a21c271e + checksum: b9ceadf6f2e0a18653f6762359767620c7381cba147da71180e3bc15f4f5df1b7e874bcd313f6a93bbeda40ebfd2daa5f5e6bd58f4bde07aefc965fae78cf9b8 languageName: node linkType: hard -"@react-types/table@npm:^3.9.2": - version: 3.9.2 - resolution: "@react-types/table@npm:3.9.2" +"@react-types/table@npm:^3.9.5": + version: 3.9.5 + resolution: "@react-types/table@npm:3.9.5" dependencies: - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c7ad042ba7a3daffbfb1b278fec198e19a102ffb28117505294ce5f4fe10581062e9190a32ccfd9ee132225d438509e214d68a8df26ec25739db26de882321ee + checksum: e982e76fd87e0d6c9b0a15ca7c7315aac03ab14eba469385e9974237af18d5f7ee937682b62d4e9851e2ed4c0a1504e13b5cf57df848ad622ef9a7a1aa250546 languageName: node linkType: hard -"@react-types/tabs@npm:^3.3.4": - version: 3.3.4 - resolution: "@react-types/tabs@npm:3.3.4" +"@react-types/tabs@npm:^3.3.7": + version: 3.3.7 + resolution: "@react-types/tabs@npm:3.3.7" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4a314f24879205d48d12b558a3af03da67d827d7c5f1a3b161a38efdf796b2394b01945ca48ff4452f818c8d07a5ada9c90a0a760fcc7105ea5799dc0e64da1b + checksum: 83ca1ddb6890c00c7920c81b8aedfbfe940776f430ceb78651897ded54e1f478dc6f9e755a8a92796dd4607296a53dd54ec298f7dede1e2b4ca593b6c210c484 languageName: node linkType: hard -"@react-types/textfield@npm:^3.9.0": - version: 3.9.0 - resolution: "@react-types/textfield@npm:3.9.0" +"@react-types/textfield@npm:^3.9.3": + version: 3.9.3 + resolution: "@react-types/textfield@npm:3.9.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 993cc525649e5a7be67580b18b5539c77915c75902d23fe7a7fbc572ee35dccba8128a53bd6a82069751bc21611937d06492b518f2acd9aa80a86075dd336afb + checksum: 8fc6f551d57ae0ea31f1386475d613444835253abc04e2acaa00a3779c0e8755a501f0756276fbfc00190e194f7b2350e00a60bf0defeaff3fd29f5b8ca7dd4d languageName: node linkType: hard -"@react-types/tooltip@npm:^3.4.6": - version: 3.4.6 - resolution: "@react-types/tooltip@npm:3.4.6" +"@react-types/tooltip@npm:^3.4.9": + version: 3.4.9 + resolution: "@react-types/tooltip@npm:3.4.9" dependencies: - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d312ae556488949101cc462a69091a7174b2b0d8937efc32a0da6d385135f2fefeaa813b7c86bf7cbe4256f503b8b99f312d4399aa71c00b77706c222fc142c0 + checksum: 9f25925f182d3827c96e4f3a3e71379ec362e12c637744830785480cbf57ad64fbb529090bf2f871ec6c1213adacfeb30e25135a882ec1f171a0c75b053c02d4 languageName: node linkType: hard @@ -4448,6 +4657,120 @@ __metadata: languageName: node linkType: hard +"@storybook/channels@npm:8.1.4": + version: 8.1.4 + resolution: "@storybook/channels@npm:8.1.4" + dependencies: + "@storybook/client-logger": "npm:8.1.4" + "@storybook/core-events": "npm:8.1.4" + "@storybook/global": "npm:^5.0.0" + telejson: "npm:^7.2.0" + tiny-invariant: "npm:^1.3.1" + checksum: 7d46425fdb9ed13c066963935f68366e0a4e0a896ae9608b815176a3d019e47eb3850a964cecec2c36cd24dca1a4038bfaac26989e9c876eb019fe8390f04542 + languageName: node + linkType: hard + +"@storybook/client-logger@npm:8.1.4": + version: 8.1.4 + resolution: "@storybook/client-logger@npm:8.1.4" + dependencies: + "@storybook/global": "npm:^5.0.0" + checksum: 5ce832840cab1a62533078dfcff4ef34866125058bcdf638931fda151c4a4499e420eefe9d2f9d715c384b908364cc6e491dc0951e61c1a030658dfc134563c5 + languageName: node + linkType: hard + +"@storybook/core-events@npm:8.1.4": + version: 8.1.4 + resolution: "@storybook/core-events@npm:8.1.4" + dependencies: + "@storybook/csf": "npm:^0.1.7" + ts-dedent: "npm:^2.0.0" + checksum: 3cd4110d46ead0be622d2f406a3ad945c92714f7c237b35a09a111152882cf38b14e3e5ef8abed9e8d97758e5e17a3f8e1fa81df0158b3b688069caa62632eec + languageName: node + linkType: hard + +"@storybook/csf@npm:^0.1.7": + version: 0.1.7 + resolution: "@storybook/csf@npm:0.1.7" + dependencies: + type-fest: "npm:^2.19.0" + checksum: 19dbd5c72a0c60e4b7cf0255fbbb74452172c03911d0236a0bd26c5e1d1453870800ebfbcd6afd455384fac30bbb5d261193ee2d455bd863344ceb96265139e3 + languageName: node + linkType: hard + +"@storybook/global@npm:^5.0.0": + version: 5.0.0 + resolution: "@storybook/global@npm:5.0.0" + checksum: 0e7b495f4fe7f36447e793926f1c0460ec07fd66f0da68e3150da5878f6043c9eeb9b41614a45c5ec0d48d5d383c59ca8f88b6dc7882a2a784ac9b20375d8edb + languageName: node + linkType: hard + +"@storybook/instrumenter@npm:8.1.4": + version: 8.1.4 + resolution: "@storybook/instrumenter@npm:8.1.4" + dependencies: + "@storybook/channels": "npm:8.1.4" + "@storybook/client-logger": "npm:8.1.4" + "@storybook/core-events": "npm:8.1.4" + "@storybook/global": "npm:^5.0.0" + "@storybook/preview-api": "npm:8.1.4" + "@vitest/utils": "npm:^1.3.1" + util: "npm:^0.12.4" + checksum: 4770eaf9ad353d3c1eba1ddb04343e15f81e1800714eae9768d5271093cfb8a7ab975a7661857f259fc2f9621ae1fbacfdd39b03f96250862fc7d000ea1c8f50 + languageName: node + linkType: hard + +"@storybook/preview-api@npm:8.1.4": + version: 8.1.4 + resolution: "@storybook/preview-api@npm:8.1.4" + dependencies: + "@storybook/channels": "npm:8.1.4" + "@storybook/client-logger": "npm:8.1.4" + "@storybook/core-events": "npm:8.1.4" + "@storybook/csf": "npm:^0.1.7" + "@storybook/global": "npm:^5.0.0" + "@storybook/types": "npm:8.1.4" + "@types/qs": "npm:^6.9.5" + dequal: "npm:^2.0.2" + lodash: "npm:^4.17.21" + memoizerific: "npm:^1.11.3" + qs: "npm:^6.10.0" + tiny-invariant: "npm:^1.3.1" + ts-dedent: "npm:^2.0.0" + util-deprecate: "npm:^1.0.2" + checksum: b2efb472f0ffec13ddf4bfdea60079a7b5a515d18c879dac3640a6ac6694cb3a3151b776c4272b25fcbbb44e66b4b68ede1f2cb5f04b88788176103c9a06bc98 + languageName: node + linkType: hard + +"@storybook/test@npm:^8.1.1": + version: 8.1.4 + resolution: "@storybook/test@npm:8.1.4" + dependencies: + "@storybook/client-logger": "npm:8.1.4" + "@storybook/core-events": "npm:8.1.4" + "@storybook/instrumenter": "npm:8.1.4" + "@storybook/preview-api": "npm:8.1.4" + "@testing-library/dom": "npm:^9.3.4" + "@testing-library/jest-dom": "npm:^6.4.2" + "@testing-library/user-event": "npm:^14.5.2" + "@vitest/expect": "npm:1.3.1" + "@vitest/spy": "npm:^1.3.1" + util: "npm:^0.12.4" + checksum: a90a30a12c44e6d8550a4e7c67b30e45019d2bb856f4761cb0282e638bf3295324dead967856acd8115013a28ca7da35b20e9f9830498e9ee34e7adb4796a08a + languageName: node + linkType: hard + +"@storybook/types@npm:8.1.4": + version: 8.1.4 + resolution: "@storybook/types@npm:8.1.4" + dependencies: + "@storybook/channels": "npm:8.1.4" + "@types/express": "npm:^4.7.0" + file-system-cache: "npm:2.3.0" + checksum: 3b455ce51c01ab2c1d5dd1586990f21a9f22eb6da4cbfba8cedab774ac5c17317cd6695e33e6f1cceda65b0b1a02d5a0231d47643c5b730abb77f0c8557d833a + languageName: node + linkType: hard + "@svgr/babel-plugin-add-jsx-attribute@npm:8.0.0": version: 8.0.0 resolution: "@svgr/babel-plugin-add-jsx-attribute@npm:8.0.0" @@ -4575,16 +4898,6 @@ __metadata: languageName: node linkType: hard -"@swc/helpers@npm:^0.4.14": - version: 0.4.36 - resolution: "@swc/helpers@npm:0.4.36" - dependencies: - legacy-swc-helpers: "npm:@swc/helpers@=0.4.14" - tslib: "npm:^2.4.0" - checksum: fe1e51af79315b58f648d0f377cbd3e8c3cc8c0a6d9b2435a2935c5d1bbb483fb3299e8fcb2f360488b5c4fc4e06494d42c751bf4f853c3582cf467791b2a161 - languageName: node - linkType: hard - "@swc/helpers@npm:^0.5.0": version: 0.5.3 resolution: "@swc/helpers@npm:0.5.3" @@ -4659,15 +4972,15 @@ __metadata: languageName: node linkType: hard -"@tanstack/react-table@npm:^8.9.9": - version: 8.11.6 - resolution: "@tanstack/react-table@npm:8.11.6" +"@tanstack/react-table@npm:^8.13.2": + version: 8.17.3 + resolution: "@tanstack/react-table@npm:8.17.3" dependencies: - "@tanstack/table-core": "npm:8.11.6" + "@tanstack/table-core": "npm:8.17.3" peerDependencies: - react: ">=16" - react-dom: ">=16" - checksum: b8b73d987d3656c3046697d89884438c4dcecfd7a567d6492823d067cb3c7466030065b3e970f59bbd9e413e829f179601353a31ff426a06f7a955c7dd4add5a + react: ">=16.8" + react-dom: ">=16.8" + checksum: 196aa931634eda2f5d5d2947c8deb9f79465e3a15b778fc9ae158640aa85a28f3ba1b150c4428932588407336891b735ba4f516441887e03f221a8a6044be8cc languageName: node linkType: hard @@ -4683,10 +4996,10 @@ __metadata: languageName: node linkType: hard -"@tanstack/table-core@npm:8.11.6": - version: 8.11.6 - resolution: "@tanstack/table-core@npm:8.11.6" - checksum: f3a286f2f6bc4831d076cc4a59036b92309e2e9286256704bfb69c06c22a28172417e403422c31a9199f0a82a799d6252f60e5c211994afb84e73be95af96d87 +"@tanstack/table-core@npm:8.17.3": + version: 8.17.3 + resolution: "@tanstack/table-core@npm:8.17.3" + checksum: 67abd32c6ae12514f8a72d1bdb96061982e9988eae2e6084e043d73f8a9c22e9f4c2ba804ddbc23093116ea86a08b9db24488d539252d265e95988ebeddee350 languageName: node linkType: hard @@ -4697,7 +5010,7 @@ __metadata: languageName: node linkType: hard -"@testing-library/dom@npm:^9.0.0, @testing-library/dom@npm:^9.3.3": +"@testing-library/dom@npm:^9.0.0, @testing-library/dom@npm:^9.3.3, @testing-library/dom@npm:^9.3.4": version: 9.3.4 resolution: "@testing-library/dom@npm:9.3.4" dependencies: @@ -4743,6 +5056,39 @@ __metadata: languageName: node linkType: hard +"@testing-library/jest-dom@npm:^6.4.2": + version: 6.4.5 + resolution: "@testing-library/jest-dom@npm:6.4.5" + dependencies: + "@adobe/css-tools": "npm:^4.3.2" + "@babel/runtime": "npm:^7.9.2" + aria-query: "npm:^5.0.0" + chalk: "npm:^3.0.0" + css.escape: "npm:^1.5.1" + dom-accessibility-api: "npm:^0.6.3" + lodash: "npm:^4.17.21" + redent: "npm:^3.0.0" + peerDependencies: + "@jest/globals": ">= 28" + "@types/bun": "*" + "@types/jest": ">= 28" + jest: ">= 28" + vitest: ">= 0.32" + peerDependenciesMeta: + "@jest/globals": + optional: true + "@types/bun": + optional: true + "@types/jest": + optional: true + jest: + optional: true + vitest: + optional: true + checksum: 6d9e6cc01ec9111ea631657d93596fa9505d294fdfc4172fbd750b8df6268f02d55900626423b195dac5b067a302557453894a5814bdf4e770dee37cdb1c0f2d + languageName: node + linkType: hard + "@testing-library/react@npm:^14.1.2": version: 14.1.2 resolution: "@testing-library/react@npm:14.1.2" @@ -4757,7 +5103,7 @@ __metadata: languageName: node linkType: hard -"@testing-library/user-event@npm:^14.5.1": +"@testing-library/user-event@npm:^14.5.1, @testing-library/user-event@npm:^14.5.2": version: 14.5.2 resolution: "@testing-library/user-event@npm:14.5.2" peerDependencies: @@ -5113,6 +5459,16 @@ __metadata: languageName: node linkType: hard +"@types/body-parser@npm:*": + version: 1.19.5 + resolution: "@types/body-parser@npm:1.19.5" + dependencies: + "@types/connect": "npm:*" + "@types/node": "npm:*" + checksum: 1e251118c4b2f61029cc43b0dc028495f2d1957fe8ee49a707fb940f86a9bd2f9754230805598278fe99958b49e9b7e66eec8ef6a50ab5c1f6b93e1ba2aaba82 + languageName: node + linkType: hard + "@types/chai-subset@npm:^1.3.3": version: 1.3.5 resolution: "@types/chai-subset@npm:1.3.5" @@ -5129,6 +5485,15 @@ __metadata: languageName: node linkType: hard +"@types/connect@npm:*": + version: 3.4.38 + resolution: "@types/connect@npm:3.4.38" + dependencies: + "@types/node": "npm:*" + checksum: 7eb1bc5342a9604facd57598a6c62621e244822442976c443efb84ff745246b10d06e8b309b6e80130026a396f19bf6793b7cecd7380169f369dac3bfc46fb99 + languageName: node + linkType: hard + "@types/cookie@npm:^0.6.0": version: 0.6.0 resolution: "@types/cookie@npm:0.6.0" @@ -5440,6 +5805,30 @@ __metadata: languageName: node linkType: hard +"@types/express-serve-static-core@npm:^4.17.33": + version: 4.19.1 + resolution: "@types/express-serve-static-core@npm:4.19.1" + dependencies: + "@types/node": "npm:*" + "@types/qs": "npm:*" + "@types/range-parser": "npm:*" + "@types/send": "npm:*" + checksum: a400e2c6a2d64373290f0fa25fa2d70bad44fbb1d12a56237a8dfb3bf300bc102d6f5fa6aaed2ce853e37226589905ce0d658ad1b9c0115d9cd7ce446608140c + languageName: node + linkType: hard + +"@types/express@npm:^4.7.0": + version: 4.17.21 + resolution: "@types/express@npm:4.17.21" + dependencies: + "@types/body-parser": "npm:*" + "@types/express-serve-static-core": "npm:^4.17.33" + "@types/qs": "npm:*" + "@types/serve-static": "npm:*" + checksum: 7a6d26cf6f43d3151caf4fec66ea11c9d23166e4f3102edfe45a94170654a54ea08cf3103d26b3928d7ebcc24162c90488e33986b7e3a5f8941225edd5eb18c7 + languageName: node + linkType: hard + "@types/geojson@npm:*": version: 7946.0.13 resolution: "@types/geojson@npm:7946.0.13" @@ -5464,6 +5853,13 @@ __metadata: languageName: node linkType: hard +"@types/http-errors@npm:*": + version: 2.0.4 + resolution: "@types/http-errors@npm:2.0.4" + checksum: 1f3d7c3b32c7524811a45690881736b3ef741bf9849ae03d32ad1ab7062608454b150a4e7f1351f83d26a418b2d65af9bdc06198f1c079d75578282884c4e8e3 + languageName: node + linkType: hard + "@types/istanbul-lib-coverage@npm:^2.0.1": version: 2.0.6 resolution: "@types/istanbul-lib-coverage@npm:2.0.6" @@ -5544,6 +5940,13 @@ __metadata: languageName: node linkType: hard +"@types/mime@npm:^1": + version: 1.3.5 + resolution: "@types/mime@npm:1.3.5" + checksum: e29a5f9c4776f5229d84e525b7cd7dd960b51c30a0fb9a028c0821790b82fca9f672dab56561e2acd9e8eed51d431bde52eafdfef30f643586c4162f1aecfc78 + languageName: node + linkType: hard + "@types/minimist@npm:^1.2.0": version: 1.2.5 resolution: "@types/minimist@npm:1.2.5" @@ -5613,7 +6016,21 @@ __metadata: languageName: node linkType: hard -"@types/react-dom@npm:^18.0.0, @types/react-dom@npm:^18.2.7": +"@types/qs@npm:*, @types/qs@npm:^6.9.5": + version: 6.9.15 + resolution: "@types/qs@npm:6.9.15" + checksum: 97d8208c2b82013b618e7a9fc14df6bd40a73e1385ac479b6896bafc7949a46201c15f42afd06e86a05e914f146f495f606b6fb65610cc60cf2e0ff743ec38a2 + languageName: node + linkType: hard + +"@types/range-parser@npm:*": + version: 1.2.7 + resolution: "@types/range-parser@npm:1.2.7" + checksum: 95640233b689dfbd85b8c6ee268812a732cf36d5affead89e806fe30da9a430767af8ef2cd661024fd97e19d61f3dec75af2df5e80ec3bea000019ab7028629a + languageName: node + linkType: hard + +"@types/react-dom@npm:^18.0.0": version: 18.2.18 resolution: "@types/react-dom@npm:18.2.18" dependencies: @@ -5622,6 +6039,15 @@ __metadata: languageName: node linkType: hard +"@types/react-dom@npm:^18.3.0": + version: 18.3.0 + resolution: "@types/react-dom@npm:18.3.0" + dependencies: + "@types/react": "npm:*" + checksum: 6ff53f5a7b7fba952a68e114d3b542ebdc1e87a794234785ebab0bcd9bde7fb4885f21ebaf93d26dc0a1b5b93287f42cad68b78ae04dddf6b20da7aceff0beaf + languageName: node + linkType: hard + "@types/react-leaflet@npm:^3.0.0": version: 3.0.0 resolution: "@types/react-leaflet@npm:3.0.0" @@ -5670,7 +6096,7 @@ __metadata: languageName: node linkType: hard -"@types/react@npm:*, @types/react@npm:^18.2.15": +"@types/react@npm:*": version: 18.2.48 resolution: "@types/react@npm:18.2.48" dependencies: @@ -5681,6 +6107,16 @@ __metadata: languageName: node linkType: hard +"@types/react@npm:^18.3.3": + version: 18.3.3 + resolution: "@types/react@npm:18.3.3" + dependencies: + "@types/prop-types": "npm:*" + csstype: "npm:^3.0.2" + checksum: 68e203b7f1f91d6cf21f33fc7af9d6d228035a26c83f514981e54aa3da695d0ec6af10c277c6336de1dd76c4adbe9563f3a21f80c4462000f41e5f370b46e96c + languageName: node + linkType: hard + "@types/scheduler@npm:*": version: 0.16.8 resolution: "@types/scheduler@npm:0.16.8" @@ -5688,10 +6124,31 @@ __metadata: languageName: node linkType: hard -"@types/semver@npm:^7.3.12": - version: 7.5.6 - resolution: "@types/semver@npm:7.5.6" - checksum: e77282b17f74354e17e771c0035cccb54b94cc53d0433fa7e9ba9d23fd5d7edcd14b6c8b7327d58bbd89e83b1c5eda71dfe408e06b929007e2b89586e9b63459 +"@types/semver@npm:^7.3.12": + version: 7.5.6 + resolution: "@types/semver@npm:7.5.6" + checksum: e77282b17f74354e17e771c0035cccb54b94cc53d0433fa7e9ba9d23fd5d7edcd14b6c8b7327d58bbd89e83b1c5eda71dfe408e06b929007e2b89586e9b63459 + languageName: node + linkType: hard + +"@types/send@npm:*": + version: 0.17.4 + resolution: "@types/send@npm:0.17.4" + dependencies: + "@types/mime": "npm:^1" + "@types/node": "npm:*" + checksum: 28320a2aa1eb704f7d96a65272a07c0bf3ae7ed5509c2c96ea5e33238980f71deeed51d3631927a77d5250e4091b3e66bce53b42d770873282c6a20bb8b0280d + languageName: node + linkType: hard + +"@types/serve-static@npm:*": + version: 1.15.7 + resolution: "@types/serve-static@npm:1.15.7" + dependencies: + "@types/http-errors": "npm:*" + "@types/node": "npm:*" + "@types/send": "npm:*" + checksum: c5a7171d5647f9fbd096ed1a26105759f3153ccf683824d99fee4c7eb9cde2953509621c56a070dd9fb1159e799e86d300cbe4e42245ebc5b0c1767e8ca94a67 languageName: node linkType: hard @@ -5918,6 +6375,17 @@ __metadata: languageName: node linkType: hard +"@vitest/expect@npm:1.3.1": + version: 1.3.1 + resolution: "@vitest/expect@npm:1.3.1" + dependencies: + "@vitest/spy": "npm:1.3.1" + "@vitest/utils": "npm:1.3.1" + chai: "npm:^4.3.10" + checksum: 7c2818b2080ec107cffcc1566195132695c8e87cba883e878c2f36ac4d8107bb0a1f8d3823ccc0da5989e245ea114b8afffe790512aebcde8537ac8c1bcf3454 + languageName: node + linkType: hard + "@vitest/runner@npm:0.34.6": version: 0.34.6 resolution: "@vitest/runner@npm:0.34.6" @@ -5980,6 +6448,24 @@ __metadata: languageName: node linkType: hard +"@vitest/spy@npm:1.3.1": + version: 1.3.1 + resolution: "@vitest/spy@npm:1.3.1" + dependencies: + tinyspy: "npm:^2.2.0" + checksum: 544c8a30fdeb32fb7bf2c2b5816519be943f5ef90668c306b14efdde7676771d0e83cf0e0a5c79fad722be3839432226bcf74173110a032299821e00b67f47e6 + languageName: node + linkType: hard + +"@vitest/spy@npm:^1.3.1": + version: 1.6.0 + resolution: "@vitest/spy@npm:1.6.0" + dependencies: + tinyspy: "npm:^2.2.0" + checksum: 1c9698272a58aa47708bb8a1672d655fcec3285b02067cc3f70bfe76f4eda7a756eb379f8c945ccbe61677f5189aeb5ba93c2737a9d7db2de8c4e7bbdffcd372 + languageName: node + linkType: hard + "@vitest/utils@npm:0.34.6": version: 0.34.6 resolution: "@vitest/utils@npm:0.34.6" @@ -6003,6 +6489,30 @@ __metadata: languageName: node linkType: hard +"@vitest/utils@npm:1.3.1": + version: 1.3.1 + resolution: "@vitest/utils@npm:1.3.1" + dependencies: + diff-sequences: "npm:^29.6.3" + estree-walker: "npm:^3.0.3" + loupe: "npm:^2.3.7" + pretty-format: "npm:^29.7.0" + checksum: 170c62e6c348562f611d8caddc893e8cba75ed89986e09aa2f0fe6812c96664e8d0f6e329f7a96a4c9cdecf147f4853e4054c3db597b111ec993d3cdd546eddc + languageName: node + linkType: hard + +"@vitest/utils@npm:^1.3.1": + version: 1.6.0 + resolution: "@vitest/utils@npm:1.6.0" + dependencies: + diff-sequences: "npm:^29.6.3" + estree-walker: "npm:^3.0.3" + loupe: "npm:^2.3.7" + pretty-format: "npm:^29.7.0" + checksum: 5c5d7295ac13fcea1da039232bcc7c3fc6f070070fe12ba2ad152456af6e216e48a3ae169016cfcd5055706a00dc567b8f62e4a9b1914f069f52b8f0a3c25e60 + languageName: node + linkType: hard + "abab@npm:^2.0.6": version: 2.0.6 resolution: "abab@npm:2.0.6" @@ -6455,13 +6965,6 @@ __metadata: languageName: node linkType: hard -"attr-accept@npm:^2.2.2": - version: 2.2.2 - resolution: "attr-accept@npm:2.2.2" - checksum: c867ed41ed749988ad2a6fc70eb2498b9c3c2d58aaad2a8d05422a383058f9d29e50c4bca363c5ee7433df738a7920cc95377bbce8678e817fb498299dd82010 - languageName: node - linkType: hard - "autoprefixer@npm:^10.4.4": version: 10.4.16 resolution: "autoprefixer@npm:10.4.16" @@ -6487,6 +6990,15 @@ __metadata: languageName: node linkType: hard +"available-typed-arrays@npm:^1.0.7": + version: 1.0.7 + resolution: "available-typed-arrays@npm:1.0.7" + dependencies: + possible-typed-array-names: "npm:^1.0.0" + checksum: 6c9da3a66caddd83c875010a1ca8ef11eac02ba15fb592dc9418b2b5e7b77b645fa7729380a92d9835c2f05f2ca1b6251f39b993e0feb3f1517c74fa1af02cab + languageName: node + linkType: hard + "axe-core@npm:=4.7.0": version: 4.7.0 resolution: "axe-core@npm:4.7.0" @@ -6773,6 +7285,19 @@ __metadata: languageName: node linkType: hard +"call-bind@npm:^1.0.7": + version: 1.0.7 + resolution: "call-bind@npm:1.0.7" + dependencies: + es-define-property: "npm:^1.0.0" + es-errors: "npm:^1.3.0" + function-bind: "npm:^1.1.2" + get-intrinsic: "npm:^1.2.4" + set-function-length: "npm:^1.2.1" + checksum: cd6fe658e007af80985da5185bff7b55e12ef4c2b6f41829a26ed1eef254b1f1c12e3dfd5b2b068c6ba8b86aba62390842d81752e67dcbaec4f6f76e7113b6b7 + languageName: node + linkType: hard + "call-me-maybe@npm:^1.0.1": version: 1.0.2 resolution: "call-me-maybe@npm:1.0.2" @@ -6997,6 +7522,13 @@ __metadata: languageName: node linkType: hard +"clsx@npm:^2.1.0": + version: 2.1.1 + resolution: "clsx@npm:2.1.1" + checksum: cdfb57fa6c7649bbff98d9028c2f0de2f91c86f551179541cf784b1cfdc1562dcb951955f46d54d930a3879931a980e32a46b598acaea274728dbe068deca919 + languageName: node + linkType: hard + "color-convert@npm:^1.9.0": version: 1.9.3 resolution: "color-convert@npm:1.9.3" @@ -7571,6 +8103,13 @@ __metadata: languageName: node linkType: hard +"date-fns@npm:^3.3.1": + version: 3.6.0 + resolution: "date-fns@npm:3.6.0" + checksum: cac35c58926a3b5d577082ff2b253612ec1c79eb6754fddef46b6a8e826501ea2cb346ecbd211205f1ba382ddd1f9d8c3f00bf433ad63cc3063454d294e3a6b8 + languageName: node + linkType: hard + "debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" @@ -7692,6 +8231,17 @@ __metadata: languageName: node linkType: hard +"define-data-property@npm:^1.1.4": + version: 1.1.4 + resolution: "define-data-property@npm:1.1.4" + dependencies: + es-define-property: "npm:^1.0.0" + es-errors: "npm:^1.3.0" + gopd: "npm:^1.0.1" + checksum: abdcb2505d80a53524ba871273e5da75e77e52af9e15b3aa65d8aad82b8a3a424dad7aee2cc0b71470ac7acf501e08defac362e8b6a73cdb4309f028061df4ae + languageName: node + linkType: hard + "define-lazy-prop@npm:^2.0.0": version: 2.0.0 resolution: "define-lazy-prop@npm:2.0.0" @@ -7740,7 +8290,7 @@ __metadata: languageName: node linkType: hard -"dequal@npm:^2.0.3": +"dequal@npm:^2.0.2, dequal@npm:^2.0.3": version: 2.0.3 resolution: "dequal@npm:2.0.3" checksum: 6ff05a7561f33603df87c45e389c9ac0a95e3c056be3da1a0c4702149e3a7f6fe5ffbb294478687ba51a9e95f3a60e8b6b9005993acd79c292c7d15f71964b6b @@ -7992,6 +8542,22 @@ __metadata: languageName: node linkType: hard +"es-define-property@npm:^1.0.0": + version: 1.0.0 + resolution: "es-define-property@npm:1.0.0" + dependencies: + get-intrinsic: "npm:^1.2.4" + checksum: f66ece0a887b6dca71848fa71f70461357c0e4e7249696f81bad0a1f347eed7b31262af4a29f5d726dc026426f085483b6b90301855e647aa8e21936f07293c6 + languageName: node + linkType: hard + +"es-errors@npm:^1.3.0": + version: 1.3.0 + resolution: "es-errors@npm:1.3.0" + checksum: 96e65d640156f91b707517e8cdc454dd7d47c32833aa3e85d79f24f9eb7ea85f39b63e36216ef0114996581969b59fe609a94e30316b08f5f4df1d44134cf8d5 + languageName: node + linkType: hard + "es-get-iterator@npm:^1.1.3": version: 1.1.3 resolution: "es-get-iterator@npm:1.1.3" @@ -8649,12 +9215,13 @@ __metadata: languageName: node linkType: hard -"file-selector@npm:^0.6.0": - version: 0.6.0 - resolution: "file-selector@npm:0.6.0" +"file-system-cache@npm:2.3.0": + version: 2.3.0 + resolution: "file-system-cache@npm:2.3.0" dependencies: - tslib: "npm:^2.4.0" - checksum: 6add4098ae07fd1e9050b1e8d3fd9f128680c1d6648c0676af54ace4586e6e5bfcb8fdfa45b69e9131ffd8175bf630d54a445a5facf9be244f85b99ce309183e + fs-extra: "npm:11.1.1" + ramda: "npm:0.29.0" + checksum: 8f0530aaa8bed115ef1b00f69accde8d1311d0eaffc6e37bb0b5057b8be79e6e960823025ea3c980a58147eed0ba690b9906c2229e132f5d96158e9b635a052c languageName: node linkType: hard @@ -8712,29 +9279,6 @@ __metadata: languageName: node linkType: hard -"focus-trap-react@npm:^10.1.1": - version: 10.2.3 - resolution: "focus-trap-react@npm:10.2.3" - dependencies: - focus-trap: "npm:^7.5.4" - tabbable: "npm:^6.2.0" - peerDependencies: - prop-types: ^15.8.1 - react: ">=16.3.0" - react-dom: ">=16.3.0" - checksum: 64c39cbc44c37319ac5c96c9b105798ac7d36e477878adca3cf9c9099edd72db960ce97a7b281ef612d5c1bca7d425331c25dec030e3e34120003a948c8553a8 - languageName: node - linkType: hard - -"focus-trap@npm:^7.5.4": - version: 7.5.4 - resolution: "focus-trap@npm:7.5.4" - dependencies: - tabbable: "npm:^6.2.0" - checksum: e9059aae46b8f18721e868bd73e1fec3d8cbb4f6e4e89feb9a708af505a2dd5c93f87468895f1d908cd4dec1b2f35824dfcd1623cf3adbfb5c6c8c589ed59dcf - languageName: node - linkType: hard - "follow-redirects@npm:^1.15.4": version: 1.15.5 resolution: "follow-redirects@npm:1.15.5" @@ -8803,6 +9347,24 @@ __metadata: languageName: node linkType: hard +"formik@npm:^2.4.6": + version: 2.4.6 + resolution: "formik@npm:2.4.6" + dependencies: + "@types/hoist-non-react-statics": "npm:^3.3.1" + deepmerge: "npm:^2.1.1" + hoist-non-react-statics: "npm:^3.3.0" + lodash: "npm:^4.17.21" + lodash-es: "npm:^4.17.21" + react-fast-compare: "npm:^2.0.1" + tiny-warning: "npm:^1.0.2" + tslib: "npm:^2.0.0" + peerDependencies: + react: ">=16.8.0" + checksum: 65d6845d913cfceebdbb1e34d498725965e07abd4c17f3ea9eeba77d9fab7d3b0f726fdfcae73f002b660ba56b236abc8d8aa6670a9c7cc0db27afebf6e48f4b + languageName: node + linkType: hard + "fraction.js@npm:^4.3.6": version: 4.3.7 resolution: "fraction.js@npm:4.3.7" @@ -8810,6 +9372,17 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:11.1.1": + version: 11.1.1 + resolution: "fs-extra@npm:11.1.1" + dependencies: + graceful-fs: "npm:^4.2.0" + jsonfile: "npm:^6.0.1" + universalify: "npm:^2.0.0" + checksum: c4e9fabf9762a70d1403316b7faa899f3d3303c8afa765b891c2210fdeba368461e04ae1203920b64ef6a7d066a39ab8cef2160b5ce8d1011bb4368688cd9bb7 + languageName: node + linkType: hard + "fs-extra@npm:^11.2.0": version: 11.2.0 resolution: "fs-extra@npm:11.2.0" @@ -8949,6 +9522,19 @@ __metadata: languageName: node linkType: hard +"get-intrinsic@npm:^1.2.4": + version: 1.2.4 + resolution: "get-intrinsic@npm:1.2.4" + dependencies: + es-errors: "npm:^1.3.0" + function-bind: "npm:^1.1.2" + has-proto: "npm:^1.0.1" + has-symbols: "npm:^1.0.3" + hasown: "npm:^2.0.0" + checksum: 85bbf4b234c3940edf8a41f4ecbd4e25ce78e5e6ad4e24ca2f77037d983b9ef943fd72f00f3ee97a49ec622a506b67db49c36246150377efcda1c9eb03e5f06d + languageName: node + linkType: hard + "get-stdin@npm:^4.0.1": version: 4.0.1 resolution: "get-stdin@npm:4.0.1" @@ -9178,6 +9764,15 @@ __metadata: languageName: node linkType: hard +"has-property-descriptors@npm:^1.0.2": + version: 1.0.2 + resolution: "has-property-descriptors@npm:1.0.2" + dependencies: + es-define-property: "npm:^1.0.0" + checksum: 2d8c9ab8cebb572e3362f7d06139a4592105983d4317e68f7adba320fe6ddfc8874581e0971e899e633fd5f72e262830edce36d5a0bc863dad17ad20572484b2 + languageName: node + linkType: hard + "has-proto@npm:^1.0.1": version: 1.0.1 resolution: "has-proto@npm:1.0.1" @@ -9201,6 +9796,15 @@ __metadata: languageName: node linkType: hard +"has-tostringtag@npm:^1.0.2": + version: 1.0.2 + resolution: "has-tostringtag@npm:1.0.2" + dependencies: + has-symbols: "npm:^1.0.3" + checksum: c74c5f5ceee3c8a5b8bc37719840dc3749f5b0306d818974141dda2471a1a2ca6c8e46b9d6ac222c5345df7a901c9b6f350b1e6d62763fec877e26609a401bfe + languageName: node + linkType: hard + "has-unicode@npm:^2.0.1": version: 2.0.1 resolution: "has-unicode@npm:2.0.1" @@ -9517,7 +10121,7 @@ __metadata: languageName: node linkType: hard -"is-arguments@npm:^1.1.1": +"is-arguments@npm:^1.0.4, is-arguments@npm:^1.1.1": version: 1.1.1 resolution: "is-arguments@npm:1.1.1" dependencies: @@ -9648,7 +10252,7 @@ __metadata: languageName: node linkType: hard -"is-generator-function@npm:^1.0.10": +"is-generator-function@npm:^1.0.10, is-generator-function@npm:^1.0.7": version: 1.0.10 resolution: "is-generator-function@npm:1.0.10" dependencies: @@ -9814,6 +10418,15 @@ __metadata: languageName: node linkType: hard +"is-typed-array@npm:^1.1.3": + version: 1.1.13 + resolution: "is-typed-array@npm:1.1.13" + dependencies: + which-typed-array: "npm:^1.1.14" + checksum: f850ba08286358b9a11aee6d93d371a45e3c59b5953549ee1c1a9a55ba5c1dd1bd9952488ae194ad8f32a9cf5e79c8fa5f0cc4d78c00720aa0bbcf238b38062d + languageName: node + linkType: hard + "is-unicode-supported@npm:^0.1.0": version: 0.1.0 resolution: "is-unicode-supported@npm:0.1.0" @@ -10238,15 +10851,6 @@ __metadata: languageName: node linkType: hard -"legacy-swc-helpers@npm:@swc/helpers@=0.4.14": - version: 0.4.14 - resolution: "@swc/helpers@npm:0.4.14" - dependencies: - tslib: "npm:^2.4.0" - checksum: 236afd445fb22e3df7aa84336d5c45d29e021ad01917aa7c24267330df8b39ed89c3d8d9836ac2ac7569b46923591d0e49174f72df7fb997aea841d08f374dbd - languageName: node - linkType: hard - "leven@npm:^3.1.0": version: 3.1.0 resolution: "leven@npm:3.1.0" @@ -10659,6 +11263,13 @@ __metadata: languageName: node linkType: hard +"map-or-similar@npm:^1.5.0": + version: 1.5.0 + resolution: "map-or-similar@npm:1.5.0" + checksum: 3cf43bcd0e7af41d7bade5f8b5be6bb9d021cc47e6008ad545d071cf3a709ba782884002f9eec6ccd51f572fc17841e07bf74628e0bc3694c33f4622b03e4b4c + languageName: node + linkType: hard + "markdown-it@npm:^14.0.0": version: 14.0.0 resolution: "markdown-it@npm:14.0.0" @@ -10689,6 +11300,15 @@ __metadata: languageName: node linkType: hard +"memoizerific@npm:^1.11.3": + version: 1.11.3 + resolution: "memoizerific@npm:1.11.3" + dependencies: + map-or-similar: "npm:^1.5.0" + checksum: 72b6b80699777d000f03db6e15fdabcd4afe77feb45be51fe195cb230c64a368fcfcfbb976375eac3283bd8193d6b1a67ac3081cae07f64fca73f1aa568d59e3 + languageName: node + linkType: hard + "meow@npm:^9.0.0": version: 9.0.0 resolution: "meow@npm:9.0.0" @@ -11875,6 +12495,13 @@ __metadata: languageName: node linkType: hard +"possible-typed-array-names@npm:^1.0.0": + version: 1.0.0 + resolution: "possible-typed-array-names@npm:1.0.0" + checksum: 8ed3e96dfeea1c5880c1f4c9cb707e5fb26e8be22f14f82ef92df20fd2004e635c62ba47fbe8f2bb63bfd80dac1474be2fb39798da8c2feba2815435d1f749af + languageName: node + linkType: hard + "postcss-import@npm:^15.1.0": version: 15.1.0 resolution: "postcss-import@npm:15.1.0" @@ -12135,7 +12762,7 @@ __metadata: languageName: node linkType: hard -"prop-types@npm:^15, prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1": +"prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1": version: 15.8.1 resolution: "prop-types@npm:15.8.1" dependencies: @@ -12375,7 +13002,7 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.452" + "@pzh-ui/components": "npm:^0.0.535" "@pzh-ui/config": "npm:^0.0.56" "@pzh-ui/css": "npm:^0.0.75" "@pzh-ui/icons": "npm:^0.0.47" @@ -12395,8 +13022,8 @@ __metadata: "@types/lodash.groupby": "npm:^4.6.7" "@types/node": "npm:^20.10.5" "@types/proj4leaflet": "npm:^1.0.10" - "@types/react": "npm:^18.2.15" - "@types/react-dom": "npm:^18.2.7" + "@types/react": "npm:^18.3.3" + "@types/react-dom": "npm:^18.3.0" "@types/react-leaflet": "npm:^3.0.0" "@types/react-router-dom": "npm:^5.3.2" "@types/uuid": "npm:^9.0.3" @@ -12428,9 +13055,9 @@ __metadata: orval: "npm:^6.22.1" prettier: "npm:2.8.8" proj4leaflet: "npm:^1.0.2" - react: "npm:^18.2.0" + react: "npm:^18.3.1" react-content-loader: "npm:^6.2.1" - react-dom: "npm:^18.2.0" + react-dom: "npm:^18.3.1" react-error-boundary: "npm:^4.0.10" react-helmet-async: "npm:^2.0.3" react-leaflet: "npm:^4.2.1" @@ -12450,6 +13077,15 @@ __metadata: languageName: unknown linkType: soft +"qs@npm:^6.10.0": + version: 6.12.1 + resolution: "qs@npm:6.12.1" + dependencies: + side-channel: "npm:^1.0.6" + checksum: 035bcad2a1ab0175bac7a74c904c15913bdac252834149ccff988c93a51de02642fe7be10e43058ba4dc4094bb28ce9b59d12b9e91d40997f445cfde3ecc1c29 + languageName: node + linkType: hard + "querystringify@npm:^2.1.1": version: 2.2.0 resolution: "querystringify@npm:2.2.0" @@ -12471,51 +13107,92 @@ __metadata: languageName: node linkType: hard -"react-aria@npm:^3.26.0": - version: 3.31.1 - resolution: "react-aria@npm:3.31.1" - dependencies: - "@internationalized/string": "npm:^3.2.0" - "@react-aria/breadcrumbs": "npm:^3.5.9" - "@react-aria/button": "npm:^3.9.1" - "@react-aria/calendar": "npm:^3.5.4" - "@react-aria/checkbox": "npm:^3.13.0" - "@react-aria/combobox": "npm:^3.8.2" - "@react-aria/datepicker": "npm:^3.9.1" - "@react-aria/dialog": "npm:^3.5.10" - "@react-aria/dnd": "npm:^3.5.1" - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/gridlist": "npm:^3.7.3" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/link": "npm:^3.6.3" - "@react-aria/listbox": "npm:^3.11.3" - "@react-aria/menu": "npm:^3.12.0" - "@react-aria/meter": "npm:^3.4.9" - "@react-aria/numberfield": "npm:^3.10.2" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/progress": "npm:^3.4.9" - "@react-aria/radio": "npm:^3.10.0" - "@react-aria/searchfield": "npm:^3.7.1" - "@react-aria/select": "npm:^3.14.1" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/separator": "npm:^3.3.9" - "@react-aria/slider": "npm:^3.7.4" - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/switch": "npm:^3.6.0" - "@react-aria/table": "npm:^3.13.3" - "@react-aria/tabs": "npm:^3.8.3" - "@react-aria/tag": "npm:^3.3.1" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/tooltip": "npm:^3.7.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-types/shared": "npm:^3.22.0" +"ramda@npm:0.29.0": + version: 0.29.0 + resolution: "ramda@npm:0.29.0" + checksum: b156660f2c58b4a13bcc4f1a0eabc1145d8db11d33d26a2fb03cd6adf3983a1c1f2bbaaf708c421029e9b09684262d056752623f7e62b79a503fb9217dec69d4 + languageName: node + linkType: hard + +"react-aria-components@npm:^1.1.1": + version: 1.2.1 + resolution: "react-aria-components@npm:1.2.1" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@internationalized/string": "npm:^3.2.3" + "@react-aria/color": "npm:3.0.0-beta.33" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/menu": "npm:^3.14.1" + "@react-aria/toolbar": "npm:3.0.0-beta.5" + "@react-aria/tree": "npm:3.0.0-alpha.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/color": "npm:^3.6.1" + "@react-stately/menu": "npm:^3.7.1" + "@react-stately/table": "npm:^3.11.8" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/color": "npm:3.0.0-beta.25" + "@react-types/form": "npm:^3.7.4" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" + "@react-types/table": "npm:^3.9.5" + "@swc/helpers": "npm:^0.5.0" + client-only: "npm:^0.0.1" + react-aria: "npm:^3.33.1" + react-stately: "npm:^3.31.1" + use-sync-external-store: "npm:^1.2.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 1733de845c141e04cc539f5da240deb503644d42a70d65e04527a81f2c7728070e4b15d08d6e5c588e8c872b200a615b5247f834afe091474e0905f0d1cf8e59 + languageName: node + linkType: hard + +"react-aria@npm:^3.32.1, react-aria@npm:^3.33.1": + version: 3.33.1 + resolution: "react-aria@npm:3.33.1" + dependencies: + "@internationalized/string": "npm:^3.2.3" + "@react-aria/breadcrumbs": "npm:^3.5.13" + "@react-aria/button": "npm:^3.9.5" + "@react-aria/calendar": "npm:^3.5.8" + "@react-aria/checkbox": "npm:^3.14.3" + "@react-aria/combobox": "npm:^3.9.1" + "@react-aria/datepicker": "npm:^3.10.1" + "@react-aria/dialog": "npm:^3.5.14" + "@react-aria/dnd": "npm:^3.6.1" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/gridlist": "npm:^3.8.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/link": "npm:^3.7.1" + "@react-aria/listbox": "npm:^3.12.1" + "@react-aria/menu": "npm:^3.14.1" + "@react-aria/meter": "npm:^3.4.13" + "@react-aria/numberfield": "npm:^3.11.3" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/progress": "npm:^3.4.13" + "@react-aria/radio": "npm:^3.10.4" + "@react-aria/searchfield": "npm:^3.7.5" + "@react-aria/select": "npm:^3.14.5" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/separator": "npm:^3.3.13" + "@react-aria/slider": "npm:^3.7.8" + "@react-aria/ssr": "npm:^3.9.4" + "@react-aria/switch": "npm:^3.6.4" + "@react-aria/table": "npm:^3.14.1" + "@react-aria/tabs": "npm:^3.9.1" + "@react-aria/tag": "npm:^3.4.1" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/tooltip": "npm:^3.7.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c4e7a213d86fe9c9bcd11343dfa0339e1642a954bdc50b0ee2c9c4c42671fb13e59ccc3f2fdb5791f5449822b89b2f4f2e8ff97293f90114f250f7e33139dfd1 + checksum: 545d789afa72ea4385452e9344742018be97544d668331486ff87cd1fc64153b494a0042c06dfc207ba271b20440cadf2a07fd4f94baee8e26c2c48ec78b58b6 languageName: node linkType: hard @@ -12528,7 +13205,7 @@ __metadata: languageName: node linkType: hard -"react-datepicker@npm:^4.16.0, react-datepicker@npm:^4.7.0": +"react-datepicker@npm:^4.7.0": version: 4.25.0 resolution: "react-datepicker@npm:4.25.0" dependencies: @@ -12545,28 +13222,42 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:^18.2.0": - version: 18.2.0 - resolution: "react-dom@npm:18.2.0" +"react-datepicker@npm:^6.9.0": + version: 6.9.0 + resolution: "react-datepicker@npm:6.9.0" + dependencies: + "@floating-ui/react": "npm:^0.26.2" + clsx: "npm:^2.1.0" + date-fns: "npm:^3.3.1" + prop-types: "npm:^15.7.2" + react-onclickoutside: "npm:^6.13.0" + peerDependencies: + react: ^16.9.0 || ^17 || ^18 + react-dom: ^16.9.0 || ^17 || ^18 + checksum: 7effd81e0e00e77d691c552bed77e2b08f7abc377528ae67727de9cc08eb05f7ec021f3daa40748dd7d32b12dd6cf2833eac0cbc2d9f3026fa8c606100752d32 + languageName: node + linkType: hard + +"react-dom@npm:^18.3.1": + version: 18.3.1 + resolution: "react-dom@npm:18.3.1" dependencies: loose-envify: "npm:^1.1.0" - scheduler: "npm:^0.23.0" + scheduler: "npm:^0.23.2" peerDependencies: - react: ^18.2.0 - checksum: ca5e7762ec8c17a472a3605b6f111895c9f87ac7d43a610ab7024f68cd833d08eda0625ce02ec7178cc1f3c957cf0b9273cdc17aa2cd02da87544331c43b1d21 + react: ^18.3.1 + checksum: 3f4b73a3aa083091173b29812b10394dd06f4ac06aff410b74702cfb3aa29d7b0ced208aab92d5272919b612e5cda21aeb1d54191848cf6e46e9e354f3541f81 languageName: node linkType: hard -"react-dropzone@npm:^14.2.3": - version: 14.2.3 - resolution: "react-dropzone@npm:14.2.3" +"react-dropzone-esm@npm:^15.0.1": + version: 15.0.1 + resolution: "react-dropzone-esm@npm:15.0.1" dependencies: - attr-accept: "npm:^2.2.2" - file-selector: "npm:^0.6.0" prop-types: "npm:^15.8.1" peerDependencies: react: ">= 16.8 || 18.0.0" - checksum: 34cf1758a896795b579adab5f9cdc144330577ab1826a0b66ff9daa8c60a80ed6b31b8f989647664f2548cfe00b336e9c31a2f3dd8de43111c8318fcc89b279c + checksum: c6b9aa91fcb10f62a1d1758d38d6e38f1b4030419a321a477df70b05a6831a2bbe2dae4a926dece8543243bc6bba77521309b69eb707fc40f346391f554211dd languageName: node linkType: hard @@ -12653,17 +13344,6 @@ __metadata: languageName: node linkType: hard -"react-paginate@npm:^8.2.0": - version: 8.2.0 - resolution: "react-paginate@npm:8.2.0" - dependencies: - prop-types: "npm:^15" - peerDependencies: - react: ^16 || ^17 || ^18 - checksum: 13911c1db55a0ca0fa21c7e0df5e913be1febf7bd0ec7fde5618c48e0119ac45ff8920202c4fd7216f93244529180b4e91de41fc86a40be5e53dec14ae65956c - languageName: node - linkType: hard - "react-popper@npm:^2.3.0": version: 2.3.0 resolution: "react-popper@npm:2.3.0" @@ -12685,6 +13365,18 @@ __metadata: languageName: node linkType: hard +"react-responsive-pagination@npm:^2.4.2": + version: 2.5.0 + resolution: "react-responsive-pagination@npm:2.5.0" + dependencies: + prop-types: "npm:^15.8.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: d3126c17583d3481f674988197024a215fd95343446bcf004e42a90daec7b4ffeafbf6191fd8d9feb35435a5c81279bc853230d1e73e0f519ff7901be09d0123 + languageName: node + linkType: hard + "react-router-dom@npm:^6.14.2": version: 6.21.2 resolution: "react-router-dom@npm:6.21.2" @@ -12709,7 +13401,7 @@ __metadata: languageName: node linkType: hard -"react-select@npm:^5.7.3": +"react-select@npm:^5.8.0": version: 5.8.0 resolution: "react-select@npm:5.8.0" dependencies: @@ -12729,45 +13421,36 @@ __metadata: languageName: node linkType: hard -"react-stately@npm:^3.18.0": - version: 3.29.1 - resolution: "react-stately@npm:3.29.1" - dependencies: - "@react-stately/calendar": "npm:^3.4.3" - "@react-stately/checkbox": "npm:^3.6.1" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/combobox": "npm:^3.8.1" - "@react-stately/data": "npm:^3.11.0" - "@react-stately/datepicker": "npm:^3.9.1" - "@react-stately/dnd": "npm:^3.2.7" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/list": "npm:^3.10.2" - "@react-stately/menu": "npm:^3.6.0" - "@react-stately/numberfield": "npm:^3.8.0" - "@react-stately/overlays": "npm:^3.6.4" - "@react-stately/radio": "npm:^3.10.1" - "@react-stately/searchfield": "npm:^3.5.0" - "@react-stately/select": "npm:^3.6.1" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/slider": "npm:^3.5.0" - "@react-stately/table": "npm:^3.11.4" - "@react-stately/tabs": "npm:^3.6.3" - "@react-stately/toggle": "npm:^3.7.0" - "@react-stately/tooltip": "npm:^3.4.6" - "@react-stately/tree": "npm:^3.7.5" - "@react-types/shared": "npm:^3.22.0" +"react-stately@npm:^3.30.1, react-stately@npm:^3.31.1": + version: 3.31.1 + resolution: "react-stately@npm:3.31.1" + dependencies: + "@react-stately/calendar": "npm:^3.5.1" + "@react-stately/checkbox": "npm:^3.6.5" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/combobox": "npm:^3.8.4" + "@react-stately/data": "npm:^3.11.4" + "@react-stately/datepicker": "npm:^3.9.4" + "@react-stately/dnd": "npm:^3.3.1" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/list": "npm:^3.10.5" + "@react-stately/menu": "npm:^3.7.1" + "@react-stately/numberfield": "npm:^3.9.3" + "@react-stately/overlays": "npm:^3.6.7" + "@react-stately/radio": "npm:^3.10.4" + "@react-stately/searchfield": "npm:^3.5.3" + "@react-stately/select": "npm:^3.6.4" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/slider": "npm:^3.5.4" + "@react-stately/table": "npm:^3.11.8" + "@react-stately/tabs": "npm:^3.6.6" + "@react-stately/toggle": "npm:^3.7.4" + "@react-stately/tooltip": "npm:^3.4.9" + "@react-stately/tree": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 6f2f3d2a831338238bafab15bebb12d4bbc7832f80e49d28d7412938a78e9e31619f6335e743191662586abc0eab37534470f42297a4f1596783855e05ff9b8b - languageName: node - linkType: hard - -"react-table@npm:^7.8.0": - version: 7.8.0 - resolution: "react-table@npm:7.8.0" - peerDependencies: - react: ^16.8.3 || ^17.0.0-0 || ^18.0.0 - checksum: 0c87db8f8823f8eca7a5521d406fa0c75d79972d47768f0c8347af3fa51f9856eea449186a0e2db2effc54d1d74a4e3477855cdbe9adf836d7dfac3a6ec5cdbf + checksum: e78b03fe0404d62993f3b2df0910e987f09ca14231da5d976095a8520e32c4a7125da8391e443b4d6b11c51b73a7ec9b6ab99fcbf54ce8e074da5d9e53df5f16 languageName: node linkType: hard @@ -12807,6 +13490,15 @@ __metadata: languageName: node linkType: hard +"react@npm:^18.3.1": + version: 18.3.1 + resolution: "react@npm:18.3.1" + dependencies: + loose-envify: "npm:^1.1.0" + checksum: 261137d3f3993eaa2368a83110466fc0e558bc2c7f7ae7ca52d94f03aac945f45146bd85e5f481044db1758a1dbb57879e2fcdd33924e2dde1bdc550ce73f7bf + languageName: node + linkType: hard + "read-cache@npm:^1.0.0": version: 1.0.0 resolution: "read-cache@npm:1.0.0" @@ -13308,12 +14000,12 @@ __metadata: languageName: node linkType: hard -"scheduler@npm:^0.23.0": - version: 0.23.0 - resolution: "scheduler@npm:0.23.0" +"scheduler@npm:^0.23.2": + version: 0.23.2 + resolution: "scheduler@npm:0.23.2" dependencies: loose-envify: "npm:^1.1.0" - checksum: 0c4557aa37bafca44ff21dc0ea7c92e2dbcb298bc62eae92b29a39b029134f02fb23917d6ebc8b1fa536b4184934314c20d8864d156a9f6357f3398aaf7bfda8 + checksum: e8d68b89d18d5b028223edf090092846868a765a591944760942b77ea1f69b17235f7e956696efbb62c8130ab90af7e0949bfb8eba7896335507317236966bc9 languageName: node linkType: hard @@ -13376,6 +14068,20 @@ __metadata: languageName: node linkType: hard +"set-function-length@npm:^1.2.1": + version: 1.2.2 + resolution: "set-function-length@npm:1.2.2" + dependencies: + define-data-property: "npm:^1.1.4" + es-errors: "npm:^1.3.0" + function-bind: "npm:^1.1.2" + get-intrinsic: "npm:^1.2.4" + gopd: "npm:^1.0.1" + has-property-descriptors: "npm:^1.0.2" + checksum: 505d62b8e088468917ca4e3f8f39d0e29f9a563b97dbebf92f4bd2c3172ccfb3c5b8e4566d5fcd00784a00433900e7cb8fbc404e2dbd8c3818ba05bb9d4a8a6d + languageName: node + linkType: hard + "set-function-name@npm:^2.0.0, set-function-name@npm:^2.0.1": version: 2.0.1 resolution: "set-function-name@npm:2.0.1" @@ -13484,6 +14190,18 @@ __metadata: languageName: node linkType: hard +"side-channel@npm:^1.0.6": + version: 1.0.6 + resolution: "side-channel@npm:1.0.6" + dependencies: + call-bind: "npm:^1.0.7" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.4" + object-inspect: "npm:^1.13.1" + checksum: eb10944f38cebad8ad643dd02657592fa41273ce15b8bfa928d3291aff2d30c20ff777cfe908f76ccc4551ace2d1245822fdc576657cce40e9066c638ca8fa4d + languageName: node + linkType: hard + "siginfo@npm:^2.0.0": version: 2.0.0 resolution: "siginfo@npm:2.0.0" @@ -13997,13 +14715,22 @@ __metadata: languageName: node linkType: hard -"tabbable@npm:^6.0.1, tabbable@npm:^6.2.0": +"tabbable@npm:^6.0.0, tabbable@npm:^6.0.1": version: 6.2.0 resolution: "tabbable@npm:6.2.0" checksum: 980fa73476026e99dcacfc0d6e000d41d42c8e670faf4682496d30c625495e412c4369694f2a15cf1e5252d22de3c396f2b62edbe8d60b5dadc40d09e3f2dde3 languageName: node linkType: hard +"tailwind-merge@npm:^2.2.2": + version: 2.3.0 + resolution: "tailwind-merge@npm:2.3.0" + dependencies: + "@babel/runtime": "npm:^7.24.1" + checksum: cf3b126bee82bc9ff3f60f9601b66925418db6906544198b637487b25fba1c9c307734ca37ccb8fa2355f69ad0c5aff34c5dce460809addb459a93205d9a0abe + languageName: node + linkType: hard + "tailwindcss@npm:^3.3.6": version: 3.4.1 resolution: "tailwindcss@npm:3.4.1" @@ -14051,6 +14778,15 @@ __metadata: languageName: node linkType: hard +"telejson@npm:^7.2.0": + version: 7.2.0 + resolution: "telejson@npm:7.2.0" + dependencies: + memoizerific: "npm:^1.11.3" + checksum: 6e89b3d3c45b5a2aced9132f6a968fcdf758c00be4c3acb115d7d81e95c9e04083a7a4a9b43057fcf48b101156c1607a38f5491615956acb28d4d1f78a4bda20 + languageName: node + linkType: hard + "test-exclude@npm:^6.0.0": version: 6.0.0 resolution: "test-exclude@npm:6.0.0" @@ -14101,6 +14837,13 @@ __metadata: languageName: node linkType: hard +"tiny-invariant@npm:^1.3.1": + version: 1.3.3 + resolution: "tiny-invariant@npm:1.3.3" + checksum: 5e185c8cc2266967984ce3b352a4e57cb89dad5a8abb0dea21468a6ecaa67cd5bb47a3b7a85d08041008644af4f667fb8b6575ba38ba5fb00b3b5068306e59fe + languageName: node + linkType: hard + "tiny-warning@npm:^1.0.2": version: 1.0.3 resolution: "tiny-warning@npm:1.0.3" @@ -14228,6 +14971,13 @@ __metadata: languageName: node linkType: hard +"ts-dedent@npm:^2.0.0": + version: 2.2.0 + resolution: "ts-dedent@npm:2.2.0" + checksum: 93ed8f7878b6d5ed3c08d99b740010eede6bccfe64bce61c5a4da06a2c17d6ddbb80a8c49c2d15251de7594a4f93ffa21dd10e7be75ef66a4dc9951b4a94e2af + languageName: node + linkType: hard + "ts-interface-checker@npm:^0.1.9": version: 0.1.13 resolution: "ts-interface-checker@npm:0.1.13" @@ -14625,6 +15375,15 @@ __metadata: languageName: node linkType: hard +"use-sync-external-store@npm:^1.2.0": + version: 1.2.2 + resolution: "use-sync-external-store@npm:1.2.2" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 671e9c190aab9a8374a5d468c6ba17f52c38b6fae970110bc196fc1e2b57204149aea9619be49a1bb5207fb6e51d8afd19c3bcb94afe61813fed039821461dc0 + languageName: node + linkType: hard + "util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" @@ -14632,6 +15391,19 @@ __metadata: languageName: node linkType: hard +"util@npm:^0.12.4": + version: 0.12.5 + resolution: "util@npm:0.12.5" + dependencies: + inherits: "npm:^2.0.3" + is-arguments: "npm:^1.0.4" + is-generator-function: "npm:^1.0.7" + is-typed-array: "npm:^1.1.3" + which-typed-array: "npm:^1.1.2" + checksum: 61a10de7753353dd4d744c917f74cdd7d21b8b46379c1e48e1c4fd8e83f8190e6bd9978fc4e5102ab6a10ebda6019d1b36572fa4a325e175ec8b789a121f6147 + languageName: node + linkType: hard + "utility-types@npm:^3.10.0": version: 3.10.0 resolution: "utility-types@npm:3.10.0" @@ -15029,6 +15801,19 @@ __metadata: languageName: node linkType: hard +"which-typed-array@npm:^1.1.14, which-typed-array@npm:^1.1.2": + version: 1.1.15 + resolution: "which-typed-array@npm:1.1.15" + dependencies: + available-typed-arrays: "npm:^1.0.7" + call-bind: "npm:^1.0.7" + for-each: "npm:^0.3.3" + gopd: "npm:^1.0.1" + has-tostringtag: "npm:^1.0.2" + checksum: c3b6a99beadc971baa53c3ee5b749f2b9bdfa3b3b9a70650dd8511a48b61d877288b498d424712e9991d16019633086bd8b5923369460d93463c5825fa36c448 + languageName: node + linkType: hard + "which@npm:^2.0.1, which@npm:^2.0.2": version: 2.0.2 resolution: "which@npm:2.0.2" From 7648d2e18f10fc68a80880ee186c35ef2830e756 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Fri, 31 May 2024 12:56:22 +0200 Subject: [PATCH 69/82] Remove custom Accordion --- package.json | 4 +- src/components/Accordion/Accordion.tsx | 190 -------------- src/components/Accordion/index.ts | 1 - .../PublicationPackages.tsx | 48 ++-- .../RecursiveAccordion/RecursiveAccordion.tsx | 27 +- .../components/Handle/Handle.tsx | 11 +- yarn.lock | 243 +++++++++++++++++- 7 files changed, 280 insertions(+), 244 deletions(-) delete mode 100644 src/components/Accordion/Accordion.tsx delete mode 100644 src/components/Accordion/index.ts diff --git a/package.json b/package.json index 1ca78c3c..2392e9b6 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.526", + "@pzh-ui/components": "^0.0.537", "@pzh-ui/config": "^0.0.69", - "@pzh-ui/css": "^0.0.95", + "@pzh-ui/css": "^0.0.96", "@pzh-ui/icons": "^0.0.59", "@react-hookz/web": "^24.0.4", "@tanstack/react-query": "^5.24.7", diff --git a/src/components/Accordion/Accordion.tsx b/src/components/Accordion/Accordion.tsx deleted file mode 100644 index 8ac1a8fe..00000000 --- a/src/components/Accordion/Accordion.tsx +++ /dev/null @@ -1,190 +0,0 @@ -import { AngleDown } from '@pzh-ui/icons' -import { useUpdateEffect } from '@react-hookz/web' -import classNames from 'clsx' -import { - Children, - HTMLAttributes, - ReactNode, - cloneElement, - isValidElement, - useEffect, - useState, -} from 'react' - -interface AccordionProps { - className?: string - children: ReactNode | ReactNode[] - activeItem?: string | null - multipleOpen?: boolean - onClickCallback?: (item: string | null) => void -} - -const Accordion = ({ - className, - children, - activeItem, - multipleOpen = false, - onClickCallback, -}: AccordionProps) => { - const [openItemIds, setOpenItemIds] = useState( - activeItem ? [activeItem] : [] - ) - - const handleItemClick = (itemId: string) => { - setOpenItemIds(prevItemIds => { - if (prevItemIds.includes(itemId)) { - // Item is already open, close it - return multipleOpen - ? prevItemIds.filter(id => id !== itemId) - : [] - } else { - // Item is not open, open it - return multipleOpen ? [...prevItemIds, itemId] : [itemId] - } - }) - onClickCallback?.(itemId) - } - - useUpdateEffect(() => { - if (activeItem && activeItem !== openItemIds[0]) { - handleItemClick(activeItem) - } - }, [activeItem]) - - const processedChildren = Children.map(children, child => { - if (isValidElement(child) && child.type === AccordionItem) { - const itemId = child.props.uuid - const itemProps = { - ...(child.props as AccordionItemProps), - isOpen: openItemIds.includes(itemId), - onToggle: () => - !child.props.isDisabled && handleItemClick(itemId), - } - return cloneElement(child, itemProps) - } - return child - }) - - return
      {processedChildren}
    -} - -interface AccordionItemProps extends HTMLAttributes { - uuid?: string - isOpen?: boolean - isDisabled?: boolean - onToggle?: () => void - defaultOpen?: boolean -} - -const AccordionItem = ({ - className, - children, - isOpen, - defaultOpen = false, - ...rest -}: AccordionItemProps) => { - const [itemOpen, setItemOpen] = useState(defaultOpen) - - useUpdateEffect(() => { - if (isOpen !== undefined && isOpen !== itemOpen) { - setItemOpen(isOpen) - } - }, [isOpen]) - - const toggleItem = () => { - setItemOpen(prevItemOpen => !prevItemOpen) - if (isOpen !== undefined && isOpen !== itemOpen) { - setItemOpen(isOpen) - } - } - - useEffect(() => { - if (defaultOpen !== itemOpen) { - setItemOpen(defaultOpen) - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [defaultOpen]) - - const processedChildren = Children.map(children, child => { - if (isValidElement(child)) { - const itemProps = { - ...(child.props as AccordionProps), - isOpen: itemOpen, - onToggle: toggleItem, - } - return cloneElement(child, itemProps) - } - return child - }) - - return ( -
  • - {processedChildren} -
  • - ) -} - -const AccordionTrigger = ({ - className, - classNameButton, - children, - isOpen, - isDisabled, - onToggle, - ...rest -}: AccordionItemProps & - HTMLAttributes & { classNameButton?: string }) => { - const processedChildren = Children.map(children, child => { - if (isValidElement(child)) { - const itemProps = { - ...(child.props as AccordionProps), - isOpen, - } - return cloneElement(child, itemProps) - } - return child - }) - - return ( -
    - {processedChildren} - {!isDisabled && ( - - )} -
    - ) -} - -const AccordionContent = ({ - className, - children, - isOpen, -}: AccordionItemProps) => { - if (!isOpen) return null - - return
    {children}
    -} - -export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } diff --git a/src/components/Accordion/index.ts b/src/components/Accordion/index.ts deleted file mode 100644 index 5d69eaa8..00000000 --- a/src/components/Accordion/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './Accordion' diff --git a/src/components/Publications/PublicationPackages/PublicationPackages.tsx b/src/components/Publications/PublicationPackages/PublicationPackages.tsx index 34516f61..a2ee0354 100644 --- a/src/components/Publications/PublicationPackages/PublicationPackages.tsx +++ b/src/components/Publications/PublicationPackages/PublicationPackages.tsx @@ -1,4 +1,13 @@ -import { Button, Notification, Text, formatDate } from '@pzh-ui/components' +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, + Button, + Notification, + Text, + formatDate, +} from '@pzh-ui/components' import { useMemo } from 'react' import { @@ -13,12 +22,6 @@ import { PublicationEnvironment, PublicationVersionShort, } from '@/api/fetchers.schemas' -import { - Accordion, - AccordionContent, - AccordionItem, - AccordionTrigger, -} from '@/components/Accordion' import { LoaderSpinner } from '@/components/Loader' import { ModalStateMap } from '@/components/Modals/types' import useModalStore from '@/store/modalStore' @@ -113,12 +116,19 @@ const PublicationPackages = ({ } return ( - - - + + + {isOfficial ? 'Validatie' : 'Publicatie'} @@ -200,16 +210,8 @@ const PublicationPackages = ({ /> )} */} - - + + Publicatie diff --git a/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx b/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx index cddc2d3d..d932b9a3 100644 --- a/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx +++ b/src/components/Regulations/RecursiveAccordion/RecursiveAccordion.tsx @@ -1,11 +1,11 @@ -import classNames from 'clsx' - import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, -} from '@/components/Accordion' +} from '@pzh-ui/components' +import classNames from 'clsx' + import DropArea from '@/components/DropArea' import * as sections from '@/config/regulations/sections' import { Structure } from '@/config/regulations/types' @@ -51,9 +51,10 @@ const RecursiveAccordion = ({ return ( + value={(hasCallback && activeItem) || undefined} + collapsible> {structure.map( ( { @@ -81,8 +82,7 @@ const RecursiveAccordion = ({ return ( )} setActiveItem(uuid) + : undefined + } className={classNames('overflow-hidden py-2', { 'active:animate-pulse active:cursor-grabbing active:bg-pzh-blue-100/10': expanded && structure.length > 1, 'pr-4': !!!section.children?.length, })} - classNameButton={classNames({ - 'after:w-full': structure.length <= 1, - 'after:w-[calc(100%-36px)]': - structure.length > 1, - hidden: !expanded, - })} {...dragProps([...parentIndices, index])}> 1} @@ -136,7 +135,7 @@ const RecursiveAccordion = ({ className={classNames( structure.length > 1 ? 'pl-[72px]' - : 'pl-[40px]', + : 'pl-10', { hidden: !expanded } )}> {!!children?.length && ( diff --git a/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx b/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx index a677adae..f0457f0a 100644 --- a/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx +++ b/src/components/Regulations/RecursiveAccordion/components/Handle/Handle.tsx @@ -72,7 +72,10 @@ const Handle = ({ ? setActiveItem(uuid) : undefined : undefined - }> + } + aria-label={`${!expanded ? 'Open' : 'Sluit'} ${ + section.defaults.singularCapitalize + } ${index}`}> {expanded ? ( ) : ( @@ -94,13 +97,15 @@ const Handle = ({ diff --git a/yarn.lock b/yarn.lock index 00758967..fbf9614c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2816,13 +2816,14 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.526": - version: 0.0.526 - resolution: "@pzh-ui/components@npm:0.0.526" +"@pzh-ui/components@npm:^0.0.537": + version: 0.0.537 + resolution: "@pzh-ui/components@npm:0.0.537" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" "@pzh-ui/icons": "npm:^0.0.59" + "@radix-ui/react-accordion": "npm:^1.1.2" "@radix-ui/react-slot": "npm:^1.0.2" "@react-aria/utils": "npm:^3.23.2" "@react-hookz/web": "npm:^24.0.4" @@ -2869,7 +2870,7 @@ __metadata: react-stately: "npm:^3.30.1" react-toastify: "npm:^9.1.2" tailwind-merge: "npm:^2.2.2" - checksum: 2658ad34913a840e260a63b32083a1103cb88475150e13dae05cba632e398f883ca4c132c6a31192a626207bbc79c52a4c8afa0aa7ecf9ccf8db230b309c82b6 + checksum: fabbc9cee068d36d71ca767ce46e5af2f05eb1ebfe5fb6915907936714bb9e1cdebafecfcd331dfb1054b4c6d533dd25048264ce15a3cf876d22c8658bcc725e languageName: node linkType: hard @@ -2901,9 +2902,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/css@npm:^0.0.95": - version: 0.0.95 - resolution: "@pzh-ui/css@npm:0.0.95" +"@pzh-ui/css@npm:^0.0.96": + version: 0.0.96 + resolution: "@pzh-ui/css@npm:0.0.96" dependencies: "@rollup/plugin-typescript": "npm:^8.3.1" "@tailwindcss/custom-forms": "npm:^0.2.1" @@ -2912,7 +2913,7 @@ __metadata: "@tailwindcss/typography": "npm:^0.5.9" react-datepicker: "npm:^4.7.0" react-toastify: "npm:^9.1.2" - checksum: 5f94eab3ec26a106d2ad3324dfe5043cb7ed91b361ff25c081a13c8e76a58dc2ed8ecf62a981cb763541c6f7b1a9f0a45b25c037008c7d0db1cc3f9a3ce01781 + checksum: d5ccc854f77f5b21711716c0d67a235142b8b0ee3d32062cb28de13e0ae9d39683a74611a16319c9677946035b64b51cc0b10dfa90b5d16e565176a035d00898 languageName: node linkType: hard @@ -2926,6 +2927,93 @@ __metadata: languageName: node linkType: hard +"@radix-ui/primitive@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/primitive@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + checksum: 2b93e161d3fdabe9a64919def7fa3ceaecf2848341e9211520c401181c9eaebb8451c630b066fad2256e5c639c95edc41de0ba59c40eff37e799918d019822d1 + languageName: node + linkType: hard + +"@radix-ui/react-accordion@npm:^1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-accordion@npm:1.1.2" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/primitive": "npm:1.0.1" + "@radix-ui/react-collapsible": "npm:1.0.3" + "@radix-ui/react-collection": "npm:1.0.3" + "@radix-ui/react-compose-refs": "npm:1.0.1" + "@radix-ui/react-context": "npm:1.0.1" + "@radix-ui/react-direction": "npm:1.0.1" + "@radix-ui/react-id": "npm:1.0.1" + "@radix-ui/react-primitive": "npm:1.0.3" + "@radix-ui/react-use-controllable-state": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 3c2b8fc686b3c6bc6f81e567c1d3933b8ffb35c060eeee113237ee69121b5e4d7c48bb354dbd2626bd101c1f6a1b6612e8cde2de8f72519732fb6c1a1d4cac28 + languageName: node + linkType: hard + +"@radix-ui/react-collapsible@npm:1.0.3": + version: 1.0.3 + resolution: "@radix-ui/react-collapsible@npm:1.0.3" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/primitive": "npm:1.0.1" + "@radix-ui/react-compose-refs": "npm:1.0.1" + "@radix-ui/react-context": "npm:1.0.1" + "@radix-ui/react-id": "npm:1.0.1" + "@radix-ui/react-presence": "npm:1.0.1" + "@radix-ui/react-primitive": "npm:1.0.3" + "@radix-ui/react-use-controllable-state": "npm:1.0.1" + "@radix-ui/react-use-layout-effect": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: e9c90f9c9f4bcf8beac7d57cf09d5bf3eb99f868b17bd53025b7c81ffcf500efbba9cd92d137661efd7d191f29609e986e3b0577b11a6000e6b513e4403ebb09 + languageName: node + linkType: hard + +"@radix-ui/react-collection@npm:1.0.3": + version: 1.0.3 + resolution: "@radix-ui/react-collection@npm:1.0.3" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-compose-refs": "npm:1.0.1" + "@radix-ui/react-context": "npm:1.0.1" + "@radix-ui/react-primitive": "npm:1.0.3" + "@radix-ui/react-slot": "npm:1.0.2" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 2ac740ab746f411942dc95100f1eb60b9a3670960a805e266533fa1bc7dec31a6dabddd746ab788ebd5a9c22b468e38922f39d30447925515f8e44f0a3b2e56c + languageName: node + linkType: hard + "@radix-ui/react-compose-refs@npm:1.0.1": version: 1.0.1 resolution: "@radix-ui/react-compose-refs@npm:1.0.1" @@ -2941,7 +3029,94 @@ __metadata: languageName: node linkType: hard -"@radix-ui/react-slot@npm:^1.0.2": +"@radix-ui/react-context@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-context@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: a02187a3bae3a0f1be5fab5ad19c1ef06ceff1028d957e4d9994f0186f594a9c3d93ee34bacb86d1fa8eb274493362944398e1c17054d12cb3b75384f9ae564b + languageName: node + linkType: hard + +"@radix-ui/react-direction@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-direction@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 5336a8b0d4f1cde585d5c2b4448af7b3d948bb63a1aadb37c77771b0e5902dc6266e409cf35fd0edaca7f33e26424be19e64fb8f9d7f7be2d6f1714ea2764210 + languageName: node + linkType: hard + +"@radix-ui/react-id@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-id@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-use-layout-effect": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 446a453d799cc790dd2a1583ff8328da88271bff64530b5a17c102fa7fb35eece3cf8985359d416f65e330cd81aa7b8fe984ea125fc4f4eaf4b3801d698e49fe + languageName: node + linkType: hard + +"@radix-ui/react-presence@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-presence@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-compose-refs": "npm:1.0.1" + "@radix-ui/react-use-layout-effect": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 406f0b5a54ea4e7881e15bddc3863234bb14bf3abd4a6e56ea57c6df6f9265a9ad5cfa158e3a98614f0dcbbb7c5f537e1f7158346e57cc3f29b522d62cf28823 + languageName: node + linkType: hard + +"@radix-ui/react-primitive@npm:1.0.3": + version: 1.0.3 + resolution: "@radix-ui/react-primitive@npm:1.0.3" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-slot": "npm:1.0.2" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: bedb934ac07c710dc5550a7bfc7065d47e099d958cde1d37e4b1947ae5451f1b7e6f8ff5965e242578bf2c619065e6038c3a3aa779e5eafa7da3e3dbc685799f + languageName: node + linkType: hard + +"@radix-ui/react-slot@npm:1.0.2, @radix-ui/react-slot@npm:^1.0.2": version: 1.0.2 resolution: "@radix-ui/react-slot@npm:1.0.2" dependencies: @@ -2957,6 +3132,52 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-use-callback-ref@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-use-callback-ref@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: b9fd39911c3644bbda14a84e4fca080682bef84212b8d8931fcaa2d2814465de242c4cfd8d7afb3020646bead9c5e539d478cea0a7031bee8a8a3bb164f3bc4c + languageName: node + linkType: hard + +"@radix-ui/react-use-controllable-state@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-use-controllable-state@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-use-callback-ref": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: dee2be1937d293c3a492cb6d279fc11495a8f19dc595cdbfe24b434e917302f9ac91db24e8cc5af9a065f3f209c3423115b5442e65a5be9fd1e9091338972be9 + languageName: node + linkType: hard + +"@radix-ui/react-use-layout-effect@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-use-layout-effect@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: bed9c7e8de243a5ec3b93bb6a5860950b0dba359b6680c84d57c7a655e123dec9b5891c5dfe81ab970652e7779fe2ad102a23177c7896dde95f7340817d47ae5 + languageName: node + linkType: hard + "@react-aria/breadcrumbs@npm:^3.5.11": version: 3.5.11 resolution: "@react-aria/breadcrumbs@npm:3.5.11" @@ -12547,9 +12768,9 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.526" + "@pzh-ui/components": "npm:^0.0.537" "@pzh-ui/config": "npm:^0.0.69" - "@pzh-ui/css": "npm:^0.0.95" + "@pzh-ui/css": "npm:^0.0.96" "@pzh-ui/icons": "npm:^0.0.59" "@react-hookz/web": "npm:^24.0.4" "@tanstack/react-query": "npm:^5.24.7" From 18f7e67d5dd99e7cf0e97f62c1d944db8611aed9 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 4 Jun 2024 10:39:32 +0200 Subject: [PATCH 70/82] AB#18529 --- package.json | 2 +- .../PublicationVersionForm/PublicationVersionForm.tsx | 1 - src/validation/publication.ts | 1 + yarn.lock | 10 +++++----- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 2392e9b6..9e07fd3d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.537", + "@pzh-ui/components": "^0.0.539", "@pzh-ui/config": "^0.0.69", "@pzh-ui/css": "^0.0.96", "@pzh-ui/icons": "^0.0.59", diff --git a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx index 2c7dece5..3340ef84 100644 --- a/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx +++ b/src/components/Publications/PublicationVersionForm/PublicationVersionForm.tsx @@ -61,7 +61,6 @@ const PublicationVersionForm = ({ label="Module status" placeholder="Selecteer een module status" options={statusOptions} - disabled={isEdit} required styles={{ menu: base => ({ diff --git a/src/validation/publication.ts b/src/validation/publication.ts index 5c85cecb..6b224bda 100644 --- a/src/validation/publication.ts +++ b/src/validation/publication.ts @@ -13,6 +13,7 @@ export const PUBLICATION_VERSION_ADD_SCHEMA = object({ }) export const PUBLICATION_VERSION_EDIT_SCHEMA = object({ + Module_Status_ID: schemaDefaults.requiredNumber(), Effective_Date: schemaDefaults.optionalString .refine(date => { return date && new Date(date) > new Date(Date.now()) diff --git a/yarn.lock b/yarn.lock index fbf9614c..1165e95f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2816,9 +2816,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.537": - version: 0.0.537 - resolution: "@pzh-ui/components@npm:0.0.537" +"@pzh-ui/components@npm:^0.0.539": + version: 0.0.539 + resolution: "@pzh-ui/components@npm:0.0.539" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" @@ -2870,7 +2870,7 @@ __metadata: react-stately: "npm:^3.30.1" react-toastify: "npm:^9.1.2" tailwind-merge: "npm:^2.2.2" - checksum: fabbc9cee068d36d71ca767ce46e5af2f05eb1ebfe5fb6915907936714bb9e1cdebafecfcd331dfb1054b4c6d533dd25048264ce15a3cf876d22c8658bcc725e + checksum: 75760c8bd7fcb1577d151f777775ffb2d583b9479703c363e8cfed9032989e1e51aa13d4daa4e8c9ebb8fe8590385cbe1b912e014e0fded9a849ac3d2bcc7c46 languageName: node linkType: hard @@ -12768,7 +12768,7 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.537" + "@pzh-ui/components": "npm:^0.0.539" "@pzh-ui/config": "npm:^0.0.69" "@pzh-ui/css": "npm:^0.0.96" "@pzh-ui/icons": "npm:^0.0.59" From e440c4ab1b50bb6531ab9d1e0df85fdd8843b838 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 4 Jun 2024 13:26:49 +0200 Subject: [PATCH 71/82] Fix links on ThemeDetail page --- src/pages/public/ThemeDetail/ThemeDetail.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/public/ThemeDetail/ThemeDetail.tsx b/src/pages/public/ThemeDetail/ThemeDetail.tsx index 400c81bc..13807212 100644 --- a/src/pages/public/ThemeDetail/ThemeDetail.tsx +++ b/src/pages/public/ThemeDetail/ThemeDetail.tsx @@ -102,11 +102,11 @@ const ConnectedObject = ({ Object }: ReadRelationShortBeleidskeuzeMinimal) => { {!!data?.Maatregelen?.length ? ( -
    +
    {data.Maatregelen.map(item => { const model = models[item.Object.Object_Type as ModelType] - const { slugOverview } = model.defaults + const { slugOverview, plural } = model.defaults return ( Date: Tue, 4 Jun 2024 15:56:05 +0200 Subject: [PATCH 72/82] Add MaintenancePage for 500 errors --- package.json | 4 +- src/App/App.tsx | 6 +++ src/App/Routes/AppRoutes.tsx | 5 +++ src/api/instance.ts | 14 ++++--- .../MaintenancePage/MaintenancePage.tsx | 38 +++++++++++++++++++ src/pages/public/MaintenancePage/index.ts | 3 ++ src/utils/globalRouter.ts | 7 ++++ yarn.lock | 22 ++++++++--- 8 files changed, 85 insertions(+), 14 deletions(-) create mode 100644 src/pages/public/MaintenancePage/MaintenancePage.tsx create mode 100644 src/pages/public/MaintenancePage/index.ts create mode 100644 src/utils/globalRouter.ts diff --git a/package.json b/package.json index 7810fed7..d70cc1fb 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "@headlessui/react": "^1.7.17", "@pzh-ui/components": "^0.0.452", "@pzh-ui/config": "^0.0.56", - "@pzh-ui/css": "^0.0.75", - "@pzh-ui/icons": "^0.0.47", + "@pzh-ui/css": "^0.0.96", + "@pzh-ui/icons": "^0.0.60", "@react-hookz/web": "^24.0.2", "@tanstack/react-query": "^5.14.2", "axios": "^1.6.2", diff --git a/src/App/App.tsx b/src/App/App.tsx index d3b6b742..188389e7 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -3,6 +3,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { Suspense } from 'react' import { ErrorBoundary } from 'react-error-boundary' import { Helmet, HelmetProvider } from 'react-helmet-async' +import { useNavigate } from 'react-router-dom' import Axe from '@/Axe' import { LoaderContent } from '@/components/Loader' @@ -10,9 +11,11 @@ import AuthProvider from '@/context/AuthContext' import usePage from '@/hooks/usePage' import { ErrorPage } from '@/pages/public' import { BaseLayout } from '@/templates/BaseLayout' +import globalRouter from '@/utils/globalRouter' import { toastNotification } from '@/utils/toastNotification' import AppRoutes from './Routes' + import './appConfig' const queryClient = new QueryClient({ @@ -31,6 +34,9 @@ const queryClient = new QueryClient({ }) const App = () => { + const navigate = useNavigate() + globalRouter.navigate = navigate + const userIsInMuteerEnvironment = usePage('/muteer') const isAdvancedSearchPage = usePage('/zoeken-op-kaart') const isNetworkPage = usePage('/beleidsnetwerk') diff --git a/src/App/Routes/AppRoutes.tsx b/src/App/Routes/AppRoutes.tsx index 96b10439..514190a7 100644 --- a/src/App/Routes/AppRoutes.tsx +++ b/src/App/Routes/AppRoutes.tsx @@ -39,6 +39,7 @@ import { ThemeDetail, ThemeOverview, } from '@/pages/public' +import MaintenancePage from '@/pages/public/MaintenancePage/MaintenancePage' import ProtectedRoute from './ProtectedRoute' @@ -384,6 +385,10 @@ const AppRoutes = () => { }, ], }, + { + path: '500', + element: , + }, { path: '*', element: , diff --git a/src/api/instance.ts b/src/api/instance.ts index 6491530b..bfc5d3bc 100644 --- a/src/api/instance.ts +++ b/src/api/instance.ts @@ -1,6 +1,8 @@ import axios, { AxiosError, AxiosRequestConfig } from 'axios' import getApiUrl from '@/utils/getApiUrl' +import globalRouter from '@/utils/globalRouter' +import { toastNotification } from '@/utils/toastNotification' export type Environment = 'dev' | 'test' | 'acc' | 'main' @@ -27,13 +29,13 @@ instance.interceptors.request.use(async config => { instance.interceptors.response.use( response => response, (error: AxiosError) => { - if ( - (error.response?.status === 401 || - error.response?.status === 403) && - location.pathname !== '/login' - ) { - window.location.href = '/login' + if (error.response?.status === 401 || error.response?.status === 403) { + toastNotification('notLoggedIn') + globalRouter.navigate?.('/login') + } else if (error.response?.status === 500) { + globalRouter.navigate?.('/500') } + return Promise.reject(error) } ) diff --git a/src/pages/public/MaintenancePage/MaintenancePage.tsx b/src/pages/public/MaintenancePage/MaintenancePage.tsx new file mode 100644 index 00000000..1ae682c8 --- /dev/null +++ b/src/pages/public/MaintenancePage/MaintenancePage.tsx @@ -0,0 +1,38 @@ +import { Heading } from '@pzh-ui/components' +import { PersonDigging } from '@pzh-ui/icons' +import { Helmet } from 'react-helmet-async' + +import { Container } from '@/components/Container' + +const MaintenancePage = () => ( + <> + + + + +
    + +
    + + + Deze applicatie is even aan het updaten + + + Excuses voor het ongemak + +
    +
    +
    + +) + +export default MaintenancePage diff --git a/src/pages/public/MaintenancePage/index.ts b/src/pages/public/MaintenancePage/index.ts new file mode 100644 index 00000000..a45d7542 --- /dev/null +++ b/src/pages/public/MaintenancePage/index.ts @@ -0,0 +1,3 @@ +import ErrorPage from './MaintenancePage' + +export default ErrorPage diff --git a/src/utils/globalRouter.ts b/src/utils/globalRouter.ts new file mode 100644 index 00000000..dfe99ccc --- /dev/null +++ b/src/utils/globalRouter.ts @@ -0,0 +1,7 @@ +import { NavigateFunction } from 'react-router-dom' + +const globalRouter = { navigate: null } as { + navigate: null | NavigateFunction +} + +export default globalRouter diff --git a/yarn.lock b/yarn.lock index 1bb34ecb..8a694086 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2563,9 +2563,9 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/css@npm:^0.0.75": - version: 0.0.75 - resolution: "@pzh-ui/css@npm:0.0.75" +"@pzh-ui/css@npm:^0.0.96": + version: 0.0.96 + resolution: "@pzh-ui/css@npm:0.0.96" dependencies: "@rollup/plugin-typescript": "npm:^8.3.1" "@tailwindcss/custom-forms": "npm:^0.2.1" @@ -2574,7 +2574,7 @@ __metadata: "@tailwindcss/typography": "npm:^0.5.9" react-datepicker: "npm:^4.7.0" react-toastify: "npm:^9.1.2" - checksum: 98534c48dbaafe7f7a0c2b2cb5e57c374763e4279b1882f29cd094744fd5f2c827adfc53a60cdcde4524a70451d4a0021fa761133633c29492ba5a586f131358 + checksum: d5ccc854f77f5b21711716c0d67a235142b8b0ee3d32062cb28de13e0ae9d39683a74611a16319c9677946035b64b51cc0b10dfa90b5d16e565176a035d00898 languageName: node linkType: hard @@ -2588,6 +2588,16 @@ __metadata: languageName: node linkType: hard +"@pzh-ui/icons@npm:^0.0.60": + version: 0.0.60 + resolution: "@pzh-ui/icons@npm:0.0.60" + dependencies: + react: "npm:^18.2.0" + react-toastify: "npm:^9.1.2" + checksum: 46c2c4e9072d33a71a91b6e97c193dbce6689060ac92d334f4e3bb3eba56c68ed7ba5af208f0577ee6e942d10032c2dbb47d5fd437148bf61ac2f664294244ff + languageName: node + linkType: hard + "@react-aria/breadcrumbs@npm:^3.5.9": version: 3.5.9 resolution: "@react-aria/breadcrumbs@npm:3.5.9" @@ -12377,8 +12387,8 @@ __metadata: "@headlessui/react": "npm:^1.7.17" "@pzh-ui/components": "npm:^0.0.452" "@pzh-ui/config": "npm:^0.0.56" - "@pzh-ui/css": "npm:^0.0.75" - "@pzh-ui/icons": "npm:^0.0.47" + "@pzh-ui/css": "npm:^0.0.96" + "@pzh-ui/icons": "npm:^0.0.60" "@react-hookz/web": "npm:^24.0.2" "@tanstack/react-query": "npm:^5.14.2" "@testing-library/dom": "npm:^9.3.3" From 549a5784c081d15424c8f7108e43f74f7cd510b0 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 4 Jun 2024 16:24:48 +0200 Subject: [PATCH 73/82] Update Geoserver layer --- src/api/axiosGeoJSON.ts | 24 +++++++ src/components/AreaPreview/AreaPreview.tsx | 2 + .../DynamicObject/ObjectArea/ObjectArea.tsx | 6 +- .../Form/FieldSelectArea/FieldSelectArea.tsx | 2 +- .../LeafletTinyViewer/LeafletTinyViewer.tsx | 66 ++++++++++--------- .../Modals/AreaModal/steps/StepOne.tsx | 1 + .../Modals/AreaModal/steps/StepTwo.tsx | 3 +- .../utils/handleWerkingsgebiedSelect.tsx | 4 +- 8 files changed, 70 insertions(+), 38 deletions(-) diff --git a/src/api/axiosGeoJSON.ts b/src/api/axiosGeoJSON.ts index acccd04d..e6d8cedd 100644 --- a/src/api/axiosGeoJSON.ts +++ b/src/api/axiosGeoJSON.ts @@ -3,6 +3,8 @@ import { Point } from 'leaflet' import generateQueryString from '@/utils/queryString' +import { Environment } from './instance' + export interface Feature { id: string properties: { @@ -156,11 +158,33 @@ const generateImageUrl = (symbol: string) => { }/geoserver/Omgevingsbeleid/wms?${path}` } +const getGeoserverLayer = (isSource?: boolean): string => { + const environment = isSource + ? 'source' + : (import.meta.env.VITE_API_ENV as Environment) + + switch (environment) { + case 'source': + return 'Omgevingsbeleid:Werkingsgebieden' + case 'dev': + return 'Omgevingsbeleid:Werkingsgebieden_dev' + case 'test': + return 'Omgevingsbeleid:Werkingsgebieden_test' + case 'acc': + return 'Omgevingsbeleid:Werkingsgebieden_acc' + case 'main': + return 'Omgevingsbeleid:Werkingsgebieden_prod' + default: + return '' + } +} + export default instance export { api_version, generateImageUrl, getGeoJsonData, + getGeoserverLayer, getOnderverdeling, getWerkingsGebieden, getWerkingsGebiedenByArea, diff --git a/src/components/AreaPreview/AreaPreview.tsx b/src/components/AreaPreview/AreaPreview.tsx index ea18103f..9cb74323 100644 --- a/src/components/AreaPreview/AreaPreview.tsx +++ b/src/components/AreaPreview/AreaPreview.tsx @@ -6,6 +6,7 @@ import { LeafletTinyViewer } from '../Leaflet' interface AreaPreviewProps { area?: Partial + isSource?: boolean } const AreaPreview = ({ area }: AreaPreviewProps) => ( @@ -24,6 +25,7 @@ const AreaPreview = ({ area }: AreaPreviewProps) => ( ? area.Source_UUID : area?.UUID || '' } + isSource />
    )} diff --git a/src/components/DynamicObject/ObjectArea/ObjectArea.tsx b/src/components/DynamicObject/ObjectArea/ObjectArea.tsx index 869a3c8c..9bf7806d 100644 --- a/src/components/DynamicObject/ObjectArea/ObjectArea.tsx +++ b/src/components/DynamicObject/ObjectArea/ObjectArea.tsx @@ -72,7 +72,7 @@ const ObjectArea = ({ Tip! Gebruik het icoon{' '} {' '} om de kaartlagen binnen dit werkingsgebied te bekijken @@ -80,9 +80,7 @@ const ObjectArea = ({
    - +
    )} diff --git a/src/components/Form/FieldSelectArea/FieldSelectArea.tsx b/src/components/Form/FieldSelectArea/FieldSelectArea.tsx index ddd2099e..ae5b5a1c 100644 --- a/src/components/Form/FieldSelectArea/FieldSelectArea.tsx +++ b/src/components/Form/FieldSelectArea/FieldSelectArea.tsx @@ -145,7 +145,7 @@ const FieldSelectArea = ({
    - +
    diff --git a/src/components/Leaflet/LeafletTinyViewer/LeafletTinyViewer.tsx b/src/components/Leaflet/LeafletTinyViewer/LeafletTinyViewer.tsx index 1b0c85ba..5f64d504 100644 --- a/src/components/Leaflet/LeafletTinyViewer/LeafletTinyViewer.tsx +++ b/src/components/Leaflet/LeafletTinyViewer/LeafletTinyViewer.tsx @@ -5,7 +5,7 @@ import { useMap } from 'react-leaflet' import { Feature, - getOnderverdeling, + getGeoserverLayer, getWerkingsgebied, } from '@/api/axiosGeoJSON' import ToggleableSection from '@/components/ToggleableSection' @@ -15,9 +15,10 @@ import LeafletMap from '../LeafletMap' interface LeafletTinyViewerProps { uuid: string + isSource?: boolean } -const LeafletTinyViewer = ({ uuid }: LeafletTinyViewerProps) => ( +const LeafletTinyViewer = ({ uuid, isSource }: LeafletTinyViewerProps) => ( ( }} controllers={{ showLayers: false }} id={`leaflet-tiny-viewer-${uuid}`}> - + ) -const LeafletTinyViewerInner = ({ uuid }: LeafletTinyViewerProps) => { +const LeafletTinyViewerInner = ({ uuid, isSource }: LeafletTinyViewerProps) => { const map = useMap() const { data: werkingsgebied } = useQuery({ @@ -38,11 +39,11 @@ const LeafletTinyViewerInner = ({ uuid }: LeafletTinyViewerProps) => { queryFn: () => getWerkingsgebied(uuid), enabled: !!uuid, }) - const { data: onderverdeling } = useQuery({ - queryKey: ['onderverdeling', uuid], - queryFn: () => getOnderverdeling(uuid), - enabled: !!uuid, - }) + // const { data: onderverdeling } = useQuery({ + // queryKey: ['onderverdeling', uuid], + // queryFn: () => getOnderverdeling(uuid), + // enabled: !!uuid, + // }) const [layerIntance, setLayerInstance] = useState<{ werkingsgebied?: TileLayer.WMS @@ -55,10 +56,13 @@ const LeafletTinyViewerInner = ({ uuid }: LeafletTinyViewerProps) => { }>({ werkingsgebied: true }) const initializeMap = () => { - const filters = onderverdeling?.features - ?.map(s => s.properties.Onderverdeling) - .filter(Boolean) - setLayerFilter({ ...layerFilter, layers: filters }) + // const filters = onderverdeling?.features + // ?.map(s => s.properties.Onderverdeling) + // .filter(Boolean) + setLayerFilter({ + ...layerFilter, + //layers: filters + }) const defaultLayerOptions = { version: '1.3.0', @@ -75,42 +79,42 @@ const LeafletTinyViewerInner = ({ uuid }: LeafletTinyViewerProps) => { import.meta.env.VITE_GEOSERVER_API_URL }/geoserver/Omgevingsbeleid/wms`, { - layers: 'Omgevingsbeleid:Werkingsgebieden', + layers: getGeoserverLayer(isSource), zIndex: 1, ...defaultLayerOptions, } ) - const subLayerInstance = Leaflet.tileLayer.wms( - `${ - import.meta.env.VITE_GEOSERVER_API_URL - }/geoserver/Omgevingsbeleid/wms`, - { - layers: 'Omgevingsbeleid:Werkingsgebieden_Onderverdeling', - zIndex: 2, - ...defaultLayerOptions, - } - ) + // const subLayerInstance = Leaflet.tileLayer.wms( + // `${ + // import.meta.env.VITE_GEOSERVER_API_URL + // }/geoserver/Omgevingsbeleid/wms`, + // { + // layers: 'Omgevingsbeleid:Werkingsgebieden_Onderverdeling', + // zIndex: 2, + // ...defaultLayerOptions, + // } + // ) layerInstance.addTo(map) - subLayerInstance.addTo(map) + // subLayerInstance.addTo(map) const layers: Feature[] = [] - onderverdeling?.features?.forEach(feature => { - layers.push(feature) - }) + // onderverdeling?.features?.forEach(feature => { + // layers.push(feature) + // }) setLayerInstance({ werkingsgebied: layerInstance, - onderverdeling: subLayerInstance, + // onderverdeling: subLayerInstance, }) setLayers(layers) } useEffect( - () => (onderverdeling || werkingsgebied) && initializeMap(), + () => /*onderverdeling || */ werkingsgebied && initializeMap(), // eslint-disable-next-line react-hooks/exhaustive-deps - [onderverdeling, werkingsgebied] + [/* onderverdeling , */ werkingsgebied] ) const handleFilter = useCallback( diff --git a/src/components/Modals/AreaModal/steps/StepOne.tsx b/src/components/Modals/AreaModal/steps/StepOne.tsx index 4b2592a7..ebb843f9 100644 --- a/src/components/Modals/AreaModal/steps/StepOne.tsx +++ b/src/components/Modals/AreaModal/steps/StepOne.tsx @@ -122,6 +122,7 @@ export const StepOne = ({ data, isLoading }: StepProps) => { diff --git a/src/components/Modals/AreaModal/steps/StepTwo.tsx b/src/components/Modals/AreaModal/steps/StepTwo.tsx index f8e8ddf8..dfef7583 100644 --- a/src/components/Modals/AreaModal/steps/StepTwo.tsx +++ b/src/components/Modals/AreaModal/steps/StepTwo.tsx @@ -53,7 +53,7 @@ export const StepTwo = ({ data }: StepProps) => {
    -
    +
    {options?.map((version, index) => (
    {
    diff --git a/src/pages/public/MapSearch/utils/handleWerkingsgebiedSelect.tsx b/src/pages/public/MapSearch/utils/handleWerkingsgebiedSelect.tsx index f8bad0f5..4cf15f5c 100644 --- a/src/pages/public/MapSearch/utils/handleWerkingsgebiedSelect.tsx +++ b/src/pages/public/MapSearch/utils/handleWerkingsgebiedSelect.tsx @@ -1,5 +1,7 @@ import Leaflet, { Map } from 'leaflet' +import { getGeoserverLayer } from '@/api/axiosGeoJSON' + type SelectedOption = { label: string; value: string } const handleWerkingsgebiedSelect = async ( @@ -20,7 +22,7 @@ const handleWerkingsgebiedSelect = async ( import.meta.env.VITE_GEOSERVER_API_URL }/geoserver/Omgevingsbeleid/wms`, { - layers: 'Omgevingsbeleid:Werkingsgebieden', + layers: getGeoserverLayer(), version: '1.3.0', format: 'image/png', transparent: true, From 79eebb94e37b105d5c3b12c2dfde00d7cc6fe461 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 10 Jun 2024 10:06:00 +0200 Subject: [PATCH 74/82] Remove info banner --- src/components/DynamicObject/ObjectArea/ObjectArea.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/DynamicObject/ObjectArea/ObjectArea.tsx b/src/components/DynamicObject/ObjectArea/ObjectArea.tsx index 9bf7806d..d34452ed 100644 --- a/src/components/DynamicObject/ObjectArea/ObjectArea.tsx +++ b/src/components/DynamicObject/ObjectArea/ObjectArea.tsx @@ -1,5 +1,4 @@ -import { Heading, Notification, Text } from '@pzh-ui/components' -import { LayerGroup, Lightbulb } from '@pzh-ui/icons' +import { Heading, Text } from '@pzh-ui/components' import { useModulesModuleIdObjectWerkingsgebiedLatestLineageIdGet, @@ -67,7 +66,7 @@ const ObjectArea = ({ {!!data && ( <> - + {/* <> Tip! Gebruik het icoon{' '} - + */}
    From cb8513ab2f8aaaf24c6f50f40af4ff78072d56c8 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 11 Jun 2024 12:53:20 +0200 Subject: [PATCH 75/82] Update error page --- src/App/Routes/AppRoutes.tsx | 5 +++++ src/api/instance.ts | 3 ++- src/utils/globalErrorBoundary.ts | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/utils/globalErrorBoundary.ts diff --git a/src/App/Routes/AppRoutes.tsx b/src/App/Routes/AppRoutes.tsx index 514190a7..d14f9632 100644 --- a/src/App/Routes/AppRoutes.tsx +++ b/src/App/Routes/AppRoutes.tsx @@ -1,4 +1,5 @@ import { useCallback, useLayoutEffect } from 'react' +import { useErrorBoundary } from 'react-error-boundary' import { useNavigate, useRoutes } from 'react-router-dom' import * as models from '@/config/objects' @@ -40,10 +41,14 @@ import { ThemeOverview, } from '@/pages/public' import MaintenancePage from '@/pages/public/MaintenancePage/MaintenancePage' +import globalErrorBoundary from '@/utils/globalErrorBoundary' import ProtectedRoute from './ProtectedRoute' const AppRoutes = () => { + const { showBoundary } = useErrorBoundary() + globalErrorBoundary.showBoundary = showBoundary + const routes = useRoutes([ /** * Public pages diff --git a/src/api/instance.ts b/src/api/instance.ts index bfc5d3bc..f6b8bdec 100644 --- a/src/api/instance.ts +++ b/src/api/instance.ts @@ -1,6 +1,7 @@ import axios, { AxiosError, AxiosRequestConfig } from 'axios' import getApiUrl from '@/utils/getApiUrl' +import globalErrorBoundary from '@/utils/globalErrorBoundary' import globalRouter from '@/utils/globalRouter' import { toastNotification } from '@/utils/toastNotification' @@ -33,7 +34,7 @@ instance.interceptors.response.use( toastNotification('notLoggedIn') globalRouter.navigate?.('/login') } else if (error.response?.status === 500) { - globalRouter.navigate?.('/500') + globalErrorBoundary.showBoundary?.(error) } return Promise.reject(error) diff --git a/src/utils/globalErrorBoundary.ts b/src/utils/globalErrorBoundary.ts new file mode 100644 index 00000000..5dfb7efc --- /dev/null +++ b/src/utils/globalErrorBoundary.ts @@ -0,0 +1,5 @@ +const globalErrorBoundary = { showBoundary: null } as { + showBoundary: ((error: any) => void) | null +} + +export default globalErrorBoundary From 37326eb10dced3a738569fa5969c86853454474e Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 11 Jun 2024 13:14:15 +0200 Subject: [PATCH 76/82] Hide banner --- src/components/DynamicObject/ObjectArea/ObjectArea.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/DynamicObject/ObjectArea/ObjectArea.tsx b/src/components/DynamicObject/ObjectArea/ObjectArea.tsx index 69cdf3cd..6a573b37 100644 --- a/src/components/DynamicObject/ObjectArea/ObjectArea.tsx +++ b/src/components/DynamicObject/ObjectArea/ObjectArea.tsx @@ -1,5 +1,4 @@ -import { Heading, Notification, Text } from '@pzh-ui/components' -import { LayerGroup, Lightbulb } from '@pzh-ui/icons' +import { Heading, Text } from '@pzh-ui/components' import { useModulesModuleIdObjectWerkingsgebiedLatestLineageIdGet, @@ -67,7 +66,7 @@ const ObjectArea = ({ {!!data && ( <> - + {/* <> Tip! Gebruik het icoon{' '} - + */}
    Date: Wed, 12 Jun 2024 15:40:14 +0200 Subject: [PATCH 77/82] AB#19015 Disable module complete button and add tooltip --- .../ModuleCompleteCard/ModuleCompleteCard.tsx | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/components/Modules/ModuleCompleteCard/ModuleCompleteCard.tsx b/src/components/Modules/ModuleCompleteCard/ModuleCompleteCard.tsx index adac28a2..21f5da88 100644 --- a/src/components/Modules/ModuleCompleteCard/ModuleCompleteCard.tsx +++ b/src/components/Modules/ModuleCompleteCard/ModuleCompleteCard.tsx @@ -1,4 +1,5 @@ -import { Button, Text } from '@pzh-ui/components' +import { Button, Text, Tooltip } from '@pzh-ui/components' +import { CircleInfo } from '@pzh-ui/icons' import useModalStore from '@/store/modalStore' @@ -9,18 +10,28 @@ const ModuleCompleteCard = () => {
    - + Module afsluiten + Is er een besluit vastgesteld? Sluit dan de module af. - +
    + + + + +
    ) } From 04fa4f3a6e4df5f98da989f03e70172659a1a460 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Wed, 12 Jun 2024 16:55:36 +0200 Subject: [PATCH 78/82] Reset error boundary on route change --- src/App/App.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/App/App.tsx b/src/App/App.tsx index 188389e7..f10db348 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -3,7 +3,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { Suspense } from 'react' import { ErrorBoundary } from 'react-error-boundary' import { Helmet, HelmetProvider } from 'react-helmet-async' -import { useNavigate } from 'react-router-dom' +import { useLocation, useNavigate } from 'react-router-dom' import Axe from '@/Axe' import { LoaderContent } from '@/components/Loader' @@ -34,6 +34,8 @@ const queryClient = new QueryClient({ }) const App = () => { + const location = useLocation() + const navigate = useNavigate() globalRouter.navigate = navigate @@ -46,7 +48,7 @@ const App = () => {
    @@ -56,7 +58,9 @@ const App = () => { - + }> From 3de015369e476f0c48989cc5da33c473b09ae7bb Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Thu, 13 Jun 2024 11:27:35 +0200 Subject: [PATCH 79/82] Update General information modal --- package.json | 2 +- .../ObjectDefaultInfo/ObjectDefaultInfo.tsx | 96 +- .../ObjectPersonModal/ObjectPersonModal.tsx | 173 +- src/components/Modals/types.ts | 2 +- src/validation/objectGeneralInformation.ts | 54 + yarn.lock | 3039 +++++++++++------ 6 files changed, 2212 insertions(+), 1154 deletions(-) create mode 100644 src/validation/objectGeneralInformation.ts diff --git a/package.json b/package.json index 7810fed7..8add4759 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "dependencies": { "@headlessui/react": "^1.7.17", - "@pzh-ui/components": "^0.0.452", + "@pzh-ui/components": "^0.0.541", "@pzh-ui/config": "^0.0.56", "@pzh-ui/css": "^0.0.75", "@pzh-ui/icons": "^0.0.47", diff --git a/src/components/DynamicObject/ObjectDefaultInfo/ObjectDefaultInfo.tsx b/src/components/DynamicObject/ObjectDefaultInfo/ObjectDefaultInfo.tsx index ae65086f..78f8b5b2 100644 --- a/src/components/DynamicObject/ObjectDefaultInfo/ObjectDefaultInfo.tsx +++ b/src/components/DynamicObject/ObjectDefaultInfo/ObjectDefaultInfo.tsx @@ -1,22 +1,16 @@ - import { Heading, Text } from '@pzh-ui/components' -import { PenToSquare, Plus, Spinner } from '@pzh-ui/icons' -import { useMemo, useState } from 'react' +import { useMemo } from 'react' import { UserShort } from '@/api/fetchers.schemas' import { LoaderCard } from '@/components/Loader' import ObjectPersonModal from '@/components/Modals/ObjectModals/ObjectPersonModal' -import { ObjectPersonModalActions } from '@/components/Modals/ObjectModals/types' -import { Model, ModelPatchStaticType } from '@/config/objects/types' +import { Model } from '@/config/objects/types' import useObject from '@/hooks/useObject' import usePermissions from '@/hooks/usePermissions' import useModalStore from '@/store/modalStore' import { - getStaticDataFilterProperty, - getStaticDataFilterRoles, getStaticDataLabel, getStaticDataPropertyKey, - getStaticDataPropertyRequired, } from '@/utils/dynamicObject' interface ObjectDefaultInfoProps { @@ -28,72 +22,49 @@ const ObjectDefaultInfo = ({ model }: ObjectDefaultInfoProps) => { const setActiveModal = useModalStore(state => state.setActiveModal) - const [modal, setModal] = useState({ - initialValues: {} as ModelPatchStaticType, - }) - const { staticData } = model const { data: object, isLoading, isOwner, isClient } = useObject() const data = useMemo(() => object?.ObjectStatics, [object?.ObjectStatics]) - /** - * Handle item click - */ - const handleClick = (person: ObjectPersonModalActions['person']) => { - setModal({ - ...modal, - person, - }) - setActiveModal('objectPerson') - } - if (!!!staticData?.length) return null return ( <>
    - - Algemene informatie - +
    + + Algemene informatie + + {(canPatchObjectInModule && (isOwner || isClient)) || + (canCreateModule && ( + + ))} +
    {staticData.map(item => { const label = getStaticDataLabel(item) const key = getStaticDataPropertyKey(item) - const required = getStaticDataPropertyRequired(item) - const filterProperty = getStaticDataFilterProperty(item) - const filterRoles = getStaticDataFilterRoles(item) const user = data?.[key] - const filter = - filterProperty && data?.[filterProperty]?.UUID - return ( - handleClick({ - key: item, - label, - value: user, - required, - filter, - filterRoles, - }) - } isLoading={isLoading} - canEdit={ - (canPatchObjectInModule && (isOwner || isClient)) || - canCreateModule - } /> ) })}
    - + ) } @@ -101,12 +72,10 @@ const ObjectDefaultInfo = ({ model }: ObjectDefaultInfoProps) => { interface ItemProps { label: string user?: UserShort - handleClick: () => void isLoading?: boolean - canEdit?: boolean } -const Item = ({ label, user, handleClick, isLoading, canEdit }: ItemProps) => ( +const Item = ({ label, user, isLoading }: ItemProps) => (
    {label}
    @@ -119,33 +88,6 @@ const Item = ({ label, user, handleClick, isLoading, canEdit }: ItemProps) => (
    )} - {canEdit && - (isLoading ? ( - - ) : !user ? ( - - ) : ( - - ))}
    ) diff --git a/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx b/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx index ac5622b3..6c6c706d 100644 --- a/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx +++ b/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx @@ -1,50 +1,63 @@ import { Button, FormikSelect } from '@pzh-ui/components' import { Form, Formik } from 'formik' -import { useMemo } from 'react' +import { useCallback, useMemo } from 'react' import { useParams } from 'react-router-dom' +import { toFormikValidationSchema } from 'zod-formik-adapter' import { useUsersGet } from '@/api/fetchers' import Modal from '@/components/Modal' -import { ModelPatchStaticType } from '@/config/objects/types' +import { Model, ModelPatchStaticType } from '@/config/objects/types' +import { Role } from '@/context/AuthContext' import useObject from '@/hooks/useObject' import useModalStore from '@/store/modalStore' +import { + getStaticDataFilterRoles, + getStaticDataLabel, + getStaticDataPropertyKey, + getStaticDataPropertyRequired, +} from '@/utils/dynamicObject' +import { SCHEMA_GENERAL_INFORMATION } from '@/validation/objectGeneralInformation' -import { ObjectPersonModalActions } from '../types' +interface ObjectPersonModalProps { + model: Model +} -const ObjectPersonModal = ({ person, isEdit }: ObjectPersonModalActions) => { +const ObjectPersonModal = ({ model }: ObjectPersonModalProps) => { const { objectId } = useParams() const activeModal = useModalStore(state => state.activeModal) const setActiveModal = useModalStore(state => state.setActiveModal) + const { staticData } = model + + const { data: object } = useObject() + const data = useMemo(() => object?.ObjectStatics, [object?.ObjectStatics]) + const { data: users, isFetching, isLoading: loadingUsers, } = useUsersGet( { limit: 500 }, - { query: { enabled: activeModal === 'objectPerson' } } + { query: { enabled: activeModal === 'objectGeneralInformation' } } ) /** * Format user options */ - const userOptions = useMemo( - () => + const getUserOptions = useCallback( + (filterRoles?: Role[]) => users?.results - ?.filter(user => user.UUID !== person?.filter) - ?.filter(user => person?.filterRoles?.includes(user.Rol)) + ?.filter(user => filterRoles?.includes(user.Rol)) ?.map(user => ({ label: user.Gebruikersnaam, value: user.UUID, })), - [users, person?.filter, person?.filterRoles] + [users] ) const { usePostObjectStatic } = useObject() - const { mutate, isPending } = usePostObjectStatic(() => - setActiveModal(null) - ) + const { mutate } = usePostObjectStatic(() => setActiveModal(null)) /** * Update person @@ -53,60 +66,94 @@ const ObjectPersonModal = ({ person, isEdit }: ObjectPersonModalActions) => { mutate({ lineageId: parseInt(objectId!), data: payload }) } + if (!!!staticData?.length) return null + + const initialValues = staticData.reduce( + (acc: ModelPatchStaticType, item) => { + const key = getStaticDataPropertyKey(item) + const user = data?.[key] + + acc[item] = user?.UUID + + return acc + }, + {} + ) + return ( - + -
    - ({ - ...base, - position: 'relative', - zIndex: 9999, - marginTop: 2, - boxShadow: '0px 10px 30px rgba(0, 0, 0, 0.10)', - }), - }} - noOptionsMessage={({ inputValue }) => - !!inputValue && 'Geen resultaten gevonden' - } - isClearable={!person?.required} - required={person?.required} - blurInputOnSelect - /> - -
    - - -
    - + {({ isValid, isSubmitting }) => ( +
    +
    + {staticData.map(item => { + const label = getStaticDataLabel(item) + const required = + getStaticDataPropertyRequired(item) + const filterRoles = + getStaticDataFilterRoles(item) + + const userOptions = getUserOptions(filterRoles) + + return ( +
    + ({ + ...base, + position: 'relative', + zIndex: 9999, + marginTop: 2, + boxShadow: + '0px 10px 30px rgba(0, 0, 0, 0.10)', + }), + }} + noOptionsMessage={({ + inputValue, + }) => + !!inputValue && + 'Geen resultaten gevonden' + } + isClearable={!required} + required={required} + blurInputOnSelect + /> +
    + ) + })} +
    + +
    + + +
    + + )}
    ) diff --git a/src/components/Modals/types.ts b/src/components/Modals/types.ts index 918e2f76..8cad09f3 100644 --- a/src/components/Modals/types.ts +++ b/src/components/Modals/types.ts @@ -15,7 +15,7 @@ export type ModalType = | 'objectDetails' | 'objectAddConnection' | 'objectDelete' - | 'objectPerson' + | 'objectGeneralInformation' | 'objectRelationAdd' | 'objectRelationApproved' | 'objectRelationReceived' diff --git a/src/validation/objectGeneralInformation.ts b/src/validation/objectGeneralInformation.ts new file mode 100644 index 00000000..f3f71438 --- /dev/null +++ b/src/validation/objectGeneralInformation.ts @@ -0,0 +1,54 @@ +import { object } from 'zod' + +import { schemaDefaults } from '@/validation/zodSchema' + +export const SCHEMA_GENERAL_INFORMATION = object({ + Client_1_UUID: schemaDefaults.optionalString, + Owner_1_UUID: schemaDefaults.requiredString(), + Owner_2_UUID: schemaDefaults.optionalString, + Portfolio_Holder_1_UUID: schemaDefaults.optionalString, + Portfolio_Holder_2_UUID: schemaDefaults.optionalString, +}).superRefine( + ( + { + Owner_1_UUID, + Owner_2_UUID, + Portfolio_Holder_1_UUID, + Portfolio_Holder_2_UUID, + }, + ctx + ) => { + console.log(Owner_1_UUID, Owner_2_UUID, ctx) + if (Owner_1_UUID === Owner_2_UUID) { + ctx.addIssue({ + code: 'custom', + message: + 'De eerste en tweede eigenaar mogen niet dezelfde persoon zijn', + path: ['Owner_1_UUID'], + }) + + ctx.addIssue({ + code: 'custom', + message: + 'De eerste en tweede eigenaar mogen niet dezelfde persoon zijn', + path: ['Owner_2_UUID'], + }) + } + + if (Portfolio_Holder_1_UUID === Portfolio_Holder_2_UUID) { + ctx.addIssue({ + code: 'custom', + message: + 'De eerste en tweede portefeuillehouder mogen niet dezelfde persoon zijn', + path: ['Portfolio_Holder_1_UUID'], + }) + + ctx.addIssue({ + code: 'custom', + message: + 'De eerste en tweede portefeuillehouder mogen niet dezelfde persoon zijn', + path: ['Portfolio_Holder_2_UUID'], + }) + } + } +) diff --git a/yarn.lock b/yarn.lock index 1bb34ecb..87860a2e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,6 +19,13 @@ __metadata: languageName: node linkType: hard +"@adobe/css-tools@npm:^4.4.0": + version: 4.4.0 + resolution: "@adobe/css-tools@npm:4.4.0" + checksum: 9c6315fe9efa5075d6ddb6ded7a1424bc9c41a01f2314b6bdcc368723985fe161008d03ddcc2b27b2da50cb9c14190fbce965d15cefe5f9a31bdd43f35b52115 + languageName: node + linkType: hard + "@alloc/quick-lru@npm:^5.2.0": version: 5.2.0 resolution: "@alloc/quick-lru@npm:5.2.0" @@ -1513,6 +1520,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.13.10, @babel/runtime@npm:^7.24.1": + version: 7.24.7 + resolution: "@babel/runtime@npm:7.24.7" + dependencies: + regenerator-runtime: "npm:^0.14.0" + checksum: 7b77f566165dee62db3db0296e71d08cafda3f34e1b0dcefcd68427272e17c1704f4e4369bff76651b07b6e49d3ea5a0ce344818af9116e9292e4381e0918c76 + languageName: node + linkType: hard + "@babel/template@npm:^7.22.15": version: 7.22.15 resolution: "@babel/template@npm:7.22.15" @@ -1921,6 +1937,15 @@ __metadata: languageName: node linkType: hard +"@floating-ui/core@npm:^1.0.0": + version: 1.6.2 + resolution: "@floating-ui/core@npm:1.6.2" + dependencies: + "@floating-ui/utils": "npm:^0.2.0" + checksum: 5c940ef3d397aa23f859ecb033bda408dde20820af3f82090a889c35a99826cfaa7864e8131b9906a26b2c04f31fa468538a28d0715b34de541e0776e0f82d03 + languageName: node + linkType: hard + "@floating-ui/core@npm:^1.5.3": version: 1.5.3 resolution: "@floating-ui/core@npm:1.5.3" @@ -1930,6 +1955,16 @@ __metadata: languageName: node linkType: hard +"@floating-ui/dom@npm:^1.0.0": + version: 1.6.5 + resolution: "@floating-ui/dom@npm:1.6.5" + dependencies: + "@floating-ui/core": "npm:^1.0.0" + "@floating-ui/utils": "npm:^0.2.0" + checksum: d421e7f239e9af5a2a4c7a560c29b8ce1f29398c411c8e3bd0c33a2ce800e13a378749a1606e4f6b460830f4007c459792534821013262d24d1385476b1ba48d + languageName: node + linkType: hard + "@floating-ui/dom@npm:^1.0.1, @floating-ui/dom@npm:^1.5.4": version: 1.5.4 resolution: "@floating-ui/dom@npm:1.5.4" @@ -1952,6 +1987,18 @@ __metadata: languageName: node linkType: hard +"@floating-ui/react-dom@npm:^2.1.0": + version: 2.1.0 + resolution: "@floating-ui/react-dom@npm:2.1.0" + dependencies: + "@floating-ui/dom": "npm:^1.0.0" + peerDependencies: + react: ">=16.8.0" + react-dom: ">=16.8.0" + checksum: 15be0714379c271ff01347e7c9bcdba96d6b39f3960697380e23de9b9d59fb91ba07bc75b8bdb12d72da7a9272191a9ce73f843a0d5f89939caa9f3137acd8ec + languageName: node + linkType: hard + "@floating-ui/react@npm:^0.24.8": version: 0.24.8 resolution: "@floating-ui/react@npm:0.24.8" @@ -1966,6 +2013,20 @@ __metadata: languageName: node linkType: hard +"@floating-ui/react@npm:^0.26.2": + version: 0.26.17 + resolution: "@floating-ui/react@npm:0.26.17" + dependencies: + "@floating-ui/react-dom": "npm:^2.1.0" + "@floating-ui/utils": "npm:^0.2.0" + tabbable: "npm:^6.0.0" + peerDependencies: + react: ">=16.8.0" + react-dom: ">=16.8.0" + checksum: bceabe5a2f515fffaae85b4f652cc3ab8f9066ae09e8d094308932321454340465fa3b2605a0a38a2e999f31e4edf3ed5b741c4656a9a7996b5fb7ad732a5da2 + languageName: node + linkType: hard + "@floating-ui/utils@npm:^0.2.0": version: 0.2.1 resolution: "@floating-ui/utils@npm:0.2.1" @@ -2092,40 +2153,40 @@ __metadata: languageName: node linkType: hard -"@internationalized/date@npm:^3.5.1": - version: 3.5.1 - resolution: "@internationalized/date@npm:3.5.1" +"@internationalized/date@npm:^3.5.4": + version: 3.5.4 + resolution: "@internationalized/date@npm:3.5.4" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: 38bce4ca2123dc4a3a7ef62ea44a86e0619764d42c3895ae5f0c4f17e7320dc945d61691dd0bc0f4dff6cda834113d1fe55253afebf4a46bf21e7b0e9f890096 + checksum: 0e38a3be70fbbbce291ec5a977fadb5f3a7dc2ca9a921494bd892e9ff6c8bba9cd44cd8767e5f50cf2d7e422ab2d5323da2eb7595142d8b487c83500ab135abe languageName: node linkType: hard -"@internationalized/message@npm:^3.1.1": - version: 3.1.1 - resolution: "@internationalized/message@npm:3.1.1" +"@internationalized/message@npm:^3.1.4": + version: 3.1.4 + resolution: "@internationalized/message@npm:3.1.4" dependencies: "@swc/helpers": "npm:^0.5.0" intl-messageformat: "npm:^10.1.0" - checksum: b73b443e75ab1d95e0d406a75107b1899d221883463de95769f3d63836bf91e7ac1ce07bd141121b9ccb89ff24d469aa424ba47e85b02dc8a8e0827b991bf801 + checksum: 1b895871cbf81cab360046aca07d7d1433aed5f8904abed03fb5e581516403c7b9b075a0e497d1095368329a5980e0ff38a14103b6d9fdb0621fbeeded8b71aa languageName: node linkType: hard -"@internationalized/number@npm:^3.5.0": - version: 3.5.0 - resolution: "@internationalized/number@npm:3.5.0" +"@internationalized/number@npm:^3.5.3": + version: 3.5.3 + resolution: "@internationalized/number@npm:3.5.3" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: 8272b5da8afd4e1379767765f9ef24283e7ccb7c077646ded17fe7de11d72d2fd8f6e41f4ea21f101d084133f670059f062c3929ff18cf171f8f768151502bf5 + checksum: 2b154a82f1150224ce0ae0e97a87e3eff5c60111342a89f0360d3146f8ca3b482b704d25d370a7233e4ff21eeb62cff8fb6e9594dc79984d05459f03a0d348f7 languageName: node linkType: hard -"@internationalized/string@npm:^3.2.0": - version: 3.2.0 - resolution: "@internationalized/string@npm:3.2.0" +"@internationalized/string@npm:^3.2.3": + version: 3.2.3 + resolution: "@internationalized/string@npm:3.2.3" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: ebe3cf9394baa5cc134eb6956f57785ddaaae79e9f66400783a0560541747fef170a59fd05923dc0c41e3f860343cc1175b3435412a616570d3247199f10c0e0 + checksum: d7ff86646e8cd10696fadd43f59eae767b7bcced652ecc70afaddcea396d6cebc34f8e08af274a32324a923f9a88f1ecf477b1cd2a64954fed8bc1111808f0d7 languageName: node linkType: hard @@ -2479,17 +2540,20 @@ __metadata: languageName: node linkType: hard -"@pzh-ui/components@npm:^0.0.452": - version: 0.0.452 - resolution: "@pzh-ui/components@npm:0.0.452" +"@pzh-ui/components@npm:^0.0.541": + version: 0.0.541 + resolution: "@pzh-ui/components@npm:0.0.541" dependencies: "@floating-ui/react": "npm:^0.24.8" "@headlessui/react": "npm:^1.5.0" - "@pzh-ui/icons": "npm:^0.0.47" - "@react-aria/utils": "npm:^3.19.0" - "@react-hookz/web": "npm:^23.1.0" + "@pzh-ui/icons": "npm:^0.0.60" + "@radix-ui/react-accordion": "npm:^1.1.2" + "@radix-ui/react-slot": "npm:^1.0.2" + "@react-aria/utils": "npm:^3.23.2" + "@react-hookz/web": "npm:^24.0.4" "@react-types/shared": "npm:^3.19.0" - "@tanstack/react-table": "npm:^8.9.9" + "@storybook/test": "npm:^8.1.1" + "@tanstack/react-table": "npm:^8.13.2" "@tiptap/core": "npm:^2.1.7" "@tiptap/extension-bold": "npm:^2.1.7" "@tiptap/extension-bullet-list": "npm:^2.1.7" @@ -2516,22 +2580,21 @@ __metadata: "@tiptap/pm": "npm:^2.0.3" "@tiptap/react": "npm:^2.0.3" "@types/react-table": "npm:^7.7.15" - classnames: "npm:^2.3.2" - date-fns: "npm:^2.30.0" - focus-trap-react: "npm:^10.1.1" - formik: "npm:^2.4.2" - react: "npm:^18.2.0" - react-aria: "npm:^3.26.0" - react-datepicker: "npm:^4.16.0" - react-dom: "npm:^18.2.0" - react-dropzone: "npm:^14.2.3" - react-paginate: "npm:^8.2.0" - react-router-dom: "npm:^6.14.2" - react-select: "npm:^5.7.3" - react-stately: "npm:^3.18.0" - react-table: "npm:^7.8.0" + clsx: "npm:^2.1.0" + date-fns: "npm:^3.3.1" + formik: "npm:^2.4.6" + react: "npm:^18.3.1" + react-aria: "npm:^3.32.1" + react-aria-components: "npm:^1.1.1" + react-datepicker: "npm:^6.9.0" + react-dom: "npm:^18.3.1" + react-dropzone-esm: "npm:^15.0.1" + react-responsive-pagination: "npm:^2.4.2" + react-select: "npm:^5.8.0" + react-stately: "npm:^3.30.1" react-toastify: "npm:^9.1.2" - checksum: 63dcd0d4e425dee788102bec43f5d4899843fe81c0961d8d0f9e238e23cce738868e152a42491f03f91a61b1b2dccbe0fee9740b29a815f692cc02eb64d4f7dc + tailwind-merge: "npm:^2.2.2" + checksum: 7834bafa7ab9d27cfbea017177b117f3cf777c57cf42bc3679ce686f5a61f2a6834d7e9d7f9b936724fa81f8b16a9c29565dde1b5d7ca608e68e363642523ab9 languageName: node linkType: hard @@ -2588,736 +2651,1058 @@ __metadata: languageName: node linkType: hard -"@react-aria/breadcrumbs@npm:^3.5.9": - version: 3.5.9 - resolution: "@react-aria/breadcrumbs@npm:3.5.9" +"@pzh-ui/icons@npm:^0.0.60": + version: 0.0.60 + resolution: "@pzh-ui/icons@npm:0.0.60" + dependencies: + react: "npm:^18.2.0" + react-toastify: "npm:^9.1.2" + checksum: 46c2c4e9072d33a71a91b6e97c193dbce6689060ac92d334f4e3bb3eba56c68ed7ba5af208f0577ee6e942d10032c2dbb47d5fd437148bf61ac2f664294244ff + languageName: node + linkType: hard + +"@radix-ui/primitive@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/primitive@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + checksum: 2b93e161d3fdabe9a64919def7fa3ceaecf2848341e9211520c401181c9eaebb8451c630b066fad2256e5c639c95edc41de0ba59c40eff37e799918d019822d1 + languageName: node + linkType: hard + +"@radix-ui/react-accordion@npm:^1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-accordion@npm:1.1.2" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/primitive": "npm:1.0.1" + "@radix-ui/react-collapsible": "npm:1.0.3" + "@radix-ui/react-collection": "npm:1.0.3" + "@radix-ui/react-compose-refs": "npm:1.0.1" + "@radix-ui/react-context": "npm:1.0.1" + "@radix-ui/react-direction": "npm:1.0.1" + "@radix-ui/react-id": "npm:1.0.1" + "@radix-ui/react-primitive": "npm:1.0.3" + "@radix-ui/react-use-controllable-state": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 3c2b8fc686b3c6bc6f81e567c1d3933b8ffb35c060eeee113237ee69121b5e4d7c48bb354dbd2626bd101c1f6a1b6612e8cde2de8f72519732fb6c1a1d4cac28 + languageName: node + linkType: hard + +"@radix-ui/react-collapsible@npm:1.0.3": + version: 1.0.3 + resolution: "@radix-ui/react-collapsible@npm:1.0.3" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/primitive": "npm:1.0.1" + "@radix-ui/react-compose-refs": "npm:1.0.1" + "@radix-ui/react-context": "npm:1.0.1" + "@radix-ui/react-id": "npm:1.0.1" + "@radix-ui/react-presence": "npm:1.0.1" + "@radix-ui/react-primitive": "npm:1.0.3" + "@radix-ui/react-use-controllable-state": "npm:1.0.1" + "@radix-ui/react-use-layout-effect": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: e9c90f9c9f4bcf8beac7d57cf09d5bf3eb99f868b17bd53025b7c81ffcf500efbba9cd92d137661efd7d191f29609e986e3b0577b11a6000e6b513e4403ebb09 + languageName: node + linkType: hard + +"@radix-ui/react-collection@npm:1.0.3": + version: 1.0.3 + resolution: "@radix-ui/react-collection@npm:1.0.3" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-compose-refs": "npm:1.0.1" + "@radix-ui/react-context": "npm:1.0.1" + "@radix-ui/react-primitive": "npm:1.0.3" + "@radix-ui/react-slot": "npm:1.0.2" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 2ac740ab746f411942dc95100f1eb60b9a3670960a805e266533fa1bc7dec31a6dabddd746ab788ebd5a9c22b468e38922f39d30447925515f8e44f0a3b2e56c + languageName: node + linkType: hard + +"@radix-ui/react-compose-refs@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-compose-refs@npm:1.0.1" dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/link": "npm:^3.6.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/breadcrumbs": "npm:^3.7.2" - "@react-types/shared": "npm:^3.22.0" + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 2b9a613b6db5bff8865588b6bf4065f73021b3d16c0a90b2d4c23deceeb63612f1f15de188227ebdc5f88222cab031be617a9dd025874c0487b303be3e5cc2a8 + languageName: node + linkType: hard + +"@radix-ui/react-context@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-context@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: a02187a3bae3a0f1be5fab5ad19c1ef06ceff1028d957e4d9994f0186f594a9c3d93ee34bacb86d1fa8eb274493362944398e1c17054d12cb3b75384f9ae564b + languageName: node + linkType: hard + +"@radix-ui/react-direction@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-direction@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 5336a8b0d4f1cde585d5c2b4448af7b3d948bb63a1aadb37c77771b0e5902dc6266e409cf35fd0edaca7f33e26424be19e64fb8f9d7f7be2d6f1714ea2764210 + languageName: node + linkType: hard + +"@radix-ui/react-id@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-id@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-use-layout-effect": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 446a453d799cc790dd2a1583ff8328da88271bff64530b5a17c102fa7fb35eece3cf8985359d416f65e330cd81aa7b8fe984ea125fc4f4eaf4b3801d698e49fe + languageName: node + linkType: hard + +"@radix-ui/react-presence@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-presence@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-compose-refs": "npm:1.0.1" + "@radix-ui/react-use-layout-effect": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 406f0b5a54ea4e7881e15bddc3863234bb14bf3abd4a6e56ea57c6df6f9265a9ad5cfa158e3a98614f0dcbbb7c5f537e1f7158346e57cc3f29b522d62cf28823 + languageName: node + linkType: hard + +"@radix-ui/react-primitive@npm:1.0.3": + version: 1.0.3 + resolution: "@radix-ui/react-primitive@npm:1.0.3" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-slot": "npm:1.0.2" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: bedb934ac07c710dc5550a7bfc7065d47e099d958cde1d37e4b1947ae5451f1b7e6f8ff5965e242578bf2c619065e6038c3a3aa779e5eafa7da3e3dbc685799f + languageName: node + linkType: hard + +"@radix-ui/react-slot@npm:1.0.2, @radix-ui/react-slot@npm:^1.0.2": + version: 1.0.2 + resolution: "@radix-ui/react-slot@npm:1.0.2" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-compose-refs": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 734866561e991438fbcf22af06e56b272ed6ee8f7b536489ee3bf2f736f8b53bf6bc14ebde94834aa0aceda854d018a0ce20bb171defffbaed1f566006cbb887 + languageName: node + linkType: hard + +"@radix-ui/react-use-callback-ref@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-use-callback-ref@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: b9fd39911c3644bbda14a84e4fca080682bef84212b8d8931fcaa2d2814465de242c4cfd8d7afb3020646bead9c5e539d478cea0a7031bee8a8a3bb164f3bc4c + languageName: node + linkType: hard + +"@radix-ui/react-use-controllable-state@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-use-controllable-state@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + "@radix-ui/react-use-callback-ref": "npm:1.0.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: dee2be1937d293c3a492cb6d279fc11495a8f19dc595cdbfe24b434e917302f9ac91db24e8cc5af9a065f3f209c3423115b5442e65a5be9fd1e9091338972be9 + languageName: node + linkType: hard + +"@radix-ui/react-use-layout-effect@npm:1.0.1": + version: 1.0.1 + resolution: "@radix-ui/react-use-layout-effect@npm:1.0.1" + dependencies: + "@babel/runtime": "npm:^7.13.10" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: bed9c7e8de243a5ec3b93bb6a5860950b0dba359b6680c84d57c7a655e123dec9b5891c5dfe81ab970652e7779fe2ad102a23177c7896dde95f7340817d47ae5 + languageName: node + linkType: hard + +"@react-aria/breadcrumbs@npm:^3.5.13": + version: 3.5.13 + resolution: "@react-aria/breadcrumbs@npm:3.5.13" + dependencies: + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/link": "npm:^3.7.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/breadcrumbs": "npm:^3.7.5" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 28be0194f434c79c3414d9e549cc51c38ff8b84794508a0abc0211752e828c53b69b53b6b23d7566797c7e303724616e0c0e4e7d00cd9b33206ccc685eac6f01 + checksum: 9bb2797fcfca7706aa391bbdef6a5775baa18b5e28d9545e4ac2723517c2e7b9f620d0c0ef833bfb4b04f7257a00dcd20573aeb8ca4dc15af5e382377b9c5e83 languageName: node linkType: hard -"@react-aria/button@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-aria/button@npm:3.9.1" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/button@npm:^3.9.5": + version: 3.9.5 + resolution: "@react-aria/button@npm:3.9.5" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/toggle": "npm:^3.7.4" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 15739bb1e09d7999c0fe58545a1f514a999553dfdda336a45e1c51a4e9fc928f83683a7dd142420f5e3f225c248a62b98d9367ab0144269db190cb3b1c435898 + checksum: 044eace71b00039336d5282481f38476da662d243404ef35ea5648641a297f65141e889b982d4b59c3e1f34bf1b9e422da0c04310eac1b86df51ff5774365a77 languageName: node linkType: hard -"@react-aria/calendar@npm:^3.5.4": - version: 3.5.4 - resolution: "@react-aria/calendar@npm:3.5.4" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/calendar": "npm:^3.4.3" - "@react-types/button": "npm:^3.9.1" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/calendar@npm:^3.5.8": + version: 3.5.8 + resolution: "@react-aria/calendar@npm:3.5.8" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/calendar": "npm:^3.5.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/calendar": "npm:^3.4.6" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9f192ed7ee613ca9c15ba4bc36b3a01a525424341b1edb454d7fe5b941be9159852467714275e993e8dc82b9621db858983596aee8a77bbaf23da6a4c717703e + checksum: af8365cda1e6afaa527df4a9872ce4c1e2702b49e8375f0fe2610d5e9c67dee068df949aa5a5f2d0060b5f505258e8c17a521fc22dbb20bf2b6bf30d8d6d1723 languageName: node linkType: hard -"@react-aria/checkbox@npm:^3.13.0": - version: 3.13.0 - resolution: "@react-aria/checkbox@npm:3.13.0" +"@react-aria/checkbox@npm:^3.14.3": + version: 3.14.3 + resolution: "@react-aria/checkbox@npm:3.14.3" dependencies: - "@react-aria/form": "npm:^3.0.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/toggle": "npm:^3.10.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/checkbox": "npm:^3.6.1" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/form": "npm:^3.0.5" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/toggle": "npm:^3.10.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/checkbox": "npm:^3.6.5" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/toggle": "npm:^3.7.4" + "@react-types/checkbox": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 208e8b095710f5140654f2a0bac14ae046e7a44ddca1200fe4fc6ddf09af95189446c6e2fc0f72d5de34098ea39e5b653c5830350eae2db577de69ea2c52caee - languageName: node - linkType: hard - -"@react-aria/combobox@npm:^3.8.2": - version: 3.8.2 - resolution: "@react-aria/combobox@npm:3.8.2" - dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/listbox": "npm:^3.11.3" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/menu": "npm:^3.12.0" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/combobox": "npm:^3.8.1" - "@react-stately/form": "npm:^3.0.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/combobox": "npm:^3.10.0" - "@react-types/shared": "npm:^3.22.0" + checksum: 4484a177f95d1d20872592ec6edf06413517e08d8b0a406bb7b4ff697d24ea3098159b100607c73a84833e5c32b22a7d511d1008bec7543cd2127de88563148d + languageName: node + linkType: hard + +"@react-aria/color@npm:3.0.0-beta.33": + version: 3.0.0-beta.33 + resolution: "@react-aria/color@npm:3.0.0-beta.33" + dependencies: + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/numberfield": "npm:^3.11.3" + "@react-aria/slider": "npm:^3.7.8" + "@react-aria/spinbutton": "npm:^3.6.5" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-stately/color": "npm:^3.6.1" + "@react-stately/form": "npm:^3.0.3" + "@react-types/color": "npm:3.0.0-beta.25" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 2b3758d337af9d45cd929be2e38bd7c96e6ec8af377c8f3210d7bba89aec6cf4c8001e3f66261467f54509d586668aabd80b24bde7aa9f074a87ffb7a0ca0cf9 + checksum: 184e7521f6de7e740e8807535fe87c80fbaeb753263cce53504c98785599a945003c48b9a419ec69d9d1848558a7a048a06e22b5b626df64ff1ad62e4a29bc2a languageName: node linkType: hard -"@react-aria/datepicker@npm:^3.9.1": +"@react-aria/combobox@npm:^3.9.1": version: 3.9.1 - resolution: "@react-aria/datepicker@npm:3.9.1" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@internationalized/number": "npm:^3.5.0" - "@internationalized/string": "npm:^3.2.0" - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/form": "npm:^3.0.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/spinbutton": "npm:^3.6.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/datepicker": "npm:^3.9.1" - "@react-stately/form": "npm:^3.0.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/datepicker": "npm:^3.7.1" - "@react-types/dialog": "npm:^3.5.7" - "@react-types/shared": "npm:^3.22.0" + resolution: "@react-aria/combobox@npm:3.9.1" + dependencies: + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/listbox": "npm:^3.12.1" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/menu": "npm:^3.14.1" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/combobox": "npm:^3.8.4" + "@react-stately/form": "npm:^3.0.3" + "@react-types/button": "npm:^3.9.4" + "@react-types/combobox": "npm:^3.11.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 13c4e3dbcf358cddb34022fb58e0d6259f40a47bc36f790fba8cb0545d5cfc5b17652e18f6fe0857e764b446f8c53663b3b2160ea1722096e016918e2ceb5190 + checksum: a0ac563b353e2c72c2d0661bdd80a01a640bfe97bbae7294c4eecc34416cb027b5d6d8fefeed02adf3c3fb80bbbd95c02ddf107e9d0080522442a0b55ad807d0 languageName: node linkType: hard -"@react-aria/dialog@npm:^3.5.10": - version: 3.5.10 - resolution: "@react-aria/dialog@npm:3.5.10" +"@react-aria/datepicker@npm:^3.10.1": + version: 3.10.1 + resolution: "@react-aria/datepicker@npm:3.10.1" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@internationalized/number": "npm:^3.5.3" + "@internationalized/string": "npm:^3.2.3" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/form": "npm:^3.0.5" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/spinbutton": "npm:^3.6.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/datepicker": "npm:^3.9.4" + "@react-stately/form": "npm:^3.0.3" + "@react-types/button": "npm:^3.9.4" + "@react-types/calendar": "npm:^3.4.6" + "@react-types/datepicker": "npm:^3.7.4" + "@react-types/dialog": "npm:^3.5.10" + "@react-types/shared": "npm:^3.23.1" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 0e3c87063e839e24bb91ed0d852112c4872c9a580ec9f5986b5ea92bdfc787c1d9365390158bdc0a9cc8b6e76fac82be4bbefbbfa3035f789bf704f5d5de5cd7 + languageName: node + linkType: hard + +"@react-aria/dialog@npm:^3.5.14": + version: 3.5.14 + resolution: "@react-aria/dialog@npm:3.5.14" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/dialog": "npm:^3.5.7" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/dialog": "npm:^3.5.10" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f9a514a5fb36cf3bb1545f4d4d8162ec143e7d9c8f6e7f8c0510f3767639b16a24d43013909606067fe5a103cf11c80a772fa0b4902f28bb70b974d5144c0120 + checksum: daae893065fe73b1c02c02572fa146ffa13280a39b4fedbab5a9581952ff021728673dd35f1e64d03413e8ace43eeef55f62aeabcc17a7600f987788895b1416 languageName: node linkType: hard -"@react-aria/dnd@npm:^3.5.1": - version: 3.5.1 - resolution: "@react-aria/dnd@npm:3.5.1" - dependencies: - "@internationalized/string": "npm:^3.2.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/dnd": "npm:^3.2.7" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/dnd@npm:^3.6.1": + version: 3.6.1 + resolution: "@react-aria/dnd@npm:3.6.1" + dependencies: + "@internationalized/string": "npm:^3.2.3" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/dnd": "npm:^3.3.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 3d7fbb5388b55227d71c201edfa9c3d60fb8c65e6129d136d15f4120d8d07f7f9db61d5c0e749fc671c0727c211013cb369715d1018d970bcbb22bb09084ff0d + checksum: 53d44c58300f5a96d7e528c2df8cc454f9b3d558ff6e6aa2a878f68cae827321034753b2a27a717e2d8bc2888b02976697803da75a34677b541be5db7e6c61c6 languageName: node linkType: hard -"@react-aria/focus@npm:^3.16.0": - version: 3.16.0 - resolution: "@react-aria/focus@npm:3.16.0" +"@react-aria/focus@npm:^3.17.1": + version: 3.17.1 + resolution: "@react-aria/focus@npm:3.17.1" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" clsx: "npm:^2.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 1c01a56bf29e21b95f05f9e97ec8b4cb5ea4024702103e8222c36ef9e0ff62e67b5419cc9003c91f79a41420d1d26a17c7f126392372b6b441657b6c0a7c395e + checksum: 4c3c7b26c983c83119a5ff1595e339b8bf68dcb6ea4349dc3b6bb26af41bbae4be50df8a96b12beea9b9f700c4508addfa4fd4626e7955bce667ec7620693af8 languageName: node linkType: hard -"@react-aria/form@npm:^3.0.1": - version: 3.0.1 - resolution: "@react-aria/form@npm:3.0.1" +"@react-aria/form@npm:^3.0.5": + version: 3.0.5 + resolution: "@react-aria/form@npm:3.0.5" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/form": "npm:^3.0.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/form": "npm:^3.0.3" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: b3d8e1e0abba4acd107814157e14af8ebe0f5989326574b6a8bf132046f5b76678018b44ffd093393eba60aefb970673f76f549f6ed8aaec4cf9cc794b6b31f8 - languageName: node - linkType: hard - -"@react-aria/grid@npm:^3.8.6": - version: 3.8.6 - resolution: "@react-aria/grid@npm:3.8.6" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/grid": "npm:^3.8.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/virtualizer": "npm:^3.6.6" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" + checksum: f428113530658498b143670fa775feb2839ad259b90db957ecb8f7094523e1c3f7b2357f9b4f9b26639d14b9889137566fa8ca750e053bfffb1b837b666c1eb2 + languageName: node + linkType: hard + +"@react-aria/grid@npm:^3.9.1": + version: 3.9.1 + resolution: "@react-aria/grid@npm:3.9.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/grid": "npm:^3.8.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/virtualizer": "npm:^3.7.1" + "@react-types/checkbox": "npm:^3.8.1" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e0f5942c598551f6b50807217e61c8d2d2340abaa468df969409fd71a9e7c7d782b26fbd03a70a04e3396900b78f5b9cf356832f0008ed44a34a0d03c700dcc3 + checksum: b07dbd270ba829cca6631a8261798204ed31e6e0670e5d214f220a0dd66fa851e33729b2982aae0ab0dd5518e9ca1dfe88d8abc6051fc98e21b0d356de314e79 languageName: node linkType: hard -"@react-aria/gridlist@npm:^3.7.3": - version: 3.7.3 - resolution: "@react-aria/gridlist@npm:3.7.3" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/grid": "npm:^3.8.6" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/list": "npm:^3.10.2" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/gridlist@npm:^3.8.1": + version: 3.8.1 + resolution: "@react-aria/gridlist@npm:3.8.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/grid": "npm:^3.9.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/list": "npm:^3.10.5" + "@react-stately/tree": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ce1bb4764fcc100d3f22432f9651622b9e396f88c04c71e62ff6f428f97c503c8793ace2d52145ff22501d3c2486e11a35cf7726a57bb02ab863804e7ecd4d44 + checksum: a345b3d6819c1ce1b7fe8b0cce48230c73e83e7491d402c9df11bbd5d05106ba4700b823283e05608bec24e4dd8200324b6af839355eacff92058167dd926174 languageName: node linkType: hard -"@react-aria/i18n@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-aria/i18n@npm:3.10.0" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@internationalized/message": "npm:^3.1.1" - "@internationalized/number": "npm:^3.5.0" - "@internationalized/string": "npm:^3.2.0" - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/i18n@npm:^3.11.1": + version: 3.11.1 + resolution: "@react-aria/i18n@npm:3.11.1" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@internationalized/message": "npm:^3.1.4" + "@internationalized/number": "npm:^3.5.3" + "@internationalized/string": "npm:^3.2.3" + "@react-aria/ssr": "npm:^3.9.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 911ea23df89d303ef2a25fffec8d9d272dc9949bf76615b8219e3484178de19cf6aa77d05ac67de6fa1d40e7adde9c029bea3cdcee20ce7099f83899c4eea966 + checksum: b193d4b7382343c2d15510fa490c3c2f6d10f43cb8f43b29f5313a3144221e2849e93cc1d94c56c9590f398739f8bad826cc1299f23aea0ef4e974feb71d9dfa languageName: node linkType: hard -"@react-aria/interactions@npm:^3.20.1": - version: 3.20.1 - resolution: "@react-aria/interactions@npm:3.20.1" +"@react-aria/interactions@npm:^3.21.3": + version: 3.21.3 + resolution: "@react-aria/interactions@npm:3.21.3" dependencies: - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/ssr": "npm:^3.9.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 17fbbab6bfb0e0860fa0250ba644b1e6aaf23023e143a7f9f816c37d164813f858be592644cc89f06f6a1baa9dffdfa8bd5a2db12246f0837dce4a9169217932 + checksum: 84fe368a40631f02fb9b9fcc103820a7659132b74a029a3bac3939f4a8bee05c9fe1f023f2d170760adaf3cc110793c6b8db396f016bab740922ffc823f99833 languageName: node linkType: hard -"@react-aria/label@npm:^3.7.4": - version: 3.7.4 - resolution: "@react-aria/label@npm:3.7.4" +"@react-aria/label@npm:^3.7.8": + version: 3.7.8 + resolution: "@react-aria/label@npm:3.7.8" dependencies: - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 30c14e5e985d671e49a162392e890b9d86c1fcc7758d6c80196158209fe62ee4a48392a496940e18065a6682a5271e02d68ec4afc8c3a553f624fda8338806a2 + checksum: 7bbbc8afe2947dcb427734b7ddc482e8e3c6df6963e5be95744942e44fcba209c87b23cc87fff753e3ff872f2796afeb35901ac48a3c89a5d6e40f41160820f0 languageName: node linkType: hard -"@react-aria/link@npm:^3.6.3": - version: 3.6.3 - resolution: "@react-aria/link@npm:3.6.3" +"@react-aria/link@npm:^3.7.1": + version: 3.7.1 + resolution: "@react-aria/link@npm:3.7.1" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/link": "npm:^3.5.2" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/link": "npm:^3.5.5" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 647c85cdb07f7a4a7244a5fb6baf4d634a8031542a2336ef71dea9f733c52e95fdf59ef94cb556f29c68e07f4c14469f988c6b3200d15f565e205500b0ecf08b + checksum: 4cc2d1795308fa26728dc23863ed4863a3e70161fe8ac0f541e9a439fea54a6d3791a42ec2cf120968465ecd5f1e9ceffca3d81708604529ec4bf9b3d1a4cacf languageName: node linkType: hard -"@react-aria/listbox@npm:^3.11.3": - version: 3.11.3 - resolution: "@react-aria/listbox@npm:3.11.3" - dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/list": "npm:^3.10.2" - "@react-types/listbox": "npm:^3.4.6" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/listbox@npm:^3.12.1": + version: 3.12.1 + resolution: "@react-aria/listbox@npm:3.12.1" + dependencies: + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/list": "npm:^3.10.5" + "@react-types/listbox": "npm:^3.4.9" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7b79433489afcd20178529e43227b3a7d45157d0a0832bca5c7b8925d57fcfce2502b126a05eef73d1e2ca58386afc04d6dffc3e89acfffeecf0ba326d748c28 + checksum: 1c873b36737fccca63f19088d69f6132c8d90c16c7532200c1943e25f08f5e374a76572e590ba1b3840b96e7273bf37c761ca3985a066c2b61f6c142261b58d6 languageName: node linkType: hard -"@react-aria/live-announcer@npm:^3.3.1": - version: 3.3.1 - resolution: "@react-aria/live-announcer@npm:3.3.1" +"@react-aria/live-announcer@npm:^3.3.4": + version: 3.3.4 + resolution: "@react-aria/live-announcer@npm:3.3.4" dependencies: "@swc/helpers": "npm:^0.5.0" - checksum: ec87c553a49510197bf2d7eb9c654cf4116240fb276d76c3766d5d2f76e2c83ba99c30c79b620c6941c07997ad43ee9c10f793eaf9dcfafd41d8af42bf45bf4f - languageName: node - linkType: hard - -"@react-aria/menu@npm:^3.12.0": - version: 3.12.0 - resolution: "@react-aria/menu@npm:3.12.0" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/menu": "npm:^3.6.0" - "@react-stately/tree": "npm:^3.7.5" - "@react-types/button": "npm:^3.9.1" - "@react-types/menu": "npm:^3.9.6" - "@react-types/shared": "npm:^3.22.0" + checksum: 8cc5d07116c0c3f088fe727df83b7847bd62b35af25e9cbf2d5373b17cd3900a751235bf69ab12d480814a92faab992e3a9d43ed4eeb57491231ce8cb6f5e6e4 + languageName: node + linkType: hard + +"@react-aria/menu@npm:^3.14.1": + version: 3.14.1 + resolution: "@react-aria/menu@npm:3.14.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/menu": "npm:^3.7.1" + "@react-stately/tree": "npm:^3.8.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/menu": "npm:^3.9.9" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 574e4e5eaecd2267ddf7f5cc27af8f51d7a142f343db7cc1638edb7dabed8bc2ef39a72d0fdafb64f947af2b521523936b8bf644b3232e85c310c3def602931e + checksum: 75ba7461017de8358066a92fd7545c886dec6cf31ce7f42bf8e90228ab8c68e95747a7b6da428a3805f1a0d7fe1a4699d8891f8dae7afb6df4c036e5ab25b0a7 languageName: node linkType: hard -"@react-aria/meter@npm:^3.4.9": - version: 3.4.9 - resolution: "@react-aria/meter@npm:3.4.9" +"@react-aria/meter@npm:^3.4.13": + version: 3.4.13 + resolution: "@react-aria/meter@npm:3.4.13" dependencies: - "@react-aria/progress": "npm:^3.4.9" - "@react-types/meter": "npm:^3.3.6" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/progress": "npm:^3.4.13" + "@react-types/meter": "npm:^3.4.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 59f776b87a61a19d488cfb41f3f09a8a66e50c0342108ac5272bdff05eeade5b3c2f9aea79b1995b0d22b86413035fec6e36284dc6d1fde108c46cf1893ce046 + checksum: d25fb6cc18ae4001f9e4b877cb53a79a887cb00d1bd39004c641b00d8255eaac157c85ab3a11dfc2837ae0f9f376383236e9e57335360c5e4c3fe268d517eb6f languageName: node linkType: hard -"@react-aria/numberfield@npm:^3.10.2": - version: 3.10.2 - resolution: "@react-aria/numberfield@npm:3.10.2" - dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/spinbutton": "npm:^3.6.1" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/numberfield": "npm:^3.8.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/numberfield": "npm:^3.7.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/numberfield@npm:^3.11.3": + version: 3.11.3 + resolution: "@react-aria/numberfield@npm:3.11.3" + dependencies: + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/spinbutton": "npm:^3.6.5" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/numberfield": "npm:^3.9.3" + "@react-types/button": "npm:^3.9.4" + "@react-types/numberfield": "npm:^3.8.3" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 297a8f91f93ba7daf12648aa0c3bab61db1151a1a8f4ed79d990a046439747622811422df5583050c802e67e5dcde9a59b942b3f3b2cd5bb10dc13f818182427 + checksum: 36d192b6e4ae86e0ba8b5e194aea34392018d81ecd269c0d2343f4a8c7bdc00398e4822422b27b04763bf59e4b9de994688b9dad18677f20034917d32cb3e8ff languageName: node linkType: hard -"@react-aria/overlays@npm:^3.20.0": - version: 3.20.0 - resolution: "@react-aria/overlays@npm:3.20.0" +"@react-aria/overlays@npm:^3.22.1": + version: 3.22.1 + resolution: "@react-aria/overlays@npm:3.22.1" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/button": "npm:^3.9.1" - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/ssr": "npm:^3.9.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-stately/overlays": "npm:^3.6.7" + "@react-types/button": "npm:^3.9.4" + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9103beae43a92b13ef4745585aef2d03f6c690ec9d24bd66151ae4bfb101c08fdad7d09278ed19ac3c0068fd25c72080c58750d2e0c60aec20174f392c6bd4ef + checksum: 1bcddb0c9406fdf594f164f2a465461c9e44a3cb84ccb1e640e397778ba243b755bfc4501ff8476fbe756bc43fc1aded1d61b3e7d9cdd6d9937b92c42ca82f46 languageName: node linkType: hard -"@react-aria/progress@npm:^3.4.9": - version: 3.4.9 - resolution: "@react-aria/progress@npm:3.4.9" +"@react-aria/progress@npm:^3.4.13": + version: 3.4.13 + resolution: "@react-aria/progress@npm:3.4.13" dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/progress": "npm:^3.5.1" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/progress": "npm:^3.5.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 8ec633e71ed35189fc1d950cf5aa5cbe7830bcebb5a86d2cdfb785b8435602c8ec310956e8684e213ab2aee6cabd8940311bd3d0544db0028403ea6a76db32d9 + checksum: 84cebddc9068634f0dd3ed181eaf9be3c302b6883632171796cabacac78459f68f237ac8808428682707379d1acce5ac93f4d08a4157bbd56aa03220d7b450f0 languageName: node linkType: hard -"@react-aria/radio@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-aria/radio@npm:3.10.0" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/form": "npm:^3.0.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/radio": "npm:^3.10.1" - "@react-types/radio": "npm:^3.7.0" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/radio@npm:^3.10.4": + version: 3.10.4 + resolution: "@react-aria/radio@npm:3.10.4" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/form": "npm:^3.0.5" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/radio": "npm:^3.10.4" + "@react-types/radio": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e4078d95d20af82eb12029a10cd617eaa45f22c52913d0a1591a8cf48c76d7c3d9b81c9414bc53bf9eafb0a71125a93d575308063d9a20ff50171c50a5be7de5 + checksum: 5fa0d6a9858a84cfd4dce0f2d40a52dcd31fa507df489f83b5ef010f6f0de3df7f5bdb54897968f805c2da4e6121fef3f9031575f5bc80b836e9d1ce83dbeb45 languageName: node linkType: hard -"@react-aria/searchfield@npm:^3.7.1": - version: 3.7.1 - resolution: "@react-aria/searchfield@npm:3.7.1" - dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/searchfield": "npm:^3.5.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/searchfield": "npm:^3.5.2" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/searchfield@npm:^3.7.5": + version: 3.7.5 + resolution: "@react-aria/searchfield@npm:3.7.5" + dependencies: + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/searchfield": "npm:^3.5.3" + "@react-types/button": "npm:^3.9.4" + "@react-types/searchfield": "npm:^3.5.5" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f2b1183fbfa5c533391a7a29abe793b704d430ef57f8eb43a65a9967e5595959ebdb19967423b03c39174ed1d316e6666910a416534eb1b0bf4a4e70ee7d942a - languageName: node - linkType: hard - -"@react-aria/select@npm:^3.14.1": - version: 3.14.1 - resolution: "@react-aria/select@npm:3.14.1" - dependencies: - "@react-aria/form": "npm:^3.0.1" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/listbox": "npm:^3.11.3" - "@react-aria/menu": "npm:^3.12.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-stately/select": "npm:^3.6.1" - "@react-types/button": "npm:^3.9.1" - "@react-types/select": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" + checksum: f1aeccfe38d921da8f892e12ea26ed9d83dc8d015569b64d13817f2777da1aef8fa742ca7e73bc740019b9831d19b16ff5c4ad30aa51eb40b3b1323ce1e62a34 + languageName: node + linkType: hard + +"@react-aria/select@npm:^3.14.5": + version: 3.14.5 + resolution: "@react-aria/select@npm:3.14.5" + dependencies: + "@react-aria/form": "npm:^3.0.5" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/listbox": "npm:^3.12.1" + "@react-aria/menu": "npm:^3.14.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-stately/select": "npm:^3.6.4" + "@react-types/button": "npm:^3.9.4" + "@react-types/select": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4f2192b513e49a920fbc54343c734d855dda207a71fe31a84852d01a19aba4c4862f82e33c08ac814551938be709336b6546411a427b19972c5a628c1b831730 + checksum: 76af6d008d72702b12eb76ebd4e0ee59aa59c2e95dae7a35c8d96fe0e4b1fe56c84f6a4ae8696e99bfd5978fdc1681a524d14b70cf08e02dc74a6447fb29b724 languageName: node linkType: hard -"@react-aria/selection@npm:^3.17.3": - version: 3.17.3 - resolution: "@react-aria/selection@npm:3.17.3" +"@react-aria/selection@npm:^3.18.1": + version: 3.18.1 + resolution: "@react-aria/selection@npm:3.18.1" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/selection": "npm:^3.14.2" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/selection": "npm:^3.15.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9e15db4919fb483fb2303901133cc317d8c2b13cc990e864f7da4b4445388697edc2cb056189977af36f33d7f04237e1f30a717e9db924fcb6065a159c92d4b1 + checksum: 233ed769f9539b5e70cb0f8f81c269153386b3d6f2d15a60c331bcf9f4fc78aac2b608f539ef3772caffa8f44fd081eec46af0ec8e577633cb3c6e130509d060 languageName: node linkType: hard -"@react-aria/separator@npm:^3.3.9": - version: 3.3.9 - resolution: "@react-aria/separator@npm:3.3.9" +"@react-aria/separator@npm:^3.3.13": + version: 3.3.13 + resolution: "@react-aria/separator@npm:3.3.13" dependencies: - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 670c74708705e56daa6907f48bb7fe429cd4c7470dad4bb4555a4324c1755e429b93059112cc0919bf799adf452747983b216515f10ed54d3243ae348cdd154f + checksum: 2938cc88047f274d898d3ec9026b2a2aebbfe3a27fbb9cec7f4444596bab4708417fabfd5388181e511fa2ee814a8fed5099031af391f55f966080e48b20b435 languageName: node linkType: hard -"@react-aria/slider@npm:^3.7.4": - version: 3.7.4 - resolution: "@react-aria/slider@npm:3.7.4" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/slider": "npm:^3.5.0" - "@react-types/shared": "npm:^3.22.0" - "@react-types/slider": "npm:^3.7.0" +"@react-aria/slider@npm:^3.7.8": + version: 3.7.8 + resolution: "@react-aria/slider@npm:3.7.8" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/slider": "npm:^3.5.4" + "@react-types/shared": "npm:^3.23.1" + "@react-types/slider": "npm:^3.7.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 5ff6b579076ad88918463e06a8664ed94adfcb5a5d8ee24f9948d546b1ef255d1f0691f25947cc8308202b6ce216737cc277493d4e4cf70785d17b051707fb14 + checksum: aefa070af4241848be09cf66afef893a9279368692a1e505883a37d9630ab959b9ec65aad47e53a68cef627fe6dd25bb0f90c96d617c13bcc0006cf5a826d477 languageName: node linkType: hard -"@react-aria/spinbutton@npm:^3.6.1": - version: 3.6.1 - resolution: "@react-aria/spinbutton@npm:3.6.1" +"@react-aria/spinbutton@npm:^3.6.5": + version: 3.6.5 + resolution: "@react-aria/spinbutton@npm:3.6.5" dependencies: - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 64ecdc11d666220b9a08577d7d010e1898e7a0496d8d54b6d4454e208f2d8a4da54aa9d56c331e52893ebc83632de66188100f4204ea61ef501035d4cf0865a9 + checksum: 5567e91640ab71cdc621d91dacacaeef4ca9d1d3bd1a9f89402de2db0eb9adf1e7ec594a6c48e432003ebacf5964186e54220f7c00bcfb975ea3e12a633f0dbc languageName: node linkType: hard -"@react-aria/ssr@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-aria/ssr@npm:3.9.1" +"@react-aria/ssr@npm:^3.9.4": + version: 3.9.4 + resolution: "@react-aria/ssr@npm:3.9.4" dependencies: "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: a42bf23241b022e2e55ca95aeec5cafb3aa276b4586373f4b85834655ab05068d5af81707bf1d4548f2f5b29c80a02ef920c0711b2d1a8b189effca2c72ca5f9 + checksum: c55e5e0bf86bc39c7c0c9f86f4166e923cf62304903b7b5e700619bff64edc4fbeec5a66741aa39635445ff0b26d80ee03d6471c5df02ec764b9a71938dd17de languageName: node linkType: hard -"@react-aria/switch@npm:^3.6.0": - version: 3.6.0 - resolution: "@react-aria/switch@npm:3.6.0" +"@react-aria/switch@npm:^3.6.4": + version: 3.6.4 + resolution: "@react-aria/switch@npm:3.6.4" dependencies: - "@react-aria/toggle": "npm:^3.10.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/switch": "npm:^3.5.0" + "@react-aria/toggle": "npm:^3.10.4" + "@react-stately/toggle": "npm:^3.7.4" + "@react-types/switch": "npm:^3.5.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e6c76700841d77ca72e1917a3c240c9057dd0e6842efa22fae8f44f9a7677a1c7345331a3cbeb0b7a1fcb240039d1cad1f363e026345917433a919dacd840f4f - languageName: node - linkType: hard - -"@react-aria/table@npm:^3.13.3": - version: 3.13.3 - resolution: "@react-aria/table@npm:3.13.3" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/grid": "npm:^3.8.6" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/live-announcer": "npm:^3.3.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/flags": "npm:^3.0.0" - "@react-stately/table": "npm:^3.11.4" - "@react-stately/virtualizer": "npm:^3.6.6" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" - "@react-types/table": "npm:^3.9.2" + checksum: 97a26a41126beb4df20ff857a7e6af78242ea8ec864d86a60082826f0cbce40bc2288af50c705da237f6ef9eafc4aa9bc775e5a6b67ccd2b2dacb6754abc2fcc + languageName: node + linkType: hard + +"@react-aria/table@npm:^3.14.1": + version: 3.14.1 + resolution: "@react-aria/table@npm:3.14.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/grid": "npm:^3.9.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/live-announcer": "npm:^3.3.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/flags": "npm:^3.0.3" + "@react-stately/table": "npm:^3.11.8" + "@react-stately/virtualizer": "npm:^3.7.1" + "@react-types/checkbox": "npm:^3.8.1" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" + "@react-types/table": "npm:^3.9.5" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9fe1170d5100f035e1d92d20b0838e699a75872a67cf6244744a5be7c331ebe0e2e0c1561c07eeed95516ea7fd32858562e076858fe0770b56aee61b20590e6f + checksum: 3b20885aefbecf40e76d2d594a4c6cd3894878c031041bd3c398d440cad6cc938098c9fcc112bc0a1744478d0e8e241acd2e1641129dceab54f04e9e1bd2e5b2 languageName: node linkType: hard -"@react-aria/tabs@npm:^3.8.3": - version: 3.8.3 - resolution: "@react-aria/tabs@npm:3.8.3" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/tabs": "npm:^3.6.3" - "@react-types/shared": "npm:^3.22.0" - "@react-types/tabs": "npm:^3.3.4" +"@react-aria/tabs@npm:^3.9.1": + version: 3.9.1 + resolution: "@react-aria/tabs@npm:3.9.1" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/tabs": "npm:^3.6.6" + "@react-types/shared": "npm:^3.23.1" + "@react-types/tabs": "npm:^3.3.7" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 086a3edca6250966592feac07eea6963457688f4e4984309fb082752c22907237270aed6e211c3e600254a51b3fcabf172389570956fce4320e4badce4962c60 + checksum: 69d0f482ce94ed34a587eb9da6bf7c62911040a4c02c37fe768710d043ffcd6750bed506dc7cbe16881db2cf6b271cbef2dc91ac4e7be70965f3f8bf56ba1918 languageName: node linkType: hard -"@react-aria/tag@npm:^3.3.1": - version: 3.3.1 - resolution: "@react-aria/tag@npm:3.3.1" - dependencies: - "@react-aria/gridlist": "npm:^3.7.3" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/list": "npm:^3.10.2" - "@react-types/button": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" +"@react-aria/tag@npm:^3.4.1": + version: 3.4.1 + resolution: "@react-aria/tag@npm:3.4.1" + dependencies: + "@react-aria/gridlist": "npm:^3.8.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/list": "npm:^3.10.5" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 188b6394f0a95bc4362d85ec9a456c55483778f7b91acc40f5287276a1f69d8babd22fc40bc6fd5d11096426ef39061bcfe9078cbdb64ae3147bba52dd30bd9b + checksum: d85ac6ea1dec19f51acfde677cb3fd6da799d2a022468c984b1ed3d0cb7e6820e8fc5e8b9b12a2617d9830343a232b5d39a21c268d10d7a411d5d27d06c72055 languageName: node linkType: hard -"@react-aria/textfield@npm:^3.14.1": - version: 3.14.1 - resolution: "@react-aria/textfield@npm:3.14.1" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/form": "npm:^3.0.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" - "@react-types/textfield": "npm:^3.9.0" +"@react-aria/textfield@npm:^3.14.5": + version: 3.14.5 + resolution: "@react-aria/textfield@npm:3.14.5" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/form": "npm:^3.0.5" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" + "@react-types/textfield": "npm:^3.9.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 131885917122c34bb5a124e3b120fbd175fe1eefdb5020ac786ec4ffdd8f370c4fd2d2a0e69257d6e337c99ab14548c51f43d677a26836c66433374b3d47bae5 + checksum: db1a3270a6d7b7947567554a56748a6960a2f83f1f4b4b3649896777ef7d02ba3a6b657dba93860c89b11fa2abe0ea94b47aa499c15751be11a092e494f4c016 languageName: node linkType: hard -"@react-aria/toggle@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-aria/toggle@npm:3.10.0" +"@react-aria/toggle@npm:^3.10.4": + version: 3.10.4 + resolution: "@react-aria/toggle@npm:3.10.4" dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/toggle": "npm:^3.7.0" - "@react-types/checkbox": "npm:^3.6.0" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/toggle": "npm:^3.7.4" + "@react-types/checkbox": "npm:^3.8.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c22e29f1e8d87b9963183272098bc0f40e40668f08e28193e21b3880166872dc525e52efb1c80ee1b5abd51cdefacb9bb3f9161e8c2eded37eac51eed5e0740f + checksum: 66f59d898399977ed640d40c40634c9f5f95d50a1241c8a604d04b652c261353377f1a8c1a05ffbd49090ff8c120ead4f2567e4732c07c0dfc4368fa3399c2c9 languageName: node linkType: hard -"@react-aria/tooltip@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-aria/tooltip@npm:3.7.0" - dependencies: - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-stately/tooltip": "npm:^3.4.6" - "@react-types/shared": "npm:^3.22.0" - "@react-types/tooltip": "npm:^3.4.6" +"@react-aria/toolbar@npm:3.0.0-beta.5": + version: 3.0.0-beta.5 + resolution: "@react-aria/toolbar@npm:3.0.0-beta.5" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 335190e8e009144e979e03fbdc92f02ad0ba070719c71410ee4a34a4a1f533823165e0fcf389d3e215cf98f61559b7c822d6ead2fb53cbcfd65d8ea712462e19 + checksum: 4f9114fd900cb81b98399f917222a83f59d9012114fd198f1954a24c09c805875e502695ca69edb7f4e51f031da0649394b587bd7b83efa404fba9fcf18152a3 languageName: node linkType: hard -"@react-aria/utils@npm:^3.19.0, @react-aria/utils@npm:^3.23.0": - version: 3.23.0 - resolution: "@react-aria/utils@npm:3.23.0" +"@react-aria/tooltip@npm:^3.7.4": + version: 3.7.4 + resolution: "@react-aria/tooltip@npm:3.7.4" + dependencies: + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/tooltip": "npm:^3.4.9" + "@react-types/shared": "npm:^3.23.1" + "@react-types/tooltip": "npm:^3.4.9" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: b184bded727abc4b85c53de6b348bae2bada8ad1bba167ce998c1fc9ace4d2b9e9c4362352ece91e321e0ce4da88795d60c1e96298203cedfb8553a9f4e50ebc + languageName: node + linkType: hard + +"@react-aria/tree@npm:3.0.0-alpha.1": + version: 3.0.0-alpha.1 + resolution: "@react-aria/tree@npm:3.0.0-alpha.1" + dependencies: + "@react-aria/gridlist": "npm:^3.8.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/tree": "npm:^3.8.1" + "@react-types/button": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: d21790594918886e8c3214dc666af563e8c13dd0dbe956492f251291144b3f18418dd2901df10569bc639a30c8edfcfa90d21b1fc3e6c69d4fc6d7e512531b52 + languageName: node + linkType: hard + +"@react-aria/utils@npm:^3.23.2, @react-aria/utils@npm:^3.24.1": + version: 3.24.1 + resolution: "@react-aria/utils@npm:3.24.1" dependencies: - "@react-aria/ssr": "npm:^3.9.1" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/ssr": "npm:^3.9.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" clsx: "npm:^2.0.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7be5f852fb80b4cdb0a983542804534ce14bbd3809c8e81786507335d457202a5cd57a4a437c32aabb1b678902405da00f5ba9d697c7ab6f33cf0840bb1978be + checksum: 7acf52f3cdf66aaa0c55bde86959a3772bc266682389bf19865739ca8b77a652db8d9f970dc37600c69b8a7cce78b821913f3d7f066bdcb1224599e3fe35afce languageName: node linkType: hard -"@react-aria/visually-hidden@npm:^3.8.8": - version: 3.8.8 - resolution: "@react-aria/visually-hidden@npm:3.8.8" +"@react-aria/visually-hidden@npm:^3.8.12": + version: 3.8.12 + resolution: "@react-aria/visually-hidden@npm:3.8.12" dependencies: - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 08f0390968af92ad77ab0c606dfa47e2e9e45dffe21c7472ac2659424aa79665338afeea475a2b3b2fdae0f064596fb9cb22edd1bddc873e408c882bb48c9ddf + checksum: 2b3c43f713e37b5536ecd1dd4d975b98fbec5287d06ff462ac4aaea9ed5136a0939e5b6cd5857c2db57b94e41b49aa2c5cfd25d1c87c580d3e204c07fde80895 languageName: node linkType: hard @@ -3328,9 +3713,9 @@ __metadata: languageName: node linkType: hard -"@react-hookz/web@npm:^23.1.0": - version: 23.1.0 - resolution: "@react-hookz/web@npm:23.1.0" +"@react-hookz/web@npm:^24.0.2": + version: 24.0.2 + resolution: "@react-hookz/web@npm:24.0.2" dependencies: "@react-hookz/deep-equal": "npm:^1.0.4" peerDependencies: @@ -3340,13 +3725,13 @@ __metadata: peerDependenciesMeta: js-cookie: optional: true - checksum: 7f345fc286ee3bae74b76b909898213a589250856783805d0356d8ef9ca0e3d1638e7499d8b77ae1dff6350dec230fda468e0e4c8fc05a9997902569d3d81b49 + checksum: 90ee7d03a81944cc5ee4b36762baecf4853b6e09dfb12a4c3f84b0444f3696d5a616173ae3e4e75efeb15e867248e5afc8660223d75fa938c1c96ddb142c8236 languageName: node linkType: hard -"@react-hookz/web@npm:^24.0.2": - version: 24.0.2 - resolution: "@react-hookz/web@npm:24.0.2" +"@react-hookz/web@npm:^24.0.4": + version: 24.0.4 + resolution: "@react-hookz/web@npm:24.0.4" dependencies: "@react-hookz/deep-equal": "npm:^1.0.4" peerDependencies: @@ -3356,7 +3741,7 @@ __metadata: peerDependenciesMeta: js-cookie: optional: true - checksum: 90ee7d03a81944cc5ee4b36762baecf4853b6e09dfb12a4c3f84b0444f3696d5a616173ae3e4e75efeb15e867248e5afc8660223d75fa938c1c96ddb142c8236 + checksum: 6a841c648edbc54b11fd90de9bb61c3059255598fc4a714c508c269a03c4ca9bbf32cf017d3bd2b3a1bf7cd1d9bf4bb56028f64ad455f796079632f4a7cd4f00 languageName: node linkType: hard @@ -3371,580 +3756,623 @@ __metadata: languageName: node linkType: hard -"@react-stately/calendar@npm:^3.4.3": - version: 3.4.3 - resolution: "@react-stately/calendar@npm:3.4.3" +"@react-stately/calendar@npm:^3.5.1": + version: 3.5.1 + resolution: "@react-stately/calendar@npm:3.5.1" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/calendar": "npm:^3.4.6" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 8bf9e67390d71f79ff4d685a7e7b34b33bc714fc78747e108c88f611fedca197c676ad8f8648c6f98068ae9aef1eb0fa654cbfaa502cf161bbd00a57cc3c6b70 + checksum: b410874e1a028f889e4b98b6488be7c10d04a918df73493754a92fcae9020f0fa1891a7663d0295aee45fb010c50ed92f9379564ec1bd45479d2be2ec4bf62ca languageName: node linkType: hard -"@react-stately/checkbox@npm:^3.6.1": - version: 3.6.1 - resolution: "@react-stately/checkbox@npm:3.6.1" +"@react-stately/checkbox@npm:^3.6.5": + version: 3.6.5 + resolution: "@react-stately/checkbox@npm:3.6.5" dependencies: - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/checkbox": "npm:^3.6.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/checkbox": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 2aefb0b42063f13e89e9eac4ea9a52b4d7e68fb528064549067bd680a8887b400e13e5303a190552b3543e899170bd6474bfc04fa46d4fb5b8e6c8bb50a15c71 + checksum: fa9c1c0376fca5ac384f6a02dfc6543945dde81458d0466fa9e788ec61a71d0e84e1f6749a12917e02638f6d887df2eb7cba597e161eacd16ae907c8c75da2f6 languageName: node linkType: hard -"@react-stately/collections@npm:^3.10.4": - version: 3.10.4 - resolution: "@react-stately/collections@npm:3.10.4" +"@react-stately/collections@npm:^3.10.7": + version: 3.10.7 + resolution: "@react-stately/collections@npm:3.10.7" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d82209a198c1cfcc7a7b67ea33a0990cb2a4e371bb838a533b3a95ba9c7ae2a80d1ac5957fdecc77e8e90c711b1beb9d4e8c65073e5826d20d8492990979098a + checksum: f52ee5478a4473accd828798d29a21542d9ce340eab49ce631bcb25f99963aee2696338be3798fcb5d90172759dd7dd547e73f12127a48533dd84d3f9fd7e4cf languageName: node linkType: hard -"@react-stately/combobox@npm:^3.8.1": - version: 3.8.1 - resolution: "@react-stately/combobox@npm:3.8.1" - dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/list": "npm:^3.10.2" - "@react-stately/overlays": "npm:^3.6.4" - "@react-stately/select": "npm:^3.6.1" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/combobox": "npm:^3.10.0" - "@react-types/shared": "npm:^3.22.0" +"@react-stately/color@npm:^3.6.1": + version: 3.6.1 + resolution: "@react-stately/color@npm:3.6.1" + dependencies: + "@internationalized/number": "npm:^3.5.3" + "@internationalized/string": "npm:^3.2.3" + "@react-aria/i18n": "npm:^3.11.1" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/numberfield": "npm:^3.9.3" + "@react-stately/slider": "npm:^3.5.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/color": "npm:3.0.0-beta.25" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ad4ded0fe656e0786c169be662b91254eaa5721ff0eff265a0bc71ddb9cc6226486ca6b84cd4c98f9374029f59228a490537b3e805dab0de942af741e7eaf4d2 + checksum: 41e9ff4c5d965b429a96001d845984b4a9e86fb46b4b340d590f6bfbafd91b454093b921a3eb2c1f5d8884cb59fc0408b0c867972436777b6af2b99eb13d0e44 languageName: node linkType: hard -"@react-stately/data@npm:^3.11.0": - version: 3.11.0 - resolution: "@react-stately/data@npm:3.11.0" +"@react-stately/combobox@npm:^3.8.4": + version: 3.8.4 + resolution: "@react-stately/combobox@npm:3.8.4" + dependencies: + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/list": "npm:^3.10.5" + "@react-stately/overlays": "npm:^3.6.7" + "@react-stately/select": "npm:^3.6.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/combobox": "npm:^3.11.1" + "@react-types/shared": "npm:^3.23.1" + "@swc/helpers": "npm:^0.5.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 0a5863a6d82eab95d0e08a8ffcd92cc6a3f7c35589feeb9bad615d9cbe105f4abcfe1e641898b334b1c34ab84d8d97cf7e3c942175306808eb1b291f1bbc753a + languageName: node + linkType: hard + +"@react-stately/data@npm:^3.11.4": + version: 3.11.4 + resolution: "@react-stately/data@npm:3.11.4" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ca7873a58a19be51863384f738a69efc369cc0db262564f8842b251fefecbad74b9b74e8cd17230b1e300a5de3574f1b5f09253b88d949541af1066e5df28da7 + checksum: 79ae8819cac2cdf0888dbf50bac646ed1d5183b7e565d27894ca2fea8066b4b259acb04d41af21cf8abe9bbf1b96c743c6e05c5b53158888c2917fd482e8e3e2 languageName: node linkType: hard -"@react-stately/datepicker@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-stately/datepicker@npm:3.9.1" - dependencies: - "@internationalized/date": "npm:^3.5.1" - "@internationalized/string": "npm:^3.2.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/overlays": "npm:^3.6.4" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/datepicker": "npm:^3.7.1" - "@react-types/shared": "npm:^3.22.0" +"@react-stately/datepicker@npm:^3.9.4": + version: 3.9.4 + resolution: "@react-stately/datepicker@npm:3.9.4" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@internationalized/string": "npm:^3.2.3" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/overlays": "npm:^3.6.7" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/datepicker": "npm:^3.7.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 14b816140c158fb6986eb14d18f79b75d859d06f7d5c93854d6cfdc699cd537e90b50356e0b2c1e2c0d684173abc1e1fee51c15488167f4c6a29ca3dd369c43f + checksum: a50188bb2a15b7cddadc2bd6b5a9b81c297bba6820df874472c67fdd66c590cf4ce21fc4af8b2e02e08c3284246deb674743456c8b5d85c20490efcc6491a785 languageName: node linkType: hard -"@react-stately/dnd@npm:^3.2.7": - version: 3.2.7 - resolution: "@react-stately/dnd@npm:3.2.7" +"@react-stately/dnd@npm:^3.3.1": + version: 3.3.1 + resolution: "@react-stately/dnd@npm:3.3.1" dependencies: - "@react-stately/selection": "npm:^3.14.2" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/selection": "npm:^3.15.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 308fb88db9d650a9d306da5fd51fe1500598a75e22d8e488165224735a0300658cd05645f48f2b1dbf3aeb35fc162e9ce9e38c122a0005d53b4b7733851a1673 + checksum: 100a5a32ade132ae18887354547d704c2cd78e0b8e572009e589563a1947f9c72bfcbc62c46598692106c733107a53033144f288e82db99557137d144b0465bb languageName: node linkType: hard -"@react-stately/flags@npm:^3.0.0": - version: 3.0.0 - resolution: "@react-stately/flags@npm:3.0.0" +"@react-stately/flags@npm:^3.0.3": + version: 3.0.3 + resolution: "@react-stately/flags@npm:3.0.3" dependencies: - "@swc/helpers": "npm:^0.4.14" - checksum: 7a65481abb3093766d5912d0f428214481047d52c350879c62306829b3f0127389b338a1fc5262400dd7d5d6847b8fa5bf02da766c1474bbddb30cb58384d38a + "@swc/helpers": "npm:^0.5.0" + checksum: a5e8d2ce3a2d535d96e20b8a495641b41c242bfbcec9e0c2f4fa82531654a04d4ffb709fbe2a71f1d9e3bba612f8dcd1fbb8c03888e7600549882f40f3cd1897 languageName: node linkType: hard -"@react-stately/form@npm:^3.0.0": - version: 3.0.0 - resolution: "@react-stately/form@npm:3.0.0" +"@react-stately/form@npm:^3.0.3": + version: 3.0.3 + resolution: "@react-stately/form@npm:3.0.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 6c55818e846df74ac18ac7a6249c5967010440d6148017c100456eace6fd88d9472e99feec27fe41e7c4c8289a028266d7b619cdc16da0ca164dd492fa4c0d78 + checksum: d89c2099455e84cd0c77f6c8f3204f790aaab90a4e713f77269ab1a13229daa222906b7bf5d12188380cebb041a48c7d4c60676c920d5f2d27c577ee90a86b5e languageName: node linkType: hard -"@react-stately/grid@npm:^3.8.4": - version: 3.8.4 - resolution: "@react-stately/grid@npm:3.8.4" +"@react-stately/grid@npm:^3.8.7": + version: 3.8.7 + resolution: "@react-stately/grid@npm:3.8.7" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d50a721f2487efc96306a76b9b9d7de973533c6ad79597d13d3635a05e5262421394d94ae0ec06bb9ea8b1dbe58af6f80dc01fde04544c1c4b8ef9ab864d0012 + checksum: 9f727ef1129ec03b4ab311e56e6ea46bd042e25a4b8adec89a1177c67dbc13b67e15191d69d10d328478d1460651c6bee2afa212a3de1951fd49cbe8ee6f4231 languageName: node linkType: hard -"@react-stately/list@npm:^3.10.2": - version: 3.10.2 - resolution: "@react-stately/list@npm:3.10.2" +"@react-stately/list@npm:^3.10.5": + version: 3.10.5 + resolution: "@react-stately/list@npm:3.10.5" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 64523ed6842a64204d86478c416aae164a40f47593fa4eb374c2f291b262d5a28ec1c245992a142722278022f8603851dfa1371d023bb2857bd078074087466c + checksum: 14ce16f56ed8614701a2eb1dd6f31b17ec1ae87775576ff9d24a80079634c706590b77de07bfa0da7d20424f83fa33e12365df749ab893680ab163fa899e68fb languageName: node linkType: hard -"@react-stately/menu@npm:^3.6.0": - version: 3.6.0 - resolution: "@react-stately/menu@npm:3.6.0" +"@react-stately/menu@npm:^3.7.1": + version: 3.7.1 + resolution: "@react-stately/menu@npm:3.7.1" dependencies: - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/menu": "npm:^3.9.6" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/overlays": "npm:^3.6.7" + "@react-types/menu": "npm:^3.9.9" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 21c7f04cb910005fbc6b1f6b78bbf24f98e0b8c37f27bbb8d4b91161c76b823b049aae831b38d0bce15585ab78ffbb10762760e0bdb3a956b4f3a290be2d16b5 + checksum: 7574fbc461ce6686650aceeec6a6af1758983938cdeb0a67e808c389b6867970da75048c5c4cdca807e3ed4c58408e569216bb1b8903a98f232e69c5ed79faf9 languageName: node linkType: hard -"@react-stately/numberfield@npm:^3.8.0": - version: 3.8.0 - resolution: "@react-stately/numberfield@npm:3.8.0" +"@react-stately/numberfield@npm:^3.9.3": + version: 3.9.3 + resolution: "@react-stately/numberfield@npm:3.9.3" dependencies: - "@internationalized/number": "npm:^3.5.0" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/numberfield": "npm:^3.7.0" + "@internationalized/number": "npm:^3.5.3" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/numberfield": "npm:^3.8.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 758d6d90a62fa33416be5c7d6b18fa998c31b1bc16b626d61682a6d39b33e96bb93a6af9f6224af6afe233ac490e496286c3fcf6a5b421fdb04326375bf20ad7 + checksum: e67979f4327b951b63720ae5ef00a42c2358f2c6a7ecd87aab218a891bc192a369b330f8cdb00d9d9c086e36a2eb96c3faa001225e636c68cbb5efdd865997a2 languageName: node linkType: hard -"@react-stately/overlays@npm:^3.6.4": - version: 3.6.4 - resolution: "@react-stately/overlays@npm:3.6.4" +"@react-stately/overlays@npm:^3.6.7": + version: 3.6.7 + resolution: "@react-stately/overlays@npm:3.6.7" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/overlays": "npm:^3.8.4" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/overlays": "npm:^3.8.7" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 80205ef3a99c80ebc43c14f55287de45a71185acdb5243d0194ee8fe963f3ea4acc4abc877ed445e457df5b0c8cc5812b7d8181d425f9b28c895cfd7d05e6a55 + checksum: 061f54d71de0f9c436393d48d21af7780003f48719e87e21fdbddd7b01abfb200dd91ca5a4dcce0498e9683780cd1f3f9470be9a365250aa82911ba184279bb5 languageName: node linkType: hard -"@react-stately/radio@npm:^3.10.1": - version: 3.10.1 - resolution: "@react-stately/radio@npm:3.10.1" +"@react-stately/radio@npm:^3.10.4": + version: 3.10.4 + resolution: "@react-stately/radio@npm:3.10.4" dependencies: - "@react-stately/form": "npm:^3.0.0" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/radio": "npm:^3.7.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/radio": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 345a844e24c037dd50c2eb05bec77151bf1988755ce451bb996bfaa7bbd84ce33be42fd79351048d560fe5900da089b6f62972e9b602026d859f33f826371106 + checksum: 9be023632c4bdeeef958d0aae4cc61644bb1f2f9700dbb0d5cf0fbfced58ed2c2c449a22e95bed8830647ad4a02ebfb8695bd3c381acd6e4574ced498a92b5d8 languageName: node linkType: hard -"@react-stately/searchfield@npm:^3.5.0": - version: 3.5.0 - resolution: "@react-stately/searchfield@npm:3.5.0" +"@react-stately/searchfield@npm:^3.5.3": + version: 3.5.3 + resolution: "@react-stately/searchfield@npm:3.5.3" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/searchfield": "npm:^3.5.2" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/searchfield": "npm:^3.5.5" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c6b350390de0e6ab5a7749f45da44547460424c497024291375ef5702083e7d787484c3d1191e73a54cb5b5b20eab6e4e8f4cf2d38c9326a0d84f74dad0c5363 + checksum: c26168cb48b6fed1afecda2bc096aad983666b3ebcce1e90e683807c491cd6927dfe2f630f0a1a785de8de16775897ad6682040a0102b84f8ab312e53873f8c0 languageName: node linkType: hard -"@react-stately/select@npm:^3.6.1": - version: 3.6.1 - resolution: "@react-stately/select@npm:3.6.1" +"@react-stately/select@npm:^3.6.4": + version: 3.6.4 + resolution: "@react-stately/select@npm:3.6.4" dependencies: - "@react-stately/form": "npm:^3.0.0" - "@react-stately/list": "npm:^3.10.2" - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/select": "npm:^3.9.1" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/list": "npm:^3.10.5" + "@react-stately/overlays": "npm:^3.6.7" + "@react-types/select": "npm:^3.9.4" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: e355aa78a7d3f9670a7e8882169e0ddbc330bd828920e392dcbc5c8604b9d4fb58bea2db365e58371f0df26d0ec4703c3562f8eeccbfce32c4182f1db135501e + checksum: 25ed84df9f2b56a7e03fa6214845d88b4090ebfb3868a0a29c507e24879bd2db7abb24df0f6aeacabd3ea0b0e9759c0e1b2689634b82a4a1c856f47dabc3383a languageName: node linkType: hard -"@react-stately/selection@npm:^3.14.2": - version: 3.14.2 - resolution: "@react-stately/selection@npm:3.14.2" +"@react-stately/selection@npm:^3.15.1": + version: 3.15.1 + resolution: "@react-stately/selection@npm:3.15.1" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ff596df1e8bb42bad29e8f6f7613ff86bf938ecdc066dd69bb10daae4e55b3180f36fce1b826deb3abe24fd19733b468a8ae7ae87d47fff3e55077b8ab07645d + checksum: 4926d0c67b92ced4b9fcc2c092e693fd12e9a3b94bdd4a1ba0c5cdb76d399c5cc45ba814901bf9547a031e1af1e0d7ca21d2be7e5539d17b6a20f47044469276 languageName: node linkType: hard -"@react-stately/slider@npm:^3.5.0": - version: 3.5.0 - resolution: "@react-stately/slider@npm:3.5.0" +"@react-stately/slider@npm:^3.5.4": + version: 3.5.4 + resolution: "@react-stately/slider@npm:3.5.4" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" - "@react-types/slider": "npm:^3.7.0" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" + "@react-types/slider": "npm:^3.7.3" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 9dc3413bdbc4dee764dc274b7636c5cd794ab3d847dce47179701d09fe4e0dbd4d8aa21d763e7a4726332c4df6033b55b4038e5d658c8ae1cc191f17687d3015 + checksum: 9af16a9b69d2899827ca1a79630978999784a08ab800998486e0788bd37168d98dab75cc66a92679dbe26db1ae9b2b7af84459e4f35d0a57455322cba3c03483 languageName: node linkType: hard -"@react-stately/table@npm:^3.11.4": - version: 3.11.4 - resolution: "@react-stately/table@npm:3.11.4" - dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/flags": "npm:^3.0.0" - "@react-stately/grid": "npm:^3.8.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" - "@react-types/table": "npm:^3.9.2" +"@react-stately/table@npm:^3.11.8": + version: 3.11.8 + resolution: "@react-stately/table@npm:3.11.8" + dependencies: + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/flags": "npm:^3.0.3" + "@react-stately/grid": "npm:^3.8.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" + "@react-types/table": "npm:^3.9.5" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 2becaf04ef06e2e61e5834a383ed322f8f0b01ede285adacb5efdb1318589bf357071a639c2f63d753b3c7d6049c7f253f2a6ec4a2526c2efef873a5a5c02be0 + checksum: a473010b2a8c6674192a3b7d0cacca18174600f5dc0c0320eb4575a5d2b973b2c57b8757fc154a2f8c97367b7e306f8e2ab6a51bfa6357f861adc50f1ff69503 languageName: node linkType: hard -"@react-stately/tabs@npm:^3.6.3": - version: 3.6.3 - resolution: "@react-stately/tabs@npm:3.6.3" +"@react-stately/tabs@npm:^3.6.6": + version: 3.6.6 + resolution: "@react-stately/tabs@npm:3.6.6" dependencies: - "@react-stately/list": "npm:^3.10.2" - "@react-types/shared": "npm:^3.22.0" - "@react-types/tabs": "npm:^3.3.4" + "@react-stately/list": "npm:^3.10.5" + "@react-types/shared": "npm:^3.23.1" + "@react-types/tabs": "npm:^3.3.7" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d2b776e0481d9497e2b1c9610d55412afa36e1ce5cf2fb28bc6b5a5b454941f587bcf948ff0307990d8b7f7d4c6ee1a739fc997cf639343cab7fb8ac17647b8a + checksum: cd46ac05290f235a566cd8b67bf471e435e6effc5fa8b0cfa3ed4d3bcbaeb991d22c49e161f95aa177e5a1366d7b81dc4ac54a6e82d7aa9c17ee412ea4bb4fce languageName: node linkType: hard -"@react-stately/toggle@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-stately/toggle@npm:3.7.0" +"@react-stately/toggle@npm:^3.7.4": + version: 3.7.4 + resolution: "@react-stately/toggle@npm:3.7.4" dependencies: - "@react-stately/utils": "npm:^3.9.0" - "@react-types/checkbox": "npm:^3.6.0" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/checkbox": "npm:^3.8.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f366a41c92948d1631ad7fed699115bc0c2c6f134a29b3b1b5d0cdc083f72a1862cd0f447e4a1a1b37c2013f1b859d00583a1c8691a7e1d93ba9db0cacffe36a + checksum: d0d4260e9434120699fe25266ce1db8ebd74bf0c2b18c838db23e9f2f7337b5e8fc9eff7a0d1edc210a947b3b87e8bda70b095c26cd32d226ff64ae1f561be63 languageName: node linkType: hard -"@react-stately/tooltip@npm:^3.4.6": - version: 3.4.6 - resolution: "@react-stately/tooltip@npm:3.4.6" +"@react-stately/tooltip@npm:^3.4.9": + version: 3.4.9 + resolution: "@react-stately/tooltip@npm:3.4.9" dependencies: - "@react-stately/overlays": "npm:^3.6.4" - "@react-types/tooltip": "npm:^3.4.6" + "@react-stately/overlays": "npm:^3.6.7" + "@react-types/tooltip": "npm:^3.4.9" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: a9fef79f850592a9eb418edc800cc4ecd92f00d918796472fb65d7eaa4541496bdad8d9327a131db585b1c7bdb7b9ed882d5c9e78bb84127f3ea8217c217996b + checksum: f5ec609a90970926833cc29e626a26e485ef51a3a1315ac7f4e52708b4cbbb1c33f95952dc901e8b9bb439ac663195ed5ab2db8ac39918562a8427aba1fb9f99 languageName: node linkType: hard -"@react-stately/tree@npm:^3.7.5": - version: 3.7.5 - resolution: "@react-stately/tree@npm:3.7.5" +"@react-stately/tree@npm:^3.8.1": + version: 3.8.1 + resolution: "@react-stately/tree@npm:3.8.1" dependencies: - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/utils": "npm:^3.9.0" - "@react-types/shared": "npm:^3.22.0" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 46a81a00c2aa0f7b90a436e0dd25893934f4d63f3103284d865f5ab0fc5d84a38e2bf99149b18ed715077bff24f4fa2ef6d7db6ce191d0599547b258e205849d + checksum: 24ab312778bb49f612047e889afbed5a47a790bb2b6952c0181bb5fae15fadc6ab3ee18dbd22176b56a9701c41dbc1ca96b46bc3218dbc1b517b7b1dbc9a9d20 languageName: node linkType: hard -"@react-stately/utils@npm:^3.9.0": - version: 3.9.0 - resolution: "@react-stately/utils@npm:3.9.0" +"@react-stately/utils@npm:^3.10.1": + version: 3.10.1 + resolution: "@react-stately/utils@npm:3.10.1" dependencies: "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 66bb72441c289c334cf626ac789bb601db8b765e3f522181f8ff38b281bede9d1b2474dc6d5f17b6b31c12f48425797151eb2d4df5922e05c2e467ee195b7ade + checksum: b3fc1367eb26afa1d7a4e3d5cf5cf215be4a4698296db25d34a9096a9eb79cff5c3770da48989970e6b6734199bfb9a10c31cd62a39b20980b2ede78061f8ee9 languageName: node linkType: hard -"@react-stately/virtualizer@npm:^3.6.6": - version: 3.6.6 - resolution: "@react-stately/virtualizer@npm:3.6.6" +"@react-stately/virtualizer@npm:^3.7.1": + version: 3.7.1 + resolution: "@react-stately/virtualizer@npm:3.7.1" dependencies: - "@react-aria/utils": "npm:^3.23.0" - "@react-types/shared": "npm:^3.22.0" + "@react-aria/utils": "npm:^3.24.1" + "@react-types/shared": "npm:^3.23.1" "@swc/helpers": "npm:^0.5.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 45fd982fb3c0c52af3e5c4c6ab8a79f14b6b2c768cfd13754ee1397fb9459a97a4a28db666df144c3f569ac5d82bb6d8832de8e2f017c17ab986fc0437888017 + checksum: b40b095cd57d87f2db0533ca19cd5572d47b020cca1410b3e9627003426f3be0cd3fab48d20ef30b541e852eeea285993e8ed65c09a32ff199240c4196999812 languageName: node linkType: hard -"@react-types/breadcrumbs@npm:^3.7.2": - version: 3.7.2 - resolution: "@react-types/breadcrumbs@npm:3.7.2" +"@react-types/breadcrumbs@npm:^3.7.5": + version: 3.7.5 + resolution: "@react-types/breadcrumbs@npm:3.7.5" dependencies: - "@react-types/link": "npm:^3.5.2" - "@react-types/shared": "npm:^3.22.0" + "@react-types/link": "npm:^3.5.5" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: f911a57124652dd1ae7f30b4e5158a9accaec166a244f3c98942c26250997a28e4e2aaa2e66923738ee8fe832e95babcae14bc3dd1f20c9eeed533ef597de2cc + checksum: bf9a7e5f3eafaf007d0ba561f20849c2d1ad07ea973f6ee05ecb0826d4175fb49c86c4d0a2aaa56e343ed5b00c347661eef98dd2870c46130b1e1e843bc80747 languageName: node linkType: hard -"@react-types/button@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-types/button@npm:3.9.1" +"@react-types/button@npm:^3.9.4": + version: 3.9.4 + resolution: "@react-types/button@npm:3.9.4" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 712eb4dbd3bf1afe96a4d1438c95e54b44117bb1cef31a1984d678ef716672d47ebbbbbb1736a2083e47e435e652aa70384f4cf9e9e302d7f1d0878d176ace68 + checksum: aebbbbb61320c78ea41ebc51ce8b1bf4a08952dde17e2de96a5f0e1f49e9d9a3d9fc74862448f28eedde0230f2d07c25ed06138964d5c1b3892ced1d80470872 languageName: node linkType: hard -"@react-types/calendar@npm:^3.4.3": - version: 3.4.3 - resolution: "@react-types/calendar@npm:3.4.3" +"@react-types/calendar@npm:^3.4.6": + version: 3.4.6 + resolution: "@react-types/calendar@npm:3.4.6" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.4" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 965fbe34431e8296cc3d14a647e528c31079ee5d07a5cd0cbb83c7ca7c873d0c69f7f779f5fa2ada704610f75a757e51b7589928e67fe371f0b6947c8a1bc1f1 + checksum: 347f800f056c90e8bd6928fcb7377c6cbaf596296ea7f20059d650ae7a192a5aa83deb874edd85955453e03a5112cbb2e586f66652158044dba3035aa653674a languageName: node linkType: hard -"@react-types/checkbox@npm:^3.6.0": - version: 3.6.0 - resolution: "@react-types/checkbox@npm:3.6.0" +"@react-types/checkbox@npm:^3.8.1": + version: 3.8.1 + resolution: "@react-types/checkbox@npm:3.8.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c3e945a666922384ebc868e5eb56b8861c302824fd73e8c109fbd5d0b9ff6752014f411b998c3ee4e4ae636f84b0c124ee97dbbf6a6c0d343c1092bd9b2a2b21 + checksum: a5dc85c06aed4e96f39dd2357bebf866f3abb59c5966b7307a1d6702d54aa0b252e3eba428af49cd0cd9e575961272ec307b1a4e09d72a936880b7388313bb26 languageName: node linkType: hard -"@react-types/combobox@npm:^3.10.0": - version: 3.10.0 - resolution: "@react-types/combobox@npm:3.10.0" +"@react-types/color@npm:3.0.0-beta.25": + version: 3.0.0-beta.25 + resolution: "@react-types/color@npm:3.0.0-beta.25" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" + "@react-types/slider": "npm:^3.7.3" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ae8841fc55cb19ab25a876e2afd05e06d6ab51fdfaeec6ab7cd6c577ff26c16d506ed628c20750db2596ea86eb990c731ca61e89f7fda03d2f65feb10a306cd7 + checksum: 1f0598949e73088e69fc5637fdb6e32662b8b47f0e7d9bfaf5f9f9ef8a5bbaad5b40771ff40e4fbb0cb353ab2002396c1889b554dad8aadb223178b40a851cdb languageName: node linkType: hard -"@react-types/datepicker@npm:^3.7.1": - version: 3.7.1 - resolution: "@react-types/datepicker@npm:3.7.1" +"@react-types/combobox@npm:^3.11.1": + version: 3.11.1 + resolution: "@react-types/combobox@npm:3.11.1" dependencies: - "@internationalized/date": "npm:^3.5.1" - "@react-types/calendar": "npm:^3.4.3" - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: afe84b362d041c3559847b564c44a3468ff957fb86feec1c28a222e9d4724601d608b504619033bc325f880dcb8aae25779379770b4c2e6c1d8d0091d4cc4199 + checksum: 0f5539a2c721b4f1d8cf343924f269dc7b82502b6f7aa032b79521320f4dd1761e3908c5d671fb207866c1652ffb67ecab4c8baba7be521f54fb04713478c9e3 languageName: node linkType: hard -"@react-types/dialog@npm:^3.5.7": - version: 3.5.7 - resolution: "@react-types/dialog@npm:3.5.7" +"@react-types/datepicker@npm:^3.7.4": + version: 3.7.4 + resolution: "@react-types/datepicker@npm:3.7.4" dependencies: - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@internationalized/date": "npm:^3.5.4" + "@react-types/calendar": "npm:^3.4.6" + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4f79ee1eb4e935435c2f04571900ac83fd0638f0d15fe4ac1b5acac6057718a37fdec0b735c3b44439f09b905552c241107c1b14fac57dcb7e14bc68127f0e9c + checksum: d323c6d8e8e8162cb59e1b8ef65c54271cf36f7b6e04c6279712294a2d0a47c037d9b93501950bfcb527a24ee97c9196201357ce74577386762b9effb0dc5e67 languageName: node linkType: hard -"@react-types/grid@npm:^3.2.3": - version: 3.2.3 - resolution: "@react-types/grid@npm:3.2.3" +"@react-types/dialog@npm:^3.5.10": + version: 3.5.10 + resolution: "@react-types/dialog@npm:3.5.10" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: ab2abf027d1a5364bfb3957732dfea9485f739ba50e86eb4c75be5cce1a9b374191d8a1664dea3487504207ffed93a1fbc395fb01d7c503ab34f52f8a6adcd0e + checksum: 56d49adb78bfdcf4252ca784c7f0a7ccfc1e766f909a24d2864ab988e948c0f82b7bd04be3d023dcc1f69395502fbbf09214f00624499e0c6342d5167420d5bd languageName: node linkType: hard -"@react-types/link@npm:^3.5.2": - version: 3.5.2 - resolution: "@react-types/link@npm:3.5.2" +"@react-types/form@npm:^3.7.4": + version: 3.7.4 + resolution: "@react-types/form@npm:3.7.4" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c3268a83614f2d10274a93ebbab77bb586f3e8c9050eea96a74646e1a456d77b844c4f0e2437277dd932ba260806aea2327ffc5f3351b6279808e599c8c2f5eb + checksum: 24c84e455f27f170f32c616e99baa0c44f8686c5d1573c6f4ae9791d95dec095c3a0f745bcac6d63212187476d58cef0c9766f968376d98ecd3d517f3c24d7fe languageName: node linkType: hard -"@react-types/listbox@npm:^3.4.6": - version: 3.4.6 - resolution: "@react-types/listbox@npm:3.4.6" +"@react-types/grid@npm:^3.2.6": + version: 3.2.6 + resolution: "@react-types/grid@npm:3.2.6" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 12e2f6eb27692b9af7095101ebf84910d65743615c0fadf21bbf60d2f2dd4fe8f1c885137b7237062fe774704889e3645b22d27b74ef5490e518db63dbba7ffa + checksum: a1da4fe93186c32b59c9f3f8506bf92c01a909d72de136ec277c877a26ebdae7d9fae1505de2b90ed3cfa118c300d58192eaf8cb0f2bb1a48b27329e37c5ee16 languageName: node linkType: hard -"@react-types/menu@npm:^3.9.6": - version: 3.9.6 - resolution: "@react-types/menu@npm:3.9.6" +"@react-types/link@npm:^3.5.5": + version: 3.5.5 + resolution: "@react-types/link@npm:3.5.5" dependencies: - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 14812700f810a75a1b6f85077c35292c50783fbaf404d6ee3ab21ca73151cb95f527824e45cb4c0dd02ce5b99d5a4eba21f78da53093000a003e848b06690b86 + checksum: 45ed617810314eaddc1a0472a360de8e1ca9c955baa319d51e22e822fb0194e62fc1fee225d6e9a9a8fba7f044d607cb510cd6d20bb53dd144fd751dc550fa81 languageName: node linkType: hard -"@react-types/meter@npm:^3.3.6": - version: 3.3.6 - resolution: "@react-types/meter@npm:3.3.6" +"@react-types/listbox@npm:^3.4.9": + version: 3.4.9 + resolution: "@react-types/listbox@npm:3.4.9" dependencies: - "@react-types/progress": "npm:^3.5.1" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7e6b97cc18ec0fbb23bc8ee6e486f41bdeb1c1ee6852c303c01403c13598b4613b2025f0b40d0b539a8f3c00cd840d9d9fa0abe9aed4e59cef6e91faecee42f6 + checksum: 6f536c06d1a9fe9e2fa24b7bae3cabfec1474e65e3a9bea41eef128984cf5a83ab8f8dd0f22033a61f09e0f725024687590c9d2a8430024c96a583196d97f1c6 languageName: node linkType: hard -"@react-types/numberfield@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-types/numberfield@npm:3.7.0" +"@react-types/menu@npm:^3.9.9": + version: 3.9.9 + resolution: "@react-types/menu@npm:3.9.9" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: b34c5d3433968b9cc40e23bcdccd5da25c4a322ddc0c31adb7519d379480c5f5c5cd283e3878092aa41fb534f73542fe0b773bf2dff3bc65c40e8a17900dd165 + checksum: efa730a42a7152613e15bf967f6cda74dcd365d81cbda3a018f926f546d19f6c09f1eaf7a2e834f2cdfccccde68d1e909413e058a61f15e1f98695b26a103ea6 languageName: node linkType: hard -"@react-types/overlays@npm:^3.8.4": - version: 3.8.4 - resolution: "@react-types/overlays@npm:3.8.4" +"@react-types/meter@npm:^3.4.1": + version: 3.4.1 + resolution: "@react-types/meter@npm:3.4.1" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/progress": "npm:^3.5.4" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 14b7ab6b24d322c37fc23571dacb2cba7a144902f7421f65c9809029a573e40144ad4db1a583d807e52d4f4e40f1a8785eca303d1a79edf9bb390bb482a5707f + checksum: 553c823cfa591f512e11fb2cb269cd88ee629da267cf0e98ee0fbafcbf4537a582dde0070f2d783d349c12813ed797e95b83bf56e9bfc380a14ba3680578655b languageName: node linkType: hard -"@react-types/progress@npm:^3.5.1": - version: 3.5.1 - resolution: "@react-types/progress@npm:3.5.1" +"@react-types/numberfield@npm:^3.8.3": + version: 3.8.3 + resolution: "@react-types/numberfield@npm:3.8.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4f177805e16d6ee3df51e18f0df07b12dffae746f3c065958939cddbec13d3307bf63f43c27e2e74a6eae1b08b24a14a24ceaf64232b166e368f25cef5da7fa0 + checksum: 4ed826ea05a90cb798b267007ec6ab3aa03844c71b04ca01113ac6ddef10d3d278909e4388454f41558f91ea51c25977a9bc02c02aa834104b0a1ec643af9297 languageName: node linkType: hard -"@react-types/radio@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-types/radio@npm:3.7.0" +"@react-types/overlays@npm:^3.8.7": + version: 3.8.7 + resolution: "@react-types/overlays@npm:3.8.7" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 5ab509b7cc377599be000c74f7f0ce6458a82d951f45edd72df499c7b598cd1c2dcb47ebdf9f5aecfbe57b1d900863909289e24646291b93153590de358b414d + checksum: 758eed6a2a13128c40585dd4e47bdc807d49ecf7b12822ec9aa84c5797604c67fe4750300253805a4206feddb0f0bbc01e8f70666aff299dce51b3aeda46c4d2 languageName: node linkType: hard -"@react-types/searchfield@npm:^3.5.2": - version: 3.5.2 - resolution: "@react-types/searchfield@npm:3.5.2" +"@react-types/progress@npm:^3.5.4": + version: 3.5.4 + resolution: "@react-types/progress@npm:3.5.4" dependencies: - "@react-types/shared": "npm:^3.22.0" - "@react-types/textfield": "npm:^3.9.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c70a534cffc4e19c2acc5613becbd77b71527b8befcf4e6cf2000a9328f8985195ef662a3cfdf61a4c05d996636b8f462b0b22e33ccbedf54b181e6bf1633cb4 + checksum: 756cf6b1a2b697f4a2152e454da679ce5ed98172ddc68e86433db8d047a4623b6b00808436e4f65ce5253343cd566cf6fe94d486476fb6e55849d182fd182590 languageName: node linkType: hard -"@react-types/select@npm:^3.9.1": - version: 3.9.1 - resolution: "@react-types/select@npm:3.9.1" +"@react-types/radio@npm:^3.8.1": + version: 3.8.1 + resolution: "@react-types/radio@npm:3.8.1" + dependencies: + "@react-types/shared": "npm:^3.23.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 6caa15aafc76f4c09be63a307c7ff02ebc6404c4ef3b64b4c43a904be49f8640ba91845cffe0c05e7e77d84a63aa1ac6332d30f2fcf560d3c6d15ea58833910a + languageName: node + linkType: hard + +"@react-types/searchfield@npm:^3.5.5": + version: 3.5.5 + resolution: "@react-types/searchfield@npm:3.5.5" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" + "@react-types/textfield": "npm:^3.9.3" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 7faa872468e2d4789cc35903410582141743c8b327dd44816a5f888d53bba28e44fa040f79b031545754477fd82e1bb8e5cfe86ac6051076e18d2f92eedf0c7d + checksum: 455c9a2d8e76194dcae9ec216c05472646c998e9bce6a53cc7b119f2df9b9b139de4acf31485d9137c49dce7f2468ae48aa647a3bb8a644080f143718f0b4658 languageName: node linkType: hard -"@react-types/shared@npm:^3.19.0, @react-types/shared@npm:^3.22.0": +"@react-types/select@npm:^3.9.4": + version: 3.9.4 + resolution: "@react-types/select@npm:3.9.4" + dependencies: + "@react-types/shared": "npm:^3.23.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 630f1ac7381e61e91546ee1dd567928d1b0cd151d699c1b3e7a5ad7824aa1f786c1d4efd70ff6626f8cf80eac2ae9666a1d18b7fd72c31ff41073da50abac622 + languageName: node + linkType: hard + +"@react-types/shared@npm:^3.19.0": version: 3.22.0 resolution: "@react-types/shared@npm:3.22.0" peerDependencies: @@ -3953,71 +4381,80 @@ __metadata: languageName: node linkType: hard -"@react-types/slider@npm:^3.7.0": - version: 3.7.0 - resolution: "@react-types/slider@npm:3.7.0" +"@react-types/shared@npm:^3.23.1": + version: 3.23.1 + resolution: "@react-types/shared@npm:3.23.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 1ea30702a408554e45b827e66ebf2a9674aec7d7d04a4f3723f2fe1c677be36701d5f08d4914d6018c4bcb6f2fe07d8c3a5840dfe3299ee69092b78c723c9c03 + languageName: node + linkType: hard + +"@react-types/slider@npm:^3.7.3": + version: 3.7.3 + resolution: "@react-types/slider@npm:3.7.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d1683f71e872db02fbe8c699b4647cb3b729bde94077e4f01d19c0f3ad8be3a137c8be927bc4fe5b2f5a96dfa669ef411f82baa0af93f986c77545e99882c258 + checksum: 583cf97a5fd8150cff44ef9449192a10d5dc3111ad401cc72e6f961158e3369f8115e5858e5998687f5e936ffa8ff037d043ffaa3caf93dfe3f4a37d613fc6aa languageName: node linkType: hard -"@react-types/switch@npm:^3.5.0": - version: 3.5.0 - resolution: "@react-types/switch@npm:3.5.0" +"@react-types/switch@npm:^3.5.3": + version: 3.5.3 + resolution: "@react-types/switch@npm:3.5.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c562dea2175236ce2f77f969a6db87fcd77ab4f32331556f76c4004688d9da485dcfaa387f835d354fd8661b7a9c9422d850e67cbcf75ded2b3ac6f6a21c271e + checksum: b9ceadf6f2e0a18653f6762359767620c7381cba147da71180e3bc15f4f5df1b7e874bcd313f6a93bbeda40ebfd2daa5f5e6bd58f4bde07aefc965fae78cf9b8 languageName: node linkType: hard -"@react-types/table@npm:^3.9.2": - version: 3.9.2 - resolution: "@react-types/table@npm:3.9.2" +"@react-types/table@npm:^3.9.5": + version: 3.9.5 + resolution: "@react-types/table@npm:3.9.5" dependencies: - "@react-types/grid": "npm:^3.2.3" - "@react-types/shared": "npm:^3.22.0" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c7ad042ba7a3daffbfb1b278fec198e19a102ffb28117505294ce5f4fe10581062e9190a32ccfd9ee132225d438509e214d68a8df26ec25739db26de882321ee + checksum: e982e76fd87e0d6c9b0a15ca7c7315aac03ab14eba469385e9974237af18d5f7ee937682b62d4e9851e2ed4c0a1504e13b5cf57df848ad622ef9a7a1aa250546 languageName: node linkType: hard -"@react-types/tabs@npm:^3.3.4": - version: 3.3.4 - resolution: "@react-types/tabs@npm:3.3.4" +"@react-types/tabs@npm:^3.3.7": + version: 3.3.7 + resolution: "@react-types/tabs@npm:3.3.7" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 4a314f24879205d48d12b558a3af03da67d827d7c5f1a3b161a38efdf796b2394b01945ca48ff4452f818c8d07a5ada9c90a0a760fcc7105ea5799dc0e64da1b + checksum: 83ca1ddb6890c00c7920c81b8aedfbfe940776f430ceb78651897ded54e1f478dc6f9e755a8a92796dd4607296a53dd54ec298f7dede1e2b4ca593b6c210c484 languageName: node linkType: hard -"@react-types/textfield@npm:^3.9.0": - version: 3.9.0 - resolution: "@react-types/textfield@npm:3.9.0" +"@react-types/textfield@npm:^3.9.3": + version: 3.9.3 + resolution: "@react-types/textfield@npm:3.9.3" dependencies: - "@react-types/shared": "npm:^3.22.0" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 993cc525649e5a7be67580b18b5539c77915c75902d23fe7a7fbc572ee35dccba8128a53bd6a82069751bc21611937d06492b518f2acd9aa80a86075dd336afb + checksum: 8fc6f551d57ae0ea31f1386475d613444835253abc04e2acaa00a3779c0e8755a501f0756276fbfc00190e194f7b2350e00a60bf0defeaff3fd29f5b8ca7dd4d languageName: node linkType: hard -"@react-types/tooltip@npm:^3.4.6": - version: 3.4.6 - resolution: "@react-types/tooltip@npm:3.4.6" +"@react-types/tooltip@npm:^3.4.9": + version: 3.4.9 + resolution: "@react-types/tooltip@npm:3.4.9" dependencies: - "@react-types/overlays": "npm:^3.8.4" - "@react-types/shared": "npm:^3.22.0" + "@react-types/overlays": "npm:^3.8.7" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: d312ae556488949101cc462a69091a7174b2b0d8937efc32a0da6d385135f2fefeaa813b7c86bf7cbe4256f503b8b99f312d4399aa71c00b77706c222fc142c0 + checksum: 9f25925f182d3827c96e4f3a3e71379ec362e12c637744830785480cbf57ad64fbb529090bf2f871ec6c1213adacfeb30e25135a882ec1f171a0c75b053c02d4 languageName: node linkType: hard @@ -4448,6 +4885,120 @@ __metadata: languageName: node linkType: hard +"@storybook/channels@npm:8.1.8": + version: 8.1.8 + resolution: "@storybook/channels@npm:8.1.8" + dependencies: + "@storybook/client-logger": "npm:8.1.8" + "@storybook/core-events": "npm:8.1.8" + "@storybook/global": "npm:^5.0.0" + telejson: "npm:^7.2.0" + tiny-invariant: "npm:^1.3.1" + checksum: 4c70f6b92b83e30f2ea7e8de11f281d42b008a4e5843187412d5a724a350caee7aed59bf78009c0c5d59ec691cf91f47b851726f77fdbb8b51a9b35445750195 + languageName: node + linkType: hard + +"@storybook/client-logger@npm:8.1.8": + version: 8.1.8 + resolution: "@storybook/client-logger@npm:8.1.8" + dependencies: + "@storybook/global": "npm:^5.0.0" + checksum: b7a988dfdec7ee018dc15f4eabc2cf345ddf563e15e52d4535e80419f0d91e4c9a8acb6891202eb1969f4883ae3227b19651a2c9c57f24f122b4a761d5e0082a + languageName: node + linkType: hard + +"@storybook/core-events@npm:8.1.8": + version: 8.1.8 + resolution: "@storybook/core-events@npm:8.1.8" + dependencies: + "@storybook/csf": "npm:^0.1.7" + ts-dedent: "npm:^2.0.0" + checksum: 5038a847e193d70ed4137f1133274cc6675af2676421c7924254eae982744774376be86b8aa3f670329a3eeac64ac1ad53e24548c904b78ff8c59d64b9fa4ab1 + languageName: node + linkType: hard + +"@storybook/csf@npm:^0.1.7": + version: 0.1.8 + resolution: "@storybook/csf@npm:0.1.8" + dependencies: + type-fest: "npm:^2.19.0" + checksum: 0cc01216a8888012bd1b33743cfeab83f16d028ba40ff02d39215a827e899451a39aef6b3a30342cdc4f87567d45f93074cfe05bdb8a34561c636ac7d8a13cfd + languageName: node + linkType: hard + +"@storybook/global@npm:^5.0.0": + version: 5.0.0 + resolution: "@storybook/global@npm:5.0.0" + checksum: 0e7b495f4fe7f36447e793926f1c0460ec07fd66f0da68e3150da5878f6043c9eeb9b41614a45c5ec0d48d5d383c59ca8f88b6dc7882a2a784ac9b20375d8edb + languageName: node + linkType: hard + +"@storybook/instrumenter@npm:8.1.8": + version: 8.1.8 + resolution: "@storybook/instrumenter@npm:8.1.8" + dependencies: + "@storybook/channels": "npm:8.1.8" + "@storybook/client-logger": "npm:8.1.8" + "@storybook/core-events": "npm:8.1.8" + "@storybook/global": "npm:^5.0.0" + "@storybook/preview-api": "npm:8.1.8" + "@vitest/utils": "npm:^1.3.1" + util: "npm:^0.12.4" + checksum: d7043cfa1e54dc7ab03fc37f1d644a549049290f0748a4664d3116812c9b72aef0efa779fd817d32226a0a9a0e671c3c55b22d33f90b769a25060587c5038d9b + languageName: node + linkType: hard + +"@storybook/preview-api@npm:8.1.8": + version: 8.1.8 + resolution: "@storybook/preview-api@npm:8.1.8" + dependencies: + "@storybook/channels": "npm:8.1.8" + "@storybook/client-logger": "npm:8.1.8" + "@storybook/core-events": "npm:8.1.8" + "@storybook/csf": "npm:^0.1.7" + "@storybook/global": "npm:^5.0.0" + "@storybook/types": "npm:8.1.8" + "@types/qs": "npm:^6.9.5" + dequal: "npm:^2.0.2" + lodash: "npm:^4.17.21" + memoizerific: "npm:^1.11.3" + qs: "npm:^6.10.0" + tiny-invariant: "npm:^1.3.1" + ts-dedent: "npm:^2.0.0" + util-deprecate: "npm:^1.0.2" + checksum: 0025dbdac14d271ba1fc01b3879b6e1afe0d1da6fa25bcb236f68f354c4b68a4ab186aca90654cb2a54689222ab6f434f01df5eb091fc963e2889099e05293fb + languageName: node + linkType: hard + +"@storybook/test@npm:^8.1.1": + version: 8.1.8 + resolution: "@storybook/test@npm:8.1.8" + dependencies: + "@storybook/client-logger": "npm:8.1.8" + "@storybook/core-events": "npm:8.1.8" + "@storybook/instrumenter": "npm:8.1.8" + "@storybook/preview-api": "npm:8.1.8" + "@testing-library/dom": "npm:^9.3.4" + "@testing-library/jest-dom": "npm:^6.4.2" + "@testing-library/user-event": "npm:^14.5.2" + "@vitest/expect": "npm:1.3.1" + "@vitest/spy": "npm:^1.3.1" + util: "npm:^0.12.4" + checksum: d379cc6c3fb5cb00ff84e9724302d7bfce0dc370597c17fb3ba94f433e95a94c962c41a9b37afab2a397ec06e454d7a283e1d5234a0e59402ff36b1f849383ec + languageName: node + linkType: hard + +"@storybook/types@npm:8.1.8": + version: 8.1.8 + resolution: "@storybook/types@npm:8.1.8" + dependencies: + "@storybook/channels": "npm:8.1.8" + "@types/express": "npm:^4.7.0" + file-system-cache: "npm:2.3.0" + checksum: c2d3336c54689d3d0629faa3b5f513d1c9b57db044d957c96bfcec38568c204397f7cdb6210fa0c3df8bcaf634ff00253abfbf9bc3f215ea3128493f0de254fa + languageName: node + linkType: hard + "@svgr/babel-plugin-add-jsx-attribute@npm:8.0.0": version: 8.0.0 resolution: "@svgr/babel-plugin-add-jsx-attribute@npm:8.0.0" @@ -4575,16 +5126,6 @@ __metadata: languageName: node linkType: hard -"@swc/helpers@npm:^0.4.14": - version: 0.4.36 - resolution: "@swc/helpers@npm:0.4.36" - dependencies: - legacy-swc-helpers: "npm:@swc/helpers@=0.4.14" - tslib: "npm:^2.4.0" - checksum: fe1e51af79315b58f648d0f377cbd3e8c3cc8c0a6d9b2435a2935c5d1bbb483fb3299e8fcb2f360488b5c4fc4e06494d42c751bf4f853c3582cf467791b2a161 - languageName: node - linkType: hard - "@swc/helpers@npm:^0.5.0": version: 0.5.3 resolution: "@swc/helpers@npm:0.5.3" @@ -4659,15 +5200,15 @@ __metadata: languageName: node linkType: hard -"@tanstack/react-table@npm:^8.9.9": - version: 8.11.6 - resolution: "@tanstack/react-table@npm:8.11.6" +"@tanstack/react-table@npm:^8.13.2": + version: 8.17.3 + resolution: "@tanstack/react-table@npm:8.17.3" dependencies: - "@tanstack/table-core": "npm:8.11.6" + "@tanstack/table-core": "npm:8.17.3" peerDependencies: - react: ">=16" - react-dom: ">=16" - checksum: b8b73d987d3656c3046697d89884438c4dcecfd7a567d6492823d067cb3c7466030065b3e970f59bbd9e413e829f179601353a31ff426a06f7a955c7dd4add5a + react: ">=16.8" + react-dom: ">=16.8" + checksum: 196aa931634eda2f5d5d2947c8deb9f79465e3a15b778fc9ae158640aa85a28f3ba1b150c4428932588407336891b735ba4f516441887e03f221a8a6044be8cc languageName: node linkType: hard @@ -4683,10 +5224,10 @@ __metadata: languageName: node linkType: hard -"@tanstack/table-core@npm:8.11.6": - version: 8.11.6 - resolution: "@tanstack/table-core@npm:8.11.6" - checksum: f3a286f2f6bc4831d076cc4a59036b92309e2e9286256704bfb69c06c22a28172417e403422c31a9199f0a82a799d6252f60e5c211994afb84e73be95af96d87 +"@tanstack/table-core@npm:8.17.3": + version: 8.17.3 + resolution: "@tanstack/table-core@npm:8.17.3" + checksum: 67abd32c6ae12514f8a72d1bdb96061982e9988eae2e6084e043d73f8a9c22e9f4c2ba804ddbc23093116ea86a08b9db24488d539252d265e95988ebeddee350 languageName: node linkType: hard @@ -4697,7 +5238,7 @@ __metadata: languageName: node linkType: hard -"@testing-library/dom@npm:^9.0.0, @testing-library/dom@npm:^9.3.3": +"@testing-library/dom@npm:^9.0.0, @testing-library/dom@npm:^9.3.3, @testing-library/dom@npm:^9.3.4": version: 9.3.4 resolution: "@testing-library/dom@npm:9.3.4" dependencies: @@ -4743,6 +5284,39 @@ __metadata: languageName: node linkType: hard +"@testing-library/jest-dom@npm:^6.4.2": + version: 6.4.6 + resolution: "@testing-library/jest-dom@npm:6.4.6" + dependencies: + "@adobe/css-tools": "npm:^4.4.0" + "@babel/runtime": "npm:^7.9.2" + aria-query: "npm:^5.0.0" + chalk: "npm:^3.0.0" + css.escape: "npm:^1.5.1" + dom-accessibility-api: "npm:^0.6.3" + lodash: "npm:^4.17.21" + redent: "npm:^3.0.0" + peerDependencies: + "@jest/globals": ">= 28" + "@types/bun": "*" + "@types/jest": ">= 28" + jest: ">= 28" + vitest: ">= 0.32" + peerDependenciesMeta: + "@jest/globals": + optional: true + "@types/bun": + optional: true + "@types/jest": + optional: true + jest: + optional: true + vitest: + optional: true + checksum: 94fad29d740ff2c34967c644e2481a472aa8eeb1f11cdec5d4f81f14b2576660387551264c0fa718c15bfc61dd342f7621d888fe3e4ba1b7f830fe65bdd37bc8 + languageName: node + linkType: hard + "@testing-library/react@npm:^14.1.2": version: 14.1.2 resolution: "@testing-library/react@npm:14.1.2" @@ -4757,7 +5331,7 @@ __metadata: languageName: node linkType: hard -"@testing-library/user-event@npm:^14.5.1": +"@testing-library/user-event@npm:^14.5.1, @testing-library/user-event@npm:^14.5.2": version: 14.5.2 resolution: "@testing-library/user-event@npm:14.5.2" peerDependencies: @@ -5113,6 +5687,16 @@ __metadata: languageName: node linkType: hard +"@types/body-parser@npm:*": + version: 1.19.5 + resolution: "@types/body-parser@npm:1.19.5" + dependencies: + "@types/connect": "npm:*" + "@types/node": "npm:*" + checksum: 1e251118c4b2f61029cc43b0dc028495f2d1957fe8ee49a707fb940f86a9bd2f9754230805598278fe99958b49e9b7e66eec8ef6a50ab5c1f6b93e1ba2aaba82 + languageName: node + linkType: hard + "@types/chai-subset@npm:^1.3.3": version: 1.3.5 resolution: "@types/chai-subset@npm:1.3.5" @@ -5129,6 +5713,15 @@ __metadata: languageName: node linkType: hard +"@types/connect@npm:*": + version: 3.4.38 + resolution: "@types/connect@npm:3.4.38" + dependencies: + "@types/node": "npm:*" + checksum: 7eb1bc5342a9604facd57598a6c62621e244822442976c443efb84ff745246b10d06e8b309b6e80130026a396f19bf6793b7cecd7380169f369dac3bfc46fb99 + languageName: node + linkType: hard + "@types/cookie@npm:^0.6.0": version: 0.6.0 resolution: "@types/cookie@npm:0.6.0" @@ -5440,6 +6033,30 @@ __metadata: languageName: node linkType: hard +"@types/express-serve-static-core@npm:^4.17.33": + version: 4.19.3 + resolution: "@types/express-serve-static-core@npm:4.19.3" + dependencies: + "@types/node": "npm:*" + "@types/qs": "npm:*" + "@types/range-parser": "npm:*" + "@types/send": "npm:*" + checksum: f07b8f365caae1680ca061f2c60d8e32612002ba286e65b5a8a9012a911931075d28e8ad38d7dbfad1ebf20172b455268e9674a653e813da7f1a547ae1fad8af + languageName: node + linkType: hard + +"@types/express@npm:^4.7.0": + version: 4.17.21 + resolution: "@types/express@npm:4.17.21" + dependencies: + "@types/body-parser": "npm:*" + "@types/express-serve-static-core": "npm:^4.17.33" + "@types/qs": "npm:*" + "@types/serve-static": "npm:*" + checksum: 7a6d26cf6f43d3151caf4fec66ea11c9d23166e4f3102edfe45a94170654a54ea08cf3103d26b3928d7ebcc24162c90488e33986b7e3a5f8941225edd5eb18c7 + languageName: node + linkType: hard + "@types/geojson@npm:*": version: 7946.0.13 resolution: "@types/geojson@npm:7946.0.13" @@ -5464,6 +6081,13 @@ __metadata: languageName: node linkType: hard +"@types/http-errors@npm:*": + version: 2.0.4 + resolution: "@types/http-errors@npm:2.0.4" + checksum: 1f3d7c3b32c7524811a45690881736b3ef741bf9849ae03d32ad1ab7062608454b150a4e7f1351f83d26a418b2d65af9bdc06198f1c079d75578282884c4e8e3 + languageName: node + linkType: hard + "@types/istanbul-lib-coverage@npm:^2.0.1": version: 2.0.6 resolution: "@types/istanbul-lib-coverage@npm:2.0.6" @@ -5544,6 +6168,13 @@ __metadata: languageName: node linkType: hard +"@types/mime@npm:^1": + version: 1.3.5 + resolution: "@types/mime@npm:1.3.5" + checksum: e29a5f9c4776f5229d84e525b7cd7dd960b51c30a0fb9a028c0821790b82fca9f672dab56561e2acd9e8eed51d431bde52eafdfef30f643586c4162f1aecfc78 + languageName: node + linkType: hard + "@types/minimist@npm:^1.2.0": version: 1.2.5 resolution: "@types/minimist@npm:1.2.5" @@ -5613,6 +6244,20 @@ __metadata: languageName: node linkType: hard +"@types/qs@npm:*, @types/qs@npm:^6.9.5": + version: 6.9.15 + resolution: "@types/qs@npm:6.9.15" + checksum: 97d8208c2b82013b618e7a9fc14df6bd40a73e1385ac479b6896bafc7949a46201c15f42afd06e86a05e914f146f495f606b6fb65610cc60cf2e0ff743ec38a2 + languageName: node + linkType: hard + +"@types/range-parser@npm:*": + version: 1.2.7 + resolution: "@types/range-parser@npm:1.2.7" + checksum: 95640233b689dfbd85b8c6ee268812a732cf36d5affead89e806fe30da9a430767af8ef2cd661024fd97e19d61f3dec75af2df5e80ec3bea000019ab7028629a + languageName: node + linkType: hard + "@types/react-dom@npm:^18.0.0, @types/react-dom@npm:^18.2.7": version: 18.2.18 resolution: "@types/react-dom@npm:18.2.18" @@ -5695,6 +6340,27 @@ __metadata: languageName: node linkType: hard +"@types/send@npm:*": + version: 0.17.4 + resolution: "@types/send@npm:0.17.4" + dependencies: + "@types/mime": "npm:^1" + "@types/node": "npm:*" + checksum: 28320a2aa1eb704f7d96a65272a07c0bf3ae7ed5509c2c96ea5e33238980f71deeed51d3631927a77d5250e4091b3e66bce53b42d770873282c6a20bb8b0280d + languageName: node + linkType: hard + +"@types/serve-static@npm:*": + version: 1.15.7 + resolution: "@types/serve-static@npm:1.15.7" + dependencies: + "@types/http-errors": "npm:*" + "@types/node": "npm:*" + "@types/send": "npm:*" + checksum: c5a7171d5647f9fbd096ed1a26105759f3153ccf683824d99fee4c7eb9cde2953509621c56a070dd9fb1159e799e86d300cbe4e42245ebc5b0c1767e8ca94a67 + languageName: node + linkType: hard + "@types/statuses@npm:^2.0.4": version: 2.0.4 resolution: "@types/statuses@npm:2.0.4" @@ -5911,10 +6577,21 @@ __metadata: version: 1.2.0 resolution: "@vitest/expect@npm:1.2.0" dependencies: - "@vitest/spy": "npm:1.2.0" - "@vitest/utils": "npm:1.2.0" + "@vitest/spy": "npm:1.2.0" + "@vitest/utils": "npm:1.2.0" + chai: "npm:^4.3.10" + checksum: 279aff5e6c62794b3ad00aacf67e0003dfb40f2e4e54a5811145163711ec0ca6da7fbcf96e775184f7170948fca34508c260fbc31169d1d83a0c9a11a0547fbf + languageName: node + linkType: hard + +"@vitest/expect@npm:1.3.1": + version: 1.3.1 + resolution: "@vitest/expect@npm:1.3.1" + dependencies: + "@vitest/spy": "npm:1.3.1" + "@vitest/utils": "npm:1.3.1" chai: "npm:^4.3.10" - checksum: 279aff5e6c62794b3ad00aacf67e0003dfb40f2e4e54a5811145163711ec0ca6da7fbcf96e775184f7170948fca34508c260fbc31169d1d83a0c9a11a0547fbf + checksum: 7c2818b2080ec107cffcc1566195132695c8e87cba883e878c2f36ac4d8107bb0a1f8d3823ccc0da5989e245ea114b8afffe790512aebcde8537ac8c1bcf3454 languageName: node linkType: hard @@ -5980,6 +6657,24 @@ __metadata: languageName: node linkType: hard +"@vitest/spy@npm:1.3.1": + version: 1.3.1 + resolution: "@vitest/spy@npm:1.3.1" + dependencies: + tinyspy: "npm:^2.2.0" + checksum: 544c8a30fdeb32fb7bf2c2b5816519be943f5ef90668c306b14efdde7676771d0e83cf0e0a5c79fad722be3839432226bcf74173110a032299821e00b67f47e6 + languageName: node + linkType: hard + +"@vitest/spy@npm:^1.3.1": + version: 1.6.0 + resolution: "@vitest/spy@npm:1.6.0" + dependencies: + tinyspy: "npm:^2.2.0" + checksum: 1c9698272a58aa47708bb8a1672d655fcec3285b02067cc3f70bfe76f4eda7a756eb379f8c945ccbe61677f5189aeb5ba93c2737a9d7db2de8c4e7bbdffcd372 + languageName: node + linkType: hard + "@vitest/utils@npm:0.34.6": version: 0.34.6 resolution: "@vitest/utils@npm:0.34.6" @@ -6003,6 +6698,30 @@ __metadata: languageName: node linkType: hard +"@vitest/utils@npm:1.3.1": + version: 1.3.1 + resolution: "@vitest/utils@npm:1.3.1" + dependencies: + diff-sequences: "npm:^29.6.3" + estree-walker: "npm:^3.0.3" + loupe: "npm:^2.3.7" + pretty-format: "npm:^29.7.0" + checksum: 170c62e6c348562f611d8caddc893e8cba75ed89986e09aa2f0fe6812c96664e8d0f6e329f7a96a4c9cdecf147f4853e4054c3db597b111ec993d3cdd546eddc + languageName: node + linkType: hard + +"@vitest/utils@npm:^1.3.1": + version: 1.6.0 + resolution: "@vitest/utils@npm:1.6.0" + dependencies: + diff-sequences: "npm:^29.6.3" + estree-walker: "npm:^3.0.3" + loupe: "npm:^2.3.7" + pretty-format: "npm:^29.7.0" + checksum: 5c5d7295ac13fcea1da039232bcc7c3fc6f070070fe12ba2ad152456af6e216e48a3ae169016cfcd5055706a00dc567b8f62e4a9b1914f069f52b8f0a3c25e60 + languageName: node + linkType: hard + "abab@npm:^2.0.6": version: 2.0.6 resolution: "abab@npm:2.0.6" @@ -6455,13 +7174,6 @@ __metadata: languageName: node linkType: hard -"attr-accept@npm:^2.2.2": - version: 2.2.2 - resolution: "attr-accept@npm:2.2.2" - checksum: c867ed41ed749988ad2a6fc70eb2498b9c3c2d58aaad2a8d05422a383058f9d29e50c4bca363c5ee7433df738a7920cc95377bbce8678e817fb498299dd82010 - languageName: node - linkType: hard - "autoprefixer@npm:^10.4.4": version: 10.4.16 resolution: "autoprefixer@npm:10.4.16" @@ -6487,6 +7199,15 @@ __metadata: languageName: node linkType: hard +"available-typed-arrays@npm:^1.0.7": + version: 1.0.7 + resolution: "available-typed-arrays@npm:1.0.7" + dependencies: + possible-typed-array-names: "npm:^1.0.0" + checksum: 6c9da3a66caddd83c875010a1ca8ef11eac02ba15fb592dc9418b2b5e7b77b645fa7729380a92d9835c2f05f2ca1b6251f39b993e0feb3f1517c74fa1af02cab + languageName: node + linkType: hard + "axe-core@npm:=4.7.0": version: 4.7.0 resolution: "axe-core@npm:4.7.0" @@ -6773,6 +7494,19 @@ __metadata: languageName: node linkType: hard +"call-bind@npm:^1.0.7": + version: 1.0.7 + resolution: "call-bind@npm:1.0.7" + dependencies: + es-define-property: "npm:^1.0.0" + es-errors: "npm:^1.3.0" + function-bind: "npm:^1.1.2" + get-intrinsic: "npm:^1.2.4" + set-function-length: "npm:^1.2.1" + checksum: cd6fe658e007af80985da5185bff7b55e12ef4c2b6f41829a26ed1eef254b1f1c12e3dfd5b2b068c6ba8b86aba62390842d81752e67dcbaec4f6f76e7113b6b7 + languageName: node + linkType: hard + "call-me-maybe@npm:^1.0.1": version: 1.0.2 resolution: "call-me-maybe@npm:1.0.2" @@ -6997,6 +7731,13 @@ __metadata: languageName: node linkType: hard +"clsx@npm:^2.1.0": + version: 2.1.1 + resolution: "clsx@npm:2.1.1" + checksum: cdfb57fa6c7649bbff98d9028c2f0de2f91c86f551179541cf784b1cfdc1562dcb951955f46d54d930a3879931a980e32a46b598acaea274728dbe068deca919 + languageName: node + linkType: hard + "color-convert@npm:^1.9.0": version: 1.9.3 resolution: "color-convert@npm:1.9.3" @@ -7571,6 +8312,13 @@ __metadata: languageName: node linkType: hard +"date-fns@npm:^3.3.1": + version: 3.6.0 + resolution: "date-fns@npm:3.6.0" + checksum: cac35c58926a3b5d577082ff2b253612ec1c79eb6754fddef46b6a8e826501ea2cb346ecbd211205f1ba382ddd1f9d8c3f00bf433ad63cc3063454d294e3a6b8 + languageName: node + linkType: hard + "debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" @@ -7692,6 +8440,17 @@ __metadata: languageName: node linkType: hard +"define-data-property@npm:^1.1.4": + version: 1.1.4 + resolution: "define-data-property@npm:1.1.4" + dependencies: + es-define-property: "npm:^1.0.0" + es-errors: "npm:^1.3.0" + gopd: "npm:^1.0.1" + checksum: abdcb2505d80a53524ba871273e5da75e77e52af9e15b3aa65d8aad82b8a3a424dad7aee2cc0b71470ac7acf501e08defac362e8b6a73cdb4309f028061df4ae + languageName: node + linkType: hard + "define-lazy-prop@npm:^2.0.0": version: 2.0.0 resolution: "define-lazy-prop@npm:2.0.0" @@ -7740,7 +8499,7 @@ __metadata: languageName: node linkType: hard -"dequal@npm:^2.0.3": +"dequal@npm:^2.0.2, dequal@npm:^2.0.3": version: 2.0.3 resolution: "dequal@npm:2.0.3" checksum: 6ff05a7561f33603df87c45e389c9ac0a95e3c056be3da1a0c4702149e3a7f6fe5ffbb294478687ba51a9e95f3a60e8b6b9005993acd79c292c7d15f71964b6b @@ -7992,6 +8751,22 @@ __metadata: languageName: node linkType: hard +"es-define-property@npm:^1.0.0": + version: 1.0.0 + resolution: "es-define-property@npm:1.0.0" + dependencies: + get-intrinsic: "npm:^1.2.4" + checksum: f66ece0a887b6dca71848fa71f70461357c0e4e7249696f81bad0a1f347eed7b31262af4a29f5d726dc026426f085483b6b90301855e647aa8e21936f07293c6 + languageName: node + linkType: hard + +"es-errors@npm:^1.3.0": + version: 1.3.0 + resolution: "es-errors@npm:1.3.0" + checksum: 96e65d640156f91b707517e8cdc454dd7d47c32833aa3e85d79f24f9eb7ea85f39b63e36216ef0114996581969b59fe609a94e30316b08f5f4df1d44134cf8d5 + languageName: node + linkType: hard + "es-get-iterator@npm:^1.1.3": version: 1.1.3 resolution: "es-get-iterator@npm:1.1.3" @@ -8649,12 +9424,13 @@ __metadata: languageName: node linkType: hard -"file-selector@npm:^0.6.0": - version: 0.6.0 - resolution: "file-selector@npm:0.6.0" +"file-system-cache@npm:2.3.0": + version: 2.3.0 + resolution: "file-system-cache@npm:2.3.0" dependencies: - tslib: "npm:^2.4.0" - checksum: 6add4098ae07fd1e9050b1e8d3fd9f128680c1d6648c0676af54ace4586e6e5bfcb8fdfa45b69e9131ffd8175bf630d54a445a5facf9be244f85b99ce309183e + fs-extra: "npm:11.1.1" + ramda: "npm:0.29.0" + checksum: 8f0530aaa8bed115ef1b00f69accde8d1311d0eaffc6e37bb0b5057b8be79e6e960823025ea3c980a58147eed0ba690b9906c2229e132f5d96158e9b635a052c languageName: node linkType: hard @@ -8712,29 +9488,6 @@ __metadata: languageName: node linkType: hard -"focus-trap-react@npm:^10.1.1": - version: 10.2.3 - resolution: "focus-trap-react@npm:10.2.3" - dependencies: - focus-trap: "npm:^7.5.4" - tabbable: "npm:^6.2.0" - peerDependencies: - prop-types: ^15.8.1 - react: ">=16.3.0" - react-dom: ">=16.3.0" - checksum: 64c39cbc44c37319ac5c96c9b105798ac7d36e477878adca3cf9c9099edd72db960ce97a7b281ef612d5c1bca7d425331c25dec030e3e34120003a948c8553a8 - languageName: node - linkType: hard - -"focus-trap@npm:^7.5.4": - version: 7.5.4 - resolution: "focus-trap@npm:7.5.4" - dependencies: - tabbable: "npm:^6.2.0" - checksum: e9059aae46b8f18721e868bd73e1fec3d8cbb4f6e4e89feb9a708af505a2dd5c93f87468895f1d908cd4dec1b2f35824dfcd1623cf3adbfb5c6c8c589ed59dcf - languageName: node - linkType: hard - "follow-redirects@npm:^1.15.4": version: 1.15.5 resolution: "follow-redirects@npm:1.15.5" @@ -8803,6 +9556,24 @@ __metadata: languageName: node linkType: hard +"formik@npm:^2.4.6": + version: 2.4.6 + resolution: "formik@npm:2.4.6" + dependencies: + "@types/hoist-non-react-statics": "npm:^3.3.1" + deepmerge: "npm:^2.1.1" + hoist-non-react-statics: "npm:^3.3.0" + lodash: "npm:^4.17.21" + lodash-es: "npm:^4.17.21" + react-fast-compare: "npm:^2.0.1" + tiny-warning: "npm:^1.0.2" + tslib: "npm:^2.0.0" + peerDependencies: + react: ">=16.8.0" + checksum: 65d6845d913cfceebdbb1e34d498725965e07abd4c17f3ea9eeba77d9fab7d3b0f726fdfcae73f002b660ba56b236abc8d8aa6670a9c7cc0db27afebf6e48f4b + languageName: node + linkType: hard + "fraction.js@npm:^4.3.6": version: 4.3.7 resolution: "fraction.js@npm:4.3.7" @@ -8810,6 +9581,17 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:11.1.1": + version: 11.1.1 + resolution: "fs-extra@npm:11.1.1" + dependencies: + graceful-fs: "npm:^4.2.0" + jsonfile: "npm:^6.0.1" + universalify: "npm:^2.0.0" + checksum: c4e9fabf9762a70d1403316b7faa899f3d3303c8afa765b891c2210fdeba368461e04ae1203920b64ef6a7d066a39ab8cef2160b5ce8d1011bb4368688cd9bb7 + languageName: node + linkType: hard + "fs-extra@npm:^11.2.0": version: 11.2.0 resolution: "fs-extra@npm:11.2.0" @@ -8949,6 +9731,19 @@ __metadata: languageName: node linkType: hard +"get-intrinsic@npm:^1.2.4": + version: 1.2.4 + resolution: "get-intrinsic@npm:1.2.4" + dependencies: + es-errors: "npm:^1.3.0" + function-bind: "npm:^1.1.2" + has-proto: "npm:^1.0.1" + has-symbols: "npm:^1.0.3" + hasown: "npm:^2.0.0" + checksum: 85bbf4b234c3940edf8a41f4ecbd4e25ce78e5e6ad4e24ca2f77037d983b9ef943fd72f00f3ee97a49ec622a506b67db49c36246150377efcda1c9eb03e5f06d + languageName: node + linkType: hard + "get-stdin@npm:^4.0.1": version: 4.0.1 resolution: "get-stdin@npm:4.0.1" @@ -9178,6 +9973,15 @@ __metadata: languageName: node linkType: hard +"has-property-descriptors@npm:^1.0.2": + version: 1.0.2 + resolution: "has-property-descriptors@npm:1.0.2" + dependencies: + es-define-property: "npm:^1.0.0" + checksum: 2d8c9ab8cebb572e3362f7d06139a4592105983d4317e68f7adba320fe6ddfc8874581e0971e899e633fd5f72e262830edce36d5a0bc863dad17ad20572484b2 + languageName: node + linkType: hard + "has-proto@npm:^1.0.1": version: 1.0.1 resolution: "has-proto@npm:1.0.1" @@ -9201,6 +10005,15 @@ __metadata: languageName: node linkType: hard +"has-tostringtag@npm:^1.0.2": + version: 1.0.2 + resolution: "has-tostringtag@npm:1.0.2" + dependencies: + has-symbols: "npm:^1.0.3" + checksum: c74c5f5ceee3c8a5b8bc37719840dc3749f5b0306d818974141dda2471a1a2ca6c8e46b9d6ac222c5345df7a901c9b6f350b1e6d62763fec877e26609a401bfe + languageName: node + linkType: hard + "has-unicode@npm:^2.0.1": version: 2.0.1 resolution: "has-unicode@npm:2.0.1" @@ -9517,7 +10330,7 @@ __metadata: languageName: node linkType: hard -"is-arguments@npm:^1.1.1": +"is-arguments@npm:^1.0.4, is-arguments@npm:^1.1.1": version: 1.1.1 resolution: "is-arguments@npm:1.1.1" dependencies: @@ -9648,7 +10461,7 @@ __metadata: languageName: node linkType: hard -"is-generator-function@npm:^1.0.10": +"is-generator-function@npm:^1.0.10, is-generator-function@npm:^1.0.7": version: 1.0.10 resolution: "is-generator-function@npm:1.0.10" dependencies: @@ -9814,6 +10627,15 @@ __metadata: languageName: node linkType: hard +"is-typed-array@npm:^1.1.3": + version: 1.1.13 + resolution: "is-typed-array@npm:1.1.13" + dependencies: + which-typed-array: "npm:^1.1.14" + checksum: f850ba08286358b9a11aee6d93d371a45e3c59b5953549ee1c1a9a55ba5c1dd1bd9952488ae194ad8f32a9cf5e79c8fa5f0cc4d78c00720aa0bbcf238b38062d + languageName: node + linkType: hard + "is-unicode-supported@npm:^0.1.0": version: 0.1.0 resolution: "is-unicode-supported@npm:0.1.0" @@ -10238,15 +11060,6 @@ __metadata: languageName: node linkType: hard -"legacy-swc-helpers@npm:@swc/helpers@=0.4.14": - version: 0.4.14 - resolution: "@swc/helpers@npm:0.4.14" - dependencies: - tslib: "npm:^2.4.0" - checksum: 236afd445fb22e3df7aa84336d5c45d29e021ad01917aa7c24267330df8b39ed89c3d8d9836ac2ac7569b46923591d0e49174f72df7fb997aea841d08f374dbd - languageName: node - linkType: hard - "leven@npm:^3.1.0": version: 3.1.0 resolution: "leven@npm:3.1.0" @@ -10659,6 +11472,13 @@ __metadata: languageName: node linkType: hard +"map-or-similar@npm:^1.5.0": + version: 1.5.0 + resolution: "map-or-similar@npm:1.5.0" + checksum: 3cf43bcd0e7af41d7bade5f8b5be6bb9d021cc47e6008ad545d071cf3a709ba782884002f9eec6ccd51f572fc17841e07bf74628e0bc3694c33f4622b03e4b4c + languageName: node + linkType: hard + "markdown-it@npm:^14.0.0": version: 14.0.0 resolution: "markdown-it@npm:14.0.0" @@ -10689,6 +11509,15 @@ __metadata: languageName: node linkType: hard +"memoizerific@npm:^1.11.3": + version: 1.11.3 + resolution: "memoizerific@npm:1.11.3" + dependencies: + map-or-similar: "npm:^1.5.0" + checksum: 72b6b80699777d000f03db6e15fdabcd4afe77feb45be51fe195cb230c64a368fcfcfbb976375eac3283bd8193d6b1a67ac3081cae07f64fca73f1aa568d59e3 + languageName: node + linkType: hard + "meow@npm:^9.0.0": version: 9.0.0 resolution: "meow@npm:9.0.0" @@ -11875,6 +12704,13 @@ __metadata: languageName: node linkType: hard +"possible-typed-array-names@npm:^1.0.0": + version: 1.0.0 + resolution: "possible-typed-array-names@npm:1.0.0" + checksum: 8ed3e96dfeea1c5880c1f4c9cb707e5fb26e8be22f14f82ef92df20fd2004e635c62ba47fbe8f2bb63bfd80dac1474be2fb39798da8c2feba2815435d1f749af + languageName: node + linkType: hard + "postcss-import@npm:^15.1.0": version: 15.1.0 resolution: "postcss-import@npm:15.1.0" @@ -12135,7 +12971,7 @@ __metadata: languageName: node linkType: hard -"prop-types@npm:^15, prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1": +"prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1": version: 15.8.1 resolution: "prop-types@npm:15.8.1" dependencies: @@ -12375,7 +13211,7 @@ __metadata: "@axe-core/react": "npm:^4.8.2" "@faker-js/faker": "npm:^8.3.1" "@headlessui/react": "npm:^1.7.17" - "@pzh-ui/components": "npm:^0.0.452" + "@pzh-ui/components": "npm:^0.0.541" "@pzh-ui/config": "npm:^0.0.56" "@pzh-ui/css": "npm:^0.0.75" "@pzh-ui/icons": "npm:^0.0.47" @@ -12450,6 +13286,15 @@ __metadata: languageName: unknown linkType: soft +"qs@npm:^6.10.0": + version: 6.12.1 + resolution: "qs@npm:6.12.1" + dependencies: + side-channel: "npm:^1.0.6" + checksum: 035bcad2a1ab0175bac7a74c904c15913bdac252834149ccff988c93a51de02642fe7be10e43058ba4dc4094bb28ce9b59d12b9e91d40997f445cfde3ecc1c29 + languageName: node + linkType: hard + "querystringify@npm:^2.1.1": version: 2.2.0 resolution: "querystringify@npm:2.2.0" @@ -12471,51 +13316,92 @@ __metadata: languageName: node linkType: hard -"react-aria@npm:^3.26.0": - version: 3.31.1 - resolution: "react-aria@npm:3.31.1" - dependencies: - "@internationalized/string": "npm:^3.2.0" - "@react-aria/breadcrumbs": "npm:^3.5.9" - "@react-aria/button": "npm:^3.9.1" - "@react-aria/calendar": "npm:^3.5.4" - "@react-aria/checkbox": "npm:^3.13.0" - "@react-aria/combobox": "npm:^3.8.2" - "@react-aria/datepicker": "npm:^3.9.1" - "@react-aria/dialog": "npm:^3.5.10" - "@react-aria/dnd": "npm:^3.5.1" - "@react-aria/focus": "npm:^3.16.0" - "@react-aria/gridlist": "npm:^3.7.3" - "@react-aria/i18n": "npm:^3.10.0" - "@react-aria/interactions": "npm:^3.20.1" - "@react-aria/label": "npm:^3.7.4" - "@react-aria/link": "npm:^3.6.3" - "@react-aria/listbox": "npm:^3.11.3" - "@react-aria/menu": "npm:^3.12.0" - "@react-aria/meter": "npm:^3.4.9" - "@react-aria/numberfield": "npm:^3.10.2" - "@react-aria/overlays": "npm:^3.20.0" - "@react-aria/progress": "npm:^3.4.9" - "@react-aria/radio": "npm:^3.10.0" - "@react-aria/searchfield": "npm:^3.7.1" - "@react-aria/select": "npm:^3.14.1" - "@react-aria/selection": "npm:^3.17.3" - "@react-aria/separator": "npm:^3.3.9" - "@react-aria/slider": "npm:^3.7.4" - "@react-aria/ssr": "npm:^3.9.1" - "@react-aria/switch": "npm:^3.6.0" - "@react-aria/table": "npm:^3.13.3" - "@react-aria/tabs": "npm:^3.8.3" - "@react-aria/tag": "npm:^3.3.1" - "@react-aria/textfield": "npm:^3.14.1" - "@react-aria/tooltip": "npm:^3.7.0" - "@react-aria/utils": "npm:^3.23.0" - "@react-aria/visually-hidden": "npm:^3.8.8" - "@react-types/shared": "npm:^3.22.0" +"ramda@npm:0.29.0": + version: 0.29.0 + resolution: "ramda@npm:0.29.0" + checksum: b156660f2c58b4a13bcc4f1a0eabc1145d8db11d33d26a2fb03cd6adf3983a1c1f2bbaaf708c421029e9b09684262d056752623f7e62b79a503fb9217dec69d4 + languageName: node + linkType: hard + +"react-aria-components@npm:^1.1.1": + version: 1.2.1 + resolution: "react-aria-components@npm:1.2.1" + dependencies: + "@internationalized/date": "npm:^3.5.4" + "@internationalized/string": "npm:^3.2.3" + "@react-aria/color": "npm:3.0.0-beta.33" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/menu": "npm:^3.14.1" + "@react-aria/toolbar": "npm:3.0.0-beta.5" + "@react-aria/tree": "npm:3.0.0-alpha.1" + "@react-aria/utils": "npm:^3.24.1" + "@react-stately/color": "npm:^3.6.1" + "@react-stately/menu": "npm:^3.7.1" + "@react-stately/table": "npm:^3.11.8" + "@react-stately/utils": "npm:^3.10.1" + "@react-types/color": "npm:3.0.0-beta.25" + "@react-types/form": "npm:^3.7.4" + "@react-types/grid": "npm:^3.2.6" + "@react-types/shared": "npm:^3.23.1" + "@react-types/table": "npm:^3.9.5" + "@swc/helpers": "npm:^0.5.0" + client-only: "npm:^0.0.1" + react-aria: "npm:^3.33.1" + react-stately: "npm:^3.31.1" + use-sync-external-store: "npm:^1.2.0" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: c4e7a213d86fe9c9bcd11343dfa0339e1642a954bdc50b0ee2c9c4c42671fb13e59ccc3f2fdb5791f5449822b89b2f4f2e8ff97293f90114f250f7e33139dfd1 + checksum: 1733de845c141e04cc539f5da240deb503644d42a70d65e04527a81f2c7728070e4b15d08d6e5c588e8c872b200a615b5247f834afe091474e0905f0d1cf8e59 + languageName: node + linkType: hard + +"react-aria@npm:^3.32.1, react-aria@npm:^3.33.1": + version: 3.33.1 + resolution: "react-aria@npm:3.33.1" + dependencies: + "@internationalized/string": "npm:^3.2.3" + "@react-aria/breadcrumbs": "npm:^3.5.13" + "@react-aria/button": "npm:^3.9.5" + "@react-aria/calendar": "npm:^3.5.8" + "@react-aria/checkbox": "npm:^3.14.3" + "@react-aria/combobox": "npm:^3.9.1" + "@react-aria/datepicker": "npm:^3.10.1" + "@react-aria/dialog": "npm:^3.5.14" + "@react-aria/dnd": "npm:^3.6.1" + "@react-aria/focus": "npm:^3.17.1" + "@react-aria/gridlist": "npm:^3.8.1" + "@react-aria/i18n": "npm:^3.11.1" + "@react-aria/interactions": "npm:^3.21.3" + "@react-aria/label": "npm:^3.7.8" + "@react-aria/link": "npm:^3.7.1" + "@react-aria/listbox": "npm:^3.12.1" + "@react-aria/menu": "npm:^3.14.1" + "@react-aria/meter": "npm:^3.4.13" + "@react-aria/numberfield": "npm:^3.11.3" + "@react-aria/overlays": "npm:^3.22.1" + "@react-aria/progress": "npm:^3.4.13" + "@react-aria/radio": "npm:^3.10.4" + "@react-aria/searchfield": "npm:^3.7.5" + "@react-aria/select": "npm:^3.14.5" + "@react-aria/selection": "npm:^3.18.1" + "@react-aria/separator": "npm:^3.3.13" + "@react-aria/slider": "npm:^3.7.8" + "@react-aria/ssr": "npm:^3.9.4" + "@react-aria/switch": "npm:^3.6.4" + "@react-aria/table": "npm:^3.14.1" + "@react-aria/tabs": "npm:^3.9.1" + "@react-aria/tag": "npm:^3.4.1" + "@react-aria/textfield": "npm:^3.14.5" + "@react-aria/tooltip": "npm:^3.7.4" + "@react-aria/utils": "npm:^3.24.1" + "@react-aria/visually-hidden": "npm:^3.8.12" + "@react-types/shared": "npm:^3.23.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 + checksum: 545d789afa72ea4385452e9344742018be97544d668331486ff87cd1fc64153b494a0042c06dfc207ba271b20440cadf2a07fd4f94baee8e26c2c48ec78b58b6 languageName: node linkType: hard @@ -12528,7 +13414,7 @@ __metadata: languageName: node linkType: hard -"react-datepicker@npm:^4.16.0, react-datepicker@npm:^4.7.0": +"react-datepicker@npm:^4.7.0": version: 4.25.0 resolution: "react-datepicker@npm:4.25.0" dependencies: @@ -12545,6 +13431,22 @@ __metadata: languageName: node linkType: hard +"react-datepicker@npm:^6.9.0": + version: 6.9.0 + resolution: "react-datepicker@npm:6.9.0" + dependencies: + "@floating-ui/react": "npm:^0.26.2" + clsx: "npm:^2.1.0" + date-fns: "npm:^3.3.1" + prop-types: "npm:^15.7.2" + react-onclickoutside: "npm:^6.13.0" + peerDependencies: + react: ^16.9.0 || ^17 || ^18 + react-dom: ^16.9.0 || ^17 || ^18 + checksum: 7effd81e0e00e77d691c552bed77e2b08f7abc377528ae67727de9cc08eb05f7ec021f3daa40748dd7d32b12dd6cf2833eac0cbc2d9f3026fa8c606100752d32 + languageName: node + linkType: hard + "react-dom@npm:^18.2.0": version: 18.2.0 resolution: "react-dom@npm:18.2.0" @@ -12557,16 +13459,26 @@ __metadata: languageName: node linkType: hard -"react-dropzone@npm:^14.2.3": - version: 14.2.3 - resolution: "react-dropzone@npm:14.2.3" +"react-dom@npm:^18.3.1": + version: 18.3.1 + resolution: "react-dom@npm:18.3.1" + dependencies: + loose-envify: "npm:^1.1.0" + scheduler: "npm:^0.23.2" + peerDependencies: + react: ^18.3.1 + checksum: 3f4b73a3aa083091173b29812b10394dd06f4ac06aff410b74702cfb3aa29d7b0ced208aab92d5272919b612e5cda21aeb1d54191848cf6e46e9e354f3541f81 + languageName: node + linkType: hard + +"react-dropzone-esm@npm:^15.0.1": + version: 15.0.1 + resolution: "react-dropzone-esm@npm:15.0.1" dependencies: - attr-accept: "npm:^2.2.2" - file-selector: "npm:^0.6.0" prop-types: "npm:^15.8.1" peerDependencies: react: ">= 16.8 || 18.0.0" - checksum: 34cf1758a896795b579adab5f9cdc144330577ab1826a0b66ff9daa8c60a80ed6b31b8f989647664f2548cfe00b336e9c31a2f3dd8de43111c8318fcc89b279c + checksum: c6b9aa91fcb10f62a1d1758d38d6e38f1b4030419a321a477df70b05a6831a2bbe2dae4a926dece8543243bc6bba77521309b69eb707fc40f346391f554211dd languageName: node linkType: hard @@ -12653,17 +13565,6 @@ __metadata: languageName: node linkType: hard -"react-paginate@npm:^8.2.0": - version: 8.2.0 - resolution: "react-paginate@npm:8.2.0" - dependencies: - prop-types: "npm:^15" - peerDependencies: - react: ^16 || ^17 || ^18 - checksum: 13911c1db55a0ca0fa21c7e0df5e913be1febf7bd0ec7fde5618c48e0119ac45ff8920202c4fd7216f93244529180b4e91de41fc86a40be5e53dec14ae65956c - languageName: node - linkType: hard - "react-popper@npm:^2.3.0": version: 2.3.0 resolution: "react-popper@npm:2.3.0" @@ -12685,6 +13586,18 @@ __metadata: languageName: node linkType: hard +"react-responsive-pagination@npm:^2.4.2": + version: 2.5.0 + resolution: "react-responsive-pagination@npm:2.5.0" + dependencies: + prop-types: "npm:^15.8.1" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: d3126c17583d3481f674988197024a215fd95343446bcf004e42a90daec7b4ffeafbf6191fd8d9feb35435a5c81279bc853230d1e73e0f519ff7901be09d0123 + languageName: node + linkType: hard + "react-router-dom@npm:^6.14.2": version: 6.21.2 resolution: "react-router-dom@npm:6.21.2" @@ -12709,7 +13622,7 @@ __metadata: languageName: node linkType: hard -"react-select@npm:^5.7.3": +"react-select@npm:^5.8.0": version: 5.8.0 resolution: "react-select@npm:5.8.0" dependencies: @@ -12729,45 +13642,36 @@ __metadata: languageName: node linkType: hard -"react-stately@npm:^3.18.0": - version: 3.29.1 - resolution: "react-stately@npm:3.29.1" - dependencies: - "@react-stately/calendar": "npm:^3.4.3" - "@react-stately/checkbox": "npm:^3.6.1" - "@react-stately/collections": "npm:^3.10.4" - "@react-stately/combobox": "npm:^3.8.1" - "@react-stately/data": "npm:^3.11.0" - "@react-stately/datepicker": "npm:^3.9.1" - "@react-stately/dnd": "npm:^3.2.7" - "@react-stately/form": "npm:^3.0.0" - "@react-stately/list": "npm:^3.10.2" - "@react-stately/menu": "npm:^3.6.0" - "@react-stately/numberfield": "npm:^3.8.0" - "@react-stately/overlays": "npm:^3.6.4" - "@react-stately/radio": "npm:^3.10.1" - "@react-stately/searchfield": "npm:^3.5.0" - "@react-stately/select": "npm:^3.6.1" - "@react-stately/selection": "npm:^3.14.2" - "@react-stately/slider": "npm:^3.5.0" - "@react-stately/table": "npm:^3.11.4" - "@react-stately/tabs": "npm:^3.6.3" - "@react-stately/toggle": "npm:^3.7.0" - "@react-stately/tooltip": "npm:^3.4.6" - "@react-stately/tree": "npm:^3.7.5" - "@react-types/shared": "npm:^3.22.0" +"react-stately@npm:^3.30.1, react-stately@npm:^3.31.1": + version: 3.31.1 + resolution: "react-stately@npm:3.31.1" + dependencies: + "@react-stately/calendar": "npm:^3.5.1" + "@react-stately/checkbox": "npm:^3.6.5" + "@react-stately/collections": "npm:^3.10.7" + "@react-stately/combobox": "npm:^3.8.4" + "@react-stately/data": "npm:^3.11.4" + "@react-stately/datepicker": "npm:^3.9.4" + "@react-stately/dnd": "npm:^3.3.1" + "@react-stately/form": "npm:^3.0.3" + "@react-stately/list": "npm:^3.10.5" + "@react-stately/menu": "npm:^3.7.1" + "@react-stately/numberfield": "npm:^3.9.3" + "@react-stately/overlays": "npm:^3.6.7" + "@react-stately/radio": "npm:^3.10.4" + "@react-stately/searchfield": "npm:^3.5.3" + "@react-stately/select": "npm:^3.6.4" + "@react-stately/selection": "npm:^3.15.1" + "@react-stately/slider": "npm:^3.5.4" + "@react-stately/table": "npm:^3.11.8" + "@react-stately/tabs": "npm:^3.6.6" + "@react-stately/toggle": "npm:^3.7.4" + "@react-stately/tooltip": "npm:^3.4.9" + "@react-stately/tree": "npm:^3.8.1" + "@react-types/shared": "npm:^3.23.1" peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - checksum: 6f2f3d2a831338238bafab15bebb12d4bbc7832f80e49d28d7412938a78e9e31619f6335e743191662586abc0eab37534470f42297a4f1596783855e05ff9b8b - languageName: node - linkType: hard - -"react-table@npm:^7.8.0": - version: 7.8.0 - resolution: "react-table@npm:7.8.0" - peerDependencies: - react: ^16.8.3 || ^17.0.0-0 || ^18.0.0 - checksum: 0c87db8f8823f8eca7a5521d406fa0c75d79972d47768f0c8347af3fa51f9856eea449186a0e2db2effc54d1d74a4e3477855cdbe9adf836d7dfac3a6ec5cdbf + checksum: e78b03fe0404d62993f3b2df0910e987f09ca14231da5d976095a8520e32c4a7125da8391e443b4d6b11c51b73a7ec9b6ab99fcbf54ce8e074da5d9e53df5f16 languageName: node linkType: hard @@ -12807,6 +13711,15 @@ __metadata: languageName: node linkType: hard +"react@npm:^18.3.1": + version: 18.3.1 + resolution: "react@npm:18.3.1" + dependencies: + loose-envify: "npm:^1.1.0" + checksum: 261137d3f3993eaa2368a83110466fc0e558bc2c7f7ae7ca52d94f03aac945f45146bd85e5f481044db1758a1dbb57879e2fcdd33924e2dde1bdc550ce73f7bf + languageName: node + linkType: hard + "read-cache@npm:^1.0.0": version: 1.0.0 resolution: "read-cache@npm:1.0.0" @@ -13317,6 +14230,15 @@ __metadata: languageName: node linkType: hard +"scheduler@npm:^0.23.2": + version: 0.23.2 + resolution: "scheduler@npm:0.23.2" + dependencies: + loose-envify: "npm:^1.1.0" + checksum: e8d68b89d18d5b028223edf090092846868a765a591944760942b77ea1f69b17235f7e956696efbb62c8130ab90af7e0949bfb8eba7896335507317236966bc9 + languageName: node + linkType: hard + "scss-tokenizer@npm:^0.4.3": version: 0.4.3 resolution: "scss-tokenizer@npm:0.4.3" @@ -13376,6 +14298,20 @@ __metadata: languageName: node linkType: hard +"set-function-length@npm:^1.2.1": + version: 1.2.2 + resolution: "set-function-length@npm:1.2.2" + dependencies: + define-data-property: "npm:^1.1.4" + es-errors: "npm:^1.3.0" + function-bind: "npm:^1.1.2" + get-intrinsic: "npm:^1.2.4" + gopd: "npm:^1.0.1" + has-property-descriptors: "npm:^1.0.2" + checksum: 505d62b8e088468917ca4e3f8f39d0e29f9a563b97dbebf92f4bd2c3172ccfb3c5b8e4566d5fcd00784a00433900e7cb8fbc404e2dbd8c3818ba05bb9d4a8a6d + languageName: node + linkType: hard + "set-function-name@npm:^2.0.0, set-function-name@npm:^2.0.1": version: 2.0.1 resolution: "set-function-name@npm:2.0.1" @@ -13484,6 +14420,18 @@ __metadata: languageName: node linkType: hard +"side-channel@npm:^1.0.6": + version: 1.0.6 + resolution: "side-channel@npm:1.0.6" + dependencies: + call-bind: "npm:^1.0.7" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.4" + object-inspect: "npm:^1.13.1" + checksum: eb10944f38cebad8ad643dd02657592fa41273ce15b8bfa928d3291aff2d30c20ff777cfe908f76ccc4551ace2d1245822fdc576657cce40e9066c638ca8fa4d + languageName: node + linkType: hard + "siginfo@npm:^2.0.0": version: 2.0.0 resolution: "siginfo@npm:2.0.0" @@ -13997,13 +14945,22 @@ __metadata: languageName: node linkType: hard -"tabbable@npm:^6.0.1, tabbable@npm:^6.2.0": +"tabbable@npm:^6.0.0, tabbable@npm:^6.0.1": version: 6.2.0 resolution: "tabbable@npm:6.2.0" checksum: 980fa73476026e99dcacfc0d6e000d41d42c8e670faf4682496d30c625495e412c4369694f2a15cf1e5252d22de3c396f2b62edbe8d60b5dadc40d09e3f2dde3 languageName: node linkType: hard +"tailwind-merge@npm:^2.2.2": + version: 2.3.0 + resolution: "tailwind-merge@npm:2.3.0" + dependencies: + "@babel/runtime": "npm:^7.24.1" + checksum: cf3b126bee82bc9ff3f60f9601b66925418db6906544198b637487b25fba1c9c307734ca37ccb8fa2355f69ad0c5aff34c5dce460809addb459a93205d9a0abe + languageName: node + linkType: hard + "tailwindcss@npm:^3.3.6": version: 3.4.1 resolution: "tailwindcss@npm:3.4.1" @@ -14051,6 +15008,15 @@ __metadata: languageName: node linkType: hard +"telejson@npm:^7.2.0": + version: 7.2.0 + resolution: "telejson@npm:7.2.0" + dependencies: + memoizerific: "npm:^1.11.3" + checksum: 6e89b3d3c45b5a2aced9132f6a968fcdf758c00be4c3acb115d7d81e95c9e04083a7a4a9b43057fcf48b101156c1607a38f5491615956acb28d4d1f78a4bda20 + languageName: node + linkType: hard + "test-exclude@npm:^6.0.0": version: 6.0.0 resolution: "test-exclude@npm:6.0.0" @@ -14101,6 +15067,13 @@ __metadata: languageName: node linkType: hard +"tiny-invariant@npm:^1.3.1": + version: 1.3.3 + resolution: "tiny-invariant@npm:1.3.3" + checksum: 5e185c8cc2266967984ce3b352a4e57cb89dad5a8abb0dea21468a6ecaa67cd5bb47a3b7a85d08041008644af4f667fb8b6575ba38ba5fb00b3b5068306e59fe + languageName: node + linkType: hard + "tiny-warning@npm:^1.0.2": version: 1.0.3 resolution: "tiny-warning@npm:1.0.3" @@ -14228,6 +15201,13 @@ __metadata: languageName: node linkType: hard +"ts-dedent@npm:^2.0.0": + version: 2.2.0 + resolution: "ts-dedent@npm:2.2.0" + checksum: 93ed8f7878b6d5ed3c08d99b740010eede6bccfe64bce61c5a4da06a2c17d6ddbb80a8c49c2d15251de7594a4f93ffa21dd10e7be75ef66a4dc9951b4a94e2af + languageName: node + linkType: hard + "ts-interface-checker@npm:^0.1.9": version: 0.1.13 resolution: "ts-interface-checker@npm:0.1.13" @@ -14625,6 +15605,15 @@ __metadata: languageName: node linkType: hard +"use-sync-external-store@npm:^1.2.0": + version: 1.2.2 + resolution: "use-sync-external-store@npm:1.2.2" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 671e9c190aab9a8374a5d468c6ba17f52c38b6fae970110bc196fc1e2b57204149aea9619be49a1bb5207fb6e51d8afd19c3bcb94afe61813fed039821461dc0 + languageName: node + linkType: hard + "util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" @@ -14632,6 +15621,19 @@ __metadata: languageName: node linkType: hard +"util@npm:^0.12.4": + version: 0.12.5 + resolution: "util@npm:0.12.5" + dependencies: + inherits: "npm:^2.0.3" + is-arguments: "npm:^1.0.4" + is-generator-function: "npm:^1.0.7" + is-typed-array: "npm:^1.1.3" + which-typed-array: "npm:^1.1.2" + checksum: 61a10de7753353dd4d744c917f74cdd7d21b8b46379c1e48e1c4fd8e83f8190e6bd9978fc4e5102ab6a10ebda6019d1b36572fa4a325e175ec8b789a121f6147 + languageName: node + linkType: hard + "utility-types@npm:^3.10.0": version: 3.10.0 resolution: "utility-types@npm:3.10.0" @@ -15029,6 +16031,19 @@ __metadata: languageName: node linkType: hard +"which-typed-array@npm:^1.1.14, which-typed-array@npm:^1.1.2": + version: 1.1.15 + resolution: "which-typed-array@npm:1.1.15" + dependencies: + available-typed-arrays: "npm:^1.0.7" + call-bind: "npm:^1.0.7" + for-each: "npm:^0.3.3" + gopd: "npm:^1.0.1" + has-tostringtag: "npm:^1.0.2" + checksum: c3b6a99beadc971baa53c3ee5b749f2b9bdfa3b3b9a70650dd8511a48b61d877288b498d424712e9991d16019633086bd8b5923369460d93463c5825fa36c448 + languageName: node + linkType: hard + "which@npm:^2.0.1, which@npm:^2.0.2": version: 2.0.2 resolution: "which@npm:2.0.2" From 1b6c33e04713230616268de2250a7c7321104dcb Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 18 Jun 2024 13:52:49 +0200 Subject: [PATCH 80/82] Don't show error when field is empty --- src/validation/objectGeneralInformation.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/validation/objectGeneralInformation.ts b/src/validation/objectGeneralInformation.ts index e30492d0..33bb79fc 100644 --- a/src/validation/objectGeneralInformation.ts +++ b/src/validation/objectGeneralInformation.ts @@ -18,7 +18,7 @@ export const SCHEMA_GENERAL_INFORMATION = object({ }, ctx ) => { - if (Owner_1_UUID === Owner_2_UUID) { + if (!!Owner_1_UUID && !!Owner_2_UUID && Owner_1_UUID === Owner_2_UUID) { ctx.addIssue({ code: 'custom', message: @@ -34,7 +34,11 @@ export const SCHEMA_GENERAL_INFORMATION = object({ }) } - if (Portfolio_Holder_1_UUID === Portfolio_Holder_2_UUID) { + if ( + !!Portfolio_Holder_1_UUID && + !!Portfolio_Holder_2_UUID && + Portfolio_Holder_1_UUID === Portfolio_Holder_2_UUID + ) { ctx.addIssue({ code: 'custom', message: From 9b2539658735903e24fe92fca1fe046c561f52bc Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 18 Jun 2024 14:16:41 +0200 Subject: [PATCH 81/82] Update --- .../ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx | 4 ++-- src/utils/dynamicObject.tsx | 4 ++-- src/validation/objectGeneralInformation.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx b/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx index 6c6c706d..707db52f 100644 --- a/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx +++ b/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx @@ -90,7 +90,7 @@ const ObjectPersonModal = ({ model }: ObjectPersonModalProps) => { )} validateOnChange enableReinitialize> - {({ isValid, isSubmitting }) => ( + {({ isValid, isSubmitting, dirty }) => (
    {staticData.map(item => { @@ -147,7 +147,7 @@ const ObjectPersonModal = ({ model }: ObjectPersonModalProps) => { diff --git a/src/utils/dynamicObject.tsx b/src/utils/dynamicObject.tsx index 48d1557e..bb165403 100644 --- a/src/utils/dynamicObject.tsx +++ b/src/utils/dynamicObject.tsx @@ -50,12 +50,12 @@ export const getStaticDataPropertyRequired = ( key: keyof ModelPatchStaticType ) => { switch (key) { - case 'Client_1_UUID': case 'Owner_2_UUID': - case 'Portfolio_Holder_1_UUID': case 'Portfolio_Holder_2_UUID': return false case 'Owner_1_UUID': + case 'Client_1_UUID': + case 'Portfolio_Holder_1_UUID': return true default: throw new Error( diff --git a/src/validation/objectGeneralInformation.ts b/src/validation/objectGeneralInformation.ts index 33bb79fc..96a2b8bc 100644 --- a/src/validation/objectGeneralInformation.ts +++ b/src/validation/objectGeneralInformation.ts @@ -3,10 +3,10 @@ import { object } from 'zod' import { schemaDefaults } from '@/validation/zodSchema' export const SCHEMA_GENERAL_INFORMATION = object({ - Client_1_UUID: schemaDefaults.optionalString, + Client_1_UUID: schemaDefaults.requiredString(), Owner_1_UUID: schemaDefaults.requiredString(), Owner_2_UUID: schemaDefaults.optionalString, - Portfolio_Holder_1_UUID: schemaDefaults.optionalString, + Portfolio_Holder_1_UUID: schemaDefaults.requiredString(), Portfolio_Holder_2_UUID: schemaDefaults.optionalString, }).superRefine( ( From 7770a158a4f7f6eda960044f227e795993388fbd Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Tue, 18 Jun 2024 14:52:22 +0200 Subject: [PATCH 82/82] Update AB#16754 --- .../ObjectPersonModal/ObjectPersonModal.tsx | 5 +- src/validation/objectGeneralInformation.ts | 50 +++++++++++++------ src/validation/zodSchema.ts | 20 +++++++- 3 files changed, 55 insertions(+), 20 deletions(-) diff --git a/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx b/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx index 707db52f..de6a7cd6 100644 --- a/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx +++ b/src/components/Modals/ObjectModals/ObjectPersonModal/ObjectPersonModal.tsx @@ -16,7 +16,7 @@ import { getStaticDataPropertyKey, getStaticDataPropertyRequired, } from '@/utils/dynamicObject' -import { SCHEMA_GENERAL_INFORMATION } from '@/validation/objectGeneralInformation' +import { generateSchema } from '@/validation/objectGeneralInformation' interface ObjectPersonModalProps { model: Model @@ -86,9 +86,8 @@ const ObjectPersonModal = ({ model }: ObjectPersonModalProps) => { onSubmit={handleFormSubmit} initialValues={initialValues} validationSchema={toFormikValidationSchema( - SCHEMA_GENERAL_INFORMATION + generateSchema(staticData) )} - validateOnChange enableReinitialize> {({ isValid, isSubmitting, dirty }) => ( diff --git a/src/validation/objectGeneralInformation.ts b/src/validation/objectGeneralInformation.ts index 96a2b8bc..221cf4d0 100644 --- a/src/validation/objectGeneralInformation.ts +++ b/src/validation/objectGeneralInformation.ts @@ -1,23 +1,39 @@ import { object } from 'zod' -import { schemaDefaults } from '@/validation/zodSchema' - -export const SCHEMA_GENERAL_INFORMATION = object({ - Client_1_UUID: schemaDefaults.requiredString(), - Owner_1_UUID: schemaDefaults.requiredString(), - Owner_2_UUID: schemaDefaults.optionalString, - Portfolio_Holder_1_UUID: schemaDefaults.requiredString(), - Portfolio_Holder_2_UUID: schemaDefaults.optionalString, -}).superRefine( - ( - { +import { ModelPatchStaticType } from '@/config/objects/types' +import { getStaticDataPropertyRequired } from '@/utils/dynamicObject' +import { schemaDefaults, zodAlwaysRefine } from '@/validation/zodSchema' + +/** + * Create SCHEMA based on provided values + */ +const generateSchema = (values: (keyof ModelPatchStaticType)[]) => { + let schema = object({}) + + values.forEach(val => { + const required = getStaticDataPropertyRequired(val) + + return (schema = schema.extend({ + [val]: required + ? schemaDefaults.requiredString() + : schemaDefaults.optionalString, + })) + }) + + return zodAlwaysRefine(schema).superRefine((data, ctx) => { + // Cast data to a type with optional properties to handle the case where they might not exist + const { Owner_1_UUID, Owner_2_UUID, Portfolio_Holder_1_UUID, Portfolio_Holder_2_UUID, - }, - ctx - ) => { + } = data as { + Owner_1_UUID?: string + Owner_2_UUID?: string + Portfolio_Holder_1_UUID?: string + Portfolio_Holder_2_UUID?: string + } + if (!!Owner_1_UUID && !!Owner_2_UUID && Owner_1_UUID === Owner_2_UUID) { ctx.addIssue({ code: 'custom', @@ -53,5 +69,7 @@ export const SCHEMA_GENERAL_INFORMATION = object({ path: ['Portfolio_Holder_2_UUID'], }) } - } -) + }) +} + +export { generateSchema } diff --git a/src/validation/zodSchema.ts b/src/validation/zodSchema.ts index df9c538a..39a799db 100644 --- a/src/validation/zodSchema.ts +++ b/src/validation/zodSchema.ts @@ -1,4 +1,11 @@ -import { custom, instanceof as instanceOf, number, string } from 'zod' +import { + ZodTypeAny, + any, + custom, + instanceof as instanceOf, + number, + string, +} from 'zod' export const schemaDefaults = { requiredString: (msg = 'Dit veld is verplicht.') => @@ -63,3 +70,14 @@ const customRteValidation = () => export type Validation = { [K in keyof typeof schemaDefaults]?: (typeof schemaDefaults)[K] } + +export function zodAlwaysRefine(zodType: T) { + return any().superRefine(async (value, ctx) => { + const res = await zodType.safeParseAsync(value) + + if (res.success === false) + for (const issue of res.error.issues) { + ctx.addIssue(issue) + } + }) as unknown as T +}