Skip to content
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

feat: [M3-6703] - Update MSW and Database API-V4 types to support new plans #9257

Merged
merged 2 commits into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/api-v4/.changeset/pr-9257-added-1686756493120.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/api-v4": Added
---

Database API-V4 types to support Premium plans ([#9257](https://github.com/linode/manager/pull/9257))
2 changes: 1 addition & 1 deletion packages/api-v4/src/databases/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseType } from '../linodes/types';

export type DatabaseTypeClass = 'standard' | 'dedicated' | 'nanode';
export type DatabaseTypeClass = 'standard' | 'dedicated' | 'nanode' | 'premium';

export interface DatabasePriceObject {
monthly: number;
Expand Down
7 changes: 6 additions & 1 deletion packages/manager/src/mocks/serverHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,13 @@ const databases = [
const dedicatedTypes = databaseTypeFactory.buildList(7, {
class: 'dedicated',
});
const premiumTypes = databaseTypeFactory.buildList(7, {
class: 'premium',
});
return res(
ctx.json(makeResourcePage([...standardTypes, ...dedicatedTypes]))
ctx.json(
makeResourcePage([...standardTypes, ...dedicatedTypes, ...premiumTypes])
)
);
}),

Expand Down