import type { IdentifierT } from '../types/identifiers'; import type { Knex } from 'knex'; import type { NewOrExistingAliasT } from '../types/aliases'; export type Transaction = Knex.Transaction; export interface FormRelationshipAttributesT { id: number; attributeType: number; value: { textValue: string | null; }; } export interface FormRelationshipT { attributeSetId: number; id: number; typeId: number; sourceBbid: string; targetBbid: string; } export interface FormLanguageT { id: number; } export interface FormPublisherT { bbid: string; } export interface FormReleaseEventT { date: string; areaId?: any; } export type SetItemT = NewOrExistingAliasT | IdentifierT | FormLanguageT | FormRelationshipT | FormPublisherT | FormReleaseEventT; export interface AuthorCreditNameT { authorBBID: string; name: string; joinPhrase: string; } export interface ExternalServiceTokenT { access_token: string; editor_id: number; refresh_token: string; token_expires: string; scopes: Array; service: string; }