@heliofi/common 0.1.465 → 0.1.467
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/domain/model/paylink/dtos/createPaylink.dto.d.ts +3 -0
- package/dist/src/domain/model/paylink/dtos/createPaylink.dto.js +12 -0
- package/dist/src/domain/model/paylink/dtos/createPaylink.dto.js.map +1 -1
- package/dist/src/domain/model/prepare-transaction/dtos/prepareBTCTransaction.dto.d.ts +2 -2
- package/dist/src/domain/model/prepare-transaction/dtos/prepareBTCTransaction.dto.js +2 -2
- package/dist/src/domain/model/prepare-transaction/dtos/prepareBTCTransaction.dto.js.map +1 -1
- package/dist/src/domain/model/prepare-transaction/dtos/prepareEvmTransaction.dto.d.ts +2 -2
- package/dist/src/domain/model/prepare-transaction/dtos/prepareEvmTransaction.dto.js +2 -2
- package/dist/src/domain/model/prepare-transaction/dtos/prepareEvmTransaction.dto.js.map +1 -1
- package/dist/src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.d.ts +3 -0
- package/dist/src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.js +12 -0
- package/dist/src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.js.map +1 -1
- package/dist/src/domain/model/stream-backend/dtos/createStreamBackend.dto.d.ts +3 -0
- package/dist/src/domain/model/stream-backend/dtos/createStreamBackend.dto.js +12 -0
- package/dist/src/domain/model/stream-backend/dtos/createStreamBackend.dto.js.map +1 -1
- package/dist/src/domain/services/PublicKeyService.js +29 -4
- package/dist/src/domain/services/PublicKeyService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/jest.config.js +1 -0
- package/package.json +3 -2
|
@@ -5,6 +5,7 @@ import { HelioPlayPropertiesDto } from '../../helio-play';
|
|
|
5
5
|
import { DiscountCodeDto } from '../../discount-codes';
|
|
6
6
|
import { LimitSaleType } from '../../../constants';
|
|
7
7
|
import { AffiliateDetailsDto } from '../../affiliates';
|
|
8
|
+
import { SourceIntegration } from '../../transaction-meta';
|
|
8
9
|
export declare type CreatePaylinkDtoDeserialized = Omit<CreatePaylinkDto, 'price'> & {
|
|
9
10
|
price: bigint;
|
|
10
11
|
};
|
|
@@ -18,4 +19,6 @@ export declare class CreatePaylinkDto extends CreatePaymentRequestDto {
|
|
|
18
19
|
helioPlayProperties?: HelioPlayPropertiesDto;
|
|
19
20
|
allowlist?: string;
|
|
20
21
|
affiliateDetails?: AffiliateDetailsDto;
|
|
22
|
+
sourceIntegration?: SourceIntegration;
|
|
23
|
+
sourceIntegrationVersion?: string;
|
|
21
24
|
}
|
|
@@ -19,6 +19,7 @@ const helio_play_1 = require("../../helio-play");
|
|
|
19
19
|
const discount_codes_1 = require("../../discount-codes");
|
|
20
20
|
const constants_1 = require("../../../constants");
|
|
21
21
|
const affiliates_1 = require("../../affiliates");
|
|
22
|
+
const transaction_meta_1 = require("../../transaction-meta");
|
|
22
23
|
class CreatePaylinkDto extends payment_request_1.CreatePaymentRequestDto {
|
|
23
24
|
}
|
|
24
25
|
__decorate([
|
|
@@ -69,5 +70,16 @@ __decorate([
|
|
|
69
70
|
(0, class_validator_1.ValidateNested)(),
|
|
70
71
|
__metadata("design:type", affiliates_1.AffiliateDetailsDto)
|
|
71
72
|
], CreatePaylinkDto.prototype, "affiliateDetails", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsEnum)(transaction_meta_1.SourceIntegration),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CreatePaylinkDto.prototype, "sourceIntegration", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsString)(),
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_validator_1.MaxLength)(100),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], CreatePaylinkDto.prototype, "sourceIntegrationVersion", void 0);
|
|
72
84
|
exports.CreatePaylinkDto = CreatePaylinkDto;
|
|
73
85
|
//# sourceMappingURL=createPaylink.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPaylink.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink/dtos/createPaylink.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"createPaylink.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink/dtos/createPaylink.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAyC;AACzC,uDAA4D;AAC5D,uDAAqD;AACrD,2DAAgE;AAChE,iDAA0D;AAC1D,yDAAuD;AACvD,kDAAmD;AACnD,iDAAuD;AACvD,6DAA2D;AAM3D,MAAa,gBAAiB,SAAQ,yCAAuB;CAgD5D;AA/CC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAqB,CAAC;IACjC,IAAA,gCAAc,GAAE;8BACP,qCAAqB;kDAAC;AAEhC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAc,CAAC;IAC1B,IAAA,4BAAU,GAAE;;sDACmB;AAEhC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAe,CAAC;IAC3B,IAAA,4BAAU,GAAE;;uDACqB;AAElC;IAAC,IAAA,wBAAM,EAAC,yBAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;uDACiB;AAE9B;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACQ;AAErB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAsB,CAAC;IAClC,IAAA,gCAAc,GAAE;8BACK,mCAAsB;6DAAC;AAE7C;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACM;AAEnB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAmB,CAAC;IAC/B,IAAA,gCAAc,GAAE;8BACE,gCAAmB;0DAAC;AAEvC;IAAC,IAAA,wBAAM,EAAC,oCAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;2DACyB;AAEtC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;kEACmB;AA/CpC,4CAgDC"}
|
|
@@ -10,6 +10,6 @@ export declare class PrepareBTCTransactionDto extends PreparePaymentRequestDto {
|
|
|
10
10
|
productDetails?: ProductDetailsDto;
|
|
11
11
|
fixedCurrencyRateToken?: string;
|
|
12
12
|
pricingCurrencyRateToken?: string;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
sourceIntegration?: SourceIntegration;
|
|
14
|
+
sourceIntegrationVersion?: string;
|
|
15
15
|
}
|
|
@@ -59,12 +59,12 @@ __decorate([
|
|
|
59
59
|
(0, class_validator_1.IsEnum)(transaction_meta_1.SourceIntegration),
|
|
60
60
|
(0, class_validator_1.IsOptional)(),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
|
-
], PrepareBTCTransactionDto.prototype, "
|
|
62
|
+
], PrepareBTCTransactionDto.prototype, "sourceIntegration", void 0);
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, class_validator_1.IsString)(),
|
|
65
65
|
(0, class_validator_1.IsOptional)(),
|
|
66
66
|
(0, class_validator_1.MaxLength)(100),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
|
-
], PrepareBTCTransactionDto.prototype, "
|
|
68
|
+
], PrepareBTCTransactionDto.prototype, "sourceIntegrationVersion", void 0);
|
|
69
69
|
exports.PrepareBTCTransactionDto = PrepareBTCTransactionDto;
|
|
70
70
|
//# sourceMappingURL=prepareBTCTransaction.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareBTCTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareBTCTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,2DAA0D;AAC1D,6DAA4D;AAC5D,6DAA2D;AAE3D,MAAa,wBAAyB,SAAQ,kDAAwB;CAwCrE;AAvCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAErB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;wDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACK;AAElB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;iEAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;gEAAC;AAGnC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACqB;AAElC;IAAC,IAAA,wBAAM,EAAC,oCAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;
|
|
1
|
+
{"version":3,"file":"prepareBTCTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareBTCTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,2DAA0D;AAC1D,6DAA4D;AAC5D,6DAA2D;AAE3D,MAAa,wBAAyB,SAAQ,kDAAwB;CAwCrE;AAvCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAErB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;wDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACK;AAElB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;iEAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;gEAAC;AAGnC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACqB;AAElC;IAAC,IAAA,wBAAM,EAAC,oCAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;mEACyB;AAEtC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;0EACmB;AAvCpC,4DAwCC"}
|
|
@@ -11,6 +11,6 @@ export declare class PrepareEvmTransactionDto extends PreparePaymentRequestDto {
|
|
|
11
11
|
customerDetails?: CustomerDetailsDto;
|
|
12
12
|
productDetails?: ProductDetailsDto;
|
|
13
13
|
pricingCurrencyRateToken?: string;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
sourceIntegration?: SourceIntegration;
|
|
15
|
+
sourceIntegrationVersion?: string;
|
|
16
16
|
}
|
|
@@ -64,12 +64,12 @@ __decorate([
|
|
|
64
64
|
(0, class_validator_1.IsEnum)(transaction_meta_1.SourceIntegration),
|
|
65
65
|
(0, class_validator_1.IsOptional)(),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
|
-
], PrepareEvmTransactionDto.prototype, "
|
|
67
|
+
], PrepareEvmTransactionDto.prototype, "sourceIntegration", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, class_validator_1.IsString)(),
|
|
70
70
|
(0, class_validator_1.IsOptional)(),
|
|
71
71
|
(0, class_validator_1.MaxLength)(100),
|
|
72
72
|
__metadata("design:type", String)
|
|
73
|
-
], PrepareEvmTransactionDto.prototype, "
|
|
73
|
+
], PrepareEvmTransactionDto.prototype, "sourceIntegrationVersion", void 0);
|
|
74
74
|
exports.PrepareEvmTransactionDto = PrepareEvmTransactionDto;
|
|
75
75
|
//# sourceMappingURL=prepareEvmTransaction.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareEvmTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareEvmTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,2DAA0D;AAC1D,6DAA4D;AAC5D,6DAA2D;AAE3D,MAAa,wBAAyB,SAAQ,kDAAwB;CA4CrE;AA3CC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;wDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACK;AAGlB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;iEAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;gEAAC;AAEnC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACqB;AAElC;IAAC,IAAA,wBAAM,EAAC,oCAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;
|
|
1
|
+
{"version":3,"file":"prepareEvmTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareEvmTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,2DAA0D;AAC1D,6DAA4D;AAC5D,6DAA2D;AAE3D,MAAa,wBAAyB,SAAQ,kDAAwB;CA4CrE;AA3CC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;wDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACK;AAGlB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;iEAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;gEAAC;AAEnC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACqB;AAElC;IAAC,IAAA,wBAAM,EAAC,oCAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;mEACyB;AAEtC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;0EACmB;AA3CpC,4DA4CC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PreparePaymentRequestDto } from '../../prepare-payment-request';
|
|
2
2
|
import { CustomerDetailsDto } from '../../customer-details';
|
|
3
3
|
import { ProductDetailsDto } from '../../product-details';
|
|
4
|
+
import { SourceIntegration } from '../../transaction-meta';
|
|
4
5
|
export declare class PrepareTransactionDto extends PreparePaymentRequestDto {
|
|
5
6
|
currency: string;
|
|
6
7
|
amount?: string;
|
|
@@ -11,4 +12,6 @@ export declare class PrepareTransactionDto extends PreparePaymentRequestDto {
|
|
|
11
12
|
customerDetails?: CustomerDetailsDto;
|
|
12
13
|
productDetails?: ProductDetailsDto;
|
|
13
14
|
pricingCurrencyRateToken?: string;
|
|
15
|
+
sourceIntegration?: SourceIntegration;
|
|
16
|
+
sourceIntegrationVersion?: string;
|
|
14
17
|
}
|
|
@@ -15,6 +15,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const prepare_payment_request_1 = require("../../prepare-payment-request");
|
|
16
16
|
const customer_details_1 = require("../../customer-details");
|
|
17
17
|
const product_details_1 = require("../../product-details");
|
|
18
|
+
const transaction_meta_1 = require("../../transaction-meta");
|
|
18
19
|
class PrepareTransactionDto extends prepare_payment_request_1.PreparePaymentRequestDto {
|
|
19
20
|
}
|
|
20
21
|
__decorate([
|
|
@@ -64,5 +65,16 @@ __decorate([
|
|
|
64
65
|
(0, class_validator_1.IsOptional)(),
|
|
65
66
|
__metadata("design:type", String)
|
|
66
67
|
], PrepareTransactionDto.prototype, "pricingCurrencyRateToken", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsEnum)(transaction_meta_1.SourceIntegration),
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], PrepareTransactionDto.prototype, "sourceIntegration", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.MaxLength)(100),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], PrepareTransactionDto.prototype, "sourceIntegrationVersion", void 0);
|
|
67
79
|
exports.PrepareTransactionDto = PrepareTransactionDto;
|
|
68
80
|
//# sourceMappingURL=prepareTransaction.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"prepareTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,6DAA4D;AAC5D,2DAA0D;AAC1D,6DAA2D;AAE3D,MAAa,qBAAsB,SAAQ,kDAAwB;CAgDlE;AA/CC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;qDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAGlB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;8DAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;6DAAC;AAEnC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACqB;AAElC;IAAC,IAAA,wBAAM,EAAC,oCAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;gEACyB;AAEtC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;uEACmB;AA/CpC,sDAgDC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CustomerDetailsDto } from '../../customer-details';
|
|
2
2
|
import { ProductDetailsDto } from '../../product-details';
|
|
3
|
+
import { SourceIntegration } from '../../transaction-meta';
|
|
3
4
|
export declare class CreateStreamBackendDto {
|
|
4
5
|
signedTransaction: string;
|
|
5
6
|
currency: string;
|
|
@@ -7,4 +8,6 @@ export declare class CreateStreamBackendDto {
|
|
|
7
8
|
productDetails: ProductDetailsDto;
|
|
8
9
|
rateToken?: string;
|
|
9
10
|
streamToken?: string;
|
|
11
|
+
sourceIntegration?: SourceIntegration;
|
|
12
|
+
sourceIntegrationVersion?: string;
|
|
10
13
|
}
|
|
@@ -14,6 +14,7 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const customer_details_1 = require("../../customer-details");
|
|
16
16
|
const product_details_1 = require("../../product-details");
|
|
17
|
+
const transaction_meta_1 = require("../../transaction-meta");
|
|
17
18
|
class CreateStreamBackendDto {
|
|
18
19
|
}
|
|
19
20
|
__decorate([
|
|
@@ -48,5 +49,16 @@ __decorate([
|
|
|
48
49
|
(0, class_validator_1.IsOptional)(),
|
|
49
50
|
__metadata("design:type", String)
|
|
50
51
|
], CreateStreamBackendDto.prototype, "streamToken", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsEnum)(transaction_meta_1.SourceIntegration),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CreateStreamBackendDto.prototype, "sourceIntegration", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.MaxLength)(100),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CreateStreamBackendDto.prototype, "sourceIntegrationVersion", void 0);
|
|
51
63
|
exports.CreateStreamBackendDto = CreateStreamBackendDto;
|
|
52
64
|
//# sourceMappingURL=createStreamBackend.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createStreamBackend.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/stream-backend/dtos/createStreamBackend.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"createStreamBackend.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/stream-backend/dtos/createStreamBackend.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AACzC,6DAA4D;AAC5D,2DAA0D;AAC1D,6DAA2D;AAE3D,MAAa,sBAAsB;CAmClC;AAlCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACa;AAE1B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;8BACA,qCAAkB;+DAAC;AAEpC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;8BACD,mCAAiB;8DAAC;AAElC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACQ;AAErB;IAAC,IAAA,wBAAM,EAAC,oCAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;iEACyB;AAEtC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;wEACmB;AAlCpC,wDAmCC"}
|
|
@@ -1,9 +1,34 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.PublicKeyService = void 0;
|
|
4
27
|
const web3_js_1 = require("@solana/web3.js");
|
|
5
|
-
const
|
|
28
|
+
const bitcoinjs = __importStar(require("bitcoinjs-lib"));
|
|
29
|
+
const ecc = __importStar(require("tiny-secp256k1"));
|
|
6
30
|
const constants_1 = require("../constants");
|
|
31
|
+
bitcoinjs.initEccLib(ecc);
|
|
7
32
|
class PublicKeyService {
|
|
8
33
|
static validateSolAddress(address) {
|
|
9
34
|
try {
|
|
@@ -20,10 +45,10 @@ class PublicKeyService {
|
|
|
20
45
|
}
|
|
21
46
|
static validateBTCAddress(address, generalNetwork) {
|
|
22
47
|
const network = generalNetwork === constants_1.GeneralNetwork.MAINNET
|
|
23
|
-
?
|
|
24
|
-
:
|
|
48
|
+
? bitcoinjs.networks.bitcoin
|
|
49
|
+
: bitcoinjs.networks.testnet;
|
|
25
50
|
try {
|
|
26
|
-
|
|
51
|
+
bitcoinjs.address.toOutputScript(address, network);
|
|
27
52
|
return true;
|
|
28
53
|
}
|
|
29
54
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicKeyService.js","sourceRoot":"","sources":["../../../../src/domain/services/PublicKeyService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PublicKeyService.js","sourceRoot":"","sources":["../../../../src/domain/services/PublicKeyService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA4C;AAC5C,yDAA2C;AAC3C,oDAAsC;AACtC,4CAA8C;AAE9C,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AAE1B,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,SAAS,CAAC,QAAQ,CAAC,OAAO;YAC5B,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC;QACjC,IAAI;YACF,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACnD,OAAO,IAAI,CAAC;SACb;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,KAAK,CAAC;SACd;IACH,CAAC;CACF;AAnCD,4CAmCC"}
|