@formant/data-sdk 1.15.0 → 1.16.0

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.
@@ -1331,10 +1331,10 @@ function at(a) {
1331
1331
  function it(a) {
1332
1332
  return a.min;
1333
1333
  }
1334
- function ot(a) {
1334
+ function rt(a) {
1335
1335
  return a.count === 0 ? -1 : a.sum / a.count;
1336
1336
  }
1337
- function rt(a) {
1337
+ function ot(a) {
1338
1338
  return a.sum;
1339
1339
  }
1340
1340
  function st(a) {
@@ -1344,8 +1344,8 @@ const nn = {
1344
1344
  min: it,
1345
1345
  max: at,
1346
1346
  "standard deviation": nt,
1347
- average: ot,
1348
- sum: rt,
1347
+ average: rt,
1348
+ sum: ot,
1349
1349
  count: st
1350
1350
  }, te = {
1351
1351
  day: {
@@ -1489,7 +1489,7 @@ async function ie(a, e, t, n, i) {
1489
1489
  }
1490
1490
  })).json()).items;
1491
1491
  }
1492
- async function oe() {
1492
+ async function re() {
1493
1493
  if (!r.token)
1494
1494
  throw new Error("Not authenticated");
1495
1495
  const a = $.get();
@@ -1499,7 +1499,7 @@ async function oe() {
1499
1499
  await a.shutdown();
1500
1500
  }
1501
1501
  }
1502
- async function re() {
1502
+ async function oe() {
1503
1503
  if (!r.token)
1504
1504
  throw new Error("Not authenticated");
1505
1505
  const a = $.get();
@@ -1758,7 +1758,7 @@ class E extends Y {
1758
1758
  throw new Error(`Realtime connection hasn't been started for ${this.id}`);
1759
1759
  }
1760
1760
  async isInRealtimeSession() {
1761
- const e = await re(), t = await oe(), n = e.find((i) => i.deviceId === this.id);
1761
+ const e = await oe(), t = await re(), n = e.find((i) => i.deviceId === this.id);
1762
1762
  return n ? t[n.id].length > 0 : !1;
1763
1763
  }
1764
1764
  async getAvailableCommands() {
@@ -2184,7 +2184,7 @@ async function M() {
2184
2184
  (t) => new E(
2185
2185
  t.id,
2186
2186
  t.name,
2187
- t.organizationId,
2187
+ f(r.currentOrganization),
2188
2188
  t.tags
2189
2189
  )
2190
2190
  );
@@ -2490,7 +2490,7 @@ const S = class {
2490
2490
  }
2491
2491
  };
2492
2492
  let l = S;
2493
- s(l, "defaultDeviceId"), s(l, "knownContext", []), s(l, "createFleet", Mt), s(l, "listFleets", It), s(l, "getFleet", Ot), s(l, "patchFleet", _t), s(l, "deleteFleet", yt), s(l, "addDeviceToFleet", wt), s(l, "getFleetDevices", Rt), s(l, "aggregateTelemetry", pt), s(l, "createShareLink", ee), s(l, "eventsCounter", ne), s(l, "getAnalyticStreams", gt), s(l, "getAnalyticsModules", vt), s(l, "getAnalyticsRows", Tt), s(l, "getAnnotationCount", B), s(l, "getAnnotationCountByIntervals", ae), s(l, "getCurrentGroup", Ct), s(l, "getDevices", M), s(l, "getEvent", St), s(l, "getFileUrl", kt), s(l, "getInterventions", At), s(l, "getLatestTelemetry", bt), s(l, "getOnlineDevices", jt), s(l, "getPeers", re), s(l, "getRealtimeDevices", Dt), s(l, "getRealtimeSessions", oe), s(l, "getStreams", Nt), s(l, "getTaskReportRows", Pt), s(l, "getTaskReportTables", Lt), s(l, "getTelemetry", ie), s(l, "getViews", Z), s(l, "patchStream", $t), s(l, "patchView", zt), s(l, "queryAnalytics", Bt), s(l, "queryDevices", se), s(l, "queryEvents", z), s(l, "queryTelemetry", _), s(l, "getAllEventTriggerGroup", qt), s(l, "getEventTriggerGroup", xt), s(l, "patchEventTriggergroup", Ut);
2493
+ s(l, "defaultDeviceId"), s(l, "knownContext", []), s(l, "createFleet", Mt), s(l, "listFleets", It), s(l, "getFleet", Ot), s(l, "patchFleet", _t), s(l, "deleteFleet", yt), s(l, "addDeviceToFleet", wt), s(l, "getFleetDevices", Rt), s(l, "aggregateTelemetry", pt), s(l, "createShareLink", ee), s(l, "eventsCounter", ne), s(l, "getAnalyticStreams", gt), s(l, "getAnalyticsModules", vt), s(l, "getAnalyticsRows", Tt), s(l, "getAnnotationCount", B), s(l, "getAnnotationCountByIntervals", ae), s(l, "getCurrentGroup", Ct), s(l, "getDevices", M), s(l, "getEvent", St), s(l, "getFileUrl", kt), s(l, "getInterventions", At), s(l, "getLatestTelemetry", bt), s(l, "getOnlineDevices", jt), s(l, "getPeers", oe), s(l, "getRealtimeDevices", Dt), s(l, "getRealtimeSessions", re), s(l, "getStreams", Nt), s(l, "getTaskReportRows", Pt), s(l, "getTaskReportTables", Lt), s(l, "getTelemetry", ie), s(l, "getViews", Z), s(l, "patchStream", $t), s(l, "patchView", zt), s(l, "queryAnalytics", Bt), s(l, "queryDevices", se), s(l, "queryEvents", z), s(l, "queryTelemetry", _), s(l, "getAllEventTriggerGroup", qt), s(l, "getEventTriggerGroup", xt), s(l, "patchEventTriggergroup", Ut);
2494
2494
  class an {
2495
2495
  static async set(e, t, n) {
2496
2496
  try {
@@ -2595,7 +2595,7 @@ function V() {
2595
2595
  return a ? a.includes("Firefox/") ? "Firefox" : a.includes("Edg/") ? "Edge" : a.includes("Chrome/") ? "Chrome" : a.includes("Safari/") ? "Safari" : a.includes("MSIE/") || a.includes("Trident/") ? "IE" : "Other" : "Other";
2596
2596
  }
2597
2597
  const Vt = "audio-chunk";
2598
- class on {
2598
+ class rn {
2599
2599
  constructor(e, t) {
2600
2600
  s(this, "muted", !1);
2601
2601
  s(this, "hasReceivedData", !1);
@@ -2667,7 +2667,7 @@ class on {
2667
2667
  (async () => await this.device.changeStreamAudioType(t.name, e))();
2668
2668
  }
2669
2669
  }
2670
- class rn {
2670
+ class on {
2671
2671
  static async listAccounts() {
2672
2672
  if (!r.token)
2673
2673
  throw new Error("Not authenticated");
@@ -2893,9 +2893,9 @@ try {
2893
2893
  } catch {
2894
2894
  }
2895
2895
  export {
2896
- rn as Account,
2896
+ on as Account,
2897
2897
  g as App,
2898
- on as AudioPlayer,
2898
+ rn as AudioPlayer,
2899
2899
  r as Authentication,
2900
2900
  Xe as BinaryRequestDataChannel,
2901
2901
  Fe as CaptureStream,
@@ -2918,12 +2918,12 @@ export {
2918
2918
  fn as annotationTypes,
2919
2919
  wn as eventTypes,
2920
2920
  ct as formatTimeFrameText,
2921
- ot as getAverage,
2921
+ rt as getAverage,
2922
2922
  st as getCount,
2923
2923
  at as getMax,
2924
2924
  it as getMin,
2925
2925
  nt as getStandardDeviation,
2926
- rt as getSum,
2926
+ ot as getSum,
2927
2927
  tt as getVariance,
2928
2928
  pn as healthStatuses,
2929
2929
  yn as interventionTypes,