@heliofi/common 0.1.2 → 0.1.4
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/emailValidation.d.ts +1 -0
- package/dist/src/domain/constants/emailValidation.js +5 -0
- package/dist/src/domain/constants/emailValidation.js.map +1 -0
- package/dist/src/domain/constants/index.d.ts +2 -1
- package/dist/src/domain/constants/index.js +16 -2
- package/dist/src/domain/constants/index.js.map +1 -1
- package/dist/src/domain/constants/orderDirection.d.ts +6 -0
- package/dist/src/domain/constants/orderDirection.js +17 -0
- package/dist/src/domain/constants/orderDirection.js.map +1 -0
- package/dist/src/domain/model/apiKey/dtos/createApiKey.dto.js +0 -4
- package/dist/src/domain/model/apiKey/dtos/createApiKey.dto.js.map +1 -1
- package/dist/src/domain/model/apiKey/dtos/updateApiKey.dto.js +0 -4
- package/dist/src/domain/model/apiKey/dtos/updateApiKey.dto.js.map +1 -1
- package/dist/src/domain/model/approve-transaction/dtos/approveTransaction.dto.js +0 -4
- package/dist/src/domain/model/approve-transaction/dtos/approveTransaction.dto.js.map +1 -1
- package/dist/src/domain/model/attachment/dtos/createAttachment.dto.js +0 -4
- package/dist/src/domain/model/attachment/dtos/createAttachment.dto.js.map +1 -1
- package/dist/src/domain/model/auth/dtos/signOn.dto.js +0 -4
- package/dist/src/domain/model/auth/dtos/signOn.dto.js.map +1 -1
- package/dist/src/domain/model/blockchain/dtos/blockchain.dto.js +0 -4
- package/dist/src/domain/model/blockchain/dtos/blockchain.dto.js.map +1 -1
- package/dist/src/domain/model/company/dtos/createCompany.dto.js +0 -4
- package/dist/src/domain/model/company/dtos/createCompany.dto.js.map +1 -1
- package/dist/src/domain/model/company/dtos/updateCompany.dto.js +0 -4
- package/dist/src/domain/model/company/dtos/updateCompany.dto.js.map +1 -1
- package/dist/src/domain/model/content/dtos/content.dto.js +0 -4
- package/dist/src/domain/model/content/dtos/content.dto.js.map +1 -1
- package/dist/src/domain/model/currency/dtos/createCurrency.dto.js +0 -4
- package/dist/src/domain/model/currency/dtos/createCurrency.dto.js.map +1 -1
- package/dist/src/domain/model/currency/dtos/updateCurrency.dto.js +0 -4
- package/dist/src/domain/model/currency/dtos/updateCurrency.dto.js.map +1 -1
- package/dist/src/domain/model/customer-details/dtos/customerDetails.dto.js +0 -4
- package/dist/src/domain/model/customer-details/dtos/customerDetails.dto.js.map +1 -1
- package/dist/src/domain/model/discordDetails/dtos/createDiscordDetails.dto.js +0 -4
- package/dist/src/domain/model/discordDetails/dtos/createDiscordDetails.dto.js.map +1 -1
- package/dist/src/domain/model/discordDetails/dtos/updateDiscordDetails.dto.js +0 -4
- package/dist/src/domain/model/discordDetails/dtos/updateDiscordDetails.dto.js.map +1 -1
- package/dist/src/domain/model/email/dtos/email.dto.js +0 -4
- package/dist/src/domain/model/email/dtos/email.dto.js.map +1 -1
- package/dist/src/domain/model/index.d.ts +6 -0
- package/dist/src/domain/model/index.js +6 -0
- package/dist/src/domain/model/index.js.map +1 -1
- package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.js +0 -4
- package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.js.map +1 -1
- package/dist/src/domain/model/paylink/dtos/createPaylink.dto.js +0 -4
- package/dist/src/domain/model/paylink/dtos/createPaylink.dto.js.map +1 -1
- package/dist/src/domain/model/paylink/dtos/updatePaylink.dto.js +0 -4
- package/dist/src/domain/model/paylink/dtos/updatePaylink.dto.js.map +1 -1
- package/dist/src/domain/model/paylink/entities/PaylinkStats.d.ts +5 -0
- package/dist/src/domain/model/paylink/entities/PaylinkStats.js +7 -0
- package/dist/src/domain/model/paylink/entities/PaylinkStats.js.map +1 -0
- package/dist/src/domain/model/paylink/entities/index.d.ts +1 -0
- package/dist/src/domain/model/paylink/entities/index.js +1 -0
- package/dist/src/domain/model/paylink/entities/index.js.map +1 -1
- package/dist/src/domain/model/paylink-tx/dtos/createPaylinkTx.dto.js +0 -4
- package/dist/src/domain/model/paylink-tx/dtos/createPaylinkTx.dto.js.map +1 -1
- package/dist/src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.js +0 -4
- package/dist/src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.js.map +1 -1
- package/dist/src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.d.ts +3 -0
- package/dist/src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.js.map +1 -1
- package/dist/src/domain/model/paystream/dtos/createPaystream.dto.d.ts +17 -0
- package/dist/src/domain/model/paystream/dtos/createPaystream.dto.js +91 -0
- package/dist/src/domain/model/paystream/dtos/createPaystream.dto.js.map +1 -0
- package/dist/src/domain/model/paystream/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/paystream/dtos/index.js +19 -0
- package/dist/src/domain/model/paystream/dtos/index.js.map +1 -0
- package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.d.ts +15 -0
- package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.js +80 -0
- package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.js.map +1 -0
- package/dist/src/domain/model/paystream/entities/BasePaystream.d.ts +7 -0
- package/dist/src/domain/model/paystream/entities/BasePaystream.js +8 -0
- package/dist/src/domain/model/paystream/entities/BasePaystream.js.map +1 -0
- package/dist/src/domain/model/paystream/entities/IntervalType.d.ts +9 -0
- package/dist/src/domain/model/paystream/entities/IntervalType.js +14 -0
- package/dist/src/domain/model/paystream/entities/IntervalType.js.map +1 -0
- package/dist/src/domain/model/paystream/entities/Paystream.d.ts +7 -0
- package/dist/src/domain/model/paystream/entities/Paystream.js +8 -0
- package/dist/src/domain/model/paystream/entities/Paystream.js.map +1 -0
- package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.d.ts +7 -0
- package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.js +8 -0
- package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.js.map +1 -0
- package/dist/src/domain/model/paystream/entities/index.d.ts +4 -0
- package/dist/src/domain/model/paystream/entities/index.js +21 -0
- package/dist/src/domain/model/paystream/entities/index.js.map +1 -0
- package/dist/src/domain/model/paystream/index.d.ts +2 -0
- package/dist/src/domain/model/paystream/index.js +19 -0
- package/dist/src/domain/model/paystream/index.js.map +1 -0
- package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.d.ts +10 -0
- package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.js +51 -0
- package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.js.map +1 -0
- package/dist/src/domain/model/paystream-tx/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/paystream-tx/dtos/index.js +19 -0
- package/dist/src/domain/model/paystream-tx/dtos/index.js.map +1 -0
- package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.d.ts +5 -0
- package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.js +29 -0
- package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.js.map +1 -0
- package/dist/src/domain/model/paystream-tx/entities/BasePaystreamTx.d.ts +10 -0
- package/dist/src/domain/model/paystream-tx/entities/BasePaystreamTx.js +8 -0
- package/dist/src/domain/model/paystream-tx/entities/BasePaystreamTx.js.map +1 -0
- package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.d.ts +7 -0
- package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.js +8 -0
- package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.js.map +1 -0
- package/dist/src/domain/model/paystream-tx/entities/index.d.ts +2 -0
- package/dist/src/domain/model/paystream-tx/entities/index.js +19 -0
- package/dist/src/domain/model/paystream-tx/entities/index.js.map +1 -0
- package/dist/src/domain/model/paystream-tx/index.d.ts +2 -0
- package/dist/src/domain/model/paystream-tx/index.js +19 -0
- package/dist/src/domain/model/paystream-tx/index.js.map +1 -0
- package/dist/src/domain/model/product/dtos/product.dto.js +0 -4
- package/dist/src/domain/model/product/dtos/product.dto.js.map +1 -1
- package/dist/src/domain/model/product-details/dtos/productDetails.dto.js +0 -4
- package/dist/src/domain/model/product-details/dtos/productDetails.dto.js.map +1 -1
- package/dist/src/domain/model/role/dtos/createRole.dto.js +0 -4
- package/dist/src/domain/model/role/dtos/createRole.dto.js.map +1 -1
- package/dist/src/domain/model/role/dtos/updateRole.dto.js +0 -4
- package/dist/src/domain/model/role/dtos/updateRole.dto.js.map +1 -1
- package/dist/src/domain/model/slug/dtos/slug.dto.js +0 -4
- package/dist/src/domain/model/slug/dtos/slug.dto.js.map +1 -1
- package/dist/src/domain/model/stream/dtos/cancelStream.dto.d.ts +8 -0
- package/dist/src/domain/model/stream/dtos/cancelStream.dto.js +46 -0
- package/dist/src/domain/model/stream/dtos/cancelStream.dto.js.map +1 -0
- package/dist/src/domain/model/stream/dtos/createStream.dto.d.ts +17 -0
- package/dist/src/domain/model/stream/dtos/createStream.dto.js +84 -0
- package/dist/src/domain/model/stream/dtos/createStream.dto.js.map +1 -0
- package/dist/src/domain/model/stream/dtos/index.d.ts +3 -0
- package/dist/src/domain/model/stream/dtos/index.js +20 -0
- package/dist/src/domain/model/stream/dtos/index.js.map +1 -0
- package/dist/src/domain/model/stream/dtos/withdrawStream.dto.d.ts +7 -0
- package/dist/src/domain/model/stream/dtos/withdrawStream.dto.js +41 -0
- package/dist/src/domain/model/stream/dtos/withdrawStream.dto.js.map +1 -0
- package/dist/src/domain/model/stream/index.d.ts +1 -0
- package/dist/src/domain/model/stream/index.js +18 -0
- package/dist/src/domain/model/stream/index.js.map +1 -0
- package/dist/src/domain/model/stream-event/dtos/createStreamEventDto.d.ts +4 -0
- package/dist/src/domain/model/stream-event/dtos/createStreamEventDto.js +26 -0
- package/dist/src/domain/model/stream-event/dtos/createStreamEventDto.js.map +1 -0
- package/dist/src/domain/model/stream-event/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/stream-event/dtos/index.js +19 -0
- package/dist/src/domain/model/stream-event/dtos/index.js.map +1 -0
- package/dist/src/domain/model/stream-event/dtos/updateStreamEventDto.d.ts +4 -0
- package/dist/src/domain/model/stream-event/dtos/updateStreamEventDto.js +26 -0
- package/dist/src/domain/model/stream-event/dtos/updateStreamEventDto.js.map +1 -0
- package/dist/src/domain/model/stream-event/entities/StreamEvent.d.ts +4 -0
- package/dist/src/domain/model/stream-event/entities/StreamEvent.js +7 -0
- package/dist/src/domain/model/stream-event/entities/StreamEvent.js.map +1 -0
- package/dist/src/domain/model/stream-event/entities/index.d.ts +1 -0
- package/dist/src/domain/model/stream-event/entities/index.js +18 -0
- package/dist/src/domain/model/stream-event/entities/index.js.map +1 -0
- package/dist/src/domain/model/stream-event/index.d.ts +2 -0
- package/dist/src/domain/model/stream-event/index.js +19 -0
- package/dist/src/domain/model/stream-event/index.js.map +1 -0
- package/dist/src/domain/model/stream-features/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/stream-features/dtos/index.js +18 -0
- package/dist/src/domain/model/stream-features/dtos/index.js.map +1 -0
- package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.d.ts +9 -0
- package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.js +52 -0
- package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.js.map +1 -0
- package/dist/src/domain/model/stream-features/entities/StreamFeatures.d.ts +3 -0
- package/dist/src/domain/model/stream-features/entities/StreamFeatures.js +8 -0
- package/dist/src/domain/model/stream-features/entities/StreamFeatures.js.map +1 -0
- package/dist/src/domain/model/stream-features/entities/index.d.ts +1 -0
- package/dist/src/domain/model/stream-features/entities/index.js +18 -0
- package/dist/src/domain/model/stream-features/entities/index.js.map +1 -0
- package/dist/src/domain/model/stream-features/index.d.ts +2 -0
- package/dist/src/domain/model/stream-features/index.js +19 -0
- package/dist/src/domain/model/stream-features/index.js.map +1 -0
- package/dist/src/domain/model/transaction-meta/dtos/createTransactionMeta.dto.js +0 -4
- package/dist/src/domain/model/transaction-meta/dtos/createTransactionMeta.dto.js.map +1 -1
- package/dist/src/domain/model/user/dtos/createUser.dto.js +0 -4
- package/dist/src/domain/model/user/dtos/createUser.dto.js.map +1 -1
- package/dist/src/domain/model/user/dtos/updateUser.dto.js +0 -4
- package/dist/src/domain/model/user/dtos/updateUser.dto.js.map +1 -1
- package/dist/src/domain/model/wallet/dtos/updateWallet.dto.js +0 -4
- package/dist/src/domain/model/wallet/dtos/updateWallet.dto.js.map +1 -1
- package/dist/src/domain/model/withdrawal/dtos/createWithdrawalDto.d.ts +6 -0
- package/dist/src/domain/model/withdrawal/dtos/createWithdrawalDto.js +35 -0
- package/dist/src/domain/model/withdrawal/dtos/createWithdrawalDto.js.map +1 -0
- package/dist/src/domain/model/withdrawal/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/withdrawal/dtos/index.js +19 -0
- package/dist/src/domain/model/withdrawal/dtos/index.js.map +1 -0
- package/dist/src/domain/model/withdrawal/dtos/updateWithdrawalDto.d.ts +3 -0
- package/dist/src/domain/model/withdrawal/dtos/updateWithdrawalDto.js +21 -0
- package/dist/src/domain/model/withdrawal/dtos/updateWithdrawalDto.js.map +1 -0
- package/dist/src/domain/model/withdrawal/entities/BaseWithdrawal.d.ts +4 -0
- package/dist/src/domain/model/withdrawal/entities/BaseWithdrawal.js +7 -0
- package/dist/src/domain/model/withdrawal/entities/BaseWithdrawal.js.map +1 -0
- package/dist/src/domain/model/withdrawal/entities/Withdrawal.d.ts +5 -0
- package/dist/src/domain/model/withdrawal/entities/Withdrawal.js +8 -0
- package/dist/src/domain/model/withdrawal/entities/Withdrawal.js.map +1 -0
- package/dist/src/domain/model/withdrawal/entities/index.d.ts +2 -0
- package/dist/src/domain/model/withdrawal/entities/index.js +19 -0
- package/dist/src/domain/model/withdrawal/entities/index.js.map +1 -0
- package/dist/src/domain/model/withdrawal/index.d.ts +2 -0
- package/dist/src/domain/model/withdrawal/index.js +19 -0
- package/dist/src/domain/model/withdrawal/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +5 -6
- package/dist/src/__tests__/index.test.d.ts +0 -0
- package/dist/src/__tests__/index.test.js +0 -6
- package/dist/src/__tests__/index.test.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/nest-cli.json +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShallowEnrichedPaymentRequest.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.ts"],"names":[],"mappings":";;;AACA,6DAA0D;AAM1D,MAAa,6BAA8B,SAAQ,uCAAkB;
|
|
1
|
+
{"version":3,"file":"ShallowEnrichedPaymentRequest.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.ts"],"names":[],"mappings":";;;AACA,6DAA0D;AAM1D,MAAa,6BAA8B,SAAQ,uCAAkB;CAgBpE;AAhBD,sEAgBC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StreamFeaturesDto } from '../../stream-features';
|
|
2
|
+
import { IntervalType } from '../entities';
|
|
3
|
+
export declare class CreatePaystreamDto extends StreamFeaturesDto {
|
|
4
|
+
company: string;
|
|
5
|
+
name: string;
|
|
6
|
+
wallet: string;
|
|
7
|
+
interval: IntervalType;
|
|
8
|
+
maxTime?: number;
|
|
9
|
+
notifySenderByEmail?: boolean;
|
|
10
|
+
notifyReceiverByEmail?: boolean;
|
|
11
|
+
description?: string;
|
|
12
|
+
imageUrl?: string;
|
|
13
|
+
normalizedPrice?: bigint;
|
|
14
|
+
currency?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
features?: StreamFeaturesDto;
|
|
17
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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.CreatePaystreamDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const stream_features_1 = require("../../stream-features");
|
|
16
|
+
const entities_1 = require("../entities");
|
|
17
|
+
class CreatePaystreamDto extends stream_features_1.StreamFeaturesDto {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.notifySenderByEmail = false;
|
|
21
|
+
this.notifyReceiverByEmail = false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreatePaystreamDto.prototype, "company", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreatePaystreamDto.prototype, "name", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreatePaystreamDto.prototype, "wallet", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsEnum)(entities_1.IntervalType),
|
|
41
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreatePaystreamDto.prototype, "interval", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
(0, class_validator_1.IsNumber)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], CreatePaystreamDto.prototype, "maxTime", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsBoolean)(),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], CreatePaystreamDto.prototype, "notifySenderByEmail", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsBoolean)(),
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
__metadata("design:type", Boolean)
|
|
58
|
+
], CreatePaystreamDto.prototype, "notifyReceiverByEmail", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CreatePaystreamDto.prototype, "description", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreatePaystreamDto.prototype, "imageUrl", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
__metadata("design:type", BigInt)
|
|
72
|
+
], CreatePaystreamDto.prototype, "normalizedPrice", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CreatePaystreamDto.prototype, "currency", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsBoolean)(),
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
__metadata("design:type", Boolean)
|
|
82
|
+
], CreatePaystreamDto.prototype, "disabled", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsString)(),
|
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
|
86
|
+
(0, class_transformer_1.Type)(() => stream_features_1.StreamFeaturesDto),
|
|
87
|
+
(0, class_validator_1.ValidateNested)(),
|
|
88
|
+
__metadata("design:type", stream_features_1.StreamFeaturesDto)
|
|
89
|
+
], CreatePaystreamDto.prototype, "features", void 0);
|
|
90
|
+
exports.CreatePaystreamDto = CreatePaystreamDto;
|
|
91
|
+
//# sourceMappingURL=createPaystream.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPaystream.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/dtos/createPaystream.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAyC;AACzC,2DAA0D;AAC1D,0CAA2C;AAE3C,MAAa,kBAAmB,SAAQ,mCAAiB;IAAzD;;QAuBE,wBAAmB,GAAa,KAAK,CAAC;QAItC,0BAAqB,GAAa,KAAK,CAAC;IA0B1C,CAAC;CAAA;AApDC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAEf;IAAC,IAAA,wBAAM,EAAC,uBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;oDACU;AAEvB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACM;AAEjB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACyB;AAEtC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iEAC2B;AAExC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACQ;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACK;AAElB;IAAC,IAAA,4BAAU,GAAE;;2DACY;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACK;AAElB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;8BACN,mCAAiB;oDAAC;AApD/B,gDAqDC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./createPaystream.dto"), exports);
|
|
18
|
+
__exportStar(require("./updatePaystream.dto"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StreamFeaturesDto } from '../../stream-features';
|
|
2
|
+
export declare class UpdatePaystreamDto extends StreamFeaturesDto {
|
|
3
|
+
company?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
maxTime?: number;
|
|
6
|
+
description?: string;
|
|
7
|
+
imageUrl?: string;
|
|
8
|
+
normalizedPrice?: bigint;
|
|
9
|
+
notifySenderByEmail?: boolean;
|
|
10
|
+
notifyReceiverByEmail?: boolean;
|
|
11
|
+
currency?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
wallet?: string;
|
|
14
|
+
features?: StreamFeaturesDto;
|
|
15
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.UpdatePaystreamDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const stream_features_1 = require("../../stream-features");
|
|
16
|
+
class UpdatePaystreamDto extends stream_features_1.StreamFeaturesDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UpdatePaystreamDto.prototype, "company", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], UpdatePaystreamDto.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsNumber)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], UpdatePaystreamDto.prototype, "maxTime", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpdatePaystreamDto.prototype, "description", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], UpdatePaystreamDto.prototype, "imageUrl", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", BigInt)
|
|
46
|
+
], UpdatePaystreamDto.prototype, "normalizedPrice", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsBoolean)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], UpdatePaystreamDto.prototype, "notifySenderByEmail", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsBoolean)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", Boolean)
|
|
56
|
+
], UpdatePaystreamDto.prototype, "notifyReceiverByEmail", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], UpdatePaystreamDto.prototype, "currency", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], UpdatePaystreamDto.prototype, "disabled", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], UpdatePaystreamDto.prototype, "wallet", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
(0, class_transformer_1.Type)(() => stream_features_1.StreamFeaturesDto),
|
|
76
|
+
(0, class_validator_1.ValidateNested)(),
|
|
77
|
+
__metadata("design:type", stream_features_1.StreamFeaturesDto)
|
|
78
|
+
], UpdatePaystreamDto.prototype, "features", void 0);
|
|
79
|
+
exports.UpdatePaystreamDto = UpdatePaystreamDto;
|
|
80
|
+
//# sourceMappingURL=updatePaystream.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePaystream.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/dtos/updatePaystream.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAyC;AACzC,2DAA0D;AAE1D,MAAa,kBAAmB,SAAQ,mCAAiB;CAiDxD;AAhDC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACG;AAEd;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACM;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACQ;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACK;AAElB;IAAC,IAAA,4BAAU,GAAE;;2DACY;AAEzB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACiB;AAE9B;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACK;AAElB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;8BACN,mCAAiB;oDAAC;AAhD/B,gDAiDC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BasePaystream = void 0;
|
|
4
|
+
const payment_request_1 = require("../../payment-request");
|
|
5
|
+
class BasePaystream extends payment_request_1.BasePaymentRequest {
|
|
6
|
+
}
|
|
7
|
+
exports.BasePaystream = BasePaystream;
|
|
8
|
+
//# sourceMappingURL=BasePaystream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasePaystream.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/BasePaystream.ts"],"names":[],"mappings":";;;AACA,2DAA2D;AAE3D,MAAa,aAAc,SAAQ,oCAAkB;CAMpD;AAND,sCAMC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntervalType = void 0;
|
|
4
|
+
var IntervalType;
|
|
5
|
+
(function (IntervalType) {
|
|
6
|
+
IntervalType["SECOND"] = "SECOND";
|
|
7
|
+
IntervalType["MINUTE"] = "MINUTE";
|
|
8
|
+
IntervalType["HOUR"] = "HOUR";
|
|
9
|
+
IntervalType["DAY"] = "DAY";
|
|
10
|
+
IntervalType["WEEK"] = "WEEK";
|
|
11
|
+
IntervalType["MONTH"] = "MONTH";
|
|
12
|
+
IntervalType["YEAR"] = "YEAR";
|
|
13
|
+
})(IntervalType = exports.IntervalType || (exports.IntervalType = {}));
|
|
14
|
+
//# sourceMappingURL=IntervalType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntervalType.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/IntervalType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Paystream = void 0;
|
|
4
|
+
const payment_request_1 = require("../../payment-request");
|
|
5
|
+
class Paystream extends payment_request_1.PaymentRequest {
|
|
6
|
+
}
|
|
7
|
+
exports.Paystream = Paystream;
|
|
8
|
+
//# sourceMappingURL=Paystream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paystream.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/Paystream.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AAGvD,MAAa,SAAU,SAAQ,gCAAc;CAM5C;AAND,8BAMC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ShallowEnrichedPaymentRequest } from '../../payment-request';
|
|
2
|
+
import type { StreamFeatures } from '../../stream-features';
|
|
3
|
+
export declare class ShallowEnrichedPaystream extends ShallowEnrichedPaymentRequest {
|
|
4
|
+
maxTime: number;
|
|
5
|
+
interval: string;
|
|
6
|
+
features: StreamFeatures;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShallowEnrichedPaystream = void 0;
|
|
4
|
+
const payment_request_1 = require("../../payment-request");
|
|
5
|
+
class ShallowEnrichedPaystream extends payment_request_1.ShallowEnrichedPaymentRequest {
|
|
6
|
+
}
|
|
7
|
+
exports.ShallowEnrichedPaystream = ShallowEnrichedPaystream;
|
|
8
|
+
//# sourceMappingURL=ShallowEnrichedPaystream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShallowEnrichedPaystream.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/ShallowEnrichedPaystream.ts"],"names":[],"mappings":";;;AAAA,2DAAsE;AAGtE,MAAa,wBAAyB,SAAQ,+CAA6B;CAM1E;AAND,4DAMC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./Paystream"), exports);
|
|
18
|
+
__exportStar(require("./BasePaystream"), exports);
|
|
19
|
+
__exportStar(require("./ShallowEnrichedPaystream"), exports);
|
|
20
|
+
__exportStar(require("./IntervalType"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC;AAChC,6DAA2C;AAC3C,iDAA+B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./dtos"), exports);
|
|
18
|
+
__exportStar(require("./entities"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/paystream/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateStreamEventDto } from '../../stream-event/dtos';
|
|
2
|
+
import { CreateTransactionMetaDto } from '../../transaction-meta';
|
|
3
|
+
export declare class CreatePaystreamTxDto {
|
|
4
|
+
meta: CreateTransactionMetaDto;
|
|
5
|
+
paystream: string;
|
|
6
|
+
paymentAccount: string;
|
|
7
|
+
startedAt: CreateStreamEventDto;
|
|
8
|
+
endedAt: bigint;
|
|
9
|
+
interval: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.CreatePaystreamTxDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const dtos_1 = require("../../stream-event/dtos");
|
|
16
|
+
const transaction_meta_1 = require("../../transaction-meta");
|
|
17
|
+
class CreatePaystreamTxDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, class_transformer_1.Type)(() => transaction_meta_1.CreateTransactionMetaDto),
|
|
22
|
+
(0, class_validator_1.ValidateNested)(),
|
|
23
|
+
__metadata("design:type", transaction_meta_1.CreateTransactionMetaDto)
|
|
24
|
+
], CreatePaystreamTxDto.prototype, "meta", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreatePaystreamTxDto.prototype, "paystream", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreatePaystreamTxDto.prototype, "paymentAccount", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
(0, class_transformer_1.Type)(() => dtos_1.CreateStreamEventDto),
|
|
38
|
+
(0, class_validator_1.ValidateNested)(),
|
|
39
|
+
__metadata("design:type", dtos_1.CreateStreamEventDto)
|
|
40
|
+
], CreatePaystreamTxDto.prototype, "startedAt", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
__metadata("design:type", BigInt)
|
|
44
|
+
], CreatePaystreamTxDto.prototype, "endedAt", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsNumber)(),
|
|
47
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], CreatePaystreamTxDto.prototype, "interval", void 0);
|
|
50
|
+
exports.CreatePaystreamTxDto = CreatePaystreamTxDto;
|
|
51
|
+
//# sourceMappingURL=createPaystreamTxDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPaystreamTxDto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/dtos/createPaystreamTxDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAKyB;AACzB,kDAA+D;AAC/D,6DAAkE;AAElE,MAAa,oBAAoB;CAyBhC;AAxBC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2CAAwB,CAAC;IACpC,IAAA,gCAAc,GAAE;8BACX,2CAAwB;kDAAC;AAE/B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAoB,CAAC;IAChC,IAAA,gCAAc,GAAE;8BACN,2BAAoB;uDAAC;AAEhC;IAAC,IAAA,4BAAU,GAAE;;qDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACI;AAxBnB,oDAyBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./createPaystreamTxDto"), exports);
|
|
18
|
+
__exportStar(require("./updatePaystreamTxDto"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.UpdatePaystreamTxDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const dtos_1 = require("../../stream-event/dtos");
|
|
16
|
+
class UpdatePaystreamTxDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_transformer_1.Type)(() => dtos_1.CreateStreamEventDto),
|
|
21
|
+
(0, class_validator_1.ValidateNested)(),
|
|
22
|
+
__metadata("design:type", dtos_1.CreateStreamEventDto)
|
|
23
|
+
], UpdatePaystreamTxDto.prototype, "canceledAt", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", BigInt)
|
|
27
|
+
], UpdatePaystreamTxDto.prototype, "endedAt", void 0);
|
|
28
|
+
exports.UpdatePaystreamTxDto = UpdatePaystreamTxDto;
|
|
29
|
+
//# sourceMappingURL=updatePaystreamTxDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePaystreamTxDto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA6D;AAC7D,kDAA+D;AAE/D,MAAa,oBAAoB;CAQhC;AAPC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAoB,CAAC;IAChC,IAAA,gCAAc,GAAE;8BACJ,2BAAoB;wDAAC;AAElC;IAAC,IAAA,4BAAU,GAAE;;qDACI;AAPnB,oDAQC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Entity } from '../../entity';
|
|
2
|
+
import { StreamEvent } from '../../stream-event/entities';
|
|
3
|
+
export declare class BasePaystreamTx extends Entity {
|
|
4
|
+
id: string;
|
|
5
|
+
paymentAcount: string;
|
|
6
|
+
startedAt: StreamEvent;
|
|
7
|
+
canceledAt: StreamEvent;
|
|
8
|
+
endedAt: bigint;
|
|
9
|
+
interval: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BasePaystreamTx = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class BasePaystreamTx extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.BasePaystreamTx = BasePaystreamTx;
|
|
8
|
+
//# sourceMappingURL=BasePaystreamTx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasePaystreamTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/entities/BasePaystreamTx.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,eAAgB,SAAQ,eAAM;CAY1C;AAZD,0CAYC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paystream } from '../../paystream';
|
|
2
|
+
import { BasePaystreamTx } from './BasePaystreamTx';
|
|
3
|
+
import { Withdrawal } from '../../withdrawal/entities';
|
|
4
|
+
export declare class PaystreamTx extends BasePaystreamTx {
|
|
5
|
+
paystream: Paystream;
|
|
6
|
+
withdrawals: Withdrawal[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaystreamTx = void 0;
|
|
4
|
+
const BasePaystreamTx_1 = require("./BasePaystreamTx");
|
|
5
|
+
class PaystreamTx extends BasePaystreamTx_1.BasePaystreamTx {
|
|
6
|
+
}
|
|
7
|
+
exports.PaystreamTx = PaystreamTx;
|
|
8
|
+
//# sourceMappingURL=PaystreamTx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaystreamTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/entities/PaystreamTx.ts"],"names":[],"mappings":";;;AACA,uDAAoD;AAGpD,MAAa,WAAY,SAAQ,iCAAe;CAI/C;AAJD,kCAIC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./PaystreamTx"), exports);
|
|
18
|
+
__exportStar(require("./BasePaystreamTx"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paystream-tx/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC"}
|