@wix/monitoring-types 0.3.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
@@ -143,4 +143,32 @@ interface EventData {
143
143
  contexts: EventContexts;
144
144
  }
145
145
 
146
- export type { Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
146
+ /**
147
+ * Represents the Sentry configuration for app's monitoring.
148
+ */
149
+ interface AppMonitoringSentryConfig {
150
+ /**
151
+ * The type of monitoring provider.
152
+ */
153
+ type: 'SENTRY';
154
+ /**
155
+ * The options for the Sentry monitoring provider.
156
+ */
157
+ sentryOptions: {
158
+ /**
159
+ * The Data Source Name (DSN) for the Sentry monitoring provider.
160
+ */
161
+ dsn: string;
162
+ };
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;
173
+
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
@@ -143,4 +143,32 @@ interface EventData {
143
143
  contexts: EventContexts;
144
144
  }
145
145
 
146
- export type { Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
146
+ /**
147
+ * Represents the Sentry configuration for app's monitoring.
148
+ */
149
+ interface AppMonitoringSentryConfig {
150
+ /**
151
+ * The type of monitoring provider.
152
+ */
153
+ type: 'SENTRY';
154
+ /**
155
+ * The options for the Sentry monitoring provider.
156
+ */
157
+ sentryOptions: {
158
+ /**
159
+ * The Data Source Name (DSN) for the Sentry monitoring provider.
160
+ */
161
+ dsn: string;
162
+ };
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;
173
+
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.3.0",
3
+ "version": "0.5.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Gili Shohat",
@@ -29,12 +29,12 @@
29
29
  "*.{js,ts}": "yarn lint"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^20.17.9",
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.30.0",
37
- "typescript": "^5.7.2"
36
+ "type-fest": "^4.33.0",
37
+ "typescript": "^5.7.3"
38
38
  },
39
39
  "eslintConfig": {
40
40
  "extends": "sdk"
@@ -53,5 +53,5 @@
53
53
  ]
54
54
  }
55
55
  },
56
- "falconPackageHash": "bd69f930cc46357892253469b784dd021a0899632b9f1cbb0104035a"
56
+ "falconPackageHash": "16b0efd1adb359bc3e47b0bc0710565dd52714518346fcfcd9126e48"
57
57
  }