Skip to content

Commit

Permalink
chore: move PieceContentStatusObj into more sensibly named file
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Oct 13, 2023
1 parent 48dbda2 commit 90f4e99
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion meteor/client/lib/shelf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { UIShowStyleBase } from '../../lib/api/showStyles'
import { PieceId, SegmentId } from '@sofie-automation/corelib/dist/dataModel/Ids'
import { PieceInstances } from '../collections'
import { ReadonlyDeep } from 'type-fest'
import { PieceContentStatusObj } from '../../lib/mediaObjects'
import { PieceContentStatusObj } from '../../lib/api/pieceContentStatus'

export interface ShelfDisplayOptions {
enableBuckets: boolean
Expand Down
2 changes: 1 addition & 1 deletion meteor/client/ui/MediaStatus/MediaStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { ProtectedString, unprotectString } from '@sofie-automation/corelib/dist
import { ExpectedPackage } from '@sofie-automation/shared-lib/dist/package-manager/package'
import { PartInvalidReason } from '@sofie-automation/corelib/dist/dataModel/Part'
import { IBlueprintActionManifestDisplayContent, SourceLayerType } from '@sofie-automation/blueprints-integration'
import { PieceContentStatusObj } from '../../../lib/mediaObjects'
import { PieceContentStatusObj } from '../../../lib/api/pieceContentStatus'
import { Piece, PieceStatusCode } from '@sofie-automation/corelib/dist/dataModel/Piece'
import { assertNever, literal } from '@sofie-automation/corelib/dist/lib'
import { UIPieceContentStatuses, UIShowStyleBases } from '../Collections'
Expand Down
2 changes: 1 addition & 1 deletion meteor/client/ui/SegmentContainer/withResolvedSegment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { PieceInstances, Segments } from '../../collections'
import { RundownPlaylistCollectionUtil } from '../../../lib/collections/rundownPlaylistUtil'
import { CalculateTimingsPiece } from '@sofie-automation/corelib/dist/playout/timings'
import { ReadonlyDeep } from 'type-fest'
import { PieceContentStatusObj } from '../../../lib/mediaObjects'
import { PieceContentStatusObj } from '../../../lib/api/pieceContentStatus'
import { SegmentOrphanedReason } from '@sofie-automation/corelib/dist/dataModel/Segment'

export interface SegmentUi extends SegmentExtended {
Expand Down
2 changes: 1 addition & 1 deletion meteor/client/ui/SegmentTimeline/withMediaObjectStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { AdLibPieceUi } from '../../lib/shelf'
import { UIStudio } from '../../../lib/api/studios'
import { UIBucketContentStatuses, UIPieceContentStatuses } from '../Collections'
import { Piece, PieceStatusCode } from '@sofie-automation/corelib/dist/dataModel/Piece'
import { PieceContentStatusObj } from '../../../lib/mediaObjects'
import { PieceContentStatusObj } from '../../../lib/api/pieceContentStatus'
import { deepFreeze } from '@sofie-automation/corelib/dist/lib'
import _ from 'underscore'
import { useTracker } from '../../lib/ReactMeteorData/ReactMeteorData'
Expand Down
2 changes: 1 addition & 1 deletion meteor/lib/Rundown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from '@sofie-automation/corelib/dist/dataModel/Ids'
import { PieceInstances, Pieces } from './collections/libCollections'
import { RundownPlaylistCollectionUtil } from './collections/rundownPlaylistUtil'
import { PieceContentStatusObj } from './mediaObjects'
import { PieceContentStatusObj } from './api/pieceContentStatus'
import { ReadonlyDeep } from 'type-fest'
import { PieceInstanceWithTimings } from '@sofie-automation/corelib/dist/playout/processAndPrune'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@ import { PackageInfo } from '@sofie-automation/blueprints-integration'
import { PieceStatusCode } from '@sofie-automation/corelib/dist/dataModel/Piece'
import { ITranslatableMessage } from '@sofie-automation/corelib/dist/TranslatableMessage'

export interface ScanInfoForPackages {
[packageId: string]: ScanInfoForPackage
}
export interface ScanInfoForPackage {
/** Display name of the package */
packageName: string
scan?: PackageInfo.FFProbeScan['payload']
deepScan?: PackageInfo.FFProbeDeepScan['payload']
timebase?: number // derived from scan
}

export interface PieceContentStatusObj {
status: PieceStatusCode
messages: ITranslatableMessage[]
Expand Down
2 changes: 1 addition & 1 deletion meteor/lib/api/rundownNotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
SegmentId,
} from '@sofie-automation/corelib/dist/dataModel/Ids'
import { ProtectedString } from '../lib'
import { PieceContentStatusObj } from '../mediaObjects'
import { PieceContentStatusObj } from './pieceContentStatus'
import { ITranslatableMessage } from '@sofie-automation/corelib/dist/TranslatableMessage'

export type UISegmentPartNoteId = ProtectedString<'UISegmentPartNote'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import _ from 'underscore'
import { getSideEffect } from '../../../lib/collections/ExpectedPackages'
import { getActiveRoutes, getRoutedMappings } from '../../../lib/collections/Studios'
import { ensureHasTrailingSlash, generateTranslation, unprotectString } from '../../../lib/lib'
import { PieceContentStatusObj, ScanInfoForPackage, ScanInfoForPackages } from '../../../lib/mediaObjects'
import { PieceContentStatusObj } from '../../../lib/api/pieceContentStatus'
import { MediaObjects, PackageContainerPackageStatuses, PackageInfos } from '../../collections'
import {
mediaObjectFieldSpecifier,
Expand All @@ -43,6 +43,17 @@ import {
PieceDependencies,
} from './common'

interface ScanInfoForPackages {
[packageId: string]: ScanInfoForPackage
}
interface ScanInfoForPackage {
/** Display name of the package */
packageName: string
scan?: PackageInfo.FFProbeScan['payload']
deepScan?: PackageInfo.FFProbeDeepScan['payload']
timebase?: number // derived from scan
}

/**
* Take properties from the mediainfo / medistream and transform into a
* formatted string
Expand Down

0 comments on commit 90f4e99

Please sign in to comment.