decord/alpha/source/modules/summaries/Summary.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

19 lines
920 B
TypeScript

// Module ID: 11697
// Function ID: 11698
// Name: Summary
// Dependencies: [2]
// Exports: createSummaryFromServer
// Module 11697 (Summary)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/summaries/Summary.tsx");
export const SummarySources = { SOURCE_0: 0, [0]: "SOURCE_0", SOURCE_1: 1, [1]: "SOURCE_1" };
export const SummaryType = { UNSET: 0, [0]: "UNSET", SOURCE_1: 1, [1]: "SOURCE_1", SOURCE_2: 2, [2]: "SOURCE_2" };
export const createSummaryFromServer = function createSummaryFromServer(summary, channelId) {
const obj = { id: summary.id, topic: summary.topic, summShort: summary.summ_short, people: Array.from(new Set(summary.people)), startId: null, endId: null, count: null, channelId, source: null, type: null };
({ start_id: obj.startId, end_id: obj.endId, count: obj.count } = summary);
({ source: obj.source, type: obj.type } = summary);
return obj;
};