@konplit-services/common 1.0.105 → 1.0.106

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.
@@ -0,0 +1,19 @@
1
+ import { Usage, WebhookI } from "../../../helper";
2
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
+ export interface APIConfigCreatedEvent {
4
+ subject: Subjects.APIConfigCreated;
5
+ streamName: StreamName.name;
6
+ streamEvents: StreamEvent.Event;
7
+ data: {
8
+ id: string;
9
+ keyType: KeyType;
10
+ merchantId: string;
11
+ accountId: string;
12
+ usage: Usage;
13
+ key: string;
14
+ encrytion: string;
15
+ webhook?: WebhookI;
16
+ whiteListIps?: string[];
17
+ version?: number;
18
+ };
19
+ }
@@ -1 +1,2 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { Usage, WebhookI } from "../../../helper";
2
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
+ export interface APIConfigUpdatedEvent {
4
+ subject: Subjects.APIConfigUpdated;
5
+ streamName: StreamName.name;
6
+ streamEvents: StreamEvent.Event;
7
+ data: {
8
+ id: string;
9
+ keyType: KeyType;
10
+ merchantId: string;
11
+ accountId: string;
12
+ usage: Usage;
13
+ key: string;
14
+ encrytion: string;
15
+ webhook?: WebhookI;
16
+ whiteListIps?: string[];
17
+ version?: number;
18
+ };
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,4 @@
1
1
  export * from "./key-update-timer-complete.interface";
2
2
  export * from "./keys-update-timer.interface";
3
+ export * from "./api-config-created.interface";
4
+ export * from "./api-config.updated.interface";
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./key-update-timer-complete.interface"), exports);
18
18
  __exportStar(require("./keys-update-timer.interface"), exports);
19
+ __exportStar(require("./api-config-created.interface"), exports);
20
+ __exportStar(require("./api-config.updated.interface"), exports);
@@ -27,5 +27,7 @@ export declare enum Subjects {
27
27
  WalletCredited = "events.wallet.credited",
28
28
  WalletDebited = "events.wallet.debited",
29
29
  KeysUpdated = "events.keys.updated",
30
- KeysUpdatedComplete = "events.keys.updated.complete"
30
+ KeysUpdatedComplete = "events.keys.updated.complete",
31
+ APIConfigCreated = "events.apiconfig.created",
32
+ APIConfigUpdated = "events.apiconfig.updated"
31
33
  }
@@ -43,4 +43,7 @@ var Subjects;
43
43
  //KEYS
44
44
  Subjects["KeysUpdated"] = "events.keys.updated";
45
45
  Subjects["KeysUpdatedComplete"] = "events.keys.updated.complete";
46
+ //APICONFIG
47
+ Subjects["APIConfigCreated"] = "events.apiconfig.created";
48
+ Subjects["APIConfigUpdated"] = "events.apiconfig.updated";
46
49
  })(Subjects = exports.Subjects || (exports.Subjects = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.105",
3
+ "version": "1.0.106",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",