@ms-cloudpack/external-telemetry 0.0.3 → 0.1.1

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 +1,2 @@
1
1
  export declare function getAppName(): Promise<string | undefined>;
2
+ //# sourceMappingURL=getAppName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAppName.d.ts","sourceRoot":"","sources":["../src/getAppName.ts"],"names":[],"mappings":"AAEA,wBAAsB,UAAU,gCAS/B"}
package/lib/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export { reportExternalTelemetryEvent } from './reportExternalTelemetryEvent.js';
2
2
  export type { ReportTelemetryOptions } from './types.js';
3
+ export type { LogLevel } from '@ms-cloudpack/telemetry';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,YAAY,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC"}
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC","sourcesContent":["export { reportExternalTelemetryEvent } from './reportExternalTelemetryEvent.js';\nexport type { ReportTelemetryOptions } from './types.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC","sourcesContent":["export { reportExternalTelemetryEvent } from './reportExternalTelemetryEvent.js';\nexport type { ReportTelemetryOptions } from './types.js';\nexport type { LogLevel } from '@ms-cloudpack/telemetry';\n"]}
@@ -4,3 +4,4 @@ import type { ReportTelemetryOptions } from './types.js';
4
4
  * @param options - The options for reporting the event.
5
5
  */
6
6
  export declare function reportExternalTelemetryEvent(options: ReportTelemetryOptions): Promise<void>;
7
+ //# sourceMappingURL=reportExternalTelemetryEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportExternalTelemetryEvent.d.ts","sourceRoot":"","sources":["../src/reportExternalTelemetryEvent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAIzD;;;GAGG;AACH,wBAAsB,4BAA4B,CAAC,OAAO,EAAE,sBAAsB,iBAqBjF"}
package/lib/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { LogLevel } from '@ms-cloudpack/telemetry';
1
2
  /**
2
3
  * Options for external telemetry.
3
4
  */
@@ -18,5 +19,6 @@ export interface ReportTelemetryOptions {
18
19
  /**
19
20
  * Log level to be used by application insights.
20
21
  */
21
- logLevel?: 'debug' | 'verbose';
22
+ logLevel?: LogLevel;
22
23
  }
24
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
package/lib/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Options for external telemetry.\n */\nexport interface ReportTelemetryOptions {\n /**\n * Event name to be reported into application insights.\n * \"EXTERNAL-\" prefix will be added by cloudpack.\n */\n eventName: string;\n\n /**\n * Application name to be reported into application insights.\n */\n appName?: string;\n\n /**\n * Additional attributes to be reported into application insights.\n */\n attributes?: Record<string, string>;\n\n /**\n * Log level to be used by application insights.\n */\n logLevel?: 'debug' | 'verbose';\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { LogLevel } from '@ms-cloudpack/telemetry';\n\n/**\n * Options for external telemetry.\n */\nexport interface ReportTelemetryOptions {\n /**\n * Event name to be reported into application insights.\n * \"EXTERNAL-\" prefix will be added by cloudpack.\n */\n eventName: string;\n\n /**\n * Application name to be reported into application insights.\n */\n appName?: string;\n\n /**\n * Additional attributes to be reported into application insights.\n */\n attributes?: Record<string, string>;\n\n /**\n * Log level to be used by application insights.\n */\n logLevel?: LogLevel;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/external-telemetry",
3
- "version": "0.0.3",
3
+ "version": "0.1.1",
4
4
  "description": "Reporting external telemetry which is not about of cloudpack internals.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -13,12 +13,12 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@ms-cloudpack/telemetry": "^0.2.3",
17
- "@ms-cloudpack/config": "^0.5.0",
18
- "@ms-cloudpack/package-utilities": "^2.4.0",
16
+ "@ms-cloudpack/telemetry": "^0.2.4",
17
+ "@ms-cloudpack/config": "^0.5.2",
18
+ "@ms-cloudpack/package-utilities": "^2.4.2",
19
19
  "@ms-cloudpack/path-utilities": "^2.2.1",
20
20
  "@ms-cloudpack/json-utilities": "^0.0.6",
21
- "@ms-cloudpack/bundler-types": "^0.12.0"
21
+ "@ms-cloudpack/bundler-types": "^0.12.2"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@ms-cloudpack/eslint-config-base": "*",