mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +01:00
metadata reset
This commit is contained in:
parent
6f711db290
commit
2c5fb9bd40
@ -78,8 +78,6 @@ export function transformPublishFormToMetadata(
|
||||
copyrightHolder: holder,
|
||||
tags: keywords?.split(','),
|
||||
termsAndConditions,
|
||||
supportName,
|
||||
supportEmail,
|
||||
access: access || 'Download'
|
||||
},
|
||||
// ------- curation -------
|
||||
|
@ -19,11 +19,8 @@ const AssetModel: MetaDataMarket = {
|
||||
// links: [],
|
||||
|
||||
// custom items
|
||||
deliveryType: 'files',
|
||||
termsAndConditions: false,
|
||||
dateRange: undefined,
|
||||
supportName: undefined,
|
||||
supportEmail: undefined,
|
||||
access: 'Download'
|
||||
},
|
||||
curation: {
|
||||
|
@ -3,7 +3,7 @@ import { JSONSchema6 } from 'json-schema'
|
||||
import TermsWidget from '../components/atoms/FormWidgets/TermsWidget'
|
||||
import DateRangeWidget from '../components/atoms/FormWidgets/DateRangeWidget'
|
||||
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'
|
||||
|
||||
export const customWidgets = {
|
||||
@ -98,15 +98,6 @@ export const PublishFormSchema: JSONSchema6 = {
|
||||
type: 'string',
|
||||
title: 'Keywords'
|
||||
},
|
||||
supportName: {
|
||||
type: 'string',
|
||||
title: 'Support Name'
|
||||
},
|
||||
supportEmail: {
|
||||
type: 'string',
|
||||
format: 'email',
|
||||
title: 'Support Email Address'
|
||||
},
|
||||
termsAndConditions: {
|
||||
type: 'boolean',
|
||||
title: 'I agree to these Terms and Conditions'
|
||||
@ -181,8 +172,6 @@ export interface PublishFormDataInterface {
|
||||
dateRange?: string
|
||||
holder?: string
|
||||
keywords?: string
|
||||
supportEmail?: string
|
||||
supportName?: string
|
||||
}
|
||||
// Ref: https://github.com/oceanprotocol/OEPs/blob/master/8/v0.4/README.md#main-attributes
|
||||
export const publishFormData: PublishFormDataInterface = {
|
||||
@ -195,12 +184,5 @@ export const publishFormData: PublishFormDataInterface = {
|
||||
termsAndConditions: false,
|
||||
dateRange: undefined,
|
||||
holder: undefined,
|
||||
keywords: undefined,
|
||||
supportName: undefined,
|
||||
supportEmail: undefined
|
||||
keywords: undefined
|
||||
}
|
||||
/*
|
||||
Missing fields:
|
||||
links: []
|
||||
|
||||
*/
|
||||
|
@ -71,11 +71,8 @@ const ddo: Partial<DDO> = {
|
||||
url: 'https://demo.com'
|
||||
}
|
||||
],
|
||||
deliveryType: 'files',
|
||||
termsAndConditions: true,
|
||||
dateRange: ['2018-09-20T08:38:58', '2019-12-11T05:19:42'],
|
||||
supportName: 'Jelly McJellyfish',
|
||||
supportEmail: 'jelly@oceanprotocol.com',
|
||||
access: 'Download'
|
||||
},
|
||||
curation: {
|
||||
|
Loading…
Reference in New Issue
Block a user