mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-27 05:20:36 +03:00
24 lines
539 B
TypeScript
24 lines
539 B
TypeScript
/**
|
|
* Module: OSS data loading and processing.
|
|
*/
|
|
|
|
import { IOperationSchema, IOperationSchemaData } from './oss';
|
|
|
|
/**
|
|
* Loads data into an {@link IOperationSchema} based on {@link IOperationSchemaData}.
|
|
*
|
|
*/
|
|
export class OssLoader {
|
|
private schema: IOperationSchemaData;
|
|
|
|
constructor(input: IOperationSchemaData) {
|
|
this.schema = input;
|
|
}
|
|
|
|
produceOSS(): IOperationSchema {
|
|
const result = this.schema as IOperationSchema;
|
|
result.producedData = [1, 2, 3]; // TODO: put data processing here
|
|
return result;
|
|
}
|
|
}
|