@nl-portal/nl-portal-api 0.1.1-alpha.4

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 ADDED
@@ -0,0 +1,12 @@
1
+ # @gemeente-denhaag/nl-portal-api
2
+
3
+ > Made with create-react-library
4
+
5
+ [![NPM](https://img.shields.io/npm/v/@gemeente-denhaag/nl-portal-user-interface.svg)](https://www.npmjs.com/package/@gemeente-denhaag/nl-portal-user-interface)
6
+ [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ npm install --save @gemeente-denhaag/nl-portal-api
12
+ ```
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface ApiWrapperProps {
3
+ graphqlUri: string;
4
+ restUri: string;
5
+ }
6
+ declare const ApiWrapper: FC<ApiWrapperProps>;
7
+ export { ApiWrapper };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './api-wrapper';
@@ -0,0 +1 @@
1
+ export * from './api-wrapper';
@@ -0,0 +1 @@
1
+ export * from './token';
@@ -0,0 +1,4 @@
1
+ import { TokenObject } from '../interfaces';
2
+ declare const TOKEN_KEY = "KEYCLOAK_TOKEN";
3
+ declare const TOKEN_OBJECT: TokenObject;
4
+ export { TOKEN_KEY, TOKEN_OBJECT };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ interface ApiContextInterface {
3
+ restUri: string;
4
+ }
5
+ export declare const ApiContext: React.Context<ApiContextInterface>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from './api-context';