Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions src/Api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { version } from '../package.json';
import { FinderError } from './Exception';
import { logMessage } from './Logger';
import { httpCall } from './Utils';
import { version } from '../package.json';

type Options = {
domain: string;
Expand Down Expand Up @@ -64,13 +64,21 @@ export type FrontifyAsset = {
value: string;
source: string;
};
metadataValues?: {
value: string | number;
metadataField: {
customMetadata: {
property: {
id: string;
label: string;
name: string;
type: {
name: string;
};
};
};
value?: {
value: string | { optionId: string; text: string };
};
values?: {
value: { optionId: string; text: string };
}[];
}[];
filename: string;
extension: string;
size: number;
Expand Down Expand Up @@ -113,11 +121,19 @@ fragment withMetadata on Asset {
value
source
}
metadataValues {
value
metadataField {
customMetadata {
property {
id
label
name
type {
name
}
}
... on CustomMetadataValue {
value
}
... on CustomMetadataValues {
values
}
}
copyright {
Expand Down
Loading