@speakai/shared 1.15.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/enums/embed.d.ts +2 -1
- package/dist/enums/embed.d.ts.map +1 -1
- package/dist/enums/embed.js +1 -0
- package/dist/enums/embed.js.map +1 -1
- package/dist/interfaces/dashboard.d.ts +198 -2
- package/dist/interfaces/dashboard.d.ts.map +1 -1
- package/dist/interfaces/dashboard.js +5 -1
- package/dist/interfaces/dashboard.js.map +1 -1
- package/dist/interfaces/embed.d.ts +5 -0
- package/dist/interfaces/embed.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/enums/embed.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../src/enums/embed.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,YAAY,gBAAgB;IAC5B,UAAU,eAAe;
|
|
1
|
+
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../src/enums/embed.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,YAAY,gBAAgB;IAC5B,UAAU,eAAe;IACzB,SAAS,cAAc;CACxB;AAED,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,cAAc,kBAAkB;IAChC,iBAAiB,qBAAqB;CACvC"}
|
package/dist/enums/embed.js
CHANGED
|
@@ -2,6 +2,7 @@ export var EmbedType;
|
|
|
2
2
|
(function (EmbedType) {
|
|
3
3
|
EmbedType["MEDIA_PLAYER"] = "mediaPlayer";
|
|
4
4
|
EmbedType["REPOSITORY"] = "repository";
|
|
5
|
+
EmbedType["DASHBOARD"] = "dashboard";
|
|
5
6
|
})(EmbedType || (EmbedType = {}));
|
|
6
7
|
export var ImageSelectionType;
|
|
7
8
|
(function (ImageSelectionType) {
|
package/dist/enums/embed.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.js","sourceRoot":"","sources":["../../src/enums/embed.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"embed.js","sourceRoot":"","sources":["../../src/enums/embed.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,yCAA4B,CAAA;IAC5B,sCAAyB,CAAA;IACzB,oCAAuB,CAAA;AACzB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAED,MAAM,CAAN,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,sDAAgC,CAAA;IAChC,4DAAsC,CAAA;AACxC,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B"}
|
|
@@ -5,8 +5,16 @@
|
|
|
5
5
|
* (builder + queries) and speak-server (@speak-dashboards). The server's Mongoose
|
|
6
6
|
* document type may extend these; the client imports them directly.
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Built-in dashboard widget types — the canonical render contract shared by the
|
|
10
|
+
* builder (speak-client) and the public view (speak-media-library).
|
|
11
|
+
*
|
|
12
|
+
* The first eight are the server-recognised core types served by the public
|
|
13
|
+
* widget-data endpoint; the last four (`people`, `comparison`, `sentiment-trend`,
|
|
14
|
+
* `notes`) are client-rendered bodies the builder enumerates. Persisting these
|
|
15
|
+
* extra literals is safe because `IDashboardWidget.type` is `… | string`.
|
|
16
|
+
*/
|
|
17
|
+
export type DashboardWidgetType = 'stat-cards' | 'sentiment' | 'media-list' | 'field-distribution' | 'upload-timeline' | 'themes' | 'team-activity' | 'kpi-trend' | 'people' | 'comparison' | 'sentiment-trend' | 'notes';
|
|
10
18
|
/** Grid placement for a widget (react-grid-layout geometry; legacy order/colSpan optional). */
|
|
11
19
|
export interface IDashboardWidgetLayout {
|
|
12
20
|
x?: number;
|
|
@@ -79,4 +87,192 @@ export interface ICreateDashboardPayload {
|
|
|
79
87
|
}
|
|
80
88
|
/** Update payload (partial). */
|
|
81
89
|
export type IUpdateDashboardPayload = Partial<ICreateDashboardPayload>;
|
|
90
|
+
/** react-grid-layout column count the dashboard grid is laid out on. */
|
|
91
|
+
export declare const DASHBOARD_GRID_COLS = 12;
|
|
92
|
+
/**
|
|
93
|
+
* Per-widget-type presentation metadata: default title, default grid geometry,
|
|
94
|
+
* minimum geometry, and which config affordances apply. The single source of
|
|
95
|
+
* truth for the builder's "Add widget" flow and template instantiation, so the
|
|
96
|
+
* two never drift. `titleDefault` is an English fallback; call sites localise it.
|
|
97
|
+
*/
|
|
98
|
+
export interface WidgetMeta {
|
|
99
|
+
/** Default width in grid columns. */
|
|
100
|
+
w: number;
|
|
101
|
+
/** Default height in grid rows. */
|
|
102
|
+
h: number;
|
|
103
|
+
/** Minimum width in grid columns. */
|
|
104
|
+
minW: number;
|
|
105
|
+
/** Minimum height in grid rows. */
|
|
106
|
+
minH: number;
|
|
107
|
+
/** English fallback title. */
|
|
108
|
+
titleDefault: string;
|
|
109
|
+
/** Whether a chart-type toggle (bar/line/pie) applies in widget config. */
|
|
110
|
+
supportsChartType: boolean;
|
|
111
|
+
/** Whether a field picker applies in widget config. */
|
|
112
|
+
supportsFieldId: boolean;
|
|
113
|
+
}
|
|
114
|
+
/** One theme cluster: a keyword/phrase and how many times it occurred. */
|
|
115
|
+
export interface PublicThemeCluster {
|
|
116
|
+
name: string;
|
|
117
|
+
nTimes: number;
|
|
118
|
+
}
|
|
119
|
+
/** One field-distribution row: a value and its occurrence count. */
|
|
120
|
+
export interface PublicFieldInsight {
|
|
121
|
+
text: string;
|
|
122
|
+
nTimes: number;
|
|
123
|
+
}
|
|
124
|
+
/** Sentiment buckets on the [-1, 1] domain, keyed by qualitative label. */
|
|
125
|
+
export type PublicSentimentLabel = 'veryPositive' | 'positive' | 'slightlyPositive' | 'neutral' | 'slightlyNegative' | 'negative' | 'veryNegative';
|
|
126
|
+
/** One overall-sentiment bucket: its share of scored media and the media count. */
|
|
127
|
+
export interface PublicSentimentOverallEntry {
|
|
128
|
+
label: PublicSentimentLabel;
|
|
129
|
+
percentage: number;
|
|
130
|
+
mediaCount: number;
|
|
131
|
+
}
|
|
132
|
+
/** Aggregated sentiment rate: per-date compound series + overall distribution. */
|
|
133
|
+
export interface PublicSentimentRate {
|
|
134
|
+
timeline: string[];
|
|
135
|
+
compound: number[];
|
|
136
|
+
overall: Record<PublicSentimentLabel, PublicSentimentOverallEntry>;
|
|
137
|
+
}
|
|
138
|
+
/** One representative sentiment-scored sentence. */
|
|
139
|
+
export interface PublicSentimentSentence {
|
|
140
|
+
text: string;
|
|
141
|
+
score: number;
|
|
142
|
+
folderId?: string;
|
|
143
|
+
mediaId?: string;
|
|
144
|
+
mediaType?: string;
|
|
145
|
+
name?: string;
|
|
146
|
+
instances?: unknown[];
|
|
147
|
+
}
|
|
148
|
+
/** The sentiment chart body: aggregated rate plus representative sentences. */
|
|
149
|
+
export interface PublicSentimentChart {
|
|
150
|
+
rate: PublicSentimentRate;
|
|
151
|
+
sentences: PublicSentimentSentence[];
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* `sentiment` + `sentiment-trend` widget data. `compareSentiment` is omitted on
|
|
155
|
+
* the public path (the server returns it as `undefined`), so it is optional.
|
|
156
|
+
*/
|
|
157
|
+
export interface PublicSentimentData {
|
|
158
|
+
sentiment: PublicSentimentChart;
|
|
159
|
+
compareSentiment?: PublicSentimentChart;
|
|
160
|
+
}
|
|
161
|
+
/** Alias for the `sentiment-trend` widget — same body, different render. */
|
|
162
|
+
export type PublicSentimentTrendData = PublicSentimentData;
|
|
163
|
+
/** `field-distribution` widget data — value-frequency rows for one field. */
|
|
164
|
+
export interface PublicFieldDistributionData {
|
|
165
|
+
insights: PublicFieldInsight[];
|
|
166
|
+
compareInsights: PublicFieldInsight[];
|
|
167
|
+
}
|
|
168
|
+
/** `themes` widget data — dominant theme clusters and an emptiness flag. */
|
|
169
|
+
export interface PublicThemesData {
|
|
170
|
+
clusters: PublicThemeCluster[];
|
|
171
|
+
hasKeywordsData: boolean;
|
|
172
|
+
}
|
|
173
|
+
/** Per-media-type upload-timeline series. `text` carries no duration/speakers. */
|
|
174
|
+
export interface PublicUploadTimelineSeries {
|
|
175
|
+
dates: string[];
|
|
176
|
+
counts: number[];
|
|
177
|
+
words: number[];
|
|
178
|
+
durations?: number[];
|
|
179
|
+
speakerCount?: number;
|
|
180
|
+
}
|
|
181
|
+
/** `upload-timeline` widget data — per-type date/count series plus rollup totals. */
|
|
182
|
+
export interface PublicUploadTimelineData {
|
|
183
|
+
audio: PublicUploadTimelineSeries;
|
|
184
|
+
video: PublicUploadTimelineSeries;
|
|
185
|
+
text: PublicUploadTimelineSeries;
|
|
186
|
+
overall: {
|
|
187
|
+
counts: number;
|
|
188
|
+
durations: number;
|
|
189
|
+
words: number;
|
|
190
|
+
speakerCount: number;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
/** Sentiment distribution carried on an insight snapshot. */
|
|
194
|
+
export interface PublicInsightSentiment {
|
|
195
|
+
positive: number;
|
|
196
|
+
neutral: number;
|
|
197
|
+
negative: number;
|
|
198
|
+
mixed?: number;
|
|
199
|
+
}
|
|
200
|
+
/** One theme on an insight snapshot. */
|
|
201
|
+
export interface PublicInsightTheme {
|
|
202
|
+
name: string;
|
|
203
|
+
keywordCount: number;
|
|
204
|
+
rank?: number;
|
|
205
|
+
}
|
|
206
|
+
/** Current-window totals on an insight snapshot (the `current` payload). */
|
|
207
|
+
export interface PublicInsightCurrent {
|
|
208
|
+
totalFiles: number;
|
|
209
|
+
totalDurationSeconds: number;
|
|
210
|
+
totalWords: number;
|
|
211
|
+
uniqueSpeakers: number;
|
|
212
|
+
sentiment: PublicInsightSentiment;
|
|
213
|
+
themes?: PublicInsightTheme[];
|
|
214
|
+
}
|
|
215
|
+
/** Period-over-period deltas on an insight snapshot. Null fields = no prior. */
|
|
216
|
+
export interface PublicInsightDelta {
|
|
217
|
+
totalFilesDelta: number | null;
|
|
218
|
+
totalDurationSecondsDelta: number | null;
|
|
219
|
+
totalWordsDelta: number | null;
|
|
220
|
+
uniqueSpeakersDelta: number | null;
|
|
221
|
+
/** UTC ISO — start of current window. */
|
|
222
|
+
periodStart: string;
|
|
223
|
+
/** UTC ISO — end of current window. */
|
|
224
|
+
periodEnd: string;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* `kpi-trend` + `comparison` widget data — current totals plus an optional
|
|
228
|
+
* period-over-period delta. Matches the server insight-snapshot response.
|
|
229
|
+
*/
|
|
230
|
+
export interface PublicInsightSnapshotData {
|
|
231
|
+
current: PublicInsightCurrent;
|
|
232
|
+
delta: PublicInsightDelta | null;
|
|
233
|
+
/** UTC ISO date of the current snapshot. */
|
|
234
|
+
snapshotDate: string;
|
|
235
|
+
}
|
|
236
|
+
/** `stat-cards` widget data — folder-scopable totals + average sentiment only. */
|
|
237
|
+
export interface PublicStatCardsData {
|
|
238
|
+
totalMedia: number;
|
|
239
|
+
fileSize: number;
|
|
240
|
+
totalWords: number;
|
|
241
|
+
uniqueSpeakers: number;
|
|
242
|
+
totalDurationSeconds: number;
|
|
243
|
+
avgSentiment: number | null;
|
|
244
|
+
}
|
|
245
|
+
/** One row on the public `media-list` widget. The created date is pre-formatted. */
|
|
246
|
+
export interface PublicMediaListRow {
|
|
247
|
+
id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
type: string;
|
|
250
|
+
/** Pre-formatted created date (e.g. "Jun 18, 2026"). */
|
|
251
|
+
created: string;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* `media-list` widget data — the most recent media inside the dashboard's shared
|
|
255
|
+
* folderScope. Rows are confined to COMPLETE/PROCESSED media in folderScope and
|
|
256
|
+
* carry no identity beyond the media id used to open the public insight view.
|
|
257
|
+
*/
|
|
258
|
+
export interface PublicMediaListData {
|
|
259
|
+
rows: PublicMediaListRow[];
|
|
260
|
+
total: number;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Owner-settable lead-capture config for a shared surface (dashboard or embed).
|
|
264
|
+
* Gates an email prompt on the public view. All flags default OFF, so a surface
|
|
265
|
+
* without this config never prompts a viewer.
|
|
266
|
+
*
|
|
267
|
+
* - `isEnabled` — master switch; when false no prompt is shown.
|
|
268
|
+
* - `collectName` — also ask for the viewer's name.
|
|
269
|
+
* - `requireConsent` — require an explicit consent checkbox before submit.
|
|
270
|
+
* - `consentText` — copy shown beside the consent checkbox.
|
|
271
|
+
*/
|
|
272
|
+
export interface LeadCapture {
|
|
273
|
+
isEnabled: boolean;
|
|
274
|
+
collectName: boolean;
|
|
275
|
+
requireConsent: boolean;
|
|
276
|
+
consentText?: string;
|
|
277
|
+
}
|
|
82
278
|
//# sourceMappingURL=dashboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/interfaces/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/interfaces/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAC3B,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,oBAAoB,GACpB,iBAAiB,GACjB,QAAQ,GACR,eAAe,GACf,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,iBAAiB,GACjB,OAAO,CAAC;AAEZ,+FAA+F;AAC/F,MAAM,WAAW,sBAAsB;IACrC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACx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5
5
|
* (builder + queries) and speak-server (@speak-dashboards). The server's Mongoose
|
|
6
6
|
* document type may extend these; the client imports them directly.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
/* ===================================================================
|
|
9
|
+
* Widget metadata + sizing (builder layout contract)
|
|
10
|
+
* =================================================================== */
|
|
11
|
+
/** react-grid-layout column count the dashboard grid is laid out on. */
|
|
12
|
+
export const DASHBOARD_GRID_COLS = 12;
|
|
9
13
|
//# sourceMappingURL=dashboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/interfaces/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/interfaces/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwGH;;yEAEyE;AAEzE,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MediaType, EmbedType } from '../enums/index.js';
|
|
2
|
+
import { LeadCapture } from './dashboard.js';
|
|
2
3
|
export interface IEmbedSettings {
|
|
3
4
|
backgroundImg: string;
|
|
4
5
|
logo: string;
|
|
@@ -37,6 +38,10 @@ export interface IEmbed {
|
|
|
37
38
|
isDeleted: boolean;
|
|
38
39
|
privacyMode?: string;
|
|
39
40
|
meta: IEmbedSettings;
|
|
41
|
+
/** Set when `embedType === EmbedType.DASHBOARD` — the shared dashboard this embed renders. */
|
|
42
|
+
dashboardId?: string;
|
|
43
|
+
/** Owner-settable lead-capture config for the shared surface. Defaults OFF. */
|
|
44
|
+
leadCapture?: LeadCapture;
|
|
40
45
|
createdAt: Date;
|
|
41
46
|
updatedAt: Date;
|
|
42
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../src/interfaces/embed.ts"],"names":[],"mappings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