diff --git a/backend-pg/src/services/secret-reminder/secret-reminder-types.ts b/backend-pg/src/services/secret-reminder/secret-reminder-types.ts new file mode 100644 index 000000000..dd4abac64 --- /dev/null +++ b/backend-pg/src/services/secret-reminder/secret-reminder-types.ts @@ -0,0 +1,25 @@ +import { TSecrets } from "@app/db/schemas"; + +type TPartialSecret = Pick; + +type TPartialInputSecret = Pick< + TSecrets, + "type" | "secretReminderNote" | "secretReminderRepeatDays" | "id" +>; + +export type TCreateSecretReminderDTO = { + oldSecret: TPartialSecret; + newSecret: TPartialSecret; + projectId: string; +}; + +export type TDeleteSecretReminderDTO = { + secretId: string; + repeatDays: number; +}; + +export type THandleReminderDTO = { + newSecret: TPartialInputSecret; + oldSecret: TPartialSecret; + projectId: string; +};