UNPKG

@finos/legend-graph

Version:
34 lines 2.12 kB
/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { type PlainObject } from '@finos/legend-shared'; import { type ModelSchema } from 'serializr'; import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; import { type V1_EmbeddedData, V1_ExternalFormatData, V1_ModelStoreData, V1_DataElementReference } from '../../../model/data/V1_EmbeddedData.js'; import { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement.js'; export declare const V1_DATA_ELEMENT_PROTOCOL_TYPE = "dataElement"; export declare enum V1_EmbeddedDataType { MODEL_STORE_DATA = "modelStore", EXTERNAL_FORMAT_DATA = "externalFormat", DATA_ELEMENT_REFERENCE = "reference", RELATIONAL_DATA = "relationalCSVData" } export declare const V1_modelStoreDataModelSchema: (plugins: PureProtocolProcessorPlugin[]) => ModelSchema<V1_ModelStoreData>; export declare const V1_externalFormatDataModelSchema: ModelSchema<V1_ExternalFormatData>; export declare const V1_dataElementReferenceModelSchema: ModelSchema<V1_DataElementReference>; export declare function V1_serializeEmbeddedDataType(protocol: V1_EmbeddedData, plugins: PureProtocolProcessorPlugin[]): PlainObject<V1_EmbeddedData>; export declare function V1_deserializeEmbeddedDataType(json: PlainObject<V1_EmbeddedData>, plugins: PureProtocolProcessorPlugin[]): V1_EmbeddedData; export declare const V1_dataElementModelSchema: (plugins: PureProtocolProcessorPlugin[]) => ModelSchema<V1_DataElement>; //# sourceMappingURL=V1_DataElementSerializationHelper.d.ts.map