decord/source/modules/summaries/Summary.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

19 lines
910 B
TypeScript

// Module ID: 11353
// Function ID: 11354
// Name: SummarySources
// Dependencies: [2]
// Exports: createSummaryFromServer
// Module 11353 (SummarySources)
import set from "set" /* 2 */;
const result = set.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[4], end_id: obj[5], count: obj[6] } = summary);
({ source: obj[8], type: obj[9] } = summary);
return obj;
};