@konplit-services/common 1.0.148 → 1.0.149

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.
@@ -7,7 +7,6 @@
7
7
  * @module Listener
8
8
  */
9
9
  import { NatsConnection, Msg } from "nats";
10
- import { StreamEvent, StreamName } from "../subjects";
11
10
  /**
12
11
  * Event Interface
13
12
  *
@@ -17,8 +16,6 @@ import { StreamEvent, StreamName } from "../subjects";
17
16
  */
18
17
  interface Event {
19
18
  subject: string;
20
- streamEvents: StreamEvent;
21
- streamName: StreamName;
22
19
  data: any;
23
20
  }
24
21
  /**
@@ -7,7 +7,6 @@
7
7
  * @module Publisher
8
8
  */
9
9
  import { NatsConnection } from "nats";
10
- import { StreamEvent, StreamName } from "../subjects";
11
10
  /**
12
11
  * Event Interface
13
12
  *
@@ -17,8 +16,6 @@ import { StreamEvent, StreamName } from "../subjects";
17
16
  */
18
17
  interface Event {
19
18
  subject: string;
20
- streamEvents: StreamEvent;
21
- streamName: StreamName;
22
19
  data: any;
23
20
  }
24
21
  /**
@@ -41,6 +41,8 @@ export declare enum Subjects {
41
41
  TransactionProcessing = "events.transaction.processing",
42
42
  TransactionCancelled = "events.transaction.cancelled",
43
43
  TransactionDeclined = "events.transaction.declined",
44
- VirtualFixedAccountCreatedEvent = "events.virtualfixedaccount.created",
45
- VirtualDynamicAccountCreatedEvent = "events.virtual.dynamicaccount.created"
44
+ VirtualFixedAccountCreatedEvent = "events.virtualfixedaccount.created"
45
+ }
46
+ export declare enum ResSubjects {
47
+ VirtualDynamicAccountCreatedEvent = "res.virtual.dynamicaccount.created"
46
48
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Subjects = exports.StreamName = exports.StreamEvent = void 0;
3
+ exports.ResSubjects = exports.Subjects = exports.StreamName = exports.StreamEvent = void 0;
4
4
  var StreamEvent;
5
5
  (function (StreamEvent) {
6
6
  StreamEvent["Event"] = "events.>";
@@ -62,5 +62,8 @@ var Subjects;
62
62
  Subjects["TransactionDeclined"] = "events.transaction.declined";
63
63
  //Virtual Fixed Account
64
64
  Subjects["VirtualFixedAccountCreatedEvent"] = "events.virtualfixedaccount.created";
65
- Subjects["VirtualDynamicAccountCreatedEvent"] = "events.virtual.dynamicaccount.created";
66
65
  })(Subjects = exports.Subjects || (exports.Subjects = {}));
66
+ var ResSubjects;
67
+ (function (ResSubjects) {
68
+ ResSubjects["VirtualDynamicAccountCreatedEvent"] = "res.virtual.dynamicaccount.created";
69
+ })(ResSubjects = exports.ResSubjects || (exports.ResSubjects = {}));
@@ -1,9 +1,7 @@
1
1
  import { TRANSACTION_CHARGES_TYPE } from "../../../helper";
2
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
+ import { ResSubjects } from "../../subjects";
3
3
  export interface VirtualDynamicAccountCreatedEvent {
4
- subject: Subjects.VirtualDynamicAccountCreatedEvent;
5
- streamName: StreamName.name;
6
- streamEvents: StreamEvent.Event;
4
+ subject: ResSubjects.VirtualDynamicAccountCreatedEvent;
7
5
  data: {
8
6
  merchantId: string;
9
7
  accountId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.148",
3
+ "version": "1.0.149",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",