@nl-portal/nl-portal-api 0.1.1-alpha.85 → 0.1.1-alpha.87

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,5 +1,4 @@
1
- import { default as React } from 'react';
2
-
1
+ import React from "react";
3
2
  interface ContextProps {
4
3
  restUri: string;
5
4
  }
@@ -1 +1 @@
1
- export declare const FORMULIER_FIELDS: import('@apollo/client').DocumentNode;
1
+ export declare const FORMULIER_FIELDS: import("@apollo/client").DocumentNode;
@@ -121,11 +121,6 @@ export type Embedded = {
121
121
  eigenaar: Eigenaar;
122
122
  hoofdvestiging: Hoofdvestiging;
123
123
  };
124
- export type Form = {
125
- __typename?: 'Form';
126
- name: Scalars['String']['output'];
127
- uuid: Scalars['UUID']['output'];
128
- };
129
124
  export type FormDefinition = {
130
125
  __typename?: 'FormDefinition';
131
126
  formDefinition: Scalars['JSON']['output'];
@@ -178,12 +173,19 @@ export type MaterieleRegistratie = {
178
173
  };
179
174
  export type Mutation = {
180
175
  __typename?: 'Mutation';
176
+ /** Create Ogone payment with hash and fields */
177
+ generateOgonePayment: OgonePayment;
181
178
  /** Submit a task */
182
179
  submitTaak: Taak;
183
180
  /** Submit a task */
184
181
  submitTask: Taak;
185
182
  /** Updates the profile for the user */
186
183
  updateBurgerProfiel?: Maybe<Klant>;
184
+ /** Update product verbruiks object */
185
+ updateProductVerbruiksObject: ProductVerbruiksObject;
186
+ };
187
+ export type MutationGenerateOgonePaymentArgs = {
188
+ paymentRequest: OgonePaymentRequestInput;
187
189
  };
188
190
  export type MutationSubmitTaakArgs = {
189
191
  id: Scalars['UUID']['input'];
@@ -196,6 +198,30 @@ export type MutationSubmitTaskArgs = {
196
198
  export type MutationUpdateBurgerProfielArgs = {
197
199
  klant: KlantUpdateInput;
198
200
  };
201
+ export type MutationUpdateProductVerbruiksObjectArgs = {
202
+ id: Scalars['UUID']['input'];
203
+ submission: Scalars['JSON']['input'];
204
+ };
205
+ export type OgonePayment = {
206
+ __typename?: 'OgonePayment';
207
+ formAction: Scalars['String']['output'];
208
+ formFields: Array<PaymentField>;
209
+ };
210
+ export type OgonePaymentRequestInput = {
211
+ amount: Scalars['Float']['input'];
212
+ failureUrl?: InputMaybe<Scalars['String']['input']>;
213
+ langId?: InputMaybe<Scalars['String']['input']>;
214
+ orderId: Scalars['String']['input'];
215
+ pspId: Scalars['String']['input'];
216
+ reference: Scalars['String']['input'];
217
+ successUrl?: InputMaybe<Scalars['String']['input']>;
218
+ title?: InputMaybe<Scalars['String']['input']>;
219
+ };
220
+ export type PaymentField = {
221
+ __typename?: 'PaymentField';
222
+ name: Scalars['String']['output'];
223
+ value: Scalars['String']['output'];
224
+ };
199
225
  export type Persoon = {
200
226
  __typename?: 'Persoon';
201
227
  burgerservicenummer?: Maybe<Scalars['String']['output']>;
@@ -248,6 +274,52 @@ export type PersoonVerblijfplaats = {
248
274
  straat?: Maybe<Scalars['String']['output']>;
249
275
  woonplaats?: Maybe<Scalars['String']['output']>;
250
276
  };
277
+ export type Product = {
278
+ __typename?: 'Product';
279
+ documenten: Array<Scalars['String']['output']>;
280
+ eigenschappen: Scalars['JSON']['output'];
281
+ geldigTot?: Maybe<Scalars['Date']['output']>;
282
+ geldigVan: Scalars['Date']['output'];
283
+ id?: Maybe<Scalars['UUID']['output']>;
284
+ naam: Scalars['String']['output'];
285
+ productDetails?: Maybe<ProductDetails>;
286
+ productType?: Maybe<ProductType>;
287
+ status: Scalars['String']['output'];
288
+ taken: Array<Taak>;
289
+ verbruiksobjecten: Array<ProductVerbruiksObject>;
290
+ zaken: Array<Zaak>;
291
+ };
292
+ export type ProductDetails = {
293
+ __typename?: 'ProductDetails';
294
+ data: Array<Scalars['JSON']['output']>;
295
+ id?: Maybe<Scalars['UUID']['output']>;
296
+ productInstantie: Scalars['UUID']['output'];
297
+ };
298
+ export type ProductPage = {
299
+ __typename?: 'ProductPage';
300
+ content: Array<Product>;
301
+ number: Scalars['Int']['output'];
302
+ /** The number of elements on this page */
303
+ numberOfElements: Scalars['Int']['output'];
304
+ size: Scalars['Int']['output'];
305
+ totalElements: Scalars['Int']['output'];
306
+ /** The total number of available pages */
307
+ totalPages: Scalars['Int']['output'];
308
+ };
309
+ export type ProductType = {
310
+ __typename?: 'ProductType';
311
+ id?: Maybe<Scalars['UUID']['output']>;
312
+ naam: Scalars['String']['output'];
313
+ omschrijving?: Maybe<Scalars['String']['output']>;
314
+ zaaktypen: Array<Scalars['UUID']['output']>;
315
+ };
316
+ export type ProductVerbruiksObject = {
317
+ __typename?: 'ProductVerbruiksObject';
318
+ category?: Maybe<Scalars['String']['output']>;
319
+ data?: Maybe<Scalars['JSON']['output']>;
320
+ id?: Maybe<Scalars['UUID']['output']>;
321
+ productInstantie: Scalars['String']['output'];
322
+ };
251
323
  export type Query = {
252
324
  __typename?: 'Query';
253
325
  /**
@@ -272,8 +344,6 @@ export type Query = {
272
344
  getFormDefinitionByName?: Maybe<FormDefinition>;
273
345
  /** find single form definition from the Objecten API */
274
346
  getFormDefinitionByObjectenApiUrl?: Maybe<FormDefinition>;
275
- /** Gets the forms available to the user */
276
- getFormList: Array<Form>;
277
347
  /** Gets the data of the gemachtigde */
278
348
  getGemachtigde: Gemachtigde;
279
349
  /** Gets the contactmomenten of a klant */
@@ -282,6 +352,18 @@ export type Query = {
282
352
  getObjectContactMomenten?: Maybe<ContactMomentPage>;
283
353
  /** Gets the persoon data */
284
354
  getPersoon?: Maybe<Persoon>;
355
+ /** Get product by id */
356
+ getProduct: Product;
357
+ /** Get list of taken by product name */
358
+ getProductTaken: Array<Taak>;
359
+ /** Get productType by name */
360
+ getProductType: ProductType;
361
+ /** Get list of verbruiksobjecten of product */
362
+ getProductVerbruiksObjecten: Array<ProductVerbruiksObject>;
363
+ /** Get list of zaken by product name */
364
+ getProductZaken: Array<Zaak>;
365
+ /** Get list of products by product name */
366
+ getProducten: ProductPage;
285
367
  /** Get task by id */
286
368
  getTaakById: Taak;
287
369
  /** Get a list of tasks. Optional filter for zaak */
@@ -316,6 +398,28 @@ export type QueryGetObjectContactMomentenArgs = {
316
398
  objectUrl: Scalars['String']['input'];
317
399
  pageNumber?: InputMaybe<Scalars['Int']['input']>;
318
400
  };
401
+ export type QueryGetProductArgs = {
402
+ id: Scalars['UUID']['input'];
403
+ };
404
+ export type QueryGetProductTakenArgs = {
405
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
406
+ productName: Scalars['String']['input'];
407
+ };
408
+ export type QueryGetProductTypeArgs = {
409
+ productName: Scalars['String']['input'];
410
+ };
411
+ export type QueryGetProductVerbruiksObjectenArgs = {
412
+ productId: Scalars['UUID']['input'];
413
+ };
414
+ export type QueryGetProductZakenArgs = {
415
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
416
+ productName: Scalars['String']['input'];
417
+ };
418
+ export type QueryGetProductenArgs = {
419
+ pageNumber?: InputMaybe<Scalars['Int']['input']>;
420
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
421
+ productName: Scalars['String']['input'];
422
+ };
319
423
  export type QueryGetTaakByIdArgs = {
320
424
  id: Scalars['UUID']['input'];
321
425
  };
@@ -553,17 +657,6 @@ export type GetFormDefinitionByNameQuery = {
553
657
  formDefinition: any;
554
658
  } | null;
555
659
  };
556
- export type GetFormsQueryVariables = Exact<{
557
- [key: string]: never;
558
- }>;
559
- export type GetFormsQuery = {
560
- __typename?: 'Query';
561
- getFormList: Array<{
562
- __typename?: 'Form';
563
- name: string;
564
- uuid: any;
565
- }>;
566
- };
567
660
  export type GetGemachtigdeQueryVariables = Exact<{
568
661
  [key: string]: never;
569
662
  }>;
@@ -681,6 +774,57 @@ export type GetPersoonQuery = {
681
774
  } | null;
682
775
  } | null;
683
776
  };
777
+ export type GetProductQueryVariables = Exact<{
778
+ id: Scalars['UUID']['input'];
779
+ }>;
780
+ export type GetProductQuery = {
781
+ __typename?: 'Query';
782
+ getProduct: {
783
+ __typename?: 'Product';
784
+ id?: any | null;
785
+ naam: string;
786
+ status: string;
787
+ geldigVan: any;
788
+ geldigTot?: any | null;
789
+ productType?: {
790
+ __typename?: 'ProductType';
791
+ id?: any | null;
792
+ naam: string;
793
+ zaaktypen: Array<any>;
794
+ } | null;
795
+ taken: Array<{
796
+ __typename?: 'Taak';
797
+ id: any;
798
+ }>;
799
+ };
800
+ };
801
+ export type GetProductenQueryVariables = Exact<{
802
+ productName: Scalars['String']['input'];
803
+ pageNumber?: InputMaybe<Scalars['Int']['input']>;
804
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
805
+ }>;
806
+ export type GetProductenQuery = {
807
+ __typename?: 'Query';
808
+ getProducten: {
809
+ __typename?: 'ProductPage';
810
+ totalElements: number;
811
+ totalPages: number;
812
+ content: Array<{
813
+ __typename?: 'Product';
814
+ id?: any | null;
815
+ naam: string;
816
+ status: string;
817
+ geldigVan: any;
818
+ geldigTot?: any | null;
819
+ productType?: {
820
+ __typename?: 'ProductType';
821
+ id?: any | null;
822
+ naam: string;
823
+ zaaktypen: Array<any>;
824
+ } | null;
825
+ }>;
826
+ };
827
+ };
684
828
  export type GetTaakByIdQueryVariables = Exact<{
685
829
  id: Scalars['UUID']['input'];
686
830
  }>;
@@ -1092,35 +1236,6 @@ export type GetFormDefinitionByNameQueryHookResult = ReturnType<typeof useGetFor
1092
1236
  export type GetFormDefinitionByNameLazyQueryHookResult = ReturnType<typeof useGetFormDefinitionByNameLazyQuery>;
1093
1237
  export type GetFormDefinitionByNameSuspenseQueryHookResult = ReturnType<typeof useGetFormDefinitionByNameSuspenseQuery>;
1094
1238
  export type GetFormDefinitionByNameQueryResult = Apollo.QueryResult<GetFormDefinitionByNameQuery, GetFormDefinitionByNameQueryVariables>;
1095
- export declare const GetFormsDocument: Apollo.DocumentNode;
1096
- /**
1097
- * __useGetFormsQuery__
1098
- *
1099
- * To run a query within a React component, call `useGetFormsQuery` and pass it any options that fit your needs.
1100
- * When your component renders, `useGetFormsQuery` returns an object from Apollo Client that contains loading, error, and data properties
1101
- * you can use to render your UI.
1102
- *
1103
- * @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;
1104
- *
1105
- * @example
1106
- * const { data, loading, error } = useGetFormsQuery({
1107
- * variables: {
1108
- * },
1109
- * });
1110
- */
1111
- export declare function useGetFormsQuery(baseOptions?: Apollo.QueryHookOptions<GetFormsQuery, GetFormsQueryVariables>): Apollo.QueryResult<GetFormsQuery, Exact<{
1112
- [key: string]: never;
1113
- }>>;
1114
- export declare function useGetFormsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetFormsQuery, GetFormsQueryVariables>): Apollo.LazyQueryResultTuple<GetFormsQuery, Exact<{
1115
- [key: string]: never;
1116
- }>>;
1117
- export declare function useGetFormsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetFormsQuery, GetFormsQueryVariables>): Apollo.UseSuspenseQueryResult<GetFormsQuery, Exact<{
1118
- [key: string]: never;
1119
- }>>;
1120
- export type GetFormsQueryHookResult = ReturnType<typeof useGetFormsQuery>;
1121
- export type GetFormsLazyQueryHookResult = ReturnType<typeof useGetFormsLazyQuery>;
1122
- export type GetFormsSuspenseQueryHookResult = ReturnType<typeof useGetFormsSuspenseQuery>;
1123
- export type GetFormsQueryResult = Apollo.QueryResult<GetFormsQuery, GetFormsQueryVariables>;
1124
1239
  export declare const GetGemachtigdeDocument: Apollo.DocumentNode;
1125
1240
  /**
1126
1241
  * __useGetGemachtigdeQuery__
@@ -1272,6 +1387,84 @@ export type GetPersoonQueryHookResult = ReturnType<typeof useGetPersoonQuery>;
1272
1387
  export type GetPersoonLazyQueryHookResult = ReturnType<typeof useGetPersoonLazyQuery>;
1273
1388
  export type GetPersoonSuspenseQueryHookResult = ReturnType<typeof useGetPersoonSuspenseQuery>;
1274
1389
  export type GetPersoonQueryResult = Apollo.QueryResult<GetPersoonQuery, GetPersoonQueryVariables>;
1390
+ export declare const GetProductDocument: Apollo.DocumentNode;
1391
+ /**
1392
+ * __useGetProductQuery__
1393
+ *
1394
+ * To run a query within a React component, call `useGetProductQuery` and pass it any options that fit your needs.
1395
+ * When your component renders, `useGetProductQuery` returns an object from Apollo Client that contains loading, error, and data properties
1396
+ * you can use to render your UI.
1397
+ *
1398
+ * @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;
1399
+ *
1400
+ * @example
1401
+ * const { data, loading, error } = useGetProductQuery({
1402
+ * variables: {
1403
+ * id: // value for 'id'
1404
+ * },
1405
+ * });
1406
+ */
1407
+ export declare function useGetProductQuery(baseOptions: Apollo.QueryHookOptions<GetProductQuery, GetProductQueryVariables> & ({
1408
+ variables: GetProductQueryVariables;
1409
+ skip?: boolean;
1410
+ } | {
1411
+ skip: boolean;
1412
+ })): Apollo.QueryResult<GetProductQuery, Exact<{
1413
+ id: any;
1414
+ }>>;
1415
+ export declare function useGetProductLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetProductQuery, GetProductQueryVariables>): Apollo.LazyQueryResultTuple<GetProductQuery, Exact<{
1416
+ id: any;
1417
+ }>>;
1418
+ export declare function useGetProductSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetProductQuery, GetProductQueryVariables>): Apollo.UseSuspenseQueryResult<GetProductQuery, Exact<{
1419
+ id: any;
1420
+ }>>;
1421
+ export type GetProductQueryHookResult = ReturnType<typeof useGetProductQuery>;
1422
+ export type GetProductLazyQueryHookResult = ReturnType<typeof useGetProductLazyQuery>;
1423
+ export type GetProductSuspenseQueryHookResult = ReturnType<typeof useGetProductSuspenseQuery>;
1424
+ export type GetProductQueryResult = Apollo.QueryResult<GetProductQuery, GetProductQueryVariables>;
1425
+ export declare const GetProductenDocument: Apollo.DocumentNode;
1426
+ /**
1427
+ * __useGetProductenQuery__
1428
+ *
1429
+ * To run a query within a React component, call `useGetProductenQuery` and pass it any options that fit your needs.
1430
+ * When your component renders, `useGetProductenQuery` returns an object from Apollo Client that contains loading, error, and data properties
1431
+ * you can use to render your UI.
1432
+ *
1433
+ * @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;
1434
+ *
1435
+ * @example
1436
+ * const { data, loading, error } = useGetProductenQuery({
1437
+ * variables: {
1438
+ * productName: // value for 'productName'
1439
+ * pageNumber: // value for 'pageNumber'
1440
+ * pageSize: // value for 'pageSize'
1441
+ * },
1442
+ * });
1443
+ */
1444
+ export declare function useGetProductenQuery(baseOptions: Apollo.QueryHookOptions<GetProductenQuery, GetProductenQueryVariables> & ({
1445
+ variables: GetProductenQueryVariables;
1446
+ skip?: boolean;
1447
+ } | {
1448
+ skip: boolean;
1449
+ })): Apollo.QueryResult<GetProductenQuery, Exact<{
1450
+ productName: string;
1451
+ pageNumber?: InputMaybe<number> | undefined;
1452
+ pageSize?: InputMaybe<number> | undefined;
1453
+ }>>;
1454
+ export declare function useGetProductenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetProductenQuery, GetProductenQueryVariables>): Apollo.LazyQueryResultTuple<GetProductenQuery, Exact<{
1455
+ productName: string;
1456
+ pageNumber?: InputMaybe<number> | undefined;
1457
+ pageSize?: InputMaybe<number> | undefined;
1458
+ }>>;
1459
+ export declare function useGetProductenSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetProductenQuery, GetProductenQueryVariables>): Apollo.UseSuspenseQueryResult<GetProductenQuery, Exact<{
1460
+ productName: string;
1461
+ pageNumber?: InputMaybe<number> | undefined;
1462
+ pageSize?: InputMaybe<number> | undefined;
1463
+ }>>;
1464
+ export type GetProductenQueryHookResult = ReturnType<typeof useGetProductenQuery>;
1465
+ export type GetProductenLazyQueryHookResult = ReturnType<typeof useGetProductenLazyQuery>;
1466
+ export type GetProductenSuspenseQueryHookResult = ReturnType<typeof useGetProductenSuspenseQuery>;
1467
+ export type GetProductenQueryResult = Apollo.QueryResult<GetProductenQuery, GetProductenQueryVariables>;
1275
1468
  export declare const GetTaakByIdDocument: Apollo.DocumentNode;
1276
1469
  /**
1277
1470
  * __useGetTaakByIdQuery__
package/dist/index.d.ts CHANGED
@@ -1,11 +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';
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";