Skip to main content

ObjVerVersion

Object version information for a specific version type (internal, external repository, etc).

NameDescriptionType
typeThe type of file version this struct represents.ObjVerVersionType
internal_versionInteger which represents version number for managed object.number
external_repository_versionString representation of the external version of the object version.string
external_repository_sort_keySort key which provides ordering for external 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 ObjVerVersion object with the specified internal version number. Automatically assigns the correct ObjVerVersionType based on the version value (-1 => LATEST, otherwise SPECIFIC).version: numberObjVerVersion

Properties

PropertyTypeDescription
Versionnumber | nullInternal version number.

Creating Objects

// Create a new ObjVerVersion object with the specified internal version number. Automatically assigns the correct ObjVerVersionType based on the version value (-1 => LATEST, otherwise SPECIFIC).
const result = ObjVerVersion.Create(0);

Working with Objects

// Extension helpers for ObjVerVersion instances
// Internal version number.
const version = objverversionInstance.Version;
objverversionInstance.Version = 0;

Example

{
"type": 7 /* Enum: ObjVerVersionType */,
"internal_version": 0,
"external_repository_version": "<external repository version>",
"external_repository_sort_key": 0
}