@heliofi/common 0.1.363 → 0.1.365

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 (20) hide show
  1. package/dist/src/domain/model/affiliates/entities/{AffiliateDetails.entity.js → affiliateDetails.entity.js} +1 -1
  2. package/dist/src/domain/model/affiliates/entities/affiliateDetails.entity.js.map +1 -0
  3. package/dist/src/domain/model/customer-details/dtos/btcProperties.dto.d.ts +3 -0
  4. package/dist/src/domain/model/customer-details/dtos/btcProperties.dto.js +26 -0
  5. package/dist/src/domain/model/customer-details/dtos/btcProperties.dto.js.map +1 -0
  6. package/dist/src/domain/model/customer-details/dtos/customerDetailsBtcProperties.dto.d.ts +1 -1
  7. package/dist/src/domain/model/customer-details/dtos/customerDetailsBtcProperties.dto.js.map +1 -1
  8. package/dist/src/domain/model/customer-details/entities/CustomerDetails.d.ts +3 -0
  9. package/dist/src/domain/model/customer-details/entities/CustomerDetails.js.map +1 -1
  10. package/dist/src/domain/model/nft-escrow/dtos/verifyCollections.dto.d.ts +3 -0
  11. package/dist/src/domain/model/nft-escrow/dtos/verifyCollections.dto.js +24 -0
  12. package/dist/src/domain/model/nft-escrow/dtos/verifyCollections.dto.js.map +1 -0
  13. package/dist/src/domain/services/CurrencyService.d.ts +3 -0
  14. package/dist/src/domain/services/CurrencyService.js +11 -0
  15. package/dist/src/domain/services/CurrencyService.js.map +1 -0
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/jest.config.js +1 -0
  18. package/package.json +2 -2
  19. package/dist/src/domain/model/affiliates/entities/AffiliateDetails.entity.js.map +0 -1
  20. /package/dist/src/domain/model/affiliates/entities/{AffiliateDetails.entity.d.ts → affiliateDetails.entity.d.ts} +0 -0
@@ -5,4 +5,4 @@ const entity_1 = require("../../entity");
5
5
  class AffiliateDetails extends entity_1.Entity {
6
6
  }
7
7
  exports.AffiliateDetails = AffiliateDetails;
8
- //# sourceMappingURL=AffiliateDetails.entity.js.map
8
+ //# sourceMappingURL=affiliateDetails.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"affiliateDetails.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/affiliates/entities/affiliateDetails.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,gBAAiB,SAAQ,eAAM;CAE3C;AAFD,4CAEC"}
@@ -0,0 +1,3 @@
1
+ export declare class BtcPropertiesDto {
2
+ ordinalsAddress: string;
3
+ }
@@ -0,0 +1,26 @@
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 MIN_BITCOIN_ADDRESS_LENGTH = 32;
15
+ const MAX_LENGTH_ORDINALS_TAPROOT_ADDRESS = 62;
16
+ class BtcPropertiesDto {
17
+ }
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_validator_1.MaxLength)(MAX_LENGTH_ORDINALS_TAPROOT_ADDRESS),
22
+ (0, class_validator_1.MinLength)(MIN_BITCOIN_ADDRESS_LENGTH),
23
+ __metadata("design:type", String)
24
+ ], BtcPropertiesDto.prototype, "ordinalsAddress", void 0);
25
+ exports.BtcPropertiesDto = BtcPropertiesDto;
26
+ //# sourceMappingURL=btcProperties.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"btcProperties.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/customer-details/dtos/btcProperties.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAM,0BAA0B,GAAG,EAAE,CAAC;AACtC,MAAM,mCAAmC,GAAG,EAAE,CAAC;AAC/C,MAAa,gBAAgB;CAM5B;AALC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,mCAAmC,CAAC;IAC9C,IAAA,2BAAS,EAAC,0BAA0B,CAAC;;yDACd;AAL1B,4CAMC"}
@@ -1,3 +1,3 @@
1
1
  export declare class CustomerDetailsBtcPropertiesDto {
2
- ordinalsAddress: string;
2
+ ordinalsAddress?: string;
3
3
  }
@@ -1 +1 @@
1
- {"version":3,"file":"customerDetailsBtcProperties.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/customer-details/dtos/customerDetailsBtcProperties.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAM,0BAA0B,GAAG,EAAE,CAAC;AACtC,MAAM,mCAAmC,GAAG,EAAE,CAAC;AAC/C,MAAa,+BAA+B;CAM3C;AALC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,mCAAmC,CAAC;IAC9C,IAAA,2BAAS,EAAC,0BAA0B,CAAC;;wEACd;AAL1B,0EAMC"}
1
+ {"version":3,"file":"customerDetailsBtcProperties.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/customer-details/dtos/customerDetailsBtcProperties.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAM,0BAA0B,GAAG,EAAE,CAAC;AACtC,MAAM,mCAAmC,GAAG,EAAE,CAAC;AAC/C,MAAa,+BAA+B;CAM3C;AALC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,mCAAmC,CAAC;IAC9C,IAAA,2BAAS,EAAC,0BAA0B,CAAC;;wEACb;AAL3B,0EAMC"}
@@ -16,4 +16,7 @@ export declare class CustomerDetails extends Entity {
16
16
  areaCode?: string;
17
17
  additionalJSON?: string;
18
18
  tradingViewUsername?: string;
19
+ btcProperties?: {
20
+ ordinalsAddress?: string;
21
+ };
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomerDetails.js","sourceRoot":"","sources":["../../../../../../src/domain/model/customer-details/entities/CustomerDetails.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,eAAgB,SAAQ,eAAM;CA8B1C;AA9BD,0CA8BC"}
1
+ {"version":3,"file":"CustomerDetails.js","sourceRoot":"","sources":["../../../../../../src/domain/model/customer-details/entities/CustomerDetails.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,eAAgB,SAAQ,eAAM;CAkC1C;AAlCD,0CAkCC"}
@@ -0,0 +1,3 @@
1
+ export declare class VerifyCollectionsDto {
2
+ collectionMintAddresses?: string[];
3
+ }
@@ -0,0 +1,24 @@
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.VerifyCollectionsDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class VerifyCollectionsDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsArray)(),
19
+ (0, class_transformer_1.Type)(() => String),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", Array)
22
+ ], VerifyCollectionsDto.prototype, "collectionMintAddresses", void 0);
23
+ exports.VerifyCollectionsDto = VerifyCollectionsDto;
24
+ //# sourceMappingURL=verifyCollections.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifyCollections.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/nft-escrow/dtos/verifyCollections.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAsD;AAEtD,MAAa,oBAAoB;CAKhC;AAJC;IAAC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,4BAAU,GAAE;;qEACsB;AAJrC,oDAKC"}
@@ -0,0 +1,3 @@
1
+ export declare class CurrencyService {
2
+ static fromMinimalUnits(decimals: number, amount: number): number;
3
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrencyService = void 0;
4
+ class CurrencyService {
5
+ static fromMinimalUnits(decimals, amount) {
6
+ const decimalsValue = Number.isNaN(decimals) ? 0 : decimals;
7
+ return parseFloat((amount / 10 ** decimalsValue).toFixed(3));
8
+ }
9
+ }
10
+ exports.CurrencyService = CurrencyService;
11
+ //# sourceMappingURL=CurrencyService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrencyService.js","sourceRoot":"","sources":["../../../../src/domain/services/CurrencyService.ts"],"names":[],"mappings":";;;AAGA,MAAa,eAAe;IAC1B,MAAM,CAAC,gBAAgB,CAAC,QAAgB,EAAE,MAAc;QACtD,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC5D,OAAO,UAAU,CAAC,CAAC,MAAM,GAAG,EAAE,IAAI,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,CAAC;CACF;AALD,0CAKC"}