Skip to content

Commit

Permalink
Merge pull request #59 from TogetherCrew/58-add-oci-backend-related-p…
Browse files Browse the repository at this point in the history
…redefined-queue-and-events

feat: add events and queue related to oci-backend
  • Loading branch information
Behzad-rabiei authored Oct 31, 2024
2 parents cb862bd + b115594 commit eba6bab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@togethercrew.dev/tc-messagebroker",
"version": "0.0.48",
"version": "0.0.49",
"description": "a service that include common things that need in every microservies ",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions src/enums/event.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ enum AnalyzerEvent {
const ServerEvent = {
UPDATE_GUILD: 'UPDATE_GUILD',
ANNOUNCEMENT_SAFETY_MESSAGE: 'ANNOUNCEMENT_SAFETY_MESSAGE',
OCI_USER_PROFILES_GET_RESPONSE: 'OCI_USER_PROFILES_GET_RESPONSE',
};

const DiscordBotEvent = {
Expand Down Expand Up @@ -53,6 +54,9 @@ const TwitterBotEvent = {
const HivemindEvent = {
QUESTION_RECEIVED: 'QUESTION_RECEIVED',
};
const OciBackendEvent = {
OCI_USER_PROFILES_GET_REQUEST: 'OCI_USER_PROFILES_GET_REQUEST',
};

export const Event = {
[Queue.SERVER_API]: ServerEvent,
Expand All @@ -61,4 +65,5 @@ export const Event = {
[Queue.DISCORD_HIVEMIND_ADAPTER]: DiscordHivemindAdapterEvent,
[Queue.TWITTER_BOT]: TwitterBotEvent,
[Queue.HIVEMIND]: HivemindEvent,
[Queue.OCI_BACKEND]: OciBackendEvent,
} as const;
1 change: 1 addition & 0 deletions src/enums/queue.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export enum Queue {
DISCORD_HIVEMIND_ADAPTER = 'DISCORD_HIVEMIND_ADAPTER',
TWITTER_BOT = 'TWITTER_BOT',
HIVEMIND = 'HIVEMIND',
OCI_BACKEND = 'OCI_BACKEND',
}

0 comments on commit eba6bab

Please sign in to comment.