File tree Expand file tree Collapse file tree 1 file changed +26
-10
lines changed
Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Original file line number Diff line number Diff line change 1+ import { version } from '../package.json' ;
12import { FinderError } from './Exception' ;
23import { logMessage } from './Logger' ;
34import { httpCall } from './Utils' ;
4- import { version } from '../package.json' ;
55
66type Options = {
77 domain : string ;
@@ -64,13 +64,21 @@ export type FrontifyAsset = {
6464 value : string ;
6565 source : string ;
6666 } ;
67- metadataValues ?: {
68- value : string | number ;
69- metadataField : {
67+ customMetadata : {
68+ property : {
7069 id : string ;
71- label : string ;
70+ name : string ;
71+ type : {
72+ name : string ;
73+ } ;
7274 } ;
73- } ;
75+ value ?: {
76+ value : string | { optionId : string ; text : string } ;
77+ } ;
78+ values ?: {
79+ value : { optionId : string ; text : string } ;
80+ } [ ] ;
81+ } [ ] ;
7482 filename : string ;
7583 extension : string ;
7684 size : number ;
@@ -113,11 +121,19 @@ fragment withMetadata on Asset {
113121 value
114122 source
115123 }
116- metadataValues {
117- value
118- metadataField {
124+ customMetadata {
125+ property {
119126 id
120- label
127+ name
128+ type {
129+ name
130+ }
131+ }
132+ ... on CustomMetadataValue {
133+ value
134+ }
135+ ... on CustomMetadataValues {
136+ values
121137 }
122138 }
123139 copyright {
You can’t perform that action at this time.
0 commit comments