
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@bagdock/loyalty
Advanced tools
----++ ----++ ---+++
---+++ ---++ ---++
----+--- ----- --------- --------++ ------ ----- ----++-----
---------+ --------++----------++--------+++--------+ --------++---++---++++
---+++---++ ++++---++---+++---++---+++---++---+++---++---++---++------++++
----++ ---++--------++---++----++---++ ---++---++ ---+---++ -------++
----+----+---+++---++---++----++---++----++---++---+++--++ --------+---++
---------++--------+++--------+++--------++ -------+++ -------++---++----++
+++++++++ +++++++++- +++---++ ++++++++ ++++++ ++++++ ++++ ++++
--------+++
+++++++
The official TypeScript SDK for the Bagdock Loyalty API — referrals, rewards, and points for self-storage operators.
npm install @bagdock/loyalty
yarn add @bagdock/loyalty
pnpm add @bagdock/loyalty
bun add @bagdock/loyalty
import { BagdockLoyalty } from '@bagdock/loyalty'
const loyalty = new BagdockLoyalty({
apiKey: 'sk_live_...',
})
// Create a member
const member = await loyalty.members.create({
email: 'jane@example.com',
name: 'Jane Doe',
})
// Create a referral link
const link = await loyalty.links.create({
memberId: member.id,
campaignId: 'camp_summer2026',
})
// Track an event
await loyalty.events.track({
memberId: member.id,
event: 'booking_completed',
properties: { unitSize: '10x10' },
})
For platforms embedding loyalty on behalf of operators:
const platform = new BagdockLoyalty({
apiKey: 'pak_live_...',
})
const operatorClient = platform.forOperator('opreg_wisestorage')
const members = await operatorClient.members.list()
loyalty.members| Method | Description |
|---|---|
members.create(params) | Create a member |
members.get(id) | Get a member by ID |
members.update(id, params) | Update a member |
members.list(params?) | List members |
loyalty.links| Method | Description |
|---|---|
links.create(params) | Create a referral link |
links.get(id) | Get a link |
links.list(params?) | List links |
loyalty.events| Method | Description |
|---|---|
events.track(params) | Track a loyalty event |
events.list(params?) | List events |
loyalty.enrollments| Method | Description |
|---|---|
enrollments.create(params) | Enroll a member in a program |
enrollments.get(id) | Get enrollment details |
enrollments.list(params?) | List enrollments |
loyalty.subscriptions| Method | Description |
|---|---|
subscriptions.create(params) | Create a subscription |
subscriptions.cancel(id) | Cancel a subscription |
subscriptions.list(params?) | List subscriptions |
loyalty.embedTokens| Method | Description |
|---|---|
embedTokens.create(params) | Create an embed token |
embedTokens.validate(token) | Validate a token |
embedTokens.list(params?) | List tokens |
loyalty.domains| Method | Description |
|---|---|
domains.create(params) | Add a custom domain |
domains.verify(id) | Verify a domain |
domains.list(params?) | List domains |
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | — | Required. Your Bagdock API key |
baseUrl | string | https://api.bagdock.com | API base URL |
MIT
FAQs
Bagdock Loyalty TypeScript SDK — referrals, rewards, and points
The npm package @bagdock/loyalty receives a total of 10 weekly downloads. As such, @bagdock/loyalty popularity was classified as not popular.
We found that @bagdock/loyalty demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.