@heliofi/common 0.2.273 → 0.2.275-alpha.1782824411

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/src/domain/constants/paymentType.d.ts +2 -4
  2. package/dist/src/domain/constants/paymentType.js +0 -4
  3. package/dist/src/domain/constants/paymentType.js.map +1 -1
  4. package/dist/src/domain/constants/template.js.map +1 -1
  5. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.d.ts +1 -0
  6. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js +1 -0
  7. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js.map +1 -1
  8. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js +1 -0
  9. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js.map +1 -1
  10. package/dist/src/domain/model/audit/tx/AuditTxType.d.ts +0 -1
  11. package/dist/src/domain/model/audit/tx/AuditTxType.js +0 -1
  12. package/dist/src/domain/model/audit/tx/AuditTxType.js.map +1 -1
  13. package/dist/src/domain/model/broadcast/broadcast.spec.js +11 -0
  14. package/dist/src/domain/model/broadcast/broadcast.spec.js.map +1 -1
  15. package/dist/src/domain/model/broadcast/constants/BroadcastErrorCode.d.ts +1 -0
  16. package/dist/src/domain/model/broadcast/constants/BroadcastErrorCode.js +5 -0
  17. package/dist/src/domain/model/broadcast/constants/BroadcastErrorCode.js.map +1 -1
  18. package/dist/src/domain/model/company/dtos/index.d.ts +1 -0
  19. package/dist/src/domain/model/company/dtos/index.js +1 -0
  20. package/dist/src/domain/model/company/dtos/index.js.map +1 -1
  21. package/dist/src/domain/model/company/dtos/updateMinimalWithdrawalAmount.dto.d.ts +6 -0
  22. package/dist/src/domain/model/{submit-invoice/dtos/submitInvoice.dto.js → company/dtos/updateMinimalWithdrawalAmount.dto.js} +13 -17
  23. package/dist/src/domain/model/company/dtos/updateMinimalWithdrawalAmount.dto.js.map +1 -0
  24. package/dist/src/domain/model/company/entities/CompanyWithFees.entity.d.ts +1 -0
  25. package/dist/src/domain/model/company/entities/CompanyWithFees.entity.js.map +1 -1
  26. package/dist/src/domain/model/deposit-tx/entities/DepositCustomerActivityPageResponse.entity.d.ts +21 -0
  27. package/dist/src/domain/model/{submit-invoice/entities/SuccessfulInvoicePayment.js → deposit-tx/entities/DepositCustomerActivityPageResponse.entity.js} +1 -1
  28. package/dist/src/domain/model/deposit-tx/entities/DepositCustomerActivityPageResponse.entity.js.map +1 -0
  29. package/dist/src/domain/model/deposit-tx/entities/index.d.ts +1 -0
  30. package/dist/src/domain/model/deposit-tx/entities/index.js +1 -0
  31. package/dist/src/domain/model/deposit-tx/entities/index.js.map +1 -1
  32. package/dist/src/domain/model/deposit-tx/index.d.ts +1 -0
  33. package/dist/src/domain/model/deposit-tx/index.js +1 -0
  34. package/dist/src/domain/model/deposit-tx/index.js.map +1 -1
  35. package/dist/src/domain/model/deposit-tx/query/getDepositCustomerActivity.dto.d.ts +5 -0
  36. package/dist/src/domain/model/{prepare-invoice/dtos/prepareInvoice.dto.js → deposit-tx/query/getDepositCustomerActivity.dto.js} +9 -8
  37. package/dist/src/domain/model/deposit-tx/query/getDepositCustomerActivity.dto.js.map +1 -0
  38. package/dist/src/domain/model/deposit-tx/query/index.d.ts +1 -0
  39. package/dist/src/domain/model/{invoiceItem/dtos → deposit-tx/query}/index.js +1 -1
  40. package/dist/src/domain/model/deposit-tx/query/index.js.map +1 -0
  41. package/dist/src/domain/model/email/dtos/index.d.ts +0 -1
  42. package/dist/src/domain/model/email/dtos/index.js +0 -1
  43. package/dist/src/domain/model/email/dtos/index.js.map +1 -1
  44. package/dist/src/domain/model/index.d.ts +0 -5
  45. package/dist/src/domain/model/index.js +0 -5
  46. package/dist/src/domain/model/index.js.map +1 -1
  47. package/dist/src/domain/model/onramp/dtos/getOnrampPaymentMethods.dto.d.ts +2 -2
  48. package/dist/src/domain/model/onramp/dtos/getOnrampPaymentMethods.dto.js +4 -1
  49. package/dist/src/domain/model/onramp/dtos/getOnrampPaymentMethods.dto.js.map +1 -1
  50. package/dist/src/domain/model/payment-request/entities/PaymentRequestType.d.ts +0 -1
  51. package/dist/src/domain/model/payment-request/entities/PaymentRequestType.js +0 -3
  52. package/dist/src/domain/model/payment-request/entities/PaymentRequestType.js.map +1 -1
  53. package/dist/src/domain/model/transaction/entities/index.d.ts +2 -3
  54. package/dist/src/domain/model/transaction/entities/index.js.map +1 -1
  55. package/dist/src/domain/model/transaction-meta/constants/ExportTransactionType.d.ts +0 -1
  56. package/dist/src/domain/model/transaction-meta/constants/ExportTransactionType.js +0 -1
  57. package/dist/src/domain/model/transaction-meta/constants/ExportTransactionType.js.map +1 -1
  58. package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.d.ts +2 -0
  59. package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.js +8 -1
  60. package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.js.map +1 -1
  61. package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.spec.d.ts +1 -0
  62. package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.spec.js +31 -0
  63. package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.spec.js.map +1 -0
  64. package/dist/src/domain/model/withdraw/constants/SourceWalletKind.d.ts +1 -1
  65. package/dist/src/domain/model/withdraw/constants/SourceWalletKind.js +1 -1
  66. package/dist/src/domain/model/withdraw/constants/SourceWalletKind.js.map +1 -1
  67. package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.js.map +1 -1
  68. package/dist/src/domain/model/withdraw/entities/WithdrawalBalancesResponse.entity.d.ts +1 -0
  69. package/dist/src/domain/model/withdraw/entities/WithdrawalBalancesResponse.entity.js.map +1 -1
  70. package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoute.entity.d.ts +2 -0
  71. package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoute.entity.js.map +1 -1
  72. package/dist/tsconfig.tsbuildinfo +1 -1
  73. package/dist/withdraw.d.ts +6 -0
  74. package/dist/withdraw.js +16 -0
  75. package/dist/withdraw.js.map +1 -0
  76. package/package.json +12 -2
  77. package/withdraw.ts +8 -0
  78. package/dist/src/domain/model/email/dtos/emailInvoice.dto.d.ts +0 -17
  79. package/dist/src/domain/model/email/dtos/emailInvoice.dto.js +0 -88
  80. package/dist/src/domain/model/email/dtos/emailInvoice.dto.js.map +0 -1
  81. package/dist/src/domain/model/invoice/dtos/createInvoice.dto.d.ts +0 -12
  82. package/dist/src/domain/model/invoice/dtos/createInvoice.dto.js +0 -67
  83. package/dist/src/domain/model/invoice/dtos/createInvoice.dto.js.map +0 -1
  84. package/dist/src/domain/model/invoice/dtos/index.d.ts +0 -2
  85. package/dist/src/domain/model/invoice/dtos/index.js +0 -19
  86. package/dist/src/domain/model/invoice/dtos/index.js.map +0 -1
  87. package/dist/src/domain/model/invoice/dtos/updateInvoice.dto.d.ts +0 -12
  88. package/dist/src/domain/model/invoice/dtos/updateInvoice.dto.js +0 -67
  89. package/dist/src/domain/model/invoice/dtos/updateInvoice.dto.js.map +0 -1
  90. package/dist/src/domain/model/invoice/entities/EnrichedInvoice.entity.d.ts +0 -13
  91. package/dist/src/domain/model/invoice/entities/EnrichedInvoice.entity.js +0 -8
  92. package/dist/src/domain/model/invoice/entities/EnrichedInvoice.entity.js.map +0 -1
  93. package/dist/src/domain/model/invoice/entities/Invoice.entity.d.ts +0 -15
  94. package/dist/src/domain/model/invoice/entities/Invoice.entity.js +0 -8
  95. package/dist/src/domain/model/invoice/entities/Invoice.entity.js.map +0 -1
  96. package/dist/src/domain/model/invoice/entities/InvoiceStatus.d.ts +0 -5
  97. package/dist/src/domain/model/invoice/entities/InvoiceStatus.js +0 -10
  98. package/dist/src/domain/model/invoice/entities/InvoiceStatus.js.map +0 -1
  99. package/dist/src/domain/model/invoice/entities/index.d.ts +0 -3
  100. package/dist/src/domain/model/invoice/entities/index.js +0 -20
  101. package/dist/src/domain/model/invoice/entities/index.js.map +0 -1
  102. package/dist/src/domain/model/invoice/index.d.ts +0 -2
  103. package/dist/src/domain/model/invoice/index.js +0 -19
  104. package/dist/src/domain/model/invoice/index.js.map +0 -1
  105. package/dist/src/domain/model/invoice-tx/entities/BaseInvoiceTx.entity.d.ts +0 -8
  106. package/dist/src/domain/model/invoice-tx/entities/BaseInvoiceTx.entity.js +0 -22
  107. package/dist/src/domain/model/invoice-tx/entities/BaseInvoiceTx.entity.js.map +0 -1
  108. package/dist/src/domain/model/invoice-tx/entities/CreateInvoiceTx.d.ts +0 -6
  109. package/dist/src/domain/model/invoice-tx/entities/CreateInvoiceTx.js +0 -7
  110. package/dist/src/domain/model/invoice-tx/entities/CreateInvoiceTx.js.map +0 -1
  111. package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.entity.d.ts +0 -13
  112. package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.entity.js +0 -28
  113. package/dist/src/domain/model/invoice-tx/entities/InvoiceTx.entity.js.map +0 -1
  114. package/dist/src/domain/model/invoice-tx/entities/index.d.ts +0 -3
  115. package/dist/src/domain/model/invoice-tx/entities/index.js +0 -20
  116. package/dist/src/domain/model/invoice-tx/entities/index.js.map +0 -1
  117. package/dist/src/domain/model/invoice-tx/index.d.ts +0 -1
  118. package/dist/src/domain/model/invoice-tx/index.js +0 -18
  119. package/dist/src/domain/model/invoice-tx/index.js.map +0 -1
  120. package/dist/src/domain/model/invoiceItem/dtos/index.d.ts +0 -1
  121. package/dist/src/domain/model/invoiceItem/dtos/index.js.map +0 -1
  122. package/dist/src/domain/model/invoiceItem/dtos/invoiceItem.dto.d.ts +0 -7
  123. package/dist/src/domain/model/invoiceItem/dtos/invoiceItem.dto.js +0 -43
  124. package/dist/src/domain/model/invoiceItem/dtos/invoiceItem.dto.js.map +0 -1
  125. package/dist/src/domain/model/invoiceItem/entities/InvoiceItem.entity.d.ts +0 -10
  126. package/dist/src/domain/model/invoiceItem/entities/InvoiceItem.entity.js +0 -22
  127. package/dist/src/domain/model/invoiceItem/entities/InvoiceItem.entity.js.map +0 -1
  128. package/dist/src/domain/model/invoiceItem/entities/index.d.ts +0 -1
  129. package/dist/src/domain/model/invoiceItem/entities/index.js +0 -18
  130. package/dist/src/domain/model/invoiceItem/entities/index.js.map +0 -1
  131. package/dist/src/domain/model/invoiceItem/index.d.ts +0 -2
  132. package/dist/src/domain/model/invoiceItem/index.js +0 -19
  133. package/dist/src/domain/model/invoiceItem/index.js.map +0 -1
  134. package/dist/src/domain/model/prepare-invoice/dtos/index.d.ts +0 -1
  135. package/dist/src/domain/model/prepare-invoice/dtos/index.js +0 -6
  136. package/dist/src/domain/model/prepare-invoice/dtos/index.js.map +0 -1
  137. package/dist/src/domain/model/prepare-invoice/dtos/prepareInvoice.dto.d.ts +0 -4
  138. package/dist/src/domain/model/prepare-invoice/dtos/prepareInvoice.dto.js.map +0 -1
  139. package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.entity.d.ts +0 -5
  140. package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.entity.js +0 -8
  141. package/dist/src/domain/model/prepare-invoice/entities/PrepareInvoice.entity.js.map +0 -1
  142. package/dist/src/domain/model/prepare-invoice/entities/TokenInvoicePayload.d.ts +0 -5
  143. package/dist/src/domain/model/prepare-invoice/entities/TokenInvoicePayload.js +0 -8
  144. package/dist/src/domain/model/prepare-invoice/entities/TokenInvoicePayload.js.map +0 -1
  145. package/dist/src/domain/model/prepare-invoice/entities/index.d.ts +0 -2
  146. package/dist/src/domain/model/prepare-invoice/entities/index.js +0 -19
  147. package/dist/src/domain/model/prepare-invoice/entities/index.js.map +0 -1
  148. package/dist/src/domain/model/prepare-invoice/index.d.ts +0 -2
  149. package/dist/src/domain/model/prepare-invoice/index.js +0 -19
  150. package/dist/src/domain/model/prepare-invoice/index.js.map +0 -1
  151. package/dist/src/domain/model/submit-invoice/dtos/index.d.ts +0 -1
  152. package/dist/src/domain/model/submit-invoice/dtos/index.js +0 -6
  153. package/dist/src/domain/model/submit-invoice/dtos/index.js.map +0 -1
  154. package/dist/src/domain/model/submit-invoice/dtos/submitInvoice.dto.d.ts +0 -6
  155. package/dist/src/domain/model/submit-invoice/dtos/submitInvoice.dto.js.map +0 -1
  156. package/dist/src/domain/model/submit-invoice/entities/SuccessfulInvoicePayment.d.ts +0 -3
  157. package/dist/src/domain/model/submit-invoice/entities/SuccessfulInvoicePayment.js.map +0 -1
  158. package/dist/src/domain/model/submit-invoice/entities/index.d.ts +0 -1
  159. package/dist/src/domain/model/submit-invoice/entities/index.js +0 -18
  160. package/dist/src/domain/model/submit-invoice/entities/index.js.map +0 -1
  161. package/dist/src/domain/model/submit-invoice/index.d.ts +0 -2
  162. package/dist/src/domain/model/submit-invoice/index.js +0 -19
  163. package/dist/src/domain/model/submit-invoice/index.js.map +0 -1
@@ -0,0 +1,6 @@
1
+ export { BlockchainSymbol } from './src/domain/model/blockchain/constants/BlockchainSymbol';
2
+ export { Platform } from './src/domain/constants/platform';
3
+ export { WithdrawalFeature } from './src/domain/model/withdraw/constants/WithdrawalFeature';
4
+ export { WithdrawalState } from './src/domain/model/withdraw/constants/WithdrawalState';
5
+ export { BroadcastAck } from './src/domain/model/withdraw/constants/BroadcastAck';
6
+ export { SignedTransactionKind } from './src/domain/model/broadcast/constants/SignedTransactionKind';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SignedTransactionKind = exports.BroadcastAck = exports.WithdrawalState = exports.WithdrawalFeature = exports.Platform = exports.BlockchainSymbol = void 0;
4
+ var BlockchainSymbol_1 = require("./src/domain/model/blockchain/constants/BlockchainSymbol");
5
+ Object.defineProperty(exports, "BlockchainSymbol", { enumerable: true, get: function () { return BlockchainSymbol_1.BlockchainSymbol; } });
6
+ var platform_1 = require("./src/domain/constants/platform");
7
+ Object.defineProperty(exports, "Platform", { enumerable: true, get: function () { return platform_1.Platform; } });
8
+ var WithdrawalFeature_1 = require("./src/domain/model/withdraw/constants/WithdrawalFeature");
9
+ Object.defineProperty(exports, "WithdrawalFeature", { enumerable: true, get: function () { return WithdrawalFeature_1.WithdrawalFeature; } });
10
+ var WithdrawalState_1 = require("./src/domain/model/withdraw/constants/WithdrawalState");
11
+ Object.defineProperty(exports, "WithdrawalState", { enumerable: true, get: function () { return WithdrawalState_1.WithdrawalState; } });
12
+ var BroadcastAck_1 = require("./src/domain/model/withdraw/constants/BroadcastAck");
13
+ Object.defineProperty(exports, "BroadcastAck", { enumerable: true, get: function () { return BroadcastAck_1.BroadcastAck; } });
14
+ var SignedTransactionKind_1 = require("./src/domain/model/broadcast/constants/SignedTransactionKind");
15
+ Object.defineProperty(exports, "SignedTransactionKind", { enumerable: true, get: function () { return SignedTransactionKind_1.SignedTransactionKind; } });
16
+ //# sourceMappingURL=withdraw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withdraw.js","sourceRoot":"","sources":["../withdraw.ts"],"names":[],"mappings":";;;AAEA,6FAA4F;AAAnF,oHAAA,gBAAgB,OAAA;AACzB,4DAA2D;AAAlD,oGAAA,QAAQ,OAAA;AACjB,6FAA4F;AAAnF,sHAAA,iBAAiB,OAAA;AAC1B,yFAAwF;AAA/E,kHAAA,eAAe,OAAA;AACxB,mFAAkF;AAAzE,4GAAA,YAAY,OAAA;AACrB,sGAAqG;AAA5F,8HAAA,qBAAqB,OAAA"}
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "@heliofi/common",
3
3
  "private": false,
4
- "version": "0.2.273",
4
+ "version": "0.2.275-alpha.1782824411",
5
5
  "description": "Common package",
6
6
  "main": "dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "./withdraw": {
14
+ "types": "./dist/withdraw.d.ts",
15
+ "default": "./dist/withdraw.js"
16
+ }
17
+ },
8
18
  "scripts": {
9
19
  "test": "jest",
10
20
  "test:watch": "jest --watch",
@@ -32,5 +42,5 @@
32
42
  "peerDependencies": {
33
43
  "typescript": "5.*"
34
44
  },
35
- "gitHead": "53458f1c07096be28b89d3f6ba2611487cf0b0e2"
45
+ "gitHead": "334343ebea22af03c493f92c38fd843a7ef1c271"
36
46
  }
package/withdraw.ts ADDED
@@ -0,0 +1,8 @@
1
+ // Decorator-free enum exports for the withdraw widgets, so consumers don't pull
2
+ // reflect-metadata via the package barrel.
3
+ export { BlockchainSymbol } from './src/domain/model/blockchain/constants/BlockchainSymbol';
4
+ export { Platform } from './src/domain/constants/platform';
5
+ export { WithdrawalFeature } from './src/domain/model/withdraw/constants/WithdrawalFeature';
6
+ export { WithdrawalState } from './src/domain/model/withdraw/constants/WithdrawalState';
7
+ export { BroadcastAck } from './src/domain/model/withdraw/constants/BroadcastAck';
8
+ export { SignedTransactionKind } from './src/domain/model/broadcast/constants/SignedTransactionKind';
@@ -1,17 +0,0 @@
1
- import { Cluster } from '../../blockchain';
2
- export declare class EmailInvoiceDto {
3
- companyLogo: string;
4
- invoiceNumber: number;
5
- email: string;
6
- amount: string;
7
- dueDate: string;
8
- currency: string;
9
- blockchain?: string;
10
- cluster?: Cluster;
11
- merchantName?: string;
12
- merchantWebsite?: string;
13
- merchantTwitter?: string;
14
- merchantDiscord?: string;
15
- merchantEmail?: string;
16
- paymentLink?: string;
17
- }
@@ -1,88 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EmailInvoiceDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const blockchain_1 = require("../../blockchain");
15
- class EmailInvoiceDto {
16
- }
17
- exports.EmailInvoiceDto = EmailInvoiceDto;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.IsNotEmpty)(),
21
- __metadata("design:type", String)
22
- ], EmailInvoiceDto.prototype, "companyLogo", void 0);
23
- __decorate([
24
- (0, class_validator_1.IsString)(),
25
- (0, class_validator_1.IsNotEmpty)(),
26
- __metadata("design:type", Number)
27
- ], EmailInvoiceDto.prototype, "invoiceNumber", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsEmail)(),
30
- (0, class_validator_1.IsNotEmpty)(),
31
- __metadata("design:type", String)
32
- ], EmailInvoiceDto.prototype, "email", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsString)(),
35
- (0, class_validator_1.IsNotEmpty)(),
36
- __metadata("design:type", String)
37
- ], EmailInvoiceDto.prototype, "amount", void 0);
38
- __decorate([
39
- (0, class_validator_1.IsString)(),
40
- (0, class_validator_1.IsNotEmpty)(),
41
- __metadata("design:type", String)
42
- ], EmailInvoiceDto.prototype, "dueDate", void 0);
43
- __decorate([
44
- (0, class_validator_1.IsString)(),
45
- (0, class_validator_1.IsNotEmpty)(),
46
- __metadata("design:type", String)
47
- ], EmailInvoiceDto.prototype, "currency", void 0);
48
- __decorate([
49
- (0, class_validator_1.IsString)(),
50
- (0, class_validator_1.IsOptional)(),
51
- __metadata("design:type", String)
52
- ], EmailInvoiceDto.prototype, "blockchain", void 0);
53
- __decorate([
54
- (0, class_validator_1.IsString)(),
55
- (0, class_validator_1.IsOptional)(),
56
- __metadata("design:type", String)
57
- ], EmailInvoiceDto.prototype, "cluster", void 0);
58
- __decorate([
59
- (0, class_validator_1.IsString)(),
60
- (0, class_validator_1.IsOptional)(),
61
- __metadata("design:type", String)
62
- ], EmailInvoiceDto.prototype, "merchantName", void 0);
63
- __decorate([
64
- (0, class_validator_1.IsString)(),
65
- (0, class_validator_1.IsOptional)(),
66
- __metadata("design:type", String)
67
- ], EmailInvoiceDto.prototype, "merchantWebsite", void 0);
68
- __decorate([
69
- (0, class_validator_1.IsString)(),
70
- (0, class_validator_1.IsOptional)(),
71
- __metadata("design:type", String)
72
- ], EmailInvoiceDto.prototype, "merchantTwitter", void 0);
73
- __decorate([
74
- (0, class_validator_1.IsString)(),
75
- (0, class_validator_1.IsOptional)(),
76
- __metadata("design:type", String)
77
- ], EmailInvoiceDto.prototype, "merchantDiscord", void 0);
78
- __decorate([
79
- (0, class_validator_1.IsString)(),
80
- (0, class_validator_1.IsOptional)(),
81
- __metadata("design:type", String)
82
- ], EmailInvoiceDto.prototype, "merchantEmail", void 0);
83
- __decorate([
84
- (0, class_validator_1.IsString)(),
85
- (0, class_validator_1.IsOptional)(),
86
- __metadata("design:type", String)
87
- ], EmailInvoiceDto.prototype, "paymentLink", void 0);
88
- //# sourceMappingURL=emailInvoice.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"emailInvoice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/email/dtos/emailInvoice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAC5E,iDAA2C;AAE3C,MAAa,eAAe;CAwD3B;AAxDD,0CAwDC;AArDC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACS;AAItB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;8CACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACQ"}
@@ -1,12 +0,0 @@
1
- import { InvoiceItemDto } from '../../invoiceItem';
2
- export declare class CreateInvoiceDto {
3
- contact: string;
4
- dueDate: Date;
5
- date: Date;
6
- currency: string;
7
- blockchain?: string;
8
- items: InvoiceItemDto[];
9
- invoiceNumber: number;
10
- description?: string;
11
- taxPercentage?: number;
12
- }
@@ -1,67 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateInvoiceDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const invoiceItem_1 = require("../../invoiceItem");
16
- class CreateInvoiceDto {
17
- }
18
- exports.CreateInvoiceDto = CreateInvoiceDto;
19
- __decorate([
20
- (0, class_validator_1.IsString)(),
21
- (0, class_validator_1.IsNotEmpty)(),
22
- __metadata("design:type", String)
23
- ], CreateInvoiceDto.prototype, "contact", void 0);
24
- __decorate([
25
- (0, class_transformer_1.Type)(() => Date),
26
- (0, class_validator_1.IsDate)(),
27
- (0, class_validator_1.IsNotEmpty)(),
28
- __metadata("design:type", Date)
29
- ], CreateInvoiceDto.prototype, "dueDate", void 0);
30
- __decorate([
31
- (0, class_transformer_1.Type)(() => Date),
32
- (0, class_validator_1.IsDate)(),
33
- (0, class_validator_1.IsNotEmpty)(),
34
- __metadata("design:type", Date)
35
- ], CreateInvoiceDto.prototype, "date", void 0);
36
- __decorate([
37
- (0, class_validator_1.IsString)(),
38
- (0, class_validator_1.IsNotEmpty)(),
39
- __metadata("design:type", String)
40
- ], CreateInvoiceDto.prototype, "currency", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsString)(),
43
- (0, class_validator_1.IsOptional)(),
44
- __metadata("design:type", String)
45
- ], CreateInvoiceDto.prototype, "blockchain", void 0);
46
- __decorate([
47
- (0, class_validator_1.IsNotEmpty)(),
48
- (0, class_transformer_1.Type)(() => invoiceItem_1.InvoiceItemDto),
49
- (0, class_validator_1.ValidateNested)({ each: true }),
50
- __metadata("design:type", Array)
51
- ], CreateInvoiceDto.prototype, "items", void 0);
52
- __decorate([
53
- (0, class_validator_1.IsNumber)(),
54
- (0, class_validator_1.IsNotEmpty)(),
55
- __metadata("design:type", Number)
56
- ], CreateInvoiceDto.prototype, "invoiceNumber", void 0);
57
- __decorate([
58
- (0, class_validator_1.IsOptional)(),
59
- (0, class_validator_1.IsString)(),
60
- __metadata("design:type", String)
61
- ], CreateInvoiceDto.prototype, "description", void 0);
62
- __decorate([
63
- (0, class_validator_1.IsNumber)(),
64
- (0, class_validator_1.IsOptional)(),
65
- __metadata("design:type", Number)
66
- ], CreateInvoiceDto.prototype, "taxPercentage", void 0);
67
- //# sourceMappingURL=createInvoice.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createInvoice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/dtos/createInvoice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AACzC,mDAAmD;AAEnD,MAAa,gBAAgB;CAuC5B;AAvCD,4CAuCC;AApCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACG;AAKhB;IAHC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACJ,IAAI;iDAAC;AAKd;IAHC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACP,IAAI;8CAAC;AAIX;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACO;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAc,CAAC;IAC1B,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+CACP;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACS;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACU"}
@@ -1,2 +0,0 @@
1
- export * from './createInvoice.dto';
2
- export * from './updateInvoice.dto';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./createInvoice.dto"), exports);
18
- __exportStar(require("./updateInvoice.dto"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC"}
@@ -1,12 +0,0 @@
1
- import { InvoiceItemDto } from '../../invoiceItem';
2
- export declare class UpdateInvoiceDto {
3
- contact?: string;
4
- dueDate?: Date;
5
- date?: Date;
6
- currency?: string;
7
- blockchain?: string;
8
- invoiceNumber?: number;
9
- description?: string;
10
- taxPercentage?: number;
11
- items?: InvoiceItemDto[];
12
- }
@@ -1,67 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UpdateInvoiceDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const invoiceItem_1 = require("../../invoiceItem");
16
- class UpdateInvoiceDto {
17
- }
18
- exports.UpdateInvoiceDto = UpdateInvoiceDto;
19
- __decorate([
20
- (0, class_validator_1.IsString)(),
21
- (0, class_validator_1.IsOptional)(),
22
- __metadata("design:type", String)
23
- ], UpdateInvoiceDto.prototype, "contact", void 0);
24
- __decorate([
25
- (0, class_transformer_1.Type)(() => Date),
26
- (0, class_validator_1.IsDate)(),
27
- (0, class_validator_1.IsOptional)(),
28
- __metadata("design:type", Date)
29
- ], UpdateInvoiceDto.prototype, "dueDate", void 0);
30
- __decorate([
31
- (0, class_transformer_1.Type)(() => Date),
32
- (0, class_validator_1.IsDate)(),
33
- (0, class_validator_1.IsOptional)(),
34
- __metadata("design:type", Date)
35
- ], UpdateInvoiceDto.prototype, "date", void 0);
36
- __decorate([
37
- (0, class_validator_1.IsString)(),
38
- (0, class_validator_1.IsOptional)(),
39
- __metadata("design:type", String)
40
- ], UpdateInvoiceDto.prototype, "currency", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsString)(),
43
- (0, class_validator_1.IsOptional)(),
44
- __metadata("design:type", String)
45
- ], UpdateInvoiceDto.prototype, "blockchain", void 0);
46
- __decorate([
47
- (0, class_validator_1.IsNumber)(),
48
- (0, class_validator_1.IsOptional)(),
49
- __metadata("design:type", Number)
50
- ], UpdateInvoiceDto.prototype, "invoiceNumber", void 0);
51
- __decorate([
52
- (0, class_validator_1.IsOptional)(),
53
- (0, class_validator_1.IsString)(),
54
- __metadata("design:type", String)
55
- ], UpdateInvoiceDto.prototype, "description", void 0);
56
- __decorate([
57
- (0, class_validator_1.IsNumber)(),
58
- (0, class_validator_1.IsOptional)(),
59
- __metadata("design:type", Number)
60
- ], UpdateInvoiceDto.prototype, "taxPercentage", void 0);
61
- __decorate([
62
- (0, class_validator_1.IsOptional)(),
63
- (0, class_transformer_1.Type)(() => invoiceItem_1.InvoiceItemDto),
64
- (0, class_validator_1.ValidateNested)({ each: true }),
65
- __metadata("design:type", Array)
66
- ], UpdateInvoiceDto.prototype, "items", void 0);
67
- //# sourceMappingURL=updateInvoice.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updateInvoice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/dtos/updateInvoice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAyC;AACzC,mDAAmD;AAEnD,MAAa,gBAAgB;CAuC5B;AAvCD,4CAuCC;AApCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACI;AAKjB;IAHC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACH,IAAI;iDAAC;AAKf;IAHC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACN,IAAI;8CAAC;AAIZ;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACU;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACU;AAKvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAc,CAAC;IAC1B,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+CACN"}
@@ -1,13 +0,0 @@
1
- import { BaseCompany } from '../../company';
2
- import { BaseWallet } from '../../wallet';
3
- import { Invoice } from './Invoice.entity';
4
- import { BaseUser } from '../../user';
5
- import { Currency } from '../../currency';
6
- import { Recipient } from '../../recipient';
7
- export declare class EnrichedInvoice extends Invoice {
8
- company: BaseCompany;
9
- wallet: BaseWallet;
10
- creator: BaseUser;
11
- pricingCurrency: Currency;
12
- recipients: Recipient[];
13
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnrichedInvoice = void 0;
4
- const Invoice_entity_1 = require("./Invoice.entity");
5
- class EnrichedInvoice extends Invoice_entity_1.Invoice {
6
- }
7
- exports.EnrichedInvoice = EnrichedInvoice;
8
- //# sourceMappingURL=EnrichedInvoice.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EnrichedInvoice.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/entities/EnrichedInvoice.entity.ts"],"names":[],"mappings":";;;AAEA,qDAA2C;AAK3C,MAAa,eAAgB,SAAQ,wBAAO;CAU3C;AAVD,0CAUC"}
@@ -1,15 +0,0 @@
1
- import { Contact } from '../../contact';
2
- import { InvoiceItem } from '../../invoiceItem';
3
- import { Currency } from '../../currency';
4
- import { InvoiceStatus } from './InvoiceStatus';
5
- import { BasePaymentRequest } from '../../payment-request';
6
- export declare class Invoice extends BasePaymentRequest {
7
- contact: Contact;
8
- date: string;
9
- dueDate: string;
10
- currency: Currency;
11
- items: InvoiceItem[];
12
- status: InvoiceStatus;
13
- invoiceNumber?: number;
14
- taxPercentage?: number;
15
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Invoice = void 0;
4
- const payment_request_1 = require("../../payment-request");
5
- class Invoice extends payment_request_1.BasePaymentRequest {
6
- }
7
- exports.Invoice = Invoice;
8
- //# sourceMappingURL=Invoice.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Invoice.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/entities/Invoice.entity.ts"],"names":[],"mappings":";;;AAIA,2DAA2D;AAE3D,MAAa,OAAQ,SAAQ,oCAAkB;CAgB9C;AAhBD,0BAgBC"}
@@ -1,5 +0,0 @@
1
- export declare enum InvoiceStatus {
2
- PAID = "PAID",
3
- UNPAID = "UNPAID",
4
- CANCELLED = "CANCELLED"
5
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvoiceStatus = void 0;
4
- var InvoiceStatus;
5
- (function (InvoiceStatus) {
6
- InvoiceStatus["PAID"] = "PAID";
7
- InvoiceStatus["UNPAID"] = "UNPAID";
8
- InvoiceStatus["CANCELLED"] = "CANCELLED";
9
- })(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
10
- //# sourceMappingURL=InvoiceStatus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvoiceStatus.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/entities/InvoiceStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;AACzB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
@@ -1,3 +0,0 @@
1
- export * from './InvoiceStatus';
2
- export * from './Invoice.entity';
3
- export * from './EnrichedInvoice.entity';
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./InvoiceStatus"), exports);
18
- __exportStar(require("./Invoice.entity"), exports);
19
- __exportStar(require("./EnrichedInvoice.entity"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,2DAAyC"}
@@ -1,2 +0,0 @@
1
- export * from './entities';
2
- export * from './dtos';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./entities"), exports);
18
- __exportStar(require("./dtos"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/invoice/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB"}
@@ -1,8 +0,0 @@
1
- import { Entity } from '../../entity';
2
- import { PaymentRequestType } from '../../payment-request';
3
- export declare class BaseInvoiceTx extends Entity {
4
- fee?: bigint;
5
- id: string;
6
- createdAt: string;
7
- paymentType: PaymentRequestType;
8
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BaseInvoiceTx = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const entity_1 = require("../../entity");
15
- class BaseInvoiceTx extends entity_1.Entity {
16
- }
17
- exports.BaseInvoiceTx = BaseInvoiceTx;
18
- __decorate([
19
- (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
20
- __metadata("design:type", BigInt)
21
- ], BaseInvoiceTx.prototype, "fee", void 0);
22
- //# sourceMappingURL=BaseInvoiceTx.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseInvoiceTx.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice-tx/entities/BaseInvoiceTx.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAGtC,MAAa,aAAc,SAAQ,eAAM;CASxC;AATD,sCASC;AAPC;IADC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;0CAC3B"}
@@ -1,6 +0,0 @@
1
- import { CreateTransactionMeta } from '../../transaction-meta';
2
- export declare class CreateInvoiceTx {
3
- meta: CreateTransactionMeta;
4
- invoice: string;
5
- fee?: string;
6
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateInvoiceTx = void 0;
4
- class CreateInvoiceTx {
5
- }
6
- exports.CreateInvoiceTx = CreateInvoiceTx;
7
- //# sourceMappingURL=CreateInvoiceTx.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateInvoiceTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice-tx/entities/CreateInvoiceTx.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;CAM3B;AAND,0CAMC"}
@@ -1,13 +0,0 @@
1
- import { TransactionMeta } from '../../transaction-meta';
2
- import { BaseInvoiceTx } from './BaseInvoiceTx.entity';
3
- import { EnrichedInvoice } from '../../invoice';
4
- import { BlockchainSymbol } from '../../blockchain';
5
- import type { BaseTransaction } from '../../transaction/types';
6
- export declare class InvoiceTx extends BaseInvoiceTx implements BaseTransaction {
7
- meta: TransactionMeta;
8
- invoice: EnrichedInvoice;
9
- paymentRequestCreatorId: string;
10
- paymentRequestName: string;
11
- paymentRequestCurrencySymbol: string;
12
- paymentRequestBlockchain: BlockchainSymbol;
13
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.InvoiceTx = void 0;
13
- const class_transformer_1 = require("class-transformer");
14
- const transaction_meta_1 = require("../../transaction-meta");
15
- const BaseInvoiceTx_entity_1 = require("./BaseInvoiceTx.entity");
16
- const invoice_1 = require("../../invoice");
17
- class InvoiceTx extends BaseInvoiceTx_entity_1.BaseInvoiceTx {
18
- }
19
- exports.InvoiceTx = InvoiceTx;
20
- __decorate([
21
- (0, class_transformer_1.Type)(() => transaction_meta_1.TransactionMeta),
22
- __metadata("design:type", transaction_meta_1.TransactionMeta)
23
- ], InvoiceTx.prototype, "meta", void 0);
24
- __decorate([
25
- (0, class_transformer_1.Type)(() => invoice_1.EnrichedInvoice),
26
- __metadata("design:type", invoice_1.EnrichedInvoice)
27
- ], InvoiceTx.prototype, "invoice", void 0);
28
- //# sourceMappingURL=InvoiceTx.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvoiceTx.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/invoice-tx/entities/InvoiceTx.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,6DAAyD;AACzD,iEAAuD;AACvD,2CAAgD;AAIhD,MAAa,SAAU,SAAQ,oCAAa;CAc3C;AAdD,8BAcC;AAZC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC;8BACtB,kCAAe;uCAAC;AAGtB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAe,CAAC;8BACnB,yBAAe;0CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './InvoiceTx.entity';
2
- export * from './BaseInvoiceTx.entity';
3
- export * from './CreateInvoiceTx';