@heliofi/common 0.2.331 → 0.2.332

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.
@@ -1,4 +1,5 @@
1
1
  import { DepositSwapProvider } from '../constants/DepositSwapProvider';
2
+ import { MoonPayPaymentMethodType } from '../../on-ramps/entities/MoonPayPaymentMethodType';
2
3
  export declare const DEPOSIT_SWAP_QUOTE_DEFAULT_SLIPPAGE_BPS = 100;
3
4
  export declare const CLIENT_SELECTABLE_DEPOSIT_SWAP_PROVIDERS: readonly DepositSwapProvider[];
4
5
  export declare class CreateDepositSwapQuoteDto {
@@ -7,4 +8,9 @@ export declare class CreateDepositSwapQuoteDto {
7
8
  amountIn: string;
8
9
  senderAddress: string;
9
10
  slippageBps?: number;
11
+ accessToken?: string;
12
+ paymentMethodType?: MoonPayPaymentMethodType;
13
+ paymentMethodId?: string;
14
+ quoteCurrencyCode?: string;
15
+ depositCustomerId?: string;
10
16
  }
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateDepositSwapQuoteDto = exports.CLIENT_SELECTABLE_DEPOSIT_SWAP_PROVIDERS = exports.DEPOSIT_SWAP_QUOTE_DEFAULT_SLIPPAGE_BPS = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const DepositSwapProvider_1 = require("../constants/DepositSwapProvider");
15
+ const MoonPayPaymentMethodType_1 = require("../../on-ramps/entities/MoonPayPaymentMethodType");
15
16
  exports.DEPOSIT_SWAP_QUOTE_DEFAULT_SLIPPAGE_BPS = 100;
16
17
  exports.CLIENT_SELECTABLE_DEPOSIT_SWAP_PROVIDERS = [DepositSwapProvider_1.DepositSwapProvider.MOONPAY, DepositSwapProvider_1.DepositSwapProvider.IRON];
17
18
  class CreateDepositSwapQuoteDto {
@@ -49,4 +50,31 @@ __decorate([
49
50
  (0, class_validator_1.IsOptional)(),
50
51
  __metadata("design:type", Number)
51
52
  ], CreateDepositSwapQuoteDto.prototype, "slippageBps", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsString)(),
55
+ (0, class_validator_1.IsNotEmpty)(),
56
+ (0, class_validator_1.IsOptional)(),
57
+ __metadata("design:type", String)
58
+ ], CreateDepositSwapQuoteDto.prototype, "accessToken", void 0);
59
+ __decorate([
60
+ (0, class_validator_1.IsEnum)(MoonPayPaymentMethodType_1.MoonPayPaymentMethodType),
61
+ (0, class_validator_1.IsOptional)(),
62
+ __metadata("design:type", String)
63
+ ], CreateDepositSwapQuoteDto.prototype, "paymentMethodType", void 0);
64
+ __decorate([
65
+ (0, class_validator_1.IsString)(),
66
+ (0, class_validator_1.IsOptional)(),
67
+ __metadata("design:type", String)
68
+ ], CreateDepositSwapQuoteDto.prototype, "paymentMethodId", void 0);
69
+ __decorate([
70
+ (0, class_validator_1.IsString)(),
71
+ (0, class_validator_1.IsNotEmpty)(),
72
+ (0, class_validator_1.IsOptional)(),
73
+ __metadata("design:type", String)
74
+ ], CreateDepositSwapQuoteDto.prototype, "quoteCurrencyCode", void 0);
75
+ __decorate([
76
+ (0, class_validator_1.IsMongoId)(),
77
+ (0, class_validator_1.IsOptional)(),
78
+ __metadata("design:type", String)
79
+ ], CreateDepositSwapQuoteDto.prototype, "depositCustomerId", void 0);
52
80
  //# sourceMappingURL=createDepositSwapQuote.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createDepositSwapQuote.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDepositSwapQuote.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AACzB,0EAAuE;AAE1D,QAAA,uCAAuC,GAAG,GAAG,CAAC;AAI9C,QAAA,wCAAwC,GACnD,CAAC,yCAAmB,CAAC,OAAO,EAAE,yCAAmB,CAAC,IAAI,CAAC,CAAC;AAE1D,MAAa,yBAAyB;IAAtC;QA+BE,gBAAW,GAAY,+CAAuC,CAAC;IACjE,CAAC;CAAA;AAhCD,8DAgCC;AArBC;IAFC,IAAA,wBAAM,EAAC,yCAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;2DACkB;AAI/B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACU;AAMvB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,YAAY,EAAE;QACrB,OAAO,EAAE,6DAA6D;KACvE,CAAC;;2DACe;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACS;AAMtB;IAJC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,KAAK,CAAC;IACV,IAAA,4BAAU,GAAE;;8DACkD"}
1
+ {"version":3,"file":"createDepositSwapQuote.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDepositSwapQuote.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAUyB;AACzB,0EAAuE;AACvE,+FAA4F;AAE/E,QAAA,uCAAuC,GAAG,GAAG,CAAC;AAI9C,QAAA,wCAAwC,GACnD,CAAC,yCAAmB,CAAC,OAAO,EAAE,yCAAmB,CAAC,IAAI,CAAC,CAAC;AAE1D,MAAa,yBAAyB;IAAtC;QA+BE,gBAAW,GAAY,+CAAuC,CAAC;IAuCjE,CAAC;CAAA;AAtED,8DAsEC;AA3DC;IAFC,IAAA,wBAAM,EAAC,yCAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;2DACkB;AAI/B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACU;AAMvB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,YAAY,EAAE;QACrB,OAAO,EAAE,6DAA6D;KACvE,CAAC;;2DACe;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACS;AAMtB;IAJC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,KAAK,CAAC;IACV,IAAA,4BAAU,GAAE;;8DACkD;AAO/D;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;8DACQ;AAMrB;IAFC,IAAA,wBAAM,EAAC,mDAAwB,CAAC;IAChC,IAAA,4BAAU,GAAE;;oEACgC;AAK7C;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACY;AAczB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;oEACc;AAM3B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oEACc"}
@@ -1,6 +1,9 @@
1
1
  import { Entity } from '../../entity';
2
2
  import { Currency } from '../../currency/entities/Currency.entity';
3
3
  import { DepositSwapProvider } from '../constants/DepositSwapProvider';
4
+ import { MoonPayExchangeRateType } from '../../on-ramps/entities/MoonPayExchangeRateType';
5
+ import { MoonPayPaymentDisclosure } from '../../on-ramps/entities/MoonPayPaymentDisclosure.entity';
6
+ import { MoonPayQuoteChallenge } from '../../on-ramps/entities/MoonPayQuoteChallenge.entity';
4
7
  export declare class BaseDepositSwapQuote extends Entity {
5
8
  provider: DepositSwapProvider;
6
9
  fromCurrency: Currency;
@@ -22,4 +25,9 @@ export declare class BaseDepositSwapQuote extends Entity {
22
25
  estimatedPriceImpact?: number;
23
26
  etaSeconds?: number;
24
27
  expiresAt: string;
28
+ exchangeRateType?: MoonPayExchangeRateType;
29
+ signature?: string;
30
+ quoteId?: string;
31
+ paymentDisclosures?: MoonPayPaymentDisclosure[];
32
+ challenge?: MoonPayQuoteChallenge;
25
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BaseDepositSwapQuote.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/BaseDepositSwapQuote.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAItC,MAAa,oBAAqB,SAAQ,eAAM;CAsI/C;AAtID,oDAsIC"}
1
+ {"version":3,"file":"BaseDepositSwapQuote.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/BaseDepositSwapQuote.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAOtC,MAAa,oBAAqB,SAAQ,eAAM;CA6K/C;AA7KD,oDA6KC"}
@@ -0,0 +1,4 @@
1
+ export declare enum MoonPayExchangeRateType {
2
+ FIXED = "fixed",
3
+ FLOATING = "floating"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MoonPayExchangeRateType = void 0;
4
+ var MoonPayExchangeRateType;
5
+ (function (MoonPayExchangeRateType) {
6
+ MoonPayExchangeRateType["FIXED"] = "fixed";
7
+ MoonPayExchangeRateType["FLOATING"] = "floating";
8
+ })(MoonPayExchangeRateType || (exports.MoonPayExchangeRateType = MoonPayExchangeRateType = {}));
9
+ //# sourceMappingURL=MoonPayExchangeRateType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MoonPayExchangeRateType.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/MoonPayExchangeRateType.ts"],"names":[],"mappings":";;;AAEA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,0CAAe,CAAA;IACf,gDAAqB,CAAA;AACvB,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC"}
@@ -0,0 +1,4 @@
1
+ export declare class MoonPayQuoteChallenge {
2
+ kind: string;
3
+ url: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MoonPayQuoteChallenge = void 0;
4
+ class MoonPayQuoteChallenge {
5
+ }
6
+ exports.MoonPayQuoteChallenge = MoonPayQuoteChallenge;
7
+ //# sourceMappingURL=MoonPayQuoteChallenge.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MoonPayQuoteChallenge.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/MoonPayQuoteChallenge.entity.ts"],"names":[],"mappings":";;;AAMA,MAAa,qBAAqB;CAMjC;AAND,sDAMC"}
@@ -1,4 +1,6 @@
1
+ export * from './MoonPayExchangeRateType';
1
2
  export * from './MoonPayPaymentDisclosure.entity';
3
+ export * from './MoonPayQuoteChallenge.entity';
2
4
  export * from './MoonPayPaymentMethodConfig.entity';
3
5
  export * from './MoonPayPaymentMethodType';
4
6
  export * from './MoonPayPlatformQuote.entity';
@@ -14,7 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./MoonPayExchangeRateType"), exports);
17
18
  __exportStar(require("./MoonPayPaymentDisclosure.entity"), exports);
19
+ __exportStar(require("./MoonPayQuoteChallenge.entity"), exports);
18
20
  __exportStar(require("./MoonPayPaymentMethodConfig.entity"), exports);
19
21
  __exportStar(require("./MoonPayPaymentMethodType"), exports);
20
22
  __exportStar(require("./MoonPayPlatformQuote.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAClD,sEAAoD;AACpD,6DAA2C;AAC3C,gEAA8C;AAC9C,kEAAgD;AAChD,sEAAoD;AACpD,2DAAyC;AACzC,8EAA4D;AAC5D,yEAAuD;AACvD,sEAAoD;AACpD,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,oEAAkD;AAClD,iEAA+C;AAC/C,sEAAoD;AACpD,6DAA2C;AAC3C,gEAA8C;AAC9C,kEAAgD;AAChD,sEAAoD;AACpD,2DAAyC;AACzC,8EAA4D;AAC5D,yEAAuD;AACvD,sEAAoD;AACpD,+DAA6C"}