LogoRobo.js
Packages@robojs/roadmap

SyncResult

Type Alias: SyncResult

type SyncResult = {
  cards: readonly RoadmapCard[];
  columns: readonly RoadmapColumn[];
  errors: readonly SyncError[];
  stats: {
     archived: number;
     created: number;
     errors: number;
     total: number;
     updated: number;
    };
  syncedAt: Date;
};

Captures the result of a synchronization run between a provider and the roadmap surface.

Type declaration

NameTypeDescription
cardsreadonly RoadmapCard[]Readonly snapshot of all cards retrieved during the sync.
columnsreadonly RoadmapColumn[]Readonly column definitions included in the sync.
errorsreadonly SyncError[]Detailed list of errors that occurred during synchronization.
stats{ archived: number; created: number; errors: number; total: number; updated: number; }Aggregated counters describing sync operations.
stats.archivednumberCards archived or transitioned to an archival column.
stats.creatednumberCards created during the sync.
stats.errorsnumberNumber of operations that resulted in errors.
stats.totalnumberTotal number of cards processed.
stats.updatednumberCards updated during the sync.
syncedAtDateTimestamp noting when the sync completed.

Remarks

Consumers can leverage this structure to determine whether cards need to be created, updated, or archived within Discord. The stats block enables runtime analytics and logging without inspecting the card arrays.

On this page