MCPcopy Create free account
hub / github.com/ShipSecAI/studio / mapSummary

Method mapSummary

backend/src/secrets/secrets.repository.ts:385–414  ·  view source on GitHub ↗
(row: {
    id: string;
    name: string;
    description: string | null;
    tags: string[] | null;
    createdAt: Date;
    updatedAt: Date;
    versionId: string | null;
    version: number | null;
    versionCreatedAt: Date | null;
    versionCreatedBy: string | null;
  })

Source from the content-addressed store, hash-verified

383 }
384
385 private mapSummary(row: {
386 id: string;
387 name: string;
388 description: string | null;
389 tags: string[] | null;
390 createdAt: Date;
391 updatedAt: Date;
392 versionId: string | null;
393 version: number | null;
394 versionCreatedAt: Date | null;
395 versionCreatedBy: string | null;
396 }): SecretSummary {
397 return {
398 id: row.id,
399 name: row.name,
400 description: row.description,
401 tags: row.tags,
402 createdAt: row.createdAt,
403 updatedAt: row.updatedAt,
404 activeVersion:
405 row.versionId && row.version
406 ? {
407 id: row.versionId,
408 version: row.version,
409 createdAt: row.versionCreatedAt ?? row.updatedAt,
410 createdBy: row.versionCreatedBy,
411 }
412 : null,
413 };
414 }
415
416 private async ensureSecretExists(
417 secretId: string,

Callers 5

listSecretsMethod · 0.95
findByNameMethod · 0.95
findByIdMethod · 0.95
createSecretMethod · 0.95
rotateSecretMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected