-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add batch delete api and batch create api
- Loading branch information
Showing
3 changed files
with
90 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import { Omit } from 'utility-types'; | ||
import { ISecret } from '../../models'; | ||
|
||
export type ModifySecretPayload = Omit<ISecret, "user" | "version" | "environment" | "workspace">; | ||
// User input for CRUD operations on secrets routes | ||
export type SecretUserInput = Omit<ISecret, "user" | "version" | "environment" | "workspace">; | ||
|
||
export type SafeUpdateSecret = Partial<Omit<ISecret, "user" | "version" | "environment" | "workspace">>; | ||
// Used for modeling sanitized secrets before uplaod. To be used for converting user input for uploading | ||
export type SanitizedSecretModify = Partial<Omit<ISecret, "user" | "version" | "environment" | "workspace">>; | ||
|
||
// Used for modeling sanitized secrets before create. To be used for converting user input for creating new secrets | ||
export type SanitizedSecretForCreate = Omit<ISecret, "version" | "_id">; |