@heliofi/common 0.2.113 → 0.2.115
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/dist/src/domain/model/deposit/entities/Deposit.entity.d.ts +2 -0
- package/dist/src/domain/model/deposit/entities/Deposit.entity.js.map +1 -1
- package/dist/src/domain/model/deposit-tx/entities/BaseDepositTx.d.ts +2 -0
- package/dist/src/domain/model/deposit-tx/entities/BaseDepositTx.js.map +1 -1
- package/dist/src/domain/model/deposit-tx/entities/DepositTx.d.ts +7 -1
- package/dist/src/domain/model/deposit-tx/entities/DepositTx.js +24 -0
- package/dist/src/domain/model/deposit-tx/entities/DepositTx.js.map +1 -1
- package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.entity.d.ts +2 -1
- package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.entity.js.map +1 -1
- package/dist/src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.d.ts +2 -1
- package/dist/src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.js.map +1 -1
- package/dist/src/domain/model/payment-request/entities/PaymentRequestType.d.ts +2 -1
- package/dist/src/domain/model/payment-request/entities/PaymentRequestType.js +3 -0
- package/dist/src/domain/model/payment-request/entities/PaymentRequestType.js.map +1 -1
- package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.entity.d.ts +2 -1
- package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.entity.js.map +1 -1
- package/dist/src/domain/model/transaction/index.d.ts +1 -0
- package/dist/src/domain/model/transaction/index.js +1 -0
- package/dist/src/domain/model/transaction/index.js.map +1 -1
- package/dist/src/domain/model/transaction/types/BaseTransaction.d.ts +14 -0
- package/dist/src/domain/model/transaction/types/BaseTransaction.js +3 -0
- package/dist/src/domain/model/transaction/types/BaseTransaction.js.map +1 -0
- package/dist/src/domain/model/transaction/types/index.d.ts +1 -0
- package/dist/src/domain/model/transaction/types/index.js +18 -0
- package/dist/src/domain/model/transaction/types/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Entity } from '../../entity';
|
|
2
|
+
import { Platform } from '../../../constants';
|
|
2
3
|
export declare class DepositEntity extends Entity {
|
|
3
4
|
id: string;
|
|
4
5
|
creator: string;
|
|
5
6
|
name: string;
|
|
7
|
+
platform: Platform;
|
|
6
8
|
description?: string;
|
|
7
9
|
createdAt: string;
|
|
8
10
|
updatedAt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Deposit.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/Deposit.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;
|
|
1
|
+
{"version":3,"file":"Deposit.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/Deposit.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,aAAc,SAAQ,eAAM;CAcxC;AAdD,sCAcC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseDepositTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-tx/entities/BaseDepositTx.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,gDAA6C;
|
|
1
|
+
{"version":3,"file":"BaseDepositTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-tx/entities/BaseDepositTx.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,gDAA6C;AAG7C,MAAa,aAAc,SAAQ,eAAM;CASxC;AATD,sCASC;AAPC;IADC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;0CAC5B"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { BaseDepositTx } from './BaseDepositTx';
|
|
2
2
|
import { TransactionMeta } from '../../transaction-meta';
|
|
3
3
|
import { DepositCustomerEntity, DepositEntity } from '../../deposit/entities';
|
|
4
|
-
|
|
4
|
+
import { BlockchainSymbol } from '../../blockchain';
|
|
5
|
+
import type { BaseTransaction } from '../../transaction/types';
|
|
6
|
+
export declare class DepositTx extends BaseDepositTx implements BaseTransaction {
|
|
5
7
|
meta: TransactionMeta;
|
|
6
8
|
deposit: DepositEntity;
|
|
7
9
|
depositCustomer: DepositCustomerEntity;
|
|
10
|
+
paymentRequestCreatorId: string;
|
|
11
|
+
paymentRequestName: string;
|
|
12
|
+
paymentRequestCurrencySymbol: string;
|
|
13
|
+
paymentRequestBlockchain: BlockchainSymbol;
|
|
8
14
|
}
|
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.DepositTx = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
4
14
|
const BaseDepositTx_1 = require("./BaseDepositTx");
|
|
15
|
+
const transaction_meta_1 = require("../../transaction-meta");
|
|
16
|
+
const entities_1 = require("../../deposit/entities");
|
|
5
17
|
class DepositTx extends BaseDepositTx_1.BaseDepositTx {
|
|
6
18
|
}
|
|
7
19
|
exports.DepositTx = DepositTx;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Type)(() => transaction_meta_1.TransactionMeta),
|
|
22
|
+
__metadata("design:type", transaction_meta_1.TransactionMeta)
|
|
23
|
+
], DepositTx.prototype, "meta", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Type)(() => entities_1.DepositEntity),
|
|
26
|
+
__metadata("design:type", entities_1.DepositEntity)
|
|
27
|
+
], DepositTx.prototype, "deposit", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Type)(() => entities_1.DepositCustomerEntity),
|
|
30
|
+
__metadata("design:type", entities_1.DepositCustomerEntity)
|
|
31
|
+
], DepositTx.prototype, "depositCustomer", void 0);
|
|
8
32
|
//# sourceMappingURL=DepositTx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-tx/entities/DepositTx.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DepositTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-tx/entities/DepositTx.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,mDAAgD;AAChD,6DAAyD;AACzD,qDAA8E;AAI9E,MAAa,SAAU,SAAQ,6BAAa;CAiB3C;AAjBD,8BAiBC;AAfC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC;8BACtB,kCAAe;uCAAC;AAGtB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAa,CAAC;8BACjB,wBAAa;0CAAC;AAGvB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACjB,gCAAqB;kDAAC"}
|
|
@@ -2,7 +2,8 @@ import { TransactionMeta } from '../../transaction-meta';
|
|
|
2
2
|
import { BaseInvoiceTx } from './BaseInvoiceTx.entity';
|
|
3
3
|
import { EnrichedInvoice } from '../../invoice';
|
|
4
4
|
import { BlockchainSymbol } from '../../blockchain';
|
|
5
|
-
|
|
5
|
+
import type { BaseTransaction } from '../../transaction/types';
|
|
6
|
+
export declare class InvoiceTx extends BaseInvoiceTx implements BaseTransaction {
|
|
6
7
|
meta: TransactionMeta;
|
|
7
8
|
invoice: EnrichedInvoice;
|
|
8
9
|
paymentRequestCreatorId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceTx.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice-tx/entities/InvoiceTx.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,6DAAyD;AACzD,iEAAuD;AACvD,2CAAgD;
|
|
1
|
+
{"version":3,"file":"InvoiceTx.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice-tx/entities/InvoiceTx.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,6DAAyD;AACzD,iEAAuD;AACvD,2CAAgD;AAIhD,MAAa,SAAU,SAAQ,oCAAa;CAc3C;AAdD,8BAcC;AAZC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC;8BACtB,kCAAe;uCAAC;AAGtB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAe,CAAC;8BACnB,yBAAe;0CAAC"}
|
|
@@ -4,7 +4,8 @@ import { ShallowEnrichedPaylink } from '../../paylink';
|
|
|
4
4
|
import { BlockchainSymbol } from '../../blockchain';
|
|
5
5
|
import { Refund } from '../../refund';
|
|
6
6
|
import type { Subscription } from '../../subscription';
|
|
7
|
-
|
|
7
|
+
import type { BaseTransaction } from '../../transaction/types';
|
|
8
|
+
export declare class PaylinkTxWithShallowEnrichedPaylink extends BasePaylinkTx implements BaseTransaction {
|
|
8
9
|
meta: ShallowEnrichedTransactionMeta;
|
|
9
10
|
paylink: ShallowEnrichedPaylink;
|
|
10
11
|
paymentRequestCreatorId: string;
|
package/dist/src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaylinkTxWithShallowEnrichedPaylink.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,mDAAgD;AAChD,6DAAwE;AACxE,2CAAuD;
|
|
1
|
+
{"version":3,"file":"PaylinkTxWithShallowEnrichedPaylink.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/entities/PaylinkTxWithShallowEnrichedPaylink.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,mDAAgD;AAChD,6DAAwE;AACxE,2CAAuD;AAMvD,MAAa,mCACX,SAAQ,6BAAa;CAsBtB;AAvBD,kFAuBC;AAlBC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iDAA8B,CAAC;8BACrC,iDAA8B;iEAAC;AAGrC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAsB,CAAC;8BAC1B,gCAAsB;oEAAC"}
|
|
@@ -6,6 +6,7 @@ var PaymentRequestType;
|
|
|
6
6
|
PaymentRequestType["PAYLINK"] = "PAYLINK";
|
|
7
7
|
PaymentRequestType["PAYSTREAM"] = "PAYSTREAM";
|
|
8
8
|
PaymentRequestType["INVOICE"] = "INVOICE";
|
|
9
|
+
PaymentRequestType["DEPOSIT"] = "DEPOSIT";
|
|
9
10
|
})(PaymentRequestType || (exports.PaymentRequestType = PaymentRequestType = {}));
|
|
10
11
|
const toPaymentRequestType = (type) => {
|
|
11
12
|
switch (type?.toUpperCase()) {
|
|
@@ -15,6 +16,8 @@ const toPaymentRequestType = (type) => {
|
|
|
15
16
|
return PaymentRequestType.PAYSTREAM;
|
|
16
17
|
case PaymentRequestType.INVOICE:
|
|
17
18
|
return PaymentRequestType.INVOICE;
|
|
19
|
+
case PaymentRequestType.DEPOSIT:
|
|
20
|
+
return PaymentRequestType.DEPOSIT;
|
|
18
21
|
default:
|
|
19
22
|
return undefined;
|
|
20
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentRequestType.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/PaymentRequestType.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"PaymentRequestType.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/PaymentRequestType.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;AACrB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAEM,MAAM,oBAAoB,GAAG,CAClC,IAAa,EACmB,EAAE;IAClC,QAAQ,IAAI,EAAE,WAAW,EAAE,EAAE,CAAC;QAC5B,KAAK,kBAAkB,CAAC,OAAO;YAC7B,OAAO,kBAAkB,CAAC,OAAO,CAAC;QACpC,KAAK,kBAAkB,CAAC,SAAS;YAC/B,OAAO,kBAAkB,CAAC,SAAS,CAAC;QACtC,KAAK,kBAAkB,CAAC,OAAO;YAC7B,OAAO,kBAAkB,CAAC,OAAO,CAAC;QACpC,KAAK,kBAAkB,CAAC,OAAO;YAC7B,OAAO,kBAAkB,CAAC,OAAO,CAAC;QACpC;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,oBAAoB,wBAe/B"}
|
|
@@ -4,7 +4,8 @@ import { Withdrawal } from '../../withdrawal';
|
|
|
4
4
|
import { TransactionMeta } from '../../transaction-meta';
|
|
5
5
|
import { BlockchainSymbol } from '../../blockchain';
|
|
6
6
|
import { Funding } from '../../funding';
|
|
7
|
-
|
|
7
|
+
import type { BaseTransaction } from '../../transaction/types';
|
|
8
|
+
export declare class PaystreamTx extends BasePaystreamTx implements BaseTransaction {
|
|
8
9
|
paystream: Paystream;
|
|
9
10
|
meta: TransactionMeta;
|
|
10
11
|
withdrawals: Withdrawal[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaystreamTx.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/entities/PaystreamTx.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,+CAA4C;AAC5C,uDAAoD;AACpD,iDAA8C;AAC9C,6DAA8E;AAE9E,2CAAwC;
|
|
1
|
+
{"version":3,"file":"PaystreamTx.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/entities/PaystreamTx.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,+CAA4C;AAC5C,uDAAoD;AACpD,iDAA8C;AAC9C,6DAA8E;AAE9E,2CAAwC;AAGxC,MAAa,WAAY,SAAQ,iCAAe;CA6B/C;AA7BD,kCA6BC;AA3BC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACX,qBAAS;8CAAC;AAGrB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAmB,CAAC;8BAC1B,kCAAe;yCAAC;AAGtB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAU,CAAC;;gDACG;AAG1B;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;;6CACA;AAGpB;IADC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;wCAC5B"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./entities"), exports);
|
|
18
18
|
__exportStar(require("./dtos"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/transaction/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/transaction/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BlockchainSymbol } from '../../blockchain';
|
|
2
|
+
import { PaymentRequestType } from '../../payment-request';
|
|
3
|
+
import { ShallowEnrichedTransactionMeta, TransactionMeta } from '../../transaction-meta';
|
|
4
|
+
export interface BaseTransaction {
|
|
5
|
+
id: string;
|
|
6
|
+
meta: ShallowEnrichedTransactionMeta | TransactionMeta;
|
|
7
|
+
paymentType: PaymentRequestType;
|
|
8
|
+
paymentRequestCreatorId: string;
|
|
9
|
+
paymentRequestName: string;
|
|
10
|
+
paymentRequestCurrencySymbol: string;
|
|
11
|
+
paymentRequestBlockchain: BlockchainSymbol;
|
|
12
|
+
fee?: bigint;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTransaction.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/types/BaseTransaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BaseTransaction';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./BaseTransaction"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|