@opengeoweb/space-weather 20.0.0 → 20.0.1
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,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import type { FieldValues, UseFormSetValue } from 'react-hook-form';
|
|
3
|
+
import type { UseMutationReturnType } from '@opengeoweb/api';
|
|
3
4
|
import type { Bulletin, DiscardDraftNotification, EventCategoryParams, StreamResponse, SWEvent, SWNotification, TimeseriesParams, TimeseriesResponseData } from '../../types';
|
|
4
5
|
export declare const useBulletin: () => UseQueryResult<Bulletin>;
|
|
5
6
|
export declare const useBulletinHistory: () => UseQueryResult<Bulletin[]>;
|
|
6
7
|
export declare const useEventList: (params: EventCategoryParams) => UseQueryResult<SWEvent[]>;
|
|
7
8
|
export declare const useEvent: (eventid: string) => UseQueryResult<SWEvent>;
|
|
8
9
|
export declare const useNewNotifications: () => UseQueryResult<SWEvent[]>;
|
|
9
|
-
type PostReturnType<T> = UseMutationResult<void, Error, T>;
|
|
10
10
|
interface BasePostNotificationProps {
|
|
11
11
|
setError: (value: string) => void;
|
|
12
12
|
}
|
|
@@ -14,25 +14,24 @@ interface PostNotificationProps extends BasePostNotificationProps {
|
|
|
14
14
|
data: SWNotification;
|
|
15
15
|
toggleDialogOpen: (formSaved?: boolean) => void;
|
|
16
16
|
}
|
|
17
|
-
export declare const usePostNotification: () =>
|
|
17
|
+
export declare const usePostNotification: () => UseMutationReturnType<void, PostNotificationProps>;
|
|
18
18
|
interface PostDiscardDraftNotificationProps extends BasePostNotificationProps {
|
|
19
19
|
data: DiscardDraftNotification;
|
|
20
20
|
toggleDialogOpen: (formSaved?: boolean) => void;
|
|
21
21
|
}
|
|
22
|
-
export declare const useDiscardDraftNotification: () =>
|
|
22
|
+
export declare const useDiscardDraftNotification: () => UseMutationReturnType<void, PostDiscardDraftNotificationProps>;
|
|
23
23
|
interface PostSetAcknowledgedProps {
|
|
24
24
|
data: string;
|
|
25
25
|
}
|
|
26
|
-
export declare const useSetAcknowledged: () =>
|
|
26
|
+
export declare const useSetAcknowledged: () => UseMutationReturnType<void, PostSetAcknowledgedProps>;
|
|
27
27
|
interface PostPopulateTemplateContentProps extends BasePostNotificationProps {
|
|
28
28
|
data: SWNotification;
|
|
29
29
|
setValue: UseFormSetValue<FieldValues>;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
export declare const usePopulateTemplateContent: () => UseMutationReturnType<{
|
|
32
32
|
title: string;
|
|
33
33
|
message: string;
|
|
34
|
-
},
|
|
35
|
-
export declare const usePopulateTemplateContent: () => UsePopulateReturnType<PostPopulateTemplateContentProps>;
|
|
34
|
+
}, PostPopulateTemplateContentProps>;
|
|
36
35
|
export declare const useGetStreams: (isDisabled?: boolean) => UseQueryResult<StreamResponse[]>;
|
|
37
36
|
export declare const useGetTimeSeries: (options: TimeseriesParams[]) => UseQueryResult<TimeseriesResponseData>[];
|
|
38
37
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/space-weather",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"description": "GeoWeb Spaceweather library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@opengeoweb/api": "20.0.
|
|
24
|
-
"@opengeoweb/shared": "20.0.
|
|
25
|
-
"@opengeoweb/theme": "20.0.
|
|
23
|
+
"@opengeoweb/api": "20.0.1",
|
|
24
|
+
"@opengeoweb/shared": "20.0.1",
|
|
25
|
+
"@opengeoweb/theme": "20.0.1",
|
|
26
26
|
"react-hook-form": "^7.50.1",
|
|
27
|
-
"@opengeoweb/form-fields": "20.0.
|
|
27
|
+
"@opengeoweb/form-fields": "20.0.1",
|
|
28
28
|
"echarts-for-react": "^3.0.6",
|
|
29
29
|
"echarts": "^6.1.0",
|
|
30
30
|
"lodash": "^4.18.1",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@mui/material": "^9.0.1",
|
|
34
34
|
"@mui/system": "^9.0.1",
|
|
35
35
|
"@tanstack/react-query": "^5.85.5",
|
|
36
|
-
"@opengeoweb/authentication": "20.0.
|
|
36
|
+
"@opengeoweb/authentication": "20.0.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "19",
|