import { ShopifyGenericFile } from '@daffodil/driver/shopify'
Any file that doesn't fit into a designated type like image or video. For example, a PDF or JSON document. Use this object to manage files in a merchant's store.
Generic files are commonly referenced through file reference metafields and returned as part of the MetafieldReference union.
Includes the file's URL, MIME type, size in bytes, and an optional preview image.
interface ShopifyGenericFile {
__typename: "GenericFile"
alt: string
id: string
mimeType: string
originalFileSize: number
previewImage: ShopifyImage
url: Maybe<Scalars['URL']['output']>
}
__typename "GenericFile" |
|---|
alt string |
|---|
A word or phrase to indicate the contents of a file. |
id string |
|---|
A globally-unique ID. |
mimeType string |
|---|
The MIME type of the file. |
originalFileSize number |
|---|
The size of the original file in bytes. |
previewImage ShopifyImage |
|---|
The preview image for the file. |
url Maybe<Scalars['URL']['output']> |
|---|
The URL of the file. |