@heliofi/common 0.1.63 → 0.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/domain/model/index.d.ts +2 -0
- package/dist/src/domain/model/index.js +2 -0
- package/dist/src/domain/model/index.js.map +1 -1
- package/dist/src/domain/model/paylink/entities/OnlyContentAndTransactionPaylink.d.ts +6 -0
- package/dist/src/domain/model/paylink/entities/OnlyContentAndTransactionPaylink.js +8 -0
- package/dist/src/domain/model/paylink/entities/OnlyContentAndTransactionPaylink.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/stream-backend/dtos/cancelStreamBackend.dto.d.ts +7 -0
- package/dist/src/domain/model/stream-backend/dtos/cancelStreamBackend.dto.js +43 -0
- package/dist/src/domain/model/stream-backend/dtos/cancelStreamBackend.dto.js.map +1 -0
- package/dist/src/domain/model/stream-backend/dtos/createStreamBackend.dto.d.ts +16 -0
- package/dist/src/domain/model/stream-backend/dtos/createStreamBackend.dto.js +82 -0
- package/dist/src/domain/model/stream-backend/dtos/createStreamBackend.dto.js.map +1 -0
- package/dist/src/domain/model/stream-backend/dtos/index.d.ts +3 -0
- package/dist/src/domain/model/stream-backend/dtos/index.js +20 -0
- package/dist/src/domain/model/stream-backend/dtos/index.js.map +1 -0
- package/dist/src/domain/model/stream-backend/dtos/withdrawStreamBackend.dto.d.ts +6 -0
- package/dist/src/domain/model/stream-backend/dtos/withdrawStreamBackend.dto.js +38 -0
- package/dist/src/domain/model/stream-backend/dtos/withdrawStreamBackend.dto.js.map +1 -0
- package/dist/src/domain/model/stream-backend/index.d.ts +1 -0
- package/dist/src/domain/model/stream-backend/index.js +18 -0
- package/dist/src/domain/model/stream-backend/index.js.map +1 -0
- package/dist/src/domain/model/submit-transaction/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/submit-transaction/dtos/index.js +6 -0
- package/dist/src/domain/model/submit-transaction/dtos/index.js.map +1 -0
- package/dist/src/domain/model/submit-transaction/dtos/submitTransaction.dto.d.ts +14 -0
- package/dist/src/domain/model/submit-transaction/dtos/submitTransaction.dto.js +74 -0
- package/dist/src/domain/model/submit-transaction/dtos/submitTransaction.dto.js.map +1 -0
- package/dist/src/domain/model/submit-transaction/index.d.ts +1 -0
- package/dist/src/domain/model/submit-transaction/index.js +18 -0
- package/dist/src/domain/model/submit-transaction/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -3
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -30,6 +30,8 @@ export * from './stream-features';
|
|
|
30
30
|
export * from './withdrawal';
|
|
31
31
|
export * from './report';
|
|
32
32
|
export * from './breakpoint';
|
|
33
|
+
export * from './submit-transaction';
|
|
34
|
+
export * from './stream-backend';
|
|
33
35
|
export * from './metrics';
|
|
34
36
|
export * from './split-wallets';
|
|
35
37
|
export * from './split-account';
|
|
@@ -46,6 +46,8 @@ __exportStar(require("./stream-features"), exports);
|
|
|
46
46
|
__exportStar(require("./withdrawal"), exports);
|
|
47
47
|
__exportStar(require("./report"), exports);
|
|
48
48
|
__exportStar(require("./breakpoint"), exports);
|
|
49
|
+
__exportStar(require("./submit-transaction"), exports);
|
|
50
|
+
__exportStar(require("./stream-backend"), exports);
|
|
49
51
|
__exportStar(require("./metrics"), exports);
|
|
50
52
|
__exportStar(require("./split-wallets"), exports);
|
|
51
53
|
__exportStar(require("./split-account"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OnlyContentAndTransactionPaylink = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class OnlyContentAndTransactionPaylink extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.OnlyContentAndTransactionPaylink = OnlyContentAndTransactionPaylink;
|
|
8
|
+
//# sourceMappingURL=OnlyContentAndTransactionPaylink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OnlyContentAndTransactionPaylink.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink/entities/OnlyContentAndTransactionPaylink.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,gCAAiC,SAAQ,eAAM;CAG3D;AAHD,4EAGC"}
|
|
@@ -19,4 +19,5 @@ __exportStar(require("./BasePaylink"), exports);
|
|
|
19
19
|
__exportStar(require("./ShallowEnrichedPaylink"), exports);
|
|
20
20
|
__exportStar(require("./OnlyContentPaylink"), exports);
|
|
21
21
|
__exportStar(require("./PaylinkStats"), exports);
|
|
22
|
+
__exportStar(require("./OnlyContentAndTransactionPaylink"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,2DAAyC;AACzC,uDAAqC;AACrC,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,2DAAyC;AACzC,uDAAqC;AACrC,iDAA+B;AAC/B,qEAAmD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.CancelStreamBackendDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class CancelStreamBackendDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CancelStreamBackendDto.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CancelStreamBackendDto.prototype, "signedTransaction", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CancelStreamBackendDto.prototype, "paymentRequestId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CancelStreamBackendDto.prototype, "canceledAt", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CancelStreamBackendDto.prototype, "paymentAccount", void 0);
|
|
42
|
+
exports.CancelStreamBackendDto = CancelStreamBackendDto;
|
|
43
|
+
//# sourceMappingURL=cancelStreamBackend.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancelStreamBackend.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/stream-backend/dtos/cancelStreamBackend.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yDAA8C;AAE9C,MAAa,sBAAsB;CAoBlC;AAnBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACF;AAEX;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACa;AAE1B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACY;AAEzB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;0DACrB;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACU;AAnBzB,wDAoBC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomerDetailsDto } from '../../customer-details';
|
|
2
|
+
import { ProductDetailsDto } from '../../product-details';
|
|
3
|
+
export declare class CreateStreamBackendDto {
|
|
4
|
+
signedTransaction: string;
|
|
5
|
+
paymentRequestId: string;
|
|
6
|
+
sender: string;
|
|
7
|
+
recipient: string;
|
|
8
|
+
amount: string;
|
|
9
|
+
currency: string;
|
|
10
|
+
startedAt: string;
|
|
11
|
+
endedAt: string;
|
|
12
|
+
interval: number;
|
|
13
|
+
paymentAccount: string;
|
|
14
|
+
customerDetails: CustomerDetailsDto;
|
|
15
|
+
productDetails: ProductDetailsDto;
|
|
16
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.CreateStreamBackendDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const customer_details_1 = require("../../customer-details");
|
|
16
|
+
const product_details_1 = require("../../product-details");
|
|
17
|
+
class CreateStreamBackendDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateStreamBackendDto.prototype, "signedTransaction", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateStreamBackendDto.prototype, "paymentRequestId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateStreamBackendDto.prototype, "sender", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateStreamBackendDto.prototype, "recipient", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateStreamBackendDto.prototype, "amount", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateStreamBackendDto.prototype, "currency", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateStreamBackendDto.prototype, "startedAt", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CreateStreamBackendDto.prototype, "endedAt", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsNumber)(),
|
|
61
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], CreateStreamBackendDto.prototype, "interval", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateStreamBackendDto.prototype, "paymentAccount", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_transformer_1.Type)(() => customer_details_1.CustomerDetailsDto),
|
|
72
|
+
(0, class_validator_1.ValidateNested)(),
|
|
73
|
+
__metadata("design:type", customer_details_1.CustomerDetailsDto)
|
|
74
|
+
], CreateStreamBackendDto.prototype, "customerDetails", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
|
|
78
|
+
(0, class_validator_1.ValidateNested)(),
|
|
79
|
+
__metadata("design:type", product_details_1.ProductDetailsDto)
|
|
80
|
+
], CreateStreamBackendDto.prototype, "productDetails", void 0);
|
|
81
|
+
exports.CreateStreamBackendDto = CreateStreamBackendDto;
|
|
82
|
+
//# sourceMappingURL=createStreamBackend.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStreamBackend.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/stream-backend/dtos/createStreamBackend.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAoD;AACpD,6DAA4D;AAC5D,2DAA0D;AAE1D,MAAa,sBAAsB;CAkDlC;AAjDC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACa;AAE1B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACY;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACK;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;sDACzB;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;yDACtB;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;uDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACU;AAEvB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;8BACA,qCAAkB;+DAAC;AAEpC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;8BACD,mCAAiB;8DAAC;AAjDpC,wDAkDC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./createStreamBackend.dto"), exports);
|
|
18
|
+
__exportStar(require("./cancelStreamBackend.dto"), exports);
|
|
19
|
+
__exportStar(require("./withdrawStreamBackend.dto"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/stream-backend/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,4DAA0C;AAC1C,8DAA4C"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.WithdrawStreamBackendDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class WithdrawStreamBackendDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], WithdrawStreamBackendDto.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], WithdrawStreamBackendDto.prototype, "signedTransaction", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], WithdrawStreamBackendDto.prototype, "time", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], WithdrawStreamBackendDto.prototype, "paymentAccount", void 0);
|
|
37
|
+
exports.WithdrawStreamBackendDto = WithdrawStreamBackendDto;
|
|
38
|
+
//# sourceMappingURL=withdrawStreamBackend.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdrawStreamBackend.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/stream-backend/dtos/withdrawStreamBackend.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yDAA8C;AAE9C,MAAa,wBAAwB;CAgBpC;AAfC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACF;AAEX;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mEACa;AAE1B;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;sDAC3B;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACU;AAfzB,4DAgBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dtos';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dtos"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/stream-backend/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SubmitTransactionDto } from './submitTransaction.dto';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubmitTransactionDto = void 0;
|
|
4
|
+
var submitTransaction_dto_1 = require("./submitTransaction.dto");
|
|
5
|
+
Object.defineProperty(exports, "SubmitTransactionDto", { enumerable: true, get: function () { return submitTransaction_dto_1.SubmitTransactionDto; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/submit-transaction/dtos/index.ts"],"names":[],"mappings":";;;AAAA,iEAA+D;AAAtD,6HAAA,oBAAoB,OAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CustomerDetailsDto } from '../../customer-details';
|
|
2
|
+
import { ProductDetailsDto } from '../../product-details';
|
|
3
|
+
export declare class SubmitTransactionDto {
|
|
4
|
+
signedTransaction: string;
|
|
5
|
+
paymentRequestId: string;
|
|
6
|
+
sender: string;
|
|
7
|
+
recipient: string;
|
|
8
|
+
amount: string;
|
|
9
|
+
quantity: number;
|
|
10
|
+
currency: string;
|
|
11
|
+
time?: string;
|
|
12
|
+
customerDetails?: CustomerDetailsDto;
|
|
13
|
+
productDetails?: ProductDetailsDto;
|
|
14
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.SubmitTransactionDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const customer_details_1 = require("../../customer-details");
|
|
16
|
+
const product_details_1 = require("../../product-details");
|
|
17
|
+
class SubmitTransactionDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SubmitTransactionDto.prototype, "signedTransaction", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], SubmitTransactionDto.prototype, "paymentRequestId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SubmitTransactionDto.prototype, "sender", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SubmitTransactionDto.prototype, "recipient", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], SubmitTransactionDto.prototype, "amount", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsNumber)(),
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], SubmitTransactionDto.prototype, "quantity", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], SubmitTransactionDto.prototype, "currency", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], SubmitTransactionDto.prototype, "time", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Type)(() => customer_details_1.CustomerDetailsDto),
|
|
62
|
+
(0, class_validator_1.ValidateNested)(),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", customer_details_1.CustomerDetailsDto)
|
|
65
|
+
], SubmitTransactionDto.prototype, "customerDetails", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsNotEmptyObject)(),
|
|
68
|
+
(0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
|
|
69
|
+
(0, class_validator_1.ValidateNested)(),
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
__metadata("design:type", product_details_1.ProductDetailsDto)
|
|
72
|
+
], SubmitTransactionDto.prototype, "productDetails", void 0);
|
|
73
|
+
exports.SubmitTransactionDto = SubmitTransactionDto;
|
|
74
|
+
//# sourceMappingURL=submitTransaction.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/submit-transaction/dtos/submitTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAoD;AACpD,6DAA4D;AAC5D,2DAA0D;AAE1D,MAAa,oBAAoB;CA4ChC;AA3CC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACa;AAE1B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACY;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;oDACzB;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;kDACC;AAEd;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;6DAAC;AAErC;IAAC,IAAA,kCAAgB,GAAE;IAClB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;4DAAC;AA3CrC,oDA4CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dtos';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dtos"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/submit-transaction/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
|