export function toItemDescriptor(item) {
    const source = "descriptor" in item ? item.descriptor : item;
    const descriptor = {
        id: source.id,
        language: source.language,
        version: source.version,
    };
    if (source.database && source.database !== "master") {
        descriptor.database = source.database;
    }
    return descriptor;
}
//# sourceMappingURL=pageModel.js.map