@heliofi/common 0.2.229 → 0.2.231

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 (26) hide show
  1. package/dist/src/domain/model/deposit/dtos/assignDepositCustomerWallet.dto.d.ts +4 -0
  2. package/dist/src/domain/model/deposit/dtos/assignDepositCustomerWallet.dto.js +23 -0
  3. package/dist/src/domain/model/deposit/dtos/assignDepositCustomerWallet.dto.js.map +1 -0
  4. package/dist/src/domain/model/deposit/dtos/createDepositCustomer.dto.d.ts +2 -0
  5. package/dist/src/domain/model/deposit/dtos/createDepositCustomer.dto.js +9 -0
  6. package/dist/src/domain/model/deposit/dtos/createDepositCustomer.dto.js.map +1 -1
  7. package/dist/src/domain/model/deposit/dtos/index.d.ts +1 -0
  8. package/dist/src/domain/model/deposit/dtos/index.js +1 -0
  9. package/dist/src/domain/model/deposit/dtos/index.js.map +1 -1
  10. package/dist/src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.d.ts +5 -1
  11. package/dist/src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.js +11 -0
  12. package/dist/src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.js.map +1 -1
  13. package/dist/src/domain/model/onramp/entities/OnRamperFiat.entity.d.ts +7 -0
  14. package/dist/src/domain/model/onramp/entities/OnRamperFiat.entity.js +7 -0
  15. package/dist/src/domain/model/onramp/entities/OnRamperFiat.entity.js.map +1 -0
  16. package/dist/src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.d.ts +6 -0
  17. package/dist/src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.js +7 -0
  18. package/dist/src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.js.map +1 -0
  19. package/dist/src/domain/model/onramp/entities/OnRamperToken.entity.d.ts +12 -0
  20. package/dist/src/domain/model/onramp/entities/OnRamperToken.entity.js +7 -0
  21. package/dist/src/domain/model/onramp/entities/OnRamperToken.entity.js.map +1 -0
  22. package/dist/src/domain/model/onramp/entities/index.d.ts +3 -0
  23. package/dist/src/domain/model/onramp/entities/index.js +3 -0
  24. package/dist/src/domain/model/onramp/entities/index.js.map +1 -1
  25. package/dist/tsconfig.tsbuildinfo +1 -1
  26. package/package.json +2 -2
@@ -0,0 +1,4 @@
1
+ import { BlockchainEngineType } from '../../blockchainEngine/constants';
2
+ export declare class AssignDepositCustomerWalletDto {
3
+ blockchainEngineType: BlockchainEngineType;
4
+ }
@@ -0,0 +1,23 @@
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.AssignDepositCustomerWalletDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const constants_1 = require("../../blockchainEngine/constants");
15
+ class AssignDepositCustomerWalletDto {
16
+ }
17
+ exports.AssignDepositCustomerWalletDto = AssignDepositCustomerWalletDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsEnum)(constants_1.BlockchainEngineType),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], AssignDepositCustomerWalletDto.prototype, "blockchainEngineType", void 0);
23
+ //# sourceMappingURL=assignDepositCustomerWallet.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignDepositCustomerWallet.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/assignDepositCustomerWallet.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,gEAAwE;AAExE,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AADC;IAFC,IAAA,wBAAM,EAAC,gCAAoB,CAAC;IAC5B,IAAA,4BAAU,GAAE;;4EAC8B"}
@@ -1,3 +1,4 @@
1
+ import { BlockchainEngineType } from '../../blockchainEngine/constants';
1
2
  export declare class CreateDepositCustomerDto {
2
3
  customerId: string;
3
4
  depositId: string;
@@ -5,4 +6,5 @@ export declare class CreateDepositCustomerDto {
5
6
  additionalJSON?: string;
6
7
  recipientPublicKeys: string[];
7
8
  defaultOnrampAmount?: number;
9
+ blockchainEngineTypes?: BlockchainEngineType[];
8
10
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateDepositCustomerDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const constants_1 = require("../../blockchainEngine/constants");
14
15
  class CreateDepositCustomerDto {
15
16
  }
16
17
  exports.CreateDepositCustomerDto = CreateDepositCustomerDto;
@@ -47,4 +48,12 @@ __decorate([
47
48
  (0, class_validator_1.IsOptional)(),
48
49
  __metadata("design:type", Number)
49
50
  ], CreateDepositCustomerDto.prototype, "defaultOnrampAmount", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsArray)(),
53
+ (0, class_validator_1.ArrayMinSize)(1),
54
+ (0, class_validator_1.ArrayUnique)(),
55
+ (0, class_validator_1.IsEnum)(constants_1.BlockchainEngineType, { each: true }),
56
+ (0, class_validator_1.IsOptional)(),
57
+ __metadata("design:type", Array)
58
+ ], CreateDepositCustomerDto.prototype, "blockchainEngineTypes", void 0);
50
59
  //# sourceMappingURL=createDepositCustomer.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createDepositCustomer.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDepositCustomer.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAUyB;AAEzB,MAAa,wBAAwB;CA2BpC;AA3BD,4DA2BC;AAvBC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;4DACI;AAInB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;2DACK;AAIlB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;+DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACW;AAMxB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qEACG;AAI9B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACgB"}
1
+ {"version":3,"file":"createDepositCustomer.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDepositCustomer.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAYyB;AACzB,gEAAwE;AAExE,MAAa,wBAAwB;CAkCpC;AAlCD,4DAkCC;AA9BC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;4DACI;AAInB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;2DACK;AAIlB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;+DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACW;AAMxB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qEACG;AAI9B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACgB;AAO7B;IALC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,6BAAW,GAAE;IACb,IAAA,wBAAM,EAAC,gCAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5C,IAAA,4BAAU,GAAE;;uEACkC"}
@@ -6,3 +6,4 @@ export * from './updateWalletActivity.dto';
6
6
  export * from './updateDeposit.dto';
7
7
  export * from './setDepositCustomerVirtualAccountEmail.dto';
8
8
  export * from './setDepositCustomerVirtualAccountCountry.dto';
9
+ export * from './assignDepositCustomerWallet.dto';
@@ -22,4 +22,5 @@ __exportStar(require("./updateWalletActivity.dto"), exports);
22
22
  __exportStar(require("./updateDeposit.dto"), exports);
23
23
  __exportStar(require("./setDepositCustomerVirtualAccountEmail.dto"), exports);
24
24
  __exportStar(require("./setDepositCustomerVirtualAccountCountry.dto"), exports);
25
+ __exportStar(require("./assignDepositCustomerWallet.dto"), exports);
25
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,8EAA4D;AAC5D,gFAA8D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,8EAA4D;AAC5D,gFAA8D;AAC9D,oEAAkD"}
@@ -1,4 +1,8 @@
1
1
  export declare enum PaymentMethod {
2
2
  CRYPTO = "CRYPTO",
3
- ONRAMP = "ONRAMP"
3
+ ONRAMP = "ONRAMP",
4
+ COINBASE = "COINBASE"
4
5
  }
6
+ export declare function resolveDepositPaymentMethod(incomingTransactions: {
7
+ paymentMethod?: PaymentMethod;
8
+ }[] | undefined): PaymentMethod;
@@ -1,9 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentMethod = void 0;
4
+ exports.resolveDepositPaymentMethod = resolveDepositPaymentMethod;
4
5
  var PaymentMethod;
5
6
  (function (PaymentMethod) {
6
7
  PaymentMethod["CRYPTO"] = "CRYPTO";
7
8
  PaymentMethod["ONRAMP"] = "ONRAMP";
9
+ PaymentMethod["COINBASE"] = "COINBASE";
8
10
  })(PaymentMethod || (exports.PaymentMethod = PaymentMethod = {}));
11
+ function resolveDepositPaymentMethod(incomingTransactions) {
12
+ if (incomingTransactions?.some((tx) => tx.paymentMethod === PaymentMethod.COINBASE)) {
13
+ return PaymentMethod.COINBASE;
14
+ }
15
+ if (incomingTransactions?.some((tx) => tx.paymentMethod === PaymentMethod.ONRAMP)) {
16
+ return PaymentMethod.ONRAMP;
17
+ }
18
+ return PaymentMethod.CRYPTO;
19
+ }
9
20
  //# sourceMappingURL=PaymentMethod.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentMethod.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
1
+ {"version":3,"file":"PaymentMethod.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-wallet-incoming-transaction/constants/PaymentMethod.ts"],"names":[],"mappings":";;;AAMA,kEAoBC;AA1BD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;AACvB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,SAAgB,2BAA2B,CACzC,oBAAqE;IAErE,IACE,oBAAoB,EAAE,IAAI,CACxB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,KAAK,aAAa,CAAC,QAAQ,CACpD,EACD,CAAC;QACD,OAAO,aAAa,CAAC,QAAQ,CAAC;IAChC,CAAC;IAED,IACE,oBAAoB,EAAE,IAAI,CACxB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,KAAK,aAAa,CAAC,MAAM,CAClD,EACD,CAAC;QACD,OAAO,aAAa,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED,OAAO,aAAa,CAAC,MAAM,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare class OnRamperFiat {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ symbol: string;
6
+ icon: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnRamperFiat = void 0;
4
+ class OnRamperFiat {
5
+ }
6
+ exports.OnRamperFiat = OnRamperFiat;
7
+ //# sourceMappingURL=OnRamperFiat.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnRamperFiat.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnRamperFiat.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;CAUxB;AAVD,oCAUC"}
@@ -0,0 +1,6 @@
1
+ import { OnRamperFiat } from './OnRamperFiat.entity';
2
+ import { OnRamperToken } from './OnRamperToken.entity';
3
+ export declare class OnRamperSupportedCurrenciesAndTokens {
4
+ fiat?: OnRamperFiat[];
5
+ crypto?: OnRamperToken[];
6
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnRamperSupportedCurrenciesAndTokens = void 0;
4
+ class OnRamperSupportedCurrenciesAndTokens {
5
+ }
6
+ exports.OnRamperSupportedCurrenciesAndTokens = OnRamperSupportedCurrenciesAndTokens;
7
+ //# sourceMappingURL=OnRamperSupportedCurrenciesAndTokens.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnRamperSupportedCurrenciesAndTokens.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnRamperSupportedCurrenciesAndTokens.entity.ts"],"names":[],"mappings":";;;AAGA,MAAa,oCAAoC;CAIhD;AAJD,oFAIC"}
@@ -0,0 +1,12 @@
1
+ export declare class OnRamperToken {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ symbol: string;
6
+ network: string;
7
+ decimals: number;
8
+ address: string;
9
+ chainId: number;
10
+ icon: string;
11
+ networkDisplayName: string;
12
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnRamperToken = void 0;
4
+ class OnRamperToken {
5
+ }
6
+ exports.OnRamperToken = OnRamperToken;
7
+ //# sourceMappingURL=OnRamperToken.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnRamperToken.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnRamperToken.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAoBzB;AApBD,sCAoBC"}
@@ -1,3 +1,6 @@
1
+ export * from './OnRamperFiat.entity';
2
+ export * from './OnRamperSupportedCurrenciesAndTokens.entity';
3
+ export * from './OnRamperToken.entity';
1
4
  export * from './OnrampPaymentMethod.entity';
2
5
  export * from './OnrampPaymentMethodsResponse.entity';
3
6
  export * from './OnrampQuote.entity';
@@ -14,6 +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("./OnRamperFiat.entity"), exports);
18
+ __exportStar(require("./OnRamperSupportedCurrenciesAndTokens.entity"), exports);
19
+ __exportStar(require("./OnRamperToken.entity"), exports);
17
20
  __exportStar(require("./OnrampPaymentMethod.entity"), exports);
18
21
  __exportStar(require("./OnrampPaymentMethodsResponse.entity"), exports);
19
22
  __exportStar(require("./OnrampQuote.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,wEAAsD;AACtD,uDAAqC;AACrC,oEAAkD;AAClD,6DAA2C;AAC3C,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gFAA8D;AAC9D,yDAAuC;AACvC,+DAA6C;AAC7C,wEAAsD;AACtD,uDAAqC;AACrC,oEAAkD;AAClD,6DAA2C;AAC3C,iEAA+C"}