1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-09-28 03:58:59 +02:00

metadata reset

This commit is contained in:
Matthias Kretschmann 2020-07-01 19:02:31 +02:00
parent 6f711db290
commit 2c5fb9bd40
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 2 additions and 28 deletions

View File

@ -78,8 +78,6 @@ export function transformPublishFormToMetadata(
copyrightHolder: holder, copyrightHolder: holder,
tags: keywords?.split(','), tags: keywords?.split(','),
termsAndConditions, termsAndConditions,
supportName,
supportEmail,
access: access || 'Download' access: access || 'Download'
}, },
// ------- curation ------- // ------- curation -------

View File

@ -19,11 +19,8 @@ const AssetModel: MetaDataMarket = {
// links: [], // links: [],
// custom items // custom items
deliveryType: 'files',
termsAndConditions: false, termsAndConditions: false,
dateRange: undefined, dateRange: undefined,
supportName: undefined,
supportEmail: undefined,
access: 'Download' access: 'Download'
}, },
curation: { curation: {

View File

@ -3,7 +3,7 @@ import { JSONSchema6 } from 'json-schema'
import TermsWidget from '../components/atoms/FormWidgets/TermsWidget' import TermsWidget from '../components/atoms/FormWidgets/TermsWidget'
import DateRangeWidget from '../components/atoms/FormWidgets/DateRangeWidget' import DateRangeWidget from '../components/atoms/FormWidgets/DateRangeWidget'
import { ObjectFieldTemplate } from '../components/molecules/Form/ObjectFieldTemplate' import { ObjectFieldTemplate } from '../components/molecules/Form/ObjectFieldTemplate'
import { Granularity, AccessType } from '../@types/MetaData' import { AccessType } from '../@types/MetaData'
import FileField from '../components/molecules/Form/FileField' import FileField from '../components/molecules/Form/FileField'
export const customWidgets = { export const customWidgets = {
@ -98,15 +98,6 @@ export const PublishFormSchema: JSONSchema6 = {
type: 'string', type: 'string',
title: 'Keywords' title: 'Keywords'
}, },
supportName: {
type: 'string',
title: 'Support Name'
},
supportEmail: {
type: 'string',
format: 'email',
title: 'Support Email Address'
},
termsAndConditions: { termsAndConditions: {
type: 'boolean', type: 'boolean',
title: 'I agree to these Terms and Conditions' title: 'I agree to these Terms and Conditions'
@ -181,8 +172,6 @@ export interface PublishFormDataInterface {
dateRange?: string dateRange?: string
holder?: string holder?: string
keywords?: string keywords?: string
supportEmail?: string
supportName?: string
} }
// Ref: https://github.com/oceanprotocol/OEPs/blob/master/8/v0.4/README.md#main-attributes // Ref: https://github.com/oceanprotocol/OEPs/blob/master/8/v0.4/README.md#main-attributes
export const publishFormData: PublishFormDataInterface = { export const publishFormData: PublishFormDataInterface = {
@ -195,12 +184,5 @@ export const publishFormData: PublishFormDataInterface = {
termsAndConditions: false, termsAndConditions: false,
dateRange: undefined, dateRange: undefined,
holder: undefined, holder: undefined,
keywords: undefined, keywords: undefined
supportName: undefined,
supportEmail: undefined
} }
/*
Missing fields:
links: []
*/

View File

@ -71,11 +71,8 @@ const ddo: Partial<DDO> = {
url: 'https://demo.com' url: 'https://demo.com'
} }
], ],
deliveryType: 'files',
termsAndConditions: true, termsAndConditions: true,
dateRange: ['2018-09-20T08:38:58', '2019-12-11T05:19:42'], dateRange: ['2018-09-20T08:38:58', '2019-12-11T05:19:42'],
supportName: 'Jelly McJellyfish',
supportEmail: 'jelly@oceanprotocol.com',
access: 'Download' access: 'Download'
}, },
curation: { curation: {