Skip to content

Commit febd3f2

Browse files
committed
setup verification flow for contact-gegevens
1 parent 85867d3 commit febd3f2

File tree

20 files changed

+1378
-1053
lines changed

20 files changed

+1378
-1053
lines changed

dependencies/profiel-service/openapi.yaml

Lines changed: 52 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ components:
1313
AfdelingResponse:
1414
type: object
1515
properties:
16+
id:
17+
type: integer
18+
format: int64
1619
beschrijving:
1720
type: string
1821
ContactType:
@@ -30,8 +33,9 @@ components:
3033
Request object voor het toevoegen van een contactgegeven aan een
3134
partij
3235
properties:
33-
afdeling:
34-
type: string
36+
afdelingId:
37+
type: integer
38+
format: int64
3539
type:
3640
$ref: "#/components/schemas/ContactType"
3741
waarde:
@@ -56,8 +60,9 @@ components:
5660
- type
5761
- waarde
5862
properties:
59-
afdeling:
60-
type: string
63+
afdelingId:
64+
type: integer
65+
format: int64
6166
type:
6267
$ref: "#/components/schemas/ContactType"
6368
waarde:
@@ -76,6 +81,23 @@ components:
7681
type: string
7782
oin:
7883
type: string
84+
EmailVerificatieRequest:
85+
type: object
86+
required:
87+
- email
88+
- identificatieNummer
89+
- identificatieType
90+
- verificatieCode
91+
description: Request object voor het verifiëren van een emailadres
92+
properties:
93+
email:
94+
type: string
95+
identificatieNummer:
96+
type: string
97+
identificatieType:
98+
$ref: "#/components/schemas/IdentificatieType"
99+
verificatieCode:
100+
type: string
79101
IdentificatieResponse:
80102
type: object
81103
properties:
@@ -160,7 +182,7 @@ tags:
160182
- name: Dienstverlener
161183
description: Endpoints voor het beheren van dienstverleners en afdelingen
162184
- name: EmailVerificatie
163-
description: Endpoints voor het verifieren van emails
185+
description: Endpoints voor het verifiëren van emails
164186
- name: Profiel
165187
description: Endpoints voor het beheren van partijen
166188
paths:
@@ -192,6 +214,9 @@ paths:
192214
responses:
193215
"200":
194216
description: Contactgegeven succesvol bijgewerkt
217+
content:
218+
application/json:
219+
schema: {}
195220
"404":
196221
description: Contactgegeven of partij niet gevonden
197222
"400":
@@ -266,6 +291,9 @@ paths:
266291
responses:
267292
"200":
268293
description: OK
294+
content:
295+
application/json:
296+
schema: {}
269297
"400":
270298
description: Bad Request
271299
summary: Add Dienstverlener
@@ -307,26 +335,29 @@ paths:
307335
responses:
308336
"200":
309337
description: OK
338+
content:
339+
application/json:
340+
schema: {}
310341
summary: Get Afdelingen Dienstverlener
311-
/api/profielservice/v1/emailverificatie/{email}/{verificatiecode}:
342+
/api/profielservice/v1/emailverificatie:
312343
post:
313344
tags:
314345
- EmailVerificatie
315-
parameters:
316-
- name: email
317-
in: path
318-
required: true
319-
schema:
320-
type: string
321-
- name: verificatiecode
322-
in: path
323-
required: true
324-
schema:
325-
type: string
346+
requestBody:
347+
content:
348+
application/json:
349+
schema:
350+
$ref: "#/components/schemas/EmailVerificatieRequest"
351+
required: true
326352
responses:
327353
"200":
328354
description: OK
329-
summary: Get Afdelingen Dienstverlener
355+
content:
356+
application/json:
357+
schema: {}
358+
"400":
359+
description: Bad Request
360+
summary: Post Email Verificatie
330361
/api/profielservice/v1/voorkeur/{identificatieType}/{identificatieNummer}:
331362
put:
332363
summary: Update voorkeur van een partij
@@ -355,6 +386,9 @@ paths:
355386
responses:
356387
"200":
357388
description: Voorkeur succesvol bijgewerkt
389+
content:
390+
application/json:
391+
schema: {}
358392
"404":
359393
description: Voorkeur of partij niet gevonden
360394
"400":

eslint.config.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ const compat = new FlatCompat({
1212

1313
const eslintConfig = [
1414
{
15-
ignores: ["src/network/generated/**"],
15+
ignores: ["src/network/generated/**", ".next/**"],
1616
},
1717
...compat.extends("next/core-web-vitals", "next/typescript"),
1818
...pluginQuery.configs["flat/recommended"],
19+
{
20+
rules: {
21+
"@typescript-eslint/no-unused-vars": [
22+
"warn",
23+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
24+
],
25+
},
26+
},
1927
];
2028

2129
export default eslintConfig;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint",
9+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --report-unused-disable-directives --max-warnings=0",
1010
"prettier": "prettier --write .",
1111
"type-check": "tsc --noEmit",
1212
"generate:profiel": "openapi-typescript ./dependencies/profiel-service/openapi.yaml -o ./src/network/profiel/generated.ts",

src/app/berichtenbox/[status]/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ const BerichtenboxPage = async ({
208208
</div>
209209
</div>
210210

211-
<Notification
212-
text={
211+
<Notification>
212+
{
213213
"Meer informatie over de berichtenbox. Uw zakelijke brievenbus van de overheid."
214214
}
215-
/>
215+
</Notification>
216216
</div>
217217
</Card>
218218

@@ -263,11 +263,11 @@ const BerichtenboxPage = async ({
263263
</span>
264264
</a>
265265

266-
<Notification
267-
text={
266+
<Notification>
267+
{
268268
"Ontdek hoe u gemachtigd kunt worden om diditale post van iemand anders te lezen."
269269
}
270-
/>
270+
</Notification>
271271
</div>
272272
</Card>
273273
</div>

0 commit comments

Comments
 (0)