@jealous-robot-dev/shared-types-responses 1.30.17 → 1.30.20

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.
@@ -1,4 +1,9 @@
1
1
  import { LND } from '../common';
2
+ export declare enum PaymentType {
3
+ REFUND = "REFUND",
4
+ PAYMENT = "PAYMENT",
5
+ TRANSFER = "TRANSFER"
6
+ }
2
7
  export interface SendPDFForm {
3
8
  title: string;
4
9
  description: string;
@@ -35,22 +40,16 @@ export interface PaymentHistoryPhrases {
35
40
  total_transactions: string;
36
41
  }
37
42
  export interface PaymentHistoryTransaction {
38
- transaction_id: string;
39
- transaction_receiver: {
40
- UID: string;
41
- firstname: string;
42
- lastname: string;
43
- };
44
- transaction_sender: {
45
- UID: string;
46
- firstname: string;
47
- lastname: string;
48
- };
49
- transaction_amount: number;
50
- transaction_reason: string;
51
- transaction_made_at: string;
43
+ id: string;
44
+ amount: number;
45
+ made_at: string;
46
+ currency: string;
47
+ reason: PaymentType;
52
48
  }
53
49
  export interface PaymentHistoryData {
54
- total_transactions: number;
55
50
  transactions: PaymentHistoryTransaction[];
51
+ has_more: boolean;
52
+ }
53
+ export interface PaymentHistoryInitialResponse extends PaymentHistoryData {
54
+ total_transactions: number;
56
55
  }
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentType = void 0;
4
+ var PaymentType;
5
+ (function (PaymentType) {
6
+ PaymentType["REFUND"] = "REFUND";
7
+ PaymentType["PAYMENT"] = "PAYMENT";
8
+ PaymentType["TRANSFER"] = "TRANSFER";
9
+ })(PaymentType = exports.PaymentType || (exports.PaymentType = {}));
@@ -61,10 +61,9 @@ export interface WebNotification {
61
61
  unseen: boolean;
62
62
  time: string;
63
63
  url?: string;
64
- metadata: object;
64
+ metadata: any;
65
65
  }
66
66
  export interface Notifications {
67
- page: number;
68
67
  has_more: boolean;
69
68
  entries: WebNotification[];
70
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.30.17",
3
+ "version": "1.30.20",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",