@rushstack/rush-sdk 5.130.3 → 5.131.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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RushCommandLineParser } from '../RushCommandLineParser';
|
|
2
|
+
import { BaseRushAction } from './BaseRushAction';
|
|
3
|
+
export declare class AlertAction extends BaseRushAction {
|
|
4
|
+
private readonly _terminal;
|
|
5
|
+
private readonly _snoozeParameter;
|
|
6
|
+
private readonly _snoozeTimeFlagParameter;
|
|
7
|
+
constructor(parser: RushCommandLineParser);
|
|
8
|
+
runAsync(): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AlertAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("cli/actions/AlertAction");
|
|
@@ -1,22 +1,70 @@
|
|
|
1
1
|
import { type Terminal } from '@rushstack/terminal';
|
|
2
2
|
import type { RushConfiguration } from '../api/RushConfiguration';
|
|
3
3
|
export interface IRushAlertsOptions {
|
|
4
|
-
rushConfiguration: RushConfiguration;
|
|
5
4
|
terminal: Terminal;
|
|
5
|
+
rushJsonFolder: string;
|
|
6
|
+
rushAlertsConfig: IRushAlertsConfig | undefined;
|
|
7
|
+
rushAlertsState: IRushAlertsState | undefined;
|
|
8
|
+
rushAlertsConfigFilePath: string;
|
|
9
|
+
rushAlertsStateFilePath: string;
|
|
10
|
+
}
|
|
11
|
+
interface IRushAlertsConfig {
|
|
12
|
+
alerts: Array<IRushAlertsConfigEntry>;
|
|
13
|
+
}
|
|
14
|
+
interface IRushAlertsConfigEntry {
|
|
15
|
+
alertId: string;
|
|
16
|
+
title: string;
|
|
17
|
+
message: Array<string>;
|
|
18
|
+
detailsUrl: string;
|
|
19
|
+
startTime: string;
|
|
20
|
+
endTime: string;
|
|
21
|
+
conditionScript?: string;
|
|
22
|
+
priority?: AlertPriority;
|
|
23
|
+
maximumDisplayInterval?: AlertDisplayInterval;
|
|
24
|
+
}
|
|
25
|
+
interface IRushAlertsState {
|
|
26
|
+
[alertId: string]: IRushAlertStateEntry;
|
|
27
|
+
}
|
|
28
|
+
interface IRushAlertStateEntry {
|
|
29
|
+
lastDisplayTime?: string;
|
|
30
|
+
snooze?: boolean;
|
|
31
|
+
snoozeEndTime?: string;
|
|
32
|
+
}
|
|
33
|
+
declare const enum AlertDisplayInterval {
|
|
34
|
+
ALWAYS = "always",
|
|
35
|
+
MONTHLY = "monthly",
|
|
36
|
+
WEEKLY = "weekly",
|
|
37
|
+
DAILY = "daily",
|
|
38
|
+
HOURLY = "hourly"
|
|
39
|
+
}
|
|
40
|
+
declare const enum AlertPriority {
|
|
41
|
+
HIGH = "high",
|
|
42
|
+
NORMAL = "normal",
|
|
43
|
+
LOW = "low"
|
|
6
44
|
}
|
|
7
45
|
export declare class RushAlerts {
|
|
8
|
-
private readonly _rushConfiguration;
|
|
9
46
|
private readonly _terminal;
|
|
10
|
-
private
|
|
47
|
+
private readonly _rushAlertsConfig;
|
|
48
|
+
private readonly _rushAlertsState;
|
|
49
|
+
private readonly _rushJsonFolder;
|
|
11
50
|
readonly rushAlertsStateFilePath: string;
|
|
51
|
+
readonly rushAlertsConfigFilePath: string;
|
|
52
|
+
static readonly ALERT_PRIORITY: string[];
|
|
53
|
+
static readonly alertDisplayIntervalDurations: Map<AlertDisplayInterval, number>;
|
|
54
|
+
static readonly alertTriggerActions: string[];
|
|
12
55
|
constructor(options: IRushAlertsOptions);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
retrieveAlertsAsync(): Promise<void>;
|
|
56
|
+
static loadFromConfigurationAsync(rushConfiguration: RushConfiguration, terminal: Terminal): Promise<RushAlerts>;
|
|
57
|
+
private _ensureAlertStateIsUpToDate;
|
|
16
58
|
printAlertsAsync(): Promise<void>;
|
|
59
|
+
printAllAlertsAsync(): Promise<void>;
|
|
60
|
+
private _printAlerts;
|
|
61
|
+
snoozeAlertsByAlertIdAsync(alertId: string, forever?: boolean): Promise<void>;
|
|
62
|
+
private _selectAlertByPriorityAsync;
|
|
17
63
|
private static _parseDate;
|
|
64
|
+
private _isSnoozing;
|
|
18
65
|
private _isAlertValidAsync;
|
|
19
66
|
private _printMessageInBoxStyle;
|
|
20
67
|
private _writeRushAlertStateAsync;
|
|
21
68
|
}
|
|
69
|
+
export {};
|
|
22
70
|
//# sourceMappingURL=RushAlerts.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.131.0",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@types/semver": "7.5.0",
|
|
43
43
|
"@types/webpack-env": "1.18.0",
|
|
44
44
|
"webpack": "~5.82.1",
|
|
45
|
-
"@rushstack/heft": "0.66.24",
|
|
46
|
-
"@microsoft/rush-lib": "5.130.3",
|
|
47
45
|
"local-node-rig": "1.0.0",
|
|
48
|
-
"@
|
|
49
|
-
"@rushstack/stream-collator": "4.1.
|
|
50
|
-
"@rushstack/
|
|
51
|
-
"@rushstack/
|
|
46
|
+
"@microsoft/rush-lib": "5.131.0",
|
|
47
|
+
"@rushstack/stream-collator": "4.1.63",
|
|
48
|
+
"@rushstack/heft": "0.66.25",
|
|
49
|
+
"@rushstack/heft-webpack5-plugin": "0.10.7",
|
|
50
|
+
"@rushstack/ts-command-line": "4.22.4",
|
|
51
|
+
"@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.62"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "heft build --clean",
|