Skip to content

Release v1.140.0 - staging → master #12061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 142 commits into from
Apr 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
1f3c6a8
Saving...
jaalah Feb 27, 2025
76ddcfd
Saving...
jaalah Feb 27, 2025
9f9a1b2
Merge branch 'develop' of github.com:linode/manager into M3-9432
jaalah Mar 5, 2025
ac15511
Saving...
jaalah Mar 7, 2025
0a615aa
Merge branch 'develop' of github.com:linode/manager into M3-9432
jaalah Mar 7, 2025
a3aaf05
Saving...
jaalah Mar 7, 2025
7f986ae
Fix E2E tests
jaalah Mar 8, 2025
c2a3d37
Add changesets and revert
jaalah Mar 8, 2025
53b461b
Edit changesets
jaalah Mar 8, 2025
8d3d3f2
Use slot props
jaalah Mar 8, 2025
9081c35
Update height and colors
jaalah Mar 8, 2025
5f95e68
Algolia and SearchBar
jaalah Mar 10, 2025
9314d83
Fix unit tests
jaalah Mar 10, 2025
a2d2404
First pass
jaalah Mar 10, 2025
a11226b
Get latest
jaalah Mar 12, 2025
371707e
Fix loading state for autocomplete
jaalah Mar 13, 2025
bba9dbe
Merge branch 'develop' into M3-9432
jaalah-akamai Mar 13, 2025
13ae152
Merge branch 'develop' of github.com:linode/manager into M3-9432
jaalah Mar 13, 2025
796a4bf
Merge branch 'M3-9432' of github.com:jaalah-akamai/manager into M3-9432
jaalah Mar 13, 2025
a1520d3
Fix path
jaalah Mar 13, 2025
09b5f02
Update to loading end adornment
jaalah Mar 17, 2025
63bfbdb
Update icons in UI package
jaalah Mar 17, 2025
c734c98
Merge branch 'develop' into M3-9432
jaalah-akamai Mar 17, 2025
ab91a7b
Get latest from develop
jaalah Mar 19, 2025
40f3e4d
Update with latest
jaalah Mar 19, 2025
ede26f9
More cleanup
jaalah Mar 19, 2025
0d2d8d8
Fix adornment bug
jaalah Mar 19, 2025
f5ca361
Revert loading state
jaalah Mar 19, 2025
296baa2
Add changesets
jaalah Mar 19, 2025
8e774c8
Merge branch 'develop' into M3-9428
jaalah-akamai Mar 20, 2025
abd68db
Merge branch 'develop' of github.com:linode/manager into M3-9428
jaalah Mar 24, 2025
6529124
Merge branch 'develop' into M3-9428
cpathipa Mar 24, 2025
9f69dee
Update story
jaalah Mar 24, 2025
b3393e1
Merge branch 'M3-9428' of github.com:jaalah-akamai/manager into M3-9428
jaalah Mar 24, 2025
b982c02
Merge branch 'develop' into M3-9428
jaalah-akamai Mar 24, 2025
0dfa66a
Merge branch 'develop' into M3-9428
jaalah-akamai Mar 24, 2025
079cf28
Merge branch 'develop' into M3-9428
pmakode-akamai Mar 25, 2025
0840c50
Update unit tests for ACLP
jaalah Mar 25, 2025
b329723
Merge branch 'M3-9428' of github.com:jaalah-akamai/manager into M3-9428
jaalah Mar 25, 2025
ec3d5a0
Merge branch 'develop' into M3-9428
jaalah-akamai Mar 25, 2025
594edfa
Fix duplicate Transaction Types label
jaalah Mar 26, 2025
9f6eba8
Merge branch 'M3-9428' of github.com:jaalah-akamai/manager into M3-9428
jaalah Mar 26, 2025
370b49a
Merge branch 'develop' of github.com:linode/manager into M3-9428
jaalah Mar 26, 2025
4905bcd
Get latest
jaalah Mar 31, 2025
41afca3
Make component work in both controlled and uncontrolled environments
jaalah Apr 3, 2025
57e3a91
Merge branch 'develop' into M3-9428
jaalah-akamai Apr 3, 2025
849b823
Refactor: [M3-9639] - Object Storage Tanstack Router (#11924)
abailly-akamai Apr 3, 2025
6793024
upcoming:[DI-23542] - Resource selection limitation phase 2 in cloudp…
venkymano-akamai Apr 4, 2025
c6fd08d
test: [M3-9716] - Disallow some regions from being used for Image upl…
jdamore-linode Apr 4, 2025
3c68cf5
test: [M3-9481 & more] - Apply environment-specific tags to tests (#1…
jdamore-linode Apr 4, 2025
07e6dc4
refactor: [DI-24450] - Added logic to update the alert in cache when …
nikhagra-akamai Apr 7, 2025
82c0046
refactor: [M3-9614] - Move `getUserTimeZone` and its associated profi…
pmakode-akamai Apr 7, 2025
12ef458
Merge branch 'develop' into M3-9428
jaalah-akamai Apr 7, 2025
46788f5
fix: [M3-9719] - Fix a couple of errors with v4beta requests on the N…
mjac0bs Apr 7, 2025
66c663d
Merge pull request #11816 from jaalah-akamai/M3-9428
jaalah-akamai Apr 7, 2025
f0e69ba
chore(deps-dev): Bump vite from 6.2.4 to 6.2.5 (#11971)
dependabot[bot] Apr 7, 2025
45e8419
fix: Update `pnpm clean` command to include all new packages (#11983)
mjac0bs Apr 7, 2025
77d5135
upcoming: [M3-9682] - Disable Upgrade Interfaces functionality for LK…
coliu-akamai Apr 7, 2025
2aa06af
upcoming: [DI-24238] - UI changes to Create/Edit form (#11963)
santoshp210-akamai Apr 8, 2025
d70dc96
upcoming:[DI-24445] - Remove or condition when empty (#11967)
ankita-akamai Apr 8, 2025
6fa94d1
upcoming: [M3-9706] - Fix Subnets Table for Linodes using new interfa…
coliu-akamai Apr 8, 2025
956cfef
Merge Master to Develop
jaalah Apr 8, 2025
1f0f391
fix: [UIE-8674] - advanced config fix (#11987)
mpolotsk-akamai Apr 8, 2025
903fe44
upcoming: [M3-9646] - Create VM Host Maintenance flag (#11974)
hkhalil-akamai Apr 8, 2025
dbca818
change: [M3-9655] - [Akamai Design System] Toast Component (#11962)
bill-akamai Apr 8, 2025
258b1d5
revert: [M3-9080] - Tanstack routing for VPCs (#11991)
jaalah-akamai Apr 8, 2025
9385fda
change: [M3-9735] - Add encryption icon to Image edit drawer (#11993)
bill-akamai Apr 8, 2025
15285da
change: [M3-9408] - Remove min length validation for tag (#11944)
hasyed-akamai Apr 9, 2025
3a8838f
fix: [DI-24413] - Bug fixes on the dashboard UI (#11968)
nikhagra-akamai Apr 9, 2025
c7c4b09
upcoming: [DI-24451] - Added confirmation dialog on enabling/disablin…
nikhagra-akamai Apr 9, 2025
46a4e05
change: [M3-9733], [M3-9734] and [M3-9736] - Image service Gen2 - Cop…
cpathipa Apr 9, 2025
6a0aad9
chore: [M3-9693] - Eslint Overhaul (#11941)
abailly-akamai Apr 9, 2025
cd88bbc
feat: [UIE-8672, UIE-8625] - IAM RBAC: fix not displaying empty state…
aaleksee-akamai Apr 9, 2025
d5663e7
fix Unexpected empty object pattern (#12000)
abailly-akamai Apr 9, 2025
1b0688e
refactor: [M3-9170] - Move `betaUtils` and its associated factories t…
harsh-akamai Apr 10, 2025
f87bc9d
upcoming: [DI-24470] - Rename resources to entities in labels, placeh…
venkymano-akamai Apr 10, 2025
afe440a
fix: Update field restrictions for Create Firewall form (#11973)
coliu-akamai Apr 10, 2025
37951d3
DI-23961 - Fix schema types and validations in cloudpulse alerting cr…
venkymano-akamai Apr 10, 2025
26bb6e9
test [M3-9559]: mock region for LKE test (#11996)
dmcintyr-akamai Apr 10, 2025
205d028
deps: [M3-9749] - Upgrade Cypress to 14.3.0 (#12002)
bnussman-akamai Apr 10, 2025
014bd74
remove: [M3-9713] - Truncation from PDF descriptions (#12009)
jaalah-akamai Apr 10, 2025
41f867b
upcoming: [M3-9714] - Update Linode Create UI for Linode Interfaces (…
bnussman-akamai Apr 10, 2025
80b5607
change: [M3-9743] - Rename `Analytics` tab to `Metrics` tab on Linode…
pmakode-akamai Apr 11, 2025
6c88174
upcoming: [M3-9731] - Check for Linode Interfaces Account Capability …
bnussman-akamai Apr 11, 2025
02c5358
upcoming: [M3-9537] - Fix some VPC related bugs for Linode Interfaces…
coliu-akamai Apr 11, 2025
cdcbfaa
added: [M3-9745] - Legacy browser support for `url.canParse` (#12010)
abailly-akamai Apr 12, 2025
1f398fa
change: [M3-8978] - Disable Autocomplete search on touch devices (#11…
abailly-akamai Apr 12, 2025
3688d82
fix: [M3-9085] - Miscellaneous masked data bugs and enhancements (#12…
mjac0bs Apr 14, 2025
e753366
upcoming: [M3-9752] - Support more VPC features in the Add Interface …
bnussman-akamai Apr 14, 2025
331e2ba
upcoming: [M3-9649] - Linode Interfaces - Edit Public Interface (#11957)
bnussman-akamai Apr 15, 2025
9ff9907
upcoming:[DI-24112] - Add grouping by tag for alerts (#12001)
ankita-akamai Apr 15, 2025
e124455
fix: [M3-9521] - Warning message in the images landing page for the r…
hasyed-akamai Apr 15, 2025
9168219
fix: [UIE-8684] - Advanced Config fix: drawer, validation (#12006)
mpolotsk-akamai Apr 15, 2025
63dd772
change: [M3-9427, M3-9747] - Add MSW crud support for Nodebalancers (…
harsh-akamai Apr 15, 2025
e702ac7
feat: [UIE-8602] - IAM RBAC: new drawer for updating role for entity …
aaleksee-akamai Apr 15, 2025
1a242b6
fix: [M3-9245] - CM Showing Wrong Permissions for Limited Access Key …
carrillo-erik Apr 15, 2025
6a2667e
test [M3-9567]: Fix Cypress LKE update tests in DevCloud (#12014)
dmcintyr-akamai Apr 15, 2025
9823703
test: [M3-9558] - replace hardcoded region id in clone linode test (#…
dmcintyr-akamai Apr 15, 2025
c93cad3
upcoming: [M3-9751] - Add Interface Settings Drawer for Linode Interf…
bnussman-akamai Apr 15, 2025
c9363ed
change: [M3-9654] - Akamai Design System: Notice component (#12004)
hana-akamai Apr 15, 2025
a0febfa
feat: [UIE-8601] - IAM RBAC: add new drawer for updating entities flo…
aaleksee-akamai Apr 15, 2025
daa750c
change: [UIE-8685] - Advanced Config: custom validation for wal_sende…
mpolotsk-akamai Apr 15, 2025
722b5b1
fix: [M3-9732] - ACL Flash of Content (#12011)
jaalah-akamai Apr 15, 2025
3ee982d
test: [M3-9480] - Allow Linode delete Cypress tests to pass in non-Pr…
jdamore-linode Apr 15, 2025
f7e67ea
refactor: [M3-9767] - Use simple Select in `RegionTypeFilter` (#12018)
hkhalil-akamai Apr 15, 2025
5644ad2
refactor: [M3-9711] - Move `grants` and its associated factories to `…
hasyed-akamai Apr 16, 2025
225d465
fix: [M3-9586] - Warning message in the Longview landing page for the…
hasyed-akamai Apr 16, 2025
bb75508
test: [M3-9565] - mock region for linode config test (#11999)
dmcintyr-akamai Apr 16, 2025
712c2c3
test: [M3-9489] - Use mock regions for region search (#11997)
dmcintyr-akamai Apr 16, 2025
b4db18a
fix: [UIE-8447] - autofill fix and clear errors on blur (#12032)
mpolotsk-akamai Apr 16, 2025
8107b33
upcoming: [M3-9250] - Add support for Linode Interfaces in Subnet Ass…
coliu-akamai Apr 16, 2025
23633bb
test: [M3-9174] - Add Cypress tests for Firewall landing page improve…
jdamore-linode Apr 16, 2025
615cc80
Merge in latest master and resolve conflict
DevDW Apr 16, 2025
1765395
Fix test failure by mocking endpoints to trigger SSL tab to appear (#…
jdamore-linode Apr 16, 2025
30e6bcb
test: [M3-9555] - Fix plan selection Cypress test against other envir…
jdamore-linode Apr 16, 2025
0657c4a
change: [OCA-1509] - Deprecate 4 Marketplace apps (#12048)
hmorris3293 Apr 16, 2025
dddadfa
feat[UIE-8656] - IAM / RBAC useIsIAMEnabled hook to check user API ac…
corya-akamai Apr 16, 2025
ca22131
test: [DBAAS1-1054] - Cypress test for a two node cluster and validat…
stayal712 Apr 16, 2025
317d6ca
test: [M3-9169] - Add Cypress tests for Firewall create with template…
jdamore-linode Apr 16, 2025
063b64a
fix: [M3-9770] - Fix incorrect max autoscaler limit validation for LK…
mjac0bs Apr 16, 2025
eaa2392
feat: [UIE-8646] Update "Assign roles" drawer (#12038)
rodonnel-akamai Apr 16, 2025
ea6a661
feat: [UIE-8142] - IAM RBAC - Implement Roles Table (#12012)
rodonnel-akamai Apr 16, 2025
fb4d915
feat: [UIE-8603] - IAM RBAC: User Entities - Remove Assignment (#12027)
aaleksee-akamai Apr 16, 2025
620e8f8
upcoming: [M3-9758] - Create a feature flag for ACLP Integration (#12…
pmakode-akamai Apr 17, 2025
03060b9
feat[UIE-8656]: IAM/RBAC - Add isIAMBeta and isIAMEnabled to memo dep…
corya-akamai Apr 17, 2025
5954c97
change: [M3-9433] - Image Service Gen2 GA: Update copy about Image Pr…
cpathipa Apr 17, 2025
3961fd1
Cloud version v1.140.0, API v4 version v0.138.0, Validation version v…
cpathipa Apr 17, 2025
47d1dd7
fix: Surface IPv4 Range errors for Linode Interfaces in SubnetAssignL…
coliu-akamai Apr 17, 2025
309ecd7
fix: [M3-9790] - Notice & DismissibleBanner styles (#12055)
abailly-akamai Apr 17, 2025
d2875aa
Merge pull request #12057 from linode/release-v1.140.0
cpathipa Apr 18, 2025
e18c549
Add design feedback
bill-akamai Apr 18, 2025
efd0c2b
Added changeset: Toast styling according to additonal Des feedback
bill-akamai Apr 18, 2025
c091c42
Align close icon
bill-akamai Apr 18, 2025
6eeac9c
Remove changeset
bill-akamai Apr 18, 2025
7e805bc
feat[UIE-8726]: IAM disable API check when feature flag is off
Apr 18, 2025
3f2b2d7
Added changeset: IAM disable API check when feature flag is off
Apr 18, 2025
cd5f879
Set relative positioning on toast parent for smoother animation
bill-akamai Apr 18, 2025
a495492
Remove changeset
Apr 18, 2025
797bb5b
Merge pull request #12068 from corya-akamai/UIE-8726-iam-is-enabled-c…
cpathipa Apr 18, 2025
5bcc8b2
Merge branch 'staging' into M3-9655-des-feedback
cpathipa Apr 18, 2025
6b5f8a8
Merge pull request #12064 from bill-akamai/M3-9655-des-feedback
cpathipa Apr 18, 2025
c6361bf
fix: [M3-9796] - Notice icon, padding, and dark mode (#12065)
hana-akamai Apr 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions .github/workflows/eslint_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ESLint Review
on: [pull_request]
jobs:
eslint:
name: ESLint Review
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
strategy:
matrix:
package: [manager, api-v4, queries, shared, ui, utilities, validation]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
run_install: false
version: 10
- uses: actions/setup-node@v4
with:
node-version: "20.17"
cache: "pnpm"
- run: pnpm install
- uses: abailly-akamai/action-eslint@8ad68ba04fa60924ef7607b07deb5989f38f5ed6 # v1.0.2
with:
workdir: packages/${{ matrix.package }}
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
level: warning # This will report both warnings and errors
filter_mode: added # Only comment on new/modified lines
25 changes: 22 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,35 @@
"name": "root",
"private": true,
"license": "Apache-2.0",
"type": "module",
"devDependencies": {
"@eslint/js": "^9.23.0",
"concurrently": "9.1.0",
"husky": "^9.1.6",
"typescript": "^5.7.3",
"vitest": "^3.0.7",
"@vitest/ui": "^3.0.7",
"lint-staged": "^15.4.3"
"lint-staged": "^15.4.3",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-cypress": "^4.2.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-perfectionist": "^4.10.1",
"eslint-plugin-prettier": "~5.2.6",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-sonarjs": "^3.0.2",
"eslint-plugin-testing-library": "^7.1.1",
"eslint-plugin-xss": "^0.1.12",
"prettier": "~3.5.3",
"typescript-eslint": "^8.29.0",
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@linode/eslint-plugin-cloud-manager": "^0.0.10",
"jiti": "^2.4.2"
},
"scripts": {
"lint": "eslint . --quiet --ext .js,.ts,.tsx",
"lint:all": "pnpm -r --parallel lint",
"install:all": "pnpm install --frozen-lockfile",
"build:sdk": "pnpm run --filter @linode/api-v4 build",
"build:validation": "pnpm run --filter @linode/validation build",
Expand Down Expand Up @@ -46,7 +65,7 @@
"package-versions": "pnpm run --filter @linode/scripts package-versions",
"junit:summary": "pnpm run --filter @linode/scripts --silent junit:summary",
"generate-tod": "pnpm run --filter @linode/scripts --silent generate-tod",
"clean": "rm -rf node_modules && rm -rf packages/manager/node_modules && rm -rf packages/api-v4/node_modules && rm -rf packages/validation/node_modules && rm -rf packages/api-v4/lib && rm -rf packages/validation/lib && rm -rf packages/ui/node_modules && rm -rf packages/utilities/node_modules",
"clean": "concurrently \"rm -rf node_modules\" \"pnpm -r exec rm -rf node_modules lib dist\" \"pnpm store prune\"",
"prepare": "husky"
},
"resolutions": {
Expand Down
112 changes: 0 additions & 112 deletions packages/api-v4/.eslintrc.json

This file was deleted.

28 changes: 23 additions & 5 deletions packages/api-v4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
## [2025-04-08] - v0.137.0
## [2025-04-22] - v0.138.0

### Added:

- `Linode Interfaces` to the `AccountCapability` type ([#11995](https://github.com/linode/manager/pull/11995))

### Changed:

- Add VPC field to `LinodeIPsResponseIPV4` ([#11976](https://github.com/linode/manager/pull/11976))

### Tech Stories:

- Eslint Overhaul ([#11941](https://github.com/linode/manager/pull/11941))

### Upcoming Features:

- Add schema validation for `edit alert` call in cloudpulse alerts ([#11868](https://github.com/linode/manager/pull/11868))
- Fix the iam api for put method ([#11978](https://github.com/linode/manager/pull/11978))
- fix the api to the right one for iam ([#11998](https://github.com/linode/manager/pull/11998))
- Rename `DeleteLinodeConfigInterfacePayload` to `DeleteInterfaceIds` ([#12016](https://github.com/linode/manager/pull/12016))
- fix the api to the right one for iam ([#12027](https://github.com/linode/manager/pull/12027))

## [2025-04-08] - v0.137.0

### Added:

Expand Down Expand Up @@ -27,7 +48,6 @@

## [2025-03-25] - v0.136.0


### Added:

- Add and update `/v4beta/nodebalancers` endpoints for NB-VPC Integration ([#11811](https://github.com/linode/manager/pull/11811))
Expand Down Expand Up @@ -73,7 +93,6 @@

## [2025-02-11] - v0.134.0


### Added:

- Labels and Taints types and params ([#11528](https://github.com/linode/manager/pull/11528))
Expand Down Expand Up @@ -116,7 +135,6 @@
- Add types for Quotas endpoints ([#11493](https://github.com/linode/manager/pull/11493))
- Add Notification Channel related types to cloudpulse/alerts.ts ([#11511](https://github.com/linode/manager/pull/11511))


## [2025-01-14] - v0.132.0

### Added:
Expand All @@ -126,7 +144,7 @@

### Changed:

- Type of `AlertDefinitionType` to `'system'|'user'` ([#11346](https://github.com/linode/manager/pull/11346))
- Type of `AlertDefinitionType` to `'system'|'user'` ([#11346](https://github.com/linode/manager/pull/11346))
- Property names, and types of the CreateAlertDefinitionPayload and Alert interfaces ([#11392](https://github.com/linode/manager/pull/11392))
- BaseDatabase total_disk_size_gb and used_disk_size_gb are always expected and used_disk_size_gb can be null ([#11426](https://github.com/linode/manager/pull/11426))
- Renamed `AvailableMetrics` type to `MetricDefinition` ([#11433](https://github.com/linode/manager/pull/11433))
Expand Down
7 changes: 7 additions & 0 deletions packages/api-v4/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'eslint/config';

import { baseConfig } from '../manager/eslint.config.js';

export default defineConfig({
extends: baseConfig,
});
7 changes: 2 additions & 5 deletions packages/api-v4/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linode/api-v4",
"version": "0.137.0",
"version": "0.138.0",
"homepage": "https://github.com/linode/manager/tree/develop/packages/api-v4",
"bugs": {
"url": "https://github.com/linode/manager/issues"
Expand Down Expand Up @@ -58,9 +58,6 @@
"devDependencies": {
"axios-mock-adapter": "^1.22.0",
"concurrently": "^9.0.1",
"eslint": "^6.8.0",
"eslint-plugin-sonarjs": "^0.5.0",
"prettier": "~2.2.1",
"tsup": "^8.4.0"
},
"lint-staged": {
Expand All @@ -72,4 +69,4 @@
"tsc -p tsconfig.json --noEmit true --emitDeclarationOnly false"
]
}
}
}
8 changes: 5 additions & 3 deletions packages/api-v4/src/account/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const accountCapabilities = [
'Kubernetes',
'Kubernetes Enterprise',
'Linodes',
'Linode Interfaces',
'LKE HA Control Planes',
'LKE Network Access Control List (IP ACL)',
'Machine Images',
Expand All @@ -87,7 +88,7 @@ export const accountCapabilities = [
'VPCs',
] as const;

export type AccountCapability = typeof accountCapabilities[number];
export type AccountCapability = (typeof accountCapabilities)[number];

export interface AccountAvailability {
region: string; // will be slug of dc (matches id field of region object returned by API)
Expand All @@ -101,7 +102,8 @@ export const linodeInterfaceAccountSettings = [
'linode_only',
] as const;

export type LinodeInterfaceAccountSetting = typeof linodeInterfaceAccountSettings[number];
export type LinodeInterfaceAccountSetting =
(typeof linodeInterfaceAccountSettings)[number];

export interface AccountSettings {
managed: boolean;
Expand Down Expand Up @@ -494,7 +496,7 @@ export const EventActionKeys = [
'vpc_update',
] as const;

export type EventAction = typeof EventActionKeys[number];
export type EventAction = (typeof EventActionKeys)[number];

export type EventStatus =
| 'scheduled'
Expand Down
13 changes: 8 additions & 5 deletions packages/api-v4/src/cloudpulse/alerts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { createAlertDefinitionSchema } from '@linode/validation';
import {
createAlertDefinitionSchema,
editAlertDefinitionSchema,
} from '@linode/validation';
import Request, {
setURL,
setMethod,
Expand Down Expand Up @@ -54,16 +57,16 @@ export const getAlertDefinitionByServiceTypeAndId = (
export const editAlertDefinition = (
data: EditAlertDefinitionPayload,
serviceType: string,
alertId: number
alertId: number,
) =>
Request<Alert>(
setURL(
`${API_ROOT}/monitor/services/${encodeURIComponent(
serviceType
)}/alert-definitions/${encodeURIComponent(alertId)}`
serviceType,
)}/alert-definitions/${encodeURIComponent(alertId)}`,
),
setMethod('PUT'),
setData(data)
setData(data, editAlertDefinitionSchema),
);
export const getNotificationChannels = (params?: Params, filters?: Filter) =>
Request<ResourcePage<NotificationChannel>>(
Expand Down
Loading