@nivaro/sdk 0.1.6 → 0.1.8
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/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -502,7 +502,7 @@ declare function sessionRecordingEnabled(): Command<{
|
|
|
502
502
|
* developer's laptop. The server falls back to the request's referer when a
|
|
503
503
|
* caller omits it.
|
|
504
504
|
*/
|
|
505
|
-
declare function startSessionRecording(app?: string, origin?: string): Command<{
|
|
505
|
+
declare function startSessionRecording(app?: string, origin?: string, clip?: boolean): Command<{
|
|
506
506
|
data: {
|
|
507
507
|
id: UUID;
|
|
508
508
|
};
|
|
@@ -710,7 +710,7 @@ interface ReportWidgetConfig {
|
|
|
710
710
|
filter_field?: string;
|
|
711
711
|
} | null;
|
|
712
712
|
}
|
|
713
|
-
type ReportWidgetType = 'kpi' | 'kpi_group' | 'bar' | 'line' | 'donut' | 'table' | 'divider' | 'query' | 'calc' | 'movers' | 'heatmap' | 'waterfall' | 'narrative';
|
|
713
|
+
type ReportWidgetType = 'kpi' | 'kpi_group' | 'bar' | 'line' | 'donut' | 'table' | 'divider' | 'query' | 'queue' | 'calc' | 'movers' | 'heatmap' | 'waterfall' | 'narrative';
|
|
714
714
|
interface ReportWidget {
|
|
715
715
|
id: UUID;
|
|
716
716
|
type: ReportWidgetType;
|
package/dist/index.js
CHANGED
|
@@ -168,11 +168,12 @@ function readPipelineReplay(templateId, days) {
|
|
|
168
168
|
function sessionRecordingEnabled() {
|
|
169
169
|
return cmd("GET", "/session-recordings/enabled");
|
|
170
170
|
}
|
|
171
|
-
function startSessionRecording(app, origin) {
|
|
171
|
+
function startSessionRecording(app, origin, clip) {
|
|
172
172
|
const body = {};
|
|
173
173
|
if (app) body.app = app;
|
|
174
174
|
const resolved = origin ?? (typeof window !== "undefined" ? window.location.origin : void 0);
|
|
175
175
|
if (resolved) body.origin = resolved;
|
|
176
|
+
if (clip) body.clip = true;
|
|
176
177
|
return cmd("POST", "/session-recordings/start", void 0, body);
|
|
177
178
|
}
|
|
178
179
|
function appendSessionRecordingEvents(id, seq, events) {
|