@codesoul-co/hypha-core / modules/artifact/store-registry
- Package index:
@codesoul-co/hypha-core - Source:
packages/core/src/modules/artifact/store-registry.ts - Exports: 2
Using this module
Use the Store registry module for persisting and reading data at this boundary. It exports 1 class, 1 interface.
Import from the package entrypoint
ts
import {
ArtifactStoreProviderRegistry,
} from '@codesoul-co/hypha-core';
import type {
ArtifactStoreProviderRegistration,
} from '@codesoul-co/hypha-core';Usage patterns
- Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with
import type; they do not exist at runtime. - The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
Public exports
| Symbol | Kind | Signature | Description |
|---|---|---|---|
ArtifactStoreProviderRegistry | class | new ArtifactStoreProviderRegistry(): ArtifactStoreProviderRegistry | Provider-neutral DI registry for Artifact Stores. Core owns selection and lifecycle validation without importing a concrete storage adapter. |
ArtifactStoreProviderRegistration | interface | interface ArtifactStoreProviderRegistration | Artifact Store Provider Registration interface with 1 public fields or methods. |
ArtifactStoreProviderRegistry
Provider-neutral DI registry for Artifact Stores. Core owns selection and lifecycle validation without importing a concrete storage adapter.
- Kind: class
- Import:
import { ArtifactStoreProviderRegistry } from '@codesoul-co/hypha-core'; - Source module:
modules/artifact/store-registry
Declaration
text
export declare class ArtifactStoreProviderRegistry {
register(factory: ArtifactStoreProviderFactory): void;
unregister(providerId: string): boolean;
list(): ArtifactStoreProviderRegistration[];
resolve(providerId: string): ArtifactStoreProviderFactory;
create(providerId: string): Promise<ArtifactStoreProvider>;
}Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
constructor | constructor | (): ArtifactStoreProviderRegistry | Creates an instance of this class. |
create | method | create(providerId: string): Promise<ArtifactStoreProvider> | Public method; parameters and return type are shown in the signature. |
list | method | list(): ArtifactStoreProviderRegistration[] | Public method; parameters and return type are shown in the signature. |
register | method | register(factory: ArtifactStoreProviderFactory): void | Public method; parameters and return type are shown in the signature. |
resolve | method | resolve(providerId: string): ArtifactStoreProviderFactory | Public method; parameters and return type are shown in the signature. |
unregister | method | unregister(providerId: string): boolean | Public method; parameters and return type are shown in the signature. |
ArtifactStoreProviderRegistration
Artifact Store Provider Registration interface with 1 public fields or methods.
- Kind: interface
- Import:
import type { ArtifactStoreProviderRegistration } from '@codesoul-co/hypha-core'; - Source module:
modules/artifact/store-registry
Declaration
text
export interface ArtifactStoreProviderRegistration {
providerId: string;
}Contract members
| Member | Kind | Signature | Description |
|---|---|---|---|
providerId | property | providerId: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
