@sap-ux/telemetry 0.5.73 → 0.5.75

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.
@@ -1,5 +1,6 @@
1
1
  import { Client } from './client';
2
2
  import { SampleRate } from '../types/sample-rate';
3
+ import type { TelemetryMeasurements, TelemetryProperties } from '../types';
3
4
  /**
4
5
  *
5
6
  */
@@ -25,11 +26,7 @@ declare class ApplicationInsightClient extends Client {
25
26
  * @param ignoreSettings Ignore telemetryEnabled settings and skip submitting telemetry data
26
27
  * @returns Promise<void>
27
28
  */
28
- reportBlocking(eventName: string, properties: {
29
- [key: string]: string | boolean;
30
- }, measurements: {
31
- [key: string]: number;
32
- }, sampleRate: SampleRate | undefined, ignoreSettings?: boolean): Promise<void>;
29
+ reportBlocking(eventName: string, properties: TelemetryProperties, measurements: TelemetryMeasurements, sampleRate: SampleRate | undefined, ignoreSettings?: boolean): Promise<void>;
33
30
  /**
34
31
  * Send a telemetry event to Azure Application Insights. The telemetry event sending is still non-blocking
35
32
  * in this API. To make sure telemetry event is sent to Azure backend before next statement, please see
@@ -42,11 +39,7 @@ declare class ApplicationInsightClient extends Client {
42
39
  * @param telemetryHelperProperties Properties that are passed to specific TelemetryClient for generating specific properties (E.g. ToolsSuiteTelemetryClient)
43
40
  * @param ignoreSettings Ignore telemetryEnabled settings and skip submitting telemetry data
44
41
  */
45
- report(eventName: string, properties: {
46
- [key: string]: string | boolean;
47
- }, measurements: {
48
- [key: string]: number;
49
- }, sampleRate: SampleRate | undefined, telemetryHelperProperties?: {
42
+ report(eventName: string, properties: TelemetryProperties, measurements: TelemetryMeasurements, sampleRate: SampleRate | undefined, telemetryHelperProperties?: {
50
43
  [key: string]: string;
51
44
  }, ignoreSettings?: boolean): Promise<void>;
52
45
  /**
@@ -0,0 +1,7 @@
1
+ export interface TelemetryProperties {
2
+ [key: string]: string | boolean | number;
3
+ }
4
+ export interface TelemetryMeasurements {
5
+ [key: string]: number;
6
+ }
7
+ //# sourceMappingURL=event.d.ts.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=event.js.map
@@ -1,3 +1,4 @@
1
+ export * from './event';
1
2
  export * from './event-header';
2
3
  export * from './event-name';
3
4
  export * from './project-info';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./event"), exports);
17
18
  __exportStar(require("./event-header"), exports);
18
19
  __exportStar(require("./event-name"), exports);
19
20
  __exportStar(require("./project-info"), exports);
package/dist/index.d.ts CHANGED
@@ -4,7 +4,8 @@ export { ApplicationInsightClient } from './base/client/azure-appinsight-client'
4
4
  export { EventHeader } from './base/types/event-header';
5
5
  export { EventName } from './base/types/event-name';
6
6
  export { SampleRate } from './base/types/sample-rate';
7
- export { initTelemetrySettings, setEnableTelemetry, getTelemetrySetting, ToolsSuiteTelemetryClient, ToolsSuiteTelemetryInitSettings, TelemetryHelperProperties, TelemetryEvent, TelemetryMeasurements, TelemetryProperties, ToolsId } from './tooling-telemetry';
7
+ export { TelemetryMeasurements, TelemetryProperties } from './base/types/event';
8
+ export { initTelemetrySettings, setEnableTelemetry, getTelemetrySetting, ToolsSuiteTelemetryClient, ToolsSuiteTelemetryInitSettings, TelemetryHelperProperties, TelemetryEvent, ToolsId } from './tooling-telemetry';
8
9
  export { InterceptorTypes } from './base/interceptor/config';
9
10
  export { PerformanceMeasurementAPI } from './base/performance/api';
10
11
  export { ParamRecordConfig, ParamRecordConfigField } from './base/utils/param-processing';
@@ -1,5 +1,5 @@
1
1
  import { ApplicationInsightClient } from '../base/client/azure-appinsight-client';
2
- import type { SampleRate } from '../base/types/sample-rate';
2
+ import type { SampleRate, TelemetryMeasurements, TelemetryProperties } from '../base/types';
3
3
  import type { TelemetryHelperProperties, TelemetryEvent } from './types';
4
4
  /**
5
5
  *
@@ -24,11 +24,7 @@ declare class ToolsSuiteTelemetryClient extends ApplicationInsightClient {
24
24
  * @param ignoreSettings Ignore telemetryEnabled settings and skip submitting telemetry data
25
25
  * @returns Promise<void>
26
26
  */
27
- report(eventName: string, properties: {
28
- [key: string]: string;
29
- }, measurements: {
30
- [key: string]: number;
31
- }, sampleRate: SampleRate | undefined, telemetryHelperProperties?: TelemetryHelperProperties, ignoreSettings?: boolean): Promise<void>;
27
+ report(eventName: string, properties: TelemetryProperties, measurements: TelemetryMeasurements, sampleRate: SampleRate | undefined, telemetryHelperProperties?: TelemetryHelperProperties, ignoreSettings?: boolean): Promise<void>;
32
28
  /**
33
29
  * Send a telemetry event to Azure Application Insights.
34
30
  *
@@ -1,4 +1,4 @@
1
- import type { ProjectInfo } from '../base/types';
1
+ import type { ProjectInfo, TelemetryMeasurements, TelemetryProperties } from '../base/types';
2
2
  import type { AppType } from '@sap-ux/project-access/dist/types';
3
3
  export type TelemetryHelperProperties = {
4
4
  appPath: string;
@@ -72,12 +72,6 @@ export interface CommonFioriProjectProperties extends TelemetryProperties {
72
72
  [CommonProperties.TemplateVersion]: string;
73
73
  [CommonProperties.ApplicationType]: AppType;
74
74
  }
75
- export interface TelemetryProperties {
76
- [key: string]: string | boolean;
77
- }
78
- export interface TelemetryMeasurements {
79
- [key: string]: number;
80
- }
81
75
  export type TelemetryEvent = {
82
76
  eventName: string;
83
77
  properties: TelemetryProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/telemetry",
3
- "version": "0.5.73",
3
+ "version": "0.5.75",
4
4
  "description": "Library for sending usage telemetry data",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,9 +19,9 @@
19
19
  "performance-now": "2.1.0",
20
20
  "yaml": "2.3.3",
21
21
  "@sap-ux/store": "1.0.0",
22
- "@sap-ux/project-access": "1.29.18",
22
+ "@sap-ux/project-access": "1.29.19",
23
23
  "@sap-ux/btp-utils": "1.0.3",
24
- "@sap-ux/ui5-config": "0.26.5",
24
+ "@sap-ux/ui5-config": "0.27.0",
25
25
  "@sap-ux/logger": "0.6.0"
26
26
  },
27
27
  "devDependencies": {