"use strict";
/**
 * Copyright (c) 2025 TaylorDB
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Attachment = void 0;
class Attachment {
    collectionName;
    fileInformation;
    metadata;
    baseId;
    storageAdaptor;
    _id;
    constructor(data) {
        this.collectionName = data.collectionName;
        this.fileInformation = data.fileInformation;
        this.metadata = data.metadata;
        this.baseId = data.baseId;
        this.storageAdaptor = data.storageAdaptor;
        this._id = data._id;
    }
    toColumnValue() {
        return {
            url: this.fileInformation.path,
            fileType: this.fileInformation.mimetype,
            size: this.fileInformation.size,
        };
    }
}
exports.Attachment = Attachment;
//# sourceMappingURL=taylorclient.types.js.map