@dynatrace/dtrum-api-types 1.259.4 → 1.261.2

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 (2) hide show
  1. package/README.md +12 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  This package contains the Typescript type information for the Dtrum Api of the javascript agent.
3
3
 
4
4
  Keep in mind that when the javascript agent is updated, this type package might not provide accurate types.
5
- Version: 1.259.4
5
+ Version: 1.261.2
6
6
 
7
7
  ## Installation
8
8
  > npm install --save-dev @dynatrace/dtrum-api-types
@@ -25,10 +25,19 @@ if (window.dtrum) {
25
25
 
26
26
  In case some specific types or enums are needed, you can import them from `dtrum` types library.
27
27
  ```
28
- import { ResourceSummaryTypes } from '@dynatrace/dtrum-api-types';
28
+ import { ActionNameResult } from '@dynatrace/dtrum-api-types';
29
29
 
30
30
  if (window.dtrum) {
31
- window.dtrum.startThirdParty(ResourceSummaryTypes.IMAGES, "..../img.jpg");
31
+ const result = window.dtrum.actionName("exampleName");
32
+ switch(result) {
33
+ case ActionNameResult.SUCCESS:
34
+ // handle success...
35
+ break;
36
+ case ActionNameResult.ACTION_NOT_FOUND:
37
+ // handle action not found...
38
+ break;
39
+ //etc...
40
+ }
32
41
  } else {
33
42
  // handle missing dtrum api
34
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/dtrum-api-types",
3
- "version": "1.259.4",
3
+ "version": "1.261.2",
4
4
  "description": "Typescript types for Dynatrace jsagents dtrum api.",
5
5
  "main": "",
6
6
  "typings": "dtrum.d.ts",