Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/auto-bump-magicbell-js-1763964473.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'magicbell-js': minor
---

Automatic minor version bump for changes in `magicbell-js`.
4 changes: 2 additions & 2 deletions packages/magicbell-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.broadcasts.listBroadcasts({
limit: 10,
limit: 1,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down Expand Up @@ -238,7 +238,7 @@ import { Client } from 'magicbell-js/user-client';
});

const { data } = await client.channels.listInboxTokens({
limit: 4,
limit: 123,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down
2 changes: 1 addition & 1 deletion packages/magicbell-js/docs/project-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.broadcasts.listBroadcasts({
limit: 10,
limit: 1,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down
20 changes: 10 additions & 10 deletions packages/magicbell-js/docs/project-client/models/ApnsToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

**Properties**

| Name | Type | Required | Description |
| :------------- | :---------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| createdAt | string | ✅ | |
| deviceToken | string | ✅ | |
| id | string | ✅ | |
| appId | string | ❌ | (Optional) The bundle identifier of the application that is registering this token. Use this field to override the default identifier specified in the projects APNs integration. |
| discardedAt | string | ❌ | |
| installationId | ApnsTokenInstallationId | ❌ | (Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`. |
| updatedAt | string | ❌ | |
| Name | Type | Required | Description |
| :------------- | :------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| createdAt | string | ✅ | |
| deviceToken | string | ✅ | |
| id | string | ✅ | |
| appId | string | ❌ | (Optional) The bundle identifier of the application that is registering this token. Use this field to override the default identifier specified in the projects APNs integration. |
| discardedAt | string | ❌ | |
| installationId | InstallationId | ❌ | (Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`. |
| updatedAt | string | ❌ | |

# ApnsTokenInstallationId
# InstallationId

(Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`.

Expand Down
24 changes: 7 additions & 17 deletions packages/magicbell-js/docs/project-client/models/FcmToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,10 @@

**Properties**

| Name | Type | Required | Description |
| :------------- | :--------------------- | :------- | :---------- |
| createdAt | string | ✅ | |
| deviceToken | string | ✅ | |
| id | string | ✅ | |
| discardedAt | string | ❌ | |
| installationId | FcmTokenInstallationId | ❌ | |
| updatedAt | string | ❌ | |

# FcmTokenInstallationId

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :------------ |
| DEVELOPMENT | string | ✅ | "development" |
| PRODUCTION | string | ✅ | "production" |
| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| createdAt | string | ✅ | |
| deviceToken | string | ✅ | |
| id | string | ✅ | |
| discardedAt | string | ❌ | |
| updatedAt | string | ❌ | |
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.broadcasts.listBroadcasts({
limit: 10,
limit: 1,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down Expand Up @@ -158,7 +158,7 @@ import {
const statusStatus = StatusStatus.ENQUEUED;

const summary: Summary = {
failures: 7,
failures: 4,
total: 5,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import { CategoryDeliveryConfig, CategoryDeliveryConfigChannels, Channel, Client

const categoryDeliveryConfigChannels: CategoryDeliveryConfigChannels = {
channel: channel,
delay: 9,
delay: 1,
if: 'if',
};

Expand Down Expand Up @@ -250,7 +250,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.channels.listUserApnsTokens('user_id', {
limit: 9,
limit: 3,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down Expand Up @@ -358,7 +358,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.channels.listUserExpoTokens('user_id', {
limit: 4,
limit: 123,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down Expand Up @@ -466,7 +466,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.channels.listUserFcmTokens('user_id', {
limit: 1,
limit: 2,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down Expand Up @@ -682,7 +682,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.channels.listUserSlackTokens('user_id', {
limit: 2,
limit: 8,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down Expand Up @@ -790,7 +790,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.channels.listUserTeamsTokens('user_id', {
limit: 10,
limit: 1,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down Expand Up @@ -898,7 +898,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.channels.listUserWebPushTokens('user_id', {
limit: 9,
limit: 123,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.events.listEvents({
limit: 9,
limit: 1,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.integrations.listIntegrations({
limit: 8,
limit: 2,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
});
Expand Down Expand Up @@ -154,13 +154,13 @@ import { ApnsConfigPayload, Badge, Client, PayloadVersion } from 'magicbell-js/p
const apnsConfigPayload: ApnsConfigPayload = {
appId: "app_id",
badge: badge,
certificate: "----BEGIN PRIVATE KEY-------
LJfxDl7=
-END PRIVATE KEYYY-----------
certificate: " BEGIN PRIVATE KEY--
2tSdsGz=
--------- END PRIVATE KEYYYYYYYYYYY--------
",
keyId: "nulla anim",
keyId: "proident s",
payloadVersion: payloadVersion,
teamId: "inirurecon"
teamId: "laborum ut"
};

const { data } = await client.integrations.saveApnsIntegration(apnsConfigPayload);
Expand Down Expand Up @@ -452,10 +452,9 @@ import { Client, FcmConfigPayload, Type_ } from 'magicbell-js/project-client';
clientEmail: "client_email",
clientId: "client_id",
clientX509CertUrl: "client_x509_cert_url",
privateKey: "BEGINXANBXVGZX-------
ky4I+=
----ENDUJ-------
",
privateKey: "----BEGINZZASTRAXC-
NBdNmSp
------- ENDTLCHMVK----------",
privateKeyId: "private_key_id",
projectId: "project_id",
tokenUri: "token_uri",
Expand Down Expand Up @@ -676,7 +675,7 @@ import {

const banner: Banner = {
backgroundColor: 'backgroundColor',
backgroundOpacity: 0.59,
backgroundOpacity: 4.93,
fontSize: 'fontSize',
textColor: 'textColor',
};
Expand Down Expand Up @@ -1384,10 +1383,10 @@ import { Client, SlackConfigPayload } from 'magicbell-js/project-client';
});

const slackConfigPayload: SlackConfigPayload = {
appId: '0N',
clientId: '5304524.8556302494',
clientSecret: 'amet culpa Excepteurculpa quis a',
signingSecret: 'ut irurereprehenderit voluptatea',
appId: 'O7RI',
clientId: '104.7350704',
clientSecret: 'officia fugiat nostrud Excepteur',
signingSecret: 'non sit exanim ad enim eaexlabor',
};

const { data } = await client.integrations.saveSlackIntegration(slackConfigPayload);
Expand Down Expand Up @@ -1694,7 +1693,7 @@ import { Client, TwilioConfigPayload } from 'magicbell-js/project-client';
accountSid: 'account_sid',
apiKey: 'api_key',
apiSecret: 'api_secret',
from: '+8217286788160',
from: '+28378825295343',
};

const { data } = await client.integrations.saveTwilioIntegration(twilioConfigPayload);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { Client } from 'magicbell-js/project-client';
});

const { data } = await client.users.listUsers({
limit: 8,
limit: 1,
startingAfter: 'starting_after',
endingBefore: 'ending_before',
query: 'query',
Expand Down
Loading
Loading