Typ obiektowyFile
A file stored in Prynt and attached to a record, for example a print file of a product.
Pola
| Pole | Typ | Opis |
|---|---|---|
createdAt | DateTime! | When the upload was started. |
downloadUrl | String | Signed URL to download the file, valid for a limited time (one hour by default): request the field again for a fresh one. Needs no API key (do not send one). Set for every file on |
entityId | ID! | Identifier of the record the file is attached to. |
entityType | FileEntityType! | Kind of record the file is attached to. |
id | ID! | Identifier of the file (UUID). |
mimeType | String! | Media type of the file, for example |
originalFilename | String! | File name as uploaded, without characters unsafe for storage (such as |
parentFileId | ID | Identifier of the first version of the file; null for the first version itself. |
previewUrl | String | Signed URL of a larger WebP preview (800 px wide by default), valid like |
sizeBytes | String! | Size in bytes, as a decimal string (files may exceed the range of a GraphQL Int). Measured in storage once the upload completes. |
thumbnailUrl | String | Signed URL of a small WebP thumbnail (200 px wide by default), valid like |
updatedAt | DateTime! | When the file record last changed, for example when its upload completed. |
uploadStatus | FileUploadStatus! | Where the upload of the file stands. |
verificationStatus | FileVerificationStatus | Prepress verdict on a print file of a product; null for files outside the product file check (for example files of an order). |
versionNumber | Int! | Version of the file, from 1 for the first upload. |