@opengeoweb/taf 16.0.0 → 17.0.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 +879 -349
- package/package.json +8 -8
- package/src/index.d.ts +0 -7
- package/src/lib/NafDemo.stories.d.ts +0 -7
- package/src/lib/TafDemo.stories.d.ts +0 -8
- package/src/lib/components/AutoTaf/AutoTaf.d.ts +0 -9
- package/src/lib/components/AutoTaf/AutoTaf.spec.d.ts +0 -1
- package/src/lib/components/AutoTaf/AutoTaf.stories.d.ts +0 -8
- package/src/lib/components/AutoTaf/index.d.ts +0 -1
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +0 -38
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +0 -1
- package/src/lib/components/ComponentsLookUp/index.d.ts +0 -1
- package/src/lib/components/IssuesPane/IssuesButton.d.ts +0 -10
- package/src/lib/components/IssuesPane/IssuesButton.spec.d.ts +0 -1
- package/src/lib/components/IssuesPane/IssuesPane.d.ts +0 -14
- package/src/lib/components/IssuesPane/IssuesPane.spec.d.ts +0 -1
- package/src/lib/components/IssuesPane/IssuesPane.stories.d.ts +0 -9
- package/src/lib/components/IssuesPane/IssuesPaneWrapper.d.ts +0 -4
- package/src/lib/components/IssuesPane/IssuesPaneWrapper.spec.d.ts +0 -1
- package/src/lib/components/IssuesPane/index.d.ts +0 -2
- package/src/lib/components/IssuesPane/types.d.ts +0 -16
- package/src/lib/components/IssuesPane/utils.d.ts +0 -8
- package/src/lib/components/IssuesPane/utils.spec.d.ts +0 -1
- package/src/lib/components/Providers/Providers.d.ts +0 -22
- package/src/lib/components/Providers/index.d.ts +0 -1
- package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.d.ts +0 -4
- package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.spec.d.ts +0 -1
- package/src/lib/components/Spinner/Spinner.d.ts +0 -4
- package/src/lib/components/Spinner/Spinner.spec.d.ts +0 -1
- package/src/lib/components/Spinner/Spinner.stories.d.ts +0 -10
- package/src/lib/components/StatusIcon/StatusIcon.d.ts +0 -8
- package/src/lib/components/StatusIcon/StatusIcon.spec.d.ts +0 -1
- package/src/lib/components/TabPanel/TabPanel.d.ts +0 -8
- package/src/lib/components/TabPanel/TabPanel.spec.d.ts +0 -1
- package/src/lib/components/TabPanel/index.d.ts +0 -1
- package/src/lib/components/TafAvatar/TafAvatar.d.ts +0 -8
- package/src/lib/components/TafAvatar/index.d.ts +0 -1
- package/src/lib/components/TafForm/TafForm.d.ts +0 -16
- package/src/lib/components/TafForm/TafForm.editor.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafForm.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafForm.statusChanges.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafForm.stories.d.ts +0 -27
- package/src/lib/components/TafForm/TafForm.validations.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.d.ts +0 -12
- package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.d.ts +0 -11
- package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/DragHandle.d.ts +0 -8
- package/src/lib/components/TafForm/TafFormRow/DragHandle.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/TafFormRow.d.ts +0 -4
- package/src/lib/components/TafForm/TafFormRow/TafFormRow.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/TafFormTextField.d.ts +0 -30
- package/src/lib/components/TafForm/TafFormRow/TafFormTextField.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/types.d.ts +0 -31
- package/src/lib/components/TafForm/TafFormRow/validations/change.d.ts +0 -4
- package/src/lib/components/TafForm/TafFormRow/validations/change.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/clouds.d.ts +0 -34
- package/src/lib/components/TafForm/TafFormRow/validations/clouds.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/probability.d.ts +0 -2
- package/src/lib/components/TafForm/TafFormRow/validations/probability.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/utils.d.ts +0 -2
- package/src/lib/components/TafForm/TafFormRow/validations/utils.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/validField.d.ts +0 -21
- package/src/lib/components/TafForm/TafFormRow/validations/validField.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/visibility.d.ts +0 -12
- package/src/lib/components/TafForm/TafFormRow/validations/visibility.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/weather.d.ts +0 -15
- package/src/lib/components/TafForm/TafFormRow/validations/weather.spec.d.ts +0 -1
- package/src/lib/components/TafForm/TafFormRow/validations/wind.d.ts +0 -16
- package/src/lib/components/TafForm/TafFormRow/validations/wind.spec.d.ts +0 -1
- package/src/lib/components/TafForm/index.d.ts +0 -1
- package/src/lib/components/TafForm/utils.d.ts +0 -73
- package/src/lib/components/TafForm/utils.spec.d.ts +0 -1
- package/src/lib/components/TafHeader/TafHeader.d.ts +0 -8
- package/src/lib/components/TafHeader/TafHeader.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/LocationTabs/LocationTabs.d.ts +0 -10
- package/src/lib/components/TafLayout/LocationTabs/LocationTabs.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/LocationTabs/LocationTabs.stories.d.ts +0 -8
- package/src/lib/components/TafLayout/LocationTabs/index.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.d.ts +0 -8
- package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.stories.d.ts +0 -8
- package/src/lib/components/TafLayout/TacOverview/ExportButton.d.ts +0 -7
- package/src/lib/components/TafLayout/TacOverview/ExportButton.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/TacContainer.d.ts +0 -13
- package/src/lib/components/TafLayout/TacOverview/TacContainer.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/TacContainerLayout.d.ts +0 -10
- package/src/lib/components/TafLayout/TacOverview/TacOverview.d.ts +0 -12
- package/src/lib/components/TafLayout/TacOverview/TacOverview.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/TacOverview.stories.d.ts +0 -10
- package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.d.ts +0 -12
- package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.stories.d.ts +0 -9
- package/src/lib/components/TafLayout/TacOverview/index.d.ts +0 -2
- package/src/lib/components/TafLayout/TafLayout.d.ts +0 -10
- package/src/lib/components/TafLayout/TafLayout.issuespane.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafLayout.snackbar.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafLayout.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafLayout.stories.d.ts +0 -13
- package/src/lib/components/TafLayout/TafLayout.tacoverview.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafPanel/TafPanel.d.ts +0 -23
- package/src/lib/components/TafLayout/TafPanel/TafPanel.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TafPanel/TafPanel.stories.d.ts +0 -11
- package/src/lib/components/TafLayout/TafPanel/index.d.ts +0 -1
- package/src/lib/components/TafLayout/TopTabs/TopTabs.d.ts +0 -9
- package/src/lib/components/TafLayout/TopTabs/TopTabs.spec.d.ts +0 -1
- package/src/lib/components/TafLayout/TopTabs/TopTabs.stories.d.ts +0 -8
- package/src/lib/components/TafLayout/TopTabs/index.d.ts +0 -1
- package/src/lib/components/TafLayout/utils.d.ts +0 -47
- package/src/lib/components/TafLayout/utils.spec.d.ts +0 -1
- package/src/lib/components/TafModule/TafModule.d.ts +0 -9
- package/src/lib/components/TafModule/TafModule.spec.d.ts +0 -1
- package/src/lib/components/TafModule/TafModule.stories.d.ts +0 -62
- package/src/lib/components/TafModule/TafModuleProvider.d.ts +0 -23
- package/src/lib/components/TafModule/index.d.ts +0 -1
- package/src/lib/components/TafRemarkField/TafRemarkField.d.ts +0 -7
- package/src/lib/components/TafRemarkField/TafRemarkField.spec.d.ts +0 -1
- package/src/lib/components/TafRemarkField/index.d.ts +0 -1
- package/src/lib/components/TafWrapper/TafConfigWrapper.d.ts +0 -13
- package/src/lib/components/TafWrapper/TafWrapper.d.ts +0 -3
- package/src/lib/components/TafWrapper/TafWrapper.spec.d.ts +0 -1
- package/src/lib/components/TafWrapper/index.d.ts +0 -1
- package/src/lib/types.d.ts +0 -173
- package/src/lib/utils/dateFormats.d.ts +0 -2
- package/src/lib/utils/i18n.d.ts +0 -6
- package/src/lib/utils/mockdata/fakeTafConfig.d.ts +0 -2
- package/src/lib/utils/mockdata/fakeTafList.d.ts +0 -26
- package/src/lib/utils/mockdata/naf/fakeNafConfig.d.ts +0 -2
- package/src/lib/utils/mockdata/naf/fakeNafList.d.ts +0 -12
- package/src/lib/utils/taf-api/api.d.ts +0 -7
- package/src/lib/utils/taf-api/fakeApi.d.ts +0 -4
- package/src/lib/utils/taf-api/hooks.d.ts +0 -25
- package/src/lib/utils/utils.d.ts +0 -1
- package/src/lib/utils/weatherPhenomena.d.ts +0 -422
package/src/lib/types.d.ts
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import type { WeatherPhenomena } from './utils/weatherPhenomena';
|
|
2
|
-
export interface Visibility {
|
|
3
|
-
range: number;
|
|
4
|
-
unit: string;
|
|
5
|
-
}
|
|
6
|
-
export interface Wind {
|
|
7
|
-
direction: number | string;
|
|
8
|
-
speed: number | string;
|
|
9
|
-
gust?: number | string;
|
|
10
|
-
unit: 'KT';
|
|
11
|
-
}
|
|
12
|
-
export type NSW = 'NSW';
|
|
13
|
-
export interface Weather {
|
|
14
|
-
weather1: WeatherPhenomena | NSW;
|
|
15
|
-
weather2?: WeatherPhenomena | NSW;
|
|
16
|
-
weather3?: WeatherPhenomena | NSW;
|
|
17
|
-
}
|
|
18
|
-
export type CloudCoverage = 'FEW' | 'SCT' | 'BKN' | 'OVC';
|
|
19
|
-
export type CloudType = 'CB' | 'TCU';
|
|
20
|
-
export interface Cloud {
|
|
21
|
-
coverage: CloudCoverage;
|
|
22
|
-
height: number | null;
|
|
23
|
-
type?: CloudType;
|
|
24
|
-
}
|
|
25
|
-
export type NSC = 'NSC';
|
|
26
|
-
export interface VerticalVisibility {
|
|
27
|
-
verticalVisibility: number;
|
|
28
|
-
}
|
|
29
|
-
export interface Clouds {
|
|
30
|
-
cloud1: Cloud | VerticalVisibility | NSC;
|
|
31
|
-
cloud2?: Cloud;
|
|
32
|
-
cloud3?: Cloud;
|
|
33
|
-
cloud4?: Cloud;
|
|
34
|
-
}
|
|
35
|
-
export type TafDate = string;
|
|
36
|
-
export interface Valid {
|
|
37
|
-
start: TafDate;
|
|
38
|
-
end?: TafDate;
|
|
39
|
-
}
|
|
40
|
-
export interface BaseForecast {
|
|
41
|
-
valid: Valid;
|
|
42
|
-
visibility?: Visibility;
|
|
43
|
-
wind?: Wind;
|
|
44
|
-
weather?: Weather;
|
|
45
|
-
cloud?: Clouds;
|
|
46
|
-
cavOK?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export type Change = 'TEMPO' | 'BECMG' | 'FM';
|
|
49
|
-
export interface ChangeGroup extends BaseForecast {
|
|
50
|
-
change: Change;
|
|
51
|
-
probability?: 'PROB30' | 'PROB40';
|
|
52
|
-
}
|
|
53
|
-
export type MessageType = 'ORG' | 'AMD' | 'COR' | 'CNL';
|
|
54
|
-
export type NafLocation = 'EHAK' | 'EHFD' | 'EHDV' | 'EHHW' | 'EHKV' | 'EHMG' | 'EHMA' | 'EHQN' | 'EHPG';
|
|
55
|
-
export type Location = 'EHAM' | 'EHRD' | 'EHGG' | 'EHBK' | 'EHLE' | 'TNCB' | NafLocation;
|
|
56
|
-
export type TafType = 'TAF' | 'NAF';
|
|
57
|
-
export interface BaseTaf {
|
|
58
|
-
validDateStart: TafDate;
|
|
59
|
-
validDateEnd: TafDate;
|
|
60
|
-
baseTime: TafDate;
|
|
61
|
-
previousId?: string;
|
|
62
|
-
previousValidDateStart?: TafDate;
|
|
63
|
-
previousValidDateEnd?: TafDate;
|
|
64
|
-
location: Location;
|
|
65
|
-
baseForecast: BaseForecast;
|
|
66
|
-
changeGroups?: ChangeGroup[];
|
|
67
|
-
messageType: MessageType;
|
|
68
|
-
remark?: string;
|
|
69
|
-
uuid: string;
|
|
70
|
-
issueDate?: TafDate;
|
|
71
|
-
type?: TafType;
|
|
72
|
-
}
|
|
73
|
-
export type TafStatus = 'NEW' | 'DRAFT' | 'DRAFT_AMENDED' | 'DRAFT_CORRECTED' | 'PUBLISHED' | 'CORRECTED' | 'AMENDED' | 'CANCELLED' | 'EXPIRED' | 'AUTO';
|
|
74
|
-
export type TafActions = 'NEW' | 'DRAFT' | 'DRAFT_AMEND' | 'DRAFT_CORRECT' | 'PUBLISH' | 'CANCEL' | 'CORRECT' | 'AMEND' | 'CLOSE' | 'CLEAR';
|
|
75
|
-
export type TafCanbe = 'DRAFTED' | 'DISCARDED' | 'PUBLISHED' | 'CANCELLED' | 'AMENDED' | 'CORRECTED';
|
|
76
|
-
export interface Taf extends BaseTaf {
|
|
77
|
-
status: TafStatus;
|
|
78
|
-
}
|
|
79
|
-
export interface BaseForecastFormData {
|
|
80
|
-
valid: string;
|
|
81
|
-
visibility?: string;
|
|
82
|
-
wind?: string;
|
|
83
|
-
weather?: WeatherStrings;
|
|
84
|
-
cloud?: CloudStrings;
|
|
85
|
-
cavOK?: boolean;
|
|
86
|
-
}
|
|
87
|
-
export interface ChangeGroupFormData extends BaseForecastFormData {
|
|
88
|
-
probability?: string;
|
|
89
|
-
change: string;
|
|
90
|
-
}
|
|
91
|
-
export interface TafFormData {
|
|
92
|
-
IS_DRAFT?: boolean;
|
|
93
|
-
validDateStart: string;
|
|
94
|
-
validDateEnd: string;
|
|
95
|
-
baseTime: string;
|
|
96
|
-
previousId?: string;
|
|
97
|
-
previousValidDateStart?: string;
|
|
98
|
-
previousValidDateEnd?: string;
|
|
99
|
-
location: Location;
|
|
100
|
-
baseForecast: BaseForecastFormData;
|
|
101
|
-
changeGroups?: ChangeGroupFormData[];
|
|
102
|
-
messageType: MessageType;
|
|
103
|
-
uuid: string;
|
|
104
|
-
issueDate?: string;
|
|
105
|
-
status: TafStatus;
|
|
106
|
-
remark?: string;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Type with TAF info from the backend
|
|
110
|
-
*/
|
|
111
|
-
export interface TafFromBackend {
|
|
112
|
-
taf: Taf;
|
|
113
|
-
creationDate: TafDate;
|
|
114
|
-
canbe: TafCanbe[];
|
|
115
|
-
editor: string;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Type with TAF info sent to the backend
|
|
119
|
-
*/
|
|
120
|
-
export interface TafFromFrontEnd {
|
|
121
|
-
taf: Taf;
|
|
122
|
-
changeStatusTo?: TafStatus;
|
|
123
|
-
editor?: string;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* TAF (json) settings (libs/taf/src/lib/utils/tafConfig.json)
|
|
127
|
-
*/
|
|
128
|
-
export type TafConfigLocation = TafConfigLocationFixedPeriod | TafConfigLocationDynamicPeriod;
|
|
129
|
-
export interface TafConfigLocationFixedPeriod {
|
|
130
|
-
validity_duration: number;
|
|
131
|
-
activity_period: number;
|
|
132
|
-
label: string;
|
|
133
|
-
}
|
|
134
|
-
export interface TafConfigLocationDynamicPeriod {
|
|
135
|
-
valid_durations: number[];
|
|
136
|
-
valid_start_times: number[];
|
|
137
|
-
label: string;
|
|
138
|
-
}
|
|
139
|
-
export type TafConfigLocations = Record<string, TafConfigLocation>;
|
|
140
|
-
export type AutoTAFlocations = string[];
|
|
141
|
-
export interface TafConfig {
|
|
142
|
-
location_indicator_mwo: string;
|
|
143
|
-
locations: TafConfigLocations;
|
|
144
|
-
locationOrder: string[];
|
|
145
|
-
autoTAFlocations?: AutoTAFlocations;
|
|
146
|
-
shouldEnableRemark?: boolean;
|
|
147
|
-
type: TafType;
|
|
148
|
-
}
|
|
149
|
-
export type TimeSlot = 'UPCOMING' | 'ACTIVE' | 'EXPIRED';
|
|
150
|
-
export interface AdverseWeatherTAC {
|
|
151
|
-
tac: {
|
|
152
|
-
text: string;
|
|
153
|
-
type?: string;
|
|
154
|
-
}[][];
|
|
155
|
-
}
|
|
156
|
-
export type TAC = string | AdverseWeatherTAC;
|
|
157
|
-
export interface CloudStrings {
|
|
158
|
-
cloud1: string;
|
|
159
|
-
cloud2?: string;
|
|
160
|
-
cloud3?: string;
|
|
161
|
-
cloud4?: string;
|
|
162
|
-
}
|
|
163
|
-
export interface WeatherStrings {
|
|
164
|
-
weather1: string;
|
|
165
|
-
weather2?: string;
|
|
166
|
-
weather3?: string;
|
|
167
|
-
}
|
|
168
|
-
export interface ConfigKey {
|
|
169
|
-
key: string;
|
|
170
|
-
size: number;
|
|
171
|
-
minSize?: number;
|
|
172
|
-
maxSize?: number;
|
|
173
|
-
}
|
package/src/lib/utils/i18n.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import i18n from 'i18next';
|
|
2
|
-
import type { UseTranslationResponse } from 'react-i18next';
|
|
3
|
-
export declare const TAF_NAMESPACE = "taf";
|
|
4
|
-
export declare const initTafI18n: () => void;
|
|
5
|
-
export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
6
|
-
export declare const useTafTranslation: () => UseTranslationResponse<typeof TAF_NAMESPACE, typeof i18n>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { TafFromBackend } from '../../types';
|
|
2
|
-
export declare const MOCK_USERNAME = "user.name";
|
|
3
|
-
export declare const fakeTafList: TafFromBackend[];
|
|
4
|
-
export declare const fakeNewTaf: TafFromBackend;
|
|
5
|
-
export declare const fakeNewFixedTaf: TafFromBackend;
|
|
6
|
-
export declare const fakeExpiredTaf: TafFromBackend;
|
|
7
|
-
export declare const fakePublishedTaf: TafFromBackend;
|
|
8
|
-
export declare const fakePublishedFixedTaf: TafFromBackend;
|
|
9
|
-
export declare const fakePublishedTafWithoutChangeGroups: TafFromBackend;
|
|
10
|
-
export declare const fakeCancelledTaf: TafFromBackend;
|
|
11
|
-
export declare const fakeDraftTaf: TafFromBackend;
|
|
12
|
-
export declare const fakeDraftFixedTaf: TafFromBackend;
|
|
13
|
-
export declare const fakeDraftAmendmentTaf: TafFromBackend;
|
|
14
|
-
export declare const fakeDraftCorrectedTaf: TafFromBackend;
|
|
15
|
-
export declare const fakeDraftAmendmentFixedTaf: TafFromBackend;
|
|
16
|
-
export declare const previousTafForfakeDraftAmendmentFixedTaf: TafFromBackend;
|
|
17
|
-
export declare const fakeAmendmentTaf: TafFromBackend;
|
|
18
|
-
export declare const fakeCorrectedTaf: TafFromBackend;
|
|
19
|
-
export declare const fakeAmendmentFixedTaf: TafFromBackend;
|
|
20
|
-
export declare const fakeCancelledFixedTaf: TafFromBackend;
|
|
21
|
-
export declare const fakeFixedTafList: TafFromBackend[];
|
|
22
|
-
export declare const fakePublishedTafWithChangeGroups: TafFromBackend;
|
|
23
|
-
export declare const fakeDraftTafWithSameDates: TafFromBackend;
|
|
24
|
-
export declare const fakeDraftTafWithSameDatesFixed: TafFromBackend;
|
|
25
|
-
export declare const fakeDraftTafWithFM: TafFromBackend;
|
|
26
|
-
export declare const fakeCurrentTaf: TafFromBackend;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { TafFromBackend } from '../../../types';
|
|
2
|
-
export declare const MOCK_USERNAME = "user.name";
|
|
3
|
-
export declare const fakeNafList: TafFromBackend[];
|
|
4
|
-
export declare const fakeFixedNaf: TafFromBackend;
|
|
5
|
-
export declare const fakeLastInDayNaf: TafFromBackend;
|
|
6
|
-
export declare const fakeNewFixedNaf: TafFromBackend;
|
|
7
|
-
export declare const fakeDraftFixedNaf: TafFromBackend;
|
|
8
|
-
export declare const fakePublishedFixedNaf: TafFromBackend;
|
|
9
|
-
export declare const fakeDraftAmendmentFixedNaf: TafFromBackend;
|
|
10
|
-
export declare const fakeAmendmentFixedNaf: TafFromBackend;
|
|
11
|
-
export declare const fakeCancelledFixedNaf: TafFromBackend;
|
|
12
|
-
export declare const fakeFixedNafList: TafFromBackend[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Credentials } from '@opengeoweb/authentication';
|
|
2
|
-
import type { TAC, Taf, TafConfig, TafFromBackend, TafFromFrontEnd, TafType } from '../../types';
|
|
3
|
-
export declare const getTafList: (auth: Credentials, type?: TafType) => Promise<TafFromBackend[]>;
|
|
4
|
-
export declare const postTaf: (auth: Credentials, data: TafFromFrontEnd) => Promise<Response>;
|
|
5
|
-
export declare const patchTaf: (auth: Credentials, data: TafFromFrontEnd, force?: boolean) => Promise<Response>;
|
|
6
|
-
export declare const getTAC: (auth: Credentials, data: Taf) => Promise<TAC>;
|
|
7
|
-
export declare const getTafConfig: (auth: Credentials, type?: TafType) => Promise<TafConfig>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AdverseWeatherTAC } from '../../types';
|
|
2
|
-
export declare const fakeTafTac = "TAF EHAM 0812/0918 20020G35KT 0500 SN BKN040 BECMG 0814/0816 0700 BKN001=";
|
|
3
|
-
export declare const fakeTafTacJson: AdverseWeatherTAC;
|
|
4
|
-
export declare const tafEndPoints: import("msw").HttpHandler[];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import type { TafError } from '../../components/TafLayout/utils';
|
|
3
|
-
import type { TAC, Taf, TafFromBackend, TafFromFrontEnd, TafConfig, TafType } from '../../types';
|
|
4
|
-
export declare const useTafList: (type?: TafType, disabled?: boolean) => UseQueryResult<TafFromBackend[]>;
|
|
5
|
-
export declare const useTafConfig: (type?: TafType, disabled?: boolean) => UseQueryResult<TafConfig>;
|
|
6
|
-
type PostReturnType<T> = UseMutationResult<Response | null, Error, T>;
|
|
7
|
-
interface PostTafProps {
|
|
8
|
-
tafData: TafFromFrontEnd;
|
|
9
|
-
isAutoSaved: boolean;
|
|
10
|
-
setError: React.Dispatch<React.SetStateAction<TafError | null>>;
|
|
11
|
-
}
|
|
12
|
-
export declare const usePostTaf: () => PostReturnType<PostTafProps>;
|
|
13
|
-
type PatchReturnType<T> = UseMutationResult<Response | null, Error, T>;
|
|
14
|
-
interface PatchTafProps {
|
|
15
|
-
tafData: TafFromFrontEnd;
|
|
16
|
-
setError: React.Dispatch<React.SetStateAction<TafError | null>>;
|
|
17
|
-
force?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const usePatchTaf: () => PatchReturnType<PatchTafProps>;
|
|
20
|
-
type GetTACReturnType<T> = UseMutationResult<TAC, Error, T>;
|
|
21
|
-
interface GetTACProps {
|
|
22
|
-
tafData: Taf;
|
|
23
|
-
}
|
|
24
|
-
export declare const useGetTAC: () => GetTACReturnType<GetTACProps>;
|
|
25
|
-
export {};
|
package/src/lib/utils/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCurrentUrlLocation: (url: string, appUrl: string) => string;
|