import { ISuperdesk } from 'superdesk-api' ; import { ISamsAPI } from './interfaces' ; import { getAllSets , createSet , updateSet , deleteSet } from './api/sets' ; import { getAllStorageDestinations } from './api/storageDestinations' ; import { uploadAsset , updateAsset , getAssetsCount , queryAssets , getAssetSearchUrlParams , setAssetSearchUrlParams , getAssetById , getAssetsByIds , updateAssetMetadata , showUploadAssetModal , getAssetBinary , getAssetsCompressedBinary , deleteAsset , lockAsset , unlockAsset , searchTags , getAssetDownloadUrl , } from './api/assets' ; import { getAssetRenditionUrl } from './api/images' ; import { getDesksSamsSettings , getSingleDeskSamsSettings , updateSetsAllowedDesks } from './api/workspace' ; export const superdeskApi = { } as ISuperdesk ; export const samsApi = { sets : { getAll : getAllSets , create : createSet , update : updateSet , delete : deleteSet , } , storageDestinations : { getAll : getAllStorageDestinations , } , assets : { upload : uploadAsset , update : updateAsset , query : queryAssets , getSearchUrlParams : getAssetSearchUrlParams , setSearchUrlParams : setAssetSearchUrlParams , getCount : getAssetsCount , getById : getAssetById , getByIds : getAssetsByIds , updateMetadata : updateAssetMetadata , showUploadModal : showUploadAssetModal , getCompressedBinary : getAssetsCompressedBinary , getAssetBinary : getAssetBinary , deleteAsset : deleteAsset , lockAsset : lockAsset , unlockAsset : unlockAsset , searchTags : searchTags , getDownloadUrl : getAssetDownloadUrl , images : { getRenditionUrl : getAssetRenditionUrl , } , } , workspace : { getDesksSamsSettings : getDesksSamsSettings , getSingleDeskSamsSettings : getSingleDeskSamsSettings , updateSetsAllowedDesks : updateSetsAllowedDesks , } , } ;