(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;
})
| 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, |
no outgoing calls
no test coverage detected