@heliofi/common 0.1.451 → 0.1.453

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.
@@ -18,3 +18,4 @@ export * from './platform';
18
18
  export * from './wallet';
19
19
  export * from './tradingViewDetails';
20
20
  export * from './template';
21
+ export * from './solanaTransactionVersion';
@@ -34,4 +34,5 @@ __exportStar(require("./platform"), exports);
34
34
  __exportStar(require("./wallet"), exports);
35
35
  __exportStar(require("./tradingViewDetails"), exports);
36
36
  __exportStar(require("./template"), exports);
37
+ __exportStar(require("./solanaTransactionVersion"), exports);
37
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC;AACnC,8CAA4B;AAC5B,qEAAmD;AACnD,mDAAiC;AACjC,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,4DAA0C;AAC1C,yDAAuC;AACvC,6CAA2B;AAC3B,2CAAyB;AACzB,uDAAqC;AACrC,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC;AACnC,8CAA4B;AAC5B,qEAAmD;AACnD,mDAAiC;AACjC,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,4DAA0C;AAC1C,yDAAuC;AACvC,6CAA2B;AAC3B,2CAAyB;AACzB,uDAAqC;AACrC,6CAA2B;AAC3B,6DAA2C"}
@@ -0,0 +1,4 @@
1
+ export declare enum SolanaTransactionVersion {
2
+ V0 = "LEGACY",
3
+ V1 = "VERSIONED"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SolanaTransactionVersion = void 0;
4
+ var SolanaTransactionVersion;
5
+ (function (SolanaTransactionVersion) {
6
+ SolanaTransactionVersion["V0"] = "LEGACY";
7
+ SolanaTransactionVersion["V1"] = "VERSIONED";
8
+ })(SolanaTransactionVersion = exports.SolanaTransactionVersion || (exports.SolanaTransactionVersion = {}));
9
+ //# sourceMappingURL=solanaTransactionVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solanaTransactionVersion.js","sourceRoot":"","sources":["../../../../src/domain/constants/solanaTransactionVersion.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,4CAAgB,CAAA;AAClB,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC"}
@@ -2,6 +2,7 @@ import { RoleType } from '../../role';
2
2
  import { Wallet } from '../../wallet';
3
3
  import { BetaFeature } from '../../feature-flags';
4
4
  import { Platform } from '../../../constants';
5
+ import { PayoutWallet } from '../../payout-wallet';
5
6
  export interface JwtUserRole {
6
7
  id: string;
7
8
  company: string;
@@ -12,6 +13,7 @@ export interface AuthUser {
12
13
  roles: JwtUserRole[];
13
14
  wallet?: Wallet;
14
15
  wallets?: Wallet[];
16
+ payoutWallets: PayoutWallet[];
15
17
  email?: string;
16
18
  isHelioXUser?: boolean;
17
19
  enabledBetaFeatures?: BetaFeature[];
@@ -1 +1 @@
1
- {"version":3,"file":"AuthUser.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/entities/AuthUser.ts"],"names":[],"mappings":";;;AAyBA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
1
+ {"version":3,"file":"AuthUser.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/entities/AuthUser.ts"],"names":[],"mappings":";;;AA2BA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
@@ -1,6 +1,7 @@
1
1
  import { PreparePaymentRequestDto } from '../../prepare-payment-request';
2
2
  import { CustomerDetailsDto } from '../../customer-details';
3
3
  import { ProductDetailsDto } from '../../product-details';
4
+ import { SolanaTransactionVersion } from '../../../constants';
4
5
  export declare class PrepareTransactionDto extends PreparePaymentRequestDto {
5
6
  currency: string;
6
7
  amount?: string;
@@ -11,4 +12,5 @@ export declare class PrepareTransactionDto extends PreparePaymentRequestDto {
11
12
  customerDetails?: CustomerDetailsDto;
12
13
  productDetails?: ProductDetailsDto;
13
14
  pricingCurrencyRateToken?: string;
15
+ solanaTransactionVersion?: SolanaTransactionVersion;
14
16
  }
@@ -15,6 +15,7 @@ const class_transformer_1 = require("class-transformer");
15
15
  const prepare_payment_request_1 = require("../../prepare-payment-request");
16
16
  const customer_details_1 = require("../../customer-details");
17
17
  const product_details_1 = require("../../product-details");
18
+ const constants_1 = require("../../../constants");
18
19
  class PrepareTransactionDto extends prepare_payment_request_1.PreparePaymentRequestDto {
19
20
  }
20
21
  __decorate([
@@ -64,5 +65,11 @@ __decorate([
64
65
  (0, class_validator_1.IsOptional)(),
65
66
  __metadata("design:type", String)
66
67
  ], PrepareTransactionDto.prototype, "pricingCurrencyRateToken", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsString)(),
70
+ (0, class_validator_1.IsEnum)(constants_1.SolanaTransactionVersion),
71
+ (0, class_validator_1.IsOptional)(),
72
+ __metadata("design:type", String)
73
+ ], PrepareTransactionDto.prototype, "solanaTransactionVersion", void 0);
67
74
  exports.PrepareTransactionDto = PrepareTransactionDto;
68
75
  //# sourceMappingURL=prepareTransaction.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,6DAA4D;AAC5D,2DAA0D;AAE1D,MAAa,qBAAsB,SAAQ,kDAAwB;CAuClE;AAtCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;qDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAGlB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;8DAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;6DAAC;AAEnC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACqB;AAtCpC,sDAuCC"}
1
+ {"version":3,"file":"prepareTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,6DAA4D;AAC5D,2DAA0D;AAC1D,kDAA8D;AAE9D,MAAa,qBAAsB,SAAQ,kDAAwB;CA4ClE;AA3CC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;qDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAGlB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;8DAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;6DAAC;AAEnC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACqB;AAElC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,oCAAwB,CAAC;IAChC,IAAA,4BAAU,GAAE;;uEACuC;AA3CtD,sDA4CC"}