import {EntryScope} from '..';

export const TRANSFER_UNKNOWN_ENTRY_ID = 'UNKNOWN_ENTRY';

export enum TransferErrorCode {
    TransferInvalidVersion = 'ERR.UI_API.TRANSFER_INVALID_VERSION',
    TransferMissingLinkedEndtry = 'ERR.UI_API.TRANSFER_MISSING_LINKED_ENTRY',
    TransferInvalidEntryData = 'ERR.UI_API.TRANSFER_INVALID_ENTRY_DATA',
    TransferInvalidEntryScope = 'ERR.UI_API.TRANSFER_INVALID_ENTRY_SCOPE',
    TransferInvalidToken = 'ERR.UI_API.TRANSFER_INVALID_TOKEN',
}

export const TransferCapabilities = {
    dependencies: {
        [EntryScope.Connection]: [],
        [EntryScope.Dataset]: [EntryScope.Connection],
        [EntryScope.Widget]: [EntryScope.Dataset, EntryScope.Connection],
        [EntryScope.Dash]: [EntryScope.Widget, EntryScope.Dataset],
    },
};
