Skip to content

Commit 1cd405d

Browse files
feat(dashboard): show tier badge in org selector
1 parent 84cd88f commit 1cd405d

File tree

8 files changed

+20
-19
lines changed

8 files changed

+20
-19
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 160
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-13ed0159480c5c02ed02394764e7c528c1110cdc42d2a0ff5fac228f48403a08.yml
3-
openapi_spec_hash: e1b4c20a8a5faee0f2dd22b449e7a106
4-
config_hash: f36d04c8359fe8baec226396a18b309e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-504fab16d01ad7f81914542fd0523f4dfefce87813891da391b97b1b0a70f563.yml
3+
openapi_spec_hash: 84d9d652cac365c646e01111cee89afc
4+
config_hash: acfe8cf5d6e4b26387e4fefa3bff8409

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Types:
1010
- <code><a href="./src/resources/shared.ts">FieldValue</a></code>
1111
- <code><a href="./src/resources/shared.ts">Gateway</a></code>
1212
- <code><a href="./src/resources/shared.ts">OrganizationRole</a></code>
13+
- <code><a href="./src/resources/shared.ts">OrganizationTier</a></code>
1314
- <code><a href="./src/resources/shared.ts">Principal</a></code>
1415
- <code><a href="./src/resources/shared.ts">ProjectEnvironmentClass</a></code>
1516
- <code><a href="./src/resources/shared.ts">ResourceType</a></code>
@@ -323,7 +324,6 @@ Types:
323324
- <code><a href="./src/resources/organizations/organizations.ts">InviteDomains</a></code>
324325
- <code><a href="./src/resources/organizations/organizations.ts">Organization</a></code>
325326
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationMember</a></code>
326-
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationTier</a></code>
327327
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationCreateResponse</a></code>
328328
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationRetrieveResponse</a></code>
329329
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationUpdateResponse</a></code>

src/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ import {
291291
OrganizationRetrieveResponse,
292292
OrganizationSetRoleParams,
293293
OrganizationSetRoleResponse,
294-
OrganizationTier,
295294
OrganizationUpdateParams,
296295
OrganizationUpdateResponse,
297296
Organizations,
@@ -1402,7 +1401,6 @@ export declare namespace Gitpod {
14021401
type InviteDomains as InviteDomains,
14031402
type Organization as Organization,
14041403
type OrganizationMember as OrganizationMember,
1405-
type OrganizationTier as OrganizationTier,
14061404
type OrganizationCreateResponse as OrganizationCreateResponse,
14071405
type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
14081406
type OrganizationUpdateResponse as OrganizationUpdateResponse,
@@ -1547,6 +1545,7 @@ export declare namespace Gitpod {
15471545
export type FieldValue = API.FieldValue;
15481546
export type Gateway = API.Gateway;
15491547
export type OrganizationRole = API.OrganizationRole;
1548+
export type OrganizationTier = API.OrganizationTier;
15501549
export type Principal = API.Principal;
15511550
export type ProjectEnvironmentClass = API.ProjectEnvironmentClass;
15521551
export type ResourceType = API.ResourceType;

src/resources/accounts.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,15 @@ export interface AccountMembership {
477477
userRole: Shared.OrganizationRole;
478478

479479
/**
480-
* organization_name is the member count of the organization the user is a member
481-
* of
480+
* organization_member_count is the member count of the organization the user is a
481+
* member of
482482
*/
483483
organizationMemberCount?: number;
484+
485+
/**
486+
* organization_tier is the tier of the organization (Free, Core, Enterprise)
487+
*/
488+
organizationTier?: Shared.OrganizationTier;
484489
}
485490

486491
export interface JoinableOrganization {

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ export {
152152
type InviteDomains,
153153
type Organization,
154154
type OrganizationMember,
155-
type OrganizationTier,
156155
type OrganizationCreateResponse,
157156
type OrganizationRetrieveResponse,
158157
type OrganizationUpdateResponse,

src/resources/organizations/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export {
4343
type InviteDomains,
4444
type Organization,
4545
type OrganizationMember,
46-
type OrganizationTier,
4746
type OrganizationCreateResponse,
4847
type OrganizationRetrieveResponse,
4948
type OrganizationUpdateResponse,

src/resources/organizations/organizations.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export interface Organization {
524524
/**
525525
* The tier of the organization - free, enterprise or core
526526
*/
527-
tier: OrganizationTier;
527+
tier: Shared.OrganizationTier;
528528

529529
/**
530530
* A Timestamp represents a point in time independent of any time zone or local
@@ -732,13 +732,6 @@ export interface OrganizationMember {
732732
avatarUrl?: string;
733733
}
734734

735-
export type OrganizationTier =
736-
| 'ORGANIZATION_TIER_UNSPECIFIED'
737-
| 'ORGANIZATION_TIER_FREE'
738-
| 'ORGANIZATION_TIER_ENTERPRISE'
739-
| 'ORGANIZATION_TIER_CORE'
740-
| 'ORGANIZATION_TIER_FREE_ONA';
741-
742735
export interface OrganizationCreateResponse {
743736
/**
744737
* organization is the created organization
@@ -937,7 +930,6 @@ export declare namespace Organizations {
937930
type InviteDomains as InviteDomains,
938931
type Organization as Organization,
939932
type OrganizationMember as OrganizationMember,
940-
type OrganizationTier as OrganizationTier,
941933
type OrganizationCreateResponse as OrganizationCreateResponse,
942934
type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
943935
type OrganizationUpdateResponse as OrganizationUpdateResponse,

src/resources/shared.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ export type OrganizationRole =
154154
| 'ORGANIZATION_ROLE_ADMIN'
155155
| 'ORGANIZATION_ROLE_MEMBER';
156156

157+
export type OrganizationTier =
158+
| 'ORGANIZATION_TIER_UNSPECIFIED'
159+
| 'ORGANIZATION_TIER_FREE'
160+
| 'ORGANIZATION_TIER_ENTERPRISE'
161+
| 'ORGANIZATION_TIER_CORE'
162+
| 'ORGANIZATION_TIER_FREE_ONA';
163+
157164
export type Principal =
158165
| 'PRINCIPAL_UNSPECIFIED'
159166
| 'PRINCIPAL_ACCOUNT'

0 commit comments

Comments
 (0)