Skip to content

@codesoul-co/hypha-adapters-local / legacy-tool-artifact-migration-report

Using this module

Use the Legacy tool artifact migration report module for defining or implementing provider-neutral ports. It exports 6 functions, 3 interfaces.

Import from the package entrypoint

ts
import {
  isLegacyToolArtifactMigrationExecutionReportId,
  isLegacyToolArtifactMigrationPlanHash,
  isLegacyToolArtifactMigrationRollbackReportId,
  legacyToolArtifactMigrationExecutionReportId,
  legacyToolArtifactMigrationPlanHash,
  legacyToolArtifactMigrationRollbackReportId,
} from '@codesoul-co/hypha-adapters-local';

import type {
  LegacyToolArtifactMigrationExecutionEvidence,
  LegacyToolArtifactMigrationPlanEvidence,
  LegacyToolArtifactMigrationRollbackEvidence,
} from '@codesoul-co/hypha-adapters-local';

Usage patterns

  • Use the 3 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 6 functions as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.

Public exports

SymbolKindSignatureDescription
isLegacyToolArtifactMigrationExecutionReportIdfunctionisLegacyToolArtifactMigrationExecutionReportId(value: unknown): value is stringIs Legacy Tool Artifact Migration Execution Report ID function with 1 public call signature; parameters and return types are listed below.
isLegacyToolArtifactMigrationPlanHashfunctionisLegacyToolArtifactMigrationPlanHash(value: unknown): value is stringIs Legacy Tool Artifact Migration Plan Hash function with 1 public call signature; parameters and return types are listed below.
isLegacyToolArtifactMigrationRollbackReportIdfunctionisLegacyToolArtifactMigrationRollbackReportId(value: unknown): value is stringIs Legacy Tool Artifact Migration Rollback Report ID function with 1 public call signature; parameters and return types are listed below.
legacyToolArtifactMigrationExecutionReportIdfunctionlegacyToolArtifactMigrationExecutionReportId(report: LegacyToolArtifactMigrationExecutionEvidence): stringLegacy Tool Artifact Migration Execution Report ID function with 1 public call signature; parameters and return types are listed below.
legacyToolArtifactMigrationPlanHashfunctionlegacyToolArtifactMigrationPlanHash(plan: LegacyToolArtifactMigrationPlanEvidence): stringLegacy Tool Artifact Migration Plan Hash function with 1 public call signature; parameters and return types are listed below.
legacyToolArtifactMigrationRollbackReportIdfunctionlegacyToolArtifactMigrationRollbackReportId(report: LegacyToolArtifactMigrationRollbackEvidence): stringLegacy Tool Artifact Migration Rollback Report ID function with 1 public call signature; parameters and return types are listed below.
LegacyToolArtifactMigrationExecutionEvidenceinterfaceinterface LegacyToolArtifactMigrationExecutionEvidenceLegacy Tool Artifact Migration Execution Evidence interface with 6 public fields or methods.
LegacyToolArtifactMigrationPlanEvidenceinterfaceinterface LegacyToolArtifactMigrationPlanEvidenceLegacy Tool Artifact Migration Plan Evidence interface with 5 public fields or methods.
LegacyToolArtifactMigrationRollbackEvidenceinterfaceinterface LegacyToolArtifactMigrationRollbackEvidenceLegacy Tool Artifact Migration Rollback Evidence interface with 6 public fields or methods.

isLegacyToolArtifactMigrationExecutionReportId

Is Legacy Tool Artifact Migration Execution Report ID function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function isLegacyToolArtifactMigrationExecutionReportId(value: unknown): value is string;

Call signature

text
isLegacyToolArtifactMigrationExecutionReportId(value: unknown): value is string

Parameters

ParameterTypeRequiredDescription
valueunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: value is string
  • Description: The return contract is defined by the type shown above.

isLegacyToolArtifactMigrationPlanHash

Is Legacy Tool Artifact Migration Plan Hash function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function isLegacyToolArtifactMigrationPlanHash(value: unknown): value is string;

Call signature

text
isLegacyToolArtifactMigrationPlanHash(value: unknown): value is string

Parameters

ParameterTypeRequiredDescription
valueunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: value is string
  • Description: The return contract is defined by the type shown above.

isLegacyToolArtifactMigrationRollbackReportId

Is Legacy Tool Artifact Migration Rollback Report ID function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function isLegacyToolArtifactMigrationRollbackReportId(value: unknown): value is string;

Call signature

text
isLegacyToolArtifactMigrationRollbackReportId(value: unknown): value is string

Parameters

ParameterTypeRequiredDescription
valueunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: value is string
  • Description: The return contract is defined by the type shown above.

legacyToolArtifactMigrationExecutionReportId

Legacy Tool Artifact Migration Execution Report ID function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function legacyToolArtifactMigrationExecutionReportId(report: LegacyToolArtifactMigrationExecutionEvidence): string;

Call signature

text
legacyToolArtifactMigrationExecutionReportId(report: LegacyToolArtifactMigrationExecutionEvidence): string

Parameters

ParameterTypeRequiredDescription
reportLegacyToolArtifactMigrationExecutionEvidenceYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: string
  • Description: The return contract is defined by the type shown above.

legacyToolArtifactMigrationPlanHash

Legacy Tool Artifact Migration Plan Hash function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function legacyToolArtifactMigrationPlanHash(plan: LegacyToolArtifactMigrationPlanEvidence): string;

Call signature

text
legacyToolArtifactMigrationPlanHash(plan: LegacyToolArtifactMigrationPlanEvidence): string

Parameters

ParameterTypeRequiredDescription
planLegacyToolArtifactMigrationPlanEvidenceYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: string
  • Description: The return contract is defined by the type shown above.

legacyToolArtifactMigrationRollbackReportId

Legacy Tool Artifact Migration Rollback Report ID function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function legacyToolArtifactMigrationRollbackReportId(report: LegacyToolArtifactMigrationRollbackEvidence): string;

Call signature

text
legacyToolArtifactMigrationRollbackReportId(report: LegacyToolArtifactMigrationRollbackEvidence): string

Parameters

ParameterTypeRequiredDescription
reportLegacyToolArtifactMigrationRollbackEvidenceYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: string
  • Description: The return contract is defined by the type shown above.

LegacyToolArtifactMigrationExecutionEvidence

Legacy Tool Artifact Migration Execution Evidence interface with 6 public fields or methods.

Declaration

text
export interface LegacyToolArtifactMigrationExecutionEvidence {
    planHash: string;
    mode: 'dry_run' | 'execute';
    items: unknown[];
    skipped: unknown[];
    summary: unknown;
    reportId?: string;
}

Contract members

MemberKindSignatureDescription
itemspropertyitems: unknown[]Public property; its type, readonly modifier and optionality are shown in the signature.
modepropertymode: "execute" | "dry_run"Public property; its type, readonly modifier and optionality are shown in the signature.
planHashpropertyplanHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
reportIdpropertyreportId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
skippedpropertyskipped: unknown[]Public property; its type, readonly modifier and optionality are shown in the signature.
summarypropertysummary: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.

LegacyToolArtifactMigrationPlanEvidence

Legacy Tool Artifact Migration Plan Evidence interface with 5 public fields or methods.

Declaration

text
export interface LegacyToolArtifactMigrationPlanEvidence {
    imports: unknown[];
    skipped: unknown[];
    totalEntries: number;
    totalBytes: number;
    planHash?: string;
}

Contract members

MemberKindSignatureDescription
importspropertyimports: unknown[]Public property; its type, readonly modifier and optionality are shown in the signature.
planHashpropertyplanHash?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
skippedpropertyskipped: unknown[]Public property; its type, readonly modifier and optionality are shown in the signature.
totalBytespropertytotalBytes: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
totalEntriespropertytotalEntries: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

LegacyToolArtifactMigrationRollbackEvidence

Legacy Tool Artifact Migration Rollback Evidence interface with 6 public fields or methods.

Declaration

text
export interface LegacyToolArtifactMigrationRollbackEvidence {
    planHash: string;
    executionReportId: string;
    mode: 'dry_run' | 'rollback';
    items: unknown[];
    summary: unknown;
    reportId?: string;
}

Contract members

MemberKindSignatureDescription
executionReportIdpropertyexecutionReportId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
itemspropertyitems: unknown[]Public property; its type, readonly modifier and optionality are shown in the signature.
modepropertymode: "rollback" | "dry_run"Public property; its type, readonly modifier and optionality are shown in the signature.
planHashpropertyplanHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
reportIdpropertyreportId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
summarypropertysummary: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.