Skip to main content

FileVer

Document file.

NameDescriptionType
file_idFile identity.FileID
typeThe type of file version this struct represents.FileVerType
internal_versionThe file version.number
external_repository_versionThe file version identifier in external repository.string
external_repository_sort_keySort key which provides ordering for external file versions.number

Helper Methods and Properties

⚠️ Note

These helper methods and properties are available when using the npm package @m-filescorporation/uix-vault-messages. Install it in your project to use these helpers. For more information, see Overview/VaultMessages/.

Factory Methods

MethodDescriptionParametersReturns
CreateCreate a new FileVer object with the specified ID and Version.id: number
version: number
FileVer

Properties

PropertyTypeDescription
IDnumber | null
Versionnumber

Creating Objects

// Create a new FileVer object with the specified ID and Version.
const result = FileVer.Create(0, 0);

Working with Objects

// Extension helpers for FileVer instances
// Access ID extension property
const id = fileverInstance.ID;
fileverInstance.ID = 0;

// Access Version extension property
const version = fileverInstance.Version;
fileverInstance.Version = 0;

Example

{
"file_id": {
"type": 3 /* Enum: FileIDType */,
"internal_id": 0,
"external_repository_id": "<external repository id>"
},
"type": 3 /* Enum: FileVerType */,
"internal_version": 0,
"external_repository_version": "<external repository version>",
"external_repository_sort_key": 0
}