@heliofi/common 0.2.121 → 0.2.123

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 (36) hide show
  1. package/dist/src/domain/constants/deposits.d.ts +8 -0
  2. package/dist/src/domain/constants/deposits.js +14 -0
  3. package/dist/src/domain/constants/deposits.js.map +1 -0
  4. package/dist/src/domain/model/decent-swap/entities/DecentAppFeeOverride.d.ts +5 -0
  5. package/dist/src/domain/model/decent-swap/entities/DecentAppFeeOverride.js +3 -0
  6. package/dist/src/domain/model/decent-swap/entities/DecentAppFeeOverride.js.map +1 -0
  7. package/dist/src/domain/model/decent-swap/entities/DecentTransactionStatus.d.ts +1 -0
  8. package/dist/src/domain/model/decent-swap/entities/GetRoutesOptions.d.ts +2 -2
  9. package/dist/src/domain/model/decent-swap/entities/index.d.ts +1 -0
  10. package/dist/src/domain/model/decent-swap/entities/index.js +1 -0
  11. package/dist/src/domain/model/decent-swap/entities/index.js.map +1 -1
  12. package/dist/src/domain/model/deposit/dtos/createDeposit.dto.d.ts +1 -0
  13. package/dist/src/domain/model/deposit/dtos/createDeposit.dto.js +8 -0
  14. package/dist/src/domain/model/deposit/dtos/createDeposit.dto.js.map +1 -1
  15. package/dist/src/domain/model/deposit/entities/Deposit.entity.d.ts +2 -1
  16. package/dist/src/domain/model/deposit/entities/Deposit.entity.js.map +1 -1
  17. package/dist/src/domain/model/recent-sweep-attempt/entities/RecentSweepAttempt.d.ts +9 -0
  18. package/dist/src/domain/model/recent-sweep-attempt/entities/RecentSweepAttempt.js +8 -0
  19. package/dist/src/domain/model/recent-sweep-attempt/entities/RecentSweepAttempt.js.map +1 -0
  20. package/dist/src/domain/model/recent-sweep-attempt/entities/index.d.ts +1 -0
  21. package/dist/src/domain/model/recent-sweep-attempt/entities/index.js +18 -0
  22. package/dist/src/domain/model/recent-sweep-attempt/entities/index.js.map +1 -0
  23. package/dist/src/domain/model/recent-sweep-attempt/index.d.ts +1 -0
  24. package/dist/src/domain/model/recent-sweep-attempt/index.js +18 -0
  25. package/dist/src/domain/model/recent-sweep-attempt/index.js.map +1 -0
  26. package/dist/src/domain/model/sweep-attempt/entities/RecentSweepAttempt.d.ts +9 -0
  27. package/dist/src/domain/model/sweep-attempt/entities/RecentSweepAttempt.js +8 -0
  28. package/dist/src/domain/model/sweep-attempt/entities/RecentSweepAttempt.js.map +1 -0
  29. package/dist/src/domain/model/sweep-attempt/entities/index.d.ts +1 -0
  30. package/dist/src/domain/model/sweep-attempt/entities/index.js +18 -0
  31. package/dist/src/domain/model/sweep-attempt/entities/index.js.map +1 -0
  32. package/dist/src/domain/model/sweep-attempt/index.d.ts +1 -0
  33. package/dist/src/domain/model/sweep-attempt/index.js +18 -0
  34. package/dist/src/domain/model/sweep-attempt/index.js.map +1 -0
  35. package/dist/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +2 -2
@@ -0,0 +1,8 @@
1
+ export declare enum DepositSweepStatus {
2
+ SWEEPING = "SWEEPING",
3
+ ERROR = "ERROR",
4
+ COMPLETED = "COMPLETED"
5
+ }
6
+ export declare enum DepositSweepErrorType {
7
+ LOW_BALANCE = "LOW_BALANCE"
8
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DepositSweepErrorType = exports.DepositSweepStatus = void 0;
4
+ var DepositSweepStatus;
5
+ (function (DepositSweepStatus) {
6
+ DepositSweepStatus["SWEEPING"] = "SWEEPING";
7
+ DepositSweepStatus["ERROR"] = "ERROR";
8
+ DepositSweepStatus["COMPLETED"] = "COMPLETED";
9
+ })(DepositSweepStatus || (exports.DepositSweepStatus = DepositSweepStatus = {}));
10
+ var DepositSweepErrorType;
11
+ (function (DepositSweepErrorType) {
12
+ DepositSweepErrorType["LOW_BALANCE"] = "LOW_BALANCE";
13
+ })(DepositSweepErrorType || (exports.DepositSweepErrorType = DepositSweepErrorType = {}));
14
+ //# sourceMappingURL=deposits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deposits.js","sourceRoot":"","sources":["../../../../src/domain/constants/deposits.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,2CAAqB,CAAA;IACrB,qCAAe,CAAA;IACf,6CAAuB,CAAA;AACzB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAC/B,oDAA2B,CAAA;AAC7B,CAAC,EAFW,qBAAqB,qCAArB,qBAAqB,QAEhC"}
@@ -0,0 +1,5 @@
1
+ export interface DecentAppFeeOverride {
2
+ bps: number;
3
+ flatFee: string;
4
+ receiverAddress: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DecentAppFeeOverride.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DecentAppFeeOverride.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/DecentAppFeeOverride.ts"],"names":[],"mappings":""}
@@ -37,6 +37,7 @@ export interface DecentOrg {
37
37
  }
38
38
  export interface DecentTransactionStatus {
39
39
  statusMessage: DecentStatusMessage;
40
+ status: DecentStatusMessage;
40
41
  sender: string;
41
42
  srcChainId: number;
42
43
  dstChainId: number;
@@ -1,6 +1,6 @@
1
1
  import { DecentSwapOptions } from './SwapOptions';
2
2
  import { DecentChainId } from './DecentChainId';
3
- import { AppFee } from './DeceptAppFee';
3
+ import { DecentAppFeeOverride } from './DecentAppFeeOverride';
4
4
  export interface GetRoutesOptions {
5
5
  sender: string;
6
6
  srcChainId: DecentChainId;
@@ -11,5 +11,5 @@ export interface GetRoutesOptions {
11
11
  swapDirection?: DecentSwapOptions;
12
12
  recipient?: string;
13
13
  amount?: string;
14
- appFees?: AppFee[];
14
+ appFees?: DecentAppFeeOverride[];
15
15
  }
@@ -5,3 +5,4 @@ export * from './GetPathOptions';
5
5
  export * from './GetRoutesOptions';
6
6
  export * from './SwapOptions';
7
7
  export * from './DecentChainId';
8
+ export * from './DecentAppFeeOverride';
@@ -21,4 +21,5 @@ __exportStar(require("./GetPathOptions"), exports);
21
21
  __exportStar(require("./GetRoutesOptions"), exports);
22
22
  __exportStar(require("./SwapOptions"), exports);
23
23
  __exportStar(require("./DecentChainId"), exports);
24
+ __exportStar(require("./DecentAppFeeOverride"), exports);
24
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC;AAChC,yDAAuC"}
@@ -2,4 +2,5 @@ export declare class CreateDepositDto {
2
2
  name: string;
3
3
  description?: string;
4
4
  currencyIds: string[];
5
+ isCardPaymentEnabled?: boolean;
5
6
  }
@@ -12,6 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateDepositDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class CreateDepositDto {
15
+ constructor() {
16
+ this.isCardPaymentEnabled = true;
17
+ }
15
18
  }
16
19
  exports.CreateDepositDto = CreateDepositDto;
17
20
  __decorate([
@@ -33,4 +36,9 @@ __decorate([
33
36
  (0, class_validator_1.ArrayMaxSize)(1),
34
37
  __metadata("design:type", Array)
35
38
  ], CreateDepositDto.prototype, "currencyIds", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsBoolean)(),
41
+ (0, class_validator_1.IsOptional)(),
42
+ __metadata("design:type", Boolean)
43
+ ], CreateDepositDto.prototype, "isCardPaymentEnabled", void 0);
36
44
  //# sourceMappingURL=createDeposit.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createDeposit.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDeposit.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AAEzB,MAAa,gBAAgB;CAgB5B;AAhBD,4CAgBC;AAZC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;8CACF;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;qDACM;AAMrB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;;qDACM"}
1
+ {"version":3,"file":"createDeposit.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDeposit.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AAEzB,MAAa,gBAAgB;IAA7B;QAmBE,yBAAoB,GAAa,IAAI,CAAC;IACxC,CAAC;CAAA;AApBD,4CAoBC;AAhBC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;8CACF;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;qDACM;AAMrB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;;qDACM;AAItB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8DACyB"}
@@ -3,8 +3,9 @@ import { Platform } from '../../../constants';
3
3
  export declare class DepositEntity extends Entity {
4
4
  id: string;
5
5
  name: string;
6
- platform: Platform;
7
6
  description?: string;
7
+ platform: Platform;
8
+ isCardPaymentEnabled?: boolean;
8
9
  createdAt: string;
9
10
  updatedAt: string;
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Deposit.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/Deposit.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,aAAc,SAAQ,eAAM;CAYxC;AAZD,sCAYC"}
1
+ {"version":3,"file":"Deposit.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/Deposit.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,aAAc,SAAQ,eAAM;CAcxC;AAdD,sCAcC"}
@@ -0,0 +1,9 @@
1
+ import { Entity } from '../../entity';
2
+ import { DepositSweepErrorType, DepositSweepStatus } from '../../../constants';
3
+ export declare class RecentSweepAttempt extends Entity {
4
+ id: string;
5
+ depositCustomerId: string;
6
+ status: DepositSweepStatus;
7
+ errorType?: DepositSweepErrorType;
8
+ createdAt: string;
9
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RecentSweepAttempt = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class RecentSweepAttempt extends entity_1.Entity {
6
+ }
7
+ exports.RecentSweepAttempt = RecentSweepAttempt;
8
+ //# sourceMappingURL=RecentSweepAttempt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecentSweepAttempt.js","sourceRoot":"","sources":["../../../../../../src/domain/model/recent-sweep-attempt/entities/RecentSweepAttempt.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,kBAAmB,SAAQ,eAAM;CAU7C;AAVD,gDAUC"}
@@ -0,0 +1 @@
1
+ export * from './RecentSweepAttempt';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./RecentSweepAttempt"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/recent-sweep-attempt/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1 @@
1
+ export * from './entities';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/recent-sweep-attempt/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,9 @@
1
+ import { Entity } from '../../entity';
2
+ import { DepositSweepErrorType, DepositSweepStatus } from '../../../constants';
3
+ export declare class SweepAttempt extends Entity {
4
+ id: string;
5
+ depositCustomerId: string;
6
+ status: DepositSweepStatus;
7
+ errorType?: DepositSweepErrorType;
8
+ createdAt: string;
9
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SweepAttempt = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class SweepAttempt extends entity_1.Entity {
6
+ }
7
+ exports.SweepAttempt = SweepAttempt;
8
+ //# sourceMappingURL=RecentSweepAttempt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecentSweepAttempt.js","sourceRoot":"","sources":["../../../../../../src/domain/model/sweep-attempt/entities/RecentSweepAttempt.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,YAAa,SAAQ,eAAM;CAUvC;AAVD,oCAUC"}
@@ -0,0 +1 @@
1
+ export * from './RecentSweepAttempt';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./RecentSweepAttempt"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/sweep-attempt/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1 @@
1
+ export * from './entities';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/sweep-attempt/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}