-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add followers and following to merchant actor
- Loading branch information
1 parent
bdf80f8
commit d30377c
Showing
5 changed files
with
113 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
backend/src/modules/crossroads/activitypub/dto/followers.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { APActor, APRoot } from 'activitypub-types'; | ||
import { IsArray, IsNumber, IsString, Min } from 'class-validator'; | ||
|
||
export class FollowerDto { | ||
@IsString() | ||
'@context': 'https://www.w3.org/ns/activitystreams'; | ||
|
||
@IsString() | ||
'summary': string; | ||
|
||
@IsString() | ||
'type': 'OrderedCollection'; | ||
|
||
@IsNumber() | ||
@Min(0) | ||
'totalItems': number; | ||
|
||
@IsArray() | ||
'orderedItems': Array<Partial<APRoot<APActor>>>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters