@absolutejs/voice 0.0.22-beta.466 → 0.0.22-beta.467
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.js +7 -1
- package/dist/operationsRecord.d.ts +4 -1
- package/dist/testing/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20366,11 +20366,17 @@ var createVoiceOperationsRecordRoutes = (options) => {
|
|
|
20366
20366
|
const routes = new Elysia28({
|
|
20367
20367
|
name: options.name ?? "absolutejs-voice-operations-record"
|
|
20368
20368
|
});
|
|
20369
|
-
const
|
|
20369
|
+
const resolveMediaPipeline = async (sessionId) => {
|
|
20370
|
+
if (options.mediaPipeline === undefined)
|
|
20371
|
+
return;
|
|
20372
|
+
return typeof options.mediaPipeline === "function" ? await options.mediaPipeline({ sessionId }) : options.mediaPipeline;
|
|
20373
|
+
};
|
|
20374
|
+
const buildRecord = async (sessionId) => buildVoiceOperationsRecord({
|
|
20370
20375
|
audit: options.audit,
|
|
20371
20376
|
evaluation: options.evaluation,
|
|
20372
20377
|
events: options.events,
|
|
20373
20378
|
integrationEvents: options.integrationEvents,
|
|
20379
|
+
mediaPipeline: await resolveMediaPipeline(sessionId),
|
|
20374
20380
|
redact: options.redact,
|
|
20375
20381
|
reviews: options.reviews,
|
|
20376
20382
|
sessionId,
|
|
@@ -313,11 +313,14 @@ export type VoiceOperationsRecordOptions = {
|
|
|
313
313
|
store?: VoiceTraceEventStore;
|
|
314
314
|
tasks?: VoiceOpsTaskStore;
|
|
315
315
|
};
|
|
316
|
-
export type VoiceOperationsRecordRoutesOptions = Omit<VoiceOperationsRecordOptions, "sessionId"> & {
|
|
316
|
+
export type VoiceOperationsRecordRoutesOptions = Omit<VoiceOperationsRecordOptions, "sessionId" | "mediaPipeline"> & {
|
|
317
317
|
headers?: HeadersInit;
|
|
318
318
|
htmlPath?: false | string;
|
|
319
319
|
incidentHtmlPath?: false | string;
|
|
320
320
|
incidentPath?: false | string;
|
|
321
|
+
mediaPipeline?: VoiceMediaPipelineReport | ((input: {
|
|
322
|
+
sessionId: string;
|
|
323
|
+
}) => Promise<VoiceMediaPipelineReport | undefined> | VoiceMediaPipelineReport | undefined);
|
|
321
324
|
name?: string;
|
|
322
325
|
path?: string;
|
|
323
326
|
render?: (record: VoiceOperationsRecord) => string | Promise<string>;
|
package/dist/testing/index.js
CHANGED
|
@@ -11060,11 +11060,17 @@ var createVoiceOperationsRecordRoutes = (options) => {
|
|
|
11060
11060
|
const routes = new Elysia4({
|
|
11061
11061
|
name: options.name ?? "absolutejs-voice-operations-record"
|
|
11062
11062
|
});
|
|
11063
|
-
const
|
|
11063
|
+
const resolveMediaPipeline = async (sessionId) => {
|
|
11064
|
+
if (options.mediaPipeline === undefined)
|
|
11065
|
+
return;
|
|
11066
|
+
return typeof options.mediaPipeline === "function" ? await options.mediaPipeline({ sessionId }) : options.mediaPipeline;
|
|
11067
|
+
};
|
|
11068
|
+
const buildRecord = async (sessionId) => buildVoiceOperationsRecord({
|
|
11064
11069
|
audit: options.audit,
|
|
11065
11070
|
evaluation: options.evaluation,
|
|
11066
11071
|
events: options.events,
|
|
11067
11072
|
integrationEvents: options.integrationEvents,
|
|
11073
|
+
mediaPipeline: await resolveMediaPipeline(sessionId),
|
|
11068
11074
|
redact: options.redact,
|
|
11069
11075
|
reviews: options.reviews,
|
|
11070
11076
|
sessionId,
|