@formant/data-sdk 0.0.141 → 0.0.142

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.
Files changed (152) hide show
  1. package/dist/types/common/browser.d.ts +2 -0
  2. package/dist/types/common/defined.d.ts +3 -0
  3. package/dist/types/common/delay.d.ts +1 -0
  4. package/dist/types/common/duration.d.ts +10 -0
  5. package/dist/types/common/fork.d.ts +5 -0
  6. package/dist/types/common/stringToArrayBuffer.d.ts +1 -0
  7. package/dist/types/data-sdk/src/App.d.ts +131 -0
  8. package/dist/types/data-sdk/src/AudioPlayer.d.ts +22 -0
  9. package/dist/types/data-sdk/src/Authentication.d.ts +52 -0
  10. package/dist/types/data-sdk/src/CaptureStream.d.ts +18 -0
  11. package/dist/types/data-sdk/src/DataChannel.d.ts +29 -0
  12. package/dist/types/data-sdk/src/Device.d.ts +157 -0
  13. package/dist/types/data-sdk/src/Fleet.d.ts +204 -0
  14. package/dist/types/data-sdk/src/KeyValue.d.ts +6 -0
  15. package/dist/types/data-sdk/src/Manipulator.d.ts +20 -0
  16. package/dist/types/data-sdk/src/PeerDevice.d.ts +37 -0
  17. package/dist/types/data-sdk/src/RequestDataChannel.d.ts +29 -0
  18. package/dist/types/data-sdk/src/cache/StoreCache.d.ts +17 -0
  19. package/dist/types/data-sdk/src/cache/filterDataByTime.d.ts +2 -0
  20. package/dist/types/data-sdk/src/cache/filterDataByType.d.ts +3 -0
  21. package/dist/types/data-sdk/src/cache/queryStore.d.ts +11 -0
  22. package/dist/types/data-sdk/src/config.d.ts +1 -0
  23. package/dist/types/data-sdk/src/main.d.ts +131 -0
  24. package/dist/types/data-sdk/src/model/AccessLevel.d.ts +5 -0
  25. package/dist/types/data-sdk/src/model/AggregateLevel.d.ts +1 -0
  26. package/dist/types/data-sdk/src/model/AnalyticsAggregateType.d.ts +2 -0
  27. package/dist/types/data-sdk/src/model/AnalyticsChartType.d.ts +2 -0
  28. package/dist/types/data-sdk/src/model/AnnotationAreaType.d.ts +2 -0
  29. package/dist/types/data-sdk/src/model/AnnotationType.d.ts +2 -0
  30. package/dist/types/data-sdk/src/model/DeviceType.d.ts +2 -0
  31. package/dist/types/data-sdk/src/model/EventSortableColumn.d.ts +1 -0
  32. package/dist/types/data-sdk/src/model/EventType.d.ts +2 -0
  33. package/dist/types/data-sdk/src/model/HealthStatus.d.ts +2 -0
  34. package/dist/types/data-sdk/src/model/HexRgbColor.d.ts +1 -0
  35. package/dist/types/data-sdk/src/model/IAggregateRow.d.ts +8 -0
  36. package/dist/types/data-sdk/src/model/IAnalyticsModule.d.ts +15 -0
  37. package/dist/types/data-sdk/src/model/IAnalyticsModuleConfiguration.d.ts +6 -0
  38. package/dist/types/data-sdk/src/model/IAnnotation.d.ts +13 -0
  39. package/dist/types/data-sdk/src/model/IAnnotationAreaTypeMap.d.ts +4 -0
  40. package/dist/types/data-sdk/src/model/IAnnotationQuery.d.ts +7 -0
  41. package/dist/types/data-sdk/src/model/IBaseEntity.d.ts +7 -0
  42. package/dist/types/data-sdk/src/model/IBaseEvent.d.ts +19 -0
  43. package/dist/types/data-sdk/src/model/IBattery.d.ts +6 -0
  44. package/dist/types/data-sdk/src/model/IBitset.d.ts +4 -0
  45. package/dist/types/data-sdk/src/model/IBoundingBox.d.ts +6 -0
  46. package/dist/types/data-sdk/src/model/IColorRGBA.d.ts +6 -0
  47. package/dist/types/data-sdk/src/model/ICommandDeliveryEvent.d.ts +3 -0
  48. package/dist/types/data-sdk/src/model/ICommandEventBase.d.ts +5 -0
  49. package/dist/types/data-sdk/src/model/ICommandParameter.d.ts +9 -0
  50. package/dist/types/data-sdk/src/model/ICommandRequest.d.ts +9 -0
  51. package/dist/types/data-sdk/src/model/ICommandRequestEvent.d.ts +5 -0
  52. package/dist/types/data-sdk/src/model/ICommandResponse.d.ts +13 -0
  53. package/dist/types/data-sdk/src/model/ICommandResponseEvent.d.ts +3 -0
  54. package/dist/types/data-sdk/src/model/IComment.d.ts +7 -0
  55. package/dist/types/data-sdk/src/model/IConfigurationMap.d.ts +3 -0
  56. package/dist/types/data-sdk/src/model/ICustomEvent.d.ts +5 -0
  57. package/dist/types/data-sdk/src/model/IDataAggregate.d.ts +7 -0
  58. package/dist/types/data-sdk/src/model/IDataPoint.d.ts +7 -0
  59. package/dist/types/data-sdk/src/model/IDeviceQuery.d.ts +14 -0
  60. package/dist/types/data-sdk/src/model/IEvent.d.ts +12 -0
  61. package/dist/types/data-sdk/src/model/IEventFilter.d.ts +19 -0
  62. package/dist/types/data-sdk/src/model/IEventQuery.d.ts +7 -0
  63. package/dist/types/data-sdk/src/model/IEventSort.d.ts +6 -0
  64. package/dist/types/data-sdk/src/model/IFieldParametersTypeMap.d.ts +8 -0
  65. package/dist/types/data-sdk/src/model/IFile.d.ts +6 -0
  66. package/dist/types/data-sdk/src/model/IFileInfo.d.ts +6 -0
  67. package/dist/types/data-sdk/src/model/IFilter.d.ts +10 -0
  68. package/dist/types/data-sdk/src/model/IGoal.d.ts +5 -0
  69. package/dist/types/data-sdk/src/model/IGoalID.d.ts +3 -0
  70. package/dist/types/data-sdk/src/model/IHealth.d.ts +4 -0
  71. package/dist/types/data-sdk/src/model/IImage.d.ts +6 -0
  72. package/dist/types/data-sdk/src/model/IImageAnnotation.d.ts +9 -0
  73. package/dist/types/data-sdk/src/model/IInterventionRequest.d.ts +9 -0
  74. package/dist/types/data-sdk/src/model/IInterventionResponse.d.ts +10 -0
  75. package/dist/types/data-sdk/src/model/IInterventionTypeMap.d.ts +20 -0
  76. package/dist/types/data-sdk/src/model/ILabel.d.ts +4 -0
  77. package/dist/types/data-sdk/src/model/ILabeledPolygon.d.ts +4 -0
  78. package/dist/types/data-sdk/src/model/ILabelingRequestData.d.ts +8 -0
  79. package/dist/types/data-sdk/src/model/ILabelingResponseData.d.ts +4 -0
  80. package/dist/types/data-sdk/src/model/ILocalization.d.ts +14 -0
  81. package/dist/types/data-sdk/src/model/ILocation.d.ts +6 -0
  82. package/dist/types/data-sdk/src/model/IMap.d.ts +10 -0
  83. package/dist/types/data-sdk/src/model/INumericAggregate.d.ts +7 -0
  84. package/dist/types/data-sdk/src/model/INumericSetAggregateMap.d.ts +5 -0
  85. package/dist/types/data-sdk/src/model/INumericSetEntry.d.ts +5 -0
  86. package/dist/types/data-sdk/src/model/IOdometry.d.ts +7 -0
  87. package/dist/types/data-sdk/src/model/IPath.d.ts +5 -0
  88. package/dist/types/data-sdk/src/model/IPointCloud.d.ts +6 -0
  89. package/dist/types/data-sdk/src/model/IPortForwardingSessionRecord.d.ts +3 -0
  90. package/dist/types/data-sdk/src/model/IQuaternion.d.ts +6 -0
  91. package/dist/types/data-sdk/src/model/IQuery.d.ts +9 -0
  92. package/dist/types/data-sdk/src/model/IRtcSessionRecord.d.ts +9 -0
  93. package/dist/types/data-sdk/src/model/IScopeFilter.d.ts +6 -0
  94. package/dist/types/data-sdk/src/model/ISelectionRequestData.d.ts +6 -0
  95. package/dist/types/data-sdk/src/model/ISelectionResponseData.d.ts +3 -0
  96. package/dist/types/data-sdk/src/model/IShare.d.ts +16 -0
  97. package/dist/types/data-sdk/src/model/ISheetParameters.d.ts +5 -0
  98. package/dist/types/data-sdk/src/model/ISpreadsheetIdRange.d.ts +4 -0
  99. package/dist/types/data-sdk/src/model/ISqlColumn.d.ts +6 -0
  100. package/dist/types/data-sdk/src/model/ISqlQuery.d.ts +21 -0
  101. package/dist/types/data-sdk/src/model/ISqlResult.d.ts +12 -0
  102. package/dist/types/data-sdk/src/model/ISqlRow.d.ts +5 -0
  103. package/dist/types/data-sdk/src/model/IStream.d.ts +18 -0
  104. package/dist/types/data-sdk/src/model/IStreamAggregateData.d.ts +11 -0
  105. package/dist/types/data-sdk/src/model/IStreamAggregateTypeMap.d.ts +10 -0
  106. package/dist/types/data-sdk/src/model/IStreamColumn.d.ts +7 -0
  107. package/dist/types/data-sdk/src/model/IStreamCurrentValue.d.ts +13 -0
  108. package/dist/types/data-sdk/src/model/IStreamData.d.ts +11 -0
  109. package/dist/types/data-sdk/src/model/IStreamTypeMap.d.ts +27 -0
  110. package/dist/types/data-sdk/src/model/ISystemEvent.d.ts +3 -0
  111. package/dist/types/data-sdk/src/model/ITagParameters.d.ts +3 -0
  112. package/dist/types/data-sdk/src/model/ITagSets.d.ts +3 -0
  113. package/dist/types/data-sdk/src/model/ITaggedUsers.d.ts +4 -0
  114. package/dist/types/data-sdk/src/model/ITags.d.ts +3 -0
  115. package/dist/types/data-sdk/src/model/ITaskReportColumn.d.ts +7 -0
  116. package/dist/types/data-sdk/src/model/ITeleopRequestData.d.ts +3 -0
  117. package/dist/types/data-sdk/src/model/ITeleopResponseData.d.ts +4 -0
  118. package/dist/types/data-sdk/src/model/ITeleopSessionRecord.d.ts +3 -0
  119. package/dist/types/data-sdk/src/model/ITransform.d.ts +6 -0
  120. package/dist/types/data-sdk/src/model/ITransformNode.d.ts +7 -0
  121. package/dist/types/data-sdk/src/model/ITriggeredEvent.d.ts +10 -0
  122. package/dist/types/data-sdk/src/model/ITwist.d.ts +5 -0
  123. package/dist/types/data-sdk/src/model/IUserParameters.d.ts +4 -0
  124. package/dist/types/data-sdk/src/model/IVector3.d.ts +5 -0
  125. package/dist/types/data-sdk/src/model/IVideo.d.ts +7 -0
  126. package/dist/types/data-sdk/src/model/IView.d.ts +15 -0
  127. package/dist/types/data-sdk/src/model/InterventionType.d.ts +2 -0
  128. package/dist/types/data-sdk/src/model/IsoDate.d.ts +1 -0
  129. package/dist/types/data-sdk/src/model/JsonSchema.d.ts +39 -0
  130. package/dist/types/data-sdk/src/model/Severity.d.ts +2 -0
  131. package/dist/types/data-sdk/src/model/SortOrder.d.ts +1 -0
  132. package/dist/types/data-sdk/src/model/StreamType.d.ts +2 -0
  133. package/dist/types/data-sdk/src/model/Timestamp.d.ts +1 -0
  134. package/dist/types/data-sdk/src/model/Uuid.d.ts +1 -0
  135. package/dist/types/data-sdk/src/model/VideoMimeType.d.ts +2 -0
  136. package/dist/types/data-sdk/src/model/accessLevels.d.ts +1 -0
  137. package/dist/types/data-sdk/src/model/aggregateLevels.d.ts +2 -0
  138. package/dist/types/data-sdk/src/model/analyticsAggregteTypes.d.ts +1 -0
  139. package/dist/types/data-sdk/src/model/analyticsChartTypes.d.ts +1 -0
  140. package/dist/types/data-sdk/src/model/annotationTypes.d.ts +1 -0
  141. package/dist/types/data-sdk/src/model/deviceTypes.d.ts +1 -0
  142. package/dist/types/data-sdk/src/model/eventTypes.d.ts +1 -0
  143. package/dist/types/data-sdk/src/model/healthStatuses.d.ts +1 -0
  144. package/dist/types/data-sdk/src/model/interventionTypes.d.ts +1 -0
  145. package/dist/types/data-sdk/src/model/severities.d.ts +1 -0
  146. package/dist/types/data-sdk/src/model/videoMimeTypes.d.ts +1 -0
  147. package/dist/types/data-sdk/src/utils/aggregateFunctionUtils.d.ts +28 -0
  148. package/dist/types/data-sdk/src/utils/index.d.ts +4 -0
  149. package/dist/types/data-sdk/src/utils/numericAggregateUtils.d.ts +24 -0
  150. package/dist/types/data-sdk/src/utils/serializeHash.d.ts +2 -0
  151. package/dist/types/data-sdk/src/utils/timeout.d.ts +1 -0
  152. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export declare const deviceType: readonly ["default", "capture"];
@@ -0,0 +1 @@
1
+ export declare const eventTypes: readonly ["triggered-event", "intervention-request", "teleop-session-record", "port-forwarding-session-record", "command-request", "command-response", "command-delivery", "custom", "comment", "system", "annotation"];
@@ -0,0 +1 @@
1
+ export declare const healthStatuses: readonly ["unknown", "operational", "offline", "error"];
@@ -0,0 +1 @@
1
+ export declare const interventionTypes: string[];
@@ -0,0 +1 @@
1
+ export declare const severities: readonly ["info", "warning", "error", "critical"];
@@ -0,0 +1 @@
1
+ export declare const videoMimeTypes: readonly ["video/mp4"];
@@ -0,0 +1,28 @@
1
+ import { INumericAggregate } from "../model/INumericAggregate";
2
+ export declare const vailableAggregationIntervals: readonly ["day", "week", "month", "year", "hour", "minute", "quarter"];
3
+ export type ValidAggregationInterval = typeof vailableAggregationIntervals[number];
4
+ export type IAggregateByDateFunctions = {
5
+ [key in ValidAggregationInterval]: AggregateFunction;
6
+ };
7
+ export declare const aggregateFunctions: readonly ["interval", "start", "end", "sub", "get"];
8
+ export type AggregateFunctions = typeof aggregateFunctions[number];
9
+ export type AggregateFunction = {
10
+ [key in AggregateFunctions]: any;
11
+ };
12
+ export declare function getVariance(a: INumericAggregate): number;
13
+ export declare function getStandardDeviation(a: INumericAggregate): number;
14
+ export declare function getMax(a: INumericAggregate): number;
15
+ export declare function getMin(a: INumericAggregate): number;
16
+ export declare function getAverage(a: INumericAggregate): number;
17
+ export declare function getSum(a: INumericAggregate): number;
18
+ export declare function getCount(a: INumericAggregate): number;
19
+ export declare const aggregateFunctionMap: {
20
+ min: typeof getMin;
21
+ max: typeof getMax;
22
+ "standard deviation": typeof getStandardDeviation;
23
+ average: typeof getAverage;
24
+ sum: typeof getSum;
25
+ count: typeof getCount;
26
+ };
27
+ export declare const aggregateByDateFunctions: any;
28
+ export declare const formatTimeFrameText: (start: string, end: string) => string;
@@ -0,0 +1,4 @@
1
+ export * from "./aggregateFunctionUtils";
2
+ export * from "./numericAggregateUtils";
3
+ export * from "./timeout";
4
+ export * from "./serializeHash";
@@ -0,0 +1,24 @@
1
+ import { INumericAggregate, IStreamAggregateData, IStreamTypeMap } from "../main";
2
+ export type WireINumericSetAggregateMap = {
3
+ [id: string]: {
4
+ value: INumericAggregate;
5
+ unit?: string;
6
+ };
7
+ };
8
+ export declare function getZeroINumericSet(): {
9
+ min: number;
10
+ max: number;
11
+ sum: number;
12
+ count: number;
13
+ sumOfSquares: number;
14
+ };
15
+ export declare function reduceNumericStreamAggregates(stream: IStreamAggregateData<keyof IStreamTypeMap>): {
16
+ min: number;
17
+ max: number;
18
+ sum: number;
19
+ count: number;
20
+ sumOfSquares: number;
21
+ };
22
+ export declare function reduceNumericSetStreamAggregates(stream: IStreamAggregateData<keyof IStreamTypeMap>, numericSetKey: string): INumericAggregate;
23
+ export declare function combineNumericAggregates(e1: INumericAggregate, e2: INumericAggregate): INumericAggregate;
24
+ export declare function combineNumericSetAggregates(e1: WireINumericSetAggregateMap, e2: WireINumericSetAggregateMap): WireINumericSetAggregateMap;
@@ -0,0 +1,2 @@
1
+ export declare function serializeHash(value: any): string;
2
+ export declare function deserializeHash(value: string): any;
@@ -0,0 +1 @@
1
+ export declare const timeout: (s: number) => Promise<unknown>;
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "require": "./dist/data-sdk.umd.js"
19
19
  }
20
20
  },
21
- "version": "0.0.141",
21
+ "version": "0.0.142",
22
22
  "scripts": {
23
23
  "dev": "vite --port 9146",
24
24
  "build": "tsc && vite build",