Skip to content

Commit

Permalink
Merge pull request #45 from Jandiasnow/m
Browse files Browse the repository at this point in the history
fix: update organization sdk
  • Loading branch information
bjwswang authored Feb 17, 2023
2 parents cebc689 + 0bf1223 commit c935d08
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
32 changes: 27 additions & 5 deletions bff-sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export type Organization = {
/** name */
name: Scalars['ID'];
/** 所在网络 */
networks?: Maybe<Array<Scalars['String']>>;
networks?: Maybe<Array<Network>>;
/** 原因(状态为非Deplyed时) */
reason?: Maybe<Scalars['String']>;
/** 状态 */
Expand Down Expand Up @@ -710,8 +710,8 @@ export type GetOrganizationsQuery = {
admin?: string | null;
status?: StatusType | null;
reason?: string | null;
networks?: Array<string> | null;
federations?: Array<string> | null;
networks?: Array<{ __typename?: 'Network'; name: string }> | null;
}>;
};

Expand All @@ -731,8 +731,19 @@ export type GetOrganizationQuery = {
admin?: string | null;
status?: StatusType | null;
reason?: string | null;
networks?: Array<string> | null;
federations?: Array<string> | null;
networks?: Array<{
__typename?: 'Network';
name: string;
creationTimestamp?: string | null;
lastHeartbeatTime?: string | null;
expiredTime?: string | null;
clusterSize?: number | null;
organizations?: Array<{
__typename?: 'Organization';
name: string;
}> | null;
}> | null;
users?: Array<{
__typename?: 'User';
name: string;
Expand Down Expand Up @@ -1076,7 +1087,9 @@ export const GetOrganizationsDocument = gql`
admin
status
reason
networks
networks {
name
}
federations
}
}
Expand All @@ -1092,7 +1105,16 @@ export const GetOrganizationDocument = gql`
admin
status
reason
networks
networks {
name
creationTimestamp
lastHeartbeatTime
expiredTime
clusterSize
organizations {
name
}
}
federations
users {
name
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Organization/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,9 @@ class Organization$$Page extends React.Component {
style={{ fontSize: "" }}
>
{__$$eval(() =>
text?.length > 0 ? text?.join(",") : "-"
text?.length > 0
? text?.map((item) => item.name)?.join(",")
: "-"
)}
</Typography.Text>
))(
Expand Down

0 comments on commit c935d08

Please sign in to comment.