@heliofi/common 0.2.274 → 0.2.275-alpha.1782824411
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/constants/paymentType.d.ts +2 -4
- package/dist/src/domain/constants/paymentType.js +0 -4
- package/dist/src/domain/constants/paymentType.js.map +1 -1
- package/dist/src/domain/constants/template.js.map +1 -1
- package/dist/src/domain/model/audit/tx/AuditTxType.d.ts +0 -1
- package/dist/src/domain/model/audit/tx/AuditTxType.js +0 -1
- package/dist/src/domain/model/audit/tx/AuditTxType.js.map +1 -1
- package/dist/src/domain/model/broadcast/broadcast.spec.js +11 -0
- package/dist/src/domain/model/broadcast/broadcast.spec.js.map +1 -1
- package/dist/src/domain/model/broadcast/constants/BroadcastErrorCode.d.ts +1 -0
- package/dist/src/domain/model/broadcast/constants/BroadcastErrorCode.js +5 -0
- package/dist/src/domain/model/broadcast/constants/BroadcastErrorCode.js.map +1 -1
- package/dist/src/domain/model/deposit-tx/entities/DepositCustomerActivityPageResponse.entity.d.ts +3 -3
- package/dist/src/domain/model/email/dtos/index.d.ts +0 -1
- package/dist/src/domain/model/email/dtos/index.js +0 -1
- package/dist/src/domain/model/email/dtos/index.js.map +1 -1
- package/dist/src/domain/model/index.d.ts +0 -5
- package/dist/src/domain/model/index.js +0 -5
- package/dist/src/domain/model/index.js.map +1 -1
- package/dist/src/domain/model/payment-request/entities/PaymentRequestType.d.ts +0 -1
- package/dist/src/domain/model/payment-request/entities/PaymentRequestType.js +0 -3
- package/dist/src/domain/model/payment-request/entities/PaymentRequestType.js.map +1 -1
- package/dist/src/domain/model/transaction/entities/index.d.ts +2 -3
- package/dist/src/domain/model/transaction/entities/index.js.map +1 -1
- package/dist/src/domain/model/transaction-meta/constants/ExportTransactionType.d.ts +0 -1
- package/dist/src/domain/model/transaction-meta/constants/ExportTransactionType.js +0 -1
- package/dist/src/domain/model/transaction-meta/constants/ExportTransactionType.js.map +1 -1
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.d.ts +2 -0
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.js +8 -1
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.js.map +1 -1
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.spec.d.ts +1 -0
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.spec.js +31 -0
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.spec.js.map +1 -0
- package/dist/src/domain/model/withdraw/constants/SourceWalletKind.d.ts +1 -1
- package/dist/src/domain/model/withdraw/constants/SourceWalletKind.js +1 -1
- package/dist/src/domain/model/withdraw/constants/SourceWalletKind.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.js.map +1 -1
- package/dist/src/domain/model/withdraw/entities/WithdrawalBalancesResponse.entity.d.ts +1 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalBalancesResponse.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/withdraw.d.ts +6 -0
- package/dist/withdraw.js +16 -0
- package/dist/withdraw.js.map +1 -0
- package/package.json +12 -2
- package/withdraw.ts +8 -0
- package/dist/src/domain/model/email/dtos/emailInvoice.dto.d.ts +0 -17
- package/dist/src/domain/model/email/dtos/emailInvoice.dto.js +0 -88
- package/dist/src/domain/model/email/dtos/emailInvoice.dto.js.map +0 -1
- package/dist/src/domain/model/invoice/dtos/createInvoice.dto.d.ts +0 -12
- package/dist/src/domain/model/invoice/dtos/createInvoice.dto.js +0 -67
- package/dist/src/domain/model/invoice/dtos/createInvoice.dto.js.map +0 -1
- package/dist/src/domain/model/invoice/dtos/index.d.ts +0 -2
- package/dist/src/domain/model/invoice/dtos/index.js +0 -19
- package/dist/src/domain/model/invoice/dtos/index.js.map +0 -1
- package/dist/src/domain/model/invoice/dtos/updateInvoice.dto.d.ts +0 -12
- package/dist/src/domain/model/invoice/dtos/updateInvoice.dto.js +0 -67
- package/dist/src/domain/model/invoice/dtos/updateInvoice.dto.js.map +0 -1
- package/dist/src/domain/model/invoice/entities/EnrichedInvoice.entity.d.ts +0 -13
- package/dist/src/domain/model/invoice/entities/EnrichedInvoice.entity.js +0 -8
- package/dist/src/domain/model/invoice/entities/EnrichedInvoice.entity.js.map +0 -1
- package/dist/src/domain/model/invoice/entities/Invoice.entity.d.ts +0 -15
- package/dist/src/domain/model/invoice/entities/Invoice.entity.js +0 -8
- package/dist/src/domain/model/invoice/entities/Invoice.entity.js.map +0 -1
- package/dist/src/domain/model/invoice/entities/InvoiceStatus.d.ts +0 -5
- package/dist/src/domain/model/invoice/entities/InvoiceStatus.js +0 -10
- package/dist/src/domain/model/invoice/entities/InvoiceStatus.js.map +0 -1
- package/dist/src/domain/model/invoice/entities/index.d.ts +0 -3
- package/dist/src/domain/model/invoice/entities/index.js +0 -20
- package/dist/src/domain/model/invoice/entities/index.js.map +0 -1
- package/dist/src/domain/model/invoice/index.d.ts +0 -2
- package/dist/src/domain/model/invoice/index.js +0 -19
- package/dist/src/domain/model/invoice/index.js.map +0 -1
- package/dist/src/domain/model/invoice-tx/entities/BaseInvoiceTx.entity.d.ts +0 -8
- package/dist/src/domain/model/invoice-tx/entities/BaseInvoiceTx.entity.js +0 -22
- package/dist/src/domain/model/invoice-tx/entities/BaseInvoiceTx.entity.js.map +0 -1
- package/dist/src/domain/model/invoice-tx/entities/CreateInvoiceTx.d.ts +0 -6
- package/dist/src/domain/model/invoice-tx/entities/CreateInvoiceTx.js +0 -7
- package/dist/src/domain/model/invoice-tx/entities/CreateInvoiceTx.js.map +0 -1
- package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.entity.d.ts +0 -13
- package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.entity.js +0 -28
- package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.entity.js.map +0 -1
- package/dist/src/domain/model/invoice-tx/entities/index.d.ts +0 -3
- package/dist/src/domain/model/invoice-tx/entities/index.js +0 -20
- package/dist/src/domain/model/invoice-tx/entities/index.js.map +0 -1
- package/dist/src/domain/model/invoice-tx/index.d.ts +0 -1
- package/dist/src/domain/model/invoice-tx/index.js +0 -18
- package/dist/src/domain/model/invoice-tx/index.js.map +0 -1
- package/dist/src/domain/model/invoiceItem/dtos/index.d.ts +0 -1
- package/dist/src/domain/model/invoiceItem/dtos/index.js +0 -18
- package/dist/src/domain/model/invoiceItem/dtos/index.js.map +0 -1
- package/dist/src/domain/model/invoiceItem/dtos/invoiceItem.dto.d.ts +0 -7
- package/dist/src/domain/model/invoiceItem/dtos/invoiceItem.dto.js +0 -43
- package/dist/src/domain/model/invoiceItem/dtos/invoiceItem.dto.js.map +0 -1
- package/dist/src/domain/model/invoiceItem/entities/InvoiceItem.entity.d.ts +0 -10
- package/dist/src/domain/model/invoiceItem/entities/InvoiceItem.entity.js +0 -22
- package/dist/src/domain/model/invoiceItem/entities/InvoiceItem.entity.js.map +0 -1
- package/dist/src/domain/model/invoiceItem/entities/index.d.ts +0 -1
- package/dist/src/domain/model/invoiceItem/entities/index.js +0 -18
- package/dist/src/domain/model/invoiceItem/entities/index.js.map +0 -1
- package/dist/src/domain/model/invoiceItem/index.d.ts +0 -2
- package/dist/src/domain/model/invoiceItem/index.js +0 -19
- package/dist/src/domain/model/invoiceItem/index.js.map +0 -1
- package/dist/src/domain/model/prepare-invoice/dtos/index.d.ts +0 -1
- package/dist/src/domain/model/prepare-invoice/dtos/index.js +0 -6
- package/dist/src/domain/model/prepare-invoice/dtos/index.js.map +0 -1
- package/dist/src/domain/model/prepare-invoice/dtos/prepareInvoice.dto.d.ts +0 -4
- package/dist/src/domain/model/prepare-invoice/dtos/prepareInvoice.dto.js +0 -23
- package/dist/src/domain/model/prepare-invoice/dtos/prepareInvoice.dto.js.map +0 -1
- package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.entity.d.ts +0 -5
- package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.entity.js +0 -8
- package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.entity.js.map +0 -1
- package/dist/src/domain/model/prepare-invoice/entities/TokenInvoicePayload.d.ts +0 -5
- package/dist/src/domain/model/prepare-invoice/entities/TokenInvoicePayload.js +0 -8
- package/dist/src/domain/model/prepare-invoice/entities/TokenInvoicePayload.js.map +0 -1
- package/dist/src/domain/model/prepare-invoice/entities/index.d.ts +0 -2
- package/dist/src/domain/model/prepare-invoice/entities/index.js +0 -19
- package/dist/src/domain/model/prepare-invoice/entities/index.js.map +0 -1
- package/dist/src/domain/model/prepare-invoice/index.d.ts +0 -2
- package/dist/src/domain/model/prepare-invoice/index.js +0 -19
- package/dist/src/domain/model/prepare-invoice/index.js.map +0 -1
- package/dist/src/domain/model/submit-invoice/dtos/index.d.ts +0 -1
- package/dist/src/domain/model/submit-invoice/dtos/index.js +0 -6
- package/dist/src/domain/model/submit-invoice/dtos/index.js.map +0 -1
- package/dist/src/domain/model/submit-invoice/dtos/submitInvoice.dto.d.ts +0 -6
- package/dist/src/domain/model/submit-invoice/dtos/submitInvoice.dto.js +0 -33
- package/dist/src/domain/model/submit-invoice/dtos/submitInvoice.dto.js.map +0 -1
- package/dist/src/domain/model/submit-invoice/entities/SuccessfulInvoicePayment.d.ts +0 -3
- package/dist/src/domain/model/submit-invoice/entities/SuccessfulInvoicePayment.js +0 -3
- package/dist/src/domain/model/submit-invoice/entities/SuccessfulInvoicePayment.js.map +0 -1
- package/dist/src/domain/model/submit-invoice/entities/index.d.ts +0 -1
- package/dist/src/domain/model/submit-invoice/entities/index.js +0 -18
- package/dist/src/domain/model/submit-invoice/entities/index.js.map +0 -1
- package/dist/src/domain/model/submit-invoice/index.d.ts +0 -2
- package/dist/src/domain/model/submit-invoice/index.js +0 -19
- package/dist/src/domain/model/submit-invoice/index.js.map +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BlockchainSymbol } from './src/domain/model/blockchain/constants/BlockchainSymbol';
|
|
2
|
+
export { Platform } from './src/domain/constants/platform';
|
|
3
|
+
export { WithdrawalFeature } from './src/domain/model/withdraw/constants/WithdrawalFeature';
|
|
4
|
+
export { WithdrawalState } from './src/domain/model/withdraw/constants/WithdrawalState';
|
|
5
|
+
export { BroadcastAck } from './src/domain/model/withdraw/constants/BroadcastAck';
|
|
6
|
+
export { SignedTransactionKind } from './src/domain/model/broadcast/constants/SignedTransactionKind';
|
package/dist/withdraw.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SignedTransactionKind = exports.BroadcastAck = exports.WithdrawalState = exports.WithdrawalFeature = exports.Platform = exports.BlockchainSymbol = void 0;
|
|
4
|
+
var BlockchainSymbol_1 = require("./src/domain/model/blockchain/constants/BlockchainSymbol");
|
|
5
|
+
Object.defineProperty(exports, "BlockchainSymbol", { enumerable: true, get: function () { return BlockchainSymbol_1.BlockchainSymbol; } });
|
|
6
|
+
var platform_1 = require("./src/domain/constants/platform");
|
|
7
|
+
Object.defineProperty(exports, "Platform", { enumerable: true, get: function () { return platform_1.Platform; } });
|
|
8
|
+
var WithdrawalFeature_1 = require("./src/domain/model/withdraw/constants/WithdrawalFeature");
|
|
9
|
+
Object.defineProperty(exports, "WithdrawalFeature", { enumerable: true, get: function () { return WithdrawalFeature_1.WithdrawalFeature; } });
|
|
10
|
+
var WithdrawalState_1 = require("./src/domain/model/withdraw/constants/WithdrawalState");
|
|
11
|
+
Object.defineProperty(exports, "WithdrawalState", { enumerable: true, get: function () { return WithdrawalState_1.WithdrawalState; } });
|
|
12
|
+
var BroadcastAck_1 = require("./src/domain/model/withdraw/constants/BroadcastAck");
|
|
13
|
+
Object.defineProperty(exports, "BroadcastAck", { enumerable: true, get: function () { return BroadcastAck_1.BroadcastAck; } });
|
|
14
|
+
var SignedTransactionKind_1 = require("./src/domain/model/broadcast/constants/SignedTransactionKind");
|
|
15
|
+
Object.defineProperty(exports, "SignedTransactionKind", { enumerable: true, get: function () { return SignedTransactionKind_1.SignedTransactionKind; } });
|
|
16
|
+
//# sourceMappingURL=withdraw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdraw.js","sourceRoot":"","sources":["../withdraw.ts"],"names":[],"mappings":";;;AAEA,6FAA4F;AAAnF,oHAAA,gBAAgB,OAAA;AACzB,4DAA2D;AAAlD,oGAAA,QAAQ,OAAA;AACjB,6FAA4F;AAAnF,sHAAA,iBAAiB,OAAA;AAC1B,yFAAwF;AAA/E,kHAAA,eAAe,OAAA;AACxB,mFAAkF;AAAzE,4GAAA,YAAY,OAAA;AACrB,sGAAqG;AAA5F,8HAAA,qBAAqB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heliofi/common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.275-alpha.1782824411",
|
|
5
5
|
"description": "Common package",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./withdraw": {
|
|
14
|
+
"types": "./dist/withdraw.d.ts",
|
|
15
|
+
"default": "./dist/withdraw.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
8
18
|
"scripts": {
|
|
9
19
|
"test": "jest",
|
|
10
20
|
"test:watch": "jest --watch",
|
|
@@ -32,5 +42,5 @@
|
|
|
32
42
|
"peerDependencies": {
|
|
33
43
|
"typescript": "5.*"
|
|
34
44
|
},
|
|
35
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "334343ebea22af03c493f92c38fd843a7ef1c271"
|
|
36
46
|
}
|
package/withdraw.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Decorator-free enum exports for the withdraw widgets, so consumers don't pull
|
|
2
|
+
// reflect-metadata via the package barrel.
|
|
3
|
+
export { BlockchainSymbol } from './src/domain/model/blockchain/constants/BlockchainSymbol';
|
|
4
|
+
export { Platform } from './src/domain/constants/platform';
|
|
5
|
+
export { WithdrawalFeature } from './src/domain/model/withdraw/constants/WithdrawalFeature';
|
|
6
|
+
export { WithdrawalState } from './src/domain/model/withdraw/constants/WithdrawalState';
|
|
7
|
+
export { BroadcastAck } from './src/domain/model/withdraw/constants/BroadcastAck';
|
|
8
|
+
export { SignedTransactionKind } from './src/domain/model/broadcast/constants/SignedTransactionKind';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Cluster } from '../../blockchain';
|
|
2
|
-
export declare class EmailInvoiceDto {
|
|
3
|
-
companyLogo: string;
|
|
4
|
-
invoiceNumber: number;
|
|
5
|
-
email: string;
|
|
6
|
-
amount: string;
|
|
7
|
-
dueDate: string;
|
|
8
|
-
currency: string;
|
|
9
|
-
blockchain?: string;
|
|
10
|
-
cluster?: Cluster;
|
|
11
|
-
merchantName?: string;
|
|
12
|
-
merchantWebsite?: string;
|
|
13
|
-
merchantTwitter?: string;
|
|
14
|
-
merchantDiscord?: string;
|
|
15
|
-
merchantEmail?: string;
|
|
16
|
-
paymentLink?: string;
|
|
17
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
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
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EmailInvoiceDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const blockchain_1 = require("../../blockchain");
|
|
15
|
-
class EmailInvoiceDto {
|
|
16
|
-
}
|
|
17
|
-
exports.EmailInvoiceDto = EmailInvoiceDto;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], EmailInvoiceDto.prototype, "companyLogo", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], EmailInvoiceDto.prototype, "invoiceNumber", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsEmail)(),
|
|
30
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], EmailInvoiceDto.prototype, "email", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsString)(),
|
|
35
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], EmailInvoiceDto.prototype, "amount", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsString)(),
|
|
40
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], EmailInvoiceDto.prototype, "dueDate", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsString)(),
|
|
45
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], EmailInvoiceDto.prototype, "currency", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.IsString)(),
|
|
50
|
-
(0, class_validator_1.IsOptional)(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], EmailInvoiceDto.prototype, "blockchain", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, class_validator_1.IsString)(),
|
|
55
|
-
(0, class_validator_1.IsOptional)(),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], EmailInvoiceDto.prototype, "cluster", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.IsString)(),
|
|
60
|
-
(0, class_validator_1.IsOptional)(),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], EmailInvoiceDto.prototype, "merchantName", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsString)(),
|
|
65
|
-
(0, class_validator_1.IsOptional)(),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], EmailInvoiceDto.prototype, "merchantWebsite", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_validator_1.IsString)(),
|
|
70
|
-
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], EmailInvoiceDto.prototype, "merchantTwitter", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, class_validator_1.IsString)(),
|
|
75
|
-
(0, class_validator_1.IsOptional)(),
|
|
76
|
-
__metadata("design:type", String)
|
|
77
|
-
], EmailInvoiceDto.prototype, "merchantDiscord", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, class_validator_1.IsString)(),
|
|
80
|
-
(0, class_validator_1.IsOptional)(),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], EmailInvoiceDto.prototype, "merchantEmail", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, class_validator_1.IsString)(),
|
|
85
|
-
(0, class_validator_1.IsOptional)(),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], EmailInvoiceDto.prototype, "paymentLink", void 0);
|
|
88
|
-
//# sourceMappingURL=emailInvoice.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emailInvoice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/email/dtos/emailInvoice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAC5E,iDAA2C;AAE3C,MAAa,eAAe;CAwD3B;AAxDD,0CAwDC;AArDC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACS;AAItB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;8CACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACQ"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { InvoiceItemDto } from '../../invoiceItem';
|
|
2
|
-
export declare class CreateInvoiceDto {
|
|
3
|
-
contact: string;
|
|
4
|
-
dueDate: Date;
|
|
5
|
-
date: Date;
|
|
6
|
-
currency: string;
|
|
7
|
-
blockchain?: string;
|
|
8
|
-
items: InvoiceItemDto[];
|
|
9
|
-
invoiceNumber: number;
|
|
10
|
-
description?: string;
|
|
11
|
-
taxPercentage?: number;
|
|
12
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateInvoiceDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const invoiceItem_1 = require("../../invoiceItem");
|
|
16
|
-
class CreateInvoiceDto {
|
|
17
|
-
}
|
|
18
|
-
exports.CreateInvoiceDto = CreateInvoiceDto;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], CreateInvoiceDto.prototype, "contact", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
26
|
-
(0, class_validator_1.IsDate)(),
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
__metadata("design:type", Date)
|
|
29
|
-
], CreateInvoiceDto.prototype, "dueDate", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
32
|
-
(0, class_validator_1.IsDate)(),
|
|
33
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
-
__metadata("design:type", Date)
|
|
35
|
-
], CreateInvoiceDto.prototype, "date", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], CreateInvoiceDto.prototype, "currency", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsString)(),
|
|
43
|
-
(0, class_validator_1.IsOptional)(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], CreateInvoiceDto.prototype, "blockchain", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
48
|
-
(0, class_transformer_1.Type)(() => invoiceItem_1.InvoiceItemDto),
|
|
49
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
50
|
-
__metadata("design:type", Array)
|
|
51
|
-
], CreateInvoiceDto.prototype, "items", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsNumber)(),
|
|
54
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], CreateInvoiceDto.prototype, "invoiceNumber", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsString)(),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], CreateInvoiceDto.prototype, "description", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsNumber)(),
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
__metadata("design:type", Number)
|
|
66
|
-
], CreateInvoiceDto.prototype, "taxPercentage", void 0);
|
|
67
|
-
//# sourceMappingURL=createInvoice.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createInvoice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/dtos/createInvoice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AACzC,mDAAmD;AAEnD,MAAa,gBAAgB;CAuC5B;AAvCD,4CAuCC;AApCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACG;AAKhB;IAHC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACJ,IAAI;iDAAC;AAKd;IAHC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACP,IAAI;8CAAC;AAIX;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACO;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAc,CAAC;IAC1B,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+CACP;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACS;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACU"}
|
|
@@ -1,19 +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("./createInvoice.dto"), exports);
|
|
18
|
-
__exportStar(require("./updateInvoice.dto"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { InvoiceItemDto } from '../../invoiceItem';
|
|
2
|
-
export declare class UpdateInvoiceDto {
|
|
3
|
-
contact?: string;
|
|
4
|
-
dueDate?: Date;
|
|
5
|
-
date?: Date;
|
|
6
|
-
currency?: string;
|
|
7
|
-
blockchain?: string;
|
|
8
|
-
invoiceNumber?: number;
|
|
9
|
-
description?: string;
|
|
10
|
-
taxPercentage?: number;
|
|
11
|
-
items?: InvoiceItemDto[];
|
|
12
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpdateInvoiceDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const invoiceItem_1 = require("../../invoiceItem");
|
|
16
|
-
class UpdateInvoiceDto {
|
|
17
|
-
}
|
|
18
|
-
exports.UpdateInvoiceDto = UpdateInvoiceDto;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
(0, class_validator_1.IsOptional)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], UpdateInvoiceDto.prototype, "contact", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
26
|
-
(0, class_validator_1.IsDate)(),
|
|
27
|
-
(0, class_validator_1.IsOptional)(),
|
|
28
|
-
__metadata("design:type", Date)
|
|
29
|
-
], UpdateInvoiceDto.prototype, "dueDate", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
32
|
-
(0, class_validator_1.IsDate)(),
|
|
33
|
-
(0, class_validator_1.IsOptional)(),
|
|
34
|
-
__metadata("design:type", Date)
|
|
35
|
-
], UpdateInvoiceDto.prototype, "date", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0, class_validator_1.IsOptional)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], UpdateInvoiceDto.prototype, "currency", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsString)(),
|
|
43
|
-
(0, class_validator_1.IsOptional)(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], UpdateInvoiceDto.prototype, "blockchain", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_validator_1.IsNumber)(),
|
|
48
|
-
(0, class_validator_1.IsOptional)(),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], UpdateInvoiceDto.prototype, "invoiceNumber", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_validator_1.IsOptional)(),
|
|
53
|
-
(0, class_validator_1.IsString)(),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], UpdateInvoiceDto.prototype, "description", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, class_validator_1.IsNumber)(),
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], UpdateInvoiceDto.prototype, "taxPercentage", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, class_validator_1.IsOptional)(),
|
|
63
|
-
(0, class_transformer_1.Type)(() => invoiceItem_1.InvoiceItemDto),
|
|
64
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
65
|
-
__metadata("design:type", Array)
|
|
66
|
-
], UpdateInvoiceDto.prototype, "items", void 0);
|
|
67
|
-
//# sourceMappingURL=updateInvoice.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateInvoice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/dtos/updateInvoice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAyC;AACzC,mDAAmD;AAEnD,MAAa,gBAAgB;CAuC5B;AAvCD,4CAuCC;AApCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACI;AAKjB;IAHC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACH,IAAI;iDAAC;AAKf;IAHC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACN,IAAI;8CAAC;AAIZ;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACU;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACU;AAKvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAc,CAAC;IAC1B,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+CACN"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseCompany } from '../../company';
|
|
2
|
-
import { BaseWallet } from '../../wallet';
|
|
3
|
-
import { Invoice } from './Invoice.entity';
|
|
4
|
-
import { BaseUser } from '../../user';
|
|
5
|
-
import { Currency } from '../../currency';
|
|
6
|
-
import { Recipient } from '../../recipient';
|
|
7
|
-
export declare class EnrichedInvoice extends Invoice {
|
|
8
|
-
company: BaseCompany;
|
|
9
|
-
wallet: BaseWallet;
|
|
10
|
-
creator: BaseUser;
|
|
11
|
-
pricingCurrency: Currency;
|
|
12
|
-
recipients: Recipient[];
|
|
13
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnrichedInvoice = void 0;
|
|
4
|
-
const Invoice_entity_1 = require("./Invoice.entity");
|
|
5
|
-
class EnrichedInvoice extends Invoice_entity_1.Invoice {
|
|
6
|
-
}
|
|
7
|
-
exports.EnrichedInvoice = EnrichedInvoice;
|
|
8
|
-
//# sourceMappingURL=EnrichedInvoice.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnrichedInvoice.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/entities/EnrichedInvoice.entity.ts"],"names":[],"mappings":";;;AAEA,qDAA2C;AAK3C,MAAa,eAAgB,SAAQ,wBAAO;CAU3C;AAVD,0CAUC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Contact } from '../../contact';
|
|
2
|
-
import { InvoiceItem } from '../../invoiceItem';
|
|
3
|
-
import { Currency } from '../../currency';
|
|
4
|
-
import { InvoiceStatus } from './InvoiceStatus';
|
|
5
|
-
import { BasePaymentRequest } from '../../payment-request';
|
|
6
|
-
export declare class Invoice extends BasePaymentRequest {
|
|
7
|
-
contact: Contact;
|
|
8
|
-
date: string;
|
|
9
|
-
dueDate: string;
|
|
10
|
-
currency: Currency;
|
|
11
|
-
items: InvoiceItem[];
|
|
12
|
-
status: InvoiceStatus;
|
|
13
|
-
invoiceNumber?: number;
|
|
14
|
-
taxPercentage?: number;
|
|
15
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Invoice = void 0;
|
|
4
|
-
const payment_request_1 = require("../../payment-request");
|
|
5
|
-
class Invoice extends payment_request_1.BasePaymentRequest {
|
|
6
|
-
}
|
|
7
|
-
exports.Invoice = Invoice;
|
|
8
|
-
//# sourceMappingURL=Invoice.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/entities/Invoice.entity.ts"],"names":[],"mappings":";;;AAIA,2DAA2D;AAE3D,MAAa,OAAQ,SAAQ,oCAAkB;CAgB9C;AAhBD,0BAgBC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvoiceStatus = void 0;
|
|
4
|
-
var InvoiceStatus;
|
|
5
|
-
(function (InvoiceStatus) {
|
|
6
|
-
InvoiceStatus["PAID"] = "PAID";
|
|
7
|
-
InvoiceStatus["UNPAID"] = "UNPAID";
|
|
8
|
-
InvoiceStatus["CANCELLED"] = "CANCELLED";
|
|
9
|
-
})(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
|
|
10
|
-
//# sourceMappingURL=InvoiceStatus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceStatus.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/entities/InvoiceStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;AACzB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
|
|
@@ -1,20 +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("./InvoiceStatus"), exports);
|
|
18
|
-
__exportStar(require("./Invoice.entity"), exports);
|
|
19
|
-
__exportStar(require("./EnrichedInvoice.entity"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,2DAAyC"}
|
|
@@ -1,19 +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("./entities"), exports);
|
|
18
|
-
__exportStar(require("./dtos"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/invoice/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BaseInvoiceTx = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const entity_1 = require("../../entity");
|
|
15
|
-
class BaseInvoiceTx extends entity_1.Entity {
|
|
16
|
-
}
|
|
17
|
-
exports.BaseInvoiceTx = BaseInvoiceTx;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
20
|
-
__metadata("design:type", BigInt)
|
|
21
|
-
], BaseInvoiceTx.prototype, "fee", void 0);
|
|
22
|
-
//# sourceMappingURL=BaseInvoiceTx.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInvoiceTx.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice-tx/entities/BaseInvoiceTx.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAGtC,MAAa,aAAc,SAAQ,eAAM;CASxC;AATD,sCASC;AAPC;IADC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;0CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateInvoiceTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice-tx/entities/CreateInvoiceTx.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;CAM3B;AAND,0CAMC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TransactionMeta } from '../../transaction-meta';
|
|
2
|
-
import { BaseInvoiceTx } from './BaseInvoiceTx.entity';
|
|
3
|
-
import { EnrichedInvoice } from '../../invoice';
|
|
4
|
-
import { BlockchainSymbol } from '../../blockchain';
|
|
5
|
-
import type { BaseTransaction } from '../../transaction/types';
|
|
6
|
-
export declare class InvoiceTx extends BaseInvoiceTx implements BaseTransaction {
|
|
7
|
-
meta: TransactionMeta;
|
|
8
|
-
invoice: EnrichedInvoice;
|
|
9
|
-
paymentRequestCreatorId: string;
|
|
10
|
-
paymentRequestName: string;
|
|
11
|
-
paymentRequestCurrencySymbol: string;
|
|
12
|
-
paymentRequestBlockchain: BlockchainSymbol;
|
|
13
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.InvoiceTx = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const transaction_meta_1 = require("../../transaction-meta");
|
|
15
|
-
const BaseInvoiceTx_entity_1 = require("./BaseInvoiceTx.entity");
|
|
16
|
-
const invoice_1 = require("../../invoice");
|
|
17
|
-
class InvoiceTx extends BaseInvoiceTx_entity_1.BaseInvoiceTx {
|
|
18
|
-
}
|
|
19
|
-
exports.InvoiceTx = InvoiceTx;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_transformer_1.Type)(() => transaction_meta_1.TransactionMeta),
|
|
22
|
-
__metadata("design:type", transaction_meta_1.TransactionMeta)
|
|
23
|
-
], InvoiceTx.prototype, "meta", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_transformer_1.Type)(() => invoice_1.EnrichedInvoice),
|
|
26
|
-
__metadata("design:type", invoice_1.EnrichedInvoice)
|
|
27
|
-
], InvoiceTx.prototype, "invoice", void 0);
|
|
28
|
-
//# sourceMappingURL=InvoiceTx.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|