@heliofi/common 0.2.208-alpha.1774341928 → 0.2.209

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,4 @@
1
1
  export * from './getOnrampPaymentMethods.dto';
2
+ export * from './getOnrampQuotes.dto';
2
3
  export * from './initiateOnrampTransaction.dto';
4
+ export * from './onrampCheckout.dto';
@@ -15,5 +15,7 @@ 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);
20
+ __exportStar(require("./onrampCheckout.dto"), exports);
19
21
  //# 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;AAChD,uDAAqC"}
@@ -0,0 +1,14 @@
1
+ export declare class OnrampCheckoutDto {
2
+ onramp: string;
3
+ source: string;
4
+ destination: string;
5
+ amount: number;
6
+ paymentMethod: string;
7
+ network: string;
8
+ walletAddress: string;
9
+ isDark: boolean;
10
+ email?: string;
11
+ partnerContext?: string;
12
+ country?: string;
13
+ redirectUrl?: string;
14
+ }
@@ -0,0 +1,78 @@
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.OnrampCheckoutDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class OnrampCheckoutDto {
15
+ }
16
+ exports.OnrampCheckoutDto = OnrampCheckoutDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], OnrampCheckoutDto.prototype, "onramp", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], OnrampCheckoutDto.prototype, "source", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ __metadata("design:type", String)
31
+ ], OnrampCheckoutDto.prototype, "destination", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsNumber)(),
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ (0, class_validator_1.IsPositive)(),
36
+ __metadata("design:type", Number)
37
+ ], OnrampCheckoutDto.prototype, "amount", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ (0, class_validator_1.IsNotEmpty)(),
41
+ __metadata("design:type", String)
42
+ ], OnrampCheckoutDto.prototype, "paymentMethod", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsString)(),
45
+ (0, class_validator_1.IsNotEmpty)(),
46
+ __metadata("design:type", String)
47
+ ], OnrampCheckoutDto.prototype, "network", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsString)(),
50
+ (0, class_validator_1.IsNotEmpty)(),
51
+ __metadata("design:type", String)
52
+ ], OnrampCheckoutDto.prototype, "walletAddress", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsBoolean)(),
55
+ (0, class_validator_1.IsNotEmpty)(),
56
+ __metadata("design:type", Boolean)
57
+ ], OnrampCheckoutDto.prototype, "isDark", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, class_validator_1.IsString)(),
61
+ __metadata("design:type", String)
62
+ ], OnrampCheckoutDto.prototype, "email", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsOptional)(),
65
+ (0, class_validator_1.IsString)(),
66
+ __metadata("design:type", String)
67
+ ], OnrampCheckoutDto.prototype, "partnerContext", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, class_validator_1.IsString)(),
71
+ __metadata("design:type", String)
72
+ ], OnrampCheckoutDto.prototype, "country", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsOptional)(),
75
+ (0, class_validator_1.IsString)(),
76
+ __metadata("design:type", String)
77
+ ], OnrampCheckoutDto.prototype, "redirectUrl", void 0);
78
+ //# sourceMappingURL=onrampCheckout.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onrampCheckout.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/onrampCheckout.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAEzB,MAAa,iBAAiB;CAiD7B;AAjDD,8CAiDC;AA9CC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACO;AAKpB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;iDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACS;AAItB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iDACG;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACa;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACU"}
@@ -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"}