Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / safety / SafetyEvaluation

Interface: SafetyEvaluation

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:74

Result of evaluating an operation against safety rules.

Properties

action

action: SafetyAction

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:76

The action determined by evaluation.


operation

operation: SafetyOperation

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:80

The operation that was evaluated.


reason

reason: string

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:78

Human-readable explanation of why this action was chosen.


rule?

optional rule: SafetyRule

Defined in: packages/b2c-tooling-sdk/src/safety/types.ts:82

The rule that matched, or undefined if the level default was used.

Released under the Apache-2.0 License.