From 74496d49ce7b56867906aae4d390304b78c1f7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8=20Audrey=20=E2=9C=A8?= Date: Mon, 21 Apr 2025 13:09:24 -0400 Subject: [PATCH] annotate tech debt --- libs/tools/generator/core/src/types/generated-credential.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/tools/generator/core/src/types/generated-credential.ts b/libs/tools/generator/core/src/types/generated-credential.ts index cdae58fdad1..695e3866920 100644 --- a/libs/tools/generator/core/src/types/generated-credential.ts +++ b/libs/tools/generator/core/src/types/generated-credential.ts @@ -7,7 +7,7 @@ export class GeneratedCredential { /** * Instantiates a generated credential * @param credential The value of the generated credential (e.g. a password) - * @param category The kind of credential + * @param category The type of credential * @param generationDate The date that the credential was generated. * Numeric values should are interpreted using {@link Date.valueOf} * semantics. @@ -16,6 +16,8 @@ export class GeneratedCredential { */ constructor( readonly credential: string, + // FIXME: create a way to migrate the data stored in `category` to a new `type` + // field. The hard part: This requires the migration occur post-decryption. readonly category: CredentialType, generationDate: Date | number, readonly source?: string,