@@ -9,60 +9,62 @@ import { request } from "./request";
9
9
* Retrieve informatieobjecttypen from Open Zaak and return a value and a label per informatieobjecttype. The label is
10
10
* the field 'omschrijving'.
11
11
*/
12
- export async function listInformatieObjectTypeChoices ( zaaktypeUrl ?: string ) {
12
+ export async function listInformatieObjectTypeChoices (
13
+ zaaktypeIdentificatie ?: string ,
14
+ ) {
13
15
return cacheMemo (
14
16
"listInformatieObjectTypeChoices" ,
15
17
async ( ) => {
16
18
const response = await request ( "GET" , "/_informatieobjecttype-choices/" , {
17
- zaaktype : zaaktypeUrl ,
19
+ zaaktypeIdentificatie : zaaktypeIdentificatie ,
18
20
} ) ;
19
21
const promise : Promise < Option [ ] > = response . json ( ) ;
20
22
21
23
return promise ;
22
24
} ,
23
- [ zaaktypeUrl ] ,
25
+ [ zaaktypeIdentificatie ] ,
24
26
) ;
25
27
}
26
28
27
29
/**
28
30
* Retrieve statustypen from Open Zaak and return a value and a label per statustype. The label is the field
29
31
* 'omschrijving'.
30
32
*/
31
- export async function listStatusTypeChoices ( zaaktypeUrl ?: string ) {
33
+ export async function listStatusTypeChoices ( zaaktypeIdentificatie ?: string ) {
32
34
return cacheMemo (
33
35
"listStatusTypeChoices" ,
34
36
async ( ) => {
35
37
const response = await request ( "GET" , "/_statustype-choices/" , {
36
- zaaktype : zaaktypeUrl ,
38
+ zaaktypeIdentificatie : zaaktypeIdentificatie ,
37
39
} ) ;
38
40
const promise : Promise < Option [ ] > = response . json ( ) ;
39
41
40
42
return promise ;
41
43
} ,
42
- [ zaaktypeUrl ] ,
44
+ [ zaaktypeIdentificatie ] ,
43
45
) ;
44
46
}
45
47
46
48
/**
47
49
* Retrieve resultaattypen from Open Zaak and return a value and a label per
48
50
* resultaattype. The label is the field 'omschrijving'.
49
51
*/
50
- export async function listResultaatTypeChoices ( zaaktypeUrl ?: string ) {
52
+ export async function listResultaatTypeChoices ( zaaktypeIdentificatie ?: string ) {
51
53
return cacheMemo (
52
54
"listResultaatTypeChoices" ,
53
55
async ( ) => {
54
56
const response = await request (
55
57
"GET" ,
56
58
"/_external-resultaattype-choices/" ,
57
59
{
58
- zaaktype : zaaktypeUrl ,
60
+ zaaktypeIdentificatie : zaaktypeIdentificatie ,
59
61
} ,
60
62
) ;
61
63
const promise : Promise < Option [ ] > = response . json ( ) ;
62
64
63
65
return promise ;
64
66
} ,
65
- [ zaaktypeUrl ] ,
67
+ [ zaaktypeIdentificatie ] ,
66
68
) ;
67
69
}
68
70
@@ -98,7 +100,7 @@ export async function listSelectielijstKlasseChoices(
98
100
99
101
/**
100
102
* Retrieve zaaktypen from Open Zaak and return a value and a label per zaaktype.
101
- * The label is the 'omschrijving' field, and the value is the URL . The response is cached for 15 minutes.
103
+ * The label is the 'omschrijving' field, and the value is the identificatie . The response is cached for 15 minutes.
102
104
* @param [params] - Additional search parameters for filtering (this keeps filters in sync with objects on page).
103
105
* @param [external=false] - Fetch zaaktypen from ZRC Service (Open Zaak) (slower/can't be combined with other filtering options).
104
106
* @param signal - Abort signal, should be called in cleanup function in React `useEffect()` hooks.
0 commit comments