@heliofi/common 0.1.3 → 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.
Files changed (139) hide show
  1. package/dist/src/domain/constants/emailValidation.d.ts +1 -0
  2. package/dist/src/domain/constants/emailValidation.js +5 -0
  3. package/dist/src/domain/constants/emailValidation.js.map +1 -0
  4. package/dist/src/domain/constants/index.d.ts +2 -1
  5. package/dist/src/domain/constants/index.js +16 -2
  6. package/dist/src/domain/constants/index.js.map +1 -1
  7. package/dist/src/domain/constants/orderDirection.d.ts +6 -0
  8. package/dist/src/domain/constants/orderDirection.js +17 -0
  9. package/dist/src/domain/constants/orderDirection.js.map +1 -0
  10. package/dist/src/domain/model/index.d.ts +6 -0
  11. package/dist/src/domain/model/index.js +6 -0
  12. package/dist/src/domain/model/index.js.map +1 -1
  13. package/dist/src/domain/model/paylink/entities/PaylinkStats.d.ts +5 -0
  14. package/dist/src/domain/model/paylink/entities/PaylinkStats.js +7 -0
  15. package/dist/src/domain/model/paylink/entities/PaylinkStats.js.map +1 -0
  16. package/dist/src/domain/model/paylink/entities/index.d.ts +1 -0
  17. package/dist/src/domain/model/paylink/entities/index.js +1 -0
  18. package/dist/src/domain/model/paylink/entities/index.js.map +1 -1
  19. package/dist/src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.d.ts +3 -0
  20. package/dist/src/domain/model/payment-request/entities/ShallowEnrichedPaymentRequest.js.map +1 -1
  21. package/dist/src/domain/model/paystream/dtos/createPaystream.dto.d.ts +17 -0
  22. package/dist/src/domain/model/paystream/dtos/createPaystream.dto.js +91 -0
  23. package/dist/src/domain/model/paystream/dtos/createPaystream.dto.js.map +1 -0
  24. package/dist/src/domain/model/paystream/dtos/index.d.ts +2 -0
  25. package/dist/src/domain/model/paystream/dtos/index.js +19 -0
  26. package/dist/src/domain/model/paystream/dtos/index.js.map +1 -0
  27. package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.d.ts +15 -0
  28. package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.js +80 -0
  29. package/dist/src/domain/model/paystream/dtos/updatePaystream.dto.js.map +1 -0
  30. package/dist/src/domain/model/paystream/entities/BasePaystream.d.ts +7 -0
  31. package/dist/src/domain/model/paystream/entities/BasePaystream.js +8 -0
  32. package/dist/src/domain/model/paystream/entities/BasePaystream.js.map +1 -0
  33. package/dist/src/domain/model/paystream/entities/IntervalType.d.ts +9 -0
  34. package/dist/src/domain/model/paystream/entities/IntervalType.js +14 -0
  35. package/dist/src/domain/model/paystream/entities/IntervalType.js.map +1 -0
  36. package/dist/src/domain/model/paystream/entities/Paystream.d.ts +7 -0
  37. package/dist/src/domain/model/paystream/entities/Paystream.js +8 -0
  38. package/dist/src/domain/model/paystream/entities/Paystream.js.map +1 -0
  39. package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.d.ts +7 -0
  40. package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.js +8 -0
  41. package/dist/src/domain/model/paystream/entities/ShallowEnrichedPaystream.js.map +1 -0
  42. package/dist/src/domain/model/paystream/entities/index.d.ts +4 -0
  43. package/dist/src/domain/model/paystream/entities/index.js +21 -0
  44. package/dist/src/domain/model/paystream/entities/index.js.map +1 -0
  45. package/dist/src/domain/model/paystream/index.d.ts +2 -0
  46. package/dist/src/domain/model/paystream/index.js +19 -0
  47. package/dist/src/domain/model/paystream/index.js.map +1 -0
  48. package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.d.ts +10 -0
  49. package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.js +51 -0
  50. package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTxDto.js.map +1 -0
  51. package/dist/src/domain/model/paystream-tx/dtos/index.d.ts +2 -0
  52. package/dist/src/domain/model/paystream-tx/dtos/index.js +19 -0
  53. package/dist/src/domain/model/paystream-tx/dtos/index.js.map +1 -0
  54. package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.d.ts +5 -0
  55. package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.js +29 -0
  56. package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTxDto.js.map +1 -0
  57. package/dist/src/domain/model/paystream-tx/entities/BasePaystreamTx.d.ts +10 -0
  58. package/dist/src/domain/model/paystream-tx/entities/BasePaystreamTx.js +8 -0
  59. package/dist/src/domain/model/paystream-tx/entities/BasePaystreamTx.js.map +1 -0
  60. package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.d.ts +7 -0
  61. package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.js +8 -0
  62. package/dist/src/domain/model/paystream-tx/entities/PaystreamTx.js.map +1 -0
  63. package/dist/src/domain/model/paystream-tx/entities/index.d.ts +2 -0
  64. package/dist/src/domain/model/paystream-tx/entities/index.js +19 -0
  65. package/dist/src/domain/model/paystream-tx/entities/index.js.map +1 -0
  66. package/dist/src/domain/model/paystream-tx/index.d.ts +2 -0
  67. package/dist/src/domain/model/paystream-tx/index.js +19 -0
  68. package/dist/src/domain/model/paystream-tx/index.js.map +1 -0
  69. package/dist/src/domain/model/stream/dtos/cancelStream.dto.d.ts +8 -0
  70. package/dist/src/domain/model/stream/dtos/cancelStream.dto.js +46 -0
  71. package/dist/src/domain/model/stream/dtos/cancelStream.dto.js.map +1 -0
  72. package/dist/src/domain/model/stream/dtos/createStream.dto.d.ts +17 -0
  73. package/dist/src/domain/model/stream/dtos/createStream.dto.js +84 -0
  74. package/dist/src/domain/model/stream/dtos/createStream.dto.js.map +1 -0
  75. package/dist/src/domain/model/stream/dtos/index.d.ts +3 -0
  76. package/dist/src/domain/model/stream/dtos/index.js +20 -0
  77. package/dist/src/domain/model/stream/dtos/index.js.map +1 -0
  78. package/dist/src/domain/model/stream/dtos/withdrawStream.dto.d.ts +7 -0
  79. package/dist/src/domain/model/stream/dtos/withdrawStream.dto.js +41 -0
  80. package/dist/src/domain/model/stream/dtos/withdrawStream.dto.js.map +1 -0
  81. package/dist/src/domain/model/stream/index.d.ts +1 -0
  82. package/dist/src/domain/model/stream/index.js +18 -0
  83. package/dist/src/domain/model/stream/index.js.map +1 -0
  84. package/dist/src/domain/model/stream-event/dtos/createStreamEventDto.d.ts +4 -0
  85. package/dist/src/domain/model/stream-event/dtos/createStreamEventDto.js +26 -0
  86. package/dist/src/domain/model/stream-event/dtos/createStreamEventDto.js.map +1 -0
  87. package/dist/src/domain/model/stream-event/dtos/index.d.ts +2 -0
  88. package/dist/src/domain/model/stream-event/dtos/index.js +19 -0
  89. package/dist/src/domain/model/stream-event/dtos/index.js.map +1 -0
  90. package/dist/src/domain/model/stream-event/dtos/updateStreamEventDto.d.ts +4 -0
  91. package/dist/src/domain/model/stream-event/dtos/updateStreamEventDto.js +26 -0
  92. package/dist/src/domain/model/stream-event/dtos/updateStreamEventDto.js.map +1 -0
  93. package/dist/src/domain/model/stream-event/entities/StreamEvent.d.ts +4 -0
  94. package/dist/src/domain/model/stream-event/entities/StreamEvent.js +7 -0
  95. package/dist/src/domain/model/stream-event/entities/StreamEvent.js.map +1 -0
  96. package/dist/src/domain/model/stream-event/entities/index.d.ts +1 -0
  97. package/dist/src/domain/model/stream-event/entities/index.js +18 -0
  98. package/dist/src/domain/model/stream-event/entities/index.js.map +1 -0
  99. package/dist/src/domain/model/stream-event/index.d.ts +2 -0
  100. package/dist/src/domain/model/stream-event/index.js +19 -0
  101. package/dist/src/domain/model/stream-event/index.js.map +1 -0
  102. package/dist/src/domain/model/stream-features/dtos/index.d.ts +1 -0
  103. package/dist/src/domain/model/stream-features/dtos/index.js +18 -0
  104. package/dist/src/domain/model/stream-features/dtos/index.js.map +1 -0
  105. package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.d.ts +9 -0
  106. package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.js +52 -0
  107. package/dist/src/domain/model/stream-features/dtos/streamFeaturesDto.js.map +1 -0
  108. package/dist/src/domain/model/stream-features/entities/StreamFeatures.d.ts +3 -0
  109. package/dist/src/domain/model/stream-features/entities/StreamFeatures.js +8 -0
  110. package/dist/src/domain/model/stream-features/entities/StreamFeatures.js.map +1 -0
  111. package/dist/src/domain/model/stream-features/entities/index.d.ts +1 -0
  112. package/dist/src/domain/model/stream-features/entities/index.js +18 -0
  113. package/dist/src/domain/model/stream-features/entities/index.js.map +1 -0
  114. package/dist/src/domain/model/stream-features/index.d.ts +2 -0
  115. package/dist/src/domain/model/stream-features/index.js +19 -0
  116. package/dist/src/domain/model/stream-features/index.js.map +1 -0
  117. package/dist/src/domain/model/withdrawal/dtos/createWithdrawalDto.d.ts +6 -0
  118. package/dist/src/domain/model/withdrawal/dtos/createWithdrawalDto.js +35 -0
  119. package/dist/src/domain/model/withdrawal/dtos/createWithdrawalDto.js.map +1 -0
  120. package/dist/src/domain/model/withdrawal/dtos/index.d.ts +2 -0
  121. package/dist/src/domain/model/withdrawal/dtos/index.js +19 -0
  122. package/dist/src/domain/model/withdrawal/dtos/index.js.map +1 -0
  123. package/dist/src/domain/model/withdrawal/dtos/updateWithdrawalDto.d.ts +3 -0
  124. package/dist/src/domain/model/withdrawal/dtos/updateWithdrawalDto.js +21 -0
  125. package/dist/src/domain/model/withdrawal/dtos/updateWithdrawalDto.js.map +1 -0
  126. package/dist/src/domain/model/withdrawal/entities/BaseWithdrawal.d.ts +4 -0
  127. package/dist/src/domain/model/withdrawal/entities/BaseWithdrawal.js +7 -0
  128. package/dist/src/domain/model/withdrawal/entities/BaseWithdrawal.js.map +1 -0
  129. package/dist/src/domain/model/withdrawal/entities/Withdrawal.d.ts +5 -0
  130. package/dist/src/domain/model/withdrawal/entities/Withdrawal.js +8 -0
  131. package/dist/src/domain/model/withdrawal/entities/Withdrawal.js.map +1 -0
  132. package/dist/src/domain/model/withdrawal/entities/index.d.ts +2 -0
  133. package/dist/src/domain/model/withdrawal/entities/index.js +19 -0
  134. package/dist/src/domain/model/withdrawal/entities/index.js.map +1 -0
  135. package/dist/src/domain/model/withdrawal/index.d.ts +2 -0
  136. package/dist/src/domain/model/withdrawal/index.js +19 -0
  137. package/dist/src/domain/model/withdrawal/index.js.map +1 -0
  138. package/dist/tsconfig.tsbuildinfo +1 -1
  139. package/package.json +3 -4
@@ -0,0 +1 @@
1
+ export declare const emailValidationRegExp: RegExp;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emailValidationRegExp = void 0;
4
+ exports.emailValidationRegExp = /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/;
5
+ //# sourceMappingURL=emailValidation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emailValidation.js","sourceRoot":"","sources":["../../../../src/domain/constants/emailValidation.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAChC,6CAA6C,CAAC"}
@@ -1 +1,2 @@
1
- export declare const emailValidationRegExp: RegExp;
1
+ export * from './emailValidation';
2
+ export * from './orderDirection';
@@ -1,5 +1,19 @@
1
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
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.emailValidationRegExp = void 0;
4
- exports.emailValidationRegExp = /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/;
17
+ __exportStar(require("./emailValidation"), exports);
18
+ __exportStar(require("./orderDirection"), exports);
5
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAChC,6CAA6C,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC"}
@@ -0,0 +1,6 @@
1
+ export declare enum OrderDirection {
2
+ ASC = "ASC",
3
+ DESC = "DESC"
4
+ }
5
+ export declare function isValidOrderDirection(value: string): value is OrderDirection;
6
+ export declare const orderDirectionAggregationMap: Map<OrderDirection, 1 | -1>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.orderDirectionAggregationMap = exports.isValidOrderDirection = exports.OrderDirection = void 0;
4
+ var OrderDirection;
5
+ (function (OrderDirection) {
6
+ OrderDirection["ASC"] = "ASC";
7
+ OrderDirection["DESC"] = "DESC";
8
+ })(OrderDirection = exports.OrderDirection || (exports.OrderDirection = {}));
9
+ function isValidOrderDirection(value) {
10
+ return value === OrderDirection.ASC || value === OrderDirection.DESC;
11
+ }
12
+ exports.isValidOrderDirection = isValidOrderDirection;
13
+ exports.orderDirectionAggregationMap = new Map([
14
+ [OrderDirection.ASC, 1],
15
+ [OrderDirection.DESC, -1],
16
+ ]);
17
+ //# sourceMappingURL=orderDirection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orderDirection.js","sourceRoot":"","sources":["../../../../src/domain/constants/orderDirection.ts"],"names":[],"mappings":";;;AACA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAED,SAAgB,qBAAqB,CAAC,KAAa;IACjD,OAAO,KAAK,KAAK,cAAc,CAAC,GAAG,IAAI,KAAK,KAAK,cAAc,CAAC,IAAI,CAAC;AACvE,CAAC;AAFD,sDAEC;AAEY,QAAA,4BAA4B,GAAG,IAAI,GAAG,CAAyB;IAC1E,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC;IACvB,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;CAC1B,CAAC,CAAC"}
@@ -21,3 +21,9 @@ export * from './auth';
21
21
  export * from './approve-transaction';
22
22
  export * from './product';
23
23
  export * from './product-details';
24
+ export * from './paystream';
25
+ export * from './paystream-tx';
26
+ export * from './stream';
27
+ export * from './stream-event';
28
+ export * from './stream-features';
29
+ export * from './withdrawal';
@@ -37,4 +37,10 @@ __exportStar(require("./auth"), exports);
37
37
  __exportStar(require("./approve-transaction"), exports);
38
38
  __exportStar(require("./product"), exports);
39
39
  __exportStar(require("./product-details"), exports);
40
+ __exportStar(require("./paystream"), exports);
41
+ __exportStar(require("./paystream-tx"), exports);
42
+ __exportStar(require("./stream"), exports);
43
+ __exportStar(require("./stream-event"), exports);
44
+ __exportStar(require("./stream-features"), exports);
45
+ __exportStar(require("./withdrawal"), exports);
40
46
  //# sourceMappingURL=index.js.map
@@ -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,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,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"}
@@ -0,0 +1,5 @@
1
+ export declare class PaylinkStats {
2
+ currency: string;
3
+ volume: number;
4
+ sales: number;
5
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaylinkStats = void 0;
4
+ class PaylinkStats {
5
+ }
6
+ exports.PaylinkStats = PaylinkStats;
7
+ //# sourceMappingURL=PaylinkStats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaylinkStats.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink/entities/PaylinkStats.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;CAMxB;AAND,oCAMC"}
@@ -2,3 +2,4 @@ export * from './Paylink';
2
2
  export * from './BasePaylink';
3
3
  export * from './ShallowEnrichedPaylink';
4
4
  export * from './OnlyContentPaylink';
5
+ export * from './PaylinkStats';
@@ -18,4 +18,5 @@ __exportStar(require("./Paylink"), exports);
18
18
  __exportStar(require("./BasePaylink"), exports);
19
19
  __exportStar(require("./ShallowEnrichedPaylink"), exports);
20
20
  __exportStar(require("./OnlyContentPaylink"), exports);
21
+ __exportStar(require("./PaylinkStats"), exports);
21
22
  //# 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"}
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"}
@@ -10,4 +10,7 @@ export declare class ShallowEnrichedPaymentRequest extends BasePaymentRequest {
10
10
  currency: BaseCurrency;
11
11
  wallet: BaseWallet;
12
12
  product: Product;
13
+ slug: string;
14
+ volume: number;
15
+ sales: number;
13
16
  }
@@ -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;CAUpE;AAVD,sEAUC"}
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,2 @@
1
+ export * from './createPaystream.dto';
2
+ export * from './updatePaystream.dto';
@@ -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,7 @@
1
+ import type { StreamFeatures } from '../../stream-features';
2
+ import { BasePaymentRequest } from '../../payment-request';
3
+ export declare class BasePaystream extends BasePaymentRequest {
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.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,9 @@
1
+ export declare enum IntervalType {
2
+ SECOND = "SECOND",
3
+ MINUTE = "MINUTE",
4
+ HOUR = "HOUR",
5
+ DAY = "DAY",
6
+ WEEK = "WEEK",
7
+ MONTH = "MONTH",
8
+ YEAR = "YEAR"
9
+ }
@@ -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,7 @@
1
+ import { PaymentRequest } from '../../payment-request';
2
+ import { StreamFeatures } from '../../stream-features';
3
+ export declare class Paystream extends PaymentRequest {
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.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,4 @@
1
+ export * from './Paystream';
2
+ export * from './BasePaystream';
3
+ export * from './ShallowEnrichedPaystream';
4
+ export * from './IntervalType';
@@ -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,2 @@
1
+ export * from './dtos';
2
+ export * from './entities';
@@ -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