acquia-dam-sdk
Version:
Interact with the Acquia DAM API
59 lines (57 loc) • 1.68 kB
TypeScript
interface ListAssetDownloadsResponse {
items: DownloadAssetEvent[];
pagination_token: string | null;
total_count: number;
}
interface ListAssetSharesResponse {
items: ShareAssetEvent[];
pagination_token: string | null;
total_count: number;
}
interface ListAssetViewsResponse {
items: ViewAssetEvent[];
pagination_token: string | null;
total_count: number;
}
interface DownloadAssetEvent {
asset_properties: AssetProperties;
conversion_properties: ConversionProperties;
file_properties: FileProperties;
intended_use_properties: IntendedUseProperties;
referrer: string;
timestamp: Date;
user_properties: UserProperties;
}
interface ShareAssetEvent {
asset_properties: AssetProperties;
referrer: string;
timestamp: Date;
user_properties: UserProperties;
}
interface ViewAssetEvent {
asset_properties: AssetProperties;
file_properties: FileProperties;
intended_use_properties: IntendedUseProperties;
referrer: string;
timestamp: Date;
user_properties: UserProperties;
}
interface AssetProperties {
id: string;
}
interface ConversionProperties {
output_file_format: string | null;
output_file_type: string | null;
}
interface FileProperties {
file_type: string;
format: string;
size_in_bytes: number;
}
interface IntendedUseProperties {
value: string | null;
}
interface UserProperties {
id: string | null;
}
export type { AssetProperties, ConversionProperties, DownloadAssetEvent, FileProperties, IntendedUseProperties, ListAssetDownloadsResponse, ListAssetSharesResponse, ListAssetViewsResponse, ShareAssetEvent, UserProperties, ViewAssetEvent };