Skip to content

feat(omnipartners): extend secure code list/count types for Clixray filters - #480

Merged
Fridus merged 1 commit into
masterfrom
feat/secure-codes-clixray-types
Sep 14, 2026
Merged

Fridus merged 1 commit into
masterfrom
feat/secure-codes-clixray-types

Conversation

@Fridus

@Fridus Fridus commented Sep 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Extend listSecureCodesByReferralPartner types with search_filter, date_start, date_end, and typed status values (ALL, CONFIRMED, etc.).
  • Add creation_date to list items and allow expiry_date to be null.
  • Extend getSecureCodeCount with date filters (date_start, date_end, date_filter_on) and widened status union.
  • Update @filterInput whitelists and errorMap 3129 messages for both methods.
  • Update hash tests for the new request fields.

Validated against deals.clixray.io (partner 531560, deal CODES_ODR_PRO_BREEDER_30_):

  • List returns creation_date (not ts_created).
  • Count date filtering uses date_filter_on (CREATION / UPDATE); date_type returns error 3156 when combined with dates.

Test plan

  • yarn workspace omnipartners test
  • yarn workspace omnipartners build
  • Manual prod smoke test: list with status=ALL + search_filter + dates; count with date_filter_on

Made with Cursor

…ilters

Align deals secure code inputs/outputs with Clixray API updates so loyalty can drop its multi-status list workaround.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Fridus Fridus self-assigned this Sep 14, 2026
@Fridus
Fridus merged commit 7bb29d5 into master Sep 14, 2026
10 checks passed
@Fridus
Fridus deleted the feat/secure-codes-clixray-types branch September 14, 2026 09:02
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