Skip to content

Commit

Permalink
Use prism-common imports (#1436)
Browse files Browse the repository at this point in the history
Co-authored-by: donia benharara <donia.benharara@pathtech.fr>
  • Loading branch information
ericboucher and Doniaab authored Feb 20, 2025
1 parent 792fc89 commit 4437745
Show file tree
Hide file tree
Showing 23 changed files with 149 additions and 185 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ jobs:
**/node_modules
**/.eslintcache
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-2025-1-${{ hashFiles('**/frontend/yarn.lock') }}-${{ hashFiles('**/common/yarn.lock') }}
key: ${{ runner.os }}-yarn-2025-3-${{ hashFiles('**/frontend/yarn.lock') }}-${{ hashFiles('**/common/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-2025-1
${{ runner.os }}-yarn-2025-3
- name: Install dependencies if needed.
if: steps.yarn-cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -172,9 +172,9 @@ jobs:
**/node_modules
**/.eslintcache
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-2024-122-${{ hashFiles('**/frontend/yarn.lock') }}-${{ hashFiles('**/common/yarn.lock') }}
key: ${{ runner.os }}-yarn-2025-2-${{ hashFiles('**/frontend/yarn.lock') }}-${{ hashFiles('**/common/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-2024-122
${{ runner.os }}-yarn-2025-2
- name: Install dependencies if needed.
if: steps.yarn-cache.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion alerting/src/aa-storm-alert/alert.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
getLatestAvailableReports,
} from './alert';
import { buildDetailedReport, buildLandfallInfo } from './test-utils';
import { WindState } from 'prism-common/dist/types/anticipatory-action-storm/windState';
import { WindState } from 'prism-common';
import moment from 'moment';
import { LastStates } from '../types/aa-storm-email';

Expand Down
4 changes: 2 additions & 2 deletions alerting/src/aa-storm-alert/alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
ShortReportsResponseBody,
} from '../types/aa-storm-email';
import nodeFetch from 'node-fetch';
import { WindState } from 'prism-common/dist/types/anticipatory-action-storm/windState';
import { StormDataResponseBody } from 'prism-common/dist/types/anticipatory-action-storm/reportResponse';
import { WindState } from 'prism-common';
import { StormDataResponseBody } from 'prism-common';
import { StormAlertData } from '../types/email';
import moment from 'moment';
import { captureScreenshotFromUrl } from '../utils/capture-utils';
Expand Down
3 changes: 1 addition & 2 deletions alerting/src/aa-storm-alert/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { LandfallInfo } from 'prism-common/dist/types/anticipatory-action-storm/reportResponse';
import { WindState } from 'prism-common/dist/types/anticipatory-action-storm/windState';
import { WindState, LandfallInfo } from 'prism-common';

export function buildLandfallInfo({
landfall_time = ['2025-01-13 06:00:00', '2025-01-13 18:00:00'],
Expand Down
2 changes: 1 addition & 1 deletion alerting/src/types/aa-storm-email.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WindState } from 'prism-common/dist/types/anticipatory-action-storm/windState';
import { WindState } from 'prism-common';

export type LastStates = {
[stormName: string]: {
Expand Down
2 changes: 1 addition & 1 deletion alerting/src/types/email.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WindState } from 'prism-common/dist/types/anticipatory-action-storm/windState';
import { WindState } from 'prism-common';

export interface StormAlertData {
email: string | string[];
Expand Down
2 changes: 1 addition & 1 deletion alerting/src/utils/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { formatDateToUTC } from './date';
import {
displayWindState,
WindState,
} from 'prism-common/dist/types/anticipatory-action-storm/windState';
} from 'prism-common';

/**
*
Expand Down
Loading

0 comments on commit 4437745

Please # to comment.