@konplit-services/common 1.0.147 → 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.
- package/build/events/base-events/base-event-request.listener.d.ts +0 -3
- package/build/events/base-events/base-event-response-publisher.d.ts +0 -3
- package/build/events/subjects.d.ts +4 -2
- package/build/events/subjects.js +5 -2
- package/build/events/virtual-account-events/interfaces/virtual-dynamic-account.interface.d.ts +2 -4
- package/package.json +1 -1
|
@@ -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
|
-
|
|
44
|
+
VirtualFixedAccountCreatedEvent = "events.virtualfixedaccount.created"
|
|
45
|
+
}
|
|
46
|
+
export declare enum ResSubjects {
|
|
47
|
+
VirtualDynamicAccountCreatedEvent = "res.virtual.dynamicaccount.created"
|
|
46
48
|
}
|
package/build/events/subjects.js
CHANGED
|
@@ -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.virtualdynamicaccount.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 = {}));
|
package/build/events/virtual-account-events/interfaces/virtual-dynamic-account.interface.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { TRANSACTION_CHARGES_TYPE } from "../../../helper";
|
|
2
|
-
import {
|
|
2
|
+
import { ResSubjects } from "../../subjects";
|
|
3
3
|
export interface VirtualDynamicAccountCreatedEvent {
|
|
4
|
-
subject:
|
|
5
|
-
streamName: StreamName.name;
|
|
6
|
-
streamEvents: StreamEvent.Event;
|
|
4
|
+
subject: ResSubjects.VirtualDynamicAccountCreatedEvent;
|
|
7
5
|
data: {
|
|
8
6
|
merchantId: string;
|
|
9
7
|
accountId: string;
|