@nl-portal/nl-portal-api 0.1.1-alpha.77 → 0.1.1-alpha.78

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.
@@ -1,4 +1,5 @@
1
- import React from "react";
1
+ import { default as React } from 'react';
2
+
2
3
  interface ContextProps {
3
4
  restUri: string;
4
5
  }
@@ -1 +1 @@
1
- export declare const FORMULIER_FIELDS: import("@apollo/client").DocumentNode;
1
+ export declare const FORMULIER_FIELDS: import('@apollo/client').DocumentNode;
@@ -71,30 +71,6 @@ export type Adres = {
71
71
  type: Scalars['String']['output'];
72
72
  volledigAdres: Scalars['String']['output'];
73
73
  };
74
- export type CaseCreated = {
75
- __typename?: 'CaseCreated';
76
- caseId: Scalars['UUID']['output'];
77
- };
78
- export type CaseDefinition = {
79
- __typename?: 'CaseDefinition';
80
- id: Scalars['String']['output'];
81
- schema: Scalars['JSON']['output'];
82
- statusDefinition: Array<Scalars['String']['output']>;
83
- };
84
- export type CaseInstance = {
85
- __typename?: 'CaseInstance';
86
- caseDefinitionId: Scalars['String']['output'];
87
- createdOn: Scalars['String']['output'];
88
- externalId?: Maybe<Scalars['String']['output']>;
89
- id: Scalars['UUID']['output'];
90
- status?: Maybe<Status>;
91
- statusHistory?: Maybe<Array<HistoricStatus>>;
92
- submission: Scalars['JSON']['output'];
93
- userId: Scalars['String']['output'];
94
- };
95
- export type CaseInstanceOrderingInput = {
96
- createdOn: Sort;
97
- };
98
74
  export type ContactMoment = {
99
75
  __typename?: 'ContactMoment';
100
76
  bronorganisatie?: Maybe<Scalars['String']['output']>;
@@ -119,32 +95,6 @@ export type ContactMomentPage = {
119
95
  /** The total number of available pages */
120
96
  totalPages: Scalars['Int']['output'];
121
97
  };
122
- export type Contract = {
123
- __typename?: 'Contract';
124
- beginDatum: Scalars['String']['output'];
125
- eindDatum?: Maybe<Scalars['String']['output']>;
126
- id: Scalars['Int']['output'];
127
- klanten: Array<NeaKlant>;
128
- taken: Array<Taak>;
129
- zakelijkRechten: Array<ZakelijkRecht>;
130
- zaken: Array<Zaak>;
131
- };
132
- export type ContractBeperkt = {
133
- __typename?: 'ContractBeperkt';
134
- adressen: Array<NeaAdres>;
135
- id: Scalars['Int']['output'];
136
- };
137
- export type ContractBeperktPage = {
138
- __typename?: 'ContractBeperktPage';
139
- content: Array<ContractBeperkt>;
140
- number: Scalars['Int']['output'];
141
- /** The number of elements on this page */
142
- numberOfElements: Scalars['Int']['output'];
143
- size: Scalars['Int']['output'];
144
- totalElements: Scalars['Int']['output'];
145
- /** The total number of available pages */
146
- totalPages: Scalars['Int']['output'];
147
- };
148
98
  export type Document = {
149
99
  __typename?: 'Document';
150
100
  bestandsnaam?: Maybe<Scalars['String']['output']>;
@@ -190,11 +140,6 @@ export type HandelsNaam = {
190
140
  naam: Scalars['String']['output'];
191
141
  volgorde: Scalars['Int']['output'];
192
142
  };
193
- export type HistoricStatus = {
194
- __typename?: 'HistoricStatus';
195
- createdOn: Scalars['String']['output'];
196
- status: Status;
197
- };
198
143
  export type Hoofdvestiging = {
199
144
  __typename?: 'Hoofdvestiging';
200
145
  adressen?: Maybe<Array<Adres>>;
@@ -205,12 +150,6 @@ export type Hoofdvestiging = {
205
150
  totaalWerkzamePersonen: Scalars['Int']['output'];
206
151
  vestigingsnummer: Scalars['String']['output'];
207
152
  };
208
- export type KadastraalObject = {
209
- __typename?: 'KadastraalObject';
210
- aanduiding: Scalars['String']['output'];
211
- adressen: Array<NeaAdres>;
212
- identificatie: Scalars['String']['output'];
213
- };
214
153
  export type Klant = {
215
154
  __typename?: 'Klant';
216
155
  emailadres?: Maybe<Scalars['String']['output']>;
@@ -239,8 +178,6 @@ export type MaterieleRegistratie = {
239
178
  };
240
179
  export type Mutation = {
241
180
  __typename?: 'Mutation';
242
- /** Convert submission to json return resulting data */
243
- processSubmission: CaseCreated;
244
181
  /** Submit a task */
245
182
  submitTaak: Taak;
246
183
  /** Submit a task */
@@ -248,11 +185,6 @@ export type Mutation = {
248
185
  /** Updates the profile for the user */
249
186
  updateBurgerProfiel?: Maybe<Klant>;
250
187
  };
251
- export type MutationProcessSubmissionArgs = {
252
- caseDefinitionId: Scalars['String']['input'];
253
- initialStatus?: InputMaybe<Scalars['String']['input']>;
254
- submission: Scalars['JSON']['input'];
255
- };
256
188
  export type MutationSubmitTaakArgs = {
257
189
  id: Scalars['UUID']['input'];
258
190
  submission: Scalars['JSON']['input'];
@@ -264,56 +196,6 @@ export type MutationSubmitTaskArgs = {
264
196
  export type MutationUpdateBurgerProfielArgs = {
265
197
  klant: KlantUpdateInput;
266
198
  };
267
- export type NeaAdres = {
268
- __typename?: 'NeaAdres';
269
- adresBuitenland?: Maybe<NeaAdresBuitenland>;
270
- adresseerbaarObjectId?: Maybe<Scalars['String']['output']>;
271
- huisletter?: Maybe<Scalars['String']['output']>;
272
- huisnummer?: Maybe<Scalars['Int']['output']>;
273
- huisnummertoevoeging?: Maybe<Scalars['String']['output']>;
274
- land?: Maybe<Scalars['String']['output']>;
275
- nummeraanduidingId?: Maybe<Scalars['String']['output']>;
276
- postbusnummer?: Maybe<Scalars['String']['output']>;
277
- postcode?: Maybe<Scalars['String']['output']>;
278
- straatnaam?: Maybe<Scalars['String']['output']>;
279
- woonplaats?: Maybe<Scalars['String']['output']>;
280
- };
281
- export type NeaAdresBuitenland = {
282
- __typename?: 'NeaAdresBuitenland';
283
- land?: Maybe<Scalars['String']['output']>;
284
- postcodeWoonplaats?: Maybe<Scalars['String']['output']>;
285
- regio?: Maybe<Scalars['String']['output']>;
286
- straatnaamHuisnummer?: Maybe<Scalars['String']['output']>;
287
- };
288
- export type NeaKlant = {
289
- __typename?: 'NeaKlant';
290
- organisatie?: Maybe<Organisatie>;
291
- persoon?: Maybe<NeaPersoon>;
292
- };
293
- export type NeaPersoon = {
294
- __typename?: 'NeaPersoon';
295
- achterNaam: Scalars['String']['output'];
296
- correspondentieAdres?: Maybe<NeaAdres>;
297
- emailAdres?: Maybe<Scalars['String']['output']>;
298
- klantnummer: Scalars['Int']['output'];
299
- subjectId: Scalars['Int']['output'];
300
- telefoonNummer?: Maybe<Scalars['String']['output']>;
301
- verblijfAdres: NeaAdres;
302
- volledigeNaam: Scalars['String']['output'];
303
- voorNaam?: Maybe<Scalars['String']['output']>;
304
- voorletters?: Maybe<Scalars['String']['output']>;
305
- voorvoegselAchternaam?: Maybe<Scalars['String']['output']>;
306
- };
307
- export type Organisatie = {
308
- __typename?: 'Organisatie';
309
- bezoekAdres: NeaAdres;
310
- correspondentieAdres?: Maybe<NeaAdres>;
311
- klantnummer: Scalars['Int']['output'];
312
- kvkNummer?: Maybe<Scalars['String']['output']>;
313
- naam: Scalars['String']['output'];
314
- rsin?: Maybe<Scalars['String']['output']>;
315
- vestigingsnummer?: Maybe<Scalars['String']['output']>;
316
- };
317
199
  export type Persoon = {
318
200
  __typename?: 'Persoon';
319
201
  burgerservicenummer?: Maybe<Scalars['String']['output']>;
@@ -368,10 +250,6 @@ export type PersoonVerblijfplaats = {
368
250
  };
369
251
  export type Query = {
370
252
  __typename?: 'Query';
371
- /** retrieves all available case definitions */
372
- allCaseDefinitions: Array<CaseDefinition>;
373
- /** retrieves all available case instances */
374
- allCaseInstances: Array<CaseInstance>;
375
253
  /**
376
254
  * find all form definitions from repository
377
255
  * @deprecated This method is not used by the NL Portal frontend and is not being replaced.
@@ -383,14 +261,8 @@ export type Query = {
383
261
  getBewonersAantal?: Maybe<Scalars['Int']['output']>;
384
262
  /** Gets the profile for the user */
385
263
  getBurgerProfiel?: Maybe<Klant>;
386
- /** retrieves single case instance from repository */
387
- getCaseInstance?: Maybe<CaseInstance>;
388
264
  /** Gets a document content by id as base64 encoded */
389
265
  getDocumentContent: DocumentContent;
390
- /** Get erfpacht contract by UUID */
391
- getErfpachtContract: Contract;
392
- /** Gets all erfpacht contracten of user or rsin */
393
- getErfpachtContracten: ContractBeperktPage;
394
266
  /**
395
267
  * find single form definition from repository or Objecten API
396
268
  * @deprecated Replaced by getFormDefinitionByName and getFormDefinitionByObjectenApiUrl, replace with getFormDefinitionByName or getFormDefinitionByObjectenApiUrl
@@ -424,24 +296,10 @@ export type Query = {
424
296
  /** Gets all zaken for the user */
425
297
  getZaken: ZaakPage;
426
298
  };
427
- export type QueryAllCaseInstancesArgs = {
428
- orderBy: CaseInstanceOrderingInput;
429
- };
430
- export type QueryGetCaseInstanceArgs = {
431
- id: Scalars['UUID']['input'];
432
- };
433
299
  export type QueryGetDocumentContentArgs = {
434
300
  documentApi: Scalars['String']['input'];
435
301
  id: Scalars['UUID']['input'];
436
302
  };
437
- export type QueryGetErfpachtContractArgs = {
438
- id: Scalars['String']['input'];
439
- };
440
- export type QueryGetErfpachtContractenArgs = {
441
- pageNumber?: InputMaybe<Scalars['Int']['input']>;
442
- pageSize?: InputMaybe<Scalars['Int']['input']>;
443
- rsin?: InputMaybe<Scalars['String']['input']>;
444
- };
445
303
  export type QueryGetFormDefinitionByIdArgs = {
446
304
  id: Scalars['String']['input'];
447
305
  };
@@ -483,15 +341,6 @@ export type SbiActiviteit = {
483
341
  sbiCode: Scalars['String']['output'];
484
342
  sbiOmschrijving: Scalars['String']['output'];
485
343
  };
486
- export declare enum Sort {
487
- Asc = "ASC",
488
- Desc = "DESC"
489
- }
490
- export type Status = {
491
- __typename?: 'Status';
492
- createdOn: Scalars['String']['output'];
493
- name: Scalars['String']['output'];
494
- };
495
344
  export type StatusType = {
496
345
  __typename?: 'StatusType';
497
346
  isEindstatus?: Maybe<Scalars['Boolean']['output']>;
@@ -590,12 +439,6 @@ export type ZaakType = {
590
439
  identificatie: Scalars['String']['output'];
591
440
  omschrijving: Scalars['String']['output'];
592
441
  };
593
- export type ZakelijkRecht = {
594
- __typename?: 'ZakelijkRecht';
595
- id: Scalars['Int']['output'];
596
- kadastraalObjecten: Array<KadastraalObject>;
597
- naam: Scalars['String']['output'];
598
- };
599
442
  export type FormulierFieldsFragment = {
600
443
  __typename?: 'TaakFormulier';
601
444
  formuliertype: string;
@@ -680,29 +523,6 @@ export type GetDocumentenQuery = {
680
523
  }>;
681
524
  };
682
525
  };
683
- export type GetErfpachtContractenQueryVariables = Exact<{
684
- pageNumber?: InputMaybe<Scalars['Int']['input']>;
685
- pageSize?: InputMaybe<Scalars['Int']['input']>;
686
- }>;
687
- export type GetErfpachtContractenQuery = {
688
- __typename?: 'Query';
689
- getErfpachtContracten: {
690
- __typename?: 'ContractBeperktPage';
691
- totalElements: number;
692
- totalPages: number;
693
- content: Array<{
694
- __typename?: 'ContractBeperkt';
695
- id: number;
696
- adressen: Array<{
697
- __typename?: 'NeaAdres';
698
- straatnaam?: string | null;
699
- huisnummer?: number | null;
700
- woonplaats?: string | null;
701
- nummeraanduidingId?: string | null;
702
- }>;
703
- }>;
704
- };
705
- };
706
526
  export type GetFormDefinitionByIdQueryVariables = Exact<{
707
527
  id: Scalars['String']['input'];
708
528
  }>;
@@ -1167,40 +987,6 @@ export type GetDocumentenQueryHookResult = ReturnType<typeof useGetDocumentenQue
1167
987
  export type GetDocumentenLazyQueryHookResult = ReturnType<typeof useGetDocumentenLazyQuery>;
1168
988
  export type GetDocumentenSuspenseQueryHookResult = ReturnType<typeof useGetDocumentenSuspenseQuery>;
1169
989
  export type GetDocumentenQueryResult = Apollo.QueryResult<GetDocumentenQuery, GetDocumentenQueryVariables>;
1170
- export declare const GetErfpachtContractenDocument: Apollo.DocumentNode;
1171
- /**
1172
- * __useGetErfpachtContractenQuery__
1173
- *
1174
- * To run a query within a React component, call `useGetErfpachtContractenQuery` and pass it any options that fit your needs.
1175
- * When your component renders, `useGetErfpachtContractenQuery` returns an object from Apollo Client that contains loading, error, and data properties
1176
- * you can use to render your UI.
1177
- *
1178
- * @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;
1179
- *
1180
- * @example
1181
- * const { data, loading, error } = useGetErfpachtContractenQuery({
1182
- * variables: {
1183
- * pageNumber: // value for 'pageNumber'
1184
- * pageSize: // value for 'pageSize'
1185
- * },
1186
- * });
1187
- */
1188
- export declare function useGetErfpachtContractenQuery(baseOptions?: Apollo.QueryHookOptions<GetErfpachtContractenQuery, GetErfpachtContractenQueryVariables>): Apollo.QueryResult<GetErfpachtContractenQuery, Exact<{
1189
- pageNumber?: InputMaybe<number> | undefined;
1190
- pageSize?: InputMaybe<number> | undefined;
1191
- }>>;
1192
- export declare function useGetErfpachtContractenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetErfpachtContractenQuery, GetErfpachtContractenQueryVariables>): Apollo.LazyQueryResultTuple<GetErfpachtContractenQuery, Exact<{
1193
- pageNumber?: InputMaybe<number> | undefined;
1194
- pageSize?: InputMaybe<number> | undefined;
1195
- }>>;
1196
- export declare function useGetErfpachtContractenSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetErfpachtContractenQuery, GetErfpachtContractenQueryVariables>): Apollo.UseSuspenseQueryResult<GetErfpachtContractenQuery, Exact<{
1197
- pageNumber?: InputMaybe<number> | undefined;
1198
- pageSize?: InputMaybe<number> | undefined;
1199
- }>>;
1200
- export type GetErfpachtContractenQueryHookResult = ReturnType<typeof useGetErfpachtContractenQuery>;
1201
- export type GetErfpachtContractenLazyQueryHookResult = ReturnType<typeof useGetErfpachtContractenLazyQuery>;
1202
- export type GetErfpachtContractenSuspenseQueryHookResult = ReturnType<typeof useGetErfpachtContractenSuspenseQuery>;
1203
- export type GetErfpachtContractenQueryResult = Apollo.QueryResult<GetErfpachtContractenQuery, GetErfpachtContractenQueryVariables>;
1204
990
  export declare const GetFormDefinitionByIdDocument: Apollo.DocumentNode;
1205
991
  /**
1206
992
  * __useGetFormDefinitionByIdQuery__
package/dist/index.d.ts CHANGED
@@ -1,12 +1,11 @@
1
- export { default as ApiContext, ApiProvider } from "./contexts/ApiContext";
2
- export * from "./constants/token";
3
- export * from "./generated/Graphql";
4
- export * from "./queries/get-taken";
5
- export * from "./queries/get-zaken";
6
- export * from "./queries/get-persoon";
7
- export * from "./queries/get-object-contact-momenten";
8
- export * from "./queries/get-persoon-data";
9
- export * from "./queries/get-burger-profiel";
10
- export * from "./queries/get-zaak";
11
- export * from "./queries/get-bewoner-aantal.ts";
12
- export * from "./queries/get-erfpacht-contracten";
1
+ export { default as ApiContext, ApiProvider } from './contexts/ApiContext';
2
+ export * from './constants/token';
3
+ export * from './generated/Graphql';
4
+ export * from './queries/get-taken';
5
+ export * from './queries/get-zaken';
6
+ export * from './queries/get-persoon';
7
+ export * from './queries/get-object-contact-momenten';
8
+ export * from './queries/get-persoon-data';
9
+ export * from './queries/get-burger-profiel';
10
+ export * from './queries/get-zaak';
11
+ export * from './queries/get-bewoner-aantal.ts';