Skip to content

Commit

Permalink
chore: improve @magicbell/user-client cjs/esm support (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
smeijer committed Sep 13, 2024
1 parent aa84917 commit 6900feb
Show file tree
Hide file tree
Showing 88 changed files with 858 additions and 739 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-icons-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@magicbell/user-client': minor
---

fix cjs/esm dual module support
16 changes: 8 additions & 8 deletions packages/user-client/documentation/models/ApnsToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

**Properties**

| Name | Type | Required | Description |
| :------------- | :---------------------- | :------- | :---------- |
| deviceToken | string || |
| installationId | ApnsTokenInstallationId || |
| Name | Type | Required | Description |
| :------------- | :------------------------ | :------- | :---------- |
| deviceToken | `string` || |
| installationId | `ApnsTokenInstallationId` || |

# ApnsTokenInstallationId

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :------------ |
| DEVELOPMENT | string || "development" |
| PRODUCTION | string || "production" |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :------------ |
| DEVELOPMENT | `string` || "development" |
| PRODUCTION | `string` || "production" |
20 changes: 10 additions & 10 deletions packages/user-client/documentation/models/ApnsTokenWithMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

**Properties**

| Name | Type | Required | Description |
| :------- | :---------------------------- | :------- | :---------- |
| data | ApnsToken || |
| metadata | ApnsTokenWithMetadataMetadata || |
| Name | Type | Required | Description |
| :------- | :------------------------------ | :------- | :---------- |
| data | `ApnsToken` || |
| metadata | `ApnsTokenWithMetadataMetadata` || |

# ApnsTokenWithMetadataMetadata

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| createdAt | string || |
| id | string || |
| discardedAt | string || |
| updatedAt | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| createdAt | `string` || |
| id | `string` || |
| discardedAt | `string` || |
| updatedAt | `string` || |
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

**Properties**

| Name | Type | Required | Description |
| :--- | :--------------------------------- | :------- | :---------- |
| data | ArrayWithMetadataOfApnsTokenData[] || |
| Name | Type | Required | Description |
| :--- | :----------------------------------- | :------- | :---------- |
| data | `ArrayWithMetadataOfApnsTokenData[]` || |

# ArrayWithMetadataOfApnsTokenData

**Properties**

| Name | Type | Required | Description |
| :------- | :------------ | :------- | :---------- |
| data | ApnsToken || |
| metadata | DataMetadata1 || |
| Name | Type | Required | Description |
| :------- | :-------------- | :------- | :---------- |
| data | `ApnsToken` || |
| metadata | `DataMetadata1` || |

# DataMetadata1

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| createdAt | string || |
| id | string || |
| discardedAt | string || |
| updatedAt | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| createdAt | `string` || |
| id | `string` || |
| discardedAt | `string` || |
| updatedAt | `string` || |
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

**Properties**

| Name | Type | Required | Description |
| :--- | :--------------------------------- | :------- | :---------- |
| data | ArrayWithMetadataOfExpoTokenData[] || |
| Name | Type | Required | Description |
| :--- | :----------------------------------- | :------- | :---------- |
| data | `ArrayWithMetadataOfExpoTokenData[]` || |

# ArrayWithMetadataOfExpoTokenData

**Properties**

| Name | Type | Required | Description |
| :------- | :------------ | :------- | :---------- |
| data | ExpoToken || |
| metadata | DataMetadata2 || |
| Name | Type | Required | Description |
| :------- | :-------------- | :------- | :---------- |
| data | `ExpoToken` || |
| metadata | `DataMetadata2` || |

# DataMetadata2

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| createdAt | string || |
| id | string || |
| discardedAt | string || |
| updatedAt | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| createdAt | `string` || |
| id | `string` || |
| discardedAt | `string` || |
| updatedAt | `string` || |
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

**Properties**

| Name | Type | Required | Description |
| :--- | :-------------------------------- | :------- | :---------- |
| data | ArrayWithMetadataOfFcmTokenData[] || |
| Name | Type | Required | Description |
| :--- | :---------------------------------- | :------- | :---------- |
| data | `ArrayWithMetadataOfFcmTokenData[]` || |

# ArrayWithMetadataOfFcmTokenData

**Properties**

| Name | Type | Required | Description |
| :------- | :------------ | :------- | :---------- |
| data | FcmToken || |
| metadata | DataMetadata3 || |
| Name | Type | Required | Description |
| :------- | :-------------- | :------- | :---------- |
| data | `FcmToken` || |
| metadata | `DataMetadata3` || |

# DataMetadata3

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| createdAt | string || |
| id | string || |
| discardedAt | string || |
| updatedAt | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| createdAt | `string` || |
| id | `string` || |
| discardedAt | `string` || |
| updatedAt | `string` || |
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

**Properties**

| Name | Type | Required | Description |
| :--- | :---------------------------------- | :------- | :---------- |
| data | ArrayWithMetadataOfSlackTokenData[] || |
| Name | Type | Required | Description |
| :--- | :------------------------------------ | :------- | :---------- |
| data | `ArrayWithMetadataOfSlackTokenData[]` || |

# ArrayWithMetadataOfSlackTokenData

**Properties**

| Name | Type | Required | Description |
| :------- | :------------ | :------- | :---------- |
| data | SlackToken || |
| metadata | DataMetadata4 || |
| Name | Type | Required | Description |
| :------- | :-------------- | :------- | :---------- |
| data | `SlackToken` || |
| metadata | `DataMetadata4` || |

# DataMetadata4

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| createdAt | string || |
| id | string || |
| discardedAt | string || |
| updatedAt | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| createdAt | `string` || |
| id | `string` || |
| discardedAt | `string` || |
| updatedAt | `string` || |
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

**Properties**

| Name | Type | Required | Description |
| :--- | :---------------------------------- | :------- | :---------- |
| data | ArrayWithMetadataOfTeamsTokenData[] || |
| Name | Type | Required | Description |
| :--- | :------------------------------------ | :------- | :---------- |
| data | `ArrayWithMetadataOfTeamsTokenData[]` || |

# ArrayWithMetadataOfTeamsTokenData

**Properties**

| Name | Type | Required | Description |
| :------- | :------------ | :------- | :---------- |
| data | TeamsToken || |
| metadata | DataMetadata5 || |
| Name | Type | Required | Description |
| :------- | :-------------- | :------- | :---------- |
| data | `TeamsToken` || |
| metadata | `DataMetadata5` || |

# DataMetadata5

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| createdAt | string || |
| id | string || |
| discardedAt | string || |
| updatedAt | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| createdAt | `string` || |
| id | `string` || |
| discardedAt | `string` || |
| updatedAt | `string` || |
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

**Properties**

| Name | Type | Required | Description |
| :--- | :------------------------------------ | :------- | :---------- |
| data | ArrayWithMetadataOfWebPushTokenData[] || |
| Name | Type | Required | Description |
| :--- | :-------------------------------------- | :------- | :---------- |
| data | `ArrayWithMetadataOfWebPushTokenData[]` || |

# ArrayWithMetadataOfWebPushTokenData

**Properties**

| Name | Type | Required | Description |
| :------- | :------------ | :------- | :---------- |
| data | WebPushToken || |
| metadata | DataMetadata6 || |
| Name | Type | Required | Description |
| :------- | :-------------- | :------- | :---------- |
| data | `WebPushToken` || |
| metadata | `DataMetadata6` || |

# DataMetadata6

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| createdAt | string || |
| id | string || |
| discardedAt | string || |
| updatedAt | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| createdAt | `string` || |
| id | `string` || |
| discardedAt | `string` || |
| updatedAt | `string` || |
8 changes: 4 additions & 4 deletions packages/user-client/documentation/models/DiscardResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| discardedAt | string || |
| id | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| discardedAt | `string` || |
| id | `string` || |
6 changes: 3 additions & 3 deletions packages/user-client/documentation/models/ExpoToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| deviceToken | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| deviceToken | `string` || |
20 changes: 10 additions & 10 deletions packages/user-client/documentation/models/ExpoTokenWithMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

**Properties**

| Name | Type | Required | Description |
| :------- | :---------------------------- | :------- | :---------- |
| data | ExpoToken || |
| metadata | ExpoTokenWithMetadataMetadata || |
| Name | Type | Required | Description |
| :------- | :------------------------------ | :------- | :---------- |
| data | `ExpoToken` || |
| metadata | `ExpoTokenWithMetadataMetadata` || |

# ExpoTokenWithMetadataMetadata

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :---------- |
| createdAt | string || |
| id | string || |
| discardedAt | string || |
| updatedAt | string || |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :---------- |
| createdAt | `string` || |
| id | `string` || |
| discardedAt | `string` || |
| updatedAt | `string` || |
16 changes: 8 additions & 8 deletions packages/user-client/documentation/models/FcmToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

**Properties**

| Name | Type | Required | Description |
| :------------- | :--------------------- | :------- | :---------- |
| deviceToken | string || |
| installationId | FcmTokenInstallationId || |
| Name | Type | Required | Description |
| :------------- | :----------------------- | :------- | :---------- |
| deviceToken | `string` || |
| installationId | `FcmTokenInstallationId` || |

# FcmTokenInstallationId

**Properties**

| Name | Type | Required | Description |
| :---------- | :----- | :------- | :------------ |
| DEVELOPMENT | string || "development" |
| PRODUCTION | string || "production" |
| Name | Type | Required | Description |
| :---------- | :------- | :------- | :------------ |
| DEVELOPMENT | `string` || "development" |
| PRODUCTION | `string` || "production" |
Loading

0 comments on commit 6900feb

Please sign in to comment.