@heliofi/common 0.2.58 → 0.2.61

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 (24) hide show
  1. package/dist/src/domain/constants/index.d.ts +1 -0
  2. package/dist/src/domain/constants/index.js +1 -0
  3. package/dist/src/domain/constants/index.js.map +1 -1
  4. package/dist/src/domain/constants/intervalUnit.d.ts +2 -0
  5. package/dist/src/domain/constants/intervalUnit.js +6 -0
  6. package/dist/src/domain/constants/intervalUnit.js.map +1 -1
  7. package/dist/src/domain/constants/onrampTransactionStatus.d.ts +9 -0
  8. package/dist/src/domain/constants/onrampTransactionStatus.js +14 -0
  9. package/dist/src/domain/constants/onrampTransactionStatus.js.map +1 -0
  10. package/dist/src/domain/constants/{RedirectQueryParams.js → redirectQueryParams.js} +1 -1
  11. package/dist/src/domain/constants/redirectQueryParams.js.map +1 -0
  12. package/dist/src/domain/model/onramp/entities/BaseOnrampTransaction.entity.d.ts +5 -0
  13. package/dist/src/domain/model/onramp/entities/BaseOnrampTransaction.entity.js +7 -0
  14. package/dist/src/domain/model/onramp/entities/BaseOnrampTransaction.entity.js.map +1 -0
  15. package/dist/src/domain/model/onramp/entities/OnrampTransaction.entity.d.ts +2 -4
  16. package/dist/src/domain/model/onramp/entities/OnrampTransaction.entity.js +2 -1
  17. package/dist/src/domain/model/onramp/entities/OnrampTransaction.entity.js.map +1 -1
  18. package/dist/src/domain/model/onramp/entities/index.d.ts +1 -0
  19. package/dist/src/domain/model/onramp/entities/index.js +1 -0
  20. package/dist/src/domain/model/onramp/entities/index.js.map +1 -1
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/package.json +2 -2
  23. package/dist/src/domain/constants/RedirectQueryParams.js.map +0 -1
  24. /package/dist/src/domain/constants/{RedirectQueryParams.d.ts → redirectQueryParams.d.ts} +0 -0
@@ -27,3 +27,4 @@ export * from './countryCode';
27
27
  export * from './theme';
28
28
  export * from './nftType';
29
29
  export * from './redirectQueryParams.enum';
30
+ export * from './onrampTransactionStatus';
@@ -43,4 +43,5 @@ __exportStar(require("./countryCode"), exports);
43
43
  __exportStar(require("./theme"), exports);
44
44
  __exportStar(require("./nftType"), exports);
45
45
  __exportStar(require("./redirectQueryParams.enum"), exports);
46
+ __exportStar(require("./onrampTransactionStatus"), exports);
46
47
  //# 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;AAC3B,6DAA2C;AAC3C,2CAAyB;AACzB,oDAAkC;AAClC,6CAA2B;AAC3B,kDAAgC;AAChC,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B;AAC1B,6DAA2C"}
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;AAC3C,2CAAyB;AACzB,oDAAkC;AAClC,6CAA2B;AAC3B,kDAAgC;AAChC,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B;AAC1B,6DAA2C;AAC3C,4DAA0C"}
@@ -5,6 +5,8 @@ export declare enum IntervalType {
5
5
  DAY = "DAY",
6
6
  WEEK = "WEEK",
7
7
  MONTH = "MONTH",
8
+ QUARTER = "QUARTER",
9
+ BIANNUALLY = "BIANNUALLY",
8
10
  YEAR = "YEAR"
9
11
  }
10
12
  export declare const intervalUnit: Record<IntervalType, number>;
@@ -9,6 +9,8 @@ var IntervalType;
9
9
  IntervalType["DAY"] = "DAY";
10
10
  IntervalType["WEEK"] = "WEEK";
11
11
  IntervalType["MONTH"] = "MONTH";
12
+ IntervalType["QUARTER"] = "QUARTER";
13
+ IntervalType["BIANNUALLY"] = "BIANNUALLY";
12
14
  IntervalType["YEAR"] = "YEAR";
13
15
  })(IntervalType = exports.IntervalType || (exports.IntervalType = {}));
14
16
  exports.intervalUnit = {
@@ -18,6 +20,8 @@ exports.intervalUnit = {
18
20
  [IntervalType.DAY]: 86400,
19
21
  [IntervalType.WEEK]: 604800,
20
22
  [IntervalType.MONTH]: 2592000,
23
+ [IntervalType.QUARTER]: 7776000,
24
+ [IntervalType.BIANNUALLY]: 15552000,
21
25
  [IntervalType.YEAR]: 31536000,
22
26
  };
23
27
  exports.intervalValue = {
@@ -27,6 +31,8 @@ exports.intervalValue = {
27
31
  86400: IntervalType.DAY,
28
32
  604800: IntervalType.WEEK,
29
33
  2592000: IntervalType.MONTH,
34
+ 7776000: IntervalType.QUARTER,
35
+ 15552000: IntervalType.BIANNUALLY,
30
36
  31536000: IntervalType.YEAR,
31
37
  };
32
38
  //# sourceMappingURL=intervalUnit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"intervalUnit.js","sourceRoot":"","sources":["../../../../src/domain/constants/intervalUnit.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,2BAAW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C,YAAY,CAAC,MAAM,CAAC,EAAE,EAAE;IACzB,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI;IACzB,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,KAAK;IACzB,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM;IAC3B,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO;IAC7B,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO;IAC/B,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,QAAQ;IACnC,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ;CAC9B,CAAC;AAEW,QAAA,aAAa,GAAiC;IACzD,CAAC,EAAE,YAAY,CAAC,MAAM;IACtB,EAAE,EAAE,YAAY,CAAC,MAAM;IACvB,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,KAAK,EAAE,YAAY,CAAC,GAAG;IACvB,MAAM,EAAE,YAAY,CAAC,IAAI;IACzB,OAAO,EAAE,YAAY,CAAC,KAAK;IAC3B,OAAO,EAAE,YAAY,CAAC,OAAO;IAC7B,QAAQ,EAAE,YAAY,CAAC,UAAU;IACjC,QAAQ,EAAE,YAAY,CAAC,IAAI;CAC5B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare enum OnrampTransactionStatus {
2
+ IN_PROGRESS = "in_progress",
3
+ PENDING = "pending",
4
+ COMPLETED = "completed",
5
+ FAILED = "failed",
6
+ CANCELED = "canceled",
7
+ PAID = "paid",
8
+ NEW = "new"
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnrampTransactionStatus = void 0;
4
+ var OnrampTransactionStatus;
5
+ (function (OnrampTransactionStatus) {
6
+ OnrampTransactionStatus["IN_PROGRESS"] = "in_progress";
7
+ OnrampTransactionStatus["PENDING"] = "pending";
8
+ OnrampTransactionStatus["COMPLETED"] = "completed";
9
+ OnrampTransactionStatus["FAILED"] = "failed";
10
+ OnrampTransactionStatus["CANCELED"] = "canceled";
11
+ OnrampTransactionStatus["PAID"] = "paid";
12
+ OnrampTransactionStatus["NEW"] = "new";
13
+ })(OnrampTransactionStatus = exports.OnrampTransactionStatus || (exports.OnrampTransactionStatus = {}));
14
+ //# sourceMappingURL=onrampTransactionStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onrampTransactionStatus.js","sourceRoot":"","sources":["../../../../src/domain/constants/onrampTransactionStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAQX;AARD,WAAY,uBAAuB;IACjC,sDAA2B,CAAA;IAC3B,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,gDAAqB,CAAA;IACrB,wCAAa,CAAA;IACb,sCAAW,CAAA;AACb,CAAC,EARW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAQlC"}
@@ -5,4 +5,4 @@ var RedirectQueryParams;
5
5
  (function (RedirectQueryParams) {
6
6
  RedirectQueryParams["WALLET_ADDRESS"] = "WALLET_ADDRESS";
7
7
  })(RedirectQueryParams = exports.RedirectQueryParams || (exports.RedirectQueryParams = {}));
8
- //# sourceMappingURL=RedirectQueryParams.js.map
8
+ //# sourceMappingURL=redirectQueryParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirectQueryParams.js","sourceRoot":"","sources":["../../../../src/domain/constants/redirectQueryParams.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,wDAAiC,CAAA;AACnC,CAAC,EAFW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAE9B"}
@@ -0,0 +1,5 @@
1
+ export declare class BaseOnrampTransaction {
2
+ transactionId: string;
3
+ status: string;
4
+ walletAddress: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseOnrampTransaction = void 0;
4
+ class BaseOnrampTransaction {
5
+ }
6
+ exports.BaseOnrampTransaction = BaseOnrampTransaction;
7
+ //# sourceMappingURL=BaseOnrampTransaction.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseOnrampTransaction.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/BaseOnrampTransaction.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,qBAAqB;CAMjC;AAND,sDAMC"}
@@ -1,13 +1,11 @@
1
- export declare class OnrampTransaction {
2
- transactionId: string;
3
- status: string;
1
+ import { BaseOnrampTransaction } from './BaseOnrampTransaction.entity';
2
+ export declare class OnrampTransaction extends BaseOnrampTransaction {
4
3
  onramp: string;
5
4
  source: string;
6
5
  destination: string;
7
6
  amount: number;
8
7
  paymentMethod: string;
9
8
  network: string;
10
- walletAddress: string;
11
9
  redirectType: 'iframe' | 'popup';
12
10
  redirectUrl: string;
13
11
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OnrampTransaction = void 0;
4
- class OnrampTransaction {
4
+ const BaseOnrampTransaction_entity_1 = require("./BaseOnrampTransaction.entity");
5
+ class OnrampTransaction extends BaseOnrampTransaction_entity_1.BaseOnrampTransaction {
5
6
  }
6
7
  exports.OnrampTransaction = OnrampTransaction;
7
8
  //# sourceMappingURL=OnrampTransaction.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OnrampTransaction.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnrampTransaction.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;CAsB7B;AAtBD,8CAsBC"}
1
+ {"version":3,"file":"OnrampTransaction.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/entities/OnrampTransaction.entity.ts"],"names":[],"mappings":";;;AAAA,iFAAuE;AAEvE,MAAa,iBAAkB,SAAQ,oDAAqB;CAgB3D;AAhBD,8CAgBC"}
@@ -1,3 +1,4 @@
1
1
  export * from './OnrampPaymentMethod.entity';
2
2
  export * from './OnrampQuote.entity';
3
3
  export * from './OnrampTransaction.entity';
4
+ export * from './BaseOnrampTransaction.entity';
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./OnrampPaymentMethod.entity"), exports);
18
18
  __exportStar(require("./OnrampQuote.entity"), exports);
19
19
  __exportStar(require("./OnrampTransaction.entity"), exports);
20
+ __exportStar(require("./BaseOnrampTransaction.entity"), exports);
20
21
  //# 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"}
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"}