@sailfish-ai/recorder 1.7.12 → 1.7.14
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/graphql.js +27 -0
- package/dist/index.js +10 -1
- package/dist/modal.js +629 -0
- package/dist/sailfish-recorder.cjs.js +1 -1
- package/dist/sailfish-recorder.cjs.js.br +0 -0
- package/dist/sailfish-recorder.cjs.js.gz +0 -0
- package/dist/sailfish-recorder.es.js +1 -1
- package/dist/sailfish-recorder.es.js.br +0 -0
- package/dist/sailfish-recorder.es.js.gz +0 -0
- package/dist/sailfish-recorder.umd.js +1 -1
- package/dist/sailfish-recorder.umd.js.br +0 -0
- package/dist/sailfish-recorder.umd.js.gz +0 -0
- package/dist/types/graphql.d.ts +2 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/modal.d.ts +7 -0
- package/dist/types/types.d.ts +5 -0
- package/package.json +1 -1
package/dist/graphql.js
CHANGED
|
@@ -60,3 +60,30 @@ export function sendDomainsToNotPropagateHeaderTo(apiKey, domains, backendApi) {
|
|
|
60
60
|
domainsToNotPassHeaderTo(apiKey: $apiKey, domains: $domains)
|
|
61
61
|
}`, { apiKey, domains, backendApi });
|
|
62
62
|
}
|
|
63
|
+
export function createTriageFromRecorder(apiKey, backendApi, recordingSessionId, timestampStart, timestampEnd, description) {
|
|
64
|
+
return sendGraphQLRequest("CreateTriageFromRecorder", `mutation CreateTriageFromRecorder(
|
|
65
|
+
$apiKey: String!,
|
|
66
|
+
$recordingSessionId: String!,
|
|
67
|
+
$timestampStart: String!,
|
|
68
|
+
$timestampEnd: String!,
|
|
69
|
+
$description: String
|
|
70
|
+
) {
|
|
71
|
+
createTriageFromRecorder(
|
|
72
|
+
apiKey: $apiKey,
|
|
73
|
+
recordingSessionId: $recordingSessionId,
|
|
74
|
+
timestampStart: $timestampStart,
|
|
75
|
+
timestampEnd: $timestampEnd,
|
|
76
|
+
description: $description
|
|
77
|
+
) {
|
|
78
|
+
id
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
`, {
|
|
82
|
+
apiKey,
|
|
83
|
+
recordingSessionId,
|
|
84
|
+
timestampStart,
|
|
85
|
+
timestampEnd,
|
|
86
|
+
description,
|
|
87
|
+
backendApi,
|
|
88
|
+
});
|
|
89
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { NetworkRequestEventId, xSf3RidHeader } from "./constants";
|
|
|
5
5
|
import { gatherAndCacheDeviceInfo } from "./deviceInfo";
|
|
6
6
|
import { fetchCaptureSettings, sendDomainsToNotPropagateHeaderTo, startRecordingSession, } from "./graphql";
|
|
7
7
|
import { sendMapUuidIfAvailable } from "./mapUuid";
|
|
8
|
+
import { setupIssueReporting } from "./modal";
|
|
8
9
|
import { getUrlAndStoredUuids, initializeConsolePlugin, initializeDomContentEvents, initializeRecording, } from "./recording";
|
|
9
10
|
import { sendEvent, sendMessage } from "./websocket";
|
|
10
11
|
// Default list of domains to ignore
|
|
@@ -731,10 +732,18 @@ export const initRecorder = async (options) => {
|
|
|
731
732
|
return;
|
|
732
733
|
}
|
|
733
734
|
// Directly invoke the startRecording function from within the same package
|
|
734
|
-
return startRecording(options)
|
|
735
|
+
return startRecording(options).then(() => {
|
|
736
|
+
setupIssueReporting({
|
|
737
|
+
apiKey: options.apiKey,
|
|
738
|
+
backendApi: options.backendApi ?? "https://api-service.sailfishqa.com",
|
|
739
|
+
getSessionId: () => getOrSetSessionId(),
|
|
740
|
+
enableShortcuts: options.enableShortcuts ?? false,
|
|
741
|
+
});
|
|
742
|
+
});
|
|
735
743
|
};
|
|
736
744
|
// Re-export from other modules
|
|
737
745
|
export * from "./graphql";
|
|
746
|
+
export { openReportIssueModal } from "./modal";
|
|
738
747
|
export * from "./recording";
|
|
739
748
|
export * from "./sendSailfishMessages";
|
|
740
749
|
export * from "./types";
|