diff --git a/.changeset/shaky-poets-wear.md b/.changeset/shaky-poets-wear.md new file mode 100644 index 000000000..aeb71c81e --- /dev/null +++ b/.changeset/shaky-poets-wear.md @@ -0,0 +1,6 @@ +--- +'@siafoundation/indexd-types': minor +'indexd': minor +--- + +Removed serviceAccount, as it is no longer supplied. Closes https://github.com/SiaFoundation/indexd/issues/794 diff --git a/apps/indexd/components/Data/Accounts/SidePanelAccount.tsx b/apps/indexd/components/Data/Accounts/SidePanelAccount.tsx index 94bd6e6cc..026961869 100644 --- a/apps/indexd/components/Data/Accounts/SidePanelAccount.tsx +++ b/apps/indexd/components/Data/Accounts/SidePanelAccount.tsx @@ -70,10 +70,6 @@ export function SidePanelAccount() { value={account.description} variant="column" /> - [] = [ cell: ({ row }) => {row.original.description}, meta: { className: 'justify-start', ...hashColumnWidth }, }, - { - id: 'serviceAccount', - header: ({ table, column }) => ( - - Service account - - ), - cell: ({ row }) => ( - {row.original.serviceAccount ? 'Yes' : 'No'} - ), - meta: { className: 'justify-end', ...smallColumnWidth }, - }, { id: 'maxPinnedData', header: ({ table, column }) => ( diff --git a/apps/indexd/components/Data/Accounts/transform.ts b/apps/indexd/components/Data/Accounts/transform.ts index 61ed9757e..25b1d1ecd 100644 --- a/apps/indexd/components/Data/Accounts/transform.ts +++ b/apps/indexd/components/Data/Accounts/transform.ts @@ -7,7 +7,6 @@ export function transformAccount(account: Account): AccountData { id: account.accountKey, publicKey: account.accountKey, description: account.description, - serviceAccount: account.serviceAccount, maxPinnedData: account.maxPinnedData, pinnedData: account.pinnedData, lastUsed: account.lastUsed, diff --git a/apps/indexd/components/Data/Accounts/types.ts b/apps/indexd/components/Data/Accounts/types.ts index 93e47465a..463163304 100644 --- a/apps/indexd/components/Data/Accounts/types.ts +++ b/apps/indexd/components/Data/Accounts/types.ts @@ -19,7 +19,6 @@ export type AccountData = { id: string publicKey: string description: string - serviceAccount: boolean maxPinnedData: number pinnedData: number lastUsed: string diff --git a/libs/indexd-types/src/admin/index.ts b/libs/indexd-types/src/admin/index.ts index 9cab905ad..f6c6edb5b 100644 --- a/libs/indexd-types/src/admin/index.ts +++ b/libs/indexd-types/src/admin/index.ts @@ -76,7 +76,6 @@ export const adminAccountsRoute = '/accounts' export type AdminAccountsParams = { offset?: number limit?: number - serviceaccount?: boolean connectkey?: string } export type AdminAccountsPayload = void diff --git a/libs/indexd-types/src/admin/types.ts b/libs/indexd-types/src/admin/types.ts index 50df72b36..ec8eedd52 100644 --- a/libs/indexd-types/src/admin/types.ts +++ b/libs/indexd-types/src/admin/types.ts @@ -125,7 +125,6 @@ export type Account = { description: string pinnedData: number maxPinnedData: number - serviceAccount: boolean lastUsed: string logoURL: string serviceURL: string