Files
sentinel/fixtures/js-stubs/dataScrubbingRelayPiiConfig.ts
2024-02-15 17:01:50 +00:00

28 lines
702 B
TypeScript

import {
Applications,
MethodType,
PiiConfig,
RuleType,
} from 'sentry/views/settings/components/dataScrubbing/types';
export function DataScrubbingRelayPiiConfigFixture(): {
applications: Applications;
rules: Record<string, PiiConfig>;
} {
return {
rules: {
0: {
type: RuleType.PASSWORD,
redaction: {method: MethodType.REPLACE, text: 'Scrubbed'},
},
1: {type: RuleType.CREDITCARD, redaction: {method: MethodType.MASK}},
2: {
type: RuleType.PATTERN,
pattern: '[a-zA-Z0-9]+',
redaction: {method: MethodType.REPLACE, text: 'Placeholder'},
},
},
applications: {password: ['0'], $message: ['1', '2']},
};
}