From e1560539c986e56bed7ed756fb2170603fc51250 Mon Sep 17 00:00:00 2001 From: Stef Winterswijk Date: Mon, 26 Feb 2024 16:42:50 +0100 Subject: [PATCH] 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: