1 | import { Options as WebpackOptions } from 'webpack'
|
2 | import { BrowserTracingOptions } from '@sentry/tracing/dist/browser/browsertracing'
|
3 | import { Options as SentryOptions } from '@sentry/types'
|
4 | import { SentryCliPluginOptions } from '@sentry/webpack-plugin'
|
5 | import { Handlers } from '@sentry/node'
|
6 |
|
7 | export type IntegrationsConfiguration = Record<string, unknown>
|
8 |
|
9 | export interface LazyConfiguration {
|
10 | chunkName?: string
|
11 | injectLoadHook?: boolean
|
12 | injectMock?: boolean
|
13 | mockApiMethods?: boolean | string[]
|
14 | webpackPrefetch?: boolean
|
15 | webpackPreload?: boolean
|
16 | }
|
17 |
|
18 | declare type Operation = 'activate' | 'create' | 'destroy' | 'mount' | 'update'
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | interface TracingOptions {
|
25 | |
26 |
|
27 |
|
28 |
|
29 |
|
30 | trackComponents: boolean | string[]
|
31 |
|
32 | timeout: number
|
33 | |
34 |
|
35 |
|
36 |
|
37 |
|
38 | hooks: Operation[]
|
39 | }
|
40 |
|
41 | export interface TracingConfiguration {
|
42 | tracesSampleRate?: number
|
43 | vueOptions?: {
|
44 | tracing?: boolean
|
45 | tracingOptions?: TracingOptions
|
46 | }
|
47 | browserOptions?: BrowserTracingOptions
|
48 | }
|
49 |
|
50 | export interface ModuleConfiguration {
|
51 | attachCommits?: boolean
|
52 | clientConfig?: SentryOptions
|
53 | clientIntegrations?: IntegrationsConfiguration
|
54 | config?: SentryOptions
|
55 | disableClientRelease?: boolean
|
56 | disableClientSide?: boolean
|
57 | disabled?: boolean
|
58 | disableServerRelease?: boolean
|
59 | disableServerSide?: boolean
|
60 | dsn?: string
|
61 | tracing?: boolean | TracingConfiguration
|
62 | initialize?: boolean
|
63 | lazy?: boolean | LazyConfiguration
|
64 | logMockCalls?: boolean
|
65 | publishRelease?: boolean
|
66 | repo?: string
|
67 | serverConfig?: SentryOptions
|
68 | serverIntegrations?: IntegrationsConfiguration
|
69 | sourceMapStyle?: WebpackOptions.Devtool
|
70 | webpackConfig?: SentryCliPluginOptions
|
71 | requestHandlerConfig?: Handlers.RequestHandlerOptions
|
72 | }
|