@absolutejs/voice 0.0.22-beta.352 → 0.0.22-beta.353
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/angular/index.d.ts +1 -0
- package/dist/angular/index.js +313 -192
- package/dist/angular/voice-profile-comparison.service.d.ts +12 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.js +389 -212
- package/dist/client/profileComparison.d.ts +19 -0
- package/dist/client/profileComparisonWidget.d.ts +41 -0
- package/dist/react/VoiceProfileComparison.d.ts +6 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +675 -397
- package/dist/react/useVoiceProfileComparison.d.ts +8 -0
- package/dist/svelte/createVoiceProfileComparison.d.ts +7 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +86 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.js +161 -51
- package/dist/vue/useVoiceProfileComparison.d.ts +9 -0
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -441,19 +441,19 @@ VoiceProofTrendsService = __decorateElement(_init, 0, "VoiceProofTrendsService",
|
|
|
441
441
|
__runInitializers(_init, 1, VoiceProofTrendsService);
|
|
442
442
|
__decoratorMetadata(_init, VoiceProofTrendsService);
|
|
443
443
|
let _VoiceProofTrendsService = VoiceProofTrendsService;
|
|
444
|
-
// src/angular/voice-
|
|
444
|
+
// src/angular/voice-profile-comparison.service.ts
|
|
445
445
|
import { computed as computed4, Injectable as Injectable4, signal as signal4 } from "@angular/core";
|
|
446
446
|
|
|
447
|
-
// src/client/
|
|
448
|
-
var
|
|
447
|
+
// src/client/profileComparison.ts
|
|
448
|
+
var fetchVoiceProfileComparison = async (path = "/api/voice/real-call-profile-history", options = {}) => {
|
|
449
449
|
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
450
450
|
const response = await fetchImpl(path);
|
|
451
451
|
if (!response.ok) {
|
|
452
|
-
throw new Error(`Voice
|
|
452
|
+
throw new Error(`Voice profile comparison failed: HTTP ${response.status}`);
|
|
453
453
|
}
|
|
454
454
|
return await response.json();
|
|
455
455
|
};
|
|
456
|
-
var
|
|
456
|
+
var createVoiceProfileComparisonStore = (path = "/api/voice/real-call-profile-history", options = {}) => {
|
|
457
457
|
const listeners = new Set;
|
|
458
458
|
let closed = false;
|
|
459
459
|
let timer;
|
|
@@ -473,7 +473,7 @@ var createVoiceReadinessFailuresStore = (path = "/api/production-readiness", opt
|
|
|
473
473
|
snapshot = { ...snapshot, error: null, isLoading: true };
|
|
474
474
|
emit();
|
|
475
475
|
try {
|
|
476
|
-
const report = await
|
|
476
|
+
const report = await fetchVoiceProfileComparison(path, options);
|
|
477
477
|
snapshot = {
|
|
478
478
|
error: null,
|
|
479
479
|
isLoading: false,
|
|
@@ -519,15 +519,15 @@ var createVoiceReadinessFailuresStore = (path = "/api/production-readiness", opt
|
|
|
519
519
|
};
|
|
520
520
|
};
|
|
521
521
|
|
|
522
|
-
// src/angular/voice-
|
|
522
|
+
// src/angular/voice-profile-comparison.service.ts
|
|
523
523
|
var _dec = [
|
|
524
524
|
Injectable4({ providedIn: "root" })
|
|
525
525
|
];
|
|
526
526
|
var _init = __decoratorStart(undefined);
|
|
527
527
|
|
|
528
|
-
class
|
|
529
|
-
connect(path = "/api/
|
|
530
|
-
const store =
|
|
528
|
+
class VoiceProfileComparisonService {
|
|
529
|
+
connect(path = "/api/voice/real-call-profile-history", options = {}) {
|
|
530
|
+
const store = createVoiceProfileComparisonStore(path, options);
|
|
531
531
|
const errorSignal = signal4(null);
|
|
532
532
|
const isLoadingSignal = signal4(false);
|
|
533
533
|
const reportSignal = signal4(undefined);
|
|
@@ -550,7 +550,6 @@ class VoiceReadinessFailuresService {
|
|
|
550
550
|
store.close();
|
|
551
551
|
},
|
|
552
552
|
error: computed4(() => errorSignal()),
|
|
553
|
-
explanations: computed4(() => reportSignal()?.checks.filter((check) => check.status !== "pass" && !!check.gateExplanation) ?? []),
|
|
554
553
|
isLoading: computed4(() => isLoadingSignal()),
|
|
555
554
|
refresh: store.refresh,
|
|
556
555
|
report: computed4(() => reportSignal()),
|
|
@@ -558,12 +557,133 @@ class VoiceReadinessFailuresService {
|
|
|
558
557
|
};
|
|
559
558
|
}
|
|
560
559
|
}
|
|
560
|
+
VoiceProfileComparisonService = __decorateElement(_init, 0, "VoiceProfileComparisonService", _dec, VoiceProfileComparisonService);
|
|
561
|
+
__runInitializers(_init, 1, VoiceProfileComparisonService);
|
|
562
|
+
__decoratorMetadata(_init, VoiceProfileComparisonService);
|
|
563
|
+
let _VoiceProfileComparisonService = VoiceProfileComparisonService;
|
|
564
|
+
// src/angular/voice-readiness-failures.service.ts
|
|
565
|
+
import { computed as computed5, Injectable as Injectable5, signal as signal5 } from "@angular/core";
|
|
566
|
+
|
|
567
|
+
// src/client/readinessFailures.ts
|
|
568
|
+
var fetchVoiceReadinessFailures = async (path = "/api/production-readiness", options = {}) => {
|
|
569
|
+
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
570
|
+
const response = await fetchImpl(path);
|
|
571
|
+
if (!response.ok) {
|
|
572
|
+
throw new Error(`Voice readiness failed: HTTP ${response.status}`);
|
|
573
|
+
}
|
|
574
|
+
return await response.json();
|
|
575
|
+
};
|
|
576
|
+
var createVoiceReadinessFailuresStore = (path = "/api/production-readiness", options = {}) => {
|
|
577
|
+
const listeners = new Set;
|
|
578
|
+
let closed = false;
|
|
579
|
+
let timer;
|
|
580
|
+
let snapshot = {
|
|
581
|
+
error: null,
|
|
582
|
+
isLoading: false
|
|
583
|
+
};
|
|
584
|
+
const emit = () => {
|
|
585
|
+
for (const listener of listeners) {
|
|
586
|
+
listener();
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
const refresh = async () => {
|
|
590
|
+
if (closed) {
|
|
591
|
+
return snapshot.report;
|
|
592
|
+
}
|
|
593
|
+
snapshot = { ...snapshot, error: null, isLoading: true };
|
|
594
|
+
emit();
|
|
595
|
+
try {
|
|
596
|
+
const report = await fetchVoiceReadinessFailures(path, options);
|
|
597
|
+
snapshot = {
|
|
598
|
+
error: null,
|
|
599
|
+
isLoading: false,
|
|
600
|
+
report,
|
|
601
|
+
updatedAt: Date.now()
|
|
602
|
+
};
|
|
603
|
+
emit();
|
|
604
|
+
return report;
|
|
605
|
+
} catch (error) {
|
|
606
|
+
snapshot = {
|
|
607
|
+
...snapshot,
|
|
608
|
+
error: error instanceof Error ? error.message : String(error),
|
|
609
|
+
isLoading: false
|
|
610
|
+
};
|
|
611
|
+
emit();
|
|
612
|
+
throw error;
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
const close = () => {
|
|
616
|
+
closed = true;
|
|
617
|
+
if (timer) {
|
|
618
|
+
clearInterval(timer);
|
|
619
|
+
timer = undefined;
|
|
620
|
+
}
|
|
621
|
+
listeners.clear();
|
|
622
|
+
};
|
|
623
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
624
|
+
timer = setInterval(() => {
|
|
625
|
+
refresh().catch(() => {});
|
|
626
|
+
}, options.intervalMs);
|
|
627
|
+
}
|
|
628
|
+
return {
|
|
629
|
+
close,
|
|
630
|
+
getServerSnapshot: () => snapshot,
|
|
631
|
+
getSnapshot: () => snapshot,
|
|
632
|
+
refresh,
|
|
633
|
+
subscribe: (listener) => {
|
|
634
|
+
listeners.add(listener);
|
|
635
|
+
return () => {
|
|
636
|
+
listeners.delete(listener);
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
// src/angular/voice-readiness-failures.service.ts
|
|
643
|
+
var _dec = [
|
|
644
|
+
Injectable5({ providedIn: "root" })
|
|
645
|
+
];
|
|
646
|
+
var _init = __decoratorStart(undefined);
|
|
647
|
+
|
|
648
|
+
class VoiceReadinessFailuresService {
|
|
649
|
+
connect(path = "/api/production-readiness", options = {}) {
|
|
650
|
+
const store = createVoiceReadinessFailuresStore(path, options);
|
|
651
|
+
const errorSignal = signal5(null);
|
|
652
|
+
const isLoadingSignal = signal5(false);
|
|
653
|
+
const reportSignal = signal5(undefined);
|
|
654
|
+
const updatedAtSignal = signal5(undefined);
|
|
655
|
+
const sync = () => {
|
|
656
|
+
const snapshot = store.getSnapshot();
|
|
657
|
+
errorSignal.set(snapshot.error);
|
|
658
|
+
isLoadingSignal.set(snapshot.isLoading);
|
|
659
|
+
reportSignal.set(snapshot.report);
|
|
660
|
+
updatedAtSignal.set(snapshot.updatedAt);
|
|
661
|
+
};
|
|
662
|
+
const unsubscribe = store.subscribe(sync);
|
|
663
|
+
sync();
|
|
664
|
+
if (typeof window !== "undefined") {
|
|
665
|
+
store.refresh().catch(() => {});
|
|
666
|
+
}
|
|
667
|
+
return {
|
|
668
|
+
close: () => {
|
|
669
|
+
unsubscribe();
|
|
670
|
+
store.close();
|
|
671
|
+
},
|
|
672
|
+
error: computed5(() => errorSignal()),
|
|
673
|
+
explanations: computed5(() => reportSignal()?.checks.filter((check) => check.status !== "pass" && !!check.gateExplanation) ?? []),
|
|
674
|
+
isLoading: computed5(() => isLoadingSignal()),
|
|
675
|
+
refresh: store.refresh,
|
|
676
|
+
report: computed5(() => reportSignal()),
|
|
677
|
+
updatedAt: computed5(() => updatedAtSignal())
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
}
|
|
561
681
|
VoiceReadinessFailuresService = __decorateElement(_init, 0, "VoiceReadinessFailuresService", _dec, VoiceReadinessFailuresService);
|
|
562
682
|
__runInitializers(_init, 1, VoiceReadinessFailuresService);
|
|
563
683
|
__decoratorMetadata(_init, VoiceReadinessFailuresService);
|
|
564
684
|
let _VoiceReadinessFailuresService = VoiceReadinessFailuresService;
|
|
565
685
|
// src/angular/voice-ops-action-center.service.ts
|
|
566
|
-
import { computed as
|
|
686
|
+
import { computed as computed6, Injectable as Injectable6, signal as signal6 } from "@angular/core";
|
|
567
687
|
|
|
568
688
|
// src/client/opsActionCenter.ts
|
|
569
689
|
var recordVoiceOpsActionResult = async (result, options = {}) => {
|
|
@@ -758,18 +878,18 @@ var createVoiceOpsActionCenterStore = (options = {}) => {
|
|
|
758
878
|
|
|
759
879
|
// src/angular/voice-ops-action-center.service.ts
|
|
760
880
|
var _dec = [
|
|
761
|
-
|
|
881
|
+
Injectable6({ providedIn: "root" })
|
|
762
882
|
];
|
|
763
883
|
var _init = __decoratorStart(undefined);
|
|
764
884
|
|
|
765
885
|
class VoiceOpsActionCenterService {
|
|
766
886
|
connect(options = {}) {
|
|
767
887
|
const store = createVoiceOpsActionCenterStore(options);
|
|
768
|
-
const actionsSignal =
|
|
769
|
-
const errorSignal =
|
|
770
|
-
const isRunningSignal =
|
|
771
|
-
const lastResultSignal =
|
|
772
|
-
const runningActionIdSignal =
|
|
888
|
+
const actionsSignal = signal6([]);
|
|
889
|
+
const errorSignal = signal6(null);
|
|
890
|
+
const isRunningSignal = signal6(false);
|
|
891
|
+
const lastResultSignal = signal6(undefined);
|
|
892
|
+
const runningActionIdSignal = signal6(undefined);
|
|
773
893
|
const sync = () => {
|
|
774
894
|
const snapshot = store.getSnapshot();
|
|
775
895
|
actionsSignal.set(snapshot.actions);
|
|
@@ -781,16 +901,16 @@ class VoiceOpsActionCenterService {
|
|
|
781
901
|
const unsubscribe = store.subscribe(sync);
|
|
782
902
|
sync();
|
|
783
903
|
return {
|
|
784
|
-
actions:
|
|
904
|
+
actions: computed6(() => actionsSignal()),
|
|
785
905
|
close: () => {
|
|
786
906
|
unsubscribe();
|
|
787
907
|
store.close();
|
|
788
908
|
},
|
|
789
|
-
error:
|
|
790
|
-
isRunning:
|
|
791
|
-
lastResult:
|
|
909
|
+
error: computed6(() => errorSignal()),
|
|
910
|
+
isRunning: computed6(() => isRunningSignal()),
|
|
911
|
+
lastResult: computed6(() => lastResultSignal()),
|
|
792
912
|
run: store.run,
|
|
793
|
-
runningActionId:
|
|
913
|
+
runningActionId: computed6(() => runningActionIdSignal()),
|
|
794
914
|
setActions: store.setActions
|
|
795
915
|
};
|
|
796
916
|
}
|
|
@@ -800,7 +920,7 @@ __runInitializers(_init, 1, VoiceOpsActionCenterService);
|
|
|
800
920
|
__decoratorMetadata(_init, VoiceOpsActionCenterService);
|
|
801
921
|
let _VoiceOpsActionCenterService = VoiceOpsActionCenterService;
|
|
802
922
|
// src/angular/voice-live-ops.service.ts
|
|
803
|
-
import { computed as
|
|
923
|
+
import { computed as computed7, Injectable as Injectable7, signal as signal7 } from "@angular/core";
|
|
804
924
|
|
|
805
925
|
// src/client/liveOps.ts
|
|
806
926
|
var postVoiceLiveOpsAction = async (input, options = {}) => {
|
|
@@ -890,17 +1010,17 @@ var createVoiceLiveOpsStore = (options = {}) => {
|
|
|
890
1010
|
|
|
891
1011
|
// src/angular/voice-live-ops.service.ts
|
|
892
1012
|
var _dec = [
|
|
893
|
-
|
|
1013
|
+
Injectable7({ providedIn: "root" })
|
|
894
1014
|
];
|
|
895
1015
|
var _init = __decoratorStart(undefined);
|
|
896
1016
|
|
|
897
1017
|
class VoiceLiveOpsService {
|
|
898
1018
|
connect(options = {}) {
|
|
899
1019
|
const store = createVoiceLiveOpsStore(options);
|
|
900
|
-
const errorSignal =
|
|
901
|
-
const isRunningSignal =
|
|
902
|
-
const lastResultSignal =
|
|
903
|
-
const runningActionSignal =
|
|
1020
|
+
const errorSignal = signal7(null);
|
|
1021
|
+
const isRunningSignal = signal7(false);
|
|
1022
|
+
const lastResultSignal = signal7(undefined);
|
|
1023
|
+
const runningActionSignal = signal7(undefined);
|
|
904
1024
|
const sync = () => {
|
|
905
1025
|
const snapshot = store.getSnapshot();
|
|
906
1026
|
errorSignal.set(snapshot.error);
|
|
@@ -915,11 +1035,11 @@ class VoiceLiveOpsService {
|
|
|
915
1035
|
unsubscribe();
|
|
916
1036
|
store.close();
|
|
917
1037
|
},
|
|
918
|
-
error:
|
|
919
|
-
isRunning:
|
|
920
|
-
lastResult:
|
|
1038
|
+
error: computed7(() => errorSignal()),
|
|
1039
|
+
isRunning: computed7(() => isRunningSignal()),
|
|
1040
|
+
lastResult: computed7(() => lastResultSignal()),
|
|
921
1041
|
run: store.run,
|
|
922
|
-
runningAction:
|
|
1042
|
+
runningAction: computed7(() => runningActionSignal())
|
|
923
1043
|
};
|
|
924
1044
|
}
|
|
925
1045
|
}
|
|
@@ -928,7 +1048,7 @@ __runInitializers(_init, 1, VoiceLiveOpsService);
|
|
|
928
1048
|
__decoratorMetadata(_init, VoiceLiveOpsService);
|
|
929
1049
|
let _VoiceLiveOpsService = VoiceLiveOpsService;
|
|
930
1050
|
// src/angular/voice-delivery-runtime.service.ts
|
|
931
|
-
import { computed as
|
|
1051
|
+
import { computed as computed8, Injectable as Injectable8, signal as signal8 } from "@angular/core";
|
|
932
1052
|
|
|
933
1053
|
// src/client/deliveryRuntime.ts
|
|
934
1054
|
var getDefaultActionPath = (path, action, options) => {
|
|
@@ -1069,19 +1189,19 @@ var createVoiceDeliveryRuntimeStore = (path = "/api/voice-delivery-runtime", opt
|
|
|
1069
1189
|
|
|
1070
1190
|
// src/angular/voice-delivery-runtime.service.ts
|
|
1071
1191
|
var _dec = [
|
|
1072
|
-
|
|
1192
|
+
Injectable8({ providedIn: "root" })
|
|
1073
1193
|
];
|
|
1074
1194
|
var _init = __decoratorStart(undefined);
|
|
1075
1195
|
|
|
1076
1196
|
class VoiceDeliveryRuntimeService {
|
|
1077
1197
|
connect(path = "/api/voice-delivery-runtime", options = {}) {
|
|
1078
1198
|
const store = createVoiceDeliveryRuntimeStore(path, options);
|
|
1079
|
-
const actionErrorSignal =
|
|
1080
|
-
const actionStatusSignal =
|
|
1081
|
-
const errorSignal =
|
|
1082
|
-
const isLoadingSignal =
|
|
1083
|
-
const reportSignal =
|
|
1084
|
-
const updatedAtSignal =
|
|
1199
|
+
const actionErrorSignal = signal8(null);
|
|
1200
|
+
const actionStatusSignal = signal8("idle");
|
|
1201
|
+
const errorSignal = signal8(null);
|
|
1202
|
+
const isLoadingSignal = signal8(false);
|
|
1203
|
+
const reportSignal = signal8(undefined);
|
|
1204
|
+
const updatedAtSignal = signal8(undefined);
|
|
1085
1205
|
const sync = () => {
|
|
1086
1206
|
const snapshot = store.getSnapshot();
|
|
1087
1207
|
actionErrorSignal.set(snapshot.actionError);
|
|
@@ -1101,15 +1221,15 @@ class VoiceDeliveryRuntimeService {
|
|
|
1101
1221
|
unsubscribe();
|
|
1102
1222
|
store.close();
|
|
1103
1223
|
},
|
|
1104
|
-
error:
|
|
1105
|
-
actionError:
|
|
1106
|
-
actionStatus:
|
|
1107
|
-
isLoading:
|
|
1224
|
+
error: computed8(() => errorSignal()),
|
|
1225
|
+
actionError: computed8(() => actionErrorSignal()),
|
|
1226
|
+
actionStatus: computed8(() => actionStatusSignal()),
|
|
1227
|
+
isLoading: computed8(() => isLoadingSignal()),
|
|
1108
1228
|
requeueDeadLetters: store.requeueDeadLetters,
|
|
1109
1229
|
refresh: store.refresh,
|
|
1110
|
-
report:
|
|
1230
|
+
report: computed8(() => reportSignal()),
|
|
1111
1231
|
tick: store.tick,
|
|
1112
|
-
updatedAt:
|
|
1232
|
+
updatedAt: computed8(() => updatedAtSignal())
|
|
1113
1233
|
};
|
|
1114
1234
|
}
|
|
1115
1235
|
}
|
|
@@ -1118,7 +1238,7 @@ __runInitializers(_init, 1, VoiceDeliveryRuntimeService);
|
|
|
1118
1238
|
__decoratorMetadata(_init, VoiceDeliveryRuntimeService);
|
|
1119
1239
|
let _VoiceDeliveryRuntimeService = VoiceDeliveryRuntimeService;
|
|
1120
1240
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
1121
|
-
import { computed as
|
|
1241
|
+
import { computed as computed9, Injectable as Injectable9, signal as signal9 } from "@angular/core";
|
|
1122
1242
|
|
|
1123
1243
|
// src/client/campaignDialerProof.ts
|
|
1124
1244
|
var fetchVoiceCampaignDialerProofStatus = async (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
|
|
@@ -1240,18 +1360,18 @@ var createVoiceCampaignDialerProofStore = (path = "/api/voice/campaigns/dialer-p
|
|
|
1240
1360
|
|
|
1241
1361
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
1242
1362
|
var _dec = [
|
|
1243
|
-
|
|
1363
|
+
Injectable9({ providedIn: "root" })
|
|
1244
1364
|
];
|
|
1245
1365
|
var _init = __decoratorStart(undefined);
|
|
1246
1366
|
|
|
1247
1367
|
class VoiceCampaignDialerProofService {
|
|
1248
1368
|
connect(path = "/api/voice/campaigns/dialer-proof", options = {}) {
|
|
1249
1369
|
const store = createVoiceCampaignDialerProofStore(path, options);
|
|
1250
|
-
const errorSignal =
|
|
1251
|
-
const isLoadingSignal =
|
|
1252
|
-
const reportSignal =
|
|
1253
|
-
const statusSignal =
|
|
1254
|
-
const updatedAtSignal =
|
|
1370
|
+
const errorSignal = signal9(null);
|
|
1371
|
+
const isLoadingSignal = signal9(false);
|
|
1372
|
+
const reportSignal = signal9(undefined);
|
|
1373
|
+
const statusSignal = signal9(undefined);
|
|
1374
|
+
const updatedAtSignal = signal9(undefined);
|
|
1255
1375
|
const sync = () => {
|
|
1256
1376
|
const snapshot = store.getSnapshot();
|
|
1257
1377
|
errorSignal.set(snapshot.error);
|
|
@@ -1268,13 +1388,13 @@ class VoiceCampaignDialerProofService {
|
|
|
1268
1388
|
unsubscribe();
|
|
1269
1389
|
store.close();
|
|
1270
1390
|
},
|
|
1271
|
-
error:
|
|
1272
|
-
isLoading:
|
|
1391
|
+
error: computed9(() => errorSignal()),
|
|
1392
|
+
isLoading: computed9(() => isLoadingSignal()),
|
|
1273
1393
|
refresh: store.refresh,
|
|
1274
|
-
report:
|
|
1394
|
+
report: computed9(() => reportSignal()),
|
|
1275
1395
|
runProof: store.runProof,
|
|
1276
|
-
status:
|
|
1277
|
-
updatedAt:
|
|
1396
|
+
status: computed9(() => statusSignal()),
|
|
1397
|
+
updatedAt: computed9(() => updatedAtSignal())
|
|
1278
1398
|
};
|
|
1279
1399
|
}
|
|
1280
1400
|
}
|
|
@@ -1283,7 +1403,7 @@ __runInitializers(_init, 1, VoiceCampaignDialerProofService);
|
|
|
1283
1403
|
__decoratorMetadata(_init, VoiceCampaignDialerProofService);
|
|
1284
1404
|
let _VoiceCampaignDialerProofService = VoiceCampaignDialerProofService;
|
|
1285
1405
|
// src/angular/voice-stream.service.ts
|
|
1286
|
-
import { computed as
|
|
1406
|
+
import { computed as computed10, Injectable as Injectable10, signal as signal10 } from "@angular/core";
|
|
1287
1407
|
|
|
1288
1408
|
// src/client/actions.ts
|
|
1289
1409
|
var normalizeErrorMessage = (value) => {
|
|
@@ -2669,23 +2789,23 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
2669
2789
|
|
|
2670
2790
|
// src/angular/voice-stream.service.ts
|
|
2671
2791
|
var _dec = [
|
|
2672
|
-
|
|
2792
|
+
Injectable10({ providedIn: "root" })
|
|
2673
2793
|
];
|
|
2674
2794
|
var _init = __decoratorStart(undefined);
|
|
2675
2795
|
|
|
2676
2796
|
class VoiceStreamService {
|
|
2677
2797
|
connect(path, options = {}) {
|
|
2678
2798
|
const stream = createVoiceStream(path, options);
|
|
2679
|
-
const assistantAudioSignal =
|
|
2680
|
-
const assistantTextsSignal =
|
|
2681
|
-
const callSignal =
|
|
2682
|
-
const errorSignal =
|
|
2683
|
-
const isConnectedSignal =
|
|
2684
|
-
const partialSignal =
|
|
2685
|
-
const reconnectSignal =
|
|
2686
|
-
const sessionIdSignal =
|
|
2687
|
-
const statusSignal =
|
|
2688
|
-
const turnsSignal =
|
|
2799
|
+
const assistantAudioSignal = signal10([]);
|
|
2800
|
+
const assistantTextsSignal = signal10([]);
|
|
2801
|
+
const callSignal = signal10(null);
|
|
2802
|
+
const errorSignal = signal10(null);
|
|
2803
|
+
const isConnectedSignal = signal10(false);
|
|
2804
|
+
const partialSignal = signal10("");
|
|
2805
|
+
const reconnectSignal = signal10(stream.reconnect);
|
|
2806
|
+
const sessionIdSignal = signal10(stream.sessionId);
|
|
2807
|
+
const statusSignal = signal10(stream.status);
|
|
2808
|
+
const turnsSignal = signal10([]);
|
|
2689
2809
|
const sync = () => {
|
|
2690
2810
|
assistantAudioSignal.set([...stream.assistantAudio]);
|
|
2691
2811
|
assistantTextsSignal.set([...stream.assistantTexts]);
|
|
@@ -2701,23 +2821,23 @@ class VoiceStreamService {
|
|
|
2701
2821
|
const unsubscribe = stream.subscribe(sync);
|
|
2702
2822
|
sync();
|
|
2703
2823
|
return {
|
|
2704
|
-
assistantAudio:
|
|
2705
|
-
assistantTexts:
|
|
2706
|
-
call:
|
|
2824
|
+
assistantAudio: computed10(() => assistantAudioSignal()),
|
|
2825
|
+
assistantTexts: computed10(() => assistantTextsSignal()),
|
|
2826
|
+
call: computed10(() => callSignal()),
|
|
2707
2827
|
callControl: (message) => stream.callControl(message),
|
|
2708
2828
|
close: () => {
|
|
2709
2829
|
unsubscribe();
|
|
2710
2830
|
stream.close();
|
|
2711
2831
|
},
|
|
2712
2832
|
endTurn: () => stream.endTurn(),
|
|
2713
|
-
error:
|
|
2714
|
-
isConnected:
|
|
2715
|
-
partial:
|
|
2716
|
-
reconnect:
|
|
2833
|
+
error: computed10(() => errorSignal()),
|
|
2834
|
+
isConnected: computed10(() => isConnectedSignal()),
|
|
2835
|
+
partial: computed10(() => partialSignal()),
|
|
2836
|
+
reconnect: computed10(() => reconnectSignal()),
|
|
2717
2837
|
sendAudio: (audio) => stream.sendAudio(audio),
|
|
2718
|
-
sessionId:
|
|
2719
|
-
status:
|
|
2720
|
-
turns:
|
|
2838
|
+
sessionId: computed10(() => sessionIdSignal()),
|
|
2839
|
+
status: computed10(() => statusSignal()),
|
|
2840
|
+
turns: computed10(() => turnsSignal())
|
|
2721
2841
|
};
|
|
2722
2842
|
}
|
|
2723
2843
|
}
|
|
@@ -2726,7 +2846,7 @@ __runInitializers(_init, 1, VoiceStreamService);
|
|
|
2726
2846
|
__decoratorMetadata(_init, VoiceStreamService);
|
|
2727
2847
|
let _VoiceStreamService = VoiceStreamService;
|
|
2728
2848
|
// src/angular/voice-controller.service.ts
|
|
2729
|
-
import { computed as
|
|
2849
|
+
import { computed as computed11, Injectable as Injectable11, signal as signal11 } from "@angular/core";
|
|
2730
2850
|
|
|
2731
2851
|
// src/client/htmx.ts
|
|
2732
2852
|
var DEFAULT_EVENT_NAME = "voice-refresh";
|
|
@@ -3371,24 +3491,24 @@ var createVoiceController = (path, options = {}) => {
|
|
|
3371
3491
|
|
|
3372
3492
|
// src/angular/voice-controller.service.ts
|
|
3373
3493
|
var _dec = [
|
|
3374
|
-
|
|
3494
|
+
Injectable11({ providedIn: "root" })
|
|
3375
3495
|
];
|
|
3376
3496
|
var _init = __decoratorStart(undefined);
|
|
3377
3497
|
|
|
3378
3498
|
class VoiceControllerService {
|
|
3379
3499
|
connect(path, options = {}) {
|
|
3380
3500
|
const controller = createVoiceController(path, options);
|
|
3381
|
-
const assistantAudioSignal =
|
|
3382
|
-
const assistantTextsSignal =
|
|
3383
|
-
const errorSignal =
|
|
3384
|
-
const isConnectedSignal =
|
|
3385
|
-
const isRecordingSignal =
|
|
3386
|
-
const partialSignal =
|
|
3387
|
-
const reconnectSignal =
|
|
3388
|
-
const recordingErrorSignal =
|
|
3389
|
-
const sessionIdSignal =
|
|
3390
|
-
const statusSignal =
|
|
3391
|
-
const turnsSignal =
|
|
3501
|
+
const assistantAudioSignal = signal11([]);
|
|
3502
|
+
const assistantTextsSignal = signal11([]);
|
|
3503
|
+
const errorSignal = signal11(null);
|
|
3504
|
+
const isConnectedSignal = signal11(false);
|
|
3505
|
+
const isRecordingSignal = signal11(false);
|
|
3506
|
+
const partialSignal = signal11("");
|
|
3507
|
+
const reconnectSignal = signal11(controller.reconnect);
|
|
3508
|
+
const recordingErrorSignal = signal11(null);
|
|
3509
|
+
const sessionIdSignal = signal11(controller.sessionId);
|
|
3510
|
+
const statusSignal = signal11(controller.status);
|
|
3511
|
+
const turnsSignal = signal11([]);
|
|
3392
3512
|
const sync = () => {
|
|
3393
3513
|
assistantAudioSignal.set([...controller.assistantAudio]);
|
|
3394
3514
|
assistantTextsSignal.set([...controller.assistantTexts]);
|
|
@@ -3405,27 +3525,27 @@ class VoiceControllerService {
|
|
|
3405
3525
|
const unsubscribe = controller.subscribe(sync);
|
|
3406
3526
|
sync();
|
|
3407
3527
|
return {
|
|
3408
|
-
assistantAudio:
|
|
3409
|
-
assistantTexts:
|
|
3528
|
+
assistantAudio: computed11(() => assistantAudioSignal()),
|
|
3529
|
+
assistantTexts: computed11(() => assistantTextsSignal()),
|
|
3410
3530
|
bindHTMX: controller.bindHTMX,
|
|
3411
3531
|
close: () => {
|
|
3412
3532
|
unsubscribe();
|
|
3413
3533
|
controller.close();
|
|
3414
3534
|
},
|
|
3415
3535
|
endTurn: () => controller.endTurn(),
|
|
3416
|
-
error:
|
|
3417
|
-
isConnected:
|
|
3418
|
-
isRecording:
|
|
3419
|
-
partial:
|
|
3420
|
-
reconnect:
|
|
3421
|
-
recordingError:
|
|
3536
|
+
error: computed11(() => errorSignal()),
|
|
3537
|
+
isConnected: computed11(() => isConnectedSignal()),
|
|
3538
|
+
isRecording: computed11(() => isRecordingSignal()),
|
|
3539
|
+
partial: computed11(() => partialSignal()),
|
|
3540
|
+
reconnect: computed11(() => reconnectSignal()),
|
|
3541
|
+
recordingError: computed11(() => recordingErrorSignal()),
|
|
3422
3542
|
sendAudio: (audio) => controller.sendAudio(audio),
|
|
3423
|
-
sessionId:
|
|
3543
|
+
sessionId: computed11(() => sessionIdSignal()),
|
|
3424
3544
|
startRecording: () => controller.startRecording(),
|
|
3425
|
-
status:
|
|
3545
|
+
status: computed11(() => statusSignal()),
|
|
3426
3546
|
stopRecording: () => controller.stopRecording(),
|
|
3427
3547
|
toggleRecording: () => controller.toggleRecording(),
|
|
3428
|
-
turns:
|
|
3548
|
+
turns: computed11(() => turnsSignal())
|
|
3429
3549
|
};
|
|
3430
3550
|
}
|
|
3431
3551
|
}
|
|
@@ -3434,7 +3554,7 @@ __runInitializers(_init, 1, VoiceControllerService);
|
|
|
3434
3554
|
__decoratorMetadata(_init, VoiceControllerService);
|
|
3435
3555
|
let _VoiceControllerService = VoiceControllerService;
|
|
3436
3556
|
// src/angular/voice-provider-capabilities.service.ts
|
|
3437
|
-
import { computed as
|
|
3557
|
+
import { computed as computed12, Injectable as Injectable12, signal as signal12 } from "@angular/core";
|
|
3438
3558
|
|
|
3439
3559
|
// src/client/providerCapabilities.ts
|
|
3440
3560
|
var fetchVoiceProviderCapabilities = async (path = "/api/provider-capabilities", options = {}) => {
|
|
@@ -3517,17 +3637,17 @@ var createVoiceProviderCapabilitiesStore = (path = "/api/provider-capabilities",
|
|
|
3517
3637
|
|
|
3518
3638
|
// src/angular/voice-provider-capabilities.service.ts
|
|
3519
3639
|
var _dec = [
|
|
3520
|
-
|
|
3640
|
+
Injectable12({ providedIn: "root" })
|
|
3521
3641
|
];
|
|
3522
3642
|
var _init = __decoratorStart(undefined);
|
|
3523
3643
|
|
|
3524
3644
|
class VoiceProviderCapabilitiesService {
|
|
3525
3645
|
connect(path = "/api/provider-capabilities", options = {}) {
|
|
3526
3646
|
const store = createVoiceProviderCapabilitiesStore(path, options);
|
|
3527
|
-
const errorSignal =
|
|
3528
|
-
const isLoadingSignal =
|
|
3529
|
-
const reportSignal =
|
|
3530
|
-
const updatedAtSignal =
|
|
3647
|
+
const errorSignal = signal12(null);
|
|
3648
|
+
const isLoadingSignal = signal12(false);
|
|
3649
|
+
const reportSignal = signal12(undefined);
|
|
3650
|
+
const updatedAtSignal = signal12(undefined);
|
|
3531
3651
|
const sync = () => {
|
|
3532
3652
|
const snapshot = store.getSnapshot();
|
|
3533
3653
|
errorSignal.set(snapshot.error);
|
|
@@ -3543,11 +3663,11 @@ class VoiceProviderCapabilitiesService {
|
|
|
3543
3663
|
unsubscribe();
|
|
3544
3664
|
store.close();
|
|
3545
3665
|
},
|
|
3546
|
-
error:
|
|
3547
|
-
isLoading:
|
|
3666
|
+
error: computed12(() => errorSignal()),
|
|
3667
|
+
isLoading: computed12(() => isLoadingSignal()),
|
|
3548
3668
|
refresh: store.refresh,
|
|
3549
|
-
report:
|
|
3550
|
-
updatedAt:
|
|
3669
|
+
report: computed12(() => reportSignal()),
|
|
3670
|
+
updatedAt: computed12(() => updatedAtSignal())
|
|
3551
3671
|
};
|
|
3552
3672
|
}
|
|
3553
3673
|
}
|
|
@@ -3556,7 +3676,7 @@ __runInitializers(_init, 1, VoiceProviderCapabilitiesService);
|
|
|
3556
3676
|
__decoratorMetadata(_init, VoiceProviderCapabilitiesService);
|
|
3557
3677
|
let _VoiceProviderCapabilitiesService = VoiceProviderCapabilitiesService;
|
|
3558
3678
|
// src/angular/voice-provider-contracts.service.ts
|
|
3559
|
-
import { computed as
|
|
3679
|
+
import { computed as computed13, Injectable as Injectable13, signal as signal13 } from "@angular/core";
|
|
3560
3680
|
|
|
3561
3681
|
// src/client/providerContracts.ts
|
|
3562
3682
|
var fetchVoiceProviderContracts = async (path = "/api/provider-contracts", options = {}) => {
|
|
@@ -3635,17 +3755,17 @@ var createVoiceProviderContractsStore = (path = "/api/provider-contracts", optio
|
|
|
3635
3755
|
|
|
3636
3756
|
// src/angular/voice-provider-contracts.service.ts
|
|
3637
3757
|
var _dec = [
|
|
3638
|
-
|
|
3758
|
+
Injectable13({ providedIn: "root" })
|
|
3639
3759
|
];
|
|
3640
3760
|
var _init = __decoratorStart(undefined);
|
|
3641
3761
|
|
|
3642
3762
|
class VoiceProviderContractsService {
|
|
3643
3763
|
connect(path = "/api/provider-contracts", options = {}) {
|
|
3644
3764
|
const store = createVoiceProviderContractsStore(path, options);
|
|
3645
|
-
const errorSignal =
|
|
3646
|
-
const isLoadingSignal =
|
|
3647
|
-
const reportSignal =
|
|
3648
|
-
const updatedAtSignal =
|
|
3765
|
+
const errorSignal = signal13(null);
|
|
3766
|
+
const isLoadingSignal = signal13(false);
|
|
3767
|
+
const reportSignal = signal13(undefined);
|
|
3768
|
+
const updatedAtSignal = signal13(undefined);
|
|
3649
3769
|
const sync = () => {
|
|
3650
3770
|
const snapshot = store.getSnapshot();
|
|
3651
3771
|
errorSignal.set(snapshot.error);
|
|
@@ -3661,11 +3781,11 @@ class VoiceProviderContractsService {
|
|
|
3661
3781
|
unsubscribe();
|
|
3662
3782
|
store.close();
|
|
3663
3783
|
},
|
|
3664
|
-
error:
|
|
3665
|
-
isLoading:
|
|
3784
|
+
error: computed13(() => errorSignal()),
|
|
3785
|
+
isLoading: computed13(() => isLoadingSignal()),
|
|
3666
3786
|
refresh: store.refresh,
|
|
3667
|
-
report:
|
|
3668
|
-
updatedAt:
|
|
3787
|
+
report: computed13(() => reportSignal()),
|
|
3788
|
+
updatedAt: computed13(() => updatedAtSignal())
|
|
3669
3789
|
};
|
|
3670
3790
|
}
|
|
3671
3791
|
}
|
|
@@ -3674,7 +3794,7 @@ __runInitializers(_init, 1, VoiceProviderContractsService);
|
|
|
3674
3794
|
__decoratorMetadata(_init, VoiceProviderContractsService);
|
|
3675
3795
|
let _VoiceProviderContractsService = VoiceProviderContractsService;
|
|
3676
3796
|
// src/angular/voice-provider-status.service.ts
|
|
3677
|
-
import { computed as
|
|
3797
|
+
import { computed as computed14, Injectable as Injectable14, signal as signal14 } from "@angular/core";
|
|
3678
3798
|
|
|
3679
3799
|
// src/client/providerStatus.ts
|
|
3680
3800
|
var fetchVoiceProviderStatus = async (path = "/api/provider-status", options = {}) => {
|
|
@@ -3758,17 +3878,17 @@ var createVoiceProviderStatusStore = (path = "/api/provider-status", options = {
|
|
|
3758
3878
|
|
|
3759
3879
|
// src/angular/voice-provider-status.service.ts
|
|
3760
3880
|
var _dec = [
|
|
3761
|
-
|
|
3881
|
+
Injectable14({ providedIn: "root" })
|
|
3762
3882
|
];
|
|
3763
3883
|
var _init = __decoratorStart(undefined);
|
|
3764
3884
|
|
|
3765
3885
|
class VoiceProviderStatusService {
|
|
3766
3886
|
connect(path = "/api/provider-status", options = {}) {
|
|
3767
3887
|
const store = createVoiceProviderStatusStore(path, options);
|
|
3768
|
-
const errorSignal =
|
|
3769
|
-
const isLoadingSignal =
|
|
3770
|
-
const providersSignal =
|
|
3771
|
-
const updatedAtSignal =
|
|
3888
|
+
const errorSignal = signal14(null);
|
|
3889
|
+
const isLoadingSignal = signal14(false);
|
|
3890
|
+
const providersSignal = signal14([]);
|
|
3891
|
+
const updatedAtSignal = signal14(undefined);
|
|
3772
3892
|
const sync = () => {
|
|
3773
3893
|
const snapshot = store.getSnapshot();
|
|
3774
3894
|
errorSignal.set(snapshot.error);
|
|
@@ -3784,11 +3904,11 @@ class VoiceProviderStatusService {
|
|
|
3784
3904
|
unsubscribe();
|
|
3785
3905
|
store.close();
|
|
3786
3906
|
},
|
|
3787
|
-
error:
|
|
3788
|
-
isLoading:
|
|
3789
|
-
providers:
|
|
3907
|
+
error: computed14(() => errorSignal()),
|
|
3908
|
+
isLoading: computed14(() => isLoadingSignal()),
|
|
3909
|
+
providers: computed14(() => providersSignal()),
|
|
3790
3910
|
refresh: store.refresh,
|
|
3791
|
-
updatedAt:
|
|
3911
|
+
updatedAt: computed14(() => updatedAtSignal())
|
|
3792
3912
|
};
|
|
3793
3913
|
}
|
|
3794
3914
|
}
|
|
@@ -3797,7 +3917,7 @@ __runInitializers(_init, 1, VoiceProviderStatusService);
|
|
|
3797
3917
|
__decoratorMetadata(_init, VoiceProviderStatusService);
|
|
3798
3918
|
let _VoiceProviderStatusService = VoiceProviderStatusService;
|
|
3799
3919
|
// src/angular/voice-routing-status.service.ts
|
|
3800
|
-
import { Injectable as
|
|
3920
|
+
import { Injectable as Injectable15, signal as signal15 } from "@angular/core";
|
|
3801
3921
|
|
|
3802
3922
|
// src/client/routingStatus.ts
|
|
3803
3923
|
var fetchVoiceRoutingStatus = async (path = "/api/routing/latest", options = {}) => {
|
|
@@ -3881,17 +4001,17 @@ var createVoiceRoutingStatusStore = (path = "/api/routing/latest", options = {})
|
|
|
3881
4001
|
|
|
3882
4002
|
// src/angular/voice-routing-status.service.ts
|
|
3883
4003
|
var _dec = [
|
|
3884
|
-
|
|
4004
|
+
Injectable15({ providedIn: "root" })
|
|
3885
4005
|
];
|
|
3886
4006
|
var _init = __decoratorStart(undefined);
|
|
3887
4007
|
|
|
3888
4008
|
class VoiceRoutingStatusService {
|
|
3889
4009
|
connect(path = "/api/routing/latest", options = {}) {
|
|
3890
4010
|
const store = createVoiceRoutingStatusStore(path, options);
|
|
3891
|
-
const decisionSignal =
|
|
3892
|
-
const errorSignal =
|
|
3893
|
-
const isLoadingSignal =
|
|
3894
|
-
const updatedAtSignal =
|
|
4011
|
+
const decisionSignal = signal15(null);
|
|
4012
|
+
const errorSignal = signal15(null);
|
|
4013
|
+
const isLoadingSignal = signal15(false);
|
|
4014
|
+
const updatedAtSignal = signal15(undefined);
|
|
3895
4015
|
const sync = () => {
|
|
3896
4016
|
const snapshot = store.getSnapshot();
|
|
3897
4017
|
decisionSignal.set(snapshot.decision);
|
|
@@ -3920,7 +4040,7 @@ __runInitializers(_init, 1, VoiceRoutingStatusService);
|
|
|
3920
4040
|
__decoratorMetadata(_init, VoiceRoutingStatusService);
|
|
3921
4041
|
let _VoiceRoutingStatusService = VoiceRoutingStatusService;
|
|
3922
4042
|
// src/angular/voice-trace-timeline.service.ts
|
|
3923
|
-
import { computed as
|
|
4043
|
+
import { computed as computed15, Injectable as Injectable16, signal as signal16 } from "@angular/core";
|
|
3924
4044
|
|
|
3925
4045
|
// src/client/traceTimeline.ts
|
|
3926
4046
|
var fetchVoiceTraceTimeline = async (path = "/api/voice-traces", options = {}) => {
|
|
@@ -4004,17 +4124,17 @@ var createVoiceTraceTimelineStore = (path = "/api/voice-traces", options = {}) =
|
|
|
4004
4124
|
|
|
4005
4125
|
// src/angular/voice-trace-timeline.service.ts
|
|
4006
4126
|
var _dec = [
|
|
4007
|
-
|
|
4127
|
+
Injectable16({ providedIn: "root" })
|
|
4008
4128
|
];
|
|
4009
4129
|
var _init = __decoratorStart(undefined);
|
|
4010
4130
|
|
|
4011
4131
|
class VoiceTraceTimelineService {
|
|
4012
4132
|
connect(path = "/api/voice-traces", options = {}) {
|
|
4013
4133
|
const store = createVoiceTraceTimelineStore(path, options);
|
|
4014
|
-
const errorSignal =
|
|
4015
|
-
const isLoadingSignal =
|
|
4016
|
-
const reportSignal =
|
|
4017
|
-
const updatedAtSignal =
|
|
4134
|
+
const errorSignal = signal16(null);
|
|
4135
|
+
const isLoadingSignal = signal16(false);
|
|
4136
|
+
const reportSignal = signal16(null);
|
|
4137
|
+
const updatedAtSignal = signal16(undefined);
|
|
4018
4138
|
const sync = () => {
|
|
4019
4139
|
const snapshot = store.getSnapshot();
|
|
4020
4140
|
errorSignal.set(snapshot.error);
|
|
@@ -4030,11 +4150,11 @@ class VoiceTraceTimelineService {
|
|
|
4030
4150
|
unsubscribe();
|
|
4031
4151
|
store.close();
|
|
4032
4152
|
},
|
|
4033
|
-
error:
|
|
4034
|
-
isLoading:
|
|
4153
|
+
error: computed15(() => errorSignal()),
|
|
4154
|
+
isLoading: computed15(() => isLoadingSignal()),
|
|
4035
4155
|
refresh: store.refresh,
|
|
4036
|
-
report:
|
|
4037
|
-
updatedAt:
|
|
4156
|
+
report: computed15(() => reportSignal()),
|
|
4157
|
+
updatedAt: computed15(() => updatedAtSignal())
|
|
4038
4158
|
};
|
|
4039
4159
|
}
|
|
4040
4160
|
}
|
|
@@ -4043,7 +4163,7 @@ __runInitializers(_init, 1, VoiceTraceTimelineService);
|
|
|
4043
4163
|
__decoratorMetadata(_init, VoiceTraceTimelineService);
|
|
4044
4164
|
let _VoiceTraceTimelineService = VoiceTraceTimelineService;
|
|
4045
4165
|
// src/angular/voice-agent-squad-status.service.ts
|
|
4046
|
-
import { computed as
|
|
4166
|
+
import { computed as computed16, Injectable as Injectable17, signal as signal17 } from "@angular/core";
|
|
4047
4167
|
|
|
4048
4168
|
// src/client/agentSquadStatus.ts
|
|
4049
4169
|
var getString = (value) => typeof value === "string" && value.trim() ? value.trim() : undefined;
|
|
@@ -4121,17 +4241,17 @@ var createVoiceAgentSquadStatusStore = (path = "/api/voice-traces", options = {}
|
|
|
4121
4241
|
|
|
4122
4242
|
// src/angular/voice-agent-squad-status.service.ts
|
|
4123
4243
|
var _dec = [
|
|
4124
|
-
|
|
4244
|
+
Injectable17({ providedIn: "root" })
|
|
4125
4245
|
];
|
|
4126
4246
|
var _init = __decoratorStart(undefined);
|
|
4127
4247
|
|
|
4128
4248
|
class VoiceAgentSquadStatusService {
|
|
4129
4249
|
connect(path = "/api/voice-traces", options = {}) {
|
|
4130
4250
|
const store = createVoiceAgentSquadStatusStore(path, options);
|
|
4131
|
-
const errorSignal =
|
|
4132
|
-
const isLoadingSignal =
|
|
4133
|
-
const reportSignal =
|
|
4134
|
-
const updatedAtSignal =
|
|
4251
|
+
const errorSignal = signal17(null);
|
|
4252
|
+
const isLoadingSignal = signal17(false);
|
|
4253
|
+
const reportSignal = signal17(undefined);
|
|
4254
|
+
const updatedAtSignal = signal17(undefined);
|
|
4135
4255
|
const sync = () => {
|
|
4136
4256
|
const snapshot = store.getSnapshot();
|
|
4137
4257
|
errorSignal.set(snapshot.error);
|
|
@@ -4147,12 +4267,12 @@ class VoiceAgentSquadStatusService {
|
|
|
4147
4267
|
unsubscribe();
|
|
4148
4268
|
store.close();
|
|
4149
4269
|
},
|
|
4150
|
-
current:
|
|
4151
|
-
error:
|
|
4152
|
-
isLoading:
|
|
4270
|
+
current: computed16(() => reportSignal()?.current),
|
|
4271
|
+
error: computed16(() => errorSignal()),
|
|
4272
|
+
isLoading: computed16(() => isLoadingSignal()),
|
|
4153
4273
|
refresh: store.refresh,
|
|
4154
|
-
report:
|
|
4155
|
-
updatedAt:
|
|
4274
|
+
report: computed16(() => reportSignal()),
|
|
4275
|
+
updatedAt: computed16(() => updatedAtSignal())
|
|
4156
4276
|
};
|
|
4157
4277
|
}
|
|
4158
4278
|
}
|
|
@@ -4161,7 +4281,7 @@ __runInitializers(_init, 1, VoiceAgentSquadStatusService);
|
|
|
4161
4281
|
__decoratorMetadata(_init, VoiceAgentSquadStatusService);
|
|
4162
4282
|
let _VoiceAgentSquadStatusService = VoiceAgentSquadStatusService;
|
|
4163
4283
|
// src/angular/voice-turn-latency.service.ts
|
|
4164
|
-
import { computed as
|
|
4284
|
+
import { computed as computed17, Injectable as Injectable18, signal as signal18 } from "@angular/core";
|
|
4165
4285
|
|
|
4166
4286
|
// src/client/turnLatency.ts
|
|
4167
4287
|
var fetchVoiceTurnLatency = async (path = "/api/turn-latency", options = {}) => {
|
|
@@ -4268,17 +4388,17 @@ var createVoiceTurnLatencyStore = (path = "/api/turn-latency", options = {}) =>
|
|
|
4268
4388
|
|
|
4269
4389
|
// src/angular/voice-turn-latency.service.ts
|
|
4270
4390
|
var _dec = [
|
|
4271
|
-
|
|
4391
|
+
Injectable18({ providedIn: "root" })
|
|
4272
4392
|
];
|
|
4273
4393
|
var _init = __decoratorStart(undefined);
|
|
4274
4394
|
|
|
4275
4395
|
class VoiceTurnLatencyService {
|
|
4276
4396
|
connect(path = "/api/turn-latency", options = {}) {
|
|
4277
4397
|
const store = createVoiceTurnLatencyStore(path, options);
|
|
4278
|
-
const errorSignal =
|
|
4279
|
-
const isLoadingSignal =
|
|
4280
|
-
const reportSignal =
|
|
4281
|
-
const updatedAtSignal =
|
|
4398
|
+
const errorSignal = signal18(null);
|
|
4399
|
+
const isLoadingSignal = signal18(false);
|
|
4400
|
+
const reportSignal = signal18(undefined);
|
|
4401
|
+
const updatedAtSignal = signal18(undefined);
|
|
4282
4402
|
const sync = () => {
|
|
4283
4403
|
const snapshot = store.getSnapshot();
|
|
4284
4404
|
errorSignal.set(snapshot.error);
|
|
@@ -4294,12 +4414,12 @@ class VoiceTurnLatencyService {
|
|
|
4294
4414
|
unsubscribe();
|
|
4295
4415
|
store.close();
|
|
4296
4416
|
},
|
|
4297
|
-
error:
|
|
4298
|
-
isLoading:
|
|
4417
|
+
error: computed17(() => errorSignal()),
|
|
4418
|
+
isLoading: computed17(() => isLoadingSignal()),
|
|
4299
4419
|
refresh: store.refresh,
|
|
4300
|
-
report:
|
|
4420
|
+
report: computed17(() => reportSignal()),
|
|
4301
4421
|
runProof: store.runProof,
|
|
4302
|
-
updatedAt:
|
|
4422
|
+
updatedAt: computed17(() => updatedAtSignal())
|
|
4303
4423
|
};
|
|
4304
4424
|
}
|
|
4305
4425
|
}
|
|
@@ -4308,7 +4428,7 @@ __runInitializers(_init, 1, VoiceTurnLatencyService);
|
|
|
4308
4428
|
__decoratorMetadata(_init, VoiceTurnLatencyService);
|
|
4309
4429
|
let _VoiceTurnLatencyService = VoiceTurnLatencyService;
|
|
4310
4430
|
// src/angular/voice-turn-quality.service.ts
|
|
4311
|
-
import { computed as
|
|
4431
|
+
import { computed as computed18, Injectable as Injectable19, signal as signal19 } from "@angular/core";
|
|
4312
4432
|
|
|
4313
4433
|
// src/client/turnQuality.ts
|
|
4314
4434
|
var fetchVoiceTurnQuality = async (path = "/api/turn-quality", options = {}) => {
|
|
@@ -4391,17 +4511,17 @@ var createVoiceTurnQualityStore = (path = "/api/turn-quality", options = {}) =>
|
|
|
4391
4511
|
|
|
4392
4512
|
// src/angular/voice-turn-quality.service.ts
|
|
4393
4513
|
var _dec = [
|
|
4394
|
-
|
|
4514
|
+
Injectable19({ providedIn: "root" })
|
|
4395
4515
|
];
|
|
4396
4516
|
var _init = __decoratorStart(undefined);
|
|
4397
4517
|
|
|
4398
4518
|
class VoiceTurnQualityService {
|
|
4399
4519
|
connect(path = "/api/turn-quality", options = {}) {
|
|
4400
4520
|
const store = createVoiceTurnQualityStore(path, options);
|
|
4401
|
-
const errorSignal =
|
|
4402
|
-
const isLoadingSignal =
|
|
4403
|
-
const reportSignal =
|
|
4404
|
-
const updatedAtSignal =
|
|
4521
|
+
const errorSignal = signal19(null);
|
|
4522
|
+
const isLoadingSignal = signal19(false);
|
|
4523
|
+
const reportSignal = signal19(undefined);
|
|
4524
|
+
const updatedAtSignal = signal19(undefined);
|
|
4405
4525
|
const sync = () => {
|
|
4406
4526
|
const snapshot = store.getSnapshot();
|
|
4407
4527
|
errorSignal.set(snapshot.error);
|
|
@@ -4417,11 +4537,11 @@ class VoiceTurnQualityService {
|
|
|
4417
4537
|
unsubscribe();
|
|
4418
4538
|
store.close();
|
|
4419
4539
|
},
|
|
4420
|
-
error:
|
|
4421
|
-
isLoading:
|
|
4540
|
+
error: computed18(() => errorSignal()),
|
|
4541
|
+
isLoading: computed18(() => isLoadingSignal()),
|
|
4422
4542
|
refresh: store.refresh,
|
|
4423
|
-
report:
|
|
4424
|
-
updatedAt:
|
|
4543
|
+
report: computed18(() => reportSignal()),
|
|
4544
|
+
updatedAt: computed18(() => updatedAtSignal())
|
|
4425
4545
|
};
|
|
4426
4546
|
}
|
|
4427
4547
|
}
|
|
@@ -4430,7 +4550,7 @@ __runInitializers(_init, 1, VoiceTurnQualityService);
|
|
|
4430
4550
|
__decoratorMetadata(_init, VoiceTurnQualityService);
|
|
4431
4551
|
let _VoiceTurnQualityService = VoiceTurnQualityService;
|
|
4432
4552
|
// src/angular/voice-workflow-status.service.ts
|
|
4433
|
-
import { computed as
|
|
4553
|
+
import { computed as computed19, Injectable as Injectable20, signal as signal20 } from "@angular/core";
|
|
4434
4554
|
|
|
4435
4555
|
// src/client/workflowStatus.ts
|
|
4436
4556
|
var fetchVoiceWorkflowStatus = async (path = "/evals/scenarios/json", options = {}) => {
|
|
@@ -4513,17 +4633,17 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
4513
4633
|
|
|
4514
4634
|
// src/angular/voice-workflow-status.service.ts
|
|
4515
4635
|
var _dec = [
|
|
4516
|
-
|
|
4636
|
+
Injectable20({ providedIn: "root" })
|
|
4517
4637
|
];
|
|
4518
4638
|
var _init = __decoratorStart(undefined);
|
|
4519
4639
|
|
|
4520
4640
|
class VoiceWorkflowStatusService {
|
|
4521
4641
|
connect(path = "/evals/scenarios/json", options = {}) {
|
|
4522
4642
|
const store = createVoiceWorkflowStatusStore(path, options);
|
|
4523
|
-
const errorSignal =
|
|
4524
|
-
const isLoadingSignal =
|
|
4525
|
-
const reportSignal =
|
|
4526
|
-
const updatedAtSignal =
|
|
4643
|
+
const errorSignal = signal20(null);
|
|
4644
|
+
const isLoadingSignal = signal20(false);
|
|
4645
|
+
const reportSignal = signal20(undefined);
|
|
4646
|
+
const updatedAtSignal = signal20(undefined);
|
|
4527
4647
|
const sync = () => {
|
|
4528
4648
|
const snapshot = store.getSnapshot();
|
|
4529
4649
|
errorSignal.set(snapshot.error);
|
|
@@ -4541,11 +4661,11 @@ class VoiceWorkflowStatusService {
|
|
|
4541
4661
|
unsubscribe();
|
|
4542
4662
|
store.close();
|
|
4543
4663
|
},
|
|
4544
|
-
error:
|
|
4545
|
-
isLoading:
|
|
4664
|
+
error: computed19(() => errorSignal()),
|
|
4665
|
+
isLoading: computed19(() => isLoadingSignal()),
|
|
4546
4666
|
refresh: store.refresh,
|
|
4547
|
-
report:
|
|
4548
|
-
updatedAt:
|
|
4667
|
+
report: computed19(() => reportSignal()),
|
|
4668
|
+
updatedAt: computed19(() => updatedAtSignal())
|
|
4549
4669
|
};
|
|
4550
4670
|
}
|
|
4551
4671
|
}
|
|
@@ -4565,6 +4685,7 @@ export {
|
|
|
4565
4685
|
VoiceProviderContractsService,
|
|
4566
4686
|
VoiceProviderCapabilitiesService,
|
|
4567
4687
|
VoiceProofTrendsService,
|
|
4688
|
+
VoiceProfileComparisonService,
|
|
4568
4689
|
VoicePlatformCoverageService,
|
|
4569
4690
|
VoiceOpsStatusService,
|
|
4570
4691
|
VoiceOpsActionCenterService,
|