mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 17:26:36 +00:00
Secret reminder types
This commit is contained in:
committed by
Akhil Mohan
parent
4189d1028d
commit
3b39e38c89
@@ -0,0 +1,25 @@
|
|||||||
|
import { TSecrets } from "@app/db/schemas";
|
||||||
|
|
||||||
|
type TPartialSecret = Pick<TSecrets, "id" | "secretReminderRepeatDays" | "secretReminderNote">;
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user