Skip to content

Commit

Permalink
feat: added organization register event
Browse files Browse the repository at this point in the history
  • Loading branch information
demtario committed Aug 20, 2024
1 parent fba2575 commit d771637
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/services/events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const createHeseyaEventBusService = (): HeseyaEventBusService => {
[HeseyaEvent.AddToWishlist]: [],
[HeseyaEvent.Login]: [],
[HeseyaEvent.Register]: [],
[HeseyaEvent.RegisterOrganization]: [],
[HeseyaEvent.CustomizeProduct]: [],
[HeseyaEvent.InitiateCheckout]: [],
[HeseyaEvent.AddShippingInfo]: [],
Expand Down
6 changes: 6 additions & 0 deletions src/services/events/utils/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
Order,
Organization,
PaymentMethodListed,
Product,
ProductListed,
Expand Down Expand Up @@ -64,6 +65,10 @@ export enum HeseyaEvent {
* A submission of information by a customer in exchange for a service provided by your business
*/
Register = 'register',
/**
* A submission of information by a customer in exchange for a service provided by your business
*/
RegisterOrganization = 'registerOrganization',
/**
* User log in.
*/
Expand All @@ -88,6 +93,7 @@ export interface HeseyaEventToPayloadMap extends Record<HeseyaEvent, unknown> {
[HeseyaEvent.Purchase]: Order
[HeseyaEvent.Search]: string
[HeseyaEvent.Register]: User
[HeseyaEvent.RegisterOrganization]: Organization
[HeseyaEvent.Login]: User
[HeseyaEvent.ViewContent]: unknown
}

0 comments on commit d771637

Please sign in to comment.