GitHub

ShopifyGenericFile

interface

import { ShopifyGenericFile } from '@daffodil/driver/shopify'

The generic file resource lets you manage files in a merchant’s store. Generic files include any file that doesn’t fit into a designated type such as image or video. Example: PDF, JSON.

interface ShopifyGenericFile {
  __typename: "GenericFile"
  alt: string
  id: string
  mimeType: string
  originalFileSize: number
  previewImage: ShopifyImage
  url: Maybe<Scalars['URL']['output']>
}

Properties

__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.