Types
Apex Types defined by CloudFiles-
Attachment - An attachment represents a relation between a Salesforce record and a file/folder.
ContentVersionCreated - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the content-version-created platform event type
ContentVersionCreatedBatch - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the content-version-created-batch platform event type.
Dataroom - This custom apex type represents an output that Create Datarooms method returns.
DocGen Params - This is a custom apex type that represents inputs needed for Types.DocGenRequestInput.
DocumentGenerated - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the document-generated platform event type.
DocumentProcessed - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the document-processed platform event type.
DocumentProcessedError - This custom apex type represents an output that ErrorEvent method returns and includes the following fields: String Context, Resource , and File.
DocumentSplit - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the document-split platform event type.
ErrorEvent - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the error-event platform event type.
Event - Event is a container type for all types of CloudFiles events. It is returned as output of Get Event Details.
FileReceived - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the file-received platform event type.
FileReplace - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the file-replaced platform event type.
FileRequest - This custom apex type represents an output that Create File Requests method returns.
FileUpload - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the file-uploaded platform event type.
FileViewed - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the file-viewed platform event type.
FolderCreated - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the folder-created platform event type.
Generated Document - This custom apex type represents an output that Generate Document (Sync) method returns.
Input & Output Types - When using CloudFiles Apex Client, you would need various input and output types.
Link - CloudFiles links are a way to share files, folders & datarooms externally(outside Salesforce). CloudFiles links provide multiple security settings, a branded viewer(whitelabelling supported), and gives engagement analytics.
Resource - A resource represents a file or a folder in external storage.
ResourceAttached - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the resource-attached platform event type.
ResourceCloned - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods returns for the resource-cloned platform event type.
ResourceDeleted - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the resource-deleted platform evet type.
ResourceUpdated - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the resource-updated platform event type.
Resource List - Represents the contents of a folder, with pagination support.
SalesforceFilesAttached - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the salesforce-file-attached platform event type.
SalesforceFileCopied - This custom apex type represents an output that Platform Events & Platform Events Apex Handler (Object Type) methods return for the salesforce-file-copied platform event type.
SalesforceFileCopiedError - This custom apex type represents the output returned by the Error Event method and includes the following fields: String RecordId, String ContentVersionId, Resource Destination.
Salesforce File - This object represents a Salesforce file.