JavaScript/TypeScript SDK monorepo for MagicBell - The real-time notification inbox for web & mobile apps
OTHER License
Bot releases are visible (Hide)
Published by github-actions[bot] over 1 year ago
#90 ea0a9ca
Thanks @smeijer! - update broadcast > notification response schema to include the fields:
created_at
; datetime when notification was createdupdated_at
; datetime when notification was last updatedseen_at
; datetime when notification was first seenread_at
; datetime when notification was first readstatus
; enum showing current state, current values: unseen
, unread
, read
, archived
Further changes are:
recipient
; is marked as non-nullabledeliveries
; is marked as non-nullable#92 530476e
Thanks @smeijer! - Rename users.fetch
to users.get
. Tho it's in theory a breaking change, the users api is relatively new, and the convention in this sdk is to use get
for single entity retrieval, and not fetch
. So we're going with a minor
instead to get this fixed.
Published by github-actions[bot] over 1 year ago
7f9ecbc
]:
Published by github-actions[bot] over 1 year ago
#88 7f9ecbc
Thanks @TD-4242! - feat: support css variables as theme color value
import MagicBell, { NotificationInbox } from '@magicbell/magicbell-react';
const customTheme = {
icon: {
borderColor: 'var(--magicbell-icon-border-color)',
},
};
<MagicBell theme={customTheme} apiKey={...} userEmail={...}>
{() => <NotificationInbox height={500} />}
</MagicBell>
Published by github-actions[bot] over 1 year ago
Note
The broadcasts methods are currently in preview. Enable them via feature flags.
#83 94cbb92
Thanks @smeijer! - feat: add broadcasts.list method to the client.
const broadcasts = magicbell.broadcasts.list({ per_page: 10 });
await broadcasts.forEach((broadcast) => {
console.log(broadcast.id);
});
#84 b0a809d
Thanks @smeijer! - feat: add broadcasts.get
method to the client.
const broadcasts = await magicbell.broadcasts.get(broadcastId);
console.log(broadcast.id);
#86 073e3f8
Thanks @smeijer! - feat: add broadcasts.notifications.list
method to the client.
const notifications = magicbell.broadcasts.notifications.list(broadcastId, { per_page: 10 });
await notifications.forEach((notification) => {
console.log(notification.id);
});
#87 f0ec9a5
Thanks @smeijer! - Update schemas for broadcast methods.
broadcast.recipients_count
, use broadcast.status.summary.total
instead.status
is now an enum string.sent_at
timestamps to be iso-strings.created_at
to broadcast.title
to broadcast notificationPublished by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
fbbbae7
]:
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
6eb5705
]:
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
6eb5705
Thanks @SuzukiRyuichiro! - Fix example in docs for useBell
, to provide storeId
via an options object.Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
6d7e434
Thanks @unamashana!
pushSubscriptions
imports
method behind feature flagusers.list
method to list all usersusers.fetch
method to fetch a single userusers.pushSubscriptions
resource to manage users push subscriptionsusers.pushSubscriptions.list
method to list all push subscriptions for a userusers.pushSubscriptions.delete
method to delete a single push subscription for a userPublished by github-actions[bot] over 1 year ago
2d96a3d
]:
Published by github-actions[bot] over 1 year ago
2d96a3d
Thanks @pianomansam! - feat: don't open action-url when notification click handler returns falsePublished by github-actions[bot] over 1 year ago
#64 1676fd3
Thanks @smeijer! - feat: support custom request headers
Custom request headers can be used to decorate requests for logs and metrics or for example to instruct proxy servers.
import MagicBell from 'magicbell';
const magicbell = new MagicBell({
apiKey: 'my-api-key',
headers: {
'X-Custom-Header': 'foo',
},
});
Published by github-actions[bot] over 1 year ago