Repository navigation
feat(v4.8.4): add referral commission, campaign, identity, and invitation endpoints - #4
Merged
Merged
Conversation
…tion endpoints - Add getReferralCommissionRecords for POST /v5/referral/commission/records - Add getReferralCampaignRewards for POST /v5/referral/campaign/rewards - Add getReferralUserIdentityProfile for POST /v5/referral/user/identity-profile - Add getReferralUserInvitations for POST /v5/referral/user/invitations Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Monday SDK batch for 26 Oct. Patch
4.8.3to4.8.4, branched from upstreammasterat0f4f75b. PR sieblyio#580 (update19102026) is already merged there, so this branch is not stacked on it.Adds the four referral POST endpoints from the V5 changelog for 2026-10-20.
GET /v5/user/invitation/referralsis unchanged.Changelog
getReferralCommissionRecords()forPOST /v5/referral/commission/records. Optional camelCase filters;userIdListis an invitee ID list. Response amounts are strings,paymentTimeis Unix seconds.getReferralCampaignRewards()forPOST /v5/referral/campaign/rewards. Empty JSON body.tasksare JSON strings (schemaVersion2), not the caller's progress or claims.getReferralUserIdentityProfile()forPOST /v5/referral/user/identity-profile. Empty JSON body.inviterAffiliateUserIdandinviterUserIdare1/0relationship flags, not user IDs.commissionInfois optional.getReferralUserInvitations()forPOST /v5/referral/user/invitations. Optional camelCase filters, includingfriendStatus.Docs note that gateway field casing and int64/enum serialization are not independently verified. The types follow the published proto camelCase names.
Checks
npm run lintpassednpm run buildpassedtest/util/serializeParams.test.ts,test/websockets/wsStore.test.ts(120 tests)tsc --project tsconfig.test.json --noEmitfails only intest/v5/rsa-auth.test.ts(9 pre-existing errors:process.envsecrets typedstring | undefined). No errors in the new referral types