@codification/cutwater-aws
Version:
A library providing general functionality for TypeScript based AWS projects.
16 lines • 655 B
TypeScript
export declare class CompoundItemId {
readonly parentId: string | undefined;
readonly name: string;
static readonly ID_SEPARATOR = ":";
private constructor();
static fromItemId(itemId: string): CompoundItemId;
static fromKeys(partitionKey: string, sortKey: string): CompoundItemId;
static create(parentId: string, name: string): CompoundItemId;
withName(name: string): CompoundItemId;
get itemId(): string;
get idParts(): string[];
get parentIdParts(): string[];
static toParentId(itemId: string): string | undefined;
static toName(itemId: string): string;
}
//# sourceMappingURL=CompoundItemId.d.ts.map