Changeset View
Changeset View
Standalone View
Standalone View
lib/types/media-types.js
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | |||||
export type GetOrientationMediaMissionStep = { | export type GetOrientationMediaMissionStep = { | ||||
+step: 'exif_fetch', | +step: 'exif_fetch', | ||||
+success: boolean, | +success: boolean, | ||||
+exceptionMessage: ?string, | +exceptionMessage: ?string, | ||||
+time: number, // ms | +time: number, // ms | ||||
+orientation: ?number, | +orientation: ?number, | ||||
}; | }; | ||||
export type GenerateThumbhashMediaMissionStep = { | |||||
+step: 'generate_thumbhash', | |||||
+success: boolean, | |||||
+exceptionMessage: ?string, | |||||
+thumbHash: ?string, | |||||
}; | |||||
export type EncryptFileMediaMissionStep = | export type EncryptFileMediaMissionStep = | ||||
| { | | { | ||||
+step: 'read_plaintext_file', | +step: 'read_plaintext_file', | ||||
+file: string, | +file: string, | ||||
+time: number, // ms | +time: number, // ms | ||||
+success: boolean, | +success: boolean, | ||||
+exceptionMessage: ?string, | +exceptionMessage: ?string, | ||||
} | } | ||||
▲ Show 20 Lines • Show All 220 Lines • ▼ Show 20 Lines | | { | ||||
+time: number, // ms | +time: number, // ms | ||||
+path: string, | +path: string, | ||||
+length: number, | +length: number, | ||||
} | } | ||||
| FetchFileHashMediaMissionStep | | FetchFileHashMediaMissionStep | ||||
| CopyFileMediaMissionStep | | CopyFileMediaMissionStep | ||||
| EncryptFileMediaMissionStep | | EncryptFileMediaMissionStep | ||||
| GetOrientationMediaMissionStep | | GetOrientationMediaMissionStep | ||||
| GenerateThumbhashMediaMissionStep | |||||
| { | | { | ||||
+step: 'preload_image', | +step: 'preload_image', | ||||
+success: boolean, | +success: boolean, | ||||
+exceptionMessage: ?string, | +exceptionMessage: ?string, | ||||
+time: number, // ms | +time: number, // ms | ||||
+uri: string, | +uri: string, | ||||
+dimensions: ?Dimensions, | +dimensions: ?Dimensions, | ||||
} | } | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |