@heliofi/common 0.2.293 → 0.2.294
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.
- package/dist/src/domain/model/decent-swap/entities/DecentSwapRoute.d.ts +1 -0
- package/dist/src/domain/model/payment-request/entities/PaymentRequestType.d.ts +2 -1
- package/dist/src/domain/model/payment-request/entities/PaymentRequestType.js +3 -0
- package/dist/src/domain/model/payment-request/entities/PaymentRequestType.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvent.entity.d.ts +4 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvent.entity.js +4 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvent.entity.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawalSummary.dto.d.ts +2 -0
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawalSummary.dto.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -6,6 +6,7 @@ var PaymentRequestType;
|
|
|
6
6
|
PaymentRequestType["PAYLINK"] = "PAYLINK";
|
|
7
7
|
PaymentRequestType["PAYSTREAM"] = "PAYSTREAM";
|
|
8
8
|
PaymentRequestType["DEPOSIT"] = "DEPOSIT";
|
|
9
|
+
PaymentRequestType["WITHDRAW"] = "WITHDRAW";
|
|
9
10
|
})(PaymentRequestType || (exports.PaymentRequestType = PaymentRequestType = {}));
|
|
10
11
|
const toPaymentRequestType = (type) => {
|
|
11
12
|
switch (type?.toUpperCase()) {
|
|
@@ -15,6 +16,8 @@ const toPaymentRequestType = (type) => {
|
|
|
15
16
|
return PaymentRequestType.PAYSTREAM;
|
|
16
17
|
case PaymentRequestType.DEPOSIT:
|
|
17
18
|
return PaymentRequestType.DEPOSIT;
|
|
19
|
+
case PaymentRequestType.WITHDRAW:
|
|
20
|
+
return PaymentRequestType.WITHDRAW;
|
|
18
21
|
default:
|
|
19
22
|
return undefined;
|
|
20
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentRequestType.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/PaymentRequestType.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"PaymentRequestType.js","sourceRoot":"","sources":["../../../../../../src/domain/model/payment-request/entities/PaymentRequestType.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAEM,MAAM,oBAAoB,GAAG,CAClC,IAAa,EACmB,EAAE;IAClC,QAAQ,IAAI,EAAE,WAAW,EAAE,EAAE,CAAC;QAC5B,KAAK,kBAAkB,CAAC,OAAO;YAC7B,OAAO,kBAAkB,CAAC,OAAO,CAAC;QACpC,KAAK,kBAAkB,CAAC,SAAS;YAC/B,OAAO,kBAAkB,CAAC,SAAS,CAAC;QACtC,KAAK,kBAAkB,CAAC,OAAO;YAC7B,OAAO,kBAAkB,CAAC,OAAO,CAAC;QACpC,KAAK,kBAAkB,CAAC,QAAQ;YAC9B,OAAO,kBAAkB,CAAC,QAAQ,CAAC;QACrC;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,oBAAoB,wBAe/B"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare enum WithdrawalHookEvent {
|
|
2
|
+
SUBMITTING = "SUBMITTING",
|
|
2
3
|
SUBMITTED = "SUBMITTED",
|
|
3
|
-
|
|
4
|
+
BRIDGING = "BRIDGING",
|
|
5
|
+
COMPLETED = "COMPLETED",
|
|
4
6
|
FAILED = "FAILED",
|
|
7
|
+
FAILED_EXPIRED = "FAILED_EXPIRED",
|
|
5
8
|
REFUNDED_BY_PROVIDER = "REFUNDED_BY_PROVIDER"
|
|
6
9
|
}
|
|
@@ -3,9 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WithdrawalHookEvent = void 0;
|
|
4
4
|
var WithdrawalHookEvent;
|
|
5
5
|
(function (WithdrawalHookEvent) {
|
|
6
|
+
WithdrawalHookEvent["SUBMITTING"] = "SUBMITTING";
|
|
6
7
|
WithdrawalHookEvent["SUBMITTED"] = "SUBMITTED";
|
|
7
|
-
WithdrawalHookEvent["
|
|
8
|
+
WithdrawalHookEvent["BRIDGING"] = "BRIDGING";
|
|
9
|
+
WithdrawalHookEvent["COMPLETED"] = "COMPLETED";
|
|
8
10
|
WithdrawalHookEvent["FAILED"] = "FAILED";
|
|
11
|
+
WithdrawalHookEvent["FAILED_EXPIRED"] = "FAILED_EXPIRED";
|
|
9
12
|
WithdrawalHookEvent["REFUNDED_BY_PROVIDER"] = "REFUNDED_BY_PROVIDER";
|
|
10
13
|
})(WithdrawalHookEvent || (exports.WithdrawalHookEvent = WithdrawalHookEvent = {}));
|
|
11
14
|
//# sourceMappingURL=WithdrawalHookEvent.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalHookEvent.entity.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvent.entity.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"WithdrawalHookEvent.entity.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvent.entity.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,wDAAiC,CAAA;IACjC,oEAA6C,CAAA;AAC/C,CAAC,EARW,mBAAmB,mCAAnB,mBAAmB,QAQ9B"}
|
|
@@ -5,6 +5,8 @@ export declare class PreparedWithdrawalSummaryDto {
|
|
|
5
5
|
destinationToken: string;
|
|
6
6
|
destinationAmount: string;
|
|
7
7
|
destinationAmountMin: string;
|
|
8
|
+
destinationAmountUsd?: string;
|
|
9
|
+
destinationAmountMinUsd?: string;
|
|
8
10
|
maxSlippageBps: number;
|
|
9
11
|
estimatedPriceImpact?: number;
|
|
10
12
|
bridgeFee: WithdrawalQuoteFeeEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preparedWithdrawalSummary.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawalSummary.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,4BAA4B;
|
|
1
|
+
{"version":3,"file":"preparedWithdrawalSummary.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawalSummary.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,4BAA4B;CA4BxC;AA5BD,oEA4BC"}
|