-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fetch ecosystem sent invitations (#123)
* worked on the eslint issues Signed-off-by: Nishad <[email protected]> * worked on GET API sent invitation list to join ecosystem Signed-off-by: Nishad <[email protected]> * Solved promise issue in ecosystem repository Signed-off-by: Nishad <[email protected]> * Created interface for send invitation payload Signed-off-by: Nishad <[email protected]> --------- Signed-off-by: Nishad <[email protected]> Signed-off-by: KulkarniShashank <[email protected]>
- Loading branch information
1 parent
4b48b2d
commit 9c2f00e
Showing
5 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
apps/api-gateway/src/ecosystem/dtos/get-all-sent-invitations.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,25 @@ | ||
import { Transform, Type } from 'class-transformer'; | ||
import { toNumber } from '@credebl/common/cast.helper'; | ||
|
||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsOptional } from 'class-validator'; | ||
|
||
export class GetAllEcosystemInvitationsDto { | ||
@ApiProperty({ required: false, default: 1 }) | ||
@IsOptional() | ||
@Type(() => Number) | ||
@Transform(({ value }) => toNumber(value)) | ||
pageNumber = 1; | ||
|
||
@ApiProperty({ required: false }) | ||
@IsOptional() | ||
@Type(() => String) | ||
search = ''; | ||
|
||
@ApiProperty({ required: false }) | ||
@IsOptional() | ||
@Type(() => Number) | ||
@Transform(({ value }) => toNumber(value)) | ||
pageSize = 10; | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
|
||
export interface FetchInvitationsPayload { | ||
ecosystemId: string; | ||
userId: string, | ||
pageNumber: number; | ||
pageSize: number; | ||
search: string | ||
} |
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 |
---|---|---|
|
@@ -220,5 +220,4 @@ export class EcosystemService { | |
return isEmailSent; | ||
} | ||
|
||
|
||
} |