@heliofi/common 0.1.175 → 0.1.176
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/helioPlay/index.d.ts +1 -0
- package/dist/src/domain/constants/helioPlay/index.js +18 -0
- package/dist/src/domain/constants/helioPlay/index.js.map +1 -0
- package/dist/src/domain/constants/helioPlay/previewDurationSeconds.d.ts +1 -0
- package/dist/src/domain/constants/helioPlay/previewDurationSeconds.js +5 -0
- package/dist/src/domain/constants/helioPlay/previewDurationSeconds.js.map +1 -0
- package/dist/src/domain/constants/index.d.ts +1 -0
- package/dist/src/domain/constants/index.js +1 -0
- package/dist/src/domain/constants/index.js.map +1 -1
- package/dist/src/domain/model/attachment/entities/BaseAttachment.d.ts +7 -0
- package/dist/src/domain/model/attachment/entities/BaseAttachment.js +8 -0
- package/dist/src/domain/model/attachment/entities/BaseAttachment.js.map +1 -0
- package/dist/src/domain/model/company/entities/BaseCompany.d.ts +13 -0
- package/dist/src/domain/model/company/entities/BaseCompany.js +8 -0
- package/dist/src/domain/model/company/entities/BaseCompany.js.map +1 -0
- package/dist/src/domain/model/company/entities/Company.d.ts +7 -0
- package/dist/src/domain/model/company/entities/Company.js +8 -0
- package/dist/src/domain/model/company/entities/Company.js.map +1 -0
- package/dist/src/domain/model/content/dtos/content.dto.d.ts +2 -1
- package/dist/src/domain/model/content/dtos/content.dto.js +6 -1
- package/dist/src/domain/model/content/dtos/content.dto.js.map +1 -1
- package/dist/src/domain/model/content/entities/Content.d.ts +2 -3
- package/dist/src/domain/model/content/entities/Content.js +3 -3
- package/dist/src/domain/model/content/entities/Content.js.map +1 -1
- package/dist/src/domain/model/currency/entities/BaseCurrency.d.ts +14 -0
- package/dist/src/domain/model/currency/entities/BaseCurrency.js +8 -0
- package/dist/src/domain/model/currency/entities/BaseCurrency.js.map +1 -0
- package/dist/src/domain/model/currency/entities/Currency.d.ts +5 -0
- package/dist/src/domain/model/currency/entities/Currency.js +8 -0
- package/dist/src/domain/model/currency/entities/Currency.js.map +1 -0
- package/dist/src/domain/model/helio-play/dtos/HelioPlayPropertiesDto.d.ts +6 -0
- package/dist/src/domain/model/helio-play/dtos/HelioPlayPropertiesDto.js +7 -0
- package/dist/src/domain/model/helio-play/dtos/HelioPlayPropertiesDto.js.map +1 -0
- package/dist/src/domain/model/helio-play/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/helio-play/dtos/index.js +18 -0
- package/dist/src/domain/model/helio-play/dtos/index.js.map +1 -0
- package/dist/src/domain/model/helio-play/entities/HelioPlayProperties.d.ts +6 -0
- package/dist/src/domain/model/helio-play/entities/HelioPlayProperties.js +7 -0
- package/dist/src/domain/model/helio-play/entities/HelioPlayProperties.js.map +1 -0
- package/dist/src/domain/model/helio-play/entities/index.d.ts +1 -0
- package/dist/src/domain/model/helio-play/entities/index.js +18 -0
- package/dist/src/domain/model/helio-play/entities/index.js.map +1 -0
- package/dist/src/domain/model/helio-play/index.d.ts +2 -0
- package/dist/src/domain/model/helio-play/index.js +19 -0
- package/dist/src/domain/model/helio-play/index.js.map +1 -0
- package/dist/src/domain/model/location/entities/FetchifyFindAddress.d.ts +8 -0
- package/dist/src/domain/model/location/entities/FetchifyFindAddress.js +8 -0
- package/dist/src/domain/model/location/entities/FetchifyFindAddress.js.map +1 -0
- package/dist/src/domain/model/location/entities/FetchifyRetrieveAddress.d.ts +13 -0
- package/dist/src/domain/model/location/entities/FetchifyRetrieveAddress.js +8 -0
- package/dist/src/domain/model/location/entities/FetchifyRetrieveAddress.js.map +1 -0
- package/dist/src/domain/model/media/entities/MediaProperties.d.ts +5 -0
- package/dist/src/domain/model/media/entities/MediaProperties.js +7 -0
- package/dist/src/domain/model/media/entities/MediaProperties.js.map +1 -0
- package/dist/src/domain/model/media/entities/MediaType.d.ts +5 -0
- package/dist/src/domain/model/media/entities/MediaType.js +10 -0
- package/dist/src/domain/model/media/entities/MediaType.js.map +1 -0
- package/dist/src/domain/model/media/entities/index.d.ts +2 -0
- package/dist/src/domain/model/media/entities/index.js +19 -0
- package/dist/src/domain/model/media/entities/index.js.map +1 -0
- package/dist/src/domain/model/media/index.d.ts +1 -0
- package/dist/src/domain/model/media/index.js +18 -0
- package/dist/src/domain/model/media/index.js.map +1 -0
- package/dist/src/domain/model/paylink/entities/OnlyContentAndTransactionPaylink.d.ts +3 -3
- package/dist/src/domain/model/paylink/entities/OnlyContentPaylink.d.ts +2 -2
- package/dist/src/domain/model/paylink/entities/ShallowEnrichedPaylink.d.ts +2 -2
- package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.d.ts +2 -2
- package/dist/src/domain/model/paystream-tx/entities/CheckoutStatus.d.ts +16 -0
- package/dist/src/domain/model/paystream-tx/entities/CheckoutStatus.entity.d.ts +1 -1
- package/dist/src/domain/model/paystream-tx/entities/CheckoutStatus.js +7 -0
- package/dist/src/domain/model/paystream-tx/entities/CheckoutStatus.js.map +1 -0
- package/dist/src/domain/model/paystream-tx/entities/PaystreamTxWithContent.d.ts +2 -2
- package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.d.ts +5 -0
- package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.js +8 -0
- package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.js.map +1 -0
- package/dist/src/domain/model/prepare-stream/dtos/index.d.ts +3 -2
- package/dist/src/domain/model/prepare-stream/dtos/index.js +3 -2
- package/dist/src/domain/model/prepare-stream/dtos/index.js.map +1 -1
- package/dist/src/domain/model/prepare-stream/dtos/topUpStreamPrepare.dto.d.ts +4 -0
- package/dist/src/domain/model/prepare-stream/dtos/topUpStreamPrepare.dto.js +27 -0
- package/dist/src/domain/model/prepare-stream/dtos/topUpStreamPrepare.dto.js.map +1 -0
- package/dist/src/domain/model/prepare-transaction/entities/PrepareSwapTransaction.d.ts +5 -0
- package/dist/src/domain/model/prepare-transaction/entities/PrepareSwapTransaction.js +7 -0
- package/dist/src/domain/model/prepare-transaction/entities/PrepareSwapTransaction.js.map +1 -0
- package/dist/src/domain/model/prepare-transaction/entities/PrepareTransaction.d.ts +5 -0
- package/dist/src/domain/model/prepare-transaction/entities/PrepareTransaction.js +8 -0
- package/dist/src/domain/model/prepare-transaction/entities/PrepareTransaction.js.map +1 -0
- package/dist/src/domain/model/report/entities/ReportItem.d.ts +37 -0
- package/dist/src/domain/model/report/entities/ReportItem.js +7 -0
- package/dist/src/domain/model/report/entities/ReportItem.js.map +1 -0
- package/dist/src/domain/model/settle-transaction/dtos/settleTransaction.dto.d.ts +1 -1
- package/dist/src/domain/model/settle-transaction/dtos/settleTransaction.dto.js +1 -0
- package/dist/src/domain/model/settle-transaction/dtos/settleTransaction.dto.js.map +1 -1
- package/dist/src/domain/model/token-quoting/entities/TokenQuoting.d.ts +4 -0
- package/dist/src/domain/model/token-quoting/entities/TokenQuoting.js +8 -0
- package/dist/src/domain/model/token-quoting/entities/TokenQuoting.js.map +1 -0
- package/dist/src/domain/model/token-swap/entities/SwapRouteToken.d.ts +4 -0
- package/dist/src/domain/model/token-swap/entities/SwapRouteToken.js +8 -0
- package/dist/src/domain/model/token-swap/entities/SwapRouteToken.js.map +1 -0
- package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.d.ts +16 -0
- package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.js +26 -0
- package/dist/src/domain/model/transaction-meta/entities/BaseTransactionMeta.js.map +1 -0
- package/dist/src/domain/model/user/entities/BaseUser.d.ts +8 -0
- package/dist/src/domain/model/user/entities/BaseUser.js +8 -0
- package/dist/src/domain/model/user/entities/BaseUser.js.map +1 -0
- package/dist/src/domain/model/wallet/entities/BaseWallet.d.ts +5 -0
- package/dist/src/domain/model/wallet/entities/BaseWallet.js +8 -0
- package/dist/src/domain/model/wallet/entities/BaseWallet.js.map +1 -0
- package/dist/src/domain/model/wallet/entities/Wallet.d.ts +7 -0
- package/dist/src/domain/model/wallet/entities/Wallet.js +8 -0
- package/dist/src/domain/model/wallet/entities/Wallet.js.map +1 -0
- package/dist/src/domain/model/wallet/entities/WalletDetails.d.ts +4 -0
- package/dist/src/domain/model/wallet/entities/WalletDetails.js +8 -0
- package/dist/src/domain/model/wallet/entities/WalletDetails.js.map +1 -0
- package/dist/src/domain/services/BigIntCalculatorService.d.ts +1 -0
- package/dist/src/domain/services/BigIntCalculatorService.js +3 -0
- package/dist/src/domain/services/BigIntCalculatorService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContentResponse } from '../../content';
|
|
2
2
|
import { BasePaystreamTx } from './BasePaystreamTx';
|
|
3
3
|
export declare class PaystreamTxWithContent extends BasePaystreamTx {
|
|
4
|
-
content:
|
|
4
|
+
content: ContentResponse;
|
|
5
5
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrepareInvoice = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class PrepareInvoice extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.PrepareInvoice = PrepareInvoice;
|
|
8
|
+
//# sourceMappingURL=PrepareInvoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrepareInvoice.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-invoice/entities/PrepareInvoice.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,cAAe,SAAQ,eAAM;CAGzC;AAHD,wCAGC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from './createStreamPrepare.dto';
|
|
2
1
|
export * from './cancelStreamPrepare.dto';
|
|
3
|
-
export * from './
|
|
2
|
+
export * from './createStreamPrepare.dto';
|
|
4
3
|
export * from './createStreamPrepareSwap.dto';
|
|
4
|
+
export * from './topUpStreamPrepare.dto';
|
|
5
|
+
export * from './withdrawStreamPrepare.dto';
|
|
@@ -14,8 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./createStreamPrepare.dto"), exports);
|
|
18
17
|
__exportStar(require("./cancelStreamPrepare.dto"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./createStreamPrepare.dto"), exports);
|
|
20
19
|
__exportStar(require("./createStreamPrepareSwap.dto"), exports);
|
|
20
|
+
__exportStar(require("./topUpStreamPrepare.dto"), exports);
|
|
21
|
+
__exportStar(require("./withdrawStreamPrepare.dto"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-stream/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,4DAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-stream/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.TopUpStreamPrepareDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class TopUpStreamPrepareDto {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_validator_1.IsString)(),
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], TopUpStreamPrepareDto.prototype, "paystreamTxId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], TopUpStreamPrepareDto.prototype, "intervalCount", void 0);
|
|
26
|
+
exports.TopUpStreamPrepareDto = TopUpStreamPrepareDto;
|
|
27
|
+
//# sourceMappingURL=topUpStreamPrepare.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topUpStreamPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-stream/dtos/topUpStreamPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,qBAAqB;CAQjC;AAPC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACS;AAEtB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACS;AAPxB,sDAQC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrepareSwapTransaction = void 0;
|
|
4
|
+
class PrepareSwapTransaction {
|
|
5
|
+
}
|
|
6
|
+
exports.PrepareSwapTransaction = PrepareSwapTransaction;
|
|
7
|
+
//# sourceMappingURL=PrepareSwapTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrepareSwapTransaction.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/entities/PrepareSwapTransaction.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;CAGlC;AAHD,wDAGC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrepareTransaction = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class PrepareTransaction extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.PrepareTransaction = PrepareTransaction;
|
|
8
|
+
//# sourceMappingURL=PrepareTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrepareTransaction.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/entities/PrepareTransaction.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,kBAAmB,SAAQ,eAAM;CAG7C;AAHD,gDAGC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IntervalType } from '../../paystream';
|
|
2
|
+
import { BlockchainSymbol } from '../../blockchain';
|
|
3
|
+
export declare class ReportItem {
|
|
4
|
+
id: string;
|
|
5
|
+
txSignature: string;
|
|
6
|
+
solScanLink: string;
|
|
7
|
+
paymentRequestId: string;
|
|
8
|
+
paymentRequestUrl: string;
|
|
9
|
+
paymentRequestName: string;
|
|
10
|
+
quantity: number;
|
|
11
|
+
time: string;
|
|
12
|
+
amount: number;
|
|
13
|
+
convertedAmount: number;
|
|
14
|
+
currency: string;
|
|
15
|
+
blockchain: BlockchainSymbol;
|
|
16
|
+
from: string;
|
|
17
|
+
paymentRequestUrlWithSlug?: string;
|
|
18
|
+
cancelAt?: number;
|
|
19
|
+
endAt?: number;
|
|
20
|
+
startAt?: number;
|
|
21
|
+
intervalUnit?: IntervalType;
|
|
22
|
+
email?: string;
|
|
23
|
+
discordUsername?: string;
|
|
24
|
+
twitterUsername?: string;
|
|
25
|
+
fullName?: string;
|
|
26
|
+
country?: string;
|
|
27
|
+
deliveryAddress?: string;
|
|
28
|
+
phoneNumber?: string;
|
|
29
|
+
state?: string;
|
|
30
|
+
street?: string;
|
|
31
|
+
streetNumber?: string;
|
|
32
|
+
city?: string;
|
|
33
|
+
areaCode?: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
value?: string;
|
|
36
|
+
fee: number;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportItem.js","sourceRoot":"","sources":["../../../../../../src/domain/model/report/entities/ReportItem.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;CAkEtB;AAlED,gCAkEC"}
|
|
@@ -16,6 +16,7 @@ class SettleTransactionDto {
|
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, class_validator_1.IsEnum)(transaction_meta_1.TransactionStatus),
|
|
19
|
+
(0, class_validator_1.IsIn)([transaction_meta_1.TransactionStatus.CANCELED, transaction_meta_1.TransactionStatus.FAILED]),
|
|
19
20
|
(0, class_validator_1.IsNotEmpty)(),
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], SettleTransactionDto.prototype, "transactionStatus", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settleTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/settle-transaction/dtos/settleTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"settleTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/settle-transaction/dtos/settleTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,6DAA2D;AAE3D,MAAa,oBAAoB;CAKhC;AAJC;IAAC,IAAA,wBAAM,EAAC,oCAAiB,CAAC;IACzB,IAAA,sBAAI,EAAC,CAAC,oCAAiB,CAAC,QAAQ,EAAE,oCAAiB,CAAC,MAAM,CAAC,CAAC;IAC5D,IAAA,4BAAU,GAAE;;+DAC4D;AAJ3E,oDAKC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TokenQuoting = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class TokenQuoting extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.TokenQuoting = TokenQuoting;
|
|
8
|
+
//# sourceMappingURL=TokenQuoting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenQuoting.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-quoting/entities/TokenQuoting.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,YAAa,SAAQ,eAAM;CAEvC;AAFD,oCAEC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SwapRouteToken = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class SwapRouteToken extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.SwapRouteToken = SwapRouteToken;
|
|
8
|
+
//# sourceMappingURL=SwapRouteToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapRouteToken.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-swap/entities/SwapRouteToken.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,cAAe,SAAQ,eAAM;CAEzC;AAFD,wCAEC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomerDetails } from '../../customer-details';
|
|
2
|
+
import { Entity } from '../../entity';
|
|
3
|
+
import { ProductDetails } from '../../product-details';
|
|
4
|
+
import { SplitAccount } from '../../split-account';
|
|
5
|
+
export declare class BaseTransactionMeta extends Entity {
|
|
6
|
+
id: string;
|
|
7
|
+
transactionSignature: string;
|
|
8
|
+
amount: bigint;
|
|
9
|
+
recipientPK: string;
|
|
10
|
+
senderPK: string;
|
|
11
|
+
customerDetails: CustomerDetails;
|
|
12
|
+
productDetails: ProductDetails;
|
|
13
|
+
splitRevenue: boolean;
|
|
14
|
+
remainingAccounts: SplitAccount[];
|
|
15
|
+
totalAmount: bigint;
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.BaseTransactionMeta = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const entity_1 = require("../../entity");
|
|
15
|
+
class BaseTransactionMeta extends entity_1.Entity {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
19
|
+
__metadata("design:type", BigInt)
|
|
20
|
+
], BaseTransactionMeta.prototype, "amount", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
23
|
+
__metadata("design:type", BigInt)
|
|
24
|
+
], BaseTransactionMeta.prototype, "totalAmount", void 0);
|
|
25
|
+
exports.BaseTransactionMeta = BaseTransactionMeta;
|
|
26
|
+
//# sourceMappingURL=BaseTransactionMeta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTransactionMeta.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/BaseTransactionMeta.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAE9C,yCAAsC;AAItC,MAAa,mBAAoB,SAAQ,eAAM;CAsB9C;AAjBC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;mDACzB;AAcf;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;wDACpB;AArBtB,kDAsBC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseUser = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class BaseUser extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.BaseUser = BaseUser;
|
|
8
|
+
//# sourceMappingURL=BaseUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseUser.js","sourceRoot":"","sources":["../../../../../../src/domain/model/user/entities/BaseUser.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,QAAS,SAAQ,eAAM;CAUnC;AAVD,4BAUC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseWallet = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class BaseWallet extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.BaseWallet = BaseWallet;
|
|
8
|
+
//# sourceMappingURL=BaseWallet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseWallet.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BaseWallet.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,UAAW,SAAQ,eAAM;CAIrC;AAJD,gCAIC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Blockchain } from '../../blockchain';
|
|
2
|
+
import { BaseWallet } from './BaseWallet';
|
|
3
|
+
import { BlockchainEngine } from '../../blockchainEngine';
|
|
4
|
+
export declare class Wallet extends BaseWallet {
|
|
5
|
+
blockchain?: Blockchain;
|
|
6
|
+
blockchainEngine: BlockchainEngine;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Wallet = void 0;
|
|
4
|
+
const BaseWallet_1 = require("./BaseWallet");
|
|
5
|
+
class Wallet extends BaseWallet_1.BaseWallet {
|
|
6
|
+
}
|
|
7
|
+
exports.Wallet = Wallet;
|
|
8
|
+
//# sourceMappingURL=Wallet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wallet.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/Wallet.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAG1C,MAAa,MAAO,SAAQ,uBAAU;CAIrC;AAJD,wBAIC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletDetails = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class WalletDetails extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.WalletDetails = WalletDetails;
|
|
8
|
+
//# sourceMappingURL=WalletDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletDetails.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/WalletDetails.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,aAAc,SAAQ,eAAM;CAExC;AAFD,sCAEC"}
|
|
@@ -5,6 +5,9 @@ class BigIntCalculatorService {
|
|
|
5
5
|
static calculatePercentage(amount, sharePercent) {
|
|
6
6
|
return amount - (amount * BigInt(10000 - sharePercent * 100)) / 10000n;
|
|
7
7
|
}
|
|
8
|
+
static getBigintMultiplierFromDecimals(decimals) {
|
|
9
|
+
return BigInt(1 + new Array(decimals).fill(0).join(''));
|
|
10
|
+
}
|
|
8
11
|
}
|
|
9
12
|
exports.BigIntCalculatorService = BigIntCalculatorService;
|
|
10
13
|
//# sourceMappingURL=BigIntCalculatorService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BigIntCalculatorService.js","sourceRoot":"","sources":["../../../../src/domain/services/BigIntCalculatorService.ts"],"names":[],"mappings":";;;AAAA,MAAa,uBAAuB;IAClC,MAAM,CAAC,mBAAmB,CAAC,MAAc,EAAE,YAAoB;QAC7D,OAAO,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,GAAG,YAAY,GAAG,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;IACzE,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"BigIntCalculatorService.js","sourceRoot":"","sources":["../../../../src/domain/services/BigIntCalculatorService.ts"],"names":[],"mappings":";;;AAAA,MAAa,uBAAuB;IAClC,MAAM,CAAC,mBAAmB,CAAC,MAAc,EAAE,YAAoB;QAC7D,OAAO,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,GAAG,YAAY,GAAG,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;IACzE,CAAC;IAED,MAAM,CAAC,+BAA+B,CAAC,QAAgB;QACrD,OAAO,MAAM,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,0DAQC"}
|