@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
30 lines (29 loc) • 1 kB
JavaScript
/*
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
* This file is part of Sync-in | The open source file sync and share solution
* See the LICENSE file for licensing details
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "ShareChild", {
enumerable: true,
get: function() {
return ShareChild;
}
});
const _shared = require("../../../common/shared");
let ShareChild = class ShareChild {
constructor(props){
this.owner = props.ownerLogin ? {
login: (0, _shared.popFromObject)('ownerLogin', props),
fullName: (0, _shared.popFromObject)('ownerFullName', props),
email: (0, _shared.popFromObject)('ownerEmail', props)
} : null;
this.file = props.fileMime ? {
mime: (0, _shared.popFromObject)('fileMime', props)
} : null;
Object.assign(this, props);
}
};
//# sourceMappingURL=share-child.model.js.map