fix(storage): rename S3 configuration and change stream interfaces to storage-oriented types
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
|
||||
// Import interfaces from shared types
|
||||
// Note: In bundled form these are inlined
|
||||
export interface IS3Object {
|
||||
key: string;
|
||||
size?: number;
|
||||
lastModified?: string;
|
||||
isPrefix?: boolean;
|
||||
}
|
||||
import type { IStorageObject } from '@design.estate/dees-catalog';
|
||||
export type { IStorageObject };
|
||||
|
||||
export interface IMongoDatabase {
|
||||
name: string;
|
||||
@@ -100,7 +93,7 @@ export class ApiService {
|
||||
bucketName: string,
|
||||
prefix?: string,
|
||||
delimiter?: string
|
||||
): Promise<{ objects: IS3Object[]; prefixes: string[] }> {
|
||||
): Promise<{ objects: IStorageObject[]; prefixes: string[] }> {
|
||||
return this.request('listObjects', { bucketName, prefix, delimiter });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user