@heliofi/common 0.2.239 → 0.2.240
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/charge/dtos/partialUpdateCharge.dto.d.ts +5 -0
- package/dist/src/domain/model/charge/dtos/partialUpdateCharge.dto.js +25 -0
- package/dist/src/domain/model/charge/dtos/partialUpdateCharge.dto.js.map +1 -1
- package/dist/src/domain/model/charge/dtos/updateCharge.dto.d.ts +0 -5
- package/dist/src/domain/model/charge/dtos/updateCharge.dto.js +0 -23
- package/dist/src/domain/model/charge/dtos/updateCharge.dto.js.map +1 -1
- package/dist/src/domain/model/currency/entities/SlimCurrencyWithBlockchain.entity.d.ts +5 -0
- package/dist/src/domain/model/currency/entities/SlimCurrencyWithBlockchain.entity.js +3 -0
- package/dist/src/domain/model/currency/entities/SlimCurrencyWithBlockchain.entity.js.map +1 -0
- package/dist/src/domain/model/currency/entities/index.d.ts +1 -0
- package/dist/src/domain/model/currency/entities/index.js +1 -0
- package/dist/src/domain/model/currency/entities/index.js.map +1 -1
- package/dist/src/domain/model/deposit/entities/DepositCustomerEnriched.entity.d.ts +2 -0
- package/dist/src/domain/model/deposit/entities/DepositCustomerEnriched.entity.js.map +1 -1
- package/dist/src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.d.ts +8 -0
- package/dist/src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.js +7 -0
- package/dist/src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.js.map +1 -0
- package/dist/src/domain/model/deposit/entities/index.d.ts +1 -0
- package/dist/src/domain/model/deposit/entities/index.js +1 -0
- package/dist/src/domain/model/deposit/entities/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { CustomerDetailsDto } from '../../customer-details';
|
|
2
|
+
import { ProductDetailsDto } from '../../product-details';
|
|
1
3
|
export declare class PartialUpdateChargeDto {
|
|
2
4
|
quantity?: number;
|
|
5
|
+
customerDetails?: CustomerDetailsDto;
|
|
6
|
+
productDetails?: ProductDetailsDto;
|
|
7
|
+
additionalProductDetails?: ProductDetailsDto[];
|
|
3
8
|
}
|
|
@@ -11,6 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PartialUpdateChargeDto = void 0;
|
|
13
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");
|
|
14
17
|
class PartialUpdateChargeDto {
|
|
15
18
|
}
|
|
16
19
|
exports.PartialUpdateChargeDto = PartialUpdateChargeDto;
|
|
@@ -19,4 +22,26 @@ __decorate([
|
|
|
19
22
|
(0, class_validator_1.IsNumber)(),
|
|
20
23
|
__metadata("design:type", Number)
|
|
21
24
|
], PartialUpdateChargeDto.prototype, "quantity", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_transformer_1.Type)(() => customer_details_1.CustomerDetailsDto),
|
|
28
|
+
(0, class_validator_1.IsObject)(),
|
|
29
|
+
(0, class_validator_1.ValidateNested)(),
|
|
30
|
+
__metadata("design:type", customer_details_1.CustomerDetailsDto)
|
|
31
|
+
], PartialUpdateChargeDto.prototype, "customerDetails", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
|
|
35
|
+
(0, class_validator_1.IsObject)(),
|
|
36
|
+
(0, class_validator_1.ValidateNested)(),
|
|
37
|
+
__metadata("design:type", product_details_1.ProductDetailsDto)
|
|
38
|
+
], PartialUpdateChargeDto.prototype, "productDetails", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsArray)(),
|
|
42
|
+
(0, class_validator_1.ArrayMaxSize)(1),
|
|
43
|
+
(0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
|
|
44
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
45
|
+
__metadata("design:type", Array)
|
|
46
|
+
], PartialUpdateChargeDto.prototype, "additionalProductDetails", void 0);
|
|
22
47
|
//# sourceMappingURL=partialUpdateCharge.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partialUpdateCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/partialUpdateCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"partialUpdateCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/partialUpdateCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AACzC,6DAA4D;AAC5D,2DAA0D;AAE1D,MAAa,sBAAsB;CAuBlC;AAvBD,wDAuBC;AApBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO;AAMlB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,GAAE;8BACC,qCAAkB;+DAAC;AAMrC;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,GAAE;8BACA,mCAAiB;8DAAC;AAOnC;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wEACgB"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { PartialUpdateChargeDto } from './partialUpdateCharge.dto';
|
|
2
|
-
import { CustomerDetailsDto } from '../../customer-details';
|
|
3
|
-
import { ProductDetailsDto } from '../../product-details';
|
|
4
2
|
export declare class UpdateChargeDto extends PartialUpdateChargeDto {
|
|
5
3
|
amount: string;
|
|
6
4
|
currency: string;
|
|
7
5
|
pricingCurrencyRateToken: string;
|
|
8
|
-
customerDetails?: CustomerDetailsDto;
|
|
9
|
-
productDetails?: ProductDetailsDto;
|
|
10
|
-
additionalProductDetails?: ProductDetailsDto[];
|
|
11
6
|
}
|
|
@@ -11,10 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateChargeDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
14
|
const partialUpdateCharge_dto_1 = require("./partialUpdateCharge.dto");
|
|
16
|
-
const customer_details_1 = require("../../customer-details");
|
|
17
|
-
const product_details_1 = require("../../product-details");
|
|
18
15
|
class UpdateChargeDto extends partialUpdateCharge_dto_1.PartialUpdateChargeDto {
|
|
19
16
|
}
|
|
20
17
|
exports.UpdateChargeDto = UpdateChargeDto;
|
|
@@ -33,24 +30,4 @@ __decorate([
|
|
|
33
30
|
(0, class_validator_1.IsNotEmpty)(),
|
|
34
31
|
__metadata("design:type", String)
|
|
35
32
|
], UpdateChargeDto.prototype, "pricingCurrencyRateToken", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_transformer_1.Type)(() => customer_details_1.CustomerDetailsDto),
|
|
38
|
-
(0, class_validator_1.ValidateNested)(),
|
|
39
|
-
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
__metadata("design:type", customer_details_1.CustomerDetailsDto)
|
|
41
|
-
], UpdateChargeDto.prototype, "customerDetails", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
|
|
44
|
-
(0, class_validator_1.ValidateNested)(),
|
|
45
|
-
(0, class_validator_1.IsOptional)(),
|
|
46
|
-
__metadata("design:type", product_details_1.ProductDetailsDto)
|
|
47
|
-
], UpdateChargeDto.prototype, "productDetails", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
(0, class_validator_1.IsArray)(),
|
|
51
|
-
(0, class_validator_1.ArrayMaxSize)(1),
|
|
52
|
-
(0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
|
|
53
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
54
|
-
__metadata("design:type", Array)
|
|
55
|
-
], UpdateChargeDto.prototype, "additionalProductDetails", void 0);
|
|
56
33
|
//# sourceMappingURL=updateCharge.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/updateCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"updateCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/updateCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,uEAAmE;AAEnE,MAAa,eAAgB,SAAQ,gDAAsB;CAY1D;AAZD,0CAYC;AATC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACoB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseBlockchain } from '../../blockchain';
|
|
2
|
+
import { BaseCurrency } from './BaseCurrency.entity';
|
|
3
|
+
export type SlimCurrencyWithBlockchain = Omit<BaseCurrency, 'order' | 'orderingType' | 'features' | 'minDecimals' | 'iconUrl'> & {
|
|
4
|
+
blockchain: BaseBlockchain;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlimCurrencyWithBlockchain.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/SlimCurrencyWithBlockchain.entity.ts"],"names":[],"mappings":""}
|
|
@@ -23,4 +23,5 @@ __exportStar(require("./BlockchainCurrencyFeature"), exports);
|
|
|
23
23
|
__exportStar(require("./CurrencyTokenProgram"), exports);
|
|
24
24
|
__exportStar(require("./CurrencyInfo.entity"), exports);
|
|
25
25
|
__exportStar(require("./CurrencyWithBlockchain.entity"), exports);
|
|
26
|
+
__exportStar(require("./SlimCurrencyWithBlockchain.entity"), exports);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,oDAAkC;AAClC,8DAA4C;AAC5C,yDAAuC;AACvC,wDAAsC;AACtC,kEAAgD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,oDAAkC;AAClC,8DAA4C;AAC5C,yDAAuC;AACvC,wDAAsC;AACtC,kEAAgD;AAChD,sEAAoD"}
|
|
@@ -3,6 +3,7 @@ import { DepositCustomerType } from '../constants/DepositCustomerType';
|
|
|
3
3
|
import { DepositEnrichedEntity } from './DepositEnriched.entity';
|
|
4
4
|
import { DepositWalletEnrichedEntity } from './DepositWalletEnriched.entity';
|
|
5
5
|
import { DepositCustomerVirtualAccountDetails } from './DepositCustomerVirtualAccountDetails.entity';
|
|
6
|
+
import { DepositCustomerSwapRoute } from './DepositCustomerSwapRoute.entity';
|
|
6
7
|
export declare class DepositCustomerEnrichedEntity extends Entity {
|
|
7
8
|
id: string;
|
|
8
9
|
deposit: DepositEnrichedEntity;
|
|
@@ -26,4 +27,5 @@ export declare class DepositCustomerEnrichedEntity extends Entity {
|
|
|
26
27
|
};
|
|
27
28
|
virtualAccountDetails?: DepositCustomerVirtualAccountDetails;
|
|
28
29
|
disabled: boolean;
|
|
30
|
+
swapRoutes?: DepositCustomerSwapRoute[];
|
|
29
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCustomerEnriched.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/DepositCustomerEnriched.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;
|
|
1
|
+
{"version":3,"file":"DepositCustomerEnriched.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/DepositCustomerEnriched.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAStC,MAAa,6BAA8B,SAAQ,eAAM;CAwCxD;AAxCD,sEAwCC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SlimCurrencyWithBlockchain } from '../../currency/entities/SlimCurrencyWithBlockchain.entity';
|
|
2
|
+
export declare class DepositCustomerSwapRoute {
|
|
3
|
+
id: string;
|
|
4
|
+
fromCurrency: SlimCurrencyWithBlockchain;
|
|
5
|
+
toCurrencyId: string;
|
|
6
|
+
available: boolean;
|
|
7
|
+
minAmountUsd: number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DepositCustomerSwapRoute = void 0;
|
|
4
|
+
class DepositCustomerSwapRoute {
|
|
5
|
+
}
|
|
6
|
+
exports.DepositCustomerSwapRoute = DepositCustomerSwapRoute;
|
|
7
|
+
//# sourceMappingURL=DepositCustomerSwapRoute.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositCustomerSwapRoute.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/DepositCustomerSwapRoute.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,wBAAwB;CAUpC;AAVD,4DAUC"}
|
|
@@ -12,6 +12,7 @@ export * from './DepositWithStats.entity';
|
|
|
12
12
|
export * from './PlainDeposit';
|
|
13
13
|
export * from './DepositSearchResult.entity';
|
|
14
14
|
export * from './DepositCurrenciesExchangeRate.entity';
|
|
15
|
+
export * from './DepositCustomerSwapRoute.entity';
|
|
15
16
|
export * from './DepositWalletEnrichedWithDepositCustomer.entity';
|
|
16
17
|
export * from './DepositWalletEnrichedWithDeposit.entity';
|
|
17
18
|
export * from './DepositCustomerWithDepositWallets.entity';
|
|
@@ -28,6 +28,7 @@ __exportStar(require("./DepositWithStats.entity"), exports);
|
|
|
28
28
|
__exportStar(require("./PlainDeposit"), exports);
|
|
29
29
|
__exportStar(require("./DepositSearchResult.entity"), exports);
|
|
30
30
|
__exportStar(require("./DepositCurrenciesExchangeRate.entity"), exports);
|
|
31
|
+
__exportStar(require("./DepositCustomerSwapRoute.entity"), exports);
|
|
31
32
|
__exportStar(require("./DepositWalletEnrichedWithDepositCustomer.entity"), exports);
|
|
32
33
|
__exportStar(require("./DepositWalletEnrichedWithDeposit.entity"), exports);
|
|
33
34
|
__exportStar(require("./DepositCustomerWithDepositWallets.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,sEAAoD;AACpD,gFAA8D;AAC9D,iEAA+C;AAC/C,2DAAyC;AACzC,mDAAiC;AACjC,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,yDAAuC;AACvC,4DAA0C;AAC1C,iDAA+B;AAC/B,+DAA6C;AAC7C,yEAAuD;AACvD,oFAAkE;AAClE,4EAA0D;AAC1D,6EAA2D;AAC3D,yDAAuC;AACvC,yEAAuD;AACvD,qEAAmD;AACnD,8DAA4C;AAC5C,0DAAwC;AACxC,iEAA+C;AAC/C,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,+EAA6D;AAC7D,oEAAkD;AAClD,qDAAmC;AACnC,gEAA8C;AAC9C,sEAAoD;AACpD,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,sEAAoD;AACpD,gFAA8D;AAC9D,iEAA+C;AAC/C,2DAAyC;AACzC,mDAAiC;AACjC,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,yDAAuC;AACvC,4DAA0C;AAC1C,iDAA+B;AAC/B,+DAA6C;AAC7C,yEAAuD;AACvD,oEAAkD;AAClD,oFAAkE;AAClE,4EAA0D;AAC1D,6EAA2D;AAC3D,yDAAuC;AACvC,yEAAuD;AACvD,qEAAmD;AACnD,8DAA4C;AAC5C,0DAAwC;AACxC,iEAA+C;AAC/C,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,+EAA6D;AAC7D,oEAAkD;AAClD,qDAAmC;AACnC,gEAA8C;AAC9C,sEAAoD;AACpD,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C"}
|