Skip to content

Commit

Permalink
fix feed
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 10, 2024
1 parent 18b6ded commit 48f0c9e
Show file tree
Hide file tree
Showing 42 changed files with 1,176 additions and 790 deletions.
32 changes: 18 additions & 14 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
lockVersion: 2.0.0
id: 6bff3a53-3f0b-40b4-942f-ff70dc583ae5
management:
docChecksum: 953e7804a0485fa5e5b0422a73c055a3
docChecksum: 3f7f8bee8fb96a1d61fcae878f0589d8
docVersion: "1.0"
speakeasyVersion: 1.453.4
generationVersion: 2.474.6
releaseVersion: 0.0.1-alpha.77
configChecksum: ab03311e8d757787eefe4cc94a1b5a54
speakeasyVersion: 1.453.8
generationVersion: 2.474.15
releaseVersion: 0.0.1-alpha.78
configChecksum: f7ed5a2a60c86e97ffcf9913b1c262d8
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.18.8
core: 3.18.9
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.2
examples: 2.81.4
flattening: 2.82.0
flattening: 2.82.1
globalSecurity: 2.82.11
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
Expand Down Expand Up @@ -47,7 +47,8 @@ generatedFiles:
- docs/models/components/activitynotificationtemplateresponsedto.md
- docs/models/components/activitystatsresponsedto.md
- docs/models/components/actor.md
- docs/models/components/actordata.md
- docs/models/components/actorfeeditemdto.md
- docs/models/components/actorfeeditemdtodata.md
- docs/models/components/actortypeenum.md
- docs/models/components/addsubscribersrequestdto.md
- docs/models/components/apikey.md
Expand Down Expand Up @@ -132,9 +133,9 @@ generatedFiles:
- docs/models/components/messagetemplate.md
- docs/models/components/metadata.md
- docs/models/components/monthlytype.md
- docs/models/components/notificationdto.md
- docs/models/components/notificationdtochannel.md
- docs/models/components/notificationdtostatus.md
- docs/models/components/notificationfeeditemdto.md
- docs/models/components/notificationfeeditemdtoproviderid.md
- docs/models/components/notificationfeeditemdtostatus.md
- docs/models/components/notificationgroup.md
- docs/models/components/notificationgroupresponsedto.md
- docs/models/components/notificationstep.md
Expand Down Expand Up @@ -163,9 +164,12 @@ generatedFiles:
- docs/models/components/source.md
- docs/models/components/status.md
- docs/models/components/stepfilter.md
- docs/models/components/subject.md
- docs/models/components/subscriberchanneldto.md
- docs/models/components/subscriberfeedresponsedto.md
- docs/models/components/subscriberpayloaddto.md
- docs/models/components/subscriberresponsedto.md
- docs/models/components/templateidentifier.md
- docs/models/components/templateresponse.md
- docs/models/components/tenant.md
- docs/models/components/tenantpayloaddto.md
Expand All @@ -178,7 +182,6 @@ generatedFiles:
- docs/models/components/topicpayloaddto.md
- docs/models/components/topicsubscriberdto.md
- docs/models/components/triggereventrequestdto.md
- docs/models/components/triggereventrequestdtoactor.md
- docs/models/components/triggereventresponsedto.md
- docs/models/components/triggereventresponsedtostatus.md
- docs/models/components/triggereventtoallrequestdto.md
Expand Down Expand Up @@ -408,7 +411,7 @@ generatedFiles:
- src/models/components/activitynotificationsubscriberresponsedto.ts
- src/models/components/activitynotificationtemplateresponsedto.ts
- src/models/components/activitystatsresponsedto.ts
- src/models/components/actor.ts
- src/models/components/actorfeeditemdto.ts
- src/models/components/actortypeenum.ts
- src/models/components/addsubscribersrequestdto.ts
- src/models/components/apikey.ts
Expand Down Expand Up @@ -457,7 +460,7 @@ generatedFiles:
- src/models/components/messagemarkasrequestdto.ts
- src/models/components/messageresponsedto.ts
- src/models/components/messagetemplate.ts
- src/models/components/notificationdto.ts
- src/models/components/notificationfeeditemdto.ts
- src/models/components/notificationgroup.ts
- src/models/components/notificationgroupresponsedto.ts
- src/models/components/notificationstep.ts
Expand All @@ -472,6 +475,7 @@ generatedFiles:
- src/models/components/security.ts
- src/models/components/stepfilter.ts
- src/models/components/subscriberchanneldto.ts
- src/models/components/subscriberfeedresponsedto.ts
- src/models/components/subscriberpayloaddto.ts
- src/models/components/subscriberresponsedto.ts
- src/models/components/templateresponse.ts
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.0.1-alpha.77
version: 0.0.1-alpha.78
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.453.4
speakeasyVersion: 1.453.8
sources:
json-development:
sourceNamespace: json-development
sourceRevisionDigest: sha256:bedbc6d00f2af59e27c55d8c94b2c129a47ae6b64e77419967598696ea1b5b23
sourceBlobDigest: sha256:595c3ce779fd4759c8e761f201f816ed7d1b9d61d57aa175a8902e77b21d3a8b
sourceRevisionDigest: sha256:fdd69938eb255b9b0b52e3b247dee3a116120f206b6997950b8abfd109d60c78
sourceBlobDigest: sha256:c49b1a02ed03d1b4d2a376f925e9d4c806d50058dcbe6a8c64b3305b76834f9d
tags:
- latest
- "1.0"
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:bedbc6d00f2af59e27c55d8c94b2c129a47ae6b64e77419967598696ea1b5b23
sourceBlobDigest: sha256:595c3ce779fd4759c8e761f201f816ed7d1b9d61d57aa175a8902e77b21d3a8b
sourceRevisionDigest: sha256:fdd69938eb255b9b0b52e3b247dee3a116120f206b6997950b8abfd109d60c78
sourceBlobDigest: sha256:c49b1a02ed03d1b4d2a376f925e9d4c806d50058dcbe6a8c64b3305b76834f9d
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:a3502e09043e065b4cb33376c11e4f3a84ec89fbc6b306bb9d37f291ba57674c
codeSamplesRevisionDigest: sha256:ace8634f247dbc460f2c4a541ccf625d51ce534747bbc27a0f391381b66174f5
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
26 changes: 15 additions & 11 deletions docs/models/components/actor.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# Actor

## Example Usage
It is used to display the Avatar of the provided actor's subscriber id or actor object.

If a new actor object is provided, we will create a new subscriber in our system


## Supported Types

### `string`

```typescript
import { Actor } from "@novu/api/models/components";
const value: string = "<value>";
```

### `components.SubscriberPayloadDto`

let value: Actor = {
data: {},
type: "none",
```typescript
const value: components.SubscriberPayloadDto = {
subscriberId: "<id>",
};
```

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `data` | [components.ActorData](../../models/components/actordata.md) | :heavy_check_mark: | The data associated with the actor, can be null if not applicable. |
| `type` | [components.ActorTypeEnum](../../models/components/actortypeenum.md) | :heavy_check_mark: | The type of the actor, indicating the role in the notification process. |
19 changes: 19 additions & 0 deletions docs/models/components/actorfeeditemdto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ActorFeedItemDto

## Example Usage

```typescript
import { ActorFeedItemDto } from "@novu/api/models/components";

let value: ActorFeedItemDto = {
data: {},
type: "none",
};
```

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `data` | [components.ActorFeedItemDtoData](../../models/components/actorfeeditemdtodata.md) | :heavy_check_mark: | The data associated with the actor, can be null if not applicable. |
| `type` | [components.ActorTypeEnum](../../models/components/actortypeenum.md) | :heavy_check_mark: | The type of the actor, indicating the role in the notification process. |
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# ActorData
# ActorFeedItemDtoData

The data associated with the actor, can be null if not applicable.

## Example Usage

```typescript
import { ActorData } from "@novu/api/models/components";
import { ActorFeedItemDtoData } from "@novu/api/models/components";

let value: ActorData = {};
let value: ActorFeedItemDtoData = {};
```

## Fields
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/channelsettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ let value: ChannelSettings = {
| `providerId` | [components.ChannelSettingsProviderId](../../models/components/channelsettingsproviderid.md) | :heavy_check_mark: | The provider identifier for the credentials |
| `integrationIdentifier` | *string* | :heavy_minus_sign: | The integration identifier |
| `credentials` | [components.ChannelCredentials](../../models/components/channelcredentials.md) | :heavy_check_mark: | Credentials payload for the specified provider |
| `integrationId` | *string* | :heavy_check_mark: | Id of the integration that is used for this channel |
| `integrationId` | *string* | :heavy_check_mark: | The unique identifier of the integration associated with this channel. |
4 changes: 3 additions & 1 deletion docs/models/components/channeltypeenum.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# ChannelTypeEnum

The channel through which the notification is sent.

## Example Usage

```typescript
import { ChannelTypeEnum } from "@novu/api/models/components";

let value: ChannelTypeEnum = "email";
let value: ChannelTypeEnum = "chat";
```

## Values
Expand Down
14 changes: 7 additions & 7 deletions docs/models/components/feedresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ let value: FeedResponseDto = {

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `totalCount` | *number* | :heavy_minus_sign: | Total number of notifications available. |
| `hasMore` | *boolean* | :heavy_check_mark: | Indicates if there are more notifications to load. |
| `data` | [components.NotificationDto](../../models/components/notificationdto.md)[] | :heavy_check_mark: | Array of notifications returned in the response. |
| `pageSize` | *number* | :heavy_check_mark: | The number of notifications returned in this response. |
| `page` | *number* | :heavy_check_mark: | The current page number of the notifications. |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `totalCount` | *number* | :heavy_minus_sign: | Total number of notifications available. |
| `hasMore` | *boolean* | :heavy_check_mark: | Indicates if there are more notifications to load. |
| `data` | [components.NotificationFeedItemDto](../../models/components/notificationfeeditemdto.md)[] | :heavy_check_mark: | Array of notifications returned in the response. |
| `pageSize` | *number* | :heavy_check_mark: | The number of notifications returned in this response. |
| `page` | *number* | :heavy_check_mark: | The current page number of the notifications. |
6 changes: 3 additions & 3 deletions docs/models/components/filtertopicsresponsedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ let value: FilterTopicsResponseDto = {
],
},
],
page: 7980.47,
pageSize: 1856.36,
totalCount: 9527.92,
page: 2735.42,
pageSize: 7980.47,
totalCount: 1856.36,
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/messagebutton.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { MessageButton } from "@novu/api/models/components";

let value: MessageButton = {
type: "secondary",
type: "primary",
content: "<value>",
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/messagebuttontype.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { MessageButtonType } from "@novu/api/models/components";

let value: MessageButtonType = "primary";
let value: MessageButtonType = "secondary";
```

## Values
Expand Down
Loading

0 comments on commit 48f0c9e

Please sign in to comment.