@konplit-services/common 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,8 +4,9 @@ export interface AccountCreatedEvent {
4
4
  streamName: StreamName.name;
5
5
  streamEvents: StreamEvent.Event;
6
6
  data: {
7
- title: string;
7
+ accountId: string;
8
8
  id: string;
9
- price: number;
9
+ account_status: boolean;
10
+ version: number;
10
11
  };
11
12
  }
@@ -1,11 +1,12 @@
1
1
  import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
2
  export interface AccountUpdatedEvent {
3
- subject: Subjects.AccountCreated;
3
+ subject: Subjects.AccountUpdated;
4
4
  streamName: StreamName.name;
5
5
  streamEvents: StreamEvent.Event;
6
6
  data: {
7
- title: string;
7
+ accountId: string;
8
8
  id: string;
9
- price: number;
9
+ account_status: boolean;
10
+ version: number;
10
11
  };
11
12
  }
@@ -2,3 +2,5 @@ export * from "./account-created.interface";
2
2
  export * from "./account-updated.interface";
3
3
  export * from "./permission-created.interface";
4
4
  export * from "./permission-removed.interface";
5
+ export * from "./user-created.interface";
6
+ export * from "./user-updated.interface";
@@ -18,3 +18,5 @@ __exportStar(require("./account-created.interface"), exports);
18
18
  __exportStar(require("./account-updated.interface"), exports);
19
19
  __exportStar(require("./permission-created.interface"), exports);
20
20
  __exportStar(require("./permission-removed.interface"), exports);
21
+ __exportStar(require("./user-created.interface"), exports);
22
+ __exportStar(require("./user-updated.interface"), exports);
@@ -0,0 +1,14 @@
1
+ import { Roles } from "../../../helper";
2
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
+ export interface UserCreatedEvent {
4
+ subject: Subjects.UserCreated;
5
+ streamName: StreamName.name;
6
+ streamEvents: StreamEvent.Event;
7
+ data: {
8
+ email: string;
9
+ accountId: string;
10
+ permissions: string[];
11
+ role: Roles;
12
+ id: string;
13
+ };
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { Roles } from "../../../helper";
2
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
+ export interface UserUpdatedEvent {
4
+ subject: Subjects.UserUpdated;
5
+ streamName: StreamName.name;
6
+ streamEvents: StreamEvent.Event;
7
+ data: {
8
+ email: string;
9
+ accountId: string;
10
+ permissions: string[];
11
+ role: Roles;
12
+ id: string;
13
+ };
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,9 +10,9 @@ export declare enum StreamName {
10
10
  }
11
11
  export declare enum Subjects {
12
12
  AccountCreated = "events.account.created",
13
- AccountVerified = "events.account.verified",
14
13
  AccountUpdated = "events.account.updated",
15
- AccountBlocked = "events.account.blocked",
14
+ UserCreated = "events.user.created",
15
+ UserUpdated = "events.account.updated",
16
16
  MerchantCreated = "events.merchant.created",
17
17
  MerchantUpdated = "events.merchant.updated",
18
18
  MerchantKeyUpdated = "events.merchant.key.updated",
@@ -17,9 +17,10 @@ var Subjects;
17
17
  (function (Subjects) {
18
18
  // Accounts Subjects
19
19
  Subjects["AccountCreated"] = "events.account.created";
20
- Subjects["AccountVerified"] = "events.account.verified";
21
20
  Subjects["AccountUpdated"] = "events.account.updated";
22
- Subjects["AccountBlocked"] = "events.account.blocked";
21
+ //users
22
+ Subjects["UserCreated"] = "events.user.created";
23
+ Subjects["UserUpdated"] = "events.account.updated";
23
24
  //Merchants Subjects
24
25
  Subjects["MerchantCreated"] = "events.merchant.created";
25
26
  Subjects["MerchantUpdated"] = "events.merchant.updated";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",