UNPKG

@contentstack/datasync-asset-store-filesystem

Version:

Fillesystem asset store for DataSync libraries. Stores Contentstack asset-files in filesystem

30 lines (29 loc) 1.26 kB
"use strict"; /*! * contentstack-sync-asset-store-filesystem * copyright (c) Contentstack LLC * MIT Licensed */ Object.defineProperty(exports, "__esModule", { value: true }); exports.messages = void 0; /** * Centralized error and log messages for the asset store filesystem */ exports.messages = { // Error messages errors: { keyNotExist: (key, asset) => `The key '${key}' does not exist on: ${JSON.stringify(asset)}`, contentStoreLoadFailed: () => 'Failed to load content store:', assetDownloadFailed: (asset) => `Failed to download asset ${JSON.stringify(asset)}`, }, // Info/Debug messages info: { assetDownloadInitiated: (asset) => `Asset download initiated for: ${JSON.stringify(asset)}`, assetDownloadFailed: (uid) => `Download failed for asset: ${uid}`, assetDeletionInitiated: () => 'Asset deletion initiated:', assetFileRemovalError: (path) => `An error occurred while removing the asset file at: ${path}`, folderPathNotExist: (path) => `Folder path does not exist: ${path}`, assetUnpublishInitiated: (asset) => `Asset unpublish initiated for: ${JSON.stringify(asset)}`, filePathNotExist: (path) => `File path does not exist: ${path}`, }, };