-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from alkem-io/develop
Release: Notifications on Discussion Callout Comment, Canvas Created
- Loading branch information
Showing
109 changed files
with
1,688 additions
and
1,001 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
|
||
.vscode | ||
.idea | ||
package-lock.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
lib/src/common/enums/community.type.ts → lib/src/common/enums/journey.type.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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface BaseEventPayload {} // todo when templates are more clearly defined | ||
export interface BaseEventPayload { | ||
triggeredBy: string; | ||
} |
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
lib/src/dto/collaboration.callout.published.event.payload.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,11 @@ | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CollaborationCalloutPublishedEventPayload extends JourneyBaseEventPayload { | ||
callout: { | ||
id: string; | ||
displayName: string; | ||
description: string; | ||
nameID: string; | ||
type: 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CollaborationCanvasCreatedEventPayload extends JourneyBaseEventPayload { | ||
callout: { | ||
displayName: string; | ||
nameID: string; | ||
} | ||
canvas: { | ||
id: string; | ||
createdBy: string; | ||
displayName: string; | ||
nameID: 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CollaborationCardCommentEventPayload extends JourneyBaseEventPayload { | ||
callout: { | ||
displayName: string; | ||
nameID: string; | ||
} | ||
card: { | ||
displayName: string; | ||
createdBy: string; | ||
nameID: string; | ||
}; | ||
comment: { | ||
message: string; | ||
createdBy: 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CollaborationCardCreatedEventPayload extends JourneyBaseEventPayload { | ||
callout: { | ||
displayName: string; | ||
nameID: string; | ||
} | ||
card: { | ||
id: string; | ||
createdBy: string; | ||
displayName: string; | ||
nameID: string; | ||
type: string; | ||
}; | ||
} |
12 changes: 12 additions & 0 deletions
12
lib/src/dto/collaboration.context.review.submitted.payload.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,12 @@ | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CollaborationContextReviewSubmittedPayload | ||
extends JourneyBaseEventPayload { | ||
questions: FeedbackQuestions[]; | ||
} | ||
|
||
export type FeedbackQuestions = { | ||
name: string; | ||
value: string; | ||
sortOrder: number; | ||
}; |
12 changes: 12 additions & 0 deletions
12
lib/src/dto/collaboration.discussion.comment.event.payload.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,12 @@ | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CollaborationDiscussionCommentEventPayload extends JourneyBaseEventPayload { | ||
callout: { | ||
displayName: string; | ||
nameID: string; | ||
} | ||
comment: { | ||
message: string; | ||
createdBy: 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CollaborationInterestPayload | ||
extends JourneyBaseEventPayload { | ||
relation: { | ||
role: string; | ||
description: string; | ||
}; | ||
} |
11 changes: 2 additions & 9 deletions
11
lib/src/dto/communication.discussion.created.event.payload.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 |
---|---|---|
@@ -1,18 +1,11 @@ | ||
import { HubPayload } from './hub.payload'; | ||
import { BaseEventPayload } from './base.event.payload'; | ||
import { CommunityType } from '@common/enums/community.type'; | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CommunicationDiscussionCreatedEventPayload | ||
extends BaseEventPayload { | ||
extends JourneyBaseEventPayload { | ||
discussion: { | ||
id: string; | ||
createdBy: string; | ||
title: string; | ||
description: string; | ||
}; | ||
community: { | ||
name: string; | ||
type: CommunityType; | ||
}; | ||
hub: HubPayload; | ||
} |
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 |
---|---|---|
@@ -1,15 +1,9 @@ | ||
import { HubPayload } from './hub.payload'; | ||
import { BaseEventPayload } from './base.event.payload'; | ||
import { CommunityType } from '@common/enums/community.type'; | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CommunicationUpdateEventPayload extends BaseEventPayload { | ||
export interface CommunicationUpdateEventPayload extends JourneyBaseEventPayload { | ||
update: { | ||
id: string; | ||
createdBy: string; | ||
}; | ||
community: { | ||
name: string; | ||
type: CommunityType; | ||
}; | ||
hub: HubPayload; | ||
|
||
} |
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,6 @@ | ||
import { JourneyPayload } from './journey.payload'; | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CommunityApplicationCreatedEventPayload extends JourneyBaseEventPayload { | ||
applicantID: string; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,6 @@ | ||
import { CommunityType } from '@common/enums/community.type'; | ||
import { BaseEventPayload } from './base.event.payload'; | ||
import { HubPayload } from './hub.payload'; | ||
|
||
export interface CommunityNewMemberPayload extends BaseEventPayload { | ||
import { JourneyBaseEventPayload } from './journey.base.event.payload'; | ||
|
||
export interface CommunityNewMemberPayload extends JourneyBaseEventPayload { | ||
userID: string; | ||
community: { | ||
name: string; | ||
url: string; | ||
type: CommunityType; | ||
}; | ||
hub: HubPayload; | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
export * from './base.event.payload'; | ||
export * from './application.created.event.payload'; | ||
export * from './journey.payload'; | ||
export * from './communication.discussion.created.event.payload'; | ||
export * from './communication.update.event.payload'; | ||
export * from './community.context.review.submitted.payload'; | ||
export * from './community.application.created.event.payload'; | ||
export * from './community.new.member.payload'; | ||
export * from './community.collaboration.interest.payload'; | ||
export * from './user.registration.event.payload'; | ||
export * from './hub.payload'; | ||
export * from './aspect.created.event.payload'; | ||
export * from './aspect.comment.created.event.payload'; | ||
export * from './callout.published.event.payload'; | ||
export * from './collaboration.interest.payload'; | ||
export * from './collaboration.canvas.created.event.payload'; | ||
export * from './collaboration.card.created.event.payload'; | ||
export * from './collaboration.context.review.submitted.payload'; | ||
export * from './collaboration.card.comment.event.payload'; | ||
export * from './collaboration.callout.published.event.payload'; | ||
export * from './collaboration.discussion.comment.event.payload'; | ||
export * from './platform.user.registration.event.payload'; | ||
export * from './platform.user.removed.event.payload'; |
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,8 @@ | ||
import { JourneyPayload } from './journey.payload'; | ||
import { BaseEventPayload } from './base.event.payload'; | ||
|
||
export interface JourneyBaseEventPayload | ||
extends BaseEventPayload { | ||
|
||
journey: JourneyPayload; | ||
} |
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,16 @@ | ||
import { JourneyType } from "@src/common/enums/journey.type"; | ||
|
||
export type JourneyPayload = { | ||
hubID: string; | ||
hubNameID: string; | ||
displayName: string; | ||
type: JourneyType; | ||
challenge?: { | ||
id: string; | ||
nameID: string; | ||
opportunity?: { | ||
nameID: string; | ||
id: string; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.