with stripSchema and filterForSchema

This commit is contained in:
x032205
2025-05-13 23:08:54 -04:00
parent f6e1441dc0
commit bae62421ae
14 changed files with 275 additions and 151 deletions
@@ -86,10 +86,12 @@ export const useTriggerSecretSyncImportSecrets = () => {
mutationFn: async ({
syncId,
destination,
importBehavior
importBehavior,
filterForSchema,
stripSchema
}: TTriggerSecretSyncImportSecretsDTO) => {
const { data } = await apiRequest.post(
`/api/v1/secret-syncs/${destination}/${syncId}/import-secrets?importBehavior=${importBehavior}`
`/api/v1/secret-syncs/${destination}/${syncId}/import-secrets?importBehavior=${importBehavior}&filterForSchema=${filterForSchema}&stripSchema=${stripSchema}`
);
return data;
@@ -82,6 +82,8 @@ export type TTriggerSecretSyncImportSecretsDTO = {
syncId: string;
importBehavior: SecretSyncImportBehavior;
projectId: string;
filterForSchema: boolean;
stripSchema: boolean;
};
export type TTriggerSecretSyncRemoveSecretsDTO = {
@@ -4,8 +4,7 @@ import { SecretSyncInitialSyncBehavior, SecretSyncStatus } from "@app/hooks/api/
export type RootSyncOptions = {
initialSyncBehavior: SecretSyncInitialSyncBehavior;
disableSecretDeletion?: boolean;
// prependPrefix?: string;
// appendSuffix?: string;
keySchema?: string;
};
export type TRootSecretSync = {