Repository navigation
Commit ec694f0
committed
fix(spec): rewrite the two cross_field Salesforce-example conditions in evaluable CEL
Example 1 (close date in the current or a future month) is rewritten to a
condition that is TRUE on the violation - a close date before the first day
of the current month - using the stdlib date(), today() and addDays() plus
CEL's getDate() accessor. Example 3 (products required for Closed Won) keeps
its direction and drops the lone `=` and the `AND` keyword. The
Salesforce-formula side of each example is unchanged. TSDoc text only.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QcAS3qiYYZNezaxZxaUdMV1 parent a9fb83e commit ec694f0
2 files changed
Lines changed: 14 additions & 2 deletions
File tree
- .changeset
- packages/spec/src/data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
0 commit comments