Skip to content

chore(targeting-client): regenerate types for campaign scheduling - #580

Merged
utkuufuk-epilot merged 4 commits into
mainfrom
feat/ER-5517-campaign-schedule
Nov 11, 2026
Merged

utkuufuk-epilot merged 4 commits into
mainfrom
feat/ER-5517-campaign-schedule

Conversation

@utkuufuk-epilot

@utkuufuk-epilot utkuufuk-epilot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Regenerates @epilot/targeting-client from the Targeting API spec for campaign scheduling (ER-5517).

Merge only after targeting-api !89 is deployed to prod. Merging spec changes to main auto-releases @epilot/sdk, and the types shouldn't describe API behaviour that isn't live yet. Generated with npm run openapi:local from that MR's spec. After it's in prod, npm run openapi should produce the same openapi.json.

Changes

  • CampaignStatus gets scheduled: launched with a start_date still in the future, and started on its own at that time.
  • The campaign's start_date / end_date change from date to date-time, with descriptions.
  • changeCampaignStatus documents the schedule and cancel transitions and the new 400 errors: INVALID_CAMPAIGN_DATES, CAMPAIGN_END_BEFORE_START, CAMPAIGN_END_IN_PAST.
  • setupCampaign accepts an optional campaign.start_date / end_date (date-time) and documents the same 400 errors.
  • retriggerCampaignAutomations documents that an ended campaign starts no new runs.
  • Also syncs changes already on the Targeting API: the entity_ui_status recipient filter, the 403 responses of changeCampaignStatus and setupCampaign, and the updated target search / sort descriptions.
  • Changeset: @epilot/targeting-client minor.

utkuufuk and others added 4 commits November 6, 2026 00:42
CampaignStatus gets `scheduled` (launched with a future start_date,
started on its own at that time), the campaign's start_date/end_date
become date-times, and changeCampaignStatus documents the schedule and
cancel transitions and the new date validation errors. Also syncs the
entity_ui_status recipient filter, the 403 responses and the updated
target search/sort descriptions already on the Targeting API.

Refs: ER-5517

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (ER-5517)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resetting a stopped campaign clears its dates, and launching without a
target or delivery method is documented as 409.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@utkuufuk-epilot
utkuufuk-epilot marked this pull request as ready for review November 11, 2026 10:21
@utkuufuk-epilot
utkuufuk-epilot merged commit bb7329d into main Nov 11, 2026
7 checks passed
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.

2 participants