@heliofi/common 0.1.461 → 0.1.462
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/domain/constants/maxWalletsPerBlockchain.d.ts +1 -0
- package/dist/src/domain/constants/maxWalletsPerBlockchain.js +2 -1
- package/dist/src/domain/constants/maxWalletsPerBlockchain.js.map +1 -1
- package/dist/src/domain/model/pricing/dtos/createPricing.dto.d.ts +4 -0
- package/dist/src/domain/model/pricing/dtos/createPricing.dto.js +31 -0
- package/dist/src/domain/model/pricing/dtos/createPricing.dto.js.map +1 -0
- package/dist/src/domain/model/pricing/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/pricing/dtos/index.js +19 -0
- package/dist/src/domain/model/pricing/dtos/index.js.map +1 -0
- package/dist/src/domain/model/pricing/dtos/updatePricing.dto.d.ts +3 -0
- package/dist/src/domain/model/{paylinkSource/PaylinkSourceDto.js → pricing/dtos/updatePricing.dto.js} +10 -7
- package/dist/src/domain/model/pricing/dtos/updatePricing.dto.js.map +1 -0
- package/dist/src/domain/model/pricing/entities/BasePricing.d.ts +4 -0
- package/dist/src/domain/model/{paylinkSource/PaylinkSouce.dto.js → pricing/entities/BasePricing.js} +9 -9
- package/dist/src/domain/model/pricing/entities/BasePricing.js.map +1 -0
- package/dist/src/domain/model/pricing/entities/Pricing.d.ts +5 -0
- package/dist/src/domain/model/pricing/entities/Pricing.js +8 -0
- package/dist/src/domain/model/pricing/entities/Pricing.js.map +1 -0
- package/dist/src/domain/model/pricing/entities/index.d.ts +2 -0
- package/dist/src/domain/model/pricing/entities/index.js +19 -0
- package/dist/src/domain/model/pricing/entities/index.js.map +1 -0
- package/dist/src/domain/model/pricing/index.d.ts +2 -0
- package/dist/src/domain/model/pricing/index.js +19 -0
- package/dist/src/domain/model/pricing/index.js.map +1 -0
- package/dist/src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.d.ts +18 -0
- package/dist/src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.js +82 -0
- package/dist/src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.js.map +1 -0
- package/dist/src/domain/model/transaction/dtos/generateDiscordLink.dto.d.ts +5 -0
- package/dist/src/domain/model/{paylinkSource/SourceDto.js → transaction/dtos/generateDiscordLink.dto.js} +12 -6
- package/dist/src/domain/model/transaction/dtos/generateDiscordLink.dto.js.map +1 -0
- package/dist/src/domain/model/user/entities/ShallowEnrichedUser.d.ts +2 -0
- package/dist/src/domain/model/user/entities/ShallowEnrichedUser.js.map +1 -1
- package/dist/src/domain/model/user/entities/User.d.ts +2 -0
- package/dist/src/domain/model/user/entities/User.js.map +1 -1
- package/dist/src/domain/services/PublicKeyService.d.ts +2 -2
- package/dist/src/domain/services/PublicKeyService.js +3 -3
- package/dist/src/domain/services/PublicKeyService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/domain/model/fixed-currency/simpleTokenRatePayload.d.ts +0 -4
- package/dist/src/domain/model/fixed-currency/simpleTokenRatePayload.js +0 -3
- package/dist/src/domain/model/fixed-currency/simpleTokenRatePayload.js.map +0 -1
- package/dist/src/domain/model/paylinkSource/PaylinkSouce.dto.d.ts +0 -3
- package/dist/src/domain/model/paylinkSource/PaylinkSouce.dto.js.map +0 -1
- package/dist/src/domain/model/paylinkSource/PaylinkSourceDto.d.ts +0 -3
- package/dist/src/domain/model/paylinkSource/PaylinkSourceDto.js.map +0 -1
- package/dist/src/domain/model/paylinkSource/SourceDto.d.ts +0 -3
- package/dist/src/domain/model/paylinkSource/SourceDto.js.map +0 -1
- package/dist/src/domain/model/transaction-meta/entities/PaylinkSource.d.ts +0 -3
- package/dist/src/domain/model/transaction-meta/entities/PaylinkSource.js +0 -7
- package/dist/src/domain/model/transaction-meta/entities/PaylinkSource.js.map +0 -1
- package/dist/src/domain/model/transaction-meta/entities/Source.d.ts +0 -3
- package/dist/src/domain/model/transaction-meta/entities/Source.js +0 -7
- package/dist/src/domain/model/transaction-meta/entities/Source.js.map +0 -1
- package/dist/src/domain/model/transaction-meta/entities/TokenRateMeta.d.ts +0 -6
- package/dist/src/domain/model/transaction-meta/entities/TokenRateMeta.js +0 -3
- package/dist/src/domain/model/transaction-meta/entities/TokenRateMeta.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maxWalletsPerBlockchain = void 0;
|
|
3
|
+
exports.maxPayoutWalletsPerBlockchain = exports.maxWalletsPerBlockchain = void 0;
|
|
4
4
|
exports.maxWalletsPerBlockchain = 5;
|
|
5
|
+
exports.maxPayoutWalletsPerBlockchain = 5;
|
|
5
6
|
//# sourceMappingURL=maxWalletsPerBlockchain.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maxWalletsPerBlockchain.js","sourceRoot":"","sources":["../../../../src/domain/constants/maxWalletsPerBlockchain.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"maxWalletsPerBlockchain.js","sourceRoot":"","sources":["../../../../src/domain/constants/maxWalletsPerBlockchain.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAE5B,QAAA,6BAA6B,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.CreatePricingDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const decorators_1 = require("../../../decorators");
|
|
16
|
+
class CreatePricingDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, class_validator_1.IsMongoId)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreatePricingDto.prototype, "currencyId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, decorators_1.BigintMin)(1n, { message: 'Price must be greater than 0' }),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreatePricingDto.prototype, "price", void 0);
|
|
30
|
+
exports.CreatePricingDto = CreatePricingDto;
|
|
31
|
+
//# sourceMappingURL=createPricing.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPricing.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/dtos/createPricing.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,yDAA8C;AAC9C,oDAAgD;AAEhD,MAAa,gBAAgB;CAU5B;AATC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oDACO;AAEnB;IAAC,IAAA,sBAAS,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC1D,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;+CAC1B;AAThB,4CAUC"}
|
|
@@ -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("./createPricing.dto"), exports);
|
|
18
|
+
__exportStar(require("./updatePricing.dto"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,sDAAoC"}
|
|
@@ -9,14 +9,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.UpdatePricingDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const decorators_1 = require("../../../decorators");
|
|
16
|
+
class UpdatePricingDto {
|
|
15
17
|
}
|
|
16
18
|
__decorate([
|
|
17
|
-
(0,
|
|
18
|
-
(0, class_validator_1.
|
|
19
|
+
(0, decorators_1.BigintMin)(1n, { message: 'Price must be greater than 0' }),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
19
22
|
__metadata("design:type", String)
|
|
20
|
-
],
|
|
21
|
-
exports.
|
|
22
|
-
//# sourceMappingURL=
|
|
23
|
+
], UpdatePricingDto.prototype, "price", void 0);
|
|
24
|
+
exports.UpdatePricingDto = UpdatePricingDto;
|
|
25
|
+
//# sourceMappingURL=updatePricing.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePricing.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/dtos/updatePricing.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAC7C,yDAA8C;AAC9C,oDAAgD;AAEhD,MAAa,gBAAgB;CAK5B;AAJC;IAAC,IAAA,sBAAS,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAC1D,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;+CAC1B;AAJhB,4CAKC"}
|
package/dist/src/domain/model/{paylinkSource/PaylinkSouce.dto.js → pricing/entities/BasePricing.js}
RENAMED
|
@@ -9,14 +9,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
const
|
|
14
|
-
|
|
12
|
+
exports.BasePricing = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const entity_1 = require("../../entity");
|
|
15
|
+
class BasePricing extends entity_1.Entity {
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
17
|
-
(0,
|
|
18
|
-
(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=PaylinkSouce.dto.js.map
|
|
18
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
19
|
+
__metadata("design:type", BigInt)
|
|
20
|
+
], BasePricing.prototype, "normalizedPrice", void 0);
|
|
21
|
+
exports.BasePricing = BasePricing;
|
|
22
|
+
//# sourceMappingURL=BasePricing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasePricing.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/entities/BasePricing.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAEtC,MAAa,WAAY,SAAQ,eAAM;CAGtC;AAFC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;oDAChB;AAF1B,kCAGC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Pricing = void 0;
|
|
4
|
+
const BasePricing_1 = require("./BasePricing");
|
|
5
|
+
class Pricing extends BasePricing_1.BasePricing {
|
|
6
|
+
}
|
|
7
|
+
exports.Pricing = Pricing;
|
|
8
|
+
//# sourceMappingURL=Pricing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pricing.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/entities/Pricing.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAG5C,MAAa,OAAQ,SAAQ,yBAAW;CAEvC;AAFD,0BAEC"}
|
|
@@ -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("./BasePricing"), exports);
|
|
18
|
+
__exportStar(require("./Pricing"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,4CAA0B"}
|
|
@@ -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/pricing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CustomerDetailsDto } from '../../customer-details';
|
|
2
|
+
import { ProductDetailsDto } from '../../product-details';
|
|
3
|
+
import { SplitWalletDto } from '../../split-wallets';
|
|
4
|
+
import { FixedCurrencyDto } from '../../fixed-currency';
|
|
5
|
+
import { BaseSubmitTransactionDto } from './baseSubmitTransaction.dto';
|
|
6
|
+
export declare class SubmitTransactionDtoV0 extends BaseSubmitTransactionDto {
|
|
7
|
+
paymentRequestId: string;
|
|
8
|
+
quantity: number;
|
|
9
|
+
time?: string;
|
|
10
|
+
customerDetails?: CustomerDetailsDto;
|
|
11
|
+
productDetails?: ProductDetailsDto;
|
|
12
|
+
splitRevenue?: boolean;
|
|
13
|
+
splitWallets?: SplitWalletDto[];
|
|
14
|
+
fixedCurrency?: FixedCurrencyDto;
|
|
15
|
+
rateToken?: string;
|
|
16
|
+
discountToken?: string;
|
|
17
|
+
affiliateCode?: string;
|
|
18
|
+
}
|
|
@@ -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.SubmitTransactionDtoV0 = 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
|
+
const split_wallets_1 = require("../../split-wallets");
|
|
18
|
+
const fixed_currency_1 = require("../../fixed-currency");
|
|
19
|
+
const baseSubmitTransaction_dto_1 = require("./baseSubmitTransaction.dto");
|
|
20
|
+
class SubmitTransactionDtoV0 extends baseSubmitTransaction_dto_1.BaseSubmitTransactionDto {
|
|
21
|
+
}
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SubmitTransactionDtoV0.prototype, "paymentRequestId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], SubmitTransactionDtoV0.prototype, "quantity", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SubmitTransactionDtoV0.prototype, "time", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Type)(() => customer_details_1.CustomerDetailsDto),
|
|
39
|
+
(0, class_validator_1.ValidateNested)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
__metadata("design:type", customer_details_1.CustomerDetailsDto)
|
|
42
|
+
], SubmitTransactionDtoV0.prototype, "customerDetails", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsNotEmptyObject)(),
|
|
45
|
+
(0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
|
|
46
|
+
(0, class_validator_1.ValidateNested)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", product_details_1.ProductDetailsDto)
|
|
49
|
+
], SubmitTransactionDtoV0.prototype, "productDetails", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsBoolean)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], SubmitTransactionDtoV0.prototype, "splitRevenue", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Type)(() => split_wallets_1.SplitWalletDto),
|
|
57
|
+
(0, class_validator_1.ValidateNested)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], SubmitTransactionDtoV0.prototype, "splitWallets", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Type)(() => fixed_currency_1.FixedCurrencyDto),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", fixed_currency_1.FixedCurrencyDto)
|
|
65
|
+
], SubmitTransactionDtoV0.prototype, "fixedCurrency", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], SubmitTransactionDtoV0.prototype, "rateToken", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsString)(),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], SubmitTransactionDtoV0.prototype, "discountToken", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], SubmitTransactionDtoV0.prototype, "affiliateCode", void 0);
|
|
81
|
+
exports.SubmitTransactionDtoV0 = SubmitTransactionDtoV0;
|
|
82
|
+
//# sourceMappingURL=submitTransactionV0.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitTransactionV0.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAyC;AACzC,6DAA4D;AAC5D,2DAA0D;AAC1D,uDAAqD;AACrD,yDAAwD;AACxD,2EAAuE;AAEvE,MAAa,sBAAuB,SAAQ,oDAAwB;CAgDnE;AA/CC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACY;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACC;AAEd;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;+DAAC;AAErC;IAAC,IAAA,kCAAgB,GAAE;IAClB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;8DAAC;AAEnC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAc,CAAC;IAC1B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;;4DACmB;AAEhC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iCAAgB,CAAC;IAC5B,IAAA,4BAAU,GAAE;8BACG,iCAAgB;6DAAC;AAEjC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACU;AA/CzB,wDAgDC"}
|
|
@@ -9,14 +9,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.GenerateDiscordLinkDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
14
|
+
const payment_request_1 = require("../../payment-request");
|
|
15
|
+
class GenerateDiscordLinkDto {
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
17
|
-
(0, class_validator_1.IsOptional)(),
|
|
18
18
|
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
20
|
__metadata("design:type", String)
|
|
20
|
-
],
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
], GenerateDiscordLinkDto.prototype, "txId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(payment_request_1.PaymentRequestType),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], GenerateDiscordLinkDto.prototype, "txType", void 0);
|
|
27
|
+
exports.GenerateDiscordLinkDto = GenerateDiscordLinkDto;
|
|
28
|
+
//# sourceMappingURL=generateDiscordLink.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateDiscordLink.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/dtos/generateDiscordLink.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,2DAA2D;AAE3D,MAAa,sBAAsB;CAQlC;AAPC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACA;AAEb;IAAC,IAAA,wBAAM,EAAC,oCAAkB,CAAC;IAC1B,IAAA,4BAAU,GAAE;;sDACc;AAP7B,wDAQC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BaseUser } from './BaseUser.entity';
|
|
2
2
|
import type { BaseRole } from '../../role';
|
|
3
3
|
import type { BaseWallet } from '../../wallet';
|
|
4
|
+
import { BasePayoutWallet } from '../../payout-wallet';
|
|
4
5
|
export declare class ShallowEnrichedUser extends BaseUser {
|
|
5
6
|
roles: BaseRole[];
|
|
6
7
|
wallets: BaseWallet[];
|
|
8
|
+
payoutWallets: BasePayoutWallet[];
|
|
7
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShallowEnrichedUser.js","sourceRoot":"","sources":["../../../../../../src/domain/model/user/entities/ShallowEnrichedUser.ts"],"names":[],"mappings":";;;AAAA,uDAA6C;
|
|
1
|
+
{"version":3,"file":"ShallowEnrichedUser.js","sourceRoot":"","sources":["../../../../../../src/domain/model/user/entities/ShallowEnrichedUser.ts"],"names":[],"mappings":";;;AAAA,uDAA6C;AAK7C,MAAa,mBAAoB,SAAQ,0BAAQ;CAMhD;AAND,kDAMC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { Role } from '../../role';
|
|
2
2
|
import type { Wallet } from '../../wallet';
|
|
3
3
|
import { BaseUser } from './BaseUser.entity';
|
|
4
|
+
import { PayoutWallet } from '../../payout-wallet';
|
|
4
5
|
export declare class User extends BaseUser {
|
|
5
6
|
roles: Role[];
|
|
6
7
|
wallets: Wallet[];
|
|
8
|
+
payoutWallets: PayoutWallet[];
|
|
7
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../../../src/domain/model/user/entities/User.ts"],"names":[],"mappings":";;;AAEA,uDAA6C;
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../../../src/domain/model/user/entities/User.ts"],"names":[],"mappings":";;;AAEA,uDAA6C;AAG7C,MAAa,IAAK,SAAQ,0BAAQ;CAMjC;AAND,oBAMC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GeneralNetwork } from '../constants';
|
|
2
2
|
export declare class PublicKeyService {
|
|
3
3
|
static validateSolAddress(address: string): boolean;
|
|
4
4
|
static validateEvmAddress(address: string): boolean;
|
|
5
|
-
static validateBTCAddress(address: string,
|
|
5
|
+
static validateBTCAddress(address: string, generalNetwork: GeneralNetwork): boolean;
|
|
6
6
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PublicKeyService = void 0;
|
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
|
5
5
|
const bitcoinjs_lib_1 = require("bitcoinjs-lib");
|
|
6
|
-
const
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
7
|
class PublicKeyService {
|
|
8
8
|
static validateSolAddress(address) {
|
|
9
9
|
try {
|
|
@@ -18,8 +18,8 @@ class PublicKeyService {
|
|
|
18
18
|
const evmPKRegex = /^0x[0-9a-fA-F]{40}$/;
|
|
19
19
|
return evmPKRegex.test(address);
|
|
20
20
|
}
|
|
21
|
-
static validateBTCAddress(address,
|
|
22
|
-
const network =
|
|
21
|
+
static validateBTCAddress(address, generalNetwork) {
|
|
22
|
+
const network = generalNetwork === constants_1.GeneralNetwork.MAINNET
|
|
23
23
|
? bitcoinjs_lib_1.networks.bitcoin
|
|
24
24
|
: bitcoinjs_lib_1.networks.testnet;
|
|
25
25
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicKeyService.js","sourceRoot":"","sources":["../../../../src/domain/services/PublicKeyService.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,iDAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"PublicKeyService.js","sourceRoot":"","sources":["../../../../src/domain/services/PublicKeyService.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,iDAAsE;AACtE,4CAA8C;AAE9C,MAAa,gBAAgB;IAC3B,MAAM,CAAC,kBAAkB,CAAC,OAAe;QACvC,IAAI;YACF,MAAM,EAAE,GAAG,IAAI,mBAAS,CAAC,OAAO,CAAC,CAAC;YAClC,OAAO,EAAE,IAAI,IAAI,CAAC;SACnB;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,KAAK,CAAC;SACd;IACH,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,OAAe;QACvC,MAAM,UAAU,GAAG,qBAAqB,CAAC;QACzC,OAAO,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAOD,MAAM,CAAC,kBAAkB,CACvB,OAAe,EACf,cAA8B;QAE9B,MAAM,OAAO,GACX,cAAc,KAAK,0BAAc,CAAC,OAAO;YACvC,CAAC,CAAC,wBAAQ,CAAC,OAAO;YAClB,CAAC,CAAC,wBAAQ,CAAC,OAAO,CAAC;QACvB,IAAI;YACF,uBAAgB,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAClD,OAAO,IAAI,CAAC;SACb;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,KAAK,CAAC;SACd;IACH,CAAC;CACF;AAnCD,4CAmCC"}
|