mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
save priceType to DDO
This commit is contained in:
parent
086631d108
commit
541e495d71
1
src/@types/MetaData.d.ts
vendored
1
src/@types/MetaData.d.ts
vendored
@ -8,6 +8,7 @@ import {
|
|||||||
export interface AdditionalInformationMarket extends AdditionalInformation {
|
export interface AdditionalInformationMarket extends AdditionalInformation {
|
||||||
links?: File[]
|
links?: File[]
|
||||||
termsAndConditions: boolean
|
termsAndConditions: boolean
|
||||||
|
priceType: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MetadataMarket extends Metadata {
|
export interface MetadataMarket extends Metadata {
|
||||||
|
@ -16,7 +16,8 @@ export function transformPublishFormToMetadata(
|
|||||||
tags,
|
tags,
|
||||||
links,
|
links,
|
||||||
termsAndConditions,
|
termsAndConditions,
|
||||||
files
|
files,
|
||||||
|
price
|
||||||
} = data
|
} = data
|
||||||
|
|
||||||
const metadata: MetadataMarket = {
|
const metadata: MetadataMarket = {
|
||||||
@ -37,7 +38,8 @@ export function transformPublishFormToMetadata(
|
|||||||
// links: {
|
// links: {
|
||||||
// url: links
|
// url: links
|
||||||
// },
|
// },
|
||||||
termsAndConditions
|
termsAndConditions,
|
||||||
|
priceType: price.type
|
||||||
},
|
},
|
||||||
curation: AssetModel.curation
|
curation: AssetModel.curation
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,8 @@ const AssetModel: MetadataMarket = {
|
|||||||
links: undefined,
|
links: undefined,
|
||||||
|
|
||||||
// custom items
|
// custom items
|
||||||
termsAndConditions: false
|
termsAndConditions: false,
|
||||||
|
priceType: undefined
|
||||||
},
|
},
|
||||||
curation: {
|
curation: {
|
||||||
rating: 0,
|
rating: 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user