///
///
///
///
///
declare const _default: () => {
item: {
owner?: import("@semantic-api/api").Reference;
} & import("@semantic-api/api").MongoDocument & {} & {
link: string;
immutable: boolean;
size: number;
last_modified: Date;
filename: string;
mime: string;
absolute_path: string;
relative_path: string;
download_link: string;
} & {};
description: {
$id: "file";
owned: true;
alwaysOwned: true;
presets: readonly ["owned"];
required: readonly ["size", "last_modified", "filename", "mime"];
indexes: readonly ["filename", "link"];
properties: {
readonly mime: {
readonly type: "string";
};
readonly size: {
readonly type: "number";
};
readonly last_modified: {
readonly type: "string";
readonly format: "date-time";
};
readonly filename: {
readonly type: "string";
};
readonly absolute_path: {
readonly type: "string";
};
readonly relative_path: {
readonly type: "string";
};
readonly immutable: {
readonly type: "boolean";
};
readonly link: {
readonly type: "string";
readonly s$meta: true;
};
readonly download_link: {
readonly type: "string";
readonly s$meta: true;
};
};
actions: {
readonly deleteAll: {
readonly name: "Remover";
readonly ask: true;
readonly selection: true;
};
};
individualActions: {
readonly remove: {
readonly name: "Remover";
readonly icon: "trash-alt";
readonly ask: true;
};
};
};
model: () => Promise & {
owner?: import("@semantic-api/api").Reference;
} & import("@semantic-api/api").MongoDocument & {} & {
link: string;
immutable: boolean;
size: number;
last_modified: Date;
filename: string;
mime: string;
absolute_path: string;
relative_path: string;
download_link: string;
} & {} & Required<{
_id: string | import("mongoose").Schema.Types.ObjectId | (object & import("@semantic-api/api").MongoDocument);
}>, any>>;
functions: {
insert: (props: {
what: {
content: string;
} & Pick<{
owner?: import("@semantic-api/api").Reference;
} & import("@semantic-api/api").MongoDocument & {} & {
link: string;
immutable: boolean;
size: number;
last_modified: Date;
filename: string;
mime: string;
absolute_path: string;
relative_path: string;
download_link: string;
} & {}, "owner" | "_id" | "filename" | "absolute_path">;
}, context: import("@semantic-api/api").Context<{
$id: "file";
owned: true;
alwaysOwned: true;
presets: readonly ["owned"];
required: readonly ["size", "last_modified", "filename", "mime"];
indexes: readonly ["filename", "link"];
properties: {
readonly mime: {
readonly type: "string";
};
readonly size: {
readonly type: "number";
};
readonly last_modified: {
readonly type: "string";
readonly format: "date-time";
};
readonly filename: {
readonly type: "string";
};
readonly absolute_path: {
readonly type: "string";
};
readonly relative_path: {
readonly type: "string";
};
readonly immutable: {
readonly type: "boolean";
};
readonly link: {
readonly type: "string";
readonly s$meta: true;
};
readonly download_link: {
readonly type: "string";
readonly s$meta: true;
};
};
actions: {
readonly deleteAll: {
readonly name: "Remover";
readonly ask: true;
readonly selection: true;
};
};
individualActions: {
readonly remove: {
readonly name: "Remover";
readonly icon: "trash-alt";
readonly ask: true;
};
};
}>) => Promise;
download: (_id: string, context: import("@semantic-api/api").Context<{
$id: "file";
owned: true;
alwaysOwned: true;
presets: readonly ["owned"];
required: readonly ["size", "last_modified", "filename", "mime"];
indexes: readonly ["filename", "link"];
properties: {
readonly mime: {
readonly type: "string";
};
readonly size: {
readonly type: "number";
};
readonly last_modified: {
readonly type: "string";
readonly format: "date-time";
};
readonly filename: {
readonly type: "string";
};
readonly absolute_path: {
readonly type: "string";
};
readonly relative_path: {
readonly type: "string";
};
readonly immutable: {
readonly type: "boolean";
};
readonly link: {
readonly type: "string";
readonly s$meta: true;
};
readonly download_link: {
readonly type: "string";
readonly s$meta: true;
};
};
actions: {
readonly deleteAll: {
readonly name: "Remover";
readonly ask: true;
readonly selection: true;
};
};
individualActions: {
readonly remove: {
readonly name: "Remover";
readonly icon: "trash-alt";
readonly ask: true;
};
};
}>) => Promise<{
content: Buffer;
owner?: import("@semantic-api/api").Reference;
_id?: import("@semantic-api/api").Reference;
created_at?: Date | undefined;
updated_at?: Date | undefined;
link: string;
immutable: boolean;
size: number;
last_modified: Date;
filename: string;
mime: string;
absolute_path: string;
relative_path: string;
download_link: string;
}>;
remove: (props: {
filters: {
_id: string;
};
}, context: import("@semantic-api/api").Context<{
$id: "file";
owned: true;
alwaysOwned: true;
presets: readonly ["owned"];
required: readonly ["size", "last_modified", "filename", "mime"];
indexes: readonly ["filename", "link"];
properties: {
readonly mime: {
readonly type: "string";
};
readonly size: {
readonly type: "number";
};
readonly last_modified: {
readonly type: "string";
readonly format: "date-time";
};
readonly filename: {
readonly type: "string";
};
readonly absolute_path: {
readonly type: "string";
};
readonly relative_path: {
readonly type: "string";
};
readonly immutable: {
readonly type: "boolean";
};
readonly link: {
readonly type: "string";
readonly s$meta: true;
};
readonly download_link: {
readonly type: "string";
readonly s$meta: true;
};
};
actions: {
readonly deleteAll: {
readonly name: "Remover";
readonly ask: true;
readonly selection: true;
};
};
individualActions: {
readonly remove: {
readonly name: "Remover";
readonly icon: "trash-alt";
readonly ask: true;
};
};
}>) => Promise;
get: (payload: {
filters?: import("../../../../api/dist/functions/types").Filters<{
owner?: import("@semantic-api/api").Reference;
} & import("@semantic-api/api").MongoDocument & {} & {
link: string;
immutable: boolean;
size: number;
last_modified: Date;
filename: string;
mime: string;
absolute_path: string;
relative_path: string;
download_link: string;
} & {}> | undefined;
project?: import("../../../../api/dist/functions/types").Projection<{
owner?: import("@semantic-api/api").Reference;
} & import("@semantic-api/api").MongoDocument & {} & {
link: string;
immutable: boolean;
size: number;
last_modified: Date;
filename: string;
mime: string;
absolute_path: string;
relative_path: string;
download_link: string;
} & {}> | undefined;
}, context: import("@semantic-api/api").Context, UnpackFunctions, any>) => Promise<({
owner?: import("@semantic-api/api").Reference;
} & import("@semantic-api/api").MongoDocument & {} & {
link: string;
immutable: boolean;
size: number;
last_modified: Date;
filename: string;
mime: string;
absolute_path: string;
relative_path: string;
download_link: string;
} & {}) | null>;
};
};
export default _default;