@wix/monitoring-types 0.4.0 → 0.5.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.
package/build/index.d.mts CHANGED
@@ -144,24 +144,31 @@ interface EventData {
144
144
  }
145
145
 
146
146
  /**
147
- * Represents the configuration for app's monitoring.
148
- * The configuration includes the type of monitoring provider and its options.
149
- * Currently, only Sentry is supported as a monitoring provider.
147
+ * Represents the Sentry configuration for app's monitoring.
150
148
  */
151
- interface AppMonitoringConfig {
149
+ interface AppMonitoringSentryConfig {
152
150
  /**
153
151
  * The type of monitoring provider.
154
152
  */
155
- type: 'SENTRY' | 'UNKNOWN_PROVIDER';
153
+ type: 'SENTRY';
156
154
  /**
157
155
  * The options for the Sentry monitoring provider.
158
156
  */
159
- sentryOptions?: {
157
+ sentryOptions: {
160
158
  /**
161
159
  * The Data Source Name (DSN) for the Sentry monitoring provider.
162
160
  */
163
161
  dsn: string;
164
162
  };
165
163
  }
164
+ interface AppMonitoringUnknownConfig {
165
+ type: 'UNKNOWN_PROVIDER';
166
+ }
167
+ /**
168
+ * Represents the configuration for app's monitoring.
169
+ * The configuration includes the type of monitoring provider and its options.
170
+ * Currently, only Sentry is supported as a monitoring provider.
171
+ */
172
+ type AppMonitoringConfig = AppMonitoringSentryConfig | AppMonitoringUnknownConfig;
166
173
 
167
- export type { AppMonitoringConfig, Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
174
+ export type { AppMonitoringConfig, AppMonitoringSentryConfig, AppMonitoringUnknownConfig, Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
package/build/index.d.ts CHANGED
@@ -144,24 +144,31 @@ interface EventData {
144
144
  }
145
145
 
146
146
  /**
147
- * Represents the configuration for app's monitoring.
148
- * The configuration includes the type of monitoring provider and its options.
149
- * Currently, only Sentry is supported as a monitoring provider.
147
+ * Represents the Sentry configuration for app's monitoring.
150
148
  */
151
- interface AppMonitoringConfig {
149
+ interface AppMonitoringSentryConfig {
152
150
  /**
153
151
  * The type of monitoring provider.
154
152
  */
155
- type: 'SENTRY' | 'UNKNOWN_PROVIDER';
153
+ type: 'SENTRY';
156
154
  /**
157
155
  * The options for the Sentry monitoring provider.
158
156
  */
159
- sentryOptions?: {
157
+ sentryOptions: {
160
158
  /**
161
159
  * The Data Source Name (DSN) for the Sentry monitoring provider.
162
160
  */
163
161
  dsn: string;
164
162
  };
165
163
  }
164
+ interface AppMonitoringUnknownConfig {
165
+ type: 'UNKNOWN_PROVIDER';
166
+ }
167
+ /**
168
+ * Represents the configuration for app's monitoring.
169
+ * The configuration includes the type of monitoring provider and its options.
170
+ * Currently, only Sentry is supported as a monitoring provider.
171
+ */
172
+ type AppMonitoringConfig = AppMonitoringSentryConfig | AppMonitoringUnknownConfig;
166
173
 
167
- export type { AppMonitoringConfig, Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
174
+ export type { AppMonitoringConfig, AppMonitoringSentryConfig, AppMonitoringUnknownConfig, Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/monitoring-types",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Gili Shohat",
@@ -29,11 +29,11 @@
29
29
  "*.{js,ts}": "yarn lint"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^20.17.12",
32
+ "@types/node": "^20.17.16",
33
33
  "eslint": "^8.57.1",
34
34
  "eslint-config-sdk": "0.0.0",
35
35
  "tsup": "^7.3.0",
36
- "type-fest": "^4.32.0",
36
+ "type-fest": "^4.33.0",
37
37
  "typescript": "^5.7.3"
38
38
  },
39
39
  "eslintConfig": {
@@ -53,5 +53,5 @@
53
53
  ]
54
54
  }
55
55
  },
56
- "falconPackageHash": "f5b6aae3eca514279438277851c0c6ab98b89f570229a737e9274223"
56
+ "falconPackageHash": "16b0efd1adb359bc3e47b0bc0710565dd52714518346fcfcd9126e48"
57
57
  }