@opengeoweb/api 9.30.0 → 9.32.0
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/index.esm.js +11 -2284
- package/package.json +3 -2
- package/src/index.d.ts +2 -2
- package/src/utils.d.ts +2 -0
- package/src/sigmet-airmet-api/api.d.ts +0 -8
- package/src/sigmet-airmet-api/hooks.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/api",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.32.0",
|
|
4
4
|
"description": "GeoWeb API library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,5 +14,6 @@
|
|
|
14
14
|
},
|
|
15
15
|
"module": "./index.esm.js",
|
|
16
16
|
"type": "module",
|
|
17
|
-
"main": "./index.esm.js"
|
|
17
|
+
"main": "./index.esm.js",
|
|
18
|
+
"types": "./index.esm.d.ts"
|
|
18
19
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from '@opengeoweb/authentication';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './utils';
|
|
3
3
|
export * from './sigmet-airmet-api/types';
|
|
4
4
|
export * from './sigmet-airmet-api/definitions';
|
|
5
|
-
export * from './sigmet-airmet-api/
|
|
5
|
+
export * from './sigmet-airmet-api/config-types';
|
|
6
6
|
export { API_NAMESPACE } from './i18n';
|
package/src/utils.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
1
2
|
import { Credentials } from '@opengeoweb/authentication';
|
|
2
3
|
export declare const getHeaders: (auth: Credentials) => HeadersInit;
|
|
4
|
+
export declare const useAuthQuery: <T>(queryKey: string[], queryFn: (auth: Credentials) => Promise<T>) => UseQueryResult<T>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Credentials } from '@opengeoweb/authentication';
|
|
2
|
-
import { AirmetFromBackend, SigmetFromBackend } from './types';
|
|
3
|
-
import { AirmetConfig, SigmetConfig } from './config-types';
|
|
4
|
-
export declare const getAirmetList: (auth: Credentials) => Promise<AirmetFromBackend[]>;
|
|
5
|
-
export declare const getSigmetList: (auth: Credentials) => Promise<SigmetFromBackend[]>;
|
|
6
|
-
export declare const getlocalProductConfig: <T extends SigmetConfig | AirmetConfig>(configUrl: string) => Promise<T>;
|
|
7
|
-
export declare const getAirmetConfig: (auth: Credentials) => Promise<AirmetConfig>;
|
|
8
|
-
export declare const getSigmetConfig: (auth: Credentials) => Promise<SigmetConfig>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import { AirmetFromBackend, SigmetFromBackend } from './types';
|
|
3
|
-
export declare const useAirmetList: () => UseQueryResult<AirmetFromBackend[]>;
|
|
4
|
-
export declare const useSigmetList: () => UseQueryResult<SigmetFromBackend[]>;
|