@absolutejs/voice 0.0.22-beta.152 → 0.0.22-beta.154
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/README.md +39 -0
- package/dist/angular/index.d.ts +1 -0
- package/dist/angular/index.js +471 -137
- package/dist/angular/voice-delivery-runtime.component.d.ts +3 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +4 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/client/deliveryRuntime.d.ts +15 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +3 -0
- package/dist/client/index.d.ts +6 -2
- package/dist/client/index.js +454 -114
- package/dist/client/opsActionCenter.d.ts +50 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/deliveryRuntime.d.ts +13 -1
- package/dist/index.js +44 -1
- package/dist/react/VoiceDeliveryRuntime.d.ts +2 -1
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +720 -286
- package/dist/react/useVoiceDeliveryRuntime.d.ts +5 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +2 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +464 -115
- package/dist/vue/VoiceDeliveryRuntime.d.ts +9 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.js +748 -292
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +4 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/package.json +1 -1
|
@@ -10,5 +10,8 @@ export declare class VoiceDeliveryRuntimeComponent implements OnDestroy, OnInit
|
|
|
10
10
|
model: import("@angular/core").WritableSignal<VoiceDeliveryRuntimeViewModel>;
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
ngOnDestroy(): void;
|
|
13
|
+
deadLettered(): number;
|
|
14
|
+
tick(): void;
|
|
15
|
+
requeueDeadLetters(): void;
|
|
13
16
|
private options;
|
|
14
17
|
}
|
|
@@ -4,9 +4,13 @@ export declare class VoiceDeliveryRuntimeService {
|
|
|
4
4
|
connect(path?: string, options?: VoiceDeliveryRuntimeClientOptions): {
|
|
5
5
|
close: () => void;
|
|
6
6
|
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
actionError: import("@angular/core").Signal<string | null>;
|
|
8
|
+
actionStatus: import("@angular/core").Signal<"completed" | "failed" | "idle" | "running">;
|
|
7
9
|
isLoading: import("@angular/core").Signal<boolean>;
|
|
10
|
+
requeueDeadLetters: () => Promise<import("../client").VoiceDeliveryRuntimeActionResult | undefined>;
|
|
8
11
|
refresh: () => Promise<VoiceDeliveryRuntimeReport | undefined>;
|
|
9
12
|
report: import("@angular/core").Signal<VoiceDeliveryRuntimeReport | undefined>;
|
|
13
|
+
tick: () => Promise<import("../client").VoiceDeliveryRuntimeActionResult | undefined>;
|
|
10
14
|
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
15
|
};
|
|
12
16
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VoiceOpsActionCenterClientOptions, type VoiceOpsActionDescriptor, type VoiceOpsActionRunResult } from '../client/opsActionCenter';
|
|
2
|
+
export declare class VoiceOpsActionCenterService {
|
|
3
|
+
connect(options?: VoiceOpsActionCenterClientOptions): {
|
|
4
|
+
actions: import("@angular/core").Signal<VoiceOpsActionDescriptor[]>;
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isRunning: import("@angular/core").Signal<boolean>;
|
|
8
|
+
lastResult: import("@angular/core").Signal<VoiceOpsActionRunResult | undefined>;
|
|
9
|
+
run: (actionId: string) => Promise<VoiceOpsActionRunResult | undefined>;
|
|
10
|
+
runningActionId: import("@angular/core").Signal<string | undefined>;
|
|
11
|
+
setActions: (actions: VoiceOpsActionDescriptor[]) => void;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -2,18 +2,33 @@ import type { VoiceDeliveryRuntimeReport } from '../deliveryRuntime';
|
|
|
2
2
|
export type VoiceDeliveryRuntimeClientOptions = {
|
|
3
3
|
fetch?: typeof fetch;
|
|
4
4
|
intervalMs?: number;
|
|
5
|
+
requeueDeadLettersPath?: string;
|
|
6
|
+
tickPath?: string;
|
|
5
7
|
};
|
|
6
8
|
export type VoiceDeliveryRuntimeSnapshot = {
|
|
9
|
+
actionError: string | null;
|
|
10
|
+
actionStatus: 'idle' | 'running' | 'completed' | 'failed';
|
|
7
11
|
error: string | null;
|
|
8
12
|
isLoading: boolean;
|
|
13
|
+
lastAction?: VoiceDeliveryRuntimeActionResult;
|
|
9
14
|
report?: VoiceDeliveryRuntimeReport;
|
|
10
15
|
updatedAt?: number;
|
|
11
16
|
};
|
|
17
|
+
export type VoiceDeliveryRuntimeAction = 'tick' | 'requeue-dead-letters';
|
|
18
|
+
export type VoiceDeliveryRuntimeActionResult = {
|
|
19
|
+
action: VoiceDeliveryRuntimeAction;
|
|
20
|
+
result?: unknown;
|
|
21
|
+
summary?: VoiceDeliveryRuntimeReport['summary'];
|
|
22
|
+
updatedAt: number;
|
|
23
|
+
};
|
|
12
24
|
export declare const fetchVoiceDeliveryRuntime: (path?: string, options?: Pick<VoiceDeliveryRuntimeClientOptions, "fetch">) => Promise<VoiceDeliveryRuntimeReport>;
|
|
25
|
+
export declare const runVoiceDeliveryRuntimeAction: (action: VoiceDeliveryRuntimeAction, path?: string, options?: VoiceDeliveryRuntimeClientOptions) => Promise<VoiceDeliveryRuntimeActionResult>;
|
|
13
26
|
export declare const createVoiceDeliveryRuntimeStore: (path?: string, options?: VoiceDeliveryRuntimeClientOptions) => {
|
|
14
27
|
close: () => void;
|
|
15
28
|
getServerSnapshot: () => VoiceDeliveryRuntimeSnapshot;
|
|
16
29
|
getSnapshot: () => VoiceDeliveryRuntimeSnapshot;
|
|
30
|
+
requeueDeadLetters: () => Promise<VoiceDeliveryRuntimeActionResult | undefined>;
|
|
17
31
|
refresh: () => Promise<VoiceDeliveryRuntimeReport | undefined>;
|
|
32
|
+
tick: () => Promise<VoiceDeliveryRuntimeActionResult | undefined>;
|
|
18
33
|
subscribe: (listener: () => void) => () => void;
|
|
19
34
|
};
|
|
@@ -12,6 +12,8 @@ export type VoiceDeliveryRuntimeSurfaceView = {
|
|
|
12
12
|
export type VoiceDeliveryRuntimeViewModel = {
|
|
13
13
|
description: string;
|
|
14
14
|
error: string | null;
|
|
15
|
+
actionError: string | null;
|
|
16
|
+
actionStatus: VoiceDeliveryRuntimeSnapshot['actionStatus'];
|
|
15
17
|
isLoading: boolean;
|
|
16
18
|
isRunning: boolean;
|
|
17
19
|
label: string;
|
|
@@ -22,6 +24,7 @@ export type VoiceDeliveryRuntimeViewModel = {
|
|
|
22
24
|
};
|
|
23
25
|
export type VoiceDeliveryRuntimeWidgetOptions = VoiceDeliveryRuntimeClientOptions & {
|
|
24
26
|
description?: string;
|
|
27
|
+
includeActions?: boolean;
|
|
25
28
|
title?: string;
|
|
26
29
|
};
|
|
27
30
|
export declare const createVoiceDeliveryRuntimeViewModel: (snapshot: VoiceDeliveryRuntimeSnapshot, options?: VoiceDeliveryRuntimeWidgetOptions) => VoiceDeliveryRuntimeViewModel;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -8,8 +8,10 @@ export { createMicrophoneCapture } from './microphone';
|
|
|
8
8
|
export { createVoiceBargeInMonitor } from './bargeInMonitor';
|
|
9
9
|
export { createVoiceLiveTurnLatencyMonitor } from './liveTurnLatency';
|
|
10
10
|
export { createVoiceOpsStatusStore, fetchVoiceOpsStatus } from './opsStatus';
|
|
11
|
-
export {
|
|
11
|
+
export { createVoiceOpsActionCenterActions, createVoiceOpsActionCenterStore, runVoiceOpsAction } from './opsActionCenter';
|
|
12
|
+
export { createVoiceDeliveryRuntimeStore, fetchVoiceDeliveryRuntime, runVoiceDeliveryRuntimeAction } from './deliveryRuntime';
|
|
12
13
|
export { createVoiceOpsStatusViewModel, defineVoiceOpsStatusElement, getVoiceOpsStatusCSS, getVoiceOpsStatusLabel, mountVoiceOpsStatus, renderVoiceOpsStatusHTML } from './opsStatusWidget';
|
|
14
|
+
export { createVoiceOpsActionCenterViewModel, defineVoiceOpsActionCenterElement, getVoiceOpsActionCenterCSS, mountVoiceOpsActionCenter, renderVoiceOpsActionCenterHTML } from './opsActionCenterWidget';
|
|
13
15
|
export { createVoiceDeliveryRuntimeViewModel, defineVoiceDeliveryRuntimeElement, getVoiceDeliveryRuntimeCSS, mountVoiceDeliveryRuntime, renderVoiceDeliveryRuntimeHTML } from './deliveryRuntimeWidget';
|
|
14
16
|
export { createVoiceRoutingStatusStore, fetchVoiceRoutingStatus } from './routingStatus';
|
|
15
17
|
export { createVoiceRoutingStatusViewModel, defineVoiceRoutingStatusElement, getVoiceRoutingStatusCSS, mountVoiceRoutingStatus, renderVoiceRoutingStatusHTML } from './routingStatusWidget';
|
|
@@ -28,10 +30,12 @@ export { createVoiceTurnLatencyViewModel, defineVoiceTurnLatencyElement, mountVo
|
|
|
28
30
|
export { createVoiceTraceTimelineViewModel, defineVoiceTraceTimelineElement, getVoiceTraceTimelineCSS, mountVoiceTraceTimeline, renderVoiceTraceTimelineWidgetHTML } from './traceTimelineWidget';
|
|
29
31
|
export { createVoiceWorkflowStatusStore, fetchVoiceWorkflowStatus } from './workflowStatus';
|
|
30
32
|
export type { VoiceOpsStatusClientOptions, VoiceOpsStatusSnapshot } from './opsStatus';
|
|
31
|
-
export type {
|
|
33
|
+
export type { VoiceOpsActionCenterClientOptions, VoiceOpsActionCenterPresetOptions, VoiceOpsActionCenterSnapshot, VoiceOpsActionDescriptor, VoiceOpsActionMethod, VoiceOpsActionRunResult } from './opsActionCenter';
|
|
34
|
+
export type { VoiceDeliveryRuntimeClientOptions, VoiceDeliveryRuntimeAction, VoiceDeliveryRuntimeActionResult, VoiceDeliveryRuntimeSnapshot } from './deliveryRuntime';
|
|
32
35
|
export type { VoiceBargeInMonitorOptions } from './bargeInMonitor';
|
|
33
36
|
export type { VoiceLiveTurnLatencyEvent, VoiceLiveTurnLatencyMonitorOptions, VoiceLiveTurnLatencySnapshot, VoiceLiveTurnLatencyStatus } from './liveTurnLatency';
|
|
34
37
|
export type { VoiceOpsStatusSurfaceView, VoiceOpsStatusViewModel, VoiceOpsStatusWidgetOptions } from './opsStatusWidget';
|
|
38
|
+
export type { VoiceOpsActionCenterViewModel, VoiceOpsActionCenterWidgetOptions } from './opsActionCenterWidget';
|
|
35
39
|
export type { VoiceDeliveryRuntimeSurfaceView, VoiceDeliveryRuntimeViewModel, VoiceDeliveryRuntimeWidgetOptions } from './deliveryRuntimeWidget';
|
|
36
40
|
export type { VoiceRoutingStatusClientOptions, VoiceRoutingStatusSnapshot } from './routingStatus';
|
|
37
41
|
export type { VoiceRoutingStatusViewModel, VoiceRoutingStatusWidgetOptions } from './routingStatusWidget';
|