ObjVerVersion
Object version information for a specific version type (internal, external repository, etc).
| Name | Description | Type |
|---|---|---|
type | The type of file version this struct represents. | ObjVerVersionType |
internal_version | Integer which represents version number for managed object. | number |
external_repository_version | String representation of the external version of the object version. | string |
external_repository_sort_key | Sort 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
| Method | Description | Parameters | Returns |
|---|---|---|---|
Create | 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). | version: number | ObjVerVersion |
Properties
| Property | Type | Description |
|---|---|---|
Version | number | null | Internal 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
}