Синк VPS, баланса, платежей и тарифов через Bearer-токен из личного кабинета. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { isSyncApiType, isUserApiType } from '@cfdm/shared/contracts/provider'
|
||||
import { isSyncApiType, isTokenApiType, isUserApiType } from '@cfdm/shared/contracts/provider'
|
||||
|
||||
import type { ProviderAccount, Provider } from '@/types/entities'
|
||||
|
||||
export { isSyncApiType, isUserApiType }
|
||||
export { isSyncApiType, isTokenApiType, isUserApiType }
|
||||
|
||||
export function providerByIdMap(providers: Provider[]): Map<string, Provider> {
|
||||
return new Map(providers.map((p) => [p.id, p]))
|
||||
@@ -76,6 +76,13 @@ export function accountCredentialLabels(apiType?: string | null): {
|
||||
loginPlaceholder: '[email protected]',
|
||||
}
|
||||
}
|
||||
if (String(apiType).toLowerCase() === 'ruvds') {
|
||||
return {
|
||||
loginLabel: '',
|
||||
passwordLabel: 'API Token',
|
||||
loginPlaceholder: '',
|
||||
}
|
||||
}
|
||||
if (isUserApiType(apiType)) {
|
||||
return {
|
||||
loginLabel: '',
|
||||
|
||||
Reference in New Issue
Block a user