Skip to content

Commit f85163e

Browse files
authored
Add engineCloud plan capability to service-utils (#6793)
1 parent 7965d93 commit f85163e

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.changeset/lovely-peas-behave.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/service-utils": patch
3+
---
4+
5+
add engineCloud plan capability

apps/dashboard/src/stories/stubs.ts

+5
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ export function teamStub(id: string, billingPlan: Team["billingPlan"]): Team {
8989
enabled: true,
9090
rateLimit: 1000,
9191
},
92+
engineCloud: {
93+
enabled: true,
94+
rateLimit: 100,
95+
mainnetEnabled: true,
96+
},
9297
},
9398
};
9499

packages/service-utils/src/core/api.ts

+5
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ type TeamCapabilities = {
8080
customAuth: boolean;
8181
customBranding: boolean;
8282
};
83+
engineCloud: {
84+
enabled: boolean;
85+
mainnetEnabled: boolean;
86+
rateLimit: number;
87+
};
8388
};
8489

8590
type TeamPlan =

packages/service-utils/src/mocks.ts

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ export const validTeamResponse: TeamResponse = {
9292
customAuth: true,
9393
customBranding: true,
9494
},
95+
engineCloud: {
96+
enabled: true,
97+
mainnetEnabled: true,
98+
rateLimit: 100,
99+
},
95100
},
96101
};
97102

0 commit comments

Comments
 (0)