Skip to content

feat(validation-rules-client): add maxPerPeriod operator and CadenceValue - #507

Draft
stewarthsoj wants to merge 2 commits into
mainfrom
josh/cadence-validation-rule
Draft

stewarthsoj wants to merge 2 commits into
mainfrom
josh/cadence-validation-rule

Conversation

@stewarthsoj

@stewarthsoj stewarthsoj commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Regenerates @epilot/validation-rules-client from the Validation Rules API spec that adds cadence conditions: a v2 rule can limit how often something may happen within a period, counting records of a bound context type (e.g. tickets linked to a contract). This is the centralised equivalent of the portal's cadence edit rules so journeys can enforce them via the validation builder.

What changed

  • clients/validation-rules-client/src/openapi.json and openapi.d.ts: new maxPerPeriod operator and CadenceValue condition value (source: cadence, count: records, path as <schema>.<date attribute>, max, period, unit with days | weeks | months | calendar_weeks | calendar_months), added to ConditionValue only. count is an enum so further counted kinds can be added later without touching existing rules.
  • Version bumped to 1.7.0-rc.0; changeset .changeset/validation-rules-cadence-operator.md (@epilot/validation-rules-client minor, @epilot/sdk minor).

The spec was generated from the API merge request rather than the deployed prod spec, because the API change (validation-rules-api !35) is not deployed yet. Publishing this rc unblocks the engine, builder and journey MRs, which already pin 1.7.0-rc.0:

Test plan

  • npm run typegen && npm run build in the client succeed
  • Diff contains only the cadence additions
  • CI green
  • @epilot/validation-rules-client@1.7.0-rc.0 published

🤖 Generated with Claude Code

https://claude.ai/code/session_015pQAQfjedT9aw4USe85sY5

Josh Stewart and others added 2 commits September 21, 2026 10:21
…denceValue

Regenerated from the validation-rules-api spec that introduces cadence
conditions (limit how often a context attribute may change within a period).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015pQAQfjedT9aw4USe85sY5
@stewarthsoj stewarthsoj changed the title feat(validation-rules-client): add maxChangesInPeriod operator and CadenceValue feat(validation-rules-client): add maxPerPeriod operator and CadenceValue Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant