From 9ec983dfe1b189d53af710cec424102d35d9b909 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Fri, 31 Jan 2020 07:06:23 +0100 Subject: [PATCH] Added indienen stage --- api/public/schema/openapi.yaml | 25 ++-- api/public/schema/publiccode.yaml | 2 +- api/src/DataFixtures/AppFixtures.php | 169 +++++++++++++++++++++++++-- 3 files changed, 176 insertions(+), 20 deletions(-) diff --git a/api/public/schema/openapi.yaml b/api/public/schema/openapi.yaml index 2754af4d..9fa6ee1b 100644 --- a/api/public/schema/openapi.yaml +++ b/api/public/schema/openapi.yaml @@ -1809,6 +1809,7 @@ components: description: 'The icon of this property' type: string name: + readOnly: true description: 'The name of this RequestType' type: string description: @@ -1842,13 +1843,11 @@ components: format: date-time required: - source_organization - - name RequestType-write: type: object description: 'All properties contained in the RequestType type.' required: - source_organization - - name properties: source_organization: description: 'The RSIN of the organization that owns this process' @@ -1856,6 +1855,9 @@ components: icon: description: 'The icon of this property' type: string + description: + description: 'An short description of this RequestType' + type: string properties: description: 'The properties for this request type' type: array @@ -1896,6 +1898,7 @@ components: description: 'The icon of this property' type: string name: + readOnly: true description: 'The name of this RequestType' type: string description: @@ -1929,13 +1932,11 @@ components: format: date-time required: - source_organization - - name 'RequestType:jsonld-write': type: object description: 'All properties contained in the RequestType type.' required: - source_organization - - name properties: '@context': readOnly: true @@ -1952,6 +1953,9 @@ components: icon: description: 'The icon of this property' type: string + description: + description: 'An short description of this RequestType' + type: string properties: description: 'The properties for this request type' type: array @@ -2109,12 +2113,12 @@ definitions: availableFrom: description: 'The moment from which this value is available' type: string - example: '2020-01-30 05:41:19' + example: '2020-01-31 06:03:51' format: date-time availableUntil: description: '*should be used in combination with deprecated* The moment where until this value is available' type: string - example: '2020-01-30 05:41:19' + example: '2020-01-31 06:03:51' format: date-time minDate: description: 'The minimal date for value, either a date, datetime or duration (ISO_8601)' @@ -2287,12 +2291,12 @@ definitions: availableFrom: description: 'The moment from which this value is available' type: string - example: '2020-01-30 05:41:19' + example: '2020-01-31 06:03:51' format: date-time availableUntil: description: '*should be used in combination with deprecated* The moment where until this value is available' type: string - example: '2020-01-30 05:41:19' + example: '2020-01-31 06:03:51' format: date-time minDate: description: 'The minimal date for value, either a date, datetime or duration (ISO_8601)' @@ -2383,6 +2387,11 @@ definitions: example: 'My Property' maxLength: 255 minLength: 15 + description: + description: 'An short description of this RequestType' + type: string + example: 'This is the best request ever' + maxLength: 2550 unique: description: 'Whether or not this request is unique to a submitter' type: bool diff --git a/api/public/schema/publiccode.yaml b/api/public/schema/publiccode.yaml index f188a689..a0d06422 100644 --- a/api/public/schema/publiccode.yaml +++ b/api/public/schema/publiccode.yaml @@ -6,7 +6,7 @@ url: "https://github.com/ConductionNL/verzoektypecatalogus" landingURL: "vtc.zaakonline.nl" isBasedOn: "https://github.com/ConductionNL/Proto-component-commonground.git" softwareVersion: "V.0.1" -releaseDate: "2020-30-01" +releaseDate: "2020-31-01" logo: pc.zaakonline.nl monochromeLogo: img/logo-mono.svg diff --git a/api/src/DataFixtures/AppFixtures.php b/api/src/DataFixtures/AppFixtures.php index faa6aac1..755c65d4 100644 --- a/api/src/DataFixtures/AppFixtures.php +++ b/api/src/DataFixtures/AppFixtures.php @@ -36,7 +36,16 @@ public function load(ObjectManager $manager) $stage1->setFormat('date'); $stage1->setDescription('Wat is de verhuisdatum?'); $stage1->setRequestType($bezwaar); - $manager->persist($stage1); + $manager->persist($stage1); + + $stage2= new Property(); + $stage2->addPrevious($stage1); + $stage2->setTitle('Indienen'); + $stage2->setIcon('fal fa-paper-plane'); + $stage2->setSlug('indienen'); + $stage2->setDescription('Wie zijn de getuigen van partner?'); + $stage2->setRequestType($bezwaar); + $manager->persist($stage2); /* * Bezwaar @@ -62,7 +71,16 @@ public function load(ObjectManager $manager) $stage1->setFormat('date'); $stage1->setDescription('Wat is de verhuisdatum?'); $stage1->setRequestType($bezwaar); - $manager->persist($stage1); + $manager->persist($stage1); + + $stage2= new Property(); + $stage2->addPrevious($stage1); + $stage2->setTitle('Indienen'); + $stage2->setIcon('fal fa-paper-plane'); + $stage2->setSlug('indienen'); + $stage2->setDescription('Wie zijn de getuigen van partner?'); + $stage2->setRequestType($bezwaar); + $manager->persist($stage2); $id = Uuid::fromString('6aa060d4-ca79-45ac-9836-1522fd10eb42'); @@ -86,7 +104,16 @@ public function load(ObjectManager $manager) $stage1->setFormat('date'); $stage1->setDescription('Wat is de verhuisdatum?'); $stage1->setRequestType($bezwaar); - $manager->persist($stage1); + $manager->persist($stage1); + + $stage2= new Property(); + $stage2->addPrevious($stage1); + $stage2->setTitle('Indienen'); + $stage2->setIcon('fal fa-paper-plane'); + $stage2->setSlug('indienen'); + $stage2->setDescription('Wie zijn de getuigen van partner?'); + $stage2->setRequestType($bezwaar); + $manager->persist($stage2); /* * Bezwaar @@ -115,7 +142,16 @@ public function load(ObjectManager $manager) $stage1->setFormat('string'); $stage1->setDescription('Wat is de verhuisdatum?'); $stage1->setRequestType($bezwaar); - $manager->persist($stage1); + $manager->persist($stage1); + + $stage2= new Property(); + $stage2->addPrevious($stage1); + $stage2->setTitle('Indienen'); + $stage2->setIcon('fal fa-paper-plane'); + $stage2->setSlug('indienen'); + $stage2->setDescription('Wie zijn de getuigen van partner?'); + $stage2->setRequestType($bezwaar); + $manager->persist($stage2); /* * Bezwaar @@ -141,7 +177,16 @@ public function load(ObjectManager $manager) $stage1->setFormat('string'); $stage1->setDescription('Wat is de verhuisdatum?'); $stage1->setRequestType($bezwaar); - $manager->persist($stage1); + $manager->persist($stage1); + + $stage2= new Property(); + $stage2->addPrevious($stage1); + $stage2->setTitle('Indienen'); + $stage2->setIcon('fal fa-paper-plane'); + $stage2->setSlug('indienen'); + $stage2->setDescription('Wie zijn de getuigen van partner?'); + $stage2->setRequestType($bezwaar); + $manager->persist($stage2); /* * WOB @@ -166,8 +211,17 @@ public function load(ObjectManager $manager) $stage1->setType('string'); $stage1->setFormat('string'); $stage1->setDescription('Wat is de verhuisdatum?'); - $stage1->setRequestType($bezwaar); - $manager->persist($stage1); + $stage1->setRequestType($wob); + $manager->persist($stage1); + + $stage2= new Property(); + $stage2->addPrevious($stage1); + $stage2->setTitle('Indienen'); + $stage2->setIcon('fal fa-paper-plane'); + $stage2->setSlug('indienen'); + $stage2->setDescription('Wie zijn de getuigen van partner?'); + $stage2->setRequestType($wob); + $manager->persist($stage2); /* * Geboorte @@ -233,6 +287,15 @@ public function load(ObjectManager $manager) $stage4->setRequestType($geboorte); $manager->persist($stage4); + $stage5= new Property(); + $stage5->addPrevious($stage4); + $stage5->setTitle('Indienen'); + $stage5->setIcon('fal fa-paper-plane'); + $stage5->setSlug('indienen'); + $stage5->setDescription('Wie zijn de getuigen van partner?'); + $stage5->setRequestType($geboorte); + $manager->persist($stage5); + /* * Overleiden */ @@ -283,6 +346,15 @@ public function load(ObjectManager $manager) $stage3->setRequestType($overlijden); $manager->persist($stage3); + $stage4= new Property(); + $stage4->addPrevious($stage3); + $stage4->setTitle('Indienen'); + $stage4->setIcon('fal fa-paper-plane'); + $stage4->setSlug('indienen'); + $stage4->setDescription('Wie zijn de getuigen van partner?'); + $stage4->setRequestType($overlijden); + $manager->persist($stage4); + /* * Reisdocument */ @@ -321,6 +393,15 @@ public function load(ObjectManager $manager) $stage2->setRequestType($reisdocument); $manager->persist($stage2); + $stage3= new Property(); + $stage3->addPrevious($stage2); + $stage3->setTitle('Indienen'); + $stage3->setIcon('fal fa-paper-plane'); + $stage3->setSlug('indienen'); + $stage3->setDescription('Wie zijn de getuigen van partner?'); + $stage3->setRequestType($reisdocument); + $manager->persist($stage3); + $id = Uuid::fromString('690cbb51-50b8-4714-b45b-2dba696b1216'); $reisdocument = new RequestType(); $reisdocument->setSourceOrganization('0000'); @@ -330,7 +411,28 @@ public function load(ObjectManager $manager) $reisdocument->setId($id); $manager->persist($reisdocument); $manager->flush(); - $reisdocument= $manager->getRepository('App:RequestType')->findOneBy(array('id'=> $id)); + $reisdocument= $manager->getRepository('App:RequestType')->findOneBy(array('id'=> $id)); + + $stage1= new Property(); + $stage1->setStart(true); + $stage1->setTitle('Type'); + $stage1->setIcon('fal fa-passport'); + $stage1->setSlug('document'); + $stage1->setType('string'); + $stage1->setFormat('bsn'); + $stage1->setRequired(true); + $stage1->setDescription('Wat voor reisdocument wilt u aanvragen?'); + $stage1->setRequestType($reisdocument); + $manager->persist($stage1); + + $stage2= new Property(); + $stage2->addPrevious($stage2); + $stage2->setTitle('Indienen'); + $stage2->setIcon('fal fa-paper-plane'); + $stage2->setSlug('indienen'); + $stage2->setDescription('Wie zijn de getuigen van partner?'); + $stage2->setRequestType($reisdocument); + $manager->persist($stage2); /* * Melding openbare ruimte @@ -433,6 +535,15 @@ public function load(ObjectManager $manager) $stage3->setDescription('Wie gaan er verhuizen?'); $stage3->setRequestType($verhuizenNL); $manager->persist($stage3); + + $stage4= new Property(); + $stage4->addPrevious($stage3); + $stage4->setTitle('Indienen'); + $stage4->setIcon('fal fa-paper-plane'); + $stage4->setSlug('indienen'); + $stage4->setDescription('Wie zijn de getuigen van partner?'); + $stage4->setRequestType($verhuizenNL); + $manager->persist($stage4); $id = Uuid::fromString('9d76fb58-0711-4437-acc4-9f4d9d403cdf'); $verhuizenDenBosh = new RequestType(); @@ -537,6 +648,15 @@ public function load(ObjectManager $manager) $stage1->setRequestType($aanvraagBabs); $manager->persist($stage1); + $stage2= new Property(); + $stage2->addPrevious($stage1); + $stage2->setTitle('Indienen'); + $stage2->setIcon('fal fa-paper-plane'); + $stage2->setSlug('indienen'); + $stage2->setDescription('Wie zijn de getuigen van partner?'); + $stage2->setRequestType($aanvraagBabs); + $manager->persist($stage2); + $id = Uuid::fromString('c8704ea6-4962-4b7e-8d4e-69a257aa9577'); $aanvraagLocatie= new RequestType(); $aanvraagLocatie->setIcon('fal fa-rings-wedding'); @@ -569,7 +689,16 @@ public function load(ObjectManager $manager) $stage2->setFormat('instemming'); $stage2->setDescription('Wat zijn de contact gegevens van uw beoogde locatie'); $stage2->setRequestType($aanvraagLocatie); - $manager->persist($stage2); + $manager->persist($stage2); + + $stage3= new Property(); + $stage3->addPrevious($stage2); + $stage3->setTitle('Indienen'); + $stage3->setIcon('fal fa-paper-plane'); + $stage3->setSlug('indienen'); + $stage3->setDescription('Wie zijn de getuigen van partner?'); + $stage3->setRequestType($aanvraagLocatie); + $manager->persist($stage3); $id = Uuid::fromString('146cb7c8-46b9-4911-8ad9-3238bab4313e'); $meldingTrouwenNL= new RequestType(); @@ -620,7 +749,16 @@ public function load(ObjectManager $manager) $stage3->setRequired(true); $stage3->setDescription('Wie zijn de getuigen van partner?'); $stage3->setRequestType($meldingTrouwenNL); - $manager->persist($stage3); + $manager->persist($stage3); + + $stage4= new Property(); + $stage4->addPrevious($stage3); + $stage4->setTitle('Indienen'); + $stage4->setIcon('fal fa-paper-plane'); + $stage4->setSlug('indienen'); + $stage4->setDescription('Wie zijn de getuigen van partner?'); + $stage4->setRequestType($meldingTrouwenNL); + $manager->persist($stage4); $id = Uuid::fromString('432d3e81-5930-4c21-ab7f-c5541c948525'); $omzettingNL = new RequestType(); @@ -657,7 +795,16 @@ public function load(ObjectManager $manager) $stage2->setRequired(true); $stage2->setDescription('Wie zijn de getuigen van partner 2?'); $stage2->setRequestType($omzettingNL); - $manager->persist($stage2); + $manager->persist($stage2); + + $stage3= new Property(); + $stage3->addPrevious($stage2); + $stage3->setTitle('Indienen'); + $stage3->setIcon('fal fa-paper-plane'); + $stage3->setSlug('indienen'); + $stage3->setDescription('Wie zijn de getuigen van partner?'); + $stage3->setRequestType($meldingTrouwenNL); + $manager->persist($stage3); $id = Uuid::fromString('5b10c1d6-7121-4be2-b479-7523f1b625f1'); $trouwenNL = new RequestType();