Fix buckets types
parent
6fe5b5e523
commit
fd24d19021
|
@ -1,10 +1,10 @@
|
|||
import {Dispatch} from 'redux-thunk'
|
||||
|
||||
// API
|
||||
import {client} from 'src/utils/api'
|
||||
|
||||
// Types
|
||||
import {RemoteDataState, AppState} from 'src/types'
|
||||
import {Bucket} from '@influxdata/influx'
|
||||
import {Dispatch} from 'redux-thunk'
|
||||
import {RemoteDataState, AppState, Bucket} from 'src/types'
|
||||
|
||||
// Actions
|
||||
import {notify} from 'src/shared/actions/notifications'
|
||||
|
|
|
@ -19,7 +19,7 @@ import {
|
|||
ComponentColor,
|
||||
IconFont,
|
||||
} from '@influxdata/clockface'
|
||||
import {Bucket} from '@influxdata/influx'
|
||||
import {Bucket} from 'src/types'
|
||||
import {DataLoaderType} from 'src/types/dataLoaders'
|
||||
|
||||
export interface PrettyBucket extends Bucket {
|
||||
|
|
|
@ -19,9 +19,9 @@ import {createBucket, updateBucket, deleteBucket} from 'src/buckets/actions'
|
|||
import {ruleToString} from 'src/utils/formatting'
|
||||
|
||||
// Types
|
||||
import {Bucket, Organization, BucketRetentionRules} from '@influxdata/influx'
|
||||
import {Organization, BucketRetentionRules} from '@influxdata/influx'
|
||||
import {IconFont, ComponentSize, ComponentColor} from '@influxdata/clockface'
|
||||
import {OverlayState, AppState} from 'src/types'
|
||||
import {OverlayState, AppState, Bucket} from 'src/types'
|
||||
|
||||
interface StateProps {
|
||||
org: Organization
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
import {produce} from 'immer'
|
||||
|
||||
// Types
|
||||
import {RemoteDataState} from 'src/types'
|
||||
import {RemoteDataState, Bucket} from 'src/types'
|
||||
import {Action} from 'src/buckets/actions'
|
||||
import {Bucket} from '@influxdata/influx'
|
||||
|
||||
const initialState = (): BucketsState => ({
|
||||
status: RemoteDataState.NotStarted,
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
export interface Bucket {
|
||||
id: string
|
||||
name: string
|
||||
organization: string
|
||||
orgID: string
|
||||
rp?: string
|
||||
retentionRules: RetentionRule[]
|
||||
links: BucketLinks
|
||||
}
|
||||
import {IBucket} from '@influxdata/influx'
|
||||
|
||||
export interface Bucket extends IBucket {}
|
||||
|
||||
export enum RetentionRuleTypes {
|
||||
Expire = 'expire',
|
||||
|
|
Loading…
Reference in New Issue