woltlab-compiler
Version:
A compiler for WoltLab-Package Archives and WoltLab-Package Components
84 lines (83 loc) • 2.68 kB
TypeScript
import { Component } from "./Component";
import { ConflictingPackageDescriptor } from "./ConflictingPackageDescriptor";
import { FileDescriptor } from "./FileDescriptor";
import { InstructionSet } from "./Instructions/InstructionSet";
import { UpdateInstructionSet } from "./Instructions/UpdateInstructionSet";
import { IPackageOptions } from "./IPackageOptions";
import { OptionalPackageDescriptor } from "./OptionalPackageDescriptor";
import { RequiredPackageDescriptor } from "./RequiredPackageDescriptor";
/**
* Represents an extension-package.
*/
export declare class Package extends Component {
/**
* The identifier of the package.
*/
private identifier;
/**
* A set of files which will be added to the package.
*/
private additionalFiles;
/**
* A set of packages which are required by this package.
*/
private requiredPackages;
/**
* A set of packages which cause a conflict with this package.
*/
private conflictingPackages;
/**
* A set of packages which can be installed additionally.
*/
private optionalPackages;
/**
* A set of instructions for installing the package.
*/
private installSet;
/**
* A set of instructions to execute when updating from a specific version.
*/
private updateSets;
/**
* Initializes a new instance of the `Package` class.
*/
constructor(options: IPackageOptions);
/**
* Gets or sets the identifier of the package.
*/
Identifier: string;
/**
* Gets a set of files which will be added to the package.
*/
readonly AdditionalFiles: FileDescriptor[];
/**
* Gets a set of packages which are required by this package.
*/
readonly RequiredPackages: RequiredPackageDescriptor[];
/**
* Gets a set of packages which cause a conflict with this package.
*/
readonly ConflictingPackages: ConflictingPackageDescriptor[];
/**
* Gets a set of packages which can be installed additionally.
*/
readonly OptionalPackages: OptionalPackageDescriptor[];
/**
* Gets a set of instructions for installing the package.
*/
readonly InstallSet: InstructionSet;
/**
* Gets a set of instructions to execute when updating from a specific version.
*/
readonly UpdateSets: UpdateInstructionSet[];
/**
* Looks for an object with the specified id.
*
* @param id
* The id of the object to get.
*
* @returns
* The object with the specified id.
*/
GetObjectByID(id: string): any;
}