Skip to content

Commit

Permalink
Added indienen stage
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Jan 31, 2020
1 parent 9164c18 commit 9ec983d
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 20 deletions.
25 changes: 17 additions & 8 deletions api/public/schema/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -1842,20 +1843,21 @@ 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'
type: string
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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)'
Expand Down Expand Up @@ -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)'
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion api/public/schema/publiccode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
169 changes: 158 additions & 11 deletions api/src/DataFixtures/AppFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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');
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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');
Expand All @@ -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
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 9ec983d

Please sign in to comment.