@nl-portal/nl-portal-api 0.1.1-alpha.4 → 0.1.1-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/fragments/formulier.d.ts +1 -0
- package/dist/generated/graphql.d.ts +308 -43
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/queries/get-form-by-objecten-api-url.d.ts +1 -0
- package/dist/queries/get-klant-contact-momenten.d.ts +1 -0
- package/dist/queries/get-object-contact-momenten.d.ts +1 -0
- package/dist/queries/get-taak-by-id.d.ts +1 -0
- package/dist/queries/get-taken.d.ts +1 -1
- package/dist/queries/index.d.ts +6 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @nl-portal/nl-portal-api
|
|
2
2
|
|
|
3
3
|
> Made with create-react-library
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@nl-portal/nl-portal-user-interface)
|
|
6
6
|
[](https://standardjs.com)
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
npm install --save @
|
|
11
|
+
npm install --save @nl-portal/nl-portal-api
|
|
12
12
|
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FORMULIER_FIELDS: import("@apollo/client").DocumentNode;
|
|
@@ -22,14 +22,38 @@ export declare type Scalars = {
|
|
|
22
22
|
Date: any;
|
|
23
23
|
/** A type representing a formatted JSON */
|
|
24
24
|
JSON: any;
|
|
25
|
+
/** A local date time */
|
|
26
|
+
LocalDateTime: any;
|
|
25
27
|
/** A type representing a formatted java.util.UUID */
|
|
26
28
|
UUID: any;
|
|
27
29
|
};
|
|
30
|
+
export declare type ContactMoment = {
|
|
31
|
+
__typename?: 'ContactMoment';
|
|
32
|
+
bronorganisatie?: Maybe<Scalars['String']>;
|
|
33
|
+
initiatiefnemer?: Maybe<Scalars['String']>;
|
|
34
|
+
kanaal: Scalars['String'];
|
|
35
|
+
medewerker?: Maybe<Scalars['String']>;
|
|
36
|
+
registratiedatum: Scalars['String'];
|
|
37
|
+
tekst: Scalars['String'];
|
|
38
|
+
volgendContactmoment?: Maybe<Scalars['String']>;
|
|
39
|
+
voorkeurskanaal?: Maybe<Scalars['String']>;
|
|
40
|
+
voorkeurstaal?: Maybe<Scalars['String']>;
|
|
41
|
+
vorigContactmoment?: Maybe<Scalars['String']>;
|
|
42
|
+
};
|
|
43
|
+
export declare type ContactMomentPage = {
|
|
44
|
+
__typename?: 'ContactMomentPage';
|
|
45
|
+
content: Array<ContactMoment>;
|
|
46
|
+
number: Scalars['Int'];
|
|
47
|
+
/** The number of elements on this page */
|
|
48
|
+
numberOfElements: Scalars['Int'];
|
|
49
|
+
totalElements: Scalars['Int'];
|
|
50
|
+
};
|
|
28
51
|
export declare type Document = {
|
|
29
52
|
__typename?: 'Document';
|
|
30
53
|
bestandsnaam?: Maybe<Scalars['String']>;
|
|
31
54
|
bestandsomvang?: Maybe<Scalars['Int']>;
|
|
32
55
|
creatiedatum?: Maybe<Scalars['String']>;
|
|
56
|
+
documentapi: Scalars['String'];
|
|
33
57
|
formaat?: Maybe<Scalars['String']>;
|
|
34
58
|
identificatie?: Maybe<Scalars['String']>;
|
|
35
59
|
titel?: Maybe<Scalars['String']>;
|
|
@@ -47,7 +71,6 @@ export declare type Form = {
|
|
|
47
71
|
export declare type FormDefinition = {
|
|
48
72
|
__typename?: 'FormDefinition';
|
|
49
73
|
formDefinition: Scalars['JSON'];
|
|
50
|
-
name: Scalars['String'];
|
|
51
74
|
};
|
|
52
75
|
export declare type Gemachtigde = {
|
|
53
76
|
__typename?: 'Gemachtigde';
|
|
@@ -70,10 +93,16 @@ export declare type MaatschappelijkeActiviteit = {
|
|
|
70
93
|
export declare type Mutation = {
|
|
71
94
|
__typename?: 'Mutation';
|
|
72
95
|
/** Submit a task */
|
|
73
|
-
|
|
96
|
+
submitTaak: Taak;
|
|
97
|
+
/** Submit a task */
|
|
98
|
+
submitTask: Taak;
|
|
74
99
|
/** Updates the profile for the user */
|
|
75
100
|
updateBurgerProfiel?: Maybe<Klant>;
|
|
76
101
|
};
|
|
102
|
+
export declare type MutationSubmitTaakArgs = {
|
|
103
|
+
id: Scalars['UUID'];
|
|
104
|
+
submission: Scalars['JSON'];
|
|
105
|
+
};
|
|
77
106
|
export declare type MutationSubmitTaskArgs = {
|
|
78
107
|
id: Scalars['UUID'];
|
|
79
108
|
submission: Scalars['JSON'];
|
|
@@ -135,7 +164,10 @@ export declare type PersoonVerblijfplaats = {
|
|
|
135
164
|
};
|
|
136
165
|
export declare type Query = {
|
|
137
166
|
__typename?: 'Query';
|
|
138
|
-
/**
|
|
167
|
+
/**
|
|
168
|
+
* find all form definitions from repository
|
|
169
|
+
* @deprecated This method is not used by the NL Portal frontend and is not being replaced.
|
|
170
|
+
*/
|
|
139
171
|
allFormDefinitions: Array<FormDefinition>;
|
|
140
172
|
/** Gets the bedrijf data */
|
|
141
173
|
getBedrijf?: Maybe<MaatschappelijkeActiviteit>;
|
|
@@ -145,37 +177,67 @@ export declare type Query = {
|
|
|
145
177
|
getBurgerProfiel?: Maybe<Klant>;
|
|
146
178
|
/** Gets a document content by id as base64 encoded */
|
|
147
179
|
getDocumentContent: DocumentContent;
|
|
148
|
-
/**
|
|
149
|
-
|
|
150
|
-
|
|
180
|
+
/**
|
|
181
|
+
* find single form definition from repository or Objecten API
|
|
182
|
+
* @deprecated Replaced by getFormDefinitionByName and getFormDefinitionByObjectenApiUrl, replace with getFormDefinitionByName or getFormDefinitionByObjectenApiUrl
|
|
183
|
+
*/
|
|
151
184
|
getFormDefinitionById?: Maybe<FormDefinition>;
|
|
185
|
+
/** find single form definition from repository */
|
|
186
|
+
getFormDefinitionByName?: Maybe<FormDefinition>;
|
|
187
|
+
/** find single form definition from the Objecten API */
|
|
188
|
+
getFormDefinitionByObjectenApiUrl?: Maybe<FormDefinition>;
|
|
152
189
|
/** Gets the forms available to the user */
|
|
153
190
|
getFormList: Array<Form>;
|
|
154
191
|
/** Gets the data of the gemachtigde */
|
|
155
192
|
getGemachtigde: Gemachtigde;
|
|
193
|
+
/** Gets the contactmomenten of a klant */
|
|
194
|
+
getKlantContactMomenten?: Maybe<ContactMomentPage>;
|
|
195
|
+
/** Gets the contactmomenten of a object(zaak) */
|
|
196
|
+
getObjectContactMomenten?: Maybe<ContactMomentPage>;
|
|
156
197
|
/** Gets the persoon data */
|
|
157
198
|
getPersoon?: Maybe<Persoon>;
|
|
158
199
|
/** Get task by id */
|
|
159
|
-
|
|
160
|
-
/** Get a list of tasks */
|
|
161
|
-
|
|
200
|
+
getTaakById: Taak;
|
|
201
|
+
/** Get a list of tasks. Optional filter for zaak */
|
|
202
|
+
getTaken: TaakPage;
|
|
203
|
+
/**
|
|
204
|
+
* Get a list of tasks
|
|
205
|
+
* @deprecated Replaced by getTaken
|
|
206
|
+
*/
|
|
207
|
+
getTasks: TaakPage;
|
|
162
208
|
/** Gets a zaak by id */
|
|
163
209
|
getZaak: Zaak;
|
|
164
210
|
/** Gets all zaken for the user */
|
|
165
211
|
getZaken: Array<Zaak>;
|
|
166
212
|
};
|
|
167
213
|
export declare type QueryGetDocumentContentArgs = {
|
|
214
|
+
documentApi: Scalars['String'];
|
|
168
215
|
id: Scalars['UUID'];
|
|
169
216
|
};
|
|
170
|
-
export declare type QueryGetFormDefinitionArgs = {
|
|
171
|
-
name: Scalars['String'];
|
|
172
|
-
};
|
|
173
217
|
export declare type QueryGetFormDefinitionByIdArgs = {
|
|
174
218
|
id: Scalars['String'];
|
|
175
219
|
};
|
|
176
|
-
export declare type
|
|
220
|
+
export declare type QueryGetFormDefinitionByNameArgs = {
|
|
221
|
+
name: Scalars['String'];
|
|
222
|
+
};
|
|
223
|
+
export declare type QueryGetFormDefinitionByObjectenApiUrlArgs = {
|
|
224
|
+
url: Scalars['String'];
|
|
225
|
+
};
|
|
226
|
+
export declare type QueryGetKlantContactMomentenArgs = {
|
|
227
|
+
pageNumber?: Maybe<Scalars['Int']>;
|
|
228
|
+
};
|
|
229
|
+
export declare type QueryGetObjectContactMomentenArgs = {
|
|
230
|
+
objectUrl: Scalars['String'];
|
|
231
|
+
pageNumber?: Maybe<Scalars['Int']>;
|
|
232
|
+
};
|
|
233
|
+
export declare type QueryGetTaakByIdArgs = {
|
|
177
234
|
id: Scalars['UUID'];
|
|
178
235
|
};
|
|
236
|
+
export declare type QueryGetTakenArgs = {
|
|
237
|
+
pageNumber?: Maybe<Scalars['Int']>;
|
|
238
|
+
pageSize?: Maybe<Scalars['Int']>;
|
|
239
|
+
zaakUUID?: Maybe<Scalars['UUID']>;
|
|
240
|
+
};
|
|
179
241
|
export declare type QueryGetTasksArgs = {
|
|
180
242
|
pageNumber?: Maybe<Scalars['Int']>;
|
|
181
243
|
pageSize?: Maybe<Scalars['Int']>;
|
|
@@ -191,28 +253,44 @@ export declare type StatusType = {
|
|
|
191
253
|
isEindstatus?: Maybe<Scalars['Boolean']>;
|
|
192
254
|
omschrijving?: Maybe<Scalars['String']>;
|
|
193
255
|
};
|
|
194
|
-
export declare type
|
|
195
|
-
__typename?: '
|
|
256
|
+
export declare type Taak = {
|
|
257
|
+
__typename?: 'Taak';
|
|
196
258
|
data: Scalars['JSON'];
|
|
197
259
|
date: Scalars['String'];
|
|
260
|
+
/** @deprecated Use formulier type/value */
|
|
198
261
|
formId: Scalars['String'];
|
|
262
|
+
formulier: TaakFormulier;
|
|
199
263
|
id: Scalars['UUID'];
|
|
264
|
+
identificatie: TaakIdentificatie;
|
|
200
265
|
objectId: Scalars['UUID'];
|
|
201
|
-
status:
|
|
266
|
+
status: TaakStatus;
|
|
202
267
|
title: Scalars['String'];
|
|
268
|
+
verloopdatum?: Maybe<Scalars['LocalDateTime']>;
|
|
269
|
+
zaak?: Maybe<Scalars['String']>;
|
|
270
|
+
};
|
|
271
|
+
export declare type TaakFormulier = {
|
|
272
|
+
__typename?: 'TaakFormulier';
|
|
273
|
+
formuliertype: Scalars['String'];
|
|
274
|
+
value: Scalars['String'];
|
|
203
275
|
};
|
|
204
|
-
export declare type
|
|
205
|
-
__typename?: '
|
|
206
|
-
|
|
276
|
+
export declare type TaakIdentificatie = {
|
|
277
|
+
__typename?: 'TaakIdentificatie';
|
|
278
|
+
type: Scalars['String'];
|
|
279
|
+
value: Scalars['String'];
|
|
280
|
+
};
|
|
281
|
+
export declare type TaakPage = {
|
|
282
|
+
__typename?: 'TaakPage';
|
|
283
|
+
content: Array<Taak>;
|
|
207
284
|
number: Scalars['Int'];
|
|
208
285
|
/** The number of elements on this page */
|
|
209
286
|
numberOfElements: Scalars['Int'];
|
|
287
|
+
results: Array<Taak>;
|
|
210
288
|
size: Scalars['Int'];
|
|
211
289
|
totalElements: Scalars['Int'];
|
|
212
290
|
/** The total number of available pages */
|
|
213
291
|
totalPages: Scalars['Int'];
|
|
214
292
|
};
|
|
215
|
-
export declare enum
|
|
293
|
+
export declare enum TaakStatus {
|
|
216
294
|
Gesloten = "GESLOTEN",
|
|
217
295
|
Ingediend = "INGEDIEND",
|
|
218
296
|
Open = "OPEN",
|
|
@@ -229,8 +307,14 @@ export declare type Zaak = {
|
|
|
229
307
|
statussen: Array<StatusType>;
|
|
230
308
|
url: Scalars['String'];
|
|
231
309
|
uuid: Scalars['UUID'];
|
|
310
|
+
zaakdetails: ZaakDetails;
|
|
232
311
|
zaaktype: ZaakType;
|
|
233
312
|
};
|
|
313
|
+
export declare type ZaakDetails = {
|
|
314
|
+
__typename?: 'ZaakDetails';
|
|
315
|
+
data: Array<Scalars['JSON']>;
|
|
316
|
+
zaak: Scalars['String'];
|
|
317
|
+
};
|
|
234
318
|
export declare type ZaakStatus = {
|
|
235
319
|
__typename?: 'ZaakStatus';
|
|
236
320
|
datumStatusGezet: Scalars['String'];
|
|
@@ -246,6 +330,11 @@ export declare type ZaakType = {
|
|
|
246
330
|
identificatie: Scalars['String'];
|
|
247
331
|
omschrijving: Scalars['String'];
|
|
248
332
|
};
|
|
333
|
+
export declare type FormulierFieldsFragment = {
|
|
334
|
+
__typename?: 'TaakFormulier';
|
|
335
|
+
formuliertype: string;
|
|
336
|
+
value: string;
|
|
337
|
+
};
|
|
249
338
|
export declare type SubmitTaskMutationVariables = Exact<{
|
|
250
339
|
id: Scalars['UUID'];
|
|
251
340
|
submission: Scalars['JSON'];
|
|
@@ -253,12 +342,12 @@ export declare type SubmitTaskMutationVariables = Exact<{
|
|
|
253
342
|
export declare type SubmitTaskMutation = {
|
|
254
343
|
__typename?: 'Mutation';
|
|
255
344
|
submitTask: {
|
|
256
|
-
__typename?: '
|
|
345
|
+
__typename?: 'Taak';
|
|
257
346
|
id: any;
|
|
258
347
|
objectId: any;
|
|
259
348
|
formId: string;
|
|
260
349
|
title: string;
|
|
261
|
-
status:
|
|
350
|
+
status: TaakStatus;
|
|
262
351
|
date: string;
|
|
263
352
|
};
|
|
264
353
|
};
|
|
@@ -314,6 +403,7 @@ export declare type GetDocumentenQuery = {
|
|
|
314
403
|
};
|
|
315
404
|
documenten: Array<{
|
|
316
405
|
__typename?: 'Document';
|
|
406
|
+
documentapi: string;
|
|
317
407
|
bestandsnaam?: Maybe<string>;
|
|
318
408
|
bestandsomvang?: Maybe<number>;
|
|
319
409
|
creatiedatum?: Maybe<string>;
|
|
@@ -334,12 +424,22 @@ export declare type GetFormDefinitionByIdQuery = {
|
|
|
334
424
|
formDefinition: any;
|
|
335
425
|
}>;
|
|
336
426
|
};
|
|
427
|
+
export declare type GetFormDefinitionByObjectenApiUrlQueryVariables = Exact<{
|
|
428
|
+
url: Scalars['String'];
|
|
429
|
+
}>;
|
|
430
|
+
export declare type GetFormDefinitionByObjectenApiUrlQuery = {
|
|
431
|
+
__typename?: 'Query';
|
|
432
|
+
getFormDefinitionByObjectenApiUrl?: Maybe<{
|
|
433
|
+
__typename?: 'FormDefinition';
|
|
434
|
+
formDefinition: any;
|
|
435
|
+
}>;
|
|
436
|
+
};
|
|
337
437
|
export declare type GetFormDefinitionByNameQueryVariables = Exact<{
|
|
338
438
|
name: Scalars['String'];
|
|
339
439
|
}>;
|
|
340
440
|
export declare type GetFormDefinitionByNameQuery = {
|
|
341
441
|
__typename?: 'Query';
|
|
342
|
-
|
|
442
|
+
getFormDefinitionByName?: Maybe<{
|
|
343
443
|
__typename?: 'FormDefinition';
|
|
344
444
|
formDefinition: any;
|
|
345
445
|
}>;
|
|
@@ -376,6 +476,36 @@ export declare type GetGemachtigdeQuery = {
|
|
|
376
476
|
}>;
|
|
377
477
|
};
|
|
378
478
|
};
|
|
479
|
+
export declare type GetKlantContactMomentenQueryVariables = Exact<{
|
|
480
|
+
[key: string]: never;
|
|
481
|
+
}>;
|
|
482
|
+
export declare type GetKlantContactMomentenQuery = {
|
|
483
|
+
__typename?: 'Query';
|
|
484
|
+
getKlantContactMomenten?: Maybe<{
|
|
485
|
+
__typename?: 'ContactMomentPage';
|
|
486
|
+
content: Array<{
|
|
487
|
+
__typename?: 'ContactMoment';
|
|
488
|
+
tekst: string;
|
|
489
|
+
kanaal: string;
|
|
490
|
+
registratiedatum: string;
|
|
491
|
+
}>;
|
|
492
|
+
}>;
|
|
493
|
+
};
|
|
494
|
+
export declare type GetObjectContactMomentenQueryVariables = Exact<{
|
|
495
|
+
objectUrl: Scalars['String'];
|
|
496
|
+
}>;
|
|
497
|
+
export declare type GetObjectContactMomentenQuery = {
|
|
498
|
+
__typename?: 'Query';
|
|
499
|
+
getObjectContactMomenten?: Maybe<{
|
|
500
|
+
__typename?: 'ContactMomentPage';
|
|
501
|
+
content: Array<{
|
|
502
|
+
__typename?: 'ContactMoment';
|
|
503
|
+
tekst: string;
|
|
504
|
+
kanaal: string;
|
|
505
|
+
registratiedatum: string;
|
|
506
|
+
}>;
|
|
507
|
+
}>;
|
|
508
|
+
};
|
|
379
509
|
export declare type GetPersoonDataQueryVariables = Exact<{
|
|
380
510
|
[key: string]: never;
|
|
381
511
|
}>;
|
|
@@ -442,22 +572,45 @@ export declare type GetPersoonQuery = {
|
|
|
442
572
|
}>;
|
|
443
573
|
}>;
|
|
444
574
|
};
|
|
445
|
-
export declare type
|
|
446
|
-
|
|
575
|
+
export declare type GetTaakByIdQueryVariables = Exact<{
|
|
576
|
+
id: Scalars['UUID'];
|
|
447
577
|
}>;
|
|
448
|
-
export declare type
|
|
578
|
+
export declare type GetTaakByIdQuery = {
|
|
449
579
|
__typename?: 'Query';
|
|
450
|
-
|
|
451
|
-
__typename?: '
|
|
580
|
+
getTaakById: {
|
|
581
|
+
__typename?: 'Taak';
|
|
582
|
+
id: any;
|
|
583
|
+
status: TaakStatus;
|
|
584
|
+
date: string;
|
|
585
|
+
data: any;
|
|
586
|
+
formulier: {
|
|
587
|
+
__typename?: 'TaakFormulier';
|
|
588
|
+
formuliertype: string;
|
|
589
|
+
value: string;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
export declare type GetTakenQueryVariables = Exact<{
|
|
594
|
+
zaakId?: Maybe<Scalars['UUID']>;
|
|
595
|
+
}>;
|
|
596
|
+
export declare type GetTakenQuery = {
|
|
597
|
+
__typename?: 'Query';
|
|
598
|
+
getTaken: {
|
|
599
|
+
__typename?: 'TaakPage';
|
|
452
600
|
content: Array<{
|
|
453
|
-
__typename?: '
|
|
601
|
+
__typename?: 'Taak';
|
|
454
602
|
id: any;
|
|
455
603
|
objectId: any;
|
|
456
|
-
formId: string;
|
|
457
604
|
title: string;
|
|
458
|
-
status:
|
|
605
|
+
status: TaakStatus;
|
|
459
606
|
date: string;
|
|
460
607
|
data: any;
|
|
608
|
+
verloopdatum?: Maybe<any>;
|
|
609
|
+
formulier: {
|
|
610
|
+
__typename?: 'TaakFormulier';
|
|
611
|
+
formuliertype: string;
|
|
612
|
+
value: string;
|
|
613
|
+
};
|
|
461
614
|
}>;
|
|
462
615
|
};
|
|
463
616
|
};
|
|
@@ -469,6 +622,7 @@ export declare type GetZaakQuery = {
|
|
|
469
622
|
getZaak: {
|
|
470
623
|
__typename?: 'Zaak';
|
|
471
624
|
uuid: any;
|
|
625
|
+
url: string;
|
|
472
626
|
omschrijving: string;
|
|
473
627
|
identificatie: string;
|
|
474
628
|
startdatum: any;
|
|
@@ -501,6 +655,7 @@ export declare type GetZaakQuery = {
|
|
|
501
655
|
}>;
|
|
502
656
|
documenten: Array<{
|
|
503
657
|
__typename?: 'Document';
|
|
658
|
+
documentapi: string;
|
|
504
659
|
bestandsnaam?: Maybe<string>;
|
|
505
660
|
bestandsomvang?: Maybe<number>;
|
|
506
661
|
creatiedatum?: Maybe<string>;
|
|
@@ -509,6 +664,11 @@ export declare type GetZaakQuery = {
|
|
|
509
664
|
titel?: Maybe<string>;
|
|
510
665
|
uuid: any;
|
|
511
666
|
}>;
|
|
667
|
+
zaakdetails: {
|
|
668
|
+
__typename?: 'ZaakDetails';
|
|
669
|
+
data: Array<any>;
|
|
670
|
+
zaak: string;
|
|
671
|
+
};
|
|
512
672
|
};
|
|
513
673
|
};
|
|
514
674
|
export declare type GetZakenQueryVariables = Exact<{
|
|
@@ -535,6 +695,7 @@ export declare type GetZakenQuery = {
|
|
|
535
695
|
}>;
|
|
536
696
|
}>;
|
|
537
697
|
};
|
|
698
|
+
export declare const FormulierFieldsFragmentDoc: Apollo.DocumentNode;
|
|
538
699
|
export declare const SubmitTaskDocument: Apollo.DocumentNode;
|
|
539
700
|
export declare type SubmitTaskMutationFn = Apollo.MutationFunction<SubmitTaskMutation, SubmitTaskMutationVariables>;
|
|
540
701
|
/**
|
|
@@ -714,6 +875,32 @@ export declare function useGetFormDefinitionByIdLazyQuery(baseOptions?: Apollo.L
|
|
|
714
875
|
export declare type GetFormDefinitionByIdQueryHookResult = ReturnType<typeof useGetFormDefinitionByIdQuery>;
|
|
715
876
|
export declare type GetFormDefinitionByIdLazyQueryHookResult = ReturnType<typeof useGetFormDefinitionByIdLazyQuery>;
|
|
716
877
|
export declare type GetFormDefinitionByIdQueryResult = Apollo.QueryResult<GetFormDefinitionByIdQuery, GetFormDefinitionByIdQueryVariables>;
|
|
878
|
+
export declare const GetFormDefinitionByObjectenApiUrlDocument: Apollo.DocumentNode;
|
|
879
|
+
/**
|
|
880
|
+
* __useGetFormDefinitionByObjectenApiUrlQuery__
|
|
881
|
+
*
|
|
882
|
+
* To run a query within a React component, call `useGetFormDefinitionByObjectenApiUrlQuery` and pass it any options that fit your needs.
|
|
883
|
+
* When your component renders, `useGetFormDefinitionByObjectenApiUrlQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
884
|
+
* you can use to render your UI.
|
|
885
|
+
*
|
|
886
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
887
|
+
*
|
|
888
|
+
* @example
|
|
889
|
+
* const { data, loading, error } = useGetFormDefinitionByObjectenApiUrlQuery({
|
|
890
|
+
* variables: {
|
|
891
|
+
* url: // value for 'url'
|
|
892
|
+
* },
|
|
893
|
+
* });
|
|
894
|
+
*/
|
|
895
|
+
export declare function useGetFormDefinitionByObjectenApiUrlQuery(baseOptions: Apollo.QueryHookOptions<GetFormDefinitionByObjectenApiUrlQuery, GetFormDefinitionByObjectenApiUrlQueryVariables>): Apollo.QueryResult<GetFormDefinitionByObjectenApiUrlQuery, Exact<{
|
|
896
|
+
url: string;
|
|
897
|
+
}>>;
|
|
898
|
+
export declare function useGetFormDefinitionByObjectenApiUrlLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetFormDefinitionByObjectenApiUrlQuery, GetFormDefinitionByObjectenApiUrlQueryVariables>): Apollo.QueryTuple<GetFormDefinitionByObjectenApiUrlQuery, Exact<{
|
|
899
|
+
url: string;
|
|
900
|
+
}>>;
|
|
901
|
+
export declare type GetFormDefinitionByObjectenApiUrlQueryHookResult = ReturnType<typeof useGetFormDefinitionByObjectenApiUrlQuery>;
|
|
902
|
+
export declare type GetFormDefinitionByObjectenApiUrlLazyQueryHookResult = ReturnType<typeof useGetFormDefinitionByObjectenApiUrlLazyQuery>;
|
|
903
|
+
export declare type GetFormDefinitionByObjectenApiUrlQueryResult = Apollo.QueryResult<GetFormDefinitionByObjectenApiUrlQuery, GetFormDefinitionByObjectenApiUrlQueryVariables>;
|
|
717
904
|
export declare const GetFormDefinitionByNameDocument: Apollo.DocumentNode;
|
|
718
905
|
/**
|
|
719
906
|
* __useGetFormDefinitionByNameQuery__
|
|
@@ -790,6 +977,57 @@ export declare function useGetGemachtigdeLazyQuery(baseOptions?: Apollo.LazyQuer
|
|
|
790
977
|
export declare type GetGemachtigdeQueryHookResult = ReturnType<typeof useGetGemachtigdeQuery>;
|
|
791
978
|
export declare type GetGemachtigdeLazyQueryHookResult = ReturnType<typeof useGetGemachtigdeLazyQuery>;
|
|
792
979
|
export declare type GetGemachtigdeQueryResult = Apollo.QueryResult<GetGemachtigdeQuery, GetGemachtigdeQueryVariables>;
|
|
980
|
+
export declare const GetKlantContactMomentenDocument: Apollo.DocumentNode;
|
|
981
|
+
/**
|
|
982
|
+
* __useGetKlantContactMomentenQuery__
|
|
983
|
+
*
|
|
984
|
+
* To run a query within a React component, call `useGetKlantContactMomentenQuery` and pass it any options that fit your needs.
|
|
985
|
+
* When your component renders, `useGetKlantContactMomentenQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
986
|
+
* you can use to render your UI.
|
|
987
|
+
*
|
|
988
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
989
|
+
*
|
|
990
|
+
* @example
|
|
991
|
+
* const { data, loading, error } = useGetKlantContactMomentenQuery({
|
|
992
|
+
* variables: {
|
|
993
|
+
* },
|
|
994
|
+
* });
|
|
995
|
+
*/
|
|
996
|
+
export declare function useGetKlantContactMomentenQuery(baseOptions?: Apollo.QueryHookOptions<GetKlantContactMomentenQuery, GetKlantContactMomentenQueryVariables>): Apollo.QueryResult<GetKlantContactMomentenQuery, Exact<{
|
|
997
|
+
[key: string]: never;
|
|
998
|
+
}>>;
|
|
999
|
+
export declare function useGetKlantContactMomentenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetKlantContactMomentenQuery, GetKlantContactMomentenQueryVariables>): Apollo.QueryTuple<GetKlantContactMomentenQuery, Exact<{
|
|
1000
|
+
[key: string]: never;
|
|
1001
|
+
}>>;
|
|
1002
|
+
export declare type GetKlantContactMomentenQueryHookResult = ReturnType<typeof useGetKlantContactMomentenQuery>;
|
|
1003
|
+
export declare type GetKlantContactMomentenLazyQueryHookResult = ReturnType<typeof useGetKlantContactMomentenLazyQuery>;
|
|
1004
|
+
export declare type GetKlantContactMomentenQueryResult = Apollo.QueryResult<GetKlantContactMomentenQuery, GetKlantContactMomentenQueryVariables>;
|
|
1005
|
+
export declare const GetObjectContactMomentenDocument: Apollo.DocumentNode;
|
|
1006
|
+
/**
|
|
1007
|
+
* __useGetObjectContactMomentenQuery__
|
|
1008
|
+
*
|
|
1009
|
+
* To run a query within a React component, call `useGetObjectContactMomentenQuery` and pass it any options that fit your needs.
|
|
1010
|
+
* When your component renders, `useGetObjectContactMomentenQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1011
|
+
* you can use to render your UI.
|
|
1012
|
+
*
|
|
1013
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1014
|
+
*
|
|
1015
|
+
* @example
|
|
1016
|
+
* const { data, loading, error } = useGetObjectContactMomentenQuery({
|
|
1017
|
+
* variables: {
|
|
1018
|
+
* objectUrl: // value for 'objectUrl'
|
|
1019
|
+
* },
|
|
1020
|
+
* });
|
|
1021
|
+
*/
|
|
1022
|
+
export declare function useGetObjectContactMomentenQuery(baseOptions: Apollo.QueryHookOptions<GetObjectContactMomentenQuery, GetObjectContactMomentenQueryVariables>): Apollo.QueryResult<GetObjectContactMomentenQuery, Exact<{
|
|
1023
|
+
objectUrl: string;
|
|
1024
|
+
}>>;
|
|
1025
|
+
export declare function useGetObjectContactMomentenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetObjectContactMomentenQuery, GetObjectContactMomentenQueryVariables>): Apollo.QueryTuple<GetObjectContactMomentenQuery, Exact<{
|
|
1026
|
+
objectUrl: string;
|
|
1027
|
+
}>>;
|
|
1028
|
+
export declare type GetObjectContactMomentenQueryHookResult = ReturnType<typeof useGetObjectContactMomentenQuery>;
|
|
1029
|
+
export declare type GetObjectContactMomentenLazyQueryHookResult = ReturnType<typeof useGetObjectContactMomentenLazyQuery>;
|
|
1030
|
+
export declare type GetObjectContactMomentenQueryResult = Apollo.QueryResult<GetObjectContactMomentenQuery, GetObjectContactMomentenQueryVariables>;
|
|
793
1031
|
export declare const GetPersoonDataDocument: Apollo.DocumentNode;
|
|
794
1032
|
/**
|
|
795
1033
|
* __useGetPersoonDataQuery__
|
|
@@ -840,31 +1078,58 @@ export declare function useGetPersoonLazyQuery(baseOptions?: Apollo.LazyQueryHoo
|
|
|
840
1078
|
export declare type GetPersoonQueryHookResult = ReturnType<typeof useGetPersoonQuery>;
|
|
841
1079
|
export declare type GetPersoonLazyQueryHookResult = ReturnType<typeof useGetPersoonLazyQuery>;
|
|
842
1080
|
export declare type GetPersoonQueryResult = Apollo.QueryResult<GetPersoonQuery, GetPersoonQueryVariables>;
|
|
843
|
-
export declare const
|
|
1081
|
+
export declare const GetTaakByIdDocument: Apollo.DocumentNode;
|
|
844
1082
|
/**
|
|
845
|
-
*
|
|
1083
|
+
* __useGetTaakByIdQuery__
|
|
846
1084
|
*
|
|
847
|
-
* To run a query within a React component, call `
|
|
848
|
-
* When your component renders, `
|
|
1085
|
+
* To run a query within a React component, call `useGetTaakByIdQuery` and pass it any options that fit your needs.
|
|
1086
|
+
* When your component renders, `useGetTaakByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
849
1087
|
* you can use to render your UI.
|
|
850
1088
|
*
|
|
851
1089
|
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
852
1090
|
*
|
|
853
1091
|
* @example
|
|
854
|
-
* const { data, loading, error } =
|
|
1092
|
+
* const { data, loading, error } = useGetTaakByIdQuery({
|
|
855
1093
|
* variables: {
|
|
1094
|
+
* id: // value for 'id'
|
|
856
1095
|
* },
|
|
857
1096
|
* });
|
|
858
1097
|
*/
|
|
859
|
-
export declare function
|
|
860
|
-
|
|
1098
|
+
export declare function useGetTaakByIdQuery(baseOptions: Apollo.QueryHookOptions<GetTaakByIdQuery, GetTaakByIdQueryVariables>): Apollo.QueryResult<GetTaakByIdQuery, Exact<{
|
|
1099
|
+
id: any;
|
|
861
1100
|
}>>;
|
|
862
|
-
export declare function
|
|
863
|
-
|
|
1101
|
+
export declare function useGetTaakByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTaakByIdQuery, GetTaakByIdQueryVariables>): Apollo.QueryTuple<GetTaakByIdQuery, Exact<{
|
|
1102
|
+
id: any;
|
|
1103
|
+
}>>;
|
|
1104
|
+
export declare type GetTaakByIdQueryHookResult = ReturnType<typeof useGetTaakByIdQuery>;
|
|
1105
|
+
export declare type GetTaakByIdLazyQueryHookResult = ReturnType<typeof useGetTaakByIdLazyQuery>;
|
|
1106
|
+
export declare type GetTaakByIdQueryResult = Apollo.QueryResult<GetTaakByIdQuery, GetTaakByIdQueryVariables>;
|
|
1107
|
+
export declare const GetTakenDocument: Apollo.DocumentNode;
|
|
1108
|
+
/**
|
|
1109
|
+
* __useGetTakenQuery__
|
|
1110
|
+
*
|
|
1111
|
+
* To run a query within a React component, call `useGetTakenQuery` and pass it any options that fit your needs.
|
|
1112
|
+
* When your component renders, `useGetTakenQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1113
|
+
* you can use to render your UI.
|
|
1114
|
+
*
|
|
1115
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1116
|
+
*
|
|
1117
|
+
* @example
|
|
1118
|
+
* const { data, loading, error } = useGetTakenQuery({
|
|
1119
|
+
* variables: {
|
|
1120
|
+
* zaakId: // value for 'zaakId'
|
|
1121
|
+
* },
|
|
1122
|
+
* });
|
|
1123
|
+
*/
|
|
1124
|
+
export declare function useGetTakenQuery(baseOptions?: Apollo.QueryHookOptions<GetTakenQuery, GetTakenQueryVariables>): Apollo.QueryResult<GetTakenQuery, Exact<{
|
|
1125
|
+
zaakId?: any;
|
|
1126
|
+
}>>;
|
|
1127
|
+
export declare function useGetTakenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTakenQuery, GetTakenQueryVariables>): Apollo.QueryTuple<GetTakenQuery, Exact<{
|
|
1128
|
+
zaakId?: any;
|
|
864
1129
|
}>>;
|
|
865
|
-
export declare type
|
|
866
|
-
export declare type
|
|
867
|
-
export declare type
|
|
1130
|
+
export declare type GetTakenQueryHookResult = ReturnType<typeof useGetTakenQuery>;
|
|
1131
|
+
export declare type GetTakenLazyQueryHookResult = ReturnType<typeof useGetTakenLazyQuery>;
|
|
1132
|
+
export declare type GetTakenQueryResult = Apollo.QueryResult<GetTakenQuery, GetTakenQueryVariables>;
|
|
868
1133
|
export declare const GetZaakDocument: Apollo.DocumentNode;
|
|
869
1134
|
/**
|
|
870
1135
|
* __useGetZaakQuery__
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e,n,t,r,u,a,o,s,i,m,y,c,l,d,f,p=require("@apollo/client"),g=require("react"),G=require("@gemeente-denhaag/nl-portal-authentication");function v(){return(v=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function x(e,n){return n||(n=e.slice(0)),e.raw=n,e}var Q,D={};(Q=exports.TaskStatus||(exports.TaskStatus={})).Gesloten="GESLOTEN",Q.Ingediend="INGEDIEND",Q.Open="OPEN",Q.Verwerkt="VERWERKT";var k,h=p.gql(e||(e=x(["\n mutation SubmitTask($id: UUID!, $submission: JSON!) {\n submitTask(id: $id, submission: $submission) {\n id\n objectId\n formId\n title\n status\n date\n }\n}\n "]))),L=p.gql(n||(n=x(["\n mutation UpdateBurgerProfiel($klant: KlantUpdateInput!) {\n updateBurgerProfiel(klant: $klant) {\n emailadres\n telefoonnummer\n }\n}\n "]))),q=p.gql(t||(t=x(["\n query GetBedrijf {\n getBedrijf {\n naam\n }\n}\n "]))),z=p.gql(r||(r=x(["\n query GetBewonersAantal {\n getBewonersAantal\n}\n "]))),B=p.gql(u||(u=x(["\n query GetBurgerProfiel {\n getBurgerProfiel {\n emailadres\n telefoonnummer\n }\n}\n "]))),E=p.gql(a||(a=x(["\n query GetDocumenten($id: UUID!) {\n getZaak(id: $id) {\n zaaktype {\n identificatie\n }\n documenten {\n bestandsnaam\n bestandsomvang\n creatiedatum\n formaat\n identificatie\n titel\n uuid\n }\n }\n}\n "]))),P=p.gql(o||(o=x(["\n query GetFormDefinitionById($id: String!) {\n getFormDefinitionById(id: $id) {\n formDefinition\n }\n}\n "]))),T=p.gql(s||(s=x(["\n query GetFormDefinitionByName($name: String!) {\n getFormDefinition(name: $name) {\n formDefinition\n }\n}\n "]))),j=p.gql(i||(i=x(["\n query GetForms {\n getFormList {\n name\n uuid\n }\n}\n "]))),b=p.gql(m||(m=x(["\n query GetGemachtigde {\n getGemachtigde {\n persoon {\n aanhef\n voorletters\n voornamen\n voorvoegsel\n geslachtsnaam\n }\n bedrijf {\n naam\n }\n }\n}\n "]))),I=p.gql(y||(y=x(["\n query GetPersoonData {\n getPersoon {\n burgerservicenummer\n geslachtsaanduiding\n naam {\n aanhef\n voorletters\n voornamen\n voorvoegsel\n geslachtsnaam\n }\n verblijfplaats {\n straat\n huisnummer\n huisletter\n huisnummertoevoeging\n postcode\n woonplaats\n }\n geboorte {\n datum {\n datum\n jaar\n maand\n dag\n }\n land {\n code\n omschrijving\n }\n }\n nationaliteiten {\n nationaliteit {\n code\n omschrijving\n }\n }\n }\n}\n "]))),O=p.gql(c||(c=x(["\n query GetPersoon {\n getPersoon {\n naam {\n voornamen\n voorvoegsel\n geslachtsnaam\n }\n }\n}\n "]))),S=p.gql(l||(l=x(["\n query GetTasks {\n getTasks {\n content {\n id\n objectId\n formId\n title\n status\n date\n data\n }\n }\n}\n "]))),U=p.gql(d||(d=x(["\n query GetZaak($id: UUID!) {\n getZaak(id: $id) {\n uuid\n omschrijving\n identificatie\n zaaktype {\n identificatie\n omschrijving\n }\n startdatum\n status {\n datumStatusGezet\n statustype {\n omschrijving\n isEindstatus\n }\n }\n statusGeschiedenis {\n datumStatusGezet\n statustype {\n omschrijving\n isEindstatus\n }\n }\n statussen {\n omschrijving\n }\n documenten {\n bestandsnaam\n bestandsomvang\n creatiedatum\n formaat\n identificatie\n titel\n uuid\n }\n }\n}\n "]))),F=p.gql(f||(f=x(["\n query GetZaken {\n getZaken {\n uuid\n omschrijving\n identificatie\n zaaktype {\n identificatie\n }\n startdatum\n status {\n statustype {\n isEindstatus\n }\n }\n }\n}\n "]))),K=g.createContext({}),N=((k={}).KEYCLOAK_TOKEN="",k);exports.ApiContext=K,exports.ApiWrapper=function(e){var n=e.children,t=e.restUri,r=G.formatUrlTrailingSlash(e.graphqlUri,!1),u=G.formatUrlTrailingSlash(t,!1),a=g.useContext(G.KeycloakContext).keycloakToken,o=new p.HttpLink({uri:r}),s=function(e){return new p.ApolloLink(function(n,t){return n.setContext({headers:{authorization:"Bearer "+e}}),t(n)}).concat(o)},i=g.useState(function(){return new p.ApolloClient({uri:r,cache:new p.InMemoryCache,link:s(a)})})[0];return g.useEffect(function(){i.setLink(s(a)),N.KEYCLOAK_TOKEN=a},[a]),sessionStorage.setItem("REST_URI",u),a?g.createElement(K.Provider,{value:{restUri:u}},g.createElement(p.ApolloProvider,{client:i},n)):null},exports.GetBedrijfDocument=q,exports.GetBewonersAantalDocument=z,exports.GetBurgerProfielDocument=B,exports.GetDocumentenDocument=E,exports.GetFormDefinitionByIdDocument=P,exports.GetFormDefinitionByNameDocument=T,exports.GetFormsDocument=j,exports.GetGemachtigdeDocument=b,exports.GetPersoonDataDocument=I,exports.GetPersoonDocument=O,exports.GetTasksDocument=S,exports.GetZaakDocument=U,exports.GetZakenDocument=F,exports.SubmitTaskDocument=h,exports.TOKEN_KEY="KEYCLOAK_TOKEN",exports.TOKEN_OBJECT=N,exports.UpdateBurgerProfielDocument=L,exports.useGetBedrijfLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(q,n)},exports.useGetBedrijfQuery=function(e){var n=v({},D,e);return p.useQuery(q,n)},exports.useGetBewonersAantalLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(z,n)},exports.useGetBewonersAantalQuery=function(e){var n=v({},D,e);return p.useQuery(z,n)},exports.useGetBurgerProfielLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(B,n)},exports.useGetBurgerProfielQuery=function(e){var n=v({},D,e);return p.useQuery(B,n)},exports.useGetDocumentenLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(E,n)},exports.useGetDocumentenQuery=function(e){var n=v({},D,e);return p.useQuery(E,n)},exports.useGetFormDefinitionByIdLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(P,n)},exports.useGetFormDefinitionByIdQuery=function(e){var n=v({},D,e);return p.useQuery(P,n)},exports.useGetFormDefinitionByNameLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(T,n)},exports.useGetFormDefinitionByNameQuery=function(e){var n=v({},D,e);return p.useQuery(T,n)},exports.useGetFormsLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(j,n)},exports.useGetFormsQuery=function(e){var n=v({},D,e);return p.useQuery(j,n)},exports.useGetGemachtigdeLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(b,n)},exports.useGetGemachtigdeQuery=function(e){var n=v({},D,e);return p.useQuery(b,n)},exports.useGetPersoonDataLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(I,n)},exports.useGetPersoonDataQuery=function(e){var n=v({},D,e);return p.useQuery(I,n)},exports.useGetPersoonLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(O,n)},exports.useGetPersoonQuery=function(e){var n=v({},D,e);return p.useQuery(O,n)},exports.useGetTasksLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(S,n)},exports.useGetTasksQuery=function(e){var n=v({},D,e);return p.useQuery(S,n)},exports.useGetZaakLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(U,n)},exports.useGetZaakQuery=function(e){var n=v({},D,e);return p.useQuery(U,n)},exports.useGetZakenLazyQuery=function(e){var n=v({},D,e);return p.useLazyQuery(F,n)},exports.useGetZakenQuery=function(e){var n=v({},D,e);return p.useQuery(F,n)},exports.useSubmitTaskMutation=function(e){var n=v({},D,e);return p.useMutation(h,n)},exports.useUpdateBurgerProfielMutation=function(e){var n=v({},D,e);return p.useMutation(L,n)};
|
|
1
|
+
var n,e,t,r,a,u,o,i,s,m,c,l,y,d,g,p,f,G,v,Q,x=require("@apollo/client"),k=require("react"),D=require("@nl-portal/nl-portal-authentication");function q(){return(q=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n}).apply(this,arguments)}function z(n,e){return e||(e=n.slice(0)),n.raw=e,n}var h,j={};(h=exports.TaakStatus||(exports.TaakStatus={})).Gesloten="GESLOTEN",h.Ingediend="INGEDIEND",h.Open="OPEN",h.Verwerkt="VERWERKT";var E,U,B,T,b,L,F,O,I=x.gql(n||(n=z(["\n fragment FormulierFields on TaakFormulier {\n formuliertype\n value\n}\n "]))),P=x.gql(e||(e=z(["\n mutation SubmitTask($id: UUID!, $submission: JSON!) {\n submitTask(id: $id, submission: $submission) {\n id\n objectId\n formId\n title\n status\n date\n }\n}\n "]))),$=x.gql(t||(t=z(["\n mutation UpdateBurgerProfiel($klant: KlantUpdateInput!) {\n updateBurgerProfiel(klant: $klant) {\n emailadres\n telefoonnummer\n }\n}\n "]))),C=x.gql(r||(r=z(["\n query GetBedrijf {\n getBedrijf {\n naam\n }\n}\n "]))),A=x.gql(a||(a=z(["\n query GetBewonersAantal {\n getBewonersAantal\n}\n "]))),S=x.gql(u||(u=z(["\n query GetBurgerProfiel {\n getBurgerProfiel {\n emailadres\n telefoonnummer\n }\n}\n "]))),K=x.gql(o||(o=z(["\n query GetDocumenten($id: UUID!) {\n getZaak(id: $id) {\n zaaktype {\n identificatie\n }\n documenten {\n documentapi\n bestandsnaam\n bestandsomvang\n creatiedatum\n formaat\n identificatie\n titel\n uuid\n }\n }\n}\n "]))),N=x.gql(i||(i=z(["\n query GetFormDefinitionById($id: String!) {\n getFormDefinitionById(id: $id) {\n formDefinition\n }\n}\n "]))),_=x.gql(s||(s=z(["\n query GetFormDefinitionByObjectenApiUrl($url: String!) {\n getFormDefinitionByObjectenApiUrl(url: $url) {\n formDefinition\n }\n}\n "]))),M=x.gql(m||(m=z(["\n query GetFormDefinitionByName($name: String!) {\n getFormDefinitionByName(name: $name) {\n formDefinition\n }\n}\n "]))),R=x.gql(c||(c=z(["\n query GetForms {\n getFormList {\n name\n uuid\n }\n}\n "]))),w=x.gql(l||(l=z(["\n query GetGemachtigde {\n getGemachtigde {\n persoon {\n aanhef\n voorletters\n voornamen\n voorvoegsel\n geslachtsnaam\n }\n bedrijf {\n naam\n }\n }\n}\n "]))),Z=x.gql(y||(y=z(["\n query GetKlantContactMomenten {\n getKlantContactMomenten {\n content {\n tekst\n kanaal\n registratiedatum\n }\n }\n}\n "]))),Y=x.gql(d||(d=z(["\n query GetObjectContactMomenten($objectUrl: String!) {\n getObjectContactMomenten(objectUrl: $objectUrl) {\n content {\n tekst\n kanaal\n registratiedatum\n }\n }\n}\n "]))),J=x.gql(g||(g=z(["\n query GetPersoonData {\n getPersoon {\n burgerservicenummer\n geslachtsaanduiding\n naam {\n aanhef\n voorletters\n voornamen\n voorvoegsel\n geslachtsnaam\n }\n verblijfplaats {\n straat\n huisnummer\n huisletter\n huisnummertoevoeging\n postcode\n woonplaats\n }\n geboorte {\n datum {\n datum\n jaar\n maand\n dag\n }\n land {\n code\n omschrijving\n }\n }\n nationaliteiten {\n nationaliteit {\n code\n omschrijving\n }\n }\n }\n}\n "]))),V=x.gql(p||(p=z(["\n query GetPersoon {\n getPersoon {\n naam {\n voornamen\n voorvoegsel\n geslachtsnaam\n }\n }\n}\n "]))),W=x.gql(f||(f=z(["\n query GetTaakById($id: UUID!) {\n getTaakById(id: $id) {\n id\n formulier {\n ...FormulierFields\n }\n status\n date\n data\n }\n}\n ",""])),I),H=x.gql(G||(G=z(["\n query GetTaken($zaakId: UUID) {\n getTaken(zaakUUID: $zaakId) {\n content {\n id\n objectId\n formulier {\n ...FormulierFields\n }\n title\n status\n date\n data\n verloopdatum\n }\n }\n}\n ",""])),I),X=x.gql(v||(v=z(["\n query GetZaak($id: UUID!) {\n getZaak(id: $id) {\n uuid\n url\n omschrijving\n identificatie\n zaaktype {\n identificatie\n omschrijving\n }\n startdatum\n status {\n datumStatusGezet\n statustype {\n omschrijving\n isEindstatus\n }\n }\n statusGeschiedenis {\n datumStatusGezet\n statustype {\n omschrijving\n isEindstatus\n }\n }\n statussen {\n omschrijving\n }\n documenten {\n documentapi\n bestandsnaam\n bestandsomvang\n creatiedatum\n formaat\n identificatie\n titel\n uuid\n }\n zaakdetails {\n data\n zaak\n }\n }\n}\n "]))),nn=x.gql(Q||(Q=z(["\n query GetZaken {\n getZaken {\n uuid\n omschrijving\n identificatie\n zaaktype {\n identificatie\n }\n startdatum\n status {\n statustype {\n isEindstatus\n }\n }\n }\n}\n "]))),en=k.createContext({}),tn=((E={}).KEYCLOAK_TOKEN="",E),rn=x.gql(U||(U=z(["\n query GetZaak($id: UUID!) {\n getZaak(id: $id) {\n uuid\n url\n omschrijving\n identificatie\n zaaktype {\n identificatie\n omschrijving\n }\n startdatum\n status {\n datumStatusGezet\n statustype {\n omschrijving\n isEindstatus\n }\n }\n statusGeschiedenis {\n datumStatusGezet\n statustype {\n omschrijving\n isEindstatus\n }\n }\n statussen {\n omschrijving\n }\n documenten {\n documentapi\n bestandsnaam\n bestandsomvang\n creatiedatum\n formaat\n identificatie\n titel\n uuid\n }\n zaakdetails {\n data\n zaak\n }\n }\n }\n"]))),an=x.gql(B||(B=z(["\n fragment FormulierFields on TaakFormulier {\n formuliertype\n value\n }\n"]))),un=x.gql(T||(T=z(["\n ","\n query GetTaken($zaakId: UUID) {\n getTaken(zaakUUID: $zaakId) {\n content {\n id\n objectId\n formulier {\n ...FormulierFields\n }\n title\n status\n date\n verloopdatum\n }\n }\n }\n"])),an),on=x.gql(b||(b=z(["\n query GetPersoon {\n getPersoon {\n naam {\n voornamen\n voorvoegsel\n geslachtsnaam\n }\n }\n }\n"]))),sn=x.gql(L||(L=z(["\n query GetObjectContactMomenten($objectUrl: String!) {\n getObjectContactMomenten(objectUrl: $objectUrl) {\n content {\n tekst\n kanaal\n registratiedatum\n }\n }\n }\n"]))),mn=x.gql(F||(F=z(["\n query GetPersoonData {\n getPersoon {\n burgerservicenummer\n geslachtsaanduiding\n naam {\n aanhef\n voorletters\n voornamen\n voorvoegsel\n geslachtsnaam\n }\n verblijfplaats {\n straat\n huisnummer\n huisletter\n huisnummertoevoeging\n postcode\n woonplaats\n }\n geboorte {\n datum {\n datum\n jaar\n maand\n dag\n }\n land {\n code\n omschrijving\n }\n }\n nationaliteiten {\n nationaliteit {\n code\n omschrijving\n }\n }\n }\n }\n"]))),cn=x.gql(O||(O=z(["\n query GetBurgerProfiel {\n getBurgerProfiel {\n emailadres\n telefoonnummer\n }\n }\n"])));exports.ApiContext=en,exports.ApiWrapper=function(n){var e=n.children,t=n.restUri,r=D.formatUrlTrailingSlash(n.graphqlUri,!1),a=D.formatUrlTrailingSlash(t,!1),u=k.useContext(D.KeycloakContext).keycloakToken,o=new x.HttpLink({uri:r}),i=function(n){return new x.ApolloLink(function(e,t){return e.setContext({headers:{authorization:"Bearer "+n}}),t(e)}).concat(o)},s=k.useState(function(){return new x.ApolloClient({uri:r,cache:new x.InMemoryCache,link:i(u)})})[0];return k.useEffect(function(){s.setLink(i(u)),tn.KEYCLOAK_TOKEN=u},[u]),sessionStorage.setItem("REST_URI",a),u?k.createElement(en.Provider,{value:{restUri:a}},k.createElement(x.ApolloProvider,{client:s},e)):null},exports.FormulierFieldsFragmentDoc=I,exports.GetBedrijfDocument=C,exports.GetBewonersAantalDocument=A,exports.GetBurgerProfielDocument=S,exports.GetDocumentenDocument=K,exports.GetFormDefinitionByIdDocument=N,exports.GetFormDefinitionByNameDocument=M,exports.GetFormDefinitionByObjectenApiUrlDocument=_,exports.GetFormsDocument=R,exports.GetGemachtigdeDocument=w,exports.GetKlantContactMomentenDocument=Z,exports.GetObjectContactMomentenDocument=Y,exports.GetPersoonDataDocument=J,exports.GetPersoonDocument=V,exports.GetTaakByIdDocument=W,exports.GetTakenDocument=H,exports.GetZaakDocument=X,exports.GetZakenDocument=nn,exports.QUERY_GET_BURGER_PROFIEL=cn,exports.QUERY_GET_OBJECT_CONTACT_MOMENTEN=sn,exports.QUERY_GET_PERSOON=on,exports.QUERY_GET_PERSOON_DATA=mn,exports.QUERY_GET_TAKEN=un,exports.QUERY_GET_ZAKEN=rn,exports.SubmitTaskDocument=P,exports.TOKEN_KEY="KEYCLOAK_TOKEN",exports.TOKEN_OBJECT=tn,exports.UpdateBurgerProfielDocument=$,exports.useGetBedrijfLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(C,e)},exports.useGetBedrijfQuery=function(n){var e=q({},j,n);return x.useQuery(C,e)},exports.useGetBewonersAantalLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(A,e)},exports.useGetBewonersAantalQuery=function(n){var e=q({},j,n);return x.useQuery(A,e)},exports.useGetBurgerProfielLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(S,e)},exports.useGetBurgerProfielQuery=function(n){var e=q({},j,n);return x.useQuery(S,e)},exports.useGetDocumentenLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(K,e)},exports.useGetDocumentenQuery=function(n){var e=q({},j,n);return x.useQuery(K,e)},exports.useGetFormDefinitionByIdLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(N,e)},exports.useGetFormDefinitionByIdQuery=function(n){var e=q({},j,n);return x.useQuery(N,e)},exports.useGetFormDefinitionByNameLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(M,e)},exports.useGetFormDefinitionByNameQuery=function(n){var e=q({},j,n);return x.useQuery(M,e)},exports.useGetFormDefinitionByObjectenApiUrlLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(_,e)},exports.useGetFormDefinitionByObjectenApiUrlQuery=function(n){var e=q({},j,n);return x.useQuery(_,e)},exports.useGetFormsLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(R,e)},exports.useGetFormsQuery=function(n){var e=q({},j,n);return x.useQuery(R,e)},exports.useGetGemachtigdeLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(w,e)},exports.useGetGemachtigdeQuery=function(n){var e=q({},j,n);return x.useQuery(w,e)},exports.useGetKlantContactMomentenLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(Z,e)},exports.useGetKlantContactMomentenQuery=function(n){var e=q({},j,n);return x.useQuery(Z,e)},exports.useGetObjectContactMomentenLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(Y,e)},exports.useGetObjectContactMomentenQuery=function(n){var e=q({},j,n);return x.useQuery(Y,e)},exports.useGetPersoonDataLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(J,e)},exports.useGetPersoonDataQuery=function(n){var e=q({},j,n);return x.useQuery(J,e)},exports.useGetPersoonLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(V,e)},exports.useGetPersoonQuery=function(n){var e=q({},j,n);return x.useQuery(V,e)},exports.useGetTaakByIdLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(W,e)},exports.useGetTaakByIdQuery=function(n){var e=q({},j,n);return x.useQuery(W,e)},exports.useGetTakenLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(H,e)},exports.useGetTakenQuery=function(n){var e=q({},j,n);return x.useQuery(H,e)},exports.useGetZaakLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(X,e)},exports.useGetZaakQuery=function(n){var e=q({},j,n);return x.useQuery(X,e)},exports.useGetZakenLazyQuery=function(n){var e=q({},j,n);return x.useLazyQuery(nn,e)},exports.useGetZakenQuery=function(n){var e=q({},j,n);return x.useQuery(nn,e)},exports.useSubmitTaskMutation=function(n){var e=q({},j,n);return x.useMutation(P,e)},exports.useUpdateBurgerProfielMutation=function(n){var e=q({},j,n);return x.useMutation($,e)};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|