@heliofi/common 0.1.319 → 0.1.320

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 (40) hide show
  1. package/dist/src/domain/model/auth/dtos/signOn.dto.d.ts +0 -2
  2. package/dist/src/domain/model/auth/dtos/signOn.dto.js +0 -8
  3. package/dist/src/domain/model/auth/dtos/signOn.dto.js.map +1 -1
  4. package/dist/src/domain/model/prepare-transaction/dtos/index.d.ts +0 -1
  5. package/dist/src/domain/model/prepare-transaction/dtos/index.js +1 -3
  6. package/dist/src/domain/model/prepare-transaction/dtos/index.js.map +1 -1
  7. package/dist/src/domain/model/wallet/dtos/index.d.ts +0 -2
  8. package/dist/src/domain/model/wallet/dtos/index.js +0 -2
  9. package/dist/src/domain/model/wallet/dtos/index.js.map +1 -1
  10. package/dist/src/domain/model/wallet/entities/BaseWallet.entity.d.ts +0 -2
  11. package/dist/src/domain/model/wallet/entities/BaseWallet.entity.js.map +1 -1
  12. package/dist/src/domain/model/wallet/entities/index.d.ts +0 -4
  13. package/dist/src/domain/model/wallet/entities/index.js +0 -4
  14. package/dist/src/domain/model/wallet/entities/index.js.map +1 -1
  15. package/dist/tsconfig.tsbuildinfo +1 -1
  16. package/package.json +2 -2
  17. package/dist/src/domain/model/prepare-transaction/dtos/prepareBTCTransaction.dto.d.ts +0 -13
  18. package/dist/src/domain/model/prepare-transaction/dtos/prepareBTCTransaction.dto.js +0 -63
  19. package/dist/src/domain/model/prepare-transaction/dtos/prepareBTCTransaction.dto.js.map +0 -1
  20. package/dist/src/domain/model/wallet/dtos/BTCPaymentAddress.dto.d.ts +0 -5
  21. package/dist/src/domain/model/wallet/dtos/BTCPaymentAddress.dto.js +0 -28
  22. package/dist/src/domain/model/wallet/dtos/BTCPaymentAddress.dto.js.map +0 -1
  23. package/dist/src/domain/model/wallet/dtos/BTCProperties.dto.d.ts +0 -5
  24. package/dist/src/domain/model/wallet/dtos/BTCProperties.dto.js +0 -32
  25. package/dist/src/domain/model/wallet/dtos/BTCProperties.dto.js.map +0 -1
  26. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.d.ts +0 -6
  27. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.entity.d.ts +0 -6
  28. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.entity.js +0 -8
  29. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.entity.js.map +0 -1
  30. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.js +0 -8
  31. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.js.map +0 -1
  32. package/dist/src/domain/model/wallet/entities/BTCPaymentAddressVersion.d.ts +0 -5
  33. package/dist/src/domain/model/wallet/entities/BTCPaymentAddressVersion.js +0 -10
  34. package/dist/src/domain/model/wallet/entities/BTCPaymentAddressVersion.js.map +0 -1
  35. package/dist/src/domain/model/wallet/entities/BTCProperties.d.ts +0 -6
  36. package/dist/src/domain/model/wallet/entities/BTCProperties.js +0 -8
  37. package/dist/src/domain/model/wallet/entities/BTCProperties.js.map +0 -1
  38. package/dist/src/domain/model/wallet/entities/WalletOrigin.d.ts +0 -3
  39. package/dist/src/domain/model/wallet/entities/WalletOrigin.js +0 -8
  40. package/dist/src/domain/model/wallet/entities/WalletOrigin.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heliofi/common",
3
3
  "private": false,
4
- "version": "0.1.319",
4
+ "version": "0.1.320",
5
5
  "description": "Common package",
6
6
  "main": "dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -26,5 +26,5 @@
26
26
  "ts-loader": "^9.3.1",
27
27
  "typescript": "^4.8.2"
28
28
  },
29
- "gitHead": "37d5debe0d1383fd77afc2793626ee6db24da7d5"
29
+ "gitHead": "b0d17e1cdb3cbb5a1027048b242c6c9ae9f06476"
30
30
  }
@@ -1,13 +0,0 @@
1
- import { PreparePaymentRequestDto } from '../../prepare-payment-request';
2
- import { ProductDetailsDto } from '../../product-details';
3
- import { CustomerDetailsDto } from '../../customer-details';
4
- export declare class PrepareBTCTransactionDto extends PreparePaymentRequestDto {
5
- paymentAddress: string;
6
- publicKey: string;
7
- amount?: string;
8
- quantity?: number;
9
- fixedCurrencyRateToken?: string;
10
- discountToken?: string;
11
- customerDetails?: CustomerDetailsDto;
12
- productDetails?: ProductDetailsDto;
13
- }
@@ -1,63 +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.PrepareBTCTransactionDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const prepare_payment_request_1 = require("../../prepare-payment-request");
16
- const product_details_1 = require("../../product-details");
17
- const customer_details_1 = require("../../customer-details");
18
- class PrepareBTCTransactionDto extends prepare_payment_request_1.PreparePaymentRequestDto {
19
- }
20
- __decorate([
21
- (0, class_validator_1.IsString)(),
22
- (0, class_validator_1.IsNotEmpty)(),
23
- __metadata("design:type", String)
24
- ], PrepareBTCTransactionDto.prototype, "paymentAddress", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.IsNotEmpty)(),
28
- __metadata("design:type", String)
29
- ], PrepareBTCTransactionDto.prototype, "publicKey", void 0);
30
- __decorate([
31
- (0, class_validator_1.IsOptional)(),
32
- (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
33
- __metadata("design:type", String)
34
- ], PrepareBTCTransactionDto.prototype, "amount", void 0);
35
- __decorate([
36
- (0, class_validator_1.IsNumber)(),
37
- (0, class_validator_1.IsOptional)(),
38
- __metadata("design:type", Number)
39
- ], PrepareBTCTransactionDto.prototype, "quantity", void 0);
40
- __decorate([
41
- (0, class_validator_1.IsString)(),
42
- (0, class_validator_1.IsOptional)(),
43
- __metadata("design:type", String)
44
- ], PrepareBTCTransactionDto.prototype, "fixedCurrencyRateToken", void 0);
45
- __decorate([
46
- (0, class_validator_1.IsString)(),
47
- (0, class_validator_1.IsOptional)(),
48
- __metadata("design:type", String)
49
- ], PrepareBTCTransactionDto.prototype, "discountToken", void 0);
50
- __decorate([
51
- (0, class_transformer_1.Type)(() => customer_details_1.CustomerDetailsDto),
52
- (0, class_validator_1.ValidateNested)(),
53
- (0, class_validator_1.IsOptional)(),
54
- __metadata("design:type", customer_details_1.CustomerDetailsDto)
55
- ], PrepareBTCTransactionDto.prototype, "customerDetails", void 0);
56
- __decorate([
57
- (0, class_transformer_1.Type)(() => product_details_1.ProductDetailsDto),
58
- (0, class_validator_1.ValidateNested)(),
59
- (0, class_validator_1.IsOptional)(),
60
- __metadata("design:type", product_details_1.ProductDetailsDto)
61
- ], PrepareBTCTransactionDto.prototype, "productDetails", void 0);
62
- exports.PrepareBTCTransactionDto = PrepareBTCTransactionDto;
63
- //# sourceMappingURL=prepareBTCTransaction.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prepareBTCTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareBTCTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,2DAA0D;AAC1D,6DAA4D;AAE5D,MAAa,wBAAyB,SAAQ,kDAAwB;CAkCrE;AAjCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACK;AAElB;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,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;AAjCrC,4DAkCC"}
@@ -1,5 +0,0 @@
1
- import { BTCPaymentAddressVersion } from '../entities';
2
- export declare class BTCPaymentAddressDto {
3
- address: string;
4
- version?: BTCPaymentAddressVersion;
5
- }
@@ -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.BTCPaymentAddressDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const entities_1 = require("../entities");
15
- class BTCPaymentAddressDto {
16
- }
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- __metadata("design:type", String)
20
- ], BTCPaymentAddressDto.prototype, "address", void 0);
21
- __decorate([
22
- (0, class_validator_1.IsString)(),
23
- (0, class_validator_1.IsOptional)(),
24
- (0, class_validator_1.IsEnum)(entities_1.BTCPaymentAddressVersion),
25
- __metadata("design:type", String)
26
- ], BTCPaymentAddressDto.prototype, "version", void 0);
27
- exports.BTCPaymentAddressDto = BTCPaymentAddressDto;
28
- //# sourceMappingURL=BTCPaymentAddress.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BTCPaymentAddress.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/dtos/BTCPaymentAddress.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,0CAAuD;AAEvD,MAAa,oBAAoB;CAQhC;AAPC;IAAC,IAAA,0BAAQ,GAAE;;qDACK;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,mCAAwB,CAAC;;qDACE;AAPrC,oDAQC"}
@@ -1,5 +0,0 @@
1
- import { BTCPaymentAddressDto } from './BTCPaymentAddress.dto';
2
- export declare class BTCPropertiesDto {
3
- paymentAddresses: BTCPaymentAddressDto[];
4
- ordinalsAddresses: string[];
5
- }
@@ -1,32 +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.BTCPropertiesDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const BTCPaymentAddress_dto_1 = require("./BTCPaymentAddress.dto");
16
- class BTCPropertiesDto {
17
- }
18
- __decorate([
19
- (0, class_validator_1.IsArray)(),
20
- (0, class_validator_1.ArrayMinSize)(1),
21
- (0, class_transformer_1.Type)(() => BTCPaymentAddress_dto_1.BTCPaymentAddressDto),
22
- (0, class_validator_1.ValidateNested)({ each: true }),
23
- __metadata("design:type", Array)
24
- ], BTCPropertiesDto.prototype, "paymentAddresses", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsArray)(),
27
- (0, class_validator_1.ArrayMinSize)(1),
28
- (0, class_validator_1.IsString)({ each: true }),
29
- __metadata("design:type", Array)
30
- ], BTCPropertiesDto.prototype, "ordinalsAddresses", void 0);
31
- exports.BTCPropertiesDto = BTCPropertiesDto;
32
- //# sourceMappingURL=BTCProperties.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BTCProperties.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/dtos/BTCProperties.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAKyB;AACzB,yDAAyC;AACzC,mEAA+D;AAE/D,MAAa,gBAAgB;CAW5B;AAVC;IAAC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4CAAoB,CAAC;IAChC,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;0DACU;AAEzC;IAAC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACG;AAV9B,4CAWC"}
@@ -1,6 +0,0 @@
1
- import { Entity } from '../../entity';
2
- import { BTCPaymentAddressVersion } from './BTCPaymentAddressVersion';
3
- export declare class BTCPaymentAddress extends Entity {
4
- address: string;
5
- version?: BTCPaymentAddressVersion;
6
- }
@@ -1,6 +0,0 @@
1
- import { Entity } from '../../entity';
2
- import { BTCPaymentAddressVersion } from './BTCPaymentAddressVersion';
3
- export declare class BTCPaymentAddress extends Entity {
4
- address: string;
5
- version?: BTCPaymentAddressVersion;
6
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BTCPaymentAddress = void 0;
4
- const entity_1 = require("../../entity");
5
- class BTCPaymentAddress extends entity_1.Entity {
6
- }
7
- exports.BTCPaymentAddress = BTCPaymentAddress;
8
- //# sourceMappingURL=BTCPaymentAddress.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BTCPaymentAddress.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BTCPaymentAddress.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,iBAAkB,SAAQ,eAAM;CAI5C;AAJD,8CAIC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BTCPaymentAddress = void 0;
4
- const entity_1 = require("../../entity");
5
- class BTCPaymentAddress extends entity_1.Entity {
6
- }
7
- exports.BTCPaymentAddress = BTCPaymentAddress;
8
- //# sourceMappingURL=BTCPaymentAddress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BTCPaymentAddress.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BTCPaymentAddress.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,iBAAkB,SAAQ,eAAM;CAI5C;AAJD,8CAIC"}
@@ -1,5 +0,0 @@
1
- export declare enum BTCPaymentAddressVersion {
2
- LEGACY = "LEGACY",
3
- SEGWIT = "SEGWIT",
4
- TAPROOT = "TAPROOT"
5
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BTCPaymentAddressVersion = void 0;
4
- var BTCPaymentAddressVersion;
5
- (function (BTCPaymentAddressVersion) {
6
- BTCPaymentAddressVersion["LEGACY"] = "LEGACY";
7
- BTCPaymentAddressVersion["SEGWIT"] = "SEGWIT";
8
- BTCPaymentAddressVersion["TAPROOT"] = "TAPROOT";
9
- })(BTCPaymentAddressVersion = exports.BTCPaymentAddressVersion || (exports.BTCPaymentAddressVersion = {}));
10
- //# sourceMappingURL=BTCPaymentAddressVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BTCPaymentAddressVersion.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BTCPaymentAddressVersion.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,6CAAiB,CAAA;IACjB,+CAAmB,CAAA;AACrB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC"}
@@ -1,6 +0,0 @@
1
- import { Entity } from '../../entity';
2
- import { BTCPaymentAddress } from './BTCPaymentAddress.entity';
3
- export declare class BTCProperties extends Entity {
4
- paymentAddresses: BTCPaymentAddress[];
5
- ordinalsAddresses: string[];
6
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BTCProperties = void 0;
4
- const entity_1 = require("../../entity");
5
- class BTCProperties extends entity_1.Entity {
6
- }
7
- exports.BTCProperties = BTCProperties;
8
- //# sourceMappingURL=BTCProperties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BTCProperties.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BTCProperties.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,aAAc,SAAQ,eAAM;CAIxC;AAJD,sCAIC"}
@@ -1,3 +0,0 @@
1
- export declare enum WalletOrigin {
2
- XVERSE = "XVERSE"
3
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WalletOrigin = void 0;
4
- var WalletOrigin;
5
- (function (WalletOrigin) {
6
- WalletOrigin["XVERSE"] = "XVERSE";
7
- })(WalletOrigin = exports.WalletOrigin || (exports.WalletOrigin = {}));
8
- //# sourceMappingURL=WalletOrigin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WalletOrigin.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/WalletOrigin.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,iCAAiB,CAAA;AACnB,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB"}