Skip to content

Commit 70b4896

Browse files
Merge pull request #12229 from linode/staging
Release v1.142.0 – `staging` → `master`
2 parents 3adccc5 + d8435fb commit 70b4896

File tree

1,779 files changed

+15742
-13821
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,779 files changed

+15742
-13821
lines changed

.eslintrc.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Two reviews from members of the Cloud Manager team are required before merge. Af
4646

4747
Follow these best practices to write a good changeset:
4848

49+
- Summarize your changes succinctly in 150 characters or less. A changeset shouldn't describe every line of code edited in the PR.
4950
- Use a consistent tense in all changeset entries. We have chosen to use **imperative (present)** tense. (This follows established [git commit message best practices](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).)
5051
- Avoid starting a changeset with the verb "Add", "Remove", "Change" or "Fix" when listed under that respective `Added`, `Removed`, `Changed` or `Fixed` section. It is unnecessary repetition.
5152
- For `Fixed` changesets, describe the bug that needed to be fixed, rather than the fix itself. (e.g. say "Missing button labels in action buttons" rather than "Make label prop required for action buttons").

packages/api-v4/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [2025-05-20] - v0.140.0
2+
3+
### Upcoming Features:
4+
5+
- Add Host & VM Maintenance types and queries ([#11990](https://github.com/linode/manager/pull/11990))
6+
- Add `SubnetAssignedNodeBalancerData` interface, `nodebalancers` property to `Subnet` interface, and `nodebalancer_id` property to `VCPIP` interface ([#12099](https://github.com/linode/manager/pull/12099))
7+
- CloudPulse: Add payload `DeleteAlertFeature` and request `deleteAlertDefinition` for handling user alert deletion ([#12134](https://github.com/linode/manager/pull/12134))
8+
- Add `/v4beta` endpoints and types for Node Pool requests ([#12188](https://github.com/linode/manager/pull/12188))
9+
110
## [2025-05-06] - v0.139.0
211

312
### Upcoming Features:

packages/api-v4/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linode/api-v4",
3-
"version": "0.139.0",
3+
"version": "0.140.0",
44
"homepage": "https://github.com/linode/manager/tree/develop/packages/api-v4",
55
"bugs": {
66
"url": "https://github.com/linode/manager/issues"

packages/api-v4/src/account/account.ts

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,29 @@ import {
22
updateAccountSchema,
33
UpdateAccountSettingsSchema,
44
} from '@linode/validation/lib/account.schema';
5+
56
import { API_ROOT, BETA_API_ROOT } from '../constants';
67
import Request, {
78
setData,
89
setHeaders,
910
setMethod,
10-
setURL,
1111
setParams,
12+
setURL,
1213
setXFilter,
1314
} from '../request';
14-
import {
15+
16+
import type { Token } from '../profile';
17+
import type { Filter, Params, RequestOptions, ResourcePage } from '../types';
18+
import type {
1519
Account,
1620
AccountAvailability,
1721
AccountSettings,
22+
Agreements,
1823
CancelAccount,
1924
CancelAccountPayload,
20-
Agreements,
21-
RegionalNetworkUtilization,
2225
ChildAccountPayload,
26+
RegionalNetworkUtilization,
2327
} from './types';
24-
import type { Filter, ResourcePage, Params, RequestOptions } from '../types';
25-
import type { Token } from '../profile';
2628

2729
/**
2830
* getAccountInfo
@@ -44,7 +46,7 @@ export const getAccountInfo = () => {
4446
export const getNetworkUtilization = () =>
4547
Request<RegionalNetworkUtilization>(
4648
setURL(`${API_ROOT}/account/transfer`),
47-
setMethod('GET')
49+
setMethod('GET'),
4850
);
4951

5052
/**
@@ -57,7 +59,7 @@ export const updateAccountInfo = (data: Partial<Account>) =>
5759
Request<Account>(
5860
setURL(`${API_ROOT}/account`),
5961
setMethod('PUT'),
60-
setData(data, updateAccountSchema)
62+
setData(data, updateAccountSchema),
6163
);
6264

6365
/**
@@ -69,7 +71,7 @@ export const updateAccountInfo = (data: Partial<Account>) =>
6971
export const getAccountSettings = () =>
7072
Request<AccountSettings>(
7173
setURL(`${API_ROOT}/account/settings`),
72-
setMethod('GET')
74+
setMethod('GET'),
7375
);
7476

7577
/**
@@ -82,7 +84,7 @@ export const updateAccountSettings = (data: Partial<AccountSettings>) =>
8284
Request<AccountSettings>(
8385
setURL(`${API_ROOT}/account/settings`),
8486
setMethod('PUT'),
85-
setData(data, UpdateAccountSettingsSchema)
87+
setData(data, UpdateAccountSettingsSchema),
8688
);
8789

8890
/**
@@ -94,7 +96,7 @@ export const cancelAccount = (data: CancelAccountPayload) => {
9496
return Request<CancelAccount>(
9597
setURL(`${API_ROOT}/account/cancel`),
9698
setMethod('POST'),
97-
setData(data)
99+
setData(data),
98100
);
99101
};
100102

@@ -107,7 +109,7 @@ export const cancelAccount = (data: CancelAccountPayload) => {
107109
export const getAccountAgreements = () =>
108110
Request<Agreements>(
109111
setURL(`${BETA_API_ROOT}/account/agreements`),
110-
setMethod('GET')
112+
setMethod('GET'),
111113
);
112114

113115
/**
@@ -122,7 +124,7 @@ export const getAccountAvailabilities = (params?: Params, filter?: Filter) =>
122124
setURL(`${BETA_API_ROOT}/account/availability`),
123125
setMethod('GET'),
124126
setParams(params),
125-
setXFilter(filter)
127+
setXFilter(filter),
126128
);
127129

128130
/**
@@ -135,9 +137,9 @@ export const getAccountAvailabilities = (params?: Params, filter?: Filter) =>
135137
export const getAccountAvailability = (regionId: string) =>
136138
Request<AccountAvailability>(
137139
setURL(
138-
`${BETA_API_ROOT}/account/availability/${encodeURIComponent(regionId)}`
140+
`${BETA_API_ROOT}/account/availability/${encodeURIComponent(regionId)}`,
139141
),
140-
setMethod('GET')
142+
setMethod('GET'),
141143
);
142144

143145
/**
@@ -149,7 +151,7 @@ export const signAgreement = (data: Partial<Agreements>) => {
149151
return Request<{}>(
150152
setURL(`${BETA_API_ROOT}/account/agreements`),
151153
setMethod('POST'),
152-
setData(data)
154+
setData(data),
153155
);
154156
};
155157

@@ -165,7 +167,7 @@ export const getChildAccounts = ({ filter, params, headers }: RequestOptions) =>
165167
setMethod('GET'),
166168
setHeaders(headers),
167169
setParams(params),
168-
setXFilter(filter)
170+
setXFilter(filter),
169171
);
170172

171173
/**
@@ -178,7 +180,7 @@ export const getChildAccount = ({ euuid, headers }: ChildAccountPayload) =>
178180
Request<Account>(
179181
setURL(`${API_ROOT}/account/child-accounts/${encodeURIComponent(euuid)}`),
180182
setMethod('GET'),
181-
setHeaders(headers)
183+
setHeaders(headers),
182184
);
183185

184186
/**
@@ -198,9 +200,9 @@ export const createChildAccountPersonalAccessToken = ({
198200
}: ChildAccountPayload) =>
199201
Request<Token>(
200202
setURL(
201-
`${API_ROOT}/account/child-accounts/${encodeURIComponent(euuid)}/token`
203+
`${API_ROOT}/account/child-accounts/${encodeURIComponent(euuid)}/token`,
202204
),
203205
setMethod('POST'),
204206
setHeaders(headers),
205-
setData(euuid)
207+
setData(euuid),
206208
);

packages/api-v4/src/account/betas.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { API_ROOT } from '../constants';
22
import Request, {
3+
setData,
34
setMethod,
45
setParams,
56
setURL,
67
setXFilter,
7-
setData,
88
} from '../request';
9-
import { Filter, Params, ResourcePage } from '../types';
10-
import { AccountBeta, EnrollInBetaPayload } from './types';
9+
10+
import type { Filter, Params, ResourcePage } from '../types';
11+
import type { AccountBeta, EnrollInBetaPayload } from './types';
1112

1213
/**
1314
* getBetas
@@ -19,7 +20,7 @@ export const getAccountBetas = (params?: Params, filter?: Filter) =>
1920
setURL(`${API_ROOT}/account/betas`),
2021
setMethod('GET'),
2122
setParams(params),
22-
setXFilter(filter)
23+
setXFilter(filter),
2324
);
2425

2526
/**
@@ -31,7 +32,7 @@ export const getAccountBetas = (params?: Params, filter?: Filter) =>
3132
export const getAccountBeta = (betaId: string) =>
3233
Request<AccountBeta>(
3334
setURL(`${API_ROOT}/account/betas/${encodeURIComponent(betaId)}`),
34-
setMethod('GET')
35+
setMethod('GET'),
3536
);
3637

3738
/**
@@ -45,5 +46,5 @@ export const enrollInBeta = (data: EnrollInBetaPayload) =>
4546
Request<{}>(
4647
setURL(`${API_ROOT}/account/betas`),
4748
setMethod('POST'),
48-
setData(data)
49+
setData(data),
4950
);

packages/api-v4/src/account/events.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { API_ROOT } from '../constants';
22
import Request, { setMethod, setParams, setURL, setXFilter } from '../request';
3-
import { Filter, Params, ResourcePage } from '../types';
4-
import { Event, Notification } from './types';
3+
4+
import type { Filter, Params, ResourcePage } from '../types';
5+
import type { Event, Notification } from './types';
56

67
/**
78
* getEvents
@@ -14,7 +15,7 @@ export const getEvents = (params: Params = {}, filter: Filter = {}) =>
1415
setURL(`${API_ROOT}/account/events`),
1516
setMethod('GET'),
1617
setXFilter(filter),
17-
setParams(params)
18+
setParams(params),
1819
);
1920

2021
/**
@@ -26,7 +27,7 @@ export const getEvents = (params: Params = {}, filter: Filter = {}) =>
2627
export const getEvent = (eventId: number) =>
2728
Request<Event>(
2829
setURL(`${API_ROOT}/account/events/${encodeURIComponent(eventId)}`),
29-
setMethod('GET')
30+
setMethod('GET'),
3031
);
3132

3233
/**
@@ -39,7 +40,7 @@ export const getEvent = (eventId: number) =>
3940
export const markEventSeen = (eventId: number) =>
4041
Request<{}>(
4142
setURL(`${API_ROOT}/account/events/${encodeURIComponent(eventId)}/seen`),
42-
setMethod('POST')
43+
setMethod('POST'),
4344
);
4445

4546
/**
@@ -53,7 +54,7 @@ export const markEventSeen = (eventId: number) =>
5354
export const markEventRead = (eventId: number) =>
5455
Request<{}>(
5556
setURL(`${API_ROOT}/account/events/${encodeURIComponent(eventId)}/read`),
56-
setMethod('POST')
57+
setMethod('POST'),
5758
);
5859

5960
/**
@@ -67,5 +68,5 @@ export const getNotifications = (params?: Params, filter?: Filter) =>
6768
setURL(`${API_ROOT}/account/notifications`),
6869
setMethod('GET'),
6970
setParams(params),
70-
setXFilter(filter)
71+
setXFilter(filter),
7172
);

packages/api-v4/src/account/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ export * from './events';
66

77
export * from './invoices';
88

9-
export * from './payments';
9+
export * from './logins';
1010

11-
export * from './users';
11+
export * from './maintenance';
1212

1313
export * from './oauth';
1414

15+
export * from './payments';
16+
1517
export * from './promos';
1618

1719
export * from './types';
1820

19-
export * from './maintenance';
20-
21-
export * from './logins';
21+
export * from './users';

packages/api-v4/src/account/invoices.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { API_ROOT } from '../constants';
22
import Request, { setMethod, setParams, setURL, setXFilter } from '../request';
3-
import { Filter, Params, ResourcePage } from '../types';
4-
import { Invoice, InvoiceItem } from './types';
3+
4+
import type { Filter, Params, ResourcePage } from '../types';
5+
import type { Invoice, InvoiceItem } from './types';
56

67
/**
78
* getInvoices
@@ -14,7 +15,7 @@ export const getInvoices = (params?: Params, filter?: Filter) =>
1415
setURL(`${API_ROOT}/account/invoices`),
1516
setMethod('GET'),
1617
setParams(params),
17-
setXFilter(filter)
18+
setXFilter(filter),
1819
);
1920

2021
/**
@@ -28,7 +29,7 @@ export const getInvoices = (params?: Params, filter?: Filter) =>
2829
export const getInvoice = (invoiceId: number) =>
2930
Request<Invoice>(
3031
setURL(`${API_ROOT}/account/invoices/${encodeURIComponent(invoiceId)}`),
31-
setMethod('GET')
32+
setMethod('GET'),
3233
);
3334

3435
/**
@@ -43,13 +44,13 @@ export const getInvoice = (invoiceId: number) =>
4344
export const getInvoiceItems = (
4445
invoiceId: number,
4546
params?: Params,
46-
filter?: Filter
47+
filter?: Filter,
4748
) =>
4849
Request<ResourcePage<InvoiceItem>>(
4950
setURL(
50-
`${API_ROOT}/account/invoices/${encodeURIComponent(invoiceId)}/items`
51+
`${API_ROOT}/account/invoices/${encodeURIComponent(invoiceId)}/items`,
5152
),
5253
setMethod('GET'),
5354
setParams(params),
54-
setXFilter(filter)
55+
setXFilter(filter),
5556
);

packages/api-v4/src/account/logins.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { API_ROOT } from '../constants';
22
import Request, { setMethod, setParams, setURL, setXFilter } from '../request';
3-
import { Filter, Params, ResourcePage } from '../types';
4-
import { AccountLogin } from './types';
3+
4+
import type { Filter, Params, ResourcePage } from '../types';
5+
import type { AccountLogin } from './types';
56

67
/**
78
* getAccountLogins
@@ -14,7 +15,7 @@ export const getAccountLogins = (params?: Params, filter?: Filter) =>
1415
setURL(`${API_ROOT}/account/logins`),
1516
setMethod('GET'),
1617
setParams(params),
17-
setXFilter(filter)
18+
setXFilter(filter),
1819
);
1920

2021
/**
@@ -28,5 +29,5 @@ export const getAccountLogins = (params?: Params, filter?: Filter) =>
2829
export const getAccountLogin = (loginId: number) =>
2930
Request<AccountLogin>(
3031
setURL(`${API_ROOT}/account/logins/${encodeURIComponent(loginId)}`),
31-
setMethod('GET')
32+
setMethod('GET'),
3233
);

0 commit comments

Comments
 (0)