mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-16 02:04:54 +01:00
metadata reset
This commit is contained in:
parent
6f711db290
commit
2c5fb9bd40
@ -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 -------
|
||||||
|
@ -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: {
|
||||||
|
@ -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: []
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user