Enumeration LibrarySubOperationType

The LibrarySubOperationType enum represents asynchronous package operations that can be queued on the worker thread.

Many library operations executed from higher-level systems will be broken up into sub-operations that are then processed. Thus, the OnEntryModified event will potentially be invoked several times for one operation.

Constructors

Values

CaseSensitiveRename = 13

Performs a case-sensitive rename in an entry that a case insensitive path system wouldn't detect.

ChangeAffixedResources = 17

The affixed resource changed. This is typically fired as a result to another library modification.

CopyVFS = 9

Copies a resource or a folder within the source package path at source sub-path, to the destination package path at the destination sub-path. Source and destination package path are allowed to be the same.

Create = 0

Registers a new resource within the source package at the source sub-path.

CreateFolderPFS = 2

Creates a new empty folder in the physical file system at the location of the source package path.

CreateFolderVFS = 1

Creates a new empty folder within the source package file system at the source sub-path.

CreatePackage = 3

Creates a new empty package at the location of the source package path.

DeleteFolder = 10

Deletes a physical folder at the location of the source package path.

DeletePackage = 4

Deletes an existing package at the location of the source package path.

DeleteVFSEntry = 7

Deletes a resource or a folder in the package located at source package path, at the source sub-path.

GenerateMetaData = 12

Loads an existing resource, generates its meta-data and writes it into the package.

Import = 11

Adds the contents of a QueuedImport operation into the package at the source package path.

MovePackage = 5

Moves a package from the source to destination package path.

MoveVFS = 8

Moves a resource or a folder within the source package path at source sub-path, to the destination package path at the destination sub-path. Source and destination package path are allowed to be the same.

Save = 6

Updates the contents of a resource entry in the source package path at the source sub-path.

UpdateCloudVersion = 15

Updates the CloudVersion of the Resource to the specified version.

UpdateResourceLibraryIcon = 16

Updates the library icon of a Resource.

UpdateResourceMetaData = 14

Updates the Meta-data of a Resource.

Methods

  • Takes an array of enum values and combines them as a single enum flag value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    Returns EnumValueTyped<T, number>

    The combined enum value.

  • Type Parameters

    • T

    Parameters

    Returns string

    Compatibility

  • Returns string[]

    Compatibility

  • Parameters

    • index: number

    Returns number

    Compatibility

  • Returns number[]

    Compatibility

  • Gets the name for the enumeration value that matches the specified enumValue.

    Type Parameters

    • T

    Parameters

    Returns string

    The enumeration value or undefined if not found.

  • Gets the enumeration names

    Returns string[]

    The enumeration names.

  • Gets the enumeration value at the specified index.

    Type Parameters

    • T = number

    Parameters

    • index: number

      The index.

    Returns EnumValueTyped<T, number>

    The enumeration value or undefined if not found.

  • Determines if the enum value has the flags set.

    Type Parameters

    Parameters

    Returns boolean

  • Determines if the enum bits were changed from previousValue to currentValue.

    Type Parameters

    Parameters

    Returns boolean

  • Iterates the enumeration names

    Returns Generator<string, any, any>

    The enumeration names.

  • Iterates the enumeration values

    Type Parameters

    • T = any

    Returns Generator<EnumValueTyped<T, number>, any, any>

    The enumeration values.

  • Takes a single enum value and splits it into separated flag values set on the value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    • value: number | BrandedType<number, "enum"> | BrandedType<T, "enum">

      The enum value to have it's value split using bitwise-and operator.

    Returns EnumValueTyped<T, number>[]

    An array of each "bit flag" set in the enum.