feat(commerce): add Smile.io loyalty & rewards connector#325
Open
andrei-hasna wants to merge 1 commit into
Open
feat(commerce): add Smile.io loyalty & rewards connector#325andrei-hasna wants to merge 1 commit into
andrei-hasna wants to merge 1 commit into
Conversation
Add @hasna/connect-smile-io, a first-class connector for the public Smile.io REST API (https://api.smile.io/v1). Rebuilt from the upstream API docs against existing open-connectors patterns (reddit/recharge); no platform-alumia code, no browser-use scraper, no secrets. - SmileClient: Bearer API-key auth, query/JSON-body building, cursor pagination wrappers, SmileApiError extraction. - Resource APIs: customers, customer identities, points transactions, points products (+purchase), activities, earning rules, VIP tiers, points settings, reward fulfillments. - Commander CLI (connect-smile-io) with config/profile management and resource commands; types + config/output utils. - Placeholder-only .env.example; registry entry under Commerce & Finance. - Transport tests via mocked fetch (typecheck/build/test all green). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.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
Adds
@hasna/connect-smile-io, a first-class connector for the public Smile.io REST API (https://api.smile.io/v1). Rebuilt from the upstream API docs against existing open-connectors patterns (reddit/recharge) — noplatform-alumiacode, no browser-use scraper dependency, no secrets or internal references.Implements Alumia registry slug
smile-io(source inventory commit760913539ac202c91c60c46f83c2bde72932f587) as net-new work.What's included
SmileClient— Bearer API-key auth (Authorization: Bearer <apiKey>), query/JSON-body building, 204 handling, cursor-pagination-aware list wrappers, andSmileApiErrorextraction.connect-smile-io) — Commander-based, withconfig/profilemanagement and per-resource commands; multi-profile store under~/.hasna/connectors/connect-smile-io/.README.md,CLAUDE.md, placeholder-only.env.example.src/lib/connectors/commerce-finance.ts).fetch(src/api/client.test.ts).Validation
bun run typecheck✅bun test(connector) — 10 pass ✅bun run build✅bun test src/lib/registry.test.ts(root) — 28 pass ✅Notes
/points_transactions,/points_products,/customer_identities/create_or_update) per the live Smile.io docs..env.examplecontains placeholders only.🤖 Generated with Claude Code