feat: add UserClient and SubmissionsClient modules for comprehensive SDK coverage (#863) [FaaFyfxR9WAQrL7FcAgEHJvztd8cVMxvjHRS55rw1nwH] - #1435
Open
waterWang wants to merge 1 commit into
Conversation
…SDK coverage (SolFoundry#863) Add dedicated user and submission resource modules to the SolFoundry TypeScript SDK, completing the API coverage for bounties, submissions, and users as specified in the bounty requirements. Changes: - Add sdk/src/users.ts — UserClient with profile management, activity history, contribution stats, and notification preferences - Add sdk/src/submissions.ts — SubmissionsClient with dedicated submission lifecycle operations (submit, list, review, status updates) - Add sdk/src/types.ts types — UserProfile, UserActivityEntry, UserContributionStats, UserNotification, ModelReviewResult, SubmissionReviewResponse, and supporting types - Update sdk/src/index.ts — Export new modules, add users and submissions to the SolFoundry facade class - Add tests — users.test.ts (11 tests) and submissions.test.ts (6 tests) following existing vitest mocking patterns - Update index.test.ts — Verify new clients are accessible via facade Test: 220 passed (12 files), all existing tests continue to pass [fFaaFyfxR9WAQrL7FcAgEHJvztd8cVMxvjHRS55rw1nwH]
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
Add dedicated
UserClientandSubmissionsClientresource modules to the SolFoundry TypeScript SDK, completing the API coverage for bounties, submissions, and users as specified in the T3 bounty requirements.Changes
New:
UserClient(sdk/src/users.ts)New:
SubmissionsClient(sdk/src/submissions.ts)New types (
sdk/src/types.ts)UserProfile,UserProfileUpdate— User profile modelsUserActivityEntry,UserActivityResponse— Activity historyUserContributionStats— Aggregated statsUserNotification,UserNotificationResponse,UserNotificationPreferences— Notification systemModelReviewResult,SubmissionReviewResponse— AI review detailsUpdated facade (
sdk/src/index.ts)SolFoundry.users— Access user operationsSolFoundry.submissions— Access submission operationsTesting
users.test.ts— 11 tests covering all 10 UserClient methodssubmissions.test.ts— 6 tests covering all 5 SubmissionsClient methodsindex.test.ts— Updated to verify new clients via facadeCloses #863
Wallet: FaaFyfxR9WAQrL7FcAgEHJvztd8cVMxvjHRS55rw1nwH