decord/alpha/source/modules/summaries/Summary.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

19 lines
920 B
TypeScript

// Module ID: 11099
// Function ID: 11100
// Name: Summary
// Dependencies: [2]
// Exports: createSummaryFromServer
// Module 11099 (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;
};