@heliofi/common 0.2.207 → 0.2.208

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.
@@ -0,0 +1,8 @@
1
+ export declare class GetOnrampQuotesDto {
2
+ fiat: string;
3
+ crypto: string;
4
+ amount: number;
5
+ paymentMethod?: string;
6
+ walletAddress?: string;
7
+ country?: string;
8
+ }
@@ -0,0 +1,48 @@
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.GetOnrampQuotesDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetOnrampQuotesDto {
15
+ }
16
+ exports.GetOnrampQuotesDto = GetOnrampQuotesDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], GetOnrampQuotesDto.prototype, "fiat", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], GetOnrampQuotesDto.prototype, "crypto", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNumber)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ (0, class_validator_1.IsPositive)(),
31
+ __metadata("design:type", Number)
32
+ ], GetOnrampQuotesDto.prototype, "amount", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsString)(),
36
+ __metadata("design:type", String)
37
+ ], GetOnrampQuotesDto.prototype, "paymentMethod", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", String)
42
+ ], GetOnrampQuotesDto.prototype, "walletAddress", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsString)(),
46
+ __metadata("design:type", String)
47
+ ], GetOnrampQuotesDto.prototype, "country", void 0);
48
+ //# sourceMappingURL=getOnrampQuotes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOnrampQuotes.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/getOnrampQuotes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AAEzB,MAAa,kBAAkB;CAyB9B;AAzBD,gDAyBC;AAtBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACA;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;kDACE;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACM"}
@@ -1,2 +1,3 @@
1
1
  export * from './getOnrampPaymentMethods.dto';
2
+ export * from './getOnrampQuotes.dto';
2
3
  export * from './initiateOnrampTransaction.dto';
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./getOnrampPaymentMethods.dto"), exports);
18
+ __exportStar(require("./getOnrampQuotes.dto"), exports);
18
19
  __exportStar(require("./initiateOnrampTransaction.dto"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,wDAAsC;AACtC,kEAAgD"}
@@ -1,10 +1,12 @@
1
+ import { OnrampQuotePaymentMethod } from './OnrampQuotePaymentMethod.entity';
1
2
  export declare class OnrampQuote {
2
3
  rate?: number;
3
4
  networkFee?: number;
4
5
  transactionFee?: number;
6
+ payout?: number;
5
7
  ramp: string;
6
8
  paymentMethod: string;
7
9
  quoteId: string;
8
- recommendations?: ('BestPrice' | 'SuccessRate' | 'LowFee')[];
9
- errors?: Record<string, string>[];
10
+ recommendations?: string[];
11
+ availablePaymentMethods?: OnrampQuotePaymentMethod[];
10
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OnrampQuote.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnrampQuote.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;CAgBvB;AAhBD,kCAgBC"}
1
+ {"version":3,"file":"OnrampQuote.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnrampQuote.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;CAkBvB;AAlBD,kCAkBC"}
@@ -0,0 +1,5 @@
1
+ export declare class OnrampQuotePaymentMethod {
2
+ id: string;
3
+ name: string;
4
+ icon?: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnrampQuotePaymentMethod = void 0;
4
+ class OnrampQuotePaymentMethod {
5
+ }
6
+ exports.OnrampQuotePaymentMethod = OnrampQuotePaymentMethod;
7
+ //# sourceMappingURL=OnrampQuotePaymentMethod.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnrampQuotePaymentMethod.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnrampQuotePaymentMethod.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,wBAAwB;CAMpC;AAND,4DAMC"}
@@ -1,4 +1,5 @@
1
1
  export * from './OnrampPaymentMethod.entity';
2
2
  export * from './OnrampQuote.entity';
3
+ export * from './OnrampQuotePaymentMethod.entity';
3
4
  export * from './OnrampTransaction.entity';
4
5
  export * from './BaseOnrampTransaction.entity';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./OnrampPaymentMethod.entity"), exports);
18
18
  __exportStar(require("./OnrampQuote.entity"), exports);
19
+ __exportStar(require("./OnrampQuotePaymentMethod.entity"), exports);
19
20
  __exportStar(require("./OnrampTransaction.entity"), exports);
20
21
  __exportStar(require("./BaseOnrampTransaction.entity"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,uDAAqC;AACrC,6DAA2C;AAC3C,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,uDAAqC;AACrC,oEAAkD;AAClD,6DAA2C;AAC3C,iEAA+C"}