@konplit-services/common 1.0.331 → 1.0.333

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.
Files changed (27) hide show
  1. package/build/helper/settings-types.d.ts +3 -3
  2. package/build/interfact.js +1 -0
  3. package/package.json +3 -3
  4. package/build/events/merchants-events/interfaces/default-charg-updated.interfeace.d.ts +0 -10
  5. package/build/events/merchants-events/interfaces/default-charg-updated.interfeace.js +0 -2
  6. package/build/events/transaction/interfaces/index.d.ts +0 -6
  7. package/build/events/transaction/interfaces/index.js +0 -22
  8. package/build/events/transaction/interfaces/transaction-aborted.interface.d.ts +0 -11
  9. package/build/events/transaction/interfaces/transaction-aborted.interface.js +0 -2
  10. package/build/events/transaction/interfaces/transaction-cancelled.interface.d.ts +0 -11
  11. package/build/events/transaction/interfaces/transaction-cancelled.interface.js +0 -2
  12. package/build/events/transaction/interfaces/transaction-completed.interface.d.ts +0 -11
  13. package/build/events/transaction/interfaces/transaction-completed.interface.js +0 -2
  14. package/build/events/transaction/interfaces/transaction-declined.interface.d.ts +0 -11
  15. package/build/events/transaction/interfaces/transaction-declined.interface.js +0 -2
  16. package/build/events/transaction/interfaces/transaction-failed.interface.d.ts +0 -11
  17. package/build/events/transaction/interfaces/transaction-failed.interface.js +0 -2
  18. package/build/events/transaction/interfaces/transaction-processing.interface.d.ts +0 -11
  19. package/build/events/transaction/interfaces/transaction-processing.interface.js +0 -2
  20. package/build/events/transaction/interfaces/transaction-success.interface.d.ts +0 -12
  21. package/build/events/transaction/interfaces/transaction-success.interface.js +0 -2
  22. package/build/events/transaction/interfaces/wallet-credited.interface.d.ts +0 -12
  23. package/build/events/transaction/interfaces/wallet-credited.interface.js +0 -2
  24. package/build/events/transaction/interfaces/wallet-debited.interface.d.ts +0 -12
  25. package/build/events/transaction/interfaces/wallet-debited.interface.js +0 -2
  26. package/build/helper/chargeback.d.ts +0 -7
  27. package/build/helper/chargeback.js +0 -11
@@ -1,6 +1,6 @@
1
+ import { Usage } from "./api-config-types";
1
2
  import { CURRENCY_TYPE } from "./currency-types";
2
3
  import { PaymentOptions } from "./payment-options";
3
- import { Status } from "./status";
4
4
  export interface PaymentMethods {
5
5
  method: PaymentOptions;
6
6
  active: boolean;
@@ -44,14 +44,14 @@ export interface Subscription {
44
44
  webhookForExpiringCard?: boolean;
45
45
  }
46
46
  export interface Alert {
47
- status: Status;
47
+ status: Usage;
48
48
  currency: CURRENCY_TYPE;
49
49
  notificationChannel: NotificationType[];
50
50
  warningAmount: number;
51
51
  criticalAmount: number;
52
52
  }
53
53
  export interface ApprovalUrl {
54
- status: Status;
54
+ status: Usage;
55
55
  url?: string;
56
56
  active: boolean;
57
57
  }
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //nothing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.331",
3
+ "version": "1.0.333",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "typescript": "^4.8.4"
48
48
  },
49
49
  "engines": {
50
- "node": "v20.14.0",
51
- "npm": "10.7.0"
50
+ "node": "v20.19.0",
51
+ "npm": "10.8.2"
52
52
  }
53
53
  }
@@ -1,10 +0,0 @@
1
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
- export interface DefaultChargeUpdatedEvent {
3
- subject: Subjects.DefaultChargeUpdated;
4
- streamName: StreamName.name;
5
- streamEvents: StreamEvent.Event;
6
- data: {
7
- merchantId: string;
8
- accountId: string;
9
- };
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export * from "./transaction-completed.interface";
2
- export * from "./transaction-cancelled.interface";
3
- export * from "./transaction-failed.interface";
4
- export * from "./transaction-declined.interface";
5
- export * from "./transaction-processing.interface";
6
- export * from "./transaction-aborted.interface";
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./transaction-completed.interface"), exports);
18
- __exportStar(require("./transaction-cancelled.interface"), exports);
19
- __exportStar(require("./transaction-failed.interface"), exports);
20
- __exportStar(require("./transaction-declined.interface"), exports);
21
- __exportStar(require("./transaction-processing.interface"), exports);
22
- __exportStar(require("./transaction-aborted.interface"), exports);
@@ -1,11 +0,0 @@
1
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
- export interface TransactionAbortedEvent {
3
- subject: Subjects.transactionAborted;
4
- streamName: StreamName.name;
5
- streamEvents: StreamEvent.Event;
6
- data: {
7
- merchantId: string;
8
- transactionId: string;
9
- amount: number;
10
- };
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
- export interface TransactionCancelledEvent {
3
- subject: Subjects.transactionCancelled;
4
- streamName: StreamName.name;
5
- streamEvents: StreamEvent.Event;
6
- data: {
7
- merchantId: string;
8
- transactionId: string;
9
- amount: number;
10
- };
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
- export interface TransactionCompletedEvent {
3
- subject: Subjects.transactionCompleted;
4
- streamName: StreamName.name;
5
- streamEvents: StreamEvent.Event;
6
- data: {
7
- merchantId: string;
8
- transactionId: string;
9
- amount: number;
10
- };
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
- export interface TransactionDeclinedEvent {
3
- subject: Subjects.transactionDeclined;
4
- streamName: StreamName.name;
5
- streamEvents: StreamEvent.Event;
6
- data: {
7
- merchantId: string;
8
- transactionId: string;
9
- amount: number;
10
- };
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
- export interface TransactionFailedEvent {
3
- subject: Subjects.transactionFailed;
4
- streamName: StreamName.name;
5
- streamEvents: StreamEvent.Event;
6
- data: {
7
- merchantId: string;
8
- transactionId: string;
9
- amount: number;
10
- };
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
- export interface TransactionProcessingEvent {
3
- subject: Subjects.transactionProcessing;
4
- streamName: StreamName.name;
5
- streamEvents: StreamEvent.Event;
6
- data: {
7
- merchantId: string;
8
- transactionId: string;
9
- amount: number;
10
- };
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { CURRENCY_TYPE } from "../../../helper";
2
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
- export interface WalletCreatedEvent {
4
- subject: Subjects.WalletCreated;
5
- streamName: StreamName.name;
6
- streamEvents: StreamEvent.Event;
7
- data: {
8
- merchantId: string;
9
- accountId: string;
10
- currencyType?: CURRENCY_TYPE;
11
- };
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { CURRENCY_TYPE } from "../../../helper";
2
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
- export interface WalletCreditedEvent {
4
- subject: Subjects.WalletCreated;
5
- streamName: StreamName.name;
6
- streamEvents: StreamEvent.Event;
7
- data: {
8
- merchantId: string;
9
- amount: number;
10
- currencyType?: CURRENCY_TYPE;
11
- };
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { CURRENCY_TYPE } from "../../../helper";
2
- import { StreamEvent, StreamName, Subjects } from "../../subjects";
3
- export interface WalletDebitedEvent {
4
- subject: Subjects.WalletDebited;
5
- streamName: StreamName.name;
6
- streamEvents: StreamEvent.Event;
7
- data: {
8
- merchantId: string;
9
- amount: number;
10
- currencyType?: CURRENCY_TYPE;
11
- };
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export declare enum CHARGEBACK_STATUS {
2
- ACCEPTED = "ACCEPTED",
3
- DECLINED = "DECLINED",
4
- WON = "WON",
5
- LOST = "LOST",
6
- PENDING = "PENDING"
7
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CHARGEBACK_STATUS = void 0;
4
- var CHARGEBACK_STATUS;
5
- (function (CHARGEBACK_STATUS) {
6
- CHARGEBACK_STATUS["ACCEPTED"] = "ACCEPTED";
7
- CHARGEBACK_STATUS["DECLINED"] = "DECLINED";
8
- CHARGEBACK_STATUS["WON"] = "WON";
9
- CHARGEBACK_STATUS["LOST"] = "LOST";
10
- CHARGEBACK_STATUS["PENDING"] = "PENDING";
11
- })(CHARGEBACK_STATUS = exports.CHARGEBACK_STATUS || (exports.CHARGEBACK_STATUS = {}));