UNPKG

@finos/legend-server-marketplace

Version:
56 lines 2.05 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 { SerializationFactory } from '@finos/legend-shared'; import { createModelSchema, list, object, primitive } from 'serializr'; export class DataProductSearchResultTableField { field_description; field_name; similarity; static serialization = new SerializationFactory(createModelSchema(DataProductSearchResultTableField, { field_description: primitive(), field_name: primitive(), similarity: primitive(), })); } export class DataProductSearchResultTable { dataset_score; table_description; table_fields; table_name; static serialization = new SerializationFactory(createModelSchema(DataProductSearchResultTable, { dataset_score: primitive(), table_description: primitive(), table_fields: list(object(DataProductSearchResultTableField)), table_name: primitive(), })); } export class DataProductSearchResult { data_product_description; data_product_link; data_product_name; product_score; tables; vendor_name; static serialization = new SerializationFactory(createModelSchema(DataProductSearchResult, { data_product_description: primitive(), data_product_link: primitive(), data_product_name: primitive(), product_score: primitive(), tables: list(object(DataProductSearchResultTable)), vendor_name: primitive(), })); } //# sourceMappingURL=DataProduct.js.map