@absolutejs/voice 0.0.22-beta.383 → 0.0.22-beta.384

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.
@@ -5021,21 +5021,22 @@ var buildVoiceRealCallProfileHistoryReport = (options = {}) => {
5021
5021
  ];
5022
5022
  const passingHistory = history.filter((report) => report.ok === true);
5023
5023
  const recommendationHistory = passingHistory.length > 0 ? passingHistory : history;
5024
- const profiles = buildVoiceProofTrendProfileSummaries(recommendationHistory, options);
5024
+ const profileHistory = history.length > 0 ? history : recommendationHistory;
5025
+ const profiles = buildVoiceProofTrendProfileSummaries(profileHistory, options);
5025
5026
  const summary = {
5026
- cycles: recommendationHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
5027
+ cycles: profileHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
5027
5028
  failedReports: history.filter((report) => report.ok !== true).length,
5028
- maxLiveP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxLiveP95)),
5029
- maxProviderP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxProviderP95)),
5030
- maxTurnP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxTurnP95)),
5029
+ maxLiveP95Ms: maxNumber(profileHistory.map(readProofTrendMaxLiveP95)),
5030
+ maxProviderP95Ms: maxNumber(profileHistory.map(readProofTrendMaxProviderP95)),
5031
+ maxTurnP95Ms: maxNumber(profileHistory.map(readProofTrendMaxTurnP95)),
5031
5032
  profileCount: profiles.length,
5032
5033
  profiles,
5033
- providers: readProofTrendProviders(recommendationHistory),
5034
- runtimeChannel: aggregateProofTrendRuntimeChannel(recommendationHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
5034
+ providers: readProofTrendProviders(profileHistory),
5035
+ runtimeChannel: aggregateProofTrendRuntimeChannel(profileHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
5035
5036
  };
5036
5037
  const trend = buildVoiceProofTrendReport({
5037
5038
  baseUrl: options.baseUrl,
5038
- cycles: flattenProofTrendCycles(recommendationHistory),
5039
+ cycles: flattenProofTrendCycles(profileHistory),
5039
5040
  generatedAt,
5040
5041
  maxAgeMs: options.maxAgeMs,
5041
5042
  now: options.now,
package/dist/index.js CHANGED
@@ -16490,21 +16490,22 @@ var buildVoiceRealCallProfileHistoryReport = (options = {}) => {
16490
16490
  ];
16491
16491
  const passingHistory = history.filter((report) => report.ok === true);
16492
16492
  const recommendationHistory = passingHistory.length > 0 ? passingHistory : history;
16493
- const profiles = buildVoiceProofTrendProfileSummaries(recommendationHistory, options);
16493
+ const profileHistory = history.length > 0 ? history : recommendationHistory;
16494
+ const profiles = buildVoiceProofTrendProfileSummaries(profileHistory, options);
16494
16495
  const summary = {
16495
- cycles: recommendationHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
16496
+ cycles: profileHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
16496
16497
  failedReports: history.filter((report) => report.ok !== true).length,
16497
- maxLiveP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxLiveP95)),
16498
- maxProviderP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxProviderP95)),
16499
- maxTurnP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxTurnP95)),
16498
+ maxLiveP95Ms: maxNumber(profileHistory.map(readProofTrendMaxLiveP95)),
16499
+ maxProviderP95Ms: maxNumber(profileHistory.map(readProofTrendMaxProviderP95)),
16500
+ maxTurnP95Ms: maxNumber(profileHistory.map(readProofTrendMaxTurnP95)),
16500
16501
  profileCount: profiles.length,
16501
16502
  profiles,
16502
- providers: readProofTrendProviders(recommendationHistory),
16503
- runtimeChannel: aggregateProofTrendRuntimeChannel(recommendationHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
16503
+ providers: readProofTrendProviders(profileHistory),
16504
+ runtimeChannel: aggregateProofTrendRuntimeChannel(profileHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
16504
16505
  };
16505
16506
  const trend = buildVoiceProofTrendReport({
16506
16507
  baseUrl: options.baseUrl,
16507
- cycles: flattenProofTrendCycles(recommendationHistory),
16508
+ cycles: flattenProofTrendCycles(profileHistory),
16508
16509
  generatedAt,
16509
16510
  maxAgeMs: options.maxAgeMs,
16510
16511
  now: options.now,
@@ -2608,21 +2608,22 @@ var buildVoiceRealCallProfileHistoryReport = (options = {}) => {
2608
2608
  ];
2609
2609
  const passingHistory = history.filter((report) => report.ok === true);
2610
2610
  const recommendationHistory = passingHistory.length > 0 ? passingHistory : history;
2611
- const profiles = buildVoiceProofTrendProfileSummaries(recommendationHistory, options);
2611
+ const profileHistory = history.length > 0 ? history : recommendationHistory;
2612
+ const profiles = buildVoiceProofTrendProfileSummaries(profileHistory, options);
2612
2613
  const summary = {
2613
- cycles: recommendationHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
2614
+ cycles: profileHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
2614
2615
  failedReports: history.filter((report) => report.ok !== true).length,
2615
- maxLiveP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxLiveP95)),
2616
- maxProviderP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxProviderP95)),
2617
- maxTurnP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxTurnP95)),
2616
+ maxLiveP95Ms: maxNumber(profileHistory.map(readProofTrendMaxLiveP95)),
2617
+ maxProviderP95Ms: maxNumber(profileHistory.map(readProofTrendMaxProviderP95)),
2618
+ maxTurnP95Ms: maxNumber(profileHistory.map(readProofTrendMaxTurnP95)),
2618
2619
  profileCount: profiles.length,
2619
2620
  profiles,
2620
- providers: readProofTrendProviders(recommendationHistory),
2621
- runtimeChannel: aggregateProofTrendRuntimeChannel(recommendationHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
2621
+ providers: readProofTrendProviders(profileHistory),
2622
+ runtimeChannel: aggregateProofTrendRuntimeChannel(profileHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
2622
2623
  };
2623
2624
  const trend = buildVoiceProofTrendReport({
2624
2625
  baseUrl: options.baseUrl,
2625
- cycles: flattenProofTrendCycles(recommendationHistory),
2626
+ cycles: flattenProofTrendCycles(profileHistory),
2626
2627
  generatedAt,
2627
2628
  maxAgeMs: options.maxAgeMs,
2628
2629
  now: options.now,
package/dist/vue/index.js CHANGED
@@ -2529,21 +2529,22 @@ var buildVoiceRealCallProfileHistoryReport = (options = {}) => {
2529
2529
  ];
2530
2530
  const passingHistory = history.filter((report) => report.ok === true);
2531
2531
  const recommendationHistory = passingHistory.length > 0 ? passingHistory : history;
2532
- const profiles = buildVoiceProofTrendProfileSummaries(recommendationHistory, options);
2532
+ const profileHistory = history.length > 0 ? history : recommendationHistory;
2533
+ const profiles = buildVoiceProofTrendProfileSummaries(profileHistory, options);
2533
2534
  const summary = {
2534
- cycles: recommendationHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
2535
+ cycles: profileHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
2535
2536
  failedReports: history.filter((report) => report.ok !== true).length,
2536
- maxLiveP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxLiveP95)),
2537
- maxProviderP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxProviderP95)),
2538
- maxTurnP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxTurnP95)),
2537
+ maxLiveP95Ms: maxNumber(profileHistory.map(readProofTrendMaxLiveP95)),
2538
+ maxProviderP95Ms: maxNumber(profileHistory.map(readProofTrendMaxProviderP95)),
2539
+ maxTurnP95Ms: maxNumber(profileHistory.map(readProofTrendMaxTurnP95)),
2539
2540
  profileCount: profiles.length,
2540
2541
  profiles,
2541
- providers: readProofTrendProviders(recommendationHistory),
2542
- runtimeChannel: aggregateProofTrendRuntimeChannel(recommendationHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
2542
+ providers: readProofTrendProviders(profileHistory),
2543
+ runtimeChannel: aggregateProofTrendRuntimeChannel(profileHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
2543
2544
  };
2544
2545
  const trend = buildVoiceProofTrendReport({
2545
2546
  baseUrl: options.baseUrl,
2546
- cycles: flattenProofTrendCycles(recommendationHistory),
2547
+ cycles: flattenProofTrendCycles(profileHistory),
2547
2548
  generatedAt,
2548
2549
  maxAgeMs: options.maxAgeMs,
2549
2550
  now: options.now,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.383",
3
+ "version": "0.0.22-beta.384",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",