Skip to content

feat: self-storage lifecycle event types (v0.4.0)#4

Merged
DuncanAForbes merged 2 commits into
mainfrom
develop
Apr 20, 2026
Merged

feat: self-storage lifecycle event types (v0.4.0)#4
DuncanAForbes merged 2 commits into
mainfrom
develop

Conversation

@DuncanAForbes
Copy link
Copy Markdown
Contributor

Summary

  • Extend EventType union with self-storage lifecycle events aligned to the CRM Layer 3.5 webhook taxonomy:
    • Rental: rental.reserved, rental.paid, rental.activated, rental.moved_in, rental.moved_out, rental.renewed, rental.cancelled, rental.completed
    • Deals: deal.created, deal.stage_changed, deal.won, deal.lost
    • Units: unit.occupied, unit.vacated
    • Checkout: checkout.started, checkout.completed, checkout.abandoned
    • Marketing: marketing_event.attendance_recorded
    • Contact: contact.identified, contact.lifecycle_changed
  • Add "How to track self-storage lifecycle events" section to README with code examples
  • Version bump 0.3.00.4.0

Test plan

  • analytics.track({ eventType: 'rental.moved_in', operatorId: 'opreg_acme' }) queues without error
  • analytics.track({ eventType: 'deal.won', valuePence: 14900 }) queues correctly
  • Existing event types (click, lead, page_view, etc.) still work
  • TypeScript autocompletion shows all new event types
  • npm run build produces clean dist

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 20, 2026

Warning

Rate limit exceeded

@DuncanAForbes has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 38 minutes and 51 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 38 minutes and 51 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f998b587-bb07-4773-a048-47df82c27559

📥 Commits

Reviewing files that changed from the base of the PR and between 9876ee7 and 61f1336.

📒 Files selected for processing (3)
  • README.md
  • package.json
  • src/index.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Add rental (reserved/paid/activated/moved_in/moved_out/renewed/cancelled/
completed), deal (created/stage_changed/won/lost), unit (occupied/vacated),
checkout (started/completed/abandoned), marketing, and contact lifecycle
event types to align with the CRM Layer 3.5 webhook taxonomy.
@DuncanAForbes DuncanAForbes merged commit 979b8bf into main Apr 20, 2026
5 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.

1 participant