feat(storage): generalize S3 client and watcher interfaces to storage-oriented naming with backward compatibility
This commit is contained in:
@@ -10,9 +10,9 @@ export interface IPathDecriptor {
|
||||
// ================================
|
||||
|
||||
/**
|
||||
* Internal state tracking for an S3 object
|
||||
* Internal state tracking for a storage object
|
||||
*/
|
||||
export interface IS3ObjectState {
|
||||
export interface IStorageObjectState {
|
||||
key: string;
|
||||
etag: string;
|
||||
size: number;
|
||||
@@ -22,7 +22,7 @@ export interface IS3ObjectState {
|
||||
/**
|
||||
* Change event emitted by BucketWatcher
|
||||
*/
|
||||
export interface IS3ChangeEvent {
|
||||
export interface IStorageChangeEvent {
|
||||
type: 'add' | 'modify' | 'delete';
|
||||
key: string;
|
||||
size?: number;
|
||||
@@ -54,4 +54,14 @@ export interface IBucketWatcherOptions {
|
||||
pageSize?: number;
|
||||
// Future websocket options will be added here
|
||||
// websocketUrl?: string;
|
||||
}
|
||||
}
|
||||
|
||||
// ================================
|
||||
// Deprecated aliases
|
||||
// ================================
|
||||
|
||||
/** @deprecated Use IStorageObjectState instead */
|
||||
export type IS3ObjectState = IStorageObjectState;
|
||||
|
||||
/** @deprecated Use IStorageChangeEvent instead */
|
||||
export type IS3ChangeEvent = IStorageChangeEvent;
|
||||
|
||||
Reference in New Issue
Block a user