UNPKG

@gracious.tech/fetch-client

Version:

Interact with a fetch(bible) collection in an API-like way

26 lines (25 loc) 871 B
import type { MetaCopyright, DistManifest, DistTranslation, MetaRestrictions } from './shared_types'; export interface UsageConfig { commercial: boolean; attributionless: boolean; limitless: boolean; derivatives: boolean | 'same-license'; } export type UsageOptions = Partial<UsageConfig>; export interface RuntimeLicense { id: string | null; name: string; restrictions: MetaRestrictions; url: string; } export type RuntimeCopyright = Omit<MetaCopyright, 'licenses'> & { licenses: RuntimeLicense[]; }; export type RuntimeTranslation = Omit<DistTranslation, 'copyright'> & { copyright: RuntimeCopyright; books_ot_list: string[]; books_nt_list: string[]; }; export type RuntimeManifest = Omit<DistManifest, 'translations' | 'books_ordered' | 'book_names_english'> & { translations: Record<string, RuntimeTranslation>; };